18 lines
120 KiB
JavaScript
18 lines
120 KiB
JavaScript
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();/**
|
|
* @vue/shared v3.5.31
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function ds(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const te={},Mt=[],Ze=()=>{},bi=()=>!1,Cn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Sn=e=>e.startsWith("onUpdate:"),pe=Object.assign,hs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Bo=Object.prototype.hasOwnProperty,Q=(e,t)=>Bo.call(e,t),H=Array.isArray,It=e=>tn(e)==="[object Map]",_i=e=>tn(e)==="[object Set]",Os=e=>tn(e)==="[object Date]",U=e=>typeof e=="function",ue=e=>typeof e=="string",Xe=e=>typeof e=="symbol",Y=e=>e!==null&&typeof e=="object",xi=e=>(Y(e)||U(e))&&U(e.then)&&U(e.catch),wi=Object.prototype.toString,tn=e=>wi.call(e),Lo=e=>tn(e).slice(8,-1),$i=e=>tn(e)==="[object Object]",ps=e=>ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ht=ds(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Tn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ro=/-\w/g,Ne=Tn(e=>e.replace(Ro,t=>t.slice(1).toUpperCase())),No=/\B([A-Z])/g,St=Tn(e=>e.replace(No,"-$1").toLowerCase()),ki=Tn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hn=Tn(e=>e?`on${ki(e)}`:""),Ye=(e,t)=>!Object.is(e,t),un=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Ci=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},vs=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Fo=e=>{const t=ue(e)?Number(e):NaN;return isNaN(t)?e:t};let Bs;const An=()=>Bs||(Bs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function pt(e){if(H(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=ue(s)?jo(s):pt(s);if(i)for(const o in i)t[o]=i[o]}return t}else if(ue(e)||Y(e))return e}const Vo=/;(?![^(]*\))/g,Do=/:([^]+)/,Ho=/\/\*[^]*?\*\//g;function jo(e){const t={};return e.replace(Ho,"").split(Vo).forEach(n=>{if(n){const s=n.split(Do);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function rt(e){let t="";if(ue(e))t=e;else if(H(e))for(let n=0;n<e.length;n++){const s=rt(e[n]);s&&(t+=s+" ")}else if(Y(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const qo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Uo=ds(qo);function Si(e){return!!e||e===""}function Ko(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=ms(e[s],t[s]);return n}function ms(e,t){if(e===t)return!0;let n=Os(e),s=Os(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=H(e),s=H(t),n||s)return n&&s?Ko(e,t):!1;if(n=Y(e),s=Y(t),n||s){if(!n||!s)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const l in e){const r=e.hasOwnProperty(l),u=t.hasOwnProperty(l);if(r&&!u||!r&&u||!ms(e[l],t[l]))return!1}}return String(e)===String(t)}const Ti=e=>!!(e&&e.__v_isRef===!0),R=e=>ue(e)?e:e==null?"":H(e)||Y(e)&&(e.toString===wi||!U(e.toString))?Ti(e)?R(e.value):JSON.stringify(e,Ai,2):String(e),Ai=(e,t)=>Ti(t)?Ai(e,t.value):It(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],o)=>(n[jn(s,o)+" =>"]=i,n),{})}:_i(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>jn(n))}:Xe(t)?jn(t):Y(t)&&!H(t)&&!$i(t)?String(t):t,jn=(e,t="")=>{var n;return Xe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
* @vue/reactivity v3.5.31
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let Se;class Wo{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=Se,!t&&Se&&(this.index=(Se.scopes||(Se.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=Se;try{return Se=this,t()}finally{Se=n}}}on(){++this._on===1&&(this.prevScope=Se,Se=this)}off(){this._on>0&&--this._on===0&&(Se=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 i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function zo(){return Se}let ie;const qn=new WeakSet;class Ei{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,Se&&Se.active&&Se.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,qn.has(this)&&(qn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ii(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ls(this),Pi(this);const t=ie,n=Fe;ie=this,Fe=!0;try{return this.fn()}finally{Oi(this),ie=t,Fe=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)bs(t);this.deps=this.depsTail=void 0,Ls(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?qn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Xn(this)&&this.run()}get dirty(){return Xn(this)}}let Mi=0,jt,qt;function Ii(e,t=!1){if(e.flags|=8,t){e.next=qt,qt=e;return}e.next=jt,jt=e}function gs(){Mi++}function ys(){if(--Mi>0)return;if(qt){let t=qt;for(qt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;jt;){let t=jt;for(jt=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 Pi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Oi(e){let t,n=e.depsTail,s=n;for(;s;){const i=s.prevDep;s.version===-1?(s===n&&(n=i),bs(s),Go(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=i}e.deps=t,e.depsTail=n}function Xn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Bi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Bi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Gt)||(e.globalVersion=Gt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Xn(e))))return;e.flags|=2;const t=e.dep,n=ie,s=Fe;ie=e,Fe=!0;try{Pi(e);const i=e.fn(e._value);(t.version===0||Ye(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{ie=n,Fe=s,Oi(e),e.flags&=-3}}function bs(e,t=!1){const{dep:n,prevSub:s,nextSub:i}=e;if(s&&(s.nextSub=i,e.prevSub=void 0),i&&(i.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)bs(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Go(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Fe=!0;const Li=[];function at(){Li.push(Fe),Fe=!1}function ut(){const e=Li.pop();Fe=e===void 0?!0:e}function Ls(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ie;ie=void 0;try{t()}finally{ie=n}}}let Gt=0;class Jo{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 _s{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(!ie||!Fe||ie===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ie)n=this.activeLink=new Jo(ie,this),ie.deps?(n.prevDep=ie.depsTail,ie.depsTail.nextDep=n,ie.depsTail=n):ie.deps=ie.depsTail=n,Ri(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=ie.depsTail,n.nextDep=void 0,ie.depsTail.nextDep=n,ie.depsTail=n,ie.deps===n&&(ie.deps=s)}return n}trigger(t){this.version++,Gt++,this.notify(t)}notify(t){gs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ys()}}}function Ri(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)Ri(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const es=new WeakMap,kt=Symbol(""),ts=Symbol(""),Jt=Symbol("");function ye(e,t,n){if(Fe&&ie){let s=es.get(e);s||es.set(e,s=new Map);let i=s.get(n);i||(s.set(n,i=new _s),i.map=s,i.key=n),i.track()}}function ot(e,t,n,s,i,o){const l=es.get(e);if(!l){Gt++;return}const r=u=>{u&&u.trigger()};if(gs(),t==="clear")l.forEach(r);else{const u=H(e),d=u&&ps(n);if(u&&n==="length"){const c=Number(s);l.forEach((p,y)=>{(y==="length"||y===Jt||!Xe(y)&&y>=c)&&r(p)})}else switch((n!==void 0||l.has(void 0))&&r(l.get(n)),d&&r(l.get(Jt)),t){case"add":u?d&&r(l.get("length")):(r(l.get(kt)),It(e)&&r(l.get(ts)));break;case"delete":u||(r(l.get(kt)),It(e)&&r(l.get(ts)));break;case"set":It(e)&&r(l.get(kt));break}}ys()}function Tt(e){const t=G(e);return t===e?t:(ye(t,"iterate",Jt),Pe(e)?t:t.map(Ve))}function En(e){return ye(e=G(e),"iterate",Jt),e}function Je(e,t){return ct(e)?Bt(Ct(e)?Ve(t):t):Ve(t)}const Qo={__proto__:null,[Symbol.iterator](){return Un(this,Symbol.iterator,e=>Je(this,e))},concat(...e){return Tt(this).concat(...e.map(t=>H(t)?Tt(t):t))},entries(){return Un(this,"entries",e=>(e[1]=Je(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=>Je(this,s)),arguments)},find(e,t){return tt(this,"find",e,t,n=>Je(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=>Je(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 Kn(this,"includes",e)},indexOf(...e){return Kn(this,"indexOf",e)},join(e){return Tt(this).join(e)},lastIndexOf(...e){return Kn(this,"lastIndexOf",e)},map(e,t){return tt(this,"map",e,t,void 0,arguments)},pop(){return Nt(this,"pop")},push(...e){return Nt(this,"push",e)},reduce(e,...t){return Rs(this,"reduce",e,t)},reduceRight(e,...t){return Rs(this,"reduceRight",e,t)},shift(){return Nt(this,"shift")},some(e,t){return tt(this,"some",e,t,void 0,arguments)},splice(...e){return Nt(this,"splice",e)},toReversed(){return Tt(this).toReversed()},toSorted(e){return Tt(this).toSorted(e)},toSpliced(...e){return Tt(this).toSpliced(...e)},unshift(...e){return Nt(this,"unshift",e)},values(){return Un(this,"values",e=>Je(this,e))}};function Un(e,t,n){const s=En(e),i=s[t]();return s!==e&&!Pe(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=n(o.value)),o}),i}const Yo=Array.prototype;function tt(e,t,n,s,i,o){const l=En(e),r=l!==e&&!Pe(e),u=l[t];if(u!==Yo[t]){const p=u.apply(e,o);return r?Ve(p):p}let d=n;l!==e&&(r?d=function(p,y){return n.call(this,Je(e,p),y,e)}:n.length>2&&(d=function(p,y){return n.call(this,p,y,e)}));const c=u.call(l,d,s);return r&&i?i(c):c}function Rs(e,t,n,s){const i=En(e),o=i!==e&&!Pe(e);let l=n,r=!1;i!==e&&(o?(r=s.length===0,l=function(d,c,p){return r&&(r=!1,d=Je(e,d)),n.call(this,d,Je(e,c),p,e)}):n.length>3&&(l=function(d,c,p){return n.call(this,d,c,p,e)}));const u=i[t](l,...s);return r?Je(e,u):u}function Kn(e,t,n){const s=G(e);ye(s,"iterate",Jt);const i=s[t](...n);return(i===-1||i===!1)&&ks(n[0])?(n[0]=G(n[0]),s[t](...n)):i}function Nt(e,t,n=[]){at(),gs();const s=G(e)[t].apply(e,n);return ys(),ut(),s}const Zo=ds("__proto__,__v_isRef,__isVue"),Ni=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Xe));function Xo(e){Xe(e)||(e=String(e));const t=G(this);return ye(t,"has",e),t.hasOwnProperty(e)}class Fi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(i?o?ul:ji:o?Hi:Di).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const l=H(t);if(!i){let u;if(l&&(u=Qo[n]))return u;if(n==="hasOwnProperty")return Xo}const r=Reflect.get(t,n,be(t)?t:s);if((Xe(n)?Ni.has(n):Zo(n))||(i||ye(t,"get",n),o))return r;if(be(r)){const u=l&&ps(n)?r:r.value;return i&&Y(u)?ss(u):u}return Y(r)?i?ss(r):ws(r):r}}class Vi extends Fi{constructor(t=!1){super(!1,t)}set(t,n,s,i){let o=t[n];const l=H(t)&&ps(n);if(!this._isShallow){const d=ct(o);if(!Pe(s)&&!ct(s)&&(o=G(o),s=G(s)),!l&&be(o)&&!be(s))return d||(o.value=s),!0}const r=l?Number(n)<t.length:Q(t,n),u=Reflect.set(t,n,s,be(t)?t:i);return t===G(i)&&(r?Ye(s,o)&&ot(t,"set",n,s):ot(t,"add",n,s)),u}deleteProperty(t,n){const s=Q(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&s&&ot(t,"delete",n,void 0),i}has(t,n){const s=Reflect.has(t,n);return(!Xe(n)||!Ni.has(n))&&ye(t,"has",n),s}ownKeys(t){return ye(t,"iterate",H(t)?"length":kt),Reflect.ownKeys(t)}}class el extends Fi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const tl=new Vi,nl=new el,sl=new Vi(!0);const ns=e=>e,ln=e=>Reflect.getPrototypeOf(e);function il(e,t,n){return function(...s){const i=this.__v_raw,o=G(i),l=It(o),r=e==="entries"||e===Symbol.iterator&&l,u=e==="keys"&&l,d=i[e](...s),c=n?ns:t?Bt:Ve;return!t&&ye(o,"iterate",u?ts:kt),pe(Object.create(d),{next(){const{value:p,done:y}=d.next();return y?{value:p,done:y}:{value:r?[c(p[0]),c(p[1])]:c(p),done:y}}})}}function rn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ol(e,t){const n={get(i){const o=this.__v_raw,l=G(o),r=G(i);e||(Ye(i,r)&&ye(l,"get",i),ye(l,"get",r));const{has:u}=ln(l),d=t?ns:e?Bt:Ve;if(u.call(l,i))return d(o.get(i));if(u.call(l,r))return d(o.get(r));o!==l&&o.get(i)},get size(){const i=this.__v_raw;return!e&&ye(G(i),"iterate",kt),i.size},has(i){const o=this.__v_raw,l=G(o),r=G(i);return e||(Ye(i,r)&&ye(l,"has",i),ye(l,"has",r)),i===r?o.has(i):o.has(i)||o.has(r)},forEach(i,o){const l=this,r=l.__v_raw,u=G(r),d=t?ns:e?Bt:Ve;return!e&&ye(u,"iterate",kt),r.forEach((c,p)=>i.call(o,d(c),d(p),l))}};return pe(n,e?{add:rn("add"),set:rn("set"),delete:rn("delete"),clear:rn("clear")}:{add(i){const o=G(this),l=ln(o),r=G(i),u=!t&&!Pe(i)&&!ct(i)?r:i;return l.has.call(o,u)||Ye(i,u)&&l.has.call(o,i)||Ye(r,u)&&l.has.call(o,r)||(o.add(u),ot(o,"add",u,u)),this},set(i,o){!t&&!Pe(o)&&!ct(o)&&(o=G(o));const l=G(this),{has:r,get:u}=ln(l);let d=r.call(l,i);d||(i=G(i),d=r.call(l,i));const c=u.call(l,i);return l.set(i,o),d?Ye(o,c)&&ot(l,"set",i,o):ot(l,"add",i,o),this},delete(i){const o=G(this),{has:l,get:r}=ln(o);let u=l.call(o,i);u||(i=G(i),u=l.call(o,i)),r&&r.call(o,i);const d=o.delete(i);return u&&ot(o,"delete",i,void 0),d},clear(){const i=G(this),o=i.size!==0,l=i.clear();return o&&ot(i,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=il(i,e,t)}),n}function xs(e,t){const n=ol(e,t);return(s,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(Q(n,i)&&i in s?n:s,i,o)}const ll={get:xs(!1,!1)},rl={get:xs(!1,!0)},al={get:xs(!0,!1)};const Di=new WeakMap,Hi=new WeakMap,ji=new WeakMap,ul=new WeakMap;function cl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fl(e){return e.__v_skip||!Object.isExtensible(e)?0:cl(Lo(e))}function ws(e){return ct(e)?e:$s(e,!1,tl,ll,Di)}function dl(e){return $s(e,!1,sl,rl,Hi)}function ss(e){return $s(e,!0,nl,al,ji)}function $s(e,t,n,s,i){if(!Y(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=fl(e);if(o===0)return e;const l=i.get(e);if(l)return l;const r=new Proxy(e,o===2?s:n);return i.set(e,r),r}function Ct(e){return ct(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function ct(e){return!!(e&&e.__v_isReadonly)}function Pe(e){return!!(e&&e.__v_isShallow)}function ks(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function hl(e){return!Q(e,"__v_skip")&&Object.isExtensible(e)&&Ci(e,"__v_skip",!0),e}const Ve=e=>Y(e)?ws(e):e,Bt=e=>Y(e)?ss(e):e;function be(e){return e?e.__v_isRef===!0:!1}function q(e){return pl(e,!1)}function pl(e,t){return be(e)?e:new vl(e,t)}class vl{constructor(t,n){this.dep=new _s,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:G(t),this._value=n?t:Ve(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Pe(t)||ct(t);t=s?t:G(t),Ye(t,n)&&(this._rawValue=t,this._value=s?t:Ve(t),this.dep.trigger())}}function ml(e){return be(e)?e.value:e}const gl={get:(e,t,n)=>t==="__v_raw"?e:ml(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return be(i)&&!be(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function qi(e){return Ct(e)?e:new Proxy(e,gl)}class yl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new _s(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Gt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&ie!==this)return Ii(this,!0),!0}get value(){const t=this.dep.track();return Bi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function bl(e,t,n=!1){let s,i;return U(e)?s=e:(s=e.get,i=e.set),new yl(s,i,n)}const an={},vn=new WeakMap;let wt;function _l(e,t=!1,n=wt){if(n){let s=vn.get(n);s||vn.set(n,s=[]),s.push(e)}}function xl(e,t,n=te){const{immediate:s,deep:i,once:o,scheduler:l,augmentJob:r,call:u}=n,d=S=>i?S:Pe(S)||i===!1||i===0?lt(S,1):lt(S);let c,p,y,b,T=!1,_=!1;if(be(e)?(p=()=>e.value,T=Pe(e)):Ct(e)?(p=()=>d(e),T=!0):H(e)?(_=!0,T=e.some(S=>Ct(S)||Pe(S)),p=()=>e.map(S=>{if(be(S))return S.value;if(Ct(S))return d(S);if(U(S))return u?u(S,2):S()})):U(e)?t?p=u?()=>u(e,2):e:p=()=>{if(y){at();try{y()}finally{ut()}}const S=wt;wt=c;try{return u?u(e,3,[b]):e(b)}finally{wt=S}}:p=Ze,t&&i){const S=p,z=i===!0?1/0:i;p=()=>lt(S(),z)}const m=zo(),P=()=>{c.stop(),m&&m.active&&hs(m.effects,c)};if(o&&t){const S=t;t=(...z)=>{S(...z),P()}}let M=_?new Array(e.length).fill(an):an;const E=S=>{if(!(!(c.flags&1)||!c.dirty&&!S))if(t){const z=c.run();if(i||T||(_?z.some((ce,ve)=>Ye(ce,M[ve])):Ye(z,M))){y&&y();const ce=wt;wt=c;try{const ve=[z,M===an?void 0:_&&M[0]===an?[]:M,b];M=z,u?u(t,3,ve):t(...ve)}finally{wt=ce}}}else c.run()};return r&&r(E),c=new Ei(p),c.scheduler=l?()=>l(E,!1):E,b=S=>_l(S,!1,c),y=c.onStop=()=>{const S=vn.get(c);if(S){if(u)u(S,4);else for(const z of S)z();vn.delete(c)}},t?s?E(!0):M=c.run():l?l(E.bind(null,!0),!0):c.run(),P.pause=c.pause.bind(c),P.resume=c.resume.bind(c),P.stop=P,P}function lt(e,t=1/0,n){if(t<=0||!Y(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,be(e))lt(e.value,t,n);else if(H(e))for(let s=0;s<e.length;s++)lt(e[s],t,n);else if(_i(e)||It(e))e.forEach(s=>{lt(s,t,n)});else if($i(e)){for(const s in e)lt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&<(e[s],t,n)}return e}/**
|
|
* @vue/runtime-core v3.5.31
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function nn(e,t,n,s){try{return s?e(...s):e()}catch(i){Mn(i,t,n)}}function De(e,t,n,s){if(U(e)){const i=nn(e,t,n,s);return i&&xi(i)&&i.catch(o=>{Mn(o,t,n)}),i}if(H(e)){const i=[];for(let o=0;o<e.length;o++)i.push(De(e[o],t,n,s));return i}}function Mn(e,t,n,s=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||te;if(t){let r=t.parent;const u=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const c=r.ec;if(c){for(let p=0;p<c.length;p++)if(c[p](e,u,d)===!1)return}r=r.parent}if(o){at(),nn(o,null,10,[e,u,d]),ut();return}}wl(e,n,i,s,l)}function wl(e,t,n,s=!0,i=!1){if(i)throw e;console.error(e)}const we=[];let ze=-1;const Pt=[];let ht=null,At=0;const Ui=Promise.resolve();let mn=null;function $l(e){const t=mn||Ui;return e?t.then(this?e.bind(this):e):t}function kl(e){let t=ze+1,n=we.length;for(;t<n;){const s=t+n>>>1,i=we[s],o=Qt(i);o<e||o===e&&i.flags&2?t=s+1:n=s}return t}function Cs(e){if(!(e.flags&1)){const t=Qt(e),n=we[we.length-1];!n||!(e.flags&2)&&t>=Qt(n)?we.push(e):we.splice(kl(t),0,e),e.flags|=1,Ki()}}function Ki(){mn||(mn=Ui.then(zi))}function Cl(e){H(e)?Pt.push(...e):ht&&e.id===-1?ht.splice(At+1,0,e):e.flags&1||(Pt.push(e),e.flags|=1),Ki()}function Ns(e,t,n=ze+1){for(;n<we.length;n++){const s=we[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;we.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Wi(e){if(Pt.length){const t=[...new Set(Pt)].sort((n,s)=>Qt(n)-Qt(s));if(Pt.length=0,ht){ht.push(...t);return}for(ht=t,At=0;At<ht.length;At++){const n=ht[At];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ht=null,At=0}}const Qt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function zi(e){try{for(ze=0;ze<we.length;ze++){const t=we[ze];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),nn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;ze<we.length;ze++){const t=we[ze];t&&(t.flags&=-2)}ze=-1,we.length=0,Wi(),mn=null,(we.length||Pt.length)&&zi()}}let Ie=null,Gi=null;function gn(e){const t=Ie;return Ie=e,Gi=e&&e.type.__scopeId||null,t}function yn(e,t=Ie,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&xn(-1);const o=gn(t);let l;try{l=e(...i)}finally{gn(o),s._d&&xn(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function Oe(e,t){if(Ie===null)return e;const n=Nn(Ie),s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,l,r,u=te]=t[i];o&&(U(o)&&(o={mounted:o,updated:o}),o.deep&<(l),s.push({dir:o,instance:n,value:l,oldValue:void 0,arg:r,modifiers:u}))}return e}function yt(e,t,n,s){const i=e.dirs,o=t&&t.dirs;for(let l=0;l<i.length;l++){const r=i[l];o&&(r.oldValue=o[l].value);let u=r.dir[s];u&&(at(),De(u,n,8,[e.el,r,e,t]),ut())}}function Sl(e,t){if(ke){let n=ke.provides;const s=ke.parent&&ke.parent.provides;s===n&&(n=ke.provides=Object.create(s)),n[e]=t}}function cn(e,t,n=!1){const s=So();if(s||Ot){let i=Ot?Ot._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&U(t)?t.call(s&&s.proxy):t}}const Tl=Symbol.for("v-scx"),Al=()=>cn(Tl);function fn(e,t,n){return Ji(e,t,n)}function Ji(e,t,n=te){const{immediate:s,deep:i,flush:o,once:l}=n,r=pe({},n),u=t&&s||!t&&o!=="post";let d;if(Xt){if(o==="sync"){const b=Al();d=b.__watcherHandles||(b.__watcherHandles=[])}else if(!u){const b=()=>{};return b.stop=Ze,b.resume=Ze,b.pause=Ze,b}}const c=ke;r.call=(b,T,_)=>De(b,c,T,_);let p=!1;o==="post"?r.scheduler=b=>{Ce(b,c&&c.suspense)}:o!=="sync"&&(p=!0,r.scheduler=(b,T)=>{T?b():Cs(b)}),r.augmentJob=b=>{t&&(b.flags|=4),p&&(b.flags|=2,c&&(b.id=c.uid,b.i=c))};const y=xl(e,t,r);return Xt&&(d?d.push(y):u&&y()),y}function El(e,t,n){const s=this.proxy,i=ue(e)?e.includes(".")?Qi(s,e):()=>s[e]:e.bind(s,s);let o;U(t)?o=t:(o=t.handler,n=t);const l=sn(this),r=Ji(i,o.bind(s),n);return l(),r}function Qi(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}const Ml=Symbol("_vte"),Yi=e=>e.__isTeleport,Ge=Symbol("_leaveCb"),Ft=Symbol("_enterCb");function Il(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return On(()=>{e.isMounted=!0}),oo(()=>{e.isUnmounting=!0}),e}const Me=[Function,Array],Zi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Me,onEnter:Me,onAfterEnter:Me,onEnterCancelled:Me,onBeforeLeave:Me,onLeave:Me,onAfterLeave:Me,onLeaveCancelled:Me,onBeforeAppear:Me,onAppear:Me,onAfterAppear:Me,onAppearCancelled:Me},Xi=e=>{const t=e.subTree;return t.component?Xi(t.component):t},Pl={name:"BaseTransition",props:Zi,setup(e,{slots:t}){const n=So(),s=Il();return()=>{const i=t.default&&no(t.default(),!0);if(!i||!i.length)return;const o=eo(i),l=G(e),{mode:r}=l;if(s.isLeaving)return Wn(o);const u=Fs(o);if(!u)return Wn(o);let d=is(u,l,s,n,p=>d=p);u.type!==$e&&Yt(u,d);let c=n.subTree&&Fs(n.subTree);if(c&&c.type!==$e&&!$t(c,u)&&Xi(n).type!==$e){let p=is(c,l,s,n);if(Yt(c,p),r==="out-in"&&u.type!==$e)return s.isLeaving=!0,p.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,c=void 0},Wn(o);r==="in-out"&&u.type!==$e?p.delayLeave=(y,b,T)=>{const _=to(s,c);_[String(c.key)]=c,y[Ge]=()=>{b(),y[Ge]=void 0,delete d.delayedLeave,c=void 0},d.delayedLeave=()=>{T(),delete d.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function eo(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==$e){t=n;break}}return t}const Ol=Pl;function to(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function is(e,t,n,s,i){const{appear:o,mode:l,persisted:r=!1,onBeforeEnter:u,onEnter:d,onAfterEnter:c,onEnterCancelled:p,onBeforeLeave:y,onLeave:b,onAfterLeave:T,onLeaveCancelled:_,onBeforeAppear:m,onAppear:P,onAfterAppear:M,onAppearCancelled:E}=t,S=String(e.key),z=to(n,e),ce=(K,J)=>{K&&De(K,s,9,J)},ve=(K,J)=>{const oe=J[1];ce(K,J),H(K)?K.every(N=>N.length<=1)&&oe():K.length<=1&&oe()},me={mode:l,persisted:r,beforeEnter(K){let J=u;if(!n.isMounted)if(o)J=m||u;else return;K[Ge]&&K[Ge](!0);const oe=z[S];oe&&$t(e,oe)&&oe.el[Ge]&&oe.el[Ge](),ce(J,[K])},enter(K){if(z[S]===e)return;let J=d,oe=c,N=p;if(!n.isMounted)if(o)J=P||d,oe=M||c,N=E||p;else return;let ne=!1;K[Ft]=Re=>{ne||(ne=!0,Re?ce(N,[K]):ce(oe,[K]),me.delayedLeave&&me.delayedLeave(),K[Ft]=void 0)};const he=K[Ft].bind(null,!1);J?ve(J,[K,he]):he()},leave(K,J){const oe=String(e.key);if(K[Ft]&&K[Ft](!0),n.isUnmounting)return J();ce(y,[K]);let N=!1;K[Ge]=he=>{N||(N=!0,J(),he?ce(_,[K]):ce(T,[K]),K[Ge]=void 0,z[oe]===e&&delete z[oe])};const ne=K[Ge].bind(null,!1);z[oe]=e,b?ve(b,[K,ne]):ne()},clone(K){const J=is(K,t,n,s,i);return i&&i(J),J}};return me}function Wn(e){if(In(e))return e=vt(e),e.children=null,e}function Fs(e){if(!In(e))return Yi(e.type)&&e.children?eo(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&U(n.default))return n.default()}}function Yt(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Yt(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 no(e,t=!1,n){let s=[],i=0;for(let o=0;o<e.length;o++){let l=e[o];const r=n==null?l.key:String(n)+String(l.key!=null?l.key:o);l.type===re?(l.patchFlag&128&&i++,s=s.concat(no(l.children,t,r))):(t||l.type!==$e)&&s.push(r!=null?vt(l,{key:r}):l)}if(i>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}function so(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Vs(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const bn=new WeakMap;function Ut(e,t,n,s,i=!1){if(H(e)){e.forEach((_,m)=>Ut(_,t&&(H(t)?t[m]:t),n,s,i));return}if(Kt(s)&&!i){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Ut(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Nn(s.component):s.el,l=i?null:o,{i:r,r:u}=e,d=t&&t.r,c=r.refs===te?r.refs={}:r.refs,p=r.setupState,y=G(p),b=p===te?bi:_=>Vs(c,_)?!1:Q(y,_),T=(_,m)=>!(m&&Vs(c,m));if(d!=null&&d!==u){if(Ds(t),ue(d))c[d]=null,b(d)&&(p[d]=null);else if(be(d)){const _=t;T(d,_.k)&&(d.value=null),_.k&&(c[_.k]=null)}}if(U(u))nn(u,r,12,[l,c]);else{const _=ue(u),m=be(u);if(_||m){const P=()=>{if(e.f){const M=_?b(u)?p[u]:c[u]:T()||!e.k?u.value:c[e.k];if(i)H(M)&&hs(M,o);else if(H(M))M.includes(o)||M.push(o);else if(_)c[u]=[o],b(u)&&(p[u]=c[u]);else{const E=[o];T(u,e.k)&&(u.value=E),e.k&&(c[e.k]=E)}}else _?(c[u]=l,b(u)&&(p[u]=l)):m&&(T(u,e.k)&&(u.value=l),e.k&&(c[e.k]=l))};if(l){const M=()=>{P(),bn.delete(e)};M.id=-1,bn.set(e,M),Ce(M,n)}else Ds(e),P()}}}function Ds(e){const t=bn.get(e);t&&(t.flags|=8,bn.delete(e))}An().requestIdleCallback;An().cancelIdleCallback;const Kt=e=>!!e.type.__asyncLoader,In=e=>e.type.__isKeepAlive;function Bl(e,t){io(e,"a",t)}function Ll(e,t){io(e,"da",t)}function io(e,t,n=ke){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Pn(t,s,n),n){let i=n.parent;for(;i&&i.parent;)In(i.parent.vnode)&&Rl(s,t,n,i),i=i.parent}}function Rl(e,t,n,s){const i=Pn(t,e,s,!0);Bn(()=>{hs(s[t],i)},n)}function Pn(e,t,n=ke,s=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...l)=>{at();const r=sn(n),u=De(t,n,e,l);return r(),ut(),u});return s?i.unshift(o):i.push(o),o}}const ft=e=>(t,n=ke)=>{(!Xt||e==="sp")&&Pn(e,(...s)=>t(...s),n)},Nl=ft("bm"),On=ft("m"),Fl=ft("bu"),Vl=ft("u"),oo=ft("bum"),Bn=ft("um"),Dl=ft("sp"),Hl=ft("rtg"),jl=ft("rtc");function ql(e,t=ke){Pn("ec",e,t)}const Ul=Symbol.for("v-ndc");function Ee(e,t,n,s){let i;const o=n,l=H(e);if(l||ue(e)){const r=l&&Ct(e);let u=!1,d=!1;r&&(u=!Pe(e),d=ct(e),e=En(e)),i=new Array(e.length);for(let c=0,p=e.length;c<p;c++)i[c]=t(u?d?Bt(Ve(e[c])):Ve(e[c]):e[c],c,void 0,o)}else if(typeof e=="number"){i=new Array(e);for(let r=0;r<e;r++)i[r]=t(r+1,r,void 0,o)}else if(Y(e))if(e[Symbol.iterator])i=Array.from(e,(r,u)=>t(r,u,void 0,o));else{const r=Object.keys(e);i=new Array(r.length);for(let u=0,d=r.length;u<d;u++){const c=r[u];i[u]=t(e[c],c,u,o)}}else i=[];return i}const os=e=>e?To(e)?Nn(e):os(e.parent):null,Wt=pe(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=>os(e.parent),$root:e=>os(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ro(e),$forceUpdate:e=>e.f||(e.f=()=>{Cs(e.update)}),$nextTick:e=>e.n||(e.n=$l.bind(e.proxy)),$watch:e=>El.bind(e)}),zn=(e,t)=>e!==te&&!e.__isScriptSetup&&Q(e,t),Kl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:i,props:o,accessCache:l,type:r,appContext:u}=e;if(t[0]!=="$"){const y=l[t];if(y!==void 0)switch(y){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(zn(s,t))return l[t]=1,s[t];if(i!==te&&Q(i,t))return l[t]=2,i[t];if(Q(o,t))return l[t]=3,o[t];if(n!==te&&Q(n,t))return l[t]=4,n[t];ls&&(l[t]=0)}}const d=Wt[t];let c,p;if(d)return t==="$attrs"&&ye(e.attrs,"get",""),d(e);if((c=r.__cssModules)&&(c=c[t]))return c;if(n!==te&&Q(n,t))return l[t]=4,n[t];if(p=u.config.globalProperties,Q(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:o}=e;return zn(i,t)?(i[t]=n,!0):s!==te&&Q(s,t)?(s[t]=n,!0):Q(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:i,props:o,type:l}},r){let u;return!!(n[r]||e!==te&&r[0]!=="$"&&Q(e,r)||zn(t,r)||Q(o,r)||Q(s,r)||Q(Wt,r)||Q(i.config.globalProperties,r)||(u=l.__cssModules)&&u[r])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Hs(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ls=!0;function Wl(e){const t=ro(e),n=e.proxy,s=e.ctx;ls=!1,t.beforeCreate&&js(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:l,watch:r,provide:u,inject:d,created:c,beforeMount:p,mounted:y,beforeUpdate:b,updated:T,activated:_,deactivated:m,beforeDestroy:P,beforeUnmount:M,destroyed:E,unmounted:S,render:z,renderTracked:ce,renderTriggered:ve,errorCaptured:me,serverPrefetch:K,expose:J,inheritAttrs:oe,components:N,directives:ne,filters:he}=t;if(d&&zl(d,s,null),l)for(const le in l){const X=l[le];U(X)&&(s[le]=X.bind(n))}if(i){const le=i.call(n,n);Y(le)&&(e.data=ws(le))}if(ls=!0,o)for(const le in o){const X=o[le],et=U(X)?X.bind(n,n):U(X.get)?X.get.bind(n,n):Ze,mt=!U(X)&&U(X.set)?X.set.bind(n):Ze,je=Be({get:et,set:mt});Object.defineProperty(s,le,{enumerable:!0,configurable:!0,get:()=>je.value,set:L=>je.value=L})}if(r)for(const le in r)lo(r[le],s,n,le);if(u){const le=U(u)?u.call(n):u;Reflect.ownKeys(le).forEach(X=>{Sl(X,le[X])})}c&&js(c,e,"c");function fe(le,X){H(X)?X.forEach(et=>le(et.bind(n))):X&&le(X.bind(n))}if(fe(Nl,p),fe(On,y),fe(Fl,b),fe(Vl,T),fe(Bl,_),fe(Ll,m),fe(ql,me),fe(jl,ce),fe(Hl,ve),fe(oo,M),fe(Bn,S),fe(Dl,K),H(J))if(J.length){const le=e.exposed||(e.exposed={});J.forEach(X=>{Object.defineProperty(le,X,{get:()=>n[X],set:et=>n[X]=et,enumerable:!0})})}else e.exposed||(e.exposed={});z&&e.render===Ze&&(e.render=z),oe!=null&&(e.inheritAttrs=oe),N&&(e.components=N),ne&&(e.directives=ne),K&&so(e)}function zl(e,t,n=Ze){H(e)&&(e=rs(e));for(const s in e){const i=e[s];let o;Y(i)?"default"in i?o=cn(i.from||s,i.default,!0):o=cn(i.from||s):o=cn(i),be(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[s]=o}}function js(e,t,n){De(H(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function lo(e,t,n,s){let i=s.includes(".")?Qi(n,s):()=>n[s];if(ue(e)){const o=t[e];U(o)&&fn(i,o)}else if(U(e))fn(i,e.bind(n));else if(Y(e))if(H(e))e.forEach(o=>lo(o,t,n,s));else{const o=U(e.handler)?e.handler.bind(n):t[e.handler];U(o)&&fn(i,o,e)}}function ro(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,r=o.get(t);let u;return r?u=r:!i.length&&!n&&!s?u=t:(u={},i.length&&i.forEach(d=>_n(u,d,l,!0)),_n(u,t,l)),Y(t)&&o.set(t,u),u}function _n(e,t,n,s=!1){const{mixins:i,extends:o}=t;o&&_n(e,o,n,!0),i&&i.forEach(l=>_n(e,l,n,!0));for(const l in t)if(!(s&&l==="expose")){const r=Gl[l]||n&&n[l];e[l]=r?r(e[l],t[l]):t[l]}return e}const Gl={data:qs,props:Us,emits:Us,methods:Dt,computed:Dt,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:Dt,directives:Dt,watch:Ql,provide:qs,inject:Jl};function qs(e,t){return t?e?function(){return pe(U(e)?e.call(this,this):e,U(t)?t.call(this,this):t)}:t:e}function Jl(e,t){return Dt(rs(e),rs(t))}function rs(e){if(H(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 Dt(e,t){return e?pe(Object.create(null),e,t):t}function Us(e,t){return e?H(e)&&H(t)?[...new Set([...e,...t])]:pe(Object.create(null),Hs(e),Hs(t??{})):t}function Ql(e,t){if(!e)return t;if(!t)return e;const n=pe(Object.create(null),e);for(const s in t)n[s]=_e(e[s],t[s]);return n}function ao(){return{app:null,config:{isNativeTag:bi,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 Yl=0;function Zl(e,t){return function(s,i=null){U(s)||(s=pe({},s)),i!=null&&!Y(i)&&(i=null);const o=ao(),l=new WeakSet,r=[];let u=!1;const d=o.app={_uid:Yl++,_component:s,_props:i,_container:null,_context:o,_instance:null,version:Mr,get config(){return o.config},set config(c){},use(c,...p){return l.has(c)||(c&&U(c.install)?(l.add(c),c.install(d,...p)):U(c)&&(l.add(c),c(d,...p))),d},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),d},component(c,p){return p?(o.components[c]=p,d):o.components[c]},directive(c,p){return p?(o.directives[c]=p,d):o.directives[c]},mount(c,p,y){if(!u){const b=d._ceVNode||ae(s,i);return b.appContext=o,y===!0?y="svg":y===!1&&(y=void 0),e(b,c,y),u=!0,d._container=c,c.__vue_app__=d,Nn(b.component)}},onUnmount(c){r.push(c)},unmount(){u&&(De(r,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(c,p){return o.provides[c]=p,d},runWithContext(c){const p=Ot;Ot=d;try{return c()}finally{Ot=p}}};return d}}let Ot=null;const Xl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ne(t)}Modifiers`]||e[`${St(t)}Modifiers`];function er(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||te;let i=n;const o=t.startsWith("update:"),l=o&&Xl(s,t.slice(7));l&&(l.trim&&(i=n.map(c=>ue(c)?c.trim():c)),l.number&&(i=n.map(vs)));let r,u=s[r=Hn(t)]||s[r=Hn(Ne(t))];!u&&o&&(u=s[r=Hn(St(t))]),u&&De(u,e,6,i);const d=s[r+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,De(d,e,6,i)}}const tr=new WeakMap;function uo(e,t,n=!1){const s=n?tr:t.emitsCache,i=s.get(e);if(i!==void 0)return i;const o=e.emits;let l={},r=!1;if(!U(e)){const u=d=>{const c=uo(d,t,!0);c&&(r=!0,pe(l,c))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!r?(Y(e)&&s.set(e,null),null):(H(o)?o.forEach(u=>l[u]=null):pe(l,o),Y(e)&&s.set(e,l),l)}function Ln(e,t){return!e||!Cn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,St(t))||Q(e,t))}function Ks(e){const{type:t,vnode:n,proxy:s,withProxy:i,propsOptions:[o],slots:l,attrs:r,emit:u,render:d,renderCache:c,props:p,data:y,setupState:b,ctx:T,inheritAttrs:_}=e,m=gn(e);let P,M;try{if(n.shapeFlag&4){const S=i||s,z=S;P=Qe(d.call(z,S,c,p,b,y,T)),M=r}else{const S=t;P=Qe(S.length>1?S(p,{attrs:r,slots:l,emit:u}):S(p,null)),M=t.props?r:nr(r)}}catch(S){zt.length=0,Mn(S,e,1),P=ae($e)}let E=P;if(M&&_!==!1){const S=Object.keys(M),{shapeFlag:z}=E;S.length&&z&7&&(o&&S.some(Sn)&&(M=sr(M,o)),E=vt(E,M,!1,!0))}return n.dirs&&(E=vt(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&Yt(E,n.transition),P=E,gn(m),P}const nr=e=>{let t;for(const n in e)(n==="class"||n==="style"||Cn(n))&&((t||(t={}))[n]=e[n]);return t},sr=(e,t)=>{const n={};for(const s in e)(!Sn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ir(e,t,n){const{props:s,children:i,component:o}=e,{props:l,children:r,patchFlag:u}=t,d=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return s?Ws(s,l,d):!!l;if(u&8){const c=t.dynamicProps;for(let p=0;p<c.length;p++){const y=c[p];if(co(l,s,y)&&!Ln(d,y))return!0}}}else return(i||r)&&(!r||!r.$stable)?!0:s===l?!1:s?l?Ws(s,l,d):!0:!!l;return!1}function Ws(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let i=0;i<s.length;i++){const o=s[i];if(co(t,e,o)&&!Ln(n,o))return!0}return!1}function co(e,t,n){const s=e[n],i=t[n];return n==="style"&&Y(s)&&Y(i)?!ms(s,i):s!==i}function or({vnode:e,parent:t,suspense:n},s){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=s,e=i),i===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const fo={},ho=()=>Object.create(fo),po=e=>Object.getPrototypeOf(e)===fo;function lr(e,t,n,s=!1){const i={},o=ho();e.propsDefaults=Object.create(null),vo(e,t,i,o);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=s?i:dl(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function rr(e,t,n,s){const{props:i,attrs:o,vnode:{patchFlag:l}}=e,r=G(i),[u]=e.propsOptions;let d=!1;if((s||l>0)&&!(l&16)){if(l&8){const c=e.vnode.dynamicProps;for(let p=0;p<c.length;p++){let y=c[p];if(Ln(e.emitsOptions,y))continue;const b=t[y];if(u)if(Q(o,y))b!==o[y]&&(o[y]=b,d=!0);else{const T=Ne(y);i[T]=as(u,r,T,b,e,!1)}else b!==o[y]&&(o[y]=b,d=!0)}}}else{vo(e,t,i,o)&&(d=!0);let c;for(const p in r)(!t||!Q(t,p)&&((c=St(p))===p||!Q(t,c)))&&(u?n&&(n[p]!==void 0||n[c]!==void 0)&&(i[p]=as(u,r,p,void 0,e,!0)):delete i[p]);if(o!==r)for(const p in o)(!t||!Q(t,p))&&(delete o[p],d=!0)}d&&ot(e.attrs,"set","")}function vo(e,t,n,s){const[i,o]=e.propsOptions;let l=!1,r;if(t)for(let u in t){if(Ht(u))continue;const d=t[u];let c;i&&Q(i,c=Ne(u))?!o||!o.includes(c)?n[c]=d:(r||(r={}))[c]=d:Ln(e.emitsOptions,u)||(!(u in s)||d!==s[u])&&(s[u]=d,l=!0)}if(o){const u=G(n),d=r||te;for(let c=0;c<o.length;c++){const p=o[c];n[p]=as(i,u,p,d[p],e,!Q(d,p))}}return l}function as(e,t,n,s,i,o){const l=e[n];if(l!=null){const r=Q(l,"default");if(r&&s===void 0){const u=l.default;if(l.type!==Function&&!l.skipFactory&&U(u)){const{propsDefaults:d}=i;if(n in d)s=d[n];else{const c=sn(i);s=d[n]=u.call(null,t),c()}}else s=u;i.ce&&i.ce._setProp(n,s)}l[0]&&(o&&!r?s=!1:l[1]&&(s===""||s===St(n))&&(s=!0))}return s}const ar=new WeakMap;function mo(e,t,n=!1){const s=n?ar:t.propsCache,i=s.get(e);if(i)return i;const o=e.props,l={},r=[];let u=!1;if(!U(e)){const c=p=>{u=!0;const[y,b]=mo(p,t,!0);pe(l,y),b&&r.push(...b)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!u)return Y(e)&&s.set(e,Mt),Mt;if(H(o))for(let c=0;c<o.length;c++){const p=Ne(o[c]);zs(p)&&(l[p]=te)}else if(o)for(const c in o){const p=Ne(c);if(zs(p)){const y=o[c],b=l[p]=H(y)||U(y)?{type:y}:pe({},y),T=b.type;let _=!1,m=!0;if(H(T))for(let P=0;P<T.length;++P){const M=T[P],E=U(M)&&M.name;if(E==="Boolean"){_=!0;break}else E==="String"&&(m=!1)}else _=U(T)&&T.name==="Boolean";b[0]=_,b[1]=m,(_||Q(b,"default"))&&r.push(p)}}const d=[l,r];return Y(e)&&s.set(e,d),d}function zs(e){return e[0]!=="$"&&!Ht(e)}const Ss=e=>e==="_"||e==="_ctx"||e==="$stable",Ts=e=>H(e)?e.map(Qe):[Qe(e)],ur=(e,t,n)=>{if(t._n)return t;const s=yn((...i)=>Ts(t(...i)),n);return s._c=!1,s},go=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Ss(i))continue;const o=e[i];if(U(o))t[i]=ur(i,o,s);else if(o!=null){const l=Ts(o);t[i]=()=>l}}},yo=(e,t)=>{const n=Ts(t);e.slots.default=()=>n},bo=(e,t,n)=>{for(const s in t)(n||!Ss(s))&&(e[s]=t[s])},cr=(e,t,n)=>{const s=e.slots=ho();if(e.vnode.shapeFlag&32){const i=t._;i?(bo(s,t,n),n&&Ci(s,"_",i,!0)):go(t,s)}else t&&yo(e,t)},fr=(e,t,n)=>{const{vnode:s,slots:i}=e;let o=!0,l=te;if(s.shapeFlag&32){const r=t._;r?n&&r===1?o=!1:bo(i,t,n):(o=!t.$stable,go(t,i)),l=t}else t&&(yo(e,t),l={default:1});if(o)for(const r in i)!Ss(r)&&l[r]==null&&delete i[r]},Ce=mr;function dr(e){return hr(e)}function hr(e,t){const n=An();n.__VUE__=!0;const{insert:s,remove:i,patchProp:o,createElement:l,createText:r,createComment:u,setText:d,setElementText:c,parentNode:p,nextSibling:y,setScopeId:b=Ze,insertStaticContent:T}=e,_=(f,h,v,C=null,x=null,$=null,O=void 0,I=null,A=!!h.dynamicChildren)=>{if(f===h)return;f&&!$t(f,h)&&(C=on(f),L(f,x,$,!0),f=null),h.patchFlag===-2&&(A=!1,h.dynamicChildren=null);const{type:k,ref:D,shapeFlag:B}=h;switch(k){case Rn:m(f,h,v,C);break;case $e:P(f,h,v,C);break;case dn:f==null&&M(h,v,C,O);break;case re:N(f,h,v,C,x,$,O,I,A);break;default:B&1?z(f,h,v,C,x,$,O,I,A):B&6?ne(f,h,v,C,x,$,O,I,A):(B&64||B&128)&&k.process(f,h,v,C,x,$,O,I,A,Lt)}D!=null&&x?Ut(D,f&&f.ref,$,h||f,!h):D==null&&f&&f.ref!=null&&Ut(f.ref,null,$,f,!0)},m=(f,h,v,C)=>{if(f==null)s(h.el=r(h.children),v,C);else{const x=h.el=f.el;h.children!==f.children&&d(x,h.children)}},P=(f,h,v,C)=>{f==null?s(h.el=u(h.children||""),v,C):h.el=f.el},M=(f,h,v,C)=>{[f.el,f.anchor]=T(f.children,h,v,C,f.el,f.anchor)},E=({el:f,anchor:h},v,C)=>{let x;for(;f&&f!==h;)x=y(f),s(f,v,C),f=x;s(h,v,C)},S=({el:f,anchor:h})=>{let v;for(;f&&f!==h;)v=y(f),i(f),f=v;i(h)},z=(f,h,v,C,x,$,O,I,A)=>{if(h.type==="svg"?O="svg":h.type==="math"&&(O="mathml"),f==null)ce(h,v,C,x,$,O,I,A);else{const k=f.el&&f.el._isVueCE?f.el:null;try{k&&k._beginPatch(),K(f,h,x,$,O,I,A)}finally{k&&k._endPatch()}}},ce=(f,h,v,C,x,$,O,I)=>{let A,k;const{props:D,shapeFlag:B,transition:V,dirs:j}=f;if(A=f.el=l(f.type,$,D&&D.is,D),B&8?c(A,f.children):B&16&&me(f.children,A,null,C,x,Gn(f,$),O,I),j&&yt(f,null,C,"created"),ve(A,f,f.scopeId,O,C),D){for(const ee in D)ee!=="value"&&!Ht(ee)&&o(A,ee,null,D[ee],$,C);"value"in D&&o(A,"value",null,D.value,$),(k=D.onVnodeBeforeMount)&&We(k,C,f)}j&&yt(f,null,C,"beforeMount");const W=pr(x,V);W&&V.beforeEnter(A),s(A,h,v),((k=D&&D.onVnodeMounted)||W||j)&&Ce(()=>{try{k&&We(k,C,f),W&&V.enter(A),j&&yt(f,null,C,"mounted")}finally{}},x)},ve=(f,h,v,C,x)=>{if(v&&b(f,v),C)for(let $=0;$<C.length;$++)b(f,C[$]);if(x){let $=x.subTree;if(h===$||$o($.type)&&($.ssContent===h||$.ssFallback===h)){const O=x.vnode;ve(f,O,O.scopeId,O.slotScopeIds,x.parent)}}},me=(f,h,v,C,x,$,O,I,A=0)=>{for(let k=A;k<f.length;k++){const D=f[k]=I?it(f[k]):Qe(f[k]);_(null,D,h,v,C,x,$,O,I)}},K=(f,h,v,C,x,$,O)=>{const I=h.el=f.el;let{patchFlag:A,dynamicChildren:k,dirs:D}=h;A|=f.patchFlag&16;const B=f.props||te,V=h.props||te;let j;if(v&&bt(v,!1),(j=V.onVnodeBeforeUpdate)&&We(j,v,h,f),D&&yt(h,f,v,"beforeUpdate"),v&&bt(v,!0),(B.innerHTML&&V.innerHTML==null||B.textContent&&V.textContent==null)&&c(I,""),k?J(f.dynamicChildren,k,I,v,C,Gn(h,x),$):O||X(f,h,I,null,v,C,Gn(h,x),$,!1),A>0){if(A&16)oe(I,B,V,v,x);else if(A&2&&B.class!==V.class&&o(I,"class",null,V.class,x),A&4&&o(I,"style",B.style,V.style,x),A&8){const W=h.dynamicProps;for(let ee=0;ee<W.length;ee++){const se=W[ee],de=B[se],ge=V[se];(ge!==de||se==="value")&&o(I,se,de,ge,x,v)}}A&1&&f.children!==h.children&&c(I,h.children)}else!O&&k==null&&oe(I,B,V,v,x);((j=V.onVnodeUpdated)||D)&&Ce(()=>{j&&We(j,v,h,f),D&&yt(h,f,v,"updated")},C)},J=(f,h,v,C,x,$,O)=>{for(let I=0;I<h.length;I++){const A=f[I],k=h[I],D=A.el&&(A.type===re||!$t(A,k)||A.shapeFlag&198)?p(A.el):v;_(A,k,D,null,C,x,$,O,!0)}},oe=(f,h,v,C,x)=>{if(h!==v){if(h!==te)for(const $ in h)!Ht($)&&!($ in v)&&o(f,$,h[$],null,x,C);for(const $ in v){if(Ht($))continue;const O=v[$],I=h[$];O!==I&&$!=="value"&&o(f,$,I,O,x,C)}"value"in v&&o(f,"value",h.value,v.value,x)}},N=(f,h,v,C,x,$,O,I,A)=>{const k=h.el=f?f.el:r(""),D=h.anchor=f?f.anchor:r("");let{patchFlag:B,dynamicChildren:V,slotScopeIds:j}=h;j&&(I=I?I.concat(j):j),f==null?(s(k,v,C),s(D,v,C),me(h.children||[],v,D,x,$,O,I,A)):B>0&&B&64&&V&&f.dynamicChildren&&f.dynamicChildren.length===V.length?(J(f.dynamicChildren,V,v,x,$,O,I),(h.key!=null||x&&h===x.subTree)&&_o(f,h,!0)):X(f,h,v,D,x,$,O,I,A)},ne=(f,h,v,C,x,$,O,I,A)=>{h.slotScopeIds=I,f==null?h.shapeFlag&512?x.ctx.activate(h,v,C,O,A):he(h,v,C,x,$,O,A):Re(f,h,A)},he=(f,h,v,C,x,$,O)=>{const I=f.component=$r(f,C,x);if(In(f)&&(I.ctx.renderer=Lt),kr(I,!1,O),I.asyncDep){if(x&&x.registerDep(I,fe,O),!f.el){const A=I.subTree=ae($e);P(null,A,h,v),f.placeholder=A.el}}else fe(I,f,h,v,x,$,O)},Re=(f,h,v)=>{const C=h.component=f.component;if(ir(f,h,v))if(C.asyncDep&&!C.asyncResolved){le(C,h,v);return}else C.next=h,C.update();else h.el=f.el,C.vnode=h},fe=(f,h,v,C,x,$,O)=>{const I=()=>{if(f.isMounted){let{next:B,bu:V,u:j,parent:W,vnode:ee}=f;{const Ue=xo(f);if(Ue){B&&(B.el=ee.el,le(f,B,O)),Ue.asyncDep.then(()=>{Ce(()=>{f.isUnmounted||k()},x)});return}}let se=B,de;bt(f,!1),B?(B.el=ee.el,le(f,B,O)):B=ee,V&&un(V),(de=B.props&&B.props.onVnodeBeforeUpdate)&&We(de,W,B,ee),bt(f,!0);const ge=Ks(f),qe=f.subTree;f.subTree=ge,_(qe,ge,p(qe.el),on(qe),f,x,$),B.el=ge.el,se===null&&or(f,ge.el),j&&Ce(j,x),(de=B.props&&B.props.onVnodeUpdated)&&Ce(()=>We(de,W,B,ee),x)}else{let B;const{el:V,props:j}=h,{bm:W,m:ee,parent:se,root:de,type:ge}=f,qe=Kt(h);bt(f,!1),W&&un(W),!qe&&(B=j&&j.onVnodeBeforeMount)&&We(B,se,h),bt(f,!0);{de.ce&&de.ce._hasShadowRoot()&&de.ce._injectChildStyle(ge,f.parent?f.parent.type:void 0);const Ue=f.subTree=Ks(f);_(null,Ue,v,C,f,x,$),h.el=Ue.el}if(ee&&Ce(ee,x),!qe&&(B=j&&j.onVnodeMounted)){const Ue=h;Ce(()=>We(B,se,Ue),x)}(h.shapeFlag&256||se&&Kt(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&Ce(f.a,x),f.isMounted=!0,h=v=C=null}};f.scope.on();const A=f.effect=new Ei(I);f.scope.off();const k=f.update=A.run.bind(A),D=f.job=A.runIfDirty.bind(A);D.i=f,D.id=f.uid,A.scheduler=()=>Cs(D),bt(f,!0),k()},le=(f,h,v)=>{h.component=f;const C=f.vnode.props;f.vnode=h,f.next=null,rr(f,h.props,C,v),fr(f,h.children,v),at(),Ns(f),ut()},X=(f,h,v,C,x,$,O,I,A=!1)=>{const k=f&&f.children,D=f?f.shapeFlag:0,B=h.children,{patchFlag:V,shapeFlag:j}=h;if(V>0){if(V&128){mt(k,B,v,C,x,$,O,I,A);return}else if(V&256){et(k,B,v,C,x,$,O,I,A);return}}j&8?(D&16&>(k,x,$),B!==k&&c(v,B)):D&16?j&16?mt(k,B,v,C,x,$,O,I,A):gt(k,x,$,!0):(D&8&&c(v,""),j&16&&me(B,v,C,x,$,O,I,A))},et=(f,h,v,C,x,$,O,I,A)=>{f=f||Mt,h=h||Mt;const k=f.length,D=h.length,B=Math.min(k,D);let V;for(V=0;V<B;V++){const j=h[V]=A?it(h[V]):Qe(h[V]);_(f[V],j,v,null,x,$,O,I,A)}k>D?gt(f,x,$,!0,!1,B):me(h,v,C,x,$,O,I,A,B)},mt=(f,h,v,C,x,$,O,I,A)=>{let k=0;const D=h.length;let B=f.length-1,V=D-1;for(;k<=B&&k<=V;){const j=f[k],W=h[k]=A?it(h[k]):Qe(h[k]);if($t(j,W))_(j,W,v,null,x,$,O,I,A);else break;k++}for(;k<=B&&k<=V;){const j=f[B],W=h[V]=A?it(h[V]):Qe(h[V]);if($t(j,W))_(j,W,v,null,x,$,O,I,A);else break;B--,V--}if(k>B){if(k<=V){const j=V+1,W=j<D?h[j].el:C;for(;k<=V;)_(null,h[k]=A?it(h[k]):Qe(h[k]),v,W,x,$,O,I,A),k++}}else if(k>V)for(;k<=B;)L(f[k],x,$,!0),k++;else{const j=k,W=k,ee=new Map;for(k=W;k<=V;k++){const Te=h[k]=A?it(h[k]):Qe(h[k]);Te.key!=null&&ee.set(Te.key,k)}let se,de=0;const ge=V-W+1;let qe=!1,Ue=0;const Rt=new Array(ge);for(k=0;k<ge;k++)Rt[k]=0;for(k=j;k<=B;k++){const Te=f[k];if(de>=ge){L(Te,x,$,!0);continue}let Ke;if(Te.key!=null)Ke=ee.get(Te.key);else for(se=W;se<=V;se++)if(Rt[se-W]===0&&$t(Te,h[se])){Ke=se;break}Ke===void 0?L(Te,x,$,!0):(Rt[Ke-W]=k+1,Ke>=Ue?Ue=Ke:qe=!0,_(Te,h[Ke],v,null,x,$,O,I,A),de++)}const Ms=qe?vr(Rt):Mt;for(se=Ms.length-1,k=ge-1;k>=0;k--){const Te=W+k,Ke=h[Te],Is=h[Te+1],Ps=Te+1<D?Is.el||wo(Is):C;Rt[k]===0?_(null,Ke,v,Ps,x,$,O,I,A):qe&&(se<0||k!==Ms[se]?je(Ke,v,Ps,2):se--)}}},je=(f,h,v,C,x=null)=>{const{el:$,type:O,transition:I,children:A,shapeFlag:k}=f;if(k&6){je(f.component.subTree,h,v,C);return}if(k&128){f.suspense.move(h,v,C);return}if(k&64){O.move(f,h,v,Lt);return}if(O===re){s($,h,v);for(let B=0;B<A.length;B++)je(A[B],h,v,C);s(f.anchor,h,v);return}if(O===dn){E(f,h,v);return}if(C!==2&&k&1&&I)if(C===0)I.beforeEnter($),s($,h,v),Ce(()=>I.enter($),x);else{const{leave:B,delayLeave:V,afterLeave:j}=I,W=()=>{f.ctx.isUnmounted?i($):s($,h,v)},ee=()=>{$._isLeaving&&$[Ge](!0),B($,()=>{W(),j&&j()})};V?V($,W,ee):ee()}else s($,h,v)},L=(f,h,v,C=!1,x=!1)=>{const{type:$,props:O,ref:I,children:A,dynamicChildren:k,shapeFlag:D,patchFlag:B,dirs:V,cacheIndex:j,memo:W}=f;if(B===-2&&(x=!1),I!=null&&(at(),Ut(I,null,v,f,!0),ut()),j!=null&&(h.renderCache[j]=void 0),D&256){h.ctx.deactivate(f);return}const ee=D&1&&V,se=!Kt(f);let de;if(se&&(de=O&&O.onVnodeBeforeUnmount)&&We(de,h,f),D&6)Vn(f.component,v,C);else{if(D&128){f.suspense.unmount(v,C);return}ee&&yt(f,null,h,"beforeUnmount"),D&64?f.type.remove(f,h,v,Lt,C):k&&!k.hasOnce&&($!==re||B>0&&B&64)?gt(k,h,v,!1,!0):($===re&&B&384||!x&&D&16)&>(A,h,v),C&&F(f)}const ge=W!=null&&j==null;(se&&(de=O&&O.onVnodeUnmounted)||ee||ge)&&Ce(()=>{de&&We(de,h,f),ee&&yt(f,null,h,"unmounted"),ge&&(f.el=null)},v)},F=f=>{const{type:h,el:v,anchor:C,transition:x}=f;if(h===re){Fn(v,C);return}if(h===dn){S(f);return}const $=()=>{i(v),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(f.shapeFlag&1&&x&&!x.persisted){const{leave:O,delayLeave:I}=x,A=()=>O(v,$);I?I(f.el,$,A):A()}else $()},Fn=(f,h)=>{let v;for(;f!==h;)v=y(f),i(f),f=v;i(h)},Vn=(f,h,v)=>{const{bum:C,scope:x,job:$,subTree:O,um:I,m:A,a:k}=f;Gs(A),Gs(k),C&&un(C),x.stop(),$&&($.flags|=8,L(O,f,h,v)),I&&Ce(I,h),Ce(()=>{f.isUnmounted=!0},h)},gt=(f,h,v,C=!1,x=!1,$=0)=>{for(let O=$;O<f.length;O++)L(f[O],h,v,C,x)},on=f=>{if(f.shapeFlag&6)return on(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=y(f.anchor||f.el),v=h&&h[Ml];return v?y(v):h};let Dn=!1;const Es=(f,h,v)=>{let C;f==null?h._vnode&&(L(h._vnode,null,null,!0),C=h._vnode.component):_(h._vnode||null,f,h,null,null,null,v),h._vnode=f,Dn||(Dn=!0,Ns(C),Wi(),Dn=!1)},Lt={p:_,um:L,m:je,r:F,mt:he,mc:me,pc:X,pbc:J,n:on,o:e};return{render:Es,hydrate:void 0,createApp:Zl(Es)}}function Gn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function bt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function pr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function _o(e,t,n=!1){const s=e.children,i=t.children;if(H(s)&&H(i))for(let o=0;o<s.length;o++){const l=s[o];let r=i[o];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=i[o]=it(i[o]),r.el=l.el),!n&&r.patchFlag!==-2&&_o(l,r)),r.type===Rn&&(r.patchFlag===-1&&(r=i[o]=it(r)),r.el=l.el),r.type===$e&&!r.el&&(r.el=l.el)}}function vr(e){const t=e.slice(),n=[0];let s,i,o,l,r;const u=e.length;for(s=0;s<u;s++){const d=e[s];if(d!==0){if(i=n[n.length-1],e[i]<d){t[s]=i,n.push(s);continue}for(o=0,l=n.length-1;o<l;)r=o+l>>1,e[n[r]]<d?o=r+1:l=r;d<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,l=n[o-1];o-- >0;)n[o]=l,l=t[l];return n}function xo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:xo(t)}function Gs(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function wo(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?wo(t.subTree):null}const $o=e=>e.__isSuspense;function mr(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):Cl(e)}const re=Symbol.for("v-fgt"),Rn=Symbol.for("v-txt"),$e=Symbol.for("v-cmt"),dn=Symbol.for("v-stc"),zt=[];let Ae=null;function g(e=!1){zt.push(Ae=e?null:[])}function gr(){zt.pop(),Ae=zt[zt.length-1]||null}let Zt=1;function xn(e,t=!1){Zt+=e,e<0&&Ae&&t&&(Ae.hasOnce=!0)}function ko(e){return e.dynamicChildren=Zt>0?Ae||Mt:null,gr(),Zt>0&&Ae&&Ae.push(e),e}function w(e,t,n,s,i,o){return ko(a(e,t,n,s,i,o,!0))}function xe(e,t,n,s,i){return ko(ae(e,t,n,s,i,!0))}function wn(e){return e?e.__v_isVNode===!0:!1}function $t(e,t){return e.type===t.type&&e.key===t.key}const Co=({key:e})=>e??null,hn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ue(e)||be(e)||U(e)?{i:Ie,r:e,k:t,f:!!n}:e:null);function a(e,t=null,n=null,s=0,i=null,o=e===re?0:1,l=!1,r=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Co(t),ref:t&&hn(t),scopeId:Gi,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:i,dynamicChildren:null,appContext:null,ctx:Ie};return r?(As(u,n),o&128&&e.normalize(u)):n&&(u.shapeFlag|=ue(n)?8:16),Zt>0&&!l&&Ae&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&Ae.push(u),u}const ae=yr;function yr(e,t=null,n=null,s=0,i=null,o=!1){if((!e||e===Ul)&&(e=$e),wn(e)){const r=vt(e,t,!0);return n&&As(r,n),Zt>0&&!o&&Ae&&(r.shapeFlag&6?Ae[Ae.indexOf(e)]=r:Ae.push(r)),r.patchFlag=-2,r}if(Ar(e)&&(e=e.__vccOpts),t){t=br(t);let{class:r,style:u}=t;r&&!ue(r)&&(t.class=rt(r)),Y(u)&&(ks(u)&&!H(u)&&(u=pe({},u)),t.style=pt(u))}const l=ue(e)?1:$o(e)?128:Yi(e)?64:Y(e)?4:U(e)?2:0;return a(e,t,n,s,i,l,o,!0)}function br(e){return e?ks(e)||po(e)?pe({},e):e:null}function vt(e,t,n=!1,s=!1){const{props:i,ref:o,patchFlag:l,children:r,transition:u}=e,d=t?_r(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Co(d),ref:t&&t.ref?n&&o?H(o)?o.concat(hn(t)):[o,hn(t)]:hn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==re?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vt(e.ssContent),ssFallback:e.ssFallback&&vt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&s&&Yt(c,u.clone(c)),c}function He(e=" ",t=0){return ae(Rn,null,e,t)}function $n(e,t){const n=ae(dn,null,e);return n.staticCount=t,n}function Z(e="",t=!1){return t?(g(),xe($e,null,e)):ae($e,null,e)}function Qe(e){return e==null||typeof e=="boolean"?ae($e):H(e)?ae(re,null,e.slice()):wn(e)?it(e):ae(Rn,null,String(e))}function it(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vt(e)}function As(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),As(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!po(t)?t._ctx=Ie:i===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else U(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),s&64?(n=16,t=[He(t)]):n=8);e.children=t,e.shapeFlag|=n}function _r(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=rt([t.class,s.class]));else if(i==="style")t.style=pt([t.style,s.style]);else if(Cn(i)){const o=t[i],l=s[i];l&&o!==l&&!(H(o)&&o.includes(l))?t[i]=o?[].concat(o,l):l:l==null&&o==null&&!Sn(i)&&(t[i]=l)}else i!==""&&(t[i]=s[i])}return t}function We(e,t,n,s=null){De(e,t,7,[n,s])}const xr=ao();let wr=0;function $r(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||xr,o={uid:wr++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Wo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:mo(s,i),emitsOptions:uo(s,i),emit:null,emitted:null,propsDefaults:te,inheritAttrs:s.inheritAttrs,ctx:te,data:te,props:te,attrs:te,slots:te,refs:te,setupState:te,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=er.bind(null,o),e.ce&&e.ce(o),o}let ke=null;const So=()=>ke||Ie;let kn,us;{const e=An(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),o=>{i.length>1?i.forEach(l=>l(o)):i[0](o)}};kn=t("__VUE_INSTANCE_SETTERS__",n=>ke=n),us=t("__VUE_SSR_SETTERS__",n=>Xt=n)}const sn=e=>{const t=ke;return kn(e),e.scope.on(),()=>{e.scope.off(),kn(t)}},Js=()=>{ke&&ke.scope.off(),kn(null)};function To(e){return e.vnode.shapeFlag&4}let Xt=!1;function kr(e,t=!1,n=!1){t&&us(t);const{props:s,children:i}=e.vnode,o=To(e);lr(e,s,o,t),cr(e,i,n||t);const l=o?Cr(e,t):void 0;return t&&us(!1),l}function Cr(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Kl);const{setup:s}=n;if(s){at();const i=e.setupContext=s.length>1?Tr(e):null,o=sn(e),l=nn(s,e,0,[e.props,i]),r=xi(l);if(ut(),o(),(r||e.sp)&&!Kt(e)&&so(e),r){if(l.then(Js,Js),t)return l.then(u=>{Qs(e,u)}).catch(u=>{Mn(u,e,0)});e.asyncDep=l}else Qs(e,l)}else Ao(e)}function Qs(e,t,n){U(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Y(t)&&(e.setupState=qi(t)),Ao(e)}function Ao(e,t,n){const s=e.type;e.render||(e.render=s.render||Ze);{const i=sn(e);at();try{Wl(e)}finally{ut(),i()}}}const Sr={get(e,t){return ye(e,"get",""),e[t]}};function Tr(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Sr),slots:e.slots,emit:e.emit,expose:t}}function Nn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(qi(hl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Wt)return Wt[n](e)},has(t,n){return n in t||n in Wt}})):e.proxy}function Ar(e){return U(e)&&"__vccOpts"in e}const Be=(e,t)=>bl(e,t,Xt);function Er(e,t,n){try{xn(-1);const s=arguments.length;return s===2?Y(t)&&!H(t)?wn(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&wn(n)&&(n=[n]),ae(e,t,n))}finally{xn(1)}}const Mr="3.5.31";/**
|
|
* @vue/runtime-dom v3.5.31
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let cs;const Ys=typeof window<"u"&&window.trustedTypes;if(Ys)try{cs=Ys.createPolicy("vue",{createHTML:e=>e})}catch{}const Eo=cs?e=>cs.createHTML(e):e=>e,Ir="http://www.w3.org/2000/svg",Pr="http://www.w3.org/1998/Math/MathML",st=typeof document<"u"?document:null,Zs=st&&st.createElement("template"),Or={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 i=t==="svg"?st.createElementNS(Ir,e):t==="mathml"?st.createElementNS(Pr,e):n?st.createElement(e,{is:n}):st.createElement(e);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},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,i,o){const l=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Zs.innerHTML=Eo(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const r=Zs.content;if(s==="svg"||s==="mathml"){const u=r.firstChild;for(;u.firstChild;)r.appendChild(u.firstChild);r.removeChild(u)}t.insertBefore(r,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},dt="transition",Vt="animation",en=Symbol("_vtc"),Mo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Br=pe({},Zi,Mo),Lr=e=>(e.displayName="Transition",e.props=Br,e),fs=Lr((e,{slots:t})=>Er(Ol,Rr(e),t)),_t=(e,t=[])=>{H(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xs=e=>e?H(e)?e.some(t=>t.length>1):e.length>1:!1;function Rr(e){const t={};for(const N in e)N in Mo||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:s,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:r=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:d=l,appearToClass:c=r,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:y=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=e,T=Nr(i),_=T&&T[0],m=T&&T[1],{onBeforeEnter:P,onEnter:M,onEnterCancelled:E,onLeave:S,onLeaveCancelled:z,onBeforeAppear:ce=P,onAppear:ve=M,onAppearCancelled:me=E}=t,K=(N,ne,he,Re)=>{N._enterCancelled=Re,xt(N,ne?c:r),xt(N,ne?d:l),he&&he()},J=(N,ne)=>{N._isLeaving=!1,xt(N,p),xt(N,b),xt(N,y),ne&&ne()},oe=N=>(ne,he)=>{const Re=N?ve:M,fe=()=>K(ne,N,he);_t(Re,[ne,fe]),ei(()=>{xt(ne,N?u:o),nt(ne,N?c:r),Xs(Re)||ti(ne,s,_,fe)})};return pe(t,{onBeforeEnter(N){_t(P,[N]),nt(N,o),nt(N,l)},onBeforeAppear(N){_t(ce,[N]),nt(N,u),nt(N,d)},onEnter:oe(!1),onAppear:oe(!0),onLeave(N,ne){N._isLeaving=!0;const he=()=>J(N,ne);nt(N,p),N._enterCancelled?(nt(N,y),ii(N)):(ii(N),nt(N,y)),ei(()=>{N._isLeaving&&(xt(N,p),nt(N,b),Xs(S)||ti(N,s,m,he))}),_t(S,[N,he])},onEnterCancelled(N){K(N,!1,void 0,!0),_t(E,[N])},onAppearCancelled(N){K(N,!0,void 0,!0),_t(me,[N])},onLeaveCancelled(N){J(N),_t(z,[N])}})}function Nr(e){if(e==null)return null;if(Y(e))return[Jn(e.enter),Jn(e.leave)];{const t=Jn(e);return[t,t]}}function Jn(e){return Fo(e)}function nt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[en]||(e[en]=new Set)).add(t)}function xt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[en];n&&(n.delete(t),n.size||(e[en]=void 0))}function ei(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Fr=0;function ti(e,t,n,s){const i=e._endId=++Fr,o=()=>{i===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:l,timeout:r,propCount:u}=Vr(e,t);if(!l)return s();const d=l+"end";let c=0;const p=()=>{e.removeEventListener(d,y),o()},y=b=>{b.target===e&&++c>=u&&p()};setTimeout(()=>{c<u&&p()},r+1),e.addEventListener(d,y)}function Vr(e,t){const n=window.getComputedStyle(e),s=T=>(n[T]||"").split(", "),i=s(`${dt}Delay`),o=s(`${dt}Duration`),l=ni(i,o),r=s(`${Vt}Delay`),u=s(`${Vt}Duration`),d=ni(r,u);let c=null,p=0,y=0;t===dt?l>0&&(c=dt,p=l,y=o.length):t===Vt?d>0&&(c=Vt,p=d,y=u.length):(p=Math.max(l,d),c=p>0?l>d?dt:Vt:null,y=c?c===dt?o.length:u.length:0);const b=c===dt&&/\b(?:transform|all)(?:,|$)/.test(s(`${dt}Property`).toString());return{type:c,timeout:p,propCount:y,hasTransform:b}}function ni(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>si(n)+si(e[s])))}function si(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ii(e){return(e?e.ownerDocument:document).body.offsetHeight}function Dr(e,t,n){const s=e[en];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const oi=Symbol("_vod"),Hr=Symbol("_vsh"),jr=Symbol(""),qr=/(?:^|;)\s*display\s*:/;function Ur(e,t,n){const s=e.style,i=ue(n);let o=!1;if(n&&!i){if(t)if(ue(t))for(const l of t.split(";")){const r=l.slice(0,l.indexOf(":")).trim();n[r]==null&&pn(s,r,"")}else for(const l in t)n[l]==null&&pn(s,l,"");for(const l in n)l==="display"&&(o=!0),pn(s,l,n[l])}else if(i){if(t!==n){const l=s[jr];l&&(n+=";"+l),s.cssText=n,o=qr.test(n)}}else t&&e.removeAttribute("style");oi in e&&(e[oi]=o?s.display:"",e[Hr]&&(s.display="none"))}const li=/\s*!important$/;function pn(e,t,n){if(H(n))n.forEach(s=>pn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Kr(e,t);li.test(n)?e.setProperty(St(s),n.replace(li,""),"important"):e[s]=n}}const ri=["Webkit","Moz","ms"],Qn={};function Kr(e,t){const n=Qn[t];if(n)return n;let s=Ne(t);if(s!=="filter"&&s in e)return Qn[t]=s;s=ki(s);for(let i=0;i<ri.length;i++){const o=ri[i]+s;if(o in e)return Qn[t]=o}return t}const ai="http://www.w3.org/1999/xlink";function ui(e,t,n,s,i,o=Uo(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ai,t.slice(6,t.length)):e.setAttributeNS(ai,t,n):n==null||o&&!Si(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Xe(n)?String(n):n)}function ci(e,t,n,s,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Eo(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const r=o==="OPTION"?e.getAttribute("value")||"":e.value,u=n==null?e.type==="checkbox"?"on":"":String(n);(r!==u||!("_value"in e))&&(e.value=u),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const r=typeof e[t];r==="boolean"?n=Si(n):n==null&&r==="string"?(n="",l=!0):r==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(i||t)}function Et(e,t,n,s){e.addEventListener(t,n,s)}function Wr(e,t,n,s){e.removeEventListener(t,n,s)}const fi=Symbol("_vei");function zr(e,t,n,s,i=null){const o=e[fi]||(e[fi]={}),l=o[t];if(s&&l)l.value=s;else{const[r,u]=Gr(t);if(s){const d=o[t]=Yr(s,i);Et(e,r,d,u)}else l&&(Wr(e,r,l,u),o[t]=void 0)}}const di=/(?:Once|Passive|Capture)$/;function Gr(e){let t;if(di.test(e)){t={};let s;for(;s=e.match(di);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):St(e.slice(2)),t]}let Yn=0;const Jr=Promise.resolve(),Qr=()=>Yn||(Jr.then(()=>Yn=0),Yn=Date.now());function Yr(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;De(Zr(s,n.value),t,5,[s])};return n.value=e,n.attached=Qr(),n}function Zr(e,t){if(H(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const hi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Xr=(e,t,n,s,i,o)=>{const l=i==="svg";t==="class"?Dr(e,s,l):t==="style"?Ur(e,n,s):Cn(t)?Sn(t)||zr(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ea(e,t,s,l))?(ci(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ui(e,t,s,l,o,t!=="value")):e._isVueCE&&(ta(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ue(s)))?ci(e,Ne(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),ui(e,t,s,l))};function ea(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&hi(t)&&U(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 i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return hi(t)&&ue(n)?!1:t in e}function ta(e,t){const n=e._def.props;if(!n)return!1;const s=Ne(t);return Array.isArray(n)?n.some(i=>Ne(i)===s):Object.keys(n).some(i=>Ne(i)===s)}const pi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>un(t,n):t};function na(e){e.target.composing=!0}function vi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Zn=Symbol("_assign");function mi(e,t,n){return t&&(e=e.trim()),n&&(e=vs(e)),e}const Le={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[Zn]=pi(i);const o=s||i.props&&i.props.type==="number";Et(e,t?"change":"input",l=>{l.target.composing||e[Zn](mi(e.value,n,o))}),(n||o)&&Et(e,"change",()=>{e.value=mi(e.value,n,o)}),t||(Et(e,"compositionstart",na),Et(e,"compositionend",vi),Et(e,"change",vi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:i,number:o}},l){if(e[Zn]=pi(l),e.composing)return;const r=(o||e.type==="number")&&!/^0\d/.test(e.value)?vs(e.value):e.value,u=t??"";if(r===u)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(s&&t===n||i&&e.value.trim()===u)||(e.value=u)}},sa=["ctrl","shift","alt","meta"],ia={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)=>sa.some(n=>e[`${n}Key`]&&!t.includes(n))},oa=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(i,...o)=>{for(let l=0;l<t.length;l++){const r=ia[t[l]];if(r&&r(i,t))return}return e(i,...o)})},la=pe({patchProp:Xr},Or);let gi;function ra(){return gi||(gi=dr(la))}const aa=(...e)=>{const t=ra().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=ca(s);if(!i)return;const o=t._component;!U(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const l=n(i,!1,ua(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t};function ua(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ca(e){return ue(e)?document.querySelector(e):e}const fa={class:"zone-name-overlay",style:{"align-items":"center","text-align":"center"}},da={class:"summary-bar",style:{width:"100%"}},ha={class:"summary-item"},pa={class:"summary-value"},va={__name:"PurchaseView",props:{shopName:{type:String,default:""},price:{type:Number,default:0}},emits:["purchase"],setup(e){function t(n){return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")}return(n,s)=>(g(),w("div",fa,[s[3]||(s[3]=a("div",{style:{width:"56px",height:"56px","border-radius":"14px",background:"linear-gradient(135deg, rgba(74, 222, 128, 0.08), rgba(74, 222, 128, 0.02))",border:"1px solid rgba(74, 222, 128, 0.12)",display:"flex","align-items":"center","justify-content":"center","margin-bottom":"4px"}},[a("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"#4ade80","stroke-width":"1.5"},[a("path",{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),a("polyline",{points:"9 22 9 12 15 12 15 22"})])],-1)),a("h3",null,R(e.shopName),1),s[4]||(s[4]=a("p",null,"Dieser Shop steht zum Verkauf. Kaufe ihn und werde der Besitzer!",-1)),a("div",da,[a("div",ha,[a("div",pa,"$"+R(t(e.price)),1),s[1]||(s[1]=a("div",{class:"summary-label"},"Kaufpreis",-1))])]),a("button",{class:"shop-btn green",onClick:s[0]||(s[0]=i=>n.$emit("purchase")),style:{width:"100%"}},[...s[2]||(s[2]=[a("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("path",{d:"M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"})],-1),He(" Shop kaufen ",-1)])])]))}},ma={class:"product-detail"},ga={class:"detail-hero"},ya={class:"detail-hero-img-wrap"},ba=["src"],_a={class:"detail-hero-info"},xa={class:"name"},wa={class:"price"},$a={class:"detail-section"},ka={class:"detail-row"},Ca={class:"value"},Sa={class:"detail-row"},Ta={class:"value total"},Aa={class:"quantity-section"},Ea={class:"quantity-row"},Ma={class:"quantity-value"},Ia=["max"],Pa={class:"quantity-max"},Oa={__name:"ProductDetail",props:{product:{type:Object,required:!0}},emits:["back","buy"],setup(e,{emit:t}){const n=e,s=t,i=q(1),o=Be(()=>n.product.quantity===-1),l=Be(()=>o.value?100:n.product.quantity);function r(c){return`https://cfx-nui-codem-inventory/html/itemimages/${(c||"example").replace(/\.png$/i,"")}.png`}function u(c){c.target.src.endsWith("example.png")||(c.target.src="./items/example.png")}function d(){s("buy",{itemName:n.product.item_name,quantity:i.value})}return(c,p)=>(g(),w("div",ma,[a("button",{class:"back-btn",onClick:p[0]||(p[0]=y=>c.$emit("back"))},[...p[4]||(p[4]=[a("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("polyline",{points:"15 18 9 12 15 6"})],-1),He(" Zurück ",-1)])]),a("div",ga,[a("div",ya,[a("img",{src:r(e.product.image||e.product.item_name),onError:u,class:"detail-hero-img"},null,40,ba)]),a("div",_a,[a("div",xa,R(e.product.item_label),1),a("div",wa,"$"+R(e.product.price)+" pro Stück",1)])]),a("div",$a,[a("div",ka,[p[5]||(p[5]=a("span",{class:"label"},"Auf Lager",-1)),a("span",Ca,R(o.value?"Unbegrenzt":e.product.quantity+"x"),1)]),a("div",Sa,[p[6]||(p[6]=a("span",{class:"label"},"Gesamt",-1)),a("span",Ta,"$"+R(e.product.price*i.value),1)])]),a("div",Aa,[a("div",Ea,[p[7]||(p[7]=a("span",{class:"quantity-label"},"Menge",-1)),a("button",{class:"qty-btn",onClick:p[1]||(p[1]=y=>i.value=Math.max(1,i.value-1))},"-"),a("span",Ma,R(i.value),1),a("button",{class:"qty-btn",onClick:p[2]||(p[2]=y=>i.value=Math.min(l.value,i.value+1))},"+"),Oe(a("input",{type:"range",class:"shop-slider",min:1,max:l.value,"onUpdate:modelValue":p[3]||(p[3]=y=>i.value=y)},null,8,Ia),[[Le,i.value,void 0,{number:!0}]]),a("span",Pa,"max "+R(l.value),1)])]),a("button",{class:"shop-btn green pulse-action",onClick:d},[p[8]||(p[8]=a("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("circle",{cx:"9",cy:"21",r:"1"}),a("circle",{cx:"20",cy:"21",r:"1"}),a("path",{d:"M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"})],-1)),He(" Kaufen - $"+R(e.product.price*i.value),1)])]))}},Ba={class:"shop-sidebar"},La=["onClick"],Ra={class:"sidebar-icon-box"},Na={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Fa={key:1,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Va={key:2,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Da={key:3,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ha={key:4,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ja={key:5,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},qa={key:6,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ua={class:"sidebar-label"},Ka={__name:"CategorySidebar",props:{categories:{type:Array,default:()=>[]},activeCategory:{type:String,default:""}},emits:["select"],setup(e){return(t,n)=>(g(),w("div",Ba,[a("button",{class:rt(["sidebar-btn",{active:e.activeCategory===""}]),onClick:n[0]||(n[0]=s=>t.$emit("select",""))},[...n[1]||(n[1]=[$n('<span class="sidebar-icon-box"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect></svg></span><span class="sidebar-label">Alle</span>',2)])],2),(g(!0),w(re,null,Ee(e.categories,s=>(g(),w("button",{key:s.id,class:rt(["sidebar-btn",{active:e.activeCategory===s.id}]),onClick:i=>t.$emit("select",s.id)},[a("span",Ra,[s.icon==="utensils"?(g(),w("svg",Na,[...n[2]||(n[2]=[a("path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2"},null,-1),a("path",{d:"M7 2v20"},null,-1),a("path",{d:"M21 15V2v0a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3zm0 0v7"},null,-1)])])):s.icon==="package"?(g(),w("svg",Fa,[...n[3]||(n[3]=[a("path",{d:"M16.5 9.4l-9-5.19"},null,-1),a("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"},null,-1),a("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"},null,-1),a("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"},null,-1)])])):s.icon==="shield"?(g(),w("svg",Va,[...n[4]||(n[4]=[a("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"},null,-1)])])):s.icon==="crosshairs"?(g(),w("svg",Da,[...n[5]||(n[5]=[$n('<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line>',6)])])):s.icon==="pills"?(g(),w("svg",Ha,[...n[6]||(n[6]=[a("rect",{x:"3",y:"8",width:"18",height:"8",rx:"4"},null,-1),a("line",{x1:"12",y1:"8",x2:"12",y2:"16"},null,-1)])])):s.icon==="wrench"?(g(),w("svg",ja,[...n[7]||(n[7]=[a("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"},null,-1)])])):(g(),w("svg",qa,[...n[8]||(n[8]=[a("circle",{cx:"12",cy:"12",r:"10"},null,-1)])]))]),a("span",Ua,R(s.label),1)],10,La))),128))]))}},Wa={class:"home-grid-container"},za={class:"home-grid"},Ga=["onClick"],Ja={key:0,width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},Qa={key:1,width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1"},Ya={key:2,width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},Za={key:3,width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},Xa={key:4,width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},eu={key:5,width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},tu={key:6,width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1"},nu={class:"tile-content"},su={class:"tile-icon"},iu={key:0,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ou={key:1,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},lu={key:2,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ru={key:3,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},au={key:4,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},uu={key:5,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},cu={key:6,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},fu={class:"tile-label"},du={key:0,class:"tile-count"},hu={__name:"HomeGrid",props:{categories:{type:Array,default:()=>[]},shelves:{type:Array,default:()=>[]}},emits:["select"],setup(e){const t=e;function n(l){return t.shelves.filter(r=>r.category===l).length}function s(l){const r={};return l.color&&(r["--tile-color"]=l.color,r["--tile-glow"]=l.color+"40"),l.height&&(r["min-height"]=l.height+"px"),r}function i(l){return l.image?{backgroundImage:`url(${l.image})`}:{}}function o(l){const r=l.color||"#f59e0b";return{background:`radial-gradient(ellipse at 70% 30%, ${r}18 0%, transparent 60%), linear-gradient(135deg, ${r}10 0%, rgba(10,10,14,0.95) 100%)`}}return(l,r)=>(g(),w("div",Wa,[a("div",za,[(g(!0),w(re,null,Ee(e.categories,u=>(g(),w("div",{key:u.id,class:rt(["category-tile",[u.gridSize||"small",{"has-image":!!u.image}]]),style:pt(s(u)),onClick:d=>l.$emit("select",u.id)},[a("div",{class:"tile-bg",style:pt(i(u))},null,4),u.image?Z("",!0):(g(),w("div",{key:0,class:"tile-gradient",style:pt(o(u))},null,4)),u.image?Z("",!0):(g(),w("div",{key:1,class:"tile-fallback-icon",style:pt({color:u.color||"var(--accent)"})},[u.icon==="utensils"?(g(),w("svg",Ja,[...r[0]||(r[0]=[a("path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2"},null,-1),a("path",{d:"M7 2v20"},null,-1),a("path",{d:"M21 15V2v0a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3zm0 0v7"},null,-1)])])):u.icon==="package"?(g(),w("svg",Qa,[...r[1]||(r[1]=[a("path",{d:"M16.5 9.4l-9-5.19M21 16V8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z"},null,-1),a("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"},null,-1),a("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"},null,-1)])])):u.icon==="shield"?(g(),w("svg",Ya,[...r[2]||(r[2]=[a("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"},null,-1)])])):u.icon==="crosshairs"?(g(),w("svg",Za,[...r[3]||(r[3]=[$n('<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line>',6)])])):u.icon==="pills"?(g(),w("svg",Xa,[...r[4]||(r[4]=[a("rect",{x:"3",y:"8",width:"18",height:"8",rx:"4"},null,-1),a("line",{x1:"12",y1:"8",x2:"12",y2:"16"},null,-1)])])):u.icon==="wrench"?(g(),w("svg",eu,[...r[5]||(r[5]=[a("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"},null,-1)])])):(g(),w("svg",tu,[...r[6]||(r[6]=[a("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"},null,-1)])]))],4)),a("div",nu,[a("div",su,[u.icon==="utensils"?(g(),w("svg",iu,[...r[7]||(r[7]=[a("path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2"},null,-1),a("path",{d:"M7 2v20"},null,-1),a("path",{d:"M21 15V2v0a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3zm0 0v7"},null,-1)])])):u.icon==="package"?(g(),w("svg",ou,[...r[8]||(r[8]=[a("path",{d:"M16.5 9.4l-9-5.19M21 16V8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z"},null,-1),a("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"},null,-1),a("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"},null,-1)])])):u.icon==="shield"?(g(),w("svg",lu,[...r[9]||(r[9]=[a("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"},null,-1)])])):u.icon==="crosshairs"?(g(),w("svg",ru,[...r[10]||(r[10]=[$n('<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line>',6)])])):u.icon==="pills"?(g(),w("svg",au,[...r[11]||(r[11]=[a("rect",{x:"3",y:"8",width:"18",height:"8",rx:"4"},null,-1),a("line",{x1:"12",y1:"8",x2:"12",y2:"16"},null,-1)])])):u.icon==="wrench"?(g(),w("svg",uu,[...r[12]||(r[12]=[a("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"},null,-1)])])):(g(),w("svg",cu,[...r[13]||(r[13]=[a("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"},null,-1)])]))]),a("span",fu,R(u.label),1),n(u.id)>0?(g(),w("span",du,R(n(u.id)),1)):Z("",!0)])],14,Ga))),128))])]))}},pu={class:"customer-view-wrapper"},vu={key:"grid",class:"home-view"},mu={key:"browse",class:"customer-split"},gu={class:"customer-content"},yu={key:1},bu={class:"search-bar"},_u={key:0,class:"product-grid"},xu=["onClick"],wu={class:"grid-item-img-wrap"},$u=["src"],ku={class:"grid-item-name"},Cu={class:"grid-item-price"},Su={key:1,class:"empty-state"},Tu={__name:"CustomerView",props:{shelves:{type:Array,default:()=>[]},categories:{type:Array,default:()=>[]}},emits:["buy"],setup(e){const t=e,n=q(""),s=q(null),i=q(""),o=q(!0);function l(b){i.value=b,s.value=null,o.value=!1}function r(b){i.value=b,s.value=null}function u(){o.value=!0,i.value="",s.value=null,n.value=""}fn(()=>t.categories,()=>{o.value=!0,i.value="",s.value=null,n.value=""});const d=Be(()=>{let b=t.shelves;if(i.value&&(b=b.filter(T=>T.category===i.value)),n.value.trim()){const T=n.value.toLowerCase();b=b.filter(_=>(_.item_label||_.item_name).toLowerCase().includes(T))}return b});function c(b){return`https://cfx-nui-codem-inventory/html/itemimages/${(b||"example").replace(/\.png$/i,"")}.png`}function p(b){b.target.src.endsWith("example.png")||(b.target.src="./items/example.png")}function y(b){b.key==="Escape"&&(s.value?(s.value=null,b.stopPropagation()):o.value||(u(),b.stopPropagation()))}return On(()=>window.addEventListener("keydown",y)),Bn(()=>window.removeEventListener("keydown",y)),(b,T)=>(g(),w("div",pu,[ae(fs,{name:"fade",mode:"out-in"},{default:yn(()=>[o.value?(g(),w("div",vu,[ae(hu,{categories:e.categories,shelves:e.shelves,onSelect:l},null,8,["categories","shelves"])])):(g(),w("div",mu,[e.categories.length>0?(g(),xe(Ka,{key:0,categories:e.categories,activeCategory:i.value,onSelect:r},null,8,["categories","activeCategory"])):Z("",!0),a("div",gu,[s.value?(g(),xe(Oa,{key:0,product:s.value,onBack:T[0]||(T[0]=_=>s.value=null),onBuy:T[1]||(T[1]=_=>b.$emit("buy",_))},null,8,["product"])):(g(),w("div",yu,[a("button",{class:"back-to-grid-btn",onClick:u},[...T[3]||(T[3]=[a("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[a("polyline",{points:"15 18 9 12 15 6"})],-1),He(" Zurück ",-1)])]),a("div",bu,[T[4]||(T[4]=a("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("circle",{cx:"11",cy:"11",r:"8"}),a("path",{d:"m21 21-4.35-4.35"})],-1)),Oe(a("input",{type:"text","onUpdate:modelValue":T[2]||(T[2]=_=>n.value=_),placeholder:"Produkt suchen..."},null,512),[[Le,n.value]])]),d.value.length?(g(),w("div",_u,[(g(!0),w(re,null,Ee(d.value,_=>(g(),w("div",{key:_.item_name,class:"grid-item",onClick:m=>s.value=_},[a("div",wu,[a("img",{src:c(_.image||_.item_name),onError:p,class:"grid-item-img"},null,40,$u)]),a("div",ku,R(_.item_label),1),a("div",Cu,"$"+R(_.price),1)],8,xu))),128))])):(g(),w("div",Su,[T[5]||(T[5]=a("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},[a("circle",{cx:"11",cy:"11",r:"8"}),a("path",{d:"m21 21-4.35-4.35"})],-1)),a("div",null,R(n.value?"Kein Produkt gefunden":"Keine Produkte verfügbar"),1)]))]))])]))]),_:1})]))}},Au={class:"tab-bar"},Eu=["onClick"],Io={__name:"TabBar",props:{tabs:{type:Array,required:!0},activeTab:{type:String,required:!0}},emits:["setTab"],setup(e){return(t,n)=>(g(),w("div",Au,[(g(!0),w(re,null,Ee(e.tabs,s=>(g(),w("button",{key:s.id,class:rt(["tab-btn",{active:e.activeTab===s.id}]),onClick:i=>t.$emit("setTab",s.id)},[n[0]||(n[0]=a("span",{class:"tab-indicator"},null,-1)),He(" "+R(s.label),1)],10,Eu))),128))]))}},Mu={class:"summary-bar",style:{"margin-bottom":"14px"}},Iu={class:"summary-item"},Pu={class:"summary-value"},Ou={class:"summary-item"},Bu={class:"summary-value"},Lu={class:"summary-item"},Ru={class:"summary-value"},Nu={key:1,class:"detail-section"},Fu=["src"],Vu={class:"sale-row-info"},Du={class:"sale-item"},Hu={class:"sale-meta"},ju={class:"sale-total"},qu={key:2,class:"empty-state"},Uu={__name:"DashboardTab",props:{shop:{type:Object,default:()=>({})},history:{type:Array,default:()=>[]}},emits:["loadHistory"],setup(e,{emit:t}){const n=e,s=t,i=q(!1),o=Be(()=>n.history.reduce((p,y)=>p+(y.total||0),0));function l(){i.value=!0,s("loadHistory")}function r(p){return`https://cfx-nui-codem-inventory/html/itemimages/${(p||"example").replace(/\.png$/i,"")}.png`}function u(p){p.target.src.endsWith("example.png")||(p.target.src="./items/example.png")}function d(p){return p?new Date(p).toLocaleDateString("de-DE",{day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit"}):""}function c(p){return(p||0).toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")}return(p,y)=>(g(),w("div",null,[a("div",Mu,[a("div",Iu,[a("div",Pu,"$"+R(c(e.shop.vault_money||0)),1),y[0]||(y[0]=a("div",{class:"summary-label"},"Tresor",-1))]),a("div",Ou,[a("div",Bu,R(e.history.length),1),y[1]||(y[1]=a("div",{class:"summary-label"},"Verkaeufe",-1))]),a("div",Lu,[a("div",Ru,"$"+R(c(o.value)),1),y[2]||(y[2]=a("div",{class:"summary-label"},"Umsatz",-1))])]),y[4]||(y[4]=a("div",{class:"section-title"},[a("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("circle",{cx:"12",cy:"12",r:"10"}),a("polyline",{points:"12 6 12 12 16 14"})]),He(" Letzte Verkaeufe ")],-1)),i.value?Z("",!0):(g(),w("button",{key:0,class:"shop-btn ghost small",onClick:l,style:{"margin-bottom":"10px"}}," Verkaeufe laden ")),i.value&&e.history.length?(g(),w("div",Nu,[(g(!0),w(re,null,Ee(e.history.slice(0,10),b=>(g(),w("div",{key:b.id,class:"sale-row"},[a("img",{src:r(b.item_name),onError:u,class:"sale-row-img"},null,40,Fu),a("div",Vu,[a("div",Du,R(b.quantity)+"x "+R(b.item_label),1),a("div",Hu,R(b.buyer_name)+" · "+R(d(b.sold_at)),1)]),a("div",ju,"$"+R(c(b.total)),1)]))),128))])):Z("",!0),i.value&&!e.history.length?(g(),w("div",qu,[...y[3]||(y[3]=[a("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},[a("circle",{cx:"12",cy:"12",r:"10"}),a("polyline",{points:"12 6 12 12 16 14"})],-1),a("div",null,"Noch keine Verkaeufe",-1)])])):Z("",!0)]))}},Ku={class:"summary-bar",style:{"margin-bottom":"10px"}},Wu={class:"summary-item"},zu={class:"summary-value"},Gu={class:"summary-item"},Ju={class:"summary-value"},Qu={key:0,class:"order-category-tabs"},Yu=["onClick"],Zu={class:"search-bar"},Xu={key:1,class:"product-list"},ec=["src"],tc={class:"listing-card-info"},nc={class:"listing-name"},sc={class:"listing-meta"},ic={style:{display:"flex","align-items":"center",gap:"6px","flex-shrink":"0"}},oc=["onClick"],lc={class:"quantity-value",style:{"min-width":"22px","font-size":"13px"}},rc=["onClick"],ac={key:2,class:"empty-state"},uc=["disabled"],cc={__name:"OrderTab",props:{defaultItems:{type:Array,default:()=>[]},categories:{type:Array,default:()=>[]},vaultMoney:{type:Number,default:0}},emits:["order"],setup(e,{emit:t}){const n=e,s=t,i=q(""),o=q({}),l=q(""),r=Be(()=>{let m=n.defaultItems;if(l.value&&(m=m.filter(P=>P.category===l.value)),i.value.trim()){const P=i.value.toLowerCase();m=m.filter(M=>M.item_label.toLowerCase().includes(P)||M.item_name.toLowerCase().includes(P))}return m}),u=Be(()=>{let m=0;for(const P of n.defaultItems){const M=o.value[P.item_name]||0;m+=P.price*M}return m});function d(m){return o.value[m]||0}function c(m){o.value[m]=(o.value[m]||0)+1}function p(m){(o.value[m]||0)>0&&o.value[m]--}function y(m){return`https://cfx-nui-codem-inventory/html/itemimages/${(m||"example").replace(/\.png$/i,"")}.png`}function b(m){m.target.src.endsWith("example.png")||(m.target.src="./items/example.png")}function T(m){return m.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")}function _(){const m=[];for(const P of n.defaultItems){const M=o.value[P.item_name]||0;M>0&&m.push({name:P.item_name,quantity:M})}m.length!==0&&(s("order",{items:m}),o.value={})}return(m,P)=>(g(),w("div",null,[a("div",Ku,[a("div",Wu,[a("div",zu,"$"+R(T(e.vaultMoney)),1),P[2]||(P[2]=a("div",{class:"summary-label"},"Tresor",-1))]),a("div",Gu,[a("div",Ju,"$"+R(T(u.value)),1),P[3]||(P[3]=a("div",{class:"summary-label"},"Warenkorb",-1))])]),e.categories.length>0?(g(),w("div",Qu,[a("button",{class:rt(["order-cat-btn",{active:l.value===""}]),onClick:P[0]||(P[0]=M=>l.value="")},"Alle",2),(g(!0),w(re,null,Ee(e.categories,M=>(g(),w("button",{key:M.id,class:rt(["order-cat-btn",{active:l.value===M.id}]),onClick:E=>l.value=M.id},R(M.label),11,Yu))),128))])):Z("",!0),a("div",Zu,[P[4]||(P[4]=a("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("circle",{cx:"11",cy:"11",r:"8"}),a("path",{d:"m21 21-4.35-4.35"})],-1)),Oe(a("input",{type:"text","onUpdate:modelValue":P[1]||(P[1]=M=>i.value=M),placeholder:"Item suchen..."},null,512),[[Le,i.value]])]),r.value.length?(g(),w("div",Xu,[(g(!0),w(re,null,Ee(r.value,M=>(g(),w("div",{key:M.item_name,class:"listing-card"},[a("img",{src:y(M.image||M.item_name),onError:b,class:"product-card-img"},null,40,ec),a("div",tc,[a("div",nc,R(M.item_label),1),a("div",sc,"$"+R(M.price)+" / Stück",1)]),a("div",ic,[a("button",{class:"qty-btn",onClick:E=>p(M.item_name)},"-",8,oc),a("span",lc,R(d(M.item_name)),1),a("button",{class:"qty-btn",onClick:E=>c(M.item_name)},"+",8,rc)])]))),128))])):(g(),w("div",ac,[P[5]||(P[5]=a("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},[a("circle",{cx:"11",cy:"11",r:"8"}),a("path",{d:"m21 21-4.35-4.35"})],-1)),a("div",null,R(i.value?"Nichts gefunden":"Keine Items verfügbar"),1)])),a("button",{class:"shop-btn pulse-action",style:{"margin-top":"10px"},disabled:u.value===0||u.value>e.vaultMoney,onClick:_},[P[6]||(P[6]=a("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),a("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),a("path",{d:"M16 10a4 4 0 0 1-8 0"})],-1)),He(" "+R(u.value>e.vaultMoney?"Tresor reicht nicht ($"+T(u.value)+")":"Bestellen ($"+T(u.value)+")"),1)],8,uc)]))}},fc={key:0,class:"product-list"},dc=["src"],hc={class:"listing-card-info"},pc={class:"listing-name"},vc={class:"listing-meta"},mc={class:"listing-card-actions"},gc=["onClick"],yc=["onClick"],bc=["onClick"],_c={key:1,class:"empty-state"},xc={key:2,style:{"margin-top":"10px"}},wc={class:"product-list"},$c=["onClick"],kc=["src"],Cc={class:"product-card-info"},Sc={class:"product-name"},Tc={class:"product-meta"},Ac={key:3,class:"detail-section",style:{"margin-top":"10px"}},Ec={class:"quantity-label",style:{"margin-bottom":"6px"}},Mc={style:{display:"flex",gap:"6px","margin-top":"8px"}},Ic={key:4,class:"detail-section",style:{"margin-top":"10px"}},Pc={class:"quantity-label",style:{"margin-bottom":"6px"}},Oc={style:{"margin-bottom":"6px"}},Bc={class:"quantity-section",style:{padding:"0",border:"none","margin-bottom":"6px"}},Lc={class:"quantity-row"},Rc={class:"quantity-value"},Nc={class:"quantity-max"},Fc={style:{display:"flex",gap:"6px"}},Vc=["disabled"],Po={__name:"ShelvesTab",props:{shelves:{type:Array,default:()=>[]},storage:{type:Array,default:()=>[]}},emits:["moveToShelves","moveToStorage","updatePrice","removeFromShelves"],setup(e,{emit:t}){const n=t,s=q(null),i=q(0),o=q(null),l=q(100),r=q(1);function u(T){return`https://cfx-nui-codem-inventory/html/itemimages/${(T||"example").replace(/\.png$/i,"")}.png`}function d(T){T.target.src.endsWith("example.png")||(T.target.src="./items/example.png")}function c(T){s.value=T,i.value=T.price,o.value=null}function p(){!s.value||!i.value||(n("updatePrice",{itemName:s.value.item_name,price:i.value}),s.value=null)}function y(T){o.value=T,l.value=100,r.value=1,s.value=null}function b(){!o.value||!l.value||(n("moveToShelves",{itemName:o.value.item_name,quantity:r.value,price:l.value}),o.value=null)}return(T,_)=>(g(),w("div",null,[e.shelves.length?(g(),w("div",fc,[(g(!0),w(re,null,Ee(e.shelves,m=>(g(),w("div",{key:m.item_name,class:"listing-card"},[a("img",{src:u(m.item_name),onError:d,class:"product-card-img"},null,40,dc),a("div",hc,[a("div",pc,R(m.item_label),1),a("div",vc,"$"+R(m.price)+" · "+R(m.quantity)+"x",1)]),a("div",mc,[a("button",{class:"listing-action-btn",onClick:P=>c(m),title:"Preis ändern"},"$",8,gc),a("button",{class:"listing-action-btn",onClick:P=>T.$emit("moveToStorage",{itemName:m.item_name,quantity:m.quantity}),title:"Ins Lager"},[..._[6]||(_[6]=[a("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("polyline",{points:"15 18 9 12 15 6"})],-1)])],8,yc),a("button",{class:"listing-action-btn danger",onClick:P=>T.$emit("removeFromShelves",{itemName:m.item_name}),title:"Entfernen"},[..._[7]||(_[7]=[a("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("polyline",{points:"3 6 5 6 21 6"}),a("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"})],-1)])],8,bc)])]))),128))])):(g(),w("div",_c,[..._[8]||(_[8]=[a("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},[a("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"})],-1),a("div",null,"Keine Items im Regal",-1)])])),e.storage.length&&!s.value?(g(),w("div",xc,[_[10]||(_[10]=a("div",{class:"quantity-label",style:{"margin-bottom":"6px"}},"Vom Lager hinzufuegen",-1)),a("div",wc,[(g(!0),w(re,null,Ee(e.storage,m=>(g(),w("div",{key:"s-"+m.item_name,class:"product-card",onClick:P=>y(m)},[a("img",{src:u(m.item_name),onError:d,class:"product-card-img"},null,40,kc),a("div",Cc,[a("div",Sc,R(m.item_label),1),a("div",Tc,R(m.quantity)+"x im Lager",1)]),_[9]||(_[9]=a("svg",{class:"product-card-arrow",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("polyline",{points:"9 18 15 12 9 6"})],-1))],8,$c))),128))])])):Z("",!0),s.value?(g(),w("div",Ac,[a("div",Ec,"Neuer Preis für "+R(s.value.item_label),1),Oe(a("input",{type:"number",class:"price-input","onUpdate:modelValue":_[0]||(_[0]=m=>i.value=m),min:"1",max:"9999999"},null,512),[[Le,i.value,void 0,{number:!0}]]),a("div",Mc,[a("button",{class:"shop-btn small",onClick:p},"Speichern"),a("button",{class:"shop-btn small red",onClick:_[1]||(_[1]=m=>s.value=null)},"Abbrechen")])])):Z("",!0),o.value?(g(),w("div",Ic,[a("div",Pc,R(o.value.item_label)+" auf Regal stellen",1),a("div",Oc,[_[11]||(_[11]=a("div",{class:"quantity-label",style:{"margin-bottom":"4px"}},"Preis ($)",-1)),Oe(a("input",{type:"number",class:"price-input","onUpdate:modelValue":_[2]||(_[2]=m=>l.value=m),min:"1",max:"9999999"},null,512),[[Le,l.value,void 0,{number:!0}]])]),a("div",Bc,[a("div",Lc,[_[12]||(_[12]=a("span",{class:"quantity-label"},"Menge",-1)),a("button",{class:"qty-btn",onClick:_[3]||(_[3]=m=>r.value=Math.max(1,r.value-1))},"-"),a("span",Rc,R(r.value),1),a("button",{class:"qty-btn",onClick:_[4]||(_[4]=m=>r.value=Math.min(o.value.quantity,r.value+1))},"+"),a("span",Nc,"max "+R(o.value.quantity),1)])]),a("div",Fc,[a("button",{class:"shop-btn small",disabled:!l.value||l.value<1,onClick:b},"Einstellen",8,Vc),a("button",{class:"shop-btn small red",onClick:_[5]||(_[5]=m=>o.value=null)},"Abbrechen")])])):Z("",!0)]))}},Dc={key:0,class:"product-list"},Hc=["src"],jc={class:"listing-card-info"},qc={class:"listing-name"},Uc={class:"listing-meta"},Kc={key:0,class:"listing-card-actions"},Wc=["onClick"],zc={key:1,class:"empty-state"},Gc={key:2,style:{"margin-top":"10px"}},Jc={key:1},Qc={class:"search-bar"},Yc={key:0,class:"product-list scrollable-list"},Zc=["onClick"],Xc=["src"],ef={class:"product-card-info"},tf={class:"product-name"},nf={class:"product-meta"},sf={key:1,class:"empty-state"},of={key:3,class:"detail-section",style:{"margin-top":"10px"}},lf={class:"quantity-label",style:{"margin-bottom":"6px"}},rf={class:"quantity-section",style:{padding:"0",border:"none"}},af={class:"quantity-row"},uf={class:"quantity-value"},cf={class:"quantity-max"},ff={style:{display:"flex",gap:"6px","margin-top":"8px"}},df={key:4,class:"detail-section",style:{"margin-top":"10px"}},hf={class:"quantity-label",style:{"margin-bottom":"6px"}},pf={style:{"margin-bottom":"6px"}},vf={class:"quantity-section",style:{padding:"0",border:"none","margin-bottom":"6px"}},mf={class:"quantity-row"},gf={class:"quantity-value"},yf={class:"quantity-max"},bf={style:{display:"flex",gap:"6px"}},_f=["disabled"],Oo={__name:"StorageTab",props:{storage:{type:Array,default:()=>[]},playerItems:{type:Array,default:()=>[]},viewOnly:{type:Boolean,default:!1}},emits:["addToStorage","moveToShelves"],setup(e,{emit:t}){const n=e,s=t,i=q(""),o=q(!1),l=q(null),r=q(1),u=q(null),d=q(100),c=q(1),p=Be(()=>{const M=n.playerItems.filter(S=>S.amount>0);if(!i.value.trim())return M;const E=i.value.toLowerCase();return M.filter(S=>(S.label||S.name).toLowerCase().includes(E))});function y(M){return`https://cfx-nui-codem-inventory/html/itemimages/${(M||"example").replace(/\.png$/i,"")}.png`}function b(M){M.target.src.endsWith("example.png")||(M.target.src="./items/example.png")}function T(M){l.value=M,r.value=1,o.value=!1}function _(){l.value&&(s("addToStorage",{itemName:l.value.name,itemLabel:l.value.label,quantity:r.value}),l.value=null)}function m(M){u.value=M,d.value=100,c.value=1}function P(){!u.value||!d.value||(s("moveToShelves",{itemName:u.value.item_name,quantity:c.value,price:d.value}),u.value=null)}return(M,E)=>(g(),w("div",null,[e.storage.length?(g(),w("div",Dc,[(g(!0),w(re,null,Ee(e.storage,S=>(g(),w("div",{key:S.item_name,class:"listing-card"},[a("img",{src:y(S.item_name),onError:b,class:"product-card-img"},null,40,Hc),a("div",jc,[a("div",qc,R(S.item_label),1),a("div",Uc,R(S.quantity)+"x eingelagert",1)]),e.viewOnly?Z("",!0):(g(),w("div",Kc,[a("button",{class:"listing-action-btn",onClick:z=>m(S),title:"Auf Regal stellen"},[...E[10]||(E[10]=[a("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("polyline",{points:"9 18 15 12 9 6"})],-1)])],8,Wc)]))]))),128))])):(g(),w("div",zc,[...E[11]||(E[11]=[a("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},[a("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"})],-1),a("div",null,"Lager ist leer",-1)])])),!e.viewOnly&&!u.value?(g(),w("div",Gc,[o.value?Z("",!0):(g(),w("button",{key:0,class:"create-zone-btn",onClick:E[0]||(E[0]=S=>o.value=!0)},[...E[12]||(E[12]=[a("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("path",{d:"M12 5v14M5 12h14"})],-1),He(" Aus Inventar einlagern ",-1)])])),o.value?(g(),w("div",Jc,[a("div",Qc,[E[13]||(E[13]=a("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("circle",{cx:"11",cy:"11",r:"8"}),a("path",{d:"m21 21-4.35-4.35"})],-1)),Oe(a("input",{type:"text","onUpdate:modelValue":E[1]||(E[1]=S=>i.value=S),placeholder:"Item suchen..."},null,512),[[Le,i.value]])]),p.value.length?(g(),w("div",Yc,[(g(!0),w(re,null,Ee(p.value,S=>(g(),w("div",{key:S.name,class:"product-card",onClick:z=>T(S)},[a("img",{src:y(S.name),onError:b,class:"product-card-img"},null,40,Xc),a("div",ef,[a("div",tf,R(S.label),1),a("div",nf,R(S.amount)+"x vorhanden",1)]),E[14]||(E[14]=a("svg",{class:"product-card-arrow",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("polyline",{points:"9 18 15 12 9 6"})],-1))],8,Zc))),128))])):(g(),w("div",sf,[E[15]||(E[15]=a("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},[a("circle",{cx:"11",cy:"11",r:"8"}),a("path",{d:"m21 21-4.35-4.35"})],-1)),a("div",null,R(i.value?"Nichts gefunden":"Inventar leer"),1)])),a("button",{class:"shop-btn small red",onClick:E[2]||(E[2]=S=>o.value=!1),style:{"margin-top":"6px"}},"Schliessen")])):Z("",!0)])):Z("",!0),l.value?(g(),w("div",of,[a("div",lf,R(l.value.label)+" einlagern",1),a("div",rf,[a("div",af,[E[16]||(E[16]=a("span",{class:"quantity-label"},"Menge",-1)),a("button",{class:"qty-btn",onClick:E[3]||(E[3]=S=>r.value=Math.max(1,r.value-1))},"-"),a("span",uf,R(r.value),1),a("button",{class:"qty-btn",onClick:E[4]||(E[4]=S=>r.value=Math.min(l.value.amount,r.value+1))},"+"),a("span",cf,"max "+R(l.value.amount),1)])]),a("div",ff,[a("button",{class:"shop-btn small",onClick:_},"Einlagern"),a("button",{class:"shop-btn small red",onClick:E[5]||(E[5]=S=>l.value=null)},"Abbrechen")])])):Z("",!0),u.value?(g(),w("div",df,[a("div",hf,R(u.value.item_label)+" auf Regal stellen",1),a("div",pf,[E[17]||(E[17]=a("div",{class:"quantity-label",style:{"margin-bottom":"4px"}},"Preis ($)",-1)),Oe(a("input",{type:"number",class:"price-input","onUpdate:modelValue":E[6]||(E[6]=S=>d.value=S),min:"1",max:"9999999"},null,512),[[Le,d.value,void 0,{number:!0}]])]),a("div",vf,[a("div",mf,[E[18]||(E[18]=a("span",{class:"quantity-label"},"Menge",-1)),a("button",{class:"qty-btn",onClick:E[7]||(E[7]=S=>c.value=Math.max(1,c.value-1))},"-"),a("span",gf,R(c.value),1),a("button",{class:"qty-btn",onClick:E[8]||(E[8]=S=>c.value=Math.min(u.value.quantity,c.value+1))},"+"),a("span",yf,"max "+R(u.value.quantity),1)])]),a("div",bf,[a("button",{class:"shop-btn small",disabled:!d.value,onClick:P},"Einstellen",8,_f),a("button",{class:"shop-btn small red",onClick:E[9]||(E[9]=S=>u.value=null)},"Abbrechen")])])):Z("",!0)]))}},xf={class:"summary-bar",style:{"margin-bottom":"16px"}},wf={class:"summary-item"},$f={class:"summary-value"},kf={class:"detail-section",style:{"margin-bottom":"16px"}},Cf=["max"],Sf={style:{display:"flex",gap:"6px","margin-top":"10px"}},Tf=["disabled"],Af={key:0,class:"product-list"},Ef=["src"],Mf={class:"listing-card-info"},If={class:"listing-name"},Pf={class:"listing-meta"},Of={key:1,class:"empty-state"},Bf={__name:"VaultTab",props:{shop:{type:Object,default:()=>({})},storage:{type:Array,default:()=>[]}},emits:["withdraw"],setup(e,{emit:t}){const n=t,s=q(0);function i(){!s.value||s.value<1||(n("withdraw",{amount:s.value}),s.value=0)}function o(u){return`https://cfx-nui-codem-inventory/html/itemimages/${(u||"example").replace(/\.png$/i,"")}.png`}function l(u){u.target.src.endsWith("example.png")||(u.target.src="./items/example.png")}function r(u){return(u||0).toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")}return(u,d)=>(g(),w("div",null,[a("div",xf,[a("div",wf,[a("div",$f,"$"+R(r(e.shop.vault_money||0)),1),d[2]||(d[2]=a("div",{class:"summary-label"},"Tresor Guthaben",-1))])]),d[4]||(d[4]=a("div",{class:"section-title"},[a("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("path",{d:"M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"})]),He(" Geld abheben ")],-1)),a("div",kf,[Oe(a("input",{type:"number",class:"price-input","onUpdate:modelValue":d[0]||(d[0]=c=>s.value=c),max:e.shop.vault_money||0,min:"1",placeholder:"Betrag eingeben..."},null,8,Cf),[[Le,s.value,void 0,{number:!0}]]),a("div",Sf,[a("button",{class:"shop-btn small",disabled:!s.value||s.value<1||s.value>(e.shop.vault_money||0),onClick:i}," $"+R(r(s.value||0))+" abheben ",9,Tf),a("button",{class:"shop-btn small ghost",onClick:d[1]||(d[1]=c=>s.value=e.shop.vault_money||0)},"Alles")])]),d[5]||(d[5]=a("div",{class:"section-title"},[a("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"})]),He(" Lager Uebersicht ")],-1)),e.storage.length?(g(),w("div",Af,[(g(!0),w(re,null,Ee(e.storage,c=>(g(),w("div",{key:c.item_name,class:"listing-card"},[a("img",{src:o(c.item_name),onError:l,class:"product-card-img"},null,40,Ef),a("div",Mf,[a("div",If,R(c.item_label),1),a("div",Pf,R(c.quantity)+"x eingelagert",1)])]))),128))])):(g(),w("div",Of,[...d[3]||(d[3]=[a("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},[a("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"})],-1),a("div",null,"Lager ist leer",-1)])]))]))}},Lf={key:0,class:"product-list"},Rf={class:"listing-card-info"},Nf={class:"listing-name"},Ff={class:"listing-meta"},Vf={class:"listing-card-actions"},Df=["onClick"],Hf={key:1,class:"empty-state"},jf={class:"detail-section",style:{"margin-top":"10px"}},qf=["disabled"],Uf={__name:"EmployeesTab",props:{employees:{type:Array,default:()=>[]}},emits:["addEmployee","removeEmployee"],setup(e,{emit:t}){const n=t,s=q(null);function i(){s.value&&(n("addEmployee",{serverId:s.value}),s.value=null)}return(o,l)=>(g(),w("div",null,[e.employees.length?(g(),w("div",Lf,[(g(!0),w(re,null,Ee(e.employees,r=>(g(),w("div",{key:r.identifier,class:"listing-card"},[l[2]||(l[2]=a("div",{class:"emp-avatar"},[a("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),a("circle",{cx:"12",cy:"7",r:"4"})])],-1)),a("div",Rf,[a("div",Nf,R(r.name),1),a("div",Ff,R(r.identifier),1)]),a("div",Vf,[a("button",{class:"listing-action-btn danger",onClick:u=>o.$emit("removeEmployee",{identifier:r.identifier}),title:"Entlassen"},[...l[1]||(l[1]=[a("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[a("polyline",{points:"3 6 5 6 21 6"}),a("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"})],-1)])],8,Df)])]))),128))])):(g(),w("div",Hf,[...l[3]||(l[3]=[a("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},[a("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),a("circle",{cx:"9",cy:"7",r:"4"})],-1),a("div",null,"Keine Mitarbeiter",-1)])])),a("div",jf,[l[4]||(l[4]=a("div",{class:"quantity-label",style:{"margin-bottom":"6px"}},"Mitarbeiter hinzufuegen",-1)),Oe(a("input",{type:"number",class:"price-input","onUpdate:modelValue":l[0]||(l[0]=r=>s.value=r),placeholder:"Spieler Server-ID...",min:"1"},null,512),[[Le,s.value,void 0,{number:!0}]]),a("button",{class:"shop-btn small",disabled:!s.value,onClick:i,style:{"margin-top":"8px"}}," Einstellen ",8,qf)])]))}},Kf={class:"confirm-box"},Wf={class:"confirm-actions"},yi={__name:"ConfirmModal",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"Bestaetigung"},message:{type:String,default:"Bist du sicher?"}},emits:["confirm","cancel"],setup(e){return(t,n)=>e.visible?(g(),w("div",{key:0,class:"confirm-overlay",onClick:n[2]||(n[2]=oa(s=>t.$emit("cancel"),["self"]))},[a("div",Kf,[a("h3",null,R(e.title),1),a("p",null,R(e.message),1),a("div",Wf,[a("button",{class:"shop-btn small red",onClick:n[0]||(n[0]=s=>t.$emit("cancel"))},"Abbrechen"),a("button",{class:"shop-btn small",onClick:n[1]||(n[1]=s=>t.$emit("confirm"))},"Bestätigen")])])])):Z("",!0)}},zf={class:"detail-section",style:{"margin-bottom":"14px"}},Gf=["disabled"],Jf={class:"detail-section",style:{"margin-bottom":"14px"}},Qf=["disabled"],Yf={class:"detail-section"},Zf={style:{"font-size":"12px",color:"#71717a","margin-bottom":"8px"}},Xf={__name:"SettingsTab",props:{shop:{type:Object,default:()=>({})}},emits:["rename","sellToPlayer","sellToServer"],setup(e,{emit:t}){const n=e,s=t,i=q(""),o=q(null),l=q(null),r=q(!1),u=q(!1),d=Be(()=>n.shop.sell_back_percentage||.7),c=Be(()=>Math.round(d.value*100)),p=Be(()=>Math.floor((n.shop.config_price||0)*d.value));function y(){const _=i.value.trim();_.length<2||(s("rename",{name:_}),i.value="")}function b(){r.value=!1,s("sellToPlayer",{serverId:o.value,price:l.value})}function T(){u.value=!1,s("sellToServer")}return(_,m)=>(g(),w("div",null,[a("div",zf,[m[7]||(m[7]=a("div",{class:"quantity-label",style:{"margin-bottom":"6px"}},"Shop Name",-1)),Oe(a("input",{type:"text",class:"text-input","onUpdate:modelValue":m[0]||(m[0]=P=>i.value=P),maxlength:"50",placeholder:"Neuer Name..."},null,512),[[Le,i.value]]),a("button",{class:"shop-btn small",disabled:!i.value.trim()||i.value.trim().length<2,onClick:y,style:{"margin-top":"8px"}}," Umbenennen ",8,Gf)]),a("div",Jf,[m[8]||(m[8]=a("div",{class:"quantity-label",style:{"margin-bottom":"6px"}},"An Spieler verkaufen",-1)),Oe(a("input",{type:"number",class:"price-input","onUpdate:modelValue":m[1]||(m[1]=P=>o.value=P),placeholder:"Spieler Server-ID...",min:"1",style:{"margin-bottom":"6px"}},null,512),[[Le,o.value,void 0,{number:!0}]]),Oe(a("input",{type:"number",class:"price-input","onUpdate:modelValue":m[2]||(m[2]=P=>l.value=P),placeholder:"Verkaufspreis ($)...",min:"1"},null,512),[[Le,l.value,void 0,{number:!0}]]),a("button",{class:"shop-btn small",disabled:!o.value||!l.value||l.value<1,onClick:m[3]||(m[3]=P=>r.value=!0),style:{"margin-top":"8px"}}," Verkaufen für$"+R(l.value||0),9,Qf)]),a("div",Yf,[m[9]||(m[9]=a("div",{class:"quantity-label",style:{"margin-bottom":"6px"}},"An Server zurückgeben",-1)),a("p",Zf," Du erhältst $"+R(p.value)+" ("+R(c.value)+"% vom Kaufpreis) + Tresor-Guthaben. Alle Lager- und Regal-Items werden dir zurückgegeben. ",1),a("button",{class:"shop-btn small red",onClick:m[4]||(m[4]=P=>u.value=!0)}," An Server verkaufen ")]),ae(yi,{visible:r.value,title:"Shop verkaufen",message:"Wirklich an Spieler ID "+o.value+" verkaufen für$"+(l.value||0)+"?",onConfirm:b,onCancel:m[5]||(m[5]=P=>r.value=!1)},null,8,["visible","message"]),ae(yi,{visible:u.value,title:"An Server verkaufen",message:"Wirklich den Shop für$"+p.value+" an den Server zurückgeben? Alle Mitarbeiter werden entlassen.",onConfirm:T,onCancel:m[6]||(m[6]=P=>u.value=!1)},null,8,["visible","message"])]))}},ed={style:{flex:"1",display:"flex","flex-direction":"column","min-height":"0",overflow:"hidden"}},td={class:"shop-body"},nd={__name:"OwnerView",props:{shop:{type:Object,default:()=>({})},shelves:{type:Array,default:()=>[]},storage:{type:Array,default:()=>[]},employees:{type:Array,default:()=>[]},playerItems:{type:Array,default:()=>[]},history:{type:Array,default:()=>[]},defaultItems:{type:Array,default:()=>[]},categories:{type:Array,default:()=>[]}},emits:["moveToShelves","moveToStorage","updatePrice","removeFromShelves","addToStorage","withdraw","addEmployee","removeEmployee","rename","sellToPlayer","sellToServer","loadHistory","order"],setup(e){const t=q("dashboard"),n=[{id:"dashboard",label:"Dashboard"},{id:"order",label:"Bestellen"},{id:"shelves",label:"Regale"},{id:"storage",label:"Lager"},{id:"vault",label:"Tresor"},{id:"employees",label:"Team"},{id:"settings",label:"Settings"}];return(s,i)=>(g(),w("div",ed,[ae(Io,{tabs:n,activeTab:t.value,onSetTab:i[0]||(i[0]=o=>t.value=o)},null,8,["activeTab"]),a("div",td,[t.value==="dashboard"?(g(),xe(Uu,{key:0,shop:e.shop,history:e.history,onLoadHistory:i[1]||(i[1]=o=>s.$emit("loadHistory"))},null,8,["shop","history"])):Z("",!0),t.value==="order"?(g(),xe(cc,{key:1,defaultItems:e.defaultItems,categories:e.categories,vaultMoney:e.shop.vault_money||0,onOrder:i[2]||(i[2]=o=>s.$emit("order",o))},null,8,["defaultItems","categories","vaultMoney"])):Z("",!0),t.value==="shelves"?(g(),xe(Po,{key:2,shelves:e.shelves,storage:e.storage,onMoveToShelves:i[3]||(i[3]=o=>s.$emit("moveToShelves",o)),onMoveToStorage:i[4]||(i[4]=o=>s.$emit("moveToStorage",o)),onUpdatePrice:i[5]||(i[5]=o=>s.$emit("updatePrice",o)),onRemoveFromShelves:i[6]||(i[6]=o=>s.$emit("removeFromShelves",o))},null,8,["shelves","storage"])):Z("",!0),t.value==="storage"?(g(),xe(Oo,{key:3,storage:e.storage,playerItems:e.playerItems,onAddToStorage:i[7]||(i[7]=o=>s.$emit("addToStorage",o)),onMoveToShelves:i[8]||(i[8]=o=>s.$emit("moveToShelves",o))},null,8,["storage","playerItems"])):Z("",!0),t.value==="vault"?(g(),xe(Bf,{key:4,shop:e.shop,storage:e.storage,onWithdraw:i[9]||(i[9]=o=>s.$emit("withdraw",o))},null,8,["shop","storage"])):Z("",!0),t.value==="employees"?(g(),xe(Uf,{key:5,employees:e.employees,onAddEmployee:i[10]||(i[10]=o=>s.$emit("addEmployee",o)),onRemoveEmployee:i[11]||(i[11]=o=>s.$emit("removeEmployee",o))},null,8,["employees"])):Z("",!0),t.value==="settings"?(g(),xe(Xf,{key:6,shop:e.shop,onRename:i[12]||(i[12]=o=>s.$emit("rename",o)),onSellToPlayer:i[13]||(i[13]=o=>s.$emit("sellToPlayer",o)),onSellToServer:i[14]||(i[14]=o=>s.$emit("sellToServer"))},null,8,["shop"])):Z("",!0)])]))}},sd={class:"shop-body"},id={__name:"EmployeeView",props:{shelves:{type:Array,default:()=>[]},storage:{type:Array,default:()=>[]}},emits:["moveToShelves"],setup(e){const t=q("shelves"),n=[{id:"shelves",label:"Regale"},{id:"storage",label:"Lager"}];return(s,i)=>(g(),w("div",null,[ae(Io,{tabs:n,activeTab:t.value,onSetTab:i[0]||(i[0]=o=>t.value=o)},null,8,["activeTab"]),a("div",sd,[t.value==="shelves"?(g(),xe(Po,{key:0,shelves:e.shelves,storage:e.storage,onMoveToShelves:i[1]||(i[1]=o=>s.$emit("moveToShelves",o))},null,8,["shelves","storage"])):Z("",!0),t.value==="storage"?(g(),xe(Oo,{key:1,storage:e.storage,playerItems:[],viewOnly:!0},null,8,["storage"])):Z("",!0)])]))}},od={class:"shop-header"},ld={class:"header-left"},rd={key:"purchase",class:"shop-body"},ad={key:"customer",class:"shop-body-split"},ud={__name:"App",setup(e){const t=q(!1),n=q(""),s=q(""),i=q(""),o=q(0),l=q({}),r=q([]),u=q([]),d=q([]),c=q([]),p=q([]),y=q([]),b=q([]),T=q({});function _(){return window.GetParentResourceName?window.GetParentResourceName():"mercyv-shops"}function m(L,F={}){return fetch(`https://${_()}/${L}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(F)})}const P=Be(()=>{const L=T.value,F={};return L.accent&&(F["--accent"]=L.accent,F["--accent-dim"]=M(L.accent,.12),F["--accent-subtle"]=M(L.accent,.05),F["--border-accent"]=M(L.accent,.15)),L.accentLight&&(F["--accent-light"]=L.accentLight),L.surfaceBase&&(F["--surface-base"]=L.surfaceBase),L.gridTileHeight&&(F["--grid-tile-height"]=L.gridTileHeight+"px"),F});function M(L,F){if(!L||!L.startsWith("#"))return L;const Fn=parseInt(L.slice(1,3),16),Vn=parseInt(L.slice(3,5),16),gt=parseInt(L.slice(5,7),16);return`rgba(${Fn}, ${Vn}, ${gt}, ${F})`}function E(L){L.theme&&(T.value=L.theme),L.categories&&(b.value=L.categories)}function S(){t.value=!1,m("close")}function z(){m("purchaseShop",{shopId:s.value})}function ce(L){m("buyProduct",L)}function ve(L){m("addToStorage",L)}function me(L){m("moveToShelves",L)}function K(L){m("moveToStorage",L)}function J(L){m("updateShelfPrice",L)}function oe(L){m("removeFromShelves",L)}function N(L){m("withdrawVault",L)}function ne(L){m("addEmployee",L)}function he(L){m("removeEmployee",L)}function Re(L){m("renameShop",L)}function fe(L){m("sellToPlayer",L)}function le(){m("sellToServer")}function X(){m("getHistory")}function et(L){m("orderItems",L)}function mt(L){const F=L.data;switch(F.type){case"openPurchase":t.value=!0,n.value="purchase",s.value=F.shopId||"",i.value=F.shopName||"Shop",o.value=F.price||0,E(F);break;case"openCustomer":t.value=!0,n.value="customer",s.value=F.shopId||"",i.value=F.shopName||"Shop",r.value=F.shelves||[],E(F);break;case"openOwner":t.value=!0,n.value="owner",s.value=F.shopId||"",l.value=F.shop||{},i.value=F.shop&&F.shop.shop_name||"Shop",r.value=F.shelves||[],u.value=F.storage||[],d.value=F.employees||[],c.value=F.playerItems||[],p.value=[],y.value=F.defaultItems||[],E(F);break;case"openEmployee":t.value=!0,n.value="employee",s.value=F.shopId||"",l.value=F.shop||{},i.value=F.shop&&F.shop.shop_name||"Shop",r.value=F.shelves||[],u.value=F.storage||[],E(F);break;case"close":t.value=!1;break;case"updateShelves":r.value=F.shelves||[];break;case"updateHistory":p.value=F.history||[];break;case"refreshAll":F.shop&&(l.value=F.shop,i.value=F.shop.shop_name||i.value),F.shelves&&(r.value=F.shelves),F.storage&&(u.value=F.storage),F.employees&&(d.value=F.employees);break}}function je(L){L.key==="Escape"&&t.value&&S()}return On(()=>{window.addEventListener("message",mt),window.addEventListener("keydown",je)}),Bn(()=>{window.removeEventListener("message",mt),window.removeEventListener("keydown",je)}),(L,F)=>(g(),xe(fs,{name:"overlay"},{default:yn(()=>[t.value?(g(),w("div",{key:0,class:"shop-overlay",style:pt(P.value)},[a("div",od,[a("div",ld,[F[0]||(F[0]=a("div",{class:"header-icon"},[a("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[a("path",{d:"M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2z"}),a("polyline",{points:"9 22 9 12 15 12 15 22"})])],-1)),a("h2",null,R(i.value),1)]),a("button",{class:"close-btn",onClick:S},[...F[1]||(F[1]=[a("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[a("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])])]),ae(fs,{name:"fade",mode:"out-in"},{default:yn(()=>[n.value==="purchase"?(g(),w("div",rd,[ae(va,{shopName:i.value,price:o.value,onPurchase:z},null,8,["shopName","price"])])):n.value==="customer"?(g(),w("div",ad,[ae(Tu,{shelves:r.value,categories:b.value,onBuy:ce},null,8,["shelves","categories"])])):n.value==="owner"?(g(),xe(nd,{key:"owner",shop:l.value,shelves:r.value,storage:u.value,employees:d.value,playerItems:c.value,history:p.value,defaultItems:y.value,categories:b.value,onMoveToShelves:me,onMoveToStorage:K,onUpdatePrice:J,onRemoveFromShelves:oe,onAddToStorage:ve,onWithdraw:N,onAddEmployee:ne,onRemoveEmployee:he,onRename:Re,onSellToPlayer:fe,onSellToServer:le,onLoadHistory:X,onOrder:et},null,8,["shop","shelves","storage","employees","playerItems","history","defaultItems","categories"])):n.value==="employee"?(g(),xe(id,{key:"employee",shelves:r.value,storage:u.value,onMoveToShelves:me},null,8,["shelves","storage"])):Z("",!0)]),_:1})],4)):Z("",!0)]),_:1}))}};aa(ud).mount("#app");
|