cista-storage/cista/wwwroot/assets/index-b771706a.js
2023-11-04 20:54:14 +00:00

10 lines
107 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var Ai=Object.defineProperty;var ki=(e,t,n)=>t in e?Ai(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var co=(e,t,n)=>(ki(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 o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();function ks(e,t){const n=Object.create(null),s=e.split(",");for(let o=0;o<s.length;o++)n[s[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const ie={},St=[],$e=()=>{},Ti=()=>!1,Mi=/^on[^a-z]/,Ln=e=>Mi.test(e),Ts=e=>e.startsWith("onUpdate:"),ve=Object.assign,Ms=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Li=Object.prototype.hasOwnProperty,Q=(e,t)=>Li.call(e,t),V=Array.isArray,At=e=>fn(e)==="[object Map]",Dn=e=>fn(e)==="[object Set]",uo=e=>fn(e)==="[object Date]",H=e=>typeof e=="function",he=e=>typeof e=="string",nn=e=>typeof e=="symbol",re=e=>e!==null&&typeof e=="object",ar=e=>re(e)&&H(e.then)&&H(e.catch),fr=Object.prototype.toString,fn=e=>fr.call(e),Di=e=>fn(e).slice(8,-1),dr=e=>fn(e)==="[object Object]",Ls=e=>he(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bn=ks(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$n=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},$i=/-(\w)/g,ze=$n(e=>e.replace($i,(t,n)=>n?n.toUpperCase():"")),Fi=/\B([A-Z])/g,Et=$n(e=>e.replace(Fi,"-$1").toLowerCase()),Fn=$n(e=>e.charAt(0).toUpperCase()+e.slice(1)),ts=$n(e=>e?`on${Fn(e)}`:""),sn=(e,t)=>!Object.is(e,t),En=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Rn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},fs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ao;const ds=()=>ao||(ao=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ds(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=he(s)?Ui(s):Ds(s);if(o)for(const r in o)t[r]=o[r]}return t}else{if(he(e))return e;if(re(e))return e}}const ji=/;(?![^(]*\))/g,Ni=/:([^]+)/,Vi=/\/\*[^]*?\*\//g;function Ui(e){const t={};return e.replace(Vi,"").split(ji).forEach(n=>{if(n){const s=n.split(Ni);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function _t(e){let t="";if(he(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const s=_t(e[n]);s&&(t+=s+" ")}else if(re(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Bi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Hi=ks(Bi);function pr(e){return!!e||e===""}function Ki(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=jn(e[s],t[s]);return n}function jn(e,t){if(e===t)return!0;let n=uo(e),s=uo(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=nn(e),s=nn(t),n||s)return e===t;if(n=V(e),s=V(t),n||s)return n&&s?Ki(e,t):!1;if(n=re(e),s=re(t),n||s){if(!n||!s)return!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const i in e){const l=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(l&&!c||!l&&c||!jn(e[i],t[i]))return!1}}return String(e)===String(t)}function hr(e,t){return e.findIndex(n=>jn(n,t))}const He=e=>he(e)?e:e==null?"":V(e)||re(e)&&(e.toString===fr||!H(e.toString))?JSON.stringify(e,gr,2):String(e),gr=(e,t)=>t&&t.__v_isRef?gr(e,t.value):At(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o])=>(n[`${s} =>`]=o,n),{})}:Dn(t)?{[`Set(${t.size})`]:[...t.values()]}:re(t)&&!V(t)&&!dr(t)?String(t):t;let Ae;class mr{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ae,!t&&Ae&&(this.index=(Ae.scopes||(Ae.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ae;try{return Ae=this,t()}finally{Ae=n}}}on(){Ae=this}off(){Ae=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function _r(e){return new mr(e)}function Wi(e,t=Ae){t&&t.active&&t.effects.push(e)}function vr(){return Ae}function zi(e){Ae&&Ae.cleanups.push(e)}const $s=e=>{const t=new Set(e);return t.w=0,t.n=0,t},yr=e=>(e.w&ct)>0,br=e=>(e.n&ct)>0,qi=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ct},Ji=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const o=t[s];yr(o)&&!br(o)?o.delete(e):t[n++]=o,o.w&=~ct,o.n&=~ct}t.length=n}},Pn=new WeakMap;let qt=0,ct=1;const ps=30;let Le;const yt=Symbol(""),hs=Symbol("");class Fs{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Wi(this,s)}run(){if(!this.active)return this.fn();let t=Le,n=rt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Le,Le=this,rt=!0,ct=1<<++qt,qt<=ps?qi(this):fo(this),this.fn()}finally{qt<=ps&&Ji(this),ct=1<<--qt,Le=this.parent,rt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Le===this?this.deferStop=!0:this.active&&(fo(this),this.onStop&&this.onStop(),this.active=!1)}}function fo(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let rt=!0;const Er=[];function Vt(){Er.push(rt),rt=!1}function Ut(){const e=Er.pop();rt=e===void 0?!0:e}function Oe(e,t,n){if(rt&&Le){let s=Pn.get(e);s||Pn.set(e,s=new Map);let o=s.get(n);o||s.set(n,o=$s()),wr(o)}}function wr(e,t){let n=!1;qt<=ps?br(e)||(e.n|=ct,n=!yr(e)):n=!e.has(Le),n&&(e.add(Le),Le.deps.push(e))}function Ye(e,t,n,s,o,r){const i=Pn.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&V(e)){const c=Number(s);i.forEach((u,a)=>{(a==="length"||a>=c)&&l.push(u)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":V(e)?Ls(n)&&l.push(i.get("length")):(l.push(i.get(yt)),At(e)&&l.push(i.get(hs)));break;case"delete":V(e)||(l.push(i.get(yt)),At(e)&&l.push(i.get(hs)));break;case"set":At(e)&&l.push(i.get(yt));break}if(l.length===1)l[0]&&gs(l[0]);else{const c=[];for(const u of l)u&&c.push(...u);gs($s(c))}}function gs(e,t){const n=V(e)?e:[...e];for(const s of n)s.computed&&po(s);for(const s of n)s.computed||po(s)}function po(e,t){(e!==Le||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Qi(e,t){var n;return(n=Pn.get(e))==null?void 0:n.get(t)}const Yi=ks("__proto__,__v_isRef,__isVue"),xr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(nn)),Xi=js(),Zi=js(!1,!0),Gi=js(!0),ho=el();function el(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Y(this);for(let r=0,i=this.length;r<i;r++)Oe(s,"get",r+"");const o=s[t](...n);return o===-1||o===!1?s[t](...n.map(Y)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Vt();const s=Y(this)[t].apply(this,n);return Ut(),s}}),e}function tl(e){const t=Y(this);return Oe(t,"has",e),t.hasOwnProperty(e)}function js(e=!1,t=!1){return function(s,o,r){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&r===(e?t?_l:Ir:t?Cr:Or).get(s))return s;const i=V(s);if(!e){if(i&&Q(ho,o))return Reflect.get(ho,o,r);if(o==="hasOwnProperty")return tl}const l=Reflect.get(s,o,r);return(nn(o)?xr.has(o):Yi(o))||(e||Oe(s,"get",o),t)?l:ae(l)?i&&Ls(o)?l:l.value:re(l)?e?Ar(l):Bt(l):l}}const nl=Rr(),sl=Rr(!0);function Rr(e=!1){return function(n,s,o,r){let i=n[s];if(Mt(i)&&ae(i)&&!ae(o))return!1;if(!e&&(!On(o)&&!Mt(o)&&(i=Y(i),o=Y(o)),!V(n)&&ae(i)&&!ae(o)))return i.value=o,!0;const l=V(n)&&Ls(s)?Number(s)<n.length:Q(n,s),c=Reflect.set(n,s,o,r);return n===Y(r)&&(l?sn(o,i)&&Ye(n,"set",s,o):Ye(n,"add",s,o)),c}}function ol(e,t){const n=Q(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&Ye(e,"delete",t,void 0),s}function rl(e,t){const n=Reflect.has(e,t);return(!nn(t)||!xr.has(t))&&Oe(e,"has",t),n}function il(e){return Oe(e,"iterate",V(e)?"length":yt),Reflect.ownKeys(e)}const Pr={get:Xi,set:nl,deleteProperty:ol,has:rl,ownKeys:il},ll={get:Gi,set(e,t){return!0},deleteProperty(e,t){return!0}},cl=ve({},Pr,{get:Zi,set:sl}),Ns=e=>e,Nn=e=>Reflect.getPrototypeOf(e);function hn(e,t,n=!1,s=!1){e=e.__v_raw;const o=Y(e),r=Y(t);n||(t!==r&&Oe(o,"get",t),Oe(o,"get",r));const{has:i}=Nn(o),l=s?Ns:n?Bs:on;if(i.call(o,t))return l(e.get(t));if(i.call(o,r))return l(e.get(r));e!==o&&e.get(t)}function gn(e,t=!1){const n=this.__v_raw,s=Y(n),o=Y(e);return t||(e!==o&&Oe(s,"has",e),Oe(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function mn(e,t=!1){return e=e.__v_raw,!t&&Oe(Y(e),"iterate",yt),Reflect.get(e,"size",e)}function go(e){e=Y(e);const t=Y(this);return Nn(t).has.call(t,e)||(t.add(e),Ye(t,"add",e,e)),this}function mo(e,t){t=Y(t);const n=Y(this),{has:s,get:o}=Nn(n);let r=s.call(n,e);r||(e=Y(e),r=s.call(n,e));const i=o.call(n,e);return n.set(e,t),r?sn(t,i)&&Ye(n,"set",e,t):Ye(n,"add",e,t),this}function _o(e){const t=Y(this),{has:n,get:s}=Nn(t);let o=n.call(t,e);o||(e=Y(e),o=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return o&&Ye(t,"delete",e,void 0),r}function vo(){const e=Y(this),t=e.size!==0,n=e.clear();return t&&Ye(e,"clear",void 0,void 0),n}function _n(e,t){return function(s,o){const r=this,i=r.__v_raw,l=Y(i),c=t?Ns:e?Bs:on;return!e&&Oe(l,"iterate",yt),i.forEach((u,a)=>s.call(o,c(u),c(a),r))}}function vn(e,t,n){return function(...s){const o=this.__v_raw,r=Y(o),i=At(r),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=o[e](...s),a=n?Ns:t?Bs:on;return!t&&Oe(r,"iterate",c?hs:yt),{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 et(e){return function(...t){return e==="delete"?!1:this}}function ul(){const e={get(r){return hn(this,r)},get size(){return mn(this)},has:gn,add:go,set:mo,delete:_o,clear:vo,forEach:_n(!1,!1)},t={get(r){return hn(this,r,!1,!0)},get size(){return mn(this)},has:gn,add:go,set:mo,delete:_o,clear:vo,forEach:_n(!1,!0)},n={get(r){return hn(this,r,!0)},get size(){return mn(this,!0)},has(r){return gn.call(this,r,!0)},add:et("add"),set:et("set"),delete:et("delete"),clear:et("clear"),forEach:_n(!0,!1)},s={get(r){return hn(this,r,!0,!0)},get size(){return mn(this,!0)},has(r){return gn.call(this,r,!0)},add:et("add"),set:et("set"),delete:et("delete"),clear:et("clear"),forEach:_n(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=vn(r,!1,!1),n[r]=vn(r,!0,!1),t[r]=vn(r,!1,!0),s[r]=vn(r,!0,!0)}),[e,n,t,s]}const[al,fl,dl,pl]=ul();function Vs(e,t){const n=t?e?pl:dl:e?fl:al;return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(Q(n,o)&&o in s?n:s,o,r)}const hl={get:Vs(!1,!1)},gl={get:Vs(!1,!0)},ml={get:Vs(!0,!1)},Or=new WeakMap,Cr=new WeakMap,Ir=new WeakMap,_l=new WeakMap;function vl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yl(e){return e.__v_skip||!Object.isExtensible(e)?0:vl(Di(e))}function Bt(e){return Mt(e)?e:Us(e,!1,Pr,hl,Or)}function Sr(e){return Us(e,!1,cl,gl,Cr)}function Ar(e){return Us(e,!0,ll,ml,Ir)}function Us(e,t,n,s,o){if(!re(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const i=yl(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return o.set(e,l),l}function it(e){return Mt(e)?it(e.__v_raw):!!(e&&e.__v_isReactive)}function Mt(e){return!!(e&&e.__v_isReadonly)}function On(e){return!!(e&&e.__v_isShallow)}function kr(e){return it(e)||Mt(e)}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function Vn(e){return Rn(e,"__v_skip",!0),e}const on=e=>re(e)?Bt(e):e,Bs=e=>re(e)?Ar(e):e;function Tr(e){rt&&Le&&(e=Y(e),wr(e.dep||(e.dep=$s())))}function Mr(e,t){e=Y(e);const n=e.dep;n&&gs(n)}function ae(e){return!!(e&&e.__v_isRef===!0)}function de(e){return Lr(e,!1)}function bl(e){return Lr(e,!0)}function Lr(e,t){return ae(e)?e:new El(e,t)}class El{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:on(t)}get value(){return Tr(this),this._value}set value(t){const n=this.__v_isShallow||On(t)||Mt(t);t=n?t:Y(t),sn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:on(t),Mr(this))}}function pe(e){return ae(e)?e.value:e}const wl={get:(e,t,n)=>pe(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return ae(o)&&!ae(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Dr(e){return it(e)?e:new Proxy(e,wl)}function xl(e){const t=V(e)?new Array(e.length):{};for(const n in e)t[n]=Pl(e,n);return t}class Rl{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 Qi(Y(this._object),this._key)}}function Pl(e,t,n){const s=e[t];return ae(s)?s:new Rl(e,t,n)}class Ol{constructor(t,n,s,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Fs(t,()=>{this._dirty||(this._dirty=!0,Mr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=Y(this);return Tr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Cl(e,t,n=!1){let s,o;const r=H(e);return r?(s=e,o=$e):(s=e.get,o=e.set),new Ol(s,o,r||!o,n)}function lt(e,t,n,s){let o;try{o=s?e(...s):e()}catch(r){dn(r,t,n)}return o}function Fe(e,t,n,s){if(H(e)){const r=lt(e,t,n,s);return r&&ar(r)&&r.catch(i=>{dn(i,t,n)}),r}const o=[];for(let r=0;r<e.length;r++)o.push(Fe(e[r],t,n,s));return o}function dn(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,l=n;for(;r;){const u=r.ec;if(u){for(let a=0;a<u.length;a++)if(u[a](e,i,l)===!1)return}r=r.parent}const c=t.appContext.config.errorHandler;if(c){lt(c,null,10,[e,i,l]);return}}Il(e,n,o,s)}function Il(e,t,n,s=!0){console.error(e)}let rn=!1,ms=!1;const we=[];let Ke=0;const kt=[];let Qe=null,ht=0;const $r=Promise.resolve();let Hs=null;function Un(e){const t=Hs||$r;return e?t.then(this?e.bind(this):e):t}function Sl(e){let t=Ke+1,n=we.length;for(;t<n;){const s=t+n>>>1;ln(we[s])<e?t=s+1:n=s}return t}function Bn(e){(!we.length||!we.includes(e,rn&&e.allowRecurse?Ke+1:Ke))&&(e.id==null?we.push(e):we.splice(Sl(e.id),0,e),Fr())}function Fr(){!rn&&!ms&&(ms=!0,Hs=$r.then(Nr))}function Al(e){const t=we.indexOf(e);t>Ke&&we.splice(t,1)}function kl(e){V(e)?kt.push(...e):(!Qe||!Qe.includes(e,e.allowRecurse?ht+1:ht))&&kt.push(e),Fr()}function yo(e,t=rn?Ke+1:0){for(;t<we.length;t++){const n=we[t];n&&n.pre&&(we.splice(t,1),t--,n())}}function jr(e){if(kt.length){const t=[...new Set(kt)];if(kt.length=0,Qe){Qe.push(...t);return}for(Qe=t,Qe.sort((n,s)=>ln(n)-ln(s)),ht=0;ht<Qe.length;ht++)Qe[ht]();Qe=null,ht=0}}const ln=e=>e.id==null?1/0:e.id,Tl=(e,t)=>{const n=ln(e)-ln(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Nr(e){ms=!1,rn=!0,we.sort(Tl);const t=$e;try{for(Ke=0;Ke<we.length;Ke++){const n=we[Ke];n&&n.active!==!1&&lt(n,null,14)}}finally{Ke=0,we.length=0,jr(),rn=!1,Hs=null,(we.length||kt.length)&&Nr()}}function Ml(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ie;let o=n;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in s){const a=`${i==="modelValue"?"model":i}Modifiers`,{number:p,trim:h}=s[a]||ie;h&&(o=n.map(m=>he(m)?m.trim():m)),p&&(o=n.map(fs))}let l,c=s[l=ts(t)]||s[l=ts(ze(t))];!c&&r&&(c=s[l=ts(Et(t))]),c&&Fe(c,e,6,o);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Fe(u,e,6,o)}}function Vr(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!H(e)){const c=u=>{const a=Vr(u,t,!0);a&&(l=!0,ve(i,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!l?(re(e)&&s.set(e,null),null):(V(r)?r.forEach(c=>i[c]=null):ve(i,r),re(e)&&s.set(e,i),i)}function Hn(e,t){return!e||!Ln(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,Et(t))||Q(e,t))}let ye=null,Kn=null;function Cn(e){const t=ye;return ye=e,Kn=e&&e.type.__scopeId||null,t}function Wn(e){Kn=e}function zn(){Kn=null}function Ks(e,t=ye,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Ao(-1);const r=Cn(t);let i;try{i=e(...o)}finally{Cn(r),s._d&&Ao(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function ns(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:l,attrs:c,emit:u,render:a,renderCache:p,data:h,setupState:m,ctx:E,inheritAttrs:P}=e;let k,M;const v=Cn(e);try{if(n.shapeFlag&4){const S=o||s;k=Be(a.call(S,S,p,r,m,h,E)),M=c}else{const S=t;k=Be(S.length>1?S(r,{attrs:c,slots:l,emit:u}):S(r,null)),M=t.props?c:Ll(c)}}catch(S){Zt.length=0,dn(S,e,1),k=q(ut)}let O=k;if(M&&P!==!1){const S=Object.keys(M),{shapeFlag:T}=O;S.length&&T&7&&(i&&S.some(Ts)&&(M=Dl(M,i)),O=Lt(O,M))}return n.dirs&&(O=Lt(O),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&(O.transition=n.transition),k=O,Cn(v),k}const Ll=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ln(n))&&((t||(t={}))[n]=e[n]);return t},Dl=(e,t)=>{const n={};for(const s in e)(!Ts(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function $l(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:l,patchFlag:c}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?bo(s,i,u):!!i;if(c&8){const a=t.dynamicProps;for(let p=0;p<a.length;p++){const h=a[p];if(i[h]!==s[h]&&!Hn(u,h))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?bo(s,i,u):!0:!!i;return!1}function bo(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(t[r]!==e[r]&&!Hn(n,r))return!0}return!1}function Fl({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const jl=e=>e.__isSuspense;function Nl(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):kl(e)}function In(e,t){return Ws(e,null,t)}const yn={};function Qt(e,t,n){return Ws(e,t,n)}function Ws(e,t,{immediate:n,deep:s,flush:o,onTrack:r,onTrigger:i}=ie){var l;const c=vr()===((l=ge)==null?void 0:l.scope)?ge:null;let u,a=!1,p=!1;if(ae(e)?(u=()=>e.value,a=On(e)):it(e)?(u=()=>e,s=!0):V(e)?(p=!0,a=e.some(S=>it(S)||On(S)),u=()=>e.map(S=>{if(ae(S))return S.value;if(it(S))return vt(S);if(H(S))return lt(S,c,2)})):H(e)?t?u=()=>lt(e,c,2):u=()=>{if(!(c&&c.isUnmounted))return h&&h(),Fe(e,c,3,[m])}:u=$e,t&&s){const S=u;u=()=>vt(S())}let h,m=S=>{h=v.onStop=()=>{lt(S,c,4)}},E;if($t)if(m=$e,t?n&&Fe(t,c,3,[u(),p?[]:void 0,m]):u(),o==="sync"){const S=kc();E=S.__watcherHandles||(S.__watcherHandles=[])}else return $e;let P=p?new Array(e.length).fill(yn):yn;const k=()=>{if(v.active)if(t){const S=v.run();(s||a||(p?S.some((T,K)=>sn(T,P[K])):sn(S,P)))&&(h&&h(),Fe(t,c,3,[S,P===yn?void 0:p&&P[0]===yn?[]:P,m]),P=S)}else v.run()};k.allowRecurse=!!t;let M;o==="sync"?M=k:o==="post"?M=()=>Pe(k,c&&c.suspense):(k.pre=!0,c&&(k.id=c.uid),M=()=>Bn(k));const v=new Fs(u,M);t?n?k():P=v.run():o==="post"?Pe(v.run.bind(v),c&&c.suspense):v.run();const O=()=>{v.stop(),c&&c.scope&&Ms(c.scope.effects,v)};return E&&E.push(O),O}function Vl(e,t,n){const s=this.proxy,o=he(e)?e.includes(".")?Ur(s,e):()=>s[e]:e.bind(s,s);let r;H(t)?r=t:(r=t.handler,n=t);const i=ge;Dt(this);const l=Ws(o,r.bind(s),n);return i?Dt(i):bt(),l}function Ur(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}function vt(e,t){if(!re(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),ae(e))vt(e.value,t);else if(V(e))for(let n=0;n<e.length;n++)vt(e[n],t);else if(Dn(e)||At(e))e.forEach(n=>{vt(n,t)});else if(dr(e))for(const n in e)vt(e[n],t);return e}function _s(e,t){const n=ye;if(n===null)return e;const s=Xn(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,l,c,u=ie]=t[r];i&&(H(i)&&(i={mounted:i,updated:i}),i.deep&&vt(l),o.push({dir:i,instance:s,value:l,oldValue:void 0,arg:c,modifiers:u}))}return e}function ft(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const l=o[i];r&&(l.oldValue=r[i].value);let c=l.dir[s];c&&(Vt(),Fe(c,n,8,[e.el,l,e,t]),Ut())}}function Ce(e,t){return H(e)?(()=>ve({name:e.name},t,{setup:e}))():e}const Yt=e=>!!e.type.__asyncLoader;function Br(e){H(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:o=200,timeout:r,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(E=>{if(E=E instanceof Error?E:new Error(String(E)),l)return new Promise((P,k)=>{l(E,()=>P(p()),()=>k(E),a+1)});throw E}).then(E=>m!==c&&c?c:(E&&(E.__esModule||E[Symbol.toStringTag]==="Module")&&(E=E.default),u=E,E)))};return Ce({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return u},setup(){const m=ge;if(u)return()=>ss(u,m);const E=v=>{c=null,dn(v,m,13,!s)};if(i&&m.suspense||$t)return h().then(v=>()=>ss(v,m)).catch(v=>(E(v),()=>s?q(s,{error:v}):null));const P=de(!1),k=de(),M=de(!!o);return o&&setTimeout(()=>{M.value=!1},o),r!=null&&setTimeout(()=>{if(!P.value&&!k.value){const v=new Error(`Async component timed out after ${r}ms.`);E(v),k.value=v}},r),h().then(()=>{P.value=!0,m.parent&&zs(m.parent.vnode)&&Bn(m.parent.update)}).catch(v=>{E(v),k.value=v}),()=>{if(P.value&&u)return ss(u,m);if(k.value&&s)return q(s,{error:k.value});if(n&&!M.value)return q(n)}}})}function ss(e,t){const{ref:n,props:s,children:o,ce:r}=t.vnode,i=q(e,s,o);return i.ref=n,i.ce=r,delete t.vnode.ce,i}const zs=e=>e.type.__isKeepAlive;function Ul(e,t){Hr(e,"a",t)}function Bl(e,t){Hr(e,"da",t)}function Hr(e,t,n=ge){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(qn(t,s,n),n){let o=n.parent;for(;o&&o.parent;)zs(o.parent.vnode)&&Hl(s,t,n,o),o=o.parent}}function Hl(e,t,n,s){const o=qn(t,e,s,!0);qs(()=>{Ms(s[t],o)},n)}function qn(e,t,n=ge,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Vt(),Dt(n);const l=Fe(t,n,e,i);return bt(),Ut(),l});return s?o.unshift(r):o.push(r),r}}const Xe=e=>(t,n=ge)=>(!$t||e==="sp")&&qn(e,(...s)=>t(...s),n),Kl=Xe("bm"),Jn=Xe("m"),Wl=Xe("bu"),zl=Xe("u"),ql=Xe("bum"),qs=Xe("um"),Jl=Xe("sp"),Ql=Xe("rtg"),Yl=Xe("rtc");function Xl(e,t=ge){qn("ec",e,t)}const Kr="components",Wr=Symbol.for("v-ndc");function zr(e){return he(e)?Zl(Kr,e,!1)||e:e||Wr}function Zl(e,t,n=!0,s=!1){const o=ye||ge;if(o){const r=o.type;if(e===Kr){const l=Ic(r,!1);if(l&&(l===t||l===ze(t)||l===Fn(ze(t))))return r}const i=Eo(o[e]||r[e],t)||Eo(o.appContext[e],t);return!i&&s?r:i}}function Eo(e,t){return e&&(e[t]||e[ze(t)]||e[Fn(ze(t))])}function qr(e,t,n,s){let o;const r=n&&n[s];if(V(e)||he(e)){o=new Array(e.length);for(let i=0,l=e.length;i<l;i++)o[i]=t(e[i],i,void 0,r&&r[i])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,r&&r[i])}else if(re(e))if(e[Symbol.iterator])o=Array.from(e,(i,l)=>t(i,l,void 0,r&&r[l]));else{const i=Object.keys(e);o=new Array(i.length);for(let l=0,c=i.length;l<c;l++){const u=i[l];o[l]=t(e[u],u,l,r&&r[l])}}else o=[];return n&&(n[s]=o),o}function Js(e,t,n={},s,o){if(ye.isCE||ye.parent&&Yt(ye.parent)&&ye.parent.isCE)return t!=="default"&&(n.name=t),q("slot",n,s&&s());let r=e[t];r&&r._c&&(r._d=!1),ne();const i=r&&Jr(r(n)),l=wt(me,{key:n.key||i&&i.key||`_${t}`},i||(s?s():[]),i&&e._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function Jr(e){return e.some(t=>An(t)?!(t.type===ut||t.type===me&&!Jr(t.children)):!0)?e:null}const vs=e=>e?ii(e)?Xn(e)||e.proxy:vs(e.parent):null,Xt=ve(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=>vs(e.parent),$root:e=>vs(e.root),$emit:e=>e.emit,$options:e=>Qs(e),$forceUpdate:e=>e.f||(e.f=()=>Bn(e.update)),$nextTick:e=>e.n||(e.n=Un.bind(e.proxy)),$watch:e=>Vl.bind(e)}),os=(e,t)=>e!==ie&&!e.__isScriptSetup&&Q(e,t),Gl={get({_:e},t){const{ctx:n,setupState:s,data:o,props:r,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 o[t];case 4:return n[t];case 3:return r[t]}else{if(os(s,t))return i[t]=1,s[t];if(o!==ie&&Q(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&Q(u,t))return i[t]=3,r[t];if(n!==ie&&Q(n,t))return i[t]=4,n[t];ys&&(i[t]=0)}}const a=Xt[t];let p,h;if(a)return t==="$attrs"&&Oe(e,"get",t),a(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==ie&&Q(n,t))return i[t]=4,n[t];if(h=c.config.globalProperties,Q(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return os(o,t)?(o[t]=n,!0):s!==ie&&Q(s,t)?(s[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let l;return!!n[i]||e!==ie&&Q(e,i)||os(t,i)||(l=r[0])&&Q(l,i)||Q(s,i)||Q(Xt,i)||Q(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function wo(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ys=!0;function ec(e){const t=Qs(e),n=e.proxy,s=e.ctx;ys=!1,t.beforeCreate&&xo(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:c,inject:u,created:a,beforeMount:p,mounted:h,beforeUpdate:m,updated:E,activated:P,deactivated:k,beforeDestroy:M,beforeUnmount:v,destroyed:O,unmounted:S,render:T,renderTracked:K,renderTriggered:le,errorCaptured:W,serverPrefetch:J,expose:ce,inheritAttrs:be,components:Ie,directives:ke,filters:at}=t;if(u&&tc(u,s,null),i)for(const se in i){const Z=i[se];H(Z)&&(s[se]=Z.bind(n))}if(o){const se=o.call(n,n);re(se)&&(e.data=Bt(se))}if(ys=!0,r)for(const se in r){const Z=r[se],qe=H(Z)?Z.bind(n,n):H(Z.get)?Z.get.bind(n,n):$e,Ge=!H(Z)&&H(Z.set)?Z.set.bind(n):$e,Ne=_e({get:qe,set:Ge});Object.defineProperty(s,se,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:Re=>Ne.value=Re})}if(l)for(const se in l)Qr(l[se],s,n,se);if(c){const se=H(c)?c.call(n):c;Reflect.ownKeys(se).forEach(Z=>{wn(Z,se[Z])})}a&&xo(a,e,"c");function X(se,Z){V(Z)?Z.forEach(qe=>se(qe.bind(n))):Z&&se(Z.bind(n))}if(X(Kl,p),X(Jn,h),X(Wl,m),X(zl,E),X(Ul,P),X(Bl,k),X(Xl,W),X(Yl,K),X(Ql,le),X(ql,v),X(qs,S),X(Jl,J),V(ce))if(ce.length){const se=e.exposed||(e.exposed={});ce.forEach(Z=>{Object.defineProperty(se,Z,{get:()=>n[Z],set:qe=>n[Z]=qe})})}else e.exposed||(e.exposed={});T&&e.render===$e&&(e.render=T),be!=null&&(e.inheritAttrs=be),Ie&&(e.components=Ie),ke&&(e.directives=ke)}function tc(e,t,n=$e){V(e)&&(e=bs(e));for(const s in e){const o=e[s];let r;re(o)?"default"in o?r=We(o.from||s,o.default,!0):r=We(o.from||s):r=We(o),ae(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function xo(e,t,n){Fe(V(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Qr(e,t,n,s){const o=s.includes(".")?Ur(n,s):()=>n[s];if(he(e)){const r=t[e];H(r)&&Qt(o,r)}else if(H(e))Qt(o,e.bind(n));else if(re(e))if(V(e))e.forEach(r=>Qr(r,t,n,s));else{const r=H(e.handler)?e.handler.bind(n):t[e.handler];H(r)&&Qt(o,r,e)}}function Qs(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let c;return l?c=l:!o.length&&!n&&!s?c=t:(c={},o.length&&o.forEach(u=>Sn(c,u,i,!0)),Sn(c,t,i)),re(t)&&r.set(t,c),c}function Sn(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Sn(e,r,n,!0),o&&o.forEach(i=>Sn(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=nc[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const nc={data:Ro,props:Po,emits:Po,methods:Jt,computed:Jt,beforeCreate:xe,created:xe,beforeMount:xe,mounted:xe,beforeUpdate:xe,updated:xe,beforeDestroy:xe,beforeUnmount:xe,destroyed:xe,unmounted:xe,activated:xe,deactivated:xe,errorCaptured:xe,serverPrefetch:xe,components:Jt,directives:Jt,watch:oc,provide:Ro,inject:sc};function Ro(e,t){return t?e?function(){return ve(H(e)?e.call(this,this):e,H(t)?t.call(this,this):t)}:t:e}function sc(e,t){return Jt(bs(e),bs(t))}function bs(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function xe(e,t){return e?[...new Set([].concat(e,t))]:t}function Jt(e,t){return e?ve(Object.create(null),e,t):t}function Po(e,t){return e?V(e)&&V(t)?[...new Set([...e,...t])]:ve(Object.create(null),wo(e),wo(t??{})):t}function oc(e,t){if(!e)return t;if(!t)return e;const n=ve(Object.create(null),e);for(const s in t)n[s]=xe(e[s],t[s]);return n}function Yr(){return{app:null,config:{isNativeTag:Ti,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let rc=0;function ic(e,t){return function(s,o=null){H(s)||(s=ve({},s)),o!=null&&!re(o)&&(o=null);const r=Yr(),i=new Set;let l=!1;const c=r.app={_uid:rc++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:Tc,get config(){return r.config},set config(u){},use(u,...a){return i.has(u)||(u&&H(u.install)?(i.add(u),u.install(c,...a)):H(u)&&(i.add(u),u(c,...a))),c},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),c},component(u,a){return a?(r.components[u]=a,c):r.components[u]},directive(u,a){return a?(r.directives[u]=a,c):r.directives[u]},mount(u,a,p){if(!l){const h=q(s,o);return h.appContext=r,a&&t?t(h,u):e(h,u,p),l=!0,c._container=u,u.__vue_app__=c,Xn(h.component)||h.component.proxy}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,a){return r.provides[u]=a,c},runWithContext(u){cn=c;try{return u()}finally{cn=null}}};return c}}let cn=null;function wn(e,t){if(ge){let n=ge.provides;const s=ge.parent&&ge.parent.provides;s===n&&(n=ge.provides=Object.create(s)),n[e]=t}}function We(e,t,n=!1){const s=ge||ye;if(s||cn){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:cn._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&H(t)?t.call(s&&s.proxy):t}}function lc(){return!!(ge||ye||cn)}function cc(e,t,n,s=!1){const o={},r={};Rn(r,Yn,1),e.propsDefaults=Object.create(null),Xr(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Sr(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function uc(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=Y(o),[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<a.length;p++){let h=a[p];if(Hn(e.emitsOptions,h))continue;const m=t[h];if(c)if(Q(r,h))m!==r[h]&&(r[h]=m,u=!0);else{const E=ze(h);o[E]=Es(c,l,E,m,e,!1)}else m!==r[h]&&(r[h]=m,u=!0)}}}else{Xr(e,t,o,r)&&(u=!0);let a;for(const p in l)(!t||!Q(t,p)&&((a=Et(p))===p||!Q(t,a)))&&(c?n&&(n[p]!==void 0||n[a]!==void 0)&&(o[p]=Es(c,l,p,void 0,e,!0)):delete o[p]);if(r!==l)for(const p in r)(!t||!Q(t,p))&&(delete r[p],u=!0)}u&&Ye(e,"set","$attrs")}function Xr(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,l;if(t)for(let c in t){if(bn(c))continue;const u=t[c];let a;o&&Q(o,a=ze(c))?!r||!r.includes(a)?n[a]=u:(l||(l={}))[a]=u:Hn(e.emitsOptions,c)||(!(c in s)||u!==s[c])&&(s[c]=u,i=!0)}if(r){const c=Y(n),u=l||ie;for(let a=0;a<r.length;a++){const p=r[a];n[p]=Es(o,c,p,u[p],e,!Q(u,p))}}return i}function Es(e,t,n,s,o,r){const i=e[n];if(i!=null){const l=Q(i,"default");if(l&&s===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&H(c)){const{propsDefaults:u}=o;n in u?s=u[n]:(Dt(o),s=u[n]=c.call(null,t),bt())}else s=c}i[0]&&(r&&!l?s=!1:i[1]&&(s===""||s===Et(n))&&(s=!0))}return s}function Zr(e,t,n=!1){const s=t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},l=[];let c=!1;if(!H(e)){const a=p=>{c=!0;const[h,m]=Zr(p,t,!0);ve(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(!r&&!c)return re(e)&&s.set(e,St),St;if(V(r))for(let a=0;a<r.length;a++){const p=ze(r[a]);Oo(p)&&(i[p]=ie)}else if(r)for(const a in r){const p=ze(a);if(Oo(p)){const h=r[a],m=i[p]=V(h)||H(h)?{type:h}:ve({},h);if(m){const E=So(Boolean,m.type),P=So(String,m.type);m[0]=E>-1,m[1]=P<0||E<P,(E>-1||Q(m,"default"))&&l.push(p)}}}const u=[i,l];return re(e)&&s.set(e,u),u}function Oo(e){return e[0]!=="$"}function Co(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Io(e,t){return Co(e)===Co(t)}function So(e,t){return V(t)?t.findIndex(n=>Io(n,e)):H(t)&&Io(t,e)?0:-1}const Gr=e=>e[0]==="_"||e==="$stable",Ys=e=>V(e)?e.map(Be):[Be(e)],ac=(e,t,n)=>{if(t._n)return t;const s=Ks((...o)=>Ys(t(...o)),n);return s._c=!1,s},ei=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Gr(o))continue;const r=e[o];if(H(r))t[o]=ac(o,r,s);else if(r!=null){const i=Ys(r);t[o]=()=>i}}},ti=(e,t)=>{const n=Ys(t);e.slots.default=()=>n},fc=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Y(t),Rn(t,"_",n)):ei(t,e.slots={})}else e.slots={},t&&ti(e,t);Rn(e.slots,Yn,1)},dc=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=ie;if(s.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(ve(o,t),!n&&l===1&&delete o._):(r=!t.$stable,ei(t,o)),i=t}else t&&(ti(e,t),i={default:1});if(r)for(const l in o)!Gr(l)&&!(l in i)&&delete o[l]};function ws(e,t,n,s,o=!1){if(V(e)){e.forEach((h,m)=>ws(h,t&&(V(t)?t[m]:t),n,s,o));return}if(Yt(s)&&!o)return;const r=s.shapeFlag&4?Xn(s.component)||s.component.proxy:s.el,i=o?null:r,{i:l,r:c}=e,u=t&&t.r,a=l.refs===ie?l.refs={}:l.refs,p=l.setupState;if(u!=null&&u!==c&&(he(u)?(a[u]=null,Q(p,u)&&(p[u]=null)):ae(u)&&(u.value=null)),H(c))lt(c,l,12,[i,a]);else{const h=he(c),m=ae(c);if(h||m){const E=()=>{if(e.f){const P=h?Q(p,c)?p[c]:a[c]:c.value;o?V(P)&&Ms(P,r):V(P)?P.includes(r)||P.push(r):h?(a[c]=[r],Q(p,c)&&(p[c]=a[c])):(c.value=[r],e.k&&(a[e.k]=c.value))}else h?(a[c]=i,Q(p,c)&&(p[c]=i)):m&&(c.value=i,e.k&&(a[e.k]=i))};i?(E.id=-1,Pe(E,n)):E()}}}const Pe=Nl;function pc(e){return hc(e)}function hc(e,t){const n=ds();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:l,createComment:c,setText:u,setElementText:a,parentNode:p,nextSibling:h,setScopeId:m=$e,insertStaticContent:E}=e,P=(f,d,g,_=null,b=null,w=null,A=!1,R=null,C=!!d.dynamicChildren)=>{if(f===d)return;f&&!Wt(f,d)&&(_=y(f),Re(f,b,w,!0),f=null),d.patchFlag===-2&&(C=!1,d.dynamicChildren=null);const{type:x,ref:j,shapeFlag:D}=d;switch(x){case Qn:k(f,d,g,_);break;case ut:M(f,d,g,_);break;case rs:f==null&&v(d,g,_,A);break;case me:Ie(f,d,g,_,b,w,A,R,C);break;default:D&1?T(f,d,g,_,b,w,A,R,C):D&6?ke(f,d,g,_,b,w,A,R,C):(D&64||D&128)&&x.process(f,d,g,_,b,w,A,R,C,I)}j!=null&&b&&ws(j,f&&f.ref,w,d||f,!d)},k=(f,d,g,_)=>{if(f==null)s(d.el=l(d.children),g,_);else{const b=d.el=f.el;d.children!==f.children&&u(b,d.children)}},M=(f,d,g,_)=>{f==null?s(d.el=c(d.children||""),g,_):d.el=f.el},v=(f,d,g,_)=>{[f.el,f.anchor]=E(f.children,d,g,_,f.el,f.anchor)},O=({el:f,anchor:d},g,_)=>{let b;for(;f&&f!==d;)b=h(f),s(f,g,_),f=b;s(d,g,_)},S=({el:f,anchor:d})=>{let g;for(;f&&f!==d;)g=h(f),o(f),f=g;o(d)},T=(f,d,g,_,b,w,A,R,C)=>{A=A||d.type==="svg",f==null?K(d,g,_,b,w,A,R,C):J(f,d,b,w,A,R,C)},K=(f,d,g,_,b,w,A,R)=>{let C,x;const{type:j,props:D,shapeFlag:N,transition:B,dirs:z}=f;if(C=f.el=i(f.type,w,D&&D.is,D),N&8?a(C,f.children):N&16&&W(f.children,C,null,_,b,w&&j!=="foreignObject",A,R),z&&ft(f,null,_,"created"),le(C,f,f.scopeId,A,_),D){for(const te in D)te!=="value"&&!bn(te)&&r(C,te,null,D[te],w,f.children,_,b,Ee);"value"in D&&r(C,"value",null,D.value),(x=D.onVnodeBeforeMount)&&Ue(x,_,f)}z&&ft(f,null,_,"beforeMount");const oe=(!b||b&&!b.pendingBranch)&&B&&!B.persisted;oe&&B.beforeEnter(C),s(C,d,g),((x=D&&D.onVnodeMounted)||oe||z)&&Pe(()=>{x&&Ue(x,_,f),oe&&B.enter(C),z&&ft(f,null,_,"mounted")},b)},le=(f,d,g,_,b)=>{if(g&&m(f,g),_)for(let w=0;w<_.length;w++)m(f,_[w]);if(b){let w=b.subTree;if(d===w){const A=b.vnode;le(f,A,A.scopeId,A.slotScopeIds,b.parent)}}},W=(f,d,g,_,b,w,A,R,C=0)=>{for(let x=C;x<f.length;x++){const j=f[x]=R?st(f[x]):Be(f[x]);P(null,j,d,g,_,b,w,A,R)}},J=(f,d,g,_,b,w,A)=>{const R=d.el=f.el;let{patchFlag:C,dynamicChildren:x,dirs:j}=d;C|=f.patchFlag&16;const D=f.props||ie,N=d.props||ie;let B;g&&dt(g,!1),(B=N.onVnodeBeforeUpdate)&&Ue(B,g,d,f),j&&ft(d,f,g,"beforeUpdate"),g&&dt(g,!0);const z=b&&d.type!=="foreignObject";if(x?ce(f.dynamicChildren,x,R,g,_,z,w):A||Z(f,d,R,null,g,_,z,w,!1),C>0){if(C&16)be(R,d,D,N,g,_,b);else if(C&2&&D.class!==N.class&&r(R,"class",null,N.class,b),C&4&&r(R,"style",D.style,N.style,b),C&8){const oe=d.dynamicProps;for(let te=0;te<oe.length;te++){const fe=oe[te],Me=D[fe],Pt=N[fe];(Pt!==Me||fe==="value")&&r(R,fe,Me,Pt,b,f.children,g,_,Ee)}}C&1&&f.children!==d.children&&a(R,d.children)}else!A&&x==null&&be(R,d,D,N,g,_,b);((B=N.onVnodeUpdated)||j)&&Pe(()=>{B&&Ue(B,g,d,f),j&&ft(d,f,g,"updated")},_)},ce=(f,d,g,_,b,w,A)=>{for(let R=0;R<d.length;R++){const C=f[R],x=d[R],j=C.el&&(C.type===me||!Wt(C,x)||C.shapeFlag&70)?p(C.el):g;P(C,x,j,null,_,b,w,A,!0)}},be=(f,d,g,_,b,w,A)=>{if(g!==_){if(g!==ie)for(const R in g)!bn(R)&&!(R in _)&&r(f,R,g[R],null,A,d.children,b,w,Ee);for(const R in _){if(bn(R))continue;const C=_[R],x=g[R];C!==x&&R!=="value"&&r(f,R,x,C,A,d.children,b,w,Ee)}"value"in _&&r(f,"value",g.value,_.value)}},Ie=(f,d,g,_,b,w,A,R,C)=>{const x=d.el=f?f.el:l(""),j=d.anchor=f?f.anchor:l("");let{patchFlag:D,dynamicChildren:N,slotScopeIds:B}=d;B&&(R=R?R.concat(B):B),f==null?(s(x,g,_),s(j,g,_),W(d.children,g,j,b,w,A,R,C)):D>0&&D&64&&N&&f.dynamicChildren?(ce(f.dynamicChildren,N,g,b,w,A,R),(d.key!=null||b&&d===b.subTree)&&ni(f,d,!0)):Z(f,d,g,j,b,w,A,R,C)},ke=(f,d,g,_,b,w,A,R,C)=>{d.slotScopeIds=R,f==null?d.shapeFlag&512?b.ctx.activate(d,g,_,A,C):at(d,g,_,b,w,A,C):Te(f,d,C)},at=(f,d,g,_,b,w,A)=>{const R=f.component=xc(f,_,b);if(zs(f)&&(R.ctx.renderer=I),Rc(R),R.asyncDep){if(b&&b.registerDep(R,X),!f.el){const C=R.subTree=q(ut);M(null,C,d,g)}return}X(R,f,d,g,b,w,A)},Te=(f,d,g)=>{const _=d.component=f.component;if($l(f,d,g))if(_.asyncDep&&!_.asyncResolved){se(_,d,g);return}else _.next=d,Al(_.update),_.update();else d.el=f.el,_.vnode=d},X=(f,d,g,_,b,w,A)=>{const R=()=>{if(f.isMounted){let{next:j,bu:D,u:N,parent:B,vnode:z}=f,oe=j,te;dt(f,!1),j?(j.el=z.el,se(f,j,A)):j=z,D&&En(D),(te=j.props&&j.props.onVnodeBeforeUpdate)&&Ue(te,B,j,z),dt(f,!0);const fe=ns(f),Me=f.subTree;f.subTree=fe,P(Me,fe,p(Me.el),y(Me),f,b,w),j.el=fe.el,oe===null&&Fl(f,fe.el),N&&Pe(N,b),(te=j.props&&j.props.onVnodeUpdated)&&Pe(()=>Ue(te,B,j,z),b)}else{let j;const{el:D,props:N}=d,{bm:B,m:z,parent:oe}=f,te=Yt(d);if(dt(f,!1),B&&En(B),!te&&(j=N&&N.onVnodeBeforeMount)&&Ue(j,oe,d),dt(f,!0),D&&G){const fe=()=>{f.subTree=ns(f),G(D,f.subTree,f,b,null)};te?d.type.__asyncLoader().then(()=>!f.isUnmounted&&fe()):fe()}else{const fe=f.subTree=ns(f);P(null,fe,g,_,f,b,w),d.el=fe.el}if(z&&Pe(z,b),!te&&(j=N&&N.onVnodeMounted)){const fe=d;Pe(()=>Ue(j,oe,fe),b)}(d.shapeFlag&256||oe&&Yt(oe.vnode)&&oe.vnode.shapeFlag&256)&&f.a&&Pe(f.a,b),f.isMounted=!0,d=g=_=null}},C=f.effect=new Fs(R,()=>Bn(x),f.scope),x=f.update=()=>C.run();x.id=f.uid,dt(f,!0),x()},se=(f,d,g)=>{d.component=f;const _=f.vnode.props;f.vnode=d,f.next=null,uc(f,d.props,_,g),dc(f,d.children,g),Vt(),yo(),Ut()},Z=(f,d,g,_,b,w,A,R,C=!1)=>{const x=f&&f.children,j=f?f.shapeFlag:0,D=d.children,{patchFlag:N,shapeFlag:B}=d;if(N>0){if(N&128){Ge(x,D,g,_,b,w,A,R,C);return}else if(N&256){qe(x,D,g,_,b,w,A,R,C);return}}B&8?(j&16&&Ee(x,b,w),D!==x&&a(g,D)):j&16?B&16?Ge(x,D,g,_,b,w,A,R,C):Ee(x,b,w,!0):(j&8&&a(g,""),B&16&&W(D,g,_,b,w,A,R,C))},qe=(f,d,g,_,b,w,A,R,C)=>{f=f||St,d=d||St;const x=f.length,j=d.length,D=Math.min(x,j);let N;for(N=0;N<D;N++){const B=d[N]=C?st(d[N]):Be(d[N]);P(f[N],B,g,null,b,w,A,R,C)}x>j?Ee(f,b,w,!0,!1,D):W(d,g,_,b,w,A,R,C,D)},Ge=(f,d,g,_,b,w,A,R,C)=>{let x=0;const j=d.length;let D=f.length-1,N=j-1;for(;x<=D&&x<=N;){const B=f[x],z=d[x]=C?st(d[x]):Be(d[x]);if(Wt(B,z))P(B,z,g,null,b,w,A,R,C);else break;x++}for(;x<=D&&x<=N;){const B=f[D],z=d[N]=C?st(d[N]):Be(d[N]);if(Wt(B,z))P(B,z,g,null,b,w,A,R,C);else break;D--,N--}if(x>D){if(x<=N){const B=N+1,z=B<j?d[B].el:_;for(;x<=N;)P(null,d[x]=C?st(d[x]):Be(d[x]),g,z,b,w,A,R,C),x++}}else if(x>N)for(;x<=D;)Re(f[x],b,w,!0),x++;else{const B=x,z=x,oe=new Map;for(x=z;x<=N;x++){const Se=d[x]=C?st(d[x]):Be(d[x]);Se.key!=null&&oe.set(Se.key,x)}let te,fe=0;const Me=N-z+1;let Pt=!1,ro=0;const Kt=new Array(Me);for(x=0;x<Me;x++)Kt[x]=0;for(x=B;x<=D;x++){const Se=f[x];if(fe>=Me){Re(Se,b,w,!0);continue}let Ve;if(Se.key!=null)Ve=oe.get(Se.key);else for(te=z;te<=N;te++)if(Kt[te-z]===0&&Wt(Se,d[te])){Ve=te;break}Ve===void 0?Re(Se,b,w,!0):(Kt[Ve-z]=x+1,Ve>=ro?ro=Ve:Pt=!0,P(Se,d[Ve],g,null,b,w,A,R,C),fe++)}const io=Pt?gc(Kt):St;for(te=io.length-1,x=Me-1;x>=0;x--){const Se=z+x,Ve=d[Se],lo=Se+1<j?d[Se+1].el:_;Kt[x]===0?P(null,Ve,g,lo,b,w,A,R,C):Pt&&(te<0||x!==io[te]?Ne(Ve,g,lo,2):te--)}}},Ne=(f,d,g,_,b=null)=>{const{el:w,type:A,transition:R,children:C,shapeFlag:x}=f;if(x&6){Ne(f.component.subTree,d,g,_);return}if(x&128){f.suspense.move(d,g,_);return}if(x&64){A.move(f,d,g,I);return}if(A===me){s(w,d,g);for(let D=0;D<C.length;D++)Ne(C[D],d,g,_);s(f.anchor,d,g);return}if(A===rs){O(f,d,g);return}if(_!==2&&x&1&&R)if(_===0)R.beforeEnter(w),s(w,d,g),Pe(()=>R.enter(w),b);else{const{leave:D,delayLeave:N,afterLeave:B}=R,z=()=>s(w,d,g),oe=()=>{D(w,()=>{z(),B&&B()})};N?N(w,z,oe):oe()}else s(w,d,g)},Re=(f,d,g,_=!1,b=!1)=>{const{type:w,props:A,ref:R,children:C,dynamicChildren:x,shapeFlag:j,patchFlag:D,dirs:N}=f;if(R!=null&&ws(R,null,g,f,!0),j&256){d.ctx.deactivate(f);return}const B=j&1&&N,z=!Yt(f);let oe;if(z&&(oe=A&&A.onVnodeBeforeUnmount)&&Ue(oe,d,f),j&6)pn(f.component,g,_);else{if(j&128){f.suspense.unmount(g,_);return}B&&ft(f,null,d,"beforeUnmount"),j&64?f.type.remove(f,d,g,b,I,_):x&&(w!==me||D>0&&D&64)?Ee(x,d,g,!1,!0):(w===me&&D&384||!b&&j&16)&&Ee(C,d,g),_&&xt(f)}(z&&(oe=A&&A.onVnodeUnmounted)||B)&&Pe(()=>{oe&&Ue(oe,d,f),B&&ft(f,null,d,"unmounted")},g)},xt=f=>{const{type:d,el:g,anchor:_,transition:b}=f;if(d===me){Rt(g,_);return}if(d===rs){S(f);return}const w=()=>{o(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(f.shapeFlag&1&&b&&!b.persisted){const{leave:A,delayLeave:R}=b,C=()=>A(g,w);R?R(f.el,w,C):C()}else w()},Rt=(f,d)=>{let g;for(;f!==d;)g=h(f),o(f),f=g;o(d)},pn=(f,d,g)=>{const{bum:_,scope:b,update:w,subTree:A,um:R}=f;_&&En(_),b.stop(),w&&(w.active=!1,Re(A,f,d,g)),R&&Pe(R,d),Pe(()=>{f.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Ee=(f,d,g,_=!1,b=!1,w=0)=>{for(let A=w;A<f.length;A++)Re(f[A],d,g,_,b)},y=f=>f.shapeFlag&6?y(f.component.subTree):f.shapeFlag&128?f.suspense.next():h(f.anchor||f.el),L=(f,d,g)=>{f==null?d._vnode&&Re(d._vnode,null,null,!0):P(d._vnode||null,f,d,null,null,null,g),yo(),jr(),d._vnode=f},I={p:P,um:Re,m:Ne,r:xt,mt:at,mc:W,pc:Z,pbc:ce,n:y,o:e};let F,G;return t&&([F,G]=t(I)),{render:L,hydrate:F,createApp:ic(L,F)}}function dt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ni(e,t,n=!1){const s=e.children,o=t.children;if(V(s)&&V(o))for(let r=0;r<s.length;r++){const i=s[r];let l=o[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[r]=st(o[r]),l.el=i.el),n||ni(i,l)),l.type===Qn&&(l.el=i.el)}}function gc(e){const t=e.slice(),n=[0];let s,o,r,i,l;const c=e.length;for(s=0;s<c;s++){const u=e[s];if(u!==0){if(o=n[n.length-1],e[o]<u){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)l=r+i>>1,e[n[l]]<u?r=l+1:i=l;u<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}const mc=e=>e.__isTeleport,me=Symbol.for("v-fgt"),Qn=Symbol.for("v-txt"),ut=Symbol.for("v-cmt"),rs=Symbol.for("v-stc"),Zt=[];let De=null;function ne(e=!1){Zt.push(De=e?null:[])}function _c(){Zt.pop(),De=Zt[Zt.length-1]||null}let un=1;function Ao(e){un+=e}function si(e){return e.dynamicChildren=un>0?De||St:null,_c(),un>0&&De&&De.push(e),e}function ue(e,t,n,s,o,r){return si(U(e,t,n,s,o,r,!0))}function wt(e,t,n,s,o){return si(q(e,t,n,s,o,!0))}function An(e){return e?e.__v_isVNode===!0:!1}function Wt(e,t){return e.type===t.type&&e.key===t.key}const Yn="__vInternal",oi=({key:e})=>e??null,xn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?he(e)||ae(e)||H(e)?{i:ye,r:e,k:t,f:!!n}:e:null);function U(e,t=null,n=null,s=0,o=null,r=e===me?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&oi(t),ref:t&&xn(t),scopeId:Kn,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:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ye};return l?(Xs(c,n),r&128&&e.normalize(c)):n&&(c.shapeFlag|=he(n)?8:16),un>0&&!i&&De&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&De.push(c),c}const q=vc;function vc(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===Wr)&&(e=ut),An(e)){const l=Lt(e,t,!0);return n&&Xs(l,n),un>0&&!r&&De&&(l.shapeFlag&6?De[De.indexOf(e)]=l:De.push(l)),l.patchFlag|=-2,l}if(Sc(e)&&(e=e.__vccOpts),t){t=yc(t);let{class:l,style:c}=t;l&&!he(l)&&(t.class=_t(l)),re(c)&&(kr(c)&&!V(c)&&(c=ve({},c)),t.style=Ds(c))}const i=he(e)?1:jl(e)?128:mc(e)?64:re(e)?4:H(e)?2:0;return U(e,t,n,s,o,i,r,!0)}function yc(e){return e?kr(e)||Yn in e?ve({},e):e:null}function Lt(e,t,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=e,l=t?bc(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&oi(l),ref:t&&t.ref?n&&o?V(o)?o.concat(xn(t)):[o,xn(t)]:xn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Lt(e.ssContent),ssFallback:e.ssFallback&&Lt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ri(e=" ",t=0){return q(Qn,null,e,t)}function Tt(e="",t=!1){return t?(ne(),wt(ut,null,e)):q(ut,null,e)}function Be(e){return e==null||typeof e=="boolean"?q(ut):V(e)?q(me,null,e.slice()):typeof e=="object"?st(e):q(Qn,null,String(e))}function st(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Lt(e)}function Xs(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 o=t.default;o&&(o._c&&(o._d=!1),Xs(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Yn in t)?t._ctx=ye:o===3&&ye&&(ye.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else H(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 bc(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=_t([t.class,s.class]));else if(o==="style")t.style=Ds([t.style,s.style]);else if(Ln(o)){const r=t[o],i=s[o];i&&r!==i&&!(V(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=s[o])}return t}function Ue(e,t,n,s=null){Fe(e,t,7,[n,s])}const Ec=Yr();let wc=0;function xc(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Ec,r={uid:wc++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new mr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Zr(s,o),emitsOptions:Vr(s,o),emit:null,emitted:null,propsDefaults:ie,inheritAttrs:s.inheritAttrs,ctx:ie,data:ie,props:ie,attrs:ie,slots:ie,refs:ie,setupState:ie,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Ml.bind(null,r),e.ce&&e.ce(r),r}let ge=null,Zs,Ot,ko="__VUE_INSTANCE_SETTERS__";(Ot=ds()[ko])||(Ot=ds()[ko]=[]),Ot.push(e=>ge=e),Zs=e=>{Ot.length>1?Ot.forEach(t=>t(e)):Ot[0](e)};const Dt=e=>{Zs(e),e.scope.on()},bt=()=>{ge&&ge.scope.off(),Zs(null)};function ii(e){return e.vnode.shapeFlag&4}let $t=!1;function Rc(e,t=!1){$t=t;const{props:n,children:s}=e.vnode,o=ii(e);cc(e,n,o,t),fc(e,s);const r=o?Pc(e,t):void 0;return $t=!1,r}function Pc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Vn(new Proxy(e.ctx,Gl));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?Cc(e):null;Dt(e),Vt();const r=lt(s,e,0,[e.props,o]);if(Ut(),bt(),ar(r)){if(r.then(bt,bt),t)return r.then(i=>{To(e,i,t)}).catch(i=>{dn(i,e,0)});e.asyncDep=r}else To(e,r,t)}else li(e,t)}function To(e,t,n){H(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:re(t)&&(e.setupState=Dr(t)),li(e,n)}let Mo;function li(e,t,n){const s=e.type;if(!e.render){if(!t&&Mo&&!s.render){const o=s.template||Qs(e).template;if(o){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,u=ve(ve({isCustomElement:r,delimiters:l},i),c);s.render=Mo(o,u)}}e.render=s.render||$e}Dt(e),Vt(),ec(e),Ut(),bt()}function Oc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Oe(e,"get","$attrs"),t[n]}}))}function Cc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Oc(e)},slots:e.slots,emit:e.emit,expose:t}}function Xn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Dr(Vn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Xt)return Xt[n](e)},has(t,n){return n in t||n in Xt}}))}function Ic(e,t=!0){return H(e)?e.displayName||e.name:e.name||t&&e.__name}function Sc(e){return H(e)&&"__vccOpts"in e}const _e=(e,t)=>Cl(e,t,$t);function ci(e,t,n){const s=arguments.length;return s===2?re(t)&&!V(t)?An(t)?q(e,null,[t]):q(e,t):q(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&An(n)&&(n=[n]),q(e,t,n))}const Ac=Symbol.for("v-scx"),kc=()=>We(Ac),Tc="3.3.4",Mc="http://www.w3.org/2000/svg",gt=typeof document<"u"?document:null,Lo=gt&&gt.createElement("template"),Lc={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 o=t?gt.createElementNS(Mc,e):gt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>gt.createTextNode(e),createComment:e=>gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{Lo.innerHTML=s?`<svg>${e}</svg>`:e;const l=Lo.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 Dc(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 $c(e,t,n){const s=e.style,o=he(n);if(n&&!o){if(t&&!he(t))for(const r in t)n[r]==null&&xs(s,r,"");for(const r in n)xs(s,r,n[r])}else{const r=s.display;o?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=r)}}const Do=/\s*!important$/;function xs(e,t,n){if(V(n))n.forEach(s=>xs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Fc(e,t);Do.test(n)?e.setProperty(Et(s),n.replace(Do,""),"important"):e[s]=n}}const $o=["Webkit","Moz","ms"],is={};function Fc(e,t){const n=is[t];if(n)return n;let s=ze(t);if(s!=="filter"&&s in e)return is[t]=s;s=Fn(s);for(let o=0;o<$o.length;o++){const r=$o[o]+s;if(r in e)return is[t]=r}return t}const Fo="http://www.w3.org/1999/xlink";function jc(e,t,n,s,o){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Fo,t.slice(6,t.length)):e.setAttributeNS(Fo,t,n);else{const r=Hi(t);n==null||r&&!pr(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function Nc(e,t,n,s,o,r,i){if(t==="innerHTML"||t==="textContent"){s&&i(s,o,r),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const u=l==="OPTION"?e.getAttribute("value"):e.value,a=n??"";u!==a&&(e.value=a),n==null&&e.removeAttribute(t);return}let c=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=pr(n):n==null&&u==="string"?(n="",c=!0):u==="number"&&(n=0,c=!0)}try{e[t]=n}catch{}c&&e.removeAttribute(t)}function mt(e,t,n,s){e.addEventListener(t,n,s)}function Vc(e,t,n,s){e.removeEventListener(t,n,s)}function Uc(e,t,n,s,o=null){const r=e._vei||(e._vei={}),i=r[t];if(s&&i)i.value=s;else{const[l,c]=Bc(t);if(s){const u=r[t]=Wc(s,o);mt(e,l,u,c)}else i&&(Vc(e,l,i,c),r[t]=void 0)}}const jo=/(?:Once|Passive|Capture)$/;function Bc(e){let t;if(jo.test(e)){t={};let s;for(;s=e.match(jo);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Et(e.slice(2)),t]}let ls=0;const Hc=Promise.resolve(),Kc=()=>ls||(Hc.then(()=>ls=0),ls=Date.now());function Wc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Fe(zc(s,n.value),t,5,[s])};return n.value=e,n.attached=Kc(),n}function zc(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const No=/^on[a-z]/,qc=(e,t,n,s,o=!1,r,i,l,c)=>{t==="class"?Dc(e,s,o):t==="style"?$c(e,n,s):Ln(t)?Ts(t)||Uc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Jc(e,t,s,o))?Nc(e,t,s,r,i,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),jc(e,t,s,o))};function Jc(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&No.test(t)&&H(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||No.test(t)&&he(n)?!1:t in e}const kn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>En(t,n):t};function Qc(e){e.target.composing=!0}function Vo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Uo={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e._assign=kn(o);const r=s||o.props&&o.props.type==="number";mt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),r&&(l=fs(l)),e._assign(l)}),n&&mt(e,"change",()=>{e.value=e.value.trim()}),t||(mt(e,"compositionstart",Qc),mt(e,"compositionend",Vo),mt(e,"change",Vo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:o}},r){if(e._assign=kn(r),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(o||e.type==="number")&&fs(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},Yc={deep:!0,created(e,t,n){e._assign=kn(n),mt(e,"change",()=>{const s=e._modelValue,o=Xc(e),r=e.checked,i=e._assign;if(V(s)){const l=hr(s,o),c=l!==-1;if(r&&!c)i(s.concat(o));else if(!r&&c){const u=[...s];u.splice(l,1),i(u)}}else if(Dn(s)){const l=new Set(s);r?l.add(o):l.delete(o),i(l)}else i(ui(e,r))})},mounted:Bo,beforeUpdate(e,t,n){e._assign=kn(n),Bo(e,t,n)}};function Bo(e,{value:t,oldValue:n},s){e._modelValue=t,V(t)?e.checked=hr(t,s.props.value)>-1:Dn(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=jn(t,ui(e,!0)))}function Xc(e){return"_value"in e?e._value:e.value}function ui(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Zc=["ctrl","shift","alt","meta"],Gc={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)=>Zc.some(n=>e[`${n}Key`]&&!t.includes(n))},pt=(e,t)=>(n,...s)=>{for(let o=0;o<t.length;o++){const r=Gc[t[o]];if(r&&r(n,t))return}return e(n,...s)},eu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Rs=(e,t)=>n=>{if(!("key"in n))return;const s=Et(n.key);if(t.some(o=>o===s||eu[o]===s))return e(n)},tu=ve({patchProp:qc},Lc);let Ho;function nu(){return Ho||(Ho=pc(tu))}const su=(...e)=>{const t=nu().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=ou(s);if(!o)return;const r=t._component;!H(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function ou(e){return he(e)?document.querySelector(e):e}var ru=!1;/*!
* pinia v2.1.6
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/let ai;const Zn=e=>ai=e,fi=Symbol();function Ps(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Gt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Gt||(Gt={}));function iu(){const e=_r(!0),t=e.run(()=>de({}));let n=[],s=[];const o=Vn({install(r){Zn(o),o._a=r,r.provide(fi,o),r.config.globalProperties.$pinia=o,s.forEach(i=>n.push(i)),s=[]},use(r){return!this._a&&!ru?s.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const di=()=>{};function Ko(e,t,n,s=di){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&vr()&&zi(o),o}function Ct(e,...t){e.slice().forEach(n=>{n(...t)})}const lu=e=>e();function Os(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],o=e[n];Ps(o)&&Ps(s)&&e.hasOwnProperty(n)&&!ae(s)&&!it(s)?e[n]=Os(o,s):e[n]=s}return e}const cu=Symbol();function uu(e){return!Ps(e)||!e.hasOwnProperty(cu)}const{assign:nt}=Object;function au(e){return!!(ae(e)&&e.effect)}function fu(e,t,n,s){const{state:o,actions:r,getters:i}=t,l=n.state.value[e];let c;function u(){l||(n.state.value[e]=o?o():{});const a=xl(n.state.value[e]);return nt(a,r,Object.keys(i||{}).reduce((p,h)=>(p[h]=Vn(_e(()=>{Zn(n);const m=n._s.get(e);return i[h].call(m,m)})),p),{}))}return c=pi(e,u,t,n,s,!0),c}function pi(e,t,n={},s,o,r){let i;const l=nt({actions:{}},n),c={deep:!0};let u,a,p=[],h=[],m;const E=s.state.value[e];!r&&!E&&(s.state.value[e]={}),de({});let P;function k(W){let J;u=a=!1,typeof W=="function"?(W(s.state.value[e]),J={type:Gt.patchFunction,storeId:e,events:m}):(Os(s.state.value[e],W),J={type:Gt.patchObject,payload:W,storeId:e,events:m});const ce=P=Symbol();Un().then(()=>{P===ce&&(u=!0)}),a=!0,Ct(p,J,s.state.value[e])}const M=r?function(){const{state:J}=n,ce=J?J():{};this.$patch(be=>{nt(be,ce)})}:di;function v(){i.stop(),p=[],h=[],s._s.delete(e)}function O(W,J){return function(){Zn(s);const ce=Array.from(arguments),be=[],Ie=[];function ke(X){be.push(X)}function at(X){Ie.push(X)}Ct(h,{args:ce,name:W,store:T,after:ke,onError:at});let Te;try{Te=J.apply(this&&this.$id===e?this:T,ce)}catch(X){throw Ct(Ie,X),X}return Te instanceof Promise?Te.then(X=>(Ct(be,X),X)).catch(X=>(Ct(Ie,X),Promise.reject(X))):(Ct(be,Te),Te)}}const S={_p:s,$id:e,$onAction:Ko.bind(null,h),$patch:k,$reset:M,$subscribe(W,J={}){const ce=Ko(p,W,J.detached,()=>be()),be=i.run(()=>Qt(()=>s.state.value[e],Ie=>{(J.flush==="sync"?a:u)&&W({storeId:e,type:Gt.direct,events:m},Ie)},nt({},c,J)));return ce},$dispose:v},T=Bt(S);s._s.set(e,T);const K=s._a&&s._a.runWithContext||lu,le=s._e.run(()=>(i=_r(),K(()=>i.run(t))));for(const W in le){const J=le[W];if(ae(J)&&!au(J)||it(J))r||(E&&uu(J)&&(ae(J)?J.value=E[W]:Os(J,E[W])),s.state.value[e][W]=J);else if(typeof J=="function"){const ce=O(W,J);le[W]=ce,l.actions[W]=J}}return nt(T,le),nt(Y(T),le),Object.defineProperty(T,"$state",{get:()=>s.state.value[e],set:W=>{k(J=>{nt(J,W)})}}),s._p.forEach(W=>{nt(T,i.run(()=>W({store:T,app:s._a,pinia:s,options:l})))}),E&&r&&n.hydrate&&n.hydrate(T.$state,E),u=!0,a=!0,T}function du(e,t,n){let s,o;const r=typeof t=="function";typeof e=="string"?(s=e,o=r?n:t):(o=e,s=e.id);function i(l,c){const u=lc();return l=l||(u?We(fi,null):null),l&&Zn(l),l=ai,l._s.has(s)||(r?pi(s,t,o,l):fu(s,o,l)),l._s.get(s)}return i.$id=s,i}const pu="modulepreload",hu=function(e){return"/"+e},Wo={},$=function(t,n,s){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=hu(r),r in Wo)return;Wo[r]=!0;const i=r.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!s)for(let a=o.length-1;a>=0;a--){const p=o[a];if(p.href===r&&(!i||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${l}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":pu,i||(u.as="script",u.crossOrigin=""),u.href=r,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 ${r}`)))})})).then(()=>t()).catch(r=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=r,window.dispatchEvent(i),!i.defaultPrevented)throw r})},gu={class:"breadcrumb"},mu={href:"#/"},_u=["href"],vu=Ce({__name:"BreadCrumb",props:{path:{}},setup(e){const t=e,n=Br(()=>$(()=>import("./home-1543b914.js"),[]));return(s,o)=>(ne(),ue("div",gu,[U("a",mu,[(ne(),wt(zr(pe(n))))]),(ne(!0),ue(me,null,qr(t.path,(r,i)=>(ne(),ue("a",{key:i,href:`/#/${t.path.slice(0,i+1).join("/")}/`},He(r),9,_u))),128))]))}});const yu=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((s,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t)))})},bu={class:"action-button"},Eu=Ce({__name:"SvgButton",props:{name:{}},setup(e){const t=e,n=Br(()=>yu(Object.assign({"../assets/svg/add-file.svg":()=>$(()=>import("./add-file-58135954.js"),[]),"../assets/svg/add-folder.svg":()=>$(()=>import("./add-folder-e023f9c4.js"),[]),"../assets/svg/arrow.svg":()=>$(()=>import("./arrow-283a53b6.js"),[]),"../assets/svg/arrows-h.svg":()=>$(()=>import("./arrows-h-2d3627d7.js"),[]),"../assets/svg/arrows-v.svg":()=>$(()=>import("./arrows-v-e8e04e2e.js"),[]),"../assets/svg/check.svg":()=>$(()=>import("./check-bb3cfe8f.js"),[]),"../assets/svg/code.svg":()=>$(()=>import("./code-81d9864c.js"),[]),"../assets/svg/cog.svg":()=>$(()=>import("./cog-9ee4b86f.js"),[]),"../assets/svg/copy.svg":()=>$(()=>import("./copy-5b2557d5.js"),[]),"../assets/svg/create-file.svg":()=>$(()=>import("./create-file-26b36d20.js"),[]),"../assets/svg/create-folder.svg":()=>$(()=>import("./create-folder-fa90cf6e.js"),[]),"../assets/svg/cross.svg":()=>$(()=>import("./cross-0816f9ad.js"),[]),"../assets/svg/disk.svg":()=>$(()=>import("./disk-6cc2af38.js"),[]),"../assets/svg/download.svg":()=>$(()=>import("./download-3267c67e.js"),[]),"../assets/svg/exclamation.svg":()=>$(()=>import("./exclamation-4ebacfcb.js"),[]),"../assets/svg/eye.svg":()=>$(()=>import("./eye-447a514e.js"),[]),"../assets/svg/find.svg":()=>$(()=>import("./find-043f9b80.js"),[]),"../assets/svg/fullscreen.svg":()=>$(()=>import("./fullscreen-9a2bfe5b.js"),[]),"../assets/svg/github.svg":()=>$(()=>import("./github-bc9ea8b7.js"),[]),"../assets/svg/home.svg":()=>$(()=>import("./home-1543b914.js"),[]),"../assets/svg/info.svg":()=>$(()=>import("./info-71aebe0c.js"),[]),"../assets/svg/link.svg":()=>$(()=>import("./link-5ab56933.js"),[]),"../assets/svg/logo.svg":()=>$(()=>import("./logo-19e3ae36.js"),[]),"../assets/svg/loop.svg":()=>$(()=>import("./loop-b54b7e7d.js"),[]),"../assets/svg/menu.svg":()=>$(()=>import("./menu-465b0450.js"),[]),"../assets/svg/next.svg":()=>$(()=>import("./next-10ae7a72.js"),[]),"../assets/svg/open.svg":()=>$(()=>import("./open-5e355fd9.js"),[]),"../assets/svg/paste.svg":()=>$(()=>import("./paste-811ca631.js"),[]),"../assets/svg/pause.svg":()=>$(()=>import("./pause-8d0e9116.js"),[]),"../assets/svg/pencil.svg":()=>$(()=>import("./pencil-902cd386.js"),[]),"../assets/svg/play.svg":()=>$(()=>import("./play-d4dc88e8.js"),[]),"../assets/svg/plus.svg":()=>$(()=>import("./plus-35e6815f.js"),[]),"../assets/svg/previous.svg":()=>$(()=>import("./previous-c9ecd077.js"),[]),"../assets/svg/reload.svg":()=>$(()=>import("./reload-b3134b57.js"),[]),"../assets/svg/rename.svg":()=>$(()=>import("./rename-1b50437f.js"),[]),"../assets/svg/scissors.svg":()=>$(()=>import("./scissors-aa4e6a31.js"),[]),"../assets/svg/shuffle.svg":()=>$(()=>import("./shuffle-aa8b4379.js"),[]),"../assets/svg/signin.svg":()=>$(()=>import("./signin-91563f19.js"),[]),"../assets/svg/signout.svg":()=>$(()=>import("./signout-a2471dc8.js"),[]),"../assets/svg/skip.svg":()=>$(()=>import("./skip-ff378535.js"),[]),"../assets/svg/spinner.svg":()=>$(()=>import("./spinner-2c332a99.js"),[]),"../assets/svg/stop.svg":()=>$(()=>import("./stop-69489665.js"),[]),"../assets/svg/trash.svg":()=>$(()=>import("./trash-376c9e7e.js"),[]),"../assets/svg/triangle.svg":()=>$(()=>import("./triangle-19189bf2.js"),[]),"../assets/svg/unfullscreen.svg":()=>$(()=>import("./unfullscreen-8895d003.js"),[]),"../assets/svg/up-arrow.svg":()=>$(()=>import("./up-arrow-44ec4b8c.js"),[]),"../assets/svg/upload-cloud.svg":()=>$(()=>import("./upload-cloud-f6b4b9fe.js"),[]),"../assets/svg/user-cog.svg":()=>$(()=>import("./user-cog-366a9fc1.js"),[]),"../assets/svg/user.svg":()=>$(()=>import("./user-dc626207.js"),[]),"../assets/svg/volume-high.svg":()=>$(()=>import("./volume-high-664b6087.js"),[]),"../assets/svg/volume-low.svg":()=>$(()=>import("./volume-low-4bfe9f15.js"),[]),"../assets/svg/volume-medium.svg":()=>$(()=>import("./volume-medium-f82e84c2.js"),[]),"../assets/svg/volume-mute.svg":()=>$(()=>import("./volume-mute-6f04a079.js"),[]),"../assets/svg/window-cross.svg":()=>$(()=>import("./window-cross-ec21369b.js"),[]),"../assets/svg/window.svg":()=>$(()=>import("./window-580f718d.js"),[]),"../assets/svg/wordwrap.svg":()=>$(()=>import("./wordwrap-c23b4727.js"),[]),"../assets/svg/zoomin.svg":()=>$(()=>import("./zoomin-2e1f684f.js"),[]),"../assets/svg/zoomout.svg":()=>$(()=>import("./zoomout-e09a9ae4.js"),[])}),`../assets/svg/${t.name}.svg`));return(s,o)=>(ne(),ue("button",bu,[(ne(),wt(zr(pe(n)))),Js(s.$slots,"default",{},void 0,!0)]))}});const Ht=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},Gs=Ht(Eu,[["__scopeId","data-v-4f4f7fe2"]]);function hi(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 Cs(e){const t=new Date(e*1e3),n=new Date,s=t.getTime()-n.getTime(),o=new Intl.RelativeTimeFormat("en",{numeric:"auto"});return Math.abs(s)<=5e3?"now":Math.abs(s)<=6e4?o.format(Math.round(s/1e3),"second"):Math.abs(s)<=36e5?o.format(Math.round(s/6e4),"minute"):Math.abs(s)<=864e5?o.format(Math.round(s/36e5),"hour"):Math.abs(s)<=6048e5?o.format(Math.round(s/864e5),"day"):t.toLocaleDateString(void 0,{weekday:"short",year:"numeric",month:"short",day:"numeric"})}var eo={};Object.defineProperty(eo,"__esModule",{value:!0});var gi=eo.localeIncludes=void 0,wu=["position","locales"];function xu(e,t){if(e==null)return{};var n=Ru(e,t),s,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)s=r[o],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}function Ru(e,t){if(e==null)return{};var n={},s=Object.keys(e),o,r;for(r=0;r<s.length;r++)o=s[r],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Pu=function(t,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=s.position,r=o===void 0?0:o,i=s.locales,l=xu(s,wu);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=r;p<=a;p++)if(t.substring(p,p+u).localeCompare(n,i,l)===0)return!0;return!1};gi=eo.localeIncludes=Pu;const Ze=du({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:o,size:r,mtime:i}=s,l={name:n,key:o,size:r,sizedisp:hi(r),mtime:i,modified:Cs(i),type:"dir"in s?"folder":"file"};t.push(l)}t.sort((n,s)=>n.type===s.type?n.name.localeCompare(s.name,void 0,{numeric:!0,sensitivity:"base"}):n.type==="folder"?-1:1),this.document=t},setFilter(e){if(e==="")return this.updateTable({});function t(s,o){if("dir"in s)for(const[r,i]of Object.entries(s.dir)){const l=`${o}/${r}`;gi(r,e,{usage:"search",numeric:!0,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=Cs(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},selectedFiles(){function e(s,o,r){if("dir"in s)for(const[i,l]of Object.entries(s.dir)){const c=o?`${o}/${i}`:i;let u=r;t.has(l.id)&&!r?(n.selected.add(l.id),n.rootdir[i]=l,u=i):r&&(u=`${r}/${i}`),u&&(n.entries[l.id]=l,n.fullpath[l.id]=c,n.relpath[l.id]=u,n.ids.push(l.id),"dir"in l||(n.url[l.id]=`/files/${c}`)),e(l,c,u)}}const t=this.selected,n={selected:new Set,missing:new Set,rootdir:{},entries:{},fullpath:{},relpath:{},url:{},ids:[]};e(this.root,"","");for(const s of t)n.selected.has(s)||n.missing.add(s);return n.ids.sort((s,o)=>n.relpath[s].localeCompare(n.relpath[o],void 0,{numeric:!0,sensitivity:"base"})),n}}}),Ou=Ce({__name:"UploadButton",setup(e){const t=de(),n=de(),s=Ze(),o=a=>i(),r=de(!1),i=a=>{r.value||(r.value=!0)};async function l(a,p,h){const m=new FileReader,E=new Promise(k=>m.onload=k);m.readAsArrayBuffer(a.slice(p,h));const P=await E;if(P.target&&P.target instanceof FileReader)return P.target.result;throw new Error("Error loading file")}async function c(a,p,h){const m=s.wsUpload;if(m){const E=await l(a,p,h);m.send(JSON.stringify({name:a.name,size:a.size,start:p,end:h})),m.send(E)}}async function u(a){const p=a.target,h=1<<20;if(p&&p.files&&p.files.length>0){const m=p.files[0],E=Math.ceil(m.size/h),P=s.pushUploadingDocuments(m.name);o();for(let k=0;k<E;k++){const M=k*h,v=Math.min(m.size,M+h);await c(m,M,v),console.log("progress: "+100*(k+1)/E),console.log("Num Chunks: "+E),s.updateUploadingDocuments(P.key,100*(k+1)/E)}}}return(a,p)=>{const h=Gs;return ne(),ue(me,null,[U("template",null,[U("input",{ref_key:"fileUploadButton",ref:t,onChange:u,class:"upload-input",type:"file",multiple:""},null,544),U("input",{ref_key:"folderUploadButton",ref:n,onChange:u,class:"upload-input",type:"file",webkitdirectory:""},null,544)]),q(h,{name:"add-file",onClick:p[0]||(p[0]=m=>t.value.click())}),q(h,{name:"add-folder",onClick:p[1]||(p[1]=m=>n.value.click())})],64)}}}),Cu=e=>(Wn("data-v-0190b326"),e=e(),zn(),e),Iu={class:"buttons"},Su=Cu(()=>U("div",{class:"spacer"},null,-1)),Au=["onKeyup"],ku=Ce({__name:"HeaderMain",setup(e,{expose:t}){const n=Ze(),s=de(!1),o=de(),r=de(),i=()=>{s.value=!s.value,Un(()=>{const c=o.value;c?c.focus():r.value&&r.value.blur(),l()})},l=()=>{var c;n.setFilter(((c=o.value)==null?void 0:c.value)??"")};return t({toggleSearchInput:i}),(c,u)=>{const a=Ou,p=Gs;return ne(),ue("nav",null,[U("div",Iu,[q(a),q(p,{name:"create-folder",onClick:u[0]||(u[0]=()=>pe(n).fileExplorer.newFolder())}),Js(c.$slots,"default",{},void 0,!0),Su,s.value?(ne(),ue("input",{key:0,ref_key:"search",ref:o,type:"search",class:"margin-input",onKeyup:Rs(i,["esc"]),onInput:l},null,40,Au)):Tt("",!0),q(p,{ref_key:"searchButton",ref:r,name:"find",onClick:i},null,512),q(p,{name:"cog",onClick:u[1]||(u[1]=h=>console.log("TODO open settings"))})])])}}});const Tu=Ht(ku,[["__scopeId","data-v-0190b326"]]);function Ft(e,t){const n=new URL(e,location.origin.replace(/^http/,"ws")),s=new WebSocket(n);return s.onmessage=t,s}const Mu=e=>(Wn("data-v-170b771e"),e=e(),zn(),e),Lu=Mu(()=>U("div",{class:"smallgap"},null,-1)),Du={class:"select-text"},$u=Ce({__name:"HeaderSelected",props:{path:Array},setup(e){const t=e,n=Ze(),s=_e(()=>t.path.join("/")),o=(c,u)=>{const a=n.selectedFiles,p={op:c,sel:a.ids.filter(m=>a.selected.has(m)).map(m=>a.fullpath[m])};u!==void 0&&(p.dst=u);const h=Ft("/api/control",m=>{const E=JSON.parse(m.data);if("error"in E){console.error("Control socket error",p,E.error);return}else if(E.status==="ack"){console.log("Control ack OK",E),h.close(),n.selected.clear();return}else console.log("Unknown control respons",p,E)});h.onopen=()=>{h.send(JSON.stringify(p))}},r=c=>{const u=document.createElement("a");u.href=c,u.download="",u.click()},i=async(c,u)=>{let a="",p=u,h=[];for(const m of c.ids)h.push(c.relpath[m]);console.log("Downloading to filesystem",h);for(const m of c.ids){const E=c.relpath[m],P=c.url[m];E.startsWith(a)||(a="",p=u);const k=E.slice(a.length);for(const T of k.split("/").slice(0,P?-1:void 0)){a+=`${T}/`;try{p=await p.getDirectoryHandle(T.normalize("NFC"),{create:!0})}catch(K){console.error("Failed to create directory",a,K);return}console.log("Created",a)}if(!P)continue;const M=E.split("/").pop().normalize("NFC");let v;try{v=await p.getFileHandle(M,{create:!0})}catch(T){console.error("Failed to create file",a+M,T);return}const O=await v.createWritable();console.log("Fetching",P);const S=await fetch(P);if(!S.ok)throw new Error(`Failed to download ${P}: ${S.status} ${S.statusText}`);S.body?await S.body.pipeTo(O):(await O.truncate(0),await O.close()),console.log("Saved",a+M)}},l=async()=>{const c=n.selectedFiles;if(console.log("Download",c),c.selected.size===0){console.warn("Attempted download but no files found. Missing:",c.missing),n.selected.clear();return}const u=Object.values(c.url);if(u.length===1)return n.selected.clear(),r(u[0]);if("showDirectoryPicker"in window)try{const a=await window.showDirectoryPicker({startIn:"downloads",mode:"readwrite"});i(c,a).then(()=>{n.selected.clear()});return}catch(a){console.error("Download to folder aborted",a)}r(`/zip/${Array.from(c.selected).join("+")}/download.zip`),n.selected.clear()};return(c,u)=>{const a=Gs;return ne(),ue(me,null,[Lu,U("p",Du,He(pe(n).selected.size)+" selected ➤",1),q(a,{name:"download",onClick:l}),q(a,{name:"copy",onClick:u[0]||(u[0]=p=>o("cp",s.value))}),q(a,{name:"paste",onClick:u[1]||(u[1]=p=>o("mv",s.value))}),q(a,{name:"trash",onClick:u[2]||(u[2]=p=>o("rm"))}),U("button",{onClick:u[3]||(u[3]=p=>pe(n).selected.clear())},"❌")],64)}}});const Fu=Ht($u,[["__scopeId","data-v-170b771e"]]),ju={key:0},Nu=U("button",{onclick:"dialog.close()"},"OK",-1),Vu=Ce({__name:"ModalDialog",props:{title:{default:""}},setup(e){const t=e,n=de(null);return Jn(()=>{n.value.showModal()}),(s,o)=>(ne(),ue("dialog",{ref_key:"dialog",ref:n},[t.title?(ne(),ue("h1",ju,He(t.title),1)):Tt("",!0),U("div",null,[Js(s.$slots,"default",{},()=>[ri(" Dialog with no content "),Nu])])],512))}});class Uu{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 o;try{o=await s.json()}catch{throw new zo(s.status,`HTTP ${s.status} ${s.statusText}`)}if("error"in o)throw new zo(o.error.code,o.error.message);return o}}const mi=new Uu;class zo extends Error{constructor(n,s){super(s);co(this,"code");this.code=n}}const Bu="/login",Hu="/logout ";async function Ku(e,t){return await mi.post(Bu,{username:e,password:t})}async function Wu(){return await mi.post(Hu)}const to=e=>(Wn("data-v-0167bcf4"),e=e(),zn(),e),zu=["onSubmit"],qu={class:"login-container"},Ju=to(()=>U("label",{for:"username"},"Username:",-1)),Qu=to(()=>U("label",{for:"password"},"Password:",-1)),Yu={key:0,class:"error-text"},Xu=to(()=>U("input",{id:"submit",type:"submit",class:"button-login"},null,-1)),Zu=Ce({__name:"LoginModal",setup(e){const t=de(!1),n=Ze(),s=async()=>{try{await Wu()}finally{location.reload()}},o=Bt({username:"",password:"",error:""}),r=async()=>{try{o.error="",t.value=!0;const i=await Ku(o.username,o.password);console.log("Logged in",i),n.login(i.username,!!i.privileged)}catch(i){const l=i;l.name&&(o.error=l.message)}finally{t.value=!1}};return(i,l)=>{const c=Vu;return ne(),ue(me,null,[pe(n).isUserLogged?(ne(),ue("button",{key:0,onClick:s,class:"action-button"}," Logout "+He(pe(n).user.username),1)):Tt("",!0),pe(n).user.isOpenLoginModal?(ne(),wt(c,{key:1,title:"Login"},{default:Ks(()=>[U("form",{onSubmit:pt(r,["prevent"])},[U("div",qu,[Ju,_s(U("input",{id:"username",name:"username",autocomplete:"username",required:"","onUpdate:modelValue":l[0]||(l[0]=u=>o.username=u)},null,512),[[Uo,o.username]]),Qu,_s(U("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",required:"","onUpdate:modelValue":l[1]||(l[1]=u=>o.password=u)},null,512),[[Uo,o.password]])]),o.error.length>0?(ne(),ue("h3",Yu,He(o.error),1)):Tt("",!0),Xu],40,zu)]),_:1})):Tt("",!0)],64)}}});const Gu=Ht(Zu,[["__scopeId","data-v-0167bcf4"]]);/*!
* vue-router v4.2.4
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/const It=typeof window<"u";function ea(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ee=Object.assign;function cs(e,t){const n={};for(const s in t){const o=t[s];n[s]=je(o)?o.map(e):e(o)}return n}const en=()=>{},je=Array.isArray,ta=/\/$/,na=e=>e.replace(ta,"");function us(e,t,n="/"){let s,o={},r="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l<c&&l>=0&&(c=-1),c>-1&&(s=t.slice(0,c),r=t.slice(c+1,l>-1?l:t.length),o=e(r)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=ia(s??t,n),{fullPath:s+(r&&"?")+r+i,path:s,query:o,hash:i}}function sa(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function qo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function oa(e,t,n){const s=t.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&jt(t.matched[s],n.matched[o])&&_i(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function jt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _i(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ra(e[n],t[n]))return!1;return!0}function ra(e,t){return je(e)?Jo(e,t):je(t)?Jo(t,e):e===t}function Jo(e,t){return je(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function ia(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),o=s[s.length-1];(o===".."||o===".")&&s.push("");let r=n.length-1,i,l;for(i=0;i<s.length;i++)if(l=s[i],l!==".")if(l==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(i-(i===s.length?1:0)).join("/")}var an;(function(e){e.pop="pop",e.push="push"})(an||(an={}));var tn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(tn||(tn={}));function la(e){if(!e)if(It){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),na(e)}const ca=/^[^#]+#/;function ua(e,t){return e.replace(ca,"#")+t}function aa(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 Gn=()=>({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("#"),o=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=aa(o,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 Qo(e,t){return(history.state?history.state.position-t:-1)+e}const Is=new Map;function da(e,t){Is.set(e,t)}function pa(e){const t=Is.get(e);return Is.delete(e),t}let ha=()=>location.protocol+"//"+location.host;function vi(e,t){const{pathname:n,search:s,hash:o}=t,r=e.indexOf("#");if(r>-1){let l=o.includes(e.slice(r))?e.slice(r).length:1,c=o.slice(l);return c[0]!=="/"&&(c="/"+c),qo(c,"")}return qo(n,e)+s+o}function ga(e,t,n,s){let o=[],r=[],i=null;const l=({state:h})=>{const m=vi(e,location),E=n.value,P=t.value;let k=0;if(h){if(n.value=m,t.value=h,i&&i===E){i=null;return}k=P?h.position-P.position:0}else s(m);o.forEach(M=>{M(n.value,E,{delta:k,type:an.pop,direction:k?k>0?tn.forward:tn.back:tn.unknown})})};function c(){i=n.value}function u(h){o.push(h);const m=()=>{const E=o.indexOf(h);E>-1&&o.splice(E,1)};return r.push(m),m}function a(){const{history:h}=window;h.state&&h.replaceState(ee({},h.state,{scroll:Gn()}),"")}function p(){for(const h of r)h();r=[],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 Yo(e,t,n,s=!1,o=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:o?Gn():null}}function ma(e){const{history:t,location:n}=window,s={value:vi(e,n)},o={value:t.state};o.value||r(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(c,u,a){const p=e.indexOf("#"),h=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+c:ha()+e+c;try{t[a?"replaceState":"pushState"](u,"",h),o.value=u}catch(m){console.error(m),n[a?"replace":"assign"](h)}}function i(c,u){const a=ee({},t.state,Yo(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});r(c,a,!0),s.value=c}function l(c,u){const a=ee({},o.value,t.state,{forward:c,scroll:Gn()});r(a.current,a,!0);const p=ee({},Yo(s.value,c,null),{position:a.position+1},u);r(c,p,!1),s.value=c}return{location:s,state:o,push:l,replace:i}}function _a(e){e=la(e);const t=ma(e),n=ga(e,t.state,t.location,t.replace);function s(r,i=!0){i||n.pauseListeners(),history.go(r)}const o=ee({location:"",base:e,go:s,createHref:ua.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function va(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),_a(e)}function ya(e){return typeof e=="string"||e&&typeof e=="object"}function yi(e){return typeof e=="string"||typeof e=="symbol"}const tt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},bi=Symbol("");var Xo;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Xo||(Xo={}));function Nt(e,t){return ee(new Error,{type:e,[bi]:!0},t)}function Je(e,t){return e instanceof Error&&bi in e&&(t==null||!!(e.type&t))}const Zo="[^/]+?",ba={sensitive:!1,strict:!1,start:!0,end:!0},Ea=/[.+*?^${}()[\]/\\]/g;function wa(e,t){const n=ee({},ba,t),s=[];let o=n.start?"^":"";const r=[];for(const u of e){const a=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let p=0;p<u.length;p++){const h=u[p];let m=40+(n.sensitive?.25:0);if(h.type===0)p||(o+="/"),o+=h.value.replace(Ea,"\\$&"),m+=40;else if(h.type===1){const{value:E,repeatable:P,optional:k,regexp:M}=h;r.push({name:E,repeatable:P,optional:k});const v=M||Zo;if(v!==Zo){m+=10;try{new RegExp(`(${v})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${E}" (${v}): `+S.message)}}let O=P?`((?:${v})(?:/(?:${v}))*)`:`(${v})`;p||(O=k&&u.length<2?`(?:/${O})`:"/"+O),k&&(O+="?"),o+=O,m+=20,k&&(m+=-8),P&&(m+=-20),v===".*"&&(m+=-50)}a.push(m)}s.push(a)}if(n.strict&&n.end){const u=s.length-1;s[u][s[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const i=new RegExp(o,n.sensitive?"":"i");function l(u){const a=u.match(i),p={};if(!a)return null;for(let h=1;h<a.length;h++){const m=a[h]||"",E=r[h-1];p[E.name]=m&&E.repeatable?m.split("/"):m}return p}function c(u){let a="",p=!1;for(const h of e){(!p||!a.endsWith("/"))&&(a+="/"),p=!1;for(const m of h)if(m.type===0)a+=m.value;else if(m.type===1){const{value:E,repeatable:P,optional:k}=m,M=E in u?u[E]:"";if(je(M)&&!P)throw new Error(`Provided param "${E}" is an array but it is not repeatable (* or + modifiers)`);const v=je(M)?M.join("/"):M;if(!v)if(k)h.length<2&&(a.endsWith("/")?a=a.slice(0,-1):p=!0);else throw new Error(`Missing required param "${E}"`);a+=v}}return a||"/"}return{re:i,score:s,keys:r,parse:l,stringify:c}}function xa(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function Ra(e,t){let n=0;const s=e.score,o=t.score;for(;n<s.length&&n<o.length;){const r=xa(s[n],o[n]);if(r)return r;n++}if(Math.abs(o.length-s.length)===1){if(Go(s))return 1;if(Go(o))return-1}return o.length-s.length}function Go(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Pa={type:0,value:""},Oa=/[a-zA-Z0-9_]/;function Ca(e){if(!e)return[[]];if(e==="/")return[[Pa]];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 o=[];let r;function i(){r&&o.push(r),r=[]}let l=0,c,u="",a="";function p(){u&&(n===0?r.push({type:0,value:u}):n===1||n===2||n===3?(r.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),r.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<e.length;){if(c=e[l++],c==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:c==="/"?(u&&p(),i()):c===":"?(p(),n=1):h();break;case 4:h(),n=s;break;case 1:c==="("?n=2:Oa.test(c)?h():(p(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case 2:c===")"?a[a.length-1]=="\\"?a=a.slice(0,-1)+c:n=3:a+=c;break;case 3:p(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--,a="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),p(),i(),o}function Ia(e,t,n){const s=wa(Ca(e.path),n),o=ee(s,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Sa(e,t){const n=[],s=new Map;t=nr({strict:!1,end:!0,sensitive:!1},t);function o(a){return s.get(a)}function r(a,p,h){const m=!h,E=Aa(a);E.aliasOf=h&&h.record;const P=nr(t,a),k=[E];if("alias"in a){const O=typeof a.alias=="string"?[a.alias]:a.alias;for(const S of O)k.push(ee({},E,{components:h?h.record.components:E.components,path:S,aliasOf:h?h.record:E}))}let M,v;for(const O of k){const{path:S}=O;if(p&&S[0]!=="/"){const T=p.record.path,K=T[T.length-1]==="/"?"":"/";O.path=p.record.path+(S&&K+S)}if(M=Ia(O,p,P),h?h.alias.push(M):(v=v||M,v!==M&&v.alias.push(M),m&&a.name&&!tr(M)&&i(a.name)),E.children){const T=E.children;for(let K=0;K<T.length;K++)r(T[K],M,h&&h.children[K])}h=h||M,(M.record.components&&Object.keys(M.record.components).length||M.record.name||M.record.redirect)&&c(M)}return v?()=>{i(v)}:en}function i(a){if(yi(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<n.length&&Ra(a,n[p])>=0&&(a.record.path!==n[p].record.path||!Ei(a,n[p]));)p++;n.splice(p,0,a),a.record.name&&!tr(a)&&s.set(a.record.name,a)}function u(a,p){let h,m={},E,P;if("name"in a&&a.name){if(h=s.get(a.name),!h)throw Nt(1,{location:a});P=h.record.name,m=ee(er(p.params,h.keys.filter(v=>!v.optional).map(v=>v.name)),a.params&&er(a.params,h.keys.map(v=>v.name))),E=h.stringify(m)}else if("path"in a)E=a.path,h=n.find(v=>v.re.test(E)),h&&(m=h.parse(E),P=h.record.name);else{if(h=p.name?s.get(p.name):n.find(v=>v.re.test(p.path)),!h)throw Nt(1,{location:a,currentLocation:p});P=h.record.name,m=ee({},p.params,a.params),E=h.stringify(m)}const k=[];let M=h;for(;M;)k.unshift(M.record),M=M.parent;return{name:P,path:E,params:m,matched:k,meta:Ta(k)}}return e.forEach(a=>r(a)),{addRoute:r,resolve:u,removeRoute:i,getRoutes:l,getRecordMatcher:o}}function er(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Aa(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:ka(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 ka(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 tr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ta(e){return e.reduce((t,n)=>ee(t,n.meta),{})}function nr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Ei(e,t){return t.children.some(n=>n===e||Ei(e,n))}const wi=/#/g,Ma=/&/g,La=/\//g,Da=/=/g,$a=/\?/g,xi=/\+/g,Fa=/%5B/g,ja=/%5D/g,Ri=/%5E/g,Na=/%60/g,Pi=/%7B/g,Va=/%7C/g,Oi=/%7D/g,Ua=/%20/g;function no(e){return encodeURI(""+e).replace(Va,"|").replace(Fa,"[").replace(ja,"]")}function Ba(e){return no(e).replace(Pi,"{").replace(Oi,"}").replace(Ri,"^")}function Ss(e){return no(e).replace(xi,"%2B").replace(Ua,"+").replace(wi,"%23").replace(Ma,"%26").replace(Na,"`").replace(Pi,"{").replace(Oi,"}").replace(Ri,"^")}function Ha(e){return Ss(e).replace(Da,"%3D")}function Ka(e){return no(e).replace(wi,"%23").replace($a,"%3F")}function Wa(e){return e==null?"":Ka(e).replace(La,"%2F")}function Tn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function za(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<s.length;++o){const r=s[o].replace(xi," "),i=r.indexOf("="),l=Tn(i<0?r:r.slice(0,i)),c=i<0?null:Tn(r.slice(i+1));if(l in t){let u=t[l];je(u)||(u=t[l]=[u]),u.push(c)}else t[l]=c}return t}function sr(e){let t="";for(let n in e){const s=e[n];if(n=Ha(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(je(s)?s.map(r=>r&&Ss(r)):[s&&Ss(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function qa(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=je(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const Ja=Symbol(""),or=Symbol(""),so=Symbol(""),Ci=Symbol(""),As=Symbol("");function zt(){let e=[];function t(s){return e.push(s),()=>{const o=e.indexOf(s);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ot(e,t,n,s,o){const r=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((i,l)=>{const c=p=>{p===!1?l(Nt(4,{from:n,to:t})):p instanceof Error?l(p):ya(p)?l(Nt(2,{from:t,to:p})):(r&&s.enterCallbacks[o]===r&&typeof p=="function"&&r.push(p),i())},u=e.call(s&&s.instances[o],t,n,c);let a=Promise.resolve(u);e.length<3&&(a=a.then(c)),a.catch(p=>l(p))})}function as(e,t,n,s){const o=[];for(const r of e)for(const i in r.components){let l=r.components[i];if(!(t!=="beforeRouteEnter"&&!r.instances[i]))if(Qa(l)){const u=(l.__vccOpts||l)[t];u&&o.push(ot(u,n,s,r,i))}else{let c=l();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${r.path}"`));const a=ea(u)?u.default:u;r.components[i]=a;const h=(a.__vccOpts||a)[t];return h&&ot(h,n,s,r,i)()}))}}return o}function Qa(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function rr(e){const t=We(so),n=We(Ci),s=_e(()=>t.resolve(pe(e.to))),o=_e(()=>{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(jt.bind(null,a));if(h>-1)return h;const m=ir(c[u-2]);return u>1&&ir(a)===m&&p[p.length-1].path!==m?p.findIndex(jt.bind(null,c[u-2])):h}),r=_e(()=>o.value>-1&&Ga(n.params,s.value.params)),i=_e(()=>o.value>-1&&o.value===n.matched.length-1&&_i(n.params,s.value.params));function l(c={}){return Za(c)?t[pe(e.replace)?"replace":"push"](pe(e.to)).catch(en):Promise.resolve()}return{route:s,href:_e(()=>s.value.href),isActive:r,isExactActive:i,navigate:l}}const Ya=Ce({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:rr,setup(e,{slots:t}){const n=Bt(rr(e)),{options:s}=We(so),o=_e(()=>({[lr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[lr(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&t.default(n);return e.custom?r:ci("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),Xa=Ya;function Za(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 Ga(e,t){for(const n in t){const s=t[n],o=e[n];if(typeof s=="string"){if(s!==o)return!1}else if(!je(o)||o.length!==s.length||s.some((r,i)=>r!==o[i]))return!1}return!0}function ir(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const lr=(e,t,n)=>e??t??n,ef=Ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=We(As),o=_e(()=>e.route||s.value),r=We(or,0),i=_e(()=>{let u=pe(r);const{matched:a}=o.value;let p;for(;(p=a[u])&&!p.components;)u++;return u}),l=_e(()=>o.value.matched[i.value]);wn(or,_e(()=>i.value+1)),wn(Ja,l),wn(As,o);const c=de();return Qt(()=>[c.value,l.value,e.name],([u,a,p],[h,m,E])=>{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||!jt(a,m)||!h)&&(a.enterCallbacks[p]||[]).forEach(P=>P(u))},{flush:"post"}),()=>{const u=o.value,a=e.name,p=l.value,h=p&&p.components[a];if(!h)return cr(n.default,{Component:h,route:u});const m=p.props[a],E=m?m===!0?u.params:typeof m=="function"?m(u):m:null,k=ci(h,ee({},E,t,{onVnodeUnmounted:M=>{M.component.isUnmounted&&(p.instances[a]=null)},ref:c}));return cr(n.default,{Component:k,route:u})||k}}});function cr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ii=ef;function tf(e){const t=Sa(e.routes,e),n=e.parseQuery||za,s=e.stringifyQuery||sr,o=e.history,r=zt(),i=zt(),l=zt(),c=bl(tt);let u=tt;It&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=cs.bind(null,y=>""+y),p=cs.bind(null,Wa),h=cs.bind(null,Tn);function m(y,L){let I,F;return yi(y)?(I=t.getRecordMatcher(y),F=L):F=y,t.addRoute(F,I)}function E(y){const L=t.getRecordMatcher(y);L&&t.removeRoute(L)}function P(){return t.getRoutes().map(y=>y.record)}function k(y){return!!t.getRecordMatcher(y)}function M(y,L){if(L=ee({},L||c.value),typeof y=="string"){const g=us(n,y,L.path),_=t.resolve({path:g.path},L),b=o.createHref(g.fullPath);return ee(g,_,{params:h(_.params),hash:Tn(g.hash),redirectedFrom:void 0,href:b})}let I;if("path"in y)I=ee({},y,{path:us(n,y.path,L.path).path});else{const g=ee({},y.params);for(const _ in g)g[_]==null&&delete g[_];I=ee({},y,{params:p(g)}),L.params=p(L.params)}const F=t.resolve(I,L),G=y.hash||"";F.params=a(h(F.params));const f=sa(s,ee({},y,{hash:Ba(G),path:F.path})),d=o.createHref(f);return ee({fullPath:f,hash:G,query:s===sr?qa(y.query):y.query||{}},F,{redirectedFrom:void 0,href:d})}function v(y){return typeof y=="string"?us(n,y,c.value.path):ee({},y)}function O(y,L){if(u!==y)return Nt(8,{from:L,to:y})}function S(y){return le(y)}function T(y){return S(ee(v(y),{replace:!0}))}function K(y){const L=y.matched[y.matched.length-1];if(L&&L.redirect){const{redirect:I}=L;let F=typeof I=="function"?I(y):I;return typeof F=="string"&&(F=F.includes("?")||F.includes("#")?F=v(F):{path:F},F.params={}),ee({query:y.query,hash:y.hash,params:"path"in F?{}:y.params},F)}}function le(y,L){const I=u=M(y),F=c.value,G=y.state,f=y.force,d=y.replace===!0,g=K(I);if(g)return le(ee(v(g),{state:typeof g=="object"?ee({},G,g.state):G,force:f,replace:d}),L||I);const _=I;_.redirectedFrom=L;let b;return!f&&oa(s,F,I)&&(b=Nt(16,{to:_,from:F}),Ne(F,F,!0,!1)),(b?Promise.resolve(b):ce(_,F)).catch(w=>Je(w)?Je(w,2)?w:Ge(w):Z(w,_,F)).then(w=>{if(w){if(Je(w,2))return le(ee({replace:d},v(w.to),{state:typeof w.to=="object"?ee({},G,w.to.state):G,force:f}),L||_)}else w=Ie(_,F,!0,d,G);return be(_,F,w),w})}function W(y,L){const I=O(y,L);return I?Promise.reject(I):Promise.resolve()}function J(y){const L=Rt.values().next().value;return L&&typeof L.runWithContext=="function"?L.runWithContext(y):y()}function ce(y,L){let I;const[F,G,f]=nf(y,L);I=as(F.reverse(),"beforeRouteLeave",y,L);for(const g of F)g.leaveGuards.forEach(_=>{I.push(ot(_,y,L))});const d=W.bind(null,y,L);return I.push(d),Ee(I).then(()=>{I=[];for(const g of r.list())I.push(ot(g,y,L));return I.push(d),Ee(I)}).then(()=>{I=as(G,"beforeRouteUpdate",y,L);for(const g of G)g.updateGuards.forEach(_=>{I.push(ot(_,y,L))});return I.push(d),Ee(I)}).then(()=>{I=[];for(const g of f)if(g.beforeEnter)if(je(g.beforeEnter))for(const _ of g.beforeEnter)I.push(ot(_,y,L));else I.push(ot(g.beforeEnter,y,L));return I.push(d),Ee(I)}).then(()=>(y.matched.forEach(g=>g.enterCallbacks={}),I=as(f,"beforeRouteEnter",y,L),I.push(d),Ee(I))).then(()=>{I=[];for(const g of i.list())I.push(ot(g,y,L));return I.push(d),Ee(I)}).catch(g=>Je(g,8)?g:Promise.reject(g))}function be(y,L,I){l.list().forEach(F=>J(()=>F(y,L,I)))}function Ie(y,L,I,F,G){const f=O(y,L);if(f)return f;const d=L===tt,g=It?history.state:{};I&&(F||d?o.replace(y.fullPath,ee({scroll:d&&g&&g.scroll},G)):o.push(y.fullPath,G)),c.value=y,Ne(y,L,I,d),Ge()}let ke;function at(){ke||(ke=o.listen((y,L,I)=>{if(!pn.listening)return;const F=M(y),G=K(F);if(G){le(ee(G,{replace:!0}),F).catch(en);return}u=F;const f=c.value;It&&da(Qo(f.fullPath,I.delta),Gn()),ce(F,f).catch(d=>Je(d,12)?d:Je(d,2)?(le(d.to,F).then(g=>{Je(g,20)&&!I.delta&&I.type===an.pop&&o.go(-1,!1)}).catch(en),Promise.reject()):(I.delta&&o.go(-I.delta,!1),Z(d,F,f))).then(d=>{d=d||Ie(F,f,!1),d&&(I.delta&&!Je(d,8)?o.go(-I.delta,!1):I.type===an.pop&&Je(d,20)&&o.go(-1,!1)),be(F,f,d)}).catch(en)}))}let Te=zt(),X=zt(),se;function Z(y,L,I){Ge(y);const F=X.list();return F.length?F.forEach(G=>G(y,L,I)):console.error(y),Promise.reject(y)}function qe(){return se&&c.value!==tt?Promise.resolve():new Promise((y,L)=>{Te.add([y,L])})}function Ge(y){return se||(se=!y,at(),Te.list().forEach(([L,I])=>y?I(y):L()),Te.reset()),y}function Ne(y,L,I,F){const{scrollBehavior:G}=e;if(!It||!G)return Promise.resolve();const f=!I&&pa(Qo(y.fullPath,0))||(F||!I)&&history.state&&history.state.scroll||null;return Un().then(()=>G(y,L,f)).then(d=>d&&fa(d)).catch(d=>Z(d,y,L))}const Re=y=>o.go(y);let xt;const Rt=new Set,pn={currentRoute:c,listening:!0,addRoute:m,removeRoute:E,hasRoute:k,getRoutes:P,resolve:M,options:e,push:S,replace:T,go:Re,back:()=>Re(-1),forward:()=>Re(1),beforeEach:r.add,beforeResolve:i.add,afterEach:l.add,onError:X.add,isReady:qe,install(y){const L=this;y.component("RouterLink",Xa),y.component("RouterView",Ii),y.config.globalProperties.$router=L,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>pe(c)}),It&&!xt&&c.value===tt&&(xt=!0,S(o.location).catch(G=>{}));const I={};for(const G in tt)Object.defineProperty(I,G,{get:()=>c.value[G],enumerable:!0});y.provide(so,L),y.provide(Ci,Sr(I)),y.provide(As,c);const F=y.unmount;Rt.add(y),y.unmount=function(){Rt.delete(y),Rt.size<1&&(u=tt,ke&&ke(),ke=null,c.value=tt,xt=!1,se=!1),F()}}};function Ee(y){return y.reduce((L,I)=>L.then(()=>J(I)),Promise.resolve())}return pn}function nf(e,t){const n=[],s=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let i=0;i<r;i++){const l=t.matched[i];l&&(e.matched.find(u=>jt(u,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(u=>jt(u,c))||o.push(c))}return[n,s,o]}const Si="/api/watch",sf="/api/upload";class of{constructor(t=Ze()){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=Ft(Si,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,o;let n=this.store.root;for(const r of t.update){if(r.deleted){delete n.dir[r.name];break}r.name!==void 0&&(n=(s=n.dir)[o=r.name]||(s[o]={})),r.id!==void 0&&(n.id=r.id),r.size!==void 0&&(n.size=r.size),r.mtime!==void 0&&(n.mtime=r.mtime),r.dir!==void 0&&(n.dir=r.dir)}}handleError(t){if(t.error.code===401){this.store.user.isOpenLoginModal=!0,this.store.user.isLoggedIn=!1;return}}}class rf{constructor(t=Ze()){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 lf=["value","onKeyup"],ur=Ce({__name:"FileRenameInput",props:{doc:{},rename:{type:Function},exit:{type:Function}},setup(e){const t=e,n=de(null);Jn(()=>{const o=n.value.value.lastIndexOf(".");n.value.focus(),n.value.setSelectionRange(0,o>0?o:n.value.value.length)});const s=()=>{const o=n.value.value;t.exit(),!(t.doc.key!=="new"&&(o===t.doc.name||o.length===0))&&t.rename(t.doc,o)};return(o,r)=>(ne(),ue("input",{ref_key:"input",ref:n,id:"FileRenameInput",type:"text",value:o.doc.name,onKeyup:[r[0]||(r[0]=Rs((...i)=>o.exit&&o.exit(...i),["esc"])),Rs(s,["enter"])]},null,40,lf))}});const oo=e=>(Wn("data-v-6604f4a8"),e=e(),zn(),e),cf={class:"selection"},uf=["indeterminate"],af=oo(()=>U("th",{class:"menu"},null,-1)),ff={key:0,class:"folder"},df=oo(()=>U("td",{class:"selection"},null,-1)),pf={class:"name"},hf={class:"modified right"},gf={class:"size right"},mf=oo(()=>U("td",{class:"menu"},null,-1)),_f=["id","onClick","onContextmenu"],vf=["onClick"],yf=["checked","onChange"],bf={class:"name"},Ef=["href","onFocus"],wf=["onClick"],xf={class:"modified right"},Rf={class:"size right"},Pf={class:"menu"},Of=["onClick"],Cf={key:1,class:"empty-container"},If=Ce({__name:"FileExplorer",props:{path:{},documents:{}},setup(e,{expose:t}){const n=e,s=Ze(),o=_e(()=>n.path.join("/")),r=_e(()=>`/files/${o.value}`),i=v=>v.type==="folder"?`#${o.value}/${v.name}/`:`${r.value}/${v.name}`,l=de(null),c=de(null),u=(v,O)=>{const S=v.name,T=Ft("/api/control",K=>{const le=JSON.parse(K.data);"error"in le?(console.error("Rename failed",le.error.message,le.error),v.name=S):console.log("Rename succeeded",le)});T.onopen=()=>{T.send(JSON.stringify({op:"rename",path:`${decodeURIComponent(o.value)}/${S}`,to:O}))},v.name=O};t({newFolder(){const v=Date.now()/1e3;c.value={key:"new",name:"New Folder",type:"folder",mtime:v,size:0,sizedisp:hi(0),modified:Cs(v)}},toggleSelectAll(){console.log("Select"),k.value=!k.value},isCursor(){return l.value!==null&&c.value===null},cursorRename(){c.value=l.value},cursorSelect(){console.log("select",s.selected);const v=l.value;v&&(s.selected.has(v.key)?s.selected.delete(v.key):s.selected.add(v.key))},cursorMove(v){const O=E(n.documents);if(O.length===0){l.value=null;return}const S=(le,W)=>(le%W+W)%W,T=l.value!==null?O.indexOf(l.value):-1;l.value=O[S(T+v,O.length+1)]??null;const K=document.getElementById(`file-${l.value.key}`);K&&K.scrollIntoView({block:"center"})}}),In(()=>{if(l.value){const v=document.querySelector(`#file-${l.value.key} .name a`);v&&v.focus()}});const a=(v,O)=>{const S=Ft("/api/control",T=>{const K=JSON.parse(T.data);"error"in K?(console.error("Mkdir failed",K.error.message,K.error),c.value=null):console.log("mkdir",K)});S.onopen=()=>{S.send(JSON.stringify({op:"mkdir",path:`${decodeURIComponent(o.value)}/${O}`}))},v.name=O},p=v=>{h.value=h.value===v?"":v},h=de(""),m={name:(v,O)=>v.name.localeCompare(O.name,void 0,{numeric:!0,sensitivity:"base"}),modified:(v,O)=>O.mtime-v.mtime,size:(v,O)=>O.size-v.size},E=v=>{const O=m[h.value],S=[...v];return O&&S.sort(O),S},P=_e({get:()=>n.documents.length>0&&n.documents.some(v=>s.selected.has(v.key))&&!k.value,set:v=>{}}),k=_e({get:()=>n.documents.length>0&&n.documents.every(v=>s.selected.has(v.key)),set:v=>{console.log("Setting allSelected",v);for(const O of n.documents)v?s.selected.add(O.key):s.selected.delete(O.key)}}),M=(v,O)=>{console.log("Context menu",v,O)};return(v,O)=>{var S;return n.documents.length||c.value?(ne(),ue("table",{key:0,onBlur:O[6]||(O[6]=T=>l.value=null)},[U("thead",null,[U("tr",null,[U("th",cf,[_s(U("input",{type:"checkbox",tabindex:"-1","onUpdate:modelValue":O[0]||(O[0]=T=>k.value=T),indeterminate:P.value},null,8,uf),[[Yc,k.value]])]),U("th",{class:_t(["sortcolumn",{sortactive:h.value==="name"}]),onClick:O[1]||(O[1]=T=>p("name"))}," Name ",2),U("th",{class:_t(["sortcolumn modified right",{sortactive:h.value==="modified"}]),onClick:O[2]||(O[2]=T=>p("modified"))}," Modified ",2),U("th",{class:_t(["sortcolumn size right",{sortactive:h.value==="size"}]),onClick:O[3]||(O[3]=T=>p("size"))}," Size ",2),af])]),U("tbody",null,[((S=c.value)==null?void 0:S.key)==="new"?(ne(),ue("tr",ff,[df,U("td",pf,[q(ur,{doc:c.value,rename:a,exit:()=>{c.value=null}},null,8,["doc","exit"])]),U("td",hf,He(c.value.modified),1),U("td",gf,He(c.value.sizedisp),1),mf])):Tt("",!0),(ne(!0),ue(me,null,qr(E(n.documents),T=>(ne(),ue("tr",{key:T.key,id:`file-${T.key}`,class:_t({file:T.type==="file",folder:T.type==="folder",cursor:l.value===T}),onClick:K=>l.value=l.value===T?null:T,onContextmenu:pt(K=>M(K,T),["prevent"])},[U("td",{class:"selection",onClick:pt(K=>l.value=l.value===T?T:null,["stop"])},[U("input",{type:"checkbox",tabindex:"-1",checked:pe(s).selected.has(T.key),onChange:K=>K.target.checked?pe(s).selected.add(T.key):pe(s).selected.delete(T.key)},null,40,yf)],8,vf),U("td",bf,[c.value===T?(ne(),wt(ur,{key:0,doc:T,rename:u,exit:()=>{c.value=null}},null,8,["doc","exit"])):(ne(),ue(me,{key:1},[U("a",{href:i(T),tabindex:"-1",onContextmenu:O[4]||(O[4]=pt(()=>{},["stop"])),onClick:O[5]||(O[5]=pt(()=>{},["stop"])),onFocus:pt(K=>l.value=T,["stop"])},He(T.name),41,Ef),U("button",{onClick:()=>c.value=T},"🖊️",8,wf)],64))]),U("td",xf,He(T.modified),1),U("td",Rf,He(T.sizedisp),1),U("td",Pf,[U("button",{tabindex:"-1",onClick:pt(K=>{l.value=T,M(K,T)},["stop"])}," ⋮ ",8,Of)])],42,_f))),128))])],32)):(ne(),ue("div",Cf,"Nothing to see here"))}}});const Sf=Ht(If,[["__scopeId","data-v-6604f4a8"]]),Af=Ce({__name:"ExplorerView",props:{path:Array},setup(e){const t=e,n=Ze(),s=de();return In(()=>{n.fileExplorer=s.value}),In(async()=>{const o=new String(Mn.currentRoute.value.path);n.setActualDocument(o.toString())}),(o,r)=>{const i=Sf;return ne(),wt(i,{ref_key:"fileExplorer",ref:s,key:pe(Mn).currentRoute.value.path,path:t.path,documents:pe(n).mainDocument},null,8,["path","documents"])}}}),Mn=tf({history:va("/"),routes:[{path:"/:pathMatch(.*)*",name:"explorer",component:Af}]}),kf=Ce({__name:"App",setup(e){const t=Ze(),n=_e(()=>{const l=decodeURIComponent(Mn.currentRoute.value.path),c=l.split("/").filter(u=>u!=="");return{path:l,pathList:c}});setInterval(t.updateModified,1e3),In(()=>{const l=new of,c=new rf,u=Ft(Si,l.handleWebSocketMessage),a=Ft(sf,c.handleWebSocketMessage);t.wsWatch=u,t.wsUpload=a});const s=de(null);let o=0,r=null;const i=l=>{if(l.repeat)return;const c=t.fileExplorer.isCursor,u=l.type==="keyup";if(l.key==="ArrowUp")o=u?0:l.altKey?-10:-1;else if(l.key==="ArrowDown")o=u?0:l.altKey?10:1;else if(!u&&l.key==="f"&&(l.ctrlKey||l.metaKey))s.value.toggleSearchInput();else if(!u&&l.key==="a"&&(l.ctrlKey||l.metaKey))t.fileExplorer.toggleSelectAll();else if(c&&u&&!l.ctrlKey&&(l.key==="F2"||l.key==="r"))t.fileExplorer.cursorRename();else if(c&&l.code==="Space")u&&!l.altKey&&!l.ctrlKey&&t.fileExplorer.cursorSelect();else return;l.preventDefault(),r!==null&&clearInterval(r),r=null,o&&(r=setInterval(()=>{console.log("X"),t.fileExplorer.cursorMove(o)},30))};return Jn(()=>{window.addEventListener("keydown",i),window.addEventListener("keyup",i)}),qs(()=>{window.removeEventListener("keydown",i),window.removeEventListener("keyup",i)}),(l,c)=>{const u=Gu,a=Fu,p=Tu,h=vu;return ne(),ue(me,null,[q(u),U("header",null,[q(p,{ref_key:"headerMain",ref:s},{default:Ks(()=>[q(a,{path:n.value.pathList},null,8,["path"])]),_:1},512),q(h,{path:n.value.pathList},null,8,["path"])]),U("main",null,[q(pe(Ii),{path:n.value.pathList},null,8,["path"])])],64)}}});const Tf=Ht(kf,[["__scopeId","data-v-f7f7d72d"]]),es=su(Tf);es.config.errorHandler=e=>{console.log(e)};es.use(iu());es.use(Mn);es.mount("#app");export{U as a,ue as c,ne as o};