cista 1.1.1__py3-none-any.whl → 1.2.1__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 (70) hide show
  1. cista/_version.py +1 -1
  2. cista/app.py +14 -13
  3. cista/auth.py +101 -0
  4. cista/util/lrucache.py +2 -2
  5. cista/wwwroot/assets/{add-file-6a41e251.js → add-file-8c95935e.js} +1 -1
  6. cista/wwwroot/assets/{add-folder-62d934ef.js → add-folder-86d38756.js} +1 -1
  7. cista/wwwroot/assets/{arrow-a3a583f8.js → arrow-75fe0244.js} +1 -1
  8. cista/wwwroot/assets/{arrows-h-d9e36082.js → arrows-h-7cc7ed45.js} +1 -1
  9. cista/wwwroot/assets/{arrows-v-5223491a.js → arrows-v-6ba20f93.js} +1 -1
  10. cista/wwwroot/assets/{check-f7566407.js → check-2847ad21.js} +1 -1
  11. cista/wwwroot/assets/{code-8e0123d4.js → code-a7719923.js} +1 -1
  12. cista/wwwroot/assets/{copy-a70a3d1c.js → copy-3449d27d.js} +1 -1
  13. cista/wwwroot/assets/{create-file-d995875e.js → create-file-a1cd75fd.js} +1 -1
  14. cista/wwwroot/assets/{create-folder-c448deda.js → create-folder-59db9ded.js} +1 -1
  15. cista/wwwroot/assets/{cross-e74ed6f4.js → cross-38ada808.js} +1 -1
  16. cista/wwwroot/assets/{disk-f1376321.js → disk-39a6808b.js} +1 -1
  17. cista/wwwroot/assets/{download-bad67930.js → download-dfa3cb2c.js} +1 -1
  18. cista/wwwroot/assets/{exclamation-afec06bb.js → exclamation-1b2064ee.js} +1 -1
  19. cista/wwwroot/assets/{eye-5fde34a1.js → eye-8ad3b932.js} +1 -1
  20. cista/wwwroot/assets/{find-11711648.js → find-7e0bf1e0.js} +1 -1
  21. cista/wwwroot/assets/{fullscreen-7f61e522.js → fullscreen-e21f0ea1.js} +1 -1
  22. cista/wwwroot/assets/{github-c9475017.js → github-33a0fb51.js} +1 -1
  23. cista/wwwroot/assets/index-1cae47bc.css +1 -0
  24. cista/wwwroot/assets/index-5b083aad.js +28 -0
  25. cista/wwwroot/assets/{info-b3d76e57.js → info-f30cd4b4.js} +1 -1
  26. cista/wwwroot/assets/{link-5cd893e4.js → link-3a6a01b8.js} +1 -1
  27. cista/wwwroot/assets/{logo-6090454d.js → logo-a02885a3.js} +1 -1
  28. cista/wwwroot/assets/{loop-531f6994.js → loop-17dda54a.js} +1 -1
  29. cista/wwwroot/assets/{menu-ed0d8c47.js → menu-e088a6cc.js} +1 -1
  30. cista/wwwroot/assets/{next-ee82241a.js → next-c83214f4.js} +1 -1
  31. cista/wwwroot/assets/{open-8364df82.js → open-bdcf30c3.js} +1 -1
  32. cista/wwwroot/assets/{paste-0f86e193.js → paste-b1ebeeae.js} +1 -1
  33. cista/wwwroot/assets/{pause-a2dd4670.js → pause-c44d983d.js} +1 -1
  34. cista/wwwroot/assets/{pencil-bfd02151.js → pencil-70ceb3cc.js} +1 -1
  35. cista/wwwroot/assets/{play-83e40a03.js → play-38e640b3.js} +1 -1
  36. cista/wwwroot/assets/{plus-f463cfbc.js → plus-d2e20553.js} +1 -1
  37. cista/wwwroot/assets/{previous-cbb778b5.js → previous-78dea9b8.js} +1 -1
  38. cista/wwwroot/assets/{reload-907eb866.js → reload-61c8cee7.js} +1 -1
  39. cista/wwwroot/assets/{rename-51dadde6.js → rename-202f8bc5.js} +1 -1
  40. cista/wwwroot/assets/{scissors-d32350cc.js → scissors-9235051c.js} +1 -1
  41. cista/wwwroot/assets/{shuffle-00a003ad.js → shuffle-fd56ec51.js} +1 -1
  42. cista/wwwroot/assets/{signin-d7bd57fd.js → signin-494e0573.js} +1 -1
  43. cista/wwwroot/assets/{signout-4c4ff7fb.js → signout-4047ccde.js} +1 -1
  44. cista/wwwroot/assets/{skip-0069d8d7.js → skip-bb8e721d.js} +1 -1
  45. cista/wwwroot/assets/{spinner-164c9b34.js → spinner-8c3861ee.js} +1 -1
  46. cista/wwwroot/assets/{stop-3717c27d.js → stop-d670a372.js} +1 -1
  47. cista/wwwroot/assets/{trash-449f81ef.js → trash-6a339a1b.js} +1 -1
  48. cista/wwwroot/assets/{triangle-3ecaf29c.js → triangle-9358f5e4.js} +1 -1
  49. cista/wwwroot/assets/{unfullscreen-175d46cd.js → unfullscreen-792a694f.js} +1 -1
  50. cista/wwwroot/assets/{up-arrow-164a366e.js → up-arrow-f518550f.js} +1 -1
  51. cista/wwwroot/assets/{upload-cloud-df377f1a.js → upload-cloud-5f1a71c5.js} +1 -1
  52. cista/wwwroot/assets/{user-3b5a32bc.js → user-2d17adce.js} +1 -1
  53. cista/wwwroot/assets/{user-cog-27e2c201.js → user-cog-5cefd313.js} +1 -1
  54. cista/wwwroot/assets/{volume-high-f4e07edd.js → volume-high-151aaf83.js} +1 -1
  55. cista/wwwroot/assets/{volume-low-f754322d.js → volume-low-8ffa3894.js} +1 -1
  56. cista/wwwroot/assets/{volume-medium-a5806088.js → volume-medium-7b38c87d.js} +1 -1
  57. cista/wwwroot/assets/{volume-mute-405763b1.js → volume-mute-4e81ae44.js} +1 -1
  58. cista/wwwroot/assets/{window-cross-86cb8236.js → window-cross-ce8f66c3.js} +1 -1
  59. cista/wwwroot/assets/{window-d99968ac.js → window-dec8f28e.js} +1 -1
  60. cista/wwwroot/assets/{wordwrap-cdcd3f93.js → wordwrap-4618846d.js} +1 -1
  61. cista/wwwroot/assets/{zoomin-7d13bb9b.js → zoomin-d821154d.js} +1 -1
  62. cista/wwwroot/assets/{zoomout-daf52018.js → zoomout-faf726ac.js} +1 -1
  63. cista/wwwroot/index.html +2 -2
  64. {cista-1.1.1.dist-info → cista-1.2.1.dist-info}/METADATA +2 -2
  65. cista-1.2.1.dist-info/RECORD +86 -0
  66. cista/wwwroot/assets/index-0ccc4ea2.js +0 -28
  67. cista/wwwroot/assets/index-89d850f4.css +0 -1
  68. cista-1.1.1.dist-info/RECORD +0 -86
  69. {cista-1.1.1.dist-info → cista-1.2.1.dist-info}/WHEEL +0 -0
  70. {cista-1.1.1.dist-info → cista-1.2.1.dist-info}/entry_points.txt +0 -0
