cista 0.5.0__py3-none-any.whl → 0.7.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. cista/_version.py +1 -1
  2. cista/api.py +16 -5
  3. cista/app.py +40 -27
  4. cista/auth.py +33 -1
  5. cista/preview.py +114 -0
  6. cista/protocol.py +5 -2
  7. cista/serve.py +1 -1
  8. cista/util/apphelpers.py +3 -3
  9. cista/watching.py +271 -210
  10. cista/wwwroot/assets/{add-file-78f95102.js → add-file-e19e18ff.js} +1 -1
  11. cista/wwwroot/assets/{add-folder-ef91bb0e.js → add-folder-cf930a27.js} +1 -1
  12. cista/wwwroot/assets/{arrow-c279db10.js → arrow-f09bf4bc.js} +1 -1
  13. cista/wwwroot/assets/{arrows-h-0090937e.js → arrows-h-74714fc1.js} +1 -1
  14. cista/wwwroot/assets/{arrows-v-05d0dc3e.js → arrows-v-900e3e20.js} +1 -1
  15. cista/wwwroot/assets/{check-736f9156.js → check-5d5030f9.js} +1 -1
  16. cista/wwwroot/assets/{code-f442e1ae.js → code-08d0327a.js} +1 -1
  17. cista/wwwroot/assets/{copy-f9304d76.js → copy-d4e131a3.js} +1 -1
  18. cista/wwwroot/assets/{create-file-5cfbca5b.js → create-file-7ee36655.js} +1 -1
  19. cista/wwwroot/assets/{create-folder-f3416e7f.js → create-folder-4baad31c.js} +1 -1
  20. cista/wwwroot/assets/{cross-34310f33.js → cross-5dc70d0a.js} +1 -1
  21. cista/wwwroot/assets/{disk-9de14290.js → disk-1c8c6bb2.js} +1 -1
  22. cista/wwwroot/assets/{download-40f6e8d9.js → download-4c58df40.js} +1 -1
  23. cista/wwwroot/assets/{exclamation-67d2f487.js → exclamation-b23fc5a1.js} +1 -1
  24. cista/wwwroot/assets/{eye-1a9cae12.js → eye-fc97097a.js} +1 -1
  25. cista/wwwroot/assets/{find-f49bedc3.js → find-9f5d36c7.js} +1 -1
  26. cista/wwwroot/assets/{fullscreen-6e83f85d.js → fullscreen-72bac89d.js} +1 -1
  27. cista/wwwroot/assets/{github-33da7a52.js → github-8781f34a.js} +1 -1
  28. cista/wwwroot/assets/index-5ab4ce9a.css +1 -0
  29. cista/wwwroot/assets/index-c828fba8.js +13 -0
  30. cista/wwwroot/assets/{info-9a003b6c.js → info-81c1e2fa.js} +1 -1
  31. cista/wwwroot/assets/{link-b5bf40a7.js → link-ddc2f9ba.js} +1 -1
  32. cista/wwwroot/assets/{logo-adde2ca4.js → logo-10d7b218.js} +1 -1
  33. cista/wwwroot/assets/{loop-762ab430.js → loop-a579040b.js} +1 -1
  34. cista/wwwroot/assets/{menu-633b2a61.js → menu-cb4bdef2.js} +1 -1
  35. cista/wwwroot/assets/{next-d9d1d510.js → next-bb1c5152.js} +1 -1
  36. cista/wwwroot/assets/{open-91351e45.js → open-f8e4da33.js} +1 -1
  37. cista/wwwroot/assets/{paste-d3f337c1.js → paste-0bef6dfd.js} +1 -1
  38. cista/wwwroot/assets/{pause-8f82e536.js → pause-27898a74.js} +1 -1
  39. cista/wwwroot/assets/{pencil-0b434534.js → pencil-19d33c49.js} +1 -1
  40. cista/wwwroot/assets/{play-e0e51167.js → play-fe6706ce.js} +1 -1
  41. cista/wwwroot/assets/{plus-e2a2ec0f.js → plus-ab9d4dbd.js} +1 -1
  42. cista/wwwroot/assets/{previous-cd61ebe6.js → previous-5be4e762.js} +1 -1
  43. cista/wwwroot/assets/{reload-a9c668b2.js → reload-84455f3f.js} +1 -1
  44. cista/wwwroot/assets/{rename-bd15329b.js → rename-88ab1b4d.js} +1 -1
  45. cista/wwwroot/assets/{scissors-dcbf78c0.js → scissors-1266cf56.js} +1 -1
  46. cista/wwwroot/assets/{shuffle-74e9ea1c.js → shuffle-0412a143.js} +1 -1
  47. cista/wwwroot/assets/{signin-bbf26a1b.js → signin-dcc16c88.js} +1 -1
  48. cista/wwwroot/assets/{signout-caa34d68.js → signout-935b6b65.js} +1 -1
  49. cista/wwwroot/assets/{skip-423d5cf0.js → skip-adeae5b8.js} +1 -1
  50. cista/wwwroot/assets/{spinner-b299e14e.js → spinner-7c5e1e66.js} +1 -1
  51. cista/wwwroot/assets/{stop-91578a62.js → stop-6ec4fac4.js} +1 -1
  52. cista/wwwroot/assets/{trash-3b7b72a3.js → trash-218fd3df.js} +1 -1
  53. cista/wwwroot/assets/{triangle-724a2314.js → triangle-40a425a9.js} +1 -1
  54. cista/wwwroot/assets/{unfullscreen-29f4977c.js → unfullscreen-3d51fed5.js} +1 -1
  55. cista/wwwroot/assets/{up-arrow-ceb58d59.js → up-arrow-af385124.js} +1 -1
  56. cista/wwwroot/assets/{upload-cloud-936fb8b2.js → upload-cloud-68d0fe9f.js} +1 -1
  57. cista/wwwroot/assets/{user-cog-887c6f3f.js → user-cog-bca0b085.js} +1 -1
  58. cista/wwwroot/assets/{user-ab4ed9ac.js → user-dd4fef53.js} +1 -1
  59. cista/wwwroot/assets/{volume-high-74a17568.js → volume-high-0f8f0e3d.js} +1 -1
  60. cista/wwwroot/assets/{volume-low-f7170d5f.js → volume-low-b1bd663e.js} +1 -1
  61. cista/wwwroot/assets/{volume-medium-7b16c1db.js → volume-medium-cd88f329.js} +1 -1
  62. cista/wwwroot/assets/{volume-mute-0c7078a1.js → volume-mute-458a2f48.js} +1 -1
  63. cista/wwwroot/assets/{window-f7f79ada.js → window-b63b3c5a.js} +1 -1
  64. cista/wwwroot/assets/{window-cross-e3a75b33.js → window-cross-b0bd1b60.js} +1 -1
  65. cista/wwwroot/assets/{wordwrap-3bcce83c.js → wordwrap-26b55346.js} +1 -1
  66. cista/wwwroot/assets/{zoomin-bd27188c.js → zoomin-cb10ed9f.js} +1 -1
  67. cista/wwwroot/assets/{zoomout-31844707.js → zoomout-90bcc471.js} +1 -1
  68. cista/wwwroot/index.html +3 -4
  69. {cista-0.5.0.dist-info → cista-0.7.0.dist-info}/METADATA +15 -10
  70. cista-0.7.0.dist-info/RECORD +86 -0
  71. cista/wwwroot/assets/cog-fcdd928d.js +0 -1
  72. cista/wwwroot/assets/index-6716899e.js +0 -11
  73. cista/wwwroot/assets/index-bcee9add.css +0 -1
  74. cista-0.5.0.dist-info/RECORD +0 -86
  75. {cista-0.5.0.dist-info → cista-0.7.0.dist-info}/WHEEL +0 -0
  76. {cista-0.5.0.dist-info → cista-0.7.0.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,13 @@
1
+ var Va=Object.defineProperty;var Ha=(e,t,n)=>t in e?Va(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var en=(e,t,n)=>(Ha(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 s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const c of i.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function Vo(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const Ae={},sr=[],Vt=()=>{},Ua=()=>!1,Wa=/^on[^a-z]/,to=e=>Wa.test(e),ii=e=>e.startsWith("onUpdate:"),Ne=Object.assign,li=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},za=Object.prototype.hasOwnProperty,Ce=(e,t)=>za.call(e,t),Q=Array.isArray,ir=e=>yr(e)==="[object Map]",Zn=e=>yr(e)==="[object Set]",Xi=e=>yr(e)==="[object Date]",Ka=e=>yr(e)==="[object RegExp]",fe=e=>typeof e=="function",je=e=>typeof e=="string",ar=e=>typeof e=="symbol",Te=e=>e!==null&&typeof e=="object",ci=e=>(Te(e)||fe(e))&&fe(e.then)&&fe(e.catch),ic=Object.prototype.toString,yr=e=>ic.call(e),qa=e=>yr(e).slice(8,-1),lc=e=>yr(e)==="[object Object]",ui=e=>je(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Tr=Vo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ho=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ja=/-(\w)/g,_t=Ho(e=>e.replace(Ja,(t,n)=>n?n.toUpperCase():"")),Ya=/\B([A-Z])/g,At=Ho(e=>e.replace(Ya,"-$1").toLowerCase()),no=Ho(e=>e.charAt(0).toUpperCase()+e.slice(1)),$r=Ho(e=>e?`on${no(e)}`:""),En=(e,t)=>!Object.is(e,t),lr=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Io=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Mo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ao=e=>{const t=je(e)?Number(e):NaN;return isNaN(t)?e:t};let Gi;const $s=()=>Gi||(Gi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Za="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",Xa=Vo(Za);function _r(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=je(r)?tf(r):_r(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(je(e)||Te(e))return e}const Ga=/;(?![^(]*\))/g,Qa=/:([^]+)/,ef=/\/\*[^]*?\*\//g;function tf(e){const t={};return e.replace(ef,"").split(Ga).forEach(n=>{if(n){const r=n.split(Qa);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function vt(e){let t="";if(je(e))t=e;else if(Q(e))for(let n=0;n<e.length;n++){const r=vt(e[n]);r&&(t+=r+" ")}else if(Te(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function nf(e){if(!e)return null;let{class:t,style:n}=e;return t&&!je(t)&&(e.class=vt(t)),n&&(e.style=_r(n)),e}const rf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",of=Vo(rf);function cc(e){return!!e||e===""}function sf(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Sn(e[r],t[r]);return n}function Sn(e,t){if(e===t)return!0;let n=Xi(e),r=Xi(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ar(e),r=ar(t),n||r)return e===t;if(n=Q(e),r=Q(t),n||r)return n&&r?sf(e,t):!1;if(n=Te(e),r=Te(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const c in e){const l=e.hasOwnProperty(c),d=t.hasOwnProperty(c);if(l&&!d||!l&&d||!Sn(e[c],t[c]))return!1}}return String(e)===String(t)}function Uo(e,t){return e.findIndex(n=>Sn(n,t))}const Ge=e=>je(e)?e:e==null?"":Q(e)||Te(e)&&(e.toString===ic||!fe(e.toString))?JSON.stringify(e,uc,2):String(e),uc=(e,t)=>t&&t.__v_isRef?uc(e,t.value):ir(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:Zn(t)?{[`Set(${t.size})`]:[...t.values()]}:Te(t)&&!Q(t)&&!lc(t)?String(t):t;let Et;class ai{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Et,!t&&Et&&(this.index=(Et.scopes||(Et.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Et;try{return Et=this,t()}finally{Et=n}}}on(){Et=this}off(){Et=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function fi(e){return new ai(e)}function ac(e,t=Et){t&&t.active&&t.effects.push(e)}function di(){return Et}function fc(e){Et&&Et.cleanups.push(e)}const pi=e=>{const t=new Set(e);return t.w=0,t.n=0,t},dc=e=>(e.w&Pn)>0,pc=e=>(e.n&Pn)>0,lf=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Pn},cf=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const s=t[r];dc(s)&&!pc(s)?s.delete(e):t[n++]=s,s.w&=~Pn,s.n&=~Pn}t.length=n}},To=new WeakMap;let Ir=0,Pn=1;const Fs=30;let jt;const jn=Symbol(""),Ls=Symbol("");class fr{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,ac(this,r)}run(){if(!this.active)return this.fn();let t=jt,n=xn;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=jt,jt=this,xn=!0,Pn=1<<++Ir,Ir<=Fs?lf(this):Qi(this),this.fn()}finally{Ir<=Fs&&cf(this),Pn=1<<--Ir,jt=this.parent,xn=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){jt===this?this.deferStop=!0:this.active&&(Qi(this),this.onStop&&this.onStop(),this.active=!1)}}function Qi(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function uf(e,t){e.effect instanceof fr&&(e=e.effect.fn);const n=new fr(e);t&&(Ne(n,t),t.scope&&ac(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function af(e){e.effect.stop()}let xn=!0;const hc=[];function br(){hc.push(xn),xn=!1}function wr(){const e=hc.pop();xn=e===void 0?!0:e}function bt(e,t,n){if(xn&&jt){let r=To.get(e);r||To.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=pi()),mc(s)}}function mc(e,t){let n=!1;Ir<=Fs?pc(e)||(e.n|=Pn,n=!dc(e)):n=!e.has(jt),n&&(e.add(jt),jt.deps.push(e))}function sn(e,t,n,r,s,i){const c=To.get(e);if(!c)return;let l=[];if(t==="clear")l=[...c.values()];else if(n==="length"&&Q(e)){const d=Number(r);c.forEach((o,u)=>{(u==="length"||!ar(u)&&u>=d)&&l.push(o)})}else switch(n!==void 0&&l.push(c.get(n)),t){case"add":Q(e)?ui(n)&&l.push(c.get("length")):(l.push(c.get(jn)),ir(e)&&l.push(c.get(Ls)));break;case"delete":Q(e)||(l.push(c.get(jn)),ir(e)&&l.push(c.get(Ls)));break;case"set":ir(e)&&l.push(c.get(jn));break}if(l.length===1)l[0]&&Bs(l[0]);else{const d=[];for(const o of l)o&&d.push(...o);Bs(pi(d))}}function Bs(e,t){const n=Q(e)?e:[...e];for(const r of n)r.computed&&el(r);for(const r of n)r.computed||el(r)}function el(e,t){(e!==jt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function ff(e,t){var n;return(n=To.get(e))==null?void 0:n.get(t)}const df=Vo("__proto__,__v_isRef,__isVue"),gc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ar)),tl=pf();function pf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=_e(this);for(let i=0,c=this.length;i<c;i++)bt(r,"get",i+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(_e)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){br();const r=_e(this)[t].apply(this,n);return wr(),r}}),e}function hf(e){const t=_e(this);return bt(t,"has",e),t.hasOwnProperty(e)}class vc{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const s=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw"&&r===(s?i?xc:Cc:i?wc:bc).get(t))return t;const c=Q(t);if(!s){if(c&&Ce(tl,n))return Reflect.get(tl,n,r);if(n==="hasOwnProperty")return hf}const l=Reflect.get(t,n,r);return(ar(n)?gc.has(n):df(n))||(s||bt(t,"get",n),i)?l:De(l)?c&&ui(n)?l:l.value:Te(l)?s?gi(l):Xt(l):l}}class yc extends vc{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(Un(i)&&De(i)&&!De(r))return!1;if(!this._shallow&&(!Wr(r)&&!Un(r)&&(i=_e(i),r=_e(r)),!Q(t)&&De(i)&&!De(r)))return i.value=r,!0;const c=Q(t)&&ui(n)?Number(n)<t.length:Ce(t,n),l=Reflect.set(t,n,r,s);return t===_e(s)&&(c?En(r,i)&&sn(t,"set",n,r):sn(t,"add",n,r)),l}deleteProperty(t,n){const r=Ce(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&sn(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!ar(n)||!gc.has(n))&&bt(t,"has",n),r}ownKeys(t){return bt(t,"iterate",Q(t)?"length":jn),Reflect.ownKeys(t)}}class _c extends vc{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const mf=new yc,gf=new _c,vf=new yc(!0),yf=new _c(!0),hi=e=>e,Wo=e=>Reflect.getPrototypeOf(e);function mo(e,t,n=!1,r=!1){e=e.__v_raw;const s=_e(e),i=_e(t);n||(En(t,i)&&bt(s,"get",t),bt(s,"get",i));const{has:c}=Wo(s),l=r?hi:n?yi:zr;if(c.call(s,t))return l(e.get(t));if(c.call(s,i))return l(e.get(i));e!==s&&e.get(t)}function go(e,t=!1){const n=this.__v_raw,r=_e(n),s=_e(e);return t||(En(e,s)&&bt(r,"has",e),bt(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function vo(e,t=!1){return e=e.__v_raw,!t&&bt(_e(e),"iterate",jn),Reflect.get(e,"size",e)}function nl(e){e=_e(e);const t=_e(this);return Wo(t).has.call(t,e)||(t.add(e),sn(t,"add",e,e)),this}function rl(e,t){t=_e(t);const n=_e(this),{has:r,get:s}=Wo(n);let i=r.call(n,e);i||(e=_e(e),i=r.call(n,e));const c=s.call(n,e);return n.set(e,t),i?En(t,c)&&sn(n,"set",e,t):sn(n,"add",e,t),this}function ol(e){const t=_e(this),{has:n,get:r}=Wo(t);let s=n.call(t,e);s||(e=_e(e),s=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return s&&sn(t,"delete",e,void 0),i}function sl(){const e=_e(this),t=e.size!==0,n=e.clear();return t&&sn(e,"clear",void 0,void 0),n}function yo(e,t){return function(r,s){const i=this,c=i.__v_raw,l=_e(c),d=t?hi:e?yi:zr;return!e&&bt(l,"iterate",jn),c.forEach((o,u)=>r.call(s,d(o),d(u),i))}}function _o(e,t,n){return function(...r){const s=this.__v_raw,i=_e(s),c=ir(i),l=e==="entries"||e===Symbol.iterator&&c,d=e==="keys"&&c,o=s[e](...r),u=n?hi:t?yi:zr;return!t&&bt(i,"iterate",d?Ls:jn),{next(){const{value:a,done:f}=o.next();return f?{value:a,done:f}:{value:l?[u(a[0]),u(a[1])]:u(a),done:f}},[Symbol.iterator](){return this}}}}function hn(e){return function(...t){return e==="delete"?!1:this}}function _f(){const e={get(i){return mo(this,i)},get size(){return vo(this)},has:go,add:nl,set:rl,delete:ol,clear:sl,forEach:yo(!1,!1)},t={get(i){return mo(this,i,!1,!0)},get size(){return vo(this)},has:go,add:nl,set:rl,delete:ol,clear:sl,forEach:yo(!1,!0)},n={get(i){return mo(this,i,!0)},get size(){return vo(this,!0)},has(i){return go.call(this,i,!0)},add:hn("add"),set:hn("set"),delete:hn("delete"),clear:hn("clear"),forEach:yo(!0,!1)},r={get(i){return mo(this,i,!0,!0)},get size(){return vo(this,!0)},has(i){return go.call(this,i,!0)},add:hn("add"),set:hn("set"),delete:hn("delete"),clear:hn("clear"),forEach:yo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=_o(i,!1,!1),n[i]=_o(i,!0,!1),t[i]=_o(i,!1,!0),r[i]=_o(i,!0,!0)}),[e,n,t,r]}const[bf,wf,Cf,xf]=_f();function zo(e,t){const n=t?e?xf:Cf:e?wf:bf;return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Ce(n,s)&&s in r?n:r,s,i)}const kf={get:zo(!1,!1)},Ef={get:zo(!1,!0)},Sf={get:zo(!0,!1)},Pf={get:zo(!0,!0)},bc=new WeakMap,wc=new WeakMap,Cc=new WeakMap,xc=new WeakMap;function Of(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Rf(e){return e.__v_skip||!Object.isExtensible(e)?0:Of(qa(e))}function Xt(e){return Un(e)?e:Ko(e,!1,mf,kf,bc)}function mi(e){return Ko(e,!1,vf,Ef,wc)}function gi(e){return Ko(e,!0,gf,Sf,Cc)}function If(e){return Ko(e,!0,yf,Pf,xc)}function Ko(e,t,n,r,s){if(!Te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const c=Rf(e);if(c===0)return e;const l=new Proxy(e,c===2?r:n);return s.set(e,l),l}function ln(e){return Un(e)?ln(e.__v_raw):!!(e&&e.__v_isReactive)}function Un(e){return!!(e&&e.__v_isReadonly)}function Wr(e){return!!(e&&e.__v_isShallow)}function vi(e){return ln(e)||Un(e)}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}function ro(e){return Io(e,"__v_skip",!0),e}const zr=e=>Te(e)?Xt(e):e,yi=e=>Te(e)?gi(e):e;function _i(e){xn&&jt&&(e=_e(e),mc(e.dep||(e.dep=pi())))}function qo(e,t){e=_e(e);const n=e.dep;n&&Bs(n)}function De(e){return!!(e&&e.__v_isRef===!0)}function Re(e){return kc(e,!1)}function oo(e){return kc(e,!0)}function kc(e,t){return De(e)?e:new Mf(e,t)}class Mf{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:_e(t),this._value=n?t:zr(t)}get value(){return _i(this),this._value}set value(t){const n=this.__v_isShallow||Wr(t)||Un(t);t=n?t:_e(t),En(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:zr(t),qo(this))}}function Af(e){qo(e)}function se(e){return De(e)?e.value:e}function Tf(e){return fe(e)?e():se(e)}const $f={get:(e,t,n)=>se(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return De(s)&&!De(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function bi(e){return ln(e)?e:new Proxy(e,$f)}class Ff{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>_i(this),()=>qo(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Lf(e){return new Ff(e)}function Ec(e){const t=Q(e)?new Array(e.length):{};for(const n in e)t[n]=Sc(e,n);return t}class Bf{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,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 ff(_e(this._object),this._key)}}class Nf{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function jf(e,t,n){return De(e)?e:fe(e)?new Nf(e):Te(e)&&arguments.length>1?Sc(e,t,n):Re(e)}function Sc(e,t,n){const r=e[t];return De(r)?r:new Bf(e,t,n)}class Df{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new fr(t,()=>{this._dirty||(this._dirty=!0,qo(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=_e(this);return _i(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Vf(e,t,n=!1){let r,s;const i=fe(e);return i?(r=e,s=Vt):(r=e.get,s=e.set),new Df(r,s,i||!s,n)}function Hf(e,...t){}function Uf(e,t){}function cn(e,t,n,r){let s;try{s=r?e(...r):e()}catch(i){Xn(i,t,n)}return s}function Pt(e,t,n,r){if(fe(e)){const i=cn(e,t,n,r);return i&&ci(i)&&i.catch(c=>{Xn(c,t,n)}),i}const s=[];for(let i=0;i<e.length;i++)s.push(Pt(e[i],t,n,r));return s}function Xn(e,t,n,r=!0){const s=t?t.vnode:null;if(t){let i=t.parent;const c=t.proxy,l=n;for(;i;){const o=i.ec;if(o){for(let u=0;u<o.length;u++)if(o[u](e,c,l)===!1)return}i=i.parent}const d=t.appContext.config.errorHandler;if(d){cn(d,null,10,[e,c,l]);return}}Wf(e,n,s,r)}function Wf(e,t,n,r=!0){console.error(e)}let Kr=!1,Ns=!1;const at=[];let Kt=0;const cr=[];let rn=null,Fn=0;const Pc=Promise.resolve();let wi=null;function Jt(e){const t=wi||Pc;return e?t.then(this?e.bind(this):e):t}function zf(e){let t=Kt+1,n=at.length;for(;t<n;){const r=t+n>>>1,s=at[r],i=qr(s);i<e||i===e&&s.pre?t=r+1:n=r}return t}function Jo(e){(!at.length||!at.includes(e,Kr&&e.allowRecurse?Kt+1:Kt))&&(e.id==null?at.push(e):at.splice(zf(e.id),0,e),Oc())}function Oc(){!Kr&&!Ns&&(Ns=!0,wi=Pc.then(Rc))}function Kf(e){const t=at.indexOf(e);t>Kt&&at.splice(t,1)}function $o(e){Q(e)?cr.push(...e):(!rn||!rn.includes(e,e.allowRecurse?Fn+1:Fn))&&cr.push(e),Oc()}function il(e,t=Kr?Kt+1:0){for(;t<at.length;t++){const n=at[t];n&&n.pre&&(at.splice(t,1),t--,n())}}function Fo(e){if(cr.length){const t=[...new Set(cr)];if(cr.length=0,rn){rn.push(...t);return}for(rn=t,rn.sort((n,r)=>qr(n)-qr(r)),Fn=0;Fn<rn.length;Fn++)rn[Fn]();rn=null,Fn=0}}const qr=e=>e.id==null?1/0:e.id,qf=(e,t)=>{const n=qr(e)-qr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Rc(e){Ns=!1,Kr=!0,at.sort(qf);const t=Vt;try{for(Kt=0;Kt<at.length;Kt++){const n=at[Kt];n&&n.active!==!1&&cn(n,null,14)}}finally{Kt=0,at.length=0,Fo(),Kr=!1,wi=null,(at.length||cr.length)&&Rc()}}let rr,bo=[];function Ic(e,t){var n,r;rr=e,rr?(rr.enabled=!0,bo.forEach(({event:s,args:i})=>rr.emit(s,...i)),bo=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{Ic(i,t)}),setTimeout(()=>{rr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,bo=[])},3e3)):bo=[]}function Jf(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ae;let s=n;const i=t.startsWith("update:"),c=i&&t.slice(7);if(c&&c in r){const u=`${c==="modelValue"?"model":c}Modifiers`,{number:a,trim:f}=r[u]||Ae;f&&(s=n.map(p=>je(p)?p.trim():p)),a&&(s=n.map(Mo))}let l,d=r[l=$r(t)]||r[l=$r(_t(t))];!d&&i&&(d=r[l=$r(At(t))]),d&&Pt(d,e,6,s);const o=r[l+"Once"];if(o){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Pt(o,e,6,s)}}function Mc(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let c={},l=!1;if(!fe(e)){const d=o=>{const u=Mc(o,t,!0);u&&(l=!0,Ne(c,u))};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!i&&!l?(Te(e)&&r.set(e,null),null):(Q(i)?i.forEach(d=>c[d]=null):Ne(c,i),Te(e)&&r.set(e,c),c)}function Yo(e,t){return!e||!to(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ce(e,t[0].toLowerCase()+t.slice(1))||Ce(e,At(t))||Ce(e,t))}let nt=null,Zo=null;function Jr(e){const t=nt;return nt=e,Zo=e&&e.type.__scopeId||null,t}function Cr(e){Zo=e}function xr(){Zo=null}const Yf=e=>Gn;function Gn(e,t=nt,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&zs(-1);const i=Jr(t);let c;try{c=e(...s)}finally{Jr(i),r._d&&zs(1)}return c};return r._n=!0,r._c=!0,r._d=!0,r}function Po(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:i,propsOptions:[c],slots:l,attrs:d,emit:o,render:u,renderCache:a,data:f,setupState:p,ctx:g,inheritAttrs:v}=e;let C,y;const _=Jr(e);try{if(n.shapeFlag&4){const h=s||r;C=St(u.call(h,h,a,i,p,f,g)),y=d}else{const h=t;C=St(h.length>1?h(i,{attrs:d,slots:l,emit:o}):h(i,null)),y=t.props?d:Xf(d)}}catch(h){Nr.length=0,Xn(h,e,1),C=ue(ft)}let m=C;if(y&&v!==!1){const h=Object.keys(y),{shapeFlag:b}=m;h.length&&b&7&&(c&&h.some(ii)&&(y=Gf(y,c)),m=Zt(m,y))}return n.dirs&&(m=Zt(m),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&(m.transition=n.transition),C=m,Jr(_),C}function Zf(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(Rn(r)){if(r.type!==ft||r.children==="v-if"){if(t)return;t=r}}else return}return t}const Xf=e=>{let t;for(const n in e)(n==="class"||n==="style"||to(n))&&((t||(t={}))[n]=e[n]);return t},Gf=(e,t)=>{const n={};for(const r in e)(!ii(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Qf(e,t,n){const{props:r,children:s,component:i}=e,{props:c,children:l,patchFlag:d}=t,o=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&d>=0){if(d&1024)return!0;if(d&16)return r?ll(r,c,o):!!c;if(d&8){const u=t.dynamicProps;for(let a=0;a<u.length;a++){const f=u[a];if(c[f]!==r[f]&&!Yo(o,f))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:r===c?!1:r?c?ll(r,c,o):!0:!!c;return!1}function ll(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!Yo(n,i))return!0}return!1}function Ci({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const xi="components",ed="directives";function td(e,t){return ki(xi,e,!0,t)||e}const Ac=Symbol.for("v-ndc");function Xo(e){return je(e)?ki(xi,e,!1)||e:e||Ac}function nd(e){return ki(ed,e)}function ki(e,t,n=!0,r=!1){const s=nt||Ze;if(s){const i=s.type;if(e===xi){const l=Js(i,!1);if(l&&(l===t||l===_t(t)||l===no(_t(t))))return i}const c=cl(s[e]||i[e],t)||cl(s.appContext[e],t);return!c&&r?i:c}}function cl(e,t){return e&&(e[t]||e[_t(t)]||e[no(_t(t))])}const Tc=e=>e.__isSuspense,rd={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,i,c,l,d,o){e==null?sd(t,n,r,s,i,c,l,d,o):id(e,t,n,r,s,c,l,d,o)},hydrate:ld,create:Ei,normalize:cd},od=rd;function Yr(e,t){const n=e.props&&e.props[t];fe(n)&&n()}function sd(e,t,n,r,s,i,c,l,d){const{p:o,o:{createElement:u}}=d,a=u("div"),f=e.suspense=Ei(e,s,r,t,a,n,i,c,l,d);o(null,f.pendingBranch=e.ssContent,a,null,r,f,i,c),f.deps>0?(Yr(e,"onPending"),Yr(e,"onFallback"),o(null,e.ssFallback,t,n,r,null,i,c),ur(f,e.ssFallback)):f.resolve(!1,!0)}function id(e,t,n,r,s,i,c,l,{p:d,um:o,o:{createElement:u}}){const a=t.suspense=e.suspense;a.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:g,pendingBranch:v,isInFallback:C,isHydrating:y}=a;if(v)a.pendingBranch=f,Dt(f,v)?(d(v,f,a.hiddenContainer,null,s,a,i,c,l),a.deps<=0?a.resolve():C&&(d(g,p,n,r,s,null,i,c,l),ur(a,p))):(a.pendingId++,y?(a.isHydrating=!1,a.activeBranch=v):o(v,s,a),a.deps=0,a.effects.length=0,a.hiddenContainer=u("div"),C?(d(null,f,a.hiddenContainer,null,s,a,i,c,l),a.deps<=0?a.resolve():(d(g,p,n,r,s,null,i,c,l),ur(a,p))):g&&Dt(f,g)?(d(g,f,n,r,s,a,i,c,l),a.resolve(!0)):(d(null,f,a.hiddenContainer,null,s,a,i,c,l),a.deps<=0&&a.resolve()));else if(g&&Dt(f,g))d(g,f,n,r,s,a,i,c,l),ur(a,f);else if(Yr(t,"onPending"),a.pendingBranch=f,a.pendingId++,d(null,f,a.hiddenContainer,null,s,a,i,c,l),a.deps<=0)a.resolve();else{const{timeout:_,pendingId:m}=a;_>0?setTimeout(()=>{a.pendingId===m&&a.fallback(p)},_):_===0&&a.fallback(p)}}function Ei(e,t,n,r,s,i,c,l,d,o,u=!1){const{p:a,m:f,um:p,n:g,o:{parentNode:v,remove:C}}=o;let y;const _=ud(e);_&&t!=null&&t.pendingBranch&&(y=t.pendingId,t.deps++);const m=e.props?Ao(e.props.timeout):void 0,h={vnode:e,parent:t,parentComponent:n,isSVG:c,container:r,hiddenContainer:s,anchor:i,deps:0,pendingId:0,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(b=!1,O=!1){const{vnode:P,activeBranch:x,pendingBranch:E,pendingId:I,effects:M,parentComponent:A,container:L}=h;let q=!1;if(h.isHydrating)h.isHydrating=!1;else if(!b){q=x&&E.transition&&E.transition.mode==="out-in",q&&(x.transition.afterLeave=()=>{I===h.pendingId&&(f(E,L,K,0),$o(M))});let{anchor:K}=h;x&&(K=g(x),p(x,A,h,!0)),q||f(E,L,K,0)}ur(h,E),h.pendingBranch=null,h.isInFallback=!1;let Z=h.parent,T=!1;for(;Z;){if(Z.pendingBranch){Z.effects.push(...M),T=!0;break}Z=Z.parent}!T&&!q&&$o(M),h.effects=[],_&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!O&&t.resolve()),Yr(P,"onResolve")},fallback(b){if(!h.pendingBranch)return;const{vnode:O,activeBranch:P,parentComponent:x,container:E,isSVG:I}=h;Yr(O,"onFallback");const M=g(P),A=()=>{h.isInFallback&&(a(null,b,E,M,x,null,I,l,d),ur(h,b))},L=b.transition&&b.transition.mode==="out-in";L&&(P.transition.afterLeave=A),h.isInFallback=!0,p(P,x,null,!0),L||A()},move(b,O,P){h.activeBranch&&f(h.activeBranch,b,O,P),h.container=b},next(){return h.activeBranch&&g(h.activeBranch)},registerDep(b,O){const P=!!h.pendingBranch;P&&h.deps++;const x=b.vnode.el;b.asyncDep.catch(E=>{Xn(E,b,0)}).then(E=>{if(b.isUnmounted||h.isUnmounted||h.pendingId!==b.suspenseId)return;b.asyncResolved=!0;const{vnode:I}=b;Ks(b,E,!1),x&&(I.el=x);const M=!x&&b.subTree.el;O(b,I,v(x||b.subTree.el),x?null:g(b.subTree),h,c,d),M&&C(M),Ci(b,I.el),P&&--h.deps===0&&h.resolve()})},unmount(b,O){h.isUnmounted=!0,h.activeBranch&&p(h.activeBranch,n,b,O),h.pendingBranch&&p(h.pendingBranch,n,b,O)}};return h}function ld(e,t,n,r,s,i,c,l,d){const o=t.suspense=Ei(t,r,n,e.parentNode,document.createElement("div"),null,s,i,c,l,!0),u=d(e,o.pendingBranch=t.ssContent,n,o,i,c);return o.deps===0&&o.resolve(!1,!0),u}function cd(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=ul(r?n.default:n),e.ssFallback=r?ul(n.fallback):ue(ft)}function ul(e){let t;if(fe(e)){const n=qn&&e._c;n&&(e._d=!1,G()),e=e(),n&&(e._d=!0,t=yt,uu())}return Q(e)&&(e=Zf(e)),e=St(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function $c(e,t){t&&t.pendingBranch?Q(e)?t.effects.push(...e):t.effects.push(e):$o(e)}function ur(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,s=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=s,Ci(r,s))}function ud(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function Yt(e,t){return so(e,null,t)}function Fc(e,t){return so(e,null,{flush:"post"})}function ad(e,t){return so(e,null,{flush:"sync"})}const wo={};function un(e,t,n){return so(e,t,n)}function so(e,t,{immediate:n,deep:r,flush:s,onTrack:i,onTrigger:c}=Ae){var l;const d=di()===((l=Ze)==null?void 0:l.scope)?Ze:null;let o,u=!1,a=!1;if(De(e)?(o=()=>e.value,u=Wr(e)):ln(e)?(o=()=>e,r=!0):Q(e)?(a=!0,u=e.some(h=>ln(h)||Wr(h)),o=()=>e.map(h=>{if(De(h))return h.value;if(ln(h))return Bn(h);if(fe(h))return cn(h,d,2)})):fe(e)?t?o=()=>cn(e,d,2):o=()=>{if(!(d&&d.isUnmounted))return f&&f(),Pt(e,d,3,[p])}:o=Vt,t&&r){const h=o;o=()=>Bn(h())}let f,p=h=>{f=_.onStop=()=>{cn(h,d,4)}},g;if(pr)if(p=Vt,t?n&&Pt(t,d,3,[o(),a?[]:void 0,p]):o(),s==="sync"){const h=bu();g=h.__watcherHandles||(h.__watcherHandles=[])}else return Vt;let v=a?new Array(e.length).fill(wo):wo;const C=()=>{if(_.active)if(t){const h=_.run();(r||u||(a?h.some((b,O)=>En(b,v[O])):En(h,v)))&&(f&&f(),Pt(t,d,3,[h,v===wo?void 0:a&&v[0]===wo?[]:v,p]),v=h)}else _.run()};C.allowRecurse=!!t;let y;s==="sync"?y=C:s==="post"?y=()=>rt(C,d&&d.suspense):(C.pre=!0,d&&(C.id=d.uid),y=()=>Jo(C));const _=new fr(o,y);t?n?C():v=_.run():s==="post"?rt(_.run.bind(_),d&&d.suspense):_.run();const m=()=>{_.stop(),d&&d.scope&&li(d.scope.effects,_)};return g&&g.push(m),m}function fd(e,t,n){const r=this.proxy,s=je(e)?e.includes(".")?Lc(r,e):()=>r[e]:e.bind(r,r);let i;fe(t)?i=t:(i=t.handler,n=t);const c=Ze;In(this);const l=so(s,i.bind(r),n);return c?In(c):kn(),l}function Lc(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function Bn(e,t){if(!Te(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),De(e))Bn(e.value,t);else if(Q(e))for(let n=0;n<e.length;n++)Bn(e[n],t);else if(Zn(e)||ir(e))e.forEach(n=>{Bn(n,t)});else if(lc(e))for(const n in e)Bn(e[n],t);return e}function Wn(e,t){const n=nt;if(n===null)return e;const r=os(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[c,l,d,o=Ae]=t[i];c&&(fe(c)&&(c={mounted:c,updated:c}),c.deep&&Bn(l),s.push({dir:c,instance:r,value:l,oldValue:void 0,arg:d,modifiers:o}))}return e}function zt(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let c=0;c<s.length;c++){const l=s[c];i&&(l.oldValue=i[c].value);let d=l.dir[r];d&&(br(),Pt(d,n,8,[e.el,l,e,t]),wr())}}const bn=Symbol("_leaveCb"),Co=Symbol("_enterCb");function Si(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Tt(()=>{e.isMounted=!0}),ts(()=>{e.isUnmounting=!0}),e}const Mt=[Function,Array],Pi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Mt,onEnter:Mt,onAfterEnter:Mt,onEnterCancelled:Mt,onBeforeLeave:Mt,onLeave:Mt,onAfterLeave:Mt,onLeaveCancelled:Mt,onBeforeAppear:Mt,onAppear:Mt,onAfterAppear:Mt,onAppearCancelled:Mt},dd={name:"BaseTransition",props:Pi,setup(e,{slots:t}){const n=dn(),r=Si();let s;return()=>{const i=t.default&&Go(t.default(),!0);if(!i||!i.length)return;let c=i[0];if(i.length>1){for(const v of i)if(v.type!==ft){c=v;break}}const l=_e(e),{mode:d}=l;if(r.isLeaving)return xs(c);const o=al(c);if(!o)return xs(c);const u=dr(o,l,r,n);zn(o,u);const a=n.subTree,f=a&&al(a);let p=!1;const{getTransitionKey:g}=o.type;if(g){const v=g();s===void 0?s=v:v!==s&&(s=v,p=!0)}if(f&&f.type!==ft&&(!Dt(o,f)||p)){const v=dr(f,l,r,n);if(zn(f,v),d==="out-in")return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},xs(c);d==="in-out"&&o.type!==ft&&(v.delayLeave=(C,y,_)=>{const m=Nc(r,f);m[String(f.key)]=f,C[bn]=()=>{y(),C[bn]=void 0,delete u.delayedLeave},u.delayedLeave=_})}return c}}},Bc=dd;function Nc(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function dr(e,t,n,r){const{appear:s,mode:i,persisted:c=!1,onBeforeEnter:l,onEnter:d,onAfterEnter:o,onEnterCancelled:u,onBeforeLeave:a,onLeave:f,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:v,onAppear:C,onAfterAppear:y,onAppearCancelled:_}=t,m=String(e.key),h=Nc(n,e),b=(x,E)=>{x&&Pt(x,r,9,E)},O=(x,E)=>{const I=E[1];b(x,E),Q(x)?x.every(M=>M.length<=1)&&I():x.length<=1&&I()},P={mode:i,persisted:c,beforeEnter(x){let E=l;if(!n.isMounted)if(s)E=v||l;else return;x[bn]&&x[bn](!0);const I=h[m];I&&Dt(e,I)&&I.el[bn]&&I.el[bn](),b(E,[x])},enter(x){let E=d,I=o,M=u;if(!n.isMounted)if(s)E=C||d,I=y||o,M=_||u;else return;let A=!1;const L=x[Co]=q=>{A||(A=!0,q?b(M,[x]):b(I,[x]),P.delayedLeave&&P.delayedLeave(),x[Co]=void 0)};E?O(E,[x,L]):L()},leave(x,E){const I=String(e.key);if(x[Co]&&x[Co](!0),n.isUnmounting)return E();b(a,[x]);let M=!1;const A=x[bn]=L=>{M||(M=!0,E(),L?b(g,[x]):b(p,[x]),x[bn]=void 0,h[I]===e&&delete h[I])};h[I]=e,f?O(f,[x,A]):A()},clone(x){return dr(x,t,n,r)}};return P}function xs(e){if(io(e))return e=Zt(e),e.children=null,e}function al(e){return io(e)?e.children?e.children[0]:void 0:e}function zn(e,t){e.shapeFlag&6&&e.component?zn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Go(e,t=!1,n){let r=[],s=0;for(let i=0;i<e.length;i++){let c=e[i];const l=n==null?c.key:String(n)+String(c.key!=null?c.key:i);c.type===Ee?(c.patchFlag&128&&s++,r=r.concat(Go(c.children,t,l))):(t||c.type!==ft)&&r.push(l!=null?Zt(c,{key:l}):c)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function Le(e,t){return fe(e)?(()=>Ne({name:e.name},t,{setup:e}))():e}const Dn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function jc(e){fe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,timeout:i,suspensible:c=!0,onError:l}=e;let d=null,o,u=0;const a=()=>(u++,d=null,f()),f=()=>{let p;return d||(p=d=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((v,C)=>{l(g,()=>v(a()),()=>C(g),u+1)});throw g}).then(g=>p!==d&&d?d:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),o=g,g)))};return Le({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return o},setup(){const p=Ze;if(o)return()=>ks(o,p);const g=_=>{d=null,Xn(_,p,13,!r)};if(c&&p.suspense||pr)return f().then(_=>()=>ks(_,p)).catch(_=>(g(_),()=>r?ue(r,{error:_}):null));const v=Re(!1),C=Re(),y=Re(!!s);return s&&setTimeout(()=>{y.value=!1},s),i!=null&&setTimeout(()=>{if(!v.value&&!C.value){const _=new Error(`Async component timed out after ${i}ms.`);g(_),C.value=_}},i),f().then(()=>{v.value=!0,p.parent&&io(p.parent.vnode)&&Jo(p.parent.update)}).catch(_=>{g(_),C.value=_}),()=>{if(v.value&&o)return ks(o,p);if(C.value&&r)return ue(r,{error:C.value});if(n&&!y.value)return ue(n)}}})}function ks(e,t){const{ref:n,props:r,children:s,ce:i}=t.vnode,c=ue(e,r,s);return c.ref=n,c.ce=i,delete t.vnode.ce,c}const io=e=>e.type.__isKeepAlive,pd={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=dn(),r=n.ctx;if(!r.renderer)return()=>{const _=t.default&&t.default();return _&&_.length===1?_[0]:_};const s=new Map,i=new Set;let c=null;const l=n.suspense,{renderer:{p:d,m:o,um:u,o:{createElement:a}}}=r,f=a("div");r.activate=(_,m,h,b,O)=>{const P=_.component;o(_,m,h,0,l),d(P.vnode,_,m,h,P,l,b,_.slotScopeIds,O),rt(()=>{P.isDeactivated=!1,P.a&&lr(P.a);const x=_.props&&_.props.onVnodeMounted;x&&gt(x,P.parent,_)},l)},r.deactivate=_=>{const m=_.component;o(_,f,null,1,l),rt(()=>{m.da&&lr(m.da);const h=_.props&&_.props.onVnodeUnmounted;h&&gt(h,m.parent,_),m.isDeactivated=!0},l)};function p(_){Es(_),u(_,n,l,!0)}function g(_){s.forEach((m,h)=>{const b=Js(m.type);b&&(!_||!_(b))&&v(h)})}function v(_){const m=s.get(_);!c||!Dt(m,c)?p(m):c&&Es(c),s.delete(_),i.delete(_)}un(()=>[e.include,e.exclude],([_,m])=>{_&&g(h=>Mr(_,h)),m&&g(h=>!Mr(m,h))},{flush:"post",deep:!0});let C=null;const y=()=>{C!=null&&s.set(C,Ss(n.subTree))};return Tt(y),es(y),ts(()=>{s.forEach(_=>{const{subTree:m,suspense:h}=n,b=Ss(m);if(_.type===b.type&&_.key===b.key){Es(b);const O=b.component.da;O&&rt(O,h);return}p(_)})}),()=>{if(C=null,!t.default)return null;const _=t.default(),m=_[0];if(_.length>1)return c=null,_;if(!Rn(m)||!(m.shapeFlag&4)&&!(m.shapeFlag&128))return c=null,m;let h=Ss(m);const b=h.type,O=Js(Dn(h)?h.type.__asyncResolved||{}:b),{include:P,exclude:x,max:E}=e;if(P&&(!O||!Mr(P,O))||x&&O&&Mr(x,O))return c=h,m;const I=h.key==null?b:h.key,M=s.get(I);return h.el&&(h=Zt(h),m.shapeFlag&128&&(m.ssContent=h)),C=I,M?(h.el=M.el,h.component=M.component,h.transition&&zn(h,h.transition),h.shapeFlag|=512,i.delete(I),i.add(I)):(i.add(I),E&&i.size>parseInt(E,10)&&v(i.values().next().value)),h.shapeFlag|=256,c=h,Tc(m.type)?m:h}}},hd=pd;function Mr(e,t){return Q(e)?e.some(n=>Mr(n,t)):je(e)?e.split(",").includes(t):Ka(e)?e.test(t):!1}function Dc(e,t){Hc(e,"a",t)}function Vc(e,t){Hc(e,"da",t)}function Hc(e,t,n=Ze){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Qo(t,r,n),n){let s=n.parent;for(;s&&s.parent;)io(s.parent.vnode)&&md(r,t,n,s),s=s.parent}}function md(e,t,n,r){const s=Qo(t,e,r,!0);On(()=>{li(r[t],s)},n)}function Es(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ss(e){return e.shapeFlag&128?e.ssContent:e}function Qo(e,t,n=Ze,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...c)=>{if(n.isUnmounted)return;br(),In(n);const l=Pt(t,n,e,c);return kn(),wr(),l});return r?s.unshift(i):s.push(i),i}}const fn=e=>(t,n=Ze)=>(!pr||e==="sp")&&Qo(e,(...r)=>t(...r),n),Uc=fn("bm"),Tt=fn("m"),Oi=fn("bu"),es=fn("u"),ts=fn("bum"),On=fn("um"),Wc=fn("sp"),zc=fn("rtg"),Kc=fn("rtc");function qc(e,t=Ze){Qo("ec",e,t)}function ns(e,t,n,r){let s;const i=n&&n[r];if(Q(e)||je(e)){s=new Array(e.length);for(let c=0,l=e.length;c<l;c++)s[c]=t(e[c],c,void 0,i&&i[c])}else if(typeof e=="number"){s=new Array(e);for(let c=0;c<e;c++)s[c]=t(c+1,c,void 0,i&&i[c])}else if(Te(e))if(e[Symbol.iterator])s=Array.from(e,(c,l)=>t(c,l,void 0,i&&i[l]));else{const c=Object.keys(e);s=new Array(c.length);for(let l=0,d=c.length;l<d;l++){const o=c[l];s[l]=t(e[o],o,l,i&&i[l])}}else s=[];return n&&(n[r]=s),s}function gd(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Q(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.key?(...s)=>{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return e}function lo(e,t,n={},r,s){if(nt.isCE||nt.parent&&Dn(nt.parent)&&nt.parent.isCE)return t!=="default"&&(n.name=t),ue("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),G();const c=i&&Jc(i(n)),l=st(Ee,{key:n.key||c&&c.key||`_${t}`},c||(r?r():[]),c&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Jc(e){return e.some(t=>Rn(t)?!(t.type===ft||t.type===Ee&&!Jc(t.children)):!0)?e:null}function vd(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:$r(r)]=e[r];return n}const js=e=>e?mu(e)?os(e)||e.proxy:js(e.parent):null,Fr=Ne(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=>js(e.parent),$root:e=>js(e.root),$emit:e=>e.emit,$options:e=>Ri(e),$forceUpdate:e=>e.f||(e.f=()=>Jo(e.update)),$nextTick:e=>e.n||(e.n=Jt.bind(e.proxy)),$watch:e=>fd.bind(e)}),Ps=(e,t)=>e!==Ae&&!e.__isScriptSetup&&Ce(e,t),Ds={get({_:e},t){const{ctx:n,setupState:r,data:s,props:i,accessCache:c,type:l,appContext:d}=e;let o;if(t[0]!=="$"){const p=c[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Ps(r,t))return c[t]=1,r[t];if(s!==Ae&&Ce(s,t))return c[t]=2,s[t];if((o=e.propsOptions[0])&&Ce(o,t))return c[t]=3,i[t];if(n!==Ae&&Ce(n,t))return c[t]=4,n[t];Vs&&(c[t]=0)}}const u=Fr[t];let a,f;if(u)return t==="$attrs"&&bt(e,"get",t),u(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(n!==Ae&&Ce(n,t))return c[t]=4,n[t];if(f=d.config.globalProperties,Ce(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return Ps(s,t)?(s[t]=n,!0):r!==Ae&&Ce(r,t)?(r[t]=n,!0):Ce(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},c){let l;return!!n[c]||e!==Ae&&Ce(e,c)||Ps(t,c)||(l=i[0])&&Ce(l,c)||Ce(r,c)||Ce(Fr,c)||Ce(s.config.globalProperties,c)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ce(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},yd=Ne({},Ds,{get(e,t){if(t!==Symbol.unscopables)return Ds.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Xa(t)}});function _d(){return null}function bd(){return null}function wd(e){}function Cd(e){}function xd(){return null}function kd(){}function Ed(e,t){return null}function Sd(){return Yc().slots}function Pd(){return Yc().attrs}function Od(e,t,n){const r=dn();if(n&&n.local){const s=Re(e[t]);return un(()=>e[t],i=>s.value=i),un(s,i=>{i!==e[t]&&r.emit(`update:${t}`,i)}),s}else return{__v_isRef:!0,get value(){return e[t]},set value(s){r.emit(`update:${t}`,s)}}}function Yc(){const e=dn();return e.setupContext||(e.setupContext=yu(e))}function Zr(e){return Q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Rd(e,t){const n=Zr(e);for(const r in t){if(r.startsWith("__skip"))continue;let s=n[r];s?Q(s)||fe(s)?s=n[r]={type:s,default:t[r]}:s.default=t[r]:s===null&&(s=n[r]={default:t[r]}),s&&t[`__skip_${r}`]&&(s.skipFactory=!0)}return n}function Id(e,t){return!e||!t?e||t:Q(e)&&Q(t)?e.concat(t):Ne({},Zr(e),Zr(t))}function Md(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Ad(e){const t=dn();let n=e();return kn(),ci(n)&&(n=n.catch(r=>{throw In(t),r})),[n,()=>In(t)]}let Vs=!0;function Td(e){const t=Ri(e),n=e.proxy,r=e.ctx;Vs=!1,t.beforeCreate&&fl(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:c,watch:l,provide:d,inject:o,created:u,beforeMount:a,mounted:f,beforeUpdate:p,updated:g,activated:v,deactivated:C,beforeDestroy:y,beforeUnmount:_,destroyed:m,unmounted:h,render:b,renderTracked:O,renderTriggered:P,errorCaptured:x,serverPrefetch:E,expose:I,inheritAttrs:M,components:A,directives:L,filters:q}=t;if(o&&$d(o,r,null),c)for(const K in c){const J=c[K];fe(J)&&(r[K]=J.bind(n))}if(s){const K=s.call(n,n);Te(K)&&(e.data=Xt(K))}if(Vs=!0,i)for(const K in i){const J=i[K],$e=fe(J)?J.bind(n,n):fe(J.get)?J.get.bind(n,n):Vt,We=!fe(J)&&fe(J.set)?J.set.bind(n):Vt,Xe=Se({get:$e,set:We});Object.defineProperty(r,K,{enumerable:!0,configurable:!0,get:()=>Xe.value,set:Fe=>Xe.value=Fe})}if(l)for(const K in l)Zc(l[K],r,n,K);if(d){const K=fe(d)?d.call(n):d;Reflect.ownKeys(K).forEach(J=>{Lr(J,K[J])})}u&&fl(u,e,"c");function T(K,J){Q(J)?J.forEach($e=>K($e.bind(n))):J&&K(J.bind(n))}if(T(Uc,a),T(Tt,f),T(Oi,p),T(es,g),T(Dc,v),T(Vc,C),T(qc,x),T(Kc,O),T(zc,P),T(ts,_),T(On,h),T(Wc,E),Q(I))if(I.length){const K=e.exposed||(e.exposed={});I.forEach(J=>{Object.defineProperty(K,J,{get:()=>n[J],set:$e=>n[J]=$e})})}else e.exposed||(e.exposed={});b&&e.render===Vt&&(e.render=b),M!=null&&(e.inheritAttrs=M),A&&(e.components=A),L&&(e.directives=L)}function $d(e,t,n=Vt){Q(e)&&(e=Hs(e));for(const r in e){const s=e[r];let i;Te(s)?"default"in s?i=$t(s.from||r,s.default,!0):i=$t(s.from||r):i=$t(s),De(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:c=>i.value=c}):t[r]=i}}function fl(e,t,n){Pt(Q(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Zc(e,t,n,r){const s=r.includes(".")?Lc(n,r):()=>n[r];if(je(e)){const i=t[e];fe(i)&&un(s,i)}else if(fe(e))un(s,e.bind(n));else if(Te(e))if(Q(e))e.forEach(i=>Zc(i,t,n,r));else{const i=fe(e.handler)?e.handler.bind(n):t[e.handler];fe(i)&&un(s,i,e)}}function Ri(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:c}}=e.appContext,l=i.get(t);let d;return l?d=l:!s.length&&!n&&!r?d=t:(d={},s.length&&s.forEach(o=>Lo(d,o,c,!0)),Lo(d,t,c)),Te(t)&&i.set(t,d),d}function Lo(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Lo(e,i,n,!0),s&&s.forEach(c=>Lo(e,c,n,!0));for(const c in t)if(!(r&&c==="expose")){const l=Fd[c]||n&&n[c];e[c]=l?l(e[c],t[c]):t[c]}return e}const Fd={data:dl,props:pl,emits:pl,methods:Ar,computed:Ar,beforeCreate:pt,created:pt,beforeMount:pt,mounted:pt,beforeUpdate:pt,updated:pt,beforeDestroy:pt,beforeUnmount:pt,destroyed:pt,unmounted:pt,activated:pt,deactivated:pt,errorCaptured:pt,serverPrefetch:pt,components:Ar,directives:Ar,watch:Bd,provide:dl,inject:Ld};function dl(e,t){return t?e?function(){return Ne(fe(e)?e.call(this,this):e,fe(t)?t.call(this,this):t)}:t:e}function Ld(e,t){return Ar(Hs(e),Hs(t))}function Hs(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function pt(e,t){return e?[...new Set([].concat(e,t))]:t}function Ar(e,t){return e?Ne(Object.create(null),e,t):t}function pl(e,t){return e?Q(e)&&Q(t)?[...new Set([...e,...t])]:Ne(Object.create(null),Zr(e),Zr(t??{})):t}function Bd(e,t){if(!e)return t;if(!t)return e;const n=Ne(Object.create(null),e);for(const r in t)n[r]=pt(e[r],t[r]);return n}function Xc(){return{app:null,config:{isNativeTag:Ua,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 Nd=0;function jd(e,t){return function(r,s=null){fe(r)||(r=Ne({},r)),s!=null&&!Te(s)&&(s=null);const i=Xc(),c=new WeakSet;let l=!1;const d=i.app={_uid:Nd++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Cu,get config(){return i.config},set config(o){},use(o,...u){return c.has(o)||(o&&fe(o.install)?(c.add(o),o.install(d,...u)):fe(o)&&(c.add(o),o(d,...u))),d},mixin(o){return i.mixins.includes(o)||i.mixins.push(o),d},component(o,u){return u?(i.components[o]=u,d):i.components[o]},directive(o,u){return u?(i.directives[o]=u,d):i.directives[o]},mount(o,u,a){if(!l){const f=ue(r,s);return f.appContext=i,u&&t?t(f,o):e(f,o,a),l=!0,d._container=o,o.__vue_app__=d,os(f.component)||f.component.proxy}},unmount(){l&&(e(null,d._container),delete d._container.__vue_app__)},provide(o,u){return i.provides[o]=u,d},runWithContext(o){Xr=d;try{return o()}finally{Xr=null}}};return d}}let Xr=null;function Lr(e,t){if(Ze){let n=Ze.provides;const r=Ze.parent&&Ze.parent.provides;r===n&&(n=Ze.provides=Object.create(r)),n[e]=t}}function $t(e,t,n=!1){const r=Ze||nt;if(r||Xr){const s=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Xr._context.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&fe(t)?t.call(r&&r.proxy):t}}function Gc(){return!!(Ze||nt||Xr)}function Dd(e,t,n,r=!1){const s={},i={};Io(i,rs,1),e.propsDefaults=Object.create(null),Qc(e,t,s,i);for(const c in e.propsOptions[0])c in s||(s[c]=void 0);n?e.props=r?s:mi(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Vd(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:c}}=e,l=_e(s),[d]=e.propsOptions;let o=!1;if((r||c>0)&&!(c&16)){if(c&8){const u=e.vnode.dynamicProps;for(let a=0;a<u.length;a++){let f=u[a];if(Yo(e.emitsOptions,f))continue;const p=t[f];if(d)if(Ce(i,f))p!==i[f]&&(i[f]=p,o=!0);else{const g=_t(f);s[g]=Us(d,l,g,p,e,!1)}else p!==i[f]&&(i[f]=p,o=!0)}}}else{Qc(e,t,s,i)&&(o=!0);let u;for(const a in l)(!t||!Ce(t,a)&&((u=At(a))===a||!Ce(t,u)))&&(d?n&&(n[a]!==void 0||n[u]!==void 0)&&(s[a]=Us(d,l,a,void 0,e,!0)):delete s[a]);if(i!==l)for(const a in i)(!t||!Ce(t,a))&&(delete i[a],o=!0)}o&&sn(e,"set","$attrs")}function Qc(e,t,n,r){const[s,i]=e.propsOptions;let c=!1,l;if(t)for(let d in t){if(Tr(d))continue;const o=t[d];let u;s&&Ce(s,u=_t(d))?!i||!i.includes(u)?n[u]=o:(l||(l={}))[u]=o:Yo(e.emitsOptions,d)||(!(d in r)||o!==r[d])&&(r[d]=o,c=!0)}if(i){const d=_e(n),o=l||Ae;for(let u=0;u<i.length;u++){const a=i[u];n[a]=Us(s,d,a,o[a],e,!Ce(o,a))}}return c}function Us(e,t,n,r,s,i){const c=e[n];if(c!=null){const l=Ce(c,"default");if(l&&r===void 0){const d=c.default;if(c.type!==Function&&!c.skipFactory&&fe(d)){const{propsDefaults:o}=s;n in o?r=o[n]:(In(s),r=o[n]=d.call(null,t),kn())}else r=d}c[0]&&(i&&!l?r=!1:c[1]&&(r===""||r===At(n))&&(r=!0))}return r}function eu(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const i=e.props,c={},l=[];let d=!1;if(!fe(e)){const u=a=>{d=!0;const[f,p]=eu(a,t,!0);Ne(c,f),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!d)return Te(e)&&r.set(e,sr),sr;if(Q(i))for(let u=0;u<i.length;u++){const a=_t(i[u]);hl(a)&&(c[a]=Ae)}else if(i)for(const u in i){const a=_t(u);if(hl(a)){const f=i[u],p=c[a]=Q(f)||fe(f)?{type:f}:Ne({},f);if(p){const g=vl(Boolean,p.type),v=vl(String,p.type);p[0]=g>-1,p[1]=v<0||g<v,(g>-1||Ce(p,"default"))&&l.push(a)}}}const o=[c,l];return Te(e)&&r.set(e,o),o}function hl(e){return e[0]!=="$"}function ml(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function gl(e,t){return ml(e)===ml(t)}function vl(e,t){return Q(t)?t.findIndex(n=>gl(n,e)):fe(t)&&gl(t,e)?0:-1}const tu=e=>e[0]==="_"||e==="$stable",Ii=e=>Q(e)?e.map(St):[St(e)],Hd=(e,t,n)=>{if(t._n)return t;const r=Gn((...s)=>Ii(t(...s)),n);return r._c=!1,r},nu=(e,t,n)=>{const r=e._ctx;for(const s in e){if(tu(s))continue;const i=e[s];if(fe(i))t[s]=Hd(s,i,r);else if(i!=null){const c=Ii(i);t[s]=()=>c}}},ru=(e,t)=>{const n=Ii(t);e.slots.default=()=>n},Ud=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=_e(t),Io(t,"_",n)):nu(t,e.slots={})}else e.slots={},t&&ru(e,t);Io(e.slots,rs,1)},Wd=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,c=Ae;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Ne(s,t),!n&&l===1&&delete s._):(i=!t.$stable,nu(t,s)),c=t}else t&&(ru(e,t),c={default:1});if(i)for(const l in s)!tu(l)&&c[l]==null&&delete s[l]};function Bo(e,t,n,r,s=!1){if(Q(e)){e.forEach((f,p)=>Bo(f,t&&(Q(t)?t[p]:t),n,r,s));return}if(Dn(r)&&!s)return;const i=r.shapeFlag&4?os(r.component)||r.component.proxy:r.el,c=s?null:i,{i:l,r:d}=e,o=t&&t.r,u=l.refs===Ae?l.refs={}:l.refs,a=l.setupState;if(o!=null&&o!==d&&(je(o)?(u[o]=null,Ce(a,o)&&(a[o]=null)):De(o)&&(o.value=null)),fe(d))cn(d,l,12,[c,u]);else{const f=je(d),p=De(d);if(f||p){const g=()=>{if(e.f){const v=f?Ce(a,d)?a[d]:u[d]:d.value;s?Q(v)&&li(v,i):Q(v)?v.includes(i)||v.push(i):f?(u[d]=[i],Ce(a,d)&&(a[d]=u[d])):(d.value=[i],e.k&&(u[e.k]=d.value))}else f?(u[d]=c,Ce(a,d)&&(a[d]=c)):p&&(d.value=c,e.k&&(u[e.k]=c))};c?(g.id=-1,rt(g,n)):g()}}}let mn=!1;const xo=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",ko=e=>e.nodeType===8;function zd(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:c,remove:l,insert:d,createComment:o}}=e,u=(m,h)=>{if(!h.hasChildNodes()){n(null,m,h),Fo(),h._vnode=m;return}mn=!1,a(h.firstChild,m,null,null,null),Fo(),h._vnode=m,mn&&console.error("Hydration completed but contains mismatches.")},a=(m,h,b,O,P,x=!1)=>{const E=ko(m)&&m.data==="[",I=()=>v(m,h,b,O,P,E),{type:M,ref:A,shapeFlag:L,patchFlag:q}=h;let Z=m.nodeType;h.el=m,q===-2&&(x=!1,h.dynamicChildren=null);let T=null;switch(M){case Kn:Z!==3?h.children===""?(d(h.el=s(""),c(m),m),T=m):T=I():(m.data!==h.children&&(mn=!0,m.data=h.children),T=i(m));break;case ft:_(m)?(T=i(m),y(h.el=m.content.firstChild,m,b)):Z!==8||E?T=I():T=i(m);break;case Vn:if(E&&(m=i(m),Z=m.nodeType),Z===1||Z===3){T=m;const K=!h.children.length;for(let J=0;J<h.staticCount;J++)K&&(h.children+=T.nodeType===1?T.outerHTML:T.data),J===h.staticCount-1&&(h.anchor=T),T=i(T);return E?i(T):T}else I();break;case Ee:E?T=g(m,h,b,O,P,x):T=I();break;default:if(L&1)(Z!==1||h.type.toLowerCase()!==m.tagName.toLowerCase())&&!_(m)?T=I():T=f(m,h,b,O,P,x);else if(L&6){h.slotScopeIds=P;const K=c(m);if(E?T=C(m):ko(m)&&m.data==="teleport start"?T=C(m,m.data,"teleport end"):T=i(m),t(h,K,null,b,O,xo(K),x),Dn(h)){let J;E?(J=ue(Ee),J.anchor=T?T.previousSibling:K.lastChild):J=m.nodeType===3?kr(""):ue("div"),J.el=m,h.component.subTree=J}}else L&64?Z!==8?T=I():T=h.type.hydrate(m,h,b,O,P,x,e,p):L&128&&(T=h.type.hydrate(m,h,b,O,xo(c(m)),P,x,e,a))}return A!=null&&Bo(A,null,O,h),T},f=(m,h,b,O,P,x)=>{x=x||!!h.dynamicChildren;const{type:E,props:I,patchFlag:M,shapeFlag:A,dirs:L,transition:q}=h,Z=E==="input"&&L||E==="option";if(Z||M!==-1){if(L&&zt(h,null,b,"created"),I)if(Z||!x||M&48)for(const J in I)(Z&&J.endsWith("value")||to(J)&&!Tr(J))&&r(m,J,null,I[J],!1,void 0,b);else I.onClick&&r(m,"onClick",null,I.onClick,!1,void 0,b);let T;(T=I&&I.onVnodeBeforeMount)&&gt(T,b,h);let K=!1;if(_(m)){K=lu(O,q)&&b&&b.vnode.props&&b.vnode.props.appear;const J=m.content.firstChild;K&&q.beforeEnter(J),y(J,m,b),h.el=m=J}if(L&&zt(h,null,b,"beforeMount"),((T=I&&I.onVnodeMounted)||L||K)&&$c(()=>{T&&gt(T,b,h),K&&q.enter(m),L&&zt(h,null,b,"mounted")},O),A&16&&!(I&&(I.innerHTML||I.textContent))){let J=p(m.firstChild,h,m,b,O,P,x);for(;J;){mn=!0;const $e=J;J=J.nextSibling,l($e)}}else A&8&&m.textContent!==h.children&&(mn=!0,m.textContent=h.children)}return m.nextSibling},p=(m,h,b,O,P,x,E)=>{E=E||!!h.dynamicChildren;const I=h.children,M=I.length;for(let A=0;A<M;A++){const L=E?I[A]:I[A]=St(I[A]);if(m)m=a(m,L,O,P,x,E);else{if(L.type===Kn&&!L.children)continue;mn=!0,n(null,L,b,null,O,P,xo(b),x)}}return m},g=(m,h,b,O,P,x)=>{const{slotScopeIds:E}=h;E&&(P=P?P.concat(E):E);const I=c(m),M=p(i(m),h,I,b,O,P,x);return M&&ko(M)&&M.data==="]"?i(h.anchor=M):(mn=!0,d(h.anchor=o("]"),I,M),M)},v=(m,h,b,O,P,x)=>{if(mn=!0,h.el=null,x){const M=C(m);for(;;){const A=i(m);if(A&&A!==M)l(A);else break}}const E=i(m),I=c(m);return l(m),n(null,h,I,E,b,O,xo(I),P),E},C=(m,h="[",b="]")=>{let O=0;for(;m;)if(m=i(m),m&&ko(m)&&(m.data===h&&O++,m.data===b)){if(O===0)return i(m);O--}return m},y=(m,h,b)=>{const O=h.parentNode;O&&O.replaceChild(m,h);let P=b;for(;P;)P.vnode.el===h&&(P.vnode.el=P.subTree.el=m),P=P.parent},_=m=>m.nodeType===1&&m.tagName.toLowerCase()==="template";return[u,a]}const rt=$c;function ou(e){return iu(e)}function su(e){return iu(e,zd)}function iu(e,t){const n=$s();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:c,createText:l,createComment:d,setText:o,setElementText:u,parentNode:a,nextSibling:f,setScopeId:p=Vt,insertStaticContent:g}=e,v=(w,k,R,$=null,N=null,j=null,Y=!1,V=null,U=!!k.dynamicChildren)=>{if(w===k)return;w&&!Dt(w,k)&&($=F(w),Fe(w,N,j,!0),w=null),k.patchFlag===-2&&(U=!1,k.dynamicChildren=null);const{type:D,ref:ne,shapeFlag:ee}=k;switch(D){case Kn:C(w,k,R,$);break;case ft:y(w,k,R,$);break;case Vn:w==null&&_(k,R,$,Y);break;case Ee:A(w,k,R,$,N,j,Y,V,U);break;default:ee&1?b(w,k,R,$,N,j,Y,V,U):ee&6?L(w,k,R,$,N,j,Y,V,U):(ee&64||ee&128)&&D.process(w,k,R,$,N,j,Y,V,U,H)}ne!=null&&N&&Bo(ne,w&&w.ref,j,k||w,!k)},C=(w,k,R,$)=>{if(w==null)r(k.el=l(k.children),R,$);else{const N=k.el=w.el;k.children!==w.children&&o(N,k.children)}},y=(w,k,R,$)=>{w==null?r(k.el=d(k.children||""),R,$):k.el=w.el},_=(w,k,R,$)=>{[w.el,w.anchor]=g(w.children,k,R,$,w.el,w.anchor)},m=({el:w,anchor:k},R,$)=>{let N;for(;w&&w!==k;)N=f(w),r(w,R,$),w=N;r(k,R,$)},h=({el:w,anchor:k})=>{let R;for(;w&&w!==k;)R=f(w),s(w),w=R;s(k)},b=(w,k,R,$,N,j,Y,V,U)=>{Y=Y||k.type==="svg",w==null?O(k,R,$,N,j,Y,V,U):E(w,k,N,j,Y,V,U)},O=(w,k,R,$,N,j,Y,V)=>{let U,D;const{type:ne,props:ee,shapeFlag:ie,transition:de,dirs:ye}=w;if(U=w.el=c(w.type,j,ee&&ee.is,ee),ie&8?u(U,w.children):ie&16&&x(w.children,U,null,$,N,j&&ne!=="foreignObject",Y,V),ye&&zt(w,null,$,"created"),P(U,w,w.scopeId,Y,$),ee){for(const ke in ee)ke!=="value"&&!Tr(ke)&&i(U,ke,null,ee[ke],j,w.children,$,N,He);"value"in ee&&i(U,"value",null,ee.value),(D=ee.onVnodeBeforeMount)&&gt(D,$,w)}ye&&zt(w,null,$,"beforeMount");const Ie=lu(N,de);Ie&&de.beforeEnter(U),r(U,k,R),((D=ee&&ee.onVnodeMounted)||Ie||ye)&&rt(()=>{D&&gt(D,$,w),Ie&&de.enter(U),ye&&zt(w,null,$,"mounted")},N)},P=(w,k,R,$,N)=>{if(R&&p(w,R),$)for(let j=0;j<$.length;j++)p(w,$[j]);if(N){let j=N.subTree;if(k===j){const Y=N.vnode;P(w,Y,Y.scopeId,Y.slotScopeIds,N.parent)}}},x=(w,k,R,$,N,j,Y,V,U=0)=>{for(let D=U;D<w.length;D++){const ne=w[D]=V?wn(w[D]):St(w[D]);v(null,ne,k,R,$,N,j,Y,V)}},E=(w,k,R,$,N,j,Y)=>{const V=k.el=w.el;let{patchFlag:U,dynamicChildren:D,dirs:ne}=k;U|=w.patchFlag&16;const ee=w.props||Ae,ie=k.props||Ae;let de;R&&Tn(R,!1),(de=ie.onVnodeBeforeUpdate)&&gt(de,R,k,w),ne&&zt(k,w,R,"beforeUpdate"),R&&Tn(R,!0);const ye=N&&k.type!=="foreignObject";if(D?I(w.dynamicChildren,D,V,R,$,ye,j):Y||J(w,k,V,null,R,$,ye,j,!1),U>0){if(U&16)M(V,k,ee,ie,R,$,N);else if(U&2&&ee.class!==ie.class&&i(V,"class",null,ie.class,N),U&4&&i(V,"style",ee.style,ie.style,N),U&8){const Ie=k.dynamicProps;for(let ke=0;ke<Ie.length;ke++){const Ue=Ie[ke],wt=ee[Ue],Gt=ie[Ue];(Gt!==wt||Ue==="value")&&i(V,Ue,wt,Gt,N,w.children,R,$,He)}}U&1&&w.children!==k.children&&u(V,k.children)}else!Y&&D==null&&M(V,k,ee,ie,R,$,N);((de=ie.onVnodeUpdated)||ne)&&rt(()=>{de&&gt(de,R,k,w),ne&&zt(k,w,R,"updated")},$)},I=(w,k,R,$,N,j,Y)=>{for(let V=0;V<k.length;V++){const U=w[V],D=k[V],ne=U.el&&(U.type===Ee||!Dt(U,D)||U.shapeFlag&70)?a(U.el):R;v(U,D,ne,null,$,N,j,Y,!0)}},M=(w,k,R,$,N,j,Y)=>{if(R!==$){if(R!==Ae)for(const V in R)!Tr(V)&&!(V in $)&&i(w,V,R[V],null,Y,k.children,N,j,He);for(const V in $){if(Tr(V))continue;const U=$[V],D=R[V];U!==D&&V!=="value"&&i(w,V,D,U,Y,k.children,N,j,He)}"value"in $&&i(w,"value",R.value,$.value)}},A=(w,k,R,$,N,j,Y,V,U)=>{const D=k.el=w?w.el:l(""),ne=k.anchor=w?w.anchor:l("");let{patchFlag:ee,dynamicChildren:ie,slotScopeIds:de}=k;de&&(V=V?V.concat(de):de),w==null?(r(D,R,$),r(ne,R,$),x(k.children,R,ne,N,j,Y,V,U)):ee>0&&ee&64&&ie&&w.dynamicChildren?(I(w.dynamicChildren,ie,R,N,j,Y,V),(k.key!=null||N&&k===N.subTree)&&Mi(w,k,!0)):J(w,k,R,ne,N,j,Y,V,U)},L=(w,k,R,$,N,j,Y,V,U)=>{k.slotScopeIds=V,w==null?k.shapeFlag&512?N.ctx.activate(k,R,$,Y,U):q(k,R,$,N,j,Y,U):Z(w,k,U)},q=(w,k,R,$,N,j,Y)=>{const V=w.component=hu(w,$,N);if(io(w)&&(V.ctx.renderer=H),gu(V),V.asyncDep){if(N&&N.registerDep(V,T),!w.el){const U=V.subTree=ue(ft);y(null,U,k,R)}return}T(V,w,k,R,N,j,Y)},Z=(w,k,R)=>{const $=k.component=w.component;if(Qf(w,k,R))if($.asyncDep&&!$.asyncResolved){K($,k,R);return}else $.next=k,Kf($.update),$.update();else k.el=w.el,$.vnode=k},T=(w,k,R,$,N,j,Y)=>{const V=()=>{if(w.isMounted){let{next:ne,bu:ee,u:ie,parent:de,vnode:ye}=w,Ie=ne,ke;Tn(w,!1),ne?(ne.el=ye.el,K(w,ne,Y)):ne=ye,ee&&lr(ee),(ke=ne.props&&ne.props.onVnodeBeforeUpdate)&&gt(ke,de,ne,ye),Tn(w,!0);const Ue=Po(w),wt=w.subTree;w.subTree=Ue,v(wt,Ue,a(wt.el),F(wt),w,N,j),ne.el=Ue.el,Ie===null&&Ci(w,Ue.el),ie&&rt(ie,N),(ke=ne.props&&ne.props.onVnodeUpdated)&&rt(()=>gt(ke,de,ne,ye),N)}else{let ne;const{el:ee,props:ie}=k,{bm:de,m:ye,parent:Ie}=w,ke=Dn(k);if(Tn(w,!1),de&&lr(de),!ke&&(ne=ie&&ie.onVnodeBeforeMount)&&gt(ne,Ie,k),Tn(w,!0),ee&&pe){const Ue=()=>{w.subTree=Po(w),pe(ee,w.subTree,w,N,null)};ke?k.type.__asyncLoader().then(()=>!w.isUnmounted&&Ue()):Ue()}else{const Ue=w.subTree=Po(w);v(null,Ue,R,$,w,N,j),k.el=Ue.el}if(ye&&rt(ye,N),!ke&&(ne=ie&&ie.onVnodeMounted)){const Ue=k;rt(()=>gt(ne,Ie,Ue),N)}(k.shapeFlag&256||Ie&&Dn(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&w.a&&rt(w.a,N),w.isMounted=!0,k=R=$=null}},U=w.effect=new fr(V,()=>Jo(D),w.scope),D=w.update=()=>U.run();D.id=w.uid,Tn(w,!0),D()},K=(w,k,R)=>{k.component=w;const $=w.vnode.props;w.vnode=k,w.next=null,Vd(w,k.props,$,R),Wd(w,k.children,R),br(),il(),wr()},J=(w,k,R,$,N,j,Y,V,U=!1)=>{const D=w&&w.children,ne=w?w.shapeFlag:0,ee=k.children,{patchFlag:ie,shapeFlag:de}=k;if(ie>0){if(ie&128){We(D,ee,R,$,N,j,Y,V,U);return}else if(ie&256){$e(D,ee,R,$,N,j,Y,V,U);return}}de&8?(ne&16&&He(D,N,j),ee!==D&&u(R,ee)):ne&16?de&16?We(D,ee,R,$,N,j,Y,V,U):He(D,N,j,!0):(ne&8&&u(R,""),de&16&&x(ee,R,$,N,j,Y,V,U))},$e=(w,k,R,$,N,j,Y,V,U)=>{w=w||sr,k=k||sr;const D=w.length,ne=k.length,ee=Math.min(D,ne);let ie;for(ie=0;ie<ee;ie++){const de=k[ie]=U?wn(k[ie]):St(k[ie]);v(w[ie],de,R,null,N,j,Y,V,U)}D>ne?He(w,N,j,!0,!1,ee):x(k,R,$,N,j,Y,V,U,ee)},We=(w,k,R,$,N,j,Y,V,U)=>{let D=0;const ne=k.length;let ee=w.length-1,ie=ne-1;for(;D<=ee&&D<=ie;){const de=w[D],ye=k[D]=U?wn(k[D]):St(k[D]);if(Dt(de,ye))v(de,ye,R,null,N,j,Y,V,U);else break;D++}for(;D<=ee&&D<=ie;){const de=w[ee],ye=k[ie]=U?wn(k[ie]):St(k[ie]);if(Dt(de,ye))v(de,ye,R,null,N,j,Y,V,U);else break;ee--,ie--}if(D>ee){if(D<=ie){const de=ie+1,ye=de<ne?k[de].el:$;for(;D<=ie;)v(null,k[D]=U?wn(k[D]):St(k[D]),R,ye,N,j,Y,V,U),D++}}else if(D>ie)for(;D<=ee;)Fe(w[D],N,j,!0),D++;else{const de=D,ye=D,Ie=new Map;for(D=ye;D<=ie;D++){const it=k[D]=U?wn(k[D]):St(k[D]);it.key!=null&&Ie.set(it.key,D)}let ke,Ue=0;const wt=ie-ye+1;let Gt=!1,Qn=0;const An=new Array(wt);for(D=0;D<wt;D++)An[D]=0;for(D=de;D<=ee;D++){const it=w[D];if(Ue>=wt){Fe(it,N,j,!0);continue}let Ot;if(it.key!=null)Ot=Ie.get(it.key);else for(ke=ye;ke<=ie;ke++)if(An[ke-ye]===0&&Dt(it,k[ke])){Ot=ke;break}Ot===void 0?Fe(it,N,j,!0):(An[Ot-ye]=D+1,Ot>=Qn?Qn=Ot:Gt=!0,v(it,k[Ot],R,null,N,j,Y,V,U),Ue++)}const ao=Gt?Kd(An):sr;for(ke=ao.length-1,D=wt-1;D>=0;D--){const it=ye+D,Ot=k[it],Sr=it+1<ne?k[it+1].el:$;An[D]===0?v(null,Ot,R,Sr,N,j,Y,V,U):Gt&&(ke<0||D!==ao[ke]?Xe(Ot,R,Sr,2):ke--)}}},Xe=(w,k,R,$,N=null)=>{const{el:j,type:Y,transition:V,children:U,shapeFlag:D}=w;if(D&6){Xe(w.component.subTree,k,R,$);return}if(D&128){w.suspense.move(k,R,$);return}if(D&64){Y.move(w,k,R,H);return}if(Y===Ee){r(j,k,R);for(let ee=0;ee<U.length;ee++)Xe(U[ee],k,R,$);r(w.anchor,k,R);return}if(Y===Vn){m(w,k,R);return}if($!==2&&D&1&&V)if($===0)V.beforeEnter(j),r(j,k,R),rt(()=>V.enter(j),N);else{const{leave:ee,delayLeave:ie,afterLeave:de}=V,ye=()=>r(j,k,R),Ie=()=>{ee(j,()=>{ye(),de&&de()})};ie?ie(j,ye,Ie):Ie()}else r(j,k,R)},Fe=(w,k,R,$=!1,N=!1)=>{const{type:j,props:Y,ref:V,children:U,dynamicChildren:D,shapeFlag:ne,patchFlag:ee,dirs:ie}=w;if(V!=null&&Bo(V,null,R,w,!0),ne&256){k.ctx.deactivate(w);return}const de=ne&1&&ie,ye=!Dn(w);let Ie;if(ye&&(Ie=Y&&Y.onVnodeBeforeUnmount)&&gt(Ie,k,w),ne&6)Wt(w.component,R,$);else{if(ne&128){w.suspense.unmount(R,$);return}de&&zt(w,null,k,"beforeUnmount"),ne&64?w.type.remove(w,k,R,N,H,$):D&&(j!==Ee||ee>0&&ee&64)?He(D,k,R,!1,!0):(j===Ee&&ee&384||!N&&ne&16)&&He(U,k,R),$&&Ke(w)}(ye&&(Ie=Y&&Y.onVnodeUnmounted)||de)&&rt(()=>{Ie&&gt(Ie,k,w),de&&zt(w,null,k,"unmounted")},R)},Ke=w=>{const{type:k,el:R,anchor:$,transition:N}=w;if(k===Ee){Ve(R,$);return}if(k===Vn){h(w);return}const j=()=>{s(R),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(w.shapeFlag&1&&N&&!N.persisted){const{leave:Y,delayLeave:V}=N,U=()=>Y(R,j);V?V(w.el,j,U):U()}else j()},Ve=(w,k)=>{let R;for(;w!==k;)R=f(w),s(w),w=R;s(k)},Wt=(w,k,R)=>{const{bum:$,scope:N,update:j,subTree:Y,um:V}=w;$&&lr($),N.stop(),j&&(j.active=!1,Fe(Y,w,k,R)),V&&rt(V,k),rt(()=>{w.isUnmounted=!0},k),k&&k.pendingBranch&&!k.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===k.pendingId&&(k.deps--,k.deps===0&&k.resolve())},He=(w,k,R,$=!1,N=!1,j=0)=>{for(let Y=j;Y<w.length;Y++)Fe(w[Y],k,R,$,N)},F=w=>w.shapeFlag&6?F(w.component.subTree):w.shapeFlag&128?w.suspense.next():f(w.anchor||w.el),X=(w,k,R)=>{w==null?k._vnode&&Fe(k._vnode,null,null,!0):v(k._vnode||null,w,k,null,null,null,R),il(),Fo(),k._vnode=w},H={p:v,um:Fe,m:Xe,r:Ke,mt:q,mc:x,pc:J,pbc:I,n:F,o:e};let te,pe;return t&&([te,pe]=t(H)),{render:X,hydrate:te,createApp:jd(X,te)}}function Tn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function lu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Mi(e,t,n=!1){const r=e.children,s=t.children;if(Q(r)&&Q(s))for(let i=0;i<r.length;i++){const c=r[i];let l=s[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[i]=wn(s[i]),l.el=c.el),n||Mi(c,l)),l.type===Kn&&(l.el=c.el)}}function Kd(e){const t=e.slice(),n=[0];let r,s,i,c,l;const d=e.length;for(r=0;r<d;r++){const o=e[r];if(o!==0){if(s=n[n.length-1],e[s]<o){t[r]=s,n.push(r);continue}for(i=0,c=n.length-1;i<c;)l=i+c>>1,e[n[l]]<o?i=l+1:c=l;o<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,c=n[i-1];i-- >0;)n[i]=c,c=t[c];return n}const qd=e=>e.__isTeleport,Br=e=>e&&(e.disabled||e.disabled===""),yl=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ws=(e,t)=>{const n=e&&e.to;return je(n)?t?t(n):null:n},Jd={__isTeleport:!0,process(e,t,n,r,s,i,c,l,d,o){const{mc:u,pc:a,pbc:f,o:{insert:p,querySelector:g,createText:v,createComment:C}}=o,y=Br(t.props);let{shapeFlag:_,children:m,dynamicChildren:h}=t;if(e==null){const b=t.el=v(""),O=t.anchor=v("");p(b,n,r),p(O,n,r);const P=t.target=Ws(t.props,g),x=t.targetAnchor=v("");P&&(p(x,P),c=c||yl(P));const E=(I,M)=>{_&16&&u(m,I,M,s,i,c,l,d)};y?E(n,O):P&&E(P,x)}else{t.el=e.el;const b=t.anchor=e.anchor,O=t.target=e.target,P=t.targetAnchor=e.targetAnchor,x=Br(e.props),E=x?n:O,I=x?b:P;if(c=c||yl(O),h?(f(e.dynamicChildren,h,E,s,i,c,l),Mi(e,t,!0)):d||a(e,t,E,I,s,i,c,l,!1),y)x?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Eo(t,n,b,o,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const M=t.target=Ws(t.props,g);M&&Eo(t,M,null,o,0)}else x&&Eo(t,O,P,o,1)}cu(t)},remove(e,t,n,r,{um:s,o:{remove:i}},c){const{shapeFlag:l,children:d,anchor:o,targetAnchor:u,target:a,props:f}=e;if(a&&i(u),c&&i(o),l&16){const p=c||!Br(f);for(let g=0;g<d.length;g++){const v=d[g];s(v,t,n,p,!!v.dynamicChildren)}}},move:Eo,hydrate:Yd};function Eo(e,t,n,{o:{insert:r},m:s},i=2){i===0&&r(e.targetAnchor,t,n);const{el:c,anchor:l,shapeFlag:d,children:o,props:u}=e,a=i===2;if(a&&r(c,t,n),(!a||Br(u))&&d&16)for(let f=0;f<o.length;f++)s(o[f],t,n,2);a&&r(l,t,n)}function Yd(e,t,n,r,s,i,{o:{nextSibling:c,parentNode:l,querySelector:d}},o){const u=t.target=Ws(t.props,d);if(u){const a=u._lpa||u.firstChild;if(t.shapeFlag&16)if(Br(t.props))t.anchor=o(c(e),t,l(e),n,r,s,i),t.targetAnchor=a;else{t.anchor=c(e);let f=a;for(;f;)if(f=c(f),f&&f.nodeType===8&&f.data==="teleport anchor"){t.targetAnchor=f,u._lpa=t.targetAnchor&&c(t.targetAnchor);break}o(a,t,u,n,r,s,i)}cu(t)}return t.anchor&&c(t.anchor)}const Zd=Jd;function cu(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Ee=Symbol.for("v-fgt"),Kn=Symbol.for("v-txt"),ft=Symbol.for("v-cmt"),Vn=Symbol.for("v-stc"),Nr=[];let yt=null;function G(e=!1){Nr.push(yt=e?null:[])}function uu(){Nr.pop(),yt=Nr[Nr.length-1]||null}let qn=1;function zs(e){qn+=e}function au(e){return e.dynamicChildren=qn>0?yt||sr:null,uu(),qn>0&&yt&&yt.push(e),e}function ce(e,t,n,r,s,i){return au(W(e,t,n,r,s,i,!0))}function st(e,t,n,r,s){return au(ue(e,t,n,r,s,!0))}function Rn(e){return e?e.__v_isVNode===!0:!1}function Dt(e,t){return e.type===t.type&&e.key===t.key}function Xd(e){}const rs="__vInternal",fu=({key:e})=>e??null,Oo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?je(e)||De(e)||fe(e)?{i:nt,r:e,k:t,f:!!n}:e:null);function W(e,t=null,n=null,r=0,s=null,i=e===Ee?0:1,c=!1,l=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fu(t),ref:t&&Oo(t),scopeId:Zo,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:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:nt};return l?(Ai(d,n),i&128&&e.normalize(d)):n&&(d.shapeFlag|=je(n)?8:16),qn>0&&!c&&yt&&(d.patchFlag>0||i&6)&&d.patchFlag!==32&&yt.push(d),d}const ue=Gd;function Gd(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Ac)&&(e=ft),Rn(e)){const l=Zt(e,t,!0);return n&&Ai(l,n),qn>0&&!i&&yt&&(l.shapeFlag&6?yt[yt.indexOf(e)]=l:yt.push(l)),l.patchFlag|=-2,l}if(ip(e)&&(e=e.__vccOpts),t){t=du(t);let{class:l,style:d}=t;l&&!je(l)&&(t.class=vt(l)),Te(d)&&(vi(d)&&!Q(d)&&(d=Ne({},d)),t.style=_r(d))}const c=je(e)?1:Tc(e)?128:qd(e)?64:Te(e)?4:fe(e)?2:0;return W(e,t,n,r,s,c,i,!0)}function du(e){return e?vi(e)||rs in e?Ne({},e):e:null}function Zt(e,t,n=!1){const{props:r,ref:s,patchFlag:i,children:c}=e,l=t?pu(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&fu(l),ref:t&&t.ref?n&&s?Q(s)?s.concat(Oo(t)):[s,Oo(t)]:Oo(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ee?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zt(e.ssContent),ssFallback:e.ssFallback&&Zt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function kr(e=" ",t=0){return ue(Kn,null,e,t)}function Qd(e,t){const n=ue(Vn,null,e);return n.staticCount=t,n}function Ye(e="",t=!1){return t?(G(),st(ft,null,e)):ue(ft,null,e)}function St(e){return e==null||typeof e=="boolean"?ue(ft):Q(e)?ue(Ee,null,e.slice()):typeof e=="object"?wn(e):ue(Kn,null,String(e))}function wn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zt(e)}function Ai(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Q(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Ai(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(rs in t)?t._ctx=nt:s===3&&nt&&(nt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else fe(t)?(t={default:t,_ctx:nt},n=32):(t=String(t),r&64?(n=16,t=[kr(t)]):n=8);e.children=t,e.shapeFlag|=n}function pu(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=vt([t.class,r.class]));else if(s==="style")t.style=_r([t.style,r.style]);else if(to(s)){const i=t[s],c=r[s];c&&i!==c&&!(Q(i)&&i.includes(c))&&(t[s]=i?[].concat(i,c):c)}else s!==""&&(t[s]=r[s])}return t}function gt(e,t,n,r=null){Pt(e,t,7,[n,r])}const ep=Xc();let tp=0;function hu(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||ep,i={uid:tp++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new ai(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:eu(r,s),emitsOptions:Mc(r,s),emit:null,emitted:null,propsDefaults:Ae,inheritAttrs:r.inheritAttrs,ctx:Ae,data:Ae,props:Ae,attrs:Ae,slots:Ae,refs:Ae,setupState:Ae,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 i.ctx={_:i},i.root=t?t.root:i,i.emit=Jf.bind(null,i),e.ce&&e.ce(i),i}let Ze=null;const dn=()=>Ze||nt;let Ti,tr,_l="__VUE_INSTANCE_SETTERS__";(tr=$s()[_l])||(tr=$s()[_l]=[]),tr.push(e=>Ze=e),Ti=e=>{tr.length>1?tr.forEach(t=>t(e)):tr[0](e)};const In=e=>{Ti(e),e.scope.on()},kn=()=>{Ze&&Ze.scope.off(),Ti(null)};function mu(e){return e.vnode.shapeFlag&4}let pr=!1;function gu(e,t=!1){pr=t;const{props:n,children:r}=e.vnode,s=mu(e);Dd(e,n,s,t),Ud(e,r);const i=s?np(e,t):void 0;return pr=!1,i}function np(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ro(new Proxy(e.ctx,Ds));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?yu(e):null;In(e),br();const i=cn(r,e,0,[e.props,s]);if(wr(),kn(),ci(i)){if(i.then(kn,kn),t)return i.then(c=>{Ks(e,c,t)}).catch(c=>{Xn(c,e,0)});e.asyncDep=i}else Ks(e,i,t)}else vu(e,t)}function Ks(e,t,n){fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=bi(t)),vu(e,n)}let No,qs;function rp(e){No=e,qs=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,yd))}}const op=()=>!No;function vu(e,t,n){const r=e.type;if(!e.render){if(!t&&No&&!r.render){const s=r.template||Ri(e).template;if(s){const{isCustomElement:i,compilerOptions:c}=e.appContext.config,{delimiters:l,compilerOptions:d}=r,o=Ne(Ne({isCustomElement:i,delimiters:l},c),d);r.render=No(s,o)}}e.render=r.render||Vt,qs&&qs(e)}{In(e),br();try{Td(e)}finally{wr(),kn()}}}function sp(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return bt(e,"get","$attrs"),t[n]}}))}function yu(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return sp(e)},slots:e.slots,emit:e.emit,expose:t}}function os(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(bi(ro(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Fr)return Fr[n](e)},has(t,n){return n in t||n in Fr}}))}function Js(e,t=!0){return fe(e)?e.displayName||e.name:e.name||t&&e.__name}function ip(e){return fe(e)&&"__vccOpts"in e}const Se=(e,t)=>Vf(e,t,pr);function ss(e,t,n){const r=arguments.length;return r===2?Te(t)&&!Q(t)?Rn(t)?ue(e,null,[t]):ue(e,t):ue(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Rn(n)&&(n=[n]),ue(e,t,n))}const _u=Symbol.for("v-scx"),bu=()=>$t(_u);function lp(){}function cp(e,t,n,r){const s=n[r];if(s&&wu(s,e))return s;const i=t();return i.memo=e.slice(),n[r]=i}function wu(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(En(n[r],t[r]))return!1;return qn>0&&yt&&yt.push(e),!0}const Cu="3.3.8",up={createComponentInstance:hu,setupComponent:gu,renderComponentRoot:Po,setCurrentRenderingInstance:Jr,isVNode:Rn,normalizeVNode:St},ap=up,fp=null,dp=null,pp="http://www.w3.org/2000/svg",Ln=typeof document<"u"?document:null,bl=Ln&&Ln.createElement("template"),hp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t?Ln.createElementNS(pp,e):Ln.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Ln.createTextNode(e),createComment:e=>Ln.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ln.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const c=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{bl.innerHTML=r?`<svg>${e}</svg>`:e;const l=bl.content;if(r){const d=l.firstChild;for(;d.firstChild;)l.appendChild(d.firstChild);l.removeChild(d)}t.insertBefore(l,n)}return[c?c.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},gn="transition",Pr="animation",hr=Symbol("_vtc"),$i=(e,{slots:t})=>ss(Bc,ku(e),t);$i.displayName="Transition";const xu={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},mp=$i.props=Ne({},Pi,xu),$n=(e,t=[])=>{Q(e)?e.forEach(n=>n(...t)):e&&e(...t)},wl=e=>e?Q(e)?e.some(t=>t.length>1):e.length>1:!1;function ku(e){const t={};for(const A in e)A in xu||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:c=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:d=i,appearActiveClass:o=c,appearToClass:u=l,leaveFromClass:a=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,g=gp(s),v=g&&g[0],C=g&&g[1],{onBeforeEnter:y,onEnter:_,onEnterCancelled:m,onLeave:h,onLeaveCancelled:b,onBeforeAppear:O=y,onAppear:P=_,onAppearCancelled:x=m}=t,E=(A,L,q)=>{yn(A,L?u:l),yn(A,L?o:c),q&&q()},I=(A,L)=>{A._isLeaving=!1,yn(A,a),yn(A,p),yn(A,f),L&&L()},M=A=>(L,q)=>{const Z=A?P:_,T=()=>E(L,A,q);$n(Z,[L,T]),Cl(()=>{yn(L,A?d:i),nn(L,A?u:l),wl(Z)||xl(L,r,v,T)})};return Ne(t,{onBeforeEnter(A){$n(y,[A]),nn(A,i),nn(A,c)},onBeforeAppear(A){$n(O,[A]),nn(A,d),nn(A,o)},onEnter:M(!1),onAppear:M(!0),onLeave(A,L){A._isLeaving=!0;const q=()=>I(A,L);nn(A,a),Su(),nn(A,f),Cl(()=>{A._isLeaving&&(yn(A,a),nn(A,p),wl(h)||xl(A,r,C,q))}),$n(h,[A,q])},onEnterCancelled(A){E(A,!1),$n(m,[A])},onAppearCancelled(A){E(A,!0),$n(x,[A])},onLeaveCancelled(A){I(A),$n(b,[A])}})}function gp(e){if(e==null)return null;if(Te(e))return[Os(e.enter),Os(e.leave)];{const t=Os(e);return[t,t]}}function Os(e){return Ao(e)}function nn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[hr]||(e[hr]=new Set)).add(t)}function yn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[hr];n&&(n.delete(t),n.size||(e[hr]=void 0))}function Cl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let vp=0;function xl(e,t,n,r){const s=e._endId=++vp,i=()=>{s===e._endId&&r()};if(n)return setTimeout(i,n);const{type:c,timeout:l,propCount:d}=Eu(e,t);if(!c)return r();const o=c+"end";let u=0;const a=()=>{e.removeEventListener(o,f),i()},f=p=>{p.target===e&&++u>=d&&a()};setTimeout(()=>{u<d&&a()},l+1),e.addEventListener(o,f)}function Eu(e,t){const n=window.getComputedStyle(e),r=g=>(n[g]||"").split(", "),s=r(`${gn}Delay`),i=r(`${gn}Duration`),c=kl(s,i),l=r(`${Pr}Delay`),d=r(`${Pr}Duration`),o=kl(l,d);let u=null,a=0,f=0;t===gn?c>0&&(u=gn,a=c,f=i.length):t===Pr?o>0&&(u=Pr,a=o,f=d.length):(a=Math.max(c,o),u=a>0?c>o?gn:Pr:null,f=u?u===gn?i.length:d.length:0);const p=u===gn&&/\b(transform|all)(,|$)/.test(r(`${gn}Property`).toString());return{type:u,timeout:a,propCount:f,hasTransform:p}}function kl(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>El(n)+El(e[r])))}function El(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Su(){return document.body.offsetHeight}function yp(e,t,n){const r=e[hr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Fi=Symbol("_vod"),Pu={beforeMount(e,{value:t},{transition:n}){e[Fi]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Or(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Or(e,!0),r.enter(e)):r.leave(e,()=>{Or(e,!1)}):Or(e,t))},beforeUnmount(e,{value:t}){Or(e,t)}};function Or(e,t){e.style.display=t?e[Fi]:"none"}function _p(){Pu.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}function bp(e,t,n){const r=e.style,s=je(n);if(n&&!s){if(t&&!je(t))for(const i in t)n[i]==null&&Ys(r,i,"");for(const i in n)Ys(r,i,n[i])}else{const i=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),Fi in e&&(r.display=i)}}const Sl=/\s*!important$/;function Ys(e,t,n){if(Q(n))n.forEach(r=>Ys(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=wp(e,t);Sl.test(n)?e.setProperty(At(r),n.replace(Sl,""),"important"):e[r]=n}}const Pl=["Webkit","Moz","ms"],Rs={};function wp(e,t){const n=Rs[t];if(n)return n;let r=_t(t);if(r!=="filter"&&r in e)return Rs[t]=r;r=no(r);for(let s=0;s<Pl.length;s++){const i=Pl[s]+r;if(i in e)return Rs[t]=i}return t}const Ol="http://www.w3.org/1999/xlink";function Cp(e,t,n,r,s){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ol,t.slice(6,t.length)):e.setAttributeNS(Ol,t,n);else{const i=of(t);n==null||i&&!cc(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function xp(e,t,n,r,s,i,c){if(t==="innerHTML"||t==="textContent"){r&&c(r,s,i),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const o=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";o!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let d=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=cc(n):n==null&&o==="string"?(n="",d=!0):o==="number"&&(n=0,d=!0)}try{e[t]=n}catch{}d&&e.removeAttribute(t)}function on(e,t,n,r){e.addEventListener(t,n,r)}function kp(e,t,n,r){e.removeEventListener(t,n,r)}const Rl=Symbol("_vei");function Ep(e,t,n,r,s=null){const i=e[Rl]||(e[Rl]={}),c=i[t];if(r&&c)c.value=r;else{const[l,d]=Sp(t);if(r){const o=i[t]=Rp(r,s);on(e,l,o,d)}else c&&(kp(e,l,c,d),i[t]=void 0)}}const Il=/(?:Once|Passive|Capture)$/;function Sp(e){let t;if(Il.test(e)){t={};let r;for(;r=e.match(Il);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):At(e.slice(2)),t]}let Is=0;const Pp=Promise.resolve(),Op=()=>Is||(Pp.then(()=>Is=0),Is=Date.now());function Rp(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Pt(Ip(r,n.value),t,5,[r])};return n.value=e,n.attached=Op(),n}function Ip(e,t){if(Q(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Ml=/^on[a-z]/,Mp=(e,t,n,r,s=!1,i,c,l,d)=>{t==="class"?yp(e,r,s):t==="style"?bp(e,n,r):to(t)?ii(t)||Ep(e,t,n,r,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ap(e,t,r,s))?xp(e,t,r,i,c,l,d):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Cp(e,t,r,s))};function Ap(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Ml.test(t)&&fe(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ml.test(t)&&je(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Ou(e,t){const n=Le(e);class r extends is{constructor(i){super(n,i,t)}}return r.def=n,r}/*! #__NO_SIDE_EFFECTS__ */const Tp=e=>Ou(e,ju),$p=typeof HTMLElement<"u"?HTMLElement:class{};class is extends $p{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Jt(()=>{this._connected||(Gs(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(r=>{for(const s of r)this._setAttr(s.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,s=!1)=>{const{props:i,styles:c}=r;let l;if(i&&!Q(i))for(const d in i){const o=i[d];(o===Number||o&&o.type===Number)&&(d in this._props&&(this._props[d]=Ao(this._props[d])),(l||(l=Object.create(null)))[_t(d)]=!0)}this._numberProps=l,s&&this._resolveProps(r),this._applyStyles(c),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=Q(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s],!0,!1);for(const s of r.map(_t))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(i){this._setProp(s,i)}})}_setAttr(t){let n=this.getAttribute(t);const r=_t(t);this._numberProps&&this._numberProps[r]&&(n=Ao(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!0){n!==this._props[t]&&(this._props[t]=n,s&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(At(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(At(t),n+""):n||this.removeAttribute(At(t))))}_update(){Gs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=ue(this._def,Ne({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(i,c)=>{this.dispatchEvent(new CustomEvent(i,{detail:c}))};n.emit=(i,...c)=>{r(i,c),At(i)!==i&&r(At(i),c)};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof is){n.parent=s._instance,n.provides=s._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function Fp(e="$style"){{const t=dn();if(!t)return Ae;const n=t.type.__cssModules;if(!n)return Ae;const r=n[e];return r||Ae}}function Lp(e){const t=dn();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>Xs(i,s))},r=()=>{const s=e(t.proxy);Zs(t.subTree,s),n(s)};Fc(r),Tt(()=>{const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),On(()=>s.disconnect())})}function Zs(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Zs(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Xs(e.el,t);else if(e.type===Ee)e.children.forEach(n=>Zs(n,t));else if(e.type===Vn){let{el:n,anchor:r}=e;for(;n&&(Xs(n,t),n!==r);)n=n.nextSibling}}function Xs(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const Ru=new WeakMap,Iu=new WeakMap,jo=Symbol("_moveCb"),Al=Symbol("_enterCb"),Mu={name:"TransitionGroup",props:Ne({},mp,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=dn(),r=Si();let s,i;return es(()=>{if(!s.length)return;const c=e.moveClass||`${e.name||"v"}-move`;if(!Hp(s[0].el,n.vnode.el,c))return;s.forEach(jp),s.forEach(Dp);const l=s.filter(Vp);Su(),l.forEach(d=>{const o=d.el,u=o.style;nn(o,c),u.transform=u.webkitTransform=u.transitionDuration="";const a=o[jo]=f=>{f&&f.target!==o||(!f||/transform$/.test(f.propertyName))&&(o.removeEventListener("transitionend",a),o[jo]=null,yn(o,c))};o.addEventListener("transitionend",a)})}),()=>{const c=_e(e),l=ku(c);let d=c.tag||Ee;s=i,i=t.default?Go(t.default()):[];for(let o=0;o<i.length;o++){const u=i[o];u.key!=null&&zn(u,dr(u,l,r,n))}if(s)for(let o=0;o<s.length;o++){const u=s[o];zn(u,dr(u,l,r,n)),Ru.set(u,u.el.getBoundingClientRect())}return ue(d,null,i)}}},Bp=e=>delete e.mode;Mu.props;const Np=Mu;function jp(e){const t=e.el;t[jo]&&t[jo](),t[Al]&&t[Al]()}function Dp(e){Iu.set(e,e.el.getBoundingClientRect())}function Vp(e){const t=Ru.get(e),n=Iu.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${s}px)`,i.transitionDuration="0s",e}}function Hp(e,t,n){const r=e.cloneNode(),s=e[hr];s&&s.forEach(l=>{l.split(/\s+/).forEach(d=>d&&r.classList.remove(d))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:c}=Eu(r);return i.removeChild(r),c}const Mn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Q(t)?n=>lr(t,n):t};function Up(e){e.target.composing=!0}function Tl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ft=Symbol("_assign"),an={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Ft]=Mn(s);const i=r||s.props&&s.props.type==="number";on(e,t?"change":"input",c=>{if(c.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=Mo(l)),e[Ft](l)}),n&&on(e,"change",()=>{e.value=e.value.trim()}),t||(on(e,"compositionstart",Up),on(e,"compositionend",Tl),on(e,"change",Tl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},i){if(e[Ft]=Mn(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(s||e.type==="number")&&Mo(e.value)===t))return;const c=t??"";e.value!==c&&(e.value=c)}},ls={deep:!0,created(e,t,n){e[Ft]=Mn(n),on(e,"change",()=>{const r=e._modelValue,s=mr(e),i=e.checked,c=e[Ft];if(Q(r)){const l=Uo(r,s),d=l!==-1;if(i&&!d)c(r.concat(s));else if(!i&&d){const o=[...r];o.splice(l,1),c(o)}}else if(Zn(r)){const l=new Set(r);i?l.add(s):l.delete(s),c(l)}else c(Tu(e,i))})},mounted:$l,beforeUpdate(e,t,n){e[Ft]=Mn(n),$l(e,t,n)}};function $l(e,{value:t,oldValue:n},r){e._modelValue=t,Q(t)?e.checked=Uo(t,r.props.value)>-1:Zn(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Sn(t,Tu(e,!0)))}const Li={created(e,{value:t},n){e.checked=Sn(t,n.props.value),e[Ft]=Mn(n),on(e,"change",()=>{e[Ft](mr(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ft]=Mn(r),t!==n&&(e.checked=Sn(t,r.props.value))}},Au={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Zn(t);on(e,"change",()=>{const i=Array.prototype.filter.call(e.options,c=>c.selected).map(c=>n?Mo(mr(c)):mr(c));e[Ft](e.multiple?s?new Set(i):i:i[0])}),e[Ft]=Mn(r)},mounted(e,{value:t}){Fl(e,t)},beforeUpdate(e,t,n){e[Ft]=Mn(n)},updated(e,{value:t}){Fl(e,t)}};function Fl(e,t){const n=e.multiple;if(!(n&&!Q(t)&&!Zn(t))){for(let r=0,s=e.options.length;r<s;r++){const i=e.options[r],c=mr(i);if(n)Q(t)?i.selected=Uo(t,c)>-1:i.selected=t.has(c);else if(Sn(mr(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function mr(e){return"_value"in e?e._value:e.value}function Tu(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const $u={created(e,t,n){So(e,t,n,null,"created")},mounted(e,t,n){So(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){So(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){So(e,t,n,r,"updated")}};function Fu(e,t){switch(e){case"SELECT":return Au;case"TEXTAREA":return an;default:switch(t){case"checkbox":return ls;case"radio":return Li;default:return an}}}function So(e,t,n,r,s){const c=Fu(e.tagName,n.props&&n.props.type)[s];c&&c(e,t,n,r)}function Wp(){an.getSSRProps=({value:e})=>({value:e}),Li.getSSRProps=({value:e},t)=>{if(t.props&&Sn(t.props.value,e))return{checked:!0}},ls.getSSRProps=({value:e},t)=>{if(Q(e)){if(t.props&&Uo(e,t.props.value)>-1)return{checked:!0}}else if(Zn(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},$u.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Fu(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const zp=["ctrl","shift","alt","meta"],Kp={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)=>zp.some(n=>e[`${n}Key`]&&!t.includes(n))},ot=(e,t)=>(n,...r)=>{for(let s=0;s<t.length;s++){const i=Kp[t[s]];if(i&&i(n,t))return}return e(n,...r)},qp={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Hn=(e,t)=>n=>{if(!("key"in n))return;const r=At(n.key);if(t.some(s=>s===r||qp[s]===r))return e(n)},Lu=Ne({patchProp:Mp},hp);let jr,Ll=!1;function Bu(){return jr||(jr=ou(Lu))}function Nu(){return jr=Ll?jr:su(Lu),Ll=!0,jr}const Gs=(...e)=>{Bu().render(...e)},ju=(...e)=>{Nu().hydrate(...e)},Du=(...e)=>{const t=Bu().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Vu(r);if(!s)return;const i=t._component;!fe(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const c=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),c},t},Jp=(...e)=>{const t=Nu().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Vu(r);if(s)return n(s,!0,s instanceof SVGElement)},t};function Vu(e){return je(e)?document.querySelector(e):e}let Bl=!1;const Yp=()=>{Bl||(Bl=!0,Wp(),_p())},Zp=()=>{},Xp=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Bc,BaseTransitionPropsValidators:Pi,Comment:ft,EffectScope:ai,Fragment:Ee,KeepAlive:hd,ReactiveEffect:fr,Static:Vn,Suspense:od,Teleport:Zd,Text:Kn,Transition:$i,TransitionGroup:Np,VueElement:is,assertNumber:Uf,callWithAsyncErrorHandling:Pt,callWithErrorHandling:cn,camelize:_t,capitalize:no,cloneVNode:Zt,compatUtils:dp,compile:Zp,computed:Se,createApp:Du,createBlock:st,createCommentVNode:Ye,createElementBlock:ce,createElementVNode:W,createHydrationRenderer:su,createPropsRestProxy:Md,createRenderer:ou,createSSRApp:Jp,createSlots:gd,createStaticVNode:Qd,createTextVNode:kr,createVNode:ue,customRef:Lf,defineAsyncComponent:jc,defineComponent:Le,defineCustomElement:Ou,defineEmits:bd,defineExpose:wd,defineModel:kd,defineOptions:Cd,defineProps:_d,defineSSRCustomElement:Tp,defineSlots:xd,get devtools(){return rr},effect:uf,effectScope:fi,getCurrentInstance:dn,getCurrentScope:di,getTransitionRawChildren:Go,guardReactiveProps:du,h:ss,handleError:Xn,hasInjectionContext:Gc,hydrate:ju,initCustomFormatter:lp,initDirectivesForSSR:Yp,inject:$t,isMemoSame:wu,isProxy:vi,isReactive:ln,isReadonly:Un,isRef:De,isRuntimeOnly:op,isShallow:Wr,isVNode:Rn,markRaw:ro,mergeDefaults:Rd,mergeModels:Id,mergeProps:pu,nextTick:Jt,normalizeClass:vt,normalizeProps:nf,normalizeStyle:_r,onActivated:Dc,onBeforeMount:Uc,onBeforeUnmount:ts,onBeforeUpdate:Oi,onDeactivated:Vc,onErrorCaptured:qc,onMounted:Tt,onRenderTracked:Kc,onRenderTriggered:zc,onScopeDispose:fc,onServerPrefetch:Wc,onUnmounted:On,onUpdated:es,openBlock:G,popScopeId:xr,provide:Lr,proxyRefs:bi,pushScopeId:Cr,queuePostFlushCb:$o,reactive:Xt,readonly:gi,ref:Re,registerRuntimeCompiler:rp,render:Gs,renderList:ns,renderSlot:lo,resolveComponent:td,resolveDirective:nd,resolveDynamicComponent:Xo,resolveFilter:fp,resolveTransitionHooks:dr,setBlockTracking:zs,setDevtoolsHook:Ic,setTransitionHooks:zn,shallowReactive:mi,shallowReadonly:If,shallowRef:oo,ssrContextKey:_u,ssrUtils:ap,stop:af,toDisplayString:Ge,toHandlerKey:$r,toHandlers:vd,toRaw:_e,toRef:jf,toRefs:Ec,toValue:Tf,transformVNodeArgs:Xd,triggerRef:Af,unref:se,useAttrs:Pd,useCssModule:Fp,useCssVars:Lp,useModel:Od,useSSRContext:bu,useSlots:Sd,useTransitionState:Si,vModelCheckbox:ls,vModelDynamic:$u,vModelRadio:Li,vModelSelect:Au,vModelText:an,vShow:Pu,version:Cu,warn:Hf,watch:un,watchEffect:Yt,watchPostEffect:Fc,watchSyncEffect:ad,withAsyncContext:Ad,withCtx:Gn,withDefaults:Ed,withDirectives:Wn,withKeys:Hn,withMemo:cp,withModifiers:ot,withScopeId:Yf},Symbol.toStringTag,{value:"Module"}));var Gp=!1;/*!
2
+ * pinia v2.1.7
3
+ * (c) 2023 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */let Hu;const cs=e=>Hu=e,Uu=Symbol();function Qs(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Dr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Dr||(Dr={}));function Qp(){const e=fi(!0),t=e.run(()=>Re({}));let n=[],r=[];const s=ro({install(i){cs(s),s._a=i,i.provide(Uu,s),i.config.globalProperties.$pinia=s,r.forEach(c=>n.push(c)),r=[]},use(i){return!this._a&&!Gp?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Wu=()=>{};function Nl(e,t,n,r=Wu){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&di()&&fc(s),s}function nr(e,...t){e.slice().forEach(n=>{n(...t)})}const eh=e=>e();function ei(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Qs(s)&&Qs(r)&&e.hasOwnProperty(n)&&!De(r)&&!ln(r)?e[n]=ei(s,r):e[n]=r}return e}const th=Symbol();function nh(e){return!Qs(e)||!e.hasOwnProperty(th)}const{assign:_n}=Object;function rh(e){return!!(De(e)&&e.effect)}function oh(e,t,n,r){const{state:s,actions:i,getters:c}=t,l=n.state.value[e];let d;function o(){l||(n.state.value[e]=s?s():{});const u=Ec(n.state.value[e]);return _n(u,i,Object.keys(c||{}).reduce((a,f)=>(a[f]=ro(Se(()=>{cs(n);const p=n._s.get(e);return c[f].call(p,p)})),a),{}))}return d=zu(e,o,t,n,r,!0),d}function zu(e,t,n={},r,s,i){let c;const l=_n({actions:{}},n),d={deep:!0};let o,u,a=[],f=[],p;const g=r.state.value[e];!i&&!g&&(r.state.value[e]={}),Re({});let v;function C(x){let E;o=u=!1,typeof x=="function"?(x(r.state.value[e]),E={type:Dr.patchFunction,storeId:e,events:p}):(ei(r.state.value[e],x),E={type:Dr.patchObject,payload:x,storeId:e,events:p});const I=v=Symbol();Jt().then(()=>{v===I&&(o=!0)}),u=!0,nr(a,E,r.state.value[e])}const y=i?function(){const{state:E}=n,I=E?E():{};this.$patch(M=>{_n(M,I)})}:Wu;function _(){c.stop(),a=[],f=[],r._s.delete(e)}function m(x,E){return function(){cs(r);const I=Array.from(arguments),M=[],A=[];function L(T){M.push(T)}function q(T){A.push(T)}nr(f,{args:I,name:x,store:b,after:L,onError:q});let Z;try{Z=E.apply(this&&this.$id===e?this:b,I)}catch(T){throw nr(A,T),T}return Z instanceof Promise?Z.then(T=>(nr(M,T),T)).catch(T=>(nr(A,T),Promise.reject(T))):(nr(M,Z),Z)}}const h={_p:r,$id:e,$onAction:Nl.bind(null,f),$patch:C,$reset:y,$subscribe(x,E={}){const I=Nl(a,x,E.detached,()=>M()),M=c.run(()=>un(()=>r.state.value[e],A=>{(E.flush==="sync"?u:o)&&x({storeId:e,type:Dr.direct,events:p},A)},_n({},d,E)));return I},$dispose:_},b=Xt(h);r._s.set(e,b);const P=(r._a&&r._a.runWithContext||eh)(()=>r._e.run(()=>(c=fi()).run(t)));for(const x in P){const E=P[x];if(De(E)&&!rh(E)||ln(E))i||(g&&nh(E)&&(De(E)?E.value=g[x]:ei(E,g[x])),r.state.value[e][x]=E);else if(typeof E=="function"){const I=m(x,E);P[x]=I,l.actions[x]=E}}return _n(b,P),_n(_e(b),P),Object.defineProperty(b,"$state",{get:()=>r.state.value[e],set:x=>{C(E=>{_n(E,x)})}}),r._p.forEach(x=>{_n(b,c.run(()=>x({store:b,app:r._a,pinia:r,options:l})))}),g&&i&&n.hydrate&&n.hydrate(b.$state,g),o=!0,u=!0,b}function sh(e,t,n){let r,s;const i=typeof t=="function";typeof e=="string"?(r=e,s=i?n:t):(s=e,r=e.id);function c(l,d){const o=Gc();return l=l||(o?$t(Uu,null):null),l&&cs(l),l=Hu,l._s.has(r)||(i?zu(r,t,s,l):oh(r,s,l)),l._s.get(r)}return c.$id=r,c}const ih={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},lh=W("path",{d:"M32 18.45 16 6.03 0 18.45V13.4L16 .96 32 13.4zM28 18v12h-8v-8h-8v8H4V18l12-9z"},null,-1),ch=[lh];function Ku(e,t){return G(),ce("svg",ih,[...ch])}const qu={render:Ku},uh=Object.freeze(Object.defineProperty({__proto__:null,default:qu,render:Ku},Symbol.toStringTag,{value:"Module"}));/*!
6
+ * vue-router v4.2.5
7
+ * (c) 2023 Eduardo San Martin Morote
8
+ * @license MIT
9
+ */const or=typeof window<"u";function ah(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Oe=Object.assign;function Ms(e,t){const n={};for(const r in t){const s=t[r];n[r]=Ht(s)?s.map(e):e(s)}return n}const Vr=()=>{},Ht=Array.isArray,fh=/\/$/,dh=e=>e.replace(fh,"");function As(e,t,n="/"){let r,s={},i="",c="";const l=t.indexOf("#");let d=t.indexOf("?");return l<d&&l>=0&&(d=-1),d>-1&&(r=t.slice(0,d),i=t.slice(d+1,l>-1?l:t.length),s=e(i)),l>-1&&(r=r||t.slice(0,l),c=t.slice(l,t.length)),r=gh(r??t,n),{fullPath:r+(i&&"?")+i+c,path:r,query:s,hash:c}}function ph(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function jl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function hh(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&gr(t.matched[r],n.matched[s])&&Ju(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function gr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ju(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!mh(e[n],t[n]))return!1;return!0}function mh(e,t){return Ht(e)?Dl(e,t):Ht(t)?Dl(t,e):e===t}function Dl(e,t){return Ht(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function gh(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,c,l;for(c=0;c<r.length;c++)if(l=r[c],l!==".")if(l==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(c-(c===r.length?1:0)).join("/")}var Gr;(function(e){e.pop="pop",e.push="push"})(Gr||(Gr={}));var Hr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Hr||(Hr={}));function vh(e){if(!e)if(or){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),dh(e)}const yh=/^[^#]+#/;function _h(e,t){return e.replace(yh,"#")+t}function bh(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const us=()=>({left:window.pageXOffset,top:window.pageYOffset});function wh(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=bh(s,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 Vl(e,t){return(history.state?history.state.position-t:-1)+e}const ti=new Map;function Ch(e,t){ti.set(e,t)}function xh(e){const t=ti.get(e);return ti.delete(e),t}let kh=()=>location.protocol+"//"+location.host;function Yu(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let l=s.includes(e.slice(i))?e.slice(i).length:1,d=s.slice(l);return d[0]!=="/"&&(d="/"+d),jl(d,"")}return jl(n,e)+r+s}function Eh(e,t,n,r){let s=[],i=[],c=null;const l=({state:f})=>{const p=Yu(e,location),g=n.value,v=t.value;let C=0;if(f){if(n.value=p,t.value=f,c&&c===g){c=null;return}C=v?f.position-v.position:0}else r(p);s.forEach(y=>{y(n.value,g,{delta:C,type:Gr.pop,direction:C?C>0?Hr.forward:Hr.back:Hr.unknown})})};function d(){c=n.value}function o(f){s.push(f);const p=()=>{const g=s.indexOf(f);g>-1&&s.splice(g,1)};return i.push(p),p}function u(){const{history:f}=window;f.state&&f.replaceState(Oe({},f.state,{scroll:us()}),"")}function a(){for(const f of i)f();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:d,listen:o,destroy:a}}function Hl(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?us():null}}function Sh(e){const{history:t,location:n}=window,r={value:Yu(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(d,o,u){const a=e.indexOf("#"),f=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+d:kh()+e+d;try{t[u?"replaceState":"pushState"](o,"",f),s.value=o}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function c(d,o){const u=Oe({},t.state,Hl(s.value.back,d,s.value.forward,!0),o,{position:s.value.position});i(d,u,!0),r.value=d}function l(d,o){const u=Oe({},s.value,t.state,{forward:d,scroll:us()});i(u.current,u,!0);const a=Oe({},Hl(r.value,d,null),{position:u.position+1},o);i(d,a,!1),r.value=d}return{location:r,state:s,push:l,replace:c}}function Ph(e){e=vh(e);const t=Sh(e),n=Eh(e,t.state,t.location,t.replace);function r(i,c=!0){c||n.pauseListeners(),history.go(i)}const s=Oe({location:"",base:e,go:r,createHref:_h.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Oh(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Ph(e)}function Rh(e){return typeof e=="string"||e&&typeof e=="object"}function Zu(e){return typeof e=="string"||typeof e=="symbol"}const vn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Xu=Symbol("");var Ul;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ul||(Ul={}));function vr(e,t){return Oe(new Error,{type:e,[Xu]:!0},t)}function tn(e,t){return e instanceof Error&&Xu in e&&(t==null||!!(e.type&t))}const Wl="[^/]+?",Ih={sensitive:!1,strict:!1,start:!0,end:!0},Mh=/[.+*?^${}()[\]/\\]/g;function Ah(e,t){const n=Oe({},Ih,t),r=[];let s=n.start?"^":"";const i=[];for(const o of e){const u=o.length?[]:[90];n.strict&&!o.length&&(s+="/");for(let a=0;a<o.length;a++){const f=o[a];let p=40+(n.sensitive?.25:0);if(f.type===0)a||(s+="/"),s+=f.value.replace(Mh,"\\$&"),p+=40;else if(f.type===1){const{value:g,repeatable:v,optional:C,regexp:y}=f;i.push({name:g,repeatable:v,optional:C});const _=y||Wl;if(_!==Wl){p+=10;try{new RegExp(`(${_})`)}catch(h){throw new Error(`Invalid custom RegExp for param "${g}" (${_}): `+h.message)}}let m=v?`((?:${_})(?:/(?:${_}))*)`:`(${_})`;a||(m=C&&o.length<2?`(?:/${m})`:"/"+m),C&&(m+="?"),s+=m,p+=20,C&&(p+=-8),v&&(p+=-20),_===".*"&&(p+=-50)}u.push(p)}r.push(u)}if(n.strict&&n.end){const o=r.length-1;r[o][r[o].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&(s+="(?:/|$)");const c=new RegExp(s,n.sensitive?"":"i");function l(o){const u=o.match(c),a={};if(!u)return null;for(let f=1;f<u.length;f++){const p=u[f]||"",g=i[f-1];a[g.name]=p&&g.repeatable?p.split("/"):p}return a}function d(o){let u="",a=!1;for(const f of e){(!a||!u.endsWith("/"))&&(u+="/"),a=!1;for(const p of f)if(p.type===0)u+=p.value;else if(p.type===1){const{value:g,repeatable:v,optional:C}=p,y=g in o?o[g]:"";if(Ht(y)&&!v)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const _=Ht(y)?y.join("/"):y;if(!_)if(C)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):a=!0);else throw new Error(`Missing required param "${g}"`);u+=_}}return u||"/"}return{re:c,score:r,keys:i,parse:l,stringify:d}}function Th(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;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 $h(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const i=Th(r[n],s[n]);if(i)return i;n++}if(Math.abs(s.length-r.length)===1){if(zl(r))return 1;if(zl(s))return-1}return s.length-r.length}function zl(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Fh={type:0,value:""},Lh=/[a-zA-Z0-9_]/;function Bh(e){if(!e)return[[]];if(e==="/")return[[Fh]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${o}": ${p}`)}let n=0,r=n;const s=[];let i;function c(){i&&s.push(i),i=[]}let l=0,d,o="",u="";function a(){o&&(n===0?i.push({type:0,value:o}):n===1||n===2||n===3?(i.length>1&&(d==="*"||d==="+")&&t(`A repeatable param (${o}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:o,regexp:u,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):t("Invalid state to consume buffer"),o="")}function f(){o+=d}for(;l<e.length;){if(d=e[l++],d==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:d==="/"?(o&&a(),c()):d===":"?(a(),n=1):f();break;case 4:f(),n=r;break;case 1:d==="("?n=2:Lh.test(d)?f():(a(),n=0,d!=="*"&&d!=="?"&&d!=="+"&&l--);break;case 2:d===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+d:n=3:u+=d;break;case 3:a(),n=0,d!=="*"&&d!=="?"&&d!=="+"&&l--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${o}"`),a(),c(),s}function Nh(e,t,n){const r=Ah(Bh(e.path),n),s=Oe(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function jh(e,t){const n=[],r=new Map;t=Jl({strict:!1,end:!0,sensitive:!1},t);function s(u){return r.get(u)}function i(u,a,f){const p=!f,g=Dh(u);g.aliasOf=f&&f.record;const v=Jl(t,u),C=[g];if("alias"in u){const m=typeof u.alias=="string"?[u.alias]:u.alias;for(const h of m)C.push(Oe({},g,{components:f?f.record.components:g.components,path:h,aliasOf:f?f.record:g}))}let y,_;for(const m of C){const{path:h}=m;if(a&&h[0]!=="/"){const b=a.record.path,O=b[b.length-1]==="/"?"":"/";m.path=a.record.path+(h&&O+h)}if(y=Nh(m,a,v),f?f.alias.push(y):(_=_||y,_!==y&&_.alias.push(y),p&&u.name&&!ql(y)&&c(u.name)),g.children){const b=g.children;for(let O=0;O<b.length;O++)i(b[O],y,f&&f.children[O])}f=f||y,(y.record.components&&Object.keys(y.record.components).length||y.record.name||y.record.redirect)&&d(y)}return _?()=>{c(_)}:Vr}function c(u){if(Zu(u)){const a=r.get(u);a&&(r.delete(u),n.splice(n.indexOf(a),1),a.children.forEach(c),a.alias.forEach(c))}else{const a=n.indexOf(u);a>-1&&(n.splice(a,1),u.record.name&&r.delete(u.record.name),u.children.forEach(c),u.alias.forEach(c))}}function l(){return n}function d(u){let a=0;for(;a<n.length&&$h(u,n[a])>=0&&(u.record.path!==n[a].record.path||!Gu(u,n[a]));)a++;n.splice(a,0,u),u.record.name&&!ql(u)&&r.set(u.record.name,u)}function o(u,a){let f,p={},g,v;if("name"in u&&u.name){if(f=r.get(u.name),!f)throw vr(1,{location:u});v=f.record.name,p=Oe(Kl(a.params,f.keys.filter(_=>!_.optional).map(_=>_.name)),u.params&&Kl(u.params,f.keys.map(_=>_.name))),g=f.stringify(p)}else if("path"in u)g=u.path,f=n.find(_=>_.re.test(g)),f&&(p=f.parse(g),v=f.record.name);else{if(f=a.name?r.get(a.name):n.find(_=>_.re.test(a.path)),!f)throw vr(1,{location:u,currentLocation:a});v=f.record.name,p=Oe({},a.params,u.params),g=f.stringify(p)}const C=[];let y=f;for(;y;)C.unshift(y.record),y=y.parent;return{name:v,path:g,params:p,matched:C,meta:Hh(C)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:o,removeRoute:c,getRoutes:l,getRecordMatcher:s}}function Kl(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Dh(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Vh(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 Vh(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function ql(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Hh(e){return e.reduce((t,n)=>Oe(t,n.meta),{})}function Jl(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Gu(e,t){return t.children.some(n=>n===e||Gu(e,n))}const Qu=/#/g,Uh=/&/g,Wh=/\//g,zh=/=/g,Kh=/\?/g,ea=/\+/g,qh=/%5B/g,Jh=/%5D/g,ta=/%5E/g,Yh=/%60/g,na=/%7B/g,Zh=/%7C/g,ra=/%7D/g,Xh=/%20/g;function Bi(e){return encodeURI(""+e).replace(Zh,"|").replace(qh,"[").replace(Jh,"]")}function Gh(e){return Bi(e).replace(na,"{").replace(ra,"}").replace(ta,"^")}function ni(e){return Bi(e).replace(ea,"%2B").replace(Xh,"+").replace(Qu,"%23").replace(Uh,"%26").replace(Yh,"`").replace(na,"{").replace(ra,"}").replace(ta,"^")}function Qh(e){return ni(e).replace(zh,"%3D")}function em(e){return Bi(e).replace(Qu,"%23").replace(Kh,"%3F")}function tm(e){return e==null?"":em(e).replace(Wh,"%2F")}function Do(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function nm(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<r.length;++s){const i=r[s].replace(ea," "),c=i.indexOf("="),l=Do(c<0?i:i.slice(0,c)),d=c<0?null:Do(i.slice(c+1));if(l in t){let o=t[l];Ht(o)||(o=t[l]=[o]),o.push(d)}else t[l]=d}return t}function Yl(e){let t="";for(let n in e){const r=e[n];if(n=Qh(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ht(r)?r.map(i=>i&&ni(i)):[r&&ni(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function rm(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ht(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const om=Symbol(""),Zl=Symbol(""),as=Symbol(""),oa=Symbol(""),ri=Symbol("");function Rr(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Cn(e,t,n,r,s){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((c,l)=>{const d=a=>{a===!1?l(vr(4,{from:n,to:t})):a instanceof Error?l(a):Rh(a)?l(vr(2,{from:t,to:a})):(i&&r.enterCallbacks[s]===i&&typeof a=="function"&&i.push(a),c())},o=e.call(r&&r.instances[s],t,n,d);let u=Promise.resolve(o);e.length<3&&(u=u.then(d)),u.catch(a=>l(a))})}function Ts(e,t,n,r){const s=[];for(const i of e)for(const c in i.components){let l=i.components[c];if(!(t!=="beforeRouteEnter"&&!i.instances[c]))if(sm(l)){const o=(l.__vccOpts||l)[t];o&&s.push(Cn(o,n,r,i,c))}else{let d=l();s.push(()=>d.then(o=>{if(!o)return Promise.reject(new Error(`Couldn't resolve component "${c}" at "${i.path}"`));const u=ah(o)?o.default:o;i.components[c]=u;const f=(u.__vccOpts||u)[t];return f&&Cn(f,n,r,i,c)()}))}}return s}function sm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Xl(e){const t=$t(as),n=$t(oa),r=Se(()=>t.resolve(se(e.to))),s=Se(()=>{const{matched:d}=r.value,{length:o}=d,u=d[o-1],a=n.matched;if(!u||!a.length)return-1;const f=a.findIndex(gr.bind(null,u));if(f>-1)return f;const p=Gl(d[o-2]);return o>1&&Gl(u)===p&&a[a.length-1].path!==p?a.findIndex(gr.bind(null,d[o-2])):f}),i=Se(()=>s.value>-1&&um(n.params,r.value.params)),c=Se(()=>s.value>-1&&s.value===n.matched.length-1&&Ju(n.params,r.value.params));function l(d={}){return cm(d)?t[se(e.replace)?"replace":"push"](se(e.to)).catch(Vr):Promise.resolve()}return{route:r,href:Se(()=>r.value.href),isActive:i,isExactActive:c,navigate:l}}const im=Le({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:Xl,setup(e,{slots:t}){const n=Xt(Xl(e)),{options:r}=$t(as),s=Se(()=>({[Ql(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ql(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:ss("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),lm=im;function cm(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 um(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Ht(s)||s.length!==r.length||r.some((i,c)=>i!==s[c]))return!1}return!0}function Gl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ql=(e,t,n)=>e??t??n,am=Le({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=$t(ri),s=Se(()=>e.route||r.value),i=$t(Zl,0),c=Se(()=>{let o=se(i);const{matched:u}=s.value;let a;for(;(a=u[o])&&!a.components;)o++;return o}),l=Se(()=>s.value.matched[c.value]);Lr(Zl,Se(()=>c.value+1)),Lr(om,l),Lr(ri,s);const d=Re();return un(()=>[d.value,l.value,e.name],([o,u,a],[f,p,g])=>{u&&(u.instances[a]=o,p&&p!==u&&o&&o===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),o&&u&&(!p||!gr(u,p)||!f)&&(u.enterCallbacks[a]||[]).forEach(v=>v(o))},{flush:"post"}),()=>{const o=s.value,u=e.name,a=l.value,f=a&&a.components[u];if(!f)return ec(n.default,{Component:f,route:o});const p=a.props[u],g=p?p===!0?o.params:typeof p=="function"?p(o):p:null,C=ss(f,Oe({},g,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(a.instances[u]=null)},ref:d}));return ec(n.default,{Component:C,route:o})||C}}});function ec(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const sa=am;function fm(e){const t=jh(e.routes,e),n=e.parseQuery||nm,r=e.stringifyQuery||Yl,s=e.history,i=Rr(),c=Rr(),l=Rr(),d=oo(vn);let o=vn;or&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ms.bind(null,F=>""+F),a=Ms.bind(null,tm),f=Ms.bind(null,Do);function p(F,X){let H,te;return Zu(F)?(H=t.getRecordMatcher(F),te=X):te=F,t.addRoute(te,H)}function g(F){const X=t.getRecordMatcher(F);X&&t.removeRoute(X)}function v(){return t.getRoutes().map(F=>F.record)}function C(F){return!!t.getRecordMatcher(F)}function y(F,X){if(X=Oe({},X||d.value),typeof F=="string"){const R=As(n,F,X.path),$=t.resolve({path:R.path},X),N=s.createHref(R.fullPath);return Oe(R,$,{params:f($.params),hash:Do(R.hash),redirectedFrom:void 0,href:N})}let H;if("path"in F)H=Oe({},F,{path:As(n,F.path,X.path).path});else{const R=Oe({},F.params);for(const $ in R)R[$]==null&&delete R[$];H=Oe({},F,{params:a(R)}),X.params=a(X.params)}const te=t.resolve(H,X),pe=F.hash||"";te.params=u(f(te.params));const w=ph(r,Oe({},F,{hash:Gh(pe),path:te.path})),k=s.createHref(w);return Oe({fullPath:w,hash:pe,query:r===Yl?rm(F.query):F.query||{}},te,{redirectedFrom:void 0,href:k})}function _(F){return typeof F=="string"?As(n,F,d.value.path):Oe({},F)}function m(F,X){if(o!==F)return vr(8,{from:X,to:F})}function h(F){return P(F)}function b(F){return h(Oe(_(F),{replace:!0}))}function O(F){const X=F.matched[F.matched.length-1];if(X&&X.redirect){const{redirect:H}=X;let te=typeof H=="function"?H(F):H;return typeof te=="string"&&(te=te.includes("?")||te.includes("#")?te=_(te):{path:te},te.params={}),Oe({query:F.query,hash:F.hash,params:"path"in te?{}:F.params},te)}}function P(F,X){const H=o=y(F),te=d.value,pe=F.state,w=F.force,k=F.replace===!0,R=O(H);if(R)return P(Oe(_(R),{state:typeof R=="object"?Oe({},pe,R.state):pe,force:w,replace:k}),X||H);const $=H;$.redirectedFrom=X;let N;return!w&&hh(r,te,H)&&(N=vr(16,{to:$,from:te}),Xe(te,te,!0,!1)),(N?Promise.resolve(N):I($,te)).catch(j=>tn(j)?tn(j,2)?j:We(j):J(j,$,te)).then(j=>{if(j){if(tn(j,2))return P(Oe({replace:k},_(j.to),{state:typeof j.to=="object"?Oe({},pe,j.to.state):pe,force:w}),X||$)}else j=A($,te,!0,k,pe);return M($,te,j),j})}function x(F,X){const H=m(F,X);return H?Promise.reject(H):Promise.resolve()}function E(F){const X=Ve.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext(F):F()}function I(F,X){let H;const[te,pe,w]=dm(F,X);H=Ts(te.reverse(),"beforeRouteLeave",F,X);for(const R of te)R.leaveGuards.forEach($=>{H.push(Cn($,F,X))});const k=x.bind(null,F,X);return H.push(k),He(H).then(()=>{H=[];for(const R of i.list())H.push(Cn(R,F,X));return H.push(k),He(H)}).then(()=>{H=Ts(pe,"beforeRouteUpdate",F,X);for(const R of pe)R.updateGuards.forEach($=>{H.push(Cn($,F,X))});return H.push(k),He(H)}).then(()=>{H=[];for(const R of w)if(R.beforeEnter)if(Ht(R.beforeEnter))for(const $ of R.beforeEnter)H.push(Cn($,F,X));else H.push(Cn(R.beforeEnter,F,X));return H.push(k),He(H)}).then(()=>(F.matched.forEach(R=>R.enterCallbacks={}),H=Ts(w,"beforeRouteEnter",F,X),H.push(k),He(H))).then(()=>{H=[];for(const R of c.list())H.push(Cn(R,F,X));return H.push(k),He(H)}).catch(R=>tn(R,8)?R:Promise.reject(R))}function M(F,X,H){l.list().forEach(te=>E(()=>te(F,X,H)))}function A(F,X,H,te,pe){const w=m(F,X);if(w)return w;const k=X===vn,R=or?history.state:{};H&&(te||k?s.replace(F.fullPath,Oe({scroll:k&&R&&R.scroll},pe)):s.push(F.fullPath,pe)),d.value=F,Xe(F,X,H,k),We()}let L;function q(){L||(L=s.listen((F,X,H)=>{if(!Wt.listening)return;const te=y(F),pe=O(te);if(pe){P(Oe(pe,{replace:!0}),te).catch(Vr);return}o=te;const w=d.value;or&&Ch(Vl(w.fullPath,H.delta),us()),I(te,w).catch(k=>tn(k,12)?k:tn(k,2)?(P(k.to,te).then(R=>{tn(R,20)&&!H.delta&&H.type===Gr.pop&&s.go(-1,!1)}).catch(Vr),Promise.reject()):(H.delta&&s.go(-H.delta,!1),J(k,te,w))).then(k=>{k=k||A(te,w,!1),k&&(H.delta&&!tn(k,8)?s.go(-H.delta,!1):H.type===Gr.pop&&tn(k,20)&&s.go(-1,!1)),M(te,w,k)}).catch(Vr)}))}let Z=Rr(),T=Rr(),K;function J(F,X,H){We(F);const te=T.list();return te.length?te.forEach(pe=>pe(F,X,H)):console.error(F),Promise.reject(F)}function $e(){return K&&d.value!==vn?Promise.resolve():new Promise((F,X)=>{Z.add([F,X])})}function We(F){return K||(K=!F,q(),Z.list().forEach(([X,H])=>F?H(F):X()),Z.reset()),F}function Xe(F,X,H,te){const{scrollBehavior:pe}=e;if(!or||!pe)return Promise.resolve();const w=!H&&xh(Vl(F.fullPath,0))||(te||!H)&&history.state&&history.state.scroll||null;return Jt().then(()=>pe(F,X,w)).then(k=>k&&wh(k)).catch(k=>J(k,F,X))}const Fe=F=>s.go(F);let Ke;const Ve=new Set,Wt={currentRoute:d,listening:!0,addRoute:p,removeRoute:g,hasRoute:C,getRoutes:v,resolve:y,options:e,push:h,replace:b,go:Fe,back:()=>Fe(-1),forward:()=>Fe(1),beforeEach:i.add,beforeResolve:c.add,afterEach:l.add,onError:T.add,isReady:$e,install(F){const X=this;F.component("RouterLink",lm),F.component("RouterView",sa),F.config.globalProperties.$router=X,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>se(d)}),or&&!Ke&&d.value===vn&&(Ke=!0,h(s.location).catch(pe=>{}));const H={};for(const pe in vn)Object.defineProperty(H,pe,{get:()=>d.value[pe],enumerable:!0});F.provide(as,X),F.provide(oa,mi(H)),F.provide(ri,d);const te=F.unmount;Ve.add(F),F.unmount=function(){Ve.delete(F),Ve.size<1&&(o=vn,L&&L(),L=null,d.value=vn,Ke=!1,K=!1),te()}}};function He(F){return F.reduce((X,H)=>X.then(()=>E(H)),Promise.resolve())}return Wt}function dm(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let c=0;c<i;c++){const l=t.matched[c];l&&(e.matched.find(o=>gr(o,l))?r.push(l):n.push(l));const d=e.matched[c];d&&(t.matched.find(o=>gr(o,d))||s.push(d))}return[n,r,s]}function Ni(){return $t(as)}function ia(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 pm(e){const t=new Date(e*1e3),n=new Date,r=t.getTime()-n.getTime(),s=Math.abs(r),i=new Intl.RelativeTimeFormat("en",{numeric:"auto"});if(s<=5e3)return"now";if(s<=6e4)return i.format(Math.round(r/1e3),"second").replace(" ago","").replaceAll(" "," ");if(s<=36e5)return i.format(Math.round(r/6e4),"minute").replace("utes","").replace("ute","").replaceAll(" "," ");if(s<=864e5)return i.format(Math.round(r/36e5),"hour").replaceAll(" "," ");if(s<=6048e5)return i.format(Math.round(r/864e5),"day").replaceAll(" "," ");let c=t.toLocaleDateString("en-ie",{weekday:"short",year:"numeric",month:"short",day:"numeric"}).replace("Sept","Sep");return c.length===14&&(c=c.replace(" ","  ")),c=c.replaceAll(" "," ").replace(" "," "),c=c.slice(0,-4)+c.slice(-2),c}const Qr=new Intl.Collator("en",{sensitivity:"base",numeric:!0,usage:"search"});function hm(e){return"^"+e.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase()+"$"}function mm(e){const t=e.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase();return{based:t,words:t.split(/\s+/)}}function gm(e,t){const{based:n,words:r}=t;return e.includes(n)||r&&r.every(s=>e.includes(s))}class ji{constructor(t={}){en(this,"_name","");en(this,"loc","");en(this,"key","");en(this,"size",0);en(this,"mtime",0);en(this,"haystack","");en(this,"dir",!1);Object.assign(this,t)}get name(){return this._name}set name(t){if(t.includes("/")||t.startsWith("."))throw Error(`Invalid name: ${t}`);this._name=t,this.haystack=hm(t)}get sizedisp(){return ia(this.size)}get modified(){return pm(this.mtime)}get url(){const t=this.loc?`${this.loc}/${this.name}`:this.name;return this.dir?"/#/"+`${t}/`.replaceAll("#","%23"):`/files/${t}`.replaceAll("?","%3F").replaceAll("#","%23")}get urlrouter(){return this.url.replace(/^\/#/,"")}get img(){var n;const t=(n=this.name.split(".").pop())==null?void 0:n.toLowerCase();return["jpg","jpeg","png","gif","webp","avif","svg"].includes(t||"")}get previewable(){var n;if(this.img)return!0;const t=(n=this.name.split(".").pop())==null?void 0:n.toLowerCase();return["mp4","mkv","webm","ogg","mp3","flac","aac","pdf"].includes(t||"")}get previewurl(){return this.url.replace(/^\/files/,"/preview")}get ext(){const t=this.name.split(".").pop();return t?t.toLowerCase():""}}class vm{async post(t,n){const r=await fetch(t,{method:"POST",headers:{accept:"application/json","content-type":"application/json"},body:n!==void 0?JSON.stringify(n):void 0});let s;try{s=await r.json()}catch{throw new tc(r.status,`🛑 ${r.status} ${r.statusText}`)}if("error"in s)throw new tc(s.error.code,s.error.message);return s}}const Di=new vm;class tc extends Error{constructor(n,r){super(r);en(this,"code");this.code=n}}const ym="/login",_m="/logout",bm="/password-change";async function wm(e,t){return await Di.post(ym,{username:e,password:t})}async function Cm(){return await Di.post(_m)}async function xm(e,t,n){return await Di.post(bm,{username:e,passwordChange:t,password:n})}const eo="/api/control",km="/api/upload",Em="/api/watch";let qt=[],Ro=500,Ur=null;const Sm=()=>{const e=localStorage["cista-files"];if(!e)return!1;const t=ze();try{return qt=JSON.parse(e),t.updateRoot(qt),console.log(`Loaded session with ${qt.length} items cached`),!0}catch(n){return console.log("Loading session failed",n),!1}},la=()=>{localStorage["cista-files"]=JSON.stringify(qt)},Jn=(e,t)=>{const n=new WebSocket(new URL(e,location.origin.replace(/^http/,"ws")));for(const[r,s]of Object.entries(t))n.addEventListener(r,s);return n},Vi=()=>{Nn!==null&&(clearTimeout(Nn),Nn=null);const e=ze();e.error!=="Reconnecting..."&&(e.error="Connecting..."),console.log(e.error),Ur=Jn(Em,{message:Om,close:ca}),Ur.addEventListener("message",t=>{if(e.connected)return;const n=JSON.parse(t.data);if("error"in n){n.error.code===401?(e.user.isLoggedIn=!1,e.dialog="login"):e.error=n.error.message;return}"server"in n&&(console.log("Connected to backend",n),e.server=n.server,e.connected=!0,Ro=500,e.error="",n.user?e.login(n.user.username,n.user.privileged):e.isUserLogged&&e.logout(),!n.server.public&&!n.user&&(e.dialog="login"))})},Pm=()=>{Ur&&(Ur.close(),Ur=null)};let Nn=null;const ca=e=>{const t=ze();if(t.connected&&(console.warn("Disconnected from server",e),t.connected=!1,t.error="Reconnecting..."),Nn!==null&&clearTimeout(Nn),t.dialog==="login"){Nn=setTimeout(ca,100);return}Ro=Math.min(5e3,Ro+500),Nn=setTimeout(Vi,Ro)},Om=e=>{const t=JSON.parse(e.data);switch(!0){case!!t.root:Rm(t);break;case!!t.update:Im(t);break;case!!t.space:console.log("Watch space",t.space);break;case!!t.error:Mm(t);break}};function Rm({root:e}){const t=ze();console.log("Watch root",e),t.updateRoot(e),qt=e,la()}function Im(e){const t=ze(),n=e.update;if(console.log("Watch update",n),!qt)return console.error("Watch update before root");let r=[],s=0;for(const[i,c]of n)i==="k"?(r.push(...qt.slice(s,s+c)),s+=c):i==="d"?s+=c:i==="i"?r.push(...c):console.log("Unknown update action",i,c);if(s!=qt.length)throw Error(`Tree update out of sync, number of entries mismatch: got ${s}, expected ${qt.length}, new tree ${r.length}`);t.updateRoot(r),qt=r,la()}function Mm(e){const t=ze();if(e.error.code===401){t.user.isLoggedIn=!1,t.dialog="login";return}}const Am={name:(e,t)=>Qr.compare(e.name,t.name),modified:(e,t)=>t.mtime-e.mtime,size:(e,t)=>t.size-e.size},oi=(e,t)=>{if(!t)return e;const n=[...e];return n.sort(Am[t]),n},ze=sh({id:"main",state:()=>({document:oo([]),selected:new Set([]),query:"",fileExplorer:null,error:"",connected:!1,cursor:"",server:{},dialog:"",prefs:{gallery:!1,sortListing:"",sortFiltered:""},user:{username:"",privileged:!1,isLoggedIn:!1}}),persist:{paths:["prefs","cursor","selected"],serializer:{deserialize:e=>{const t=JSON.parse(e);return t.selected=new Set(t.selected),t},serialize:e=>(e.selected=Array.from(e.selected),JSON.stringify(e))}},actions:{updateRoot(e){const t=[];let n=[];for(const[r,s,i,c,l,d]of e)n=n.slice(0,r-1),t.push(new ji({name:s,loc:r?n.join("/"):"/",key:i,size:l,mtime:c,dir:!d})),n.push(s);this.document=t},login(e,t){this.user.username=e,this.user.privileged=t,this.user.isLoggedIn=!0,this.dialog="",this.connected||Vi()},loginDialog(){this.dialog="login"},async logout(){console.log("Logout"),await Cm(),this.$reset(),localStorage.clear(),history.go()},toggleSort(e){this.query?this.prefs.sortFiltered=this.prefs.sortFiltered===e?"":e:this.prefs.sortListing=this.prefs.sortListing===e?"":e},sort(e){this.query?this.prefs.sortFiltered=e:this.prefs.sortListing=e},focusBreadcrumb(){document.querySelector(".breadcrumb").focus()}},getters:{sortOrder(){return this.query?this.prefs.sortFiltered:this.prefs.sortListing},isUserLogged(){return this.user.isLoggedIn},recentDocuments(){return oi(this.document,"modified")},selectedFiles(){const e=this.selected,t=new Set,n={missing:new Set,docs:{},keys:[],recursive:[]};for(const i of this.document)e.has(i.key)&&(t.add(i.key),n.keys.push(i.key),n.docs[i.key]=i);for(const i of e)t.has(i)||n.missing.add(i);const r=new Set;function s(i,c,l){if(!l.dir&&r.has(i))throw Error(`Multiple selections conflict for: ${i}`);r.add(i),n.recursive.push([i,c,l])}for(const i of n.keys){const c=n.docs[i],l=c.loc?`${c.loc}/${c.name}`:c.name,d=c.loc.length;s(c.name,l,c);for(const o of this.document)if(o.loc===l||o.loc.startsWith(l)&&o.loc[l.length]==="/"){const u=o.loc?`${o.loc}/${o.name}`:o.name,a=u.slice(d);s(a,u,o)}}return n.recursive.sort((i,c)=>Qr.compare(i[0],c[0])),n}}}),ua=e=>{const t=ze(),n=e.join("/");return t.document.some(r=>(r.loc?`${r.loc}/${r.name}`:r.name)===n)},Tm=["aria-current"],$m=["href","aria-current","onClick","title"],Hi=Le({__name:"BreadCrumb",props:{path:{},primary:{type:Boolean}},setup(e){const t=Ni(),n=[],r=(u,a)=>{a&&(n[u]=a)};Oi(()=>{n.length=1});const s=e,i=Re([]),c=u=>u==s.path.length?"location":void 0,l=()=>{Jt(()=>{const u=s.path.length;u<n.length&&n[u].focus()})},d=u=>{if(!n[u])throw Error(`No link at index ${u} (path: ${s.path})`);const f=u?`/${i.value.slice(0,u).join("/")}/`:"/",p=i.value.length?`/${i.value.join("/")}/`:"/",g=decodeURIComponent(location.hash.slice(1).split("//")[0]),v=f.replaceAll("?","%3F").replaceAll("#","%23");c(u)?(i.value.splice(u),t.push(v)):p.startsWith(g)?t.replace(v):t.push(v)},o=u=>{const a=s.path.length+u;a<0||a>i.value.length||d(a)};return Yt(()=>{const u=i.value.slice(0,s.path.length);if(!u.every((f,p)=>f===s.path[p]))i.value=s.path;else if(s.path.length>u.length)i.value=u.concat(s.path.slice(u.length));else for(let f=s.path.length;f<i.value.length;++f)if(!ua(i.value.slice(0,f+1))){i.value=i.value.slice(0,f);break}s.primary&&Jt(()=>{const f=document.activeElement;(!f||[...n,document.body].includes(f))&&l()})}),(u,a)=>(G(),ce("nav",{class:"breadcrumb","aria-label":"Breadcrumb",onKeydown:[a[1]||(a[1]=Hn(ot(f=>o(-1),["stop"]),["left"])),a[2]||(a[2]=Hn(ot(f=>o(1),["stop"]),["right"]))],onKeyup:a[3]||(a[3]=Hn(f=>o(0),["enter"])),onFocus:l,tabindex:"0"},[W("a",{href:"#/",ref:f=>r(0,f),class:vt(["home",{current:!!c(0)}]),"aria-current":c(0),onClick:a[0]||(a[0]=ot(f=>d(0),["prevent"])),title:"/"},[(G(),st(Xo(se(qu))))],10,Tm),(G(!0),ce(Ee,null,ns(i.value,(f,p)=>(G(),ce("a",{key:p,href:`/#/${i.value.slice(0,p+1).join("/")}/`,class:vt({current:!!c(p+1)}),"aria-current":c(p+1),onClick:ot(g=>d(p+1),["prevent"]),ref_for:!0,ref:g=>r(p+1,g),title:`/${i.value.slice(0,p+1).join("/")}`},Ge(f),11,$m))),128))],32))}});const Fm="modulepreload",Lm=function(e){return"/"+e},nc={},re=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Lm(i),i in nc)return;nc[i]=!0;const c=i.endsWith(".css"),l=c?'[rel="stylesheet"]':"";if(!!r)for(let u=s.length-1;u>=0;u--){const a=s[u];if(a.href===i&&(!c||a.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const o=document.createElement("link");if(o.rel=c?"stylesheet":Fm,c||(o.as="script",o.crossOrigin=""),o.href=i,document.head.appendChild(o),c)return new Promise((u,a)=>{o.addEventListener("load",u),o.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i})},Bm=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((r,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+t)))})},Nm={class:"action-button"},co=Le({__name:"SvgButton",props:{name:{}},setup(e){const t=e,n=jc(()=>Bm(Object.assign({"../assets/svg/add-file.svg":()=>re(()=>import("./add-file-e19e18ff.js"),[]),"../assets/svg/add-folder.svg":()=>re(()=>import("./add-folder-cf930a27.js"),[]),"../assets/svg/arrow.svg":()=>re(()=>import("./arrow-f09bf4bc.js"),[]),"../assets/svg/arrows-h.svg":()=>re(()=>import("./arrows-h-74714fc1.js"),[]),"../assets/svg/arrows-v.svg":()=>re(()=>import("./arrows-v-900e3e20.js"),[]),"../assets/svg/check.svg":()=>re(()=>import("./check-5d5030f9.js"),[]),"../assets/svg/code.svg":()=>re(()=>import("./code-08d0327a.js"),[]),"../assets/svg/cog.svg":()=>re(()=>Promise.resolve().then(()=>tg),void 0),"../assets/svg/copy.svg":()=>re(()=>import("./copy-d4e131a3.js"),[]),"../assets/svg/create-file.svg":()=>re(()=>import("./create-file-7ee36655.js"),[]),"../assets/svg/create-folder.svg":()=>re(()=>import("./create-folder-4baad31c.js"),[]),"../assets/svg/cross.svg":()=>re(()=>import("./cross-5dc70d0a.js"),[]),"../assets/svg/disk.svg":()=>re(()=>import("./disk-1c8c6bb2.js"),[]),"../assets/svg/download.svg":()=>re(()=>import("./download-4c58df40.js"),[]),"../assets/svg/exclamation.svg":()=>re(()=>import("./exclamation-b23fc5a1.js"),[]),"../assets/svg/eye.svg":()=>re(()=>import("./eye-fc97097a.js"),[]),"../assets/svg/find.svg":()=>re(()=>import("./find-9f5d36c7.js"),[]),"../assets/svg/fullscreen.svg":()=>re(()=>import("./fullscreen-72bac89d.js"),[]),"../assets/svg/github.svg":()=>re(()=>import("./github-8781f34a.js"),[]),"../assets/svg/home.svg":()=>re(()=>Promise.resolve().then(()=>uh),void 0),"../assets/svg/info.svg":()=>re(()=>import("./info-81c1e2fa.js"),[]),"../assets/svg/link.svg":()=>re(()=>import("./link-ddc2f9ba.js"),[]),"../assets/svg/logo.svg":()=>re(()=>import("./logo-10d7b218.js"),[]),"../assets/svg/loop.svg":()=>re(()=>import("./loop-a579040b.js"),[]),"../assets/svg/menu.svg":()=>re(()=>import("./menu-cb4bdef2.js"),[]),"../assets/svg/next.svg":()=>re(()=>import("./next-bb1c5152.js"),[]),"../assets/svg/open.svg":()=>re(()=>import("./open-f8e4da33.js"),[]),"../assets/svg/paste.svg":()=>re(()=>import("./paste-0bef6dfd.js"),[]),"../assets/svg/pause.svg":()=>re(()=>import("./pause-27898a74.js"),[]),"../assets/svg/pencil.svg":()=>re(()=>import("./pencil-19d33c49.js"),[]),"../assets/svg/play.svg":()=>re(()=>import("./play-fe6706ce.js"),[]),"../assets/svg/plus.svg":()=>re(()=>import("./plus-ab9d4dbd.js"),[]),"../assets/svg/previous.svg":()=>re(()=>import("./previous-5be4e762.js"),[]),"../assets/svg/reload.svg":()=>re(()=>import("./reload-84455f3f.js"),[]),"../assets/svg/rename.svg":()=>re(()=>import("./rename-88ab1b4d.js"),[]),"../assets/svg/scissors.svg":()=>re(()=>import("./scissors-1266cf56.js"),[]),"../assets/svg/shuffle.svg":()=>re(()=>import("./shuffle-0412a143.js"),[]),"../assets/svg/signin.svg":()=>re(()=>import("./signin-dcc16c88.js"),[]),"../assets/svg/signout.svg":()=>re(()=>import("./signout-935b6b65.js"),[]),"../assets/svg/skip.svg":()=>re(()=>import("./skip-adeae5b8.js"),[]),"../assets/svg/spinner.svg":()=>re(()=>import("./spinner-7c5e1e66.js"),[]),"../assets/svg/stop.svg":()=>re(()=>import("./stop-6ec4fac4.js"),[]),"../assets/svg/trash.svg":()=>re(()=>import("./trash-218fd3df.js"),[]),"../assets/svg/triangle.svg":()=>re(()=>import("./triangle-40a425a9.js"),[]),"../assets/svg/unfullscreen.svg":()=>re(()=>import("./unfullscreen-3d51fed5.js"),[]),"../assets/svg/up-arrow.svg":()=>re(()=>import("./up-arrow-af385124.js"),[]),"../assets/svg/upload-cloud.svg":()=>re(()=>import("./upload-cloud-68d0fe9f.js"),[]),"../assets/svg/user-cog.svg":()=>re(()=>import("./user-cog-bca0b085.js"),[]),"../assets/svg/user.svg":()=>re(()=>import("./user-dd4fef53.js"),[]),"../assets/svg/volume-high.svg":()=>re(()=>import("./volume-high-0f8f0e3d.js"),[]),"../assets/svg/volume-low.svg":()=>re(()=>import("./volume-low-b1bd663e.js"),[]),"../assets/svg/volume-medium.svg":()=>re(()=>import("./volume-medium-cd88f329.js"),[]),"../assets/svg/volume-mute.svg":()=>re(()=>import("./volume-mute-458a2f48.js"),[]),"../assets/svg/window-cross.svg":()=>re(()=>import("./window-cross-b0bd1b60.js"),[]),"../assets/svg/window.svg":()=>re(()=>import("./window-b63b3c5a.js"),[]),"../assets/svg/wordwrap.svg":()=>re(()=>import("./wordwrap-26b55346.js"),[]),"../assets/svg/zoomin.svg":()=>re(()=>import("./zoomin-cb10ed9f.js"),[]),"../assets/svg/zoomout.svg":()=>re(()=>import("./zoomout-90bcc471.js"),[])}),`../assets/svg/${t.name}.svg`));return(r,s)=>(G(),ce("button",Nm,[(G(),st(Xo(se(n)))),lo(r.$slots,"default")]))}});const jm={class:"statustext"},Dm={key:0,class:"index"},Vm={class:"filename"},Hm={key:0,class:"percent"},Um={key:1,class:"position"},Wm={class:"speed"},zm=Le({__name:"TransferBar",props:{status:{}},emits:["cancel"],setup(e){const t=e,n=Se(()=>t.status.xfer/t.status.total*100),r=Se(()=>{let i=t.status.statbytes/t.status.statdur/1e3;const c=(Date.now()-t.status.tlast)/1e3;return c>5/i?0:c>1/i?1/c:i}),s=Se(()=>r.value?r.value.toFixed(r.value<10?1:0)+" MB/s":"stalled");return(i,c)=>i.status.total?(G(),ce("div",{key:0,class:"transferprogress",style:_r(`background: linear-gradient(to right, var(--bar) 0, var(--bar) ${n.value}%, var(--nobar) ${n.value}%, var(--nobar) 100%);`)},[W("div",jm,[i.status.filecount>1?(G(),ce("span",Dm," ["+Ge(i.status.fileidx)+"/"+Ge(i.status.filecount)+"] ",1)):Ye("",!0),W("span",Vm,[kr(Ge(i.status.filename.split("/").pop())+" ",1),i.status.filesize>1e7?(G(),ce("span",Hm,Ge((i.status.filepos/i.status.filesize*100).toFixed(0)+" %"),1)):Ye("",!0)]),i.status.total>1e7?(G(),ce("span",Um,Ge((i.status.xfer/1e6).toFixed(0)+" / "+(i.status.total/1e6).toFixed(0)+" MB"),1)):Ye("",!0),W("span",Wm,Ge(s.value),1),W("button",{class:"close",onClick:c[0]||(c[0]=l=>i.$emit("cancel"))},"❌")])],4)):Ye("",!0)}});const Ut=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},aa=Ut(zm,[["__scopeId","data-v-09fd3cd3"]]),Km=Le({__name:"UploadButton",props:{path:Array},setup(e){const t=Re(),n=Re(),r=ze(),s=e;function i(O){var I;const P=Array.from(((I=O.clipboardData)==null?void 0:I.items)??[]),x=[],E=[];for(const M of P){if(M.kind!=="file")continue;const A=M.webkitGetAsEntry();if(A!=null&&A.isFile){const L=M.getAsFile();L&&x.push(L)}else A!=null&&A.isDirectory&&E.push(A)}if(x.length||E.length){O.preventDefault(),d(x);for(const M of E)c(M,`${s.path.join("/")}/${M.name}`)}}const c=async(O,P)=>{const x=O.createReader(),E=await new Promise(M=>x.readEntries(M)),I=[];for(const M of E){const A=`${P}/${M.name}`;if(M.isFile){const L=await new Promise(q=>M.file(q));I.push({file:L,cloudName:A,cloudPos:0})}else M.isDirectory&&await c(M,A)}I.length&&o(I)};function l(O){var E;O.preventDefault();const P=O.target,x=Array.from(((E=P??O.dataTransfer)==null?void 0:E.files)??[]);P&&(P.value=""),x.length&&d(x)}const d=O=>{const P=s.path.join("/");let x=[];for(const E of O)x.push({file:E,cloudName:P+"/"+(E.webkitRelativePath||E.name),cloudPos:0});o(x)},o=O=>{const P=O.filter(x=>x.cloudName.includes("/."));P.length&&(r.error="Won't upload dotfiles",console.log("Dotfiles omitted",P),O=O.filter(x=>!x.cloudName.includes("/."))),O.length&&(O.sort((x,E)=>Qr.compare(x.cloudName,E.cloudName)),y=[...y,...O],C(O),b())},u=()=>{y=[],v()},a={total:0,xfer:0,t0:0,tlast:0,statbytes:0,statdur:0,files:[],filestart:0,fileidx:0,filecount:0,filename:"",filesize:0,filepos:0,status:"idle"},f=Xt({...a});setInterval(()=>{Date.now()-f.tlast>3e3?(f.statbytes=0,f.statdur=1):(f.statbytes*=.9,f.statdur*=.9)},100);const p=({name:O,size:P,start:x,end:E})=>{if(O!==f.filename)return;const I=Date.now();f.xfer=f.filestart+E,f.filepos=E,f.statbytes+=E-x,f.statdur+=I-f.tlast,f.tlast=I,E===P&&(f.filestart+=P,g(),++f.fileidx>=f.filecount&&v())},g=()=>{const O=f.files.shift();if(!O)return v();f.filepos=0,f.filesize=O.file.size,f.filename=O.cloudName},v=()=>{Object.assign(f,a),f.t0=Date.now(),f.tlast=f.t0+1},C=O=>{f.files.length===0&&v(),f.total+=O.reduce((P,x)=>P+x.file.size,0),f.filecount+=O.length,f.files=[...f.files,...O],g()};let y=[];const _=async()=>await new Promise(O=>{const P=Jn(km,{open(x){O(P)},error(x){console.error("Upload socket error",x),r.error="Upload socket error"},message(x){const E=JSON.parse(x.data);if("error"in E){console.error("Upload socket error",E.error),r.error=E.error.message;return}E.status==="ack"?p(E.req):console.log("Unknown upload response",E)}});P.sendMsg=x=>P.send(JSON.stringify(x)),P.sendData=async x=>{f.status="uploading",await new Promise(E=>{const I=setInterval(()=>{P.bufferedAmount>1048576||(E(void 0),clearInterval(I))},1)}),f.status="processing",P.send(x)}}),m=async()=>{const O=await _();for(;y.length;){const P=y[0],x=P.cloudPos,E=Math.min(P.file.size,x+(1<<20)),I={name:P.cloudName,size:P.file.size,start:x,end:E},M=P.file.slice(x,E);P.cloudPos=E,O.sendMsg(I),await O.sendData(M),P.cloudPos===P.file.size&&y.shift()}y.length&&b(),f.status="idle",h=!1};let h=!1;const b=()=>{h===!1&&(h=setTimeout(()=>{h=!0,m()},0))};return Tt(()=>{addEventListener("dragover",l),addEventListener("drop",l),addEventListener("paste",i)}),On(()=>{removeEventListener("paste",i),removeEventListener("dragover",l),removeEventListener("drop",l)}),(O,P)=>{const x=co,E=aa;return G(),ce(Ee,null,[W("template",null,[W("input",{ref_key:"fileInput",ref:t,onChange:l,type:"file",multiple:""},null,544),W("input",{ref_key:"folderInput",ref:n,onChange:l,type:"file",webkitdirectory:""},null,544)]),ue(x,{name:"add-file","data-tooltip":"Upload files",onClick:P[0]||(P[0]=I=>t.value.click())}),ue(x,{name:"add-folder","data-tooltip":"Upload folder",onClick:P[1]||(P[1]=I=>n.value.click())}),ue(E,{status:f,onCancel:u},null,8,["status"])],64)}}});var qm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ym(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var fa={exports:{}};const Zm=Ym(Xp);(function(e,t){(function(n,r){e.exports=r(Zm)})(typeof self<"u"?self:qm,n=>(()=>{var r={9662:(l,d,o)=>{var u=o(614),a=o(6330),f=TypeError;l.exports=function(p){if(u(p))return p;throw f(a(p)+" is not a function")}},6077:(l,d,o)=>{var u=o(614),a=String,f=TypeError;l.exports=function(p){if(typeof p=="object"||u(p))return p;throw f("Can't set "+a(p)+" as a prototype")}},1223:(l,d,o)=>{var u=o(5112),a=o(30),f=o(3070).f,p=u("unscopables"),g=Array.prototype;g[p]==null&&f(g,p,{configurable:!0,value:a(null)}),l.exports=function(v){g[p][v]=!0}},9670:(l,d,o)=>{var u=o(111),a=String,f=TypeError;l.exports=function(p){if(u(p))return p;throw f(a(p)+" is not an object")}},8533:(l,d,o)=>{var u=o(2092).forEach,a=o(9341),f=a("forEach");l.exports=f?[].forEach:function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}},1318:(l,d,o)=>{var u=o(5656),a=o(1400),f=o(6244),p=function(g){return function(v,C,y){var _,m=u(v),h=f(m),b=a(y,h);if(g&&C!=C){for(;h>b;)if(_=m[b++],_!=_)return!0}else for(;h>b;b++)if((g||b in m)&&m[b]===C)return g||b||0;return!g&&-1}};l.exports={includes:p(!0),indexOf:p(!1)}},2092:(l,d,o)=>{var u=o(9974),a=o(1702),f=o(8361),p=o(7908),g=o(6244),v=o(5417),C=a([].push),y=function(_){var m=_==1,h=_==2,b=_==3,O=_==4,P=_==6,x=_==7,E=_==5||P;return function(I,M,A,L){for(var q,Z,T=p(I),K=f(T),J=u(M,A),$e=g(K),We=0,Xe=L||v,Fe=m?Xe(I,$e):h||x?Xe(I,0):void 0;$e>We;We++)if((E||We in K)&&(q=K[We],Z=J(q,We,T),_))if(m)Fe[We]=Z;else if(Z)switch(_){case 3:return!0;case 5:return q;case 6:return We;case 2:C(Fe,q)}else switch(_){case 4:return!1;case 7:C(Fe,q)}return P?-1:b||O?O:Fe}};l.exports={forEach:y(0),map:y(1),filter:y(2),some:y(3),every:y(4),find:y(5),findIndex:y(6),filterReject:y(7)}},1194:(l,d,o)=>{var u=o(7293),a=o(5112),f=o(7392),p=a("species");l.exports=function(g){return f>=51||!u(function(){var v=[],C=v.constructor={};return C[p]=function(){return{foo:1}},v[g](Boolean).foo!==1})}},9341:(l,d,o)=>{var u=o(7293);l.exports=function(a,f){var p=[][a];return!!p&&u(function(){p.call(null,f||function(){return 1},1)})}},3658:(l,d,o)=>{var u=o(9781),a=o(3157),f=TypeError,p=Object.getOwnPropertyDescriptor,g=u&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(v){return v instanceof TypeError}}();l.exports=g?function(v,C){if(a(v)&&!p(v,"length").writable)throw f("Cannot set read only .length");return v.length=C}:function(v,C){return v.length=C}},206:(l,d,o)=>{var u=o(1702);l.exports=u([].slice)},7475:(l,d,o)=>{var u=o(3157),a=o(4411),f=o(111),p=o(5112),g=p("species"),v=Array;l.exports=function(C){var y;return u(C)&&(y=C.constructor,a(y)&&(y===v||u(y.prototype))?y=void 0:f(y)&&(y=y[g],y===null&&(y=void 0))),y===void 0?v:y}},5417:(l,d,o)=>{var u=o(7475);l.exports=function(a,f){return new(u(a))(f===0?0:f)}},4326:(l,d,o)=>{var u=o(1702),a=u({}.toString),f=u("".slice);l.exports=function(p){return f(a(p),8,-1)}},648:(l,d,o)=>{var u=o(1694),a=o(614),f=o(4326),p=o(5112),g=p("toStringTag"),v=Object,C=f(function(){return arguments}())=="Arguments",y=function(_,m){try{return _[m]}catch{}};l.exports=u?f:function(_){var m,h,b;return _===void 0?"Undefined":_===null?"Null":typeof(h=y(m=v(_),g))=="string"?h:C?f(m):(b=f(m))=="Object"&&a(m.callee)?"Arguments":b}},9920:(l,d,o)=>{var u=o(2597),a=o(3887),f=o(1236),p=o(3070);l.exports=function(g,v,C){for(var y=a(v),_=p.f,m=f.f,h=0;h<y.length;h++){var b=y[h];u(g,b)||C&&u(C,b)||_(g,b,m(v,b))}}},4964:(l,d,o)=>{var u=o(5112),a=u("match");l.exports=function(f){var p=/./;try{"/./"[f](p)}catch{try{return p[a]=!1,"/./"[f](p)}catch{}}return!1}},8880:(l,d,o)=>{var u=o(9781),a=o(3070),f=o(9114);l.exports=u?function(p,g,v){return a.f(p,g,f(1,v))}:function(p,g,v){return p[g]=v,p}},9114:l=>{l.exports=function(d,o){return{enumerable:!(1&d),configurable:!(2&d),writable:!(4&d),value:o}}},6135:(l,d,o)=>{var u=o(4948),a=o(3070),f=o(9114);l.exports=function(p,g,v){var C=u(g);C in p?a.f(p,C,f(0,v)):p[C]=v}},8052:(l,d,o)=>{var u=o(614),a=o(3070),f=o(6339),p=o(3072);l.exports=function(g,v,C,y){y||(y={});var _=y.enumerable,m=y.name!==void 0?y.name:v;if(u(C)&&f(C,m,y),y.global)_?g[v]=C:p(v,C);else{try{y.unsafe?g[v]&&(_=!0):delete g[v]}catch{}_?g[v]=C:a.f(g,v,{value:C,enumerable:!1,configurable:!y.nonConfigurable,writable:!y.nonWritable})}return g}},3072:(l,d,o)=>{var u=o(7854),a=Object.defineProperty;l.exports=function(f,p){try{a(u,f,{value:p,configurable:!0,writable:!0})}catch{u[f]=p}return p}},5117:(l,d,o)=>{var u=o(6330),a=TypeError;l.exports=function(f,p){if(!delete f[p])throw a("Cannot delete property "+u(p)+" of "+u(f))}},9781:(l,d,o)=>{var u=o(7293);l.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:(l,d,o)=>{var u=o(7854),a=o(111),f=u.document,p=a(f)&&a(f.createElement);l.exports=function(g){return p?f.createElement(g):{}}},7207:l=>{var d=TypeError,o=9007199254740991;l.exports=function(u){if(u>o)throw d("Maximum allowed index exceeded");return u}},8113:(l,d,o)=>{var u=o(5005);l.exports=u("navigator","userAgent")||""},7392:(l,d,o)=>{var u,a,f=o(7854),p=o(8113),g=f.process,v=f.Deno,C=g&&g.versions||v&&v.version,y=C&&C.v8;y&&(u=y.split("."),a=u[0]>0&&u[0]<4?1:+(u[0]+u[1])),!a&&p&&(u=p.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=p.match(/Chrome\/(\d+)/),u&&(a=+u[1]))),l.exports=a},748:l=>{l.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7762:(l,d,o)=>{var u=o(9781),a=o(7293),f=o(9670),p=o(30),g=o(6277),v=Error.prototype.toString,C=a(function(){if(u){var y=p(Object.defineProperty({},"name",{get:function(){return this===y}}));if(v.call(y)!=="true")return!0}return v.call({message:1,name:2})!=="2: 1"||v.call({})!=="Error"});l.exports=C?function(){var y=f(this),_=g(y.name,"Error"),m=g(y.message);return _?m?_+": "+m:_:m}:v},2109:(l,d,o)=>{var u=o(7854),a=o(1236).f,f=o(8880),p=o(8052),g=o(3072),v=o(9920),C=o(4705);l.exports=function(y,_){var m,h,b,O,P,x,E=y.target,I=y.global,M=y.stat;if(h=I?u:M?u[E]||g(E,{}):(u[E]||{}).prototype,h)for(b in _){if(P=_[b],y.dontCallGetSet?(x=a(h,b),O=x&&x.value):O=h[b],m=C(I?b:E+(M?".":"#")+b,y.forced),!m&&O!==void 0){if(typeof P==typeof O)continue;v(P,O)}(y.sham||O&&O.sham)&&f(P,"sham",!0),p(h,b,P,y)}}},7293:l=>{l.exports=function(d){try{return!!d()}catch{return!0}}},2104:(l,d,o)=>{var u=o(4374),a=Function.prototype,f=a.apply,p=a.call;l.exports=typeof Reflect=="object"&&Reflect.apply||(u?p.bind(f):function(){return p.apply(f,arguments)})},9974:(l,d,o)=>{var u=o(1702),a=o(9662),f=o(4374),p=u(u.bind);l.exports=function(g,v){return a(g),v===void 0?g:f?p(g,v):function(){return g.apply(v,arguments)}}},4374:(l,d,o)=>{var u=o(7293);l.exports=!u(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},6916:(l,d,o)=>{var u=o(4374),a=Function.prototype.call;l.exports=u?a.bind(a):function(){return a.apply(a,arguments)}},6530:(l,d,o)=>{var u=o(9781),a=o(2597),f=Function.prototype,p=u&&Object.getOwnPropertyDescriptor,g=a(f,"name"),v=g&&(function(){}).name==="something",C=g&&(!u||u&&p(f,"name").configurable);l.exports={EXISTS:g,PROPER:v,CONFIGURABLE:C}},1702:(l,d,o)=>{var u=o(4374),a=Function.prototype,f=a.bind,p=a.call,g=u&&f.bind(p,p);l.exports=u?function(v){return v&&g(v)}:function(v){return v&&function(){return p.apply(v,arguments)}}},5005:(l,d,o)=>{var u=o(7854),a=o(614),f=function(p){return a(p)?p:void 0};l.exports=function(p,g){return arguments.length<2?f(u[p]):u[p]&&u[p][g]}},8173:(l,d,o)=>{var u=o(9662),a=o(8554);l.exports=function(f,p){var g=f[p];return a(g)?void 0:u(g)}},7854:(l,d,o)=>{var u=function(a){return a&&a.Math==Math&&a};l.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof o.g=="object"&&o.g)||function(){return this}()||Function("return this")()},2597:(l,d,o)=>{var u=o(1702),a=o(7908),f=u({}.hasOwnProperty);l.exports=Object.hasOwn||function(p,g){return f(a(p),g)}},3501:l=>{l.exports={}},490:(l,d,o)=>{var u=o(5005);l.exports=u("document","documentElement")},4664:(l,d,o)=>{var u=o(9781),a=o(7293),f=o(317);l.exports=!u&&!a(function(){return Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a!=7})},8361:(l,d,o)=>{var u=o(1702),a=o(7293),f=o(4326),p=Object,g=u("".split);l.exports=a(function(){return!p("z").propertyIsEnumerable(0)})?function(v){return f(v)=="String"?g(v,""):p(v)}:p},9587:(l,d,o)=>{var u=o(614),a=o(111),f=o(7674);l.exports=function(p,g,v){var C,y;return f&&u(C=g.constructor)&&C!==v&&a(y=C.prototype)&&y!==v.prototype&&f(p,y),p}},2788:(l,d,o)=>{var u=o(1702),a=o(614),f=o(5465),p=u(Function.toString);a(f.inspectSource)||(f.inspectSource=function(g){return p(g)}),l.exports=f.inspectSource},9909:(l,d,o)=>{var u,a,f,p=o(4811),g=o(7854),v=o(1702),C=o(111),y=o(8880),_=o(2597),m=o(5465),h=o(6200),b=o(3501),O="Object already initialized",P=g.TypeError,x=g.WeakMap,E=function(T){return f(T)?a(T):u(T,{})},I=function(T){return function(K){var J;if(!C(K)||(J=a(K)).type!==T)throw P("Incompatible receiver, "+T+" required");return J}};if(p||m.state){var M=m.state||(m.state=new x),A=v(M.get),L=v(M.has),q=v(M.set);u=function(T,K){if(L(M,T))throw P(O);return K.facade=T,q(M,T,K),K},a=function(T){return A(M,T)||{}},f=function(T){return L(M,T)}}else{var Z=h("state");b[Z]=!0,u=function(T,K){if(_(T,Z))throw P(O);return K.facade=T,y(T,Z,K),K},a=function(T){return _(T,Z)?T[Z]:{}},f=function(T){return _(T,Z)}}l.exports={set:u,get:a,has:f,enforce:E,getterFor:I}},3157:(l,d,o)=>{var u=o(4326);l.exports=Array.isArray||function(a){return u(a)=="Array"}},614:l=>{l.exports=function(d){return typeof d=="function"}},4411:(l,d,o)=>{var u=o(1702),a=o(7293),f=o(614),p=o(648),g=o(5005),v=o(2788),C=function(){},y=[],_=g("Reflect","construct"),m=/^\s*(?:class|function)\b/,h=u(m.exec),b=!m.exec(C),O=function(x){if(!f(x))return!1;try{return _(C,y,x),!0}catch{return!1}},P=function(x){if(!f(x))return!1;switch(p(x)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return b||!!h(m,v(x))}catch{return!0}};P.sham=!0,l.exports=!_||a(function(){var x;return O(O.call)||!O(Object)||!O(function(){x=!0})||x})?P:O},4705:(l,d,o)=>{var u=o(7293),a=o(614),f=/#|\.prototype\./,p=function(_,m){var h=v[g(_)];return h==y||h!=C&&(a(m)?u(m):!!m)},g=p.normalize=function(_){return String(_).replace(f,".").toLowerCase()},v=p.data={},C=p.NATIVE="N",y=p.POLYFILL="P";l.exports=p},8554:l=>{l.exports=function(d){return d==null}},111:(l,d,o)=>{var u=o(614),a=typeof document=="object"&&document.all,f=typeof a>"u"&&a!==void 0;l.exports=f?function(p){return typeof p=="object"?p!==null:u(p)||p===a}:function(p){return typeof p=="object"?p!==null:u(p)}},1913:l=>{l.exports=!1},7850:(l,d,o)=>{var u=o(111),a=o(4326),f=o(5112),p=f("match");l.exports=function(g){var v;return u(g)&&((v=g[p])!==void 0?!!v:a(g)=="RegExp")}},2190:(l,d,o)=>{var u=o(5005),a=o(614),f=o(7976),p=o(3307),g=Object;l.exports=p?function(v){return typeof v=="symbol"}:function(v){var C=u("Symbol");return a(C)&&f(C.prototype,g(v))}},6244:(l,d,o)=>{var u=o(7466);l.exports=function(a){return u(a.length)}},6339:(l,d,o)=>{var u=o(7293),a=o(614),f=o(2597),p=o(9781),g=o(6530).CONFIGURABLE,v=o(2788),C=o(9909),y=C.enforce,_=C.get,m=Object.defineProperty,h=p&&!u(function(){return m(function(){},"length",{value:8}).length!==8}),b=String(String).split("String"),O=l.exports=function(P,x,E){String(x).slice(0,7)==="Symbol("&&(x="["+String(x).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),E&&E.getter&&(x="get "+x),E&&E.setter&&(x="set "+x),(!f(P,"name")||g&&P.name!==x)&&(p?m(P,"name",{value:x,configurable:!0}):P.name=x),h&&E&&f(E,"arity")&&P.length!==E.arity&&m(P,"length",{value:E.arity});try{E&&f(E,"constructor")&&E.constructor?p&&m(P,"prototype",{writable:!1}):P.prototype&&(P.prototype=void 0)}catch{}var I=y(P);return f(I,"source")||(I.source=b.join(typeof x=="string"?x:"")),P};Function.prototype.toString=O(function(){return a(this)&&_(this).source||v(this)},"toString")},4758:l=>{var d=Math.ceil,o=Math.floor;l.exports=Math.trunc||function(u){var a=+u;return(a>0?o:d)(a)}},6277:(l,d,o)=>{var u=o(1340);l.exports=function(a,f){return a===void 0?arguments.length<2?"":f:u(a)}},3929:(l,d,o)=>{var u=o(7850),a=TypeError;l.exports=function(f){if(u(f))throw a("The method doesn't accept regular expressions");return f}},30:(l,d,o)=>{var u,a=o(9670),f=o(6048),p=o(748),g=o(3501),v=o(490),C=o(317),y=o(6200),_=">",m="<",h="prototype",b="script",O=y("IE_PROTO"),P=function(){},x=function(A){return m+b+_+A+m+"/"+b+_},E=function(A){A.write(x("")),A.close();var L=A.parentWindow.Object;return A=null,L},I=function(){var A,L=C("iframe"),q="java"+b+":";return L.style.display="none",v.appendChild(L),L.src=String(q),A=L.contentWindow.document,A.open(),A.write(x("document.F=Object")),A.close(),A.F},M=function(){try{u=new ActiveXObject("htmlfile")}catch{}M=typeof document<"u"?document.domain&&u?E(u):I():E(u);for(var A=p.length;A--;)delete M[h][p[A]];return M()};g[O]=!0,l.exports=Object.create||function(A,L){var q;return A!==null?(P[h]=a(A),q=new P,P[h]=null,q[O]=A):q=M(),L===void 0?q:f.f(q,L)}},6048:(l,d,o)=>{var u=o(9781),a=o(3353),f=o(3070),p=o(9670),g=o(5656),v=o(1956);d.f=u&&!a?Object.defineProperties:function(C,y){p(C);for(var _,m=g(y),h=v(y),b=h.length,O=0;b>O;)f.f(C,_=h[O++],m[_]);return C}},3070:(l,d,o)=>{var u=o(9781),a=o(4664),f=o(3353),p=o(9670),g=o(4948),v=TypeError,C=Object.defineProperty,y=Object.getOwnPropertyDescriptor,_="enumerable",m="configurable",h="writable";d.f=u?f?function(b,O,P){if(p(b),O=g(O),p(P),typeof b=="function"&&O==="prototype"&&"value"in P&&h in P&&!P[h]){var x=y(b,O);x&&x[h]&&(b[O]=P.value,P={configurable:m in P?P[m]:x[m],enumerable:_ in P?P[_]:x[_],writable:!1})}return C(b,O,P)}:C:function(b,O,P){if(p(b),O=g(O),p(P),a)try{return C(b,O,P)}catch{}if("get"in P||"set"in P)throw v("Accessors not supported");return"value"in P&&(b[O]=P.value),b}},1236:(l,d,o)=>{var u=o(9781),a=o(6916),f=o(5296),p=o(9114),g=o(5656),v=o(4948),C=o(2597),y=o(4664),_=Object.getOwnPropertyDescriptor;d.f=u?_:function(m,h){if(m=g(m),h=v(h),y)try{return _(m,h)}catch{}if(C(m,h))return p(!a(f.f,m,h),m[h])}},8006:(l,d,o)=>{var u=o(6324),a=o(748),f=a.concat("length","prototype");d.f=Object.getOwnPropertyNames||function(p){return u(p,f)}},5181:(l,d)=>{d.f=Object.getOwnPropertySymbols},7976:(l,d,o)=>{var u=o(1702);l.exports=u({}.isPrototypeOf)},6324:(l,d,o)=>{var u=o(1702),a=o(2597),f=o(5656),p=o(1318).indexOf,g=o(3501),v=u([].push);l.exports=function(C,y){var _,m=f(C),h=0,b=[];for(_ in m)!a(g,_)&&a(m,_)&&v(b,_);for(;y.length>h;)a(m,_=y[h++])&&(~p(b,_)||v(b,_));return b}},1956:(l,d,o)=>{var u=o(6324),a=o(748);l.exports=Object.keys||function(f){return u(f,a)}},5296:(l,d)=>{var o={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,a=u&&!o.call({1:2},1);d.f=a?function(f){var p=u(this,f);return!!p&&p.enumerable}:o},7674:(l,d,o)=>{var u=o(1702),a=o(9670),f=o(6077);l.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var p,g=!1,v={};try{p=u(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),p(v,[]),g=v instanceof Array}catch{}return function(C,y){return a(C),f(y),g?p(C,y):C.__proto__=y,C}}():void 0)},288:(l,d,o)=>{var u=o(1694),a=o(648);l.exports=u?{}.toString:function(){return"[object "+a(this)+"]"}},2140:(l,d,o)=>{var u=o(6916),a=o(614),f=o(111),p=TypeError;l.exports=function(g,v){var C,y;if(v==="string"&&a(C=g.toString)&&!f(y=u(C,g))||a(C=g.valueOf)&&!f(y=u(C,g))||v!=="string"&&a(C=g.toString)&&!f(y=u(C,g)))return y;throw p("Can't convert object to primitive value")}},3887:(l,d,o)=>{var u=o(5005),a=o(1702),f=o(8006),p=o(5181),g=o(9670),v=a([].concat);l.exports=u("Reflect","ownKeys")||function(C){var y=f.f(g(C)),_=p.f;return _?v(y,_(C)):y}},7066:(l,d,o)=>{var u=o(9670);l.exports=function(){var a=u(this),f="";return a.hasIndices&&(f+="d"),a.global&&(f+="g"),a.ignoreCase&&(f+="i"),a.multiline&&(f+="m"),a.dotAll&&(f+="s"),a.unicode&&(f+="u"),a.unicodeSets&&(f+="v"),a.sticky&&(f+="y"),f}},4706:(l,d,o)=>{var u=o(6916),a=o(2597),f=o(7976),p=o(7066),g=RegExp.prototype;l.exports=function(v){var C=v.flags;return C!==void 0||"flags"in g||a(v,"flags")||!f(g,v)?C:u(p,v)}},4488:(l,d,o)=>{var u=o(8554),a=TypeError;l.exports=function(f){if(u(f))throw a("Can't call method on "+f);return f}},7152:(l,d,o)=>{var u=o(7854),a=o(2104),f=o(614),p=o(8113),g=o(206),v=o(8053),C=/MSIE .\./.test(p),y=u.Function,_=function(m){return C?function(h,b){var O=v(arguments.length,1)>2,P=f(h)?h:y(h),x=O?g(arguments,2):void 0;return m(O?function(){a(P,this,x)}:P,b)}:m};l.exports={setTimeout:_(u.setTimeout),setInterval:_(u.setInterval)}},6200:(l,d,o)=>{var u=o(2309),a=o(9711),f=u("keys");l.exports=function(p){return f[p]||(f[p]=a(p))}},5465:(l,d,o)=>{var u=o(7854),a=o(3072),f="__core-js_shared__",p=u[f]||a(f,{});l.exports=p},2309:(l,d,o)=>{var u=o(1913),a=o(5465);(l.exports=function(f,p){return a[f]||(a[f]=p!==void 0?p:{})})("versions",[]).push({version:"3.25.0",mode:u?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.0/LICENSE",source:"https://github.com/zloirock/core-js"})},3111:(l,d,o)=>{var u=o(1702),a=o(4488),f=o(1340),p=o(1361),g=u("".replace),v="["+p+"]",C=RegExp("^"+v+v+"*"),y=RegExp(v+v+"*$"),_=function(m){return function(h){var b=f(a(h));return 1&m&&(b=g(b,C,"")),2&m&&(b=g(b,y,"")),b}};l.exports={start:_(1),end:_(2),trim:_(3)}},6293:(l,d,o)=>{var u=o(7392),a=o(7293);l.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol();return!String(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&u&&u<41})},863:(l,d,o)=>{var u=o(1702);l.exports=u(1 .valueOf)},1400:(l,d,o)=>{var u=o(9303),a=Math.max,f=Math.min;l.exports=function(p,g){var v=u(p);return v<0?a(v+g,0):f(v,g)}},5656:(l,d,o)=>{var u=o(8361),a=o(4488);l.exports=function(f){return u(a(f))}},9303:(l,d,o)=>{var u=o(4758);l.exports=function(a){var f=+a;return f!==f||f===0?0:u(f)}},7466:(l,d,o)=>{var u=o(9303),a=Math.min;l.exports=function(f){return f>0?a(u(f),9007199254740991):0}},7908:(l,d,o)=>{var u=o(4488),a=Object;l.exports=function(f){return a(u(f))}},7593:(l,d,o)=>{var u=o(6916),a=o(111),f=o(2190),p=o(8173),g=o(2140),v=o(5112),C=TypeError,y=v("toPrimitive");l.exports=function(_,m){if(!a(_)||f(_))return _;var h,b=p(_,y);if(b){if(m===void 0&&(m="default"),h=u(b,_,m),!a(h)||f(h))return h;throw C("Can't convert object to primitive value")}return m===void 0&&(m="number"),g(_,m)}},4948:(l,d,o)=>{var u=o(7593),a=o(2190);l.exports=function(f){var p=u(f,"string");return a(p)?p:p+""}},1694:(l,d,o)=>{var u=o(5112),a=u("toStringTag"),f={};f[a]="z",l.exports=String(f)==="[object z]"},1340:(l,d,o)=>{var u=o(648),a=String;l.exports=function(f){if(u(f)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return a(f)}},6330:l=>{var d=String;l.exports=function(o){try{return d(o)}catch{return"Object"}}},9711:(l,d,o)=>{var u=o(1702),a=0,f=Math.random(),p=u(1 .toString);l.exports=function(g){return"Symbol("+(g===void 0?"":g)+")_"+p(++a+f,36)}},3307:(l,d,o)=>{var u=o(6293);l.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},3353:(l,d,o)=>{var u=o(9781),a=o(7293);l.exports=u&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},8053:l=>{var d=TypeError;l.exports=function(o,u){if(o<u)throw d("Not enough arguments");return o}},4811:(l,d,o)=>{var u=o(7854),a=o(614),f=u.WeakMap;l.exports=a(f)&&/native code/.test(String(f))},5112:(l,d,o)=>{var u=o(7854),a=o(2309),f=o(2597),p=o(9711),g=o(6293),v=o(3307),C=a("wks"),y=u.Symbol,_=y&&y.for,m=v?y:y&&y.withoutSetter||p;l.exports=function(h){if(!f(C,h)||!g&&typeof C[h]!="string"){var b="Symbol."+h;g&&f(y,h)?C[h]=y[h]:C[h]=v&&_?_(b):m(b)}return C[h]}},1361:l=>{l.exports=`
10
+ \v\f\r                 \u2028\u2029\uFEFF`},9554:(l,d,o)=>{var u=o(2109),a=o(8533);u({target:"Array",proto:!0,forced:[].forEach!=a},{forEach:a})},6699:(l,d,o)=>{var u=o(2109),a=o(1318).includes,f=o(7293),p=o(1223),g=f(function(){return!Array(1).includes()});u({target:"Array",proto:!0,forced:g},{includes:function(v){return a(this,v,arguments.length>1?arguments[1]:void 0)}}),p("includes")},2772:(l,d,o)=>{var u=o(2109),a=o(1702),f=o(1318).indexOf,p=o(9341),g=a([].indexOf),v=!!g&&1/g([1],1,-0)<0,C=p("indexOf");u({target:"Array",proto:!0,forced:v||!C},{indexOf:function(y){var _=arguments.length>1?arguments[1]:void 0;return v?g(this,y,_)||0:f(this,y,_)}})},561:(l,d,o)=>{var u=o(2109),a=o(7908),f=o(1400),p=o(9303),g=o(6244),v=o(3658),C=o(7207),y=o(5417),_=o(6135),m=o(5117),h=o(1194),b=h("splice"),O=Math.max,P=Math.min;u({target:"Array",proto:!0,forced:!b},{splice:function(x,E){var I,M,A,L,q,Z,T=a(this),K=g(T),J=f(x,K),$e=arguments.length;for($e===0?I=M=0:$e===1?(I=0,M=K-J):(I=$e-2,M=P(O(p(E),0),K-J)),C(K+I-M),A=y(T,M),L=0;L<M;L++)q=J+L,q in T&&_(A,L,T[q]);if(A.length=M,I<M){for(L=J;L<K-M;L++)q=L+M,Z=L+I,q in T?T[Z]=T[q]:m(T,Z);for(L=K;L>K-M+I;L--)m(T,L-1)}else if(I>M)for(L=K-M;L>J;L--)q=L+M-1,Z=L+I-1,q in T?T[Z]=T[q]:m(T,Z);for(L=0;L<I;L++)T[L+J]=arguments[L+2];return v(T,K-M+I),A}})},3710:(l,d,o)=>{var u=o(1702),a=o(8052),f=Date.prototype,p="Invalid Date",g="toString",v=u(f[g]),C=u(f.getTime);String(new Date(NaN))!=p&&a(f,g,function(){var y=C(this);return y===y?v(this):p})},6647:(l,d,o)=>{var u=o(8052),a=o(7762),f=Error.prototype;f.toString!==a&&u(f,"toString",a)},9653:(l,d,o)=>{var u=o(9781),a=o(7854),f=o(1702),p=o(4705),g=o(8052),v=o(2597),C=o(9587),y=o(7976),_=o(2190),m=o(7593),h=o(7293),b=o(8006).f,O=o(1236).f,P=o(3070).f,x=o(863),E=o(3111).trim,I="Number",M=a[I],A=M.prototype,L=a.TypeError,q=f("".slice),Z=f("".charCodeAt),T=function(Fe){var Ke=m(Fe,"number");return typeof Ke=="bigint"?Ke:K(Ke)},K=function(Fe){var Ke,Ve,Wt,He,F,X,H,te,pe=m(Fe,"number");if(_(pe))throw L("Cannot convert a Symbol value to a number");if(typeof pe=="string"&&pe.length>2){if(pe=E(pe),Ke=Z(pe,0),Ke===43||Ke===45){if(Ve=Z(pe,2),Ve===88||Ve===120)return NaN}else if(Ke===48){switch(Z(pe,1)){case 66:case 98:Wt=2,He=49;break;case 79:case 111:Wt=8,He=55;break;default:return+pe}for(F=q(pe,2),X=F.length,H=0;H<X;H++)if(te=Z(F,H),te<48||te>He)return NaN;return parseInt(F,Wt)}}return+pe};if(p(I,!M(" 0o1")||!M("0b1")||M("+0x1"))){for(var J,$e=function(Fe){var Ke=arguments.length<1?0:M(T(Fe)),Ve=this;return y(A,Ve)&&h(function(){x(Ve)})?C(Object(Ke),Ve,$e):Ke},We=u?b(M):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Xe=0;We.length>Xe;Xe++)v(M,J=We[Xe])&&!v($e,J)&&P($e,J,O(M,J));$e.prototype=A,A.constructor=$e,g(a,I,$e,{constructor:!0})}},1539:(l,d,o)=>{var u=o(1694),a=o(8052),f=o(288);u||a(Object.prototype,"toString",f,{unsafe:!0})},9714:(l,d,o)=>{var u=o(6530).PROPER,a=o(8052),f=o(9670),p=o(1340),g=o(7293),v=o(4706),C="toString",y=RegExp.prototype,_=y[C],m=g(function(){return _.call({source:"a",flags:"b"})!="/a/b"}),h=u&&_.name!=C;(m||h)&&a(RegExp.prototype,C,function(){var b=f(this),O=p(b.source),P=p(v(b));return"/"+O+"/"+P},{unsafe:!0})},2023:(l,d,o)=>{var u=o(2109),a=o(1702),f=o(3929),p=o(4488),g=o(1340),v=o(4964),C=a("".indexOf);u({target:"String",proto:!0,forced:!v("includes")},{includes:function(y){return!!~C(g(p(this)),g(f(y)),arguments.length>1?arguments[1]:void 0)}})},6815:(l,d,o)=>{var u=o(2109),a=o(7854),f=o(7152).setInterval;u({global:!0,bind:!0,forced:a.setInterval!==f},{setInterval:f})},8417:(l,d,o)=>{var u=o(2109),a=o(7854),f=o(7152).setTimeout;u({global:!0,bind:!0,forced:a.setTimeout!==f},{setTimeout:f})},2564:(l,d,o)=>{o(6815),o(8417)},3744:(l,d)=>{d.Z=(o,u)=>{const a=o.__vccOpts||o;for(const[f,p]of u)a[f]=p;return a}},7203:l=>{l.exports=n}},s={};function i(l){var d=s[l];if(d!==void 0)return d.exports;var o=s[l]={exports:{}};return r[l](o,o.exports,i),o.exports}i.d=(l,d)=>{for(var o in d)i.o(d,o)&&!i.o(l,o)&&Object.defineProperty(l,o,{enumerable:!0,get:d[o]})},i.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),i.o=(l,d)=>Object.prototype.hasOwnProperty.call(l,d),i.r=l=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},i.p="";var c={};return(()=>{if(i.r(c),i.d(c,{ContextMenu:()=>Gt,ContextMenuGroup:()=>it,ContextMenuItem:()=>j,ContextMenuSeparator:()=>ne,MenuBar:()=>Ta,default:()=>Fa}),typeof window<"u"){var l=window.document.currentScript,d=l&&l.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);d&&(i.p=d[1])}var o=i(7203),u=null;function a(S){u&&p(),u=S}function f(S){S===u&&(u=null)}function p(){u&&(u.closeMenu(),u=null)}i(6647),i(3710),i(1539),i(9714);var g={defaultDirection:"br",defaultMinWidth:100,defaultMaxWidth:600,defaultZindex:100,defaultAdjustPadding:{x:0,y:10}};function v(S,B){var z=S.offsetTop;return S.offsetParent!=null&&S.offsetParent!=B&&(z-=S.offsetParent.scrollTop,z+=v(S.offsetParent,B)),z}function C(S,B){var z=S.offsetLeft;return S.offsetParent!=null&&S.offsetParent!=B&&(z-=S.offsetParent.scrollLeft,z+=C(S.offsetParent,B)),z}function y(S,B,z,le){return{x:C(S,le)+B,y:v(S,le)+z}}var _="mx-menu-default-container",m="mx-menu-container-",h=0;function b(S){var B=S.getContainer,z=S.zIndex;if(B){var le=typeof B=="function"?B():B;if(le){var xe=le.getAttribute("id");return xe||(xe=m+h++,le.setAttribute("id",xe)),le.style.zIndex=(z==null?void 0:z.toString())||g.defaultZindex.toString(),{eleId:xe,container:le,isNew:!1}}}var Pe=document.getElementById(_);return Pe||(Pe=document.createElement("div"),Pe.setAttribute("id",_),Pe.setAttribute("class","mx-menu-ghost-host fullscreen"),document.body.appendChild(Pe)),Pe.style.zIndex=(z==null?void 0:z.toString())||g.defaultZindex.toString(),{eleId:_,container:Pe,isNew:!0}}function O(S){return typeof S=="number"?"".concat(S,"px"):S}var P=(0,o.defineComponent)({props:{vnode:{type:[Object,Function],default:null},data:{type:Object,default:null}},setup:function(S){var B=(0,o.toRefs)(S),z=B.vnode,le=B.data;return function(){return typeof z.value=="function"?z.value(le.value):z.value}}});function x(S,B,z){return B in S?Object.defineProperty(S,B,{value:z,enumerable:!0,configurable:!0,writable:!0}):S[B]=z,S}function E(S,B){var z=Object.keys(S);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(S);B&&(le=le.filter(function(xe){return Object.getOwnPropertyDescriptor(S,xe).enumerable})),z.push.apply(z,le)}return z}function I(S){for(var B=1;B<arguments.length;B++){var z=arguments[B]!=null?arguments[B]:{};B%2?E(Object(z),!0).forEach(function(le){x(S,le,z[le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(z)):E(Object(z)).forEach(function(le){Object.defineProperty(S,le,Object.getOwnPropertyDescriptor(z,le))})}return S}i(2564);var M={class:"mx-context-menu-scroll",ref:"scroll"};function A(S,B,z,le,xe,Pe){var ge=(0,o.resolveComponent)("ContextMenuSeparator"),he=(0,o.resolveComponent)("ContextSubMenu",!0),be=(0,o.resolveComponent)("ContextMenuItem"),qe=(0,o.resolveComponent)("ContextMenuIconRight");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)("mx-context-menu "+(S.options.customClass?S.options.customClass:"")+" "+S.globalTheme),style:(0,o.normalizeStyle)({maxWidth:S.maxWidth?S.solveNumberOrStringSize(S.maxWidth):"".concat(S.constOptions.defaultMaxWidth,"px"),minWidth:S.minWidth?S.solveNumberOrStringSize(S.minWidth):"".concat(S.constOptions.defaultMinWidth,"px"),maxHeight:S.overflow&&S.maxHeight>0?"".concat(S.maxHeight,"px"):void 0,zIndex:S.zIndex,left:"".concat(S.position.x,"px"),top:"".concat(S.position.y,"px")}),"data-type":"ContextSubMenu",onClick:B[2]||(B[2]=function(){return S.onSubMenuBodyClick&&S.onSubMenuBodyClick.apply(S,arguments)})},[(0,o.createElementVNode)("div",{class:"mx-context-menu-items",ref:"menu",style:(0,o.normalizeStyle)({top:"".concat(S.scrollValue,"px")})},[(0,o.renderSlot)(S.$slots,"default",{},function(){return[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(S.items,function(oe,Be){return(0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:Be},[oe.hidden!==!0&&oe.divided==="up"?((0,o.openBlock)(),(0,o.createBlock)(ge,{key:0})):(0,o.createCommentVNode)("",!0),oe.hidden!==!0&&oe.divided==="self"?((0,o.openBlock)(),(0,o.createBlock)(ge,{key:1})):((0,o.openBlock)(),(0,o.createBlock)(be,{key:2,clickHandler:oe.onClick?function(Qe){return oe.onClick(Qe)}:void 0,disabled:oe.disabled,hidden:oe.hidden,icon:oe.icon,iconFontClass:oe.iconFontClass,svgIcon:oe.svgIcon,svgProps:oe.svgProps,label:oe.label,customRender:oe.customRender,customClass:oe.customClass,checked:oe.checked,shortcut:oe.shortcut,clickClose:oe.clickClose,clickableWhenHasChildren:oe.clickableWhenHasChildren,preserveIconWidth:oe.preserveIconWidth!==void 0?oe.preserveIconWidth:S.options.preserveIconWidth,showRightArrow:oe.children&&oe.children.length>0,hasChildren:oe.children&&oe.children.length>0,rawMenuItem:oe,onSubMenuOpen:oe.onSubMenuOpen,onSubMenuClose:oe.onSubMenuClose},(0,o.createSlots)({_:2},[oe.children&&oe.children.length>0?{name:"submenu",fn:(0,o.withCtx)(function(){return[(0,o.createVNode)(he,{items:oe.children,maxWidth:oe.maxWidth,minWidth:oe.minWidth,adjustPosition:oe.adjustSubMenuPosition!==void 0?oe.adjustSubMenuPosition:S.options.adjustPosition,direction:oe.direction!==void 0?oe.direction:S.options.direction},null,8,["items","maxWidth","minWidth","adjustPosition","direction"])]}),key:"0"}:void 0]),1032,["clickHandler","disabled","hidden","icon","iconFontClass","svgIcon","svgProps","label","customRender","customClass","checked","shortcut","clickClose","clickableWhenHasChildren","preserveIconWidth","showRightArrow","hasChildren","rawMenuItem","onSubMenuOpen","onSubMenuClose"])),oe.hidden===!0||oe.divided!=="down"&&oe.divided!==!0?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createBlock)(ge,{key:3}))],64)}),128))]})],4),(0,o.createElementVNode)("div",M,[(0,o.withDirectives)((0,o.createElementVNode)("div",{class:"mx-context-menu-updown mx-context-no-clickable up",onClick:B[0]||(B[0]=function(oe){return S.onScroll(!1)})},[(0,o.createVNode)(qe)],512),[[o.vShow,S.overflow&&S.scrollValue<0]]),(0,o.withDirectives)((0,o.createElementVNode)("div",{class:"mx-context-menu-updown mx-context-no-clickable down",onClick:B[1]||(B[1]=function(oe){return S.onScroll(!0)})},[(0,o.createVNode)(qe)],512),[[o.vShow,S.overflow&&S.scrollValue>-S.scrollHeight]])],512)],6)}i(9653),i(2772),i(9554),i(561),i(6699),i(2023);var L={key:0,class:"mx-context-menu-item-wrapper",ref:"menuItemRef","data-type":"ContextMenuItem"},q={class:"mx-item-row"},Z=["xlink:href"],T={key:1,class:"label"},K={class:"mx-item-row"},J={class:"mx-shortcut"};function $e(S,B,z,le,xe,Pe){var ge=(0,o.resolveComponent)("VNodeRender"),he=(0,o.resolveComponent)("ContextMenuIconCheck"),be=(0,o.resolveComponent)("ContextMenuIconRight");return S.hidden?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",L,[S.globalHasSlot("itemRender")?((0,o.openBlock)(),(0,o.createBlock)(ge,{key:0,vnode:function(){return S.globalRenderSlot("itemRender",S.getItemDataForChildren())}},null,8,["vnode"])):S.customRender?((0,o.openBlock)(),(0,o.createBlock)(ge,{key:1,vnode:S.customRender,data:S.getItemDataForChildren()},null,8,["vnode","data"])):((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:2,class:(0,o.normalizeClass)(["mx-context-menu-item",S.disabled?"disabled":"",S.keyBoardFocusMenu?"keyboard-focus":"",S.customClass?" "+S.customClass:"",S.showSubMenu?"open":""]),onClick:B[0]||(B[0]=function(){return S.onClick&&S.onClick.apply(S,arguments)}),onMouseenter:B[1]||(B[1]=function(){return S.onMouseEnter&&S.onMouseEnter.apply(S,arguments)})},[(0,o.renderSlot)(S.$slots,"default",{},function(){return[(0,o.createElementVNode)("div",q,[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["mx-icon-placeholder",S.preserveIconWidth?"preserve-width":""])},[(0,o.renderSlot)(S.$slots,"icon",{},function(){return[S.globalHasSlot("itemIconRender")?((0,o.openBlock)(),(0,o.createBlock)(ge,{key:0,vnode:function(){return S.globalRenderSlot("itemIconRender",S.getItemDataForChildren())}},null,8,["vnode"])):typeof S.svgIcon=="string"&&S.svgIcon?((0,o.openBlock)(),(0,o.createElementBlock)("svg",(0,o.mergeProps)({key:1,class:"icon svg"},S.svgProps),[(0,o.createElementVNode)("use",{"xlink:href":S.svgIcon},null,8,Z)],16)):typeof S.icon!="string"?((0,o.openBlock)(),(0,o.createBlock)(ge,{key:2,vnode:S.icon,data:S.icon},null,8,["vnode","data"])):typeof S.icon=="string"&&S.icon!==""?((0,o.openBlock)(),(0,o.createElementBlock)("i",{key:3,class:(0,o.normalizeClass)(S.icon+" icon "+S.iconFontClass+" "+S.globalIconFontClass)},null,2)):(0,o.createCommentVNode)("",!0)]}),S.checked?(0,o.renderSlot)(S.$slots,"check",{key:0},function(){return[S.globalHasSlot("itemCheckRender")?((0,o.openBlock)(),(0,o.createBlock)(ge,{key:0,vnode:function(){return S.globalRenderSlot("itemCheckRender",S.getItemDataForChildren())}},null,8,["vnode"])):(0,o.createCommentVNode)("",!0),(0,o.createVNode)(he)]}):(0,o.createCommentVNode)("",!0)],2),(0,o.renderSlot)(S.$slots,"label",{},function(){return[S.globalHasSlot("itemLabelRender")?((0,o.openBlock)(),(0,o.createBlock)(ge,{key:0,vnode:function(){return S.globalRenderSlot("itemLabelRender",S.getItemDataForChildren())}},null,8,["vnode"])):typeof S.label=="string"?((0,o.openBlock)(),(0,o.createElementBlock)("span",T,(0,o.toDisplayString)(S.label),1)):((0,o.openBlock)(),(0,o.createBlock)(ge,{key:2,vnode:S.label,data:S.label},null,8,["vnode","data"]))]})]),(0,o.createElementVNode)("div",K,[S.shortcut?(0,o.renderSlot)(S.$slots,"shortcut",{key:0},function(){return[S.globalHasSlot("itemShortcutRender")?((0,o.openBlock)(),(0,o.createBlock)(ge,{key:0,vnode:function(){return S.globalRenderSlot("itemShortcutRender",S.getItemDataForChildren())}},null,8,["vnode"])):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("span",J,(0,o.toDisplayString)(S.shortcut),1)]}):(0,o.createCommentVNode)("",!0),S.showRightArrow?(0,o.renderSlot)(S.$slots,"rightArrow",{key:1},function(){return[S.globalHasSlot("itemRightArrowRender")?((0,o.openBlock)(),(0,o.createBlock)(ge,{key:0,vnode:function(){return S.globalRenderSlot("itemRightArrowRender",S.getItemDataForChildren())}},null,8,["vnode"])):(0,o.createCommentVNode)("",!0),(0,o.createVNode)(be)]}):(0,o.createCommentVNode)("",!0)])]})],34)),S.showSubMenu?(0,o.renderSlot)(S.$slots,"submenu",{key:3}):(0,o.createCommentVNode)("",!0)],512))}var We={class:"mx-checked-mark","aria-hidden":"true",viewBox:"0 0 1024 1024"},Xe=(0,o.createElementVNode)("path",{d:"M129.3,428.6L52,512l345,372.5l575-620.8l-69.5-75L400.4,718.2L129.3,428.6z"},null,-1),Fe=[Xe];function Ke(S,B){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",We,Fe)}var Ve=i(3744);const Wt={},He=(0,Ve.Z)(Wt,[["render",Ke]]),F=He;var X={class:"mx-right-arrow","aria-hidden":"true",viewBox:"0 0 1024 1024"},H=(0,o.createElementVNode)("path",{d:"M307.018 49.445c11.517 0 23.032 4.394 31.819 13.18L756.404 480.18c8.439 8.438 13.181 19.885 13.181 31.82s-4.741 23.38-13.181 31.82L338.838 961.376c-17.574 17.573-46.065 17.573-63.64-0.001-17.573-17.573-17.573-46.065 0.001-63.64L660.944 512 275.198 126.265c-17.574-17.573-17.574-46.066-0.001-63.64C283.985 53.839 295.501 49.445 307.018 49.445z"},null,-1),te=[H];function pe(S,B){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",X,te)}const w={},k=(0,Ve.Z)(w,[["render",pe]]),R=k,$=(0,o.defineComponent)({name:"ContextMenuItem",components:{VNodeRender:P,ContextMenuIconCheck:F,ContextMenuIconRight:R},props:{disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},customRender:{type:Function,default:null},customClass:{type:String,default:""},clickHandler:{type:Function,default:null},label:{type:[String,Object,Function],default:""},icon:{type:[String,Object,Function],default:""},iconFontClass:{type:String,default:"iconfont"},checked:{type:Boolean,default:!1},shortcut:{type:String,default:""},svgIcon:{type:String,default:""},svgProps:{type:Object,default:null},preserveIconWidth:{type:Boolean,default:!0},showRightArrow:{type:Boolean,default:!1},hasChildren:{type:Boolean,default:!1},clickClose:{type:Boolean,default:!0},clickableWhenHasChildren:{type:Boolean,default:!1},rawMenuItem:{type:Object,default:void 0}},emits:["click","subMenuOpen","subMenuClose"],setup:function(S,B){var z=(0,o.toRefs)(S),le=z.clickHandler,xe=z.clickClose,Pe=z.clickableWhenHasChildren,ge=z.disabled,he=z.hidden,be=z.label,qe=z.icon,oe=z.iconFontClass,Be=z.showRightArrow,Qe=z.shortcut,Ct=z.hasChildren,lt=(0,o.ref)(!1),me=(0,o.ref)(!1),ve=(0,o.ref)(),ct=(0,o.inject)("globalHasSlot"),ht=(0,o.inject)("globalRenderSlot"),Qt=(0,o.inject)("globalTheme"),we=(0,o.inject)("globalIconFontClass"),mt=(0,o.inject)("globalClickCloseClassName"),Lt=(0,o.inject)("globalIgnoreClickClassName"),Bt=(0,o.inject)("globalCloseMenu"),et=(0,o.inject)("menuContext"),xt={showSubMenu:function(){return lt.value?(et.markActiveMenuItem(xt,!0),!0):!!Ct.value&&(Rt(),!0)},isDisabledOrHidden:function(){return ge.value||he.value},getElement:function(){return ve.value},focus:function(){return me.value=!0},blur:function(){return me.value=!1},click:kt};function kt(tt){if(!ge.value){if(tt){var dt=tt.target;if(dt.classList.contains("mx-context-no-clickable")||Lt&&dt.classList.contains(Lt))return;if(mt&&dt.classList.contains(mt))return tt.stopPropagation(),void Bt(S.rawMenuItem)}Ct.value?Pe.value?(typeof le.value=="function"&&le.value(tt),B.emit("click",tt)):lt.value||Rt():(typeof le.value=="function"&&le.value(tt),B.emit("click",tt),xe.value&&Bt(S.rawMenuItem))}}function Rt(tt){me.value=!1,et.checkCloseOtherSubMenuTimeOut()||et.closeOtherSubMenu(),ge.value||(et.markActiveMenuItem(xt),Ct.value&&(tt||et.markThisOpenedByKeyBoard(),et.addOpenedSubMenu(function(){me.value=!1,lt.value=!1,B.emit("subMenuClose")}),lt.value=!0,B.emit("subMenuOpen")))}return(0,o.onMounted)(function(){et.isMenuItemDataCollectedFlag()?(0,o.nextTick)(function(){var tt=0,dt=et.getElement();if(dt)for(var Je=0,It=0;It<dt.children.length;It++){var ae=dt.children[It];if(ae.getAttribute("data-type")==="ContextMenuItem"){if(ae===ve.value){tt=Je;break}Je++}}et.addChildMenuItem(xt,tt)}):et.addChildMenuItem(xt)}),(0,o.onBeforeUnmount)(function(){et.removeChildMenuItem(xt)}),{getItemDataForChildren:function(){return{disabled:ge.value,label:be.value,icon:qe.value,iconFontClass:oe.value,showRightArrow:Be.value,clickClose:xe.value,clickableWhenHasChildren:Pe.value,shortcut:Qe.value,theme:Qt,isOpen:lt,hasChildren:Ct,onClick:kt,onMouseEnter:Rt,closeMenu:Bt}},showSubMenu:lt,keyBoardFocusMenu:me,menuItemRef:ve,globalHasSlot:ct,globalRenderSlot:ht,globalIconFontClass:we,onMouseEnter:Rt,onClick:kt}}}),N=(0,Ve.Z)($,[["render",$e]]),j=N;var Y={key:1,class:"mx-context-menu-item-sperator mx-context-no-clickable"};function V(S,B,z,le,xe,Pe){var ge=(0,o.resolveComponent)("VNodeRender");return S.globalHasSlot("separatorRender")?((0,o.openBlock)(),(0,o.createBlock)(ge,{key:0,vnode:function(){return S.globalRenderSlot("separatorRender",{})}},null,8,["vnode"])):((0,o.openBlock)(),(0,o.createElementBlock)("div",Y))}const U=(0,o.defineComponent)({name:"ContextMenuSperator",components:{VNodeRender:P},setup:function(){var S=(0,o.inject)("globalHasSlot"),B=(0,o.inject)("globalRenderSlot");return{globalHasSlot:S,globalRenderSlot:B}}}),D=(0,Ve.Z)(U,[["render",V]]),ne=D,ee=(0,o.defineComponent)({name:"ContextSubMenu",components:{ContextMenuItem:j,ContextMenuSeparator:ne,ContextMenuIconRight:R},props:{items:{type:Object,default:null},maxWidth:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0},adjustPosition:{type:Boolean,default:!0},direction:{type:String,default:"br"}},setup:function(S){var B=(0,o.inject)("menuContext"),z=(0,o.inject)("globalOptions"),le=(0,o.inject)("globalHasSlot"),xe=(0,o.inject)("globalRenderSlot"),Pe=(0,o.inject)("globalTheme"),ge=B.zIndex,he=B.getParentWidth,be=B.getParentHeight,qe=(0,o.toRefs)(S),oe=qe.adjustPosition,Be=(0,o.ref)(),Qe=(0,o.ref)(),Ct=[],lt=(0,o.inject)("globalSetCurrentSubMenu"),me=[],ve=null,ct=0;function ht(){ve&&ve.blur()}function Qt(ae,Me){if(ae){for(var Nt=Me!==void 0?Me:0;Nt<me.length;Nt++)if(!me[Nt].isDisabledOrHidden()){we(Nt);break}}else for(var pn=Me!==void 0?Me:me.length-1;pn>=0;pn--)if(!me[pn].isDisabledOrHidden()){we(pn);break}}function we(ae){if(ve&&ht(),ae!==void 0&&(ve=me[Math.max(0,Math.min(ae,me.length-1))]),ve&&(ve.focus(),dt.value)){var Me=ve.getElement();Me&&(kt.value=Math.min(Math.max(-Rt.value,-Me.offsetTop-Me.offsetHeight+It.value),0))}}function mt(){lt(Lt)}var Lt={isTopLevel:function(){return B.getParentContext()===null},closeSelfAndActiveParent:function(){var ae=xt.getParentContext();if(ae){ae.closeOtherSubMenu();var Me=ae.getSubMenuInstanceContext();if(Me)return Me.focusCurrentItem(),!0}return!1},closeCurrentSubMenu:function(){var ae;return(ae=xt.getParentContext())===null||ae===void 0?void 0:ae.closeOtherSubMenu()},moveCurrentItemFirst:function(){return Qt(!0)},moveCurrentItemLast:function(){return Qt(!1)},moveCurrentItemDown:function(){return Qt(!0,ve?me.indexOf(ve)+1:0)},moveCurrentItemUp:function(){return Qt(!1,ve?me.indexOf(ve)-1:0)},focusCurrentItem:function(){return we()},openCurrentItemSubMenu:function(){var ae;return!!ve&&((ae=ve)===null||ae===void 0?void 0:ae.showSubMenu())},triggerCurrentItemClick:function(ae){var Me;return(Me=ve)===null||Me===void 0?void 0:Me.click(ae)}},Bt=!1,et=!1,xt={zIndex:ge+1,container:B.container,adjustPadding:z.adjustPadding||g.defaultAdjustPadding,getParentWidth:function(){var ae;return((ae=Be.value)===null||ae===void 0?void 0:ae.offsetWidth)||0},getParentHeight:function(){var ae;return((ae=Be.value)===null||ae===void 0?void 0:ae.offsetHeight)||0},getParentX:function(){return Je.value.x},getParentY:function(){return Je.value.y},getParentAbsX:function(){return Be.value?C(Be.value,B.container):0},getParentAbsY:function(){return Be.value?v(Be.value,B.container):0},getPositon:function(){return[0,0]},addOpenedSubMenu:function(ae){Ct.push(ae)},closeOtherSubMenu:function(){Ct.forEach(function(ae){return ae()}),Ct.splice(0,Ct.length),lt(Lt)},checkCloseOtherSubMenuTimeOut:function(){return!!ct&&(clearTimeout(ct),ct=0,!0)},closeOtherSubMenuWithTimeOut:function(){var ae=this;ct=setTimeout(function(){ct=0,ae.closeOtherSubMenu()},200)},addChildMenuItem:function(ae,Me){Me===void 0?me.push(ae):me.splice(Me,0,ae)},removeChildMenuItem:function(ae){me.splice(me.indexOf(ae),1)},markActiveMenuItem:function(ae){var Me=arguments.length>1&&arguments[1]!==void 0&&arguments[1];ht(),ve=ae,Me&&we()},markThisOpenedByKeyBoard:function(){Bt=!0},isOpenedByKeyBoardFlag:function(){return!!Bt&&(Bt=!1,!0)},isMenuItemDataCollectedFlag:function(){return et},getElement:function(){return Be.value||null},getParentContext:function(){return B},getSubMenuInstanceContext:function(){return Lt}};(0,o.provide)("menuContext",xt);var kt=(0,o.ref)(0),Rt=(0,o.ref)(0);function tt(ae){kt.value=ae?Math.max(kt.value-50,-Rt.value):Math.min(kt.value+50,0)}var dt=(0,o.ref)(!1),Je=(0,o.ref)({x:0,y:0}),It=(0,o.ref)(0);return(0,o.onMounted)(function(){var ae,Me,Nt,pn,zi=B.getPositon();Je.value={x:(ae=(Me=zi[0])!==null&&Me!==void 0?Me:z.xOffset)!==null&&ae!==void 0?ae:0,y:(Nt=(pn=zi[1])!==null&&pn!==void 0?pn:z.yOffset)!==null&&Nt!==void 0?Nt:0},lt(Lt),(0,o.nextTick)(function(){var ut=Be.value;if(ut&&Qe.value){var ps,hs,ms,gs,vs,ys,er=B.container,_s=(ps=he==null?void 0:he())!==null&&ps!==void 0?ps:0,La=(hs=be==null?void 0:be())!==null&&hs!==void 0?hs:0,fo=typeof B.adjustPadding=="number"?B.adjustPadding:(ms=(gs=B.adjustPadding)===null||gs===void 0?void 0:gs.x)!==null&&ms!==void 0?ms:0,po=typeof B.adjustPadding=="number"?B.adjustPadding:(vs=(ys=B.adjustPadding)===null||ys===void 0?void 0:ys.y)!==null&&vs!==void 0?vs:0,ho=La>0?po:0,Ba=document.documentElement.scrollHeight,Na=document.documentElement.scrollWidth,ja=Math.min(Na,er.offsetWidth),bs=Math.min(Ba,er.offsetHeight),ws=C(ut,er),Cs=v(ut,er);S.direction.includes("l")?Je.value.x-=ut.offsetWidth+fo:S.direction.includes("r")?Je.value.x+=_s+fo:(Je.value.x+=_s/2,Je.value.x-=(ut.offsetWidth+fo)/2),S.direction.includes("t")?Je.value.y-=ut.offsetHeight+2*po:S.direction.includes("b")?Je.value.y-=po:Je.value.y-=(ut.offsetHeight+po)/2,oe.value&&(0,o.nextTick)(function(){ws=C(ut,er),Cs=v(ut,er);var Da=ws+ut.offsetWidth-ja,Ki=Cs+ut.offsetHeight-bs;if(Rt.value=ut.offsetHeight-bs-2*ho,dt.value=Ki>0,Da>0){var qi=_s+ut.offsetWidth-fo,Ji=ws;Je.value.x-=qi>Ji?Ji:qi}if(dt.value){var Yi=Ki,Zi=Cs;Je.value.y-=Yi>Zi?Zi-ho:Yi-2*ho,It.value=bs-2*ho}else It.value=0})}ut==null||ut.focus({preventScroll:!0}),B.isOpenedByKeyBoardFlag()&&Qt(!0),et=!0})}),{menu:Be,scroll:Qe,options:z,zIndex:ge,constOptions:g,scrollValue:kt,overflow:dt,position:Je,scrollHeight:Rt,maxHeight:It,globalHasSlot:le,globalRenderSlot:xe,globalTheme:Pe,onScroll:tt,onSubMenuBodyClick:mt,solveNumberOrStringSize:O}}}),ie=(0,Ve.Z)(ee,[["render",A]]),de=ie,ye=(0,o.defineComponent)({name:"ContextMenu",emits:["update:show","close"],props:{options:{type:Object,default:null},show:{type:Boolean,default:!1},container:{type:Object,default:null},isFullScreenContainer:{type:Boolean,default:!0}},setup:function(S,B){var z,le,xe,Pe,ge=(0,o.toRefs)(S),he=ge.options,be=ge.show,qe=ge.container;(0,o.onMounted)(function(){be&&Be()}),(0,o.onBeforeUnmount)(function(){lt()}),(0,o.watch)(be,function(we){we?Be():lt()});var oe={closeMenu:Qe};function Be(){Ct(),a(oe)}function Qe(we){B.emit("update:show",!1),B.emit("close",we),f(oe)}function Ct(){setTimeout(function(){document.addEventListener("click",ht,!0),document.addEventListener("contextmenu",ht,!0),document.addEventListener("scroll",ct,!0),!S.isFullScreenContainer&&qe.value&&qe.value.addEventListener("scroll",ct,!0),he.value.keyboardControl!==!1&&document.addEventListener("keydown",ve)},50)}function lt(){document.removeEventListener("contextmenu",ht,!0),document.removeEventListener("click",ht,!0),document.removeEventListener("scroll",ct,!0),!S.isFullScreenContainer&&qe.value&&qe.value.removeEventListener("scroll",ct,!0),he.value.keyboardControl!==!1&&document.removeEventListener("keydown",ve)}B.expose({closeMenu:Qe});var me=(0,o.ref)();function ve(we){var mt,Lt,Bt,et,xt,kt,Rt,tt,dt=!0;switch(we.key){case"Escape":var Je,It;((Je=me.value)===null||Je===void 0?void 0:Je.isTopLevel())===!1?(It=me.value)===null||It===void 0||It.closeCurrentSubMenu():Qe();break;case"ArrowDown":(mt=me.value)===null||mt===void 0||mt.moveCurrentItemDown();break;case"ArrowUp":(Lt=me.value)===null||Lt===void 0||Lt.moveCurrentItemUp();break;case"Home":(Bt=me.value)===null||Bt===void 0||Bt.moveCurrentItemFirst();break;case"End":(et=me.value)===null||et===void 0||et.moveCurrentItemLast();break;case"ArrowLeft":var ae,Me,Nt;(ae=me.value)!==null&&ae!==void 0&&ae.closeSelfAndActiveParent()||(Me=(Nt=he.value).onKeyFocusMoveLeft)===null||Me===void 0||Me.call(Nt);break;case"ArrowRight":(xt=me.value)!==null&&xt!==void 0&&xt.openCurrentItemSubMenu()||(kt=(Rt=he.value).onKeyFocusMoveRight)===null||kt===void 0||kt.call(Rt);break;case"Enter":(tt=me.value)===null||tt===void 0||tt.triggerCurrentItemClick(we);break;default:dt=!1;break}dt&&me.value&&(we.stopPropagation(),we.preventDefault())}function ct(){he.value.closeWhenScroll!==!1&&Qe()}function ht(we){Qt(we.target)}function Qt(we){for(;we;){if(we.classList&&we.classList.contains("mx-menu-host"))return;we=we.parentNode}lt(),Qe()}return(0,o.provide)("globalSetCurrentSubMenu",function(we){return me.value=we}),(0,o.provide)("globalOptions",he.value),(0,o.provide)("globalCloseMenu",Qe),(0,o.provide)("globalTheme",((z=he.value)===null||z===void 0?void 0:z.theme)||"light"),(0,o.provide)("globalIsFullScreenContainer",S.isFullScreenContainer),(0,o.provide)("globalClickCloseClassName",(le=he.value)===null||le===void 0?void 0:le.clickCloseClassName),(0,o.provide)("globalIgnoreClickClassName",(xe=he.value)===null||xe===void 0?void 0:xe.ignoreClickClassName),(0,o.provide)("globalIconFontClass",((Pe=he.value)===null||Pe===void 0?void 0:Pe.iconFontClass)||"iconfont"),(0,o.provide)("globalHasSlot",function(we){return B.slots[we]!==void 0}),(0,o.provide)("globalRenderSlot",function(we,mt){return(0,o.renderSlot)(B.slots,we,I({},mt),function(){return[(0,o.h)("span","Render slot failed")]},!1)}),(0,o.provide)("menuContext",{zIndex:he.value.zIndex||g.defaultZindex,container:qe.value,adjustPadding:{x:0,y:0},getParentAbsY:function(){return he.value.x},getParentAbsX:function(){return he.value.y},getParentX:function(){return 0},getParentY:function(){return 0},getParentWidth:function(){return 0},getParentHeight:function(){return 0},getPositon:function(){return[he.value.x,he.value.y]},closeOtherSubMenuWithTimeOut:function(){},checkCloseOtherSubMenuTimeOut:function(){return!1},addOpenedSubMenu:function(){},closeOtherSubMenu:function(){},getParentContext:function(){return null},getSubMenuInstanceContext:function(){return null},getElement:function(){return null},addChildMenuItem:function(){},removeChildMenuItem:function(){},markActiveMenuItem:function(){},markThisOpenedByKeyBoard:function(){},isOpenedByKeyBoardFlag:function(){return!1},isMenuItemDataCollectedFlag:function(){return!1}}),function(){var we,mt;return be.value?[(0,o.h)("div",{class:"mx-menu-ghost-host"},[(0,o.h)(de,{class:"mx-menu-host",items:(we=he.value)===null||we===void 0?void 0:we.items,adjustPosition:(mt=he.value)===null||mt===void 0?void 0:mt.adjustPosition,maxWidth:he.value.maxWidth||g.defaultMaxWidth,minWidth:he.value.minWidth||g.defaultMinWidth,direction:he.value.direction||g.defaultDirection},{default:B.slots.default})])]:[]}}}),Ie=ye,ke=Ie,Ue=(0,o.defineComponent)({name:"ContextMenu",emits:["update:show","close"],props:{options:{type:Object,default:null},show:{type:Boolean,default:!1}},setup:function(S,B){var z=(0,o.toRefs)(S),le=z.options,xe=z.show;return B.expose({closeMenu:function(){return B.emit("update:show",!1)}}),function(){var Pe=b(le.value),ge=Pe.isNew,he=Pe.container,be=Pe.eleId,qe=xe.value?[(0,o.h)(ke,{options:le,show:!0,container:he,isFullScreenContainer:!ge,"onUpdate:show":function(oe){return B.emit("update:show",oe)},onClose:function(oe){var Be,Qe;B.emit("update:show",!1),B.emit("close"),(Be=(Qe=le.value).onClose)===null||Be===void 0||Be.call(Qe,oe)}},B.slots)]:[];return[(0,o.h)(o.Teleport,{to:"#".concat(be)},qe)]}}}),wt=Ue,Gt=wt;function Qn(S){return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},Qn(S)}const An=(0,o.defineComponent)({name:"ContextMenuGroup",props:{disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},clickHandler:{type:Function,default:null},label:{type:String,default:""},icon:{type:String,default:""},iconFontClass:{type:String,default:"iconfont"},checked:{type:Boolean,default:!1},shortcut:{type:String,default:""},svgIcon:{type:String,default:""},svgProps:{type:Object,default:null},preserveIconWidth:{type:Boolean,default:!0},showRightArrow:{type:Boolean,default:!1},clickClose:{type:Boolean,default:!0},adjustSubMenuPosition:{type:Boolean,default:void 0},maxWidth:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0}},setup:function(S,B){var z=(0,o.inject)("globalOptions"),le=(0,o.toRefs)(S),xe=le.adjustSubMenuPosition,Pe=le.maxWidth,ge=le.minWidth,he=typeof xe.value<"u"?xe.value:z.adjustPosition;return function(){return(0,o.h)(j,I(I({},S),{},{showRightArrow:!0,maxWidth:void 0,minWidth:void 0,adjustSubMenuPosition:void 0,hasChildren:Qn(B.slots.default)!==void 0}),B.slots.default?{submenu:function(){return(0,o.h)(de,{maxWidth:Pe.value,minWidth:ge.value,adjustPosition:he},{default:B.slots.default})}}:void 0)}}}),ao=An,it=ao;function Ot(S,B,z,le){var xe=(0,o.h)(ke,{options:S,show:!0,container:B,isFullScreenContainer:!z,onClose:function(Pe){var ge;(0,o.render)(null,B),(ge=S.onClose)===null||ge===void 0||ge.call(S,Pe)}},le);return(0,o.render)(xe,B),xe.component}function Sr(S,B){var z=b(S),le=Ot(S,z.container,z.isNew,B);return le.exposed}const ds={install:function(S){S.config.globalProperties.$contextmenu=Sr,S.component("ContextMenu",Gt),S.component("ContextMenuItem",j),S.component("ContextMenuGroup",it),S.component("ContextMenuSperator",ne),S.component("ContextMenuSeparator",ne),S.component("ContextSubMenu",de)},showContextMenu:function(S,B){return Sr(S,B)},closeContextMenu:p,transformMenuPosition:y};var ya={key:0,ref:"menuBarContent",class:"mx-menu-bar-content"},_a={key:1,ref:"menuBarContent",class:"mx-menu-bar-content"},ba=["onClick","onMouseenter"];function wa(S,B,z,le,xe,Pe){var ge,he=(0,o.resolveComponent)("MenuBarIconMenu");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["mx-menu-bar",(ge=S.options.theme)!==null&&ge!==void 0?ge:"",S.options.mini?"mini":""]),onFocus:B[1]||(B[1]=function(){return S.onFocus&&S.onFocus.apply(S,arguments)}),onBlur:B[2]||(B[2]=function(){return S.onBlur&&S.onBlur.apply(S,arguments)})},[(0,o.renderSlot)(S.$slots,"prefix"),S.options.mini?((0,o.openBlock)(),(0,o.createElementBlock)("div",ya,[(0,o.createElementVNode)("div",{class:"mx-menu-bar-item",onClick:B[0]||(B[0]=function(be){return S.onItemClick(0,null)})},[(0,o.createVNode)(he)])],512)):((0,o.openBlock)(),(0,o.createElementBlock)("div",_a,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(S.menuItems,function(be,qe){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{key:qe,class:(0,o.normalizeClass)(["mx-menu-bar-item",be==S.menuActive?"active":""]),onClick:function(oe){return S.onItemClick(qe,be)},onMouseenter:function(oe){return S.onItemEnter(qe,be)}},(0,o.toDisplayString)(be.label),43,ba)}),128))],512)),(0,o.renderSlot)(S.$slots,"suffix")],34)}var Ca={class:"mx-menu-bar-icon-menu",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},xa=(0,o.createElementVNode)("path",{d:"M133.310936 296.552327l757.206115 0c19.781623 0 35.950949-16.169326 35.950949-35.950949 0-19.781623-15.997312-35.950949-35.950949-35.950949L133.310936 224.650428c-19.781623 0-35.950949 16.169326-35.950949 35.950949C97.359987 280.383 113.529313 296.552327 133.310936 296.552327z"},null,-1),ka=(0,o.createElementVNode)("path",{d:"M890.51705 476.135058 133.310936 476.135058c-19.781623 0-35.950949 16.169326-35.950949 35.950949 0 19.781623 16.169326 35.950949 35.950949 35.950949l757.206115 0c19.781623 0 35.950949-16.169326 35.950949-35.950949C926.467999 492.304384 910.298673 476.135058 890.51705 476.135058z"},null,-1),Ea=(0,o.createElementVNode)("path",{d:"M890.51705 727.447673 133.310936 727.447673c-19.781623 0-35.950949 15.997312-35.950949 35.950949s16.169326 35.950949 35.950949 35.950949l757.206115 0c19.781623 0 35.950949-15.997312 35.950949-35.950949S910.298673 727.447673 890.51705 727.447673z"},null,-1),Sa=[xa,ka,Ea];function Pa(S,B){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",Ca,Sa)}const Oa={},Ra=(0,Ve.Z)(Oa,[["render",Pa]]),Ia=Ra,Ma=(0,o.defineComponent)({name:"MenuBar",emits:[],props:{options:{type:Object,default:null}},components:{MenuBarIconMenu:Ia},setup:function(S){var B=(0,o.ref)(),z=(0,o.ref)(!1),le=(0,o.ref)([]),xe=(0,o.ref)(null);function Pe(){z.value=!0}function ge(){z.value=!1}(0,o.onMounted)(function(){le.value=S.options.items||[]}),(0,o.watch)(function(){return S.options},function(){le.value=S.options.items||[]});var he=null,be=-1;function qe(){be<le.value.length-1?be++:be=0,Be(be,le.value[be])}function oe(){be>0?be--:be=le.value.length-1,Be(be,le.value[be])}function Be(me,ve){var ct;if(be=me,ve.children){he&&(he.closeMenu(),he=null,z.value=!0),xe.value=ve;var ht=(ct=B.value)===null||ct===void 0?void 0:ct.children[me];ht&&(he=ds.showContextMenu(I(I({},S.options),{},{items:ve.children,x:C(ht),y:v(ht)+ht.offsetHeight,onKeyFocusMoveLeft:function(){oe()},onKeyFocusMoveRight:function(){qe()},onClose:function(){xe.value==ve&&(z.value=!1,xe.value=null)}})))}}function Qe(){be=0;var me=B.value;me&&(he=ds.showContextMenu(I(I({},S.options),{},{x:C(me),y:v(me)+me.offsetHeight})))}function Ct(me,ve){ve?(z.value=!0,Be(me,ve),ve.onClick&&(ve.clickableWhenHasChildren===!0&&ve.children&&ve.children.length>0||!ve.children||ve.children.length===0)&&ve.onClick()):Qe()}function lt(me,ve){z.value&&Be(me,ve)}return{menuItems:le,menuActive:xe,menuBarContent:B,menuBarActive:z,onFocus:Pe,onBlur:ge,onItemClick:Ct,onItemEnter:lt}}}),Aa=(0,Ve.Z)(Ma,[["render",wa]]),Ta=Aa,$a=ds,Fa=$a})(),c})())})(fa);var Xm=fa.exports;const Ui=Jm(Xm),Gm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},Qm=W("path",{d:"M223.97 175A81 81 0 0 0 143 256c0 44.7 36.27 81.03 80.97 81.03 44.72 0 80.72-36.34 80.72-81.03 0-44.73-36-81-80.8-81zM386.3 302.53l-14.58 35.16 29.47 57.8-36.1 36.1-59.3-28-35.2 14.4-17.87 54.6-2.28 7.24h-51L177.4 418.2l-35.17-14.5-57.9 29.4-36.1-36.1 27.97-59.2-14.47-35.12L0 282.6v-51l61.7-22.1 14.5-35.1-25.96-51.23-3.43-6.72 36.1-36.03 59.3 27.92 35.1-14.5 17.9-54.6 2.3-7.24h51l22.1 61.73 35.07 14.52 58.04-29.4 36.06 36.03-27.96 59.2 14.42 35.17 61.8 20.13v50.97l-61.67 22.18z"},null,-1),eg=[Qm];function da(e,t){return G(),ce("svg",Gm,[...eg])}const pa={render:da},tg=Object.freeze(Object.defineProperty({__proto__:null,default:pa,render:da},Symbol.toStringTag,{value:"Module"})),ng={key:0,class:"empty-container"},rg={key:0},og={key:1},sg={key:2},ig={key:3},lg={key:4},cg=Le({__name:"EmptyFolder",props:{path:{},documents:{}},setup(e){const t=ze(),n=e;return(r,s)=>!n.path||r.documents.length===0?(G(),ce("div",ng,[(G(),st(Xo(se(pa)),{class:"cog"})),se(t).connected?se(t).document.length===0?(G(),ce("p",og,"Waiting for File List")):se(t).query?(G(),ce("p",sg,"No matches!")):se(ua)(n.path)?(G(),ce("p",lg,"Empty folder")):(G(),ce("p",ig,"Folder not found")):(G(),ce("p",rg,"No Connection"))])):Ye("",!0)}});const ug=Ut(cg,[["__scopeId","data-v-92345830"]]),ag=["checked"],fg=Le({__name:"SelectBox",props:{doc:{}},setup(e){const t=ze();return(n,r)=>(G(),ce("input",{type:"checkbox",tabindex:"-1",checked:se(t).selected.has(n.doc.key),onClick:r[0]||(r[0]=ot(()=>{},["stop"])),onChange:r[1]||(r[1]=s=>{s.target.checked?se(t).selected.add(n.doc.key):se(t).selected.delete(n.doc.key)})},null,40,ag))}}),dg=["onKeyup"],si=Le({__name:"FileRenameInput",props:{doc:{},rename:{type:Function},exit:{type:Function}},setup(e){const t=Re(null),n=Re("");Tt(()=>{n.value=r.doc.name;const i=n.value.lastIndexOf(".");Jt(()=>{t.value.focus(),t.value.setSelectionRange(0,i>0?i:n.value.length)})});const r=e,s=()=>{r.exit(),!(r.doc.key!=="new"&&(n.value===r.doc.name||n.value.length===0))&&r.rename(r.doc,n.value)};return(i,c)=>Wn((G(),ce("input",{ref_key:"input",ref:t,id:"FileRenameInput",type:"text",autocorrect:"off","onUpdate:modelValue":c[0]||(c[0]=l=>n.value=l),onBlur:c[1]||(c[1]=(...l)=>i.exit&&i.exit(...l)),onKeyup:[c[2]||(c[2]=Hn((...l)=>i.exit&&i.exit(...l),["esc"])),Hn(s,["enter"])]},null,40,dg)),[[an,n.value]])}});const pg=["src"],hg=["src"],mg={key:2,class:"folder icon"},gg=["src","poster"],vg={key:4,class:"audio icon"},yg=["src"],_g={key:5,class:"archive icon"},bg=Le({__name:"MediaPreview",props:{doc:{},quality:{}},setup(e,{expose:t}){const n=Re(null),r=Re(null),s=Se(()=>n.value||r.value),i=Se(()=>`${c.doc.previewurl}?${c.quality}&t=${c.doc.mtime}`),c=e,l=()=>{s.value&&(s.value.controls=!0,s.value.setAttribute("data-playing",""))},d=()=>{s.value&&(s.value.controls=!1,s.value.removeAttribute("data-playing"))};let o=null;const u=()=>{if(!s.value)return;s.value.load();const v=Array.from(document.querySelectorAll("video, audio"));if(v.length===0)return;let C=null;for(const y in v)if(v[y]===(o||s.value)){C=v[+y+1]||v[0];break}if(C)if(C.tagName==="VIDEO"&&document.fullscreenElement===s.value){const y=s.value,_=C;if(y===_){_.play();return}o||y.addEventListener("fullscreenchange",m=>{o&&(o.currentTime=y.currentTime,o.click(),y.paused||o.play(),o=null,y.src=c.doc.url,y.poster=i.value,d())},{once:!0}),o=_,y.src=_.src,y.poster="",y.play()}else document.exitFullscreen(),C.click()};t({play(){if(!s.value)return!1;if(s.value.paused){s.value.play();for(const v of Array.from(document.querySelectorAll("video, audio")))v!==s.value&&v.pause()}else s.value.pause();return!0},media:s});const a=()=>["mkv","mp4","webm","mov","avi"].includes(c.doc.ext),f=()=>["mp3","flac","ogg","aac"].includes(c.doc.ext),p=()=>["zip","tar","gz","bz2","xz","7z","rar"].includes(c.doc.ext),g=()=>["bmp","ico","tif","tiff","pdf"].includes(c.doc.ext)||c.doc.size>5e5&&["avif","webp","png","jpg","jpeg"].includes(c.doc.ext);return(v,C)=>g()?(G(),ce("img",{key:0,src:`${v.doc.previewurl}?${v.quality}&t=${v.doc.mtime}`,alt:""},null,8,pg)):v.doc.img?(G(),ce("img",{key:1,src:v.doc.url,alt:""},null,8,hg)):v.doc.dir?(G(),ce("span",mg)):a()?(G(),ce("video",{key:3,ref_key:"vid",ref:r,src:v.doc.url,poster:i.value,preload:"none",onPlay:l,onPause:d,onEnded:u,onSeeking:C[0]||(C[0]=y=>s.value.play())},null,40,gg)):f()?(G(),ce("div",vg,[W("audio",{ref_key:"aud",ref:n,src:v.doc.url,class:"icon",preload:"none",onPlay:l,onPause:d,onEnded:u,onSeeking:C[1]||(C[1]=y=>s.value.play())},null,40,yg)])):p()?(G(),ce("span",_g)):(G(),ce("span",{key:6,class:vt(["file icon",`ext-${v.doc.ext}`])},null,2))}});const wg=Ut(bg,[["__scopeId","data-v-489a226d"]]),ha=e=>(Cr("data-v-65c54c1e"),e=e(),xr(),e),Cg=["id","href"],xg=ha(()=>W("div",{class:"titlespacer"},null,-1)),kg=["title"],Eg=ha(()=>W("div",{class:"namespacer"},null,-1)),Sg=Le({__name:"GalleryFigure",props:{doc:{},editing:{}},setup(e){const t=ze(),n=e,r=Re(null),s=i=>{r.value.play()&&i.preventDefault(),t.cursor=n.doc.key};return(i,c)=>{const l=si,d=fg;return G(),ce("a",{id:`file-${i.doc.key}`,href:i.doc.url,tabindex:"-1",class:vt({file:!i.doc.dir,folder:i.doc.dir,cursor:se(t).cursor===i.doc.key}),onContextmenu:c[2]||(c[2]=ot(()=>{},["stop"])),onFocus:c[3]||(c[3]=ot(o=>se(t).cursor=i.doc.key,["stop"])),onClick:s},[W("figure",null,[lo(i.$slots,"default",{},void 0,!0),ue(wg,{ref_key:"m",ref:r,doc:i.doc,tabindex:"-1",quality:"sz=512",class:"figcontent"},null,8,["doc"]),xg,W("figcaption",{onClick:c[1]||(c[1]=ot(()=>{},["prevent"]))},[i.editing?(G(),st(l,{key:0,doc:i.doc,rename:i.editing.rename,exit:i.editing.exit},null,8,["doc","rename","exit"])):(G(),ce(Ee,{key:1},[ue(d,{doc:i.doc,onClick:c[0]||(c[0]=o=>se(t).cursor=i.doc.key)},null,8,["doc"]),W("span",{title:i.doc.name+`
11
+ `+i.doc.modified+`
12
+ `+i.doc.sizedisp},Ge(i.doc.name),9,kg),Eg],64))])])],42,Cg)}}});const Pg=Ut(Sg,[["__scopeId","data-v-65c54c1e"]]),Og=Le({__name:"Gallery",props:{path:{},documents:{}},setup(e,{expose:t}){const n=e,r=ze(),s=Ni(),i=oo(null),c=()=>{i.value=null},l=(y,_)=>{const m=y.name,h=Jn(eo,{message(b){const O=JSON.parse(b.data);"error"in O?(console.error("Rename failed",O.error.message,O.error),y.name=m):console.log("Rename succeeded",O)}});h.onopen=()=>{h.send(JSON.stringify({op:"rename",path:`${y.loc}/${m}`,to:_}))},y.name=_},d=Re(),o=Se(()=>d.value?getComputedStyle(d.value).gridTemplateColumns.split(" ").length:1);t({newFolder(){const y=Math.floor(Date.now()/1e3);i.value=new ji({loc:C.value,key:"new",name:"New Folder",dir:!0,mtime:y,size:0})},toggleSelectAll(){console.log("Select"),v.value=!v.value},toggleSortColumn(y){const _=["","name","modified","size",""][y];_&&r.toggleSort(_)},isCursor(){return r.cursor&&i.value===null},cursorRename(){i.value=n.documents.find(y=>y.key===r.cursor)??null},cursorSelect(){const y=r.cursor;y&&(r.selected.has(y)?r.selected.delete(y):r.selected.add(y),this.cursorMove(1,null))},up(y){this.cursorMove(-o.value,y)},down(y){this.cursorMove(o.value,y)},left(y){this.cursorMove(-1,y)},right(y){this.cursorMove(1,y)},cursorMove(y,_){var M;const m=!!(_!=null&&_.shiftKey),h=n.documents;if(h.length===0){r.cursor="";return}const b=h.length,O=(A,L)=>(A%L+L)%L,P=(A,L)=>O(A+L,b+1),x=r.cursor?h.findIndex(A=>A.key===r.cursor):b;if(_&&x===0&&_.key==="ArrowLeft"||_&&x===b-1&&_.key==="ArrowRight")return;let E;x===b?E=y>0?0:b-1:(E=P(x,y),(Math.abs(y)>=b||Math.sign(y)!==Math.sign(E-x))&&(E=b)),r.cursor=((M=h[E])==null?void 0:M.key)??"";const I=r.cursor?document.getElementById(`file-${r.cursor}`):"";if(m){let[A,L]=y>0?[x,E]:[E,x];for(let q=A;q!==L;q=P(q,1)){if(q===b)continue;const Z=h[q].key;r.selected.has(Z)?r.selected.delete(Z):r.selected.add(Z)}}f=I,a||(a=setTimeout(()=>{f&&f.scrollIntoView({block:"center",behavior:"smooth"}),a=null},300)),E===b&&u()}});const u=()=>{const y=document.querySelector(".breadcrumb");y&&y.focus()};let a=null,f=null;Yt(()=>{var y;if(r.cursor&&r.cursor!==((y=i.value)==null?void 0:y.key)&&(i.value=null),i.value&&(r.cursor=i.value.key),r.cursor){const _=document.querySelector(`#file-${r.cursor}`);_&&(_.focus(),_.scrollIntoView({block:"center",behavior:"smooth"}))}}),Yt(()=>{!n.documents.length&&r.cursor&&(r.cursor="",u())}),Tt(()=>{const y=document.querySelector(".cursor");y&&(y.scrollIntoView({block:"center",behavior:"instant"}),y.focus())});const p=(y,_)=>{const m=Jn(eo,{open(){m.send(JSON.stringify({op:"mkdir",path:`${y.loc}/${_}`}))},message(h){const b=JSON.parse(h.data);"error"in b?(console.error("Mkdir failed",b.error.message,b.error),i.value=null):(console.log("mkdir",b),s.push(y.urlrouter))}});y.name=_,y.key=crypto.randomUUID()},g=y=>{const _=n.documents,m=_[y].loc;return y===0?m!==C.value:m!==_[y-1].loc};Se({get:()=>n.documents.length>0&&n.documents.some(y=>r.selected.has(y.key))&&!v.value,set:y=>{}});const v=Se({get:()=>n.documents.length>0&&n.documents.every(y=>r.selected.has(y.key)),set:y=>{console.log("Setting allSelected",y);for(const _ of n.documents)y?r.selected.add(_.key):r.selected.delete(_.key)}}),C=Se(()=>n.path.join("/"));return(y,_)=>{var b;const m=Pg,h=Hi;return n.documents.length||i.value?(G(),ce("div",{key:0,class:"gallery",ref_key:"gallery",ref:d},[((b=i.value)==null?void 0:b.key)==="new"?(G(),st(m,{doc:i.value,key:i.value.key,editing:{rename:p,exit:c}},null,8,["doc","editing"])):Ye("",!0),(G(!0),ce(Ee,null,ns(y.documents,(O,P)=>(G(),st(m,{key:O.key,doc:O,editing:i.value===O?{rename:l,exit:c}:null},{default:Gn(()=>[g(P)?(G(),st(h,{key:0,path:O.loc?O.loc.split("/"):[],class:"folder-change"},null,8,["path"])):Ye("",!0)]),_:2},1032,["doc","editing"]))),128))],512)):Ye("",!0)}}});const Rg=Ut(Og,[["__scopeId","data-v-9dd64a3c"]]),Ig=Le({__name:"FileSize",props:{doc:{}},setup(e){const t=Se(()=>{const r=n.doc.sizedisp.split(" ").slice(-1)[0];return+r?"bytes":r}),n=e;return(r,s)=>(G(),ce("td",{class:vt(["size right",t.value])},Ge(r.doc.sizedisp),3))}});const Mg=Ut(Ig,[["__scopeId","data-v-0f1301ed"]]),Ag={class:"modified right"},Tg=["data-tooltip","datetime"],$g=Le({__name:"FileModified",props:{doc:{}},setup(e){const t=Se(()=>new Date(1e3*r.doc.mtime).toISOString().replace(".000Z","Z")),n=Se(()=>t.value.replace("T",`
13
+ `).replace("Z"," UTC")),r=e;return(s,i)=>(G(),ce("td",Ag,[W("time",{"data-tooltip":n.value,datetime:t.value},Ge(s.doc.modified),9,Tg)]))}}),fs=e=>(Cr("data-v-c8bd5558"),e=e(),xr(),e),Fg={key:0},Lg={class:"selection"},Bg=["indeterminate"],Ng=fs(()=>W("th",{class:"menu"},null,-1)),jg={key:0,class:"folder"},Dg=fs(()=>W("td",{class:"selection"},null,-1)),Vg={class:"name"},Hg=fs(()=>W("td",{class:"menu"},null,-1)),Ug={key:0,class:"folder-change"},Wg={colspan:"5"},zg=["id","onClick","onContextmenu"],Kg=["onClick"],qg=["checked","onChange"],Jg={class:"name"},Yg=["href","onFocus"],Zg=["onClick"],Xg={class:"menu"},Gg=["onClick"],Qg={key:1,class:"summary"},ev={colspan:"3",class:"right"},tv={class:"size right"},nv=fs(()=>W("td",{class:"menu"},null,-1)),rv=Le({__name:"FileExplorer",props:{path:{},documents:{}},setup(e,{expose:t}){const n=e,r=ze(),s=Ni(),i=oo(null),c=(m,h)=>{const b=m.name,O=Jn(eo,{message(P){const x=JSON.parse(P.data);"error"in x?(console.error("Rename failed",x.error.message,x.error),m.name=b):console.log("Rename succeeded",x)}});O.onopen=()=>{O.send(JSON.stringify({op:"rename",path:`${m.loc}/${b}`,to:h}))},m.name=h};t({newFolder(){const m=Math.floor(Date.now()/1e3);i.value=new ji({loc:y.value,key:"new",name:"New Folder",dir:!0,mtime:m,size:0})},toggleSelectAll(){console.log("Select"),C.value=!C.value},isCursor(){return r.cursor&&i.value===null},cursorRename(){i.value=n.documents.find(m=>m.key===r.cursor)??null},cursorSelect(){const m=r.cursor;m&&(r.selected.has(m)?r.selected.delete(m):r.selected.add(m),this.cursorMove(1,null))},up(m){this.cursorMove(-1,m)},down(m){this.cursorMove(1,m)},left(m){s.back()},right(m){const h=document.querySelector(`#file-${r.cursor} a`);h&&h.click()},cursorMove(m,h){var L;const b=!!(h!=null&&h.shiftKey),O=n.documents;if(O.length===0){r.cursor="";return}const P=O.length,x=(q,Z)=>(q%Z+Z)%Z,E=(q,Z)=>x(q+Z,P+1),I=r.cursor?O.findIndex(q=>q.key===r.cursor):O.length,M=E(I,m);r.cursor=((L=O[M])==null?void 0:L.key)??"";const A=r.cursor?document.getElementById(`file-${r.cursor}`):"";if(b){let[q,Z]=m>0?[I,M]:[M,I];for(let T=q;T!==Z;T=E(T,1)){if(T===P)continue;const K=O[T].key;r.selected.has(K)?r.selected.delete(K):r.selected.add(K)}}o=A,d||(d=setTimeout(()=>{o&&o.scrollIntoView({block:"center",behavior:"smooth"}),d=null},300)),M===P&&l()}});const l=()=>{const m=document.querySelector(".breadcrumb");m&&m.focus()};let d=null,o=null;Yt(()=>{var m,h;if(r.cursor&&r.cursor!==((m=i.value)==null?void 0:m.key)&&(i.value=null),i.value&&(r.cursor=(h=i.value)==null?void 0:h.key),r.cursor){const b=document.querySelector(`#file-${r.cursor} .name a`);b&&b.focus()}}),Yt(()=>{!n.documents.length&&r.cursor&&(r.cursor="",l())});let u=Re(0),a=null;const f=()=>{u.value=Math.floor(Date.now()/1e3)};Tt(()=>{f(),a=setInterval(f,1e3);const m=document.querySelector(".cursor");m&&(m.scrollIntoView({block:"center",behavior:"instant"}),m.focus())}),On(()=>{clearInterval(a)});const p=(m,h)=>{const b=Jn(eo,{open(){b.send(JSON.stringify({op:"mkdir",path:`${m.loc}/${h}`}))},message(O){const P=JSON.parse(O.data);"error"in P?(console.error("Mkdir failed",P.error.message,P.error),i.value=null):(console.log("mkdir",P),s.push(m.urlrouter))}});m.name=h,m.key=crypto.randomUUID()},g=m=>{const h=n.documents,b=h[m].loc;return m===0?b!==y.value:b!==h[m-1].loc},v=Se({get:()=>n.documents.length>0&&n.documents.some(m=>r.selected.has(m.key))&&!C.value,set:m=>{}}),C=Se({get:()=>n.documents.length>0&&n.documents.every(m=>r.selected.has(m.key)),set:m=>{console.log("Setting allSelected",m);for(const h of n.documents)m?r.selected.add(h.key):r.selected.delete(h.key)}}),y=Se(()=>n.path.join("/")),_=(m,h)=>{r.cursor=h.key,Ui.showContextMenu({x:m.x,y:m.y,items:[{label:"Rename",onClick:()=>{i.value=h}}]})};return(m,h)=>{var x;const b=$g,O=Mg,P=Hi;return n.documents.length||i.value?(G(),ce("table",Fg,[W("thead",null,[W("tr",null,[W("th",Lg,[Wn(W("input",{type:"checkbox",tabindex:"-1","onUpdate:modelValue":h[0]||(h[0]=E=>C.value=E),indeterminate:v.value},null,8,Bg),[[ls,C.value]])]),W("th",{class:vt(["sortcolumn",{sortactive:se(r).sortOrder==="name"}]),onClick:h[1]||(h[1]=E=>se(r).toggleSort("name"))},"Name",2),W("th",{class:vt(["sortcolumn modified right",{sortactive:se(r).sortOrder==="modified"}]),onClick:h[2]||(h[2]=E=>se(r).toggleSort("modified"))},"Modified",2),W("th",{class:vt(["sortcolumn size right",{sortactive:se(r).sortOrder==="size"}]),onClick:h[3]||(h[3]=E=>se(r).toggleSort("size"))},"Size",2),Ng])]),W("tbody",null,[((x=i.value)==null?void 0:x.key)==="new"?(G(),ce("tr",jg,[Dg,W("td",Vg,[ue(si,{doc:i.value,rename:p,exit:()=>{i.value=null}},null,8,["doc","exit"])]),(G(),st(b,{doc:i.value,key:se(u)},null,8,["doc"])),ue(O,{doc:i.value},null,8,["doc"]),Hg])):Ye("",!0),(G(!0),ce(Ee,null,ns(m.documents,(E,I)=>(G(),ce(Ee,{key:E.key},[g(I)?(G(),ce("tr",Ug,[W("th",Wg,[ue(P,{path:E.loc?E.loc.split("/"):[]},null,8,["path"])])])):Ye("",!0),W("tr",{id:`file-${E.key}`,class:vt({file:!E.dir,folder:E.dir,cursor:se(r).cursor===E.key}),onClick:M=>se(r).cursor=se(r).cursor===E.key?"":E.key,onContextmenu:ot(M=>_(M,E),["prevent"])},[W("td",{class:"selection",onClick:ot(M=>se(r).cursor=se(r).cursor===E.key?E.key:"",["stop"])},[W("input",{type:"checkbox",tabindex:"-1",checked:se(r).selected.has(E.key),onChange:M=>M.target.checked?se(r).selected.add(E.key):se(r).selected.delete(E.key)},null,40,qg)],8,Kg),W("td",Jg,[i.value===E?(G(),st(si,{key:0,doc:E,rename:c,exit:()=>{i.value=null}},null,8,["doc","exit"])):(G(),ce(Ee,{key:1},[W("a",{href:E.url,tabindex:"-1",onContextmenu:h[4]||(h[4]=ot(()=>{},["stop"])),onFocus:ot(M=>se(r).cursor=E.key,["stop"])},Ge(E.name),41,Yg),se(r).cursor==E.key?(G(),ce("button",{key:0,tabindex:"-1",class:"rename-button",onClick:()=>i.value=E},"🖊️",8,Zg)):Ye("",!0)],64))]),(G(),st(b,{doc:E,key:se(u)},null,8,["doc"])),ue(O,{doc:E},null,8,["doc"]),W("td",Xg,[W("button",{tabindex:"-1",onClick:ot(M=>_(M,E),["stop"])},"⋮",8,Gg)])],42,zg)],64))),128)),n.documents.length>1?(G(),ce("tr",Qg,[W("td",ev,Ge(n.documents.length)+" items",1),W("td",tv,Ge(se(ia)(n.documents.reduce((E,I)=>E+I.size,0))),1),nv])):Ye("",!0)])])):Ye("",!0)}}});const ov=Ut(rv,[["__scopeId","data-v-c8bd5558"]]),sv={key:2,class:"suggest-gallery"},iv=Le({__name:"ExplorerView",props:{path:{},query:{}},setup(e){const t=ze(),n=Re(),r=e,s=Se(()=>{const i=r.path.join("/"),c=r.query;if(!c)return oi(t.document.filter(f=>f.loc===i),t.prefs.sortListing);const l=mm(c);let d=100,o=[];for(const f of t.recentDocuments)if(gm(f.haystack,l)&&(o.push(f),--d===0))break;const u=i+"/",a=t.prefs.sortFiltered;return a?oi(o,a):(o.sort((f,p)=>(p.loc===i)-(f.loc===i)||(p.loc.slice(0,u.length)===u)-(f.loc.slice(0,u.length)===u)||Qr.compare(f.loc,p.loc)||(f.type==="file")-(p.type==="file")||p.name.includes(c)-f.name.includes(c)||Qr.compare(f.name,p.name)),o)});return Yt(()=>{t.fileExplorer=n.value,t.query=r.query}),(i,c)=>{const l=Rg,d=co,o=ug;return G(),ce(Ee,null,[se(t).prefs.gallery?(G(),st(l,{ref_key:"fileExplorer",ref:n,key:`gallery-${se(Yn).currentRoute.value.path}`,path:r.path,documents:s.value},null,8,["path","documents"])):(G(),st(ov,{ref_key:"fileExplorer",ref:n,key:`explorer-${se(Yn).currentRoute.value.path}`,path:r.path,documents:s.value},null,8,["path","documents"])),!se(t).prefs.gallery&&s.value.some(u=>u.previewable)?(G(),ce("div",sv,[ue(d,{name:"eye",taborder:"0",onClick:c[0]||(c[0]=()=>{se(t).prefs.gallery=!0})}),kr(" Gallery View ")])):Ye("",!0),ue(o,{documents:s.value,path:r.path},null,8,["documents","path"])],64)}}});const lv=Ut(iv,[["__scopeId","data-v-0493cb94"]]),Yn=fm({history:Oh("/"),routes:[{path:"/:pathMatch(.*)*",name:"explorer",component:lv}]}),ma=e=>(Cr("data-v-764b6743"),e=e(),xr(),e),cv={class:"headermain buttons"},uv=ma(()=>W("div",{class:"smallgap"},null,-1)),av=ma(()=>W("div",{class:"spacer smallgap"},null,-1)),fv=["value"],dv=Le({__name:"HeaderMain",props:{path:{},query:{}},setup(e,{expose:t}){const n=ze(),r=Re(!1),s=Re(),i=Re(),c=e,l=a=>{if(!r.value)return;r.value=!1,document.querySelector(".breadcrumb").focus(),d(a)},d=a=>{const f=a.target.value;let p=c.path.join("/");p=p?`/${p}`:"";const v=(f?`${p}//${f}`:p||"/").replaceAll("?","%3F").replaceAll("#","%23");!c.query&&f?Yn.push(v):Yn.replace(v)},o=a=>{if(r.value=!r.value,!r.value)return l(a);Jt(()=>{const f=s.value;f&&f.focus()})};Yt(()=>{c.query&&(r.value=!0)});const u=a=>{const f=[];f.push({label:"Settings",onClick:()=>{n.dialog="settings"}}),n.user.isLoggedIn?f.push({label:`Logout ${n.user.username??""}`,onClick:()=>n.logout()}):f.push({label:"Login",onClick:()=>n.loginDialog()}),Ui.showContextMenu({x:a.target.getBoundingClientRect().right,y:a.target.getBoundingClientRect().bottom,items:f})};return t({toggleSearchInput:o,closeSearch:l}),(a,f)=>{const p=Km,g=co;return G(),ce("nav",cv,[se(n).error?(G(),ce(Ee,{key:0},[W("div",{class:"error-message",onClick:f[0]||(f[0]=v=>se(n).error="")},Ge(se(n).error),1),uv],64)):Ye("",!0),ue(p,{path:c.path},null,8,["path"]),ue(g,{name:"create-folder","data-tooltip":"New folder",onClick:f[1]||(f[1]=()=>se(n).fileExplorer.newFolder())}),lo(a.$slots,"default",{},void 0,!0),av,r.value?(G(),ce("input",{key:1,ref_key:"search",ref:s,type:"search",value:a.query,onInput:d,placeholder:"Find files",class:"margin-input"},null,40,fv)):Ye("",!0),ue(g,{ref_key:"searchButton",ref:i,name:"find",onClick:ot(o,["prevent"])},null,8,["onClick"]),ue(g,{name:"eye",onClick:f[2]||(f[2]=v=>se(n).prefs.gallery=!se(n).prefs.gallery)}),ue(g,{name:"cog",onClick:u})])}}});const pv=Ut(dv,[["__scopeId","data-v-764b6743"]]),hv=Le({__name:"DownloadButton",setup(e){const t=ze(),n={total:0,xfer:0,t0:0,tlast:0,statbytes:0,statdur:0,files:[],filestart:0,fileidx:0,filecount:0,filename:"",filesize:0,filepos:0,status:"idle"},r=Xt({...n});setInterval(()=>{Date.now()-r.tlast>3e3?(r.statbytes=0,r.statdur=1):(r.statbytes*=.9,r.statdur*=.9)},100);const s=()=>{Object.assign(r,n),r.t0=Date.now(),r.tlast=r.t0+1},i=()=>{location.reload()},c=o=>{const u=document.createElement("a");u.href=o,u.download="",u.click()},l=async(o,u)=>{let a="",f=u;console.log("Downloading to filesystem",o.recursive);for(const[p,g,v]of o.recursive)v.dir||(r.files.push(p),++r.filecount,r.total+=v.size);for(const[p,g,v]of o.recursive){a&&!p.startsWith(a+"/")&&(a="",f=u);const C=p.slice(a.length);for(const O of C.split("/").slice(0,v.dir?void 0:-1)){a+=`${O}/`;try{f=await f.getDirectoryHandle(O.normalize("NFC"),{create:!0})}catch(P){console.error("Failed to create directory",a,P);return}console.log("Created",a)}if(v.dir)continue;const y=p.split("/").pop().normalize("NFC");let _;try{_=await f.getFileHandle(y,{create:!0})}catch(O){console.error("Failed to create file",p,g,a+y,O);return}const m=await _.createWritable(),h=`/files/${p}`;console.log("Fetching",h);const b=await fetch(h);if(!b.ok)throw t.error=`Failed to download ${h}: ${b.status} ${b.statusText}`,new Error(`Failed to download ${h}: ${b.status} ${b.statusText}`);if(b.body){++r.fileidx;const O=b.body.getReader();for(await m.truncate(0),t.error="Direct download.",r.tlast=Date.now();;){const{value:P,done:x}=await O.read();if(x)break;await m.write(P);const E=Date.now(),I=P.byteLength;r.xfer+=I,r.filepos+=I,r.statbytes+=I,r.statdur+=E-r.tlast,r.tlast=E}}await m.close(),console.log("Saved",a+y)}s()},d=async()=>{const o=t.selectedFiles;if(console.log("Download",o),o.keys.length===0){console.warn("Attempted download but no files found. Missing selected keys:",o.missing),t.error="No existing files selected",t.selected.clear();return}const u=o.recursive.filter(([f,p,g])=>!g.dir);if(u.length===1)return t.selected.clear(),t.error="Single file via browser downloads",c(`/files/${u[0][1]}`);if("showDirectoryPicker"in window)try{const f=await window.showDirectoryPicker({startIn:"downloads",mode:"readwrite"});await l(o,f),t.selected.clear();return}catch(f){console.error("Download to folder aborted",f)}console.log("Falling back to zip download");const a=o.keys.length===1?o.docs[o.keys[0]].name:"download";c(`/zip/${Array.from(o.keys).join("+")}/${a}.zip`),t.error="Downloading as ZIP via browser downloads",t.selected.clear()};return(o,u)=>{const a=co,f=aa;return G(),ce(Ee,null,[ue(a,{name:"download","data-tooltip":"Download",onClick:d}),ue(f,{status:r,onCancel:i},null,8,["status"])],64)}}}),mv=W("div",{class:"smallgap"},null,-1),gv={class:"select-text"},vv=Le({__name:"HeaderSelected",props:{path:Array},setup(e){const t=ze(),n=e,r=Se(()=>n.path.join("/")),s=(i,c)=>{const l=t.selectedFiles,d={op:i,sel:l.keys.map(u=>{const a=l.docs[u];return a.loc?`${a.loc}/${a.name}`:a.name})};c!==void 0&&(d.dst=c);const o=Jn(eo,{message(u){const a=JSON.parse(u.data);if("error"in a){console.error("Control socket error",d,a.error),t.error=a.error.message;return}else if(a.status==="ack"){console.log("Control ack OK",a),o.close(),t.selected.clear();return}else console.log("Unknown control response",d,a)}});o.onopen=()=>{o.send(JSON.stringify(d))}};return(i,c)=>{const l=hv,d=co;return se(t).selected.size?(G(),ce(Ee,{key:0},[mv,W("p",gv,Ge(se(t).selected.size)+" selected ➤",1),ue(l),ue(d,{name:"copy","data-tooltip":"Copy here",onClick:c[0]||(c[0]=o=>s("cp",r.value))}),ue(d,{name:"paste","data-tooltip":"Move here",onClick:c[1]||(c[1]=o=>s("mv",r.value))}),ue(d,{name:"trash","data-tooltip":"Delete ⚠️",onClick:c[2]||(c[2]=o=>s("rm"))}),W("button",{class:"action-button unselect","data-tooltip":"Unselect all",onClick:c[3]||(c[3]=o=>se(t).selected.clear())},"❌")],64)):Ye("",!0)}}});const yv=["id","onKeydown"],_v={key:0},ga=Le({__name:"ModalDialog",props:{title:{},name:{}},setup(e,{expose:t}){const n=Re(null),r=ze(),s=()=>{n.value.close(),r.dialog=""},i=e,c=()=>{r.dialog=i.name,setTimeout(()=>{n.value.showModal(),Jt(()=>{const l=n.value.querySelector("input");l&&l.focus()})},0)};return t({show:c,close:s}),Yt(()=>{n.value&&c()}),(l,d)=>se(r).dialog===l.name?(G(),ce("dialog",{key:0,ref_key:"dialog",ref:n,id:i.name,onKeydown:Hn(s,["escape"])},[i.title?(G(),ce("h1",_v,Ge(i.title),1)):Ye("",!0),W("div",null,[lo(l.$slots,"default",{},()=>[kr(" Dialog with no content "),W("button",{onClick:s},"OK")])])],40,yv)):Ye("",!0)}});const Er=e=>(Cr("data-v-8df784f7"),e=e(),xr(),e),bv=Er(()=>W("h3",null,"Update your authentication",-1)),wv={class:"login-container"},Cv=Er(()=>W("label",{for:"username"},"New password:",-1)),xv=Er(()=>W("label",{for:"password"},"Current password:",-1)),kv={class:"error-text"},Ev={class:"dialog-buttons"},Sv=Er(()=>W("div",{class:"spacer"},null,-1)),Pv=["onClick"],Ov=Er(()=>W("p",null,"No settings are available because you have not logged in.",-1)),Rv=Er(()=>W("div",{class:"spacer"},null,-1)),Iv=Le({__name:"SettingsModal",setup(e){const t=Re(!1),n=ze(),r=Re(),s=Re(),i=Xt({passwordChange:"",password:"",error:""}),c=()=>{i.passwordChange="",i.password="",i.error="",n.dialog=""},l=async d=>{d.preventDefault();try{if(i.error="",i.passwordChange){if(!i.password){i.error="⚠️ Current password is required",s.value.focus();return}await xm(n.user.username,i.passwordChange,i.password)}c()}catch(o){const u=o;i.error=u.message||"🛑 Unknown error"}finally{t.value=!1}};return(d,o)=>{const u=ga;return G(),st(u,{name:"settings",title:"Settings"},{default:Gn(()=>[W("form",null,[se(n).user.isLoggedIn?(G(),ce(Ee,{key:0},[bv,W("div",wv,[Cv,Wn(W("input",{ref_key:"passwordChange",ref:r,id:"passwordChange",type:"password",autocomplete:"new-password",spellcheck:"false",autocorrect:"off","onUpdate:modelValue":o[0]||(o[0]=a=>i.passwordChange=a)},null,512),[[an,i.passwordChange]]),xv,Wn(W("input",{ref_key:"password",ref:s,id:"password",name:"password",type:"password",autocomplete:"current-password",spellcheck:"false",autocorrect:"off","onUpdate:modelValue":o[1]||(o[1]=a=>i.password=a)},null,512),[[an,i.password]])]),W("h3",kv,Ge(i.error||" "),1),W("div",Ev,[W("input",{id:"close",type:"reset",value:"Close",class:"button",onClick:c}),Sv,W("input",{id:"submit",type:"submit",value:"Submit",class:"button",onClick:ot(l,["prevent"])},null,8,Pv)])],64)):(G(),ce(Ee,{key:1},[Ov,W("div",{class:"dialog-buttons"},[Rv,W("input",{id:"close",type:"reset",value:"Close",class:"button",onClick:c})])],64))])]),_:1})}}});const Mv=Ut(Iv,[["__scopeId","data-v-8df784f7"]]),Wi=e=>(Cr("data-v-06fdc161"),e=e(),xr(),e),Av=["onSubmit"],Tv={class:"login-container"},$v=Wi(()=>W("label",{for:"username"},"Username:",-1)),Fv=Wi(()=>W("label",{for:"password"},"Password:",-1)),Lv={class:"error-text"},Bv=Wi(()=>W("div",{class:"dialog-buttons"},[W("div",{class:"spacer"}),W("input",{id:"submit",type:"submit",value:"Login",class:"button-login"})],-1)),Nv=Le({__name:"LoginModal",setup(e){const t=Re(!1),n=ze(),r=Xt({username:"",password:"",error:""}),s=async()=>{try{r.error="",t.value=!0;const i=await wm(r.username,r.password);n.login(i.data.username,!!i.data.privileged)}catch(i){const c=i;r.error=c.message||"🛑 Unknown error"}finally{t.value=!1}};return(i,c)=>{const l=ga;return G(),st(l,{name:"login",title:"Authentication required"},{default:Gn(()=>[W("form",{onSubmit:ot(s,["prevent"])},[W("div",Tv,[$v,Wn(W("input",{id:"username",name:"username",autocomplete:"username",spellcheck:"false",autocorrect:"off",required:"","onUpdate:modelValue":c[0]||(c[0]=d=>r.username=d)},null,512),[[an,r.username]]),Fv,Wn(W("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",spellcheck:"false",autocorrect:"off",required:"","onUpdate:modelValue":c[1]||(c[1]=d=>r.password=d)},null,512),[[an,r.password]])]),W("h3",Lv,Ge(r.error||" "),1),Bv],40,Av)]),_:1})}}});const jv=Ut(Nv,[["__scopeId","data-v-06fdc161"]]),Dv=Le({__name:"App",setup(e){const t=ze(),n=Se(()=>{const c=decodeURIComponent(Yn.currentRoute.value.path).split("//"),l=c[0].split("/").filter(o=>o!==""),d=c.slice(1).join("//");return{path:c[0],pathList:l,query:d}});Yt(()=>{document.title=n.value.path.replace(/\/$/,"").split("/").pop()||t.server.name||"Cista Storage"}),Tt(Sm),Tt(Vi),On(Pm);const r=Re(null);let s=null;const i=c=>{if(t.dialog){s&&(clearTimeout(s),s=null);return}const l=t.fileExplorer;if(!l)return;const d=l.isCursor(),o=c.target.tagName==="INPUT",u=c.type==="keyup";if(c.repeat){(c.key==="ArrowUp"||c.key==="ArrowDown"||c.key==="ArrowLeft"||c.key==="ArrowRight"||d&&c.code==="Space")&&(o||c.preventDefault());return}let a="";if(!o&&c.key.startsWith("Arrow"))a=c.key.slice(5).toLowerCase();else if(!u&&c.key==="f"&&(c.ctrlKey||c.metaKey))r.value.toggleSearchInput();else if(!o&&u&&c.key==="/")r.value.toggleSearchInput();else if(u&&c.key==="Escape")t.error="",r.value.closeSearch(c),t.focusBreadcrumb();else if(!o&&u&&c.key==="Backspace")Yn.back();else if(!o&&!u&&c.key==="a"&&(c.ctrlKey||c.metaKey))l.toggleSelectAll();else if(!o&&u&&c.key==="g")t.prefs.gallery=!t.prefs.gallery;else if(!o&&u&&(c.code==="Backquote"||c.key==="1"||c.key==="2"||c.key==="3"))t.sort(["","name","modified","size"][+c.key||0]);else if(!o&&d&&u&&!c.ctrlKey&&(c.key==="F2"||c.key==="r"))l.cursorRename();else if(!o&&d&&c.code==="Space")u&&!c.altKey&&!c.ctrlKey&&l.cursorSelect();else return;c.preventDefault(),s&&(clearTimeout(s),s=null);let f;switch(a){case"up":f=()=>l.up(c);break;case"down":f=()=>l.down(c);break;case"left":f=()=>l.left(c);break;case"right":f=()=>l.right(c);break}if(f&&!u){const g=c.altKey?20:100;f(),s=setTimeout(()=>{s=setInterval(f,g)},200-g)}};return Tt(()=>{window.addEventListener("keydown",i),window.addEventListener("keyup",i)}),On(()=>{window.removeEventListener("keydown",i),window.removeEventListener("keyup",i)}),(c,l)=>{const d=jv,o=Mv,u=vv,a=pv,f=Hi;return G(),ce(Ee,null,[ue(d),ue(o),W("header",null,[ue(a,{ref_key:"headerMain",ref:r,path:n.value.pathList,query:n.value.query},{default:Gn(()=>[ue(u,{path:n.value.pathList},null,8,["path"])]),_:1},8,["path","query"]),ue(f,{path:n.value.pathList,primary:""},null,8,["path"])]),W("main",null,[ue(se(sa),{path:n.value.pathList,query:n.value.query},null,8,["path","query"])])],64)}}});function Vv(e){return typeof e=="object"&&e!==null}function rc(e,t){return e=Vv(e)?e:Object.create(null),new Proxy(e,{get(n,r,s){return r==="key"?Reflect.get(n,r,s):Reflect.get(n,r,s)||Reflect.get(t,r,s)}})}function Hv(e,t){return t.reduce((n,r)=>n==null?void 0:n[r],e)}function Uv(e,t,n){return t.slice(0,-1).reduce((r,s)=>/^(__proto__)$/.test(s)?{}:r[s]=r[s]||{},e)[t[t.length-1]]=n,e}function Wv(e,t){return t.reduce((n,r)=>{const s=r.split(".");return Uv(n,s,Hv(e,s))},{})}function oc(e,{storage:t,serializer:n,key:r,debug:s}){try{const i=t==null?void 0:t.getItem(r);i&&e.$patch(n==null?void 0:n.deserialize(i))}catch(i){s&&console.error(i)}}function sc(e,{storage:t,serializer:n,key:r,paths:s,debug:i}){try{const c=Array.isArray(s)?Wv(e,s):e;t.setItem(r,n.serialize(c))}catch(c){i&&console.error(c)}}function zv(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:r=n},store:s,pinia:i}=t;if(!r)return;if(!(s.$id in i.state.value)){const l=i._s.get(s.$id.replace("__hot:",""));l&&Promise.resolve().then(()=>l.$persist());return}const c=(Array.isArray(r)?r.map(l=>rc(l,e)):[rc(r,e)]).map(({storage:l=localStorage,beforeRestore:d=null,afterRestore:o=null,serializer:u={serialize:JSON.stringify,deserialize:JSON.parse},key:a=s.$id,paths:f=null,debug:p=!1})=>{var g;return{storage:l,beforeRestore:d,afterRestore:o,serializer:u,key:((g=e.key)!=null?g:v=>v)(typeof a=="string"?a:a(s.$id)),paths:f,debug:p}});s.$persist=()=>{c.forEach(l=>{sc(s.$state,l)})},s.$hydrate=({runHooks:l=!0}={})=>{c.forEach(d=>{const{beforeRestore:o,afterRestore:u}=d;l&&(o==null||o(t)),oc(s,d),l&&(u==null||u(t))})},c.forEach(l=>{const{beforeRestore:d,afterRestore:o}=l;d==null||d(t),oc(s,l),o==null||o(t),s.$subscribe((u,a)=>{sc(a,l)},{detached:!0})})}}var Kv=zv();const uo=Du(Dv);uo.config.errorHandler=e=>{console.log(e)};const va=Qp();va.use(Kv);uo.use(va);uo.use(Yn);uo.use(Ui);uo.mount("#app");export{W as a,ce as c,G as o};