var Xi=Object.defineProperty;var Zi=(e,t,n)=>t in e?Xi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var hr=(e,t,n)=>(Zi(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function Vs(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r!!n[r.toLowerCase()]:r=>!!n[r]}const ue={},Dt=[],je=()=>{},Gi=()=>!1,el=/^on[^a-z]/,jn=e=>el.test(e),js=e=>e.startsWith("onUpdate:"),_e=Object.assign,Bs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},tl=Object.prototype.hasOwnProperty,X=(e,t)=>tl.call(e,t),V=Array.isArray,$t=e=>mn(e)==="[object Map]",Bn=e=>mn(e)==="[object Set]",gr=e=>mn(e)==="[object Date]",W=e=>typeof e=="function",he=e=>typeof e=="string",on=e=>typeof e=="symbol",le=e=>e!==null&&typeof e=="object",bo=e=>le(e)&&W(e.then)&&W(e.catch),wo=Object.prototype.toString,mn=e=>wo.call(e),nl=e=>mn(e).slice(8,-1),Co=e=>mn(e)==="[object Object]",Us=e=>he(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,On=Vs(",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))},sl=/-(\w)/g,Je=Un(e=>e.replace(sl,(t,n)=>n?n.toUpperCase():"")),rl=/\B([A-Z])/g,Ot=Un(e=>e.replace(rl,"-$1").toLowerCase()),Hn=Un(e=>e.charAt(0).toUpperCase()+e.slice(1)),os=Un(e=>e?`on${Hn(e)}`:""),ln=(e,t)=>!Object.is(e,t),An=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},_s=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ol=e=>{const t=he(e)?Number(e):NaN;return isNaN(t)?e:t};let mr;const vs=()=>mr||(mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Hs(e){if(V(e)){const t={};for(let n=0;n{if(n){const s=n.split(ll);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ct(e){let t="";if(he(e))t=e;else if(V(e))for(let n=0;nKn(n,t))}const Ze=e=>he(e)?e:e==null?"":V(e)||le(e)&&(e.toString===wo||!W(e.toString))?JSON.stringify(e,Po,2):String(e),Po=(e,t)=>t&&t.__v_isRef?Po(e,t.value):$t(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Bn(t)?{[`Set(${t.size})`]:[...t.values()]}:le(t)&&!V(t)&&!Co(t)?String(t):t;let Le;class Oo{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{const t=new Set(e);return t.w=0,t.n=0,t},Io=e=>(e.w&dt)>0,So=e=>(e.n&dt)>0,gl=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(a==="length"||a>=c)&&l.push(u)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":V(e)?Us(n)&&l.push(i.get("length")):(l.push(i.get(Rt)),$t(e)&&l.push(i.get(Es)));break;case"delete":V(e)||(l.push(i.get(Rt)),$t(e)&&l.push(i.get(Es)));break;case"set":$t(e)&&l.push(i.get(Rt));break}if(l.length===1)l[0]&&bs(l[0]);else{const c=[];for(const u of l)u&&c.push(...u);bs(Ks(c))}}function bs(e,t){const n=V(e)?e:[...e];for(const s of n)s.computed&&vr(s);for(const s of n)s.computed||vr(s)}function vr(e,t){(e!==Fe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function _l(e,t){var n;return(n=Ln.get(e))==null?void 0:n.get(t)}const vl=Vs("__proto__,__v_isRef,__isVue"),Mo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(on)),yl=zs(),El=zs(!1,!0),bl=zs(!0),yr=wl();function wl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Y(this);for(let o=0,i=this.length;o{e[t]=function(...n){Kt();const s=Y(this)[t].apply(this,n);return Wt(),s}}),e}function Cl(e){const t=Y(this);return Ie(t,"has",e),t.hasOwnProperty(e)}function zs(e=!1,t=!1){return function(s,r,o){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&o===(e?t?Vl:Vo:t?Fo:No).get(s))return s;const i=V(s);if(!e){if(i&&X(yr,r))return Reflect.get(yr,r,o);if(r==="hasOwnProperty")return Cl}const l=Reflect.get(s,r,o);return(on(r)?Mo.has(r):vl(r))||(e||Ie(s,"get",r),t)?l:pe(l)?i&&Us(r)?l:l.value:le(l)?e?Bo(l):zt(l):l}}const xl=Do(),Rl=Do(!0);function Do(e=!1){return function(n,s,r,o){let i=n[s];if(Vt(i)&&pe(i)&&!pe(r))return!1;if(!e&&(!kn(r)&&!Vt(r)&&(i=Y(i),r=Y(r)),!V(n)&&pe(i)&&!pe(r)))return i.value=r,!0;const l=V(n)&&Us(s)?Number(s)e,Wn=e=>Reflect.getPrototypeOf(e);function bn(e,t,n=!1,s=!1){e=e.__v_raw;const r=Y(e),o=Y(t);n||(t!==o&&Ie(r,"get",t),Ie(r,"get",o));const{has:i}=Wn(r),l=s?qs:n?Ys:cn;if(i.call(r,t))return l(e.get(t));if(i.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function wn(e,t=!1){const n=this.__v_raw,s=Y(n),r=Y(e);return t||(e!==r&&Ie(s,"has",e),Ie(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Cn(e,t=!1){return e=e.__v_raw,!t&&Ie(Y(e),"iterate",Rt),Reflect.get(e,"size",e)}function Er(e){e=Y(e);const t=Y(this);return Wn(t).has.call(t,e)||(t.add(e),Ge(t,"add",e,e)),this}function br(e,t){t=Y(t);const n=Y(this),{has:s,get:r}=Wn(n);let o=s.call(n,e);o||(e=Y(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?ln(t,i)&&Ge(n,"set",e,t):Ge(n,"add",e,t),this}function wr(e){const t=Y(this),{has:n,get:s}=Wn(t);let r=n.call(t,e);r||(e=Y(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&Ge(t,"delete",e,void 0),o}function Cr(){const e=Y(this),t=e.size!==0,n=e.clear();return t&&Ge(e,"clear",void 0,void 0),n}function xn(e,t){return function(s,r){const o=this,i=o.__v_raw,l=Y(i),c=t?qs:e?Ys:cn;return!e&&Ie(l,"iterate",Rt),i.forEach((u,a)=>s.call(r,c(u),c(a),o))}}function Rn(e,t,n){return function(...s){const r=this.__v_raw,o=Y(r),i=$t(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=r[e](...s),a=n?qs:t?Ys:cn;return!t&&Ie(o,"iterate",c?Es:Rt),{next(){const{value:p,done:h}=u.next();return h?{value:p,done:h}:{value:l?[a(p[0]),a(p[1])]:a(p),done:h}},[Symbol.iterator](){return this}}}}function nt(e){return function(...t){return e==="delete"?!1:this}}function Sl(){const e={get(o){return bn(this,o)},get size(){return Cn(this)},has:wn,add:Er,set:br,delete:wr,clear:Cr,forEach:xn(!1,!1)},t={get(o){return bn(this,o,!1,!0)},get size(){return Cn(this)},has:wn,add:Er,set:br,delete:wr,clear:Cr,forEach:xn(!1,!0)},n={get(o){return bn(this,o,!0)},get size(){return Cn(this,!0)},has(o){return wn.call(this,o,!0)},add:nt("add"),set:nt("set"),delete:nt("delete"),clear:nt("clear"),forEach:xn(!0,!1)},s={get(o){return bn(this,o,!0,!0)},get size(){return Cn(this,!0)},has(o){return wn.call(this,o,!0)},add:nt("add"),set:nt("set"),delete:nt("delete"),clear:nt("clear"),forEach:xn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Rn(o,!1,!1),n[o]=Rn(o,!0,!1),t[o]=Rn(o,!1,!0),s[o]=Rn(o,!0,!0)}),[e,n,t,s]}const[Ll,kl,Ml,Dl]=Sl();function Js(e,t){const n=t?e?Dl:Ml:e?kl:Ll;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(X(n,r)&&r in s?n:s,r,o)}const $l={get:Js(!1,!1)},Nl={get:Js(!1,!0)},Fl={get:Js(!0,!1)},No=new WeakMap,Fo=new WeakMap,Vo=new WeakMap,Vl=new WeakMap;function jl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bl(e){return e.__v_skip||!Object.isExtensible(e)?0:jl(nl(e))}function zt(e){return Vt(e)?e:Qs(e,!1,$o,$l,No)}function jo(e){return Qs(e,!1,Il,Nl,Fo)}function Bo(e){return Qs(e,!0,Tl,Fl,Vo)}function Qs(e,t,n,s,r){if(!le(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=Bl(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function at(e){return Vt(e)?at(e.__v_raw):!!(e&&e.__v_isReactive)}function Vt(e){return!!(e&&e.__v_isReadonly)}function kn(e){return!!(e&&e.__v_isShallow)}function Uo(e){return at(e)||Vt(e)}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function zn(e){return Sn(e,"__v_skip",!0),e}const cn=e=>le(e)?zt(e):e,Ys=e=>le(e)?Bo(e):e;function Ho(e){ut&&Fe&&(e=Y(e),ko(e.dep||(e.dep=Ks())))}function Ko(e,t){e=Y(e);const n=e.dep;n&&bs(n)}function pe(e){return!!(e&&e.__v_isRef===!0)}function Ee(e){return Wo(e,!1)}function Ul(e){return Wo(e,!0)}function Wo(e,t){return pe(e)?e:new Hl(e,t)}class Hl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Y(t),this._value=n?t:cn(t)}get value(){return Ho(this),this._value}set value(t){const n=this.__v_isShallow||kn(t)||Vt(t);t=n?t:Y(t),ln(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:cn(t),Ko(this))}}function Ce(e){return pe(e)?e.value:e}const Kl={get:(e,t,n)=>Ce(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return pe(r)&&!pe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function zo(e){return at(e)?e:new Proxy(e,Kl)}function Wl(e){const t=V(e)?new Array(e.length):{};for(const n in e)t[n]=ql(e,n);return t}class zl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return _l(Y(this._object),this._key)}}function ql(e,t,n){const s=e[t];return pe(s)?s:new zl(e,t,n)}class Jl{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ws(t,()=>{this._dirty||(this._dirty=!0,Ko(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=Y(this);return Ho(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Ql(e,t,n=!1){let s,r;const o=W(e);return o?(s=e,r=je):(s=e.get,r=e.set),new Jl(s,r,o||!r,n)}function ft(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){_n(o,t,n)}return r}function De(e,t,n,s){if(W(e)){const o=ft(e,t,n,s);return o&&bo(o)&&o.catch(i=>{_n(i,t,n)}),o}const r=[];for(let o=0;o>>1;an(Re[s])ze&&Re.splice(t,1)}function Gl(e){V(e)?Nt.push(...e):(!Xe||!Xe.includes(e,e.allowRecurse?yt+1:yt))&&Nt.push(e),Jo()}function xr(e,t=un?ze+1:0){for(;tan(n)-an(s)),yt=0;yte.id==null?1/0:e.id,ec=(e,t)=>{const n=an(e)-an(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Yo(e){ws=!1,un=!0,Re.sort(ec);const t=je;try{for(ze=0;zehe(m)?m.trim():m)),p&&(r=n.map(_s))}let l,c=s[l=os(t)]||s[l=os(Je(t))];!c&&o&&(c=s[l=os(Ot(t))]),c&&De(c,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,De(u,e,6,r)}}function Xo(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!W(e)){const c=u=>{const a=Xo(u,t,!0);a&&(l=!0,_e(i,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(le(e)&&s.set(e,null),null):(V(o)?o.forEach(c=>i[c]=null):_e(i,o),le(e)&&s.set(e,i),i)}function Qn(e,t){return!e||!jn(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,Ot(t))||X(e,t))}let ye=null,Yn=null;function Mn(e){const t=ye;return ye=e,Yn=e&&e.type.__scopeId||null,t}function Zo(e){Yn=e}function Go(){Yn=null}function Zs(e,t=ye,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&$r(-1);const o=Mn(t);let i;try{i=e(...r)}finally{Mn(o),s._d&&$r(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function is(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:l,attrs:c,emit:u,render:a,renderCache:p,data:h,setupState:m,ctx:y,inheritAttrs:R}=e;let b,C;const P=Mn(e);try{if(n.shapeFlag&4){const S=r||s;b=We(a.call(S,S,p,o,m,h,y)),C=c}else{const S=t;b=We(S.length>1?S(o,{attrs:c,slots:l,emit:u}):S(o,null)),C=t.props?c:nc(c)}}catch(S){tn.length=0,_n(S,e,1),b=Z($e)}let D=b;if(C&&R!==!1){const S=Object.keys(C),{shapeFlag:K}=D;S.length&&K&7&&(i&&S.some(js)&&(C=sc(C,i)),D=pt(D,C))}return n.dirs&&(D=pt(D),D.dirs=D.dirs?D.dirs.concat(n.dirs):n.dirs),n.transition&&(D.transition=n.transition),b=D,Mn(P),b}const nc=e=>{let t;for(const n in e)(n==="class"||n==="style"||jn(n))&&((t||(t={}))[n]=e[n]);return t},sc=(e,t)=>{const n={};for(const s in e)(!js(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function rc(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Rr(s,i,u):!!i;if(c&8){const a=t.dynamicProps;for(let p=0;pe.__isSuspense;function lc(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Gl(e)}function ei(e,t){return Gs(e,null,t)}const Pn={};function Zt(e,t,n){return Gs(e,t,n)}function Gs(e,t,{immediate:n,deep:s,flush:r,onTrack:o,onTrigger:i}=ue){var l;const c=To()===((l=me)==null?void 0:l.scope)?me:null;let u,a=!1,p=!1;if(pe(e)?(u=()=>e.value,a=kn(e)):at(e)?(u=()=>e,s=!0):V(e)?(p=!0,a=e.some(S=>at(S)||kn(S)),u=()=>e.map(S=>{if(pe(S))return S.value;if(at(S))return xt(S);if(W(S))return ft(S,c,2)})):W(e)?t?u=()=>ft(e,c,2):u=()=>{if(!(c&&c.isUnmounted))return h&&h(),De(e,c,3,[m])}:u=je,t&&s){const S=u;u=()=>xt(S())}let h,m=S=>{h=P.onStop=()=>{ft(S,c,4)}},y;if(Bt)if(m=je,t?n&&De(t,c,3,[u(),p?[]:void 0,m]):u(),r==="sync"){const S=nu();y=S.__watcherHandles||(S.__watcherHandles=[])}else return je;let R=p?new Array(e.length).fill(Pn):Pn;const b=()=>{if(P.active)if(t){const S=P.run();(s||a||(p?S.some((K,ae)=>ln(K,R[ae])):ln(S,R)))&&(h&&h(),De(t,c,3,[S,R===Pn?void 0:p&&R[0]===Pn?[]:R,m]),R=S)}else P.run()};b.allowRecurse=!!t;let C;r==="sync"?C=b:r==="post"?C=()=>Te(b,c&&c.suspense):(b.pre=!0,c&&(b.id=c.uid),C=()=>Jn(b));const P=new Ws(u,C);t?n?b():R=P.run():r==="post"?Te(P.run.bind(P),c&&c.suspense):P.run();const D=()=>{P.stop(),c&&c.scope&&Bs(c.scope.effects,P)};return y&&y.push(D),D}function cc(e,t,n){const s=this.proxy,r=he(e)?e.includes(".")?ti(s,e):()=>s[e]:e.bind(s,s);let o;W(t)?o=t:(o=t.handler,n=t);const i=me;jt(this);const l=Gs(r,o.bind(s),n);return i?jt(i):Pt(),l}function ti(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{xt(n,t)});else if(Co(e))for(const n in e)xt(e[n],t);return e}function Dn(e,t){const n=ye;if(n===null)return e;const s=ts(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0}),li(()=>{e.isUnmounting=!0}),e}const Me=[Function,Array],ni={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Me,onEnter:Me,onAfterEnter:Me,onEnterCancelled:Me,onBeforeLeave:Me,onLeave:Me,onAfterLeave:Me,onLeaveCancelled:Me,onBeforeAppear:Me,onAppear:Me,onAfterAppear:Me,onAppearCancelled:Me},ac={name:"BaseTransition",props:ni,setup(e,{slots:t}){const n=Jc(),s=uc();let r;return()=>{const o=t.default&&ri(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const R of o)if(R.type!==$e){i=R;break}}const l=Y(e),{mode:c}=l;if(s.isLeaving)return ls(i);const u=Pr(i);if(!u)return ls(i);const a=Cs(u,l,s,n);xs(u,a);const p=n.subTree,h=p&&Pr(p);let m=!1;const{getTransitionKey:y}=u.type;if(y){const R=y();r===void 0?r=R:R!==r&&(r=R,m=!0)}if(h&&h.type!==$e&&(!Et(u,h)||m)){const R=Cs(h,l,s,n);if(xs(h,R),c==="out-in")return s.isLeaving=!0,R.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&n.update()},ls(i);c==="in-out"&&u.type!==$e&&(R.delayLeave=(b,C,P)=>{const D=si(s,h);D[String(h.key)]=h,b._leaveCb=()=>{C(),b._leaveCb=void 0,delete a.delayedLeave},a.delayedLeave=P})}return i}}},fc=ac;function si(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 Cs(e,t,n,s){const{appear:r,mode:o,persisted:i=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:a,onBeforeLeave:p,onLeave:h,onAfterLeave:m,onLeaveCancelled:y,onBeforeAppear:R,onAppear:b,onAfterAppear:C,onAppearCancelled:P}=t,D=String(e.key),S=si(n,e),K=(k,U)=>{k&&De(k,s,9,U)},ae=(k,U)=>{const q=U[1];K(k,U),V(k)?k.every(oe=>oe.length<=1)&&q():k.length<=1&&q()},fe={mode:o,persisted:i,beforeEnter(k){let U=l;if(!n.isMounted)if(r)U=R||l;else return;k._leaveCb&&k._leaveCb(!0);const q=S[D];q&&Et(e,q)&&q.el._leaveCb&&q.el._leaveCb(),K(U,[k])},enter(k){let U=c,q=u,oe=a;if(!n.isMounted)if(r)U=b||c,q=C||u,oe=P||a;else return;let M=!1;const G=k._enterCb=be=>{M||(M=!0,be?K(oe,[k]):K(q,[k]),fe.delayedLeave&&fe.delayedLeave(),k._enterCb=void 0)};U?ae(U,[k,G]):G()},leave(k,U){const q=String(e.key);if(k._enterCb&&k._enterCb(!0),n.isUnmounting)return U();K(p,[k]);let oe=!1;const M=k._leaveCb=G=>{oe||(oe=!0,U(),G?K(y,[k]):K(m,[k]),k._leaveCb=void 0,S[q]===e&&delete S[q])};S[q]=e,h?ae(h,[k,M]):M()},clone(k){return Cs(k,t,n,s)}};return fe}function ls(e){if(vn(e))return e=pt(e),e.children=null,e}function Pr(e){return vn(e)?e.children?e.children[0]:void 0:e}function xs(e,t){e.shapeFlag&6&&e.component?xs(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 ri(e,t=!1,n){let s=[],r=0;for(let o=0;o1)for(let o=0;o_e({name:e.name},t,{setup:e}))():e}const Gt=e=>!!e.type.__asyncLoader;function oi(e){W(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:o,suspensible:i=!0,onError:l}=e;let c=null,u,a=0;const p=()=>(a++,c=null,h()),h=()=>{let m;return c||(m=c=t().catch(y=>{if(y=y instanceof Error?y:new Error(String(y)),l)return new Promise((R,b)=>{l(y,()=>R(p()),()=>b(y),a+1)});throw y}).then(y=>m!==c&&c?c:(y&&(y.__esModule||y[Symbol.toStringTag]==="Module")&&(y=y.default),u=y,y)))};return ke({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return u},setup(){const m=me;if(u)return()=>cs(u,m);const y=P=>{c=null,_n(P,m,13,!s)};if(i&&m.suspense||Bt)return h().then(P=>()=>cs(P,m)).catch(P=>(y(P),()=>s?Z(s,{error:P}):null));const R=Ee(!1),b=Ee(),C=Ee(!!r);return r&&setTimeout(()=>{C.value=!1},r),o!=null&&setTimeout(()=>{if(!R.value&&!b.value){const P=new Error(`Async component timed out after ${o}ms.`);y(P),b.value=P}},o),h().then(()=>{R.value=!0,m.parent&&vn(m.parent.vnode)&&Jn(m.parent.update)}).catch(P=>{y(P),b.value=P}),()=>{if(R.value&&u)return cs(u,m);if(b.value&&s)return Z(s,{error:b.value});if(n&&!C.value)return Z(n)}}})}function cs(e,t){const{ref:n,props:s,children:r,ce:o}=t.vnode,i=Z(e,s,r);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const vn=e=>e.type.__isKeepAlive;function dc(e,t){ii(e,"a",t)}function pc(e,t){ii(e,"da",t)}function ii(e,t,n=me){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Xn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)vn(r.parent.vnode)&&hc(s,t,n,r),r=r.parent}}function hc(e,t,n,s){const r=Xn(t,e,s,!0);ci(()=>{Bs(s[t],r)},n)}function Xn(e,t,n=me,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Kt(),jt(n);const l=De(t,n,e,i);return Pt(),Wt(),l});return s?r.unshift(o):r.push(o),o}}const et=e=>(t,n=me)=>(!Bt||e==="sp")&&Xn(e,(...s)=>t(...s),n),gc=et("bm"),Zn=et("m"),mc=et("bu"),_c=et("u"),li=et("bum"),ci=et("um"),vc=et("sp"),yc=et("rtg"),Ec=et("rtc");function bc(e,t=me){Xn("ec",e,t)}const ui="components",ai=Symbol.for("v-ndc");function fi(e){return he(e)?wc(ui,e,!1)||e:e||ai}function wc(e,t,n=!0,s=!1){const r=ye||me;if(r){const o=r.type;if(e===ui){const l=Gc(o,!1);if(l&&(l===t||l===Je(t)||l===Hn(Je(t))))return o}const i=Or(r[e]||o[e],t)||Or(r.appContext[e],t);return!i&&s?o:i}}function Or(e,t){return e&&(e[t]||e[Je(t)]||e[Hn(Je(t))])}function di(e,t,n,s){let r;const o=n&&n[s];if(V(e)||he(e)){r=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o&&o[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,c=i.length;lNn(t)?!(t.type===$e||t.type===ve&&!hi(t.children)):!0)?e:null}const Rs=e=>e?Pi(e)?ts(e)||e.proxy:Rs(e.parent):null,en=_e(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=>Rs(e.parent),$root:e=>Rs(e.root),$emit:e=>e.emit,$options:e=>er(e),$forceUpdate:e=>e.f||(e.f=()=>Jn(e.update)),$nextTick:e=>e.n||(e.n=qn.bind(e.proxy)),$watch:e=>cc.bind(e)}),us=(e,t)=>e!==ue&&!e.__isScriptSetup&&X(e,t),Cc={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(us(s,t))return i[t]=1,s[t];if(r!==ue&&X(r,t))return i[t]=2,r[t];if((u=e.propsOptions[0])&&X(u,t))return i[t]=3,o[t];if(n!==ue&&X(n,t))return i[t]=4,n[t];Ps&&(i[t]=0)}}const a=en[t];let p,h;if(a)return t==="$attrs"&&Ie(e,"get",t),a(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==ue&&X(n,t))return i[t]=4,n[t];if(h=c.config.globalProperties,X(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return us(r,t)?(r[t]=n,!0):s!==ue&&X(s,t)?(s[t]=n,!0):X(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 l;return!!n[i]||e!==ue&&X(e,i)||us(t,i)||(l=o[0])&&X(l,i)||X(s,i)||X(en,i)||X(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ar(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ps=!0;function xc(e){const t=er(e),n=e.proxy,s=e.ctx;Ps=!1,t.beforeCreate&&Tr(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:u,created:a,beforeMount:p,mounted:h,beforeUpdate:m,updated:y,activated:R,deactivated:b,beforeDestroy:C,beforeUnmount:P,destroyed:D,unmounted:S,render:K,renderTracked:ae,renderTriggered:fe,errorCaptured:k,serverPrefetch:U,expose:q,inheritAttrs:oe,components:M,directives:G,filters:be}=t;if(u&&Rc(u,s,null),i)for(const ie in i){const ee=i[ie];W(ee)&&(s[ie]=ee.bind(n))}if(r){const ie=r.call(n,n);le(ie)&&(e.data=zt(ie))}if(Ps=!0,o)for(const ie in o){const ee=o[ie],Qe=W(ee)?ee.bind(n,n):W(ee.get)?ee.get.bind(n,n):je,tt=!W(ee)&&W(ee.set)?ee.set.bind(n):je,Ue=we({get:Qe,set:tt});Object.defineProperty(s,ie,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:Ae=>Ue.value=Ae})}if(l)for(const ie in l)gi(l[ie],s,n,ie);if(c){const ie=W(c)?c.call(n):c;Reflect.ownKeys(ie).forEach(ee=>{Tn(ee,ie[ee])})}a&&Tr(a,e,"c");function Q(ie,ee){V(ee)?ee.forEach(Qe=>ie(Qe.bind(n))):ee&&ie(ee.bind(n))}if(Q(gc,p),Q(Zn,h),Q(mc,m),Q(_c,y),Q(dc,R),Q(pc,b),Q(bc,k),Q(Ec,ae),Q(yc,fe),Q(li,P),Q(ci,S),Q(vc,U),V(q))if(q.length){const ie=e.exposed||(e.exposed={});q.forEach(ee=>{Object.defineProperty(ie,ee,{get:()=>n[ee],set:Qe=>n[ee]=Qe})})}else e.exposed||(e.exposed={});K&&e.render===je&&(e.render=K),oe!=null&&(e.inheritAttrs=oe),M&&(e.components=M),G&&(e.directives=G)}function Rc(e,t,n=je){V(e)&&(e=Os(e));for(const s in e){const r=e[s];let o;le(r)?"default"in r?o=qe(r.from||s,r.default,!0):o=qe(r.from||s):o=qe(r),pe(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Tr(e,t,n){De(V(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function gi(e,t,n,s){const r=s.includes(".")?ti(n,s):()=>n[s];if(he(e)){const o=t[e];W(o)&&Zt(r,o)}else if(W(e))Zt(r,e.bind(n));else if(le(e))if(V(e))e.forEach(o=>gi(o,t,n,s));else{const o=W(e.handler)?e.handler.bind(n):t[e.handler];W(o)&&Zt(r,o,e)}}function er(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(u=>$n(c,u,i,!0)),$n(c,t,i)),le(t)&&o.set(t,c),c}function $n(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&$n(e,o,n,!0),r&&r.forEach(i=>$n(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Pc[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Pc={data:Ir,props:Sr,emits:Sr,methods:Xt,computed:Xt,beforeCreate:Oe,created:Oe,beforeMount:Oe,mounted:Oe,beforeUpdate:Oe,updated:Oe,beforeDestroy:Oe,beforeUnmount:Oe,destroyed:Oe,unmounted:Oe,activated:Oe,deactivated:Oe,errorCaptured:Oe,serverPrefetch:Oe,components:Xt,directives:Xt,watch:Ac,provide:Ir,inject:Oc};function Ir(e,t){return t?e?function(){return _e(W(e)?e.call(this,this):e,W(t)?t.call(this,this):t)}:t:e}function Oc(e,t){return Xt(Os(e),Os(t))}function Os(e){if(V(e)){const t={};for(let n=0;n1)return n&&W(t)?t.call(s&&s.proxy):t}}function Sc(){return!!(me||ye||fn)}function Lc(e,t,n,s=!1){const r={},o={};Sn(o,es,1),e.propsDefaults=Object.create(null),_i(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:jo(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function kc(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=Y(r),[c]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[h,m]=vi(p,t,!0);_e(i,h),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!o&&!c)return le(e)&&s.set(e,Dt),Dt;if(V(o))for(let a=0;a-1,m[1]=R<0||y-1||X(m,"default"))&&l.push(p)}}}const u=[i,l];return le(e)&&s.set(e,u),u}function Lr(e){return e[0]!=="$"}function kr(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Mr(e,t){return kr(e)===kr(t)}function Dr(e,t){return V(t)?t.findIndex(n=>Mr(n,e)):W(t)&&Mr(t,e)?0:-1}const yi=e=>e[0]==="_"||e==="$stable",tr=e=>V(e)?e.map(We):[We(e)],Mc=(e,t,n)=>{if(t._n)return t;const s=Zs((...r)=>tr(t(...r)),n);return s._c=!1,s},Ei=(e,t,n)=>{const s=e._ctx;for(const r in e){if(yi(r))continue;const o=e[r];if(W(o))t[r]=Mc(r,o,s);else if(o!=null){const i=tr(o);t[r]=()=>i}}},bi=(e,t)=>{const n=tr(t);e.slots.default=()=>n},Dc=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Y(t),Sn(t,"_",n)):Ei(t,e.slots={})}else e.slots={},t&&bi(e,t);Sn(e.slots,es,1)},$c=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=ue;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(_e(r,t),!n&&l===1&&delete r._):(o=!t.$stable,Ei(t,r)),i=t}else t&&(bi(e,t),i={default:1});if(o)for(const l in r)!yi(l)&&!(l in i)&&delete r[l]};function Ts(e,t,n,s,r=!1){if(V(e)){e.forEach((h,m)=>Ts(h,t&&(V(t)?t[m]:t),n,s,r));return}if(Gt(s)&&!r)return;const o=s.shapeFlag&4?ts(s.component)||s.component.proxy:s.el,i=r?null:o,{i:l,r:c}=e,u=t&&t.r,a=l.refs===ue?l.refs={}:l.refs,p=l.setupState;if(u!=null&&u!==c&&(he(u)?(a[u]=null,X(p,u)&&(p[u]=null)):pe(u)&&(u.value=null)),W(c))ft(c,l,12,[i,a]);else{const h=he(c),m=pe(c);if(h||m){const y=()=>{if(e.f){const R=h?X(p,c)?p[c]:a[c]:c.value;r?V(R)&&Bs(R,o):V(R)?R.includes(o)||R.push(o):h?(a[c]=[o],X(p,c)&&(p[c]=a[c])):(c.value=[o],e.k&&(a[e.k]=c.value))}else h?(a[c]=i,X(p,c)&&(p[c]=i)):m&&(c.value=i,e.k&&(a[e.k]=i))};i?(y.id=-1,Te(y,n)):y()}}}const Te=lc;function Nc(e){return Fc(e)}function Fc(e,t){const n=vs();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:u,setElementText:a,parentNode:p,nextSibling:h,setScopeId:m=je,insertStaticContent:y}=e,R=(f,d,g,_=null,E=null,w=null,I=!1,O=null,A=!!d.dynamicChildren)=>{if(f===d)return;f&&!Et(f,d)&&(_=v(f),Ae(f,E,w,!0),f=null),d.patchFlag===-2&&(A=!1,d.dynamicChildren=null);const{type:x,ref:j,shapeFlag:$}=d;switch(x){case Gn:b(f,d,g,_);break;case $e:C(f,d,g,_);break;case as:f==null&&P(d,g,_,I);break;case ve:M(f,d,g,_,E,w,I,O,A);break;default:$&1?K(f,d,g,_,E,w,I,O,A):$&6?G(f,d,g,_,E,w,I,O,A):($&64||$&128)&&x.process(f,d,g,_,E,w,I,O,A,T)}j!=null&&E&&Ts(j,f&&f.ref,w,d||f,!d)},b=(f,d,g,_)=>{if(f==null)s(d.el=l(d.children),g,_);else{const E=d.el=f.el;d.children!==f.children&&u(E,d.children)}},C=(f,d,g,_)=>{f==null?s(d.el=c(d.children||""),g,_):d.el=f.el},P=(f,d,g,_)=>{[f.el,f.anchor]=y(f.children,d,g,_,f.el,f.anchor)},D=({el:f,anchor:d},g,_)=>{let E;for(;f&&f!==d;)E=h(f),s(f,g,_),f=E;s(d,g,_)},S=({el:f,anchor:d})=>{let g;for(;f&&f!==d;)g=h(f),r(f),f=g;r(d)},K=(f,d,g,_,E,w,I,O,A)=>{I=I||d.type==="svg",f==null?ae(d,g,_,E,w,I,O,A):U(f,d,E,w,I,O,A)},ae=(f,d,g,_,E,w,I,O)=>{let A,x;const{type:j,props:$,shapeFlag:B,transition:H,dirs:J}=f;if(A=f.el=i(f.type,w,$&&$.is,$),B&8?a(A,f.children):B&16&&k(f.children,A,null,_,E,w&&j!=="foreignObject",I,O),J&>(f,null,_,"created"),fe(A,f,f.scopeId,I,_),$){for(const re in $)re!=="value"&&!On(re)&&o(A,re,null,$[re],w,f.children,_,E,xe);"value"in $&&o(A,"value",null,$.value),(x=$.onVnodeBeforeMount)&&Ke(x,_,f)}J&>(f,null,_,"beforeMount");const ce=(!E||E&&!E.pendingBranch)&&H&&!H.persisted;ce&&H.beforeEnter(A),s(A,d,g),((x=$&&$.onVnodeMounted)||ce||J)&&Te(()=>{x&&Ke(x,_,f),ce&&H.enter(A),J&>(f,null,_,"mounted")},E)},fe=(f,d,g,_,E)=>{if(g&&m(f,g),_)for(let w=0;w<_.length;w++)m(f,_[w]);if(E){let w=E.subTree;if(d===w){const I=E.vnode;fe(f,I,I.scopeId,I.slotScopeIds,E.parent)}}},k=(f,d,g,_,E,w,I,O,A=0)=>{for(let x=A;x{const O=d.el=f.el;let{patchFlag:A,dynamicChildren:x,dirs:j}=d;A|=f.patchFlag&16;const $=f.props||ue,B=d.props||ue;let H;g&&mt(g,!1),(H=B.onVnodeBeforeUpdate)&&Ke(H,g,d,f),j&>(d,f,g,"beforeUpdate"),g&&mt(g,!0);const J=E&&d.type!=="foreignObject";if(x?q(f.dynamicChildren,x,O,g,_,J,w):I||ee(f,d,O,null,g,_,J,w,!1),A>0){if(A&16)oe(O,d,$,B,g,_,E);else if(A&2&&$.class!==B.class&&o(O,"class",null,B.class,E),A&4&&o(O,"style",$.style,B.style,E),A&8){const ce=d.dynamicProps;for(let re=0;re{H&&Ke(H,g,d,f),j&>(d,f,g,"updated")},_)},q=(f,d,g,_,E,w,I)=>{for(let O=0;O{if(g!==_){if(g!==ue)for(const O in g)!On(O)&&!(O in _)&&o(f,O,g[O],null,I,d.children,E,w,xe);for(const O in _){if(On(O))continue;const A=_[O],x=g[O];A!==x&&O!=="value"&&o(f,O,x,A,I,d.children,E,w,xe)}"value"in _&&o(f,"value",g.value,_.value)}},M=(f,d,g,_,E,w,I,O,A)=>{const x=d.el=f?f.el:l(""),j=d.anchor=f?f.anchor:l("");let{patchFlag:$,dynamicChildren:B,slotScopeIds:H}=d;H&&(O=O?O.concat(H):H),f==null?(s(x,g,_),s(j,g,_),k(d.children,g,j,E,w,I,O,A)):$>0&&$&64&&B&&f.dynamicChildren?(q(f.dynamicChildren,B,g,E,w,I,O),(d.key!=null||E&&d===E.subTree)&&wi(f,d,!0)):ee(f,d,g,j,E,w,I,O,A)},G=(f,d,g,_,E,w,I,O,A)=>{d.slotScopeIds=O,f==null?d.shapeFlag&512?E.ctx.activate(d,g,_,I,A):be(d,g,_,E,w,I,A):Pe(f,d,A)},be=(f,d,g,_,E,w,I)=>{const O=f.component=qc(f,_,E);if(vn(f)&&(O.ctx.renderer=T),Qc(O),O.asyncDep){if(E&&E.registerDep(O,Q),!f.el){const A=O.subTree=Z($e);C(null,A,d,g)}return}Q(O,f,d,g,E,w,I)},Pe=(f,d,g)=>{const _=d.component=f.component;if(rc(f,d,g))if(_.asyncDep&&!_.asyncResolved){ie(_,d,g);return}else _.next=d,Zl(_.update),_.update();else d.el=f.el,_.vnode=d},Q=(f,d,g,_,E,w,I)=>{const O=()=>{if(f.isMounted){let{next:j,bu:$,u:B,parent:H,vnode:J}=f,ce=j,re;mt(f,!1),j?(j.el=J.el,ie(f,j,I)):j=J,$&&An($),(re=j.props&&j.props.onVnodeBeforeUpdate)&&Ke(re,H,j,J),mt(f,!0);const ge=is(f),Ne=f.subTree;f.subTree=ge,R(Ne,ge,p(Ne.el),v(Ne),f,E,w),j.el=ge.el,ce===null&&oc(f,ge.el),B&&Te(B,E),(re=j.props&&j.props.onVnodeUpdated)&&Te(()=>Ke(re,H,j,J),E)}else{let j;const{el:$,props:B}=d,{bm:H,m:J,parent:ce}=f,re=Gt(d);if(mt(f,!1),H&&An(H),!re&&(j=B&&B.onVnodeBeforeMount)&&Ke(j,ce,d),mt(f,!0),$&&te){const ge=()=>{f.subTree=is(f),te($,f.subTree,f,E,null)};re?d.type.__asyncLoader().then(()=>!f.isUnmounted&&ge()):ge()}else{const ge=f.subTree=is(f);R(null,ge,g,_,f,E,w),d.el=ge.el}if(J&&Te(J,E),!re&&(j=B&&B.onVnodeMounted)){const ge=d;Te(()=>Ke(j,ce,ge),E)}(d.shapeFlag&256||ce&&Gt(ce.vnode)&&ce.vnode.shapeFlag&256)&&f.a&&Te(f.a,E),f.isMounted=!0,d=g=_=null}},A=f.effect=new Ws(O,()=>Jn(x),f.scope),x=f.update=()=>A.run();x.id=f.uid,mt(f,!0),x()},ie=(f,d,g)=>{d.component=f;const _=f.vnode.props;f.vnode=d,f.next=null,kc(f,d.props,_,g),$c(f,d.children,g),Kt(),xr(),Wt()},ee=(f,d,g,_,E,w,I,O,A=!1)=>{const x=f&&f.children,j=f?f.shapeFlag:0,$=d.children,{patchFlag:B,shapeFlag:H}=d;if(B>0){if(B&128){tt(x,$,g,_,E,w,I,O,A);return}else if(B&256){Qe(x,$,g,_,E,w,I,O,A);return}}H&8?(j&16&&xe(x,E,w),$!==x&&a(g,$)):j&16?H&16?tt(x,$,g,_,E,w,I,O,A):xe(x,E,w,!0):(j&8&&a(g,""),H&16&&k($,g,_,E,w,I,O,A))},Qe=(f,d,g,_,E,w,I,O,A)=>{f=f||Dt,d=d||Dt;const x=f.length,j=d.length,$=Math.min(x,j);let B;for(B=0;B<$;B++){const H=d[B]=A?lt(d[B]):We(d[B]);R(f[B],H,g,null,E,w,I,O,A)}x>j?xe(f,E,w,!0,!1,$):k(d,g,_,E,w,I,O,A,$)},tt=(f,d,g,_,E,w,I,O,A)=>{let x=0;const j=d.length;let $=f.length-1,B=j-1;for(;x<=$&&x<=B;){const H=f[x],J=d[x]=A?lt(d[x]):We(d[x]);if(Et(H,J))R(H,J,g,null,E,w,I,O,A);else break;x++}for(;x<=$&&x<=B;){const H=f[$],J=d[B]=A?lt(d[B]):We(d[B]);if(Et(H,J))R(H,J,g,null,E,w,I,O,A);else break;$--,B--}if(x>$){if(x<=B){const H=B+1,J=HB)for(;x<=$;)Ae(f[x],E,w,!0),x++;else{const H=x,J=x,ce=new Map;for(x=J;x<=B;x++){const Se=d[x]=A?lt(d[x]):We(d[x]);Se.key!=null&&ce.set(Se.key,x)}let re,ge=0;const Ne=B-J+1;let St=!1,fr=0;const qt=new Array(Ne);for(x=0;x=Ne){Ae(Se,E,w,!0);continue}let He;if(Se.key!=null)He=ce.get(Se.key);else for(re=J;re<=B;re++)if(qt[re-J]===0&&Et(Se,d[re])){He=re;break}He===void 0?Ae(Se,E,w,!0):(qt[He-J]=x+1,He>=fr?fr=He:St=!0,R(Se,d[He],g,null,E,w,I,O,A),ge++)}const dr=St?Vc(qt):Dt;for(re=dr.length-1,x=Ne-1;x>=0;x--){const Se=J+x,He=d[Se],pr=Se+1{const{el:w,type:I,transition:O,children:A,shapeFlag:x}=f;if(x&6){Ue(f.component.subTree,d,g,_);return}if(x&128){f.suspense.move(d,g,_);return}if(x&64){I.move(f,d,g,T);return}if(I===ve){s(w,d,g);for(let $=0;$O.enter(w),E);else{const{leave:$,delayLeave:B,afterLeave:H}=O,J=()=>s(w,d,g),ce=()=>{$(w,()=>{J(),H&&H()})};B?B(w,J,ce):ce()}else s(w,d,g)},Ae=(f,d,g,_=!1,E=!1)=>{const{type:w,props:I,ref:O,children:A,dynamicChildren:x,shapeFlag:j,patchFlag:$,dirs:B}=f;if(O!=null&&Ts(O,null,g,f,!0),j&256){d.ctx.deactivate(f);return}const H=j&1&&B,J=!Gt(f);let ce;if(J&&(ce=I&&I.onVnodeBeforeUnmount)&&Ke(ce,d,f),j&6)En(f.component,g,_);else{if(j&128){f.suspense.unmount(g,_);return}H&>(f,null,d,"beforeUnmount"),j&64?f.type.remove(f,d,g,E,T,_):x&&(w!==ve||$>0&&$&64)?xe(x,d,g,!1,!0):(w===ve&&$&384||!E&&j&16)&&xe(A,d,g),_&&Tt(f)}(J&&(ce=I&&I.onVnodeUnmounted)||H)&&Te(()=>{ce&&Ke(ce,d,f),H&>(f,null,d,"unmounted")},g)},Tt=f=>{const{type:d,el:g,anchor:_,transition:E}=f;if(d===ve){It(g,_);return}if(d===as){S(f);return}const w=()=>{r(g),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(f.shapeFlag&1&&E&&!E.persisted){const{leave:I,delayLeave:O}=E,A=()=>I(g,w);O?O(f.el,w,A):A()}else w()},It=(f,d)=>{let g;for(;f!==d;)g=h(f),r(f),f=g;r(d)},En=(f,d,g)=>{const{bum:_,scope:E,update:w,subTree:I,um:O}=f;_&&An(_),E.stop(),w&&(w.active=!1,Ae(I,f,d,g)),O&&Te(O,d),Te(()=>{f.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},xe=(f,d,g,_=!1,E=!1,w=0)=>{for(let I=w;If.shapeFlag&6?v(f.component.subTree):f.shapeFlag&128?f.suspense.next():h(f.anchor||f.el),L=(f,d,g)=>{f==null?d._vnode&&Ae(d._vnode,null,null,!0):R(d._vnode||null,f,d,null,null,null,g),xr(),Qo(),d._vnode=f},T={p:R,um:Ae,m:Ue,r:Tt,mt:be,mc:k,pc:ee,pbc:q,n:v,o:e};let F,te;return t&&([F,te]=t(T)),{render:L,hydrate:F,createApp:Ic(L,F)}}function mt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function wi(e,t,n=!1){const s=e.children,r=t.children;if(V(s)&&V(r))for(let o=0;o>1,e[n[l]]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}const jc=e=>e.__isTeleport,ve=Symbol.for("v-fgt"),Gn=Symbol.for("v-txt"),$e=Symbol.for("v-cmt"),as=Symbol.for("v-stc"),tn=[];let Ve=null;function se(e=!1){tn.push(Ve=e?null:[])}function Bc(){tn.pop(),Ve=tn[tn.length-1]||null}let dn=1;function $r(e){dn+=e}function Ci(e){return e.dynamicChildren=dn>0?Ve||Dt:null,Bc(),dn>0&&Ve&&Ve.push(e),e}function de(e,t,n,s,r,o){return Ci(z(e,t,n,s,r,o,!0))}function At(e,t,n,s,r){return Ci(Z(e,t,n,s,r,!0))}function Nn(e){return e?e.__v_isVNode===!0:!1}function Et(e,t){return e.type===t.type&&e.key===t.key}const es="__vInternal",xi=({key:e})=>e??null,In=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?he(e)||pe(e)||W(e)?{i:ye,r:e,k:t,f:!!n}:e:null);function z(e,t=null,n=null,s=0,r=null,o=e===ve?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&xi(t),ref:t&&In(t),scopeId:Yn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ye};return l?(nr(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=he(n)?8:16),dn>0&&!i&&Ve&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ve.push(c),c}const Z=Uc;function Uc(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===ai)&&(e=$e),Nn(e)){const l=pt(e,t,!0);return n&&nr(l,n),dn>0&&!o&&Ve&&(l.shapeFlag&6?Ve[Ve.indexOf(e)]=l:Ve.push(l)),l.patchFlag|=-2,l}if(eu(e)&&(e=e.__vccOpts),t){t=Hc(t);let{class:l,style:c}=t;l&&!he(l)&&(t.class=Ct(l)),le(c)&&(Uo(c)&&!V(c)&&(c=_e({},c)),t.style=Hs(c))}const i=he(e)?1:ic(e)?128:jc(e)?64:le(e)?4:W(e)?2:0;return z(e,t,n,s,r,i,o,!0)}function Hc(e){return e?Uo(e)||es in e?_e({},e):e:null}function pt(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,l=t?Kc(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&xi(l),ref:t&&t.ref?n&&r?V(r)?r.concat(In(t)):[r,In(t)]:In(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ve?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pt(e.ssContent),ssFallback:e.ssFallback&&pt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ri(e=" ",t=0){return Z(Gn,null,e,t)}function Ft(e="",t=!1){return t?(se(),At($e,null,e)):Z($e,null,e)}function We(e){return e==null||typeof e=="boolean"?Z($e):V(e)?Z(ve,null,e.slice()):typeof e=="object"?lt(e):Z(Gn,null,String(e))}function lt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pt(e)}function nr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),nr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(es in t)?t._ctx=ye:r===3&&ye&&(ye.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else W(t)?(t={default:t,_ctx:ye},n=32):(t=String(t),s&64?(n=16,t=[Ri(t)]):n=8);e.children=t,e.shapeFlag|=n}function Kc(...e){const t={};for(let n=0;nme||ye;let sr,Lt,Nr="__VUE_INSTANCE_SETTERS__";(Lt=vs()[Nr])||(Lt=vs()[Nr]=[]),Lt.push(e=>me=e),sr=e=>{Lt.length>1?Lt.forEach(t=>t(e)):Lt[0](e)};const jt=e=>{sr(e),e.scope.on()},Pt=()=>{me&&me.scope.off(),sr(null)};function Pi(e){return e.vnode.shapeFlag&4}let Bt=!1;function Qc(e,t=!1){Bt=t;const{props:n,children:s}=e.vnode,r=Pi(e);Lc(e,n,r,t),Dc(e,s);const o=r?Yc(e,t):void 0;return Bt=!1,o}function Yc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=zn(new Proxy(e.ctx,Cc));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Zc(e):null;jt(e),Kt();const o=ft(s,e,0,[e.props,r]);if(Wt(),Pt(),bo(o)){if(o.then(Pt,Pt),t)return o.then(i=>{Fr(e,i,t)}).catch(i=>{_n(i,e,0)});e.asyncDep=o}else Fr(e,o,t)}else Oi(e,t)}function Fr(e,t,n){W(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:le(t)&&(e.setupState=zo(t)),Oi(e,n)}let Vr;function Oi(e,t,n){const s=e.type;if(!e.render){if(!t&&Vr&&!s.render){const r=s.template||er(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,u=_e(_e({isCustomElement:o,delimiters:l},i),c);s.render=Vr(r,u)}}e.render=s.render||je}jt(e),Kt(),xc(e),Wt(),Pt()}function Xc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ie(e,"get","$attrs"),t[n]}}))}function Zc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Xc(e)},slots:e.slots,emit:e.emit,expose:t}}function ts(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(zo(zn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in en)return en[n](e)},has(t,n){return n in t||n in en}}))}function Gc(e,t=!0){return W(e)?e.displayName||e.name:e.name||t&&e.__name}function eu(e){return W(e)&&"__vccOpts"in e}const we=(e,t)=>Ql(e,t,Bt);function rr(e,t,n){const s=arguments.length;return s===2?le(t)&&!V(t)?Nn(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Nn(n)&&(n=[n]),Z(e,t,n))}const tu=Symbol.for("v-scx"),nu=()=>qe(tu),su="3.3.4",ru="http://www.w3.org/2000/svg",bt=typeof document<"u"?document:null,jr=bt&&bt.createElement("template"),ou={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?bt.createElementNS(ru,e):bt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>bt.createTextNode(e),createComment:e=>bt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>bt.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{jr.innerHTML=s?`${e}`:e;const l=jr.content;if(s){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function iu(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function lu(e,t,n){const s=e.style,r=he(n);if(n&&!r){if(t&&!he(t))for(const o in t)n[o]==null&&Is(s,o,"");for(const o in n)Is(s,o,n[o])}else{const o=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=o)}}const Br=/\s*!important$/;function Is(e,t,n){if(V(n))n.forEach(s=>Is(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=cu(e,t);Br.test(n)?e.setProperty(Ot(s),n.replace(Br,""),"important"):e[s]=n}}const Ur=["Webkit","Moz","ms"],fs={};function cu(e,t){const n=fs[t];if(n)return n;let s=Je(t);if(s!=="filter"&&s in e)return fs[t]=s;s=Hn(s);for(let r=0;rds||(hu.then(()=>ds=0),ds=Date.now());function mu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;De(_u(s,n.value),t,5,[s])};return n.value=e,n.attached=gu(),n}function _u(e,t){if(V(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 Wr=/^on[a-z]/,vu=(e,t,n,s,r=!1,o,i,l,c)=>{t==="class"?iu(e,s,r):t==="style"?lu(e,n,s):jn(t)?js(t)||du(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):yu(e,t,s,r))?au(e,t,s,o,i,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),uu(e,t,s,r))};function yu(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Wr.test(t)&&W(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Wr.test(t)&&he(n)?!1:t in e}const st="transition",Jt="animation",or=(e,{slots:t})=>rr(fc,Eu(e),t);or.displayName="Transition";const Ai={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};or.props=_e({},ni,Ai);const _t=(e,t=[])=>{V(e)?e.forEach(n=>n(...t)):e&&e(...t)},zr=e=>e?V(e)?e.some(t=>t.length>1):e.length>1:!1;function Eu(e){const t={};for(const M in e)M in Ai||(t[M]=e[M]);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:l=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:u=i,appearToClass:a=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,y=bu(r),R=y&&y[0],b=y&&y[1],{onBeforeEnter:C,onEnter:P,onEnterCancelled:D,onLeave:S,onLeaveCancelled:K,onBeforeAppear:ae=C,onAppear:fe=P,onAppearCancelled:k=D}=t,U=(M,G,be)=>{vt(M,G?a:l),vt(M,G?u:i),be&&be()},q=(M,G)=>{M._isLeaving=!1,vt(M,p),vt(M,m),vt(M,h),G&&G()},oe=M=>(G,be)=>{const Pe=M?fe:P,Q=()=>U(G,M,be);_t(Pe,[G,Q]),qr(()=>{vt(G,M?c:o),rt(G,M?a:l),zr(Pe)||Jr(G,s,R,Q)})};return _e(t,{onBeforeEnter(M){_t(C,[M]),rt(M,o),rt(M,i)},onBeforeAppear(M){_t(ae,[M]),rt(M,c),rt(M,u)},onEnter:oe(!1),onAppear:oe(!0),onLeave(M,G){M._isLeaving=!0;const be=()=>q(M,G);rt(M,p),xu(),rt(M,h),qr(()=>{M._isLeaving&&(vt(M,p),rt(M,m),zr(S)||Jr(M,s,b,be))}),_t(S,[M,be])},onEnterCancelled(M){U(M,!1),_t(D,[M])},onAppearCancelled(M){U(M,!0),_t(k,[M])},onLeaveCancelled(M){q(M),_t(K,[M])}})}function bu(e){if(e==null)return null;if(le(e))return[ps(e.enter),ps(e.leave)];{const t=ps(e);return[t,t]}}function ps(e){return ol(e)}function rt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function vt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function qr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let wu=0;function Jr(e,t,n,s){const r=e._endId=++wu,o=()=>{r===e._endId&&s()};if(n)return setTimeout(o,n);const{type:i,timeout:l,propCount:c}=Cu(e,t);if(!i)return s();const u=i+"end";let a=0;const p=()=>{e.removeEventListener(u,h),o()},h=m=>{m.target===e&&++a>=c&&p()};setTimeout(()=>{a(n[y]||"").split(", "),r=s(`${st}Delay`),o=s(`${st}Duration`),i=Qr(r,o),l=s(`${Jt}Delay`),c=s(`${Jt}Duration`),u=Qr(l,c);let a=null,p=0,h=0;t===st?i>0&&(a=st,p=i,h=o.length):t===Jt?u>0&&(a=Jt,p=u,h=c.length):(p=Math.max(i,u),a=p>0?i>u?st:Jt:null,h=a?a===st?o.length:c.length:0);const m=a===st&&/\b(transform|all)(,|$)/.test(s(`${st}Property`).toString());return{type:a,timeout:p,propCount:h,hasTransform:m}}function Qr(e,t){for(;e.lengthYr(n)+Yr(e[s])))}function Yr(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function xu(){return document.body.offsetHeight}const Fn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>An(t,n):t};function Ru(e){e.target.composing=!0}function Xr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ss={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=Fn(r);const o=s||r.props&&r.props.type==="number";wt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=_s(l)),e._assign(l)}),n&&wt(e,"change",()=>{e.value=e.value.trim()}),t||(wt(e,"compositionstart",Ru),wt(e,"compositionend",Xr),wt(e,"change",Xr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e._assign=Fn(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&_s(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},Pu={deep:!0,created(e,t,n){e._assign=Fn(n),wt(e,"change",()=>{const s=e._modelValue,r=Ou(e),o=e.checked,i=e._assign;if(V(s)){const l=Ro(s,r),c=l!==-1;if(o&&!c)i(s.concat(r));else if(!o&&c){const u=[...s];u.splice(l,1),i(u)}}else if(Bn(s)){const l=new Set(s);o?l.add(r):l.delete(r),i(l)}else i(Ti(e,o))})},mounted:Zr,beforeUpdate(e,t,n){e._assign=Fn(n),Zr(e,t,n)}};function Zr(e,{value:t,oldValue:n},s){e._modelValue=t,V(t)?e.checked=Ro(t,s.props.value)>-1:Bn(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Kn(t,Ti(e,!0)))}function Ou(e){return"_value"in e?e._value:e.value}function Ti(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Au=["ctrl","shift","alt","meta"],Tu={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Au.some(n=>e[`${n}Key`]&&!t.includes(n))},Iu=(e,t)=>(n,...s)=>{for(let r=0;rn=>{if(!("key"in n))return;const s=Ot(n.key);if(t.some(r=>r===s||Su[r]===s))return e(n)},Lu=_e({patchProp:vu},ou);let Gr;function ku(){return Gr||(Gr=Nc(Lu))}const Mu=(...e)=>{const t=ku().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Du(s);if(!r)return;const o=t._component;!W(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Du(e){return he(e)?document.querySelector(e):e}var $u=!1;/*! * pinia v2.1.6 * (c) 2023 Eduardo San Martin Morote * @license MIT */let Ii;const ns=e=>Ii=e,Si=Symbol();function ks(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var nn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(nn||(nn={}));function Nu(){const e=Ao(!0),t=e.run(()=>Ee({}));let n=[],s=[];const r=zn({install(o){ns(r),r._a=o,o.provide(Si,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return!this._a&&!$u?s.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const Li=()=>{};function eo(e,t,n,s=Li){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&To()&&hl(r),r}function kt(e,...t){e.slice().forEach(n=>{n(...t)})}const Fu=e=>e();function Ms(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];ks(r)&&ks(s)&&e.hasOwnProperty(n)&&!pe(s)&&!at(s)?e[n]=Ms(r,s):e[n]=s}return e}const Vu=Symbol();function ju(e){return!ks(e)||!e.hasOwnProperty(Vu)}const{assign:it}=Object;function Bu(e){return!!(pe(e)&&e.effect)}function Uu(e,t,n,s){const{state:r,actions:o,getters:i}=t,l=n.state.value[e];let c;function u(){l||(n.state.value[e]=r?r():{});const a=Wl(n.state.value[e]);return it(a,o,Object.keys(i||{}).reduce((p,h)=>(p[h]=zn(we(()=>{ns(n);const m=n._s.get(e);return i[h].call(m,m)})),p),{}))}return c=ki(e,u,t,n,s,!0),c}function ki(e,t,n={},s,r,o){let i;const l=it({actions:{}},n),c={deep:!0};let u,a,p=[],h=[],m;const y=s.state.value[e];!o&&!y&&(s.state.value[e]={}),Ee({});let R;function b(k){let U;u=a=!1,typeof k=="function"?(k(s.state.value[e]),U={type:nn.patchFunction,storeId:e,events:m}):(Ms(s.state.value[e],k),U={type:nn.patchObject,payload:k,storeId:e,events:m});const q=R=Symbol();qn().then(()=>{R===q&&(u=!0)}),a=!0,kt(p,U,s.state.value[e])}const C=o?function(){const{state:U}=n,q=U?U():{};this.$patch(oe=>{it(oe,q)})}:Li;function P(){i.stop(),p=[],h=[],s._s.delete(e)}function D(k,U){return function(){ns(s);const q=Array.from(arguments),oe=[],M=[];function G(Q){oe.push(Q)}function be(Q){M.push(Q)}kt(h,{args:q,name:k,store:K,after:G,onError:be});let Pe;try{Pe=U.apply(this&&this.$id===e?this:K,q)}catch(Q){throw kt(M,Q),Q}return Pe instanceof Promise?Pe.then(Q=>(kt(oe,Q),Q)).catch(Q=>(kt(M,Q),Promise.reject(Q))):(kt(oe,Pe),Pe)}}const S={_p:s,$id:e,$onAction:eo.bind(null,h),$patch:b,$reset:C,$subscribe(k,U={}){const q=eo(p,k,U.detached,()=>oe()),oe=i.run(()=>Zt(()=>s.state.value[e],M=>{(U.flush==="sync"?a:u)&&k({storeId:e,type:nn.direct,events:m},M)},it({},c,U)));return q},$dispose:P},K=zt(S);s._s.set(e,K);const ae=s._a&&s._a.runWithContext||Fu,fe=s._e.run(()=>(i=Ao(),ae(()=>i.run(t))));for(const k in fe){const U=fe[k];if(pe(U)&&!Bu(U)||at(U))o||(y&&ju(U)&&(pe(U)?U.value=y[k]:Ms(U,y[k])),s.state.value[e][k]=U);else if(typeof U=="function"){const q=D(k,U);fe[k]=q,l.actions[k]=U}}return it(K,fe),it(Y(K),fe),Object.defineProperty(K,"$state",{get:()=>s.state.value[e],set:k=>{b(U=>{it(U,k)})}}),s._p.forEach(k=>{it(K,i.run(()=>k({store:K,app:s._a,pinia:s,options:l})))}),y&&o&&n.hydrate&&n.hydrate(K.$state,y),u=!0,a=!0,K}function Hu(e,t,n){let s,r;const o=typeof t=="function";typeof e=="string"?(s=e,r=o?n:t):(r=e,s=e.id);function i(l,c){const u=Sc();return l=l||(u?qe(Si,null):null),l&&ns(l),l=Ii,l._s.has(s)||(o?ki(s,t,r,l):Uu(s,r,l)),l._s.get(s)}return i.$id=s,i}const Ku="modulepreload",Wu=function(e){return"/"+e},to={},N=function(t,n,s){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=Wu(o),o in to)return;to[o]=!0;const i=o.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!s)for(let a=r.length-1;a>=0;a--){const p=r[a];if(p.href===o&&(!i||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":Ku,i||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),i)return new Promise((a,p)=>{u.addEventListener("load",a),u.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},zu={class:"breadcrumb"},qu={href:"#/"},Ju=["href"],Qu=ke({__name:"BreadCrumb",props:{path:{}},setup(e){const t=e,n=oi(()=>N(()=>import("./home-d285f14e.js"),[]));return(s,r)=>(se(),de("div",zu,[z("a",qu,[(se(),At(fi(Ce(n))))]),(se(!0),de(ve,null,di(t.path,(o,i)=>(se(),de("a",{key:i,href:`/#/${t.path.slice(0,i+1).join("/")}/`},Ze(decodeURIComponent(o)),9,Ju))),128))]))}});const Yu=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((s,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t)))})},Xu={class:"action-button"},Zu=ke({__name:"SvgButton",props:{name:{}},setup(e){const t=e,n=oi(()=>Yu(Object.assign({"../assets/svg/add-file.svg":()=>N(()=>import("./add-file-95b36b65.js"),[]),"../assets/svg/add-folder.svg":()=>N(()=>import("./add-folder-5b9c3d6b.js"),[]),"../assets/svg/arrow.svg":()=>N(()=>import("./arrow-bde502a8.js"),[]),"../assets/svg/arrows-h.svg":()=>N(()=>import("./arrows-h-fb665282.js"),[]),"../assets/svg/arrows-v.svg":()=>N(()=>import("./arrows-v-864170cd.js"),[]),"../assets/svg/check.svg":()=>N(()=>import("./check-ad138b7a.js"),[]),"../assets/svg/code.svg":()=>N(()=>import("./code-8fc91609.js"),[]),"../assets/svg/cog.svg":()=>N(()=>import("./cog-7624a593.js"),[]),"../assets/svg/copy.svg":()=>N(()=>import("./copy-28e88b19.js"),[]),"../assets/svg/create-file.svg":()=>N(()=>import("./create-file-ffbba0ba.js"),[]),"../assets/svg/create-folder.svg":()=>N(()=>import("./create-folder-4b29f436.js"),[]),"../assets/svg/cross.svg":()=>N(()=>import("./cross-ef0b10cc.js"),[]),"../assets/svg/disk.svg":()=>N(()=>import("./disk-0cd2c64b.js"),[]),"../assets/svg/download.svg":()=>N(()=>import("./download-4cf397b2.js"),[]),"../assets/svg/exclamation.svg":()=>N(()=>import("./exclamation-a7aa817f.js"),[]),"../assets/svg/eye.svg":()=>N(()=>import("./eye-b10dd6bc.js"),[]),"../assets/svg/find.svg":()=>N(()=>import("./find-f18d3fd0.js"),[]),"../assets/svg/fullscreen.svg":()=>N(()=>import("./fullscreen-d3dac56e.js"),[]),"../assets/svg/github.svg":()=>N(()=>import("./github-77eb9b29.js"),[]),"../assets/svg/home.svg":()=>N(()=>import("./home-d285f14e.js"),[]),"../assets/svg/info.svg":()=>N(()=>import("./info-e238a002.js"),[]),"../assets/svg/link.svg":()=>N(()=>import("./link-d26b743a.js"),[]),"../assets/svg/logo.svg":()=>N(()=>import("./logo-7b756274.js"),[]),"../assets/svg/loop.svg":()=>N(()=>import("./loop-b0cd4aa1.js"),[]),"../assets/svg/menu.svg":()=>N(()=>import("./menu-97221cc1.js"),[]),"../assets/svg/next.svg":()=>N(()=>import("./next-c2406af1.js"),[]),"../assets/svg/open.svg":()=>N(()=>import("./open-dfcb2d6b.js"),[]),"../assets/svg/paste.svg":()=>N(()=>import("./paste-1582aaf4.js"),[]),"../assets/svg/pause.svg":()=>N(()=>import("./pause-f1f7d53c.js"),[]),"../assets/svg/pencil.svg":()=>N(()=>import("./pencil-c63f9fc8.js"),[]),"../assets/svg/play.svg":()=>N(()=>import("./play-4eb9a4b6.js"),[]),"../assets/svg/plus.svg":()=>N(()=>import("./plus-3ac813e4.js"),[]),"../assets/svg/previous.svg":()=>N(()=>import("./previous-520319ba.js"),[]),"../assets/svg/reload.svg":()=>N(()=>import("./reload-17ed59fe.js"),[]),"../assets/svg/rename.svg":()=>N(()=>import("./rename-e9fdb487.js"),[]),"../assets/svg/scissors.svg":()=>N(()=>import("./scissors-81e66c4b.js"),[]),"../assets/svg/shuffle.svg":()=>N(()=>import("./shuffle-dd650e2c.js"),[]),"../assets/svg/signin.svg":()=>N(()=>import("./signin-f2babfa1.js"),[]),"../assets/svg/signout.svg":()=>N(()=>import("./signout-beecefdf.js"),[]),"../assets/svg/skip.svg":()=>N(()=>import("./skip-d02096cc.js"),[]),"../assets/svg/spinner.svg":()=>N(()=>import("./spinner-ee690536.js"),[]),"../assets/svg/stop.svg":()=>N(()=>import("./stop-2edca1b3.js"),[]),"../assets/svg/trash.svg":()=>N(()=>import("./trash-7a8c4aa3.js"),[]),"../assets/svg/triangle.svg":()=>N(()=>import("./triangle-82b13c01.js"),[]),"../assets/svg/unfullscreen.svg":()=>N(()=>import("./unfullscreen-b87c699f.js"),[]),"../assets/svg/up-arrow.svg":()=>N(()=>import("./up-arrow-bf6660c7.js"),[]),"../assets/svg/upload-cloud.svg":()=>N(()=>import("./upload-cloud-69639311.js"),[]),"../assets/svg/user-cog.svg":()=>N(()=>import("./user-cog-a529cf26.js"),[]),"../assets/svg/user.svg":()=>N(()=>import("./user-3cd69791.js"),[]),"../assets/svg/volume-high.svg":()=>N(()=>import("./volume-high-45dc773b.js"),[]),"../assets/svg/volume-low.svg":()=>N(()=>import("./volume-low-1a2bc298.js"),[]),"../assets/svg/volume-medium.svg":()=>N(()=>import("./volume-medium-5bb6a77c.js"),[]),"../assets/svg/volume-mute.svg":()=>N(()=>import("./volume-mute-ede7cb13.js"),[]),"../assets/svg/window-cross.svg":()=>N(()=>import("./window-cross-ad8de807.js"),[]),"../assets/svg/window.svg":()=>N(()=>import("./window-dea013bd.js"),[]),"../assets/svg/wordwrap.svg":()=>N(()=>import("./wordwrap-6c6f3645.js"),[]),"../assets/svg/zoomin.svg":()=>N(()=>import("./zoomin-81ab79d9.js"),[]),"../assets/svg/zoomout.svg":()=>N(()=>import("./zoomout-1ac52648.js"),[])}),`../assets/svg/${t.name}.svg`));return(s,r)=>(se(),de("button",Xu,[(se(),At(fi(Ce(n)))),pi(s.$slots,"default",{},void 0,!0)]))}});const yn=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Mi=yn(Zu,[["__scopeId","data-v-e0a8c284"]]);function Di(e){if(e===0)return"empty";for(const t of[null,"kB","MB","GB","TB","PB","EB"]){if(e<1e4)return e.toLocaleString().replace(","," ")+(t?` ${t}`:"");e=Math.round(e/1e3)}return"huge"}function Ds(e){const t=new Date(e*1e3),n=new Date,s=t.getTime()-n.getTime(),r=new Intl.RelativeTimeFormat("en",{numeric:"auto"});return Math.abs(s)<=5e3?"now":Math.abs(s)<=6e4?r.format(Math.round(s/1e3),"second"):Math.abs(s)<=36e5?r.format(Math.round(s/6e4),"minute"):Math.abs(s)<=864e5?r.format(Math.round(s/36e5),"hour"):Math.abs(s)<=6048e5?r.format(Math.round(s/864e5),"day"):t.toLocaleDateString(void 0,{weekday:"short",year:"numeric",month:"short",day:"numeric"})}var ir={};Object.defineProperty(ir,"__esModule",{value:!0});var $i=ir.localeIncludes=void 0,Gu=["position","locales"];function ea(e,t){if(e==null)return{};var n=ta(e,t),s,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}function ta(e,t){if(e==null)return{};var n={},s=Object.keys(e),r,o;for(o=0;o=0)&&(n[r]=e[r]);return n}var na=function(t,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=s.position,o=r===void 0?0:r,i=s.locales,l=ea(s,Gu);if(t==null||n===void 0||n===null)throw new Error("localeIncludes requires at least 2 parameters");for(var c=t.length,u=n.length,a=c-u,p=o;p<=a;p++)if(t.substring(p,p+u).localeCompare(n,i,l)===0)return!0;return!1};$i=ir.localeIncludes=na;const ht=Hu({id:"documents",state:()=>({root:{},document:[],selected:new Set,uploadingDocuments:[],uploadCount:0,wsWatch:void 0,wsUpload:void 0,fileExplorer:null,error:"",user:{username:"",privileged:!1,isLoggedIn:!1,isOpenLoginModal:!1}}),actions:{updateTable(e){const t=[];for(const[n,s]of Object.entries(e)){const{id:r,size:o,mtime:i}=s,l={name:n,key:r,size:o,sizedisp:Di(o),mtime:i,modified:Ds(i),type:"dir"in s?"folder":"file"};t.push(l)}t.sort((n,s)=>n.type===s.type?n.name.localeCompare(s.name):n.type==="folder"?-1:1),this.document=t},setFilter(e){function t(s,r){if("dir"in s)for(const[o,i]of Object.entries(s.dir)){const l=`${r}/${o}`;$i(o,e,{usage:"search",sensitivity:"base"})&&(n[l.slice(1)]=i),t(i,l)}}const n={};t(this.root,""),this.updateTable(n)},setActualDocument(e){e=decodeURIComponent(e);let t=this.root;const n=[];try{for(const s of e.split("/").slice(1))if(s){if(!("dir"in t))throw Error("Target folder not available");n.push(s),t=t.dir[s]}}catch(s){console.error("Cannot show requested folder",e,n.join("/"),s)}if(!("dir"in t)){this.document=[];return}this.updateTable(t.dir)},updateUploadingDocuments(e,t){for(const n of this.uploadingDocuments)n.key===e&&(n.progress=t)},pushUploadingDocuments(e){this.uploadCount++;const t={key:this.uploadCount,name:e,progress:0};return this.uploadingDocuments.push(t),t},deleteUploadingDocument(e){this.uploadingDocuments=this.uploadingDocuments.filter(t=>t.key!==e)},updateModified(){for(const e of this.document)"mtime"in e&&(e.modified=Ds(e.mtime))},login(e,t){this.user.username=e,this.user.privileged=t,this.user.isLoggedIn=!0,this.user.isOpenLoginModal=!1}},getters:{mainDocument(){return this.document},isUserLogged(){return this.user.isLoggedIn}}}),sa=ke({__name:"UploadButton",setup(e){const t=Ee(),n=Ee(),s=ht(),r=a=>i(),o=Ee(!1),i=a=>{o.value||(o.value=!0)};async function l(a,p,h){const m=new FileReader,y=new Promise(b=>m.onload=b);m.readAsArrayBuffer(a.slice(p,h));const R=await y;if(R.target&&R.target instanceof FileReader)return R.target.result;throw new Error("Error loading file")}async function c(a,p,h){const m=s.wsUpload;if(m){const y=await l(a,p,h);m.send(JSON.stringify({name:a.name,size:a.size,start:p,end:h})),m.send(y)}}async function u(a){const p=a.target,h=1<<20;if(p&&p.files&&p.files.length>0){const m=p.files[0],y=Math.ceil(m.size/h),R=s.pushUploadingDocuments(m.name);r();for(let b=0;b{const h=Mi;return se(),de(ve,null,[z("template",null,[z("input",{ref_key:"fileUploadButton",ref:t,onChange:u,class:"upload-input",type:"file",multiple:""},null,544),z("input",{ref_key:"folderUploadButton",ref:n,onChange:u,class:"upload-input",type:"file",webkitdirectory:""},null,544)]),Z(h,{name:"add-file",onClick:p[0]||(p[0]=m=>t.value.click())}),Z(h,{name:"add-folder",onClick:p[1]||(p[1]=m=>n.value.click())})],64)}}}),lr=e=>(Zo("data-v-e5a53e5b"),e=e(),Go(),e),ra={class:"buttons"},oa=lr(()=>z("div",{class:"smallgap"},null,-1)),ia=lr(()=>z("p",null,"N selected files:",-1)),la=lr(()=>z("div",{class:"spacer"},null,-1)),ca=["onKeyup"],ua=ke({__name:"HeaderMain",setup(e){const t=ht(),n=Ee(""),s=Ee(!1),r=Ee(),o=()=>{s.value=!s.value,s.value||(n.value=""),qn(()=>{const i=r.value;i&&i.focus()})};return(i,l)=>{const c=sa,u=Mi;return se(),de("nav",null,[z("div",ra,[Z(c),Z(u,{name:"create-folder",onClick:l[0]||(l[0]=()=>Ce(t).fileExplorer.newFolder())}),(se(),de(ve,{key:0},[oa,ia,Z(u,{name:"copy"}),Z(u,{name:"paste"}),Z(u,{name:"trash"})],64)),la,Z(u,{name:"find",onClick:o}),s.value?Dn((se(),de("input",{key:1,ref_key:"search",ref:r,type:"search","onUpdate:modelValue":l[1]||(l[1]=a=>n.value=a),class:"margin-input",onKeyup:Ls(o,["esc"])},null,40,ca)),[[Ss,n.value]]):Ft("",!0)])])}}});const aa=yn(ua,[["__scopeId","data-v-e5a53e5b"]]),fa={key:0},da=z("button",{onclick:"dialog.close()"},"OK",-1),pa=ke({__name:"ModalDialog",props:{title:{default:""}},setup(e){const t=e,n=Ee(null);return Zn(()=>{n.value.showModal()}),(s,r)=>(se(),de("dialog",{ref_key:"dialog",ref:n},[t.title?(se(),de("h1",fa,Ze(t.title),1)):Ft("",!0),z("div",null,[pi(s.$slots,"default",{},()=>[Ri(" Dialog with no content "),da])])],512))}});class ha{async post(t,n){const s=await fetch(t,{method:"POST",headers:{accept:"application/json","content-type":"application/json"},body:n!==void 0?JSON.stringify(n):void 0});let r;try{r=await s.json()}catch{throw new no(s.status,`HTTP ${s.status} ${s.statusText}`)}if("error"in r)throw new no(r.error.code,r.error.message);return r}}const Ni=new ha;class no extends Error{constructor(n,s){super(s);hr(this,"code");this.code=n}}const ga="/login",ma="/logout ";async function _a(e,t){return await Ni.post(ga,{username:e,password:t})}async function va(){return await Ni.post(ma)}const cr=e=>(Zo("data-v-4cfed399"),e=e(),Go(),e),ya=["onSubmit"],Ea={class:"login-container"},ba=cr(()=>z("label",{for:"username"},"Username:",-1)),wa=cr(()=>z("label",{for:"password"},"Password:",-1)),Ca={key:0,class:"error-text"},xa=cr(()=>z("input",{type:"submit",class:"button-login"},null,-1)),Ra=ke({__name:"LoginModal",setup(e){const t=Ee(!1),n=ht(),s=async()=>{try{await va()}finally{location.reload()}},r=zt({username:"",password:"",error:""}),o=async()=>{try{r.error="",t.value=!0;const i=await _a(r.username,r.password);console.log("Logged in",i),n.login(i.username,!!i.privileged)}catch(i){const l=i;l.name&&(r.error=l.message)}finally{t.value=!1}};return(i,l)=>{const c=pa;return se(),de(ve,null,[Ce(n).isUserLogged?(se(),de("button",{key:0,onClick:s,class:"action-button"}," Logout "+Ze(Ce(n).user.username),1)):Ft("",!0),Ce(n).user.isOpenLoginModal?(se(),At(c,{key:1,title:"Login"},{default:Zs(()=>[z("form",{onSubmit:Iu(o,["prevent"])},[z("div",Ea,[ba,Dn(z("input",{id:"username",name:"username",autocomplete:"username",required:"","onUpdate:modelValue":l[0]||(l[0]=u=>r.username=u)},null,512),[[Ss,r.username]]),wa,Dn(z("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",required:"","onUpdate:modelValue":l[1]||(l[1]=u=>r.password=u)},null,512),[[Ss,r.password]])]),r.error.length>0?(se(),de("h3",Ca,Ze(r.error),1)):Ft("",!0),xa],40,ya)]),_:1})):Ft("",!0)],64)}}});const Pa=yn(Ra,[["__scopeId","data-v-4cfed399"]]);/*! * vue-router v4.2.4 * (c) 2023 Eduardo San Martin Morote * @license MIT */const Mt=typeof window<"u";function Oa(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ne=Object.assign;function hs(e,t){const n={};for(const s in t){const r=t[s];n[s]=Be(r)?r.map(e):e(r)}return n}const sn=()=>{},Be=Array.isArray,Aa=/\/$/,Ta=e=>e.replace(Aa,"");function gs(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(s=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=ka(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function Ia(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function so(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Sa(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Ut(t.matched[s],n.matched[r])&&Fi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ut(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Fi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!La(e[n],t[n]))return!1;return!0}function La(e,t){return Be(e)?ro(e,t):Be(t)?ro(t,e):e===t}function ro(e,t){return Be(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function ka(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i-(i===s.length?1:0)).join("/")}var pn;(function(e){e.pop="pop",e.push="push"})(pn||(pn={}));var rn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(rn||(rn={}));function Ma(e){if(!e)if(Mt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ta(e)}const Da=/^[^#]+#/;function $a(e,t){return e.replace(Da,"#")+t}function Na(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const ss=()=>({left:window.pageXOffset,top:window.pageYOffset});function Fa(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Na(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function oo(e,t){return(history.state?history.state.position-t:-1)+e}const $s=new Map;function Va(e,t){$s.set(e,t)}function ja(e){const t=$s.get(e);return $s.delete(e),t}let Ba=()=>location.protocol+"//"+location.host;function Vi(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let l=r.includes(e.slice(o))?e.slice(o).length:1,c=r.slice(l);return c[0]!=="/"&&(c="/"+c),so(c,"")}return so(n,e)+s+r}function Ua(e,t,n,s){let r=[],o=[],i=null;const l=({state:h})=>{const m=Vi(e,location),y=n.value,R=t.value;let b=0;if(h){if(n.value=m,t.value=h,i&&i===y){i=null;return}b=R?h.position-R.position:0}else s(m);r.forEach(C=>{C(n.value,y,{delta:b,type:pn.pop,direction:b?b>0?rn.forward:rn.back:rn.unknown})})};function c(){i=n.value}function u(h){r.push(h);const m=()=>{const y=r.indexOf(h);y>-1&&r.splice(y,1)};return o.push(m),m}function a(){const{history:h}=window;h.state&&h.replaceState(ne({},h.state,{scroll:ss()}),"")}function p(){for(const h of o)h();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",a)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",a,{passive:!0}),{pauseListeners:c,listen:u,destroy:p}}function io(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?ss():null}}function Ha(e){const{history:t,location:n}=window,s={value:Vi(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,u,a){const p=e.indexOf("#"),h=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+c:Ba()+e+c;try{t[a?"replaceState":"pushState"](u,"",h),r.value=u}catch(m){console.error(m),n[a?"replace":"assign"](h)}}function i(c,u){const a=ne({},t.state,io(r.value.back,c,r.value.forward,!0),u,{position:r.value.position});o(c,a,!0),s.value=c}function l(c,u){const a=ne({},r.value,t.state,{forward:c,scroll:ss()});o(a.current,a,!0);const p=ne({},io(s.value,c,null),{position:a.position+1},u);o(c,p,!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function Ka(e){e=Ma(e);const t=Ha(e),n=Ua(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=ne({location:"",base:e,go:s,createHref:$a.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Wa(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Ka(e)}function za(e){return typeof e=="string"||e&&typeof e=="object"}function ji(e){return typeof e=="string"||typeof e=="symbol"}const ot={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Bi=Symbol("");var lo;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(lo||(lo={}));function Ht(e,t){return ne(new Error,{type:e,[Bi]:!0},t)}function Ye(e,t){return e instanceof Error&&Bi in e&&(t==null||!!(e.type&t))}const co="[^/]+?",qa={sensitive:!1,strict:!1,start:!0,end:!0},Ja=/[.+*?^${}()[\]/\\]/g;function Qa(e,t){const n=ne({},qa,t),s=[];let r=n.start?"^":"";const o=[];for(const u of e){const a=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let p=0;pt.length?t.length===1&&t[0]===40+40?1:-1:0}function Xa(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Za={type:0,value:""},Ga=/[a-zA-Z0-9_]/;function ef(e){if(!e)return[[]];if(e==="/")return[[Za]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${u}": ${m}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,u="",a="";function p(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:a,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=c}for(;l{i(P)}:sn}function i(a){if(ji(a)){const p=s.get(a);p&&(s.delete(a),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(a);p>-1&&(n.splice(p,1),a.record.name&&s.delete(a.record.name),a.children.forEach(i),a.alias.forEach(i))}}function l(){return n}function c(a){let p=0;for(;p=0&&(a.record.path!==n[p].record.path||!Ui(a,n[p]));)p++;n.splice(p,0,a),a.record.name&&!fo(a)&&s.set(a.record.name,a)}function u(a,p){let h,m={},y,R;if("name"in a&&a.name){if(h=s.get(a.name),!h)throw Ht(1,{location:a});R=h.record.name,m=ne(ao(p.params,h.keys.filter(P=>!P.optional).map(P=>P.name)),a.params&&ao(a.params,h.keys.map(P=>P.name))),y=h.stringify(m)}else if("path"in a)y=a.path,h=n.find(P=>P.re.test(y)),h&&(m=h.parse(y),R=h.record.name);else{if(h=p.name?s.get(p.name):n.find(P=>P.re.test(p.path)),!h)throw Ht(1,{location:a,currentLocation:p});R=h.record.name,m=ne({},p.params,a.params),y=h.stringify(m)}const b=[];let C=h;for(;C;)b.unshift(C.record),C=C.parent;return{name:R,path:y,params:m,matched:b,meta:of(b)}}return e.forEach(a=>o(a)),{addRoute:o,resolve:u,removeRoute:i,getRoutes:l,getRecordMatcher:r}}function ao(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function sf(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:rf(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function rf(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function fo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function of(e){return e.reduce((t,n)=>ne(t,n.meta),{})}function po(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Ui(e,t){return t.children.some(n=>n===e||Ui(e,n))}const Hi=/#/g,lf=/&/g,cf=/\//g,uf=/=/g,af=/\?/g,Ki=/\+/g,ff=/%5B/g,df=/%5D/g,Wi=/%5E/g,pf=/%60/g,zi=/%7B/g,hf=/%7C/g,qi=/%7D/g,gf=/%20/g;function ur(e){return encodeURI(""+e).replace(hf,"|").replace(ff,"[").replace(df,"]")}function mf(e){return ur(e).replace(zi,"{").replace(qi,"}").replace(Wi,"^")}function Ns(e){return ur(e).replace(Ki,"%2B").replace(gf,"+").replace(Hi,"%23").replace(lf,"%26").replace(pf,"`").replace(zi,"{").replace(qi,"}").replace(Wi,"^")}function _f(e){return Ns(e).replace(uf,"%3D")}function vf(e){return ur(e).replace(Hi,"%23").replace(af,"%3F")}function yf(e){return e==null?"":vf(e).replace(cf,"%2F")}function Vn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Ef(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Ns(o)):[s&&Ns(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function bf(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Be(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const wf=Symbol(""),go=Symbol(""),ar=Symbol(""),Ji=Symbol(""),Fs=Symbol("");function Qt(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ct(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,l)=>{const c=p=>{p===!1?l(Ht(4,{from:n,to:t})):p instanceof Error?l(p):za(p)?l(Ht(2,{from:t,to:p})):(o&&s.enterCallbacks[r]===o&&typeof p=="function"&&o.push(p),i())},u=e.call(s&&s.instances[r],t,n,c);let a=Promise.resolve(u);e.length<3&&(a=a.then(c)),a.catch(p=>l(p))})}function ms(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let l=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(Cf(l)){const u=(l.__vccOpts||l)[t];u&&r.push(ct(u,n,s,o,i))}else{let c=l();r.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const a=Oa(u)?u.default:u;o.components[i]=a;const h=(a.__vccOpts||a)[t];return h&&ct(h,n,s,o,i)()}))}}return r}function Cf(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function mo(e){const t=qe(ar),n=qe(Ji),s=we(()=>t.resolve(Ce(e.to))),r=we(()=>{const{matched:c}=s.value,{length:u}=c,a=c[u-1],p=n.matched;if(!a||!p.length)return-1;const h=p.findIndex(Ut.bind(null,a));if(h>-1)return h;const m=_o(c[u-2]);return u>1&&_o(a)===m&&p[p.length-1].path!==m?p.findIndex(Ut.bind(null,c[u-2])):h}),o=we(()=>r.value>-1&&Of(n.params,s.value.params)),i=we(()=>r.value>-1&&r.value===n.matched.length-1&&Fi(n.params,s.value.params));function l(c={}){return Pf(c)?t[Ce(e.replace)?"replace":"push"](Ce(e.to)).catch(sn):Promise.resolve()}return{route:s,href:we(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}const xf=ke({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:mo,setup(e,{slots:t}){const n=zt(mo(e)),{options:s}=qe(ar),r=we(()=>({[vo(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[vo(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:rr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),Rf=xf;function Pf(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Of(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Be(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function _o(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const vo=(e,t,n)=>e??t??n,Af=ke({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=qe(Fs),r=we(()=>e.route||s.value),o=qe(go,0),i=we(()=>{let u=Ce(o);const{matched:a}=r.value;let p;for(;(p=a[u])&&!p.components;)u++;return u}),l=we(()=>r.value.matched[i.value]);Tn(go,we(()=>i.value+1)),Tn(wf,l),Tn(Fs,r);const c=Ee();return Zt(()=>[c.value,l.value,e.name],([u,a,p],[h,m,y])=>{a&&(a.instances[p]=u,m&&m!==a&&u&&u===h&&(a.leaveGuards.size||(a.leaveGuards=m.leaveGuards),a.updateGuards.size||(a.updateGuards=m.updateGuards))),u&&a&&(!m||!Ut(a,m)||!h)&&(a.enterCallbacks[p]||[]).forEach(R=>R(u))},{flush:"post"}),()=>{const u=r.value,a=e.name,p=l.value,h=p&&p.components[a];if(!h)return yo(n.default,{Component:h,route:u});const m=p.props[a],y=m?m===!0?u.params:typeof m=="function"?m(u):m:null,b=rr(h,ne({},y,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(p.instances[a]=null)},ref:c}));return yo(n.default,{Component:b,route:u})||b}}});function yo(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Qi=Af;function Tf(e){const t=nf(e.routes,e),n=e.parseQuery||Ef,s=e.stringifyQuery||ho,r=e.history,o=Qt(),i=Qt(),l=Qt(),c=Ul(ot);let u=ot;Mt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=hs.bind(null,v=>""+v),p=hs.bind(null,yf),h=hs.bind(null,Vn);function m(v,L){let T,F;return ji(v)?(T=t.getRecordMatcher(v),F=L):F=v,t.addRoute(F,T)}function y(v){const L=t.getRecordMatcher(v);L&&t.removeRoute(L)}function R(){return t.getRoutes().map(v=>v.record)}function b(v){return!!t.getRecordMatcher(v)}function C(v,L){if(L=ne({},L||c.value),typeof v=="string"){const g=gs(n,v,L.path),_=t.resolve({path:g.path},L),E=r.createHref(g.fullPath);return ne(g,_,{params:h(_.params),hash:Vn(g.hash),redirectedFrom:void 0,href:E})}let T;if("path"in v)T=ne({},v,{path:gs(n,v.path,L.path).path});else{const g=ne({},v.params);for(const _ in g)g[_]==null&&delete g[_];T=ne({},v,{params:p(g)}),L.params=p(L.params)}const F=t.resolve(T,L),te=v.hash||"";F.params=a(h(F.params));const f=Ia(s,ne({},v,{hash:mf(te),path:F.path})),d=r.createHref(f);return ne({fullPath:f,hash:te,query:s===ho?bf(v.query):v.query||{}},F,{redirectedFrom:void 0,href:d})}function P(v){return typeof v=="string"?gs(n,v,c.value.path):ne({},v)}function D(v,L){if(u!==v)return Ht(8,{from:L,to:v})}function S(v){return fe(v)}function K(v){return S(ne(P(v),{replace:!0}))}function ae(v){const L=v.matched[v.matched.length-1];if(L&&L.redirect){const{redirect:T}=L;let F=typeof T=="function"?T(v):T;return typeof F=="string"&&(F=F.includes("?")||F.includes("#")?F=P(F):{path:F},F.params={}),ne({query:v.query,hash:v.hash,params:"path"in F?{}:v.params},F)}}function fe(v,L){const T=u=C(v),F=c.value,te=v.state,f=v.force,d=v.replace===!0,g=ae(T);if(g)return fe(ne(P(g),{state:typeof g=="object"?ne({},te,g.state):te,force:f,replace:d}),L||T);const _=T;_.redirectedFrom=L;let E;return!f&&Sa(s,F,T)&&(E=Ht(16,{to:_,from:F}),Ue(F,F,!0,!1)),(E?Promise.resolve(E):q(_,F)).catch(w=>Ye(w)?Ye(w,2)?w:tt(w):ee(w,_,F)).then(w=>{if(w){if(Ye(w,2))return fe(ne({replace:d},P(w.to),{state:typeof w.to=="object"?ne({},te,w.to.state):te,force:f}),L||_)}else w=M(_,F,!0,d,te);return oe(_,F,w),w})}function k(v,L){const T=D(v,L);return T?Promise.reject(T):Promise.resolve()}function U(v){const L=It.values().next().value;return L&&typeof L.runWithContext=="function"?L.runWithContext(v):v()}function q(v,L){let T;const[F,te,f]=If(v,L);T=ms(F.reverse(),"beforeRouteLeave",v,L);for(const g of F)g.leaveGuards.forEach(_=>{T.push(ct(_,v,L))});const d=k.bind(null,v,L);return T.push(d),xe(T).then(()=>{T=[];for(const g of o.list())T.push(ct(g,v,L));return T.push(d),xe(T)}).then(()=>{T=ms(te,"beforeRouteUpdate",v,L);for(const g of te)g.updateGuards.forEach(_=>{T.push(ct(_,v,L))});return T.push(d),xe(T)}).then(()=>{T=[];for(const g of f)if(g.beforeEnter)if(Be(g.beforeEnter))for(const _ of g.beforeEnter)T.push(ct(_,v,L));else T.push(ct(g.beforeEnter,v,L));return T.push(d),xe(T)}).then(()=>(v.matched.forEach(g=>g.enterCallbacks={}),T=ms(f,"beforeRouteEnter",v,L),T.push(d),xe(T))).then(()=>{T=[];for(const g of i.list())T.push(ct(g,v,L));return T.push(d),xe(T)}).catch(g=>Ye(g,8)?g:Promise.reject(g))}function oe(v,L,T){l.list().forEach(F=>U(()=>F(v,L,T)))}function M(v,L,T,F,te){const f=D(v,L);if(f)return f;const d=L===ot,g=Mt?history.state:{};T&&(F||d?r.replace(v.fullPath,ne({scroll:d&&g&&g.scroll},te)):r.push(v.fullPath,te)),c.value=v,Ue(v,L,T,d),tt()}let G;function be(){G||(G=r.listen((v,L,T)=>{if(!En.listening)return;const F=C(v),te=ae(F);if(te){fe(ne(te,{replace:!0}),F).catch(sn);return}u=F;const f=c.value;Mt&&Va(oo(f.fullPath,T.delta),ss()),q(F,f).catch(d=>Ye(d,12)?d:Ye(d,2)?(fe(d.to,F).then(g=>{Ye(g,20)&&!T.delta&&T.type===pn.pop&&r.go(-1,!1)}).catch(sn),Promise.reject()):(T.delta&&r.go(-T.delta,!1),ee(d,F,f))).then(d=>{d=d||M(F,f,!1),d&&(T.delta&&!Ye(d,8)?r.go(-T.delta,!1):T.type===pn.pop&&Ye(d,20)&&r.go(-1,!1)),oe(F,f,d)}).catch(sn)}))}let Pe=Qt(),Q=Qt(),ie;function ee(v,L,T){tt(v);const F=Q.list();return F.length?F.forEach(te=>te(v,L,T)):console.error(v),Promise.reject(v)}function Qe(){return ie&&c.value!==ot?Promise.resolve():new Promise((v,L)=>{Pe.add([v,L])})}function tt(v){return ie||(ie=!v,be(),Pe.list().forEach(([L,T])=>v?T(v):L()),Pe.reset()),v}function Ue(v,L,T,F){const{scrollBehavior:te}=e;if(!Mt||!te)return Promise.resolve();const f=!T&&ja(oo(v.fullPath,0))||(F||!T)&&history.state&&history.state.scroll||null;return qn().then(()=>te(v,L,f)).then(d=>d&&Fa(d)).catch(d=>ee(d,v,L))}const Ae=v=>r.go(v);let Tt;const It=new Set,En={currentRoute:c,listening:!0,addRoute:m,removeRoute:y,hasRoute:b,getRoutes:R,resolve:C,options:e,push:S,replace:K,go:Ae,back:()=>Ae(-1),forward:()=>Ae(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:Q.add,isReady:Qe,install(v){const L=this;v.component("RouterLink",Rf),v.component("RouterView",Qi),v.config.globalProperties.$router=L,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>Ce(c)}),Mt&&!Tt&&c.value===ot&&(Tt=!0,S(r.location).catch(te=>{}));const T={};for(const te in ot)Object.defineProperty(T,te,{get:()=>c.value[te],enumerable:!0});v.provide(ar,L),v.provide(Ji,jo(T)),v.provide(Fs,c);const F=v.unmount;It.add(v),v.unmount=function(){It.delete(v),It.size<1&&(u=ot,G&&G(),G=null,c.value=ot,Tt=!1,ie=!1),F()}}};function xe(v){return v.reduce((L,T)=>L.then(()=>U(T)),Promise.resolve())}return En}function If(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iUt(u,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(u=>Ut(u,c))||r.push(c))}return[n,s,r]}function hn(e,t){const n=new URL(e,location.origin.replace(/^http/,"ws")),s=new WebSocket(n);return s.onmessage=t,s}const Yi="/api/watch",Sf="/api/upload";class Lf{constructor(t=ht()){this.store=t,this.handleWebSocketMessage=this.handleWebSocketMessage.bind(this)}handleWebSocketMessage(t){const n=JSON.parse(t.data);switch("error"in n&&(n.error.code===401?(this.store.user.isLoggedIn=!1,this.store.user.isOpenLoginModal=!0):this.store.error=n.error.message,setTimeout(()=>{this.store.wsWatch=hn(Yi,this.handleWebSocketMessage)},1e3)),!0){case!!n.root:this.handleRootMessage(n);break;case!!n.update:this.handleUpdateMessage(n);break;case!!n.error:this.handleError(n);break}}handleRootMessage({root:t}){this.store&&this.store.root&&(this.store.user.isLoggedIn=!0,this.store.root=t)}handleUpdateMessage(t){var s,r;let n=this.store.root;for(const o of t.update){if(o.deleted){delete n.dir[o.name];break}o.name!==void 0&&(n=(s=n.dir)[r=o.name]||(s[r]={})),o.id!==void 0&&(n.id=o.id),o.size!==void 0&&(n.size=o.size),o.mtime!==void 0&&(n.mtime=o.mtime),o.dir!==void 0&&(n.dir=o.dir)}}handleError(t){if(t.error.code===401){this.store.user.isOpenLoginModal=!0,this.store.user.isLoggedIn=!1;return}}}class kf{constructor(t=ht()){this.store=t,this.handleWebSocketMessage=this.handleWebSocketMessage.bind(this)}handleWebSocketMessage(t){const n=JSON.parse(t.data);switch(!0){case!!n.written:this.handleWrittenMessage(n);break}}handleWrittenMessage(t){console.log("Written message",t.written)}}const Mf=["value","onKeyup"],Eo=ke({__name:"FileRenameInput",props:{doc:{},rename:{type:Function},exit:{type:Function}},setup(e){const t=e,n=Ee(null);Zn(()=>{const r=n.value.value.lastIndexOf(".");n.value.focus(),n.value.setSelectionRange(0,r>0?r:n.value.value.length)});const s=()=>{const r=n.value.value;t.exit(),!(t.doc.key!=="new"&&(r===t.doc.name||r.length===0))&&t.rename(t.doc,r)};return(r,o)=>(se(),de("input",{ref_key:"input",ref:n,id:"FileRenameInput",type:"text",value:r.doc.name,onKeyup:[o[0]||(o[0]=Ls((...i)=>r.exit&&r.exit(...i),["esc"])),Ls(s,["enter"])]},null,40,Mf))}});const Df={key:0},$f={class:"selection"},Nf=["indeterminate"],Ff={key:0,class:"folder"},Vf=z("td",{class:"selection"},null,-1),jf={class:"name"},Bf={class:"right"},Uf={class:"right"},Hf={class:"selection"},Kf=["checked","onChange"],Wf={class:"name"},zf=["href"],qf=["onClick"],Jf={class:"right"},Qf={class:"right"},Yf={key:1},Xf=z("p",null,"No files",-1),Zf=[Xf],Gf=ke({__name:"FileExplorer",props:{path:{},documents:{}},setup(e,{expose:t}){const n=e,s=ht(),r=we(()=>{const b=n.path;return b==="/"?"":b}),o=we(()=>`/files${r.value}`),i=b=>b.type==="folder"?`#${r.value}/${b.name}`:`${o.value}/${b.name}`,l=Ee(null),c=(b,C)=>{const P=b.name,D=hn("/api/control",S=>{const K=JSON.parse(S.data);"error"in K?(console.error("Rename failed",K.error.message,K.error),b.name=P):console.log("Rename succeeded",K)});D.onopen=()=>{D.send(JSON.stringify({op:"rename",path:`${decodeURIComponent(r.value)}/${P}`,to:C}))},b.name=C};t({newFolder(){const b=Date.now()/1e3;l.value={key:"new",name:"New Folder",type:"folder",mtime:b,size:0,sizedisp:Di(0),modified:Ds(b)}}});const u=(b,C)=>{const P=hn("/api/control",D=>{const S=JSON.parse(D.data);"error"in S?(console.error("Mkdir failed",S.error.message,S.error),l.value=null):console.log("mkdir",S)});P.onopen=()=>{P.send(JSON.stringify({op:"mkdir",path:`${decodeURIComponent(r.value)}/${C}`}))},b.name=C},a=b=>{p.value=p.value===b?"":b},p=Ee(""),h={name:(b,C)=>b.name.localeCompare(C.name),modified:(b,C)=>C.mtime-b.mtime,size:(b,C)=>C.size-b.size},m=b=>{const C=h[p.value],P=[...b];return C&&P.sort(C),P},y=we({get:()=>n.documents.length>0&&n.documents.some(b=>b.key in s.selected)&&!R.value,set:b=>{}}),R=we({get:()=>n.documents.length>0&&n.documents.every(b=>b.key in s.selected),set:b=>{for(const C of n.documents)b?s.selected.add(C.key):s.selected.delete(C.key)}});return(b,C)=>{var P;return se(),de("main",null,[n.documents.length||l.value?(se(),de("table",Df,[z("thead",null,[z("tr",null,[z("th",$f,[Dn(z("input",{type:"checkbox","onUpdate:modelValue":C[0]||(C[0]=D=>R.value=D),indeterminate:y.value},null,8,Nf),[[Pu,R.value]])]),z("th",{class:Ct(["sortcolumn",{sortactive:p.value==="name"}]),onClick:C[1]||(C[1]=D=>a("name"))}," Name ",2),z("th",{class:Ct(["sortcolumn modified right",{sortactive:p.value==="modified"}]),onClick:C[2]||(C[2]=D=>a("modified"))}," Modified ",2),z("th",{class:Ct(["sortcolumn size right",{sortactive:p.value==="size"}]),onClick:C[3]||(C[3]=D=>a("size"))}," Size ",2)])]),z("tbody",null,[((P=l.value)==null?void 0:P.key)==="new"?(se(),de("tr",Ff,[Vf,z("td",jf,[Z(Eo,{doc:l.value,rename:u,exit:()=>{l.value=null}},null,8,["doc","exit"])]),z("td",Bf,Ze(l.value.modified),1),z("td",Uf,Ze(l.value.sizedisp),1)])):Ft("",!0),(se(!0),de(ve,null,di(m(n.documents),D=>(se(),de("tr",{key:D.key,class:Ct(D.type==="folder"?"folder":"file")},[z("td",Hf,[z("input",{type:"checkbox",checked:D.key in Ce(s).selected,onChange:S=>Ce(s).selected.add(D.key)},null,40,Kf)]),z("td",Wf,[l.value===D?(se(),At(Eo,{key:0,doc:D,rename:c,exit:()=>{l.value=null}},null,8,["doc","exit"])):(se(),de(ve,{key:1},[z("a",{href:i(D)},Ze(D.name),9,zf),z("button",{onClick:()=>l.value=D},"🖊️",8,qf)],64))]),z("td",Jf,Ze(D.modified),1),z("td",Qf,Ze(D.sizedisp),1)],2))),128))])])):(se(),de("div",Yf,Zf))])}}});const ed=ke({__name:"ExplorerView",setup(e){const t=ht(),n=Ee();ei(async()=>{const i=new String(gn.currentRoute.value.path);t.setActualDocument(i.toString())});function s(i){const l=i;l.style.transform="translateX(100%)"}function r(i,l){const c=i;setTimeout(()=>{c.style.transform="translateX(0)",l()},0)}function o(i,l){const c=i;c.style.transform="translateX(-100%)",setTimeout(l,300)}return(i,l)=>{const c=Gf;return se(),At(or,{name:"slide-fade",mode:"out-in",onBeforeEnter:s,onEnter:r,onLeave:o},{default:Zs(()=>[Z(c,{ref_key:"fileExplorer",ref:n,path:Ce(gn).currentRoute.value.path,documents:Ce(t).mainDocument},null,8,["path","documents"])]),_:1})}}});const td=yn(ed,[["__scopeId","data-v-f9cfc6c4"]]),gn=Tf({history:Wa("/"),routes:[{path:"/:pathMatch(.*)*",name:"explorer",component:td}]}),nd=ke({__name:"App",setup(e){const t=ht(),n=we(()=>{const s=gn.currentRoute.value.path.split("/").filter(r=>r!=="");return{path:gn.currentRoute.value.path,pathList:s}});return setInterval(t.updateModified,1e3),ei(()=>{const s=new Lf,r=new kf,o=hn(Yi,s.handleWebSocketMessage),i=hn(Sf,r.handleWebSocketMessage);t.wsWatch=o,t.wsUpload=i}),(s,r)=>{const o=Pa,i=aa,l=Qu;return se(),de(ve,null,[Z(o),z("header",null,[Z(i),Z(l,{path:n.value.pathList},null,8,["path"])]),Z(Ce(Qi),{class:"page-container"})],64)}}});const sd=yn(nd,[["__scopeId","data-v-30620fca"]]),rs=Mu(sd);rs.config.errorHandler=e=>{console.log(e)};rs.use(Nu());rs.use(gn);rs.mount("#app");export{z as a,de as c,se as o};