@@ -1,28 +0,0 @@
1
- var $c=Object.defineProperty;var Lc=(e,t,n)=>t in e?$c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ct=(e,t,n)=>(Lc(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const l of r.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/**
2
- * @vue/shared v3.5.18
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */function $o(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Se={},hn=[],ct=()=>{},Dc=()=>!1,As=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Lo=e=>e.startsWith("onUpdate:"),Le=Object.assign,Do=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Fc=Object.prototype.hasOwnProperty,be=(e,t)=>Fc.call(e,t),se=Array.isArray,gn=e=>os(e)==="[object Map]",Ps=e=>os(e)==="[object Set]",gr=e=>os(e)==="[object Date]",ue=e=>typeof e=="function",Ie=e=>typeof e=="string",at=e=>typeof e=="symbol",Ee=e=>e!==null&&typeof e=="object",Dl=e=>(Ee(e)||ue(e))&&ue(e.then)&&ue(e.catch),Fl=Object.prototype.toString,os=e=>Fl.call(e),Nc=e=>os(e).slice(8,-1),Nl=e=>os(e)==="[object Object]",Fo=e=>Ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Tn=$o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ts=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Hc=/-(\w)/g,rt=Ts(e=>e.replace(Hc,(t,n)=>n?n.toUpperCase():"")),Bc=/\B([A-Z])/g,Gt=Ts(e=>e.replace(Bc,"-$1").toLowerCase()),Os=Ts(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gs=Ts(e=>e?`on${Os(e)}`:""),jt=(e,t)=>!Object.is(e,t),ms=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ho=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},go=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Vc=e=>{const t=Ie(e)?Number(e):NaN;return isNaN(t)?e:t};let mr;const $s=()=>mr||(mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function It(e){if(se(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=Ie(s)?Uc(s):It(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(Ie(e)||Ee(e))return e}const jc=/;(?![^(]*\))/g,Wc=/:([^]+)/,zc=/\/\*[^]*?\*\//g;function Uc(e){const t={};return e.replace(zc,"").split(jc).forEach(n=>{if(n){const s=n.split(Wc);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function De(e){let t="";if(Ie(e))t=e;else if(se(e))for(let n=0;n<e.length;n++){const s=De(e[n]);s&&(t+=s+" ")}else if(Ee(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Kc(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ie(t)&&(e.class=De(t)),n&&(e.style=It(n)),e}const qc="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Gc=$o(qc);function Hl(e){return!!e||e===""}function Jc(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Ls(e[s],t[s]);return n}function Ls(e,t){if(e===t)return!0;let n=gr(e),s=gr(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=at(e),s=at(t),n||s)return e===t;if(n=se(e),s=se(t),n||s)return n&&s?Jc(e,t):!1;if(n=Ee(e),s=Ee(t),n||s){if(!n||!s)return!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const l in e){const i=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(i&&!c||!i&&c||!Ls(e[l],t[l]))return!1}}return String(e)===String(t)}function Bl(e,t){return e.findIndex(n=>Ls(n,t))}const Vl=e=>!!(e&&e.__v_isRef===!0),Ae=e=>Ie(e)?e:e==null?"":se(e)||Ee(e)&&(e.toString===Fl||!ue(e.toString))?Vl(e)?Ae(e.value):JSON.stringify(e,jl,2):String(e),jl=(e,t)=>Vl(t)?jl(e,t.value):gn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[Js(s,r)+" =>"]=o,n),{})}:Ps(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Js(n))}:at(t)?Js(t):Ee(t)&&!se(t)&&!Nl(t)?String(t):t,Js=(e,t="")=>{var n;return at(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
- * @vue/reactivity v3.5.18
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/let ze;class Wl{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ze,!t&&ze&&(this.index=(ze.scopes||(ze.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ze;try{return ze=this,t()}finally{ze=n}}}on(){++this._on===1&&(this.prevScope=ze,ze=this)}off(){this._on>0&&--this._on===0&&(ze=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function zl(e){return new Wl(e)}function Ul(){return ze}function Yc(e,t=!1){ze&&ze.cleanups.push(e)}let Me;const Ys=new WeakSet;class Kl{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ze&&ze.active&&ze.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ys.has(this)&&(Ys.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Gl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,vr(this),Jl(this);const t=Me,n=ut;Me=this,ut=!0;try{return this.fn()}finally{Yl(this),Me=t,ut=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Bo(t);this.deps=this.depsTail=void 0,vr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ys.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){mo(this)&&this.run()}get dirty(){return mo(this)}}let ql=0,On,$n;function Gl(e,t=!1){if(e.flags|=8,t){e.next=$n,$n=e;return}e.next=On,On=e}function No(){ql++}function Ho(){if(--ql>0)return;if($n){let t=$n;for($n=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;On;){let t=On;for(On=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Jl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Yl(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),Bo(s),Zc(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function mo(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kn)||(e.globalVersion=Kn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!mo(e))))return;e.flags|=2;const t=e.dep,n=Me,s=ut;Me=e,ut=!0;try{Jl(e);const o=e.fn(e._value);(t.version===0||jt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Me=n,ut=s,Yl(e),e.flags&=-3}}function Bo(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)Bo(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Zc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ut=!0;const Xl=[];function At(){Xl.push(ut),ut=!1}function Pt(){const e=Xl.pop();ut=e===void 0?!0:e}function vr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Me;Me=void 0;try{t()}finally{Me=n}}}let Kn=0;class Xc{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Vo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Me||!ut||Me===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Me)n=this.activeLink=new Xc(Me,this),Me.deps?(n.prevDep=Me.depsTail,Me.depsTail.nextDep=n,Me.depsTail=n):Me.deps=Me.depsTail=n,Ql(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Me.depsTail,n.nextDep=void 0,Me.depsTail.nextDep=n,Me.depsTail=n,Me.deps===n&&(Me.deps=s)}return n}trigger(t){this.version++,Kn++,this.notify(t)}notify(t){No();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ho()}}}function Ql(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Ql(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ws=new WeakMap,sn=Symbol(""),vo=Symbol(""),qn=Symbol("");function Ue(e,t,n){if(ut&&Me){let s=ws.get(e);s||ws.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new Vo),o.map=s,o.key=n),o.track()}}function Rt(e,t,n,s,o,r){const l=ws.get(e);if(!l){Kn++;return}const i=c=>{c&&c.trigger()};if(No(),t==="clear")l.forEach(i);else{const c=se(e),a=c&&Fo(n);if(c&&n==="length"){const u=Number(s);l.forEach((f,d)=>{(d==="length"||d===qn||!at(d)&&d>=u)&&i(f)})}else switch((n!==void 0||l.has(void 0))&&i(l.get(n)),a&&i(l.get(qn)),t){case"add":c?a&&i(l.get("length")):(i(l.get(sn)),gn(e)&&i(l.get(vo)));break;case"delete":c||(i(l.get(sn)),gn(e)&&i(l.get(vo)));break;case"set":gn(e)&&i(l.get(sn));break}}Ho()}function Qc(e,t){const n=ws.get(e);return n&&n.get(t)}function an(e){const t=ge(e);return t===e?t:(Ue(t,"iterate",qn),ot(e)?t:t.map(He))}function Ds(e){return Ue(e=ge(e),"iterate",qn),e}const eu={__proto__:null,[Symbol.iterator](){return Zs(this,Symbol.iterator,He)},concat(...e){return an(this).concat(...e.map(t=>se(t)?an(t):t))},entries(){return Zs(this,"entries",e=>(e[1]=He(e[1]),e))},every(e,t){return xt(this,"every",e,t,void 0,arguments)},filter(e,t){return xt(this,"filter",e,t,n=>n.map(He),arguments)},find(e,t){return xt(this,"find",e,t,He,arguments)},findIndex(e,t){return xt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return xt(this,"findLast",e,t,He,arguments)},findLastIndex(e,t){return xt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return xt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Xs(this,"includes",e)},indexOf(...e){return Xs(this,"indexOf",e)},join(e){return an(this).join(e)},lastIndexOf(...e){return Xs(this,"lastIndexOf",e)},map(e,t){return xt(this,"map",e,t,void 0,arguments)},pop(){return Rn(this,"pop")},push(...e){return Rn(this,"push",e)},reduce(e,...t){return _r(this,"reduce",e,t)},reduceRight(e,...t){return _r(this,"reduceRight",e,t)},shift(){return Rn(this,"shift")},some(e,t){return xt(this,"some",e,t,void 0,arguments)},splice(...e){return Rn(this,"splice",e)},toReversed(){return an(this).toReversed()},toSorted(e){return an(this).toSorted(e)},toSpliced(...e){return an(this).toSpliced(...e)},unshift(...e){return Rn(this,"unshift",e)},values(){return Zs(this,"values",He)}};function Zs(e,t,n){const s=Ds(e),o=s[t]();return s!==e&&!ot(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.value&&(r.value=n(r.value)),r}),o}const tu=Array.prototype;function xt(e,t,n,s,o,r){const l=Ds(e),i=l!==e&&!ot(e),c=l[t];if(c!==tu[t]){const f=c.apply(e,r);return i?He(f):f}let a=n;l!==e&&(i?a=function(f,d){return n.call(this,He(f),d,e)}:n.length>2&&(a=function(f,d){return n.call(this,f,d,e)}));const u=c.call(l,a,s);return i&&o?o(u):u}function _r(e,t,n,s){const o=Ds(e);let r=n;return o!==e&&(ot(e)?n.length>3&&(r=function(l,i,c){return n.call(this,l,i,c,e)}):r=function(l,i,c){return n.call(this,l,He(i),c,e)}),o[t](r,...s)}function Xs(e,t,n){const s=ge(e);Ue(s,"iterate",qn);const o=s[t](...n);return(o===-1||o===!1)&&zo(n[0])?(n[0]=ge(n[0]),s[t](...n)):o}function Rn(e,t,n=[]){At(),No();const s=ge(e)[t].apply(e,n);return Ho(),Pt(),s}const nu=$o("__proto__,__v_isRef,__isVue"),ei=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(at));function su(e){at(e)||(e=String(e));const t=ge(this);return Ue(t,"has",e),t.hasOwnProperty(e)}class ti{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?pu:ri:r?oi:si).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const l=se(t);if(!o){let c;if(l&&(c=eu[n]))return c;if(n==="hasOwnProperty")return su}const i=Reflect.get(t,n,Pe(t)?t:s);return(at(n)?ei.has(n):nu(n))||(o||Ue(t,"get",n),r)?i:Pe(i)?l&&Fo(n)?i:i.value:Ee(i)?o?ii(i):Tt(i):i}}class ni extends ti{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];if(!this._isShallow){const c=Kt(r);if(!ot(s)&&!Kt(s)&&(r=ge(r),s=ge(s)),!se(t)&&Pe(r)&&!Pe(s))return c?!1:(r.value=s,!0)}const l=se(t)&&Fo(n)?Number(n)<t.length:be(t,n),i=Reflect.set(t,n,s,Pe(t)?t:o);return t===ge(o)&&(l?jt(s,r)&&Rt(t,"set",n,s):Rt(t,"add",n,s)),i}deleteProperty(t,n){const s=be(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&Rt(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!at(n)||!ei.has(n))&&Ue(t,"has",n),s}ownKeys(t){return Ue(t,"iterate",se(t)?"length":sn),Reflect.ownKeys(t)}}class ou extends ti{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ru=new ni,lu=new ou,iu=new ni(!0);const _o=e=>e,fs=e=>Reflect.getPrototypeOf(e);function cu(e,t,n){return function(...s){const o=this.__v_raw,r=ge(o),l=gn(r),i=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,a=o[e](...s),u=n?_o:t?Cs:He;return!t&&Ue(r,"iterate",c?vo:sn),{next(){const{value:f,done:d}=a.next();return d?{value:f,done:d}:{value:i?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function ds(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function uu(e,t){const n={get(o){const r=this.__v_raw,l=ge(r),i=ge(o);e||(jt(o,i)&&Ue(l,"get",o),Ue(l,"get",i));const{has:c}=fs(l),a=t?_o:e?Cs:He;if(c.call(l,o))return a(r.get(o));if(c.call(l,i))return a(r.get(i));r!==l&&r.get(o)},get size(){const o=this.__v_raw;return!e&&Ue(ge(o),"iterate",sn),Reflect.get(o,"size",o)},has(o){const r=this.__v_raw,l=ge(r),i=ge(o);return e||(jt(o,i)&&Ue(l,"has",o),Ue(l,"has",i)),o===i?r.has(o):r.has(o)||r.has(i)},forEach(o,r){const l=this,i=l.__v_raw,c=ge(i),a=t?_o:e?Cs:He;return!e&&Ue(c,"iterate",sn),i.forEach((u,f)=>o.call(r,a(u),a(f),l))}};return Le(n,e?{add:ds("add"),set:ds("set"),delete:ds("delete"),clear:ds("clear")}:{add(o){!t&&!ot(o)&&!Kt(o)&&(o=ge(o));const r=ge(this);return fs(r).has.call(r,o)||(r.add(o),Rt(r,"add",o,o)),this},set(o,r){!t&&!ot(r)&&!Kt(r)&&(r=ge(r));const l=ge(this),{has:i,get:c}=fs(l);let a=i.call(l,o);a||(o=ge(o),a=i.call(l,o));const u=c.call(l,o);return l.set(o,r),a?jt(r,u)&&Rt(l,"set",o,r):Rt(l,"add",o,r),this},delete(o){const r=ge(this),{has:l,get:i}=fs(r);let c=l.call(r,o);c||(o=ge(o),c=l.call(r,o)),i&&i.call(r,o);const a=r.delete(o);return c&&Rt(r,"delete",o,void 0),a},clear(){const o=ge(this),r=o.size!==0,l=o.clear();return r&&Rt(o,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=cu(o,e,t)}),n}function jo(e,t){const n=uu(e,t);return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(be(n,o)&&o in s?n:s,o,r)}const au={get:jo(!1,!1)},fu={get:jo(!1,!0)},du={get:jo(!0,!1)};const si=new WeakMap,oi=new WeakMap,ri=new WeakMap,pu=new WeakMap;function hu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gu(e){return e.__v_skip||!Object.isExtensible(e)?0:hu(Nc(e))}function Tt(e){return Kt(e)?e:Wo(e,!1,ru,au,si)}function li(e){return Wo(e,!1,iu,fu,oi)}function ii(e){return Wo(e,!0,lu,du,ri)}function Wo(e,t,n,s,o){if(!Ee(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=gu(e);if(r===0)return e;const l=o.get(e);if(l)return l;const i=new Proxy(e,r===2?s:n);return o.set(e,i),i}function Wt(e){return Kt(e)?Wt(e.__v_raw):!!(e&&e.__v_isReactive)}function Kt(e){return!!(e&&e.__v_isReadonly)}function ot(e){return!!(e&&e.__v_isShallow)}function zo(e){return e?!!e.__v_raw:!1}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function Uo(e){return!be(e,"__v_skip")&&Object.isExtensible(e)&&ho(e,"__v_skip",!0),e}const He=e=>Ee(e)?Tt(e):e,Cs=e=>Ee(e)?ii(e):e;function Pe(e){return e?e.__v_isRef===!0:!1}function re(e){return ci(e,!1)}function Fs(e){return ci(e,!0)}function ci(e,t){return Pe(e)?e:new mu(e,t)}class mu{constructor(t,n){this.dep=new Vo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ge(t),this._value=n?t:He(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||ot(t)||Kt(t);t=s?t:ge(t),jt(t,n)&&(this._rawValue=t,this._value=s?t:He(t),this.dep.trigger())}}function M(e){return Pe(e)?e.value:e}const vu={get:(e,t,n)=>t==="__v_raw"?e:M(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Pe(o)&&!Pe(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function ui(e){return Wt(e)?e:new Proxy(e,vu)}function un(e){const t=se(e)?new Array(e.length):{};for(const n in e)t[n]=yu(e,n);return t}class _u{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Qc(ge(this._object),this._key)}}function yu(e,t,n){const s=e[t];return Pe(s)?s:new _u(e,t,n)}class bu{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Vo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Me!==this)return Gl(this,!0),!0}get value(){const t=this.dep.track();return Zl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function wu(e,t,n=!1){let s,o;return ue(e)?s=e:(s=e.get,o=e.set),new bu(s,o,n)}const ps={},xs=new WeakMap;let Qt;function Cu(e,t=!1,n=Qt){if(n){let s=xs.get(n);s||xs.set(n,s=[]),s.push(e)}}function xu(e,t,n=Se){const{immediate:s,deep:o,once:r,scheduler:l,augmentJob:i,call:c}=n,a=v=>o?v:ot(v)||o===!1||o===0?Mt(v,1):Mt(v);let u,f,d,h,x=!1,_=!1;if(Pe(e)?(f=()=>e.value,x=ot(e)):Wt(e)?(f=()=>a(e),x=!0):se(e)?(_=!0,x=e.some(v=>Wt(v)||ot(v)),f=()=>e.map(v=>{if(Pe(v))return v.value;if(Wt(v))return a(v);if(ue(v))return c?c(v,2):v()})):ue(e)?t?f=c?()=>c(e,2):e:f=()=>{if(d){At();try{d()}finally{Pt()}}const v=Qt;Qt=u;try{return c?c(e,3,[h]):e(h)}finally{Qt=v}}:f=ct,t&&o){const v=f,S=o===!0?1/0:o;f=()=>Mt(v(),S)}const A=Ul(),R=()=>{u.stop(),A&&A.active&&Do(A.effects,u)};if(r&&t){const v=t;t=(...S)=>{v(...S),R()}}let b=_?new Array(e.length).fill(ps):ps;const m=v=>{if(!(!(u.flags&1)||!u.dirty&&!v))if(t){const S=u.run();if(o||x||(_?S.some((C,E)=>jt(C,b[E])):jt(S,b))){d&&d();const C=Qt;Qt=u;try{const E=[S,b===ps?void 0:_&&b[0]===ps?[]:b,h];b=S,c?c(t,3,E):t(...E)}finally{Qt=C}}}else u.run()};return i&&i(m),u=new Kl(f),u.scheduler=l?()=>l(m,!1):m,h=v=>Cu(v,!1,u),d=u.onStop=()=>{const v=xs.get(u);if(v){if(c)c(v,4);else for(const S of v)S();xs.delete(u)}},t?s?m(!0):b=u.run():l?l(m.bind(null,!0),!0):u.run(),R.pause=u.pause.bind(u),R.resume=u.resume.bind(u),R.stop=R,R}function Mt(e,t=1/0,n){if(t<=0||!Ee(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Pe(e))Mt(e.value,t,n);else if(se(e))for(let s=0;s<e.length;s++)Mt(e[s],t,n);else if(Ps(e)||gn(e))e.forEach(s=>{Mt(s,t,n)});else if(Nl(e)){for(const s in e)Mt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Mt(e[s],t,n)}return e}/**
10
- * @vue/runtime-core v3.5.18
11
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
- * @license MIT
13
- **/function rs(e,t,n,s){try{return s?e(...s):e()}catch(o){ls(o,t,n)}}function ft(e,t,n,s){if(ue(e)){const o=rs(e,t,n,s);return o&&Dl(o)&&o.catch(r=>{ls(r,t,n)}),o}if(se(e)){const o=[];for(let r=0;r<e.length;r++)o.push(ft(e[r],t,n,s));return o}}function ls(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||Se;if(t){let i=t.parent;const c=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const u=i.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,c,a)===!1)return}i=i.parent}if(r){At(),rs(r,null,10,[e,c,a]),Pt();return}}Su(e,n,o,s,l)}function Su(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const Ye=[];let vt=-1;const mn=[];let Nt=null,dn=0;const ai=Promise.resolve();let Ss=null;function Ze(e){const t=Ss||ai;return e?t.then(this?e.bind(this):e):t}function ku(e){let t=vt+1,n=Ye.length;for(;t<n;){const s=t+n>>>1,o=Ye[s],r=Gn(o);r<e||r===e&&o.flags&2?t=s+1:n=s}return t}function Ko(e){if(!(e.flags&1)){const t=Gn(e),n=Ye[Ye.length-1];!n||!(e.flags&2)&&t>=Gn(n)?Ye.push(e):Ye.splice(ku(t),0,e),e.flags|=1,fi()}}function fi(){Ss||(Ss=ai.then(pi))}function Eu(e){se(e)?mn.push(...e):Nt&&e.id===-1?Nt.splice(dn+1,0,e):e.flags&1||(mn.push(e),e.flags|=1),fi()}function yr(e,t,n=vt+1){for(;n<Ye.length;n++){const s=Ye[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ye.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function di(e){if(mn.length){const t=[...new Set(mn)].sort((n,s)=>Gn(n)-Gn(s));if(mn.length=0,Nt){Nt.push(...t);return}for(Nt=t,dn=0;dn<Nt.length;dn++){const n=Nt[dn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Nt=null,dn=0}}const Gn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function pi(e){const t=ct;try{for(vt=0;vt<Ye.length;vt++){const n=Ye[vt];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),rs(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;vt<Ye.length;vt++){const n=Ye[vt];n&&(n.flags&=-2)}vt=-1,Ye.length=0,di(),Ss=null,(Ye.length||mn.length)&&pi()}}let je=null,hi=null;function ks(e){const t=je;return je=e,hi=e&&e.type.__scopeId||null,t}function wt(e,t=je,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Or(-1);const r=ks(t);let l;try{l=e(...o)}finally{ks(r),s._d&&Or(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function bn(e,t){if(je===null)return e;const n=js(je),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,l,i,c=Se]=t[o];r&&(ue(r)&&(r={mounted:r,updated:r}),r.deep&&Mt(l),s.push({dir:r,instance:n,value:l,oldValue:void 0,arg:i,modifiers:c}))}return e}function Jt(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let l=0;l<o.length;l++){const i=o[l];r&&(i.oldValue=r[l].value);let c=i.dir[s];c&&(At(),ft(c,n,8,[e.el,i,e,t]),Pt())}}const gi=Symbol("_vte"),mi=e=>e.__isTeleport,Ln=e=>e&&(e.disabled||e.disabled===""),br=e=>e&&(e.defer||e.defer===""),wr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Cr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,yo=(e,t)=>{const n=e&&e.to;return Ie(n)?t?t(n):null:n},vi={name:"Teleport",__isTeleport:!0,process(e,t,n,s,o,r,l,i,c,a){const{mc:u,pc:f,pbc:d,o:{insert:h,querySelector:x,createText:_,createComment:A}}=a,R=Ln(t.props);let{shapeFlag:b,children:m,dynamicChildren:v}=t;if(e==null){const S=t.el=_(""),C=t.anchor=_("");h(S,n,s),h(C,n,s);const E=(w,F)=>{b&16&&(o&&o.isCE&&(o.ce._teleportTarget=w),u(m,w,F,o,r,l,i,c))},L=()=>{const w=t.target=yo(t.props,x),F=yi(w,t,_,h);w&&(l!=="svg"&&wr(w)?l="svg":l!=="mathml"&&Cr(w)&&(l="mathml"),R||(E(w,F),vs(t,!1)))};R&&(E(n,C),vs(t,!0)),br(t.props)?(t.el.__isMounted=!1,Ge(()=>{L(),delete t.el.__isMounted},r)):L()}else{if(br(t.props)&&e.el.__isMounted===!1){Ge(()=>{vi.process(e,t,n,s,o,r,l,i,c,a)},r);return}t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,C=t.target=e.target,E=t.targetAnchor=e.targetAnchor,L=Ln(e.props),w=L?n:C,F=L?S:E;if(l==="svg"||wr(C)?l="svg":(l==="mathml"||Cr(C))&&(l="mathml"),v?(d(e.dynamicChildren,v,w,o,r,l,i),Qo(e,t,!0)):c||f(e,t,w,F,o,r,l,i,!1),R)L?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):hs(t,n,S,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const q=t.target=yo(t.props,x);q&&hs(t,q,null,a,0)}else L&&hs(t,C,E,a,1);vs(t,R)}},remove(e,t,n,{um:s,o:{remove:o}},r){const{shapeFlag:l,children:i,anchor:c,targetStart:a,targetAnchor:u,target:f,props:d}=e;if(f&&(o(a),o(u)),r&&o(c),l&16){const h=r||!Ln(d);for(let x=0;x<i.length;x++){const _=i[x];s(_,t,n,h,!!_.dynamicChildren)}}},move:hs,hydrate:Ru};function hs(e,t,n,{o:{insert:s},m:o},r=2){r===0&&s(e.targetAnchor,t,n);const{el:l,anchor:i,shapeFlag:c,children:a,props:u}=e,f=r===2;if(f&&s(l,t,n),(!f||Ln(u))&&c&16)for(let d=0;d<a.length;d++)o(a[d],t,n,2);f&&s(i,t,n)}function Ru(e,t,n,s,o,r,{o:{nextSibling:l,parentNode:i,querySelector:c,insert:a,createText:u}},f){const d=t.target=yo(t.props,c);if(d){const h=Ln(t.props),x=d._lpa||d.firstChild;if(t.shapeFlag&16)if(h)t.anchor=f(l(e),t,i(e),n,s,o,r),t.targetStart=x,t.targetAnchor=x&&l(x);else{t.anchor=l(e);let _=x;for(;_;){if(_&&_.nodeType===8){if(_.data==="teleport start anchor")t.targetStart=_;else if(_.data==="teleport anchor"){t.targetAnchor=_,d._lpa=t.targetAnchor&&l(t.targetAnchor);break}}_=l(_)}t.targetAnchor||yi(d,t,u,a),f(x&&l(x),t,d,n,s,o,r)}vs(t,h)}return t.anchor&&l(t.anchor)}const _i=vi;function vs(e,t){const n=e.ctx;if(n&&n.ut){let s,o;for(t?(s=e.el,o=e.anchor):(s=e.targetStart,o=e.targetAnchor);s&&s!==o;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function yi(e,t,n,s){const o=t.targetStart=n(""),r=t.targetAnchor=n("");return o[gi]=r,e&&(s(o,e),s(r,e)),r}const Ht=Symbol("_leaveCb"),gs=Symbol("_enterCb");function Mu(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nt(()=>{e.isMounted=!0}),kn(()=>{e.isUnmounting=!0}),e}const st=[Function,Array],bi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:st,onEnter:st,onAfterEnter:st,onEnterCancelled:st,onBeforeLeave:st,onLeave:st,onAfterLeave:st,onLeaveCancelled:st,onBeforeAppear:st,onAppear:st,onAfterAppear:st,onAppearCancelled:st},wi=e=>{const t=e.subTree;return t.component?wi(t.component):t},Iu={name:"BaseTransition",props:bi,setup(e,{slots:t}){const n=Vs(),s=Mu();return()=>{const o=t.default&&Si(t.default(),!0);if(!o||!o.length)return;const r=Ci(o),l=ge(e),{mode:i}=l;if(s.isLeaving)return Qs(r);const c=xr(r);if(!c)return Qs(r);let a=bo(c,l,s,n,f=>a=f);c.type!==Ke&&Jn(c,a);let u=n.subTree&&xr(n.subTree);if(u&&u.type!==Ke&&!en(c,u)&&wi(n).type!==Ke){let f=bo(u,l,s,n);if(Jn(u,f),i==="out-in"&&c.type!==Ke)return s.isLeaving=!0,f.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},Qs(r);i==="in-out"&&c.type!==Ke?f.delayLeave=(d,h,x)=>{const _=xi(s,u);_[String(u.key)]=u,d[Ht]=()=>{h(),d[Ht]=void 0,delete a.delayedLeave,u=void 0},a.delayedLeave=()=>{x(),delete a.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return r}}};function Ci(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ke){t=n;break}}return t}const Au=Iu;function xi(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function bo(e,t,n,s,o){const{appear:r,mode:l,persisted:i=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:x,onLeaveCancelled:_,onBeforeAppear:A,onAppear:R,onAfterAppear:b,onAppearCancelled:m}=t,v=String(e.key),S=xi(n,e),C=(w,F)=>{w&&ft(w,s,9,F)},E=(w,F)=>{const q=F[1];C(w,F),se(w)?w.every(H=>H.length<=1)&&q():w.length<=1&&q()},L={mode:l,persisted:i,beforeEnter(w){let F=c;if(!n.isMounted)if(r)F=A||c;else return;w[Ht]&&w[Ht](!0);const q=S[v];q&&en(e,q)&&q.el[Ht]&&q.el[Ht](),C(F,[w])},enter(w){let F=a,q=u,H=f;if(!n.isMounted)if(r)F=R||a,q=b||u,H=m||f;else return;let Z=!1;const J=w[gs]=ce=>{Z||(Z=!0,ce?C(H,[w]):C(q,[w]),L.delayedLeave&&L.delayedLeave(),w[gs]=void 0)};F?E(F,[w,J]):J()},leave(w,F){const q=String(e.key);if(w[gs]&&w[gs](!0),n.isUnmounting)return F();C(d,[w]);let H=!1;const Z=w[Ht]=J=>{H||(H=!0,F(),J?C(_,[w]):C(x,[w]),w[Ht]=void 0,S[q]===e&&delete S[q])};S[q]=e,h?E(h,[w,Z]):Z()},clone(w){const F=bo(w,t,n,s,o);return o&&o(F),F}};return L}function Qs(e){if(is(e))return e=qt(e),e.children=null,e}function xr(e){if(!is(e))return mi(e.type)&&e.children?Ci(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ue(n.default))return n.default()}}function Jn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Jn(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 Si(e,t=!1,n){let s=[],o=0;for(let r=0;r<e.length;r++){let l=e[r];const i=n==null?l.key:String(n)+String(l.key!=null?l.key:r);l.type===Ce?(l.patchFlag&128&&o++,s=s.concat(Si(l.children,t,i))):(t||l.type!==Ke)&&s.push(i!=null?qt(l,{key:i}):l)}if(o>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function _e(e,t){return ue(e)?(()=>Le({name:e.name},t,{setup:e}))():e}function qo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Dn(e,t,n,s,o=!1){if(se(e)){e.forEach((x,_)=>Dn(x,t&&(se(t)?t[_]:t),n,s,o));return}if(vn(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Dn(e,t,n,s.component.subTree);return}const r=s.shapeFlag&4?js(s.component):s.el,l=o?null:r,{i,r:c}=e,a=t&&t.r,u=i.refs===Se?i.refs={}:i.refs,f=i.setupState,d=ge(f),h=f===Se?()=>!1:x=>be(d,x);if(a!=null&&a!==c&&(Ie(a)?(u[a]=null,h(a)&&(f[a]=null)):Pe(a)&&(a.value=null)),ue(c))rs(c,i,12,[l,u]);else{const x=Ie(c),_=Pe(c);if(x||_){const A=()=>{if(e.f){const R=x?h(c)?f[c]:u[c]:c.value;o?se(R)&&Do(R,r):se(R)?R.includes(r)||R.push(r):x?(u[c]=[r],h(c)&&(f[c]=u[c])):(c.value=[r],e.k&&(u[e.k]=c.value))}else x?(u[c]=l,h(c)&&(f[c]=l)):_&&(c.value=l,e.k&&(u[e.k]=l))};l?(A.id=-1,Ge(A,n)):A()}}}const Sr=e=>e.nodeType===8;$s().requestIdleCallback;$s().cancelIdleCallback;function Pu(e,t){if(Sr(e)&&e.data==="["){let n=1,s=e.nextSibling;for(;s;){if(s.nodeType===1){if(t(s)===!1)break}else if(Sr(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else t(e)}const vn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Tu(e){ue(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:o=200,hydrate:r,timeout:l,suspensible:i=!0,onError:c}=e;let a=null,u,f=0;const d=()=>(f++,a=null,h()),h=()=>{let x;return a||(x=a=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),c)return new Promise((A,R)=>{c(_,()=>A(d()),()=>R(_),f+1)});throw _}).then(_=>x!==a&&a?a:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),u=_,_)))};return _e({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(x,_,A){let R=!1;(_.bu||(_.bu=[])).push(()=>R=!0);const b=()=>{R||A()},m=r?()=>{const v=r(b,S=>Pu(x,S));v&&(_.bum||(_.bum=[])).push(v)}:b;u?m():h().then(()=>!_.isUnmounted&&m())},get __asyncResolved(){return u},setup(){const x=Be;if(qo(x),u)return()=>eo(u,x);const _=m=>{a=null,ls(m,x,13,!s)};if(i&&x.suspense||Cn)return h().then(m=>()=>eo(m,x)).catch(m=>(_(m),()=>s?le(s,{error:m}):null));const A=re(!1),R=re(),b=re(!!o);return o&&setTimeout(()=>{b.value=!1},o),l!=null&&setTimeout(()=>{if(!A.value&&!R.value){const m=new Error(`Async component timed out after ${l}ms.`);_(m),R.value=m}},l),h().then(()=>{A.value=!0,x.parent&&is(x.parent.vnode)&&x.parent.update()}).catch(m=>{_(m),R.value=m}),()=>{if(A.value&&u)return eo(u,x);if(R.value&&s)return le(s,{error:R.value});if(n&&!b.value)return le(n)}}})}function eo(e,t){const{ref:n,props:s,children:o,ce:r}=t.vnode,l=le(e,s,o);return l.ref=n,l.ce=r,delete t.vnode.ce,l}const is=e=>e.type.__isKeepAlive;function Ou(e,t){ki(e,"a",t)}function $u(e,t){ki(e,"da",t)}function ki(e,t,n=Be){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ns(t,s,n),n){let o=n.parent;for(;o&&o.parent;)is(o.parent.vnode)&&Lu(s,t,n,o),o=o.parent}}function Lu(e,t,n,s){const o=Ns(t,e,s,!0);wn(()=>{Do(s[t],o)},n)}function Ns(e,t,n=Be,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...l)=>{At();const i=us(n),c=ft(t,n,e,l);return i(),Pt(),c});return s?o.unshift(r):o.push(r),r}}const $t=e=>(t,n=Be)=>{(!Cn||e==="sp")&&Ns(e,(...s)=>t(...s),n)},Du=$t("bm"),nt=$t("m"),Ei=$t("bu"),Fu=$t("u"),kn=$t("bum"),wn=$t("um"),Nu=$t("sp"),Hu=$t("rtg"),Bu=$t("rtc");function Vu(e,t=Be){Ns("ec",e,t)}const Go="components";function Ri(e,t){return Ii(Go,e,!0,t)||e}const Mi=Symbol.for("v-ndc");function Jo(e){return Ie(e)?Ii(Go,e,!1)||e:e||Mi}function Ii(e,t,n=!0,s=!1){const o=je||Be;if(o){const r=o.type;if(e===Go){const i=Ea(r,!1);if(i&&(i===t||i===rt(t)||i===Os(rt(t))))return r}const l=kr(o[e]||r[e],t)||kr(o.appContext[e],t);return!l&&s?r:l}}function kr(e,t){return e&&(e[t]||e[rt(t)]||e[Os(rt(t))])}function cs(e,t,n,s){let o;const r=n&&n[s],l=se(e);if(l||Ie(e)){const i=l&&Wt(e);let c=!1,a=!1;i&&(c=!ot(e),a=Kt(e),e=Ds(e)),o=new Array(e.length);for(let u=0,f=e.length;u<f;u++)o[u]=t(c?a?Cs(He(e[u])):He(e[u]):e[u],u,void 0,r&&r[u])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,r&&r[i])}else if(Ee(e))if(e[Symbol.iterator])o=Array.from(e,(i,c)=>t(i,c,void 0,r&&r[c]));else{const i=Object.keys(e);o=new Array(i.length);for(let c=0,a=i.length;c<a;c++){const u=i[c];o[c]=t(e[u],u,c,r&&r[c])}}else o=[];return n&&(n[s]=o),o}function Ai(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(se(s))for(let o=0;o<s.length;o++)e[s[o].name]=s[o].fn;else s&&(e[s.name]=s.key?(...o)=>{const r=s.fn(...o);return r&&(r.key=s.key),r}:s.fn)}return e}function Fe(e,t,n={},s,o){if(je.ce||je.parent&&vn(je.parent)&&je.parent.ce)return t!=="default"&&(n.name=t),$(),he(Ce,null,[le("slot",n,s&&s())],64);let r=e[t];r&&r._c&&(r._d=!1),$();const l=r&&Pi(r(n)),i=n.key||l&&l.key,c=he(Ce,{key:(i&&!at(i)?i:`_${t}`)+(!l&&s?"_fb":"")},l||(s?s():[]),l&&e._===1?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),r&&r._c&&(r._d=!0),c}function Pi(e){return e.some(t=>Zn(t)?!(t.type===Ke||t.type===Ce&&!Pi(t.children)):!0)?e:null}const wo=e=>e?Yi(e)?js(e):wo(e.parent):null,Fn=Le(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=>wo(e.parent),$root:e=>wo(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Yo(e),$forceUpdate:e=>e.f||(e.f=()=>{Ko(e.update)}),$nextTick:e=>e.n||(e.n=Ze.bind(e.proxy)),$watch:e=>aa.bind(e)}),to=(e,t)=>e!==Se&&!e.__isScriptSetup&&be(e,t),ju={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:r,accessCache:l,type:i,appContext:c}=e;let a;if(t[0]!=="$"){const h=l[t];if(h!==void 0)switch(h){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(to(s,t))return l[t]=1,s[t];if(o!==Se&&be(o,t))return l[t]=2,o[t];if((a=e.propsOptions[0])&&be(a,t))return l[t]=3,r[t];if(n!==Se&&be(n,t))return l[t]=4,n[t];Co&&(l[t]=0)}}const u=Fn[t];let f,d;if(u)return t==="$attrs"&&Ue(e.attrs,"get",""),u(e);if((f=i.__cssModules)&&(f=f[t]))return f;if(n!==Se&&be(n,t))return l[t]=4,n[t];if(d=c.config.globalProperties,be(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return to(o,t)?(o[t]=n,!0):s!==Se&&be(s,t)?(s[t]=n,!0):be(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},l){let i;return!!n[l]||e!==Se&&be(e,l)||to(t,l)||(i=r[0])&&be(i,l)||be(s,l)||be(Fn,l)||be(o.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:be(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ti(){return Wu().slots}function Wu(e){const t=Vs();return t.setupContext||(t.setupContext=Xi(t))}function Er(e){return se(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Co=!0;function zu(e){const t=Yo(e),n=e.proxy,s=e.ctx;Co=!1,t.beforeCreate&&Rr(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:l,watch:i,provide:c,inject:a,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:x,activated:_,deactivated:A,beforeDestroy:R,beforeUnmount:b,destroyed:m,unmounted:v,render:S,renderTracked:C,renderTriggered:E,errorCaptured:L,serverPrefetch:w,expose:F,inheritAttrs:q,components:H,directives:Z,filters:J}=t;if(a&&Uu(a,s,null),l)for(const ee in l){const ae=l[ee];ue(ae)&&(s[ee]=ae.bind(n))}if(o){const ee=o.call(n,n);Ee(ee)&&(e.data=Tt(ee))}if(Co=!0,r)for(const ee in r){const ae=r[ee],Oe=ue(ae)?ae.bind(n,n):ue(ae.get)?ae.get.bind(n,n):ct,Ne=!ue(ae)&&ue(ae.set)?ae.set.bind(n):ct,fe=ve({get:Oe,set:Ne});Object.defineProperty(s,ee,{enumerable:!0,configurable:!0,get:()=>fe.value,set:$e=>fe.value=$e})}if(i)for(const ee in i)Oi(i[ee],s,n,ee);if(c){const ee=ue(c)?c.call(n):c;Reflect.ownKeys(ee).forEach(ae=>{Je(ae,ee[ae])})}u&&Rr(u,e,"c");function ie(ee,ae){se(ae)?ae.forEach(Oe=>ee(Oe.bind(n))):ae&&ee(ae.bind(n))}if(ie(Du,f),ie(nt,d),ie(Ei,h),ie(Fu,x),ie(Ou,_),ie($u,A),ie(Vu,L),ie(Bu,C),ie(Hu,E),ie(kn,b),ie(wn,v),ie(Nu,w),se(F))if(F.length){const ee=e.exposed||(e.exposed={});F.forEach(ae=>{Object.defineProperty(ee,ae,{get:()=>n[ae],set:Oe=>n[ae]=Oe,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===ct&&(e.render=S),q!=null&&(e.inheritAttrs=q),H&&(e.components=H),Z&&(e.directives=Z),w&&qo(e)}function Uu(e,t,n=ct){se(e)&&(e=xo(e));for(const s in e){const o=e[s];let r;Ee(o)?"default"in o?r=ke(o.from||s,o.default,!0):r=ke(o.from||s):r=ke(o),Pe(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:l=>r.value=l}):t[s]=r}}function Rr(e,t,n){ft(se(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Oi(e,t,n,s){let o=s.includes(".")?zi(n,s):()=>n[s];if(Ie(e)){const r=t[e];ue(r)&&zt(o,r)}else if(ue(e))zt(o,e.bind(n));else if(Ee(e))if(se(e))e.forEach(r=>Oi(r,t,n,s));else{const r=ue(e.handler)?e.handler.bind(n):t[e.handler];ue(r)&&zt(o,r,e)}}function Yo(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:l}}=e.appContext,i=r.get(t);let c;return i?c=i:!o.length&&!n&&!s?c=t:(c={},o.length&&o.forEach(a=>Es(c,a,l,!0)),Es(c,t,l)),Ee(t)&&r.set(t,c),c}function Es(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Es(e,r,n,!0),o&&o.forEach(l=>Es(e,l,n,!0));for(const l in t)if(!(s&&l==="expose")){const i=Ku[l]||n&&n[l];e[l]=i?i(e[l],t[l]):t[l]}return e}const Ku={data:Mr,props:Ir,emits:Ir,methods:An,computed:An,beforeCreate:qe,created:qe,beforeMount:qe,mounted:qe,beforeUpdate:qe,updated:qe,beforeDestroy:qe,beforeUnmount:qe,destroyed:qe,unmounted:qe,activated:qe,deactivated:qe,errorCaptured:qe,serverPrefetch:qe,components:An,directives:An,watch:Gu,provide:Mr,inject:qu};function Mr(e,t){return t?e?function(){return Le(ue(e)?e.call(this,this):e,ue(t)?t.call(this,this):t)}:t:e}function qu(e,t){return An(xo(e),xo(t))}function xo(e){if(se(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function qe(e,t){return e?[...new Set([].concat(e,t))]:t}function An(e,t){return e?Le(Object.create(null),e,t):t}function Ir(e,t){return e?se(e)&&se(t)?[...new Set([...e,...t])]:Le(Object.create(null),Er(e),Er(t??{})):t}function Gu(e,t){if(!e)return t;if(!t)return e;const n=Le(Object.create(null),e);for(const s in t)n[s]=qe(e[s],t[s]);return n}function $i(){return{app:null,config:{isNativeTag:Dc,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 Ju=0;function Yu(e,t){return function(s,o=null){ue(s)||(s=Le({},s)),o!=null&&!Ee(o)&&(o=null);const r=$i(),l=new WeakSet,i=[];let c=!1;const a=r.app={_uid:Ju++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:Ma,get config(){return r.config},set config(u){},use(u,...f){return l.has(u)||(u&&ue(u.install)?(l.add(u),u.install(a,...f)):ue(u)&&(l.add(u),u(a,...f))),a},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),a},component(u,f){return f?(r.components[u]=f,a):r.components[u]},directive(u,f){return f?(r.directives[u]=f,a):r.directives[u]},mount(u,f,d){if(!c){const h=a._ceVNode||le(s,o);return h.appContext=r,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(h,u):e(h,u,d),c=!0,a._container=u,u.__vue_app__=a,js(h.component)}},onUnmount(u){i.push(u)},unmount(){c&&(ft(i,a._instance,16),e(null,a._container),delete a._container.__vue_app__)},provide(u,f){return r.provides[u]=f,a},runWithContext(u){const f=on;on=a;try{return u()}finally{on=f}}};return a}}let on=null;function Je(e,t){if(Be){let n=Be.provides;const s=Be.parent&&Be.parent.provides;s===n&&(n=Be.provides=Object.create(s)),n[e]=t}}function ke(e,t,n=!1){const s=Vs();if(s||on){let o=on?on._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&ue(t)?t.call(s&&s.proxy):t}}function Zu(){return!!(Vs()||on)}const Li={},Di=()=>Object.create(Li),Fi=e=>Object.getPrototypeOf(e)===Li;function Xu(e,t,n,s=!1){const o={},r=Di();e.propsDefaults=Object.create(null),Ni(e,t,o,r);for(const l in e.propsOptions[0])l in o||(o[l]=void 0);n?e.props=s?o:li(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Qu(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:l}}=e,i=ge(o),[c]=e.propsOptions;let a=!1;if((s||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(Hs(e.emitsOptions,d))continue;const h=t[d];if(c)if(be(r,d))h!==r[d]&&(r[d]=h,a=!0);else{const x=rt(d);o[x]=So(c,i,x,h,e,!1)}else h!==r[d]&&(r[d]=h,a=!0)}}}else{Ni(e,t,o,r)&&(a=!0);let u;for(const f in i)(!t||!be(t,f)&&((u=Gt(f))===f||!be(t,u)))&&(c?n&&(n[f]!==void 0||n[u]!==void 0)&&(o[f]=So(c,i,f,void 0,e,!0)):delete o[f]);if(r!==i)for(const f in r)(!t||!be(t,f))&&(delete r[f],a=!0)}a&&Rt(e.attrs,"set","")}function Ni(e,t,n,s){const[o,r]=e.propsOptions;let l=!1,i;if(t)for(let c in t){if(Tn(c))continue;const a=t[c];let u;o&&be(o,u=rt(c))?!r||!r.includes(u)?n[u]=a:(i||(i={}))[u]=a:Hs(e.emitsOptions,c)||(!(c in s)||a!==s[c])&&(s[c]=a,l=!0)}if(r){const c=ge(n),a=i||Se;for(let u=0;u<r.length;u++){const f=r[u];n[f]=So(o,c,f,a[f],e,!be(a,f))}}return l}function So(e,t,n,s,o,r){const l=e[n];if(l!=null){const i=be(l,"default");if(i&&s===void 0){const c=l.default;if(l.type!==Function&&!l.skipFactory&&ue(c)){const{propsDefaults:a}=o;if(n in a)s=a[n];else{const u=us(o);s=a[n]=c.call(null,t),u()}}else s=c;o.ce&&o.ce._setProp(n,s)}l[0]&&(r&&!i?s=!1:l[1]&&(s===""||s===Gt(n))&&(s=!0))}return s}const ea=new WeakMap;function Hi(e,t,n=!1){const s=n?ea:t.propsCache,o=s.get(e);if(o)return o;const r=e.props,l={},i=[];let c=!1;if(!ue(e)){const u=f=>{c=!0;const[d,h]=Hi(f,t,!0);Le(l,d),h&&i.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!c)return Ee(e)&&s.set(e,hn),hn;if(se(r))for(let u=0;u<r.length;u++){const f=rt(r[u]);Ar(f)&&(l[f]=Se)}else if(r)for(const u in r){const f=rt(u);if(Ar(f)){const d=r[u],h=l[f]=se(d)||ue(d)?{type:d}:Le({},d),x=h.type;let _=!1,A=!0;if(se(x))for(let R=0;R<x.length;++R){const b=x[R],m=ue(b)&&b.name;if(m==="Boolean"){_=!0;break}else m==="String"&&(A=!1)}else _=ue(x)&&x.name==="Boolean";h[0]=_,h[1]=A,(_||be(h,"default"))&&i.push(f)}}const a=[l,i];return Ee(e)&&s.set(e,a),a}function Ar(e){return e[0]!=="$"&&!Tn(e)}const Zo=e=>e==="_"||e==="__"||e==="_ctx"||e==="$stable",Xo=e=>se(e)?e.map(_t):[_t(e)],ta=(e,t,n)=>{if(t._n)return t;const s=wt((...o)=>Xo(t(...o)),n);return s._c=!1,s},Bi=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Zo(o))continue;const r=e[o];if(ue(r))t[o]=ta(o,r,s);else if(r!=null){const l=Xo(r);t[o]=()=>l}}},Vi=(e,t)=>{const n=Xo(t);e.slots.default=()=>n},ji=(e,t,n)=>{for(const s in t)(n||!Zo(s))&&(e[s]=t[s])},na=(e,t,n)=>{const s=e.slots=Di();if(e.vnode.shapeFlag&32){const o=t.__;o&&ho(s,"__",o,!0);const r=t._;r?(ji(s,t,n),n&&ho(s,"_",r,!0)):Bi(t,s)}else t&&Vi(e,t)},sa=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,l=Se;if(s.shapeFlag&32){const i=t._;i?n&&i===1?r=!1:ji(o,t,n):(r=!t.$stable,Bi(t,o)),l=t}else t&&(Vi(e,t),l={default:1});if(r)for(const i in o)!Zo(i)&&l[i]==null&&delete o[i]},Ge=va;function oa(e){return ra(e)}function ra(e,t){const n=$s();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:l,createText:i,createComment:c,setText:a,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=ct,insertStaticContent:x}=e,_=(p,g,k,P=null,I=null,T=null,z=void 0,j=null,V=!!g.dynamicChildren)=>{if(p===g)return;p&&!en(p,g)&&(P=y(p),$e(p,I,T,!0),p=null),g.patchFlag===-2&&(V=!1,g.dynamicChildren=null);const{type:D,ref:ne,shapeFlag:U}=g;switch(D){case Bs:A(p,g,k,P);break;case Ke:R(p,g,k,P);break;case oo:p==null&&b(g,k,P,z);break;case Ce:H(p,g,k,P,I,T,z,j,V);break;default:U&1?S(p,g,k,P,I,T,z,j,V):U&6?Z(p,g,k,P,I,T,z,j,V):(U&64||U&128)&&D.process(p,g,k,P,I,T,z,j,V,W)}ne!=null&&I?Dn(ne,p&&p.ref,T,g||p,!g):ne==null&&p&&p.ref!=null&&Dn(p.ref,null,T,p,!0)},A=(p,g,k,P)=>{if(p==null)s(g.el=i(g.children),k,P);else{const I=g.el=p.el;g.children!==p.children&&a(I,g.children)}},R=(p,g,k,P)=>{p==null?s(g.el=c(g.children||""),k,P):g.el=p.el},b=(p,g,k,P)=>{[p.el,p.anchor]=x(p.children,g,k,P,p.el,p.anchor)},m=({el:p,anchor:g},k,P)=>{let I;for(;p&&p!==g;)I=d(p),s(p,k,P),p=I;s(g,k,P)},v=({el:p,anchor:g})=>{let k;for(;p&&p!==g;)k=d(p),o(p),p=k;o(g)},S=(p,g,k,P,I,T,z,j,V)=>{g.type==="svg"?z="svg":g.type==="math"&&(z="mathml"),p==null?C(g,k,P,I,T,z,j,V):w(p,g,I,T,z,j,V)},C=(p,g,k,P,I,T,z,j)=>{let V,D;const{props:ne,shapeFlag:U,transition:X,dirs:oe}=p;if(V=p.el=l(p.type,T,ne&&ne.is,ne),U&8?u(V,p.children):U&16&&L(p.children,V,null,P,I,no(p,T),z,j),oe&&Jt(p,null,P,"created"),E(V,p,p.scopeId,z,P),ne){for(const Re in ne)Re!=="value"&&!Tn(Re)&&r(V,Re,null,ne[Re],T,P);"value"in ne&&r(V,"value",null,ne.value,T),(D=ne.onVnodeBeforeMount)&&gt(D,P,p)}oe&&Jt(p,null,P,"beforeMount");const pe=la(I,X);pe&&X.beforeEnter(V),s(V,g,k),((D=ne&&ne.onVnodeMounted)||pe||oe)&&Ge(()=>{D&&gt(D,P,p),pe&&X.enter(V),oe&&Jt(p,null,P,"mounted")},I)},E=(p,g,k,P,I)=>{if(k&&h(p,k),P)for(let T=0;T<P.length;T++)h(p,P[T]);if(I){let T=I.subTree;if(g===T||Ki(T.type)&&(T.ssContent===g||T.ssFallback===g)){const z=I.vnode;E(p,z,z.scopeId,z.slotScopeIds,I.parent)}}},L=(p,g,k,P,I,T,z,j,V=0)=>{for(let D=V;D<p.length;D++){const ne=p[D]=j?Bt(p[D]):_t(p[D]);_(null,ne,g,k,P,I,T,z,j)}},w=(p,g,k,P,I,T,z)=>{const j=g.el=p.el;let{patchFlag:V,dynamicChildren:D,dirs:ne}=g;V|=p.patchFlag&16;const U=p.props||Se,X=g.props||Se;let oe;if(k&&Yt(k,!1),(oe=X.onVnodeBeforeUpdate)&&gt(oe,k,g,p),ne&&Jt(g,p,k,"beforeUpdate"),k&&Yt(k,!0),(U.innerHTML&&X.innerHTML==null||U.textContent&&X.textContent==null)&&u(j,""),D?F(p.dynamicChildren,D,j,k,P,no(g,I),T):z||ae(p,g,j,null,k,P,no(g,I),T,!1),V>0){if(V&16)q(j,U,X,k,I);else if(V&2&&U.class!==X.class&&r(j,"class",null,X.class,I),V&4&&r(j,"style",U.style,X.style,I),V&8){const pe=g.dynamicProps;for(let Re=0;Re<pe.length;Re++){const we=pe[Re],Xe=U[we],We=X[we];(We!==Xe||we==="value")&&r(j,we,Xe,We,I,k)}}V&1&&p.children!==g.children&&u(j,g.children)}else!z&&D==null&&q(j,U,X,k,I);((oe=X.onVnodeUpdated)||ne)&&Ge(()=>{oe&&gt(oe,k,g,p),ne&&Jt(g,p,k,"updated")},P)},F=(p,g,k,P,I,T,z)=>{for(let j=0;j<g.length;j++){const V=p[j],D=g[j],ne=V.el&&(V.type===Ce||!en(V,D)||V.shapeFlag&198)?f(V.el):k;_(V,D,ne,null,P,I,T,z,!0)}},q=(p,g,k,P,I)=>{if(g!==k){if(g!==Se)for(const T in g)!Tn(T)&&!(T in k)&&r(p,T,g[T],null,I,P);for(const T in k){if(Tn(T))continue;const z=k[T],j=g[T];z!==j&&T!=="value"&&r(p,T,j,z,I,P)}"value"in k&&r(p,"value",g.value,k.value,I)}},H=(p,g,k,P,I,T,z,j,V)=>{const D=g.el=p?p.el:i(""),ne=g.anchor=p?p.anchor:i("");let{patchFlag:U,dynamicChildren:X,slotScopeIds:oe}=g;oe&&(j=j?j.concat(oe):oe),p==null?(s(D,k,P),s(ne,k,P),L(g.children||[],k,ne,I,T,z,j,V)):U>0&&U&64&&X&&p.dynamicChildren?(F(p.dynamicChildren,X,k,I,T,z,j),(g.key!=null||I&&g===I.subTree)&&Qo(p,g,!0)):ae(p,g,k,ne,I,T,z,j,V)},Z=(p,g,k,P,I,T,z,j,V)=>{g.slotScopeIds=j,p==null?g.shapeFlag&512?I.ctx.activate(g,k,P,z,V):J(g,k,P,I,T,z,V):ce(p,g,V)},J=(p,g,k,P,I,T,z)=>{const j=p.component=Ca(p,P,I);if(is(p)&&(j.ctx.renderer=W),xa(j,!1,z),j.asyncDep){if(I&&I.registerDep(j,ie,z),!p.el){const V=j.subTree=le(Ke);R(null,V,g,k),p.placeholder=V.el}}else ie(j,p,g,k,I,T,z)},ce=(p,g,k)=>{const P=g.component=p.component;if(ga(p,g,k))if(P.asyncDep&&!P.asyncResolved){ee(P,g,k);return}else P.next=g,P.update();else g.el=p.el,P.vnode=g},ie=(p,g,k,P,I,T,z)=>{const j=()=>{if(p.isMounted){let{next:U,bu:X,u:oe,parent:pe,vnode:Re}=p;{const Qe=Wi(p);if(Qe){U&&(U.el=Re.el,ee(p,U,z)),Qe.asyncDep.then(()=>{p.isUnmounted||j()});return}}let we=U,Xe;Yt(p,!1),U?(U.el=Re.el,ee(p,U,z)):U=Re,X&&ms(X),(Xe=U.props&&U.props.onVnodeBeforeUpdate)&&gt(Xe,pe,U,Re),Yt(p,!0);const We=so(p),it=p.subTree;p.subTree=We,_(it,We,f(it.el),y(it),p,I,T),U.el=We.el,we===null&&ma(p,We.el),oe&&Ge(oe,I),(Xe=U.props&&U.props.onVnodeUpdated)&&Ge(()=>gt(Xe,pe,U,Re),I)}else{let U;const{el:X,props:oe}=g,{bm:pe,m:Re,parent:we,root:Xe,type:We}=p,it=vn(g);if(Yt(p,!1),pe&&ms(pe),!it&&(U=oe&&oe.onVnodeBeforeMount)&&gt(U,we,g),Yt(p,!0),X&&xe){const Qe=()=>{p.subTree=so(p),xe(X,p.subTree,p,I,null)};it&&We.__asyncHydrate?We.__asyncHydrate(X,p,Qe):Qe()}else{Xe.ce&&Xe.ce._def.shadowRoot!==!1&&Xe.ce._injectChildStyle(We);const Qe=p.subTree=so(p);_(null,Qe,k,P,p,I,T),g.el=Qe.el}if(Re&&Ge(Re,I),!it&&(U=oe&&oe.onVnodeMounted)){const Qe=g;Ge(()=>gt(U,we,Qe),I)}(g.shapeFlag&256||we&&vn(we.vnode)&&we.vnode.shapeFlag&256)&&p.a&&Ge(p.a,I),p.isMounted=!0,g=k=P=null}};p.scope.on();const V=p.effect=new Kl(j);p.scope.off();const D=p.update=V.run.bind(V),ne=p.job=V.runIfDirty.bind(V);ne.i=p,ne.id=p.uid,V.scheduler=()=>Ko(ne),Yt(p,!0),D()},ee=(p,g,k)=>{g.component=p;const P=p.vnode.props;p.vnode=g,p.next=null,Qu(p,g.props,P,k),sa(p,g.children,k),At(),yr(p),Pt()},ae=(p,g,k,P,I,T,z,j,V=!1)=>{const D=p&&p.children,ne=p?p.shapeFlag:0,U=g.children,{patchFlag:X,shapeFlag:oe}=g;if(X>0){if(X&128){Ne(D,U,k,P,I,T,z,j,V);return}else if(X&256){Oe(D,U,k,P,I,T,z,j,V);return}}oe&8?(ne&16&&Q(D,I,T),U!==D&&u(k,U)):ne&16?oe&16?Ne(D,U,k,P,I,T,z,j,V):Q(D,I,T,!0):(ne&8&&u(k,""),oe&16&&L(U,k,P,I,T,z,j,V))},Oe=(p,g,k,P,I,T,z,j,V)=>{p=p||hn,g=g||hn;const D=p.length,ne=g.length,U=Math.min(D,ne);let X;for(X=0;X<U;X++){const oe=g[X]=V?Bt(g[X]):_t(g[X]);_(p[X],oe,k,null,I,T,z,j,V)}D>ne?Q(p,I,T,!0,!1,U):L(g,k,P,I,T,z,j,V,U)},Ne=(p,g,k,P,I,T,z,j,V)=>{let D=0;const ne=g.length;let U=p.length-1,X=ne-1;for(;D<=U&&D<=X;){const oe=p[D],pe=g[D]=V?Bt(g[D]):_t(g[D]);if(en(oe,pe))_(oe,pe,k,null,I,T,z,j,V);else break;D++}for(;D<=U&&D<=X;){const oe=p[U],pe=g[X]=V?Bt(g[X]):_t(g[X]);if(en(oe,pe))_(oe,pe,k,null,I,T,z,j,V);else break;U--,X--}if(D>U){if(D<=X){const oe=X+1,pe=oe<ne?g[oe].el:P;for(;D<=X;)_(null,g[D]=V?Bt(g[D]):_t(g[D]),k,pe,I,T,z,j,V),D++}}else if(D>X)for(;D<=U;)$e(p[D],I,T,!0),D++;else{const oe=D,pe=D,Re=new Map;for(D=pe;D<=X;D++){const et=g[D]=V?Bt(g[D]):_t(g[D]);et.key!=null&&Re.set(et.key,D)}let we,Xe=0;const We=X-pe+1;let it=!1,Qe=0;const En=new Array(We);for(D=0;D<We;D++)En[D]=0;for(D=oe;D<=U;D++){const et=p[D];if(Xe>=We){$e(et,I,T,!0);continue}let ht;if(et.key!=null)ht=Re.get(et.key);else for(we=pe;we<=X;we++)if(En[we-pe]===0&&en(et,g[we])){ht=we;break}ht===void 0?$e(et,I,T,!0):(En[ht-pe]=D+1,ht>=Qe?Qe=ht:it=!0,_(et,g[ht],k,null,I,T,z,j,V),Xe++)}const dr=it?ia(En):hn;for(we=dr.length-1,D=We-1;D>=0;D--){const et=pe+D,ht=g[et],pr=g[et+1],hr=et+1<ne?pr.el||pr.placeholder:P;En[D]===0?_(null,ht,k,hr,I,T,z,j,V):it&&(we<0||D!==dr[we]?fe(ht,k,hr,2):we--)}}},fe=(p,g,k,P,I=null)=>{const{el:T,type:z,transition:j,children:V,shapeFlag:D}=p;if(D&6){fe(p.component.subTree,g,k,P);return}if(D&128){p.suspense.move(g,k,P);return}if(D&64){z.move(p,g,k,W);return}if(z===Ce){s(T,g,k);for(let U=0;U<V.length;U++)fe(V[U],g,k,P);s(p.anchor,g,k);return}if(z===oo){m(p,g,k);return}if(P!==2&&D&1&&j)if(P===0)j.beforeEnter(T),s(T,g,k),Ge(()=>j.enter(T),I);else{const{leave:U,delayLeave:X,afterLeave:oe}=j,pe=()=>{p.ctx.isUnmounted?o(T):s(T,g,k)},Re=()=>{U(T,()=>{pe(),oe&&oe()})};X?X(T,pe,Re):Re()}else s(T,g,k)},$e=(p,g,k,P=!1,I=!1)=>{const{type:T,props:z,ref:j,children:V,dynamicChildren:D,shapeFlag:ne,patchFlag:U,dirs:X,cacheIndex:oe}=p;if(U===-2&&(I=!1),j!=null&&(At(),Dn(j,null,k,p,!0),Pt()),oe!=null&&(g.renderCache[oe]=void 0),ne&256){g.ctx.deactivate(p);return}const pe=ne&1&&X,Re=!vn(p);let we;if(Re&&(we=z&&z.onVnodeBeforeUnmount)&&gt(we,g,p),ne&6)O(p.component,k,P);else{if(ne&128){p.suspense.unmount(k,P);return}pe&&Jt(p,null,g,"beforeUnmount"),ne&64?p.type.remove(p,g,k,W,P):D&&!D.hasOnce&&(T!==Ce||U>0&&U&64)?Q(D,g,k,!1,!0):(T===Ce&&U&384||!I&&ne&16)&&Q(V,g,k),P&&lt(p)}(Re&&(we=z&&z.onVnodeUnmounted)||pe)&&Ge(()=>{we&&gt(we,g,p),pe&&Jt(p,null,g,"unmounted")},k)},lt=p=>{const{type:g,el:k,anchor:P,transition:I}=p;if(g===Ce){G(k,P);return}if(g===oo){v(p);return}const T=()=>{o(k),I&&!I.persisted&&I.afterLeave&&I.afterLeave()};if(p.shapeFlag&1&&I&&!I.persisted){const{leave:z,delayLeave:j}=I,V=()=>z(k,T);j?j(p.el,T,V):V()}else T()},G=(p,g)=>{let k;for(;p!==g;)k=d(p),o(p),p=k;o(g)},O=(p,g,k)=>{const{bum:P,scope:I,job:T,subTree:z,um:j,m:V,a:D,parent:ne,slots:{__:U}}=p;Pr(V),Pr(D),P&&ms(P),ne&&se(U)&&U.forEach(X=>{ne.renderCache[X]=void 0}),I.stop(),T&&(T.flags|=8,$e(z,p,g,k)),j&&Ge(j,g),Ge(()=>{p.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},Q=(p,g,k,P=!1,I=!1,T=0)=>{for(let z=T;z<p.length;z++)$e(p[z],g,k,P,I)},y=p=>{if(p.shapeFlag&6)return y(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const g=d(p.anchor||p.el),k=g&&g[gi];return k?d(k):g};let K=!1;const B=(p,g,k)=>{p==null?g._vnode&&$e(g._vnode,null,null,!0):_(g._vnode||null,p,g,null,null,null,k),g._vnode=p,K||(K=!0,yr(),di(),K=!1)},W={p:_,um:$e,m:fe,r:lt,mt:J,mc:L,pc:ae,pbc:F,n:y,o:e};let de,xe;return t&&([de,xe]=t(W)),{render:B,hydrate:de,createApp:Yu(B,de)}}function no({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Yt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function la(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Qo(e,t,n=!1){const s=e.children,o=t.children;if(se(s)&&se(o))for(let r=0;r<s.length;r++){const l=s[r];let i=o[r];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=o[r]=Bt(o[r]),i.el=l.el),!n&&i.patchFlag!==-2&&Qo(l,i)),i.type===Bs&&(i.el=l.el),i.type===Ke&&!i.el&&(i.el=l.el)}}function ia(e){const t=e.slice(),n=[0];let s,o,r,l,i;const c=e.length;for(s=0;s<c;s++){const a=e[s];if(a!==0){if(o=n[n.length-1],e[o]<a){t[s]=o,n.push(s);continue}for(r=0,l=n.length-1;r<l;)i=r+l>>1,e[n[i]]<a?r=i+1:l=i;a<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,l=n[r-1];r-- >0;)n[r]=l,l=t[l];return n}function Wi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Wi(t)}function Pr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const ca=Symbol.for("v-scx"),ua=()=>ke(ca);function Ot(e,t){return er(e,null,t)}function zt(e,t,n){return er(e,t,n)}function er(e,t,n=Se){const{immediate:s,deep:o,flush:r,once:l}=n,i=Le({},n),c=t&&s||!t&&r!=="post";let a;if(Cn){if(r==="sync"){const h=ua();a=h.__watcherHandles||(h.__watcherHandles=[])}else if(!c){const h=()=>{};return h.stop=ct,h.resume=ct,h.pause=ct,h}}const u=Be;i.call=(h,x,_)=>ft(h,u,x,_);let f=!1;r==="post"?i.scheduler=h=>{Ge(h,u&&u.suspense)}:r!=="sync"&&(f=!0,i.scheduler=(h,x)=>{x?h():Ko(h)}),i.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const d=xu(e,t,i);return Cn&&(a?a.push(d):c&&d()),d}function aa(e,t,n){const s=this.proxy,o=Ie(e)?e.includes(".")?zi(s,e):()=>s[e]:e.bind(s,s);let r;ue(t)?r=t:(r=t.handler,n=t);const l=us(this),i=er(o,r.bind(s),n);return l(),i}function zi(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}const fa=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${rt(t)}Modifiers`]||e[`${Gt(t)}Modifiers`];function da(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Se;let o=n;const r=t.startsWith("update:"),l=r&&fa(s,t.slice(7));l&&(l.trim&&(o=n.map(u=>Ie(u)?u.trim():u)),l.number&&(o=n.map(go)));let i,c=s[i=Gs(t)]||s[i=Gs(rt(t))];!c&&r&&(c=s[i=Gs(Gt(t))]),c&&ft(c,e,6,o);const a=s[i+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,ft(a,e,6,o)}}function Ui(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let l={},i=!1;if(!ue(e)){const c=a=>{const u=Ui(a,t,!0);u&&(i=!0,Le(l,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!i?(Ee(e)&&s.set(e,null),null):(se(r)?r.forEach(c=>l[c]=null):Le(l,r),Ee(e)&&s.set(e,l),l)}function Hs(e,t){return!e||!As(t)?!1:(t=t.slice(2).replace(/Once$/,""),be(e,t[0].toLowerCase()+t.slice(1))||be(e,Gt(t))||be(e,t))}function so(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[r],slots:l,attrs:i,emit:c,render:a,renderCache:u,props:f,data:d,setupState:h,ctx:x,inheritAttrs:_}=e,A=ks(e);let R,b;try{if(n.shapeFlag&4){const v=o||s,S=v;R=_t(a.call(S,v,u,f,h,d,x)),b=i}else{const v=t;R=_t(v.length>1?v(f,{attrs:i,slots:l,emit:c}):v(f,null)),b=t.props?i:pa(i)}}catch(v){Nn.length=0,ls(v,e,1),R=le(Ke)}let m=R;if(b&&_!==!1){const v=Object.keys(b),{shapeFlag:S}=m;v.length&&S&7&&(r&&v.some(Lo)&&(b=ha(b,r)),m=qt(m,b,!1,!0))}return n.dirs&&(m=qt(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&Jn(m,n.transition),R=m,ks(A),R}const pa=e=>{let t;for(const n in e)(n==="class"||n==="style"||As(n))&&((t||(t={}))[n]=e[n]);return t},ha=(e,t)=>{const n={};for(const s in e)(!Lo(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ga(e,t,n){const{props:s,children:o,component:r}=e,{props:l,children:i,patchFlag:c}=t,a=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Tr(s,l,a):!!l;if(c&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(l[d]!==s[d]&&!Hs(a,d))return!0}}}else return(o||i)&&(!i||!i.$stable)?!0:s===l?!1:s?l?Tr(s,l,a):!0:!!l;return!1}function Tr(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(t[r]!==e[r]&&!Hs(n,r))return!0}return!1}function ma({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Ki=e=>e.__isSuspense;function va(e,t){t&&t.pendingBranch?se(e)?t.effects.push(...e):t.effects.push(e):Eu(e)}const Ce=Symbol.for("v-fgt"),Bs=Symbol.for("v-txt"),Ke=Symbol.for("v-cmt"),oo=Symbol.for("v-stc"),Nn=[];let tt=null;function $(e=!1){Nn.push(tt=e?null:[])}function _a(){Nn.pop(),tt=Nn[Nn.length-1]||null}let Yn=1;function Or(e,t=!1){Yn+=e,e<0&&tt&&t&&(tt.hasOnce=!0)}function qi(e){return e.dynamicChildren=Yn>0?tt||hn:null,_a(),Yn>0&&tt&&tt.push(e),e}function Y(e,t,n,s,o,r){return qi(N(e,t,n,s,o,r,!0))}function he(e,t,n,s,o){return qi(le(e,t,n,s,o,!0))}function Zn(e){return e?e.__v_isVNode===!0:!1}function en(e,t){return e.type===t.type&&e.key===t.key}const Gi=({key:e})=>e??null,_s=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ie(e)||Pe(e)||ue(e)?{i:je,r:e,k:t,f:!!n}:e:null);function N(e,t=null,n=null,s=0,o=null,r=e===Ce?0:1,l=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gi(t),ref:t&&_s(t),scopeId:hi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:je};return i?(nr(c,n),r&128&&e.normalize(c)):n&&(c.shapeFlag|=Ie(n)?8:16),Yn>0&&!l&&tt&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&tt.push(c),c}const le=ya;function ya(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===Mi)&&(e=Ke),Zn(e)){const i=qt(e,t,!0);return n&&nr(i,n),Yn>0&&!r&&tt&&(i.shapeFlag&6?tt[tt.indexOf(e)]=i:tt.push(i)),i.patchFlag=-2,i}if(Ra(e)&&(e=e.__vccOpts),t){t=Ji(t);let{class:i,style:c}=t;i&&!Ie(i)&&(t.class=De(i)),Ee(c)&&(zo(c)&&!se(c)&&(c=Le({},c)),t.style=It(c))}const l=Ie(e)?1:Ki(e)?128:mi(e)?64:Ee(e)?4:ue(e)?2:0;return N(e,t,n,s,o,l,r,!0)}function Ji(e){return e?zo(e)||Fi(e)?Le({},e):e:null}function qt(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:l,children:i,transition:c}=e,a=t?Rs(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Gi(a),ref:t&&t.ref?n&&r?se(r)?r.concat(_s(t)):[r,_s(t)]:_s(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qt(e.ssContent),ssFallback:e.ssFallback&&qt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Jn(u,c.clone(u)),u}function tr(e=" ",t=0){return le(Bs,null,e,t)}function me(e="",t=!1){return t?($(),he(Ke,null,e)):le(Ke,null,e)}function _t(e){return e==null||typeof e=="boolean"?le(Ke):se(e)?le(Ce,null,e.slice()):Zn(e)?Bt(e):le(Bs,null,String(e))}function Bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qt(e)}function nr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(se(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),nr(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Fi(t)?t._ctx=je:o===3&&je&&(je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ue(t)?(t={default:t,_ctx:je},n=32):(t=String(t),s&64?(n=16,t=[tr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Rs(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=De([t.class,s.class]));else if(o==="style")t.style=It([t.style,s.style]);else if(As(o)){const r=t[o],l=s[o];l&&r!==l&&!(se(r)&&r.includes(l))&&(t[o]=r?[].concat(r,l):l)}else o!==""&&(t[o]=s[o])}return t}function gt(e,t,n,s=null){ft(e,t,7,[n,s])}const ba=$i();let wa=0;function Ca(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||ba,r={uid:wa++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Wl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Hi(s,o),emitsOptions:Ui(s,o),emit:null,emitted:null,propsDefaults:Se,inheritAttrs:s.inheritAttrs,ctx:Se,data:Se,props:Se,attrs:Se,slots:Se,refs:Se,setupState:Se,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=da.bind(null,r),e.ce&&e.ce(r),r}let Be=null;const Vs=()=>Be||je;let Ms,ko;{const e=$s(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(l=>l(r)):o[0](r)}};Ms=t("__VUE_INSTANCE_SETTERS__",n=>Be=n),ko=t("__VUE_SSR_SETTERS__",n=>Cn=n)}const us=e=>{const t=Be;return Ms(e),e.scope.on(),()=>{e.scope.off(),Ms(t)}},$r=()=>{Be&&Be.scope.off(),Ms(null)};function Yi(e){return e.vnode.shapeFlag&4}let Cn=!1;function xa(e,t=!1,n=!1){t&&ko(t);const{props:s,children:o}=e.vnode,r=Yi(e);Xu(e,s,r,t),na(e,o,n||t);const l=r?Sa(e,t):void 0;return t&&ko(!1),l}function Sa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ju);const{setup:s}=n;if(s){At();const o=e.setupContext=s.length>1?Xi(e):null,r=us(e),l=rs(s,e,0,[e.props,o]),i=Dl(l);if(Pt(),r(),(i||e.sp)&&!vn(e)&&qo(e),i){if(l.then($r,$r),t)return l.then(c=>{Lr(e,c,t)}).catch(c=>{ls(c,e,0)});e.asyncDep=l}else Lr(e,l,t)}else Zi(e,t)}function Lr(e,t,n){ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ee(t)&&(e.setupState=ui(t)),Zi(e,n)}let Dr;function Zi(e,t,n){const s=e.type;if(!e.render){if(!t&&Dr&&!s.render){const o=s.template||Yo(e).template;if(o){const{isCustomElement:r,compilerOptions:l}=e.appContext.config,{delimiters:i,compilerOptions:c}=s,a=Le(Le({isCustomElement:r,delimiters:i},l),c);s.render=Dr(o,a)}}e.render=s.render||ct}{const o=us(e);At();try{zu(e)}finally{Pt(),o()}}}const ka={get(e,t){return Ue(e,"get",""),e[t]}};function Xi(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ka),slots:e.slots,emit:e.emit,expose:t}}function js(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ui(Uo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Fn)return Fn[n](e)},has(t,n){return n in t||n in Fn}})):e.proxy}function Ea(e,t=!0){return ue(e)?e.displayName||e.name:e.name||t&&e.__name}function Ra(e){return ue(e)&&"__vccOpts"in e}const ve=(e,t)=>wu(e,t,Cn);function rn(e,t,n){const s=arguments.length;return s===2?Ee(t)&&!se(t)?Zn(t)?le(e,null,[t]):le(e,t):le(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Zn(n)&&(n=[n]),le(e,t,n))}const Ma="3.5.18";/**
14
- * @vue/runtime-dom v3.5.18
15
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
- * @license MIT
17
- **/let Eo;const Fr=typeof window<"u"&&window.trustedTypes;if(Fr)try{Eo=Fr.createPolicy("vue",{createHTML:e=>e})}catch{}const Qi=Eo?e=>Eo.createHTML(e):e=>e,Ia="http://www.w3.org/2000/svg",Aa="http://www.w3.org/1998/Math/MathML",Et=typeof document<"u"?document:null,Nr=Et&&Et.createElement("template"),Pa={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?Et.createElementNS(Ia,e):t==="mathml"?Et.createElementNS(Aa,e):n?Et.createElement(e,{is:n}):Et.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>Et.createTextNode(e),createComment:e=>Et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const l=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{Nr.innerHTML=Qi(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=Nr.content;if(s==="svg"||s==="mathml"){const c=i.firstChild;for(;c.firstChild;)i.appendChild(c.firstChild);i.removeChild(c)}t.insertBefore(i,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Lt="transition",Mn="animation",Xn=Symbol("_vtc"),ec={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},Ta=Le({},bi,ec),Oa=e=>(e.displayName="Transition",e.props=Ta,e),$a=Oa((e,{slots:t})=>rn(Au,La(e),t)),Zt=(e,t=[])=>{se(e)?e.forEach(n=>n(...t)):e&&e(...t)},Hr=e=>e?se(e)?e.some(t=>t.length>1):e.length>1:!1;function La(e){const t={};for(const H in e)H in ec||(t[H]=e[H]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:c=r,appearActiveClass:a=l,appearToClass:u=i,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,x=Da(o),_=x&&x[0],A=x&&x[1],{onBeforeEnter:R,onEnter:b,onEnterCancelled:m,onLeave:v,onLeaveCancelled:S,onBeforeAppear:C=R,onAppear:E=b,onAppearCancelled:L=m}=t,w=(H,Z,J,ce)=>{H._enterCancelled=ce,Xt(H,Z?u:i),Xt(H,Z?a:l),J&&J()},F=(H,Z)=>{H._isLeaving=!1,Xt(H,f),Xt(H,h),Xt(H,d),Z&&Z()},q=H=>(Z,J)=>{const ce=H?E:b,ie=()=>w(Z,H,J);Zt(ce,[Z,ie]),Br(()=>{Xt(Z,H?c:r),St(Z,H?u:i),Hr(ce)||Vr(Z,s,_,ie)})};return Le(t,{onBeforeEnter(H){Zt(R,[H]),St(H,r),St(H,l)},onBeforeAppear(H){Zt(C,[H]),St(H,c),St(H,a)},onEnter:q(!1),onAppear:q(!0),onLeave(H,Z){H._isLeaving=!0;const J=()=>F(H,Z);St(H,f),H._enterCancelled?(St(H,d),zr()):(zr(),St(H,d)),Br(()=>{H._isLeaving&&(Xt(H,f),St(H,h),Hr(v)||Vr(H,s,A,J))}),Zt(v,[H,J])},onEnterCancelled(H){w(H,!1,void 0,!0),Zt(m,[H])},onAppearCancelled(H){w(H,!0,void 0,!0),Zt(L,[H])},onLeaveCancelled(H){F(H),Zt(S,[H])}})}function Da(e){if(e==null)return null;if(Ee(e))return[ro(e.enter),ro(e.leave)];{const t=ro(e);return[t,t]}}function ro(e){return Vc(e)}function St(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Xn]||(e[Xn]=new Set)).add(t)}function Xt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Xn];n&&(n.delete(t),n.size||(e[Xn]=void 0))}function Br(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Fa=0;function Vr(e,t,n,s){const o=e._endId=++Fa,r=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(r,n);const{type:l,timeout:i,propCount:c}=Na(e,t);if(!l)return s();const a=l+"end";let u=0;const f=()=>{e.removeEventListener(a,d),r()},d=h=>{h.target===e&&++u>=c&&f()};setTimeout(()=>{u<c&&f()},i+1),e.addEventListener(a,d)}function Na(e,t){const n=window.getComputedStyle(e),s=x=>(n[x]||"").split(", "),o=s(`${Lt}Delay`),r=s(`${Lt}Duration`),l=jr(o,r),i=s(`${Mn}Delay`),c=s(`${Mn}Duration`),a=jr(i,c);let u=null,f=0,d=0;t===Lt?l>0&&(u=Lt,f=l,d=r.length):t===Mn?a>0&&(u=Mn,f=a,d=c.length):(f=Math.max(l,a),u=f>0?l>a?Lt:Mn:null,d=u?u===Lt?r.length:c.length:0);const h=u===Lt&&/\b(transform|all)(,|$)/.test(s(`${Lt}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function jr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Wr(n)+Wr(e[s])))}function Wr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function zr(){return document.body.offsetHeight}function Ha(e,t,n){const s=e[Xn];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ur=Symbol("_vod"),Ba=Symbol("_vsh"),Va=Symbol(""),ja=/(^|;)\s*display\s*:/;function Wa(e,t,n){const s=e.style,o=Ie(n);let r=!1;if(n&&!o){if(t)if(Ie(t))for(const l of t.split(";")){const i=l.slice(0,l.indexOf(":")).trim();n[i]==null&&ys(s,i,"")}else for(const l in t)n[l]==null&&ys(s,l,"");for(const l in n)l==="display"&&(r=!0),ys(s,l,n[l])}else if(o){if(t!==n){const l=s[Va];l&&(n+=";"+l),s.cssText=n,r=ja.test(n)}}else t&&e.removeAttribute("style");Ur in e&&(e[Ur]=r?s.display:"",e[Ba]&&(s.display="none"))}const Kr=/\s*!important$/;function ys(e,t,n){if(se(n))n.forEach(s=>ys(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=za(e,t);Kr.test(n)?e.setProperty(Gt(s),n.replace(Kr,""),"important"):e[s]=n}}const qr=["Webkit","Moz","ms"],lo={};function za(e,t){const n=lo[t];if(n)return n;let s=rt(t);if(s!=="filter"&&s in e)return lo[t]=s;s=Os(s);for(let o=0;o<qr.length;o++){const r=qr[o]+s;if(r in e)return lo[t]=r}return t}const Gr="http://www.w3.org/1999/xlink";function Jr(e,t,n,s,o,r=Gc(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Gr,t.slice(6,t.length)):e.setAttributeNS(Gr,t,n):n==null||r&&!Hl(n)?e.removeAttribute(t):e.setAttribute(t,r?"":at(n)?String(n):n)}function Yr(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Qi(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const i=r==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(i!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=Hl(n):n==null&&i==="string"?(n="",l=!0):i==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(o||t)}function tn(e,t,n,s){e.addEventListener(t,n,s)}function Ua(e,t,n,s){e.removeEventListener(t,n,s)}const Zr=Symbol("_vei");function Ka(e,t,n,s,o=null){const r=e[Zr]||(e[Zr]={}),l=r[t];if(s&&l)l.value=s;else{const[i,c]=qa(t);if(s){const a=r[t]=Ya(s,o);tn(e,i,a,c)}else l&&(Ua(e,i,l,c),r[t]=void 0)}}const Xr=/(?:Once|Passive|Capture)$/;function qa(e){let t;if(Xr.test(e)){t={};let s;for(;s=e.match(Xr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Gt(e.slice(2)),t]}let io=0;const Ga=Promise.resolve(),Ja=()=>io||(Ga.then(()=>io=0),io=Date.now());function Ya(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;ft(Za(s,n.value),t,5,[s])};return n.value=e,n.attached=Ja(),n}function Za(e,t){if(se(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const Qr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Xa=(e,t,n,s,o,r)=>{const l=o==="svg";t==="class"?Ha(e,s,l):t==="style"?Wa(e,n,s):As(t)?Lo(t)||Ka(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Qa(e,t,s,l))?(Yr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Jr(e,t,s,l,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ie(s))?Yr(e,rt(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Jr(e,t,s,l))};function Qa(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Qr(t)&&ue(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Qr(t)&&Ie(n)?!1:t in e}const Is=e=>{const t=e.props["onUpdate:modelValue"]||!1;return se(t)?n=>ms(t,n):t};function ef(e){e.target.composing=!0}function el(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const _n=Symbol("_assign"),Qn={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[_n]=Is(o);const r=s||o.props&&o.props.type==="number";tn(e,t?"change":"input",l=>{if(l.target.composing)return;let i=e.value;n&&(i=i.trim()),r&&(i=go(i)),e[_n](i)}),n&&tn(e,"change",()=>{e.value=e.value.trim()}),t||(tn(e,"compositionstart",ef),tn(e,"compositionend",el),tn(e,"change",el))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:r}},l){if(e[_n]=Is(l),e.composing)return;const i=(r||e.type==="number")&&!/^0\d/.test(e.value)?go(e.value):e.value,c=t??"";i!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||o&&e.value.trim()===c)||(e.value=c))}},tf={deep:!0,created(e,t,n){e[_n]=Is(n),tn(e,"change",()=>{const s=e._modelValue,o=nf(e),r=e.checked,l=e[_n];if(se(s)){const i=Bl(s,o),c=i!==-1;if(r&&!c)l(s.concat(o));else if(!r&&c){const a=[...s];a.splice(i,1),l(a)}}else if(Ps(s)){const i=new Set(s);r?i.add(o):i.delete(o),l(i)}else l(tc(e,r))})},mounted:tl,beforeUpdate(e,t,n){e[_n]=Is(n),tl(e,t,n)}};function tl(e,{value:t,oldValue:n},s){e._modelValue=t;let o;if(se(t))o=Bl(t,s.props.value)>-1;else if(Ps(t))o=t.has(s.props.value);else{if(t===n)return;o=Ls(t,tc(e,!0))}e.checked!==o&&(e.checked=o)}function nf(e){return"_value"in e?e._value:e.value}function tc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const sf=["ctrl","shift","alt","meta"],of={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)=>sf.some(n=>e[`${n}Key`]&&!t.includes(n))},Ve=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...r)=>{for(let l=0;l<t.length;l++){const i=of[t[l]];if(i&&i(o,t))return}return e(o,...r)})},rf={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},yn=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const r=Gt(o.key);if(t.some(l=>l===r||rf[l]===r))return e(o)})},lf=Le({patchProp:Xa},Pa);let nl;function nc(){return nl||(nl=oa(lf))}const sl=(...e)=>{nc().render(...e)},cf=(...e)=>{const t=nc().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=af(s);if(!o)return;const r=t._component;!ue(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const l=n(o,!1,uf(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},t};function uf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function af(e){return Ie(e)?document.querySelector(e):e}var ff=!1;/*!
18
- * pinia v2.3.1
19
- * (c) 2025 Eduardo San Martin Morote
20
- * @license MIT
21
- */let sc;const Ws=e=>sc=e,oc=Symbol();function Ro(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Hn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Hn||(Hn={}));function df(){const e=zl(!0),t=e.run(()=>re({}));let n=[],s=[];const o=Uo({install(r){Ws(o),o._a=r,r.provide(oc,o),r.config.globalProperties.$pinia=o,s.forEach(l=>n.push(l)),s=[]},use(r){return!this._a&&!ff?s.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const rc=()=>{};function ol(e,t,n,s=rc){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&Ul()&&Yc(o),o}function fn(e,...t){e.slice().forEach(n=>{n(...t)})}const pf=e=>e(),rl=Symbol(),co=Symbol();function Mo(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],o=e[n];Ro(o)&&Ro(s)&&e.hasOwnProperty(n)&&!Pe(s)&&!Wt(s)?e[n]=Mo(o,s):e[n]=s}return e}const hf=Symbol();function gf(e){return!Ro(e)||!e.hasOwnProperty(hf)}const{assign:Ft}=Object;function mf(e){return!!(Pe(e)&&e.effect)}function vf(e,t,n,s){const{state:o,actions:r,getters:l}=t,i=n.state.value[e];let c;function a(){i||(n.state.value[e]=o?o():{});const u=un(n.state.value[e]);return Ft(u,r,Object.keys(l||{}).reduce((f,d)=>(f[d]=Uo(ve(()=>{Ws(n);const h=n._s.get(e);return l[d].call(h,h)})),f),{}))}return c=lc(e,a,t,n,s,!0),c}function lc(e,t,n={},s,o,r){let l;const i=Ft({actions:{}},n),c={deep:!0};let a,u,f=[],d=[],h;const x=s.state.value[e];!r&&!x&&(s.state.value[e]={}),re({});let _;function A(L){let w;a=u=!1,typeof L=="function"?(L(s.state.value[e]),w={type:Hn.patchFunction,storeId:e,events:h}):(Mo(s.state.value[e],L),w={type:Hn.patchObject,payload:L,storeId:e,events:h});const F=_=Symbol();Ze().then(()=>{_===F&&(a=!0)}),u=!0,fn(f,w,s.state.value[e])}const R=r?function(){const{state:w}=n,F=w?w():{};this.$patch(q=>{Ft(q,F)})}:rc;function b(){l.stop(),f=[],d=[],s._s.delete(e)}const m=(L,w="")=>{if(rl in L)return L[co]=w,L;const F=function(){Ws(s);const q=Array.from(arguments),H=[],Z=[];function J(ee){H.push(ee)}function ce(ee){Z.push(ee)}fn(d,{args:q,name:F[co],store:S,after:J,onError:ce});let ie;try{ie=L.apply(this&&this.$id===e?this:S,q)}catch(ee){throw fn(Z,ee),ee}return ie instanceof Promise?ie.then(ee=>(fn(H,ee),ee)).catch(ee=>(fn(Z,ee),Promise.reject(ee))):(fn(H,ie),ie)};return F[rl]=!0,F[co]=w,F},v={_p:s,$id:e,$onAction:ol.bind(null,d),$patch:A,$reset:R,$subscribe(L,w={}){const F=ol(f,L,w.detached,()=>q()),q=l.run(()=>zt(()=>s.state.value[e],H=>{(w.flush==="sync"?u:a)&&L({storeId:e,type:Hn.direct,events:h},H)},Ft({},c,w)));return F},$dispose:b},S=Tt(v);s._s.set(e,S);const E=(s._a&&s._a.runWithContext||pf)(()=>s._e.run(()=>(l=zl()).run(()=>t({action:m}))));for(const L in E){const w=E[L];if(Pe(w)&&!mf(w)||Wt(w))r||(x&&gf(w)&&(Pe(w)?w.value=x[L]:Mo(w,x[L])),s.state.value[e][L]=w);else if(typeof w=="function"){const F=m(w,L);E[L]=F,i.actions[L]=w}}return Ft(S,E),Ft(ge(S),E),Object.defineProperty(S,"$state",{get:()=>s.state.value[e],set:L=>{A(w=>{Ft(w,L)})}}),s._p.forEach(L=>{Ft(S,l.run(()=>L({store:S,app:s._a,pinia:s,options:i})))}),x&&r&&n.hydrate&&n.hydrate(S.$state,x),a=!0,u=!0,S}/*! #__NO_SIDE_EFFECTS__ */function _f(e,t,n){let s,o;const r=typeof t=="function";typeof e=="string"?(s=e,o=r?n:t):(o=e,s=e.id);function l(i,c){const a=Zu();return i=i||(a?ke(oc,null):null),i&&Ws(i),i=sc,i._s.has(s)||(r?lc(s,t,o,i):vf(s,o,i)),i._s.get(s)}return l.$id=s,l}const yf={class:"statustext"},bf={key:0,class:"index"},wf={class:"filename"},Cf={key:0,class:"percent"},xf={key:1,class:"position"},Sf={class:"speed"},kf=_e({__name:"TransferBar",props:{status:{}},emits:["cancel"],setup(e){const t=e,n=ve(()=>t.status.xfer/t.status.total*100),s=ve(()=>{let r=t.status.statbytes/t.status.statdur/1e3;const l=(Date.now()-t.status.tlast)/1e3;return l>5/r?0:l>1/r?1/l:r}),o=ve(()=>s.value?s.value.toFixed(s.value<10?1:0)+" MB/s":"stalled");return(r,l)=>r.status.total?($(),Y("div",{key:0,class:"transferprogress",style:It(`background: linear-gradient(to right, var(--bar) 0, var(--bar) ${n.value}%, var(--nobar) ${n.value}%, var(--nobar) 100%);`)},[N("div",yf,[r.status.filecount>1?($(),Y("span",bf," ["+Ae(r.status.fileidx)+"/"+Ae(r.status.filecount)+"] ",1)):me("",!0),N("span",wf,[tr(Ae(r.status.filename.split("/").pop())+" ",1),r.status.filesize>1e7?($(),Y("span",Cf,Ae((r.status.filepos/r.status.filesize*100).toFixed(0)+" %"),1)):me("",!0)]),r.status.total>1e7?($(),Y("span",xf,Ae((r.status.xfer/1e6).toFixed(0)+" / "+(r.status.total/1e6).toFixed(0)+" MB"),1)):me("",!0),N("span",Sf,Ae(o.value),1),N("button",{class:"close",onClick:l[0]||(l[0]=i=>r.$emit("cancel"))},"❌")])],4)):me("",!0)}});const pt=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},Ef=pt(kf,[["__scopeId","data-v-fc92216f"]]),Rf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"};function ic(e,t){return $(),Y("svg",Rf,t[0]||(t[0]=[N("path",{d:"M32 18.45 16 6.03 0 18.45V13.4L16 .96 32 13.4zM28 18v12h-8v-8h-8v8H4V18l12-9z"},null,-1)]))}const cc={render:ic},Mf=Object.freeze(Object.defineProperty({__proto__:null,default:cc,render:ic},Symbol.toStringTag,{value:"Module"}));/*!
22
- * vue-router v4.5.1
23
- * (c) 2025 Eduardo San Martin Morote
24
- * @license MIT
25
- */const pn=typeof document<"u";function uc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function If(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&uc(e.default)}const ye=Object.assign;function uo(e,t){const n={};for(const s in t){const o=t[s];n[s]=dt(o)?o.map(e):e(o)}return n}const Bn=()=>{},dt=Array.isArray,ac=/#/g,Af=/&/g,Pf=/\//g,Tf=/=/g,Of=/\?/g,fc=/\+/g,$f=/%5B/g,Lf=/%5D/g,dc=/%5E/g,Df=/%60/g,pc=/%7B/g,Ff=/%7C/g,hc=/%7D/g,Nf=/%20/g;function sr(e){return encodeURI(""+e).replace(Ff,"|").replace($f,"[").replace(Lf,"]")}function Hf(e){return sr(e).replace(pc,"{").replace(hc,"}").replace(dc,"^")}function Io(e){return sr(e).replace(fc,"%2B").replace(Nf,"+").replace(ac,"%23").replace(Af,"%26").replace(Df,"`").replace(pc,"{").replace(hc,"}").replace(dc,"^")}function Bf(e){return Io(e).replace(Tf,"%3D")}function Vf(e){return sr(e).replace(ac,"%23").replace(Of,"%3F")}function jf(e){return e==null?"":Vf(e).replace(Pf,"%2F")}function es(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Wf=/\/$/,zf=e=>e.replace(Wf,"");function ao(e,t,n="/"){let s,o={},r="",l="";const i=t.indexOf("#");let c=t.indexOf("?");return i<c&&i>=0&&(c=-1),c>-1&&(s=t.slice(0,c),r=t.slice(c+1,i>-1?i:t.length),o=e(r)),i>-1&&(s=s||t.slice(0,i),l=t.slice(i,t.length)),s=Gf(s??t,n),{fullPath:s+(r&&"?")+r+l,path:s,query:o,hash:es(l)}}function Uf(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ll(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Kf(e,t,n){const s=t.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&xn(t.matched[s],n.matched[o])&&gc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function xn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function gc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!qf(e[n],t[n]))return!1;return!0}function qf(e,t){return dt(e)?il(e,t):dt(t)?il(t,e):e===t}function il(e,t){return dt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Gf(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),o=s[s.length-1];(o===".."||o===".")&&s.push("");let r=n.length-1,l,i;for(l=0;l<s.length;l++)if(i=s[l],i!==".")if(i==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(l).join("/")}const Dt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ts;(function(e){e.pop="pop",e.push="push"})(ts||(ts={}));var Vn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Vn||(Vn={}));function Jf(e){if(!e)if(pn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),zf(e)}const Yf=/^[^#]+#/;function Zf(e,t){return e.replace(Yf,"#")+t}function Xf(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const zs=()=>({left:window.scrollX,top:window.scrollY});function Qf(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Xf(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function cl(e,t){return(history.state?history.state.position-t:-1)+e}const Ao=new Map;function ed(e,t){Ao.set(e,t)}function td(e){const t=Ao.get(e);return Ao.delete(e),t}let nd=()=>location.protocol+"//"+location.host;function mc(e,t){const{pathname:n,search:s,hash:o}=t,r=e.indexOf("#");if(r>-1){let i=o.includes(e.slice(r))?e.slice(r).length:1,c=o.slice(i);return c[0]!=="/"&&(c="/"+c),ll(c,"")}return ll(n,e)+s+o}function sd(e,t,n,s){let o=[],r=[],l=null;const i=({state:d})=>{const h=mc(e,location),x=n.value,_=t.value;let A=0;if(d){if(n.value=h,t.value=d,l&&l===x){l=null;return}A=_?d.position-_.position:0}else s(h);o.forEach(R=>{R(n.value,x,{delta:A,type:ts.pop,direction:A?A>0?Vn.forward:Vn.back:Vn.unknown})})};function c(){l=n.value}function a(d){o.push(d);const h=()=>{const x=o.indexOf(d);x>-1&&o.splice(x,1)};return r.push(h),h}function u(){const{history:d}=window;d.state&&d.replaceState(ye({},d.state,{scroll:zs()}),"")}function f(){for(const d of r)d();r=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:a,destroy:f}}function ul(e,t,n,s=!1,o=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:o?zs():null}}function od(e){const{history:t,location:n}=window,s={value:mc(e,n)},o={value:t.state};o.value||r(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(c,a,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:nd()+e+c;try{t[u?"replaceState":"pushState"](a,"",d),o.value=a}catch(h){console.error(h),n[u?"replace":"assign"](d)}}function l(c,a){const u=ye({},t.state,ul(o.value.back,c,o.value.forward,!0),a,{position:o.value.position});r(c,u,!0),s.value=c}function i(c,a){const u=ye({},o.value,t.state,{forward:c,scroll:zs()});r(u.current,u,!0);const f=ye({},ul(s.value,c,null),{position:u.position+1},a);r(c,f,!1),s.value=c}return{location:s,state:o,push:i,replace:l}}function rd(e){e=Jf(e);const t=od(e),n=sd(e,t.state,t.location,t.replace);function s(r,l=!0){l||n.pauseListeners(),history.go(r)}const o=ye({location:"",base:e,go:s,createHref:Zf.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function ld(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),rd(e)}function id(e){return typeof e=="string"||e&&typeof e=="object"}function vc(e){return typeof e=="string"||typeof e=="symbol"}const _c=Symbol("");var al;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(al||(al={}));function Sn(e,t){return ye(new Error,{type:e,[_c]:!0},t)}function kt(e,t){return e instanceof Error&&_c in e&&(t==null||!!(e.type&t))}const fl="[^/]+?",cd={sensitive:!1,strict:!1,start:!0,end:!0},ud=/[.+*?^${}()[\]/\\]/g;function ad(e,t){const n=ye({},cd,t),s=[];let o=n.start?"^":"";const r=[];for(const a of e){const u=a.length?[]:[90];n.strict&&!a.length&&(o+="/");for(let f=0;f<a.length;f++){const d=a[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(o+="/"),o+=d.value.replace(ud,"\\$&"),h+=40;else if(d.type===1){const{value:x,repeatable:_,optional:A,regexp:R}=d;r.push({name:x,repeatable:_,optional:A});const b=R||fl;if(b!==fl){h+=10;try{new RegExp(`(${b})`)}catch(v){throw new Error(`Invalid custom RegExp for param "${x}" (${b}): `+v.message)}}let m=_?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;f||(m=A&&a.length<2?`(?:/${m})`:"/"+m),A&&(m+="?"),o+=m,h+=20,A&&(h+=-8),_&&(h+=-20),b===".*"&&(h+=-50)}u.push(h)}s.push(u)}if(n.strict&&n.end){const a=s.length-1;s[a][s[a].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const l=new RegExp(o,n.sensitive?"":"i");function i(a){const u=a.match(l),f={};if(!u)return null;for(let d=1;d<u.length;d++){const h=u[d]||"",x=r[d-1];f[x.name]=h&&x.repeatable?h.split("/"):h}return f}function c(a){let u="",f=!1;for(const d of e){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const h of d)if(h.type===0)u+=h.value;else if(h.type===1){const{value:x,repeatable:_,optional:A}=h,R=x in a?a[x]:"";if(dt(R)&&!_)throw new Error(`Provided param "${x}" is an array but it is not repeatable (* or + modifiers)`);const b=dt(R)?R.join("/"):R;if(!b)if(A)d.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${x}"`);u+=b}}return u||"/"}return{re:l,score:s,keys:r,parse:i,stringify:c}}function fd(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function yc(e,t){let n=0;const s=e.score,o=t.score;for(;n<s.length&&n<o.length;){const r=fd(s[n],o[n]);if(r)return r;n++}if(Math.abs(o.length-s.length)===1){if(dl(s))return 1;if(dl(o))return-1}return o.length-s.length}function dl(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const dd={type:0,value:""},pd=/[a-zA-Z0-9_]/;function hd(e){if(!e)return[[]];if(e==="/")return[[dd]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${a}": ${h}`)}let n=0,s=n;const o=[];let r;function l(){r&&o.push(r),r=[]}let i=0,c,a="",u="";function f(){a&&(n===0?r.push({type:0,value:a}):n===1||n===2||n===3?(r.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:a,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),a="")}function d(){a+=c}for(;i<e.length;){if(c=e[i++],c==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:c==="/"?(a&&f(),l()):c===":"?(f(),n=1):d();break;case 4:d(),n=s;break;case 1:c==="("?n=2:pd.test(c)?d():(f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&i--);break;case 2:c===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&i--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${a}"`),f(),l(),o}function gd(e,t,n){const s=ad(hd(e.path),n),o=ye(s,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function md(e,t){const n=[],s=new Map;t=ml({strict:!1,end:!0,sensitive:!1},t);function o(f){return s.get(f)}function r(f,d,h){const x=!h,_=hl(f);_.aliasOf=h&&h.record;const A=ml(t,f),R=[_];if("alias"in f){const v=typeof f.alias=="string"?[f.alias]:f.alias;for(const S of v)R.push(hl(ye({},_,{components:h?h.record.components:_.components,path:S,aliasOf:h?h.record:_})))}let b,m;for(const v of R){const{path:S}=v;if(d&&S[0]!=="/"){const C=d.record.path,E=C[C.length-1]==="/"?"":"/";v.path=d.record.path+(S&&E+S)}if(b=gd(v,d,A),h?h.alias.push(b):(m=m||b,m!==b&&m.alias.push(b),x&&f.name&&!gl(b)&&l(f.name)),bc(b)&&c(b),_.children){const C=_.children;for(let E=0;E<C.length;E++)r(C[E],b,h&&h.children[E])}h=h||b}return m?()=>{l(m)}:Bn}function l(f){if(vc(f)){const d=s.get(f);d&&(s.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(l),d.alias.forEach(l))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&s.delete(f.record.name),f.children.forEach(l),f.alias.forEach(l))}}function i(){return n}function c(f){const d=yd(f,n);n.splice(d,0,f),f.record.name&&!gl(f)&&s.set(f.record.name,f)}function a(f,d){let h,x={},_,A;if("name"in f&&f.name){if(h=s.get(f.name),!h)throw Sn(1,{location:f});A=h.record.name,x=ye(pl(d.params,h.keys.filter(m=>!m.optional).concat(h.parent?h.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),f.params&&pl(f.params,h.keys.map(m=>m.name))),_=h.stringify(x)}else if(f.path!=null)_=f.path,h=n.find(m=>m.re.test(_)),h&&(x=h.parse(_),A=h.record.name);else{if(h=d.name?s.get(d.name):n.find(m=>m.re.test(d.path)),!h)throw Sn(1,{location:f,currentLocation:d});A=h.record.name,x=ye({},d.params,f.params),_=h.stringify(x)}const R=[];let b=h;for(;b;)R.unshift(b.record),b=b.parent;return{name:A,path:_,params:x,matched:R,meta:_d(R)}}e.forEach(f=>r(f));function u(){n.length=0,s.clear()}return{addRoute:r,resolve:a,removeRoute:l,clearRoutes:u,getRoutes:i,getRecordMatcher:o}}function pl(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function hl(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:vd(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function vd(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function gl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function _d(e){return e.reduce((t,n)=>ye(t,n.meta),{})}function ml(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function yd(e,t){let n=0,s=t.length;for(;n!==s;){const r=n+s>>1;yc(e,t[r])<0?s=r:n=r+1}const o=bd(e);return o&&(s=t.lastIndexOf(o,s-1)),s}function bd(e){let t=e;for(;t=t.parent;)if(bc(t)&&yc(e,t)===0)return t}function bc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function wd(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<s.length;++o){const r=s[o].replace(fc," "),l=r.indexOf("="),i=es(l<0?r:r.slice(0,l)),c=l<0?null:es(r.slice(l+1));if(i in t){let a=t[i];dt(a)||(a=t[i]=[a]),a.push(c)}else t[i]=c}return t}function vl(e){let t="";for(let n in e){const s=e[n];if(n=Bf(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(dt(s)?s.map(r=>r&&Io(r)):[s&&Io(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Cd(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=dt(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const xd=Symbol(""),_l=Symbol(""),Us=Symbol(""),wc=Symbol(""),Po=Symbol("");function In(){let e=[];function t(s){return e.push(s),()=>{const o=e.indexOf(s);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Vt(e,t,n,s,o,r=l=>l()){const l=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((i,c)=>{const a=d=>{d===!1?c(Sn(4,{from:n,to:t})):d instanceof Error?c(d):id(d)?c(Sn(2,{from:t,to:d})):(l&&s.enterCallbacks[o]===l&&typeof d=="function"&&l.push(d),i())},u=r(()=>e.call(s&&s.instances[o],t,n,a));let f=Promise.resolve(u);e.length<3&&(f=f.then(a)),f.catch(d=>c(d))})}function fo(e,t,n,s,o=r=>r()){const r=[];for(const l of e)for(const i in l.components){let c=l.components[i];if(!(t!=="beforeRouteEnter"&&!l.instances[i]))if(uc(c)){const u=(c.__vccOpts||c)[t];u&&r.push(Vt(u,n,s,l,i,o))}else{let a=c();r.push(()=>a.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${i}" at "${l.path}"`);const f=If(u)?u.default:u;l.mods[i]=u,l.components[i]=f;const h=(f.__vccOpts||f)[t];return h&&Vt(h,n,s,l,i,o)()}))}}return r}function yl(e){const t=ke(Us),n=ke(wc),s=ve(()=>{const c=M(e.to);return t.resolve(c)}),o=ve(()=>{const{matched:c}=s.value,{length:a}=c,u=c[a-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(xn.bind(null,u));if(d>-1)return d;const h=bl(c[a-2]);return a>1&&bl(u)===h&&f[f.length-1].path!==h?f.findIndex(xn.bind(null,c[a-2])):d}),r=ve(()=>o.value>-1&&Md(n.params,s.value.params)),l=ve(()=>o.value>-1&&o.value===n.matched.length-1&&gc(n.params,s.value.params));function i(c={}){if(Rd(c)){const a=t[M(e.replace)?"replace":"push"](M(e.to)).catch(Bn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>a),a}return Promise.resolve()}return{route:s,href:ve(()=>s.value.href),isActive:r,isExactActive:l,navigate:i}}function Sd(e){return e.length===1?e[0]:e}const kd=_e({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"},viewTransition:Boolean},useLink:yl,setup(e,{slots:t}){const n=Tt(yl(e)),{options:s}=ke(Us),o=ve(()=>({[wl(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[wl(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&Sd(t.default(n));return e.custom?r:rn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),Ed=kd;function Rd(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 Md(e,t){for(const n in t){const s=t[n],o=e[n];if(typeof s=="string"){if(s!==o)return!1}else if(!dt(o)||o.length!==s.length||s.some((r,l)=>r!==o[l]))return!1}return!0}function bl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const wl=(e,t,n)=>e??t??n,Id=_e({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=ke(Po),o=ve(()=>e.route||s.value),r=ke(_l,0),l=ve(()=>{let a=M(r);const{matched:u}=o.value;let f;for(;(f=u[a])&&!f.components;)a++;return a}),i=ve(()=>o.value.matched[l.value]);Je(_l,ve(()=>l.value+1)),Je(xd,i),Je(Po,o);const c=re();return zt(()=>[c.value,i.value,e.name],([a,u,f],[d,h,x])=>{u&&(u.instances[f]=a,h&&h!==u&&a&&a===d&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),a&&u&&(!h||!xn(u,h)||!d)&&(u.enterCallbacks[f]||[]).forEach(_=>_(a))},{flush:"post"}),()=>{const a=o.value,u=e.name,f=i.value,d=f&&f.components[u];if(!d)return Cl(n.default,{Component:d,route:a});const h=f.props[u],x=h?h===!0?a.params:typeof h=="function"?h(a):h:null,A=rn(d,ye({},x,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(f.instances[u]=null)},ref:c}));return Cl(n.default,{Component:A,route:a})||A}}});function Cl(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Cc=Id;function Ad(e){const t=md(e.routes,e),n=e.parseQuery||wd,s=e.stringifyQuery||vl,o=e.history,r=In(),l=In(),i=In(),c=Fs(Dt);let a=Dt;pn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=uo.bind(null,y=>""+y),f=uo.bind(null,jf),d=uo.bind(null,es);function h(y,K){let B,W;return vc(y)?(B=t.getRecordMatcher(y),W=K):W=y,t.addRoute(W,B)}function x(y){const K=t.getRecordMatcher(y);K&&t.removeRoute(K)}function _(){return t.getRoutes().map(y=>y.record)}function A(y){return!!t.getRecordMatcher(y)}function R(y,K){if(K=ye({},K||c.value),typeof y=="string"){const g=ao(n,y,K.path),k=t.resolve({path:g.path},K),P=o.createHref(g.fullPath);return ye(g,k,{params:d(k.params),hash:es(g.hash),redirectedFrom:void 0,href:P})}let B;if(y.path!=null)B=ye({},y,{path:ao(n,y.path,K.path).path});else{const g=ye({},y.params);for(const k in g)g[k]==null&&delete g[k];B=ye({},y,{params:f(g)}),K.params=f(K.params)}const W=t.resolve(B,K),de=y.hash||"";W.params=u(d(W.params));const xe=Uf(s,ye({},y,{hash:Hf(de),path:W.path})),p=o.createHref(xe);return ye({fullPath:xe,hash:de,query:s===vl?Cd(y.query):y.query||{}},W,{redirectedFrom:void 0,href:p})}function b(y){return typeof y=="string"?ao(n,y,c.value.path):ye({},y)}function m(y,K){if(a!==y)return Sn(8,{from:K,to:y})}function v(y){return E(y)}function S(y){return v(ye(b(y),{replace:!0}))}function C(y){const K=y.matched[y.matched.length-1];if(K&&K.redirect){const{redirect:B}=K;let W=typeof B=="function"?B(y):B;return typeof W=="string"&&(W=W.includes("?")||W.includes("#")?W=b(W):{path:W},W.params={}),ye({query:y.query,hash:y.hash,params:W.path!=null?{}:y.params},W)}}function E(y,K){const B=a=R(y),W=c.value,de=y.state,xe=y.force,p=y.replace===!0,g=C(B);if(g)return E(ye(b(g),{state:typeof g=="object"?ye({},de,g.state):de,force:xe,replace:p}),K||B);const k=B;k.redirectedFrom=K;let P;return!xe&&Kf(s,W,B)&&(P=Sn(16,{to:k,from:W}),fe(W,W,!0,!1)),(P?Promise.resolve(P):F(k,W)).catch(I=>kt(I)?kt(I,2)?I:Ne(I):ae(I,k,W)).then(I=>{if(I){if(kt(I,2))return E(ye({replace:p},b(I.to),{state:typeof I.to=="object"?ye({},de,I.to.state):de,force:xe}),K||k)}else I=H(k,W,!0,p,de);return q(k,W,I),I})}function L(y,K){const B=m(y,K);return B?Promise.reject(B):Promise.resolve()}function w(y){const K=G.values().next().value;return K&&typeof K.runWithContext=="function"?K.runWithContext(y):y()}function F(y,K){let B;const[W,de,xe]=Pd(y,K);B=fo(W.reverse(),"beforeRouteLeave",y,K);for(const g of W)g.leaveGuards.forEach(k=>{B.push(Vt(k,y,K))});const p=L.bind(null,y,K);return B.push(p),Q(B).then(()=>{B=[];for(const g of r.list())B.push(Vt(g,y,K));return B.push(p),Q(B)}).then(()=>{B=fo(de,"beforeRouteUpdate",y,K);for(const g of de)g.updateGuards.forEach(k=>{B.push(Vt(k,y,K))});return B.push(p),Q(B)}).then(()=>{B=[];for(const g of xe)if(g.beforeEnter)if(dt(g.beforeEnter))for(const k of g.beforeEnter)B.push(Vt(k,y,K));else B.push(Vt(g.beforeEnter,y,K));return B.push(p),Q(B)}).then(()=>(y.matched.forEach(g=>g.enterCallbacks={}),B=fo(xe,"beforeRouteEnter",y,K,w),B.push(p),Q(B))).then(()=>{B=[];for(const g of l.list())B.push(Vt(g,y,K));return B.push(p),Q(B)}).catch(g=>kt(g,8)?g:Promise.reject(g))}function q(y,K,B){i.list().forEach(W=>w(()=>W(y,K,B)))}function H(y,K,B,W,de){const xe=m(y,K);if(xe)return xe;const p=K===Dt,g=pn?history.state:{};B&&(W||p?o.replace(y.fullPath,ye({scroll:p&&g&&g.scroll},de)):o.push(y.fullPath,de)),c.value=y,fe(y,K,B,p),Ne()}let Z;function J(){Z||(Z=o.listen((y,K,B)=>{if(!O.listening)return;const W=R(y),de=C(W);if(de){E(ye(de,{replace:!0,force:!0}),W).catch(Bn);return}a=W;const xe=c.value;pn&&ed(cl(xe.fullPath,B.delta),zs()),F(W,xe).catch(p=>kt(p,12)?p:kt(p,2)?(E(ye(b(p.to),{force:!0}),W).then(g=>{kt(g,20)&&!B.delta&&B.type===ts.pop&&o.go(-1,!1)}).catch(Bn),Promise.reject()):(B.delta&&o.go(-B.delta,!1),ae(p,W,xe))).then(p=>{p=p||H(W,xe,!1),p&&(B.delta&&!kt(p,8)?o.go(-B.delta,!1):B.type===ts.pop&&kt(p,20)&&o.go(-1,!1)),q(W,xe,p)}).catch(Bn)}))}let ce=In(),ie=In(),ee;function ae(y,K,B){Ne(y);const W=ie.list();return W.length?W.forEach(de=>de(y,K,B)):console.error(y),Promise.reject(y)}function Oe(){return ee&&c.value!==Dt?Promise.resolve():new Promise((y,K)=>{ce.add([y,K])})}function Ne(y){return ee||(ee=!y,J(),ce.list().forEach(([K,B])=>y?B(y):K()),ce.reset()),y}function fe(y,K,B,W){const{scrollBehavior:de}=e;if(!pn||!de)return Promise.resolve();const xe=!B&&td(cl(y.fullPath,0))||(W||!B)&&history.state&&history.state.scroll||null;return Ze().then(()=>de(y,K,xe)).then(p=>p&&Qf(p)).catch(p=>ae(p,y,K))}const $e=y=>o.go(y);let lt;const G=new Set,O={currentRoute:c,listening:!0,addRoute:h,removeRoute:x,clearRoutes:t.clearRoutes,hasRoute:A,getRoutes:_,resolve:R,options:e,push:v,replace:S,go:$e,back:()=>$e(-1),forward:()=>$e(1),beforeEach:r.add,beforeResolve:l.add,afterEach:i.add,onError:ie.add,isReady:Oe,install(y){const K=this;y.component("RouterLink",Ed),y.component("RouterView",Cc),y.config.globalProperties.$router=K,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>M(c)}),pn&&!lt&&c.value===Dt&&(lt=!0,v(o.location).catch(de=>{}));const B={};for(const de in Dt)Object.defineProperty(B,de,{get:()=>c.value[de],enumerable:!0});y.provide(Us,K),y.provide(wc,li(B)),y.provide(Po,c);const W=y.unmount;G.add(y),y.unmount=function(){G.delete(y),G.size<1&&(a=Dt,Z&&Z(),Z=null,c.value=Dt,lt=!1,ee=!1),W()}}};function Q(y){return y.reduce((K,B)=>K.then(()=>w(B)),Promise.resolve())}return O}function Pd(e,t){const n=[],s=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let l=0;l<r;l++){const i=t.matched[l];i&&(e.matched.find(a=>xn(a,i))?s.push(i):n.push(i));const c=e.matched[l];c&&(t.matched.find(a=>xn(a,c))||o.push(c))}return[n,s,o]}function or(){return ke(Us)}function xc(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 Td(e){const t=new Date(e*1e3),n=new Date,s=t.getTime()-n.getTime(),o=Math.abs(s),r=new Intl.RelativeTimeFormat("en",{numeric:"auto"});if(o<=5e3)return"now";if(o<=6e4)return r.format(Math.round(s/1e3),"second").replace(" ago","").replaceAll(" "," ");if(o<=36e5)return r.format(Math.round(s/6e4),"minute").replace("utes","").replace("ute","").replaceAll(" "," ");if(o<=864e5)return r.format(Math.round(s/36e5),"hour").replaceAll(" "," ");if(o<=6048e5)return r.format(Math.round(s/864e5),"day").replaceAll(" "," ");let l=t.toLocaleDateString("en-ie",{weekday:"short",year:"numeric",month:"short",day:"numeric"}).replace("Sept","Sep");return l.length===14&&(l=l.replace(" ","  ")),l=l.replaceAll(" "," ").replace(" "," "),l=l.slice(0,-4)+l.slice(-2),l}const ns=new Intl.Collator("en",{sensitivity:"base",numeric:!0,usage:"search"});function Od(e){return"^"+e.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase()+"$"}function $d(e){const t=e.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase();return{based:t,words:t.split(/\s+/)}}function Ld(e,t){const{based:n,words:s}=t;return e.includes(n)||s&&s.every(o=>e.includes(o))}class rr{constructor(t={}){Ct(this,"_name","");Ct(this,"loc","");Ct(this,"key","");Ct(this,"size",0);Ct(this,"mtime",0);Ct(this,"haystack","");Ct(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=Od(t)}get sizedisp(){return xc(this.size)}get modified(){return Td(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(){return this.dir?!1:["jpg","jpeg","png","gif","webp","avif","heic","heif","svg"].includes(this.ext)}get previewable(){return this.dir?!1:this.img?!0:["mp4","mkv","webm","ogg","mp3","flac","aac","pdf"].includes(this.ext)}get previewurl(){return this.url.replace(/^\/files/,"/preview")}get ext(){const t=this.name.lastIndexOf(".");return t===-1||t===this.name.length-1?"":this.name.slice(t+1).toLowerCase()}}class Dd{async post(t,n){const s=await fetch(t,{method:"POST",headers:{accept:"application/json","content-type":"application/json"},body:n!==void 0?JSON.stringify(n):void 0});let o;try{o=await s.json()}catch{throw new xl(s.status,`🛑 ${s.status} ${s.statusText}`)}if("error"in o)throw new xl(o.error.code,o.error.message);return o}}const lr=new Dd;class xl extends Error{constructor(n,s){super(s);Ct(this,"code");this.code=n}}const Fd="/login",Nd="/logout",Hd="/password-change";async function Bd(e,t){return await lr.post(Fd,{username:e,password:t})}async function Vd(){return await lr.post(Nd)}async function jd(e,t,n){return await lr.post(Hd,{username:e,passwordChange:t,password:n})}const ss="/api/control",Wd="/api/upload",zd="/api/watch";let yt=[],bs=500,jn=null;const Ud=()=>{const e=localStorage["cista-files"];if(!e)return!1;const t=Te();try{return yt=JSON.parse(e),t.updateRoot(yt),console.log(`Loaded session with ${yt.length} items cached`),!0}catch(n){return console.log("Loading session failed",n),!1}},Sc=()=>{localStorage["cista-files"]=JSON.stringify(yt)},ln=(e,t)=>{const n=new WebSocket(new URL(e,location.origin.replace(/^http/,"ws")));for(const[s,o]of Object.entries(t))n.addEventListener(s,o);return n},ir=()=>{nn!==null&&(clearTimeout(nn),nn=null);const e=Te();e.error!=="Reconnecting..."&&(e.error="Connecting..."),console.log(e.error),jn=ln(zd,{message:qd,close:kc}),jn.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,bs=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"))})},Kd=()=>{jn&&(jn.close(),jn=null)};let nn=null;const kc=e=>{const t=Te();if(t.connected&&(console.warn("Disconnected from server",e),t.connected=!1,t.error="Reconnecting..."),nn!==null&&clearTimeout(nn),t.dialog==="login"){nn=setTimeout(kc,100);return}bs=Math.min(5e3,bs+500),nn=setTimeout(ir,bs)},qd=e=>{const t=JSON.parse(e.data);switch(!0){case!!t.root:Gd(t);break;case!!t.update:Jd(t);break;case!!t.space:console.log("Watch space",t.space);break;case!!t.error:Yd(t);break}};function Gd({root:e}){const t=Te();console.log("Watch root",e),t.updateRoot(e),yt=e,Sc()}function Jd(e){const t=Te(),n=e.update;if(console.log("Watch update",n),!yt)return console.error("Watch update before root");let s=[],o=0;for(const[r,l]of n)r==="k"?(s.push(...yt.slice(o,o+l)),o+=l):r==="d"?o+=l:r==="i"?s.push(...l):console.log("Unknown update action",r,l);if(o!=yt.length)throw Error(`Tree update out of sync, number of entries mismatch: got ${o}, expected ${yt.length}, new tree ${s.length}`);t.updateRoot(s),yt=s,Sc()}function Yd(e){const t=Te();if(e.error.code===401){t.user.isLoggedIn=!1,t.dialog="login";return}}const Zd={name:(e,t)=>ns.compare(e.name,t.name),modified:(e,t)=>t.mtime-e.mtime,size:(e,t)=>t.size-e.size},To=(e,t)=>{if(!t)return e;const n=[...e];return n.sort(Zd[t]),n},Te=_f({id:"main",state:()=>({document:Fs([]),selected:new Set([]),query:"",fileExplorer:null,error:"",connected:!1,cursor:"",server:{},dialog:"",uprogress:{},dprogress:{},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[s,o,r,l,i,c]of e)n=n.slice(0,s-1),t.push(new rr({name:o,loc:s?n.join("/"):"/",key:r,size:i,mtime:l,dir:!c})),n.push(o);this.document=t},login(e,t){this.user.username=e,this.user.privileged=t,this.user.isLoggedIn=!0,this.dialog="",this.connected||ir()},loginDialog(){this.dialog="login"},async logout(){console.log("Logout"),await Vd(),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()},cancelDownloads(){location.reload()},cancelUploads(){location.reload()}},getters:{sortOrder(){return this.query?this.prefs.sortFiltered:this.prefs.sortListing},isUserLogged(){return this.user.isLoggedIn},recentDocuments(){return To(this.document,"modified")},selectedFiles(){const e=this.selected,t=new Set,n={missing:new Set,docs:{},keys:[],recursive:[]};for(const r of this.document)e.has(r.key)&&(t.add(r.key),n.keys.push(r.key),n.docs[r.key]=r);for(const r of e)t.has(r)||n.missing.add(r);const s=new Set;function o(r,l,i){if(!i.dir&&s.has(r))throw Error(`Multiple selections conflict for: ${r}`);s.add(r),n.recursive.push([r,l,i])}for(const r of n.keys){const l=n.docs[r],i=l.loc?`${l.loc}/${l.name}`:l.name,c=l.loc.length;o(l.name,i,l);for(const a of this.document)if(a.loc===i||a.loc.startsWith(i)&&a.loc[i.length]==="/"){const u=a.loc?`${a.loc}/${a.name}`:a.name,f=u.slice(c);o(f,u,a)}}return n.recursive.sort((r,l)=>ns.compare(r[0],l[0])),n}}}),Ec=e=>{const t=Te(),n=e.join("/");return t.document.some(s=>(s.loc?`${s.loc}/${s.name}`:s.name)===n)},Xd=["aria-current"],Qd=["href","aria-current","onClick","title"],cr=_e({__name:"BreadCrumb",props:{path:{},primary:{type:Boolean}},setup(e){const t=or(),n=[],s=(u,f)=>{f&&(n[u]=f)};Ei(()=>{n.length=1});const o=e,r=re([]),l=u=>u==o.path.length?"location":void 0,i=()=>{Ze(()=>{const u=o.path.length;u<n.length&&n[u].focus()})},c=u=>{if(!n[u])throw Error(`No link at index ${u} (path: ${o.path})`);const d=u?`/${r.value.slice(0,u).join("/")}/`:"/",h=r.value.length?`/${r.value.join("/")}/`:"/",x=decodeURIComponent(location.hash.slice(1).split("//")[0]),_=d.replaceAll("?","%3F").replaceAll("#","%23");l(u)?(r.value.splice(u),t.push(_)):h.startsWith(x)?t.replace(_):t.push(_)},a=u=>{const f=o.path.length+u;f<0||f>r.value.length||c(f)};return Ot(()=>{const u=r.value.slice(0,o.path.length);if(!u.every((d,h)=>d===o.path[h]))r.value=o.path;else if(o.path.length>u.length)r.value=u.concat(o.path.slice(u.length));else for(let d=o.path.length;d<r.value.length;++d)if(!Ec(r.value.slice(0,d+1))){r.value=r.value.slice(0,d);break}o.primary&&Ze(()=>{const d=document.activeElement;(!d||[...n,document.body].includes(d))&&i()})}),(u,f)=>($(),Y("nav",{class:"breadcrumb","aria-label":"Breadcrumb",onKeydown:[f[1]||(f[1]=yn(Ve(d=>a(-1),["stop"]),["left"])),f[2]||(f[2]=yn(Ve(d=>a(1),["stop"]),["right"]))],onKeyup:f[3]||(f[3]=yn(d=>a(0),["enter"])),onFocus:i,tabindex:"0"},[N("a",{href:"#/",ref:d=>s(0,d),class:De(["home",{current:!!l(0)}]),"aria-current":l(0),onClick:f[0]||(f[0]=Ve(d=>c(0),["prevent"])),title:"/"},[($(),he(Jo(M(cc))))],10,Xd),($(!0),Y(Ce,null,cs(r.value,(d,h)=>($(),Y("a",{key:h,href:`/#/${r.value.slice(0,h+1).join("/")}/`,class:De({current:!!l(h+1)}),"aria-current":l(h+1),onClick:Ve(x=>c(h+1),["prevent"]),ref_for:!0,ref:x=>s(h+1,x),title:`/${r.value.slice(0,h+1).join("/")}`},Ae(d),11,Qd))),128))],32))}});const ep="modulepreload",tp=function(e){return"/"+e},Sl={},te=function(t,n,s){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=tp(r),r in Sl)return;Sl[r]=!0;const l=r.endsWith(".css"),i=l?'[rel="stylesheet"]':"";if(!!s)for(let u=o.length-1;u>=0;u--){const f=o[u];if(f.href===r&&(!l||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${i}`))return;const a=document.createElement("link");if(a.rel=l?"stylesheet":ep,l||(a.as="script",a.crossOrigin=""),a.href=r,document.head.appendChild(a),l)return new Promise((u,f)=>{a.addEventListener("load",u),a.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t()).catch(r=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=r,window.dispatchEvent(l),!l.defaultPrevented)throw r})},np=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((s,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t)))})},sp={class:"action-button"},Ks=_e({__name:"SvgButton",props:{name:{}},setup(e){const t=e,n=Tu(()=>np(Object.assign({"../assets/svg/add-file.svg":()=>te(()=>import("./add-file-6a41e251.js"),[]),"../assets/svg/add-folder.svg":()=>te(()=>import("./add-folder-62d934ef.js"),[]),"../assets/svg/arrow.svg":()=>te(()=>import("./arrow-a3a583f8.js"),[]),"../assets/svg/arrows-h.svg":()=>te(()=>import("./arrows-h-d9e36082.js"),[]),"../assets/svg/arrows-v.svg":()=>te(()=>import("./arrows-v-5223491a.js"),[]),"../assets/svg/check.svg":()=>te(()=>import("./check-f7566407.js"),[]),"../assets/svg/code.svg":()=>te(()=>import("./code-8e0123d4.js"),[]),"../assets/svg/cog.svg":()=>te(()=>Promise.resolve().then(()=>jp),void 0),"../assets/svg/copy.svg":()=>te(()=>import("./copy-a70a3d1c.js"),[]),"../assets/svg/create-file.svg":()=>te(()=>import("./create-file-d995875e.js"),[]),"../assets/svg/create-folder.svg":()=>te(()=>import("./create-folder-c448deda.js"),[]),"../assets/svg/cross.svg":()=>te(()=>import("./cross-e74ed6f4.js"),[]),"../assets/svg/disk.svg":()=>te(()=>import("./disk-f1376321.js"),[]),"../assets/svg/download.svg":()=>te(()=>import("./download-bad67930.js"),[]),"../assets/svg/exclamation.svg":()=>te(()=>import("./exclamation-afec06bb.js"),[]),"../assets/svg/eye.svg":()=>te(()=>import("./eye-5fde34a1.js"),[]),"../assets/svg/find.svg":()=>te(()=>import("./find-11711648.js"),[]),"../assets/svg/fullscreen.svg":()=>te(()=>import("./fullscreen-7f61e522.js"),[]),"../assets/svg/github.svg":()=>te(()=>import("./github-c9475017.js"),[]),"../assets/svg/home.svg":()=>te(()=>Promise.resolve().then(()=>Mf),void 0),"../assets/svg/info.svg":()=>te(()=>import("./info-b3d76e57.js"),[]),"../assets/svg/link.svg":()=>te(()=>import("./link-5cd893e4.js"),[]),"../assets/svg/logo.svg":()=>te(()=>import("./logo-6090454d.js"),[]),"../assets/svg/loop.svg":()=>te(()=>import("./loop-531f6994.js"),[]),"../assets/svg/menu.svg":()=>te(()=>import("./menu-ed0d8c47.js"),[]),"../assets/svg/next.svg":()=>te(()=>import("./next-ee82241a.js"),[]),"../assets/svg/open.svg":()=>te(()=>import("./open-8364df82.js"),[]),"../assets/svg/paste.svg":()=>te(()=>import("./paste-0f86e193.js"),[]),"../assets/svg/pause.svg":()=>te(()=>import("./pause-a2dd4670.js"),[]),"../assets/svg/pencil.svg":()=>te(()=>import("./pencil-bfd02151.js"),[]),"../assets/svg/play.svg":()=>te(()=>import("./play-83e40a03.js"),[]),"../assets/svg/plus.svg":()=>te(()=>import("./plus-f463cfbc.js"),[]),"../assets/svg/previous.svg":()=>te(()=>import("./previous-cbb778b5.js"),[]),"../assets/svg/reload.svg":()=>te(()=>import("./reload-907eb866.js"),[]),"../assets/svg/rename.svg":()=>te(()=>import("./rename-51dadde6.js"),[]),"../assets/svg/scissors.svg":()=>te(()=>import("./scissors-d32350cc.js"),[]),"../assets/svg/shuffle.svg":()=>te(()=>import("./shuffle-00a003ad.js"),[]),"../assets/svg/signin.svg":()=>te(()=>import("./signin-d7bd57fd.js"),[]),"../assets/svg/signout.svg":()=>te(()=>import("./signout-4c4ff7fb.js"),[]),"../assets/svg/skip.svg":()=>te(()=>import("./skip-0069d8d7.js"),[]),"../assets/svg/spinner.svg":()=>te(()=>import("./spinner-164c9b34.js"),[]),"../assets/svg/stop.svg":()=>te(()=>import("./stop-3717c27d.js"),[]),"../assets/svg/trash.svg":()=>te(()=>import("./trash-449f81ef.js"),[]),"../assets/svg/triangle.svg":()=>te(()=>import("./triangle-3ecaf29c.js"),[]),"../assets/svg/unfullscreen.svg":()=>te(()=>import("./unfullscreen-175d46cd.js"),[]),"../assets/svg/up-arrow.svg":()=>te(()=>import("./up-arrow-164a366e.js"),[]),"../assets/svg/upload-cloud.svg":()=>te(()=>import("./upload-cloud-df377f1a.js"),[]),"../assets/svg/user-cog.svg":()=>te(()=>import("./user-cog-27e2c201.js"),[]),"../assets/svg/user.svg":()=>te(()=>import("./user-3b5a32bc.js"),[]),"../assets/svg/volume-high.svg":()=>te(()=>import("./volume-high-f4e07edd.js"),[]),"../assets/svg/volume-low.svg":()=>te(()=>import("./volume-low-f754322d.js"),[]),"../assets/svg/volume-medium.svg":()=>te(()=>import("./volume-medium-a5806088.js"),[]),"../assets/svg/volume-mute.svg":()=>te(()=>import("./volume-mute-405763b1.js"),[]),"../assets/svg/window-cross.svg":()=>te(()=>import("./window-cross-86cb8236.js"),[]),"../assets/svg/window.svg":()=>te(()=>import("./window-d99968ac.js"),[]),"../assets/svg/wordwrap.svg":()=>te(()=>import("./wordwrap-cdcd3f93.js"),[]),"../assets/svg/zoomin.svg":()=>te(()=>import("./zoomin-7d13bb9b.js"),[]),"../assets/svg/zoomout.svg":()=>te(()=>import("./zoomout-daf52018.js"),[])}),`../assets/svg/${t.name}.svg`));return(s,o)=>($(),Y("button",sp,[($(),he(Jo(M(n)))),Fe(s.$slots,"default")]))}});const op=_e({__name:"UploadButton",props:{path:Array},setup(e){const t=re(),n=re(),s=Te(),o=e;function r(v){var L;const S=Array.from(((L=v.clipboardData)==null?void 0:L.items)??[]),C=[],E=[];for(const w of S){if(w.kind!=="file")continue;const F=w.webkitGetAsEntry();if(F!=null&&F.isFile){const q=w.getAsFile();q&&C.push(q)}else F!=null&&F.isDirectory&&E.push(F)}if(C.length||E.length){v.preventDefault(),c(C);for(const w of E)l(w,`${o.path.join("/")}/${w.name}`)}}const l=async(v,S)=>{const C=v.createReader(),E=await new Promise(w=>C.readEntries(w)),L=[];for(const w of E){const F=`${S}/${w.name}`;if(w.isFile){const q=await new Promise(H=>w.file(H));L.push({file:q,cloudName:F,cloudPos:0})}else w.isDirectory&&await l(w,F)}L.length&&a(L)};function i(v){var E;v.preventDefault();const S=v.target,C=Array.from(((E=S??v.dataTransfer)==null?void 0:E.files)??[]);S&&(S.value=""),C.length&&c(C)}const c=v=>{const S=o.path.join("/");let C=[];for(const E of v)C.push({file:E,cloudName:S+"/"+(E.webkitRelativePath||E.name),cloudPos:0});a(C)},a=v=>{const S=v.filter(C=>C.cloudName.includes("/."));S.length&&(s.error="Won't upload dotfiles",console.log("Dotfiles omitted",S),v=v.filter(C=>!C.cloudName.includes("/."))),v.length&&(v.sort((C,E)=>ns.compare(C.cloudName,E.cloudName)),_=[..._,...v],x(v),m())},u={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"};s.uprogress={...u},setInterval(()=>{Date.now()-s.uprogress.tlast>3e3?(s.uprogress.statbytes=0,s.uprogress.statdur=1):(s.uprogress.statbytes*=.9,s.uprogress.statdur*=.9)},100);const f=({name:v,size:S,start:C,end:E})=>{if(v!==s.uprogress.filename)return;const L=Date.now();s.uprogress.xfer=s.uprogress.filestart+E,s.uprogress.filepos=E,s.uprogress.statbytes+=E-C,s.uprogress.statdur+=L-s.uprogress.tlast,s.uprogress.tlast=L,E===S&&(s.uprogress.filestart+=S,d(),++s.uprogress.fileidx>=s.uprogress.filecount&&h())},d=()=>{const v=s.uprogress.files.shift();if(!v)return h();s.uprogress.filepos=0,s.uprogress.filesize=v.file.size,s.uprogress.filename=v.cloudName},h=()=>{Object.assign(s.uprogress,u),s.uprogress.t0=Date.now(),s.uprogress.tlast=s.uprogress.t0+1},x=v=>{s.uprogress.files.length===0&&h(),s.uprogress.total+=v.reduce((S,C)=>S+C.file.size,0),s.uprogress.filecount+=v.length,s.uprogress.files=[...s.uprogress.files,...v],d()};let _=[];const A=async()=>await new Promise(v=>{const S=ln(Wd,{open(C){v(S)},error(C){console.error("Upload socket error",C),s.error="Upload socket error"},message(C){const E=JSON.parse(C.data);if("error"in E){console.error("Upload socket error",E.error),s.error=E.error.message;return}E.status==="ack"?f(E.req):console.log("Unknown upload response",E)}});S.sendMsg=C=>S.send(JSON.stringify(C)),S.sendData=async C=>{s.uprogress.status="uploading",await new Promise(E=>{const L=setInterval(()=>{S.bufferedAmount>1048576||(E(void 0),clearInterval(L))},1)}),s.uprogress.status="processing",S.send(C)}}),R=async()=>{const v=await A();for(;_.length;){const S=_[0],C=S.cloudPos,E=Math.min(S.file.size,C+(1<<20)),L={name:S.cloudName,size:S.file.size,start:C,end:E},w=S.file.slice(C,E);S.cloudPos=E,v.sendMsg(L),await v.sendData(w),S.cloudPos===S.file.size&&_.shift()}_.length&&m(),s.uprogress.status="idle",b=!1};let b=!1;const m=()=>{b===!1&&(b=setTimeout(()=>{b=!0,R()},0))};return nt(()=>{addEventListener("dragover",i),addEventListener("drop",i),addEventListener("paste",r)}),wn(()=>{removeEventListener("paste",r),removeEventListener("dragover",i),removeEventListener("drop",i)}),(v,S)=>{const C=Ks;return $(),Y(Ce,null,[N("template",null,[N("input",{ref_key:"fileInput",ref:t,onChange:i,type:"file",multiple:""},null,544),N("input",{ref_key:"folderInput",ref:n,onChange:i,type:"file",webkitdirectory:""},null,544)]),le(C,{name:"add-file","data-tooltip":"Upload files",onClick:S[0]||(S[0]=E=>t.value.click())}),le(C,{name:"add-folder","data-tooltip":"Upload folder",onClick:S[1]||(S[1]=E=>n.value.click())})],64)}}});let Ut=null;function rp(){return Ut!==null}function lp(e){Ut&&Rc(),Ut=e}function kl(e){e===Ut&&(Ut=null)}function Rc(){Ut&&(Ut.closeMenu(),Ut=null)}const bt={defaultDirection:"br",defaultMinWidth:100,defaultMaxWidth:600,defaultZindex:100,defaultZoom:1,defaultAdjustPadding:{x:0,y:10}};function Wn(e,t){let n=e.offsetTop;return e.offsetParent!=null&&e.offsetParent!=t&&(n-=e.offsetParent.scrollTop,n+=Wn(e.offsetParent,t)),n}function zn(e,t){let n=e.offsetLeft;return e.offsetParent!=null&&e.offsetParent!=t&&(n-=e.offsetParent.scrollLeft,n+=zn(e.offsetParent,t)),n}function ip(e,t,n,s){return{x:zn(e,s)+t,y:Wn(e,s)+n}}const po="mx-menu-default-container",cp="mx-menu-container-";let up=0;function Mc(e){const{getContainer:t,zIndex:n}=e;if(t){const o=typeof t=="function"?t():t;if(o){let r=o.getAttribute("id");return r||(r=cp+up++,o.setAttribute("id",r)),{eleId:r,container:o,isNew:!1}}}let s=document.getElementById(po);return s||(s=document.createElement("div"),s.setAttribute("id",po),s.setAttribute("class","mx-menu-ghost-host fullscreen"),document.body.appendChild(s)),s.style.zIndex=(n==null?void 0:n.toString())||bt.defaultZindex.toString(),{eleId:po,container:s,isNew:!0}}function ap(e){let t=0;for(let n=0;n<e.length;n++){const s=e.charCodeAt(n);t=(t<<5)-t+s,t|=0}return t}function El(e){return typeof e=="number"?`${e}px`:e}const mt=_e({props:{vnode:{type:null},data:{type:null,default:null}},setup(e){const{vnode:t,data:n}=un(e);return()=>typeof t.value=="function"?t.value(n.value):t.value}});function fp(e,t){const n={...e};return delete n[t],n}var dp=Object.defineProperty,pp=(e,t,n)=>t in e?dp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rl=(e,t,n)=>pp(e,typeof t!="symbol"?t+"":t,n);class Ml{constructor(t,n){Rl(this,"x",0),Rl(this,"y",0),this.x=t||0,this.y=n||0}set(t,n){this.x=t,this.y=n}substract(t){this.x-=t.x,this.y-=t.y}}function Il(e){const{onDown:t,onMove:n,onUp:s}=e,o=new Ml,r=new Ml;let l;function i(a){a.stopPropagation(),r.set(a.x,a.y),r.substract(o),n(o,r,a,l)}function c(a){s(a,l),o.set(0,0),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c)}return(a,u)=>t(a,u)?(l=u,o.set(a.x,a.y),document.addEventListener("mousemove",i),document.addEventListener("mouseup",c),a.stopPropagation(),!0):!1}function hp(e,t){let n=0;return{start(){n>0&&clearInterval(n),n=setInterval(()=>{n=0,t()},e)},stop(){n>0&&(clearInterval(n),n=0)}}}const Pn=[],Al=hp(100,()=>{for(const e of Pn)e()});function gp(e,t,n,s){let o=0,r=0;function l(){e.value&&(t&&o!==e.value.offsetWidth&&t(e.value.offsetWidth),n&&r!==e.value.offsetHeight&&n(e.value.offsetHeight),s&&(o!==e.value.offsetWidth||r!==e.value.offsetHeight)&&s(e.value.offsetWidth,e.value.offsetHeight),o=e.value.offsetWidth,r=e.value.offsetHeight)}return{startResizeChecker(){Al.start(),Pn.push(l)},stopResizeChecker(){const i=Pn.indexOf(l);i>=0&&Pn.splice(i,1),Pn.length===0&&Al.stop()}}}const Pl=140,mp=70,vp=_e({__name:"ScrollRect",props:{scroll:{type:String,default:"both"},scrollBarAlwaysShow:{type:Boolean,default:!1},scrollBarBackgroundClickable:{type:Boolean,default:!1},height:{type:Number,default:void 0},width:{type:Number,default:void 0},maxHeight:{type:Number,default:void 0},maxWidth:{type:Number,default:void 0},containerClass:{type:String,default:""},containerStyle:{type:null}},emits:["scroll","resized"],setup(e,{expose:t,emit:n}){const s=e,o=n,r=re(),l=re(),i=re(),c=re(),a=re(),u=re(),f=re(!1),d=ve(()=>s.scroll==="horizontal"||s.scroll==="both"),h=ve(()=>s.scroll==="vertical"||s.scroll==="both"),x=Tt({show:!1,size:0,sizeRaw:0,pos:0}),_=Tt({show:!1,size:0,sizeRaw:0,pos:0});let A=0,R=0,b=0,m=0,v=null;const S={attributes:!0,childList:!0};function C(){if(r.value){if(x.show){const O=r.value.offsetWidth/r.value.scrollWidth;x.sizeRaw=O*r.value.offsetWidth,x.size=O*100,x.pos=r.value.scrollLeft/(r.value.scrollWidth-r.value.offsetWidth)*(100-x.size),O>=1&&(x.show=!1)}if(_.show){const O=r.value.offsetHeight/r.value.scrollHeight;_.sizeRaw=O*r.value.offsetHeight,_.size=O*100,_.pos=r.value.scrollTop/(r.value.scrollHeight-r.value.offsetHeight)*(100-_.size),O>=1&&(_.show=!1)}o("scroll",r.value.scrollLeft,r.value.scrollTop)}}function E(O=!1){if(!r.value)return;let Q=d.value,y=h.value;const K=Q&&(A!==r.value.scrollWidth||b!==r.value.offsetWidth),B=h&&(R!==r.value.scrollHeight||m!==r.value.offsetHeight);if(!O&&!K&&!B)return;const W=window.getComputedStyle(r.value);(W.overflow==="hidden"||W.overflowX==="hidden")&&(Q=!1),(W.overflow==="hidden"||W.overflowY==="hidden")&&(y=!1),x.show=Q,_.show=y,C(),b=r.value.offsetWidth,m=r.value.offsetHeight,A=r.value.scrollWidth,R=r.value.scrollHeight,o("resized",A,R)}function L(O){var Q;s.scroll=="horizontal"&&(O.deltaMode==0&&((Q=r.value)==null||Q.scrollTo({left:r.value.scrollLeft+(O.deltaY>0?Pl:-140),behavior:"smooth"})),O.preventDefault(),O.stopPropagation())}function w(O){var Q;O.deltaMode==0&&((Q=r.value)==null||Q.scrollTo({left:r.value.scrollLeft+(O.deltaY>0?Pl:-140),behavior:"smooth"}),O.preventDefault(),O.stopPropagation())}function F(O){var Q;O.deltaMode==0&&((Q=r.value)==null||Q.scrollTo({top:r.value.scrollTop+(O.deltaY>0?mp:-70),behavior:"smooth"}),O.preventDefault(),O.stopPropagation())}let q=0,H=0,Z=0,J=0;const ce=Il({onDown(O){return!i.value||!a.value?!1:(q=O.offsetX,H=O.x-O.offsetX-a.value.offsetLeft,O.preventDefault(),f.value=!0,!0)},onMove(O,Q,y){r.value&&i.value&&(Oe(y.x-q-H),y.preventDefault(),y.stopPropagation())},onUp(){f.value=!1}}),ie=Il({onDown(O){return!c.value||!u.value?!1:(Z=O.offsetY,J=O.y-O.offsetY-u.value.offsetTop,O.preventDefault(),f.value=!0,!0)},onMove(O,Q,y){r.value&&c.value&&(Ne(y.y-Z-J),y.preventDefault(),y.stopPropagation())},onUp(){f.value=!1}});function ee(O){r.value&&(r.value.scrollLeft=O/100*(r.value.scrollWidth-r.value.offsetWidth))}function ae(O){r.value&&(r.value.scrollLeft=O/100*(r.value.scrollHeight-r.value.offsetHeight))}function Oe(O){r.value&&(r.value.scrollLeft=O/(r.value.offsetWidth-x.sizeRaw)*(r.value.scrollWidth-r.value.offsetWidth))}function Ne(O){r.value&&(r.value.scrollTop=O/(r.value.offsetHeight-_.sizeRaw)*(r.value.scrollHeight-r.value.offsetHeight))}function fe(O){s.scrollBarBackgroundClickable&&Oe(O.offsetX-x.sizeRaw/2)}function $e(O){s.scrollBarBackgroundClickable&&Ne(O.offsetY-_.sizeRaw/2)}const{startResizeChecker:lt,stopResizeChecker:G}=gp(r,()=>E(),()=>E());return nt(()=>{Ze(()=>{setTimeout(()=>E(!0),200),E(!0),lt(),v=new MutationObserver(()=>E()),v.observe(r.value,S)})}),kn(()=>{G(),v&&(v.disconnect(),v=null)}),t({refreshScrollState(){E(!0)},getScrollContainer(){return r.value},scrollTo(O,Q){var y;(y=r.value)==null||y.scrollTo(O,Q)},scrollToTop(){var O;(O=r.value)==null||O.scrollTo(0,0)},scrollToBottom(){var O;(O=r.value)==null||O.scrollTo(r.value.scrollWidth,r.value.scrollHeight)}}),(O,Q)=>($(),Y("div",{ref_key:"scrollrect",ref:l,class:De(["vue-scroll-rect",e.scrollBarAlwaysShow?"always-show-scrollbar":"",e.scrollBarBackgroundClickable?"background-clickable":"",f.value?"dragging":""]),style:It({width:e.width?`${e.width}px`:void 0,height:e.height?`${e.height}px`:void 0}),onWheel:L},[N("div",{ref_key:"container",ref:r,class:De(["scroll-content",e.scroll,e.containerClass]),style:It({maxWidth:e.maxWidth?`${e.maxWidth}px`:void 0,maxHeight:e.maxHeight?`${e.maxHeight}px`:void 0,...e.containerStyle}),onScroll:C},[Fe(O.$slots,"default")],38),x.show?Fe(O.$slots,"scrollBarX",{key:0,scrollBarValue:x,onScroll:ee},()=>[N("div",{ref_key:"scrollBarRefX",ref:i,class:"scrollbar horizontal",onClick:fe,onWheel:w},[N("div",{class:"thumb",ref_key:"scrollBarThumbRefX",ref:a,style:It({left:`${x.pos}%`,width:`${x.size}%`}),onMousedown:Q[0]||(Q[0]=(...y)=>M(ce)&&M(ce)(...y)),onWheel:w},null,36)],544)]):me("",!0),_.show?Fe(O.$slots,"scrollBarY",{key:1,scrollBarValue:_,onScroll:ae},()=>[_.show?($(),Y("div",{key:0,ref_key:"scrollBarRefY",ref:c,class:"scrollbar vertical",onClick:$e,onWheel:F},[N("div",{class:"thumb",ref_key:"scrollBarThumbRefY",ref:u,style:It({top:`${_.pos}%`,height:`${_.size}%`}),onMousedown:Q[1]||(Q[1]=(...y)=>M(ie)&&M(ie)(...y)),onWheel:F},null,36)],544)):me("",!0)]):me("",!0)],38))}}),ur=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},_p={},yp={class:"mx-checked-mark","aria-hidden":"true",viewBox:"0 0 1024 1024"},bp=N("path",{d:"M129.3,428.6L52,512l345,372.5l575-620.8l-69.5-75L400.4,718.2L129.3,428.6z"},null,-1),wp=[bp];function Cp(e,t){return $(),Y("svg",yp,wp)}const xp=ur(_p,[["render",Cp]]),Sp={},kp={class:"mx-right-arrow","aria-hidden":"true",viewBox:"0 0 1024 1024"},Ep=N("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),Rp=[Ep];function Mp(e,t){return $(),Y("svg",kp,Rp)}const Ip=ur(Sp,[["render",Mp]]),Ap={class:"mx-item-row"},Pp=["xlink:href"],Tp={key:1,class:"label"},Op={class:"mx-item-row"},$p={class:"mx-shortcut"},ar=_e({__name:"ContextMenuItem",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(e,{expose:t,emit:n}){const s=e,o=n,{clickHandler:r,clickClose:l,clickableWhenHasChildren:i,disabled:c,hidden:a,label:u,icon:f,iconFontClass:d,showRightArrow:h,shortcut:x,hasChildren:_}=un(s),A=re(!1),R=re(!1),b=re(),m=ke("globalOptions"),v=ke("globalHasSlot"),S=ke("globalRenderSlot"),C=ke("globalCloseMenu"),E=ke("menuContext"),L=ve(()=>typeof u.value=="string"?u.value:typeof u.value=="function"?ap(u.value.toString()):"MenuItem[unknow]");Je("MenuItemName",L);const w={getSubMenuInstance:()=>{},showSubMenu:()=>A.value?(E.markActiveMenuItem(w,!0),!0):_.value?(q(),!0):!1,hideSubMenu:()=>{E.closeOtherSubMenu()},isDisabledOrHidden:()=>c.value||a.value,getElement:()=>b.value,focus:()=>R.value=!0,blur:()=>R.value=!1,click:F};Je("menuItemInstance",w),nt(()=>{E.isMenuItemDataCollectedFlag()?Ze(()=>{let J=0;const ce=E.getElement();if(ce){let ie=0;for(let ee=0;ee<ce.children.length;ee++){const ae=ce.children[ee];if(ae.getAttribute("data-type")==="ContextMenuItem"){if(ae===b.value){J=ie;break}ie++}}}E.addChildMenuItem(w,J)}):E.addChildMenuItem(w)}),kn(()=>{E.removeChildMenuItem(w)});function F(J){if(!c.value){if(J){const ce=J.target;if(ce.classList.contains("mx-context-no-clickable")||m.value.ignoreClickClassName&&ce.classList.contains(m.value.ignoreClickClassName))return;if(m.value.clickCloseClassName&&ce.classList.contains(m.value.clickCloseClassName)){J.stopPropagation(),C(s.rawMenuItem);return}}_.value?i.value?(typeof r.value=="function"&&r.value(J),o("click",J)):A.value||q():(typeof r.value=="function"&&r.value(J),o("click",J),l.value&&C(s.rawMenuItem))}}function q(J){R.value=!1,E.checkCloseOtherSubMenuTimeOut()||E.closeOtherSubMenu(),c.value||(E.markActiveMenuItem(w),_.value&&(J||E.markThisOpenedByKeyBoard(),E.addOpenedSubMenu(H),A.value=!0,Ze(()=>o("subMenuOpen",w))))}function H(){R.value=!1,A.value=!1,o("subMenuClose",w)}function Z(){return{disabled:c.value,label:u.value,icon:f.value,iconFontClass:d.value,showRightArrow:h.value,clickClose:l.value,clickableWhenHasChildren:i.value,shortcut:x.value,theme:m.value.theme,isOpen:A,hasChildren:_,onClick:F,onMouseEnter:q,closeMenu:C}}return t(w),(J,ce)=>M(a)?me("",!0):($(),Y("div",{key:0,class:"mx-context-menu-item-wrapper",ref_key:"menuItemRef",ref:b,"data-type":"ContextMenuItem"},[M(v)("itemRender")?($(),he(M(mt),{key:0,vnode:()=>M(S)("itemRender",Z())},null,8,["vnode"])):e.customRender?($(),he(M(mt),{key:1,vnode:e.customRender,data:Z()},null,8,["vnode","data"])):($(),Y("div",{key:2,class:De(["mx-context-menu-item",M(c)?"disabled":"",R.value?"keyboard-focus":"",e.customClass?" "+e.customClass:"",A.value?"open":""]),onClick:F,onMouseenter:q},[Fe(J.$slots,"default",{},()=>[N("div",Ap,[N("div",{class:De(["mx-icon-placeholder",e.preserveIconWidth?"preserve-width":""])},[Fe(J.$slots,"icon",{},()=>[M(v)("itemIconRender")?($(),he(M(mt),{key:0,vnode:()=>M(S)("itemIconRender",Z())},null,8,["vnode"])):typeof e.svgIcon=="string"&&e.svgIcon?($(),Y("svg",Rs({key:1,class:"icon svg"},e.svgProps),[N("use",{"xlink:href":e.svgIcon},null,8,Pp)],16)):typeof M(f)!="string"?($(),he(M(mt),{key:2,vnode:M(f),data:M(f)},null,8,["vnode","data"])):typeof M(f)=="string"&&M(f)!==""?($(),Y("i",{key:3,class:De(M(f)+" icon "+M(d)+" "+M(m).iconFontClass)},null,2)):me("",!0)]),e.checked?Fe(J.$slots,"check",{key:0},()=>[M(v)("itemCheckRender")?($(),he(M(mt),{key:0,vnode:()=>M(S)("itemCheckRender",Z())},null,8,["vnode"])):me("",!0),le(xp)]):me("",!0)],2),Fe(J.$slots,"label",{},()=>[M(v)("itemLabelRender")?($(),he(M(mt),{key:0,vnode:()=>M(S)("itemLabelRender",Z())},null,8,["vnode"])):typeof M(u)=="string"?($(),Y("span",Tp,Ae(M(u)),1)):($(),he(M(mt),{key:2,vnode:M(u),data:M(u)},null,8,["vnode","data"]))])]),N("div",Op,[M(x)||J.$slots.shortcut?Fe(J.$slots,"shortcut",{key:0},()=>[M(v)("itemShortcutRender")?($(),he(M(mt),{key:0,vnode:()=>M(S)("itemShortcutRender",Z())},null,8,["vnode"])):me("",!0),N("span",$p,Ae(M(x)),1)]):me("",!0),M(h)?Fe(J.$slots,"rightArrow",{key:1},()=>[M(v)("itemRightArrowRender")?($(),he(M(mt),{key:0,vnode:()=>M(S)("itemRightArrowRender",Z())},null,8,["vnode"])):me("",!0),le(Ip)]):me("",!0)])])],34)),Fe(J.$slots,"submenu",{context:w,show:A.value})],512))}}),Lp=_e({name:"ContextMenuSperator",components:{VNodeRender:mt},setup(){const e=ke("globalHasSlot"),t=ke("globalRenderSlot");return{globalHasSlot:e,globalRenderSlot:t}}}),Dp={key:1,class:"mx-context-menu-item-sperator mx-context-no-clickable"};function Fp(e,t,n,s,o,r){const l=Ri("VNodeRender");return e.globalHasSlot("separatorRender")?($(),he(l,{key:0,vnode:()=>e.globalRenderSlot("separatorRender",{})},null,8,["vnode"])):($(),Y("div",Dp))}const Un=ur(Lp,[["render",Fp]]),fr=_e({__name:"ContextSubMenu",props:{items:{type:Object,default:null},show:{type:Boolean,default:!1},maxHeight:{type:Number,default:0},maxWidth:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0},adjustPosition:{type:Boolean,default:!0},direction:{type:String,default:"br"},parentMenuItemContext:{type:Object,default:null}},emits:["closeAnimFinished"],setup(e,{expose:t,emit:n}){const s=e,o=n,r=re(!1),l=ke("globalGetMenuHostId",""),i=ke("menuContext"),c=ke("globalOptions");ke("globalHasSlot"),ke("globalRenderSlot");const a=re("UnknowOrRoot"),u=ke("MenuItemName",a),{zIndex:f,getParentWidth:d,getParentHeight:h,getZoom:x}=i,{adjustPosition:_}=un(s),A=re(),R=re(),b=re(),m=[],v=ke("globalSetCurrentSubMenu"),S=[];let C=null,E=0;function L(){C&&C.blur()}function w(G,O){if(G){for(let Q=O!==void 0?O:0;Q<S.length;Q++)if(!S[Q].isDisabledOrHidden()){F(Q);break}}else for(let Q=O!==void 0?O:S.length-1;Q>=0;Q--)if(!S[Q].isDisabledOrHidden()){F(Q);break}}function F(G){if(C&&L(),G!==void 0&&(C=S[Math.max(0,Math.min(G,S.length-1))]),!C)return;C.focus();const O=C.getElement();O&&O.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}function q(){v(H)}const H={el:b,name:u,isTopLevel:()=>i.getParentContext()===null,closeSelfAndActiveParent:()=>{const G=ce.getParentContext();if(G){G.closeOtherSubMenu();const O=G.getSubMenuInstanceContext();if(O)return O.focusCurrentItem(),!0}return!1},closeCurrentSubMenu:()=>{var G;return(G=ce.getParentContext())==null?void 0:G.closeOtherSubMenu()},moveCurrentItemFirst:()=>w(!0),moveCurrentItemLast:()=>w(!1),moveCurrentItemDown:()=>w(!0,C?S.indexOf(C)+1:0),moveCurrentItemUp:()=>w(!1,C?S.indexOf(C)-1:0),focusCurrentItem:()=>F(),openCurrentItemSubMenu:()=>C?C==null?void 0:C.showSubMenu():!1,triggerCurrentItemClick:G=>C==null?void 0:C.click(G)};let Z=!1,J=!1;const ce={zIndex:f+1,container:i.container,adjustPadding:c.value.adjustPadding||bt.defaultAdjustPadding,getParentWidth:()=>{var G;return((G=b.value)==null?void 0:G.offsetWidth)||0},getParentHeight:()=>{var G;return((G=b.value)==null?void 0:G.offsetHeight)||0},getPositon:()=>[fe.value.x,fe.value.y],getZoom:()=>c.value.zoom||bt.defaultZoom,addOpenedSubMenu(G){m.push(G)},closeOtherSubMenu(){m.forEach(G=>G()),m.splice(0,m.length),v(H)},checkCloseOtherSubMenuTimeOut(){return E?(clearTimeout(E),E=0,!0):!1},closeOtherSubMenuWithTimeOut(){E=setTimeout(()=>{E=0,this.closeOtherSubMenu()},200)},addChildMenuItem:(G,O)=>{O===void 0?S.push(G):S.splice(O,0,G)},removeChildMenuItem:G=>{S.splice(S.indexOf(G),1),G.getSubMenuInstance=()=>{}},markActiveMenuItem:(G,O=!1)=>{L(),C=G,O&&F()},markThisOpenedByKeyBoard:()=>{Z=!0},isOpenedByKeyBoardFlag:()=>Z?(Z=!1,!0):!1,isMenuItemDataCollectedFlag:()=>J,getElement:()=>b.value||null,getParentContext:()=>i,getSubMenuInstanceContext:()=>H};Je("menuContext",ce);const ie={getChildItem:G=>S[G],getMenuDimensions:()=>R.value?{width:R.value.offsetWidth,height:R.value.offsetHeight}:{width:0,height:0},getSubmenuRoot:()=>R.value,getMenu:()=>b.value,getScrollValue:()=>{var G,O;return((O=(G=A.value)==null?void 0:G.getScrollContainer())==null?void 0:O.scrollTop)||0},setScrollValue:G=>{var O;return(O=A.value)==null?void 0:O.scrollTo(0,G)},getScrollHeight:()=>ae.value,adjustPosition:()=>{$e()},getMaxHeight:()=>Oe.value,getPosition:()=>fe.value,setPosition:(G,O)=>{fe.value.x=G,fe.value.y=O}},ee=ke("menuItemInstance",void 0);ee&&(ee.getSubMenuInstance=()=>ie);const ae=re(0),Oe=re(0),Ne=re(!1),fe=re({x:0,y:0});function $e(){Ze(()=>{const G=b.value,O=R.value;if(G&&O&&A.value){const{container:Q}=i,y=(d==null?void 0:d())??0,K=(h==null?void 0:h())??0,B=getComputedStyle(O),W=parseFloat(B.paddingLeft),de=parseFloat(B.paddingTop),xe=K>0?de:0,p=document.documentElement.scrollHeight/x(),g=document.documentElement.scrollWidth/x(),k=Math.min(g,Q.offsetWidth),P=Math.min(p,Q.offsetHeight);let I=zn(G,Q),T=Wn(G,Q);s.direction.includes("l")?fe.value.x-=G.offsetWidth+W:s.direction.includes("r")?fe.value.x+=y+W:(fe.value.x+=y/2,fe.value.x-=(G.offsetWidth+W)/2),s.direction.includes("t")?fe.value.y-=(G.offsetHeight+de*2)/x():s.direction.includes("b")?fe.value.y-=de/x():fe.value.y-=(G.offsetHeight+de)/2/x(),Ze(()=>{var z,j;I=zn(G,Q),T=Wn(G,Q);const V=((j=(z=A.value)==null?void 0:z.getScrollContainer())==null?void 0:j.scrollHeight)||0,D=s.maxHeight;ae.value=s.maxHeight?Math.min(V,s.maxHeight):V;const ne=I+G.offsetWidth-k,U=T+ae.value+xe*2-P;if(Ne.value=U>0,_.value&&ne>0){const X=y+G.offsetWidth-W,oe=I;X>oe?fe.value.x-=oe:fe.value.x-=X}if(Ne.value){if(_.value){const X=U,oe=T;X>oe?fe.value.y-=oe-xe:fe.value.y-=X-xe}Oe.value=P-(fe.value.y+de)}else Oe.value=D||0})}})}function lt(){var G;const O=(G=s.parentMenuItemContext)==null?void 0:G.getElement();if(O){const Q=zn(O,i.container),y=Wn(O,i.container);fe.value.x=Q,fe.value.y=y}else{const[Q,y]=i.getPositon();fe.value.x=Q,fe.value.y=y}Ze(()=>{var Q;v(H),(Q=b.value)==null||Q.focus({preventScroll:!0}),i.isOpenedByKeyBoardFlag()&&Ze(()=>w(!0)),J=!0}),$e()}return zt(()=>s.show,G=>{G&&lt()}),nt(()=>{r.value=!0,s.show?lt():$e()}),kn(()=>{r.value=!1,ee&&(ee.getSubMenuInstance=()=>{})}),t(ie),(G,O)=>{const Q=Ri("ContextSubMenu",!0);return r.value?($(),he(_i,{key:0,to:`#${M(l)}`},[le($a,Rs({appear:""},M(c).menuTransitionProps||{duration:10},{onAfterLeave:O[0]||(O[0]=y=>o("closeAnimFinished"))}),{default:wt(()=>[e.show?($(),Y("div",Rs({key:0,ref_key:"submenuRoot",ref:R},G.$attrs,{class:["mx-context-menu",M(c).customClass?M(c).customClass:"",M(c).theme??""],style:{maxWidth:e.maxWidth?M(El)(e.maxWidth):`${M(bt).defaultMaxWidth}px`,minWidth:e.minWidth?M(El)(e.minWidth):`${M(bt).defaultMinWidth}px`,zIndex:M(f),left:`${fe.value.x}px`,top:`${fe.value.y}px`},"data-type":"ContextSubMenu",onClick:q}),[le(M(vp),{ref_key:"scrollRectRef",ref:A,scroll:"vertical",maxHeight:Oe.value,containerClass:"mx-context-menu-scroll"},{default:wt(()=>[N("div",{class:De(["mx-context-menu-items"]),ref_key:"menu",ref:b},[Fe(G.$slots,"default",{},()=>[($(!0),Y(Ce,null,cs(e.items,(y,K)=>($(),Y(Ce,{key:K},[y.hidden!==!0&&y.divided==="up"?($(),he(Un,{key:0})):me("",!0),y.hidden!==!0&&y.divided==="self"?($(),he(Un,{key:1})):($(),he(ar,{key:2,clickHandler:y.onClick?B=>y.onClick(B):void 0,disabled:typeof y.disabled=="object"?y.disabled.value:y.disabled,hidden:typeof y.hidden=="object"?y.hidden.value:y.hidden,icon:y.icon,iconFontClass:y.iconFontClass,svgIcon:y.svgIcon,svgProps:y.svgProps,label:y.label,customRender:y.customRender,customClass:y.customClass,checked:typeof y.checked=="object"?y.checked.value:y.checked,shortcut:y.shortcut,clickClose:y.clickClose,clickableWhenHasChildren:y.clickableWhenHasChildren,preserveIconWidth:y.preserveIconWidth!==void 0?y.preserveIconWidth:M(c).preserveIconWidth,showRightArrow:y.children&&y.children.length>0,hasChildren:y.children&&y.children.length>0,rawMenuItem:y,onSubMenuOpen:B=>{var W;return(W=y.onSubMenuOpen)==null?void 0:W.call(y,B)},onSubMenuClose:B=>{var W;return(W=y.onSubMenuClose)==null?void 0:W.call(y,B)}},Ai({_:2},[y.children&&y.children.length>0?{name:"submenu",fn:wt(({context:B,show:W})=>[le(Q,{show:W,parentMenuItemContext:B,items:y.children,maxWidth:y.maxWidth,minWidth:y.minWidth,maxHeight:y.maxHeight,adjustPosition:y.adjustSubMenuPosition!==void 0?y.adjustSubMenuPosition:M(c).adjustPosition,direction:y.direction!==void 0?y.direction:M(c).direction},null,8,["show","parentMenuItemContext","items","maxWidth","minWidth","maxHeight","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"])),y.hidden!==!0&&(y.divided==="down"||y.divided===!0)?($(),he(Un,{key:3})):me("",!0)],64))),128))])],512)]),_:3},8,["maxHeight"])],16)):me("",!0)]),_:3},16)],8,["to"])):me("",!0)}}}),Ic=_e({__name:"ContextSubMenuWrapper",props:{options:{type:Object,default:null},show:{type:null,default:null},container:{type:Object,default:null},isFullScreenContainer:{type:Boolean,default:!0}},emits:["close","closeAnimFinished"],setup(e,{expose:t,emit:n}){const s=e,o=n,r=Ti(),l=re(),{options:i,show:c,container:a}=un(s);nt(()=>{c.value&&d()}),kn(()=>{A()}),zt(c,C=>{C?d():(kl(u),A())});const u={closeMenu:h,isClosed:x,getMenuRef:()=>l.value,getMenuDimensions:()=>{var C;return((C=l.value)==null?void 0:C.getMenuDimensions())??{width:0,height:0}}};let f=!1;function d(){_(),lp(u)}function h(C){f=!0,o("close",C),i.value.menuTransitionProps||o("closeAnimFinished"),kl(u)}function x(){return f}function _(){setTimeout(()=>{document.addEventListener("click",v,!0),document.addEventListener("contextmenu",v,!0),document.addEventListener("scroll",m,!0),!s.isFullScreenContainer&&a.value&&a.value.addEventListener("scroll",m,!0),i.value.keyboardControl!==!1&&document.addEventListener("keydown",b,!0)},50)}function A(){document.removeEventListener("contextmenu",v,!0),document.removeEventListener("click",v,!0),document.removeEventListener("scroll",m,!0),!s.isFullScreenContainer&&a.value&&a.value.removeEventListener("scroll",m,!0),i.value.keyboardControl!==!1&&document.removeEventListener("keydown",b,!0)}const R=re();Je("globalSetCurrentSubMenu",C=>R.value=C),Je("globalGetMenuHostId",a.value.id);function b(C){var E,L,w,F,q,H,Z,J,ce,ie,ee,ae,Oe;let Ne=!0;switch(C.key){case"Escape":{((E=R.value)==null?void 0:E.isTopLevel())===!1?(L=R.value)==null||L.closeCurrentSubMenu():h();break}case"ArrowDown":(w=R.value)==null||w.moveCurrentItemDown();break;case"ArrowUp":(F=R.value)==null||F.moveCurrentItemUp();break;case"Home":(q=R.value)==null||q.moveCurrentItemFirst();break;case"End":(H=R.value)==null||H.moveCurrentItemLast();break;case"ArrowLeft":{(Z=R.value)!=null&&Z.closeSelfAndActiveParent()||(ce=(J=i.value).onKeyFocusMoveLeft)==null||ce.call(J);break}case"ArrowRight":(ie=R.value)!=null&&ie.openCurrentItemSubMenu()||(ae=(ee=i.value).onKeyFocusMoveRight)==null||ae.call(ee);break;case"Enter":(Oe=R.value)==null||Oe.triggerCurrentItemClick(C);break;default:Ne=!1;break}Ne&&R.value&&(C.stopPropagation(),C.preventDefault())}function m(C){i.value.closeWhenScroll!==!1&&S(C.target,null)}function v(C){S(C.target,C)}function S(C,E){for(var L,w;C;){if(C.classList&&C.classList.contains("mx-context-menu"))return;C=C.parentNode}E?i.value.clickCloseOnOutside!==!1?(A(),h()):(w=(L=i.value).onClickOnOutside)==null||w.call(L,E):(A(),h())}return Je("globalOptions",i),Je("globalCloseMenu",h),Je("globalIsFullScreenContainer",s.isFullScreenContainer),Je("globalHasSlot",C=>r[C]!==void 0),Je("globalRenderSlot",(C,E)=>Fe(r,C,{...E},()=>[rn("span","Render slot failed")],!1)),Je("menuContext",{zIndex:i.value.zIndex||bt.defaultZindex,container:a.value,adjustPadding:{x:0,y:0},getZoom:()=>i.value.zoom||bt.defaultZoom,getParentWidth:()=>0,getParentHeight:()=>0,getPositon:()=>[i.value.x,i.value.y],closeOtherSubMenuWithTimeOut:()=>{},checkCloseOtherSubMenuTimeOut:()=>!1,addOpenedSubMenu:()=>{},closeOtherSubMenu:()=>{},getParentContext:()=>null,getSubMenuInstanceContext:()=>null,getElement:()=>null,addChildMenuItem:()=>{},removeChildMenuItem:()=>{},markActiveMenuItem:()=>{},markThisOpenedByKeyBoard:()=>{},isOpenedByKeyBoardFlag:()=>!1,isMenuItemDataCollectedFlag:()=>!1}),t(u),(C,E)=>($(),he(fr,{ref_key:"submenuInstance",ref:l,show:M(c),items:M(i).items,adjustPosition:M(i).adjustPosition,maxWidth:M(i).maxWidth||M(bt).defaultMaxWidth,minWidth:M(i).minWidth||M(bt).defaultMinWidth,maxHeight:M(i).maxHeight,direction:M(i).direction||M(bt).defaultDirection,onCloseAnimFinished:E[0]||(E[0]=L=>o("closeAnimFinished"))},{default:wt(()=>[Fe(C.$slots,"default")]),_:3},8,["show","items","adjustPosition","maxWidth","minWidth","maxHeight","direction"]))}}),Np=_e({__name:"ContextMenu",props:{options:{type:Object,default:null},show:{type:Boolean,default:!1}},emits:["update:show","close"],setup(e,{expose:t,emit:n}){const s=n,o=e,{options:r,show:l}=un(o),{isNew:i,container:c,eleId:a}=Mc(r.value),u=re(null),f=Ti();function d(h){var x,_;s("update:show",!1),s("close"),(_=(x=r.value).onClose)==null||_.call(x,h)}return t({closeMenu:()=>s("update:show",!1),isClosed:()=>!l.value,getMenuRef:()=>{var h;return(h=u.value)==null?void 0:h.getMenuRef()},getMenuDimensions:()=>{var h;return((h=u.value)==null?void 0:h.getMenuDimensions())??{width:0,height:0}}}),(h,x)=>($(),he(_i,{to:`#${M(a)}`},[le(Ic,{ref_key:"menuRef",ref:u,options:M(r),show:M(l),container:M(c),isFullScreenContainer:!M(i),onClose:d},Ai({_:2},[cs(M(f),(_,A)=>({name:A,fn:wt(R=>[Fe(h.$slots,A,Kc(Ji(R)))])}))]),1032,["options","show","container","isFullScreenContainer"])],8,["to"]))}}),Hp=_e({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},maxHeight:{type:[String,Number],default:0},maxWidth:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0}},setup(e,t){const n=ke("globalOptions"),{adjustSubMenuPosition:s,maxWidth:o,minWidth:r,maxHeight:l}=un(e),i=typeof s.value<"u"?s.value:n.value.adjustPosition,c=re(),a=re();return t.expose({getSubMenuRef:()=>c.value,getMenuItemRef:()=>a.value}),()=>rn(ar,{...e,ref:a,showRightArrow:!0,maxWidth:void 0,minWidth:void 0,maxHeight:void 0,adjustSubMenuPosition:void 0,hasChildren:typeof t.slots.default!==void 0},t.slots.default?{submenu:u=>rn(fr,{ref:c,show:u.show,maxWidth:o.value,minWidth:r.value,maxHeight:l.value,adjustPosition:i,parentMenuItemContext:u.context},{default:t.slots.default}),...fp(t.slots,"default")}:t.slots)}});function Bp(e,t,n,s){const o=re(!0),r=rn(Ic,{options:e,show:o,container:t,isFullScreenContainer:!n,onCloseAnimFinished:()=>{sl(null,t)},onClose:l=>{var i;(i=e.onClose)==null||i.call(e,l),o.value=!1}},s);return sl(r,t),r.component}function Tl(e,t){const n=Mc(e);return Bp(e,n.container,n.isNew,t).exposed}const qs={install(e){e.config.globalProperties.$contextmenu=Tl,e.component("ContextMenu",Np),e.component("ContextMenuItem",ar),e.component("ContextMenuGroup",Hp),e.component("ContextMenuSperator",Un),e.component("ContextMenuSeparator",Un),e.component("ContextSubMenu",fr)},showContextMenu(e,t){return Tl(e,t)},isAnyContextMenuOpen(){return rp()},closeContextMenu:Rc,transformMenuPosition:ip},Vp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function Ac(e,t){return $(),Y("svg",Vp,t[0]||(t[0]=[N("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)]))}const Pc={render:Ac},jp=Object.freeze(Object.defineProperty({__proto__:null,default:Pc,render:Ac},Symbol.toStringTag,{value:"Module"})),Wp={key:0,class:"empty-container"},zp={key:0},Up={key:1},Kp={key:2},qp={key:3},Gp={key:4},Jp=_e({__name:"EmptyFolder",props:{path:{},documents:{}},setup(e){const t=Te(),n=e;return(s,o)=>!n.path||s.documents.length===0?($(),Y("div",Wp,[($(),he(Jo(M(Pc)),{class:"cog"})),M(t).connected?M(t).document.length===0?($(),Y("p",Up,"Waiting for File List")):M(t).query?($(),Y("p",Kp,"No matches!")):M(Ec)(n.path)?($(),Y("p",Gp,"Empty folder")):($(),Y("p",qp,"Folder not found")):($(),Y("p",zp,"No Connection"))])):me("",!0)}});const Yp=pt(Jp,[["__scopeId","data-v-92345830"]]),Zp=["checked"],Xp=_e({__name:"SelectBox",props:{doc:{}},setup(e){const t=Te();return(n,s)=>($(),Y("input",{type:"checkbox",tabindex:"-1",checked:M(t).selected.has(n.doc.key),onClick:s[0]||(s[0]=Ve(()=>{},["stop"])),onChange:s[1]||(s[1]=o=>{o.target.checked?M(t).selected.add(n.doc.key):M(t).selected.delete(n.doc.key)})},null,40,Zp))}}),Oo=_e({__name:"FileRenameInput",props:{doc:{},rename:{type:Function},exit:{type:Function}},setup(e){const t=re(null),n=re("");nt(()=>{n.value=s.doc.name;const r=n.value.lastIndexOf(".");Ze(()=>{t.value.focus(),t.value.setSelectionRange(0,r>0?r:n.value.length)})});const s=e,o=()=>{s.exit(),!(s.doc.key!=="new"&&(n.value===s.doc.name||n.value.length===0))&&s.rename(s.doc,n.value)};return(r,l)=>bn(($(),Y("input",{ref_key:"input",ref:t,id:"FileRenameInput",type:"text",autocorrect:"off","onUpdate:modelValue":l[0]||(l[0]=i=>n.value=i),onBlur:l[1]||(l[1]=(...i)=>r.exit&&r.exit(...i)),onKeyup:[l[2]||(l[2]=yn((...i)=>r.exit&&r.exit(...i),["esc"])),yn(o,["enter"])]},null,544)),[[Qn,n.value]])}});const Qp=["src"],eh=["src"],th={key:2,class:"folder icon"},nh=["src","poster"],sh={key:4,class:"audio icon"},oh=["src"],rh={key:5,class:"archive icon"},lh=_e({__name:"MediaPreview",props:{doc:{},quality:{}},setup(e,{expose:t}){const n=re(null),s=re(null),o=ve(()=>n.value||s.value),r=ve(()=>`${l.doc.previewurl}?${l.quality}&t=${l.doc.mtime}`),l=e,i=()=>{o.value&&(o.value.controls=!0,o.value.setAttribute("data-playing",""))},c=()=>{o.value&&(o.value.controls=!1,o.value.removeAttribute("data-playing"))};let a=null;const u=()=>{if(!o.value)return;o.value.load();const _=Array.from(document.querySelectorAll("video, audio"));if(_.length===0)return;let A=null;for(const R in _)if(_[R]===(a||o.value)){A=_[+R+1]||_[0];break}if(A)if(A.tagName==="VIDEO"&&document.fullscreenElement===o.value){const R=o.value,b=A;if(R===b){b.play();return}a||R.addEventListener("fullscreenchange",m=>{a&&(a.currentTime=R.currentTime,a.click(),R.paused||a.play(),a=null,R.src=l.doc.url,R.poster=r.value,c())},{once:!0}),a=b,R.src=b.src,R.poster="",R.play()}else document.exitFullscreen(),A.click()};t({play(){if(!o.value)return!1;if(o.value.paused){o.value.play();for(const _ of Array.from(document.querySelectorAll("video, audio")))_!==o.value&&_.pause()}else o.value.pause();return!0},media:o});const f=()=>["mkv","mp4","webm","mov","avi"].includes(l.doc.ext),d=()=>["mp3","flac","ogg","aac"].includes(l.doc.ext),h=()=>["zip","tar","gz","bz2","xz","7z","rar"].includes(l.doc.ext),x=()=>["bmp","ico","tif","tiff","heic","heif","pdf","epub","mobi"].includes(l.doc.ext)||l.doc.size>5e5&&["avif","webp","png","jpg","jpeg"].includes(l.doc.ext);return(_,A)=>x()?($(),Y("img",{key:0,src:`${_.doc.previewurl}?${_.quality}&t=${_.doc.mtime}`,alt:""},null,8,Qp)):_.doc.img?($(),Y("img",{key:1,src:_.doc.url,alt:""},null,8,eh)):_.doc.dir?($(),Y("span",th)):f()?($(),Y("video",{key:3,ref_key:"vid",ref:s,src:_.doc.url,poster:r.value,preload:"none",onPlay:i,onPause:c,onEnded:u,onSeeking:A[0]||(A[0]=R=>o.value.play())},null,40,nh)):d()?($(),Y("div",sh,[N("audio",{ref_key:"aud",ref:n,src:_.doc.url,class:"icon",preload:"none",onPlay:i,onPause:c,onEnded:u,onSeeking:A[1]||(A[1]=R=>o.value.play())},null,40,oh)])):h()?($(),Y("span",rh)):($(),Y("span",{key:6,class:De(["file icon",`ext-${_.doc.ext}`])},null,2))}});const ih=pt(lh,[["__scopeId","data-v-c582f4d9"]]),ch=["id","href"],uh=["title"],ah=_e({__name:"GalleryFigure",props:{doc:{},editing:{}},setup(e){const t=Te(),n=e,s=re(null),o=r=>{s.value.play()&&r.preventDefault(),t.cursor=n.doc.key};return(r,l)=>{const i=Oo,c=Xp;return $(),Y("a",{id:`file-${r.doc.key}`,href:r.doc.url,tabindex:"-1",class:De({file:!r.doc.dir,folder:r.doc.dir,cursor:M(t).cursor===r.doc.key}),onContextmenu:l[3]||(l[3]=Ve(()=>{},["stop"])),onFocus:l[4]||(l[4]=Ve(a=>M(t).cursor=r.doc.key,["stop"])),onClick:o},[N("figure",null,[Fe(r.$slots,"default",{},void 0,!0),le(ih,{ref_key:"m",ref:s,doc:r.doc,tabindex:"-1",quality:"sz=512",class:"figcontent"},null,8,["doc"]),l[6]||(l[6]=N("div",{class:"titlespacer"},null,-1)),N("figcaption",{onClick:l[1]||(l[1]=Ve(()=>{},["prevent"])),onContextmenu:l[2]||(l[2]=Ve(a=>r.$emit("menu",a),["prevent"]))},[r.editing?($(),he(i,{key:0,doc:r.doc,rename:r.editing.rename,exit:r.editing.exit},null,8,["doc","rename","exit"])):($(),Y(Ce,{key:1},[le(c,{doc:r.doc,onClick:l[0]||(l[0]=a=>M(t).cursor=r.doc.key)},null,8,["doc"]),N("span",{title:r.doc.name+`
26
- `+r.doc.modified+`
27
- `+r.doc.sizedisp},Ae(r.doc.name),9,uh),l[5]||(l[5]=N("div",{class:"namespacer"},null,-1))],64))],32)])],42,ch)}}});const fh=pt(ah,[["__scopeId","data-v-3e6b502c"]]),dh=_e({__name:"Gallery",props:{path:{},documents:{}},setup(e,{expose:t}){const n=e,s=Te(),o=or(),r=Fs(null),l=()=>{r.value=null},i=(b,m)=>{const v=b.name,S=ln(ss,{message(C){const E=JSON.parse(C.data);"error"in E?(console.error("Rename failed",E.error.message,E.error),b.name=v):console.log("Rename succeeded",E)}});S.onopen=()=>{S.send(JSON.stringify({op:"rename",path:`${b.loc}/${v}`,to:m}))},b.name=m},c=re(),a=ve(()=>c.value?getComputedStyle(c.value).gridTemplateColumns.split(" ").length:1);t({newFolder(){const b=Math.floor(Date.now()/1e3);r.value=new rr({loc:A.value,key:"new",name:"New Folder",dir:!0,mtime:b,size:0}),s.cursor=r.value.key},toggleSelectAll(){console.log("Select"),_.value=!_.value},toggleSortColumn(b){const m=["","name","modified","size",""][b];m&&s.toggleSort(m)},isCursor(){return s.cursor&&r.value===null},cursorRename(){r.value=n.documents.find(b=>b.key===s.cursor)??null},cursorSelect(){const b=s.cursor;b&&(s.selected.has(b)?s.selected.delete(b):s.selected.add(b),this.cursorMove(1,null))},up(b){this.cursorMove(-a.value,b)},down(b){this.cursorMove(a.value,b)},left(b){this.cursorMove(-1,b)},right(b){this.cursorMove(1,b)},cursorMove(b,m){var H;const v=!!(m!=null&&m.shiftKey),S=n.documents;if(S.length===0){s.cursor="";return}const C=S.length,E=(Z,J)=>(Z%J+J)%J,L=(Z,J)=>E(Z+J,C+1),w=s.cursor?S.findIndex(Z=>Z.key===s.cursor):C;if(m&&w===0&&m.key==="ArrowLeft"||m&&w===C-1&&m.key==="ArrowRight")return;let F;w===C?F=b>0?0:C-1:(F=L(w,b),(Math.abs(b)>=C||Math.sign(b)!==Math.sign(F-w))&&(F=C)),s.cursor=((H=S[F])==null?void 0:H.key)??"";const q=s.cursor?document.getElementById(`file-${s.cursor}`):"";if(v){let[Z,J]=b>0?[w,F]:[F,w];for(let ce=Z;ce!==J;ce=L(ce,1)){if(ce===C)continue;const ie=S[ce].key;s.selected.has(ie)?s.selected.delete(ie):s.selected.add(ie)}}d=q,f||(f=setTimeout(()=>{d&&d.scrollIntoView({block:"center",behavior:"smooth"}),f=null},300)),F===C&&u()}});const u=()=>{const b=document.querySelector(".breadcrumb");b&&b.focus()};let f=null,d=null;Ot(()=>{var b;if(s.cursor&&s.cursor!==((b=r.value)==null?void 0:b.key)&&(r.value=null),r.value&&(s.cursor=r.value.key),s.cursor){const m=document.querySelector(`#file-${s.cursor}`);m&&(m.focus(),m.scrollIntoView({block:"center",behavior:"smooth"}))}}),Ot(()=>{!n.documents.length&&s.cursor&&(s.cursor="",u())}),nt(()=>{const b=document.querySelector(".cursor");b&&(b.scrollIntoView({block:"center",behavior:"instant"}),b.focus())});const h=(b,m)=>{const v=ln(ss,{open(){v.send(JSON.stringify({op:"mkdir",path:`${b.loc}/${m}`}))},message(S){const C=JSON.parse(S.data);"error"in C?(console.error("Mkdir failed",C.error.message,C.error),r.value=null):(console.log("mkdir",C),o.push(b.urlrouter))}});b.name=m,b.key=crypto.randomUUID()},x=b=>{const m=n.documents,v=m[b].loc;return b===0?v!==A.value:v!==m[b-1].loc};ve({get:()=>n.documents.length>0&&n.documents.some(b=>s.selected.has(b.key))&&!_.value,set:b=>{}});const _=ve({get:()=>n.documents.length>0&&n.documents.every(b=>s.selected.has(b.key)),set:b=>{console.log("Setting allSelected",b);for(const m of n.documents)b?s.selected.add(m.key):s.selected.delete(m.key)}}),A=ve(()=>n.path.join("/")),R=(b,m)=>{s.cursor=m.key,qs.showContextMenu({x:b.x,y:b.y,items:[{label:"Rename",onClick:()=>{r.value=m}}]})};return(b,m)=>{var C;const v=fh,S=cr;return n.documents.length||r.value?($(),Y("div",{key:0,class:"gallery",ref_key:"gallery",ref:c},[((C=r.value)==null?void 0:C.key)==="new"?($(),he(v,{doc:r.value,key:r.value.key,editing:{rename:h,exit:l}},null,8,["doc","editing"])):me("",!0),($(!0),Y(Ce,null,cs(b.documents,(E,L)=>($(),he(v,{key:E.key,doc:E,editing:r.value===E?{rename:i,exit:l}:null,onMenu:w=>R(w,E)},{default:wt(()=>[x(L)?($(),Y(Ce,{key:0},[le(S,{path:E.loc?E.loc.split("/"):[],class:"folder-change"},null,8,["path"]),m[0]||(m[0]=N("div",{class:"spacer"},null,-1))],64)):me("",!0)]),_:2},1032,["doc","editing","onMenu"]))),128))],512)):me("",!0)}}});const ph=pt(dh,[["__scopeId","data-v-b5d18e17"]]),hh=_e({__name:"FileSize",props:{doc:{}},setup(e){const t=ve(()=>{const s=n.doc.sizedisp.split(" ").slice(-1)[0];return+s?"bytes":s}),n=e;return(s,o)=>($(),Y("td",{class:De(["size right",t.value])},Ae(s.doc.sizedisp),3))}});const gh=pt(hh,[["__scopeId","data-v-0f1301ed"]]),mh={class:"modified right"},vh=["data-tooltip","datetime"],_h=_e({__name:"FileModified",props:{doc:{}},setup(e){const t=ve(()=>new Date(1e3*s.doc.mtime).toISOString().replace(".000Z","Z")),n=ve(()=>t.value.replace("T",`
28
- `).replace("Z"," UTC")),s=e;return(o,r)=>($(),Y("td",mh,[N("time",{"data-tooltip":n.value,datetime:t.value},Ae(o.doc.modified),9,vh)]))}}),yh={key:0},bh={class:"selection"},wh=["indeterminate"],Ch={key:0,class:"folder"},xh={class:"name"},Sh={key:0,class:"folder-change"},kh={colspan:"5"},Eh=["id","onClick","onContextmenu"],Rh=["onClick"],Mh=["checked","onChange"],Ih={class:"name"},Ah=["href","onFocus"],Ph=["onClick"],Th={class:"menu"},Oh=["onClick"],$h={key:1,class:"summary"},Lh={colspan:"3",class:"right"},Dh={class:"size right"},Fh=_e({__name:"FileExplorer",props:{path:{},documents:{}},setup(e,{expose:t}){const n=e,s=Te(),o=or(),r=Fs(null),l=(m,v)=>{const S=m.name,C=ln(ss,{message(E){const L=JSON.parse(E.data);"error"in L?(console.error("Rename failed",L.error.message,L.error),m.name=S):console.log("Rename succeeded",L)}});C.onopen=()=>{C.send(JSON.stringify({op:"rename",path:`${m.loc}/${S}`,to:v}))},m.name=v};t({newFolder(){console.log("New folder");const m=Math.floor(Date.now()/1e3);r.value=new rr({loc:R.value,key:"new",name:"New Folder",dir:!0,mtime:m,size:0}),s.cursor=r.value.key},toggleSelectAll(){console.log("Select"),A.value=!A.value},isCursor(){return s.cursor&&r.value===null},cursorRename(){r.value=n.documents.find(m=>m.key===s.cursor)??null},cursorSelect(){const m=s.cursor;m&&(s.selected.has(m)?s.selected.delete(m):s.selected.add(m),this.cursorMove(1,null))},up(m){this.cursorMove(-1,m)},down(m){this.cursorMove(1,m)},left(m){o.back()},right(m){const v=document.querySelector(`#file-${s.cursor} a`);v&&v.click()},cursorMove(m,v){var Z;const S=!!(v!=null&&v.shiftKey),C=n.documents;if(C.length===0){s.cursor="";return}const E=C.length,L=(J,ce)=>(J%ce+ce)%ce,w=(J,ce)=>L(J+ce,E+1),F=s.cursor?C.findIndex(J=>J.key===s.cursor):C.length,q=w(F,m);s.cursor=((Z=C[q])==null?void 0:Z.key)??"";const H=s.cursor?document.getElementById(`file-${s.cursor}`):"";if(S){let[J,ce]=m>0?[F,q]:[q,F];for(let ie=J;ie!==ce;ie=w(ie,1)){if(ie===E)continue;const ee=C[ie].key;s.selected.has(ee)?s.selected.delete(ee):s.selected.add(ee)}}a=H,c||(c=setTimeout(()=>{a&&a.scrollIntoView({block:"center",behavior:"smooth"}),c=null},300)),q===E&&i()}});const i=()=>{const m=document.querySelector(".breadcrumb");m&&m.focus()};let c=null,a=null;Ot(()=>{var m,v;if(s.cursor&&s.cursor!==((m=r.value)==null?void 0:m.key)&&(r.value=null),r.value&&(s.cursor=(v=r.value)==null?void 0:v.key),s.cursor){const S=document.querySelector(`#file-${s.cursor} .name a`);S&&S.focus()}}),Ot(()=>{!n.documents.length&&s.cursor&&(s.cursor="",i())});let u=re(0),f=null;const d=()=>{u.value=Math.floor(Date.now()/1e3)};nt(()=>{d(),f=setInterval(d,1e3);const m=document.querySelector(".cursor");m&&(m.scrollIntoView({block:"center",behavior:"instant"}),m.focus())}),wn(()=>{clearInterval(f)});const h=(m,v)=>{const S=ln(ss,{open(){S.send(JSON.stringify({op:"mkdir",path:`${m.loc}/${v}`}))},message(C){const E=JSON.parse(C.data);"error"in E?(console.error("Mkdir failed",E.error.message,E.error),r.value=null):(console.log("mkdir",E),o.push(m.urlrouter))}});m.name=v,m.key=crypto.randomUUID()},x=m=>{const v=n.documents,S=v[m].loc;return m===0?S!==R.value:S!==v[m-1].loc},_=ve({get:()=>n.documents.length>0&&n.documents.some(m=>s.selected.has(m.key))&&!A.value,set:m=>{}}),A=ve({get:()=>n.documents.length>0&&n.documents.every(m=>s.selected.has(m.key)),set:m=>{console.log("Setting allSelected",m);for(const v of n.documents)m?s.selected.add(v.key):s.selected.delete(v.key)}}),R=ve(()=>n.path.join("/")),b=(m,v)=>{s.cursor=v.key,qs.showContextMenu({x:m.x,y:m.y,items:[{label:"Rename",onClick:()=>{r.value=v}}]})};return(m,v)=>{var L;const S=_h,C=gh,E=cr;return n.documents.length||r.value?($(),Y("table",yh,[N("thead",null,[N("tr",null,[N("th",bh,[bn(N("input",{type:"checkbox",tabindex:"-1","onUpdate:modelValue":v[0]||(v[0]=w=>A.value=w),indeterminate:_.value},null,8,wh),[[tf,A.value]])]),N("th",{class:De(["sortcolumn",{sortactive:M(s).sortOrder==="name"}]),onClick:v[1]||(v[1]=w=>M(s).toggleSort("name"))},"Name",2),N("th",{class:De(["sortcolumn modified right",{sortactive:M(s).sortOrder==="modified"}]),onClick:v[2]||(v[2]=w=>M(s).toggleSort("modified"))},"Modified",2),N("th",{class:De(["sortcolumn size right",{sortactive:M(s).sortOrder==="size"}]),onClick:v[3]||(v[3]=w=>M(s).toggleSort("size"))},"Size",2),v[5]||(v[5]=N("th",{class:"menu"},null,-1))])]),N("tbody",null,[((L=r.value)==null?void 0:L.key)==="new"?($(),Y("tr",Ch,[v[6]||(v[6]=N("td",{class:"selection"},null,-1)),N("td",xh,[le(Oo,{doc:r.value,rename:h,exit:()=>{r.value=null}},null,8,["doc","exit"])]),($(),he(S,{doc:r.value,key:M(u)},null,8,["doc"])),le(C,{doc:r.value},null,8,["doc"]),v[7]||(v[7]=N("td",{class:"menu"},null,-1))])):me("",!0),($(!0),Y(Ce,null,cs(m.documents,(w,F)=>($(),Y(Ce,{key:w.key},[x(F)?($(),Y("tr",Sh,[N("th",kh,[le(E,{path:w.loc?w.loc.split("/"):[]},null,8,["path"])])])):me("",!0),N("tr",{id:`file-${w.key}`,class:De({file:!w.dir,folder:w.dir,cursor:M(s).cursor===w.key}),onClick:q=>M(s).cursor=M(s).cursor===w.key?"":w.key,onContextmenu:Ve(q=>b(q,w),["prevent"])},[N("td",{class:"selection",onClick:Ve(q=>M(s).cursor=M(s).cursor===w.key?w.key:"",["stop"])},[N("input",{type:"checkbox",tabindex:"-1",checked:M(s).selected.has(w.key),onChange:q=>q.target.checked?M(s).selected.add(w.key):M(s).selected.delete(w.key)},null,40,Mh)],8,Rh),N("td",Ih,[r.value===w?($(),he(Oo,{key:0,doc:w,rename:l,exit:()=>{r.value=null}},null,8,["doc","exit"])):($(),Y(Ce,{key:1},[N("a",{href:w.url,tabindex:"-1",onContextmenu:v[4]||(v[4]=Ve(()=>{},["stop"])),onFocus:Ve(q=>M(s).cursor=w.key,["stop"])},Ae(w.name),41,Ah),M(s).cursor==w.key?($(),Y("button",{key:0,tabindex:"-1",class:"rename-button",onClick:()=>r.value=w},"🖊️",8,Ph)):me("",!0)],64))]),($(),he(S,{doc:w,key:M(u)},null,8,["doc"])),le(C,{doc:w},null,8,["doc"]),N("td",Th,[N("button",{tabindex:"-1",onClick:Ve(q=>b(q,w),["stop"])},"⋮",8,Oh)])],42,Eh)],64))),128)),n.documents.length>1?($(),Y("tr",$h,[N("td",Lh,Ae(n.documents.length)+" items",1),N("td",Dh,Ae(M(xc)(n.documents.reduce((w,F)=>w+F.size,0))),1),v[8]||(v[8]=N("td",{class:"menu"},null,-1))])):me("",!0)])])):me("",!0)}}});const Nh=pt(Fh,[["__scopeId","data-v-765caf34"]]),Hh=_e({__name:"ExplorerView",props:{path:{},query:{}},setup(e){const t=Te(),n=re(),s=e,o=ve(()=>{const r=s.path.join("/"),l=s.query;if(!l)return To(t.document.filter(d=>d.loc===r),t.prefs.sortListing);const i=$d(l);let c=100,a=[];for(const d of t.recentDocuments)if(Ld(d.haystack,i)&&(a.push(d),--c===0))break;const u=r+"/",f=t.prefs.sortFiltered;return f?To(a,f):(a.sort((d,h)=>(h.loc===r)-(d.loc===r)||(h.loc.slice(0,u.length)===u)-(d.loc.slice(0,u.length)===u)||ns.compare(d.loc,h.loc)||(d.type==="file")-(h.type==="file")||h.name.includes(l)-d.name.includes(l)||ns.compare(d.name,h.name)),a)});return Ot(()=>{t.fileExplorer=n.value,t.query=s.query}),zt(o,r=>{t.prefs.gallery=r.some(l=>l.previewable)},{immediate:!0}),(r,l)=>{const i=ph,c=Yp;return $(),Y(Ce,null,[M(t).prefs.gallery?($(),he(i,{ref_key:"fileExplorer",ref:n,key:`gallery-${M(cn).currentRoute.value.path}`,path:s.path,documents:o.value},null,8,["path","documents"])):($(),he(Nh,{ref_key:"fileExplorer",ref:n,key:`explorer-${M(cn).currentRoute.value.path}`,path:s.path,documents:o.value},null,8,["path","documents"])),le(c,{documents:o.value,path:s.path},null,8,["documents","path"])],64)}}});const Bh=pt(Hh,[["__scopeId","data-v-92e26fef"]]),cn=Ad({history:ld("/"),routes:[{path:"/:pathMatch(.*)*",name:"explorer",component:Bh}]}),Vh={class:"headermain buttons"},jh=["value"],Wh=_e({__name:"HeaderMain",props:{path:{},query:{}},setup(e,{expose:t}){const n=Te(),s=re(!1),o=re(),r=re(),l=e,i=f=>{if(!s.value)return;s.value=!1,document.querySelector(".breadcrumb").focus(),c(f)},c=f=>{const d=f.target.value;let h=l.path.join("/");h=h?`/${h}`:"";const _=(d?`${h}//${d}`:h||"/").replaceAll("?","%3F").replaceAll("#","%23");!l.query&&d?cn.push(_):cn.replace(_)},a=f=>{if(s.value=!s.value,!s.value)return i(f);Ze(()=>{const d=o.value;d&&d.focus()})};Ot(()=>{l.query&&(s.value=!0)});const u=f=>{const d=[];d.push({label:"Settings",onClick:()=>{n.dialog="settings"}}),n.user.isLoggedIn?d.push({label:`Logout ${n.user.username??""}`,onClick:()=>n.logout()}):d.push({label:"Login",onClick:()=>n.loginDialog()}),qs.showContextMenu({x:f.target.getBoundingClientRect().right,y:f.target.getBoundingClientRect().bottom,items:d})};return t({toggleSearchInput:a,closeSearch:i}),(f,d)=>{const h=op,x=Ks;return $(),Y("nav",Vh,[M(n).error?($(),Y(Ce,{key:0},[N("div",{class:"error-message",onClick:d[0]||(d[0]=_=>M(n).error="")},Ae(M(n).error),1),d[3]||(d[3]=N("div",{class:"smallgap"},null,-1))],64)):me("",!0),le(h,{path:l.path},null,8,["path"]),le(x,{name:"create-folder","data-tooltip":"New folder",onClick:d[1]||(d[1]=()=>{console.log("New",M(n).fileExplorer),M(n).fileExplorer.newFolder(),console.log("Done")})}),Fe(f.$slots,"default",{},void 0,!0),d[4]||(d[4]=N("div",{class:"spacer smallgap"},null,-1)),s.value?($(),Y("input",{key:1,ref_key:"search",ref:o,type:"search",value:f.query,onInput:c,placeholder:"Find files",class:"margin-input"},null,40,jh)):me("",!0),le(x,{ref_key:"searchButton",ref:r,name:"find",onClick:Ve(a,["prevent"])},null,512),le(x,{name:"eye",onClick:d[2]||(d[2]=_=>M(n).prefs.gallery=!M(n).prefs.gallery)}),le(x,{name:"cog",onClick:u})])}}});const zh=pt(Wh,[["__scopeId","data-v-44ea890f"]]),Uh=_e({__name:"DownloadButton",setup(e){const t=Te(),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"};t.dprogress={...n},setInterval(()=>{Date.now()-t.dprogress.tlast>3e3?(t.dprogress.statbytes=0,t.dprogress.statdur=1):(t.dprogress.statbytes*=.9,t.dprogress.statdur*=.9)},100);const s=()=>{Object.assign(t.dprogress,n),t.dprogress.t0=Date.now(),t.dprogress.tlast=t.dprogress.t0+1},o=i=>{const c=document.createElement("a");c.href=i,c.download="",c.click()},r=async(i,c)=>{let a="",u=c;console.log("Downloading to filesystem",i.recursive);for(const[f,d,h]of i.recursive)h.dir||(t.dprogress.files.push(f),++t.dprogress.filecount,t.dprogress.total+=h.size);for(const[f,d,h]of i.recursive){a&&!f.startsWith(a+"/")&&(a="",u=c);const x=f.slice(a.length);for(const v of x.split("/").slice(0,h.dir?void 0:-1))if(v){a+=`${v}/`;try{u=await u.getDirectoryHandle(v.normalize("NFC"),{create:!0})}catch(S){console.error("Failed to create directory",a,S);return}console.log("Created",a)}if(h.dir)continue;const _=f.split("/").pop().normalize("NFC");let A;try{A=await u.getFileHandle(_,{create:!0})}catch(v){console.error("Failed to create file",f,d,a+_,v);return}const R=await A.createWritable(),b=`/files/${f}`;console.log("Fetching",b);const m=await fetch(b);if(!m.ok)throw t.error=`Failed to download ${b}: ${m.status} ${m.statusText}`,new Error(`Failed to download ${b}: ${m.status} ${m.statusText}`);if(m.body){++t.dprogress.fileidx;const v=m.body.getReader();for(await R.truncate(0),t.error="Direct download.",t.dprogress.tlast=Date.now();;){const{value:S,done:C}=await v.read();if(C)break;await R.write(S);const E=Date.now(),L=S.byteLength;t.dprogress.xfer+=L,t.dprogress.filepos+=L,t.dprogress.statbytes+=L,t.dprogress.statdur+=E-t.dprogress.tlast,t.dprogress.tlast=E}}await R.close(),console.log("Saved",a+_)}s()},l=async()=>{const i=t.selectedFiles;if(console.log("Download",i),i.keys.length===0){console.warn("Attempted download but no files found. Missing selected keys:",i.missing),t.error="No existing files selected",t.selected.clear();return}const c=i.recursive.filter(([u,f,d])=>!d.dir);if(c.length===1)return t.selected.clear(),t.error="Single file via browser downloads",o(`/files/${c[0][1]}`);if("showDirectoryPicker"in window)try{const u=await window.showDirectoryPicker({startIn:"downloads",mode:"readwrite"});await r(i,u),t.selected.clear();return}catch(u){console.error("Download to folder aborted",u)}console.log("Falling back to zip download");const a=i.keys.length===1?i.docs[i.keys[0]].name:"download";o(`/zip/${Array.from(i.keys).join("+")}/${a}.zip`),t.error="Downloading as ZIP via browser downloads",t.selected.clear()};return(i,c)=>{const a=Ks;return $(),he(a,{name:"download","data-tooltip":"Download",onClick:l})}}}),Kh={class:"select-text"},qh=_e({__name:"HeaderSelected",props:{path:Array},setup(e){const t=Te(),n=e,s=ve(()=>n.path.join("/")),o=(r,l)=>{const i=t.selectedFiles,c={op:r,sel:i.keys.map(u=>{const f=i.docs[u];return f.loc?`${f.loc}/${f.name}`:f.name})};l!==void 0&&(c.dst=l);const a=ln(ss,{message(u){const f=JSON.parse(u.data);if("error"in f){console.error("Control socket error",c,f.error),t.error=f.error.message;return}else if(f.status==="ack"){console.log("Control ack OK",f),a.close(),t.selected.clear();return}else console.log("Unknown control response",c,f)}});a.onopen=()=>{a.send(JSON.stringify(c))}};return(r,l)=>{const i=Uh,c=Ks;return M(t).selected.size?($(),Y(Ce,{key:0},[l[4]||(l[4]=N("div",{class:"smallgap"},null,-1)),N("p",Kh,Ae(M(t).selected.size)+" selected ➤",1),le(i),le(c,{name:"copy","data-tooltip":"Copy here",onClick:l[0]||(l[0]=a=>o("cp",s.value))}),le(c,{name:"paste","data-tooltip":"Move here",onClick:l[1]||(l[1]=a=>o("mv",s.value))}),le(c,{name:"trash","data-tooltip":"Delete ⚠️",onClick:l[2]||(l[2]=a=>o("rm"))}),N("button",{class:"action-button unselect","data-tooltip":"Unselect all",onClick:l[3]||(l[3]=a=>M(t).selected.clear())},"❌")],64)):me("",!0)}}});const Gh=["id"],Jh={key:0},Tc=_e({__name:"ModalDialog",props:{title:{},name:{}},setup(e,{expose:t}){const n=re(null),s=Te(),o=()=>{n.value.close(),s.dialog=""},r=e,l=()=>{s.dialog=r.name,setTimeout(()=>{n.value.showModal(),Ze(()=>{const i=n.value.querySelector("input");i&&i.focus()})},0)};return t({show:l,close:o}),Ot(()=>{n.value&&l()}),(i,c)=>M(s).dialog===i.name?($(),Y("dialog",{key:0,ref_key:"dialog",ref:n,id:r.name,onKeydown:yn(o,["escape"])},[r.title?($(),Y("h1",Jh,Ae(r.title),1)):me("",!0),N("div",null,[Fe(i.$slots,"default",{},()=>[c[0]||(c[0]=tr(" Dialog with no content ",-1)),N("button",{onClick:o},"OK")])])],40,Gh)):me("",!0)}});const Yh={class:"login-container"},Zh={class:"error-text"},Xh={class:"dialog-buttons"},Qh=_e({__name:"SettingsModal",setup(e){const t=re(!1),n=Te(),s=re(),o=re(),r=Tt({passwordChange:"",password:"",error:""}),l=()=>{r.passwordChange="",r.password="",r.error="",n.dialog=""},i=async c=>{c.preventDefault();try{if(r.error="",r.passwordChange){if(!r.password){r.error="⚠️ Current password is required",o.value.focus();return}await jd(n.user.username,r.passwordChange,r.password)}l()}catch(a){const u=a;r.error=u.message||"🛑 Unknown error"}finally{t.value=!1}};return(c,a)=>{const u=Tc;return $(),he(u,{name:"settings",title:"Settings"},{default:wt(()=>[N("form",null,[M(n).user.isLoggedIn?($(),Y(Ce,{key:0},[a[5]||(a[5]=N("h3",null,"Update your authentication",-1)),N("div",Yh,[a[2]||(a[2]=N("label",{for:"username"},"New password:",-1)),bn(N("input",{ref_key:"passwordChange",ref:s,id:"passwordChange",type:"password",autocomplete:"new-password",spellcheck:"false",autocorrect:"off","onUpdate:modelValue":a[0]||(a[0]=f=>r.passwordChange=f)},null,512),[[Qn,r.passwordChange]]),a[3]||(a[3]=N("label",{for:"password"},"Current password:",-1)),bn(N("input",{ref_key:"password",ref:o,id:"password",name:"password",type:"password",autocomplete:"current-password",spellcheck:"false",autocorrect:"off","onUpdate:modelValue":a[1]||(a[1]=f=>r.password=f)},null,512),[[Qn,r.password]])]),N("h3",Zh,Ae(r.error||" "),1),N("div",Xh,[N("input",{id:"close",type:"reset",value:"Close",class:"button",onClick:l}),a[4]||(a[4]=N("div",{class:"spacer"},null,-1)),N("input",{id:"submit",type:"submit",value:"Submit",class:"button",onClick:Ve(i,["prevent"])})])],64)):($(),Y(Ce,{key:1},[a[7]||(a[7]=N("p",null,"No settings are available because you have not logged in.",-1)),N("div",{class:"dialog-buttons"},[a[6]||(a[6]=N("div",{class:"spacer"},null,-1)),N("input",{id:"close",type:"reset",value:"Close",class:"button",onClick:l})])],64))])]),_:1})}}});const eg=pt(Qh,[["__scopeId","data-v-8df784f7"]]),tg={class:"login-container"},ng={class:"error-text"},sg=_e({__name:"LoginModal",setup(e){const t=re(!1),n=Te(),s=Tt({username:"",password:"",error:""}),o=async()=>{try{s.error="",t.value=!0;const r=await Bd(s.username,s.password);n.login(r.data.username,!!r.data.privileged)}catch(r){const l=r;s.error=l.message||"🛑 Unknown error"}finally{t.value=!1}};return(r,l)=>{const i=Tc;return $(),he(i,{name:"login",title:"Authentication required"},{default:wt(()=>[N("form",{onSubmit:Ve(o,["prevent"])},[N("div",tg,[l[2]||(l[2]=N("label",{for:"username"},"Username:",-1)),bn(N("input",{id:"username",name:"username",autocomplete:"username",spellcheck:"false",autocorrect:"off",required:"","onUpdate:modelValue":l[0]||(l[0]=c=>s.username=c)},null,512),[[Qn,s.username]]),l[3]||(l[3]=N("label",{for:"password"},"Password:",-1)),bn(N("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",spellcheck:"false",autocorrect:"off",required:"","onUpdate:modelValue":l[1]||(l[1]=c=>s.password=c)},null,512),[[Qn,s.password]])]),N("h3",ng,Ae(s.error||" "),1),l[4]||(l[4]=N("div",{class:"dialog-buttons"},[N("div",{class:"spacer"}),N("input",{id:"submit",type:"submit",value:"Login",class:"button-login"})],-1))],32)]),_:1})}}});const og=pt(sg,[["__scopeId","data-v-06fdc161"]]),rg=_e({__name:"App",setup(e){const t=Te(),n=ve(()=>{const l=decodeURIComponent(cn.currentRoute.value.path).split("//"),i=l[0].split("/").filter(a=>a!==""),c=l.slice(1).join("//");return{path:l[0],pathList:i,query:c}});Ot(()=>{document.title=n.value.path.replace(/\/$/,"").split("/").pop()||t.server.name||"Cista Storage"}),nt(Ud),nt(ir),wn(Kd);const s=re(null);let o=null;const r=l=>{if(t.dialog){o&&(clearTimeout(o),o=null);return}const i=t.fileExplorer;if(!i)return;const c=i.isCursor(),a=l.target.tagName==="INPUT",u=l.type==="keyup";if(l.repeat){(l.key==="ArrowUp"||l.key==="ArrowDown"||l.key==="ArrowLeft"||l.key==="ArrowRight"||c&&l.code==="Space")&&(a||l.preventDefault());return}let f="";if(!a&&l.key.startsWith("Arrow"))f=l.key.slice(5).toLowerCase();else if(!u&&l.key==="f"&&(l.ctrlKey||l.metaKey))s.value.toggleSearchInput();else if(!a&&u&&l.key==="/")s.value.toggleSearchInput();else if(u&&l.key==="Escape")t.error="",s.value.closeSearch(l),t.focusBreadcrumb();else if(!a&&u&&l.key==="Backspace")cn.back();else if(!a&&!u&&l.key==="a"&&(l.ctrlKey||l.metaKey))i.toggleSelectAll();else if(!a&&u&&l.key==="g")t.prefs.gallery=!t.prefs.gallery;else if(!a&&u&&(l.code==="Backquote"||l.key==="1"||l.key==="2"||l.key==="3"))t.sort(["","name","modified","size"][+l.key||0]);else if(!a&&c&&u&&!l.ctrlKey&&(l.key==="F2"||l.key==="r"))i.cursorRename();else if(!a&&c&&l.code==="Space")u&&!l.altKey&&!l.ctrlKey&&i.cursorSelect();else return;l.preventDefault(),o&&(clearTimeout(o),o=null);let d;switch(f){case"up":d=()=>i.up(l);break;case"down":d=()=>i.down(l);break;case"left":d=()=>i.left(l);break;case"right":d=()=>i.right(l);break}if(d&&!u){const x=l.altKey?20:100;d(),o=setTimeout(()=>{o=setInterval(d,x)},200-x)}};return nt(()=>{window.addEventListener("keydown",r),window.addEventListener("keyup",r)}),wn(()=>{window.removeEventListener("keydown",r),window.removeEventListener("keyup",r)}),(l,i)=>{const c=og,a=eg,u=qh,f=zh,d=cr,h=Ef;return $(),Y(Ce,null,[le(c),le(a),N("header",null,[le(f,{ref_key:"headerMain",ref:s,path:n.value.pathList,query:n.value.query},{default:wt(()=>[le(u,{path:n.value.pathList},null,8,["path"])]),_:1},8,["path","query"]),le(d,{path:n.value.pathList,primary:""},null,8,["path"])]),N("main",null,[le(M(Cc),{path:n.value.pathList,query:n.value.query},null,8,["path","query"])]),N("footer",null,[le(h,{status:M(t).uprogress,onCancel:M(t).cancelUploads,class:"upload"},null,8,["status","onCancel"]),le(h,{status:M(t).dprogress,onCancel:M(t).cancelDownloads,class:"download"},null,8,["status","onCancel"])])],64)}}});function lg(e){return typeof e=="object"&&e!==null}function Ol(e,t){return e=lg(e)?e:Object.create(null),new Proxy(e,{get(n,s,o){return s==="key"?Reflect.get(n,s,o):Reflect.get(n,s,o)||Reflect.get(t,s,o)}})}function ig(e,t){return t.reduce((n,s)=>n==null?void 0:n[s],e)}function cg(e,t,n){return t.slice(0,-1).reduce((s,o)=>/^(__proto__)$/.test(o)?{}:s[o]=s[o]||{},e)[t[t.length-1]]=n,e}function ug(e,t){return t.reduce((n,s)=>{const o=s.split(".");return cg(n,o,ig(e,o))},{})}function ag(e,t){return n=>{var s;try{const{storage:o=localStorage,beforeRestore:r=void 0,afterRestore:l=void 0,serializer:i={serialize:JSON.stringify,deserialize:JSON.parse},key:c=t.$id,paths:a=null,debug:u=!1}=n;return{storage:o,beforeRestore:r,afterRestore:l,serializer:i,key:((s=e.key)!=null?s:f=>f)(typeof c=="string"?c:c(t.$id)),paths:a,debug:u}}catch(o){return n.debug&&console.error("[pinia-plugin-persistedstate]",o),null}}}function $l(e,{storage:t,serializer:n,key:s,debug:o}){try{const r=t==null?void 0:t.getItem(s);r&&e.$patch(n==null?void 0:n.deserialize(r))}catch(r){o&&console.error("[pinia-plugin-persistedstate]",r)}}function Ll(e,{storage:t,serializer:n,key:s,paths:o,debug:r}){try{const l=Array.isArray(o)?ug(e,o):e;t.setItem(s,n.serialize(l))}catch(l){r&&console.error("[pinia-plugin-persistedstate]",l)}}function fg(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:s=n},store:o,pinia:r}=t;if(!s)return;if(!(o.$id in r.state.value)){const i=r._s.get(o.$id.replace("__hot:",""));i&&Promise.resolve().then(()=>i.$persist());return}const l=(Array.isArray(s)?s.map(i=>Ol(i,e)):[Ol(s,e)]).map(ag(e,o)).filter(Boolean);o.$persist=()=>{l.forEach(i=>{Ll(o.$state,i)})},o.$hydrate=({runHooks:i=!0}={})=>{l.forEach(c=>{const{beforeRestore:a,afterRestore:u}=c;i&&(a==null||a(t)),$l(o,c),i&&(u==null||u(t))})},l.forEach(i=>{const{beforeRestore:c,afterRestore:a}=i;c==null||c(t),$l(o,i),a==null||a(t),o.$subscribe((u,f)=>{Ll(f,i)},{detached:!0})})}}var dg=fg();const as=cf(rg);as.config.errorHandler=e=>{console.log(e)};const Oc=df();Oc.use(dg);as.use(Oc);as.use(cn);as.use(qs);as.mount("#app");export{N as a,Y as c,$ as o};