2026-04-14 15:54:53 +02:00

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