Views added: - ShiftsView (Schichtplanung) - PatrolsView (Wächterkontrolle) - IncidentsView (Vorfallberichte) - VehiclesView (Fahrzeuge) - DocumentsView (Dokumente) - CustomersView (Kunden/CRM) - BillingView (Abrechnung) - ObjectsView (enhanced with contacts, instructions) Updated: - Router with all new routes - Sidebar with complete navigation
30 lines
106 KiB
JavaScript
30 lines
106 KiB
JavaScript
var ji=Object.defineProperty;var Ui=(e,t,n)=>t in e?ji(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var cr=(e,t,n)=>Ui(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 ks(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ee={},Vt=[],Ye=()=>{},uo=()=>!1,Un=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Vs=e=>e.startsWith("onUpdate:"),de=Object.assign,Fs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Bi=Object.prototype.hasOwnProperty,Y=(e,t)=>Bi.call(e,t),V=Array.isArray,Ft=e=>vn(e)==="[object Map]",Wt=e=>vn(e)==="[object Set]",ur=e=>vn(e)==="[object Date]",B=e=>typeof e=="function",ae=e=>typeof e=="string",Xe=e=>typeof e=="symbol",Z=e=>e!==null&&typeof e=="object",ao=e=>(Z(e)||B(e))&&B(e.then)&&B(e.catch),fo=Object.prototype.toString,vn=e=>fo.call(e),Hi=e=>vn(e).slice(8,-1),ho=e=>vn(e)==="[object Object]",Bn=e=>ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,en=ks(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ki=/-\w/g,Ee=Hn(e=>e.replace(Ki,t=>t.slice(1).toUpperCase())),Gi=/\B([A-Z])/g,Pt=Hn(e=>e.replace(Gi,"-$1").toLowerCase()),Kn=Hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),os=Hn(e=>e?`on${Kn(e)}`:""),Qe=(e,t)=>!Object.is(e,t),An=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},po=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Gn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ar;const Wn=()=>ar||(ar=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function js(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ae(s)?zi(s):js(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(ae(e)||Z(e))return e}const Wi=/;(?![^(]*\))/g,qi=/:([^]+)/,$i=/\/\*[^]*?\*\//g;function zi(e){const t={};return e.replace($i,"").split(Wi).forEach(n=>{if(n){const s=n.split(qi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function qn(e){let t="";if(ae(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const s=qn(e[n]);s&&(t+=s+" ")}else if(Z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ji="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Qi=ks(Ji);function go(e){return!!e||e===""}function Yi(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=qt(e[s],t[s]);return n}function qt(e,t){if(e===t)return!0;let n=ur(e),s=ur(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Xe(e),s=Xe(t),n||s)return e===t;if(n=V(e),s=V(t),n||s)return n&&s?Yi(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||!qt(e[i],t[i]))return!1}}return String(e)===String(t)}function Us(e,t){return e.findIndex(n=>qt(n,t))}const mo=e=>!!(e&&e.__v_isRef===!0),ys=e=>ae(e)?e:e==null?"":V(e)||Z(e)&&(e.toString===fo||!B(e.toString))?mo(e)?ys(e.value):JSON.stringify(e,_o,2):String(e),_o=(e,t)=>mo(t)?_o(e,t.value):Ft(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[is(s,o)+" =>"]=r,n),{})}:Wt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>is(n))}:Xe(t)?is(t):Z(t)&&!V(t)&&!ho(t)?String(t):t,is=(e,t="")=>{var n;return Xe(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 he;class vo{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=he,!t&&he&&(this.index=(he.scopes||(he.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=he;try{return he=this,t()}finally{he=n}}}on(){++this._on===1&&(this.prevScope=he,he=this)}off(){this._on>0&&--this._on===0&&(he=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 yo(e){return new vo(e)}function bo(){return he}function Xi(e,t=!1){he&&he.cleanups.push(e)}let ne;const ls=new WeakSet;class Eo{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,he&&he.active&&he.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ls.has(this)&&(ls.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||wo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,fr(this),xo(this);const t=ne,n=je;ne=this,je=!0;try{return this.fn()}finally{Ao(this),ne=t,je=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ks(t);this.deps=this.depsTail=void 0,fr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ls.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){bs(this)&&this.run()}get dirty(){return bs(this)}}let So=0,tn,nn;function wo(e,t=!1){if(e.flags|=8,t){e.next=nn,nn=e;return}e.next=tn,tn=e}function Bs(){So++}function Hs(){if(--So>0)return;if(nn){let t=nn;for(nn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;tn;){let t=tn;for(tn=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 xo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ao(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Ks(s),Zi(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function bs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ro(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ro(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===fn)||(e.globalVersion=fn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!bs(e))))return;e.flags|=2;const t=e.dep,n=ne,s=je;ne=e,je=!0;try{xo(e);const r=e.fn(e._value);(t.version===0||Qe(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{ne=n,je=s,Ao(e),e.flags&=-3}}function Ks(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)Ks(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Zi(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let je=!0;const Co=[];function ut(){Co.push(je),je=!1}function at(){const e=Co.pop();je=e===void 0?!0:e}function fr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ne;ne=void 0;try{t()}finally{ne=n}}}let fn=0;class el{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 Gs{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||!je||ne===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ne)n=this.activeLink=new el(ne,this),ne.deps?(n.prevDep=ne.depsTail,ne.depsTail.nextDep=n,ne.depsTail=n):ne.deps=ne.depsTail=n,Oo(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++,fn++,this.notify(t)}notify(t){Bs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Hs()}}}function Oo(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)Oo(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Pn=new WeakMap,Ct=Symbol(""),Es=Symbol(""),dn=Symbol("");function pe(e,t,n){if(je&&ne){let s=Pn.get(e);s||Pn.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Gs),r.map=s,r.key=n),r.track()}}function ot(e,t,n,s,r,o){const i=Pn.get(e);if(!i){fn++;return}const l=c=>{c&&c.trigger()};if(Bs(),t==="clear")i.forEach(l);else{const c=V(e),f=c&&Bn(n);if(c&&n==="length"){const u=Number(s);i.forEach((d,g)=>{(g==="length"||g===dn||!Xe(g)&&g>=u)&&l(d)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),f&&l(i.get(dn)),t){case"add":c?f&&l(i.get("length")):(l(i.get(Ct)),Ft(e)&&l(i.get(Es)));break;case"delete":c||(l(i.get(Ct)),Ft(e)&&l(i.get(Es)));break;case"set":Ft(e)&&l(i.get(Ct));break}}Hs()}function tl(e,t){const n=Pn.get(e);return n&&n.get(t)}function Dt(e){const t=z(e);return t===e?t:(pe(t,"iterate",dn),Me(e)?t:t.map(Ue))}function $n(e){return pe(e=z(e),"iterate",dn),e}function ze(e,t){return ft(e)?Ut(lt(e)?Ue(t):t):Ue(t)}const nl={__proto__:null,[Symbol.iterator](){return cs(this,Symbol.iterator,e=>ze(this,e))},concat(...e){return Dt(this).concat(...e.map(t=>V(t)?Dt(t):t))},entries(){return cs(this,"entries",e=>(e[1]=ze(this,e[1]),e))},every(e,t){return tt(this,"every",e,t,void 0,arguments)},filter(e,t){return tt(this,"filter",e,t,n=>n.map(s=>ze(this,s)),arguments)},find(e,t){return tt(this,"find",e,t,n=>ze(this,n),arguments)},findIndex(e,t){return tt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return tt(this,"findLast",e,t,n=>ze(this,n),arguments)},findLastIndex(e,t){return tt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return tt(this,"forEach",e,t,void 0,arguments)},includes(...e){return us(this,"includes",e)},indexOf(...e){return us(this,"indexOf",e)},join(e){return Dt(this).join(e)},lastIndexOf(...e){return us(this,"lastIndexOf",e)},map(e,t){return tt(this,"map",e,t,void 0,arguments)},pop(){return zt(this,"pop")},push(...e){return zt(this,"push",e)},reduce(e,...t){return dr(this,"reduce",e,t)},reduceRight(e,...t){return dr(this,"reduceRight",e,t)},shift(){return zt(this,"shift")},some(e,t){return tt(this,"some",e,t,void 0,arguments)},splice(...e){return zt(this,"splice",e)},toReversed(){return Dt(this).toReversed()},toSorted(e){return Dt(this).toSorted(e)},toSpliced(...e){return Dt(this).toSpliced(...e)},unshift(...e){return zt(this,"unshift",e)},values(){return cs(this,"values",e=>ze(this,e))}};function cs(e,t,n){const s=$n(e),r=s[t]();return s!==e&&!Me(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const sl=Array.prototype;function tt(e,t,n,s,r,o){const i=$n(e),l=i!==e&&!Me(e),c=i[t];if(c!==sl[t]){const d=c.apply(e,o);return l?Ue(d):d}let f=n;i!==e&&(l?f=function(d,g){return n.call(this,ze(e,d),g,e)}:n.length>2&&(f=function(d,g){return n.call(this,d,g,e)}));const u=c.call(i,f,s);return l&&r?r(u):u}function dr(e,t,n,s){const r=$n(e),o=r!==e&&!Me(e);let i=n,l=!1;r!==e&&(o?(l=s.length===0,i=function(f,u,d){return l&&(l=!1,f=ze(e,f)),n.call(this,f,ze(e,u),d,e)}):n.length>3&&(i=function(f,u,d){return n.call(this,f,u,d,e)}));const c=r[t](i,...s);return l?ze(e,c):c}function us(e,t,n){const s=z(e);pe(s,"iterate",dn);const r=s[t](...n);return(r===-1||r===!1)&&zn(n[0])?(n[0]=z(n[0]),s[t](...n)):r}function zt(e,t,n=[]){ut(),Bs();const s=z(e)[t].apply(e,n);return Hs(),at(),s}const rl=ks("__proto__,__v_isRef,__isVue"),To=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Xe));function ol(e){Xe(e)||(e=String(e));const t=z(this);return pe(t,"has",e),t.hasOwnProperty(e)}class Po{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?gl:Mo:o?Do:No).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=V(t);if(!r){let c;if(i&&(c=nl[n]))return c;if(n==="hasOwnProperty")return ol}const l=Reflect.get(t,n,le(t)?t:s);if((Xe(n)?To.has(n):rl(n))||(r||pe(t,"get",n),o))return l;if(le(l)){const c=i&&Bn(n)?l:l.value;return r&&Z(c)?ws(c):c}return Z(l)?r?ws(l):yn(l):l}}class Io extends Po{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const i=V(t)&&Bn(n);if(!this._isShallow){const f=ft(o);if(!Me(s)&&!ft(s)&&(o=z(o),s=z(s)),!i&&le(o)&&!le(s))return f||(o.value=s),!0}const l=i?Number(n)<t.length:Y(t,n),c=Reflect.set(t,n,s,le(t)?t:r);return t===z(r)&&(l?Qe(s,o)&&ot(t,"set",n,s):ot(t,"add",n,s)),c}deleteProperty(t,n){const s=Y(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&ot(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Xe(n)||!To.has(n))&&pe(t,"has",n),s}ownKeys(t){return pe(t,"iterate",V(t)?"length":Ct),Reflect.ownKeys(t)}}class il extends Po{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ll=new Io,cl=new il,ul=new Io(!0);const Ss=e=>e,Sn=e=>Reflect.getPrototypeOf(e);function al(e,t,n){return function(...s){const r=this.__v_raw,o=z(r),i=Ft(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,f=r[e](...s),u=n?Ss:t?Ut:Ue;return!t&&pe(o,"iterate",c?Es:Ct),de(Object.create(f),{next(){const{value:d,done:g}=f.next();return g?{value:d,done:g}:{value:l?[u(d[0]),u(d[1])]:u(d),done:g}}})}}function wn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function fl(e,t){const n={get(r){const o=this.__v_raw,i=z(o),l=z(r);e||(Qe(r,l)&&pe(i,"get",r),pe(i,"get",l));const{has:c}=Sn(i),f=t?Ss:e?Ut:Ue;if(c.call(i,r))return f(o.get(r));if(c.call(i,l))return f(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&pe(z(r),"iterate",Ct),r.size},has(r){const o=this.__v_raw,i=z(o),l=z(r);return e||(Qe(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=z(l),f=t?Ss:e?Ut:Ue;return!e&&pe(c,"iterate",Ct),l.forEach((u,d)=>r.call(o,f(u),f(d),i))}};return de(n,e?{add:wn("add"),set:wn("set"),delete:wn("delete"),clear:wn("clear")}:{add(r){const o=z(this),i=Sn(o),l=z(r),c=!t&&!Me(r)&&!ft(r)?l:r;return i.has.call(o,c)||Qe(r,c)&&i.has.call(o,r)||Qe(l,c)&&i.has.call(o,l)||(o.add(c),ot(o,"add",c,c)),this},set(r,o){!t&&!Me(o)&&!ft(o)&&(o=z(o));const i=z(this),{has:l,get:c}=Sn(i);let f=l.call(i,r);f||(r=z(r),f=l.call(i,r));const u=c.call(i,r);return i.set(r,o),f?Qe(o,u)&&ot(i,"set",r,o):ot(i,"add",r,o),this},delete(r){const o=z(this),{has:i,get:l}=Sn(o);let c=i.call(o,r);c||(r=z(r),c=i.call(o,r)),l&&l.call(o,r);const f=o.delete(r);return c&&ot(o,"delete",r,void 0),f},clear(){const r=z(this),o=r.size!==0,i=r.clear();return o&&ot(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=al(r,e,t)}),n}function Ws(e,t){const n=fl(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 dl={get:Ws(!1,!1)},hl={get:Ws(!1,!0)},pl={get:Ws(!0,!1)};const No=new WeakMap,Do=new WeakMap,Mo=new WeakMap,gl=new WeakMap;function ml(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _l(e){return e.__v_skip||!Object.isExtensible(e)?0:ml(Hi(e))}function yn(e){return ft(e)?e:qs(e,!1,ll,dl,No)}function Lo(e){return qs(e,!1,ul,hl,Do)}function ws(e){return qs(e,!0,cl,pl,Mo)}function qs(e,t,n,s,r){if(!Z(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=_l(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 lt(e){return ft(e)?lt(e.__v_raw):!!(e&&e.__v_isReactive)}function ft(e){return!!(e&&e.__v_isReadonly)}function Me(e){return!!(e&&e.__v_isShallow)}function zn(e){return e?!!e.__v_raw:!1}function z(e){const t=e&&e.__v_raw;return t?z(t):e}function $s(e){return!Y(e,"__v_skip")&&Object.isExtensible(e)&&po(e,"__v_skip",!0),e}const Ue=e=>Z(e)?yn(e):e,Ut=e=>Z(e)?ws(e):e;function le(e){return e?e.__v_isRef===!0:!1}function Ie(e){return ko(e,!1)}function vl(e){return ko(e,!0)}function ko(e,t){return le(e)?e:new yl(e,t)}class yl{constructor(t,n){this.dep=new Gs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:z(t),this._value=n?t:Ue(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Me(t)||ft(t);t=s?t:z(t),Qe(t,n)&&(this._rawValue=t,this._value=s?t:Ue(t),this.dep.trigger())}}function Ot(e){return le(e)?e.value:e}const bl={get:(e,t,n)=>t==="__v_raw"?e:Ot(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return le(r)&&!le(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Vo(e){return lt(e)?e:new Proxy(e,bl)}function El(e){const t=V(e)?new Array(e.length):{};for(const n in e)t[n]=wl(e,n);return t}class Sl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=z(t);let r=!0,o=t;if(!V(t)||!Bn(String(n)))do r=!zn(o)||Me(o);while(r&&(o=o.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=Ot(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&le(this._raw[this._key])){const n=this._object[this._key];if(le(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return tl(this._raw,this._key)}}function wl(e,t,n){return new Sl(e,t,n)}class xl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Gs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=fn-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 wo(this,!0),!0}get value(){const t=this.dep.track();return Ro(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Al(e,t,n=!1){let s,r;return B(e)?s=e:(s=e.get,r=e.set),new xl(s,r,n)}const xn={},In=new WeakMap;let At;function Rl(e,t=!1,n=At){if(n){let s=In.get(n);s||In.set(n,s=[]),s.push(e)}}function Cl(e,t,n=ee){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:c}=n,f=w=>r?w:Me(w)||r===!1||r===0?it(w,1):it(w);let u,d,g,m,A=!1,S=!1;if(le(e)?(d=()=>e.value,A=Me(e)):lt(e)?(d=()=>f(e),A=!0):V(e)?(S=!0,A=e.some(w=>lt(w)||Me(w)),d=()=>e.map(w=>{if(le(w))return w.value;if(lt(w))return f(w);if(B(w))return c?c(w,2):w()})):B(e)?t?d=c?()=>c(e,2):e:d=()=>{if(g){ut();try{g()}finally{at()}}const w=At;At=u;try{return c?c(e,3,[m]):e(m)}finally{At=w}}:d=Ye,t&&r){const w=d,U=r===!0?1/0:r;d=()=>it(w(),U)}const N=bo(),M=()=>{u.stop(),N&&N.active&&Fs(N.effects,u)};if(o&&t){const w=t;t=(...U)=>{w(...U),M()}}let T=S?new Array(e.length).fill(xn):xn;const D=w=>{if(!(!(u.flags&1)||!u.dirty&&!w))if(t){const U=u.run();if(r||A||(S?U.some((ce,W)=>Qe(ce,T[W])):Qe(U,T))){g&&g();const ce=At;At=u;try{const W=[U,T===xn?void 0:S&&T[0]===xn?[]:T,m];T=U,c?c(t,3,W):t(...W)}finally{At=ce}}}else u.run()};return l&&l(D),u=new Eo(d),u.scheduler=i?()=>i(D,!1):D,m=w=>Rl(w,!1,u),g=u.onStop=()=>{const w=In.get(u);if(w){if(c)c(w,4);else for(const U of w)U();In.delete(u)}},t?s?D(!0):T=u.run():i?i(D.bind(null,!0),!0):u.run(),M.pause=u.pause.bind(u),M.resume=u.resume.bind(u),M.stop=M,M}function it(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--,le(e))it(e.value,t,n);else if(V(e))for(let s=0;s<e.length;s++)it(e[s],t,n);else if(Wt(e)||Ft(e))e.forEach(s=>{it(s,t,n)});else if(ho(e)){for(const s in e)it(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&it(e[s],t,n)}return e}/**
|
|
* @vue/runtime-core v3.5.30
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function bn(e,t,n,s){try{return s?e(...s):e()}catch(r){Jn(r,t,n)}}function Ze(e,t,n,s){if(B(e)){const r=bn(e,t,n,s);return r&&ao(r)&&r.catch(o=>{Jn(o,t,n)}),r}if(V(e)){const r=[];for(let o=0;o<e.length;o++)r.push(Ze(e[o],t,n,s));return r}}function Jn(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,f=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,c,f)===!1)return}l=l.parent}if(o){ut(),bn(o,null,10,[e,c,f]),at();return}}Ol(e,n,r,s,i)}function Ol(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const ye=[];let $e=-1;const jt=[];let _t=null,Lt=0;const Fo=Promise.resolve();let Nn=null;function Qn(e){const t=Nn||Fo;return e?t.then(this?e.bind(this):e):t}function Tl(e){let t=$e+1,n=ye.length;for(;t<n;){const s=t+n>>>1,r=ye[s],o=hn(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function zs(e){if(!(e.flags&1)){const t=hn(e),n=ye[ye.length-1];!n||!(e.flags&2)&&t>=hn(n)?ye.push(e):ye.splice(Tl(t),0,e),e.flags|=1,jo()}}function jo(){Nn||(Nn=Fo.then(Bo))}function Pl(e){V(e)?jt.push(...e):_t&&e.id===-1?_t.splice(Lt+1,0,e):e.flags&1||(jt.push(e),e.flags|=1),jo()}function hr(e,t,n=$e+1){for(;n<ye.length;n++){const s=ye[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;ye.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Uo(e){if(jt.length){const t=[...new Set(jt)].sort((n,s)=>hn(n)-hn(s));if(jt.length=0,_t){_t.push(...t);return}for(_t=t,Lt=0;Lt<_t.length;Lt++){const n=_t[Lt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}_t=null,Lt=0}}const hn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Bo(e){try{for($e=0;$e<ye.length;$e++){const t=ye[$e];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),bn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;$e<ye.length;$e++){const t=ye[$e];t&&(t.flags&=-2)}$e=-1,ye.length=0,Uo(),Nn=null,(ye.length||jt.length)&&Bo()}}let Ne=null,Ho=null;function Dn(e){const t=Ne;return Ne=e,Ho=e&&e.type.__scopeId||null,t}function Il(e,t=Ne,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&kn(-1);const o=Dn(t);let i;try{i=e(...r)}finally{Dn(o),s._d&&kn(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Nl(e,t){if(Ne===null)return e;const n=ts(Ne),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,l,c=ee]=t[r];o&&(B(o)&&(o={mounted:o,updated:o}),o.deep&&it(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:c}))}return e}function wt(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&&(ut(),Ze(c,n,8,[e.el,l,e,t]),at())}}function Rn(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 Fe(e,t,n=!1){const s=gi();if(s||Tt){let r=Tt?Tt._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&&B(t)?t.call(s&&s.proxy):t}}function Dl(){return!!(gi()||Tt)}const Ml=Symbol.for("v-scx"),Ll=()=>Fe(Ml);function sn(e,t,n){return Ko(e,t,n)}function Ko(e,t,n=ee){const{immediate:s,deep:r,flush:o,once:i}=n,l=de({},n),c=t&&s||!t&&o!=="post";let f;if(gn){if(o==="sync"){const m=Ll();f=m.__watcherHandles||(m.__watcherHandles=[])}else if(!c){const m=()=>{};return m.stop=Ye,m.resume=Ye,m.pause=Ye,m}}const u=ge;l.call=(m,A,S)=>Ze(m,u,A,S);let d=!1;o==="post"?l.scheduler=m=>{Re(m,u&&u.suspense)}:o!=="sync"&&(d=!0,l.scheduler=(m,A)=>{A?m():zs(m)}),l.augmentJob=m=>{t&&(m.flags|=4),d&&(m.flags|=2,u&&(m.id=u.uid,m.i=u))};const g=Cl(e,t,l);return gn&&(f?f.push(g):c&&g()),g}function kl(e,t,n){const s=this.proxy,r=ae(e)?e.includes(".")?Go(s,e):()=>s[e]:e.bind(s,s);let o;B(t)?o=t:(o=t.handler,n=t);const i=En(this),l=Ko(r,o.bind(s),n);return i(),l}function Go(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 Vl=Symbol("_vte"),Fl=e=>e.__isTeleport,jl=Symbol("_leaveCb");function Js(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Js(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 Yn(e,t){return B(e)?de({name:e.name},t,{setup:e}):e}function Wo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function pr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Mn=new WeakMap;function rn(e,t,n,s,r=!1){if(V(e)){e.forEach((S,N)=>rn(S,t&&(V(t)?t[N]:t),n,s,r));return}if(on(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&rn(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?ts(s.component):s.el,i=r?null:o,{i:l,r:c}=e,f=t&&t.r,u=l.refs===ee?l.refs={}:l.refs,d=l.setupState,g=z(d),m=d===ee?uo:S=>pr(u,S)?!1:Y(g,S),A=(S,N)=>!(N&&pr(u,N));if(f!=null&&f!==c){if(gr(t),ae(f))u[f]=null,m(f)&&(d[f]=null);else if(le(f)){const S=t;A(f,S.k)&&(f.value=null),S.k&&(u[S.k]=null)}}if(B(c))bn(c,l,12,[i,u]);else{const S=ae(c),N=le(c);if(S||N){const M=()=>{if(e.f){const T=S?m(c)?d[c]:u[c]:A()||!e.k?c.value:u[e.k];if(r)V(T)&&Fs(T,o);else if(V(T))T.includes(o)||T.push(o);else if(S)u[c]=[o],m(c)&&(d[c]=u[c]);else{const D=[o];A(c,e.k)&&(c.value=D),e.k&&(u[e.k]=D)}}else S?(u[c]=i,m(c)&&(d[c]=i)):N&&(A(c,e.k)&&(c.value=i),e.k&&(u[e.k]=i))};if(i){const T=()=>{M(),Mn.delete(e)};T.id=-1,Mn.set(e,T),Re(T,n)}else gr(e),M()}}}function gr(e){const t=Mn.get(e);t&&(t.flags|=8,Mn.delete(e))}Wn().requestIdleCallback;Wn().cancelIdleCallback;const on=e=>!!e.type.__asyncLoader,qo=e=>e.type.__isKeepAlive;function Ul(e,t){$o(e,"a",t)}function Bl(e,t){$o(e,"da",t)}function $o(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(Xn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)qo(r.parent.vnode)&&Hl(s,t,n,r),r=r.parent}}function Hl(e,t,n,s){const r=Xn(t,e,s,!0);Ys(()=>{Fs(s[t],r)},n)}function Xn(e,t,n=ge,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{ut();const l=En(n),c=Ze(t,n,e,i);return l(),at(),c});return s?r.unshift(o):r.push(o),o}}const dt=e=>(t,n=ge)=>{(!gn||e==="sp")&&Xn(e,(...s)=>t(...s),n)},Kl=dt("bm"),Qs=dt("m"),Gl=dt("bu"),Wl=dt("u"),ql=dt("bum"),Ys=dt("um"),$l=dt("sp"),zl=dt("rtg"),Jl=dt("rtc");function Ql(e,t=ge){Xn("ec",e,t)}const Yl="components";function Xl(e,t){return ec(Yl,e,!0,t)||e}const Zl=Symbol.for("v-ndc");function ec(e,t,n=!0,s=!1){const r=Ne||ge;if(r){const o=r.type;{const l=jc(o,!1);if(l&&(l===t||l===Ee(t)||l===Kn(Ee(t))))return o}const i=mr(r[e]||o[e],t)||mr(r.appContext[e],t);return!i&&s?o:i}}function mr(e,t){return e&&(e[t]||e[Ee(t)]||e[Kn(Ee(t))])}function _r(e,t,n,s){let r;const o=n,i=V(e);if(i||ae(e)){const l=i&<(e);let c=!1,f=!1;l&&(c=!Me(e),f=ft(e),e=$n(e)),r=new Array(e.length);for(let u=0,d=e.length;u<d;u++)r[u]=t(c?f?Ut(Ue(e[u])):Ue(e[u]):e[u],u,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,f=l.length;c<f;c++){const u=l[c];r[c]=t(e[u],u,c,o)}}else r=[];return r}const xs=e=>e?mi(e)?ts(e):xs(e.parent):null,ln=de(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=>xs(e.parent),$root:e=>xs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Jo(e),$forceUpdate:e=>e.f||(e.f=()=>{zs(e.update)}),$nextTick:e=>e.n||(e.n=Qn.bind(e.proxy)),$watch:e=>kl.bind(e)}),as=(e,t)=>e!==ee&&!e.__isScriptSetup&&Y(e,t),tc={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(as(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];As&&(i[t]=0)}}const f=ln[t];let u,d;if(f)return t==="$attrs"&&pe(e.attrs,"get",""),f(e);if((u=l.__cssModules)&&(u=u[t]))return u;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 as(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)||as(t,l)||Y(o,l)||Y(s,l)||Y(ln,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 vr(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let As=!0;function nc(e){const t=Jo(e),n=e.proxy,s=e.ctx;As=!1,t.beforeCreate&&yr(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:f,created:u,beforeMount:d,mounted:g,beforeUpdate:m,updated:A,activated:S,deactivated:N,beforeDestroy:M,beforeUnmount:T,destroyed:D,unmounted:w,render:U,renderTracked:ce,renderTriggered:W,errorCaptured:K,serverPrefetch:G,expose:re,inheritAttrs:me,components:Oe,directives:Se,filters:Et}=t;if(f&&sc(f,s,null),i)for(const H in i){const J=i[H];B(J)&&(s[H]=J.bind(n))}if(r){const H=r.call(n,n);Z(H)&&(e.data=yn(H))}if(As=!0,o)for(const H in o){const J=o[H],et=B(J)?J.bind(n,n):B(J.get)?J.get.bind(n,n):Ye,pt=!B(J)&&B(J.set)?J.set.bind(n):Ye,He=ue({get:et,set:pt});Object.defineProperty(s,H,{enumerable:!0,configurable:!0,get:()=>He.value,set:we=>He.value=we})}if(l)for(const H in l)zo(l[H],s,n,H);if(c){const H=B(c)?c.call(n):c;Reflect.ownKeys(H).forEach(J=>{Rn(J,H[J])})}u&&yr(u,e,"c");function se(H,J){V(J)?J.forEach(et=>H(et.bind(n))):J&&H(J.bind(n))}if(se(Kl,d),se(Qs,g),se(Gl,m),se(Wl,A),se(Ul,S),se(Bl,N),se(Ql,K),se(Jl,ce),se(zl,W),se(ql,T),se(Ys,w),se($l,G),V(re))if(re.length){const H=e.exposed||(e.exposed={});re.forEach(J=>{Object.defineProperty(H,J,{get:()=>n[J],set:et=>n[J]=et,enumerable:!0})})}else e.exposed||(e.exposed={});U&&e.render===Ye&&(e.render=U),me!=null&&(e.inheritAttrs=me),Oe&&(e.components=Oe),Se&&(e.directives=Se),G&&Wo(e)}function sc(e,t,n=Ye){V(e)&&(e=Rs(e));for(const s in e){const r=e[s];let o;Z(r)?"default"in r?o=Fe(r.from||s,r.default,!0):o=Fe(r.from||s):o=Fe(r),le(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function yr(e,t,n){Ze(V(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function zo(e,t,n,s){let r=s.includes(".")?Go(n,s):()=>n[s];if(ae(e)){const o=t[e];B(o)&&sn(r,o)}else if(B(e))sn(r,e.bind(n));else if(Z(e))if(V(e))e.forEach(o=>zo(o,t,n,s));else{const o=B(e.handler)?e.handler.bind(n):t[e.handler];B(o)&&sn(r,o,e)}}function Jo(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(f=>Ln(c,f,i,!0)),Ln(c,t,i)),Z(t)&&o.set(t,c),c}function Ln(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Ln(e,o,n,!0),r&&r.forEach(i=>Ln(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=rc[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const rc={data:br,props:Er,emits:Er,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:ic,provide:br,inject:oc};function br(e,t){return t?e?function(){return de(B(e)?e.call(this,this):e,B(t)?t.call(this,this):t)}:t:e}function oc(e,t){return Zt(Rs(e),Rs(t))}function Rs(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?de(Object.create(null),e,t):t}function Er(e,t){return e?V(e)&&V(t)?[...new Set([...e,...t])]:de(Object.create(null),vr(e),vr(t??{})):t}function ic(e,t){if(!e)return t;if(!t)return e;const n=de(Object.create(null),e);for(const s in t)n[s]=_e(e[s],t[s]);return n}function Qo(){return{app:null,config:{isNativeTag:uo,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 lc=0;function cc(e,t){return function(s,r=null){B(s)||(s=de({},s)),r!=null&&!Z(r)&&(r=null);const o=Qo(),i=new WeakSet,l=[];let c=!1;const f=o.app={_uid:lc++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Bc,get config(){return o.config},set config(u){},use(u,...d){return i.has(u)||(u&&B(u.install)?(i.add(u),u.install(f,...d)):B(u)&&(i.add(u),u(f,...d))),f},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),f},component(u,d){return d?(o.components[u]=d,f):o.components[u]},directive(u,d){return d?(o.directives[u]=d,f):o.directives[u]},mount(u,d,g){if(!c){const m=f._ceVNode||be(s,r);return m.appContext=o,g===!0?g="svg":g===!1&&(g=void 0),e(m,u,g),c=!0,f._container=u,u.__vue_app__=f,ts(m.component)}},onUnmount(u){l.push(u)},unmount(){c&&(Ze(l,f._instance,16),e(null,f._container),delete f._container.__vue_app__)},provide(u,d){return o.provides[u]=d,f},runWithContext(u){const d=Tt;Tt=f;try{return u()}finally{Tt=d}}};return f}}let Tt=null;const uc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ee(t)}Modifiers`]||e[`${Pt(t)}Modifiers`];function ac(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ee;let r=n;const o=t.startsWith("update:"),i=o&&uc(s,t.slice(7));i&&(i.trim&&(r=n.map(u=>ae(u)?u.trim():u)),i.number&&(r=n.map(Gn)));let l,c=s[l=os(t)]||s[l=os(Ee(t))];!c&&o&&(c=s[l=os(Pt(t))]),c&&Ze(c,e,6,r);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ze(f,e,6,r)}}const fc=new WeakMap;function Yo(e,t,n=!1){const s=n?fc:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!B(e)){const c=f=>{const u=Yo(f,t,!0);u&&(l=!0,de(i,u))};!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):de(i,o),Z(e)&&s.set(e,i),i)}function Zn(e,t){return!e||!Un(t)?!1:(t=t.slice(2).replace(/Once$/,""),Y(e,t[0].toLowerCase()+t.slice(1))||Y(e,Pt(t))||Y(e,t))}function Sr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:c,render:f,renderCache:u,props:d,data:g,setupState:m,ctx:A,inheritAttrs:S}=e,N=Dn(e);let M,T;try{if(n.shapeFlag&4){const w=r||s,U=w;M=Je(f.call(U,w,u,d,m,g,A)),T=l}else{const w=t;M=Je(w.length>1?w(d,{attrs:l,slots:i,emit:c}):w(d,null)),T=t.props?l:dc(l)}}catch(w){cn.length=0,Jn(w,e,1),M=be(bt)}let D=M;if(T&&S!==!1){const w=Object.keys(T),{shapeFlag:U}=D;w.length&&U&7&&(o&&w.some(Vs)&&(T=hc(T,o)),D=Bt(D,T,!1,!0))}return n.dirs&&(D=Bt(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(n.dirs):n.dirs),n.transition&&Js(D,n.transition),M=D,Dn(N),M}const dc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Un(n))&&((t||(t={}))[n]=e[n]);return t},hc=(e,t)=>{const n={};for(const s in e)(!Vs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function pc(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,f=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?wr(s,i,f):!!i;if(c&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const g=u[d];if(Xo(i,s,g)&&!Zn(f,g))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?wr(s,i,f):!0:!!i;return!1}function wr(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(Xo(t,e,o)&&!Zn(n,o))return!0}return!1}function Xo(e,t,n){const s=e[n],r=t[n];return n==="style"&&Z(s)&&Z(r)?!qt(s,r):s!==r}function gc({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 Zo={},ei=()=>Object.create(Zo),ti=e=>Object.getPrototypeOf(e)===Zo;function mc(e,t,n,s=!1){const r={},o=ei();e.propsDefaults=Object.create(null),ni(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:Lo(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function _c(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=z(r),[c]=e.propsOptions;let f=!1;if((s||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let g=u[d];if(Zn(e.emitsOptions,g))continue;const m=t[g];if(c)if(Y(o,g))m!==o[g]&&(o[g]=m,f=!0);else{const A=Ee(g);r[A]=Cs(c,l,A,m,e,!1)}else m!==o[g]&&(o[g]=m,f=!0)}}}else{ni(e,t,r,o)&&(f=!0);let u;for(const d in l)(!t||!Y(t,d)&&((u=Pt(d))===d||!Y(t,u)))&&(c?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Cs(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],f=!0)}f&&ot(e.attrs,"set","")}function ni(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,l;if(t)for(let c in t){if(en(c))continue;const f=t[c];let u;r&&Y(r,u=Ee(c))?!o||!o.includes(u)?n[u]=f:(l||(l={}))[u]=f:Zn(e.emitsOptions,c)||(!(c in s)||f!==s[c])&&(s[c]=f,i=!0)}if(o){const c=z(n),f=l||ee;for(let u=0;u<o.length;u++){const d=o[u];n[d]=Cs(r,c,d,f[d],e,!Y(f,d))}}return i}function Cs(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&&B(c)){const{propsDefaults:f}=r;if(n in f)s=f[n];else{const u=En(r);s=f[n]=c.call(null,t),u()}}else s=c;r.ce&&r.ce._setProp(n,s)}i[0]&&(o&&!l?s=!1:i[1]&&(s===""||s===Pt(n))&&(s=!0))}return s}const vc=new WeakMap;function si(e,t,n=!1){const s=n?vc:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},l=[];let c=!1;if(!B(e)){const u=d=>{c=!0;const[g,m]=si(d,t,!0);de(i,g),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!c)return Z(e)&&s.set(e,Vt),Vt;if(V(o))for(let u=0;u<o.length;u++){const d=Ee(o[u]);xr(d)&&(i[d]=ee)}else if(o)for(const u in o){const d=Ee(u);if(xr(d)){const g=o[u],m=i[d]=V(g)||B(g)?{type:g}:de({},g),A=m.type;let S=!1,N=!0;if(V(A))for(let M=0;M<A.length;++M){const T=A[M],D=B(T)&&T.name;if(D==="Boolean"){S=!0;break}else D==="String"&&(N=!1)}else S=B(A)&&A.name==="Boolean";m[0]=S,m[1]=N,(S||Y(m,"default"))&&l.push(d)}}const f=[i,l];return Z(e)&&s.set(e,f),f}function xr(e){return e[0]!=="$"&&!en(e)}const Xs=e=>e==="_"||e==="_ctx"||e==="$stable",Zs=e=>V(e)?e.map(Je):[Je(e)],yc=(e,t,n)=>{if(t._n)return t;const s=Il((...r)=>Zs(t(...r)),n);return s._c=!1,s},ri=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Xs(r))continue;const o=e[r];if(B(o))t[r]=yc(r,o,s);else if(o!=null){const i=Zs(o);t[r]=()=>i}}},oi=(e,t)=>{const n=Zs(t);e.slots.default=()=>n},ii=(e,t,n)=>{for(const s in t)(n||!Xs(s))&&(e[s]=t[s])},bc=(e,t,n)=>{const s=e.slots=ei();if(e.vnode.shapeFlag&32){const r=t._;r?(ii(s,t,n),n&&po(s,"_",r,!0)):ri(t,s)}else t&&oi(e,t)},Ec=(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:ii(r,t,n):(o=!t.$stable,ri(t,r)),i=t}else t&&(oi(e,t),i={default:1});if(o)for(const l in r)!Xs(l)&&i[l]==null&&delete r[l]},Re=Rc;function Sc(e){return wc(e)}function wc(e,t){const n=Wn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:f,setElementText:u,parentNode:d,nextSibling:g,setScopeId:m=Ye,insertStaticContent:A}=e,S=(a,h,p,_=null,b=null,v=null,C=void 0,R=null,x=!!h.dynamicChildren)=>{if(a===h)return;a&&!Jt(a,h)&&(_=y(a),we(a,b,v,!0),a=null),h.patchFlag===-2&&(x=!1,h.dynamicChildren=null);const{type:E,ref:F,shapeFlag:P}=h;switch(E){case es:N(a,h,p,_);break;case bt:M(a,h,p,_);break;case Cn:a==null&&T(h,p,_,C);break;case Ve:Oe(a,h,p,_,b,v,C,R,x);break;default:P&1?U(a,h,p,_,b,v,C,R,x):P&6?Se(a,h,p,_,b,v,C,R,x):(P&64||P&128)&&E.process(a,h,p,_,b,v,C,R,x,L)}F!=null&&b?rn(F,a&&a.ref,v,h||a,!h):F==null&&a&&a.ref!=null&&rn(a.ref,null,v,a,!0)},N=(a,h,p,_)=>{if(a==null)s(h.el=l(h.children),p,_);else{const b=h.el=a.el;h.children!==a.children&&f(b,h.children)}},M=(a,h,p,_)=>{a==null?s(h.el=c(h.children||""),p,_):h.el=a.el},T=(a,h,p,_)=>{[a.el,a.anchor]=A(a.children,h,p,_,a.el,a.anchor)},D=({el:a,anchor:h},p,_)=>{let b;for(;a&&a!==h;)b=g(a),s(a,p,_),a=b;s(h,p,_)},w=({el:a,anchor:h})=>{let p;for(;a&&a!==h;)p=g(a),r(a),a=p;r(h)},U=(a,h,p,_,b,v,C,R,x)=>{if(h.type==="svg"?C="svg":h.type==="math"&&(C="mathml"),a==null)ce(h,p,_,b,v,C,R,x);else{const E=a.el&&a.el._isVueCE?a.el:null;try{E&&E._beginPatch(),G(a,h,b,v,C,R,x)}finally{E&&E._endPatch()}}},ce=(a,h,p,_,b,v,C,R)=>{let x,E;const{props:F,shapeFlag:P,transition:k,dirs:j}=a;if(x=a.el=i(a.type,v,F&&F.is,F),P&8?u(x,a.children):P&16&&K(a.children,x,null,_,b,fs(a,v),C,R),j&&wt(a,null,_,"created"),W(x,a,a.scopeId,C,_),F){for(const te in F)te!=="value"&&!en(te)&&o(x,te,null,F[te],v,_);"value"in F&&o(x,"value",null,F.value,v),(E=F.onVnodeBeforeMount)&&qe(E,_,a)}j&&wt(a,null,_,"beforeMount");const $=xc(b,k);$&&k.beforeEnter(x),s(x,h,p),((E=F&&F.onVnodeMounted)||$||j)&&Re(()=>{E&&qe(E,_,a),$&&k.enter(x),j&&wt(a,null,_,"mounted")},b)},W=(a,h,p,_,b)=>{if(p&&m(a,p),_)for(let v=0;v<_.length;v++)m(a,_[v]);if(b){let v=b.subTree;if(h===v||ai(v.type)&&(v.ssContent===h||v.ssFallback===h)){const C=b.vnode;W(a,C,C.scopeId,C.slotScopeIds,b.parent)}}},K=(a,h,p,_,b,v,C,R,x=0)=>{for(let E=x;E<a.length;E++){const F=a[E]=R?rt(a[E]):Je(a[E]);S(null,F,h,p,_,b,v,C,R)}},G=(a,h,p,_,b,v,C)=>{const R=h.el=a.el;let{patchFlag:x,dynamicChildren:E,dirs:F}=h;x|=a.patchFlag&16;const P=a.props||ee,k=h.props||ee;let j;if(p&&xt(p,!1),(j=k.onVnodeBeforeUpdate)&&qe(j,p,h,a),F&&wt(h,a,p,"beforeUpdate"),p&&xt(p,!0),(P.innerHTML&&k.innerHTML==null||P.textContent&&k.textContent==null)&&u(R,""),E?re(a.dynamicChildren,E,R,p,_,fs(h,b),v):C||J(a,h,R,null,p,_,fs(h,b),v,!1),x>0){if(x&16)me(R,P,k,p,b);else if(x&2&&P.class!==k.class&&o(R,"class",null,k.class,b),x&4&&o(R,"style",P.style,k.style,b),x&8){const $=h.dynamicProps;for(let te=0;te<$.length;te++){const X=$[te],xe=P[X],Ae=k[X];(Ae!==xe||X==="value")&&o(R,X,xe,Ae,b,p)}}x&1&&a.children!==h.children&&u(R,h.children)}else!C&&E==null&&me(R,P,k,p,b);((j=k.onVnodeUpdated)||F)&&Re(()=>{j&&qe(j,p,h,a),F&&wt(h,a,p,"updated")},_)},re=(a,h,p,_,b,v,C)=>{for(let R=0;R<h.length;R++){const x=a[R],E=h[R],F=x.el&&(x.type===Ve||!Jt(x,E)||x.shapeFlag&198)?d(x.el):p;S(x,E,F,null,_,b,v,C,!0)}},me=(a,h,p,_,b)=>{if(h!==p){if(h!==ee)for(const v in h)!en(v)&&!(v in p)&&o(a,v,h[v],null,b,_);for(const v in p){if(en(v))continue;const C=p[v],R=h[v];C!==R&&v!=="value"&&o(a,v,R,C,b,_)}"value"in p&&o(a,"value",h.value,p.value,b)}},Oe=(a,h,p,_,b,v,C,R,x)=>{const E=h.el=a?a.el:l(""),F=h.anchor=a?a.anchor:l("");let{patchFlag:P,dynamicChildren:k,slotScopeIds:j}=h;j&&(R=R?R.concat(j):j),a==null?(s(E,p,_),s(F,p,_),K(h.children||[],p,F,b,v,C,R,x)):P>0&&P&64&&k&&a.dynamicChildren&&a.dynamicChildren.length===k.length?(re(a.dynamicChildren,k,p,b,v,C,R),(h.key!=null||b&&h===b.subTree)&&li(a,h,!0)):J(a,h,p,F,b,v,C,R,x)},Se=(a,h,p,_,b,v,C,R,x)=>{h.slotScopeIds=R,a==null?h.shapeFlag&512?b.ctx.activate(h,p,_,C,x):Et(h,p,_,b,v,C,x):ht(a,h,x)},Et=(a,h,p,_,b,v,C)=>{const R=a.component=Mc(a,_,b);if(qo(a)&&(R.ctx.renderer=L),Lc(R,!1,C),R.asyncDep){if(b&&b.registerDep(R,se,C),!a.el){const x=R.subTree=be(bt);M(null,x,h,p),a.placeholder=x.el}}else se(R,a,h,p,b,v,C)},ht=(a,h,p)=>{const _=h.component=a.component;if(pc(a,h,p))if(_.asyncDep&&!_.asyncResolved){H(_,h,p);return}else _.next=h,_.update();else h.el=a.el,_.vnode=h},se=(a,h,p,_,b,v,C)=>{const R=()=>{if(a.isMounted){let{next:P,bu:k,u:j,parent:$,vnode:te}=a;{const Ge=ci(a);if(Ge){P&&(P.el=te.el,H(a,P,C)),Ge.asyncDep.then(()=>{Re(()=>{a.isUnmounted||E()},b)});return}}let X=P,xe;xt(a,!1),P?(P.el=te.el,H(a,P,C)):P=te,k&&An(k),(xe=P.props&&P.props.onVnodeBeforeUpdate)&&qe(xe,$,P,te),xt(a,!0);const Ae=Sr(a),Ke=a.subTree;a.subTree=Ae,S(Ke,Ae,d(Ke.el),y(Ke),a,b,v),P.el=Ae.el,X===null&&gc(a,Ae.el),j&&Re(j,b),(xe=P.props&&P.props.onVnodeUpdated)&&Re(()=>qe(xe,$,P,te),b)}else{let P;const{el:k,props:j}=h,{bm:$,m:te,parent:X,root:xe,type:Ae}=a,Ke=on(h);xt(a,!1),$&&An($),!Ke&&(P=j&&j.onVnodeBeforeMount)&&qe(P,X,h),xt(a,!0);{xe.ce&&xe.ce._hasShadowRoot()&&xe.ce._injectChildStyle(Ae,a.parent?a.parent.type:void 0);const Ge=a.subTree=Sr(a);S(null,Ge,p,_,a,b,v),h.el=Ge.el}if(te&&Re(te,b),!Ke&&(P=j&&j.onVnodeMounted)){const Ge=h;Re(()=>qe(P,X,Ge),b)}(h.shapeFlag&256||X&&on(X.vnode)&&X.vnode.shapeFlag&256)&&a.a&&Re(a.a,b),a.isMounted=!0,h=p=_=null}};a.scope.on();const x=a.effect=new Eo(R);a.scope.off();const E=a.update=x.run.bind(x),F=a.job=x.runIfDirty.bind(x);F.i=a,F.id=a.uid,x.scheduler=()=>zs(F),xt(a,!0),E()},H=(a,h,p)=>{h.component=a;const _=a.vnode.props;a.vnode=h,a.next=null,_c(a,h.props,_,p),Ec(a,h.children,p),ut(),hr(a),at()},J=(a,h,p,_,b,v,C,R,x=!1)=>{const E=a&&a.children,F=a?a.shapeFlag:0,P=h.children,{patchFlag:k,shapeFlag:j}=h;if(k>0){if(k&128){pt(E,P,p,_,b,v,C,R,x);return}else if(k&256){et(E,P,p,_,b,v,C,R,x);return}}j&8?(F&16&&Le(E,b,v),P!==E&&u(p,P)):F&16?j&16?pt(E,P,p,_,b,v,C,R,x):Le(E,b,v,!0):(F&8&&u(p,""),j&16&&K(P,p,_,b,v,C,R,x))},et=(a,h,p,_,b,v,C,R,x)=>{a=a||Vt,h=h||Vt;const E=a.length,F=h.length,P=Math.min(E,F);let k;for(k=0;k<P;k++){const j=h[k]=x?rt(h[k]):Je(h[k]);S(a[k],j,p,null,b,v,C,R,x)}E>F?Le(a,b,v,!0,!1,P):K(h,p,_,b,v,C,R,x,P)},pt=(a,h,p,_,b,v,C,R,x)=>{let E=0;const F=h.length;let P=a.length-1,k=F-1;for(;E<=P&&E<=k;){const j=a[E],$=h[E]=x?rt(h[E]):Je(h[E]);if(Jt(j,$))S(j,$,p,null,b,v,C,R,x);else break;E++}for(;E<=P&&E<=k;){const j=a[P],$=h[k]=x?rt(h[k]):Je(h[k]);if(Jt(j,$))S(j,$,p,null,b,v,C,R,x);else break;P--,k--}if(E>P){if(E<=k){const j=k+1,$=j<F?h[j].el:_;for(;E<=k;)S(null,h[E]=x?rt(h[E]):Je(h[E]),p,$,b,v,C,R,x),E++}}else if(E>k)for(;E<=P;)we(a[E],b,v,!0),E++;else{const j=E,$=E,te=new Map;for(E=$;E<=k;E++){const Te=h[E]=x?rt(h[E]):Je(h[E]);Te.key!=null&&te.set(Te.key,E)}let X,xe=0;const Ae=k-$+1;let Ke=!1,Ge=0;const $t=new Array(Ae);for(E=0;E<Ae;E++)$t[E]=0;for(E=j;E<=P;E++){const Te=a[E];if(xe>=Ae){we(Te,b,v,!0);continue}let We;if(Te.key!=null)We=te.get(Te.key);else for(X=$;X<=k;X++)if($t[X-$]===0&&Jt(Te,h[X])){We=X;break}We===void 0?we(Te,b,v,!0):($t[We-$]=E+1,We>=Ge?Ge=We:Ke=!0,S(Te,h[We],p,null,b,v,C,R,x),xe++)}const or=Ke?Ac($t):Vt;for(X=or.length-1,E=Ae-1;E>=0;E--){const Te=$+E,We=h[Te],ir=h[Te+1],lr=Te+1<F?ir.el||ui(ir):_;$t[E]===0?S(null,We,p,lr,b,v,C,R,x):Ke&&(X<0||E!==or[X]?He(We,p,lr,2):X--)}}},He=(a,h,p,_,b=null)=>{const{el:v,type:C,transition:R,children:x,shapeFlag:E}=a;if(E&6){He(a.component.subTree,h,p,_);return}if(E&128){a.suspense.move(h,p,_);return}if(E&64){C.move(a,h,p,L);return}if(C===Ve){s(v,h,p);for(let P=0;P<x.length;P++)He(x[P],h,p,_);s(a.anchor,h,p);return}if(C===Cn){D(a,h,p);return}if(_!==2&&E&1&&R)if(_===0)R.beforeEnter(v),s(v,h,p),Re(()=>R.enter(v),b);else{const{leave:P,delayLeave:k,afterLeave:j}=R,$=()=>{a.ctx.isUnmounted?r(v):s(v,h,p)},te=()=>{v._isLeaving&&v[jl](!0),P(v,()=>{$(),j&&j()})};k?k(v,$,te):te()}else s(v,h,p)},we=(a,h,p,_=!1,b=!1)=>{const{type:v,props:C,ref:R,children:x,dynamicChildren:E,shapeFlag:F,patchFlag:P,dirs:k,cacheIndex:j}=a;if(P===-2&&(b=!1),R!=null&&(ut(),rn(R,null,p,a,!0),at()),j!=null&&(h.renderCache[j]=void 0),F&256){h.ctx.deactivate(a);return}const $=F&1&&k,te=!on(a);let X;if(te&&(X=C&&C.onVnodeBeforeUnmount)&&qe(X,h,a),F&6)St(a.component,p,_);else{if(F&128){a.suspense.unmount(p,_);return}$&&wt(a,null,h,"beforeUnmount"),F&64?a.type.remove(a,h,p,L,_):E&&!E.hasOnce&&(v!==Ve||P>0&&P&64)?Le(E,h,p,!1,!0):(v===Ve&&P&384||!b&&F&16)&&Le(x,h,p),_&&It(a)}(te&&(X=C&&C.onVnodeUnmounted)||$)&&Re(()=>{X&&qe(X,h,a),$&&wt(a,null,h,"unmounted")},p)},It=a=>{const{type:h,el:p,anchor:_,transition:b}=a;if(h===Ve){Nt(p,_);return}if(h===Cn){w(a);return}const v=()=>{r(p),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(a.shapeFlag&1&&b&&!b.persisted){const{leave:C,delayLeave:R}=b,x=()=>C(p,v);R?R(a.el,v,x):x()}else v()},Nt=(a,h)=>{let p;for(;a!==h;)p=g(a),r(a),a=p;r(h)},St=(a,h,p)=>{const{bum:_,scope:b,job:v,subTree:C,um:R,m:x,a:E}=a;Ar(x),Ar(E),_&&An(_),b.stop(),v&&(v.flags|=8,we(C,a,h,p)),R&&Re(R,h),Re(()=>{a.isUnmounted=!0},h)},Le=(a,h,p,_=!1,b=!1,v=0)=>{for(let C=v;C<a.length;C++)we(a[C],h,p,_,b)},y=a=>{if(a.shapeFlag&6)return y(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const h=g(a.anchor||a.el),p=h&&h[Vl];return p?g(p):h};let I=!1;const O=(a,h,p)=>{let _;a==null?h._vnode&&(we(h._vnode,null,null,!0),_=h._vnode.component):S(h._vnode||null,a,h,null,null,null,p),h._vnode=a,I||(I=!0,hr(_),Uo(),I=!1)},L={p:S,um:we,m:He,r:It,mt:Et,mc:K,pc:J,pbc:re,n:y,o:e};return{render:O,hydrate:void 0,createApp:cc(O)}}function fs({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 xt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function xc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function li(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]=rt(r[o]),l.el=i.el),!n&&l.patchFlag!==-2&&li(i,l)),l.type===es&&(l.patchFlag===-1&&(l=r[o]=rt(l)),l.el=i.el),l.type===bt&&!l.el&&(l.el=i.el)}}function Ac(e){const t=e.slice(),n=[0];let s,r,o,i,l;const c=e.length;for(s=0;s<c;s++){const f=e[s];if(f!==0){if(r=n[n.length-1],e[r]<f){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<f?o=l+1:i=l;f<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 ci(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ci(t)}function Ar(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ui(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ui(t.subTree):null}const ai=e=>e.__isSuspense;function Rc(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Pl(e)}const Ve=Symbol.for("v-fgt"),es=Symbol.for("v-txt"),bt=Symbol.for("v-cmt"),Cn=Symbol.for("v-stc"),cn=[];let De=null;function Ce(e=!1){cn.push(De=e?null:[])}function Cc(){cn.pop(),De=cn[cn.length-1]||null}let pn=1;function kn(e,t=!1){pn+=e,e<0&&De&&t&&(De.hasOnce=!0)}function fi(e){return e.dynamicChildren=pn>0?De||Vt:null,Cc(),pn>0&&De&&De.push(e),e}function ke(e,t,n,s,r,o){return fi(Pe(e,t,n,s,r,o,!0))}function di(e,t,n,s,r){return fi(be(e,t,n,s,r,!0))}function Vn(e){return e?e.__v_isVNode===!0:!1}function Jt(e,t){return e.type===t.type&&e.key===t.key}const hi=({key:e})=>e??null,On=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ae(e)||le(e)||B(e)?{i:Ne,r:e,k:t,f:!!n}:e:null);function Pe(e,t=null,n=null,s=0,r=null,o=e===Ve?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&hi(t),ref:t&&On(t),scopeId:Ho,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:Ne};return l?(er(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=ae(n)?8:16),pn>0&&!i&&De&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&De.push(c),c}const be=Oc;function Oc(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Zl)&&(e=bt),Vn(e)){const l=Bt(e,t,!0);return n&&er(l,n),pn>0&&!o&&De&&(l.shapeFlag&6?De[De.indexOf(e)]=l:De.push(l)),l.patchFlag=-2,l}if(Uc(e)&&(e=e.__vccOpts),t){t=Tc(t);let{class:l,style:c}=t;l&&!ae(l)&&(t.class=qn(l)),Z(c)&&(zn(c)&&!V(c)&&(c=de({},c)),t.style=js(c))}const i=ae(e)?1:ai(e)?128:Fl(e)?64:Z(e)?4:B(e)?2:0;return Pe(e,t,n,s,r,i,o,!0)}function Tc(e){return e?zn(e)||ti(e)?de({},e):e:null}function Bt(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:c}=e,f=t?Ic(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&hi(f),ref:t&&t.ref?n&&o?V(o)?o.concat(On(t)):[o,On(t)]:On(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!==Ve?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&&Bt(e.ssContent),ssFallback:e.ssFallback&&Bt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Js(u,c.clone(u)),u}function Pc(e=" ",t=0){return be(es,null,e,t)}function Ja(e,t){const n=be(Cn,null,e);return n.staticCount=t,n}function pi(e="",t=!1){return t?(Ce(),di(bt,null,e)):be(bt,null,e)}function Je(e){return e==null||typeof e=="boolean"?be(bt):V(e)?be(Ve,null,e.slice()):Vn(e)?rt(e):be(es,null,String(e))}function rt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Bt(e)}function er(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),er(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!ti(t)?t._ctx=Ne:r===3&&Ne&&(Ne.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else B(t)?(t={default:t,_ctx:Ne},n=32):(t=String(t),s&64?(n=16,t=[Pc(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ic(...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=qn([t.class,s.class]));else if(r==="style")t.style=js([t.style,s.style]);else if(Un(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 qe(e,t,n,s=null){Ze(e,t,7,[n,s])}const Nc=Qo();let Dc=0;function Mc(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||Nc,o={uid:Dc++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new vo(!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:si(s,r),emitsOptions:Yo(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=ac.bind(null,o),e.ce&&e.ce(o),o}let ge=null;const gi=()=>ge||Ne;let Fn,Os;{const e=Wn(),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)}};Fn=t("__VUE_INSTANCE_SETTERS__",n=>ge=n),Os=t("__VUE_SSR_SETTERS__",n=>gn=n)}const En=e=>{const t=ge;return Fn(e),e.scope.on(),()=>{e.scope.off(),Fn(t)}},Rr=()=>{ge&&ge.scope.off(),Fn(null)};function mi(e){return e.vnode.shapeFlag&4}let gn=!1;function Lc(e,t=!1,n=!1){t&&Os(t);const{props:s,children:r}=e.vnode,o=mi(e);mc(e,s,o,t),bc(e,r,n||t);const i=o?kc(e,t):void 0;return t&&Os(!1),i}function kc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,tc);const{setup:s}=n;if(s){ut();const r=e.setupContext=s.length>1?Fc(e):null,o=En(e),i=bn(s,e,0,[e.props,r]),l=ao(i);if(at(),o(),(l||e.sp)&&!on(e)&&Wo(e),l){if(i.then(Rr,Rr),t)return i.then(c=>{Cr(e,c)}).catch(c=>{Jn(c,e,0)});e.asyncDep=i}else Cr(e,i)}else _i(e)}function Cr(e,t,n){B(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Z(t)&&(e.setupState=Vo(t)),_i(e)}function _i(e,t,n){const s=e.type;e.render||(e.render=s.render||Ye);{const r=En(e);ut();try{nc(e)}finally{at(),r()}}}const Vc={get(e,t){return pe(e,"get",""),e[t]}};function Fc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Vc),slots:e.slots,emit:e.emit,expose:t}}function ts(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Vo($s(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ln)return ln[n](e)},has(t,n){return n in t||n in ln}})):e.proxy}function jc(e,t=!0){return B(e)?e.displayName||e.name:e.name||t&&e.__name}function Uc(e){return B(e)&&"__vccOpts"in e}const ue=(e,t)=>Al(e,t,gn);function vi(e,t,n){try{kn(-1);const s=arguments.length;return s===2?Z(t)&&!V(t)?Vn(t)?be(e,null,[t]):be(e,t):be(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Vn(n)&&(n=[n]),be(e,t,n))}finally{kn(1)}}const Bc="3.5.30";/**
|
|
* @vue/runtime-dom v3.5.30
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let Ts;const Or=typeof window<"u"&&window.trustedTypes;if(Or)try{Ts=Or.createPolicy("vue",{createHTML:e=>e})}catch{}const yi=Ts?e=>Ts.createHTML(e):e=>e,Hc="http://www.w3.org/2000/svg",Kc="http://www.w3.org/1998/Math/MathML",st=typeof document<"u"?document:null,Tr=st&&st.createElement("template"),Gc={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"?st.createElementNS(Hc,e):t==="mathml"?st.createElementNS(Kc,e):n?st.createElement(e,{is:n}):st.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>st.createTextNode(e),createComment:e=>st.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>st.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{Tr.innerHTML=yi(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Tr.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]}},Wc=Symbol("_vtc");function qc(e,t,n){const s=e[Wc];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const jn=Symbol("_vod"),bi=Symbol("_vsh"),$c={name:"show",beforeMount(e,{value:t},{transition:n}){e[jn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Qt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Qt(e,!0),s.enter(e)):s.leave(e,()=>{Qt(e,!1)}):Qt(e,t))},beforeUnmount(e,{value:t}){Qt(e,t)}};function Qt(e,t){e.style.display=t?e[jn]:"none",e[bi]=!t}const zc=Symbol(""),Jc=/(?:^|;)\s*display\s*:/;function Qc(e,t,n){const s=e.style,r=ae(n);let o=!1;if(n&&!r){if(t)if(ae(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&Tn(s,l,"")}else for(const i in t)n[i]==null&&Tn(s,i,"");for(const i in n)i==="display"&&(o=!0),Tn(s,i,n[i])}else if(r){if(t!==n){const i=s[zc];i&&(n+=";"+i),s.cssText=n,o=Jc.test(n)}}else t&&e.removeAttribute("style");jn in e&&(e[jn]=o?s.display:"",e[bi]&&(s.display="none"))}const Pr=/\s*!important$/;function Tn(e,t,n){if(V(n))n.forEach(s=>Tn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Yc(e,t);Pr.test(n)?e.setProperty(Pt(s),n.replace(Pr,""),"important"):e[s]=n}}const Ir=["Webkit","Moz","ms"],ds={};function Yc(e,t){const n=ds[t];if(n)return n;let s=Ee(t);if(s!=="filter"&&s in e)return ds[t]=s;s=Kn(s);for(let r=0;r<Ir.length;r++){const o=Ir[r]+s;if(o in e)return ds[t]=o}return t}const Nr="http://www.w3.org/1999/xlink";function Dr(e,t,n,s,r,o=Qi(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Nr,t.slice(6,t.length)):e.setAttributeNS(Nr,t,n):n==null||o&&!go(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Xe(n)?String(n):n)}function Mr(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?yi(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=go(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 yt(e,t,n,s){e.addEventListener(t,n,s)}function Xc(e,t,n,s){e.removeEventListener(t,n,s)}const Lr=Symbol("_vei");function Zc(e,t,n,s,r=null){const o=e[Lr]||(e[Lr]={}),i=o[t];if(s&&i)i.value=s;else{const[l,c]=eu(t);if(s){const f=o[t]=su(s,r);yt(e,l,f,c)}else i&&(Xc(e,l,i,c),o[t]=void 0)}}const kr=/(?:Once|Passive|Capture)$/;function eu(e){let t;if(kr.test(e)){t={};let s;for(;s=e.match(kr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Pt(e.slice(2)),t]}let hs=0;const tu=Promise.resolve(),nu=()=>hs||(tu.then(()=>hs=0),hs=Date.now());function su(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ze(ru(s,n.value),t,5,[s])};return n.value=e,n.attached=nu(),n}function ru(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 Vr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ou=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?qc(e,s,i):t==="style"?Qc(e,n,s):Un(t)?Vs(t)||Zc(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):iu(e,t,s,i))?(Mr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Dr(e,t,s,i,o,t!=="value")):e._isVueCE&&(lu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ae(s)))?Mr(e,Ee(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Dr(e,t,s,i))};function iu(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Vr(t)&&B(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 Vr(t)&&ae(n)?!1:t in e}function lu(e,t){const n=e._def.props;if(!n)return!1;const s=Ee(t);return Array.isArray(n)?n.some(r=>Ee(r)===s):Object.keys(n).some(r=>Ee(r)===s)}const Ht=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>An(t,n):t};function cu(e){e.target.composing=!0}function Fr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ct=Symbol("_assign");function jr(e,t,n){return t&&(e=e.trim()),n&&(e=Gn(e)),e}const Qa={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[ct]=Ht(r);const o=s||r.props&&r.props.type==="number";yt(e,t?"change":"input",i=>{i.target.composing||e[ct](jr(e.value,n,o))}),(n||o)&&yt(e,"change",()=>{e.value=jr(e.value,n,o)}),t||(yt(e,"compositionstart",cu),yt(e,"compositionend",Fr),yt(e,"change",Fr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[ct]=Ht(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?Gn(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))}},Ya={deep:!0,created(e,t,n){e[ct]=Ht(n),yt(e,"change",()=>{const s=e._modelValue,r=mn(e),o=e.checked,i=e[ct];if(V(s)){const l=Us(s,r),c=l!==-1;if(o&&!c)i(s.concat(r));else if(!o&&c){const f=[...s];f.splice(l,1),i(f)}}else if(Wt(s)){const l=new Set(s);o?l.add(r):l.delete(r),i(l)}else i(Ei(e,o))})},mounted:Ur,beforeUpdate(e,t,n){e[ct]=Ht(n),Ur(e,t,n)}};function Ur(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(V(t))r=Us(t,s.props.value)>-1;else if(Wt(t))r=t.has(s.props.value);else{if(t===n)return;r=qt(t,Ei(e,!0))}e.checked!==r&&(e.checked=r)}const Xa={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Wt(t);yt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?Gn(mn(i)):mn(i));e[ct](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,Qn(()=>{e._assigning=!1})}),e[ct]=Ht(s)},mounted(e,{value:t}){Br(e,t)},beforeUpdate(e,t,n){e[ct]=Ht(n)},updated(e,{value:t}){e._assigning||Br(e,t)}};function Br(e,t){const n=e.multiple,s=V(t);if(!(n&&!s&&!Wt(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],l=mn(i);if(n)if(s){const c=typeof l;c==="string"||c==="number"?i.selected=t.some(f=>String(f)===String(l)):i.selected=Us(t,l)>-1}else i.selected=t.has(l);else if(qt(mn(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function mn(e){return"_value"in e?e._value:e.value}function Ei(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const uu=["ctrl","shift","alt","meta"],au={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)=>uu.some(n=>e[`${n}Key`]&&!t.includes(n))},Za=(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=au[t[i]];if(l&&l(r,t))return}return e(r,...o)})},fu=de({patchProp:ou},Gc);let Hr;function du(){return Hr||(Hr=Sc(fu))}const hu=(...e)=>{const t=du().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=gu(s);if(!r)return;const o=t._component;!B(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,pu(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function pu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function gu(e){return ae(e)?document.querySelector(e):e}/*!
|
|
* pinia v2.3.1
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/let Si;const ns=e=>Si=e,wi=Symbol();function Ps(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var un;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(un||(un={}));function mu(){const e=yo(!0),t=e.run(()=>Ie({}));let n=[],s=[];const r=$s({install(o){ns(r),r._a=o,o.provide(wi,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 xi=()=>{};function Kr(e,t,n,s=xi){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&bo()&&Xi(r),r}function Mt(e,...t){e.slice().forEach(n=>{n(...t)})}const _u=e=>e(),Gr=Symbol(),ps=Symbol();function Is(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];Ps(r)&&Ps(s)&&e.hasOwnProperty(n)&&!le(s)&&!lt(s)?e[n]=Is(r,s):e[n]=s}return e}const vu=Symbol();function yu(e){return!Ps(e)||!e.hasOwnProperty(vu)}const{assign:mt}=Object;function bu(e){return!!(le(e)&&e.effect)}function Eu(e,t,n,s){const{state:r,actions:o,getters:i}=t,l=n.state.value[e];let c;function f(){l||(n.state.value[e]=r?r():{});const u=El(n.state.value[e]);return mt(u,o,Object.keys(i||{}).reduce((d,g)=>(d[g]=$s(ue(()=>{ns(n);const m=n._s.get(e);return i[g].call(m,m)})),d),{}))}return c=Ai(e,f,t,n,s,!0),c}function Ai(e,t,n={},s,r,o){let i;const l=mt({actions:{}},n),c={deep:!0};let f,u,d=[],g=[],m;const A=s.state.value[e];!o&&!A&&(s.state.value[e]={});let S;function N(K){let G;f=u=!1,typeof K=="function"?(K(s.state.value[e]),G={type:un.patchFunction,storeId:e,events:m}):(Is(s.state.value[e],K),G={type:un.patchObject,payload:K,storeId:e,events:m});const re=S=Symbol();Qn().then(()=>{S===re&&(f=!0)}),u=!0,Mt(d,G,s.state.value[e])}const M=o?function(){const{state:G}=n,re=G?G():{};this.$patch(me=>{mt(me,re)})}:xi;function T(){i.stop(),d=[],g=[],s._s.delete(e)}const D=(K,G="")=>{if(Gr in K)return K[ps]=G,K;const re=function(){ns(s);const me=Array.from(arguments),Oe=[],Se=[];function Et(H){Oe.push(H)}function ht(H){Se.push(H)}Mt(g,{args:me,name:re[ps],store:U,after:Et,onError:ht});let se;try{se=K.apply(this&&this.$id===e?this:U,me)}catch(H){throw Mt(Se,H),H}return se instanceof Promise?se.then(H=>(Mt(Oe,H),H)).catch(H=>(Mt(Se,H),Promise.reject(H))):(Mt(Oe,se),se)};return re[Gr]=!0,re[ps]=G,re},w={_p:s,$id:e,$onAction:Kr.bind(null,g),$patch:N,$reset:M,$subscribe(K,G={}){const re=Kr(d,K,G.detached,()=>me()),me=i.run(()=>sn(()=>s.state.value[e],Oe=>{(G.flush==="sync"?u:f)&&K({storeId:e,type:un.direct,events:m},Oe)},mt({},c,G)));return re},$dispose:T},U=yn(w);s._s.set(e,U);const W=(s._a&&s._a.runWithContext||_u)(()=>s._e.run(()=>(i=yo()).run(()=>t({action:D}))));for(const K in W){const G=W[K];if(le(G)&&!bu(G)||lt(G))o||(A&&yu(G)&&(le(G)?G.value=A[K]:Is(G,A[K])),s.state.value[e][K]=G);else if(typeof G=="function"){const re=D(G,K);W[K]=re,l.actions[K]=G}}return mt(U,W),mt(z(U),W),Object.defineProperty(U,"$state",{get:()=>s.state.value[e],set:K=>{N(G=>{mt(G,K)})}}),s._p.forEach(K=>{mt(U,i.run(()=>K({store:U,app:s._a,pinia:s,options:l})))}),A&&o&&n.hydrate&&n.hydrate(U.$state,A),f=!0,u=!0,U}/*! #__NO_SIDE_EFFECTS__ */function Su(e,t,n){let s,r;const o=typeof t=="function";s=e,r=o?n:t;function i(l,c){const f=Dl();return l=l||(f?Fe(wi,null):null),l&&ns(l),l=Si,l._s.has(s)||(o?Ai(s,t,r,l):Eu(s,r,l)),l._s.get(s)}return i.$id=s,i}const wu="/api";class xu{constructor(t){cr(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 u=await fetch(`${this.baseUrl}${n}`,{...i,headers:r});return{data:await u.json(),status:u.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 Yt=new xu(wu),tr=Su("auth",()=>{const e=Ie(null),t=Ie(localStorage.getItem("accessToken")),n=Ie(localStorage.getItem("refreshToken")),s=Ie(localStorage.getItem("orgSlug")||""),r=ue(()=>!!e.value&&!!t.value),o=ue(()=>!!t.value),i=ue(()=>{var w;return((w=e.value)==null?void 0:w.role)==="chef"}),l=ue(()=>{var w;return((w=e.value)==null?void 0:w.role)==="disponent"}),c=ue(()=>{var w;return((w=e.value)==null?void 0:w.role)==="mitarbeiter"}),f=ue(()=>i.value||l.value),u=ue(()=>i.value||l.value),d=ue(()=>e.value?`${e.value.first_name} ${e.value.last_name}`:"");function g(w,U){t.value=w,n.value=U,localStorage.setItem("accessToken",w),localStorage.setItem("refreshToken",U)}function m(w){s.value=w,localStorage.setItem("orgSlug",w)}function A(){e.value=null,t.value=null,n.value=null,localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken")}async function S(w,U,ce){const W=await Yt.post("/auth/login",{email:w,password:U,org_slug:ce});return g(W.data.accessToken,W.data.refreshToken),m(ce),e.value=W.data.user,W.data}async function N(w){return(await Yt.post("/auth/register",w)).data}async function M(){try{await Yt.post("/auth/logout")}catch{}A()}async function T(){try{const w=await Yt.get("/auth/me");e.value=w.data.user}catch{A()}}async function D(){if(!n.value)throw new Error("No refresh token");const w=await Yt.post("/auth/refresh",{refreshToken:n.value});return t.value=w.data.accessToken,localStorage.setItem("accessToken",w.data.accessToken),w.data.accessToken}return{user:e,accessToken:t,refreshToken:n,orgSlug:s,isAuthenticated:r,hasStoredToken:o,isChef:i,isDisponent:l,isMitarbeiter:c,canManageUsers:f,canManageOrders:u,fullName:d,login:S,register:N,logout:M,fetchCurrentUser:T,refreshAccessToken:D,setOrgSlug:m}}),Au={class:"fixed inset-0 bg-gradient-to-br from-purple-600 to-indigo-700 flex flex-col items-center justify-center z-50"},Ru={key:0,class:"text-center"},Cu=["disabled"],Ou={key:0,class:"animate-spin"},Tu={key:1},Pu={key:1,class:"text-center"},Iu={class:"flex space-x-3 mb-8"},Nu={key:0,class:"text-red-300 text-sm mb-4"},Du={class:"grid grid-cols-3 gap-4 max-w-xs"},Mu=["onClick"],Lu={key:1,class:"w-16 h-16"},ku=Yn({__name:"LockScreen",emits:["unlocked"],setup(e,{emit:t}){const n=t;tr();const s=Ie(null),r=Ie(""),o=Ie(!1),i=Ie(["","","","","",""]),l=Ie(0);Qs(()=>{s.value=localStorage.getItem("lockMethod"),s.value==="biometric"&&c()});async function c(){o.value=!0,r.value="";try{if(!window.PublicKeyCredential)throw new Error("Biometrie nicht verfügbar");const A=localStorage.getItem("biometricCredentialId");if(!A)throw new Error("Keine biometrischen Daten gespeichert");await navigator.credentials.get({publicKey:{challenge:new Uint8Array(32),timeout:6e4,userVerification:"required",allowCredentials:[{id:Uint8Array.from(atob(A),N=>N.charCodeAt(0)),type:"public-key",transports:["internal"]}]}})&&n("unlocked")}catch(A){console.error("Biometric auth failed:",A),r.value="Biometrie fehlgeschlagen. Bitte PIN verwenden.",s.value="pin"}o.value=!1}function f(A){l.value<6&&(i.value[l.value]=A,l.value++,l.value===6&&g())}function u(){l.value>0&&(l.value--,i.value[l.value]=""),r.value=""}function d(){i.value=["","","","","",""],l.value=0,r.value=""}async function g(){const A=i.value.join(""),S=localStorage.getItem("appPin");A===S?n("unlocked"):(r.value="Falscher PIN",setTimeout(d,500))}function m(){s.value="pin",r.value=""}return(A,S)=>(Ce(),ke("div",Au,[S[2]||(S[2]=Pe("div",{class:"text-6xl mb-4"},"🔐",-1)),S[3]||(S[3]=Pe("h1",{class:"text-2xl font-bold text-white mb-2"},"SeCu",-1)),S[4]||(S[4]=Pe("p",{class:"text-white/70 mb-8"},"Bitte entsperren",-1)),s.value==="biometric"&&!r.value?(Ce(),ke("div",Ru,[Pe("button",{onClick:c,disabled:o.value,class:"w-20 h-20 bg-white/20 rounded-full flex items-center justify-center text-4xl mb-4 hover:bg-white/30 transition"},[o.value?(Ce(),ke("span",Ou,"⏳")):(Ce(),ke("span",Tu,"👆"))],8,Cu),S[1]||(S[1]=Pe("p",{class:"text-white/70 text-sm"},"Fingerabdruck oder Face ID",-1)),Pe("button",{onClick:m,class:"mt-4 text-white/50 text-sm underline"}," Stattdessen PIN verwenden ")])):(Ce(),ke("div",Pu,[Pe("div",Iu,[(Ce(!0),ke(Ve,null,_r(i.value,(N,M)=>(Ce(),ke("div",{key:M,class:qn(["w-4 h-4 rounded-full transition-all",N?"bg-white scale-110":"bg-white/30",r.value?"animate-shake bg-red-400":""])},null,2))),128))]),r.value?(Ce(),ke("p",Nu,ys(r.value),1)):pi("",!0),Pe("div",Du,[(Ce(),ke(Ve,null,_r([1,2,3,4,5,6,7,8,9],N=>Pe("button",{key:N,onClick:M=>f(String(N)),class:"w-16 h-16 bg-white/20 rounded-full text-white text-2xl font-semibold hover:bg-white/30 transition"},ys(N),9,Mu)),64)),s.value==="biometric"||A.localStorage.getItem("biometricCredentialId")?(Ce(),ke("button",{key:0,onClick:c,class:"w-16 h-16 bg-white/20 rounded-full text-white text-2xl hover:bg-white/30 transition"}," 👆 ")):(Ce(),ke("div",Lu)),Pe("button",{onClick:S[0]||(S[0]=N=>f("0")),class:"w-16 h-16 bg-white/20 rounded-full text-white text-2xl font-semibold hover:bg-white/30 transition"}," 0 "),Pe("button",{onClick:u,class:"w-16 h-16 bg-white/10 rounded-full text-white text-xl hover:bg-white/20 transition"}," ⌫ ")])]))]))}}),Vu=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Fu=Vu(ku,[["__scopeId","data-v-5cf90e48"]]),Wr=3e4,ju=Yn({__name:"App",setup(e){const t=tr(),n=Ie(!1),s=Ie(Date.now()),r=ue(()=>localStorage.getItem("lockMethod")&&localStorage.getItem("lockMethod")!=="none"&&t.isAuthenticated);Qs(async()=>{if(t.hasStoredToken&&await t.fetchCurrentUser(),r.value){const c=localStorage.getItem("lastUnlockTime"),f=Date.now();(!c||f-parseInt(c)>Wr)&&(n.value=!0)}document.addEventListener("visibilitychange",i),document.addEventListener("touchstart",o),document.addEventListener("click",o),document.addEventListener("keydown",o)}),Ys(()=>{document.removeEventListener("visibilitychange",i),document.removeEventListener("touchstart",o),document.removeEventListener("click",o),document.removeEventListener("keydown",o)});function o(){s.value=Date.now()}function i(){if(document.visibilityState==="hidden")localStorage.setItem("backgroundTime",String(Date.now()));else if(document.visibilityState==="visible"&&r.value){const c=localStorage.getItem("backgroundTime"),f=Date.now();c&&f-parseInt(c)>Wr&&(n.value=!0)}}function l(){n.value=!1,localStorage.setItem("lastUnlockTime",String(Date.now()))}return(c,f)=>{const u=Xl("router-view");return Ce(),ke(Ve,null,[n.value&&r.value?(Ce(),di(Fu,{key:0,onUnlocked:l})):pi("",!0),Nl(be(u,null,null,512),[[$c,!n.value||!r.value]])],64)}}}),Uu="modulepreload",Bu=function(e){return"/app/"+e},qr={},oe=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 qr)return;qr[c]=!0;const f=c.endsWith(".css"),u=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":Uu,f||(d.as="script"),d.crossOrigin="",d.href=c,l&&d.setAttribute("nonce",l),document.head.appendChild(d),f)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 kt=typeof document<"u";function Ri(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Hu(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ri(e.default)}const Q=Object.assign;function gs(e,t){const n={};for(const s in t){const r=t[s];n[s]=Be(r)?r.map(e):e(r)}return n}const an=()=>{},Be=Array.isArray;function $r(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const Ci=/#/g,Ku=/&/g,Gu=/\//g,Wu=/=/g,qu=/\?/g,Oi=/\+/g,$u=/%5B/g,zu=/%5D/g,Ti=/%5E/g,Ju=/%60/g,Pi=/%7B/g,Qu=/%7C/g,Ii=/%7D/g,Yu=/%20/g;function nr(e){return e==null?"":encodeURI(""+e).replace(Qu,"|").replace($u,"[").replace(zu,"]")}function Xu(e){return nr(e).replace(Pi,"{").replace(Ii,"}").replace(Ti,"^")}function Ns(e){return nr(e).replace(Oi,"%2B").replace(Yu,"+").replace(Ci,"%23").replace(Ku,"%26").replace(Ju,"`").replace(Pi,"{").replace(Ii,"}").replace(Ti,"^")}function Zu(e){return Ns(e).replace(Wu,"%3D")}function ea(e){return nr(e).replace(Ci,"%23").replace(qu,"%3F")}function ta(e){return ea(e).replace(Gu,"%2F")}function _n(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const na=/\/$/,sa=e=>e.replace(na,"");function ms(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=la(s??t,n),{fullPath:s+o+i,path:s,query:r,hash:_n(i)}}function ra(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function zr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function oa(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Kt(t.matched[s],n.matched[r])&&Ni(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Kt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ni(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!ia(e[n],t[n]))return!1;return!0}function ia(e,t){return Be(e)?Jr(e,t):Be(t)?Jr(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Jr(e,t){return Be(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function la(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 gt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ds=function(e){return e.pop="pop",e.push="push",e}({}),_s=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function ca(e){if(!e)if(kt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),sa(e)}const ua=/^[^#]+#/;function aa(e,t){return e.replace(ua,"#")+t}function fa(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const ss=()=>({left:window.scrollX,top:window.scrollY});function da(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=fa(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 Qr(e,t){return(history.state?history.state.position-t:-1)+e}const Ms=new Map;function ha(e,t){Ms.set(e,t)}function pa(e){const t=Ms.get(e);return Ms.delete(e),t}function ga(e){return typeof e=="string"||e&&typeof e=="object"}function Di(e){return typeof e=="string"||typeof e=="symbol"}let ie=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 Mi=Symbol("");ie.MATCHER_NOT_FOUND+"",ie.NAVIGATION_GUARD_REDIRECT+"",ie.NAVIGATION_ABORTED+"",ie.NAVIGATION_CANCELLED+"",ie.NAVIGATION_DUPLICATED+"";function Gt(e,t){return Q(new Error,{type:e,[Mi]:!0},t)}function nt(e,t){return e instanceof Error&&Mi in e&&(t==null||!!(e.type&t))}const ma=["params","query","hash"];function _a(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of ma)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function va(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(Oi," "),o=r.indexOf("="),i=_n(o<0?r:r.slice(0,o)),l=o<0?null:_n(r.slice(o+1));if(i in t){let c=t[i];Be(c)||(c=t[i]=[c]),c.push(l)}else t[i]=l}return t}function Yr(e){let t="";for(let n in e){const s=e[n];if(n=Zu(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Be(s)?s.map(r=>r&&Ns(r)):[s&&Ns(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function ya(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Be(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const ba=Symbol(""),Xr=Symbol(""),rs=Symbol(""),sr=Symbol(""),Ls=Symbol("");function Xt(){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 vt(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const f=g=>{g===!1?c(Gt(ie.NAVIGATION_ABORTED,{from:n,to:t})):g instanceof Error?c(g):ga(g)?c(Gt(ie.NAVIGATION_GUARD_REDIRECT,{from:t,to:g})):(i&&s.enterCallbacks[r]===i&&typeof g=="function"&&i.push(g),l())},u=o(()=>e.call(s&&s.instances[r],t,n,f));let d=Promise.resolve(u);e.length<3&&(d=d.then(f)),d.catch(g=>c(g))})}function vs(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(Ri(c)){const f=(c.__vccOpts||c)[t];f&&o.push(vt(f,n,s,i,l,r))}else{let f=c();o.push(()=>f.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const d=Hu(u)?u.default:u;i.mods[l]=u,i.components[l]=d;const g=(d.__vccOpts||d)[t];return g&&vt(g,n,s,i,l,r)()}))}}return o}function Ea(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(f=>Kt(f,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(f=>Kt(f,c))||r.push(c))}return[n,s,r]}/*!
|
|
* vue-router v4.6.4
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/let Sa=()=>location.protocol+"//"+location.host;function Li(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),zr(l,"")}return zr(n,e)+s+r}function wa(e,t,n,s){let r=[],o=[],i=null;const l=({state:g})=>{const m=Li(e,location),A=n.value,S=t.value;let N=0;if(g){if(n.value=m,t.value=g,i&&i===A){i=null;return}N=S?g.position-S.position:0}else s(m);r.forEach(M=>{M(n.value,A,{delta:N,type:Ds.pop,direction:N?N>0?_s.forward:_s.back:_s.unknown})})};function c(){i=n.value}function f(g){r.push(g);const m=()=>{const A=r.indexOf(g);A>-1&&r.splice(A,1)};return o.push(m),m}function u(){if(document.visibilityState==="hidden"){const{history:g}=window;if(!g.state)return;g.replaceState(Q({},g.state,{scroll:ss()}),"")}}function d(){for(const g of o)g();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:c,listen:f,destroy:d}}function Zr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?ss():null}}function xa(e){const{history:t,location:n}=window,s={value:Li(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,f,u){const d=e.indexOf("#"),g=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+c:Sa()+e+c;try{t[u?"replaceState":"pushState"](f,"",g),r.value=f}catch(m){console.error(m),n[u?"replace":"assign"](g)}}function i(c,f){o(c,Q({},t.state,Zr(r.value.back,c,r.value.forward,!0),f,{position:r.value.position}),!0),s.value=c}function l(c,f){const u=Q({},r.value,t.state,{forward:c,scroll:ss()});o(u.current,u,!0),o(c,Q({},Zr(s.value,c,null),{position:u.position+1},f),!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function Aa(e){e=ca(e);const t=xa(e),n=wa(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:aa.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 Rt=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 Ra={type:Rt.Static,value:""},Ca=/[a-zA-Z0-9_]/;function Oa(e){if(!e)return[[]];if(e==="/")return[[Ra]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${f}": ${m}`)}let n=fe.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,f="",u="";function d(){f&&(n===fe.Static?o.push({type:Rt.Static,value:f}):n===fe.Param||n===fe.ParamRegExp||n===fe.ParamRegExpEnd?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Rt.Param,value:f,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),f="")}function g(){f+=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==="/"?(f&&d(),i()):c===":"?(d(),n=fe.Param):g();break;case fe.EscapeNext:g(),n=s;break;case fe.Param:c==="("?n=fe.ParamRegExp:Ca.test(c)?g():(d(),n=fe.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case fe.ParamRegExp:c===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+c:n=fe.ParamRegExpEnd:u+=c;break;case fe.ParamRegExpEnd:d(),n=fe.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--,u="";break;default:t("Unknown state");break}}return n===fe.ParamRegExp&&t(`Unfinished custom RegExp for param "${f}"`),d(),i(),r}const eo="[^/]+?",Ta={sensitive:!1,strict:!1,start:!0,end:!0};var ve=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}(ve||{});const Pa=/[.+*?^${}()[\]/\\]/g;function Ia(e,t){const n=Q({},Ta,t),s=[];let r=n.start?"^":"";const o=[];for(const f of e){const u=f.length?[]:[ve.Root];n.strict&&!f.length&&(r+="/");for(let d=0;d<f.length;d++){const g=f[d];let m=ve.Segment+(n.sensitive?ve.BonusCaseSensitive:0);if(g.type===Rt.Static)d||(r+="/"),r+=g.value.replace(Pa,"\\$&"),m+=ve.Static;else if(g.type===Rt.Param){const{value:A,repeatable:S,optional:N,regexp:M}=g;o.push({name:A,repeatable:S,optional:N});const T=M||eo;if(T!==eo){m+=ve.BonusCustomRegExp;try{`${T}`}catch(w){throw new Error(`Invalid custom RegExp for param "${A}" (${T}): `+w.message)}}let D=S?`((?:${T})(?:/(?:${T}))*)`:`(${T})`;d||(D=N&&f.length<2?`(?:/${D})`:"/"+D),N&&(D+="?"),r+=D,m+=ve.Dynamic,N&&(m+=ve.BonusOptional),S&&(m+=ve.BonusRepeatable),T===".*"&&(m+=ve.BonusWildcard)}u.push(m)}s.push(u)}if(n.strict&&n.end){const f=s.length-1;s[f][s[f].length-1]+=ve.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function l(f){const u=f.match(i),d={};if(!u)return null;for(let g=1;g<u.length;g++){const m=u[g]||"",A=o[g-1];d[A.name]=m&&A.repeatable?m.split("/"):m}return d}function c(f){let u="",d=!1;for(const g of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const m of g)if(m.type===Rt.Static)u+=m.value;else if(m.type===Rt.Param){const{value:A,repeatable:S,optional:N}=m,M=A in f?f[A]:"";if(Be(M)&&!S)throw new Error(`Provided param "${A}" is an array but it is not repeatable (* or + modifiers)`);const T=Be(M)?M.join("/"):M;if(!T)if(N)g.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${A}"`);u+=T}}return u||"/"}return{re:i,score:s,keys:o,parse:l,stringify:c}}function Na(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]===ve.Static+ve.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===ve.Static+ve.Segment?1:-1:0}function ki(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=Na(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(to(s))return 1;if(to(r))return-1}return r.length-s.length}function to(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Da={strict:!1,end:!0,sensitive:!1};function Ma(e,t,n){const s=Ia(Oa(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 La(e,t){const n=[],s=new Map;t=$r(Da,t);function r(d){return s.get(d)}function o(d,g,m){const A=!m,S=so(d);S.aliasOf=m&&m.record;const N=$r(t,d),M=[S];if("alias"in d){const w=typeof d.alias=="string"?[d.alias]:d.alias;for(const U of w)M.push(so(Q({},S,{components:m?m.record.components:S.components,path:U,aliasOf:m?m.record:S})))}let T,D;for(const w of M){const{path:U}=w;if(g&&U[0]!=="/"){const ce=g.record.path,W=ce[ce.length-1]==="/"?"":"/";w.path=g.record.path+(U&&W+U)}if(T=Ma(w,g,N),m?m.alias.push(T):(D=D||T,D!==T&&D.alias.push(T),A&&d.name&&!ro(T)&&i(d.name)),Vi(T)&&c(T),S.children){const ce=S.children;for(let W=0;W<ce.length;W++)o(ce[W],T,m&&m.children[W])}m=m||T}return D?()=>{i(D)}:an}function i(d){if(Di(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=Fa(d,n);n.splice(g,0,d),d.record.name&&!ro(d)&&s.set(d.record.name,d)}function f(d,g){let m,A={},S,N;if("name"in d&&d.name){if(m=s.get(d.name),!m)throw Gt(ie.MATCHER_NOT_FOUND,{location:d});N=m.record.name,A=Q(no(g.params,m.keys.filter(D=>!D.optional).concat(m.parent?m.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),d.params&&no(d.params,m.keys.map(D=>D.name))),S=m.stringify(A)}else if(d.path!=null)S=d.path,m=n.find(D=>D.re.test(S)),m&&(A=m.parse(S),N=m.record.name);else{if(m=g.name?s.get(g.name):n.find(D=>D.re.test(g.path)),!m)throw Gt(ie.MATCHER_NOT_FOUND,{location:d,currentLocation:g});N=m.record.name,A=Q({},g.params,d.params),S=m.stringify(A)}const M=[];let T=m;for(;T;)M.unshift(T.record),T=T.parent;return{name:N,path:S,params:A,matched:M,meta:Va(M)}}e.forEach(d=>o(d));function u(){n.length=0,s.clear()}return{addRoute:o,resolve:f,removeRoute:i,clearRoutes:u,getRoutes:l,getRecordMatcher:r}}function no(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function so(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ka(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function ka(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function ro(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Va(e){return e.reduce((t,n)=>Q(t,n.meta),{})}function Fa(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;ki(e,t[o])<0?s=o:n=o+1}const r=ja(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function ja(e){let t=e;for(;t=t.parent;)if(Vi(t)&&ki(e,t)===0)return t}function Vi({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function oo(e){const t=Fe(rs),n=Fe(sr),s=ue(()=>{const c=Ot(e.to);return t.resolve(c)}),r=ue(()=>{const{matched:c}=s.value,{length:f}=c,u=c[f-1],d=n.matched;if(!u||!d.length)return-1;const g=d.findIndex(Kt.bind(null,u));if(g>-1)return g;const m=io(c[f-2]);return f>1&&io(u)===m&&d[d.length-1].path!==m?d.findIndex(Kt.bind(null,c[f-2])):g}),o=ue(()=>r.value>-1&&Ga(n.params,s.value.params)),i=ue(()=>r.value>-1&&r.value===n.matched.length-1&&Ni(n.params,s.value.params));function l(c={}){if(Ka(c)){const f=t[Ot(e.replace)?"replace":"push"](Ot(e.to)).catch(an);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:s,href:ue(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}function Ua(e){return e.length===1?e[0]:e}const Ba=Yn({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:oo,setup(e,{slots:t}){const n=yn(oo(e)),{options:s}=Fe(rs),r=ue(()=>({[lo(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[lo(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Ua(t.default(n));return e.custom?o:vi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),Ha=Ba;function Ka(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ga(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Be(r)||r.length!==s.length||s.some((o,i)=>o.valueOf()!==r[i].valueOf()))return!1}return!0}function io(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const lo=(e,t,n)=>e??t??n,Wa=Yn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Fe(Ls),r=ue(()=>e.route||s.value),o=Fe(Xr,0),i=ue(()=>{let f=Ot(o);const{matched:u}=r.value;let d;for(;(d=u[f])&&!d.components;)f++;return f}),l=ue(()=>r.value.matched[i.value]);Rn(Xr,ue(()=>i.value+1)),Rn(ba,l),Rn(Ls,r);const c=Ie();return sn(()=>[c.value,l.value,e.name],([f,u,d],[g,m,A])=>{u&&(u.instances[d]=f,m&&m!==u&&f&&f===g&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),f&&u&&(!m||!Kt(u,m)||!g)&&(u.enterCallbacks[d]||[]).forEach(S=>S(f))},{flush:"post"}),()=>{const f=r.value,u=e.name,d=l.value,g=d&&d.components[u];if(!g)return co(n.default,{Component:g,route:f});const m=d.props[u],A=m?m===!0?f.params:typeof m=="function"?m(f):m:null,N=vi(g,Q({},A,t,{onVnodeUnmounted:M=>{M.component.isUnmounted&&(d.instances[u]=null)},ref:c}));return co(n.default,{Component:N,route:f})||N}}});function co(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qa=Wa;function $a(e){const t=La(e.routes,e),n=e.parseQuery||va,s=e.stringifyQuery||Yr,r=e.history,o=Xt(),i=Xt(),l=Xt(),c=vl(gt);let f=gt;kt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=gs.bind(null,y=>""+y),d=gs.bind(null,ta),g=gs.bind(null,_n);function m(y,I){let O,L;return Di(y)?(O=t.getRecordMatcher(y),L=I):L=y,t.addRoute(L,O)}function A(y){const I=t.getRecordMatcher(y);I&&t.removeRoute(I)}function S(){return t.getRoutes().map(y=>y.record)}function N(y){return!!t.getRecordMatcher(y)}function M(y,I){if(I=Q({},I||c.value),typeof y=="string"){const p=ms(n,y,I.path),_=t.resolve({path:p.path},I),b=r.createHref(p.fullPath);return Q(p,_,{params:g(_.params),hash:_n(p.hash),redirectedFrom:void 0,href:b})}let O;if(y.path!=null)O=Q({},y,{path:ms(n,y.path,I.path).path});else{const p=Q({},y.params);for(const _ in p)p[_]==null&&delete p[_];O=Q({},y,{params:d(p)}),I.params=d(I.params)}const L=t.resolve(O,I),q=y.hash||"";L.params=u(g(L.params));const a=ra(s,Q({},y,{hash:Xu(q),path:L.path})),h=r.createHref(a);return Q({fullPath:a,hash:q,query:s===Yr?ya(y.query):y.query||{}},L,{redirectedFrom:void 0,href:h})}function T(y){return typeof y=="string"?ms(n,y,c.value.path):Q({},y)}function D(y,I){if(f!==y)return Gt(ie.NAVIGATION_CANCELLED,{from:I,to:y})}function w(y){return W(y)}function U(y){return w(Q(T(y),{replace:!0}))}function ce(y,I){const O=y.matched[y.matched.length-1];if(O&&O.redirect){const{redirect:L}=O;let q=typeof L=="function"?L(y,I):L;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=T(q):{path:q},q.params={}),Q({query:y.query,hash:y.hash,params:q.path!=null?{}:y.params},q)}}function W(y,I){const O=f=M(y),L=c.value,q=y.state,a=y.force,h=y.replace===!0,p=ce(O,L);if(p)return W(Q(T(p),{state:typeof p=="object"?Q({},q,p.state):q,force:a,replace:h}),I||O);const _=O;_.redirectedFrom=I;let b;return!a&&oa(s,L,O)&&(b=Gt(ie.NAVIGATION_DUPLICATED,{to:_,from:L}),He(L,L,!0,!1)),(b?Promise.resolve(b):re(_,L)).catch(v=>nt(v)?nt(v,ie.NAVIGATION_GUARD_REDIRECT)?v:pt(v):J(v,_,L)).then(v=>{if(v){if(nt(v,ie.NAVIGATION_GUARD_REDIRECT))return W(Q({replace:h},T(v.to),{state:typeof v.to=="object"?Q({},q,v.to.state):q,force:a}),I||_)}else v=Oe(_,L,!0,h,q);return me(_,L,v),v})}function K(y,I){const O=D(y,I);return O?Promise.reject(O):Promise.resolve()}function G(y){const I=Nt.values().next().value;return I&&typeof I.runWithContext=="function"?I.runWithContext(y):y()}function re(y,I){let O;const[L,q,a]=Ea(y,I);O=vs(L.reverse(),"beforeRouteLeave",y,I);for(const p of L)p.leaveGuards.forEach(_=>{O.push(vt(_,y,I))});const h=K.bind(null,y,I);return O.push(h),Le(O).then(()=>{O=[];for(const p of o.list())O.push(vt(p,y,I));return O.push(h),Le(O)}).then(()=>{O=vs(q,"beforeRouteUpdate",y,I);for(const p of q)p.updateGuards.forEach(_=>{O.push(vt(_,y,I))});return O.push(h),Le(O)}).then(()=>{O=[];for(const p of a)if(p.beforeEnter)if(Be(p.beforeEnter))for(const _ of p.beforeEnter)O.push(vt(_,y,I));else O.push(vt(p.beforeEnter,y,I));return O.push(h),Le(O)}).then(()=>(y.matched.forEach(p=>p.enterCallbacks={}),O=vs(a,"beforeRouteEnter",y,I,G),O.push(h),Le(O))).then(()=>{O=[];for(const p of i.list())O.push(vt(p,y,I));return O.push(h),Le(O)}).catch(p=>nt(p,ie.NAVIGATION_CANCELLED)?p:Promise.reject(p))}function me(y,I,O){l.list().forEach(L=>G(()=>L(y,I,O)))}function Oe(y,I,O,L,q){const a=D(y,I);if(a)return a;const h=I===gt,p=kt?history.state:{};O&&(L||h?r.replace(y.fullPath,Q({scroll:h&&p&&p.scroll},q)):r.push(y.fullPath,q)),c.value=y,He(y,I,O,h),pt()}let Se;function Et(){Se||(Se=r.listen((y,I,O)=>{if(!St.listening)return;const L=M(y),q=ce(L,St.currentRoute.value);if(q){W(Q(q,{replace:!0,force:!0}),L).catch(an);return}f=L;const a=c.value;kt&&ha(Qr(a.fullPath,O.delta),ss()),re(L,a).catch(h=>nt(h,ie.NAVIGATION_ABORTED|ie.NAVIGATION_CANCELLED)?h:nt(h,ie.NAVIGATION_GUARD_REDIRECT)?(W(Q(T(h.to),{force:!0}),L).then(p=>{nt(p,ie.NAVIGATION_ABORTED|ie.NAVIGATION_DUPLICATED)&&!O.delta&&O.type===Ds.pop&&r.go(-1,!1)}).catch(an),Promise.reject()):(O.delta&&r.go(-O.delta,!1),J(h,L,a))).then(h=>{h=h||Oe(L,a,!1),h&&(O.delta&&!nt(h,ie.NAVIGATION_CANCELLED)?r.go(-O.delta,!1):O.type===Ds.pop&&nt(h,ie.NAVIGATION_ABORTED|ie.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),me(L,a,h)}).catch(an)}))}let ht=Xt(),se=Xt(),H;function J(y,I,O){pt(y);const L=se.list();return L.length?L.forEach(q=>q(y,I,O)):console.error(y),Promise.reject(y)}function et(){return H&&c.value!==gt?Promise.resolve():new Promise((y,I)=>{ht.add([y,I])})}function pt(y){return H||(H=!y,Et(),ht.list().forEach(([I,O])=>y?O(y):I()),ht.reset()),y}function He(y,I,O,L){const{scrollBehavior:q}=e;if(!kt||!q)return Promise.resolve();const a=!O&&pa(Qr(y.fullPath,0))||(L||!O)&&history.state&&history.state.scroll||null;return Qn().then(()=>q(y,I,a)).then(h=>h&&da(h)).catch(h=>J(h,y,I))}const we=y=>r.go(y);let It;const Nt=new Set,St={currentRoute:c,listening:!0,addRoute:m,removeRoute:A,clearRoutes:t.clearRoutes,hasRoute:N,getRoutes:S,resolve:M,options:e,push:w,replace:U,go:we,back:()=>we(-1),forward:()=>we(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:se.add,isReady:et,install(y){y.component("RouterLink",Ha),y.component("RouterView",qa),y.config.globalProperties.$router=St,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>Ot(c)}),kt&&!It&&c.value===gt&&(It=!0,w(r.location).catch(L=>{}));const I={};for(const L in gt)Object.defineProperty(I,L,{get:()=>c.value[L],enumerable:!0});y.provide(rs,St),y.provide(sr,Lo(I)),y.provide(Ls,c);const O=y.unmount;Nt.add(y),y.unmount=function(){Nt.delete(y),Nt.size<1&&(f=gt,Se&&Se(),Se=null,c.value=gt,It=!1,H=!1),O()}}};function Le(y){return y.reduce((I,O)=>I.then(()=>G(O)),Promise.resolve())}return St}function ef(){return Fe(rs)}function tf(e){return Fe(sr)}const Fi=$a({history:Aa("/app/"),routes:[{path:"/login",name:"login",component:()=>oe(()=>import("./LoginView-D8QH8UMb.js"),[]),meta:{guest:!0}},{path:"/register",name:"register-org",component:()=>oe(()=>import("./RegisterOrgView-CpcADoEU.js"),[]),meta:{guest:!0}},{path:"/admin",name:"admin",component:()=>oe(()=>import("./AdminDashboardView-JnGO4r61.js"),[]),meta:{requiresAuth:!0}},{path:"/",component:()=>oe(()=>import("./AppLayout-AMYs4jcG.js"),[]),meta:{requiresAuth:!0},children:[{path:"",name:"dashboard",component:()=>oe(()=>import("./DashboardView-D1ilHHiP.js"),[])},{path:"orders",name:"orders",component:()=>oe(()=>import("./OrdersView-Cykxo3M3.js"),[])},{path:"orders/:id",name:"order-detail",component:()=>oe(()=>import("./OrderDetailView-CrMXW-i2.js"),[])},{path:"users",name:"users",component:()=>oe(()=>import("./UsersView-Df5a9eIx.js"),[]),meta:{roles:["chef","disponent"]}},{path:"availability",name:"availability",component:()=>oe(()=>import("./AvailabilityView-BNPzNcWA.js"),[])},{path:"timesheets",name:"timesheets",component:()=>oe(()=>import("./TimesheetsView-Cx-KwgCo.js"),[])},{path:"settings",name:"settings",component:()=>oe(()=>import("./SettingsView-4DujBg5S.js"),[])},{path:"modules",name:"modules",component:()=>oe(()=>import("./ModulesView-BNzetqIV.js"),[]),meta:{roles:["chef"]}},{path:"partnerships",name:"partnerships",component:()=>oe(()=>import("./PartnershipsView-BTiY9iQS.js"),[])},{path:"help",name:"help",component:()=>oe(()=>import("./HelpView-1PeoZaC4.js"),[])},{path:"qualifications",name:"qualifications",component:()=>oe(()=>import("./QualificationsView-BbIklgwE.js"),[])},{path:"objects",name:"objects",component:()=>oe(()=>import("./ObjectsView-CzlgFF9j.js"),[])},{path:"shifts",name:"shifts",component:()=>oe(()=>import("./ShiftsView-gFZrEy1d.js"),[]),meta:{roles:["chef","disponent"]}},{path:"patrols",name:"patrols",component:()=>oe(()=>import("./PatrolsView-CE7IkVbv.js"),[])},{path:"incidents",name:"incidents",component:()=>oe(()=>import("./IncidentsView-DPo8woI1.js"),[])},{path:"vehicles",name:"vehicles",component:()=>oe(()=>import("./VehiclesView-C2kXdRXZ.js"),[]),meta:{roles:["chef","disponent"]}},{path:"documents",name:"documents",component:()=>oe(()=>import("./DocumentsView-cD_00o40.js"),[])},{path:"customers",name:"customers",component:()=>oe(()=>import("./CustomersView-B4K9IT7m.js"),[]),meta:{roles:["chef","disponent"]}},{path:"billing",name:"billing",component:()=>oe(()=>import("./BillingView-TAMo2net.js"),[]),meta:{roles:["chef"]}}]}]});Fi.beforeEach(async(e,t,n)=>{var l;const s=tr();!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 rr=hu(ju);rr.use(mu());rr.use(Fi);rr.mount("#app");export{Ja as A,Ya as B,js as C,Ve as F,Pe as a,Nl as b,ke as c,Yn as d,pi as e,ef as f,tf as g,sn as h,be as i,Il as j,ue as k,Xl as l,Yt as m,qn as n,Ce as o,Pc as p,Qs as q,Ie as r,Xa as s,ys as t,tr as u,Qa as v,Za as w,_r as x,Ot as y,di as z};
|