- Overview tab with stats & partner lists - Shared orders tab (send/receive/respond) - Partnership timesheets with approval flow - Invoices listing - Invite modal with org search - Rate management in detail modal - Share order modal
30 lines
100 KiB
JavaScript
30 lines
100 KiB
JavaScript
var Ni=Object.defineProperty;var Di=(e,t,n)=>t in e?Ni(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Zs=(e,t,n)=>Di(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/**
|
|
* @vue/shared v3.5.30
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function Os(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ee={},Mt=[],qe=()=>{},Zr=()=>!1,Ln=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ts=e=>e.startsWith("onUpdate:"),ae=Object.assign,Ps=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Mi=Object.prototype.hasOwnProperty,Y=(e,t)=>Mi.call(e,t),V=Array.isArray,Lt=e=>pn(e)==="[object Map]",Bt=e=>pn(e)==="[object Set]",er=e=>pn(e)==="[object Date]",k=e=>typeof e=="function",ue=e=>typeof e=="string",$e=e=>typeof e=="symbol",Z=e=>e!==null&&typeof e=="object",eo=e=>(Z(e)||k(e))&&k(e.then)&&k(e.catch),to=Object.prototype.toString,pn=e=>to.call(e),Li=e=>pn(e).slice(8,-1),no=e=>pn(e)==="[object Object]",Vn=e=>ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Qt=Os(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Vi=/-\w/g,be=Fn(e=>e.replace(Vi,t=>t.slice(1).toUpperCase())),Fi=/\B([A-Z])/g,wt=Fn(e=>e.replace(Fi,"-$1").toLowerCase()),jn=Fn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Xn=Fn(e=>e?`on${jn(e)}`:""),We=(e,t)=>!Object.is(e,t),En=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},so=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Hn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let tr;const Un=()=>tr||(tr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Is(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ue(s)?ki(s):Is(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(ue(e)||Z(e))return e}const ji=/;(?![^(]*\))/g,Hi=/:([^]+)/,Ui=/\/\*[^]*?\*\//g;function ki(e){const t={};return e.replace(Ui,"").split(ji).forEach(n=>{if(n){const s=n.split(Hi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ns(e){let t="";if(ue(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const s=Ns(e[n]);s&&(t+=s+" ")}else if(Z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Bi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ki=Os(Bi);function ro(e){return!!e||e===""}function Gi(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Kt(e[s],t[s]);return n}function Kt(e,t){if(e===t)return!0;let n=er(e),s=er(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=$e(e),s=$e(t),n||s)return e===t;if(n=V(e),s=V(t),n||s)return n&&s?Gi(e,t):!1;if(n=Z(e),s=Z(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const l=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(l&&!c||!l&&c||!Kt(e[i],t[i]))return!1}}return String(e)===String(t)}function Ds(e,t){return e.findIndex(n=>Kt(n,t))}const oo=e=>!!(e&&e.__v_isRef===!0),Wi=e=>ue(e)?e:e==null?"":V(e)||Z(e)&&(e.toString===to||!k(e.toString))?oo(e)?Wi(e.value):JSON.stringify(e,io,2):String(e),io=(e,t)=>oo(t)?io(e,t.value):Lt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Zn(s,o)+" =>"]=r,n),{})}:Bt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Zn(n))}:$e(t)?Zn(t):Z(t)&&!V(t)&&!no(t)?String(t):t,Zn=(e,t="")=>{var n;return $e(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
* @vue/reactivity v3.5.30
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let de;class lo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=de,!t&&de&&(this.index=(de.scopes||(de.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=de;try{return de=this,t()}finally{de=n}}}on(){++this._on===1&&(this.prevScope=de,de=this)}off(){this._on>0&&--this._on===0&&(de=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 r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function co(e){return new lo(e)}function uo(){return de}function qi(e,t=!1){de&&de.cleanups.push(e)}let ne;const es=new WeakSet;class fo{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,de&&de.active&&de.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,es.has(this)&&(es.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ho(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,nr(this),po(this);const t=ne,n=Me;ne=this,Me=!0;try{return this.fn()}finally{go(this),ne=t,Me=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Vs(t);this.deps=this.depsTail=void 0,nr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?es.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){hs(this)&&this.run()}get dirty(){return hs(this)}}let ao=0,Yt,Xt;function ho(e,t=!1){if(e.flags|=8,t){e.next=Xt,Xt=e;return}e.next=Yt,Yt=e}function Ms(){ao++}function Ls(){if(--ao>0)return;if(Xt){let t=Xt;for(Xt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Yt;){let t=Yt;for(Yt=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 po(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function go(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Vs(s),$i(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function hs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(mo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function mo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ln)||(e.globalVersion=ln,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!hs(e))))return;e.flags|=2;const t=e.dep,n=ne,s=Me;ne=e,Me=!0;try{po(e);const r=e.fn(e._value);(t.version===0||We(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{ne=n,Me=s,go(e),e.flags&=-3}}function Vs(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Vs(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function $i(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Me=!0;const _o=[];function ot(){_o.push(Me),Me=!1}function it(){const e=_o.pop();Me=e===void 0?!0:e}function nr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ne;ne=void 0;try{t()}finally{ne=n}}}let ln=0;class Ji{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 Fs{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(!ne||!Me||ne===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ne)n=this.activeLink=new Ji(ne,this),ne.deps?(n.prevDep=ne.depsTail,ne.depsTail.nextDep=n,ne.depsTail=n):ne.deps=ne.depsTail=n,yo(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=ne.depsTail,n.nextDep=void 0,ne.depsTail.nextDep=n,ne.depsTail=n,ne.deps===n&&(ne.deps=s)}return n}trigger(t){this.version++,ln++,this.notify(t)}notify(t){Ms();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ls()}}}function yo(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)yo(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const wn=new WeakMap,At=Symbol(""),ds=Symbol(""),cn=Symbol("");function pe(e,t,n){if(Me&&ne){let s=wn.get(e);s||wn.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Fs),r.map=s,r.key=n),r.track()}}function tt(e,t,n,s,r,o){const i=wn.get(e);if(!i){ln++;return}const l=c=>{c&&c.trigger()};if(Ms(),t==="clear")i.forEach(l);else{const c=V(e),a=c&&Vn(n);if(c&&n==="length"){const f=Number(s);i.forEach((d,g)=>{(g==="length"||g===cn||!$e(g)&&g>=f)&&l(d)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),a&&l(i.get(cn)),t){case"add":c?a&&l(i.get("length")):(l(i.get(At)),Lt(e)&&l(i.get(ds)));break;case"delete":c||(l(i.get(At)),Lt(e)&&l(i.get(ds)));break;case"set":Lt(e)&&l(i.get(At));break}}Ls()}function zi(e,t){const n=wn.get(e);return n&&n.get(t)}function Tt(e){const t=J(e);return t===e?t:(pe(t,"iterate",cn),Ie(e)?t:t.map(Le))}function kn(e){return pe(e=J(e),"iterate",cn),e}function Ke(e,t){return lt(e)?Ft(st(e)?Le(t):t):Le(t)}const Qi={__proto__:null,[Symbol.iterator](){return ts(this,Symbol.iterator,e=>Ke(this,e))},concat(...e){return Tt(this).concat(...e.map(t=>V(t)?Tt(t):t))},entries(){return ts(this,"entries",e=>(e[1]=Ke(this,e[1]),e))},every(e,t){return Qe(this,"every",e,t,void 0,arguments)},filter(e,t){return Qe(this,"filter",e,t,n=>n.map(s=>Ke(this,s)),arguments)},find(e,t){return Qe(this,"find",e,t,n=>Ke(this,n),arguments)},findIndex(e,t){return Qe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Qe(this,"findLast",e,t,n=>Ke(this,n),arguments)},findLastIndex(e,t){return Qe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Qe(this,"forEach",e,t,void 0,arguments)},includes(...e){return ns(this,"includes",e)},indexOf(...e){return ns(this,"indexOf",e)},join(e){return Tt(this).join(e)},lastIndexOf(...e){return ns(this,"lastIndexOf",e)},map(e,t){return Qe(this,"map",e,t,void 0,arguments)},pop(){return Wt(this,"pop")},push(...e){return Wt(this,"push",e)},reduce(e,...t){return sr(this,"reduce",e,t)},reduceRight(e,...t){return sr(this,"reduceRight",e,t)},shift(){return Wt(this,"shift")},some(e,t){return Qe(this,"some",e,t,void 0,arguments)},splice(...e){return Wt(this,"splice",e)},toReversed(){return Tt(this).toReversed()},toSorted(e){return Tt(this).toSorted(e)},toSpliced(...e){return Tt(this).toSpliced(...e)},unshift(...e){return Wt(this,"unshift",e)},values(){return ts(this,"values",e=>Ke(this,e))}};function ts(e,t,n){const s=kn(e),r=s[t]();return s!==e&&!Ie(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const Yi=Array.prototype;function Qe(e,t,n,s,r,o){const i=kn(e),l=i!==e&&!Ie(e),c=i[t];if(c!==Yi[t]){const d=c.apply(e,o);return l?Le(d):d}let a=n;i!==e&&(l?a=function(d,g){return n.call(this,Ke(e,d),g,e)}:n.length>2&&(a=function(d,g){return n.call(this,d,g,e)}));const f=c.call(i,a,s);return l&&r?r(f):f}function sr(e,t,n,s){const r=kn(e),o=r!==e&&!Ie(e);let i=n,l=!1;r!==e&&(o?(l=s.length===0,i=function(a,f,d){return l&&(l=!1,a=Ke(e,a)),n.call(this,a,Ke(e,f),d,e)}):n.length>3&&(i=function(a,f,d){return n.call(this,a,f,d,e)}));const c=r[t](i,...s);return l?Ke(e,c):c}function ns(e,t,n){const s=J(e);pe(s,"iterate",cn);const r=s[t](...n);return(r===-1||r===!1)&&Bn(n[0])?(n[0]=J(n[0]),s[t](...n)):r}function Wt(e,t,n=[]){ot(),Ms();const s=J(e)[t].apply(e,n);return Ls(),it(),s}const Xi=Os("__proto__,__v_isRef,__isVue"),vo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($e));function Zi(e){$e(e)||(e=String(e));const t=J(this);return pe(t,"has",e),t.hasOwnProperty(e)}class bo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?ul:Ro:o?Ao:So).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=V(t);if(!r){let c;if(i&&(c=Qi[n]))return c;if(n==="hasOwnProperty")return Zi}const l=Reflect.get(t,n,ie(t)?t:s);if(($e(n)?vo.has(n):Xi(n))||(r||pe(t,"get",n),o))return l;if(ie(l)){const c=i&&Vn(n)?l:l.value;return r&&Z(c)?gs(c):c}return Z(l)?r?gs(l):gn(l):l}}class Eo extends bo{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const i=V(t)&&Vn(n);if(!this._isShallow){const a=lt(o);if(!Ie(s)&&!lt(s)&&(o=J(o),s=J(s)),!i&&ie(o)&&!ie(s))return a||(o.value=s),!0}const l=i?Number(n)<t.length:Y(t,n),c=Reflect.set(t,n,s,ie(t)?t:r);return t===J(r)&&(l?We(s,o)&&tt(t,"set",n,s):tt(t,"add",n,s)),c}deleteProperty(t,n){const s=Y(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&tt(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!$e(n)||!vo.has(n))&&pe(t,"has",n),s}ownKeys(t){return pe(t,"iterate",V(t)?"length":At),Reflect.ownKeys(t)}}class el extends bo{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const tl=new Eo,nl=new el,sl=new Eo(!0);const ps=e=>e,yn=e=>Reflect.getPrototypeOf(e);function rl(e,t,n){return function(...s){const r=this.__v_raw,o=J(r),i=Lt(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,a=r[e](...s),f=n?ps:t?Ft:Le;return!t&&pe(o,"iterate",c?ds:At),ae(Object.create(a),{next(){const{value:d,done:g}=a.next();return g?{value:d,done:g}:{value:l?[f(d[0]),f(d[1])]:f(d),done:g}}})}}function vn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ol(e,t){const n={get(r){const o=this.__v_raw,i=J(o),l=J(r);e||(We(r,l)&&pe(i,"get",r),pe(i,"get",l));const{has:c}=yn(i),a=t?ps:e?Ft:Le;if(c.call(i,r))return a(o.get(r));if(c.call(i,l))return a(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&pe(J(r),"iterate",At),r.size},has(r){const o=this.__v_raw,i=J(o),l=J(r);return e||(We(r,l)&&pe(i,"has",r),pe(i,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const i=this,l=i.__v_raw,c=J(l),a=t?ps:e?Ft:Le;return!e&&pe(c,"iterate",At),l.forEach((f,d)=>r.call(o,a(f),a(d),i))}};return ae(n,e?{add:vn("add"),set:vn("set"),delete:vn("delete"),clear:vn("clear")}:{add(r){const o=J(this),i=yn(o),l=J(r),c=!t&&!Ie(r)&&!lt(r)?l:r;return i.has.call(o,c)||We(r,c)&&i.has.call(o,r)||We(l,c)&&i.has.call(o,l)||(o.add(c),tt(o,"add",c,c)),this},set(r,o){!t&&!Ie(o)&&!lt(o)&&(o=J(o));const i=J(this),{has:l,get:c}=yn(i);let a=l.call(i,r);a||(r=J(r),a=l.call(i,r));const f=c.call(i,r);return i.set(r,o),a?We(o,f)&&tt(i,"set",r,o):tt(i,"add",r,o),this},delete(r){const o=J(this),{has:i,get:l}=yn(o);let c=i.call(o,r);c||(r=J(r),c=i.call(o,r)),l&&l.call(o,r);const a=o.delete(r);return c&&tt(o,"delete",r,void 0),a},clear(){const r=J(this),o=r.size!==0,i=r.clear();return o&&tt(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=rl(r,e,t)}),n}function js(e,t){const n=ol(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Y(n,r)&&r in s?n:s,r,o)}const il={get:js(!1,!1)},ll={get:js(!1,!0)},cl={get:js(!0,!1)};const So=new WeakMap,Ao=new WeakMap,Ro=new WeakMap,ul=new WeakMap;function fl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function al(e){return e.__v_skip||!Object.isExtensible(e)?0:fl(Li(e))}function gn(e){return lt(e)?e:Hs(e,!1,tl,il,So)}function xo(e){return Hs(e,!1,sl,ll,Ao)}function gs(e){return Hs(e,!0,nl,cl,Ro)}function Hs(e,t,n,s,r){if(!Z(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=al(e);if(o===0)return e;const i=r.get(e);if(i)return i;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function st(e){return lt(e)?st(e.__v_raw):!!(e&&e.__v_isReactive)}function lt(e){return!!(e&&e.__v_isReadonly)}function Ie(e){return!!(e&&e.__v_isShallow)}function Bn(e){return e?!!e.__v_raw:!1}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function Us(e){return!Y(e,"__v_skip")&&Object.isExtensible(e)&&so(e,"__v_skip",!0),e}const Le=e=>Z(e)?gn(e):e,Ft=e=>Z(e)?gs(e):e;function ie(e){return e?e.__v_isRef===!0:!1}function Dt(e){return wo(e,!1)}function hl(e){return wo(e,!0)}function wo(e,t){return ie(e)?e:new dl(e,t)}class dl{constructor(t,n){this.dep=new Fs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:J(t),this._value=n?t:Le(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Ie(t)||lt(t);t=s?t:J(t),We(t,n)&&(this._rawValue=t,this._value=s?t:Le(t),this.dep.trigger())}}function Rt(e){return ie(e)?e.value:e}const pl={get:(e,t,n)=>t==="__v_raw"?e:Rt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ie(r)&&!ie(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Co(e){return st(e)?e:new Proxy(e,pl)}function gl(e){const t=V(e)?new Array(e.length):{};for(const n in e)t[n]=_l(e,n);return t}class ml{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=J(t);let r=!0,o=t;if(!V(t)||!Vn(String(n)))do r=!Bn(o)||Ie(o);while(r&&(o=o.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=Rt(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ie(this._raw[this._key])){const n=this._object[this._key];if(ie(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return zi(this._raw,this._key)}}function _l(e,t,n){return new ml(e,t,n)}class yl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Fs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ln-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&ne!==this)return ho(this,!0),!0}get value(){const t=this.dep.track();return mo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function vl(e,t,n=!1){let s,r;return k(e)?s=e:(s=e.get,r=e.set),new yl(s,r,n)}const bn={},Cn=new WeakMap;let Et;function bl(e,t=!1,n=Et){if(n){let s=Cn.get(n);s||Cn.set(n,s=[]),s.push(e)}}function El(e,t,n=ee){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:c}=n,a=S=>r?S:Ie(S)||r===!1||r===0?nt(S,1):nt(S);let f,d,g,m,O=!1,R=!1;if(ie(e)?(d=()=>e.value,O=Ie(e)):st(e)?(d=()=>a(e),O=!0):V(e)?(R=!0,O=e.some(S=>st(S)||Ie(S)),d=()=>e.map(S=>{if(ie(S))return S.value;if(st(S))return a(S);if(k(S))return c?c(S,2):S()})):k(e)?t?d=c?()=>c(e,2):e:d=()=>{if(g){ot();try{g()}finally{it()}}const S=Et;Et=f;try{return c?c(e,3,[m]):e(m)}finally{Et=S}}:d=qe,t&&r){const S=d,U=r===!0?1/0:r;d=()=>nt(S(),U)}const j=uo(),L=()=>{f.stop(),j&&j.active&&Ps(j.effects,f)};if(o&&t){const S=t;t=(...U)=>{S(...U),L()}}let T=R?new Array(e.length).fill(bn):bn;const N=S=>{if(!(!(f.flags&1)||!f.dirty&&!S))if(t){const U=f.run();if(r||O||(R?U.some((le,W)=>We(le,T[W])):We(U,T))){g&&g();const le=Et;Et=f;try{const W=[U,T===bn?void 0:R&&T[0]===bn?[]:T,m];T=U,c?c(t,3,W):t(...W)}finally{Et=le}}}else f.run()};return l&&l(N),f=new fo(d),f.scheduler=i?()=>i(N,!1):N,m=S=>bl(S,!1,f),g=f.onStop=()=>{const S=Cn.get(f);if(S){if(c)c(S,4);else for(const U of S)U();Cn.delete(f)}},t?s?N(!0):T=f.run():i?i(N.bind(null,!0),!0):f.run(),L.pause=f.pause.bind(f),L.resume=f.resume.bind(f),L.stop=L,L}function nt(e,t=1/0,n){if(t<=0||!Z(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ie(e))nt(e.value,t,n);else if(V(e))for(let s=0;s<e.length;s++)nt(e[s],t,n);else if(Bt(e)||Lt(e))e.forEach(s=>{nt(s,t,n)});else if(no(e)){for(const s in e)nt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&nt(e[s],t,n)}return e}/**
|
|
* @vue/runtime-core v3.5.30
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function mn(e,t,n,s){try{return s?e(...s):e()}catch(r){Kn(r,t,n)}}function Je(e,t,n,s){if(k(e)){const r=mn(e,t,n,s);return r&&eo(r)&&r.catch(o=>{Kn(o,t,n)}),r}if(V(e)){const r=[];for(let o=0;o<e.length;o++)r.push(Je(e[o],t,n,s));return r}}function Kn(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||ee;if(t){let l=t.parent;const c=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const f=l.ec;if(f){for(let d=0;d<f.length;d++)if(f[d](e,c,a)===!1)return}l=l.parent}if(o){ot(),mn(o,null,10,[e,c,a]),it();return}}Sl(e,n,r,s,i)}function Sl(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const ve=[];let Be=-1;const Vt=[];let dt=null,It=0;const Oo=Promise.resolve();let On=null;function Gn(e){const t=On||Oo;return e?t.then(this?e.bind(this):e):t}function Al(e){let t=Be+1,n=ve.length;for(;t<n;){const s=t+n>>>1,r=ve[s],o=un(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function ks(e){if(!(e.flags&1)){const t=un(e),n=ve[ve.length-1];!n||!(e.flags&2)&&t>=un(n)?ve.push(e):ve.splice(Al(t),0,e),e.flags|=1,To()}}function To(){On||(On=Oo.then(Io))}function Rl(e){V(e)?Vt.push(...e):dt&&e.id===-1?dt.splice(It+1,0,e):e.flags&1||(Vt.push(e),e.flags|=1),To()}function rr(e,t,n=Be+1){for(;n<ve.length;n++){const s=ve[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;ve.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Po(e){if(Vt.length){const t=[...new Set(Vt)].sort((n,s)=>un(n)-un(s));if(Vt.length=0,dt){dt.push(...t);return}for(dt=t,It=0;It<dt.length;It++){const n=dt[It];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}dt=null,It=0}}const un=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Io(e){try{for(Be=0;Be<ve.length;Be++){const t=ve[Be];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),mn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Be<ve.length;Be++){const t=ve[Be];t&&(t.flags&=-2)}Be=-1,ve.length=0,Po(),On=null,(ve.length||Vt.length)&&Io()}}let Te=null,No=null;function Tn(e){const t=Te;return Te=e,No=e&&e.type.__scopeId||null,t}function xl(e,t=Te,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Nn(-1);const o=Tn(t);let i;try{i=e(...r)}finally{Tn(o),s._d&&Nn(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Tf(e,t){if(Te===null)return e;const n=Jn(Te),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,l,c=ee]=t[r];o&&(k(o)&&(o={mounted:o,updated:o}),o.deep&&nt(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:c}))}return e}function vt(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];o&&(l.oldValue=o[i].value);let c=l.dir[s];c&&(ot(),Je(c,n,8,[e.el,l,e,t]),it())}}function Sn(e,t){if(ge){let n=ge.provides;const s=ge.parent&&ge.parent.provides;s===n&&(n=ge.provides=Object.create(s)),n[e]=t}}function De(e,t,n=!1){const s=ci();if(s||xt){let r=xt?xt._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&k(t)?t.call(s&&s.proxy):t}}function wl(){return!!(ci()||xt)}const Cl=Symbol.for("v-scx"),Ol=()=>De(Cl);function Zt(e,t,n){return Do(e,t,n)}function Do(e,t,n=ee){const{immediate:s,deep:r,flush:o,once:i}=n,l=ae({},n),c=t&&s||!t&&o!=="post";let a;if(an){if(o==="sync"){const m=Ol();a=m.__watcherHandles||(m.__watcherHandles=[])}else if(!c){const m=()=>{};return m.stop=qe,m.resume=qe,m.pause=qe,m}}const f=ge;l.call=(m,O,R)=>Je(m,f,O,R);let d=!1;o==="post"?l.scheduler=m=>{xe(m,f&&f.suspense)}:o!=="sync"&&(d=!0,l.scheduler=(m,O)=>{O?m():ks(m)}),l.augmentJob=m=>{t&&(m.flags|=4),d&&(m.flags|=2,f&&(m.id=f.uid,m.i=f))};const g=El(e,t,l);return an&&(a?a.push(g):c&&g()),g}function Tl(e,t,n){const s=this.proxy,r=ue(e)?e.includes(".")?Mo(s,e):()=>s[e]:e.bind(s,s);let o;k(t)?o=t:(o=t.handler,n=t);const i=_n(this),l=Do(r,o.bind(s),n);return i(),l}function Mo(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const Pl=Symbol("_vte"),Il=e=>e.__isTeleport,Nl=Symbol("_leaveCb");function Bs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Bs(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 Ks(e,t){return k(e)?ae({name:e.name},t,{setup:e}):e}function Lo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function or(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Pn=new WeakMap;function en(e,t,n,s,r=!1){if(V(e)){e.forEach((R,j)=>en(R,t&&(V(t)?t[j]:t),n,s,r));return}if(tn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&en(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Jn(s.component):s.el,i=r?null:o,{i:l,r:c}=e,a=t&&t.r,f=l.refs===ee?l.refs={}:l.refs,d=l.setupState,g=J(d),m=d===ee?Zr:R=>or(f,R)?!1:Y(g,R),O=(R,j)=>!(j&&or(f,j));if(a!=null&&a!==c){if(ir(t),ue(a))f[a]=null,m(a)&&(d[a]=null);else if(ie(a)){const R=t;O(a,R.k)&&(a.value=null),R.k&&(f[R.k]=null)}}if(k(c))mn(c,l,12,[i,f]);else{const R=ue(c),j=ie(c);if(R||j){const L=()=>{if(e.f){const T=R?m(c)?d[c]:f[c]:O()||!e.k?c.value:f[e.k];if(r)V(T)&&Ps(T,o);else if(V(T))T.includes(o)||T.push(o);else if(R)f[c]=[o],m(c)&&(d[c]=f[c]);else{const N=[o];O(c,e.k)&&(c.value=N),e.k&&(f[e.k]=N)}}else R?(f[c]=i,m(c)&&(d[c]=i)):j&&(O(c,e.k)&&(c.value=i),e.k&&(f[e.k]=i))};if(i){const T=()=>{L(),Pn.delete(e)};T.id=-1,Pn.set(e,T),xe(T,n)}else ir(e),L()}}}function ir(e){const t=Pn.get(e);t&&(t.flags|=8,Pn.delete(e))}Un().requestIdleCallback;Un().cancelIdleCallback;const tn=e=>!!e.type.__asyncLoader,Vo=e=>e.type.__isKeepAlive;function Dl(e,t){Fo(e,"a",t)}function Ml(e,t){Fo(e,"da",t)}function Fo(e,t,n=ge){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Wn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Vo(r.parent.vnode)&&Ll(s,t,n,r),r=r.parent}}function Ll(e,t,n,s){const r=Wn(t,e,s,!0);Ho(()=>{Ps(s[t],r)},n)}function Wn(e,t,n=ge,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{ot();const l=_n(n),c=Je(t,n,e,i);return l(),it(),c});return s?r.unshift(o):r.push(o),o}}const ct=e=>(t,n=ge)=>{(!an||e==="sp")&&Wn(e,(...s)=>t(...s),n)},Vl=ct("bm"),jo=ct("m"),Fl=ct("bu"),jl=ct("u"),Hl=ct("bum"),Ho=ct("um"),Ul=ct("sp"),kl=ct("rtg"),Bl=ct("rtc");function Kl(e,t=ge){Wn("ec",e,t)}const Gl="components";function Wl(e,t){return $l(Gl,e,!0,t)||e}const ql=Symbol.for("v-ndc");function $l(e,t,n=!0,s=!1){const r=Te||ge;if(r){const o=r.type;{const l=Nc(o,!1);if(l&&(l===t||l===be(t)||l===jn(be(t))))return o}const i=lr(r[e]||o[e],t)||lr(r.appContext[e],t);return!i&&s?o:i}}function lr(e,t){return e&&(e[t]||e[be(t)]||e[jn(be(t))])}function Pf(e,t,n,s){let r;const o=n,i=V(e);if(i||ue(e)){const l=i&&st(e);let c=!1,a=!1;l&&(c=!Ie(e),a=lt(e),e=kn(e)),r=new Array(e.length);for(let f=0,d=e.length;f<d;f++)r[f]=t(c?a?Ft(Le(e[f])):Le(e[f]):e[f],f,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,o)}else if(Z(e))if(e[Symbol.iterator])r=Array.from(e,(l,c)=>t(l,c,void 0,o));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,a=l.length;c<a;c++){const f=l[c];r[c]=t(e[f],f,c,o)}}else r=[];return r}const ms=e=>e?ui(e)?Jn(e):ms(e.parent):null,nn=ae(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=>ms(e.parent),$root:e=>ms(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ko(e),$forceUpdate:e=>e.f||(e.f=()=>{ks(e.update)}),$nextTick:e=>e.n||(e.n=Gn.bind(e.proxy)),$watch:e=>Tl.bind(e)}),ss=(e,t)=>e!==ee&&!e.__isScriptSetup&&Y(e,t),Jl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:c}=e;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(ss(s,t))return i[t]=1,s[t];if(r!==ee&&Y(r,t))return i[t]=2,r[t];if(Y(o,t))return i[t]=3,o[t];if(n!==ee&&Y(n,t))return i[t]=4,n[t];_s&&(i[t]=0)}}const a=nn[t];let f,d;if(a)return t==="$attrs"&&pe(e.attrs,"get",""),a(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ee&&Y(n,t))return i[t]=4,n[t];if(d=c.config.globalProperties,Y(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return ss(r,t)?(r[t]=n,!0):s!==ee&&Y(s,t)?(s[t]=n,!0):Y(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:o,type:i}},l){let c;return!!(n[l]||e!==ee&&l[0]!=="$"&&Y(e,l)||ss(t,l)||Y(o,l)||Y(s,l)||Y(nn,l)||Y(r.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Y(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function cr(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let _s=!0;function zl(e){const t=ko(e),n=e.proxy,s=e.ctx;_s=!1,t.beforeCreate&&ur(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:a,created:f,beforeMount:d,mounted:g,beforeUpdate:m,updated:O,activated:R,deactivated:j,beforeDestroy:L,beforeUnmount:T,destroyed:N,unmounted:S,render:U,renderTracked:le,renderTriggered:W,errorCaptured:K,serverPrefetch:G,expose:re,inheritAttrs:me,components:Ce,directives:Ee,filters:_t}=t;if(a&&Ql(a,s,null),i)for(const B in i){const z=i[B];k(z)&&(s[B]=z.bind(n))}if(r){const B=r.call(n,n);Z(B)&&(e.data=gn(B))}if(_s=!0,o)for(const B in o){const z=o[B],ze=k(z)?z.bind(n,n):k(z.get)?z.get.bind(n,n):qe,ft=!k(z)&&k(z.set)?z.set.bind(n):qe,Fe=ce({get:ze,set:ft});Object.defineProperty(s,B,{enumerable:!0,configurable:!0,get:()=>Fe.value,set:Se=>Fe.value=Se})}if(l)for(const B in l)Uo(l[B],s,n,B);if(c){const B=k(c)?c.call(n):c;Reflect.ownKeys(B).forEach(z=>{Sn(z,B[z])})}f&&ur(f,e,"c");function se(B,z){V(z)?z.forEach(ze=>B(ze.bind(n))):z&&B(z.bind(n))}if(se(Vl,d),se(jo,g),se(Fl,m),se(jl,O),se(Dl,R),se(Ml,j),se(Kl,K),se(Bl,le),se(kl,W),se(Hl,T),se(Ho,S),se(Ul,G),V(re))if(re.length){const B=e.exposed||(e.exposed={});re.forEach(z=>{Object.defineProperty(B,z,{get:()=>n[z],set:ze=>n[z]=ze,enumerable:!0})})}else e.exposed||(e.exposed={});U&&e.render===qe&&(e.render=U),me!=null&&(e.inheritAttrs=me),Ce&&(e.components=Ce),Ee&&(e.directives=Ee),G&&Lo(e)}function Ql(e,t,n=qe){V(e)&&(e=ys(e));for(const s in e){const r=e[s];let o;Z(r)?"default"in r?o=De(r.from||s,r.default,!0):o=De(r.from||s):o=De(r),ie(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function ur(e,t,n){Je(V(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Uo(e,t,n,s){let r=s.includes(".")?Mo(n,s):()=>n[s];if(ue(e)){const o=t[e];k(o)&&Zt(r,o)}else if(k(e))Zt(r,e.bind(n));else if(Z(e))if(V(e))e.forEach(o=>Uo(o,t,n,s));else{const o=k(e.handler)?e.handler.bind(n):t[e.handler];k(o)&&Zt(r,o,e)}}function ko(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(a=>In(c,a,i,!0)),In(c,t,i)),Z(t)&&o.set(t,c),c}function In(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&In(e,o,n,!0),r&&r.forEach(i=>In(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Yl[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Yl={data:fr,props:ar,emits:ar,methods:zt,computed:zt,beforeCreate:_e,created:_e,beforeMount:_e,mounted:_e,beforeUpdate:_e,updated:_e,beforeDestroy:_e,beforeUnmount:_e,destroyed:_e,unmounted:_e,activated:_e,deactivated:_e,errorCaptured:_e,serverPrefetch:_e,components:zt,directives:zt,watch:Zl,provide:fr,inject:Xl};function fr(e,t){return t?e?function(){return ae(k(e)?e.call(this,this):e,k(t)?t.call(this,this):t)}:t:e}function Xl(e,t){return zt(ys(e),ys(t))}function ys(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _e(e,t){return e?[...new Set([].concat(e,t))]:t}function zt(e,t){return e?ae(Object.create(null),e,t):t}function ar(e,t){return e?V(e)&&V(t)?[...new Set([...e,...t])]:ae(Object.create(null),cr(e),cr(t??{})):t}function Zl(e,t){if(!e)return t;if(!t)return e;const n=ae(Object.create(null),e);for(const s in t)n[s]=_e(e[s],t[s]);return n}function Bo(){return{app:null,config:{isNativeTag:Zr,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 ec=0;function tc(e,t){return function(s,r=null){k(s)||(s=ae({},s)),r!=null&&!Z(r)&&(r=null);const o=Bo(),i=new WeakSet,l=[];let c=!1;const a=o.app={_uid:ec++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Mc,get config(){return o.config},set config(f){},use(f,...d){return i.has(f)||(f&&k(f.install)?(i.add(f),f.install(a,...d)):k(f)&&(i.add(f),f(a,...d))),a},mixin(f){return o.mixins.includes(f)||o.mixins.push(f),a},component(f,d){return d?(o.components[f]=d,a):o.components[f]},directive(f,d){return d?(o.directives[f]=d,a):o.directives[f]},mount(f,d,g){if(!c){const m=a._ceVNode||we(s,r);return m.appContext=o,g===!0?g="svg":g===!1&&(g=void 0),e(m,f,g),c=!0,a._container=f,f.__vue_app__=a,Jn(m.component)}},onUnmount(f){l.push(f)},unmount(){c&&(Je(l,a._instance,16),e(null,a._container),delete a._container.__vue_app__)},provide(f,d){return o.provides[f]=d,a},runWithContext(f){const d=xt;xt=a;try{return f()}finally{xt=d}}};return a}}let xt=null;const nc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${be(t)}Modifiers`]||e[`${wt(t)}Modifiers`];function sc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ee;let r=n;const o=t.startsWith("update:"),i=o&&nc(s,t.slice(7));i&&(i.trim&&(r=n.map(f=>ue(f)?f.trim():f)),i.number&&(r=n.map(Hn)));let l,c=s[l=Xn(t)]||s[l=Xn(be(t))];!c&&o&&(c=s[l=Xn(wt(t))]),c&&Je(c,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Je(a,e,6,r)}}const rc=new WeakMap;function Ko(e,t,n=!1){const s=n?rc:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!k(e)){const c=a=>{const f=Ko(a,t,!0);f&&(l=!0,ae(i,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(Z(e)&&s.set(e,null),null):(V(o)?o.forEach(c=>i[c]=null):ae(i,o),Z(e)&&s.set(e,i),i)}function qn(e,t){return!e||!Ln(t)?!1:(t=t.slice(2).replace(/Once$/,""),Y(e,t[0].toLowerCase()+t.slice(1))||Y(e,wt(t))||Y(e,t))}function hr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:c,render:a,renderCache:f,props:d,data:g,setupState:m,ctx:O,inheritAttrs:R}=e,j=Tn(e);let L,T;try{if(n.shapeFlag&4){const S=r||s,U=S;L=Ge(a.call(U,S,f,d,m,g,O)),T=l}else{const S=t;L=Ge(S.length>1?S(d,{attrs:l,slots:i,emit:c}):S(d,null)),T=t.props?l:oc(l)}}catch(S){sn.length=0,Kn(S,e,1),L=we(mt)}let N=L;if(T&&R!==!1){const S=Object.keys(T),{shapeFlag:U}=N;S.length&&U&7&&(o&&S.some(Ts)&&(T=ic(T,o)),N=jt(N,T,!1,!0))}return n.dirs&&(N=jt(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&Bs(N,n.transition),L=N,Tn(j),L}const oc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ln(n))&&((t||(t={}))[n]=e[n]);return t},ic=(e,t)=>{const n={};for(const s in e)(!Ts(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function lc(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?dr(s,i,a):!!i;if(c&8){const f=t.dynamicProps;for(let d=0;d<f.length;d++){const g=f[d];if(Go(i,s,g)&&!qn(a,g))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?dr(s,i,a):!0:!!i;return!1}function dr(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(Go(t,e,o)&&!qn(n,o))return!0}return!1}function Go(e,t,n){const s=e[n],r=t[n];return n==="style"&&Z(s)&&Z(r)?!Kt(s,r):s!==r}function cc({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 Wo={},qo=()=>Object.create(Wo),$o=e=>Object.getPrototypeOf(e)===Wo;function uc(e,t,n,s=!1){const r={},o=qo();e.propsDefaults=Object.create(null),Jo(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:xo(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function fc(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=J(r),[c]=e.propsOptions;let a=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let d=0;d<f.length;d++){let g=f[d];if(qn(e.emitsOptions,g))continue;const m=t[g];if(c)if(Y(o,g))m!==o[g]&&(o[g]=m,a=!0);else{const O=be(g);r[O]=vs(c,l,O,m,e,!1)}else m!==o[g]&&(o[g]=m,a=!0)}}}else{Jo(e,t,r,o)&&(a=!0);let f;for(const d in l)(!t||!Y(t,d)&&((f=wt(d))===d||!Y(t,f)))&&(c?n&&(n[d]!==void 0||n[f]!==void 0)&&(r[d]=vs(c,l,d,void 0,e,!0)):delete r[d]);if(o!==l)for(const d in o)(!t||!Y(t,d))&&(delete o[d],a=!0)}a&&tt(e.attrs,"set","")}function Jo(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,l;if(t)for(let c in t){if(Qt(c))continue;const a=t[c];let f;r&&Y(r,f=be(c))?!o||!o.includes(f)?n[f]=a:(l||(l={}))[f]=a:qn(e.emitsOptions,c)||(!(c in s)||a!==s[c])&&(s[c]=a,i=!0)}if(o){const c=J(n),a=l||ee;for(let f=0;f<o.length;f++){const d=o[f];n[d]=vs(r,c,d,a[d],e,!Y(a,d))}}return i}function vs(e,t,n,s,r,o){const i=e[n];if(i!=null){const l=Y(i,"default");if(l&&s===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&k(c)){const{propsDefaults:a}=r;if(n in a)s=a[n];else{const f=_n(r);s=a[n]=c.call(null,t),f()}}else s=c;r.ce&&r.ce._setProp(n,s)}i[0]&&(o&&!l?s=!1:i[1]&&(s===""||s===wt(n))&&(s=!0))}return s}const ac=new WeakMap;function zo(e,t,n=!1){const s=n?ac:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},l=[];let c=!1;if(!k(e)){const f=d=>{c=!0;const[g,m]=zo(d,t,!0);ae(i,g),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!c)return Z(e)&&s.set(e,Mt),Mt;if(V(o))for(let f=0;f<o.length;f++){const d=be(o[f]);pr(d)&&(i[d]=ee)}else if(o)for(const f in o){const d=be(f);if(pr(d)){const g=o[f],m=i[d]=V(g)||k(g)?{type:g}:ae({},g),O=m.type;let R=!1,j=!0;if(V(O))for(let L=0;L<O.length;++L){const T=O[L],N=k(T)&&T.name;if(N==="Boolean"){R=!0;break}else N==="String"&&(j=!1)}else R=k(O)&&O.name==="Boolean";m[0]=R,m[1]=j,(R||Y(m,"default"))&&l.push(d)}}const a=[i,l];return Z(e)&&s.set(e,a),a}function pr(e){return e[0]!=="$"&&!Qt(e)}const Gs=e=>e==="_"||e==="_ctx"||e==="$stable",Ws=e=>V(e)?e.map(Ge):[Ge(e)],hc=(e,t,n)=>{if(t._n)return t;const s=xl((...r)=>Ws(t(...r)),n);return s._c=!1,s},Qo=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Gs(r))continue;const o=e[r];if(k(o))t[r]=hc(r,o,s);else if(o!=null){const i=Ws(o);t[r]=()=>i}}},Yo=(e,t)=>{const n=Ws(t);e.slots.default=()=>n},Xo=(e,t,n)=>{for(const s in t)(n||!Gs(s))&&(e[s]=t[s])},dc=(e,t,n)=>{const s=e.slots=qo();if(e.vnode.shapeFlag&32){const r=t._;r?(Xo(s,t,n),n&&so(s,"_",r,!0)):Qo(t,s)}else t&&Yo(e,t)},pc=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=ee;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:Xo(r,t,n):(o=!t.$stable,Qo(t,r)),i=t}else t&&(Yo(e,t),i={default:1});if(o)for(const l in r)!Gs(l)&&i[l]==null&&delete r[l]},xe=vc;function gc(e){return mc(e)}function mc(e,t){const n=Un();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:a,setElementText:f,parentNode:d,nextSibling:g,setScopeId:m=qe,insertStaticContent:O}=e,R=(u,h,p,_=null,b=null,y=null,w=void 0,x=null,A=!!h.dynamicChildren)=>{if(u===h)return;u&&!qt(u,h)&&(_=v(u),Se(u,b,y,!0),u=null),h.patchFlag===-2&&(A=!1,h.dynamicChildren=null);const{type:E,ref:F,shapeFlag:P}=h;switch(E){case $n:j(u,h,p,_);break;case mt:L(u,h,p,_);break;case An:u==null&&T(h,p,_,w);break;case Ze:Ce(u,h,p,_,b,y,w,x,A);break;default:P&1?U(u,h,p,_,b,y,w,x,A):P&6?Ee(u,h,p,_,b,y,w,x,A):(P&64||P&128)&&E.process(u,h,p,_,b,y,w,x,A,D)}F!=null&&b?en(F,u&&u.ref,y,h||u,!h):F==null&&u&&u.ref!=null&&en(u.ref,null,y,u,!0)},j=(u,h,p,_)=>{if(u==null)s(h.el=l(h.children),p,_);else{const b=h.el=u.el;h.children!==u.children&&a(b,h.children)}},L=(u,h,p,_)=>{u==null?s(h.el=c(h.children||""),p,_):h.el=u.el},T=(u,h,p,_)=>{[u.el,u.anchor]=O(u.children,h,p,_,u.el,u.anchor)},N=({el:u,anchor:h},p,_)=>{let b;for(;u&&u!==h;)b=g(u),s(u,p,_),u=b;s(h,p,_)},S=({el:u,anchor:h})=>{let p;for(;u&&u!==h;)p=g(u),r(u),u=p;r(h)},U=(u,h,p,_,b,y,w,x,A)=>{if(h.type==="svg"?w="svg":h.type==="math"&&(w="mathml"),u==null)le(h,p,_,b,y,w,x,A);else{const E=u.el&&u.el._isVueCE?u.el:null;try{E&&E._beginPatch(),G(u,h,b,y,w,x,A)}finally{E&&E._endPatch()}}},le=(u,h,p,_,b,y,w,x)=>{let A,E;const{props:F,shapeFlag:P,transition:M,dirs:H}=u;if(A=u.el=i(u.type,y,F&&F.is,F),P&8?f(A,u.children):P&16&&K(u.children,A,null,_,b,rs(u,y),w,x),H&&vt(u,null,_,"created"),W(A,u,u.scopeId,w,_),F){for(const te in F)te!=="value"&&!Qt(te)&&o(A,te,null,F[te],y,_);"value"in F&&o(A,"value",null,F.value,y),(E=F.onVnodeBeforeMount)&&ke(E,_,u)}H&&vt(u,null,_,"beforeMount");const $=_c(b,M);$&&M.beforeEnter(A),s(A,h,p),((E=F&&F.onVnodeMounted)||$||H)&&xe(()=>{E&&ke(E,_,u),$&&M.enter(A),H&&vt(u,null,_,"mounted")},b)},W=(u,h,p,_,b)=>{if(p&&m(u,p),_)for(let y=0;y<_.length;y++)m(u,_[y]);if(b){let y=b.subTree;if(h===y||ni(y.type)&&(y.ssContent===h||y.ssFallback===h)){const w=b.vnode;W(u,w,w.scopeId,w.slotScopeIds,b.parent)}}},K=(u,h,p,_,b,y,w,x,A=0)=>{for(let E=A;E<u.length;E++){const F=u[E]=x?et(u[E]):Ge(u[E]);R(null,F,h,p,_,b,y,w,x)}},G=(u,h,p,_,b,y,w)=>{const x=h.el=u.el;let{patchFlag:A,dynamicChildren:E,dirs:F}=h;A|=u.patchFlag&16;const P=u.props||ee,M=h.props||ee;let H;if(p&&bt(p,!1),(H=M.onVnodeBeforeUpdate)&&ke(H,p,h,u),F&&vt(h,u,p,"beforeUpdate"),p&&bt(p,!0),(P.innerHTML&&M.innerHTML==null||P.textContent&&M.textContent==null)&&f(x,""),E?re(u.dynamicChildren,E,x,p,_,rs(h,b),y):w||z(u,h,x,null,p,_,rs(h,b),y,!1),A>0){if(A&16)me(x,P,M,p,b);else if(A&2&&P.class!==M.class&&o(x,"class",null,M.class,b),A&4&&o(x,"style",P.style,M.style,b),A&8){const $=h.dynamicProps;for(let te=0;te<$.length;te++){const X=$[te],Ae=P[X],Re=M[X];(Re!==Ae||X==="value")&&o(x,X,Ae,Re,b,p)}}A&1&&u.children!==h.children&&f(x,h.children)}else!w&&E==null&&me(x,P,M,p,b);((H=M.onVnodeUpdated)||F)&&xe(()=>{H&&ke(H,p,h,u),F&&vt(h,u,p,"updated")},_)},re=(u,h,p,_,b,y,w)=>{for(let x=0;x<h.length;x++){const A=u[x],E=h[x],F=A.el&&(A.type===Ze||!qt(A,E)||A.shapeFlag&198)?d(A.el):p;R(A,E,F,null,_,b,y,w,!0)}},me=(u,h,p,_,b)=>{if(h!==p){if(h!==ee)for(const y in h)!Qt(y)&&!(y in p)&&o(u,y,h[y],null,b,_);for(const y in p){if(Qt(y))continue;const w=p[y],x=h[y];w!==x&&y!=="value"&&o(u,y,x,w,b,_)}"value"in p&&o(u,"value",h.value,p.value,b)}},Ce=(u,h,p,_,b,y,w,x,A)=>{const E=h.el=u?u.el:l(""),F=h.anchor=u?u.anchor:l("");let{patchFlag:P,dynamicChildren:M,slotScopeIds:H}=h;H&&(x=x?x.concat(H):H),u==null?(s(E,p,_),s(F,p,_),K(h.children||[],p,F,b,y,w,x,A)):P>0&&P&64&&M&&u.dynamicChildren&&u.dynamicChildren.length===M.length?(re(u.dynamicChildren,M,p,b,y,w,x),(h.key!=null||b&&h===b.subTree)&&Zo(u,h,!0)):z(u,h,p,F,b,y,w,x,A)},Ee=(u,h,p,_,b,y,w,x,A)=>{h.slotScopeIds=x,u==null?h.shapeFlag&512?b.ctx.activate(h,p,_,w,A):_t(h,p,_,b,y,w,A):ut(u,h,A)},_t=(u,h,p,_,b,y,w)=>{const x=u.component=Cc(u,_,b);if(Vo(u)&&(x.ctx.renderer=D),Oc(x,!1,w),x.asyncDep){if(b&&b.registerDep(x,se,w),!u.el){const A=x.subTree=we(mt);L(null,A,h,p),u.placeholder=A.el}}else se(x,u,h,p,b,y,w)},ut=(u,h,p)=>{const _=h.component=u.component;if(lc(u,h,p))if(_.asyncDep&&!_.asyncResolved){B(_,h,p);return}else _.next=h,_.update();else h.el=u.el,_.vnode=h},se=(u,h,p,_,b,y,w)=>{const x=()=>{if(u.isMounted){let{next:P,bu:M,u:H,parent:$,vnode:te}=u;{const He=ei(u);if(He){P&&(P.el=te.el,B(u,P,w)),He.asyncDep.then(()=>{xe(()=>{u.isUnmounted||E()},b)});return}}let X=P,Ae;bt(u,!1),P?(P.el=te.el,B(u,P,w)):P=te,M&&En(M),(Ae=P.props&&P.props.onVnodeBeforeUpdate)&&ke(Ae,$,P,te),bt(u,!0);const Re=hr(u),je=u.subTree;u.subTree=Re,R(je,Re,d(je.el),v(je),u,b,y),P.el=Re.el,X===null&&cc(u,Re.el),H&&xe(H,b),(Ae=P.props&&P.props.onVnodeUpdated)&&xe(()=>ke(Ae,$,P,te),b)}else{let P;const{el:M,props:H}=h,{bm:$,m:te,parent:X,root:Ae,type:Re}=u,je=tn(h);bt(u,!1),$&&En($),!je&&(P=H&&H.onVnodeBeforeMount)&&ke(P,X,h),bt(u,!0);{Ae.ce&&Ae.ce._hasShadowRoot()&&Ae.ce._injectChildStyle(Re,u.parent?u.parent.type:void 0);const He=u.subTree=hr(u);R(null,He,p,_,u,b,y),h.el=He.el}if(te&&xe(te,b),!je&&(P=H&&H.onVnodeMounted)){const He=h;xe(()=>ke(P,X,He),b)}(h.shapeFlag&256||X&&tn(X.vnode)&&X.vnode.shapeFlag&256)&&u.a&&xe(u.a,b),u.isMounted=!0,h=p=_=null}};u.scope.on();const A=u.effect=new fo(x);u.scope.off();const E=u.update=A.run.bind(A),F=u.job=A.runIfDirty.bind(A);F.i=u,F.id=u.uid,A.scheduler=()=>ks(F),bt(u,!0),E()},B=(u,h,p)=>{h.component=u;const _=u.vnode.props;u.vnode=h,u.next=null,fc(u,h.props,_,p),pc(u,h.children,p),ot(),rr(u),it()},z=(u,h,p,_,b,y,w,x,A=!1)=>{const E=u&&u.children,F=u?u.shapeFlag:0,P=h.children,{patchFlag:M,shapeFlag:H}=h;if(M>0){if(M&128){ft(E,P,p,_,b,y,w,x,A);return}else if(M&256){ze(E,P,p,_,b,y,w,x,A);return}}H&8?(F&16&&Ne(E,b,y),P!==E&&f(p,P)):F&16?H&16?ft(E,P,p,_,b,y,w,x,A):Ne(E,b,y,!0):(F&8&&f(p,""),H&16&&K(P,p,_,b,y,w,x,A))},ze=(u,h,p,_,b,y,w,x,A)=>{u=u||Mt,h=h||Mt;const E=u.length,F=h.length,P=Math.min(E,F);let M;for(M=0;M<P;M++){const H=h[M]=A?et(h[M]):Ge(h[M]);R(u[M],H,p,null,b,y,w,x,A)}E>F?Ne(u,b,y,!0,!1,P):K(h,p,_,b,y,w,x,A,P)},ft=(u,h,p,_,b,y,w,x,A)=>{let E=0;const F=h.length;let P=u.length-1,M=F-1;for(;E<=P&&E<=M;){const H=u[E],$=h[E]=A?et(h[E]):Ge(h[E]);if(qt(H,$))R(H,$,p,null,b,y,w,x,A);else break;E++}for(;E<=P&&E<=M;){const H=u[P],$=h[M]=A?et(h[M]):Ge(h[M]);if(qt(H,$))R(H,$,p,null,b,y,w,x,A);else break;P--,M--}if(E>P){if(E<=M){const H=M+1,$=H<F?h[H].el:_;for(;E<=M;)R(null,h[E]=A?et(h[E]):Ge(h[E]),p,$,b,y,w,x,A),E++}}else if(E>M)for(;E<=P;)Se(u[E],b,y,!0),E++;else{const H=E,$=E,te=new Map;for(E=$;E<=M;E++){const Oe=h[E]=A?et(h[E]):Ge(h[E]);Oe.key!=null&&te.set(Oe.key,E)}let X,Ae=0;const Re=M-$+1;let je=!1,He=0;const Gt=new Array(Re);for(E=0;E<Re;E++)Gt[E]=0;for(E=H;E<=P;E++){const Oe=u[E];if(Ae>=Re){Se(Oe,b,y,!0);continue}let Ue;if(Oe.key!=null)Ue=te.get(Oe.key);else for(X=$;X<=M;X++)if(Gt[X-$]===0&&qt(Oe,h[X])){Ue=X;break}Ue===void 0?Se(Oe,b,y,!0):(Gt[Ue-$]=E+1,Ue>=He?He=Ue:je=!0,R(Oe,h[Ue],p,null,b,y,w,x,A),Ae++)}const Qs=je?yc(Gt):Mt;for(X=Qs.length-1,E=Re-1;E>=0;E--){const Oe=$+E,Ue=h[Oe],Ys=h[Oe+1],Xs=Oe+1<F?Ys.el||ti(Ys):_;Gt[E]===0?R(null,Ue,p,Xs,b,y,w,x,A):je&&(X<0||E!==Qs[X]?Fe(Ue,p,Xs,2):X--)}}},Fe=(u,h,p,_,b=null)=>{const{el:y,type:w,transition:x,children:A,shapeFlag:E}=u;if(E&6){Fe(u.component.subTree,h,p,_);return}if(E&128){u.suspense.move(h,p,_);return}if(E&64){w.move(u,h,p,D);return}if(w===Ze){s(y,h,p);for(let P=0;P<A.length;P++)Fe(A[P],h,p,_);s(u.anchor,h,p);return}if(w===An){N(u,h,p);return}if(_!==2&&E&1&&x)if(_===0)x.beforeEnter(y),s(y,h,p),xe(()=>x.enter(y),b);else{const{leave:P,delayLeave:M,afterLeave:H}=x,$=()=>{u.ctx.isUnmounted?r(y):s(y,h,p)},te=()=>{y._isLeaving&&y[Nl](!0),P(y,()=>{$(),H&&H()})};M?M(y,$,te):te()}else s(y,h,p)},Se=(u,h,p,_=!1,b=!1)=>{const{type:y,props:w,ref:x,children:A,dynamicChildren:E,shapeFlag:F,patchFlag:P,dirs:M,cacheIndex:H}=u;if(P===-2&&(b=!1),x!=null&&(ot(),en(x,null,p,u,!0),it()),H!=null&&(h.renderCache[H]=void 0),F&256){h.ctx.deactivate(u);return}const $=F&1&&M,te=!tn(u);let X;if(te&&(X=w&&w.onVnodeBeforeUnmount)&&ke(X,h,u),F&6)yt(u.component,p,_);else{if(F&128){u.suspense.unmount(p,_);return}$&&vt(u,null,h,"beforeUnmount"),F&64?u.type.remove(u,h,p,D,_):E&&!E.hasOnce&&(y!==Ze||P>0&&P&64)?Ne(E,h,p,!1,!0):(y===Ze&&P&384||!b&&F&16)&&Ne(A,h,p),_&&Ct(u)}(te&&(X=w&&w.onVnodeUnmounted)||$)&&xe(()=>{X&&ke(X,h,u),$&&vt(u,null,h,"unmounted")},p)},Ct=u=>{const{type:h,el:p,anchor:_,transition:b}=u;if(h===Ze){Ot(p,_);return}if(h===An){S(u);return}const y=()=>{r(p),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(u.shapeFlag&1&&b&&!b.persisted){const{leave:w,delayLeave:x}=b,A=()=>w(p,y);x?x(u.el,y,A):A()}else y()},Ot=(u,h)=>{let p;for(;u!==h;)p=g(u),r(u),u=p;r(h)},yt=(u,h,p)=>{const{bum:_,scope:b,job:y,subTree:w,um:x,m:A,a:E}=u;gr(A),gr(E),_&&En(_),b.stop(),y&&(y.flags|=8,Se(w,u,h,p)),x&&xe(x,h),xe(()=>{u.isUnmounted=!0},h)},Ne=(u,h,p,_=!1,b=!1,y=0)=>{for(let w=y;w<u.length;w++)Se(u[w],h,p,_,b)},v=u=>{if(u.shapeFlag&6)return v(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const h=g(u.anchor||u.el),p=h&&h[Pl];return p?g(p):h};let I=!1;const C=(u,h,p)=>{let _;u==null?h._vnode&&(Se(h._vnode,null,null,!0),_=h._vnode.component):R(h._vnode||null,u,h,null,null,null,p),h._vnode=u,I||(I=!0,rr(_),Po(),I=!1)},D={p:R,um:Se,m:Fe,r:Ct,mt:_t,mc:K,pc:z,pbc:re,n:v,o:e};return{render:C,hydrate:void 0,createApp:tc(C)}}function rs({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 bt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function _c(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Zo(e,t,n=!1){const s=e.children,r=t.children;if(V(s)&&V(r))for(let o=0;o<s.length;o++){const i=s[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=et(r[o]),l.el=i.el),!n&&l.patchFlag!==-2&&Zo(i,l)),l.type===$n&&(l.patchFlag===-1&&(l=r[o]=et(l)),l.el=i.el),l.type===mt&&!l.el&&(l.el=i.el)}}function yc(e){const t=e.slice(),n=[0];let s,r,o,i,l;const c=e.length;for(s=0;s<c;s++){const a=e[s];if(a!==0){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<a?o=l+1:i=l;a<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function ei(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ei(t)}function gr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ti(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ti(t.subTree):null}const ni=e=>e.__isSuspense;function vc(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Rl(e)}const Ze=Symbol.for("v-fgt"),$n=Symbol.for("v-txt"),mt=Symbol.for("v-cmt"),An=Symbol.for("v-stc"),sn=[];let Pe=null;function si(e=!1){sn.push(Pe=e?null:[])}function bc(){sn.pop(),Pe=sn[sn.length-1]||null}let fn=1;function Nn(e,t=!1){fn+=e,e<0&&Pe&&t&&(Pe.hasOnce=!0)}function ri(e){return e.dynamicChildren=fn>0?Pe||Mt:null,bc(),fn>0&&Pe&&Pe.push(e),e}function If(e,t,n,s,r,o){return ri(li(e,t,n,s,r,o,!0))}function oi(e,t,n,s,r){return ri(we(e,t,n,s,r,!0))}function Dn(e){return e?e.__v_isVNode===!0:!1}function qt(e,t){return e.type===t.type&&e.key===t.key}const ii=({key:e})=>e??null,Rn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ue(e)||ie(e)||k(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function li(e,t=null,n=null,s=0,r=null,o=e===Ze?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ii(t),ref:t&&Rn(t),scopeId:No,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Te};return l?(qs(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=ue(n)?8:16),fn>0&&!i&&Pe&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Pe.push(c),c}const we=Ec;function Ec(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===ql)&&(e=mt),Dn(e)){const l=jt(e,t,!0);return n&&qs(l,n),fn>0&&!o&&Pe&&(l.shapeFlag&6?Pe[Pe.indexOf(e)]=l:Pe.push(l)),l.patchFlag=-2,l}if(Dc(e)&&(e=e.__vccOpts),t){t=Sc(t);let{class:l,style:c}=t;l&&!ue(l)&&(t.class=Ns(l)),Z(c)&&(Bn(c)&&!V(c)&&(c=ae({},c)),t.style=Is(c))}const i=ue(e)?1:ni(e)?128:Il(e)?64:Z(e)?4:k(e)?2:0;return li(e,t,n,s,r,i,o,!0)}function Sc(e){return e?Bn(e)||$o(e)?ae({},e):e:null}function jt(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:c}=e,a=t?Rc(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&ii(a),ref:t&&t.ref?n&&o?V(o)?o.concat(Rn(t)):[o,Rn(t)]:Rn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ze?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&jt(e.ssContent),ssFallback:e.ssFallback&&jt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Bs(f,c.clone(f)),f}function Ac(e=" ",t=0){return we($n,null,e,t)}function Nf(e,t){const n=we(An,null,e);return n.staticCount=t,n}function Df(e="",t=!1){return t?(si(),oi(mt,null,e)):we(mt,null,e)}function Ge(e){return e==null||typeof e=="boolean"?we(mt):V(e)?we(Ze,null,e.slice()):Dn(e)?et(e):we($n,null,String(e))}function et(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:jt(e)}function qs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),qs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!$o(t)?t._ctx=Te:r===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else k(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),s&64?(n=16,t=[Ac(t)]):n=8);e.children=t,e.shapeFlag|=n}function Rc(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Ns([t.class,s.class]));else if(r==="style")t.style=Is([t.style,s.style]);else if(Ln(r)){const o=t[r],i=s[r];i&&o!==i&&!(V(o)&&o.includes(i))&&(t[r]=o?[].concat(o,i):i)}else r!==""&&(t[r]=s[r])}return t}function ke(e,t,n,s=null){Je(e,t,7,[n,s])}const xc=Bo();let wc=0;function Cc(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||xc,o={uid:wc++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new lo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:zo(s,r),emitsOptions:Ko(s,r),emit:null,emitted:null,propsDefaults:ee,inheritAttrs:s.inheritAttrs,ctx:ee,data:ee,props:ee,attrs:ee,slots:ee,refs:ee,setupState:ee,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 o.ctx={_:o},o.root=t?t.root:o,o.emit=sc.bind(null,o),e.ce&&e.ce(o),o}let ge=null;const ci=()=>ge||Te;let Mn,bs;{const e=Un(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};Mn=t("__VUE_INSTANCE_SETTERS__",n=>ge=n),bs=t("__VUE_SSR_SETTERS__",n=>an=n)}const _n=e=>{const t=ge;return Mn(e),e.scope.on(),()=>{e.scope.off(),Mn(t)}},mr=()=>{ge&&ge.scope.off(),Mn(null)};function ui(e){return e.vnode.shapeFlag&4}let an=!1;function Oc(e,t=!1,n=!1){t&&bs(t);const{props:s,children:r}=e.vnode,o=ui(e);uc(e,s,o,t),dc(e,r,n||t);const i=o?Tc(e,t):void 0;return t&&bs(!1),i}function Tc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Jl);const{setup:s}=n;if(s){ot();const r=e.setupContext=s.length>1?Ic(e):null,o=_n(e),i=mn(s,e,0,[e.props,r]),l=eo(i);if(it(),o(),(l||e.sp)&&!tn(e)&&Lo(e),l){if(i.then(mr,mr),t)return i.then(c=>{_r(e,c)}).catch(c=>{Kn(c,e,0)});e.asyncDep=i}else _r(e,i)}else fi(e)}function _r(e,t,n){k(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Z(t)&&(e.setupState=Co(t)),fi(e)}function fi(e,t,n){const s=e.type;e.render||(e.render=s.render||qe);{const r=_n(e);ot();try{zl(e)}finally{it(),r()}}}const Pc={get(e,t){return pe(e,"get",""),e[t]}};function Ic(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Pc),slots:e.slots,emit:e.emit,expose:t}}function Jn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Co(Us(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in nn)return nn[n](e)},has(t,n){return n in t||n in nn}})):e.proxy}function Nc(e,t=!0){return k(e)?e.displayName||e.name:e.name||t&&e.__name}function Dc(e){return k(e)&&"__vccOpts"in e}const ce=(e,t)=>vl(e,t,an);function ai(e,t,n){try{Nn(-1);const s=arguments.length;return s===2?Z(t)&&!V(t)?Dn(t)?we(e,null,[t]):we(e,t):we(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Dn(n)&&(n=[n]),we(e,t,n))}finally{Nn(1)}}const Mc="3.5.30";/**
|
|
* @vue/runtime-dom v3.5.30
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let Es;const yr=typeof window<"u"&&window.trustedTypes;if(yr)try{Es=yr.createPolicy("vue",{createHTML:e=>e})}catch{}const hi=Es?e=>Es.createHTML(e):e=>e,Lc="http://www.w3.org/2000/svg",Vc="http://www.w3.org/1998/Math/MathML",Xe=typeof document<"u"?document:null,vr=Xe&&Xe.createElement("template"),Fc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Xe.createElementNS(Lc,e):t==="mathml"?Xe.createElementNS(Vc,e):n?Xe.createElement(e,{is:n}):Xe.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Xe.createTextNode(e),createComment:e=>Xe.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xe.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{vr.innerHTML=hi(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=vr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},jc=Symbol("_vtc");function Hc(e,t,n){const s=e[jc];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const br=Symbol("_vod"),Uc=Symbol("_vsh"),kc=Symbol(""),Bc=/(?:^|;)\s*display\s*:/;function Kc(e,t,n){const s=e.style,r=ue(n);let o=!1;if(n&&!r){if(t)if(ue(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&xn(s,l,"")}else for(const i in t)n[i]==null&&xn(s,i,"");for(const i in n)i==="display"&&(o=!0),xn(s,i,n[i])}else if(r){if(t!==n){const i=s[kc];i&&(n+=";"+i),s.cssText=n,o=Bc.test(n)}}else t&&e.removeAttribute("style");br in e&&(e[br]=o?s.display:"",e[Uc]&&(s.display="none"))}const Er=/\s*!important$/;function xn(e,t,n){if(V(n))n.forEach(s=>xn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Gc(e,t);Er.test(n)?e.setProperty(wt(s),n.replace(Er,""),"important"):e[s]=n}}const Sr=["Webkit","Moz","ms"],os={};function Gc(e,t){const n=os[t];if(n)return n;let s=be(t);if(s!=="filter"&&s in e)return os[t]=s;s=jn(s);for(let r=0;r<Sr.length;r++){const o=Sr[r]+s;if(o in e)return os[t]=o}return t}const Ar="http://www.w3.org/1999/xlink";function Rr(e,t,n,s,r,o=Ki(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ar,t.slice(6,t.length)):e.setAttributeNS(Ar,t,n):n==null||o&&!ro(n)?e.removeAttribute(t):e.setAttribute(t,o?"":$e(n)?String(n):n)}function xr(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?hi(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=ro(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(r||t)}function gt(e,t,n,s){e.addEventListener(t,n,s)}function Wc(e,t,n,s){e.removeEventListener(t,n,s)}const wr=Symbol("_vei");function qc(e,t,n,s,r=null){const o=e[wr]||(e[wr]={}),i=o[t];if(s&&i)i.value=s;else{const[l,c]=$c(t);if(s){const a=o[t]=Qc(s,r);gt(e,l,a,c)}else i&&(Wc(e,l,i,c),o[t]=void 0)}}const Cr=/(?:Once|Passive|Capture)$/;function $c(e){let t;if(Cr.test(e)){t={};let s;for(;s=e.match(Cr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):wt(e.slice(2)),t]}let is=0;const Jc=Promise.resolve(),zc=()=>is||(Jc.then(()=>is=0),is=Date.now());function Qc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Je(Yc(s,n.value),t,5,[s])};return n.value=e,n.attached=zc(),n}function Yc(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Or=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Xc=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Hc(e,s,i):t==="style"?Kc(e,n,s):Ln(t)?Ts(t)||qc(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zc(e,t,s,i))?(xr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Rr(e,t,s,i,o,t!=="value")):e._isVueCE&&(eu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ue(s)))?xr(e,be(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Rr(e,t,s,i))};function Zc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Or(t)&&k(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Or(t)&&ue(n)?!1:t in e}function eu(e,t){const n=e._def.props;if(!n)return!1;const s=be(t);return Array.isArray(n)?n.some(r=>be(r)===s):Object.keys(n).some(r=>be(r)===s)}const Ht=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>En(t,n):t};function tu(e){e.target.composing=!0}function Tr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const rt=Symbol("_assign");function Pr(e,t,n){return t&&(e=e.trim()),n&&(e=Hn(e)),e}const Mf={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[rt]=Ht(r);const o=s||r.props&&r.props.type==="number";gt(e,t?"change":"input",i=>{i.target.composing||e[rt](Pr(e.value,n,o))}),(n||o)&>(e,"change",()=>{e.value=Pr(e.value,n,o)}),t||(gt(e,"compositionstart",tu),gt(e,"compositionend",Tr),gt(e,"change",Tr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[rt]=Ht(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?Hn(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c))}},Lf={deep:!0,created(e,t,n){e[rt]=Ht(n),gt(e,"change",()=>{const s=e._modelValue,r=hn(e),o=e.checked,i=e[rt];if(V(s)){const l=Ds(s,r),c=l!==-1;if(o&&!c)i(s.concat(r));else if(!o&&c){const a=[...s];a.splice(l,1),i(a)}}else if(Bt(s)){const l=new Set(s);o?l.add(r):l.delete(r),i(l)}else i(di(e,o))})},mounted:Ir,beforeUpdate(e,t,n){e[rt]=Ht(n),Ir(e,t,n)}};function Ir(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(V(t))r=Ds(t,s.props.value)>-1;else if(Bt(t))r=t.has(s.props.value);else{if(t===n)return;r=Kt(t,di(e,!0))}e.checked!==r&&(e.checked=r)}const Vf={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Bt(t);gt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?Hn(hn(i)):hn(i));e[rt](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,Gn(()=>{e._assigning=!1})}),e[rt]=Ht(s)},mounted(e,{value:t}){Nr(e,t)},beforeUpdate(e,t,n){e[rt]=Ht(n)},updated(e,{value:t}){e._assigning||Nr(e,t)}};function Nr(e,t){const n=e.multiple,s=V(t);if(!(n&&!s&&!Bt(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],l=hn(i);if(n)if(s){const c=typeof l;c==="string"||c==="number"?i.selected=t.some(a=>String(a)===String(l)):i.selected=Ds(t,l)>-1}else i.selected=t.has(l);else if(Kt(hn(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function hn(e){return"_value"in e?e._value:e.value}function di(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const nu=["ctrl","shift","alt","meta"],su={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)=>nu.some(n=>e[`${n}Key`]&&!t.includes(n))},Ff=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i<t.length;i++){const l=su[t[i]];if(l&&l(r,t))return}return e(r,...o)})},ru=ae({patchProp:Xc},Fc);let Dr;function ou(){return Dr||(Dr=gc(ru))}const iu=(...e)=>{const t=ou().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=cu(s);if(!r)return;const o=t._component;!k(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,lu(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function lu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function cu(e){return ue(e)?document.querySelector(e):e}/*!
|
|
* pinia v2.3.1
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/let pi;const zn=e=>pi=e,gi=Symbol();function Ss(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var rn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(rn||(rn={}));function uu(){const e=co(!0),t=e.run(()=>Dt({}));let n=[],s=[];const r=Us({install(o){zn(r),r._a=o,o.provide(gi,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return this._a?n.push(o):s.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const mi=()=>{};function Mr(e,t,n,s=mi){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&uo()&&qi(r),r}function Pt(e,...t){e.slice().forEach(n=>{n(...t)})}const fu=e=>e(),Lr=Symbol(),ls=Symbol();function As(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];Ss(r)&&Ss(s)&&e.hasOwnProperty(n)&&!ie(s)&&!st(s)?e[n]=As(r,s):e[n]=s}return e}const au=Symbol();function hu(e){return!Ss(e)||!e.hasOwnProperty(au)}const{assign:ht}=Object;function du(e){return!!(ie(e)&&e.effect)}function pu(e,t,n,s){const{state:r,actions:o,getters:i}=t,l=n.state.value[e];let c;function a(){l||(n.state.value[e]=r?r():{});const f=gl(n.state.value[e]);return ht(f,o,Object.keys(i||{}).reduce((d,g)=>(d[g]=Us(ce(()=>{zn(n);const m=n._s.get(e);return i[g].call(m,m)})),d),{}))}return c=_i(e,a,t,n,s,!0),c}function _i(e,t,n={},s,r,o){let i;const l=ht({actions:{}},n),c={deep:!0};let a,f,d=[],g=[],m;const O=s.state.value[e];!o&&!O&&(s.state.value[e]={});let R;function j(K){let G;a=f=!1,typeof K=="function"?(K(s.state.value[e]),G={type:rn.patchFunction,storeId:e,events:m}):(As(s.state.value[e],K),G={type:rn.patchObject,payload:K,storeId:e,events:m});const re=R=Symbol();Gn().then(()=>{R===re&&(a=!0)}),f=!0,Pt(d,G,s.state.value[e])}const L=o?function(){const{state:G}=n,re=G?G():{};this.$patch(me=>{ht(me,re)})}:mi;function T(){i.stop(),d=[],g=[],s._s.delete(e)}const N=(K,G="")=>{if(Lr in K)return K[ls]=G,K;const re=function(){zn(s);const me=Array.from(arguments),Ce=[],Ee=[];function _t(B){Ce.push(B)}function ut(B){Ee.push(B)}Pt(g,{args:me,name:re[ls],store:U,after:_t,onError:ut});let se;try{se=K.apply(this&&this.$id===e?this:U,me)}catch(B){throw Pt(Ee,B),B}return se instanceof Promise?se.then(B=>(Pt(Ce,B),B)).catch(B=>(Pt(Ee,B),Promise.reject(B))):(Pt(Ce,se),se)};return re[Lr]=!0,re[ls]=G,re},S={_p:s,$id:e,$onAction:Mr.bind(null,g),$patch:j,$reset:L,$subscribe(K,G={}){const re=Mr(d,K,G.detached,()=>me()),me=i.run(()=>Zt(()=>s.state.value[e],Ce=>{(G.flush==="sync"?f:a)&&K({storeId:e,type:rn.direct,events:m},Ce)},ht({},c,G)));return re},$dispose:T},U=gn(S);s._s.set(e,U);const W=(s._a&&s._a.runWithContext||fu)(()=>s._e.run(()=>(i=co()).run(()=>t({action:N}))));for(const K in W){const G=W[K];if(ie(G)&&!du(G)||st(G))o||(O&&hu(G)&&(ie(G)?G.value=O[K]:As(G,O[K])),s.state.value[e][K]=G);else if(typeof G=="function"){const re=N(G,K);W[K]=re,l.actions[K]=G}}return ht(U,W),ht(J(U),W),Object.defineProperty(U,"$state",{get:()=>s.state.value[e],set:K=>{j(G=>{ht(G,K)})}}),s._p.forEach(K=>{ht(U,i.run(()=>K({store:U,app:s._a,pinia:s,options:l})))}),O&&o&&n.hydrate&&n.hydrate(U.$state,O),a=!0,f=!0,U}/*! #__NO_SIDE_EFFECTS__ */function gu(e,t,n){let s,r;const o=typeof t=="function";s=e,r=o?n:t;function i(l,c){const a=wl();return l=l||(a?De(gi,null):null),l&&zn(l),l=pi,l._s.has(s)||(o?_i(s,t,r,l):pu(s,r,l)),l._s.get(s)}return i.$id=s,i}const mu="/api";class _u{constructor(t){Zs(this,"baseUrl");this.baseUrl=t}getToken(){return localStorage.getItem("accessToken")}async request(t,n,s){const r={"Content-Type":"application/json"},o=this.getToken();o&&(r.Authorization=`Bearer ${o}`);const i={method:t,headers:r};s&&(i.body=JSON.stringify(s));const l=await fetch(`${this.baseUrl}${n}`,i);if(l.status===401&&await this.tryRefreshToken()){r.Authorization=`Bearer ${this.getToken()}`;const f=await fetch(`${this.baseUrl}${n}`,{...i,headers:r});return{data:await f.json(),status:f.status}}const c=await l.json();if(!l.ok)throw new Error(c.error||"Request failed");return{data:c,status:l.status}}async tryRefreshToken(){const t=localStorage.getItem("refreshToken");if(!t)return!1;try{const n=await fetch(`${this.baseUrl}/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:t})});if(!n.ok)return!1;const s=await n.json();return localStorage.setItem("accessToken",s.accessToken),!0}catch{return!1}}get(t){return this.request("GET",t)}post(t,n){return this.request("POST",t,n)}put(t,n){return this.request("PUT",t,n)}delete(t){return this.request("DELETE",t)}}const $t=new _u(mu),yi=gu("auth",()=>{const e=Dt(null),t=Dt(localStorage.getItem("accessToken")),n=Dt(localStorage.getItem("refreshToken")),s=Dt(localStorage.getItem("orgSlug")||""),r=ce(()=>!!e.value&&!!t.value),o=ce(()=>!!t.value),i=ce(()=>{var S;return((S=e.value)==null?void 0:S.role)==="chef"}),l=ce(()=>{var S;return((S=e.value)==null?void 0:S.role)==="disponent"}),c=ce(()=>{var S;return((S=e.value)==null?void 0:S.role)==="mitarbeiter"}),a=ce(()=>i.value||l.value),f=ce(()=>i.value||l.value),d=ce(()=>e.value?`${e.value.first_name} ${e.value.last_name}`:"");function g(S,U){t.value=S,n.value=U,localStorage.setItem("accessToken",S),localStorage.setItem("refreshToken",U)}function m(S){s.value=S,localStorage.setItem("orgSlug",S)}function O(){e.value=null,t.value=null,n.value=null,localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken")}async function R(S,U,le){const W=await $t.post("/auth/login",{email:S,password:U,org_slug:le});return g(W.data.accessToken,W.data.refreshToken),m(le),e.value=W.data.user,W.data}async function j(S){return(await $t.post("/auth/register",S)).data}async function L(){try{await $t.post("/auth/logout")}catch{}O()}async function T(){try{const S=await $t.get("/auth/me");e.value=S.data.user}catch{O()}}async function N(){if(!n.value)throw new Error("No refresh token");const S=await $t.post("/auth/refresh",{refreshToken:n.value});return t.value=S.data.accessToken,localStorage.setItem("accessToken",S.data.accessToken),S.data.accessToken}return{user:e,accessToken:t,refreshToken:n,orgSlug:s,isAuthenticated:r,hasStoredToken:o,isChef:i,isDisponent:l,isMitarbeiter:c,canManageUsers:a,canManageOrders:f,fullName:d,login:R,register:j,logout:L,fetchCurrentUser:T,refreshAccessToken:N,setOrgSlug:m}}),yu=Ks({__name:"App",setup(e){const t=yi();return jo(async()=>{t.hasStoredToken&&await t.fetchCurrentUser()}),(n,s)=>{const r=Wl("router-view");return si(),oi(r)}}}),vu="modulepreload",bu=function(e){return"/"+e},Vr={},he=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=bu(c),c in Vr)return;Vr[c]=!0;const a=c.endsWith(".css"),f=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const d=document.createElement("link");if(d.rel=a?"stylesheet":vu,a||(d.as="script"),d.crossOrigin="",d.href=c,l&&d.setAttribute("nonce",l),document.head.appendChild(d),a)return new Promise((g,m)=>{d.addEventListener("load",g),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return r.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};/*!
|
|
* vue-router v4.6.4
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const Nt=typeof document<"u";function vi(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Eu(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&vi(e.default)}const Q=Object.assign;function cs(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ve(r)?r.map(e):e(r)}return n}const on=()=>{},Ve=Array.isArray;function Fr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const bi=/#/g,Su=/&/g,Au=/\//g,Ru=/=/g,xu=/\?/g,Ei=/\+/g,wu=/%5B/g,Cu=/%5D/g,Si=/%5E/g,Ou=/%60/g,Ai=/%7B/g,Tu=/%7C/g,Ri=/%7D/g,Pu=/%20/g;function $s(e){return e==null?"":encodeURI(""+e).replace(Tu,"|").replace(wu,"[").replace(Cu,"]")}function Iu(e){return $s(e).replace(Ai,"{").replace(Ri,"}").replace(Si,"^")}function Rs(e){return $s(e).replace(Ei,"%2B").replace(Pu,"+").replace(bi,"%23").replace(Su,"%26").replace(Ou,"`").replace(Ai,"{").replace(Ri,"}").replace(Si,"^")}function Nu(e){return Rs(e).replace(Ru,"%3D")}function Du(e){return $s(e).replace(bi,"%23").replace(xu,"%3F")}function Mu(e){return Du(e).replace(Au,"%2F")}function dn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Lu=/\/$/,Vu=e=>e.replace(Lu,"");function us(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return c=l>=0&&c>l?-1:c,c>=0&&(s=t.slice(0,c),o=t.slice(c,l>0?l:t.length),r=e(o.slice(1))),l>=0&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=Uu(s??t,n),{fullPath:s+o+i,path:s,query:r,hash:dn(i)}}function Fu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function jr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ju(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Ut(t.matched[s],n.matched[r])&&xi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ut(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function xi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Hu(e[n],t[n]))return!1;return!0}function Hu(e,t){return Ve(e)?Hr(e,t):Ve(t)?Hr(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Hr(e,t){return Ve(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Uu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i<s.length;i++)if(l=s[i],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const at={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let xs=function(e){return e.pop="pop",e.push="push",e}({}),fs=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function ku(e){if(!e)if(Nt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Vu(e)}const Bu=/^[^#]+#/;function Ku(e,t){return e.replace(Bu,"#")+t}function Gu(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 Qn=()=>({left:window.scrollX,top:window.scrollY});function Wu(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Gu(r,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 Ur(e,t){return(history.state?history.state.position-t:-1)+e}const ws=new Map;function qu(e,t){ws.set(e,t)}function $u(e){const t=ws.get(e);return ws.delete(e),t}function Ju(e){return typeof e=="string"||e&&typeof e=="object"}function wi(e){return typeof e=="string"||typeof e=="symbol"}let oe=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Ci=Symbol("");oe.MATCHER_NOT_FOUND+"",oe.NAVIGATION_GUARD_REDIRECT+"",oe.NAVIGATION_ABORTED+"",oe.NAVIGATION_CANCELLED+"",oe.NAVIGATION_DUPLICATED+"";function kt(e,t){return Q(new Error,{type:e,[Ci]:!0},t)}function Ye(e,t){return e instanceof Error&&Ci in e&&(t==null||!!(e.type&t))}const zu=["params","query","hash"];function Qu(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of zu)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Yu(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const r=n[s].replace(Ei," "),o=r.indexOf("="),i=dn(o<0?r:r.slice(0,o)),l=o<0?null:dn(r.slice(o+1));if(i in t){let c=t[i];Ve(c)||(c=t[i]=[c]),c.push(l)}else t[i]=l}return t}function kr(e){let t="";for(let n in e){const s=e[n];if(n=Nu(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ve(s)?s.map(r=>r&&Rs(r)):[s&&Rs(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Xu(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ve(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Zu=Symbol(""),Br=Symbol(""),Yn=Symbol(""),Js=Symbol(""),Cs=Symbol("");function Jt(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function pt(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const a=g=>{g===!1?c(kt(oe.NAVIGATION_ABORTED,{from:n,to:t})):g instanceof Error?c(g):Ju(g)?c(kt(oe.NAVIGATION_GUARD_REDIRECT,{from:t,to:g})):(i&&s.enterCallbacks[r]===i&&typeof g=="function"&&i.push(g),l())},f=o(()=>e.call(s&&s.instances[r],t,n,a));let d=Promise.resolve(f);e.length<3&&(d=d.then(a)),d.catch(g=>c(g))})}function as(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(vi(c)){const a=(c.__vccOpts||c)[t];a&&o.push(pt(a,n,s,i,l,r))}else{let a=c();o.push(()=>a.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const d=Eu(f)?f.default:f;i.mods[l]=f,i.components[l]=d;const g=(d.__vccOpts||d)[t];return g&&pt(g,n,s,i,l,r)()}))}}return o}function ef(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const l=t.matched[i];l&&(e.matched.find(a=>Ut(a,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(a=>Ut(a,c))||r.push(c))}return[n,s,r]}/*!
|
|
* vue-router v4.6.4
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/let tf=()=>location.protocol+"//"+location.host;function Oi(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let i=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(i);return l[0]!=="/"&&(l="/"+l),jr(l,"")}return jr(n,e)+s+r}function nf(e,t,n,s){let r=[],o=[],i=null;const l=({state:g})=>{const m=Oi(e,location),O=n.value,R=t.value;let j=0;if(g){if(n.value=m,t.value=g,i&&i===O){i=null;return}j=R?g.position-R.position:0}else s(m);r.forEach(L=>{L(n.value,O,{delta:j,type:xs.pop,direction:j?j>0?fs.forward:fs.back:fs.unknown})})};function c(){i=n.value}function a(g){r.push(g);const m=()=>{const O=r.indexOf(g);O>-1&&r.splice(O,1)};return o.push(m),m}function f(){if(document.visibilityState==="hidden"){const{history:g}=window;if(!g.state)return;g.replaceState(Q({},g.state,{scroll:Qn()}),"")}}function d(){for(const g of o)g();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:c,listen:a,destroy:d}}function Kr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Qn():null}}function sf(e){const{history:t,location:n}=window,s={value:Oi(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,a,f){const d=e.indexOf("#"),g=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+c:tf()+e+c;try{t[f?"replaceState":"pushState"](a,"",g),r.value=a}catch(m){console.error(m),n[f?"replace":"assign"](g)}}function i(c,a){o(c,Q({},t.state,Kr(r.value.back,c,r.value.forward,!0),a,{position:r.value.position}),!0),s.value=c}function l(c,a){const f=Q({},r.value,t.state,{forward:c,scroll:Qn()});o(f.current,f,!0),o(c,Q({},Kr(s.value,c,null),{position:f.position+1},a),!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function rf(e){e=ku(e);const t=sf(e),n=nf(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Q({location:"",base:e,go:s,createHref:Ku.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let St=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var fe=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(fe||{});const of={type:St.Static,value:""},lf=/[a-zA-Z0-9_]/;function cf(e){if(!e)return[[]];if(e==="/")return[[of]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${a}": ${m}`)}let n=fe.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,a="",f="";function d(){a&&(n===fe.Static?o.push({type:St.Static,value:a}):n===fe.Param||n===fe.ParamRegExp||n===fe.ParamRegExpEnd?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:St.Param,value:a,regexp:f,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),a="")}function g(){a+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&n!==fe.ParamRegExp){s=n,n=fe.EscapeNext;continue}switch(n){case fe.Static:c==="/"?(a&&d(),i()):c===":"?(d(),n=fe.Param):g();break;case fe.EscapeNext:g(),n=s;break;case fe.Param:c==="("?n=fe.ParamRegExp:lf.test(c)?g():(d(),n=fe.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case fe.ParamRegExp:c===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+c:n=fe.ParamRegExpEnd:f+=c;break;case fe.ParamRegExpEnd:d(),n=fe.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--,f="";break;default:t("Unknown state");break}}return n===fe.ParamRegExp&&t(`Unfinished custom RegExp for param "${a}"`),d(),i(),r}const Gr="[^/]+?",uf={sensitive:!1,strict:!1,start:!0,end:!0};var ye=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(ye||{});const ff=/[.+*?^${}()[\]/\\]/g;function af(e,t){const n=Q({},uf,t),s=[];let r=n.start?"^":"";const o=[];for(const a of e){const f=a.length?[]:[ye.Root];n.strict&&!a.length&&(r+="/");for(let d=0;d<a.length;d++){const g=a[d];let m=ye.Segment+(n.sensitive?ye.BonusCaseSensitive:0);if(g.type===St.Static)d||(r+="/"),r+=g.value.replace(ff,"\\$&"),m+=ye.Static;else if(g.type===St.Param){const{value:O,repeatable:R,optional:j,regexp:L}=g;o.push({name:O,repeatable:R,optional:j});const T=L||Gr;if(T!==Gr){m+=ye.BonusCustomRegExp;try{`${T}`}catch(S){throw new Error(`Invalid custom RegExp for param "${O}" (${T}): `+S.message)}}let N=R?`((?:${T})(?:/(?:${T}))*)`:`(${T})`;d||(N=j&&a.length<2?`(?:/${N})`:"/"+N),j&&(N+="?"),r+=N,m+=ye.Dynamic,j&&(m+=ye.BonusOptional),R&&(m+=ye.BonusRepeatable),T===".*"&&(m+=ye.BonusWildcard)}f.push(m)}s.push(f)}if(n.strict&&n.end){const a=s.length-1;s[a][s[a].length-1]+=ye.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function l(a){const f=a.match(i),d={};if(!f)return null;for(let g=1;g<f.length;g++){const m=f[g]||"",O=o[g-1];d[O.name]=m&&O.repeatable?m.split("/"):m}return d}function c(a){let f="",d=!1;for(const g of e){(!d||!f.endsWith("/"))&&(f+="/"),d=!1;for(const m of g)if(m.type===St.Static)f+=m.value;else if(m.type===St.Param){const{value:O,repeatable:R,optional:j}=m,L=O in a?a[O]:"";if(Ve(L)&&!R)throw new Error(`Provided param "${O}" is an array but it is not repeatable (* or + modifiers)`);const T=Ve(L)?L.join("/"):L;if(!T)if(j)g.length<2&&(f.endsWith("/")?f=f.slice(0,-1):d=!0);else throw new Error(`Missing required param "${O}"`);f+=T}}return f||"/"}return{re:i,score:s,keys:o,parse:l,stringify:c}}function hf(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]===ye.Static+ye.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===ye.Static+ye.Segment?1:-1:0}function Ti(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=hf(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(Wr(s))return 1;if(Wr(r))return-1}return r.length-s.length}function Wr(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const df={strict:!1,end:!0,sensitive:!1};function pf(e,t,n){const s=af(cf(e.path),n),r=Q(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function gf(e,t){const n=[],s=new Map;t=Fr(df,t);function r(d){return s.get(d)}function o(d,g,m){const O=!m,R=$r(d);R.aliasOf=m&&m.record;const j=Fr(t,d),L=[R];if("alias"in d){const S=typeof d.alias=="string"?[d.alias]:d.alias;for(const U of S)L.push($r(Q({},R,{components:m?m.record.components:R.components,path:U,aliasOf:m?m.record:R})))}let T,N;for(const S of L){const{path:U}=S;if(g&&U[0]!=="/"){const le=g.record.path,W=le[le.length-1]==="/"?"":"/";S.path=g.record.path+(U&&W+U)}if(T=pf(S,g,j),m?m.alias.push(T):(N=N||T,N!==T&&N.alias.push(T),O&&d.name&&!Jr(T)&&i(d.name)),Pi(T)&&c(T),R.children){const le=R.children;for(let W=0;W<le.length;W++)o(le[W],T,m&&m.children[W])}m=m||T}return N?()=>{i(N)}:on}function i(d){if(wi(d)){const g=s.get(d);g&&(s.delete(d),n.splice(n.indexOf(g),1),g.children.forEach(i),g.alias.forEach(i))}else{const g=n.indexOf(d);g>-1&&(n.splice(g,1),d.record.name&&s.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function c(d){const g=yf(d,n);n.splice(g,0,d),d.record.name&&!Jr(d)&&s.set(d.record.name,d)}function a(d,g){let m,O={},R,j;if("name"in d&&d.name){if(m=s.get(d.name),!m)throw kt(oe.MATCHER_NOT_FOUND,{location:d});j=m.record.name,O=Q(qr(g.params,m.keys.filter(N=>!N.optional).concat(m.parent?m.parent.keys.filter(N=>N.optional):[]).map(N=>N.name)),d.params&&qr(d.params,m.keys.map(N=>N.name))),R=m.stringify(O)}else if(d.path!=null)R=d.path,m=n.find(N=>N.re.test(R)),m&&(O=m.parse(R),j=m.record.name);else{if(m=g.name?s.get(g.name):n.find(N=>N.re.test(g.path)),!m)throw kt(oe.MATCHER_NOT_FOUND,{location:d,currentLocation:g});j=m.record.name,O=Q({},g.params,d.params),R=m.stringify(O)}const L=[];let T=m;for(;T;)L.unshift(T.record),T=T.parent;return{name:j,path:R,params:O,matched:L,meta:_f(L)}}e.forEach(d=>o(d));function f(){n.length=0,s.clear()}return{addRoute:o,resolve:a,removeRoute:i,clearRoutes:f,getRoutes:l,getRecordMatcher:r}}function qr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function $r(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:mf(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 mf(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 Jr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function _f(e){return e.reduce((t,n)=>Q(t,n.meta),{})}function yf(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;Ti(e,t[o])<0?s=o:n=o+1}const r=vf(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function vf(e){let t=e;for(;t=t.parent;)if(Pi(t)&&Ti(e,t)===0)return t}function Pi({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function zr(e){const t=De(Yn),n=De(Js),s=ce(()=>{const c=Rt(e.to);return t.resolve(c)}),r=ce(()=>{const{matched:c}=s.value,{length:a}=c,f=c[a-1],d=n.matched;if(!f||!d.length)return-1;const g=d.findIndex(Ut.bind(null,f));if(g>-1)return g;const m=Qr(c[a-2]);return a>1&&Qr(f)===m&&d[d.length-1].path!==m?d.findIndex(Ut.bind(null,c[a-2])):g}),o=ce(()=>r.value>-1&&Rf(n.params,s.value.params)),i=ce(()=>r.value>-1&&r.value===n.matched.length-1&&xi(n.params,s.value.params));function l(c={}){if(Af(c)){const a=t[Rt(e.replace)?"replace":"push"](Rt(e.to)).catch(on);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>a),a}return Promise.resolve()}return{route:s,href:ce(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}function bf(e){return e.length===1?e[0]:e}const Ef=Ks({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:zr,setup(e,{slots:t}){const n=gn(zr(e)),{options:s}=De(Yn),r=ce(()=>({[Yr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Yr(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&bf(t.default(n));return e.custom?o:ai("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),Sf=Ef;function Af(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 Rf(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Ve(r)||r.length!==s.length||s.some((o,i)=>o.valueOf()!==r[i].valueOf()))return!1}return!0}function Qr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Yr=(e,t,n)=>e??t??n,xf=Ks({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=De(Cs),r=ce(()=>e.route||s.value),o=De(Br,0),i=ce(()=>{let a=Rt(o);const{matched:f}=r.value;let d;for(;(d=f[a])&&!d.components;)a++;return a}),l=ce(()=>r.value.matched[i.value]);Sn(Br,ce(()=>i.value+1)),Sn(Zu,l),Sn(Cs,r);const c=Dt();return Zt(()=>[c.value,l.value,e.name],([a,f,d],[g,m,O])=>{f&&(f.instances[d]=a,m&&m!==f&&a&&a===g&&(f.leaveGuards.size||(f.leaveGuards=m.leaveGuards),f.updateGuards.size||(f.updateGuards=m.updateGuards))),a&&f&&(!m||!Ut(f,m)||!g)&&(f.enterCallbacks[d]||[]).forEach(R=>R(a))},{flush:"post"}),()=>{const a=r.value,f=e.name,d=l.value,g=d&&d.components[f];if(!g)return Xr(n.default,{Component:g,route:a});const m=d.props[f],O=m?m===!0?a.params:typeof m=="function"?m(a):m:null,j=ai(g,Q({},O,t,{onVnodeUnmounted:L=>{L.component.isUnmounted&&(d.instances[f]=null)},ref:c}));return Xr(n.default,{Component:j,route:a})||j}}});function Xr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const wf=xf;function Cf(e){const t=gf(e.routes,e),n=e.parseQuery||Yu,s=e.stringifyQuery||kr,r=e.history,o=Jt(),i=Jt(),l=Jt(),c=hl(at);let a=at;Nt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=cs.bind(null,v=>""+v),d=cs.bind(null,Mu),g=cs.bind(null,dn);function m(v,I){let C,D;return wi(v)?(C=t.getRecordMatcher(v),D=I):D=v,t.addRoute(D,C)}function O(v){const I=t.getRecordMatcher(v);I&&t.removeRoute(I)}function R(){return t.getRoutes().map(v=>v.record)}function j(v){return!!t.getRecordMatcher(v)}function L(v,I){if(I=Q({},I||c.value),typeof v=="string"){const p=us(n,v,I.path),_=t.resolve({path:p.path},I),b=r.createHref(p.fullPath);return Q(p,_,{params:g(_.params),hash:dn(p.hash),redirectedFrom:void 0,href:b})}let C;if(v.path!=null)C=Q({},v,{path:us(n,v.path,I.path).path});else{const p=Q({},v.params);for(const _ in p)p[_]==null&&delete p[_];C=Q({},v,{params:d(p)}),I.params=d(I.params)}const D=t.resolve(C,I),q=v.hash||"";D.params=f(g(D.params));const u=Fu(s,Q({},v,{hash:Iu(q),path:D.path})),h=r.createHref(u);return Q({fullPath:u,hash:q,query:s===kr?Xu(v.query):v.query||{}},D,{redirectedFrom:void 0,href:h})}function T(v){return typeof v=="string"?us(n,v,c.value.path):Q({},v)}function N(v,I){if(a!==v)return kt(oe.NAVIGATION_CANCELLED,{from:I,to:v})}function S(v){return W(v)}function U(v){return S(Q(T(v),{replace:!0}))}function le(v,I){const C=v.matched[v.matched.length-1];if(C&&C.redirect){const{redirect:D}=C;let q=typeof D=="function"?D(v,I):D;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=T(q):{path:q},q.params={}),Q({query:v.query,hash:v.hash,params:q.path!=null?{}:v.params},q)}}function W(v,I){const C=a=L(v),D=c.value,q=v.state,u=v.force,h=v.replace===!0,p=le(C,D);if(p)return W(Q(T(p),{state:typeof p=="object"?Q({},q,p.state):q,force:u,replace:h}),I||C);const _=C;_.redirectedFrom=I;let b;return!u&&ju(s,D,C)&&(b=kt(oe.NAVIGATION_DUPLICATED,{to:_,from:D}),Fe(D,D,!0,!1)),(b?Promise.resolve(b):re(_,D)).catch(y=>Ye(y)?Ye(y,oe.NAVIGATION_GUARD_REDIRECT)?y:ft(y):z(y,_,D)).then(y=>{if(y){if(Ye(y,oe.NAVIGATION_GUARD_REDIRECT))return W(Q({replace:h},T(y.to),{state:typeof y.to=="object"?Q({},q,y.to.state):q,force:u}),I||_)}else y=Ce(_,D,!0,h,q);return me(_,D,y),y})}function K(v,I){const C=N(v,I);return C?Promise.reject(C):Promise.resolve()}function G(v){const I=Ot.values().next().value;return I&&typeof I.runWithContext=="function"?I.runWithContext(v):v()}function re(v,I){let C;const[D,q,u]=ef(v,I);C=as(D.reverse(),"beforeRouteLeave",v,I);for(const p of D)p.leaveGuards.forEach(_=>{C.push(pt(_,v,I))});const h=K.bind(null,v,I);return C.push(h),Ne(C).then(()=>{C=[];for(const p of o.list())C.push(pt(p,v,I));return C.push(h),Ne(C)}).then(()=>{C=as(q,"beforeRouteUpdate",v,I);for(const p of q)p.updateGuards.forEach(_=>{C.push(pt(_,v,I))});return C.push(h),Ne(C)}).then(()=>{C=[];for(const p of u)if(p.beforeEnter)if(Ve(p.beforeEnter))for(const _ of p.beforeEnter)C.push(pt(_,v,I));else C.push(pt(p.beforeEnter,v,I));return C.push(h),Ne(C)}).then(()=>(v.matched.forEach(p=>p.enterCallbacks={}),C=as(u,"beforeRouteEnter",v,I,G),C.push(h),Ne(C))).then(()=>{C=[];for(const p of i.list())C.push(pt(p,v,I));return C.push(h),Ne(C)}).catch(p=>Ye(p,oe.NAVIGATION_CANCELLED)?p:Promise.reject(p))}function me(v,I,C){l.list().forEach(D=>G(()=>D(v,I,C)))}function Ce(v,I,C,D,q){const u=N(v,I);if(u)return u;const h=I===at,p=Nt?history.state:{};C&&(D||h?r.replace(v.fullPath,Q({scroll:h&&p&&p.scroll},q)):r.push(v.fullPath,q)),c.value=v,Fe(v,I,C,h),ft()}let Ee;function _t(){Ee||(Ee=r.listen((v,I,C)=>{if(!yt.listening)return;const D=L(v),q=le(D,yt.currentRoute.value);if(q){W(Q(q,{replace:!0,force:!0}),D).catch(on);return}a=D;const u=c.value;Nt&&qu(Ur(u.fullPath,C.delta),Qn()),re(D,u).catch(h=>Ye(h,oe.NAVIGATION_ABORTED|oe.NAVIGATION_CANCELLED)?h:Ye(h,oe.NAVIGATION_GUARD_REDIRECT)?(W(Q(T(h.to),{force:!0}),D).then(p=>{Ye(p,oe.NAVIGATION_ABORTED|oe.NAVIGATION_DUPLICATED)&&!C.delta&&C.type===xs.pop&&r.go(-1,!1)}).catch(on),Promise.reject()):(C.delta&&r.go(-C.delta,!1),z(h,D,u))).then(h=>{h=h||Ce(D,u,!1),h&&(C.delta&&!Ye(h,oe.NAVIGATION_CANCELLED)?r.go(-C.delta,!1):C.type===xs.pop&&Ye(h,oe.NAVIGATION_ABORTED|oe.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),me(D,u,h)}).catch(on)}))}let ut=Jt(),se=Jt(),B;function z(v,I,C){ft(v);const D=se.list();return D.length?D.forEach(q=>q(v,I,C)):console.error(v),Promise.reject(v)}function ze(){return B&&c.value!==at?Promise.resolve():new Promise((v,I)=>{ut.add([v,I])})}function ft(v){return B||(B=!v,_t(),ut.list().forEach(([I,C])=>v?C(v):I()),ut.reset()),v}function Fe(v,I,C,D){const{scrollBehavior:q}=e;if(!Nt||!q)return Promise.resolve();const u=!C&&$u(Ur(v.fullPath,0))||(D||!C)&&history.state&&history.state.scroll||null;return Gn().then(()=>q(v,I,u)).then(h=>h&&Wu(h)).catch(h=>z(h,v,I))}const Se=v=>r.go(v);let Ct;const Ot=new Set,yt={currentRoute:c,listening:!0,addRoute:m,removeRoute:O,clearRoutes:t.clearRoutes,hasRoute:j,getRoutes:R,resolve:L,options:e,push:S,replace:U,go:Se,back:()=>Se(-1),forward:()=>Se(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:se.add,isReady:ze,install(v){v.component("RouterLink",Sf),v.component("RouterView",wf),v.config.globalProperties.$router=yt,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>Rt(c)}),Nt&&!Ct&&c.value===at&&(Ct=!0,S(r.location).catch(D=>{}));const I={};for(const D in at)Object.defineProperty(I,D,{get:()=>c.value[D],enumerable:!0});v.provide(Yn,yt),v.provide(Js,xo(I)),v.provide(Cs,c);const C=v.unmount;Ot.add(v),v.unmount=function(){Ot.delete(v),Ot.size<1&&(a=at,Ee&&Ee(),Ee=null,c.value=at,Ct=!1,B=!1),C()}}};function Ne(v){return v.reduce((I,C)=>I.then(()=>G(C)),Promise.resolve())}return yt}function jf(){return De(Yn)}function Hf(e){return De(Js)}const Ii=Cf({history:rf(),routes:[{path:"/login",name:"login",component:()=>he(()=>import("./LoginView-Do3PQjab.js"),[]),meta:{guest:!0}},{path:"/register",name:"register-org",component:()=>he(()=>import("./RegisterOrgView-BLP8qTxS.js"),[]),meta:{guest:!0}},{path:"/admin",name:"admin",component:()=>he(()=>import("./AdminDashboardView-B1X380mB.js"),[]),meta:{requiresAuth:!0}},{path:"/",component:()=>he(()=>import("./AppLayout-Dn1Dax5w.js"),[]),meta:{requiresAuth:!0},children:[{path:"",name:"dashboard",component:()=>he(()=>import("./DashboardView-Dm3JX8-R.js"),[])},{path:"orders",name:"orders",component:()=>he(()=>import("./OrdersView-mynFcmCT.js"),[])},{path:"orders/:id",name:"order-detail",component:()=>he(()=>import("./OrderDetailView-BOsK7PdF.js"),[])},{path:"users",name:"users",component:()=>he(()=>import("./UsersView-D-cYRxCO.js"),[]),meta:{roles:["chef","disponent"]}},{path:"availability",name:"availability",component:()=>he(()=>import("./AvailabilityView-B7DXJOIF.js"),[])},{path:"timesheets",name:"timesheets",component:()=>he(()=>import("./TimesheetsView-icu2yWhU.js"),[])},{path:"settings",name:"settings",component:()=>he(()=>import("./SettingsView-Dui31Esj.js"),[])},{path:"modules",name:"modules",component:()=>he(()=>import("./ModulesView-FSR3_RHO.js"),[]),meta:{roles:["chef"]}},{path:"partnerships",name:"partnerships",component:()=>he(()=>import("./PartnershipsView-B4wJavhc.js"),[])},{path:"help",name:"help",component:()=>he(()=>import("./HelpView-D57TqZOy.js"),[])},{path:"qualifications",name:"qualifications",component:()=>he(()=>import("./QualificationsView-HIWg4xhg.js"),[])},{path:"objects",name:"objects",component:()=>he(()=>import("./ObjectsView-CqpXdUlY.js"),[])}]}]});Ii.beforeEach(async(e,t,n)=>{var l;const s=yi();!s.isAuthenticated&&s.hasStoredToken&&await s.fetchCurrentUser();const r=e.matched.some(c=>c.meta.requiresAuth),o=e.matched.some(c=>c.meta.guest),i=e.meta.roles;r&&!s.isAuthenticated?n({name:"login",query:{redirect:e.fullPath}}):o&&s.isAuthenticated?n({name:"dashboard"}):i&&!i.includes(((l=s.user)==null?void 0:l.role)||"")?n({name:"dashboard"}):n()});const zs=iu(yu);zs.use(uu());zs.use(Ii);zs.mount("#app");export{Nf as A,Lf as B,Ze as F,li as a,Tf as b,If as c,Ks as d,Df as e,jf as f,Hf as g,Zt as h,we as i,xl as j,ce as k,Wl as l,$t as m,Ns as n,si as o,Ac as p,jo as q,Dt as r,Vf as s,Wi as t,yi as u,Mf as v,Ff as w,Pf as x,Rt as y,oi as z};
|