From 1827b410e3f06c33ff89e230914a0956bf0152f9 Mon Sep 17 00:00:00 2001 From: Jason Murray Date: Wed, 4 Sep 2024 20:56:41 +0100 Subject: [PATCH] wakelock test --- .../assets/{index-Bfc2Re14.js => index-Bzqxy949.js} | 8 ++++---- dist/index.html | 2 +- src/App.vue | 13 ++++++++++++- 3 files changed, 17 insertions(+), 6 deletions(-) rename dist/assets/{index-Bfc2Re14.js => index-Bzqxy949.js} (75%) diff --git a/dist/assets/index-Bfc2Re14.js b/dist/assets/index-Bzqxy949.js similarity index 75% rename from dist/assets/index-Bfc2Re14.js rename to dist/assets/index-Bzqxy949.js index ffbd5e1..0a39f1e 100644 --- a/dist/assets/index-Bfc2Re14.js +++ b/dist/assets/index-Bzqxy949.js @@ -2,16 +2,16 @@ * @vue/shared v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Un(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const te={},_t=[],Te=()=>{},So=()=>!1,cn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Kn=e=>e.startsWith("onUpdate:"),ce=Object.assign,Wn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Lo=Object.prototype.hasOwnProperty,V=(e,t)=>Lo.call(e,t),R=Array.isArray,gt=e=>an(e)==="[object Map]",ir=e=>an(e)==="[object Set]",F=e=>typeof e=="function",re=e=>typeof e=="string",qe=e=>typeof e=="symbol",Y=e=>e!==null&&typeof e=="object",lr=e=>(Y(e)||F(e))&&F(e.then)&&F(e.catch),cr=Object.prototype.toString,an=e=>cr.call(e),Ao=e=>an(e).slice(8,-1),ar=e=>an(e)==="[object Object]",Gn=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Lt=Un(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),un=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Oo=/-(\w)/g,ut=un(e=>e.replace(Oo,(t,n)=>n?n.toUpperCase():"")),Po=/\B([A-Z])/g,dt=un(e=>e.replace(Po,"-$1").toLowerCase()),ur=un(e=>e.charAt(0).toUpperCase()+e.slice(1)),yn=un(e=>e?`on${ur(e)}`:""),ze=(e,t)=>!Object.is(e,t),vn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Mo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ro=e=>{const t=re(e)?Number(e):NaN;return isNaN(t)?e:t};let vs;const dr=()=>vs||(vs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zn(e){if(R(e)){const t={};for(let n=0;n{if(n){const s=n.split($o);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Mt(e){let t="";if(re(e))t=e;else if(R(e))for(let n=0;n!!(e&&e.__v_isRef===!0),rt=e=>re(e)?e:e==null?"":R(e)||Y(e)&&(e.toString===cr||!F(e.toString))?pr(e)?rt(e.value):JSON.stringify(e,_r,2):String(e),_r=(e,t)=>pr(t)?_r(e,t.value):gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[wn(s,o)+" =>"]=r,n),{})}:ir(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>wn(n))}:qe(t)?wn(t):Y(t)&&!R(t)&&!ar(t)?String(t):t,wn=(e,t="")=>{var n;return qe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**//*! #__NO_SIDE_EFFECTS__ */function Un(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const te={},_t=[],Te=()=>{},Lo=()=>!1,cn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Wn=e=>e.startsWith("onUpdate:"),ce=Object.assign,Kn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},So=Object.prototype.hasOwnProperty,V=(e,t)=>So.call(e,t),R=Array.isArray,gt=e=>an(e)==="[object Map]",ir=e=>an(e)==="[object Set]",F=e=>typeof e=="function",re=e=>typeof e=="string",qe=e=>typeof e=="symbol",Y=e=>e!==null&&typeof e=="object",lr=e=>(Y(e)||F(e))&&F(e.then)&&F(e.catch),cr=Object.prototype.toString,an=e=>cr.call(e),Ao=e=>an(e).slice(8,-1),ar=e=>an(e)==="[object Object]",Gn=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,St=Un(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),un=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Oo=/-(\w)/g,ut=un(e=>e.replace(Oo,(t,n)=>n?n.toUpperCase():"")),Po=/\B([A-Z])/g,dt=un(e=>e.replace(Po,"-$1").toLowerCase()),ur=un(e=>e.charAt(0).toUpperCase()+e.slice(1)),yn=un(e=>e?`on${ur(e)}`:""),ze=(e,t)=>!Object.is(e,t),vn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Mo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ro=e=>{const t=re(e)?Number(e):NaN;return isNaN(t)?e:t};let vs;const dr=()=>vs||(vs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zn(e){if(R(e)){const t={};for(let n=0;n{if(n){const s=n.split($o);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Mt(e){let t="";if(re(e))t=e;else if(R(e))for(let n=0;n!!(e&&e.__v_isRef===!0),rt=e=>re(e)?e:e==null?"":R(e)||Y(e)&&(e.toString===cr||!F(e.toString))?pr(e)?rt(e.value):JSON.stringify(e,_r,2):String(e),_r=(e,t)=>pr(t)?_r(e,t.value):gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[wn(s,o)+" =>"]=r,n),{})}:ir(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>wn(n))}:qe(t)?wn(t):Y(t)&&!R(t)&&!ar(t)?String(t):t,wn=(e,t="")=>{var n;return qe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Le;class jo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Le,!t&&Le&&(this.index=(Le.scopes||(Le.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Le;try{return Le=this,t()}finally{Le=n}}}on(){Le=this}off(){Le=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ye()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=We,n=ct;try{return We=!0,ct=this,this._runnings++,ws(this),this.fn()}finally{xs(this),this._runnings--,ct=n,We=t}}stop(){this.active&&(ws(this),xs(this),this.onStop&&this.onStop(),this.active=!1)}}function Vo(e){return e.value}function ws(e){e._trackId++,e._depsLength=0}function xs(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},Rn=new WeakMap,at=Symbol(""),In=Symbol("");function be(e,t,n){if(We&&ct){let s=Rn.get(e);s||Rn.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=vr(()=>s.delete(n))),br(ct,r)}}function Ne(e,t,n,s,r,o){const i=Rn.get(e);if(!i)return;let c=[];if(t==="clear")c=[...i.values()];else if(n==="length"&&R(e)){const a=Number(s);i.forEach((d,f)=>{(f==="length"||!qe(f)&&f>=a)&&c.push(d)})}else switch(n!==void 0&&c.push(i.get(n)),t){case"add":R(e)?Gn(n)&&c.push(i.get("length")):(c.push(i.get(at)),gt(e)&&c.push(i.get(In)));break;case"delete":R(e)||(c.push(i.get(at)),gt(e)&&c.push(i.get(In)));break;case"set":gt(e)&&c.push(i.get(at));break}qn();for(const a of c)a&&yr(a,4);Jn()}const Uo=Un("__proto__,__v_isRef,__isVue"),wr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(qe)),Cs=Ko();function Ko(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=U(this);for(let o=0,i=this.length;o{e[t]=function(...n){Je(),qn();const s=U(this)[t].apply(this,n);return Jn(),Ye(),s}}),e}function Wo(e){qe(e)||(e=String(e));const t=U(this);return be(t,"has",e),t.hasOwnProperty(e)}class xr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?ri:Sr:o?Er:Tr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=R(t);if(!r){if(i&&V(Cs,n))return Reflect.get(Cs,n,s);if(n==="hasOwnProperty")return Wo}const c=Reflect.get(t,n,s);return(qe(n)?wr.has(n):Uo(n))||(r||be(t,"get",n),o)?c:ye(c)?i&&Gn(n)?c:c.value:Y(c)?r?Lr(c):Xn(c):c}}class Cr extends xr{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._isShallow){const a=ft(o);if(!yt(s)&&!ft(s)&&(o=U(o),s=U(s)),!R(t)&&ye(o)&&!ye(s))return a?!1:(o.value=s,!0)}const i=R(t)&&Gn(n)?Number(n)e,fn=e=>Reflect.getPrototypeOf(e);function Vt(e,t,n=!1,s=!1){e=e.__v_raw;const r=U(e),o=U(t);n||(ze(t,o)&&be(r,"get",t),be(r,"get",o));const{has:i}=fn(r),c=s?Yn:n?ts:Rt;if(i.call(r,t))return c(e.get(t));if(i.call(r,o))return c(e.get(o));e!==r&&e.get(t)}function Ut(e,t=!1){const n=this.__v_raw,s=U(n),r=U(e);return t||(ze(e,r)&&be(s,"has",e),be(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Kt(e,t=!1){return e=e.__v_raw,!t&&be(U(e),"iterate",at),Reflect.get(e,"size",e)}function Ts(e,t=!1){!t&&!yt(e)&&!ft(e)&&(e=U(e));const n=U(this);return fn(n).has.call(n,e)||(n.add(e),Ne(n,"add",e,e)),this}function Es(e,t,n=!1){!n&&!yt(t)&&!ft(t)&&(t=U(t));const s=U(this),{has:r,get:o}=fn(s);let i=r.call(s,e);i||(e=U(e),i=r.call(s,e));const c=o.call(s,e);return s.set(e,t),i?ze(t,c)&&Ne(s,"set",e,t):Ne(s,"add",e,t),this}function Ss(e){const t=U(this),{has:n,get:s}=fn(t);let r=n.call(t,e);r||(e=U(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&Ne(t,"delete",e,void 0),o}function Ls(){const e=U(this),t=e.size!==0,n=e.clear();return t&&Ne(e,"clear",void 0,void 0),n}function Wt(e,t){return function(s,r){const o=this,i=o.__v_raw,c=U(i),a=t?Yn:e?ts:Rt;return!e&&be(c,"iterate",at),i.forEach((d,f)=>s.call(r,a(d),a(f),o))}}function Gt(e,t,n){return function(...s){const r=this.__v_raw,o=U(r),i=gt(o),c=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,d=r[e](...s),f=n?Yn:t?ts:Rt;return!t&&be(o,"iterate",a?In:at),{next(){const{value:p,done:x}=d.next();return x?{value:p,done:x}:{value:c?[f(p[0]),f(p[1])]:f(p),done:x}},[Symbol.iterator](){return this}}}}function je(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Jo(){const e={get(o){return Vt(this,o)},get size(){return Kt(this)},has:Ut,add:Ts,set:Es,delete:Ss,clear:Ls,forEach:Wt(!1,!1)},t={get(o){return Vt(this,o,!1,!0)},get size(){return Kt(this)},has:Ut,add(o){return Ts.call(this,o,!0)},set(o,i){return Es.call(this,o,i,!0)},delete:Ss,clear:Ls,forEach:Wt(!1,!0)},n={get(o){return Vt(this,o,!0)},get size(){return Kt(this,!0)},has(o){return Ut.call(this,o,!0)},add:je("add"),set:je("set"),delete:je("delete"),clear:je("clear"),forEach:Wt(!0,!1)},s={get(o){return Vt(this,o,!0,!0)},get size(){return Kt(this,!0)},has(o){return Ut.call(this,o,!0)},add:je("add"),set:je("set"),delete:je("delete"),clear:je("clear"),forEach:Wt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Gt(o,!1,!1),n[o]=Gt(o,!0,!1),t[o]=Gt(o,!1,!0),s[o]=Gt(o,!0,!0)}),[e,n,t,s]}const[Yo,Qo,Xo,ei]=Jo();function Qn(e,t){const n=t?e?ei:Xo:e?Qo:Yo;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(V(n,r)&&r in s?n:s,r,o)}const ti={get:Qn(!1,!1)},ni={get:Qn(!1,!0)},si={get:Qn(!0,!1)};const Tr=new WeakMap,Er=new WeakMap,Sr=new WeakMap,ri=new WeakMap;function oi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ii(e){return e.__v_skip||!Object.isExtensible(e)?0:oi(Ao(e))}function Xn(e){return ft(e)?e:es(e,!1,zo,ti,Tr)}function li(e){return es(e,!1,qo,ni,Er)}function Lr(e){return es(e,!0,Zo,si,Sr)}function es(e,t,n,s,r){if(!Y(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=ii(e);if(i===0)return e;const c=new Proxy(e,i===2?s:n);return r.set(e,c),c}function At(e){return ft(e)?At(e.__v_raw):!!(e&&e.__v_isReactive)}function ft(e){return!!(e&&e.__v_isReadonly)}function yt(e){return!!(e&&e.__v_isShallow)}function Ar(e){return e?!!e.__v_raw:!1}function U(e){const t=e&&e.__v_raw;return t?U(t):e}function ci(e){return Object.isExtensible(e)&&fr(e,"__v_skip",!0),e}const Rt=e=>Y(e)?Xn(e):e,ts=e=>Y(e)?Lr(e):e;class Or{constructor(t,n,s,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Zn(()=>t(this._value),()=>qt(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=U(this);return(!t._cacheable||t.effect.dirty)&&ze(t._value,t._value=t.effect.run())&&qt(t,4),Pr(t),t.effect._dirtyLevel>=2&&qt(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ai(e,t,n=!1){let s,r;const o=F(e);return o?(s=e,r=Te):(s=e.get,r=e.set),new Or(s,r,o||!r,n)}function Pr(e){var t;We&&ct&&(e=U(e),br(ct,(t=e.dep)!=null?t:e.dep=vr(()=>e.dep=void 0,e instanceof Or?e:void 0)))}function qt(e,t=4,n,s){e=U(e);const r=e.dep;r&&yr(r,t)}function ye(e){return!!(e&&e.__v_isRef===!0)}function Ae(e){return ui(e,!1)}function ui(e,t){return ye(e)?e:new fi(e,t)}class fi{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:U(t),this._value=n?t:Rt(t)}get value(){return Pr(this),this._value}set value(t){const n=this.__v_isShallow||yt(t)||ft(t);t=n?t:U(t),ze(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:Rt(t),qt(this,4))}}function di(e){return ye(e)?e.value:e}const hi={get:(e,t,n)=>di(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ye(r)&&!ye(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Mr(e){return At(e)?e:new Proxy(e,hi)}/** +**/let Se;class jo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Se,!t&&Se&&(this.index=(Se.scopes||(Se.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Se;try{return Se=this,t()}finally{Se=n}}}on(){Se=this}off(){Se=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ye()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ke,n=ct;try{return Ke=!0,ct=this,this._runnings++,ws(this),this.fn()}finally{xs(this),this._runnings--,ct=n,Ke=t}}stop(){this.active&&(ws(this),xs(this),this.onStop&&this.onStop(),this.active=!1)}}function Vo(e){return e.value}function ws(e){e._trackId++,e._depsLength=0}function xs(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},Rn=new WeakMap,at=Symbol(""),In=Symbol("");function be(e,t,n){if(Ke&&ct){let s=Rn.get(e);s||Rn.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=vr(()=>s.delete(n))),br(ct,r)}}function Ne(e,t,n,s,r,o){const i=Rn.get(e);if(!i)return;let c=[];if(t==="clear")c=[...i.values()];else if(n==="length"&&R(e)){const a=Number(s);i.forEach((f,d)=>{(d==="length"||!qe(d)&&d>=a)&&c.push(f)})}else switch(n!==void 0&&c.push(i.get(n)),t){case"add":R(e)?Gn(n)&&c.push(i.get("length")):(c.push(i.get(at)),gt(e)&&c.push(i.get(In)));break;case"delete":R(e)||(c.push(i.get(at)),gt(e)&&c.push(i.get(In)));break;case"set":gt(e)&&c.push(i.get(at));break}qn();for(const a of c)a&&yr(a,4);Jn()}const Uo=Un("__proto__,__v_isRef,__isVue"),wr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(qe)),Cs=Wo();function Wo(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=U(this);for(let o=0,i=this.length;o{e[t]=function(...n){Je(),qn();const s=U(this)[t].apply(this,n);return Jn(),Ye(),s}}),e}function Ko(e){qe(e)||(e=String(e));const t=U(this);return be(t,"has",e),t.hasOwnProperty(e)}class xr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?ri:Lr:o?Er:Tr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=R(t);if(!r){if(i&&V(Cs,n))return Reflect.get(Cs,n,s);if(n==="hasOwnProperty")return Ko}const c=Reflect.get(t,n,s);return(qe(n)?wr.has(n):Uo(n))||(r||be(t,"get",n),o)?c:ye(c)?i&&Gn(n)?c:c.value:Y(c)?r?Sr(c):Xn(c):c}}class Cr extends xr{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._isShallow){const a=ft(o);if(!yt(s)&&!ft(s)&&(o=U(o),s=U(s)),!R(t)&&ye(o)&&!ye(s))return a?!1:(o.value=s,!0)}const i=R(t)&&Gn(n)?Number(n)e,fn=e=>Reflect.getPrototypeOf(e);function Vt(e,t,n=!1,s=!1){e=e.__v_raw;const r=U(e),o=U(t);n||(ze(t,o)&&be(r,"get",t),be(r,"get",o));const{has:i}=fn(r),c=s?Yn:n?ts:Rt;if(i.call(r,t))return c(e.get(t));if(i.call(r,o))return c(e.get(o));e!==r&&e.get(t)}function Ut(e,t=!1){const n=this.__v_raw,s=U(n),r=U(e);return t||(ze(e,r)&&be(s,"has",e),be(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Wt(e,t=!1){return e=e.__v_raw,!t&&be(U(e),"iterate",at),Reflect.get(e,"size",e)}function Ts(e,t=!1){!t&&!yt(e)&&!ft(e)&&(e=U(e));const n=U(this);return fn(n).has.call(n,e)||(n.add(e),Ne(n,"add",e,e)),this}function Es(e,t,n=!1){!n&&!yt(t)&&!ft(t)&&(t=U(t));const s=U(this),{has:r,get:o}=fn(s);let i=r.call(s,e);i||(e=U(e),i=r.call(s,e));const c=o.call(s,e);return s.set(e,t),i?ze(t,c)&&Ne(s,"set",e,t):Ne(s,"add",e,t),this}function Ls(e){const t=U(this),{has:n,get:s}=fn(t);let r=n.call(t,e);r||(e=U(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&Ne(t,"delete",e,void 0),o}function Ss(){const e=U(this),t=e.size!==0,n=e.clear();return t&&Ne(e,"clear",void 0,void 0),n}function Kt(e,t){return function(s,r){const o=this,i=o.__v_raw,c=U(i),a=t?Yn:e?ts:Rt;return!e&&be(c,"iterate",at),i.forEach((f,d)=>s.call(r,a(f),a(d),o))}}function Gt(e,t,n){return function(...s){const r=this.__v_raw,o=U(r),i=gt(o),c=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,f=r[e](...s),d=n?Yn:t?ts:Rt;return!t&&be(o,"iterate",a?In:at),{next(){const{value:p,done:x}=f.next();return x?{value:p,done:x}:{value:c?[d(p[0]),d(p[1])]:d(p),done:x}},[Symbol.iterator](){return this}}}}function je(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Jo(){const e={get(o){return Vt(this,o)},get size(){return Wt(this)},has:Ut,add:Ts,set:Es,delete:Ls,clear:Ss,forEach:Kt(!1,!1)},t={get(o){return Vt(this,o,!1,!0)},get size(){return Wt(this)},has:Ut,add(o){return Ts.call(this,o,!0)},set(o,i){return Es.call(this,o,i,!0)},delete:Ls,clear:Ss,forEach:Kt(!1,!0)},n={get(o){return Vt(this,o,!0)},get size(){return Wt(this,!0)},has(o){return Ut.call(this,o,!0)},add:je("add"),set:je("set"),delete:je("delete"),clear:je("clear"),forEach:Kt(!0,!1)},s={get(o){return Vt(this,o,!0,!0)},get size(){return Wt(this,!0)},has(o){return Ut.call(this,o,!0)},add:je("add"),set:je("set"),delete:je("delete"),clear:je("clear"),forEach:Kt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Gt(o,!1,!1),n[o]=Gt(o,!0,!1),t[o]=Gt(o,!1,!0),s[o]=Gt(o,!0,!0)}),[e,n,t,s]}const[Yo,Qo,Xo,ei]=Jo();function Qn(e,t){const n=t?e?ei:Xo:e?Qo:Yo;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(V(n,r)&&r in s?n:s,r,o)}const ti={get:Qn(!1,!1)},ni={get:Qn(!1,!0)},si={get:Qn(!0,!1)};const Tr=new WeakMap,Er=new WeakMap,Lr=new WeakMap,ri=new WeakMap;function oi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ii(e){return e.__v_skip||!Object.isExtensible(e)?0:oi(Ao(e))}function Xn(e){return ft(e)?e:es(e,!1,zo,ti,Tr)}function li(e){return es(e,!1,qo,ni,Er)}function Sr(e){return es(e,!0,Zo,si,Lr)}function es(e,t,n,s,r){if(!Y(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=ii(e);if(i===0)return e;const c=new Proxy(e,i===2?s:n);return r.set(e,c),c}function At(e){return ft(e)?At(e.__v_raw):!!(e&&e.__v_isReactive)}function ft(e){return!!(e&&e.__v_isReadonly)}function yt(e){return!!(e&&e.__v_isShallow)}function Ar(e){return e?!!e.__v_raw:!1}function U(e){const t=e&&e.__v_raw;return t?U(t):e}function ci(e){return Object.isExtensible(e)&&fr(e,"__v_skip",!0),e}const Rt=e=>Y(e)?Xn(e):e,ts=e=>Y(e)?Sr(e):e;class Or{constructor(t,n,s,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Zn(()=>t(this._value),()=>qt(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=U(this);return(!t._cacheable||t.effect.dirty)&&ze(t._value,t._value=t.effect.run())&&qt(t,4),Pr(t),t.effect._dirtyLevel>=2&&qt(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ai(e,t,n=!1){let s,r;const o=F(e);return o?(s=e,r=Te):(s=e.get,r=e.set),new Or(s,r,o||!r,n)}function Pr(e){var t;Ke&&ct&&(e=U(e),br(ct,(t=e.dep)!=null?t:e.dep=vr(()=>e.dep=void 0,e instanceof Or?e:void 0)))}function qt(e,t=4,n,s){e=U(e);const r=e.dep;r&&yr(r,t)}function ye(e){return!!(e&&e.__v_isRef===!0)}function Ae(e){return ui(e,!1)}function ui(e,t){return ye(e)?e:new fi(e,t)}class fi{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:U(t),this._value=n?t:Rt(t)}get value(){return Pr(this),this._value}set value(t){const n=this.__v_isShallow||yt(t)||ft(t);t=n?t:U(t),ze(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:Rt(t),qt(this,4))}}function di(e){return ye(e)?e.value:e}const hi={get:(e,t,n)=>di(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ye(r)&&!ye(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Mr(e){return At(e)?e:new Proxy(e,hi)}/** * @vue/runtime-core v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Ge(e,t,n,s){try{return s?e(...s):e()}catch(r){dn(r,t,n)}}function Ee(e,t,n,s){if(F(e)){const r=Ge(e,t,n,s);return r&&lr(r)&&r.catch(o=>{dn(o,t,n)}),r}if(R(e)){const r=[];for(let o=0;o>>1,r=de[s],o=$t(r);o$e&&de.splice(t,1)}function bi(e){R(e)?mt.push(...e):(!Ve||!Ve.includes(e,e.allowRecurse?ot+1:ot))&&mt.push(e),Ir()}function As(e,t,n=It?$e+1:0){for(;n$t(n)-$t(s));if(mt.length=0,Ve){Ve.push(...t);return}for(Ve=t,ot=0;ote.id==null?1/0:e.id,yi=(e,t)=>{const n=$t(e)-$t(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Fr(e){$n=!1,It=!0,de.sort(yi);try{for($e=0;$e{s._d&&Ns(-1);const o=sn(t);let i;try{i=e(...r)}finally{sn(o),s._d&&Ns(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function tt(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i{e.isMounted=!0}),Ur(()=>{e.isUnmounting=!0}),e}const Ce=[Function,Array],Hr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ce,onEnter:Ce,onAfterEnter:Ce,onEnterCancelled:Ce,onBeforeLeave:Ce,onLeave:Ce,onAfterLeave:Ce,onLeaveCancelled:Ce,onBeforeAppear:Ce,onAppear:Ce,onAfterAppear:Ce,onAppearCancelled:Ce},jr=e=>{const t=e.subTree;return t.component?jr(t.component):t},vi={name:"BaseTransition",props:Hr,setup(e,{slots:t}){const n=fo(),s=Nr();return()=>{const r=t.default&&os(t.default(),!0);if(!r||!r.length)return;let o=r[0];if(r.length>1){for(const x of r)if(x.type!==we){o=x;break}}const i=U(e),{mode:c}=i;if(s.isLeaving)return xn(o);const a=Os(o);if(!a)return xn(o);let d=Ft(a,i,s,n,x=>d=x);vt(a,d);const f=n.subTree,p=f&&Os(f);if(p&&p.type!==we&&!lt(a,p)&&jr(n).type!==we){const x=Ft(p,i,s,n);if(vt(p,x),c==="out-in"&&a.type!==we)return s.isLeaving=!0,x.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},xn(o);c==="in-out"&&a.type!==we&&(x.delayLeave=(P,B,I)=>{const k=Br(s,p);k[String(p.key)]=p,P[Ue]=()=>{B(),P[Ue]=void 0,delete d.delayedLeave},d.delayedLeave=I})}return o}}},wi=vi;function Br(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Ft(e,t,n,s,r){const{appear:o,mode:i,persisted:c=!1,onBeforeEnter:a,onEnter:d,onAfterEnter:f,onEnterCancelled:p,onBeforeLeave:x,onLeave:P,onAfterLeave:B,onLeaveCancelled:I,onBeforeAppear:k,onAppear:K,onAfterAppear:Z,onAppearCancelled:H}=t,N=String(e.key),C=Br(n,e),m=(D,z)=>{D&&Ee(D,s,9,z)},w=(D,z)=>{const X=z[1];m(D,z),R(D)?D.every(A=>A.length<=1)&&X():D.length<=1&&X()},ae={mode:i,persisted:c,beforeEnter(D){let z=a;if(!n.isMounted)if(o)z=k||a;else return;D[Ue]&&D[Ue](!0);const X=C[N];X&<(e,X)&&X.el[Ue]&&X.el[Ue](),m(z,[D])},enter(D){let z=d,X=f,A=p;if(!n.isMounted)if(o)z=K||d,X=Z||f,A=H||p;else return;let Q=!1;const ue=D[zt]=Qe=>{Q||(Q=!0,Qe?m(A,[D]):m(X,[D]),ae.delayedLeave&&ae.delayedLeave(),D[zt]=void 0)};z?w(z,[D,ue]):ue()},leave(D,z){const X=String(e.key);if(D[zt]&&D[zt](!0),n.isUnmounting)return z();m(x,[D]);let A=!1;const Q=D[Ue]=ue=>{A||(A=!0,z(),ue?m(I,[D]):m(B,[D]),D[Ue]=void 0,C[X]===e&&delete C[X])};C[X]=e,P?w(P,[D,Q]):Q()},clone(D){const z=Ft(D,t,n,s,r);return r&&r(z),z}};return ae}function xn(e){if(hn(e))return e=Ze(e),e.children=null,e}function Os(e){if(!hn(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&F(n.default))return n.default()}}function vt(e,t){e.shapeFlag&6&&e.component?vt(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function os(e,t=!1,n){let s=[],r=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,hn=e=>e.type.__isKeepAlive;function xi(e,t){Dr(e,"a",t)}function Ci(e,t){Dr(e,"da",t)}function Dr(e,t,n=he){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(pn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)hn(r.parent.vnode)&&Ti(s,t,n,r),r=r.parent}}function Ti(e,t,n,s){const r=pn(t,e,s,!0);Kr(()=>{Wn(s[t],r)},n)}function pn(e,t,n=he,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Je();const c=jt(n),a=Ee(t,n,e,i);return c(),Ye(),a});return s?r.unshift(o):r.push(o),o}}const He=e=>(t,n=he)=>{(!mn||e==="sp")&&pn(e,(...s)=>t(...s),n)},Ei=He("bm"),Ht=He("m"),Si=He("bu"),Vr=He("u"),Ur=He("bum"),Kr=He("um"),Li=He("sp"),Ai=He("rtg"),Oi=He("rtc");function Pi(e,t=he){pn("ec",e,t)}const Mi=Symbol.for("v-ndc");function Ri(e,t,n,s){let r;const o=n;if(R(e)||re(e)){r=new Array(e.length);for(let i=0,c=e.length;it(i,c,void 0,o));else{const i=Object.keys(e);r=new Array(i.length);for(let c=0,a=i.length;ce?ho(e)?as(e):Fn(e.parent):null,Ot=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Fn(e.parent),$root:e=>Fn(e.root),$emit:e=>e.emit,$options:e=>is(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ss(e.update)}),$nextTick:e=>e.n||(e.n=_i.bind(e.proxy)),$watch:e=>nl.bind(e)}),Cn=(e,t)=>e!==te&&!e.__isScriptSetup&&V(e,t),Ii={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:c,appContext:a}=e;let d;if(t[0]!=="$"){const P=i[t];if(P!==void 0)switch(P){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Cn(s,t))return i[t]=1,s[t];if(r!==te&&V(r,t))return i[t]=2,r[t];if((d=e.propsOptions[0])&&V(d,t))return i[t]=3,o[t];if(n!==te&&V(n,t))return i[t]=4,n[t];kn&&(i[t]=0)}}const f=Ot[t];let p,x;if(f)return t==="$attrs"&&be(e.attrs,"get",""),f(e);if((p=c.__cssModules)&&(p=p[t]))return p;if(n!==te&&V(n,t))return i[t]=4,n[t];if(x=a.config.globalProperties,V(x,t))return x[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Cn(r,t)?(r[t]=n,!0):s!==te&&V(s,t)?(s[t]=n,!0):V(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let c;return!!n[i]||e!==te&&V(e,i)||Cn(t,i)||(c=o[0])&&V(c,i)||V(s,i)||V(Ot,i)||V(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:V(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ps(e){return R(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let kn=!0;function $i(e){const t=is(e),n=e.proxy,s=e.ctx;kn=!1,t.beforeCreate&&Ms(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:c,provide:a,inject:d,created:f,beforeMount:p,mounted:x,beforeUpdate:P,updated:B,activated:I,deactivated:k,beforeDestroy:K,beforeUnmount:Z,destroyed:H,unmounted:N,render:C,renderTracked:m,renderTriggered:w,errorCaptured:ae,serverPrefetch:D,expose:z,inheritAttrs:X,components:A,directives:Q,filters:ue}=t;if(d&&Fi(d,s,null),i)for(const ee in i){const q=i[ee];F(q)&&(s[ee]=q.bind(n))}if(r){const ee=r.call(n,n);Y(ee)&&(e.data=Xn(ee))}if(kn=!0,o)for(const ee in o){const q=o[ee],Xe=F(q)?q.bind(n,n):F(q.get)?q.get.bind(n,n):Te,Bt=!F(q)&&F(q.set)?q.set.bind(n):Te,et=Tl({get:Xe,set:Bt});Object.defineProperty(s,ee,{enumerable:!0,configurable:!0,get:()=>et.value,set:Pe=>et.value=Pe})}if(c)for(const ee in c)Wr(c[ee],s,n,ee);if(a){const ee=F(a)?a.call(n):a;Reflect.ownKeys(ee).forEach(q=>{Di(q,ee[q])})}f&&Ms(f,e,"c");function ie(ee,q){R(q)?q.forEach(Xe=>ee(Xe.bind(n))):q&&ee(q.bind(n))}if(ie(Ei,p),ie(Ht,x),ie(Si,P),ie(Vr,B),ie(xi,I),ie(Ci,k),ie(Pi,ae),ie(Oi,m),ie(Ai,w),ie(Ur,Z),ie(Kr,N),ie(Li,D),R(z))if(z.length){const ee=e.exposed||(e.exposed={});z.forEach(q=>{Object.defineProperty(ee,q,{get:()=>n[q],set:Xe=>n[q]=Xe})})}else e.exposed||(e.exposed={});C&&e.render===Te&&(e.render=C),X!=null&&(e.inheritAttrs=X),A&&(e.components=A),Q&&(e.directives=Q)}function Fi(e,t,n=Te){R(e)&&(e=Nn(e));for(const s in e){const r=e[s];let o;Y(r)?"default"in r?o=Yt(r.from||s,r.default,!0):o=Yt(r.from||s):o=Yt(r),ye(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Ms(e,t,n){Ee(R(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Wr(e,t,n,s){const r=s.includes(".")?oo(n,s):()=>n[s];if(re(e)){const o=t[e];F(o)&&En(r,o)}else if(F(e))En(r,e.bind(n));else if(Y(e))if(R(e))e.forEach(o=>Wr(o,t,n,s));else{const o=F(e.handler)?e.handler.bind(n):t[e.handler];F(o)&&En(r,o,e)}}function is(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,c=o.get(t);let a;return c?a=c:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(d=>rn(a,d,i,!0)),rn(a,t,i)),Y(t)&&o.set(t,a),a}function rn(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&rn(e,o,n,!0),r&&r.forEach(i=>rn(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const c=ki[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const ki={data:Rs,props:Is,emits:Is,methods:St,computed:St,beforeCreate:pe,created:pe,beforeMount:pe,mounted:pe,beforeUpdate:pe,updated:pe,beforeDestroy:pe,beforeUnmount:pe,destroyed:pe,unmounted:pe,activated:pe,deactivated:pe,errorCaptured:pe,serverPrefetch:pe,components:St,directives:St,watch:Hi,provide:Rs,inject:Ni};function Rs(e,t){return t?e?function(){return ce(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function Ni(e,t){return St(Nn(e),Nn(t))}function Nn(e){if(R(e)){const t={};for(let n=0;n1)return n&&F(t)?t.call(s&&s.proxy):t}}const zr={},Zr=()=>Object.create(zr),qr=e=>Object.getPrototypeOf(e)===zr;function Vi(e,t,n,s=!1){const r={},o=Zr();e.propsDefaults=Object.create(null),Jr(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:li(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Ui(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,c=U(r),[a]=e.propsOptions;let d=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let p=0;p{a=!0;const[x,P]=Yr(p,t,!0);ce(i,x),P&&c.push(...P)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!a)return Y(e)&&s.set(e,_t),_t;if(R(o))for(let f=0;fe[0]==="_"||e==="$stable",ls=e=>R(e)?e.map(Ie):[Ie(e)],Wi=(e,t,n)=>{if(t._n)return t;const s=rs((...r)=>ls(t(...r)),n);return s._c=!1,s},Xr=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Qr(r))continue;const o=e[r];if(F(o))t[r]=Wi(r,o,s);else if(o!=null){const i=ls(o);t[r]=()=>i}}},eo=(e,t)=>{const n=ls(t);e.slots.default=()=>n},to=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},Gi=(e,t,n)=>{const s=e.slots=Zr();if(e.vnode.shapeFlag&32){const r=t._;r?(to(s,t,n),n&&fr(s,"_",r,!0)):Xr(t,s)}else t&&eo(e,t)},zi=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=te;if(s.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:to(r,t,n):(o=!t.$stable,Xr(t,r)),i=t}else t&&(eo(e,t),i={default:1});if(o)for(const c in r)!Qr(c)&&i[c]==null&&delete r[c]};function jn(e,t,n,s,r=!1){if(R(e)){e.forEach((x,P)=>jn(x,t&&(R(t)?t[P]:t),n,s,r));return}if(Jt(s)&&!r)return;const o=s.shapeFlag&4?as(s.component):s.el,i=r?null:o,{i:c,r:a}=e,d=t&&t.r,f=c.refs===te?c.refs={}:c.refs,p=c.setupState;if(d!=null&&d!==a&&(re(d)?(f[d]=null,V(p,d)&&(p[d]=null)):ye(d)&&(d.value=null)),F(a))Ge(a,c,12,[i,f]);else{const x=re(a),P=ye(a);if(x||P){const B=()=>{if(e.f){const I=x?V(p,a)?p[a]:f[a]:a.value;r?R(I)&&Wn(I,o):R(I)?I.includes(o)||I.push(o):x?(f[a]=[o],V(p,a)&&(p[a]=f[a])):(a.value=[o],e.k&&(f[e.k]=a.value))}else x?(f[a]=i,V(p,a)&&(p[a]=i)):P&&(a.value=i,e.k&&(f[e.k]=i))};i?(B.id=-1,ge(B,n)):B()}}}const Zi=Symbol("_vte"),qi=e=>e.__isTeleport,ge=ul;function Ji(e){return Yi(e)}function Yi(e,t){const n=dr();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:c,createComment:a,setText:d,setElementText:f,parentNode:p,nextSibling:x,setScopeId:P=Te,insertStaticContent:B}=e,I=(l,u,h,b=null,_=null,v=null,S=void 0,T=null,E=!!u.dynamicChildren)=>{if(l===u)return;l&&!lt(l,u)&&(b=Dt(l),Pe(l,_,v,!0),l=null),u.patchFlag===-2&&(E=!1,u.dynamicChildren=null);const{type:g,ref:L,shapeFlag:M}=u;switch(g){case gn:k(l,u,h,b);break;case we:K(l,u,h,b);break;case Qt:l==null&&Z(u,h,b,S);break;case me:A(l,u,h,b,_,v,S,T,E);break;default:M&1?C(l,u,h,b,_,v,S,T,E):M&6?Q(l,u,h,b,_,v,S,T,E):(M&64||M&128)&&g.process(l,u,h,b,_,v,S,T,E,Ct)}L!=null&&_&&jn(L,l&&l.ref,v,u||l,!u)},k=(l,u,h,b)=>{if(l==null)s(u.el=c(u.children),h,b);else{const _=u.el=l.el;u.children!==l.children&&d(_,u.children)}},K=(l,u,h,b)=>{l==null?s(u.el=a(u.children||""),h,b):u.el=l.el},Z=(l,u,h,b)=>{[l.el,l.anchor]=B(l.children,u,h,b,l.el,l.anchor)},H=({el:l,anchor:u},h,b)=>{let _;for(;l&&l!==u;)_=x(l),s(l,h,b),l=_;s(u,h,b)},N=({el:l,anchor:u})=>{let h;for(;l&&l!==u;)h=x(l),r(l),l=h;r(u)},C=(l,u,h,b,_,v,S,T,E)=>{u.type==="svg"?S="svg":u.type==="math"&&(S="mathml"),l==null?m(u,h,b,_,v,S,T,E):D(l,u,_,v,S,T,E)},m=(l,u,h,b,_,v,S,T)=>{let E,g;const{props:L,shapeFlag:M,transition:O,dirs:$}=l;if(E=l.el=i(l.type,v,L&&L.is,L),M&8?f(E,l.children):M&16&&ae(l.children,E,null,b,_,Tn(l,v),S,T),$&&tt(l,null,b,"created"),w(E,l,l.scopeId,S,b),L){for(const J in L)J!=="value"&&!Lt(J)&&o(E,J,null,L[J],v,b);"value"in L&&o(E,"value",null,L.value,v),(g=L.onVnodeBeforeMount)&&Re(g,b,l)}$&&tt(l,null,b,"beforeMount");const j=Qi(_,O);j&&O.beforeEnter(E),s(E,u,h),((g=L&&L.onVnodeMounted)||j||$)&&ge(()=>{g&&Re(g,b,l),j&&O.enter(E),$&&tt(l,null,b,"mounted")},_)},w=(l,u,h,b,_)=>{if(h&&P(l,h),b)for(let v=0;v{for(let g=E;g{const T=u.el=l.el;let{patchFlag:E,dynamicChildren:g,dirs:L}=u;E|=l.patchFlag&16;const M=l.props||te,O=u.props||te;let $;if(h&&nt(h,!1),($=O.onVnodeBeforeUpdate)&&Re($,h,u,l),L&&tt(u,l,h,"beforeUpdate"),h&&nt(h,!0),(M.innerHTML&&O.innerHTML==null||M.textContent&&O.textContent==null)&&f(T,""),g?z(l.dynamicChildren,g,T,h,b,Tn(u,_),v):S||q(l,u,T,null,h,b,Tn(u,_),v,!1),E>0){if(E&16)X(T,M,O,h,_);else if(E&2&&M.class!==O.class&&o(T,"class",null,O.class,_),E&4&&o(T,"style",M.style,O.style,_),E&8){const j=u.dynamicProps;for(let J=0;J{$&&Re($,h,u,l),L&&tt(u,l,h,"updated")},b)},z=(l,u,h,b,_,v,S)=>{for(let T=0;T{if(u!==h){if(u!==te)for(const v in u)!Lt(v)&&!(v in h)&&o(l,v,u[v],null,_,b);for(const v in h){if(Lt(v))continue;const S=h[v],T=u[v];S!==T&&v!=="value"&&o(l,v,T,S,_,b)}"value"in h&&o(l,"value",u.value,h.value,_)}},A=(l,u,h,b,_,v,S,T,E)=>{const g=u.el=l?l.el:c(""),L=u.anchor=l?l.anchor:c("");let{patchFlag:M,dynamicChildren:O,slotScopeIds:$}=u;$&&(T=T?T.concat($):$),l==null?(s(g,h,b),s(L,h,b),ae(u.children||[],h,L,_,v,S,T,E)):M>0&&M&64&&O&&l.dynamicChildren?(z(l.dynamicChildren,O,h,_,v,S,T),(u.key!=null||_&&u===_.subTree)&&no(l,u,!0)):q(l,u,h,L,_,v,S,T,E)},Q=(l,u,h,b,_,v,S,T,E)=>{u.slotScopeIds=T,l==null?u.shapeFlag&512?_.ctx.activate(u,h,b,S,E):ue(u,h,b,_,v,S,E):Qe(l,u,E)},ue=(l,u,h,b,_,v,S)=>{const T=l.component=bl(l,b,_);if(hn(l)&&(T.ctx.renderer=Ct),yl(T,!1,S),T.asyncDep){if(_&&_.registerDep(T,ie,S),!l.el){const E=T.subTree=oe(we);K(null,E,u,h)}}else ie(T,l,u,h,_,v,S)},Qe=(l,u,h)=>{const b=u.component=l.component;if(ll(l,u,h))if(b.asyncDep&&!b.asyncResolved){ee(b,u,h);return}else b.next=u,mi(b.update),b.effect.dirty=!0,b.update();else u.el=l.el,b.vnode=u},ie=(l,u,h,b,_,v,S)=>{const T=()=>{if(l.isMounted){let{next:L,bu:M,u:O,parent:$,vnode:j}=l;{const ht=so(l);if(ht){L&&(L.el=j.el,ee(l,L,S)),ht.asyncDep.then(()=>{l.isUnmounted||T()});return}}let J=L,W;nt(l,!1),L?(L.el=j.el,ee(l,L,S)):L=j,M&&vn(M),(W=L.props&&L.props.onVnodeBeforeUpdate)&&Re(W,$,L,j),nt(l,!0);const le=Sn(l),Se=l.subTree;l.subTree=le,I(Se,le,p(Se.el),Dt(Se),l,_,v),L.el=le.el,J===null&&cl(l,le.el),O&&ge(O,_),(W=L.props&&L.props.onVnodeUpdated)&&ge(()=>Re(W,$,L,j),_)}else{let L;const{el:M,props:O}=u,{bm:$,m:j,parent:J}=l,W=Jt(u);if(nt(l,!1),$&&vn($),!W&&(L=O&&O.onVnodeBeforeMount)&&Re(L,J,u),nt(l,!0),M&&gs){const le=()=>{l.subTree=Sn(l),gs(M,l.subTree,l,_,null)};W?u.type.__asyncLoader().then(()=>!l.isUnmounted&&le()):le()}else{const le=l.subTree=Sn(l);I(null,le,h,b,l,_,v),u.el=le.el}if(j&&ge(j,_),!W&&(L=O&&O.onVnodeMounted)){const le=u;ge(()=>Re(L,J,le),_)}(u.shapeFlag&256||J&&Jt(J.vnode)&&J.vnode.shapeFlag&256)&&l.a&&ge(l.a,_),l.isMounted=!0,u=h=b=null}},E=l.effect=new Zn(T,Te,()=>ss(g),l.scope),g=l.update=()=>{E.dirty&&E.run()};g.i=l,g.id=l.uid,nt(l,!0),g()},ee=(l,u,h)=>{u.component=l;const b=l.vnode.props;l.vnode=u,l.next=null,Ui(l,u.props,b,h),zi(l,u.children,h),Je(),As(l),Ye()},q=(l,u,h,b,_,v,S,T,E=!1)=>{const g=l&&l.children,L=l?l.shapeFlag:0,M=u.children,{patchFlag:O,shapeFlag:$}=u;if(O>0){if(O&128){Bt(g,M,h,b,_,v,S,T,E);return}else if(O&256){Xe(g,M,h,b,_,v,S,T,E);return}}$&8?(L&16&&xt(g,_,v),M!==g&&f(h,M)):L&16?$&16?Bt(g,M,h,b,_,v,S,T,E):xt(g,_,v,!0):(L&8&&f(h,""),$&16&&ae(M,h,b,_,v,S,T,E))},Xe=(l,u,h,b,_,v,S,T,E)=>{l=l||_t,u=u||_t;const g=l.length,L=u.length,M=Math.min(g,L);let O;for(O=0;OL?xt(l,_,v,!0,!1,M):ae(u,h,b,_,v,S,T,E,M)},Bt=(l,u,h,b,_,v,S,T,E)=>{let g=0;const L=u.length;let M=l.length-1,O=L-1;for(;g<=M&&g<=O;){const $=l[g],j=u[g]=E?Ke(u[g]):Ie(u[g]);if(lt($,j))I($,j,h,null,_,v,S,T,E);else break;g++}for(;g<=M&&g<=O;){const $=l[M],j=u[O]=E?Ke(u[O]):Ie(u[O]);if(lt($,j))I($,j,h,null,_,v,S,T,E);else break;M--,O--}if(g>M){if(g<=O){const $=O+1,j=$O)for(;g<=M;)Pe(l[g],_,v,!0),g++;else{const $=g,j=g,J=new Map;for(g=j;g<=O;g++){const ve=u[g]=E?Ke(u[g]):Ie(u[g]);ve.key!=null&&J.set(ve.key,g)}let W,le=0;const Se=O-j+1;let ht=!1,ms=0;const Tt=new Array(Se);for(g=0;g=Se){Pe(ve,_,v,!0);continue}let Me;if(ve.key!=null)Me=J.get(ve.key);else for(W=j;W<=O;W++)if(Tt[W-j]===0&<(ve,u[W])){Me=W;break}Me===void 0?Pe(ve,_,v,!0):(Tt[Me-j]=g+1,Me>=ms?ms=Me:ht=!0,I(ve,u[Me],h,null,_,v,S,T,E),le++)}const bs=ht?Xi(Tt):_t;for(W=bs.length-1,g=Se-1;g>=0;g--){const ve=j+g,Me=u[ve],ys=ve+1{const{el:v,type:S,transition:T,children:E,shapeFlag:g}=l;if(g&6){et(l.component.subTree,u,h,b);return}if(g&128){l.suspense.move(u,h,b);return}if(g&64){S.move(l,u,h,Ct);return}if(S===me){s(v,u,h);for(let M=0;MT.enter(v),_);else{const{leave:M,delayLeave:O,afterLeave:$}=T,j=()=>s(v,u,h),J=()=>{M(v,()=>{j(),$&&$()})};O?O(v,j,J):J()}else s(v,u,h)},Pe=(l,u,h,b=!1,_=!1)=>{const{type:v,props:S,ref:T,children:E,dynamicChildren:g,shapeFlag:L,patchFlag:M,dirs:O,cacheIndex:$}=l;if(M===-2&&(_=!1),T!=null&&jn(T,null,h,l,!0),$!=null&&(u.renderCache[$]=void 0),L&256){u.ctx.deactivate(l);return}const j=L&1&&O,J=!Jt(l);let W;if(J&&(W=S&&S.onVnodeBeforeUnmount)&&Re(W,u,l),L&6)Eo(l.component,h,b);else{if(L&128){l.suspense.unmount(h,b);return}j&&tt(l,null,u,"beforeUnmount"),L&64?l.type.remove(l,u,h,Ct,b):g&&!g.hasOnce&&(v!==me||M>0&&M&64)?xt(g,u,h,!1,!0):(v===me&&M&384||!_&&L&16)&&xt(E,u,h),b&&hs(l)}(J&&(W=S&&S.onVnodeUnmounted)||j)&&ge(()=>{W&&Re(W,u,l),j&&tt(l,null,u,"unmounted")},h)},hs=l=>{const{type:u,el:h,anchor:b,transition:_}=l;if(u===me){To(h,b);return}if(u===Qt){N(l);return}const v=()=>{r(h),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(l.shapeFlag&1&&_&&!_.persisted){const{leave:S,delayLeave:T}=_,E=()=>S(h,v);T?T(l.el,v,E):E()}else v()},To=(l,u)=>{let h;for(;l!==u;)h=x(l),r(l),l=h;r(u)},Eo=(l,u,h)=>{const{bum:b,scope:_,update:v,subTree:S,um:T,m:E,a:g}=l;Fs(E),Fs(g),b&&vn(b),_.stop(),v&&(v.active=!1,Pe(S,l,u,h)),T&&ge(T,u),ge(()=>{l.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&l.asyncDep&&!l.asyncResolved&&l.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},xt=(l,u,h,b=!1,_=!1,v=0)=>{for(let S=v;S{if(l.shapeFlag&6)return Dt(l.component.subTree);if(l.shapeFlag&128)return l.suspense.next();const u=x(l.anchor||l.el),h=u&&u[Zi];return h?x(h):u};let bn=!1;const ps=(l,u,h)=>{l==null?u._vnode&&Pe(u._vnode,null,null,!0):I(u._vnode||null,l,u,null,null,null,h),u._vnode=l,bn||(bn=!0,As(),$r(),bn=!1)},Ct={p:I,um:Pe,m:et,r:hs,mt:ue,mc:ae,pc:q,pbc:z,n:Dt,o:e};let _s,gs;return{render:ps,hydrate:_s,createApp:Bi(ps,_s)}}function Tn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function nt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Qi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function no(e,t,n=!1){const s=e.children,r=t.children;if(R(s)&&R(r))for(let o=0;o>1,e[n[c]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function so(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:so(t)}function Fs(e){if(e)for(let t=0;tYt(el),Zt={};function En(e,t,n){return ro(e,t,n)}function ro(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:c}=te){if(t&&o){const m=t;t=(...w)=>{m(...w),C()}}const a=he,d=m=>s===!0?m:it(m,s===!1?1:void 0);let f,p=!1,x=!1;if(ye(e)?(f=()=>e.value,p=yt(e)):At(e)?(f=()=>d(e),p=!0):R(e)?(x=!0,p=e.some(m=>At(m)||yt(m)),f=()=>e.map(m=>{if(ye(m))return m.value;if(At(m))return d(m);if(F(m))return Ge(m,a,2)})):F(e)?t?f=()=>Ge(e,a,2):f=()=>(P&&P(),Ee(e,a,3,[B])):f=Te,t&&s){const m=f;f=()=>it(m())}let P,B=m=>{P=H.onStop=()=>{Ge(m,a,4),P=H.onStop=void 0}},I;if(mn)if(B=Te,t?n&&Ee(t,a,3,[f(),x?[]:void 0,B]):f(),r==="sync"){const m=tl();I=m.__watcherHandles||(m.__watcherHandles=[])}else return Te;let k=x?new Array(e.length).fill(Zt):Zt;const K=()=>{if(!(!H.active||!H.dirty))if(t){const m=H.run();(s||p||(x?m.some((w,ae)=>ze(w,k[ae])):ze(m,k)))&&(P&&P(),Ee(t,a,3,[m,k===Zt?void 0:x&&k[0]===Zt?[]:k,B]),k=m)}else H.run()};K.allowRecurse=!!t;let Z;r==="sync"?Z=K:r==="post"?Z=()=>ge(K,a&&a.suspense):(K.pre=!0,a&&(K.id=a.uid),Z=()=>ss(K));const H=new Zn(f,Te,Z),N=Do(),C=()=>{H.stop(),N&&Wn(N.effects,H)};return t?n?K():k=H.run():r==="post"?ge(H.run.bind(H),a&&a.suspense):H.run(),I&&I.push(C),C}function nl(e,t,n){const s=this.proxy,r=re(e)?e.includes(".")?oo(s,e):()=>s[e]:e.bind(s,s);let o;F(t)?o=t:(o=t.handler,n=t);const i=jt(this),c=ro(r,o.bind(s),n);return i(),c}function oo(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{it(s,t,n)});else if(ar(e)){for(const s in e)it(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&it(e[s],t,n)}return e}const sl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ut(t)}Modifiers`]||e[`${dt(t)}Modifiers`];function rl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||te;let r=n;const o=t.startsWith("update:"),i=o&&sl(s,t.slice(7));i&&(i.trim&&(r=n.map(f=>re(f)?f.trim():f)),i.number&&(r=n.map(Mo)));let c,a=s[c=yn(t)]||s[c=yn(ut(t))];!a&&o&&(a=s[c=yn(dt(t))]),a&&Ee(a,e,6,r);const d=s[c+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Ee(d,e,6,r)}}function io(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},c=!1;if(!F(e)){const a=d=>{const f=io(d,t,!0);f&&(c=!0,ce(i,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!c?(Y(e)&&s.set(e,null),null):(R(o)?o.forEach(a=>i[a]=null):ce(i,o),Y(e)&&s.set(e,i),i)}function _n(e,t){return!e||!cn(t)?!1:(t=t.slice(2).replace(/Once$/,""),V(e,t[0].toLowerCase()+t.slice(1))||V(e,dt(t))||V(e,t))}function Sn(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:c,emit:a,render:d,renderCache:f,props:p,data:x,setupState:P,ctx:B,inheritAttrs:I}=e,k=sn(e);let K,Z;try{if(n.shapeFlag&4){const N=r||s,C=N;K=Ie(d.call(C,N,f,p,P,x,B)),Z=c}else{const N=t;K=Ie(N.length>1?N(p,{attrs:c,slots:i,emit:a}):N(p,null)),Z=t.props?c:ol(c)}}catch(N){Pt.length=0,dn(N,e,1),K=oe(we)}let H=K;if(Z&&I!==!1){const N=Object.keys(Z),{shapeFlag:C}=H;N.length&&C&7&&(o&&N.some(Kn)&&(Z=il(Z,o)),H=Ze(H,Z,!1,!0))}return n.dirs&&(H=Ze(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&(H.transition=n.transition),K=H,sn(k),K}const ol=e=>{let t;for(const n in e)(n==="class"||n==="style"||cn(n))&&((t||(t={}))[n]=e[n]);return t},il=(e,t)=>{const n={};for(const s in e)(!Kn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ll(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:c,patchFlag:a}=t,d=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?ks(s,i,d):!!i;if(a&8){const f=t.dynamicProps;for(let p=0;pe.__isSuspense;function ul(e,t){t&&t.pendingBranch?R(e)?t.effects.push(...e):t.effects.push(e):bi(e)}const me=Symbol.for("v-fgt"),gn=Symbol.for("v-txt"),we=Symbol.for("v-cmt"),Qt=Symbol.for("v-stc"),Pt=[];let xe=null;function fe(e=!1){Pt.push(xe=e?null:[])}function fl(){Pt.pop(),xe=Pt[Pt.length-1]||null}let kt=1;function Ns(e){kt+=e,e<0&&xe&&(xe.hasOnce=!0)}function lo(e){return e.dynamicChildren=kt>0?xe||_t:null,fl(),kt>0&&xe&&xe.push(e),e}function _e(e,t,n,s,r,o){return lo(G(e,t,n,s,r,o,!0))}function dl(e,t,n,s,r){return lo(oe(e,t,n,s,r,!0))}function Bn(e){return e?e.__v_isVNode===!0:!1}function lt(e,t){return e.type===t.type&&e.key===t.key}const co=({key:e})=>e??null,Xt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?re(e)||ye(e)||F(e)?{i:Oe,r:e,k:t,f:!!n}:e:null);function G(e,t=null,n=null,s=0,r=null,o=e===me?0:1,i=!1,c=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&co(t),ref:t&&Xt(t),scopeId:kr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Oe};return c?(cs(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=re(n)?8:16),kt>0&&!i&&xe&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&xe.push(a),a}const oe=hl;function hl(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Mi)&&(e=we),Bn(e)){const c=Ze(e,t,!0);return n&&cs(c,n),kt>0&&!o&&xe&&(c.shapeFlag&6?xe[xe.indexOf(e)]=c:xe.push(c)),c.patchFlag=-2,c}if(Cl(e)&&(e=e.__vccOpts),t){t=pl(t);let{class:c,style:a}=t;c&&!re(c)&&(t.class=Mt(c)),Y(a)&&(Ar(a)&&!R(a)&&(a=ce({},a)),t.style=zn(a))}const i=re(e)?1:al(e)?128:qi(e)?64:Y(e)?4:F(e)?2:0;return G(e,t,n,s,r,i,o,!0)}function pl(e){return e?Ar(e)||qr(e)?ce({},e):e:null}function Ze(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:c,transition:a}=e,d=t?_l(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&co(d),ref:t&&t.ref?n&&o?R(o)?o.concat(Xt(t)):[o,Xt(t)]:Xt(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ze(e.ssContent),ssFallback:e.ssFallback&&Ze(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&vt(f,a.clone(f)),f}function ao(e=" ",t=0){return oe(gn,null,e,t)}function uo(e,t){const n=oe(Qt,null,e);return n.staticCount=t,n}function pt(e="",t=!1){return t?(fe(),dl(we,null,e)):oe(we,null,e)}function Ie(e){return e==null||typeof e=="boolean"?oe(we):R(e)?oe(me,null,e.slice()):typeof e=="object"?Ke(e):oe(gn,null,String(e))}function Ke(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ze(e)}function cs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(R(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),cs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!qr(t)?t._ctx=Oe:r===3&&Oe&&(Oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else F(t)?(t={default:t,_ctx:Oe},n=32):(t=String(t),s&64?(n=16,t=[ao(t)]):n=8);e.children=t,e.shapeFlag|=n}function _l(...e){const t={};for(let n=0;nhe||Oe;let on,Dn;{const e=dr(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};on=t("__VUE_INSTANCE_SETTERS__",n=>he=n),Dn=t("__VUE_SSR_SETTERS__",n=>mn=n)}const jt=e=>{const t=he;return on(e),e.scope.on(),()=>{e.scope.off(),on(t)}},Hs=()=>{he&&he.scope.off(),on(null)};function ho(e){return e.vnode.shapeFlag&4}let mn=!1;function yl(e,t=!1,n=!1){t&&Dn(t);const{props:s,children:r}=e.vnode,o=ho(e);Vi(e,s,o,t),Gi(e,r,n);const i=o?vl(e,t):void 0;return t&&Dn(!1),i}function vl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ii);const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?xl(e):null,o=jt(e);Je();const i=Ge(s,e,0,[e.props,r]);if(Ye(),o(),lr(i)){if(i.then(Hs,Hs),t)return i.then(c=>{js(e,c,t)}).catch(c=>{dn(c,e,0)});e.asyncDep=i}else js(e,i,t)}else po(e,t)}function js(e,t,n){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Y(t)&&(e.setupState=Mr(t)),po(e,n)}let Bs;function po(e,t,n){const s=e.type;if(!e.render){if(!t&&Bs&&!s.render){const r=s.template||is(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:a}=s,d=ce(ce({isCustomElement:o,delimiters:c},i),a);s.render=Bs(r,d)}}e.render=s.render||Te}{const r=jt(e);Je();try{$i(e)}finally{Ye(),r()}}}const wl={get(e,t){return be(e,"get",""),e[t]}};function xl(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,wl),slots:e.slots,emit:e.emit,expose:t}}function as(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Mr(ci(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ot)return Ot[n](e)},has(t,n){return n in t||n in Ot}})):e.proxy}function Cl(e){return F(e)&&"__vccOpts"in e}const Tl=(e,t)=>ai(e,t,mn);function El(e,t,n){const s=arguments.length;return s===2?Y(t)&&!R(t)?Bn(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Bn(n)&&(n=[n]),oe(e,t,n))}const Sl="3.4.38";/** +**/function Ge(e,t,n,s){try{return s?e(...s):e()}catch(r){dn(r,t,n)}}function Ee(e,t,n,s){if(F(e)){const r=Ge(e,t,n,s);return r&&lr(r)&&r.catch(o=>{dn(o,t,n)}),r}if(R(e)){const r=[];for(let o=0;o>>1,r=de[s],o=$t(r);o$e&&de.splice(t,1)}function bi(e){R(e)?mt.push(...e):(!Ve||!Ve.includes(e,e.allowRecurse?ot+1:ot))&&mt.push(e),Ir()}function As(e,t,n=It?$e+1:0){for(;n$t(n)-$t(s));if(mt.length=0,Ve){Ve.push(...t);return}for(Ve=t,ot=0;ote.id==null?1/0:e.id,yi=(e,t)=>{const n=$t(e)-$t(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Fr(e){$n=!1,It=!0,de.sort(yi);try{for($e=0;$e{s._d&&Ns(-1);const o=sn(t);let i;try{i=e(...r)}finally{sn(o),s._d&&Ns(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function tt(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i{e.isMounted=!0}),Ur(()=>{e.isUnmounting=!0}),e}const Ce=[Function,Array],Hr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ce,onEnter:Ce,onAfterEnter:Ce,onEnterCancelled:Ce,onBeforeLeave:Ce,onLeave:Ce,onAfterLeave:Ce,onLeaveCancelled:Ce,onBeforeAppear:Ce,onAppear:Ce,onAfterAppear:Ce,onAppearCancelled:Ce},jr=e=>{const t=e.subTree;return t.component?jr(t.component):t},vi={name:"BaseTransition",props:Hr,setup(e,{slots:t}){const n=fo(),s=Nr();return()=>{const r=t.default&&os(t.default(),!0);if(!r||!r.length)return;let o=r[0];if(r.length>1){for(const x of r)if(x.type!==we){o=x;break}}const i=U(e),{mode:c}=i;if(s.isLeaving)return xn(o);const a=Os(o);if(!a)return xn(o);let f=Ft(a,i,s,n,x=>f=x);vt(a,f);const d=n.subTree,p=d&&Os(d);if(p&&p.type!==we&&!lt(a,p)&&jr(n).type!==we){const x=Ft(p,i,s,n);if(vt(p,x),c==="out-in"&&a.type!==we)return s.isLeaving=!0,x.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},xn(o);c==="in-out"&&a.type!==we&&(x.delayLeave=(P,B,I)=>{const k=Br(s,p);k[String(p.key)]=p,P[Ue]=()=>{B(),P[Ue]=void 0,delete f.delayedLeave},f.delayedLeave=I})}return o}}},wi=vi;function Br(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Ft(e,t,n,s,r){const{appear:o,mode:i,persisted:c=!1,onBeforeEnter:a,onEnter:f,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:x,onLeave:P,onAfterLeave:B,onLeaveCancelled:I,onBeforeAppear:k,onAppear:W,onAfterAppear:Z,onAppearCancelled:H}=t,N=String(e.key),C=Br(n,e),m=(D,z)=>{D&&Ee(D,s,9,z)},w=(D,z)=>{const X=z[1];m(D,z),R(D)?D.every(A=>A.length<=1)&&X():D.length<=1&&X()},ae={mode:i,persisted:c,beforeEnter(D){let z=a;if(!n.isMounted)if(o)z=k||a;else return;D[Ue]&&D[Ue](!0);const X=C[N];X&<(e,X)&&X.el[Ue]&&X.el[Ue](),m(z,[D])},enter(D){let z=f,X=d,A=p;if(!n.isMounted)if(o)z=W||f,X=Z||d,A=H||p;else return;let Q=!1;const ue=D[zt]=Qe=>{Q||(Q=!0,Qe?m(A,[D]):m(X,[D]),ae.delayedLeave&&ae.delayedLeave(),D[zt]=void 0)};z?w(z,[D,ue]):ue()},leave(D,z){const X=String(e.key);if(D[zt]&&D[zt](!0),n.isUnmounting)return z();m(x,[D]);let A=!1;const Q=D[Ue]=ue=>{A||(A=!0,z(),ue?m(I,[D]):m(B,[D]),D[Ue]=void 0,C[X]===e&&delete C[X])};C[X]=e,P?w(P,[D,Q]):Q()},clone(D){const z=Ft(D,t,n,s,r);return r&&r(z),z}};return ae}function xn(e){if(hn(e))return e=Ze(e),e.children=null,e}function Os(e){if(!hn(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&F(n.default))return n.default()}}function vt(e,t){e.shapeFlag&6&&e.component?vt(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function os(e,t=!1,n){let s=[],r=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,hn=e=>e.type.__isKeepAlive;function xi(e,t){Dr(e,"a",t)}function Ci(e,t){Dr(e,"da",t)}function Dr(e,t,n=he){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(pn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)hn(r.parent.vnode)&&Ti(s,t,n,r),r=r.parent}}function Ti(e,t,n,s){const r=pn(t,e,s,!0);Wr(()=>{Kn(s[t],r)},n)}function pn(e,t,n=he,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Je();const c=jt(n),a=Ee(t,n,e,i);return c(),Ye(),a});return s?r.unshift(o):r.push(o),o}}const He=e=>(t,n=he)=>{(!mn||e==="sp")&&pn(e,(...s)=>t(...s),n)},Ei=He("bm"),Ht=He("m"),Li=He("bu"),Vr=He("u"),Ur=He("bum"),Wr=He("um"),Si=He("sp"),Ai=He("rtg"),Oi=He("rtc");function Pi(e,t=he){pn("ec",e,t)}const Mi=Symbol.for("v-ndc");function Ri(e,t,n,s){let r;const o=n;if(R(e)||re(e)){r=new Array(e.length);for(let i=0,c=e.length;it(i,c,void 0,o));else{const i=Object.keys(e);r=new Array(i.length);for(let c=0,a=i.length;ce?ho(e)?as(e):Fn(e.parent):null,Ot=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Fn(e.parent),$root:e=>Fn(e.root),$emit:e=>e.emit,$options:e=>is(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ss(e.update)}),$nextTick:e=>e.n||(e.n=_i.bind(e.proxy)),$watch:e=>nl.bind(e)}),Cn=(e,t)=>e!==te&&!e.__isScriptSetup&&V(e,t),Ii={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:c,appContext:a}=e;let f;if(t[0]!=="$"){const P=i[t];if(P!==void 0)switch(P){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Cn(s,t))return i[t]=1,s[t];if(r!==te&&V(r,t))return i[t]=2,r[t];if((f=e.propsOptions[0])&&V(f,t))return i[t]=3,o[t];if(n!==te&&V(n,t))return i[t]=4,n[t];kn&&(i[t]=0)}}const d=Ot[t];let p,x;if(d)return t==="$attrs"&&be(e.attrs,"get",""),d(e);if((p=c.__cssModules)&&(p=p[t]))return p;if(n!==te&&V(n,t))return i[t]=4,n[t];if(x=a.config.globalProperties,V(x,t))return x[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Cn(r,t)?(r[t]=n,!0):s!==te&&V(s,t)?(s[t]=n,!0):V(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let c;return!!n[i]||e!==te&&V(e,i)||Cn(t,i)||(c=o[0])&&V(c,i)||V(s,i)||V(Ot,i)||V(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:V(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ps(e){return R(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let kn=!0;function $i(e){const t=is(e),n=e.proxy,s=e.ctx;kn=!1,t.beforeCreate&&Ms(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:c,provide:a,inject:f,created:d,beforeMount:p,mounted:x,beforeUpdate:P,updated:B,activated:I,deactivated:k,beforeDestroy:W,beforeUnmount:Z,destroyed:H,unmounted:N,render:C,renderTracked:m,renderTriggered:w,errorCaptured:ae,serverPrefetch:D,expose:z,inheritAttrs:X,components:A,directives:Q,filters:ue}=t;if(f&&Fi(f,s,null),i)for(const ee in i){const q=i[ee];F(q)&&(s[ee]=q.bind(n))}if(r){const ee=r.call(n,n);Y(ee)&&(e.data=Xn(ee))}if(kn=!0,o)for(const ee in o){const q=o[ee],Xe=F(q)?q.bind(n,n):F(q.get)?q.get.bind(n,n):Te,Bt=!F(q)&&F(q.set)?q.set.bind(n):Te,et=Tl({get:Xe,set:Bt});Object.defineProperty(s,ee,{enumerable:!0,configurable:!0,get:()=>et.value,set:Pe=>et.value=Pe})}if(c)for(const ee in c)Kr(c[ee],s,n,ee);if(a){const ee=F(a)?a.call(n):a;Reflect.ownKeys(ee).forEach(q=>{Di(q,ee[q])})}d&&Ms(d,e,"c");function ie(ee,q){R(q)?q.forEach(Xe=>ee(Xe.bind(n))):q&&ee(q.bind(n))}if(ie(Ei,p),ie(Ht,x),ie(Li,P),ie(Vr,B),ie(xi,I),ie(Ci,k),ie(Pi,ae),ie(Oi,m),ie(Ai,w),ie(Ur,Z),ie(Wr,N),ie(Si,D),R(z))if(z.length){const ee=e.exposed||(e.exposed={});z.forEach(q=>{Object.defineProperty(ee,q,{get:()=>n[q],set:Xe=>n[q]=Xe})})}else e.exposed||(e.exposed={});C&&e.render===Te&&(e.render=C),X!=null&&(e.inheritAttrs=X),A&&(e.components=A),Q&&(e.directives=Q)}function Fi(e,t,n=Te){R(e)&&(e=Nn(e));for(const s in e){const r=e[s];let o;Y(r)?"default"in r?o=Yt(r.from||s,r.default,!0):o=Yt(r.from||s):o=Yt(r),ye(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Ms(e,t,n){Ee(R(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Kr(e,t,n,s){const r=s.includes(".")?oo(n,s):()=>n[s];if(re(e)){const o=t[e];F(o)&&En(r,o)}else if(F(e))En(r,e.bind(n));else if(Y(e))if(R(e))e.forEach(o=>Kr(o,t,n,s));else{const o=F(e.handler)?e.handler.bind(n):t[e.handler];F(o)&&En(r,o,e)}}function is(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,c=o.get(t);let a;return c?a=c:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(f=>rn(a,f,i,!0)),rn(a,t,i)),Y(t)&&o.set(t,a),a}function rn(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&rn(e,o,n,!0),r&&r.forEach(i=>rn(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const c=ki[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const ki={data:Rs,props:Is,emits:Is,methods:Lt,computed:Lt,beforeCreate:pe,created:pe,beforeMount:pe,mounted:pe,beforeUpdate:pe,updated:pe,beforeDestroy:pe,beforeUnmount:pe,destroyed:pe,unmounted:pe,activated:pe,deactivated:pe,errorCaptured:pe,serverPrefetch:pe,components:Lt,directives:Lt,watch:Hi,provide:Rs,inject:Ni};function Rs(e,t){return t?e?function(){return ce(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function Ni(e,t){return Lt(Nn(e),Nn(t))}function Nn(e){if(R(e)){const t={};for(let n=0;n1)return n&&F(t)?t.call(s&&s.proxy):t}}const zr={},Zr=()=>Object.create(zr),qr=e=>Object.getPrototypeOf(e)===zr;function Vi(e,t,n,s=!1){const r={},o=Zr();e.propsDefaults=Object.create(null),Jr(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:li(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Ui(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,c=U(r),[a]=e.propsOptions;let f=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let p=0;p{a=!0;const[x,P]=Yr(p,t,!0);ce(i,x),P&&c.push(...P)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!a)return Y(e)&&s.set(e,_t),_t;if(R(o))for(let d=0;de[0]==="_"||e==="$stable",ls=e=>R(e)?e.map(Ie):[Ie(e)],Ki=(e,t,n)=>{if(t._n)return t;const s=rs((...r)=>ls(t(...r)),n);return s._c=!1,s},Xr=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Qr(r))continue;const o=e[r];if(F(o))t[r]=Ki(r,o,s);else if(o!=null){const i=ls(o);t[r]=()=>i}}},eo=(e,t)=>{const n=ls(t);e.slots.default=()=>n},to=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},Gi=(e,t,n)=>{const s=e.slots=Zr();if(e.vnode.shapeFlag&32){const r=t._;r?(to(s,t,n),n&&fr(s,"_",r,!0)):Xr(t,s)}else t&&eo(e,t)},zi=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=te;if(s.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:to(r,t,n):(o=!t.$stable,Xr(t,r)),i=t}else t&&(eo(e,t),i={default:1});if(o)for(const c in r)!Qr(c)&&i[c]==null&&delete r[c]};function jn(e,t,n,s,r=!1){if(R(e)){e.forEach((x,P)=>jn(x,t&&(R(t)?t[P]:t),n,s,r));return}if(Jt(s)&&!r)return;const o=s.shapeFlag&4?as(s.component):s.el,i=r?null:o,{i:c,r:a}=e,f=t&&t.r,d=c.refs===te?c.refs={}:c.refs,p=c.setupState;if(f!=null&&f!==a&&(re(f)?(d[f]=null,V(p,f)&&(p[f]=null)):ye(f)&&(f.value=null)),F(a))Ge(a,c,12,[i,d]);else{const x=re(a),P=ye(a);if(x||P){const B=()=>{if(e.f){const I=x?V(p,a)?p[a]:d[a]:a.value;r?R(I)&&Kn(I,o):R(I)?I.includes(o)||I.push(o):x?(d[a]=[o],V(p,a)&&(p[a]=d[a])):(a.value=[o],e.k&&(d[e.k]=a.value))}else x?(d[a]=i,V(p,a)&&(p[a]=i)):P&&(a.value=i,e.k&&(d[e.k]=i))};i?(B.id=-1,ge(B,n)):B()}}}const Zi=Symbol("_vte"),qi=e=>e.__isTeleport,ge=ul;function Ji(e){return Yi(e)}function Yi(e,t){const n=dr();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:c,createComment:a,setText:f,setElementText:d,parentNode:p,nextSibling:x,setScopeId:P=Te,insertStaticContent:B}=e,I=(l,u,h,b=null,_=null,v=null,L=void 0,T=null,E=!!u.dynamicChildren)=>{if(l===u)return;l&&!lt(l,u)&&(b=Dt(l),Pe(l,_,v,!0),l=null),u.patchFlag===-2&&(E=!1,u.dynamicChildren=null);const{type:g,ref:S,shapeFlag:M}=u;switch(g){case gn:k(l,u,h,b);break;case we:W(l,u,h,b);break;case Qt:l==null&&Z(u,h,b,L);break;case me:A(l,u,h,b,_,v,L,T,E);break;default:M&1?C(l,u,h,b,_,v,L,T,E):M&6?Q(l,u,h,b,_,v,L,T,E):(M&64||M&128)&&g.process(l,u,h,b,_,v,L,T,E,Ct)}S!=null&&_&&jn(S,l&&l.ref,v,u||l,!u)},k=(l,u,h,b)=>{if(l==null)s(u.el=c(u.children),h,b);else{const _=u.el=l.el;u.children!==l.children&&f(_,u.children)}},W=(l,u,h,b)=>{l==null?s(u.el=a(u.children||""),h,b):u.el=l.el},Z=(l,u,h,b)=>{[l.el,l.anchor]=B(l.children,u,h,b,l.el,l.anchor)},H=({el:l,anchor:u},h,b)=>{let _;for(;l&&l!==u;)_=x(l),s(l,h,b),l=_;s(u,h,b)},N=({el:l,anchor:u})=>{let h;for(;l&&l!==u;)h=x(l),r(l),l=h;r(u)},C=(l,u,h,b,_,v,L,T,E)=>{u.type==="svg"?L="svg":u.type==="math"&&(L="mathml"),l==null?m(u,h,b,_,v,L,T,E):D(l,u,_,v,L,T,E)},m=(l,u,h,b,_,v,L,T)=>{let E,g;const{props:S,shapeFlag:M,transition:O,dirs:$}=l;if(E=l.el=i(l.type,v,S&&S.is,S),M&8?d(E,l.children):M&16&&ae(l.children,E,null,b,_,Tn(l,v),L,T),$&&tt(l,null,b,"created"),w(E,l,l.scopeId,L,b),S){for(const J in S)J!=="value"&&!St(J)&&o(E,J,null,S[J],v,b);"value"in S&&o(E,"value",null,S.value,v),(g=S.onVnodeBeforeMount)&&Re(g,b,l)}$&&tt(l,null,b,"beforeMount");const j=Qi(_,O);j&&O.beforeEnter(E),s(E,u,h),((g=S&&S.onVnodeMounted)||j||$)&&ge(()=>{g&&Re(g,b,l),j&&O.enter(E),$&&tt(l,null,b,"mounted")},_)},w=(l,u,h,b,_)=>{if(h&&P(l,h),b)for(let v=0;v{for(let g=E;g{const T=u.el=l.el;let{patchFlag:E,dynamicChildren:g,dirs:S}=u;E|=l.patchFlag&16;const M=l.props||te,O=u.props||te;let $;if(h&&nt(h,!1),($=O.onVnodeBeforeUpdate)&&Re($,h,u,l),S&&tt(u,l,h,"beforeUpdate"),h&&nt(h,!0),(M.innerHTML&&O.innerHTML==null||M.textContent&&O.textContent==null)&&d(T,""),g?z(l.dynamicChildren,g,T,h,b,Tn(u,_),v):L||q(l,u,T,null,h,b,Tn(u,_),v,!1),E>0){if(E&16)X(T,M,O,h,_);else if(E&2&&M.class!==O.class&&o(T,"class",null,O.class,_),E&4&&o(T,"style",M.style,O.style,_),E&8){const j=u.dynamicProps;for(let J=0;J{$&&Re($,h,u,l),S&&tt(u,l,h,"updated")},b)},z=(l,u,h,b,_,v,L)=>{for(let T=0;T{if(u!==h){if(u!==te)for(const v in u)!St(v)&&!(v in h)&&o(l,v,u[v],null,_,b);for(const v in h){if(St(v))continue;const L=h[v],T=u[v];L!==T&&v!=="value"&&o(l,v,T,L,_,b)}"value"in h&&o(l,"value",u.value,h.value,_)}},A=(l,u,h,b,_,v,L,T,E)=>{const g=u.el=l?l.el:c(""),S=u.anchor=l?l.anchor:c("");let{patchFlag:M,dynamicChildren:O,slotScopeIds:$}=u;$&&(T=T?T.concat($):$),l==null?(s(g,h,b),s(S,h,b),ae(u.children||[],h,S,_,v,L,T,E)):M>0&&M&64&&O&&l.dynamicChildren?(z(l.dynamicChildren,O,h,_,v,L,T),(u.key!=null||_&&u===_.subTree)&&no(l,u,!0)):q(l,u,h,S,_,v,L,T,E)},Q=(l,u,h,b,_,v,L,T,E)=>{u.slotScopeIds=T,l==null?u.shapeFlag&512?_.ctx.activate(u,h,b,L,E):ue(u,h,b,_,v,L,E):Qe(l,u,E)},ue=(l,u,h,b,_,v,L)=>{const T=l.component=bl(l,b,_);if(hn(l)&&(T.ctx.renderer=Ct),yl(T,!1,L),T.asyncDep){if(_&&_.registerDep(T,ie,L),!l.el){const E=T.subTree=oe(we);W(null,E,u,h)}}else ie(T,l,u,h,_,v,L)},Qe=(l,u,h)=>{const b=u.component=l.component;if(ll(l,u,h))if(b.asyncDep&&!b.asyncResolved){ee(b,u,h);return}else b.next=u,mi(b.update),b.effect.dirty=!0,b.update();else u.el=l.el,b.vnode=u},ie=(l,u,h,b,_,v,L)=>{const T=()=>{if(l.isMounted){let{next:S,bu:M,u:O,parent:$,vnode:j}=l;{const ht=so(l);if(ht){S&&(S.el=j.el,ee(l,S,L)),ht.asyncDep.then(()=>{l.isUnmounted||T()});return}}let J=S,K;nt(l,!1),S?(S.el=j.el,ee(l,S,L)):S=j,M&&vn(M),(K=S.props&&S.props.onVnodeBeforeUpdate)&&Re(K,$,S,j),nt(l,!0);const le=Ln(l),Le=l.subTree;l.subTree=le,I(Le,le,p(Le.el),Dt(Le),l,_,v),S.el=le.el,J===null&&cl(l,le.el),O&&ge(O,_),(K=S.props&&S.props.onVnodeUpdated)&&ge(()=>Re(K,$,S,j),_)}else{let S;const{el:M,props:O}=u,{bm:$,m:j,parent:J}=l,K=Jt(u);if(nt(l,!1),$&&vn($),!K&&(S=O&&O.onVnodeBeforeMount)&&Re(S,J,u),nt(l,!0),M&&gs){const le=()=>{l.subTree=Ln(l),gs(M,l.subTree,l,_,null)};K?u.type.__asyncLoader().then(()=>!l.isUnmounted&&le()):le()}else{const le=l.subTree=Ln(l);I(null,le,h,b,l,_,v),u.el=le.el}if(j&&ge(j,_),!K&&(S=O&&O.onVnodeMounted)){const le=u;ge(()=>Re(S,J,le),_)}(u.shapeFlag&256||J&&Jt(J.vnode)&&J.vnode.shapeFlag&256)&&l.a&&ge(l.a,_),l.isMounted=!0,u=h=b=null}},E=l.effect=new Zn(T,Te,()=>ss(g),l.scope),g=l.update=()=>{E.dirty&&E.run()};g.i=l,g.id=l.uid,nt(l,!0),g()},ee=(l,u,h)=>{u.component=l;const b=l.vnode.props;l.vnode=u,l.next=null,Ui(l,u.props,b,h),zi(l,u.children,h),Je(),As(l),Ye()},q=(l,u,h,b,_,v,L,T,E=!1)=>{const g=l&&l.children,S=l?l.shapeFlag:0,M=u.children,{patchFlag:O,shapeFlag:$}=u;if(O>0){if(O&128){Bt(g,M,h,b,_,v,L,T,E);return}else if(O&256){Xe(g,M,h,b,_,v,L,T,E);return}}$&8?(S&16&&xt(g,_,v),M!==g&&d(h,M)):S&16?$&16?Bt(g,M,h,b,_,v,L,T,E):xt(g,_,v,!0):(S&8&&d(h,""),$&16&&ae(M,h,b,_,v,L,T,E))},Xe=(l,u,h,b,_,v,L,T,E)=>{l=l||_t,u=u||_t;const g=l.length,S=u.length,M=Math.min(g,S);let O;for(O=0;OS?xt(l,_,v,!0,!1,M):ae(u,h,b,_,v,L,T,E,M)},Bt=(l,u,h,b,_,v,L,T,E)=>{let g=0;const S=u.length;let M=l.length-1,O=S-1;for(;g<=M&&g<=O;){const $=l[g],j=u[g]=E?We(u[g]):Ie(u[g]);if(lt($,j))I($,j,h,null,_,v,L,T,E);else break;g++}for(;g<=M&&g<=O;){const $=l[M],j=u[O]=E?We(u[O]):Ie(u[O]);if(lt($,j))I($,j,h,null,_,v,L,T,E);else break;M--,O--}if(g>M){if(g<=O){const $=O+1,j=$O)for(;g<=M;)Pe(l[g],_,v,!0),g++;else{const $=g,j=g,J=new Map;for(g=j;g<=O;g++){const ve=u[g]=E?We(u[g]):Ie(u[g]);ve.key!=null&&J.set(ve.key,g)}let K,le=0;const Le=O-j+1;let ht=!1,ms=0;const Tt=new Array(Le);for(g=0;g=Le){Pe(ve,_,v,!0);continue}let Me;if(ve.key!=null)Me=J.get(ve.key);else for(K=j;K<=O;K++)if(Tt[K-j]===0&<(ve,u[K])){Me=K;break}Me===void 0?Pe(ve,_,v,!0):(Tt[Me-j]=g+1,Me>=ms?ms=Me:ht=!0,I(ve,u[Me],h,null,_,v,L,T,E),le++)}const bs=ht?Xi(Tt):_t;for(K=bs.length-1,g=Le-1;g>=0;g--){const ve=j+g,Me=u[ve],ys=ve+1{const{el:v,type:L,transition:T,children:E,shapeFlag:g}=l;if(g&6){et(l.component.subTree,u,h,b);return}if(g&128){l.suspense.move(u,h,b);return}if(g&64){L.move(l,u,h,Ct);return}if(L===me){s(v,u,h);for(let M=0;MT.enter(v),_);else{const{leave:M,delayLeave:O,afterLeave:$}=T,j=()=>s(v,u,h),J=()=>{M(v,()=>{j(),$&&$()})};O?O(v,j,J):J()}else s(v,u,h)},Pe=(l,u,h,b=!1,_=!1)=>{const{type:v,props:L,ref:T,children:E,dynamicChildren:g,shapeFlag:S,patchFlag:M,dirs:O,cacheIndex:$}=l;if(M===-2&&(_=!1),T!=null&&jn(T,null,h,l,!0),$!=null&&(u.renderCache[$]=void 0),S&256){u.ctx.deactivate(l);return}const j=S&1&&O,J=!Jt(l);let K;if(J&&(K=L&&L.onVnodeBeforeUnmount)&&Re(K,u,l),S&6)Eo(l.component,h,b);else{if(S&128){l.suspense.unmount(h,b);return}j&&tt(l,null,u,"beforeUnmount"),S&64?l.type.remove(l,u,h,Ct,b):g&&!g.hasOnce&&(v!==me||M>0&&M&64)?xt(g,u,h,!1,!0):(v===me&&M&384||!_&&S&16)&&xt(E,u,h),b&&hs(l)}(J&&(K=L&&L.onVnodeUnmounted)||j)&&ge(()=>{K&&Re(K,u,l),j&&tt(l,null,u,"unmounted")},h)},hs=l=>{const{type:u,el:h,anchor:b,transition:_}=l;if(u===me){To(h,b);return}if(u===Qt){N(l);return}const v=()=>{r(h),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(l.shapeFlag&1&&_&&!_.persisted){const{leave:L,delayLeave:T}=_,E=()=>L(h,v);T?T(l.el,v,E):E()}else v()},To=(l,u)=>{let h;for(;l!==u;)h=x(l),r(l),l=h;r(u)},Eo=(l,u,h)=>{const{bum:b,scope:_,update:v,subTree:L,um:T,m:E,a:g}=l;Fs(E),Fs(g),b&&vn(b),_.stop(),v&&(v.active=!1,Pe(L,l,u,h)),T&&ge(T,u),ge(()=>{l.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&l.asyncDep&&!l.asyncResolved&&l.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},xt=(l,u,h,b=!1,_=!1,v=0)=>{for(let L=v;L{if(l.shapeFlag&6)return Dt(l.component.subTree);if(l.shapeFlag&128)return l.suspense.next();const u=x(l.anchor||l.el),h=u&&u[Zi];return h?x(h):u};let bn=!1;const ps=(l,u,h)=>{l==null?u._vnode&&Pe(u._vnode,null,null,!0):I(u._vnode||null,l,u,null,null,null,h),u._vnode=l,bn||(bn=!0,As(),$r(),bn=!1)},Ct={p:I,um:Pe,m:et,r:hs,mt:ue,mc:ae,pc:q,pbc:z,n:Dt,o:e};let _s,gs;return{render:ps,hydrate:_s,createApp:Bi(ps,_s)}}function Tn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function nt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Qi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function no(e,t,n=!1){const s=e.children,r=t.children;if(R(s)&&R(r))for(let o=0;o>1,e[n[c]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function so(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:so(t)}function Fs(e){if(e)for(let t=0;tYt(el),Zt={};function En(e,t,n){return ro(e,t,n)}function ro(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:c}=te){if(t&&o){const m=t;t=(...w)=>{m(...w),C()}}const a=he,f=m=>s===!0?m:it(m,s===!1?1:void 0);let d,p=!1,x=!1;if(ye(e)?(d=()=>e.value,p=yt(e)):At(e)?(d=()=>f(e),p=!0):R(e)?(x=!0,p=e.some(m=>At(m)||yt(m)),d=()=>e.map(m=>{if(ye(m))return m.value;if(At(m))return f(m);if(F(m))return Ge(m,a,2)})):F(e)?t?d=()=>Ge(e,a,2):d=()=>(P&&P(),Ee(e,a,3,[B])):d=Te,t&&s){const m=d;d=()=>it(m())}let P,B=m=>{P=H.onStop=()=>{Ge(m,a,4),P=H.onStop=void 0}},I;if(mn)if(B=Te,t?n&&Ee(t,a,3,[d(),x?[]:void 0,B]):d(),r==="sync"){const m=tl();I=m.__watcherHandles||(m.__watcherHandles=[])}else return Te;let k=x?new Array(e.length).fill(Zt):Zt;const W=()=>{if(!(!H.active||!H.dirty))if(t){const m=H.run();(s||p||(x?m.some((w,ae)=>ze(w,k[ae])):ze(m,k)))&&(P&&P(),Ee(t,a,3,[m,k===Zt?void 0:x&&k[0]===Zt?[]:k,B]),k=m)}else H.run()};W.allowRecurse=!!t;let Z;r==="sync"?Z=W:r==="post"?Z=()=>ge(W,a&&a.suspense):(W.pre=!0,a&&(W.id=a.uid),Z=()=>ss(W));const H=new Zn(d,Te,Z),N=Do(),C=()=>{H.stop(),N&&Kn(N.effects,H)};return t?n?W():k=H.run():r==="post"?ge(H.run.bind(H),a&&a.suspense):H.run(),I&&I.push(C),C}function nl(e,t,n){const s=this.proxy,r=re(e)?e.includes(".")?oo(s,e):()=>s[e]:e.bind(s,s);let o;F(t)?o=t:(o=t.handler,n=t);const i=jt(this),c=ro(r,o.bind(s),n);return i(),c}function oo(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{it(s,t,n)});else if(ar(e)){for(const s in e)it(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&it(e[s],t,n)}return e}const sl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ut(t)}Modifiers`]||e[`${dt(t)}Modifiers`];function rl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||te;let r=n;const o=t.startsWith("update:"),i=o&&sl(s,t.slice(7));i&&(i.trim&&(r=n.map(d=>re(d)?d.trim():d)),i.number&&(r=n.map(Mo)));let c,a=s[c=yn(t)]||s[c=yn(ut(t))];!a&&o&&(a=s[c=yn(dt(t))]),a&&Ee(a,e,6,r);const f=s[c+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Ee(f,e,6,r)}}function io(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},c=!1;if(!F(e)){const a=f=>{const d=io(f,t,!0);d&&(c=!0,ce(i,d))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!c?(Y(e)&&s.set(e,null),null):(R(o)?o.forEach(a=>i[a]=null):ce(i,o),Y(e)&&s.set(e,i),i)}function _n(e,t){return!e||!cn(t)?!1:(t=t.slice(2).replace(/Once$/,""),V(e,t[0].toLowerCase()+t.slice(1))||V(e,dt(t))||V(e,t))}function Ln(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:c,emit:a,render:f,renderCache:d,props:p,data:x,setupState:P,ctx:B,inheritAttrs:I}=e,k=sn(e);let W,Z;try{if(n.shapeFlag&4){const N=r||s,C=N;W=Ie(f.call(C,N,d,p,P,x,B)),Z=c}else{const N=t;W=Ie(N.length>1?N(p,{attrs:c,slots:i,emit:a}):N(p,null)),Z=t.props?c:ol(c)}}catch(N){Pt.length=0,dn(N,e,1),W=oe(we)}let H=W;if(Z&&I!==!1){const N=Object.keys(Z),{shapeFlag:C}=H;N.length&&C&7&&(o&&N.some(Wn)&&(Z=il(Z,o)),H=Ze(H,Z,!1,!0))}return n.dirs&&(H=Ze(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&(H.transition=n.transition),W=H,sn(k),W}const ol=e=>{let t;for(const n in e)(n==="class"||n==="style"||cn(n))&&((t||(t={}))[n]=e[n]);return t},il=(e,t)=>{const n={};for(const s in e)(!Wn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ll(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:c,patchFlag:a}=t,f=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?ks(s,i,f):!!i;if(a&8){const d=t.dynamicProps;for(let p=0;pe.__isSuspense;function ul(e,t){t&&t.pendingBranch?R(e)?t.effects.push(...e):t.effects.push(e):bi(e)}const me=Symbol.for("v-fgt"),gn=Symbol.for("v-txt"),we=Symbol.for("v-cmt"),Qt=Symbol.for("v-stc"),Pt=[];let xe=null;function fe(e=!1){Pt.push(xe=e?null:[])}function fl(){Pt.pop(),xe=Pt[Pt.length-1]||null}let kt=1;function Ns(e){kt+=e,e<0&&xe&&(xe.hasOnce=!0)}function lo(e){return e.dynamicChildren=kt>0?xe||_t:null,fl(),kt>0&&xe&&xe.push(e),e}function _e(e,t,n,s,r,o){return lo(G(e,t,n,s,r,o,!0))}function dl(e,t,n,s,r){return lo(oe(e,t,n,s,r,!0))}function Bn(e){return e?e.__v_isVNode===!0:!1}function lt(e,t){return e.type===t.type&&e.key===t.key}const co=({key:e})=>e??null,Xt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?re(e)||ye(e)||F(e)?{i:Oe,r:e,k:t,f:!!n}:e:null);function G(e,t=null,n=null,s=0,r=null,o=e===me?0:1,i=!1,c=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&co(t),ref:t&&Xt(t),scopeId:kr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Oe};return c?(cs(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=re(n)?8:16),kt>0&&!i&&xe&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&xe.push(a),a}const oe=hl;function hl(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Mi)&&(e=we),Bn(e)){const c=Ze(e,t,!0);return n&&cs(c,n),kt>0&&!o&&xe&&(c.shapeFlag&6?xe[xe.indexOf(e)]=c:xe.push(c)),c.patchFlag=-2,c}if(Cl(e)&&(e=e.__vccOpts),t){t=pl(t);let{class:c,style:a}=t;c&&!re(c)&&(t.class=Mt(c)),Y(a)&&(Ar(a)&&!R(a)&&(a=ce({},a)),t.style=zn(a))}const i=re(e)?1:al(e)?128:qi(e)?64:Y(e)?4:F(e)?2:0;return G(e,t,n,s,r,i,o,!0)}function pl(e){return e?Ar(e)||qr(e)?ce({},e):e:null}function Ze(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:c,transition:a}=e,f=t?_l(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&co(f),ref:t&&t.ref?n&&o?R(o)?o.concat(Xt(t)):[o,Xt(t)]:Xt(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ze(e.ssContent),ssFallback:e.ssFallback&&Ze(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&vt(d,a.clone(d)),d}function ao(e=" ",t=0){return oe(gn,null,e,t)}function uo(e,t){const n=oe(Qt,null,e);return n.staticCount=t,n}function pt(e="",t=!1){return t?(fe(),dl(we,null,e)):oe(we,null,e)}function Ie(e){return e==null||typeof e=="boolean"?oe(we):R(e)?oe(me,null,e.slice()):typeof e=="object"?We(e):oe(gn,null,String(e))}function We(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ze(e)}function cs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(R(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),cs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!qr(t)?t._ctx=Oe:r===3&&Oe&&(Oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else F(t)?(t={default:t,_ctx:Oe},n=32):(t=String(t),s&64?(n=16,t=[ao(t)]):n=8);e.children=t,e.shapeFlag|=n}function _l(...e){const t={};for(let n=0;nhe||Oe;let on,Dn;{const e=dr(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};on=t("__VUE_INSTANCE_SETTERS__",n=>he=n),Dn=t("__VUE_SSR_SETTERS__",n=>mn=n)}const jt=e=>{const t=he;return on(e),e.scope.on(),()=>{e.scope.off(),on(t)}},Hs=()=>{he&&he.scope.off(),on(null)};function ho(e){return e.vnode.shapeFlag&4}let mn=!1;function yl(e,t=!1,n=!1){t&&Dn(t);const{props:s,children:r}=e.vnode,o=ho(e);Vi(e,s,o,t),Gi(e,r,n);const i=o?vl(e,t):void 0;return t&&Dn(!1),i}function vl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ii);const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?xl(e):null,o=jt(e);Je();const i=Ge(s,e,0,[e.props,r]);if(Ye(),o(),lr(i)){if(i.then(Hs,Hs),t)return i.then(c=>{js(e,c,t)}).catch(c=>{dn(c,e,0)});e.asyncDep=i}else js(e,i,t)}else po(e,t)}function js(e,t,n){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Y(t)&&(e.setupState=Mr(t)),po(e,n)}let Bs;function po(e,t,n){const s=e.type;if(!e.render){if(!t&&Bs&&!s.render){const r=s.template||is(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:a}=s,f=ce(ce({isCustomElement:o,delimiters:c},i),a);s.render=Bs(r,f)}}e.render=s.render||Te}{const r=jt(e);Je();try{$i(e)}finally{Ye(),r()}}}const wl={get(e,t){return be(e,"get",""),e[t]}};function xl(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,wl),slots:e.slots,emit:e.emit,expose:t}}function as(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Mr(ci(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ot)return Ot[n](e)},has(t,n){return n in t||n in Ot}})):e.proxy}function Cl(e){return F(e)&&"__vccOpts"in e}const Tl=(e,t)=>ai(e,t,mn);function El(e,t,n){const s=arguments.length;return s===2?Y(t)&&!R(t)?Bn(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Bn(n)&&(n=[n]),oe(e,t,n))}const Ll="3.4.38";/** * @vue/runtime-dom v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const Ll="http://www.w3.org/2000/svg",Al="http://www.w3.org/1998/Math/MathML",ke=typeof document<"u"?document:null,Ds=ke&&ke.createElement("template"),Ol={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?ke.createElementNS(Ll,e):t==="mathml"?ke.createElementNS(Al,e):n?ke.createElement(e,{is:n}):ke.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ke.createTextNode(e),createComment:e=>ke.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ke.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Ds.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const c=Ds.content;if(s==="svg"||s==="mathml"){const a=c.firstChild;for(;a.firstChild;)c.appendChild(a.firstChild);c.removeChild(a)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Be="transition",Et="animation",wt=Symbol("_vtc"),us=(e,{slots:t})=>El(wi,go(e),t);us.displayName="Transition";const _o={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Pl=us.props=ce({},Hr,_o),st=(e,t=[])=>{R(e)?e.forEach(n=>n(...t)):e&&e(...t)},Vs=e=>e?R(e)?e.some(t=>t.length>1):e.length>1:!1;function go(e){const t={};for(const A in e)A in _o||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:a=o,appearActiveClass:d=i,appearToClass:f=c,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:x=`${n}-leave-active`,leaveToClass:P=`${n}-leave-to`}=e,B=Ml(r),I=B&&B[0],k=B&&B[1],{onBeforeEnter:K,onEnter:Z,onEnterCancelled:H,onLeave:N,onLeaveCancelled:C,onBeforeAppear:m=K,onAppear:w=Z,onAppearCancelled:ae=H}=t,D=(A,Q,ue)=>{De(A,Q?f:c),De(A,Q?d:i),ue&&ue()},z=(A,Q)=>{A._isLeaving=!1,De(A,p),De(A,P),De(A,x),Q&&Q()},X=A=>(Q,ue)=>{const Qe=A?w:Z,ie=()=>D(Q,A,ue);st(Qe,[Q,ie]),Us(()=>{De(Q,A?a:o),Fe(Q,A?f:c),Vs(Qe)||Ks(Q,s,I,ie)})};return ce(t,{onBeforeEnter(A){st(K,[A]),Fe(A,o),Fe(A,i)},onBeforeAppear(A){st(m,[A]),Fe(A,a),Fe(A,d)},onEnter:X(!1),onAppear:X(!0),onLeave(A,Q){A._isLeaving=!0;const ue=()=>z(A,Q);Fe(A,p),Fe(A,x),bo(),Us(()=>{A._isLeaving&&(De(A,p),Fe(A,P),Vs(N)||Ks(A,s,k,ue))}),st(N,[A,ue])},onEnterCancelled(A){D(A,!1),st(H,[A])},onAppearCancelled(A){D(A,!0),st(ae,[A])},onLeaveCancelled(A){z(A),st(C,[A])}})}function Ml(e){if(e==null)return null;if(Y(e))return[Ln(e.enter),Ln(e.leave)];{const t=Ln(e);return[t,t]}}function Ln(e){return Ro(e)}function Fe(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[wt]||(e[wt]=new Set)).add(t)}function De(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[wt];n&&(n.delete(t),n.size||(e[wt]=void 0))}function Us(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Rl=0;function Ks(e,t,n,s){const r=e._endId=++Rl,o=()=>{r===e._endId&&s()};if(n)return setTimeout(o,n);const{type:i,timeout:c,propCount:a}=mo(e,t);if(!i)return s();const d=i+"end";let f=0;const p=()=>{e.removeEventListener(d,x),o()},x=P=>{P.target===e&&++f>=a&&p()};setTimeout(()=>{f(n[B]||"").split(", "),r=s(`${Be}Delay`),o=s(`${Be}Duration`),i=Ws(r,o),c=s(`${Et}Delay`),a=s(`${Et}Duration`),d=Ws(c,a);let f=null,p=0,x=0;t===Be?i>0&&(f=Be,p=i,x=o.length):t===Et?d>0&&(f=Et,p=d,x=a.length):(p=Math.max(i,d),f=p>0?i>d?Be:Et:null,x=f?f===Be?o.length:a.length:0);const P=f===Be&&/\b(transform|all)(,|$)/.test(s(`${Be}Property`).toString());return{type:f,timeout:p,propCount:x,hasTransform:P}}function Ws(e,t){for(;e.lengthGs(n)+Gs(e[s])))}function Gs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function bo(){return document.body.offsetHeight}function Il(e,t,n){const s=e[wt];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const zs=Symbol("_vod"),$l=Symbol("_vsh"),Fl=Symbol(""),kl=/(^|;)\s*display\s*:/;function Nl(e,t,n){const s=e.style,r=re(n);let o=!1;if(n&&!r){if(t)if(re(t))for(const i of t.split(";")){const c=i.slice(0,i.indexOf(":")).trim();n[c]==null&&en(s,c,"")}else for(const i in t)n[i]==null&&en(s,i,"");for(const i in n)i==="display"&&(o=!0),en(s,i,n[i])}else if(r){if(t!==n){const i=s[Fl];i&&(n+=";"+i),s.cssText=n,o=kl.test(n)}}else t&&e.removeAttribute("style");zs in e&&(e[zs]=o?s.display:"",e[$l]&&(s.display="none"))}const Zs=/\s*!important$/;function en(e,t,n){if(R(n))n.forEach(s=>en(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Hl(e,t);Zs.test(n)?e.setProperty(dt(s),n.replace(Zs,""),"important"):e[s]=n}}const qs=["Webkit","Moz","ms"],An={};function Hl(e,t){const n=An[t];if(n)return n;let s=ut(t);if(s!=="filter"&&s in e)return An[t]=s;s=ur(s);for(let r=0;rOn||(Kl.then(()=>On=0),On=Date.now());function Gl(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ee(zl(s,n.value),t,5,[s])};return n.value=e,n.attached=Wl(),n}function zl(e,t){if(R(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const er=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Zl=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Il(e,s,i):t==="style"?Nl(e,n,s):cn(t)?Kn(t)||Vl(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ql(e,t,s,i))?(jl(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ys(e,t,s,i,o,t!=="value")):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ys(e,t,s,i))};function ql(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&er(t)&&F(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return er(t)&&re(n)?!1:t in e}const yo=new WeakMap,vo=new WeakMap,ln=Symbol("_moveCb"),tr=Symbol("_enterCb"),wo={name:"TransitionGroup",props:ce({},Pl,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=fo(),s=Nr();let r,o;return Vr(()=>{if(!r.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!tc(r[0].el,n.vnode.el,i))return;r.forEach(Ql),r.forEach(Xl);const c=r.filter(ec);bo(),c.forEach(a=>{const d=a.el,f=d.style;Fe(d,i),f.transform=f.webkitTransform=f.transitionDuration="";const p=d[ln]=x=>{x&&x.target!==d||(!x||/transform$/.test(x.propertyName))&&(d.removeEventListener("transitionend",p),d[ln]=null,De(d,i))};d.addEventListener("transitionend",p)})}),()=>{const i=U(e),c=go(i);let a=i.tag||me;if(r=[],o)for(let d=0;ddelete e.mode;wo.props;const Yl=wo;function Ql(e){const t=e.el;t[ln]&&t[ln](),t[tr]&&t[tr]()}function Xl(e){vo.set(e,e.el.getBoundingClientRect())}function ec(e){const t=yo.get(e),n=vo.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${s}px,${r}px)`,o.transitionDuration="0s",e}}function tc(e,t,n){const s=e.cloneNode(),r=e[wt];r&&r.forEach(c=>{c.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(c=>c&&s.classList.add(c)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:i}=mo(s);return o.removeChild(s),i}const nc=ce({patchProp:Zl},Ol);let nr;function sc(){return nr||(nr=Ji(nc))}const rc=(...e)=>{const t=sc().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=ic(s);if(!r)return;const o=t._component;!F(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,oc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function oc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ic(e){return re(e)?document.querySelector(e):e}var lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cc=window.device,y={},Vn=[];window.device=y;var Nt=window.document.documentElement,ac=window.navigator.userAgent.toLowerCase(),sr=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","pov_tv","hbbtv","ce-html"];y.macos=function(){return ne("mac")};y.ios=function(){return y.iphone()||y.ipod()||y.ipad()};y.iphone=function(){return!y.windows()&&ne("iphone")};y.ipod=function(){return ne("ipod")};y.ipad=function(){var e=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1;return ne("ipad")||e};y.android=function(){return!y.windows()&&ne("android")};y.androidPhone=function(){return y.android()&&ne("mobile")};y.androidTablet=function(){return y.android()&&!ne("mobile")};y.blackberry=function(){return ne("blackberry")||ne("bb10")};y.blackberryPhone=function(){return y.blackberry()&&!ne("tablet")};y.blackberryTablet=function(){return y.blackberry()&&ne("tablet")};y.windows=function(){return ne("windows")};y.windowsPhone=function(){return y.windows()&&ne("phone")};y.windowsTablet=function(){return y.windows()&&ne("touch")&&!y.windowsPhone()};y.fxos=function(){return(ne("(mobile")||ne("(tablet"))&&ne(" rv:")};y.fxosPhone=function(){return y.fxos()&&ne("mobile")};y.fxosTablet=function(){return y.fxos()&&ne("tablet")};y.meego=function(){return ne("meego")};y.cordova=function(){return window.cordova&&location.protocol==="file:"};y.nodeWebkit=function(){return lc(window.process)==="object"};y.mobile=function(){return y.androidPhone()||y.iphone()||y.ipod()||y.windowsPhone()||y.blackberryPhone()||y.fxosPhone()||y.meego()};y.tablet=function(){return y.ipad()||y.androidTablet()||y.blackberryTablet()||y.windowsTablet()||y.fxosTablet()};y.desktop=function(){return!y.tablet()&&!y.mobile()};y.television=function(){for(var e=0;e1};y.landscape=function(){return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?fs(screen.orientation.type,"landscape"):y.ios()&&Object.prototype.hasOwnProperty.call(window,"orientation")?Math.abs(window.orientation)===90:window.innerHeight/window.innerWidth<1};y.noConflict=function(){return window.device=cc,this};function fs(e,t){return e.indexOf(t)!==-1}function ne(e){return fs(ac,e)}function xo(e){return Nt.className.match(new RegExp(e,"i"))}function se(e){var t=null;xo(e)||(t=Nt.className.replace(/^\s+|\s+$/g,""),Nt.className=t+" "+e)}function rr(e){xo(e)&&(Nt.className=Nt.className.replace(" "+e,""))}y.ios()?y.ipad()?se("ios ipad tablet"):y.iphone()?se("ios iphone mobile"):y.ipod()&&se("ios ipod mobile"):y.macos()?se("macos desktop"):y.android()?y.androidTablet()?se("android tablet"):se("android mobile"):y.blackberry()?y.blackberryTablet()?se("blackberry tablet"):se("blackberry mobile"):y.windows()?y.windowsTablet()?se("windows tablet"):y.windowsPhone()?se("windows mobile"):se("windows desktop"):y.fxos()?y.fxosTablet()?se("fxos tablet"):se("fxos mobile"):y.meego()?se("meego mobile"):y.nodeWebkit()?se("node-webkit"):y.television()?se("television"):y.desktop()&&se("desktop");y.cordova()&&se("cordova");function tn(){y.landscape()?(rr("portrait"),se("landscape"),or("landscape")):(rr("landscape"),se("portrait"),or("portrait")),Co()}function or(e){for(var t=0;t',5),vc=[yc],wc={key:0,xmlns:"http://www.w3.org/2000/svg",width:"30px",height:"30px",viewBox:"0 0 16 16",fill:"none"},xc=uo('',2),Cc=[xc],Tc={key:1,height:"30px",width:"30px",version:"1.1",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg","xmlns:sketch":"http://www.bohemiancoding.com/sketch/ns","xmlns:xlink":"http://www.w3.org/1999/xlink"},Ec=G("title",null,null,-1),Sc=G("desc",null,null,-1),Lc=G("defs",null,null,-1),Ac=G("g",{fill:"none","fill-rule":"evenodd",id:"Page-1",stroke:"none","stroke-width":"1"},[G("g",{fill:"#FFFFFF",id:"Core",transform:"translate(-215.000000, -257.000000)"},[G("g",{id:"fullscreen",transform:"translate(215.000000, 257.000000)"},[G("path",{d:"M2,9 L0,9 L0,14 L5,14 L5,12 L2,12 L2,9 L2,9 Z M0,5 L2,5 L2,2 L5,2 L5,0 L0,0 L0,5 L0,5 Z M12,12 L9,12 L9,14 L14,14 L14,9 L12,9 L12,12 L12,12 Z M9,0 L9,2 L12,2 L12,5 L14,5 L14,0 L9,0 L9,0 Z",id:"Shape"})])])],-1),Oc=[Ec,Sc,Lc,Ac],Pc={class:"notifications h-full flex flex-col justify-end"},Mc={class:"flex justify-between"},Rc={class:"flex items-center"},Ic={key:1,class:"notify-pill"},$c={key:2,class:"notify-pill"},Fc={key:3,class:"notify-pill"},kc={key:4,class:"notify-pill"},Nc={class:"font-bold text-xl mt-1"},Hc={class:"text-lg"},jc={__name:"NotificationFeed",setup(e){const t=Ae([]),n=Ae(null),s=Ae(null),r=Ae(!1),o=Ae(!1),i=new URL(window.location.href),c=i.searchParams.get("bearer"),a=i.searchParams.get("debug"),d=i.searchParams.get("gfm")??"from-home-simulator-to-real-racing";Ht(()=>{n.value=document.querySelector(".top")});async function f(N){if(await t.value.push(N),n.value.scrollTo({top:n.value.scrollHeight,behavior:"smooth"}),r.value){s.value.currentTime=0,s.value.play();var C=new SpeechSynthesisUtterance(N.tts);C.pitch=1,C.rate=1,window.speechSynthesis.speak(C)}}function p(){r.value=!r.value,r.value&&s.value.play()}function x(){o.value=!o.value,document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()}let P=0,B="https://corsproxy.io/?"+encodeURIComponent(`https://gateway.gofundme.com/web-gateway/v1/feed/${d}/donations?limit=10`);setInterval(()=>{fetch(B+encodeURIComponent("&t="+Date.now())).then(N=>N.json()).then(N=>{for(P!=0&&N.references.donations.reverse(),k=0;kC.json()).then(C=>console.log(C))}let Z=0;const H=function(N){clearInterval(Z),Z=setInterval(()=>{console.log("Keepalive failed, reconnecting ws..."),k=0,I[k]=new WebSocket("wss://eventsub.wss.twitch.tv/ws?keepalive_timeout_seconds=10"),I[k].onmessage=H},12e3);const C=JSON.parse(N.data);switch(C.metadata.message_type){case"session_welcome":k==0?K(C.payload.session.id):I[k-1].close();break;case"session_reconnect":k++,I[k]=new WebSocket(C.payload.session.reconnect_url),console.log("Reconnecting to "+C.payload.session.reconnect_url);break;case"notification":let m=C.payload.event.notice_type,w={id:C.metadata.message_id,user:C.payload.event.chatter_user_name,text:C.payload.event.message.text??"",type:C.payload.event.notice_type};switch(["sub","resub","sub_gift","community_sub_gift"].includes(m)&&(w.tier=C.payload.event[m].sub_tier/1e3),["sub","resub"].includes(m)&&(w.is_prime=C.payload.event[m].is_prime,w.color="-green-600"),["sub_gift","community_sub_gift"].includes(m)&&(w.user_total=C.payload.event[m].cumulative_total??0,w.color="-orange-600"),C.payload.event.notice_type){case"sub":w.nice_name="Sub",w.tts=`${w.user} subbed at tier ${w.tier}: ${w.text}`;break;case"resub":w.nice_name="ReSub",w.months=C.payload.event[m].cumulative_months,w.tts=`${w.user} resubbed at tier ${w.tier}, total ${w.months} months: ${w.text}`;break;case"sub_gift":w.nice_name="Gift x1",w.recipient=C.payload.event[m].recipient_user_name,w.exclude=!!C.payload.event[m].community_gift_id,w.tts=`${w.user} gifted a tier ${w.tier} sub to ${w.recipient}`;break;case"community_sub_gift":w.type="sub_gift",w.nice_name="Gift x"+C.payload.event[m].total,w.text="Gifted "+C.payload.event[m].total+" subs",w.tts=`${w.user} gifted ${C.payload.event[m].total} subs`;break;case"raid":w.color="-purple-600",w.nice_name="Raid x"+C.payload.event[m].viewer_count,w.raider=C.payload.event[m].user_name+" raided with "+C.payload.event[m].viewer_count+" viewers",w.tts=`${w.raider} raided with ${C.payload.event[m].viewer_count} viewers`;break}w.exclude||f(w);break}};if(I[k].onmessage=H,a){let N=[{metadata:{message_id:"GD60uGl4b-rsculGOvnG3CbfWub8sU0-kLka5QQTklE=",message_type:"notification",message_timestamp:"2024-09-02T16:45:07.795455639Z",subscription_type:"channel.chat.notification",subscription_version:"1"},payload:{subscription:{id:"8bfaa271-dacf-45ad-9252-82961b8e4558",status:"enabled",type:"channel.chat.notification",version:"1",condition:{broadcaster_user_id:"171093413",user_id:"54096715"},transport:{method:"websocket",session_id:"AgoQZGprB1c1S96FME9t0ZuU4hIGY2VsbC1j"},created_at:"2024-09-02T16:42:14.02277498Z",cost:0},event:{broadcaster_user_id:"171093413",broadcaster_user_login:"pablogz205",broadcaster_user_name:"PabloGz205",source_broadcaster_user_id:null,source_broadcaster_user_login:null,source_broadcaster_user_name:null,chatter_user_id:"54492353",chatter_user_login:"keepcalmcallsoul",chatter_user_name:"keepcalmcallsoul",chatter_is_anonymous:!1,color:"#8A2BE2",badges:[{set_id:"subscriber",id:"9",info:"9"}],source_badges:null,system_message:"keepcalmcallsoul subscribed at Tier 1. They've subscribed for 9 months!",message_id:"d6deea58-ce6e-4217-905d-67670369b628",source_message_id:null,message:{text:"",fragments:[{type:"text",text:"what do you think about the mclaren?",cheermote:null,emote:null,mention:null}]},notice_type:"resub",sub:null,resub:{cumulative_months:9,duration_months:9,streak_months:null,sub_tier:"1000",is_prime:!1,is_gift:!1,gifter_is_anonymous:null,gifter_user_id:null,gifter_user_name:null,gifter_user_login:null},sub_gift:null,community_sub_gift:null,gift_paid_upgrade:null,prime_paid_upgrade:null,pay_it_forward:null,raid:null,unraid:null,announcement:null,bits_badge_tier:null,charity_donation:null,shared_chat_sub:null,shared_chat_resub:null,shared_chat_sub_gift:null,shared_chat_community_sub_gift:null,shared_chat_gift_paid_upgrade:null,shared_chat_prime_paid_upgrade:null,shared_chat_pay_it_forward:null,shared_chat_raid:null,shared_chat_announcement:null}}},{metadata:{message_id:"GD60uGl4b-rsculGOvnG3CbfWub8sU0-kLka5QQTklE=",message_type:"notification",message_timestamp:"2024-09-02T16:45:07.795455639Z",subscription_type:"channel.chat.notification",subscription_version:"1"},payload:{subscription:{id:"8bfaa271-dacf-45ad-9252-82961b8e4558",status:"enabled",type:"channel.chat.notification",version:"1",condition:{broadcaster_user_id:"171093413",user_id:"54096715"},transport:{method:"websocket",session_id:"AgoQZGprB1c1S96FME9t0ZuU4hIGY2VsbC1j"},created_at:"2024-09-02T16:42:14.02277498Z",cost:0},event:{broadcaster_user_id:"171093413",broadcaster_user_login:"pablogz205",broadcaster_user_name:"PabloGz205",source_broadcaster_user_id:null,source_broadcaster_user_login:null,source_broadcaster_user_name:null,chatter_user_id:"54492353",chatter_user_login:"keepcalmcallsoul",chatter_user_name:"keepcalmcallsoul",chatter_is_anonymous:!1,color:"#8A2BE2",badges:[{set_id:"subscriber",id:"9",info:"9"}],source_badges:null,system_message:"keepcalmcallsoul subscribed at Tier 1. They've subscribed for 9 months!",message_id:"d6deea58-ce6e-4217-905d-67670369b628",source_message_id:null,message:{text:"poggy doggy",fragments:[{type:"text",text:"what do you think about the mclaren?",cheermote:null,emote:null,mention:null}]},notice_type:"resub",sub:null,resub:{cumulative_months:9,duration_months:9,streak_months:null,sub_tier:"1000",is_prime:!1,is_gift:!1,gifter_is_anonymous:null,gifter_user_id:null,gifter_user_name:null,gifter_user_login:null},sub_gift:null,community_sub_gift:null,gift_paid_upgrade:null,prime_paid_upgrade:null,pay_it_forward:null,raid:null,unraid:null,announcement:null,bits_badge_tier:null,charity_donation:null,shared_chat_sub:null,shared_chat_resub:null,shared_chat_sub_gift:null,shared_chat_community_sub_gift:null,shared_chat_gift_paid_upgrade:null,shared_chat_prime_paid_upgrade:null,shared_chat_pay_it_forward:null,shared_chat_raid:null,shared_chat_announcement:null}}},{metadata:{message_id:"andpZpHdH68c9LktLSFNbxmK2O0HT0430OD61ytoXXA=",message_type:"notification",message_timestamp:"2024-09-02T17:13:31.221692812Z",subscription_type:"channel.chat.notification",subscription_version:"1"},payload:{subscription:{id:"8bfaa271-dacf-45ad-9252-82961b8e4558",status:"enabled",type:"channel.chat.notification",version:"1",condition:{broadcaster_user_id:"171093413",user_id:"54096715"},transport:{method:"websocket",session_id:"AgoQZGprB1c1S96FME9t0ZuU4hIGY2VsbC1j"},created_at:"2024-09-02T16:42:14.02277498Z",cost:0},event:{broadcaster_user_id:"171093413",broadcaster_user_login:"pablogz205",broadcaster_user_name:"PabloGz205",source_broadcaster_user_id:null,source_broadcaster_user_login:null,source_broadcaster_user_name:null,chatter_user_id:"54096715",chatter_user_login:"deleterr",chatter_user_name:"Deleterr",chatter_is_anonymous:!1,color:"#28D74B",badges:[{set_id:"moderator",id:"1",info:""},{set_id:"subscriber",id:"9",info:"9"},{set_id:"sub-gifter",id:"10",info:""}],source_badges:null,system_message:"Deleterr gifted a Tier 1 sub to JmsTV! They have given 11 Gift Subs in the channel!",message_id:"0001ee46-e128-4435-848c-ad24401abe86",source_message_id:null,message:{text:"",fragments:[]},notice_type:"sub_gift",sub:null,resub:null,sub_gift:{duration_months:1,cumulative_total:11,recipient_user_id:"108600558",recipient_user_name:"JmsTV",recipient_user_login:"jmstv",sub_tier:"1000",community_gift_id:null},community_sub_gift:null,gift_paid_upgrade:null,prime_paid_upgrade:null,pay_it_forward:null,raid:null,unraid:null,announcement:null,bits_badge_tier:null,charity_donation:null,shared_chat_sub:null,shared_chat_resub:null,shared_chat_sub_gift:null,shared_chat_community_sub_gift:null,shared_chat_gift_paid_upgrade:null,shared_chat_prime_paid_upgrade:null,shared_chat_pay_it_forward:null,shared_chat_raid:null,shared_chat_announcement:null}}}];setInterval(()=>{for(let C of N)if(!(Math.random()>.25))switch(C.metadata.message_type){case"session_welcome":k==0?K(C.payload.session.id):I[k-1].close();break;case"session_reconnect":k++,I[k]=new WebSocket(C.payload.session.reconnect_url);break;case"notification":let m=C.payload.event.notice_type,w={id:C.metadata.message_id,type:C.payload.event.notice_type,user:C.payload.event.chatter_user_name,text:C.payload.event.message.text??""};switch(["sub","resub","sub_gift","community_sub_gift"].includes(m)&&(w.tier=C.payload.event[m].sub_tier/1e3),["sub","resub"].includes(m)&&(w.is_prime=C.payload.event[m].is_prime,w.color="-green-600"),["sub_gift","community_sub_gift"].includes(m)&&(w.user_total=C.payload.event[m].cumulative_total??0,w.color="-orange-600"),C.payload.event.notice_type){case"sub":w.nice_name="Sub",w.tts=`${w.user} subbed at tier ${w.tier}: ${w.text}`;break;case"resub":w.nice_name="ReSub",w.months=C.payload.event[m].cumulative_months,w.tts=`${w.user} resubbed at tier ${w.tier}, total ${w.months} months: ${w.text}`;break;case"sub_gift":w.nice_name="Gift x1",w.recipient=C.payload.event[m].recipient_user_name,w.exclude=!!C.payload.event[m].community_gift_id,w.tts=`${w.user} gifted a tier ${w.tier} sub to ${w.recipient}`;break;case"community_sub_gift":w.type="sub_gift",w.nice_name="Gift x"+C.payload.event[m].total,w.text="Gifted "+C.payload.event[m].total+" subs",w.tts=`${w.user} gifted ${C.payload.event[m].total} subs`;break;case"raid":w.color="-purple-600",w.nice_name="Raid x"+C.payload.event[m].viewer_count,w.raider=C.payload.event[m].user_name,w.tts=`${w.raider} raided with ${C.payload.event[m].viewer_count} viewers`;break}w.exclude||f(w);break}},3e3)}return(N,C)=>(fe(),_e(me,null,[G("audio",{controls:"",class:"hidden",ref_key:"notifyAudio",ref:s},[fc,ao(" Your browser does not support the audio element. ")],512),G("button",{onClick:p,class:"svg bg-purple-700 hover:bg-purple-800 text-white font-bold p-2 rounded-full absolute z-40 right-[55px] top-[10px] drop-shadow-lg"},[r.value?(fe(),_e("svg",dc,mc)):(fe(),_e("svg",bc,vc))]),G("button",{onClick:x,class:"svg bg-purple-700 hover:bg-purple-800 text-white font-bold rounded-full absolute top-[10px] right-[2px] p-2 cursor-pointer z-40"},[o.value?(fe(),_e("svg",wc,Cc)):(fe(),_e("svg",Tc,Oc))]),G("div",Pc,[oe(Yl,{name:"notification",tag:"div"},{default:rs(()=>[(fe(!0),_e(me,null,Ri(t.value,m=>(fe(),_e("div",{key:m.id,class:Mt(["border"+m.color,"bg-slate-800 rounded-lg p-2 mb-3 w-full border-2"])},[G("div",Mc,[G("div",Rc,[m.nice_name?(fe(),_e("div",{key:0,class:Mt(["bg"+m.color,"notify-pill-nobg"])},rt(m.nice_name),3)):pt("",!0),m.tier?(fe(),_e("div",Ic,"Tier "+rt(m.tier),1)):pt("",!0),m.months?(fe(),_e("div",$c,rt(m.months)+" months",1)):pt("",!0),m.is_prime?(fe(),_e("div",Fc,"Prime")):pt("",!0),m.user_total?(fe(),_e("div",kc,rt(m.user_total)+" total ",1)):pt("",!0)])]),G("div",Nc,rt(m.raider||m.user),1),G("div",Hc,rt(m.text||(m.type=="sub_gift"?"Gifted to "+m.recipient:"")),1)],2))),128))]),_:1})])],64))}},Bc=["src"],Dc=G("svg",{width:"30px",height:"30px",class:"translate-y-[2px]",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},[G("path",{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"})],-1),Vc=[Dc],Uc={__name:"ChatFeed",setup(e){const t=Ae(""),n=Ae(null),s=Ae(!1),r=new URL(window.location.href),o=r.searchParams.get("channel")??"pablogz205",i=r.searchParams.get("size")??1,c=r.searchParams.get("font")??1;t.value=`https://www.giambaj.it/twitch/jchat/v2/?channel=${o}&size=${i}&font=${c}`,Ht(()=>{setInterval(()=>{Math.ceil(n.value.scrollTop)+n.value.clientHeight{s.value=!1},1e3)}return(d,f)=>(fe(),_e(me,null,[G("div",{class:"chat-scroll-container",ref_key:"chatScrollContainer",ref:n},[G("iframe",{class:"chat-frame",src:t.value},null,8,Bc)],512),oe(us,{name:"slide-fade"},{default:rs(()=>[s.value?(fe(),_e("button",{key:0,onClick:a,class:"svg scroll-to-bottom-button bg-purple-700 hover:bg-purple-800 drop-shadow-lg rounded-full p-1 font-bold"},Vc)):pt("",!0)]),_:1})],64))}},Kc={class:"h-dvh"},Wc={class:"bottom"},Gc={__name:"App",setup(e){const t=Ae(null),n=Ae(null),s=Ae(null);return Ht(()=>{let r=!1,o=0;function i(f){r=!0,y.mobile()?y.landscape()?o=f.touches[0].clientX:o=f.touches[0].clientY:o=f.y}function c(f){y.mobile()?y.landscape()?o=f.touches[0].clientX:o=f.touches[0].clientY:o=f.y,r&&(y.mobile()&&y.landscape()?n.value.style.width=o-s.value.getBoundingClientRect().width/2+"px":n.value.style.height=o-s.value.getBoundingClientRect().height/2+"px",f.preventDefault())}function a(f){r=!1}s.value.addEventListener("mousedown",i),s.value.addEventListener("touchstart",i),t.value.addEventListener("mousemove",c),t.value.addEventListener("touchmove",c),t.value.addEventListener("mouseup",a),t.value.addEventListener("touchend",a),y.mobile()&&y.landscape()?n.value.style.width=window.innerWidth/2+"px":n.value.style.height=window.innerHeight/3+"px";let d=document.querySelector(".chat-scroll-container");d.scrollTop=d.scrollHeight,y.onChangeOrientation(f=>{y.mobile()&&(f==="landscape"?(n.value.scrollTop=n.value.scrollHeight,n.value.style.height="",n.value.style.width=window.innerHeight/2+"px"):(n.value.style.width="",n.value.style.height=window.innerWidth/3+"px"))})}),(r,o)=>(fe(),_e("main",Kc,[G("div",{class:"resizeable-container",ref_key:"containerRef",ref:t},[G("div",{class:"top flex-shrink-0 overflow-y-auto px-3",ref_key:"topRef",ref:n},[oe(jc)],512),G("div",{class:"resize",ref_key:"resizeRef",ref:s},null,512),G("div",Wc,[oe(Uc)])],512)]))}};rc(Gc).mount("#app"); +**/const Sl="http://www.w3.org/2000/svg",Al="http://www.w3.org/1998/Math/MathML",ke=typeof document<"u"?document:null,Ds=ke&&ke.createElement("template"),Ol={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?ke.createElementNS(Sl,e):t==="mathml"?ke.createElementNS(Al,e):n?ke.createElement(e,{is:n}):ke.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ke.createTextNode(e),createComment:e=>ke.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ke.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Ds.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const c=Ds.content;if(s==="svg"||s==="mathml"){const a=c.firstChild;for(;a.firstChild;)c.appendChild(a.firstChild);c.removeChild(a)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Be="transition",Et="animation",wt=Symbol("_vtc"),us=(e,{slots:t})=>El(wi,go(e),t);us.displayName="Transition";const _o={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Pl=us.props=ce({},Hr,_o),st=(e,t=[])=>{R(e)?e.forEach(n=>n(...t)):e&&e(...t)},Vs=e=>e?R(e)?e.some(t=>t.length>1):e.length>1:!1;function go(e){const t={};for(const A in e)A in _o||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:a=o,appearActiveClass:f=i,appearToClass:d=c,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:x=`${n}-leave-active`,leaveToClass:P=`${n}-leave-to`}=e,B=Ml(r),I=B&&B[0],k=B&&B[1],{onBeforeEnter:W,onEnter:Z,onEnterCancelled:H,onLeave:N,onLeaveCancelled:C,onBeforeAppear:m=W,onAppear:w=Z,onAppearCancelled:ae=H}=t,D=(A,Q,ue)=>{De(A,Q?d:c),De(A,Q?f:i),ue&&ue()},z=(A,Q)=>{A._isLeaving=!1,De(A,p),De(A,P),De(A,x),Q&&Q()},X=A=>(Q,ue)=>{const Qe=A?w:Z,ie=()=>D(Q,A,ue);st(Qe,[Q,ie]),Us(()=>{De(Q,A?a:o),Fe(Q,A?d:c),Vs(Qe)||Ws(Q,s,I,ie)})};return ce(t,{onBeforeEnter(A){st(W,[A]),Fe(A,o),Fe(A,i)},onBeforeAppear(A){st(m,[A]),Fe(A,a),Fe(A,f)},onEnter:X(!1),onAppear:X(!0),onLeave(A,Q){A._isLeaving=!0;const ue=()=>z(A,Q);Fe(A,p),Fe(A,x),bo(),Us(()=>{A._isLeaving&&(De(A,p),Fe(A,P),Vs(N)||Ws(A,s,k,ue))}),st(N,[A,ue])},onEnterCancelled(A){D(A,!1),st(H,[A])},onAppearCancelled(A){D(A,!0),st(ae,[A])},onLeaveCancelled(A){z(A),st(C,[A])}})}function Ml(e){if(e==null)return null;if(Y(e))return[Sn(e.enter),Sn(e.leave)];{const t=Sn(e);return[t,t]}}function Sn(e){return Ro(e)}function Fe(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[wt]||(e[wt]=new Set)).add(t)}function De(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[wt];n&&(n.delete(t),n.size||(e[wt]=void 0))}function Us(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Rl=0;function Ws(e,t,n,s){const r=e._endId=++Rl,o=()=>{r===e._endId&&s()};if(n)return setTimeout(o,n);const{type:i,timeout:c,propCount:a}=mo(e,t);if(!i)return s();const f=i+"end";let d=0;const p=()=>{e.removeEventListener(f,x),o()},x=P=>{P.target===e&&++d>=a&&p()};setTimeout(()=>{d(n[B]||"").split(", "),r=s(`${Be}Delay`),o=s(`${Be}Duration`),i=Ks(r,o),c=s(`${Et}Delay`),a=s(`${Et}Duration`),f=Ks(c,a);let d=null,p=0,x=0;t===Be?i>0&&(d=Be,p=i,x=o.length):t===Et?f>0&&(d=Et,p=f,x=a.length):(p=Math.max(i,f),d=p>0?i>f?Be:Et:null,x=d?d===Be?o.length:a.length:0);const P=d===Be&&/\b(transform|all)(,|$)/.test(s(`${Be}Property`).toString());return{type:d,timeout:p,propCount:x,hasTransform:P}}function Ks(e,t){for(;e.lengthGs(n)+Gs(e[s])))}function Gs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function bo(){return document.body.offsetHeight}function Il(e,t,n){const s=e[wt];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const zs=Symbol("_vod"),$l=Symbol("_vsh"),Fl=Symbol(""),kl=/(^|;)\s*display\s*:/;function Nl(e,t,n){const s=e.style,r=re(n);let o=!1;if(n&&!r){if(t)if(re(t))for(const i of t.split(";")){const c=i.slice(0,i.indexOf(":")).trim();n[c]==null&&en(s,c,"")}else for(const i in t)n[i]==null&&en(s,i,"");for(const i in n)i==="display"&&(o=!0),en(s,i,n[i])}else if(r){if(t!==n){const i=s[Fl];i&&(n+=";"+i),s.cssText=n,o=kl.test(n)}}else t&&e.removeAttribute("style");zs in e&&(e[zs]=o?s.display:"",e[$l]&&(s.display="none"))}const Zs=/\s*!important$/;function en(e,t,n){if(R(n))n.forEach(s=>en(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Hl(e,t);Zs.test(n)?e.setProperty(dt(s),n.replace(Zs,""),"important"):e[s]=n}}const qs=["Webkit","Moz","ms"],An={};function Hl(e,t){const n=An[t];if(n)return n;let s=ut(t);if(s!=="filter"&&s in e)return An[t]=s;s=ur(s);for(let r=0;rOn||(Wl.then(()=>On=0),On=Date.now());function Gl(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ee(zl(s,n.value),t,5,[s])};return n.value=e,n.attached=Kl(),n}function zl(e,t){if(R(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const er=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Zl=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Il(e,s,i):t==="style"?Nl(e,n,s):cn(t)?Wn(t)||Vl(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ql(e,t,s,i))?(jl(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ys(e,t,s,i,o,t!=="value")):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ys(e,t,s,i))};function ql(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&er(t)&&F(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return er(t)&&re(n)?!1:t in e}const yo=new WeakMap,vo=new WeakMap,ln=Symbol("_moveCb"),tr=Symbol("_enterCb"),wo={name:"TransitionGroup",props:ce({},Pl,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=fo(),s=Nr();let r,o;return Vr(()=>{if(!r.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!tc(r[0].el,n.vnode.el,i))return;r.forEach(Ql),r.forEach(Xl);const c=r.filter(ec);bo(),c.forEach(a=>{const f=a.el,d=f.style;Fe(f,i),d.transform=d.webkitTransform=d.transitionDuration="";const p=f[ln]=x=>{x&&x.target!==f||(!x||/transform$/.test(x.propertyName))&&(f.removeEventListener("transitionend",p),f[ln]=null,De(f,i))};f.addEventListener("transitionend",p)})}),()=>{const i=U(e),c=go(i);let a=i.tag||me;if(r=[],o)for(let f=0;fdelete e.mode;wo.props;const Yl=wo;function Ql(e){const t=e.el;t[ln]&&t[ln](),t[tr]&&t[tr]()}function Xl(e){vo.set(e,e.el.getBoundingClientRect())}function ec(e){const t=yo.get(e),n=vo.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${s}px,${r}px)`,o.transitionDuration="0s",e}}function tc(e,t,n){const s=e.cloneNode(),r=e[wt];r&&r.forEach(c=>{c.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(c=>c&&s.classList.add(c)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:i}=mo(s);return o.removeChild(s),i}const nc=ce({patchProp:Zl},Ol);let nr;function sc(){return nr||(nr=Ji(nc))}const rc=(...e)=>{const t=sc().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=ic(s);if(!r)return;const o=t._component;!F(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,oc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function oc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ic(e){return re(e)?document.querySelector(e):e}var lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cc=window.device,y={},Vn=[];window.device=y;var Nt=window.document.documentElement,ac=window.navigator.userAgent.toLowerCase(),sr=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","pov_tv","hbbtv","ce-html"];y.macos=function(){return ne("mac")};y.ios=function(){return y.iphone()||y.ipod()||y.ipad()};y.iphone=function(){return!y.windows()&&ne("iphone")};y.ipod=function(){return ne("ipod")};y.ipad=function(){var e=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1;return ne("ipad")||e};y.android=function(){return!y.windows()&&ne("android")};y.androidPhone=function(){return y.android()&&ne("mobile")};y.androidTablet=function(){return y.android()&&!ne("mobile")};y.blackberry=function(){return ne("blackberry")||ne("bb10")};y.blackberryPhone=function(){return y.blackberry()&&!ne("tablet")};y.blackberryTablet=function(){return y.blackberry()&&ne("tablet")};y.windows=function(){return ne("windows")};y.windowsPhone=function(){return y.windows()&&ne("phone")};y.windowsTablet=function(){return y.windows()&&ne("touch")&&!y.windowsPhone()};y.fxos=function(){return(ne("(mobile")||ne("(tablet"))&&ne(" rv:")};y.fxosPhone=function(){return y.fxos()&&ne("mobile")};y.fxosTablet=function(){return y.fxos()&&ne("tablet")};y.meego=function(){return ne("meego")};y.cordova=function(){return window.cordova&&location.protocol==="file:"};y.nodeWebkit=function(){return lc(window.process)==="object"};y.mobile=function(){return y.androidPhone()||y.iphone()||y.ipod()||y.windowsPhone()||y.blackberryPhone()||y.fxosPhone()||y.meego()};y.tablet=function(){return y.ipad()||y.androidTablet()||y.blackberryTablet()||y.windowsTablet()||y.fxosTablet()};y.desktop=function(){return!y.tablet()&&!y.mobile()};y.television=function(){for(var e=0;e1};y.landscape=function(){return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?fs(screen.orientation.type,"landscape"):y.ios()&&Object.prototype.hasOwnProperty.call(window,"orientation")?Math.abs(window.orientation)===90:window.innerHeight/window.innerWidth<1};y.noConflict=function(){return window.device=cc,this};function fs(e,t){return e.indexOf(t)!==-1}function ne(e){return fs(ac,e)}function xo(e){return Nt.className.match(new RegExp(e,"i"))}function se(e){var t=null;xo(e)||(t=Nt.className.replace(/^\s+|\s+$/g,""),Nt.className=t+" "+e)}function rr(e){xo(e)&&(Nt.className=Nt.className.replace(" "+e,""))}y.ios()?y.ipad()?se("ios ipad tablet"):y.iphone()?se("ios iphone mobile"):y.ipod()&&se("ios ipod mobile"):y.macos()?se("macos desktop"):y.android()?y.androidTablet()?se("android tablet"):se("android mobile"):y.blackberry()?y.blackberryTablet()?se("blackberry tablet"):se("blackberry mobile"):y.windows()?y.windowsTablet()?se("windows tablet"):y.windowsPhone()?se("windows mobile"):se("windows desktop"):y.fxos()?y.fxosTablet()?se("fxos tablet"):se("fxos mobile"):y.meego()?se("meego mobile"):y.nodeWebkit()?se("node-webkit"):y.television()?se("television"):y.desktop()&&se("desktop");y.cordova()&&se("cordova");function tn(){y.landscape()?(rr("portrait"),se("landscape"),or("landscape")):(rr("landscape"),se("portrait"),or("portrait")),Co()}function or(e){for(var t=0;t',5),vc=[yc],wc={key:0,xmlns:"http://www.w3.org/2000/svg",width:"30px",height:"30px",viewBox:"0 0 16 16",fill:"none"},xc=uo('',2),Cc=[xc],Tc={key:1,height:"30px",width:"30px",version:"1.1",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg","xmlns:sketch":"http://www.bohemiancoding.com/sketch/ns","xmlns:xlink":"http://www.w3.org/1999/xlink"},Ec=G("title",null,null,-1),Lc=G("desc",null,null,-1),Sc=G("defs",null,null,-1),Ac=G("g",{fill:"none","fill-rule":"evenodd",id:"Page-1",stroke:"none","stroke-width":"1"},[G("g",{fill:"#FFFFFF",id:"Core",transform:"translate(-215.000000, -257.000000)"},[G("g",{id:"fullscreen",transform:"translate(215.000000, 257.000000)"},[G("path",{d:"M2,9 L0,9 L0,14 L5,14 L5,12 L2,12 L2,9 L2,9 Z M0,5 L2,5 L2,2 L5,2 L5,0 L0,0 L0,5 L0,5 Z M12,12 L9,12 L9,14 L14,14 L14,9 L12,9 L12,12 L12,12 Z M9,0 L9,2 L12,2 L12,5 L14,5 L14,0 L9,0 L9,0 Z",id:"Shape"})])])],-1),Oc=[Ec,Lc,Sc,Ac],Pc={class:"notifications h-full flex flex-col justify-end"},Mc={class:"flex justify-between"},Rc={class:"flex items-center"},Ic={key:1,class:"notify-pill"},$c={key:2,class:"notify-pill"},Fc={key:3,class:"notify-pill"},kc={key:4,class:"notify-pill"},Nc={class:"font-bold text-xl mt-1"},Hc={class:"text-lg"},jc={__name:"NotificationFeed",setup(e){const t=Ae([]),n=Ae(null),s=Ae(null),r=Ae(!1),o=Ae(!1),i=new URL(window.location.href),c=i.searchParams.get("bearer"),a=i.searchParams.get("debug"),f=i.searchParams.get("gfm")??"from-home-simulator-to-real-racing";Ht(()=>{n.value=document.querySelector(".top")});async function d(N){if(await t.value.push(N),n.value.scrollTo({top:n.value.scrollHeight,behavior:"smooth"}),r.value){s.value.currentTime=0,s.value.play();var C=new SpeechSynthesisUtterance(N.tts);C.pitch=1,C.rate=1,window.speechSynthesis.speak(C)}}function p(){r.value=!r.value,r.value&&s.value.play()}function x(){o.value=!o.value,document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()}let P=0,B="https://corsproxy.io/?"+encodeURIComponent(`https://gateway.gofundme.com/web-gateway/v1/feed/${f}/donations?limit=10`);setInterval(()=>{fetch(B+encodeURIComponent("&t="+Date.now())).then(N=>N.json()).then(N=>{for(P!=0&&N.references.donations.reverse(),k=0;kC.json()).then(C=>console.log(C))}let Z=0;const H=function(N){clearInterval(Z),Z=setInterval(()=>{console.log("Keepalive failed, reconnecting ws..."),k=0,I[k]=new WebSocket("wss://eventsub.wss.twitch.tv/ws?keepalive_timeout_seconds=10"),I[k].onmessage=H},12e3);const C=JSON.parse(N.data);switch(C.metadata.message_type){case"session_welcome":k==0?W(C.payload.session.id):I[k-1].close();break;case"session_reconnect":k++,I[k]=new WebSocket(C.payload.session.reconnect_url),console.log("Reconnecting to "+C.payload.session.reconnect_url);break;case"notification":let m=C.payload.event.notice_type,w={id:C.metadata.message_id,user:C.payload.event.chatter_user_name,text:C.payload.event.message.text??"",type:C.payload.event.notice_type};switch(["sub","resub","sub_gift","community_sub_gift"].includes(m)&&(w.tier=C.payload.event[m].sub_tier/1e3),["sub","resub"].includes(m)&&(w.is_prime=C.payload.event[m].is_prime,w.color="-green-600"),["sub_gift","community_sub_gift"].includes(m)&&(w.user_total=C.payload.event[m].cumulative_total??0,w.color="-orange-600"),C.payload.event.notice_type){case"sub":w.nice_name="Sub",w.tts=`${w.user} subbed at tier ${w.tier}: ${w.text}`;break;case"resub":w.nice_name="ReSub",w.months=C.payload.event[m].cumulative_months,w.tts=`${w.user} resubbed at tier ${w.tier}, total ${w.months} months: ${w.text}`;break;case"sub_gift":w.nice_name="Gift x1",w.recipient=C.payload.event[m].recipient_user_name,w.exclude=!!C.payload.event[m].community_gift_id,w.tts=`${w.user} gifted a tier ${w.tier} sub to ${w.recipient}`;break;case"community_sub_gift":w.type="sub_gift",w.nice_name="Gift x"+C.payload.event[m].total,w.text="Gifted "+C.payload.event[m].total+" subs",w.tts=`${w.user} gifted ${C.payload.event[m].total} subs`;break;case"raid":w.color="-purple-600",w.nice_name="Raid x"+C.payload.event[m].viewer_count,w.raider=C.payload.event[m].user_name+" raided with "+C.payload.event[m].viewer_count+" viewers",w.tts=`${w.raider} raided with ${C.payload.event[m].viewer_count} viewers`;break}w.exclude||d(w);break}};if(I[k].onmessage=H,a){let N=[{metadata:{message_id:"GD60uGl4b-rsculGOvnG3CbfWub8sU0-kLka5QQTklE=",message_type:"notification",message_timestamp:"2024-09-02T16:45:07.795455639Z",subscription_type:"channel.chat.notification",subscription_version:"1"},payload:{subscription:{id:"8bfaa271-dacf-45ad-9252-82961b8e4558",status:"enabled",type:"channel.chat.notification",version:"1",condition:{broadcaster_user_id:"171093413",user_id:"54096715"},transport:{method:"websocket",session_id:"AgoQZGprB1c1S96FME9t0ZuU4hIGY2VsbC1j"},created_at:"2024-09-02T16:42:14.02277498Z",cost:0},event:{broadcaster_user_id:"171093413",broadcaster_user_login:"pablogz205",broadcaster_user_name:"PabloGz205",source_broadcaster_user_id:null,source_broadcaster_user_login:null,source_broadcaster_user_name:null,chatter_user_id:"54492353",chatter_user_login:"keepcalmcallsoul",chatter_user_name:"keepcalmcallsoul",chatter_is_anonymous:!1,color:"#8A2BE2",badges:[{set_id:"subscriber",id:"9",info:"9"}],source_badges:null,system_message:"keepcalmcallsoul subscribed at Tier 1. They've subscribed for 9 months!",message_id:"d6deea58-ce6e-4217-905d-67670369b628",source_message_id:null,message:{text:"",fragments:[{type:"text",text:"what do you think about the mclaren?",cheermote:null,emote:null,mention:null}]},notice_type:"resub",sub:null,resub:{cumulative_months:9,duration_months:9,streak_months:null,sub_tier:"1000",is_prime:!1,is_gift:!1,gifter_is_anonymous:null,gifter_user_id:null,gifter_user_name:null,gifter_user_login:null},sub_gift:null,community_sub_gift:null,gift_paid_upgrade:null,prime_paid_upgrade:null,pay_it_forward:null,raid:null,unraid:null,announcement:null,bits_badge_tier:null,charity_donation:null,shared_chat_sub:null,shared_chat_resub:null,shared_chat_sub_gift:null,shared_chat_community_sub_gift:null,shared_chat_gift_paid_upgrade:null,shared_chat_prime_paid_upgrade:null,shared_chat_pay_it_forward:null,shared_chat_raid:null,shared_chat_announcement:null}}},{metadata:{message_id:"GD60uGl4b-rsculGOvnG3CbfWub8sU0-kLka5QQTklE=",message_type:"notification",message_timestamp:"2024-09-02T16:45:07.795455639Z",subscription_type:"channel.chat.notification",subscription_version:"1"},payload:{subscription:{id:"8bfaa271-dacf-45ad-9252-82961b8e4558",status:"enabled",type:"channel.chat.notification",version:"1",condition:{broadcaster_user_id:"171093413",user_id:"54096715"},transport:{method:"websocket",session_id:"AgoQZGprB1c1S96FME9t0ZuU4hIGY2VsbC1j"},created_at:"2024-09-02T16:42:14.02277498Z",cost:0},event:{broadcaster_user_id:"171093413",broadcaster_user_login:"pablogz205",broadcaster_user_name:"PabloGz205",source_broadcaster_user_id:null,source_broadcaster_user_login:null,source_broadcaster_user_name:null,chatter_user_id:"54492353",chatter_user_login:"keepcalmcallsoul",chatter_user_name:"keepcalmcallsoul",chatter_is_anonymous:!1,color:"#8A2BE2",badges:[{set_id:"subscriber",id:"9",info:"9"}],source_badges:null,system_message:"keepcalmcallsoul subscribed at Tier 1. They've subscribed for 9 months!",message_id:"d6deea58-ce6e-4217-905d-67670369b628",source_message_id:null,message:{text:"poggy doggy",fragments:[{type:"text",text:"what do you think about the mclaren?",cheermote:null,emote:null,mention:null}]},notice_type:"resub",sub:null,resub:{cumulative_months:9,duration_months:9,streak_months:null,sub_tier:"1000",is_prime:!1,is_gift:!1,gifter_is_anonymous:null,gifter_user_id:null,gifter_user_name:null,gifter_user_login:null},sub_gift:null,community_sub_gift:null,gift_paid_upgrade:null,prime_paid_upgrade:null,pay_it_forward:null,raid:null,unraid:null,announcement:null,bits_badge_tier:null,charity_donation:null,shared_chat_sub:null,shared_chat_resub:null,shared_chat_sub_gift:null,shared_chat_community_sub_gift:null,shared_chat_gift_paid_upgrade:null,shared_chat_prime_paid_upgrade:null,shared_chat_pay_it_forward:null,shared_chat_raid:null,shared_chat_announcement:null}}},{metadata:{message_id:"andpZpHdH68c9LktLSFNbxmK2O0HT0430OD61ytoXXA=",message_type:"notification",message_timestamp:"2024-09-02T17:13:31.221692812Z",subscription_type:"channel.chat.notification",subscription_version:"1"},payload:{subscription:{id:"8bfaa271-dacf-45ad-9252-82961b8e4558",status:"enabled",type:"channel.chat.notification",version:"1",condition:{broadcaster_user_id:"171093413",user_id:"54096715"},transport:{method:"websocket",session_id:"AgoQZGprB1c1S96FME9t0ZuU4hIGY2VsbC1j"},created_at:"2024-09-02T16:42:14.02277498Z",cost:0},event:{broadcaster_user_id:"171093413",broadcaster_user_login:"pablogz205",broadcaster_user_name:"PabloGz205",source_broadcaster_user_id:null,source_broadcaster_user_login:null,source_broadcaster_user_name:null,chatter_user_id:"54096715",chatter_user_login:"deleterr",chatter_user_name:"Deleterr",chatter_is_anonymous:!1,color:"#28D74B",badges:[{set_id:"moderator",id:"1",info:""},{set_id:"subscriber",id:"9",info:"9"},{set_id:"sub-gifter",id:"10",info:""}],source_badges:null,system_message:"Deleterr gifted a Tier 1 sub to JmsTV! They have given 11 Gift Subs in the channel!",message_id:"0001ee46-e128-4435-848c-ad24401abe86",source_message_id:null,message:{text:"",fragments:[]},notice_type:"sub_gift",sub:null,resub:null,sub_gift:{duration_months:1,cumulative_total:11,recipient_user_id:"108600558",recipient_user_name:"JmsTV",recipient_user_login:"jmstv",sub_tier:"1000",community_gift_id:null},community_sub_gift:null,gift_paid_upgrade:null,prime_paid_upgrade:null,pay_it_forward:null,raid:null,unraid:null,announcement:null,bits_badge_tier:null,charity_donation:null,shared_chat_sub:null,shared_chat_resub:null,shared_chat_sub_gift:null,shared_chat_community_sub_gift:null,shared_chat_gift_paid_upgrade:null,shared_chat_prime_paid_upgrade:null,shared_chat_pay_it_forward:null,shared_chat_raid:null,shared_chat_announcement:null}}}];setInterval(()=>{for(let C of N)if(!(Math.random()>.25))switch(C.metadata.message_type){case"session_welcome":k==0?W(C.payload.session.id):I[k-1].close();break;case"session_reconnect":k++,I[k]=new WebSocket(C.payload.session.reconnect_url);break;case"notification":let m=C.payload.event.notice_type,w={id:C.metadata.message_id,type:C.payload.event.notice_type,user:C.payload.event.chatter_user_name,text:C.payload.event.message.text??""};switch(["sub","resub","sub_gift","community_sub_gift"].includes(m)&&(w.tier=C.payload.event[m].sub_tier/1e3),["sub","resub"].includes(m)&&(w.is_prime=C.payload.event[m].is_prime,w.color="-green-600"),["sub_gift","community_sub_gift"].includes(m)&&(w.user_total=C.payload.event[m].cumulative_total??0,w.color="-orange-600"),C.payload.event.notice_type){case"sub":w.nice_name="Sub",w.tts=`${w.user} subbed at tier ${w.tier}: ${w.text}`;break;case"resub":w.nice_name="ReSub",w.months=C.payload.event[m].cumulative_months,w.tts=`${w.user} resubbed at tier ${w.tier}, total ${w.months} months: ${w.text}`;break;case"sub_gift":w.nice_name="Gift x1",w.recipient=C.payload.event[m].recipient_user_name,w.exclude=!!C.payload.event[m].community_gift_id,w.tts=`${w.user} gifted a tier ${w.tier} sub to ${w.recipient}`;break;case"community_sub_gift":w.type="sub_gift",w.nice_name="Gift x"+C.payload.event[m].total,w.text="Gifted "+C.payload.event[m].total+" subs",w.tts=`${w.user} gifted ${C.payload.event[m].total} subs`;break;case"raid":w.color="-purple-600",w.nice_name="Raid x"+C.payload.event[m].viewer_count,w.raider=C.payload.event[m].user_name,w.tts=`${w.raider} raided with ${C.payload.event[m].viewer_count} viewers`;break}w.exclude||d(w);break}},3e3)}return(N,C)=>(fe(),_e(me,null,[G("audio",{controls:"",class:"hidden",ref_key:"notifyAudio",ref:s},[fc,ao(" Your browser does not support the audio element. ")],512),G("button",{onClick:p,class:"svg bg-purple-700 hover:bg-purple-800 text-white font-bold p-2 rounded-full absolute z-40 right-[55px] top-[10px] drop-shadow-lg"},[r.value?(fe(),_e("svg",dc,mc)):(fe(),_e("svg",bc,vc))]),G("button",{onClick:x,class:"svg bg-purple-700 hover:bg-purple-800 text-white font-bold rounded-full absolute top-[10px] right-[2px] p-2 cursor-pointer z-40"},[o.value?(fe(),_e("svg",wc,Cc)):(fe(),_e("svg",Tc,Oc))]),G("div",Pc,[oe(Yl,{name:"notification",tag:"div"},{default:rs(()=>[(fe(!0),_e(me,null,Ri(t.value,m=>(fe(),_e("div",{key:m.id,class:Mt(["border"+m.color,"bg-slate-800 rounded-lg p-2 mb-3 w-full border-2"])},[G("div",Mc,[G("div",Rc,[m.nice_name?(fe(),_e("div",{key:0,class:Mt(["bg"+m.color,"notify-pill-nobg"])},rt(m.nice_name),3)):pt("",!0),m.tier?(fe(),_e("div",Ic,"Tier "+rt(m.tier),1)):pt("",!0),m.months?(fe(),_e("div",$c,rt(m.months)+" months",1)):pt("",!0),m.is_prime?(fe(),_e("div",Fc,"Prime")):pt("",!0),m.user_total?(fe(),_e("div",kc,rt(m.user_total)+" total ",1)):pt("",!0)])]),G("div",Nc,rt(m.raider||m.user),1),G("div",Hc,rt(m.text||(m.type=="sub_gift"?"Gifted to "+m.recipient:"")),1)],2))),128))]),_:1})])],64))}},Bc=["src"],Dc=G("svg",{width:"30px",height:"30px",class:"translate-y-[2px]",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},[G("path",{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"})],-1),Vc=[Dc],Uc={__name:"ChatFeed",setup(e){const t=Ae(""),n=Ae(null),s=Ae(!1),r=new URL(window.location.href),o=r.searchParams.get("channel")??"pablogz205",i=r.searchParams.get("size")??1,c=r.searchParams.get("font")??1;t.value=`https://www.giambaj.it/twitch/jchat/v2/?channel=${o}&size=${i}&font=${c}`,Ht(()=>{setInterval(()=>{Math.ceil(n.value.scrollTop)+n.value.clientHeight{s.value=!1},1e3)}return(f,d)=>(fe(),_e(me,null,[G("div",{class:"chat-scroll-container",ref_key:"chatScrollContainer",ref:n},[G("iframe",{class:"chat-frame",src:t.value},null,8,Bc)],512),oe(us,{name:"slide-fade"},{default:rs(()=>[s.value?(fe(),_e("button",{key:0,onClick:a,class:"svg scroll-to-bottom-button bg-purple-700 hover:bg-purple-800 drop-shadow-lg rounded-full p-1 font-bold"},Vc)):pt("",!0)]),_:1})],64))}},Wc={class:"h-dvh"},Kc={class:"bottom"},Gc={__name:"App",setup(e){const t=Ae(null),n=Ae(null),s=Ae(null);return Ht(async()=>{let r=!1,o=0;function i(p){r=!0,y.mobile()?y.landscape()?o=p.touches[0].clientX:o=p.touches[0].clientY:o=p.y}function c(p){y.mobile()?y.landscape()?o=p.touches[0].clientX:o=p.touches[0].clientY:o=p.y,r&&(y.mobile()&&y.landscape()?n.value.style.width=o-s.value.getBoundingClientRect().width/2+"px":n.value.style.height=o-s.value.getBoundingClientRect().height/2+"px",p.preventDefault())}function a(p){r=!1}s.value.addEventListener("mousedown",i),s.value.addEventListener("touchstart",i),t.value.addEventListener("mousemove",c),t.value.addEventListener("touchmove",c),t.value.addEventListener("mouseup",a),t.value.addEventListener("touchend",a),y.mobile()&&y.landscape()?n.value.style.width=window.innerWidth/2+"px":n.value.style.height=window.innerHeight/3+"px";let f=document.querySelector(".chat-scroll-container");f.scrollTop=f.scrollHeight,y.onChangeOrientation(p=>{y.mobile()&&(p==="landscape"?(n.value.scrollTop=n.value.scrollHeight,n.value.style.height="",n.value.style.width=window.innerHeight/2+"px"):(n.value.style.width="",n.value.style.height=window.innerWidth/3+"px"))});let d=null;try{d=await navigator.wakeLock.request("screen"),alert("Wake Lock is active!")}catch(p){alert(`${p.name}, ${p.message}`)}}),(r,o)=>(fe(),_e("main",Wc,[G("div",{class:"resizeable-container",ref_key:"containerRef",ref:t},[G("div",{class:"top flex-shrink-0 overflow-y-auto px-3",ref_key:"topRef",ref:n},[oe(jc)],512),G("div",{class:"resize",ref_key:"resizeRef",ref:s},null,512),G("div",Kc,[oe(Uc)])],512)]))}};rc(Gc).mount("#app"); diff --git a/dist/index.html b/dist/index.html index bb6ac3e..3df8978 100644 --- a/dist/index.html +++ b/dist/index.html @@ -4,7 +4,7 @@ Split Feed for Twitch by Deleter - + diff --git a/src/App.vue b/src/App.vue index d2be6fa..8af9f60 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,7 +9,7 @@ const containerRef = ref(null); const topRef = ref(null); const resizeRef = ref(null); -onMounted(() => { +onMounted(async () => { let drag = false; @@ -90,6 +90,17 @@ onMounted(() => { } }); + // Create a reference for the Wake Lock. + let wakeLock = null; + + // create an async function to request a wake lock + try { + wakeLock = await navigator.wakeLock.request("screen"); + alert("Wake Lock is active!"); + } catch (err) { + // The Wake Lock request has failed - usually system related, such as battery. + alert(`${err.name}, ${err.message}`); + } })