Files
summercms/boardwalk/dist/assets/index-BAlwlQ8W.js

4 lines
290 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function wi(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Be={},Wn=[],qt=()=>{},tu=()=>!1,Do=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Io=e=>e.startsWith("onUpdate:"),We=Object.assign,ki=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},hf=Object.prototype.hasOwnProperty,Re=(e,t)=>hf.call(e,t),ve=Array.isArray,Gn=e=>Ur(e)==="[object Map]",nu=e=>Ur(e)==="[object Set]",hl=e=>Ur(e)==="[object Date]",we=e=>typeof e=="function",je=e=>typeof e=="string",pt=e=>typeof e=="symbol",Pe=e=>e!==null&&typeof e=="object",ru=e=>(Pe(e)||we(e))&&we(e.then)&&we(e.catch),ou=Object.prototype.toString,Ur=e=>ou.call(e),mf=e=>Ur(e).slice(8,-1),su=e=>Ur(e)==="[object Object]",qo=e=>je(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Sr=wi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fo=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},gf=/-\w/g,Qe=Fo(e=>e.replace(gf,t=>t.slice(1).toUpperCase())),vf=/\B([A-Z])/g,wn=Fo(e=>e.replace(vf,"-$1").toLowerCase()),Bo=Fo(e=>e.charAt(0).toUpperCase()+e.slice(1)),uo=Fo(e=>e?`on${Bo(e)}`:""),Dt=(e,t)=>!Object.is(e,t),co=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},iu=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Ci=e=>{const t=parseFloat(e);return isNaN(t)?e:t},yf=e=>{const t=je(e)?Number(e):NaN;return isNaN(t)?e:t};let ml;const No=()=>ml||(ml=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ir(e){if(ve(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=je(r)?wf(r):ir(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(je(e)||Pe(e))return e}const bf=/;(?![^(]*\))/g,_f=/:([^]+)/,xf=/\/\*[^]*?\*\//g;function wf(e){const t={};return e.replace(xf,"").split(bf).forEach(n=>{if(n){const r=n.split(_f);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ce(e){let t="";if(je(e))t=e;else if(ve(e))for(let n=0;n<e.length;n++){const r=Ce(e[n]);r&&(t+=r+" ")}else if(Pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ht(e){if(!e)return null;let{class:t,style:n}=e;return t&&!je(t)&&(e.class=Ce(t)),n&&(e.style=ir(n)),e}const kf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Cf=wi(kf);function lu(e){return!!e||e===""}function Sf(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Si(e[r],t[r]);return n}function Si(e,t){if(e===t)return!0;let n=hl(e),r=hl(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=pt(e),r=pt(t),n||r)return e===t;if(n=ve(e),r=ve(t),n||r)return n&&r?Sf(e,t):!1;if(n=Pe(e),r=Pe(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!Si(e[i],t[i]))return!1}}return String(e)===String(t)}const au=e=>!!(e&&e.__v_isRef===!0),F=e=>je(e)?e:e==null?"":ve(e)||Pe(e)&&(e.toString===ou||!we(e.toString))?au(e)?F(e.value):JSON.stringify(e,uu,2):String(e),uu=(e,t)=>au(t)?uu(e,t.value):Gn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[ys(r,s)+" =>"]=o,n),{})}:nu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ys(n))}:pt(t)?ys(t):Pe(t)&&!ve(t)&&!su(t)?String(t):t,ys=(e,t="")=>{var n;return pt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Ge;class cu{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Ge&&(Ge.active?(this.parent=Ge,this.index=(Ge.scopes||(Ge.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!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=Ge;try{return Ge=this,t()}finally{Ge=n}}}on(){++this._on===1&&(this.prevScope=Ge,Ge=this)}off(){if(this._on>0&&--this._on===0){if(Ge===this)Ge=this.prevScope;else{let t=Ge;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function du(e){return new cu(e)}function Ei(){return Ge}function fu(e,t=!1){Ge&&Ge.cleanups.push(e)}let Ne;const bs=new WeakSet;class pu{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,Ge&&(Ge.active?Ge.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,bs.has(this)&&(bs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||mu(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,gl(this),gu(this);const t=Ne,n=bt;Ne=this,bt=!0;try{return this.fn()}finally{vu(this),Ne=t,bt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Oi(t);this.deps=this.depsTail=void 0,gl(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?bs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Us(this)&&this.run()}get dirty(){return Us(this)}}let hu=0,Er,Ar;function mu(e,t=!1){if(e.flags|=8,t){e.next=Ar,Ar=e;return}e.next=Er,Er=e}function Ai(){hu++}function $i(){if(--hu>0)return;if(Ar){let t=Ar;for(Ar=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Er;){let t=Er;for(Er=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function gu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vu(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),Oi(r),Ef(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Us(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(yu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function yu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Dr)||(e.globalVersion=Dr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Us(e))))return;e.flags|=2;const t=e.dep,n=Ne,r=bt;Ne=e,bt=!0;try{gu(e);const o=e.fn(e._value);(t.version===0||Dt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ne=n,bt=r,vu(e),e.flags&=-3}}function Oi(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Oi(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ef(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let bt=!0;const bu=[];function Zt(){bu.push(bt),bt=!1}function en(){const e=bu.pop();bt=e===void 0?!0:e}function gl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ne;Ne=void 0;try{t()}finally{Ne=n}}}let Dr=0;class Af{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 Lo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ne||!bt||Ne===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ne)n=this.activeLink=new Af(Ne,this),Ne.deps?(n.prevDep=Ne.depsTail,Ne.depsTail.nextDep=n,Ne.depsTail=n):Ne.deps=Ne.depsTail=n,_u(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ne.depsTail,n.nextDep=void 0,Ne.depsTail.nextDep=n,Ne.depsTail=n,Ne.deps===n&&(Ne.deps=r)}return n}trigger(t){this.version++,Dr++,this.notify(t)}notify(t){Ai();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{$i()}}}function _u(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)_u(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ho=new WeakMap,Pn=Symbol(""),Hs=Symbol(""),Ir=Symbol("");function et(e,t,n){if(bt&&Ne){let r=ho.get(e);r||ho.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new Lo),o.map=r,o.key=n),o.track()}}function Yt(e,t,n,r,o,s){const i=ho.get(e);if(!i){Dr++;return}const l=a=>{a&&a.trigger()};if(Ai(),t==="clear")i.forEach(l);else{const a=ve(e),c=a&&qo(n);if(a&&n==="length"){const u=Number(r);i.forEach((d,f)=>{(f==="length"||f===Ir||!pt(f)&&f>=u)&&l(d)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),c&&l(i.get(Ir)),t){case"add":a?c&&l(i.get("length")):(l(i.get(Pn)),Gn(e)&&l(i.get(Hs)));break;case"delete":a||(l(i.get(Pn)),Gn(e)&&l(i.get(Hs)));break;case"set":Gn(e)&&l(i.get(Pn));break}}$i()}function $f(e,t){const n=ho.get(e);return n&&n.get(t)}function qn(e){const t=Oe(e);return t===e?t:(et(t,"iterate",Ir),dt(e)?t:t.map(xt))}function jo(e){return et(e=Oe(e),"iterate",Ir),e}function Rt(e,t){return nn(e)?er(Tn(e)?xt(t):t):xt(t)}const Of={__proto__:null,[Symbol.iterator](){return _s(this,Symbol.iterator,e=>Rt(this,e))},concat(...e){return qn(this).concat(...e.map(t=>ve(t)?qn(t):t))},entries(){return _s(this,"entries",e=>(e[1]=Rt(this,e[1]),e))},every(e,t){return Ht(this,"every",e,t,void 0,arguments)},filter(e,t){return Ht(this,"filter",e,t,n=>n.map(r=>Rt(this,r)),arguments)},find(e,t){return Ht(this,"find",e,t,n=>Rt(this,n),arguments)},findIndex(e,t){return Ht(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ht(this,"findLast",e,t,n=>Rt(this,n),arguments)},findLastIndex(e,t){return Ht(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ht(this,"forEach",e,t,void 0,arguments)},includes(...e){return xs(this,"includes",e)},indexOf(...e){return xs(this,"indexOf",e)},join(e){return qn(this).join(e)},lastIndexOf(...e){return xs(this,"lastIndexOf",e)},map(e,t){return Ht(this,"map",e,t,void 0,arguments)},pop(){return pr(this,"pop")},push(...e){return pr(this,"push",e)},reduce(e,...t){return vl(this,"reduce",e,t)},reduceRight(e,...t){return vl(this,"reduceRight",e,t)},shift(){return pr(this,"shift")},some(e,t){return Ht(this,"some",e,t,void 0,arguments)},splice(...e){return pr(this,"splice",e)},toReversed(){return qn(this).toReversed()},toSorted(e){return qn(this).toSorted(e)},toSpliced(...e){return qn(this).toSpliced(...e)},unshift(...e){return pr(this,"unshift",e)},values(){return _s(this,"values",e=>Rt(this,e))}};function _s(e,t,n){const r=jo(e),o=r[t]();return r!==e&&!dt(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.done||(s.value=n(s.value)),s}),o}const Pf=Array.prototype;function Ht(e,t,n,r,o,s){const i=jo(e),l=i!==e&&!dt(e),a=i[t];if(a!==Pf[t]){const d=a.apply(e,s);return l?xt(d):d}let c=n;i!==e&&(l?c=function(d,f){return n.call(this,Rt(e,d),f,e)}:n.length>2&&(c=function(d,f){return n.call(this,d,f,e)}));const u=a.call(i,c,r);return l&&o?o(u):u}function vl(e,t,n,r){const o=jo(e),s=o!==e&&!dt(e);let i=n,l=!1;o!==e&&(s?(l=r.length===0,i=function(c,u,d){return l&&(l=!1,c=Rt(e,c)),n.call(this,c,Rt(e,u),d,e)}):n.length>3&&(i=function(c,u,d){return n.call(this,c,u,d,e)}));const a=o[t](i,...r);return l?Rt(e,a):a}function xs(e,t,n){const r=Oe(e);et(r,"iterate",Ir);const o=r[t](...n);return(o===-1||o===!1)&&Uo(n[0])?(n[0]=Oe(n[0]),r[t](...n)):o}function pr(e,t,n=[]){Zt(),Ai();const r=Oe(e)[t].apply(e,n);return $i(),en(),r}const Tf=wi("__proto__,__v_isRef,__isVue"),xu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(pt));function Rf(e){pt(e)||(e=String(e));const t=Oe(this);return et(t,"has",e),t.hasOwnProperty(e)}class wu{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?$u:Au:s?Eu:Su).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=ve(t);if(!o){let a;if(i&&(a=Of[n]))return a;if(n==="hasOwnProperty")return Rf}const l=Reflect.get(t,n,Ke(t)?t:r);if((pt(n)?xu.has(n):Tf(n))||(o||et(t,"get",n),s))return l;if(Ke(l)){const a=i&&qo(n)?l:l.value;return o&&Pe(a)?tn(a):a}return Pe(l)?o?tn(l):Dn(l):l}}class ku extends wu{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];const i=ve(t)&&qo(n);if(!this._isShallow){const c=nn(s);if(!dt(r)&&!nn(r)&&(s=Oe(s),r=Oe(r)),!i&&Ke(s)&&!Ke(r))return c||(s.value=r),!0}const l=i?Number(n)<t.length:Re(t,n),a=Reflect.set(t,n,r,Ke(t)?t:o);return t===Oe(o)&&(l?Dt(r,s)&&Yt(t,"set",n,r):Yt(t,"add",n,r)),a}deleteProperty(t,n){const r=Re(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&Yt(t,"delete",n,void 0),o}has(t,n){const r=Reflect.has(t,n);return(!pt(n)||!xu.has(n))&&et(t,"has",n),r}ownKeys(t){return et(t,"iterate",ve(t)?"length":Pn),Reflect.ownKeys(t)}}class Cu extends wu{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Mf=new ku,Df=new Cu,If=new ku(!0),qf=new Cu(!0),Ks=e=>e,Xr=e=>Reflect.getPrototypeOf(e);function Ff(e,t,n){return function(...r){const o=this.__v_raw,s=Oe(o),i=Gn(s),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=o[e](...r),u=n?Ks:t?er:xt;return!t&&et(s,"iterate",a?Hs:Pn),We(Object.create(c),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:l?[u(d[0]),u(d[1])]:u(d),done:f}}})}}function Jr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Bf(e,t){const n={get(o){const s=this.__v_raw,i=Oe(s),l=Oe(o);e||(Dt(o,l)&&et(i,"get",o),et(i,"get",l));const{has:a}=Xr(i),c=t?Ks:e?er:xt;if(a.call(i,o))return c(s.get(o));if(a.call(i,l))return c(s.get(l));s!==i&&s.get(o)},get size(){const o=this.__v_raw;return!e&&et(Oe(o),"iterate",Pn),o.size},has(o){const s=this.__v_raw,i=Oe(s),l=Oe(o);return e||(Dt(o,l)&&et(i,"has",o),et(i,"has",l)),o===l?s.has(o):s.has(o)||s.has(l)},forEach(o,s){const i=this,l=i.__v_raw,a=Oe(l),c=t?Ks:e?er:xt;return!e&&et(a,"iterate",Pn),l.forEach((u,d)=>o.call(s,c(u),c(d),i))}};return We(n,e?{add:Jr("add"),set:Jr("set"),delete:Jr("delete"),clear:Jr("clear")}:{add(o){const s=Oe(this),i=Xr(s),l=Oe(o),a=!t&&!dt(o)&&!nn(o)?l:o;return i.has.call(s,a)||Dt(o,a)&&i.has.call(s,o)||Dt(l,a)&&i.has.call(s,l)||(s.add(a),Yt(s,"add",a,a)),this},set(o,s){!t&&!dt(s)&&!nn(s)&&(s=Oe(s));const i=Oe(this),{has:l,get:a}=Xr(i);let c=l.call(i,o);c||(o=Oe(o),c=l.call(i,o));const u=a.call(i,o);return i.set(o,s),c?Dt(s,u)&&Yt(i,"set",o,s):Yt(i,"add",o,s),this},delete(o){const s=Oe(this),{has:i,get:l}=Xr(s);let a=i.call(s,o);a||(o=Oe(o),a=i.call(s,o)),l&&l.call(s,o);const c=s.delete(o);return a&&Yt(s,"delete",o,void 0),c},clear(){const o=Oe(this),s=o.size!==0,i=o.clear();return s&&Yt(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=Ff(o,e,t)}),n}function Vo(e,t){const n=Bf(e,t);return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Re(n,o)&&o in r?n:r,o,s)}const Nf={get:Vo(!1,!1)},Lf={get:Vo(!1,!0)},jf={get:Vo(!0,!1)},Vf={get:Vo(!0,!0)},Su=new WeakMap,Eu=new WeakMap,Au=new WeakMap,$u=new WeakMap;function zf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Dn(e){return nn(e)?e:zo(e,!1,Mf,Nf,Su)}function Ou(e){return zo(e,!1,If,Lf,Eu)}function tn(e){return zo(e,!0,Df,jf,Au)}function Fn(e){return zo(e,!0,qf,Vf,$u)}function zo(e,t,n,r,o){if(!Pe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const s=o.get(e);if(s)return s;const i=zf(mf(e));if(i===0)return e;const l=new Proxy(e,i===2?r:n);return o.set(e,l),l}function Tn(e){return nn(e)?Tn(e.__v_raw):!!(e&&e.__v_isReactive)}function nn(e){return!!(e&&e.__v_isReadonly)}function dt(e){return!!(e&&e.__v_isShallow)}function Uo(e){return e?!!e.__v_raw:!1}function Oe(e){const t=e&&e.__v_raw;return t?Oe(t):e}function Pu(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&iu(e,"__v_skip",!0),e}const xt=e=>Pe(e)?Dn(e):e,er=e=>Pe(e)?tn(e):e;function Ke(e){return e?e.__v_isRef===!0:!1}function D(e){return Tu(e,!1)}function Ho(e){return Tu(e,!0)}function Tu(e,t){return Ke(e)?e:new Uf(e,t)}class Uf{constructor(t,n){this.dep=new Lo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Oe(t),this._value=n?t:xt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||dt(t)||nn(t);t=r?t:Oe(t),Dt(t,n)&&(this._rawValue=t,this._value=r?t:xt(t),this.dep.trigger())}}function Hf(e){e.dep&&e.dep.trigger()}function h(e){return Ke(e)?e.value:e}function ft(e){return we(e)?e():h(e)}const Kf={get:(e,t,n)=>t==="__v_raw"?e:h(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ke(o)&&!Ke(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Ru(e){return Tn(e)?e:new Proxy(e,Kf)}class Wf{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Lo,{get:r,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Gf(e){return new Wf(e)}function lr(e){const t=ve(e)?new Array(e.length):{};for(const n in e)t[n]=Mu(e,n);return t}class Yf{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=pt(n)?n:String(n),this._raw=Oe(t);let o=!0,s=t;if(!ve(t)||pt(this._key)||!qo(this._key))do o=!Uo(s)||dt(s);while(o&&(s=s.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=h(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ke(this._raw[this._key])){const n=this._object[this._key];if(Ke(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return $f(this._raw,this._key)}}class Xf{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Jf(e,t,n){return Ke(e)?e:we(e)?new Xf(e):Pe(e)&&arguments.length>1?Mu(e,t,n):D(e)}function Mu(e,t,n){return new Yf(e,t,n)}class Qf{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Lo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Dr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ne!==this)return mu(this,!0),!0}get value(){const t=this.dep.track();return yu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Zf(e,t,n=!1){let r,o;return we(e)?r=e:(r=e.get,o=e.set),new Qf(r,o,n)}const Qr={},mo=new WeakMap;let $n;function ep(e,t=!1,n=$n){if(n){let r=mo.get(n);r||mo.set(n,r=[]),r.push(e)}}function tp(e,t,n=Be){const{immediate:r,deep:o,once:s,scheduler:i,augmentJob:l,call:a}=n,c=S=>o?S:dt(S)||o===!1||o===0?Xt(S,1):Xt(S);let u,d,f,p,m=!1,g=!1;if(Ke(e)?(d=()=>e.value,m=dt(e)):Tn(e)?(d=()=>c(e),m=!0):ve(e)?(g=!0,m=e.some(S=>Tn(S)||dt(S)),d=()=>e.map(S=>{if(Ke(S))return S.value;if(Tn(S))return c(S);if(we(S))return a?a(S,2):S()})):we(e)?t?d=a?()=>a(e,2):e:d=()=>{if(f){Zt();try{f()}finally{en()}}const S=$n;$n=u;try{return a?a(e,3,[p]):e(p)}finally{$n=S}}:d=qt,t&&o){const S=d,N=o===!0?1/0:o;d=()=>Xt(S(),N)}const y=Ei(),w=()=>{u.stop(),y&&y.active&&ki(y.effects,u)};if(s&&t){const S=t;t=(...N)=>{S(...N),w()}}let x=g?new Array(e.length).fill(Qr):Qr;const k=S=>{if(!(!(u.flags&1)||!u.dirty&&!S))if(t){const N=u.run();if(o||m||(g?N.some((X,q)=>Dt(X,x[q])):Dt(N,x))){f&&f();const X=$n;$n=u;try{const q=[N,x===Qr?void 0:g&&x[0]===Qr?[]:x,p];x=N,a?a(t,3,q):t(...q)}finally{$n=X}}}else u.run()};return l&&l(k),u=new pu(d),u.scheduler=i?()=>i(k,!1):k,p=S=>ep(S,!1,u),f=u.onStop=()=>{const S=mo.get(u);if(S){if(a)a(S,4);else for(const N of S)N();mo.delete(u)}},t?r?k(!0):x=u.run():i?i(k.bind(null,!0),!0):u.run(),w.pause=u.pause.bind(u),w.resume=u.resume.bind(u),w.stop=w,w}function Xt(e,t=1/0,n){if(t<=0||!Pe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ke(e))Xt(e.value,t,n);else if(ve(e))for(let r=0;r<e.length;r++)Xt(e[r],t,n);else if(nu(e)||Gn(e))e.forEach(r=>{Xt(r,t,n)});else if(su(e)){for(const r in e)Xt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Xt(e[r],t,n)}return e}function Hr(e,t,n,r){try{return r?e(...r):e()}catch(o){Ko(o,t,n)}}function gt(e,t,n,r){if(we(e)){const o=Hr(e,t,n,r);return o&&ru(o)&&o.catch(s=>{Ko(s,t,n)}),o}if(ve(e)){const o=[];for(let s=0;s<e.length;s++)o.push(gt(e[s],t,n,r));return o}}function Ko(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Be;if(t){let l=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,a,c)===!1)return}l=l.parent}if(s){Zt(),Hr(s,null,10,[e,a,c]),en();return}}np(e,n,o,r,i)}function np(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const st=[];let Pt=-1;const Yn=[];let mn=null,jn=0;const Du=Promise.resolve();let go=null;function Ue(e){const t=go||Du;return e?t.then(this?e.bind(this):e):t}function rp(e){let t=Pt+1,n=st.length;for(;t<n;){const r=t+n>>>1,o=st[r],s=qr(o);s<e||s===e&&o.flags&2?t=r+1:n=r}return t}function Pi(e){if(!(e.flags&1)){const t=qr(e),n=st[st.length-1];!n||!(e.flags&2)&&t>=qr(n)?st.push(e):st.splice(rp(t),0,e),e.flags|=1,Iu()}}function Iu(){go||(go=Du.then(Fu))}function op(e){ve(e)?Yn.push(...e):mn&&e.id===-1?mn.splice(jn+1,0,e):e.flags&1||(Yn.push(e),e.flags|=1),Iu()}function yl(e,t,n=Pt+1){for(;n<st.length;n++){const r=st[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;st.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function qu(e){if(Yn.length){const t=[...new Set(Yn)].sort((n,r)=>qr(n)-qr(r));if(Yn.length=0,mn){mn.push(...t);return}for(mn=t,jn=0;jn<mn.length;jn++){const n=mn[jn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}mn=null,jn=0}}const qr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Fu(e){try{for(Pt=0;Pt<st.length;Pt++){const t=st[Pt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Hr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Pt<st.length;Pt++){const t=st[Pt];t&&(t.flags&=-2)}Pt=-1,st.length=0,qu(),go=null,(st.length||Yn.length)&&Fu()}}let Je=null,Bu=null;function vo(e){const t=Je;return Je=e,Bu=e&&e.type.__scopeId||null,t}function Y(e,t=Je,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&_o(-1);const s=vo(t);let i;try{i=e(...o)}finally{vo(s),r._d&&_o(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Ws(e,t){if(Je===null)return e;const n=Jo(Je),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[s,i,l,a=Be]=t[o];s&&(we(s)&&(s={mounted:s,updated:s}),s.deep&&Xt(i),r.push({dir:s,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function Cn(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let i=0;i<o.length;i++){const l=o[i];s&&(l.oldValue=s[i].value);let a=l.dir[r];a&&(Zt(),gt(a,n,8,[e.el,l,e,t]),en())}}function Xn(e,t){if(tt){let n=tt.provides;const r=tt.parent&&tt.parent.provides;r===n&&(n=tt.provides=Object.create(r)),n[e]=t}}function nt(e,t,n=!1){const r=Vt();if(r||Qn){let o=Qn?Qn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&we(t)?t.call(r&&r.proxy):t}}const sp=Symbol.for("v-scx"),ip=()=>nt(sp);function Ft(e,t){return Wo(e,null,t)}function Nu(e,t){return Wo(e,null,{flush:"post"})}function ze(e,t,n){return Wo(e,t,n)}function Wo(e,t,n=Be){const{immediate:r,deep:o,flush:s,once:i}=n,l=We({},n),a=t&&r||!t&&s!=="post";let c;if(Lr){if(s==="sync"){const p=ip();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!a){const p=()=>{};return p.stop=qt,p.resume=qt,p.pause=qt,p}}const u=tt;l.call=(p,m,g)=>gt(p,u,m,g);let d=!1;s==="post"?l.scheduler=p=>{ot(p,u&&u.suspense)}:s!=="sync"&&(d=!0,l.scheduler=(p,m)=>{m?p():Pi(p)}),l.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const f=tp(e,t,l);return Lr&&(c?c.push(f):a&&f()),f}function lp(e,t,n){const r=this.proxy,o=je(e)?e.includes(".")?Lu(r,e):()=>r[e]:e.bind(r,r);let s;we(t)?s=t:(s=t.handler,n=t);const i=Kr(this),l=Wo(o,s.bind(r),n);return i(),l}function Lu(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const fn=new WeakMap,ju=Symbol("_vte"),ap=e=>e.__isTeleport,On=e=>e&&(e.disabled||e.disabled===""),up=e=>e&&(e.defer||e.defer===""),bl=e=>typeof SVGElement<"u"&&e instanceof SVGElement,_l=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Gs=(e,t)=>{const n=e&&e.to;return je(n)?t?t(n):null:n},cp={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,i,l,a,c){const{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:g,createComment:y,parentNode:w}}=c,x=On(t.props);let{dynamicChildren:k}=t;const S=(q,$,O)=>{q.shapeFlag&16&&u(q.children,$,O,o,s,i,l,a)},N=(q=t)=>{const $=On(q.props),O=q.target=Gs(q.props,m),T=Ys(O,q,g,p);O&&(i!=="svg"&&bl(O)?i="svg":i!=="mathml"&&_l(O)&&(i="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(O),$||(S(q,O,T),xr(q,!1)))},X=q=>{const $=()=>{if(fn.get(q)===$){if(fn.delete(q),On(q.props)){const O=w(q.el)||n;S(q,O,q.anchor),xr(q,!0)}N(q)}};fn.set(q,$),ot($,s)};if(e==null){const q=t.el=g(""),$=t.anchor=g("");if(p(q,n,r),p($,n,r),up(t.props)||s&&s.pendingBranch){X(t);return}x&&(S(t,n,$),xr(t,!0)),N()}else{t.el=e.el;const q=t.anchor=e.anchor,$=fn.get(e);if($){$.flags|=8,fn.delete(e),X(t);return}t.targetStart=e.targetStart;const O=t.target=e.target,T=t.targetAnchor=e.targetAnchor,oe=On(e.props),I=oe?n:O,le=oe?q:T;if(i==="svg"||bl(O)?i="svg":(i==="mathml"||_l(O))&&(i="mathml"),k?(f(e.dynamicChildren,k,I,o,s,i,l),Di(e,t,!0)):a||d(e,t,I,le,o,s,i,l,!1),x)oe?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Zr(t,n,q,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ye=t.target=Gs(t.props,m);ye&&Zr(t,ye,null,c,0)}else oe&&Zr(t,O,T,c,1);xr(t,x)}},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:i,children:l,anchor:a,targetStart:c,targetAnchor:u,target:d,props:f}=e,p=s||!On(f),m=fn.get(e);if(m&&(m.flags|=8,fn.delete(e)),d&&(o(c),o(u)),s&&o(a),!m&&i&16)for(let g=0;g<l.length;g++){const y=l[g];r(y,t,n,p,!!y.dynamicChildren)}},move:Zr,hydrate:dp};function Zr(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:a,children:c,props:u}=e,d=s===2;if(d&&r(i,t,n),!fn.has(e)&&(!d||On(u))&&a&16)for(let f=0;f<c.length;f++)o(c[f],t,n,2);d&&r(l,t,n)}function dp(e,t,n,r,o,s,{o:{nextSibling:i,parentNode:l,querySelector:a,insert:c,createText:u}},d){function f(y,w){let x=w;for(;x;){if(x&&x.nodeType===8){if(x.data==="teleport start anchor")t.targetStart=x;else if(x.data==="teleport anchor"){t.targetAnchor=x,y._lpa=t.targetAnchor&&i(t.targetAnchor);break}}x=i(x)}}function p(y,w){w.anchor=d(i(y),w,l(y),n,r,o,s)}const m=t.target=Gs(t.props,a),g=On(t.props);if(m){const y=m._lpa||m.firstChild;t.shapeFlag&16&&(g?(p(e,t),f(m,y),t.targetAnchor||Ys(m,t,u,c,l(e)===m?e:null)):(t.anchor=i(e),f(m,y),t.targetAnchor||Ys(m,t,u,c),d(y&&i(y),t,m,n,r,o,s))),xr(t,g)}else g&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const fp=cp;function xr(e,t){const n=e.ctx;if(n&&n.ut){let r,o;for(t?(r=e.el,o=e.anchor):(r=e.targetStart,o=e.targetAnchor);r&&r!==o;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Ys(e,t,n,r,o=null){const s=t.targetStart=n(""),i=t.targetAnchor=n("");return s[ju]=i,e&&(r(s,e,o),r(i,e,o)),i}const Tt=Symbol("_leaveCb"),hr=Symbol("_enterCb");function pp(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return jt(()=>{e.isMounted=!0}),wt(()=>{e.isUnmounting=!0}),e}const mt=[Function,Array],hp={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:mt,onEnter:mt,onAfterEnter:mt,onEnterCancelled:mt,onBeforeLeave:mt,onLeave:mt,onAfterLeave:mt,onLeaveCancelled:mt,onBeforeAppear:mt,onAppear:mt,onAfterAppear:mt,onAppearCancelled:mt};function mp(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Xs(e,t,n,r,o){const{appear:s,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:y,onAppear:w,onAfterAppear:x,onAppearCancelled:k}=t,S=String(e.key),N=mp(n,e),X=(O,T)=>{O&&gt(O,r,9,T)},q=(O,T)=>{const oe=T[1];X(O,T),ve(O)?O.every(I=>I.length<=1)&&oe():O.length<=1&&oe()},$={mode:i,persisted:l,beforeEnter(O){let T=a;if(!n.isMounted)if(s)T=y||a;else return;O[Tt]&&O[Tt](!0);const oe=N[S];oe&&Vn(e,oe)&&oe.el[Tt]&&oe.el[Tt](),X(T,[O])},enter(O){if(N[S]===e)return;let T=c,oe=u,I=d;if(!n.isMounted)if(s)T=w||c,oe=x||u,I=k||d;else return;let le=!1;O[hr]=z=>{le||(le=!0,z?X(I,[O]):X(oe,[O]),$.delayedLeave&&$.delayedLeave(),O[hr]=void 0)};const ye=O[hr].bind(null,!1);T?q(T,[O,ye]):ye()},leave(O,T){const oe=String(e.key);if(O[hr]&&O[hr](!0),n.isUnmounting)return T();X(f,[O]);let I=!1;O[Tt]=ye=>{I||(I=!0,T(),ye?X(g,[O]):X(m,[O]),O[Tt]=void 0,N[oe]===e&&delete N[oe])};const le=O[Tt].bind(null,!1);N[oe]=e,p?q(p,[O,le]):le()},clone(O){return Xs(O,t,n,r)}};return $}function Fr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Fr(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 Vu(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let i=e[s];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===ge?(i.patchFlag&128&&o++,r=r.concat(Vu(i.children,t,l))):(t||i.type!==kt)&&r.push(l!=null?yn(i,{key:l}):i)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function Q(e,t){return we(e)?We({name:e.name},t,{setup:e}):e}function gp(){const e=Vt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function zu(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function xl(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const yo=new WeakMap;function $r(e,t,n,r,o=!1){if(ve(e)){e.forEach((g,y)=>$r(g,t&&(ve(t)?t[y]:t),n,r,o));return}if(Jn(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&$r(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?Jo(r.component):r.el,i=o?null:s,{i:l,r:a}=e,c=t&&t.r,u=l.refs===Be?l.refs={}:l.refs,d=l.setupState,f=Oe(d),p=d===Be?tu:g=>xl(u,g)?!1:Re(f,g),m=(g,y)=>!(y&&xl(u,y));if(c!=null&&c!==a){if(wl(t),je(c))u[c]=null,p(c)&&(d[c]=null);else if(Ke(c)){const g=t;m(c,g.k)&&(c.value=null),g.k&&(u[g.k]=null)}}if(we(a))Hr(a,l,12,[i,u]);else{const g=je(a),y=Ke(a);if(g||y){const w=()=>{if(e.f){const x=g?p(a)?d[a]:u[a]:m()||!e.k?a.value:u[e.k];if(o)ve(x)&&ki(x,s);else if(ve(x))x.includes(s)||x.push(s);else if(g)u[a]=[s],p(a)&&(d[a]=u[a]);else{const k=[s];m(a,e.k)&&(a.value=k),e.k&&(u[e.k]=k)}}else g?(u[a]=i,p(a)&&(d[a]=i)):y&&(m(a,e.k)&&(a.value=i),e.k&&(u[e.k]=i))};if(i){const x=()=>{w(),yo.delete(e)};x.id=-1,yo.set(e,x),ot(x,n)}else wl(e),w()}}}function wl(e){const t=yo.get(e);t&&(t.flags|=8,yo.delete(e))}No().requestIdleCallback;No().cancelIdleCallback;const Jn=e=>!!e.type.__asyncLoader,Uu=e=>e.type.__isKeepAlive;function Hu(e,t){Wu(e,"a",t)}function Ku(e,t){Wu(e,"da",t)}function Wu(e,t,n=tt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Go(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Uu(o.parent.vnode)&&vp(r,t,n,o),o=o.parent}}function vp(e,t,n,r){const o=Go(t,e,r,!0);ar(()=>{ki(r[t],o)},n)}function Go(e,t,n=tt,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{Zt();const l=Kr(n),a=gt(t,n,e,i);return l(),en(),a});return r?o.unshift(s):o.push(s),s}}const sn=e=>(t,n=tt)=>{(!Lr||e==="sp")&&Go(e,(...r)=>t(...r),n)},yp=sn("bm"),jt=sn("m"),bp=sn("bu"),Ti=sn("u"),wt=sn("bum"),ar=sn("um"),_p=sn("sp"),xp=sn("rtg"),wp=sn("rtc");function kp(e,t=tt){Go("ec",e,t)}const Cp="components",Gu=Symbol.for("v-ndc");function vn(e){return je(e)?Sp(Cp,e,!1)||e:e||Gu}function Sp(e,t,n=!0,r=!1){const o=Je||tt;if(o){const s=o.type;{const l=lh(s,!1);if(l&&(l===t||l===Qe(t)||l===Bo(Qe(t))))return s}const i=kl(o[e]||s[e],t)||kl(o.appContext[e],t);return!i&&r?s:i}}function kl(e,t){return e&&(e[t]||e[Qe(t)]||e[Bo(Qe(t))])}function De(e,t,n,r){let o;const s=n,i=ve(e);if(i||je(e)){const l=i&&Tn(e);let a=!1,c=!1;l&&(a=!dt(e),c=nn(e),e=jo(e)),o=new Array(e.length);for(let u=0,d=e.length;u<d;u++)o[u]=t(a?c?er(xt(e[u])):xt(e[u]):e[u],u,void 0,s)}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,s)}else if(Pe(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,s));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const u=l[a];o[a]=t(e[u],u,a,s)}}else o=[];return o}function _e(e,t,n={},r,o){if(Je.ce||Je.parent&&Jn(Je.parent)&&Je.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),b(),J(ge,null,[G("slot",n,r&&r())],c?-2:64)}let s=e[t];s&&s._c&&(s._d=!1),b();const i=s&&Yu(s(n)),l=n.key||i&&i.key,a=J(ge,{key:(l&&!pt(l)?l:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function Yu(e){return e.some(t=>Nr(t)?!(t.type===kt||t.type===ge&&!Yu(t.children)):!0)?e:null}const Js=e=>e?mc(e)?Jo(e):Js(e.parent):null,Or=We(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=>Js(e.parent),$root:e=>Js(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Qu(e),$forceUpdate:e=>e.f||(e.f=()=>{Pi(e.update)}),$nextTick:e=>e.n||(e.n=Ue.bind(e.proxy)),$watch:e=>lp.bind(e)}),ws=(e,t)=>e!==Be&&!e.__isScriptSetup&&Re(e,t),Ep={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:l,appContext:a}=e;if(t[0]!=="$"){const f=i[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(ws(r,t))return i[t]=1,r[t];if(o!==Be&&Re(o,t))return i[t]=2,o[t];if(Re(s,t))return i[t]=3,s[t];if(n!==Be&&Re(n,t))return i[t]=4,n[t];Zs&&(i[t]=0)}}const c=Or[t];let u,d;if(c)return t==="$attrs"&&et(e.attrs,"get",""),c(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==Be&&Re(n,t))return i[t]=4,n[t];if(d=a.config.globalProperties,Re(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return ws(o,t)?(o[t]=n,!0):r!==Be&&Re(r,t)?(r[t]=n,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,props:s,type:i}},l){let a;return!!(n[l]||e!==Be&&l[0]!=="$"&&Re(e,l)||ws(t,l)||Re(s,l)||Re(r,l)||Re(Or,l)||Re(o.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Qs(e){return ve(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Xu(e,t){const n=Qs(e);for(const r in t){if(r.startsWith("__skip"))continue;let o=n[r];o?ve(o)||we(o)?o=n[r]={type:o,default:t[r]}:o.default=t[r]:o===null&&(o=n[r]={default:t[r]}),o&&t[`__skip_${r}`]&&(o.skipFactory=!0)}return n}let Zs=!0;function Ap(e){const t=Qu(e),n=e.proxy,r=e.ctx;Zs=!1,t.beforeCreate&&Cl(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:g,deactivated:y,beforeDestroy:w,beforeUnmount:x,destroyed:k,unmounted:S,render:N,renderTracked:X,renderTriggered:q,errorCaptured:$,serverPrefetch:O,expose:T,inheritAttrs:oe,components:I,directives:le,filters:ye}=t;if(c&&$p(c,r,null),i)for(const re in i){const ae=i[re];we(ae)&&(r[re]=ae.bind(n))}if(o){const re=o.call(n,n);Pe(re)&&(e.data=Dn(re))}if(Zs=!0,s)for(const re in s){const ae=s[re],R=we(ae)?ae.bind(n,n):we(ae.get)?ae.get.bind(n,n):qt,B=!we(ae)&&we(ae.set)?ae.set.bind(n):qt,W=E({get:R,set:B});Object.defineProperty(r,re,{enumerable:!0,configurable:!0,get:()=>W.value,set:pe=>W.value=pe})}if(l)for(const re in l)Ju(l[re],r,n,re);if(a){const re=we(a)?a.call(n):a;Reflect.ownKeys(re).forEach(ae=>{Xn(ae,re[ae])})}u&&Cl(u,e,"c");function ee(re,ae){ve(ae)?ae.forEach(R=>re(R.bind(n))):ae&&re(ae.bind(n))}if(ee(yp,d),ee(jt,f),ee(bp,p),ee(Ti,m),ee(Hu,g),ee(Ku,y),ee(kp,$),ee(wp,X),ee(xp,q),ee(wt,x),ee(ar,S),ee(_p,O),ve(T))if(T.length){const re=e.exposed||(e.exposed={});T.forEach(ae=>{Object.defineProperty(re,ae,{get:()=>n[ae],set:R=>n[ae]=R,enumerable:!0})})}else e.exposed||(e.exposed={});N&&e.render===qt&&(e.render=N),oe!=null&&(e.inheritAttrs=oe),I&&(e.components=I),le&&(e.directives=le),O&&zu(e)}function $p(e,t,n=qt){ve(e)&&(e=ei(e));for(const r in e){const o=e[r];let s;Pe(o)?"default"in o?s=nt(o.from||r,o.default,!0):s=nt(o.from||r):s=nt(o),Ke(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s}}function Cl(e,t,n){gt(ve(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ju(e,t,n,r){let o=r.includes(".")?Lu(n,r):()=>n[r];if(je(e)){const s=t[e];we(s)&&ze(o,s)}else if(we(e))ze(o,e.bind(n));else if(Pe(e))if(ve(e))e.forEach(s=>Ju(s,t,n,r));else{const s=we(e.handler)?e.handler.bind(n):t[e.handler];we(s)&&ze(o,s,e)}}function Qu(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,l=s.get(t);let a;return l?a=l:!o.length&&!n&&!r?a=t:(a={},o.length&&o.forEach(c=>bo(a,c,i,!0)),bo(a,t,i)),Pe(t)&&s.set(t,a),a}function bo(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&bo(e,s,n,!0),o&&o.forEach(i=>bo(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const l=Op[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Op={data:Sl,props:El,emits:El,methods:wr,computed:wr,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:wr,directives:wr,watch:Tp,provide:Sl,inject:Pp};function Sl(e,t){return t?e?function(){return We(we(e)?e.call(this,this):e,we(t)?t.call(this,this):t)}:t:e}function Pp(e,t){return wr(ei(e),ei(t))}function ei(e){if(ve(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function rt(e,t){return e?[...new Set([].concat(e,t))]:t}function wr(e,t){return e?We(Object.create(null),e,t):t}function El(e,t){return e?ve(e)&&ve(t)?[...new Set([...e,...t])]:We(Object.create(null),Qs(e),Qs(t??{})):t}function Tp(e,t){if(!e)return t;if(!t)return e;const n=We(Object.create(null),e);for(const r in t)n[r]=rt(e[r],t[r]);return n}function Zu(){return{app:null,config:{isNativeTag:tu,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 Rp=0;function Mp(e,t){return function(r,o=null){we(r)||(r=We({},r)),o!=null&&!Pe(o)&&(o=null);const s=Zu(),i=new WeakSet,l=[];let a=!1;const c=s.app={_uid:Rp++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:uh,get config(){return s.config},set config(u){},use(u,...d){return i.has(u)||(u&&we(u.install)?(i.add(u),u.install(c,...d)):we(u)&&(i.add(u),u(c,...d))),c},mixin(u){return s.mixins.includes(u)||s.mixins.push(u),c},component(u,d){return d?(s.components[u]=d,c):s.components[u]},directive(u,d){return d?(s.directives[u]=d,c):s.directives[u]},mount(u,d,f){if(!a){const p=c._ceVNode||G(r,o);return p.appContext=s,f===!0?f="svg":f===!1&&(f=void 0),e(p,u,f),a=!0,c._container=u,u.__vue_app__=c,Jo(p.component)}},onUnmount(u){l.push(u)},unmount(){a&&(gt(l,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return s.provides[u]=d,c},runWithContext(u){const d=Qn;Qn=c;try{return u()}finally{Qn=d}}};return c}}let Qn=null;const Dp=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Qe(t)}Modifiers`]||e[`${wn(t)}Modifiers`];function Ip(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Be;let o=n;const s=t.startsWith("update:"),i=s&&Dp(r,t.slice(7));i&&(i.trim&&(o=n.map(u=>je(u)?u.trim():u)),i.number&&(o=n.map(Ci)));let l,a=r[l=uo(t)]||r[l=uo(Qe(t))];!a&&s&&(a=r[l=uo(wn(t))]),a&&gt(a,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,gt(c,e,6,o)}}const qp=new WeakMap;function ec(e,t,n=!1){const r=n?qp:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},l=!1;if(!we(e)){const a=c=>{const u=ec(c,t,!0);u&&(l=!0,We(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!l?(Pe(e)&&r.set(e,null),null):(ve(s)?s.forEach(a=>i[a]=null):We(i,s),Pe(e)&&r.set(e,i),i)}function Yo(e,t){return!e||!Do(t)?!1:(t=t.slice(2).replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,wn(t))||Re(e,t))}function Al(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:i,attrs:l,emit:a,render:c,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:g}=e,y=vo(e);let w,x;try{if(n.shapeFlag&4){const S=o||r,N=S;w=Mt(c.call(N,S,u,d,p,f,m)),x=l}else{const S=t;w=Mt(S.length>1?S(d,{attrs:l,slots:i,emit:a}):S(d,null)),x=t.props?l:Fp(l)}}catch(S){Pr.length=0,Ko(S,e,1),w=G(kt)}let k=w;if(x&&g!==!1){const S=Object.keys(x),{shapeFlag:N}=k;S.length&&N&7&&(s&&S.some(Io)&&(x=Bp(x,s)),k=yn(k,x,!1,!0))}return n.dirs&&(k=yn(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&Fr(k,n.transition),w=k,vo(y),w}const Fp=e=>{let t;for(const n in e)(n==="class"||n==="style"||Do(n))&&((t||(t={}))[n]=e[n]);return t},Bp=(e,t)=>{const n={};for(const r in e)(!Io(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Np(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:l,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?$l(r,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(tc(i,r,f)&&!Yo(c,f))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:r===i?!1:r?i?$l(r,i,c):!0:!!i;return!1}function $l(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(tc(t,e,s)&&!Yo(n,s))return!0}return!1}function tc(e,t,n){const r=e[n],o=t[n];return n==="style"&&Pe(r)&&Pe(o)?!Si(r,o):r!==o}function Lp({vnode:e,parent:t,suspense:n},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=r,e=o),o===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const nc={},rc=()=>Object.create(nc),oc=e=>Object.getPrototypeOf(e)===nc;function jp(e,t,n,r=!1){const o={},s=rc();e.propsDefaults=Object.create(null),sc(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=r?o:Ou(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function Vp(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,l=Oe(o),[a]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(Yo(e.emitsOptions,f))continue;const p=t[f];if(a)if(Re(s,f))p!==s[f]&&(s[f]=p,c=!0);else{const m=Qe(f);o[m]=ti(a,l,m,p,e,!1)}else p!==s[f]&&(s[f]=p,c=!0)}}}else{sc(e,t,o,s)&&(c=!0);let u;for(const d in l)(!t||!Re(t,d)&&((u=wn(d))===d||!Re(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(o[d]=ti(a,l,d,void 0,e,!0)):delete o[d]);if(s!==l)for(const d in s)(!t||!Re(t,d))&&(delete s[d],c=!0)}c&&Yt(e.attrs,"set","")}function sc(e,t,n,r){const[o,s]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(Sr(a))continue;const c=t[a];let u;o&&Re(o,u=Qe(a))?!s||!s.includes(u)?n[u]=c:(l||(l={}))[u]=c:Yo(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,i=!0)}if(s){const a=Oe(n),c=l||Be;for(let u=0;u<s.length;u++){const d=s[u];n[d]=ti(o,a,d,c[d],e,!Re(c,d))}}return i}function ti(e,t,n,r,o,s){const i=e[n];if(i!=null){const l=Re(i,"default");if(l&&r===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&we(a)){const{propsDefaults:c}=o;if(n in c)r=c[n];else{const u=Kr(o);r=c[n]=a.call(null,t),u()}}else r=a;o.ce&&o.ce._setProp(n,r)}i[0]&&(s&&!l?r=!1:i[1]&&(r===""||r===wn(n))&&(r=!0))}return r}const zp=new WeakMap;function ic(e,t,n=!1){const r=n?zp:t.propsCache,o=r.get(e);if(o)return o;const s=e.props,i={},l=[];let a=!1;if(!we(e)){const u=d=>{a=!0;const[f,p]=ic(d,t,!0);We(i,f),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!a)return Pe(e)&&r.set(e,Wn),Wn;if(ve(s))for(let u=0;u<s.length;u++){const d=Qe(s[u]);Ol(d)&&(i[d]=Be)}else if(s)for(const u in s){const d=Qe(u);if(Ol(d)){const f=s[u],p=i[d]=ve(f)||we(f)?{type:f}:We({},f),m=p.type;let g=!1,y=!0;if(ve(m))for(let w=0;w<m.length;++w){const x=m[w],k=we(x)&&x.name;if(k==="Boolean"){g=!0;break}else k==="String"&&(y=!1)}else g=we(m)&&m.name==="Boolean";p[0]=g,p[1]=y,(g||Re(p,"default"))&&l.push(d)}}const c=[i,l];return Pe(e)&&r.set(e,c),c}function Ol(e){return e[0]!=="$"&&!Sr(e)}const Ri=e=>e==="_"||e==="_ctx"||e==="$stable",Mi=e=>ve(e)?e.map(Mt):[Mt(e)],Up=(e,t,n)=>{if(t._n)return t;const r=Y((...o)=>Mi(t(...o)),n);return r._c=!1,r},lc=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Ri(o))continue;const s=e[o];if(we(s))t[o]=Up(o,s,r);else if(s!=null){const i=Mi(s);t[o]=()=>i}}},ac=(e,t)=>{const n=Mi(t);e.slots.default=()=>n},uc=(e,t,n)=>{for(const r in t)(n||!Ri(r))&&(e[r]=t[r])},Hp=(e,t,n)=>{const r=e.slots=rc();if(e.vnode.shapeFlag&32){const o=t._;o?(uc(r,t,n),n&&iu(r,"_",o,!0)):lc(t,r)}else t&&ac(e,t)},Kp=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=Be;if(r.shapeFlag&32){const l=t._;l?n&&l===1?s=!1:uc(o,t,n):(s=!t.$stable,lc(t,o)),i=t}else t&&(ac(e,t),i={default:1});if(s)for(const l in o)!Ri(l)&&i[l]==null&&delete o[l]},ot=Jp;function Wp(e){return Gp(e)}function Gp(e,t){const n=No();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=qt,insertStaticContent:m}=e,g=(v,_,C,V=null,U=null,L=null,se=void 0,te=null,Z=!!_.dynamicChildren)=>{if(v===_)return;v&&!Vn(v,_)&&(V=M(v),pe(v,U,L,!0),v=null),_.patchFlag===-2&&(Z=!1,_.dynamicChildren=null);const{type:K,ref:be,shapeFlag:ue}=_;switch(K){case Xo:y(v,_,C,V);break;case kt:w(v,_,C,V);break;case Cs:v==null&&x(_,C,V,se);break;case ge:I(v,_,C,V,U,L,se,te,Z);break;default:ue&1?N(v,_,C,V,U,L,se,te,Z):ue&6?le(v,_,C,V,U,L,se,te,Z):(ue&64||ue&128)&&K.process(v,_,C,V,U,L,se,te,Z,he)}be!=null&&U?$r(be,v&&v.ref,L,_||v,!_):be==null&&v&&v.ref!=null&&$r(v.ref,null,L,v,!0)},y=(v,_,C,V)=>{if(v==null)r(_.el=l(_.children),C,V);else{const U=_.el=v.el;_.children!==v.children&&c(U,_.children)}},w=(v,_,C,V)=>{v==null?r(_.el=a(_.children||""),C,V):_.el=v.el},x=(v,_,C,V)=>{[v.el,v.anchor]=m(v.children,_,C,V,v.el,v.anchor)},k=({el:v,anchor:_},C,V)=>{let U;for(;v&&v!==_;)U=f(v),r(v,C,V),v=U;r(_,C,V)},S=({el:v,anchor:_})=>{let C;for(;v&&v!==_;)C=f(v),o(v),v=C;o(_)},N=(v,_,C,V,U,L,se,te,Z)=>{if(_.type==="svg"?se="svg":_.type==="math"&&(se="mathml"),v==null)X(_,C,V,U,L,se,te,Z);else{const K=v.el&&v.el._isVueCE?v.el:null;try{K&&K._beginPatch(),O(v,_,U,L,se,te,Z)}finally{K&&K._endPatch()}}},X=(v,_,C,V,U,L,se,te)=>{let Z,K;const{props:be,shapeFlag:ue,transition:me,dirs:xe}=v;if(Z=v.el=i(v.type,L,be&&be.is,be),ue&8?u(Z,v.children):ue&16&&$(v.children,Z,null,V,U,ks(v,L),se,te),xe&&Cn(v,null,V,"created"),q(Z,v,v.scopeId,se,V),be){for(const qe in be)qe!=="value"&&!Sr(qe)&&s(Z,qe,null,be[qe],L,V);"value"in be&&s(Z,"value",null,be.value,L),(K=be.onVnodeBeforeMount)&&$t(K,V,v)}xe&&Cn(v,null,V,"beforeMount");const $e=Yp(U,me);$e&&me.beforeEnter(Z),r(Z,_,C),((K=be&&be.onVnodeMounted)||$e||xe)&&ot(()=>{K&&$t(K,V,v),$e&&me.enter(Z),xe&&Cn(v,null,V,"mounted")},U)},q=(v,_,C,V,U)=>{if(C&&p(v,C),V)for(let L=0;L<V.length;L++)p(v,V[L]);if(U){let L=U.subTree;if(_===L||fc(L.type)&&(L.ssContent===_||L.ssFallback===_)){const se=U.vnode;q(v,se,se.scopeId,se.slotScopeIds,U.parent)}}},$=(v,_,C,V,U,L,se,te,Z=0)=>{for(let K=Z;K<v.length;K++){const be=v[K]=te?Gt(v[K]):Mt(v[K]);g(null,be,_,C,V,U,L,se,te)}},O=(v,_,C,V,U,L,se)=>{const te=_.el=v.el;let{patchFlag:Z,dynamicChildren:K,dirs:be}=_;Z|=v.patchFlag&16;const ue=v.props||Be,me=_.props||Be;let xe;if(C&&Sn(C,!1),(xe=me.onVnodeBeforeUpdate)&&$t(xe,C,_,v),be&&Cn(_,v,C,"beforeUpdate"),C&&Sn(C,!0),(ue.innerHTML&&me.innerHTML==null||ue.textContent&&me.textContent==null)&&u(te,""),K?T(v.dynamicChildren,K,te,C,V,ks(_,U),L):se||ae(v,_,te,null,C,V,ks(_,U),L,!1),Z>0){if(Z&16)oe(te,ue,me,C,U);else if(Z&2&&ue.class!==me.class&&s(te,"class",null,me.class,U),Z&4&&s(te,"style",ue.style,me.style,U),Z&8){const $e=_.dynamicProps;for(let qe=0;qe<$e.length;qe++){const Me=$e[qe],He=ue[Me],Xe=me[Me];(Xe!==He||Me==="value")&&s(te,Me,He,Xe,U,C)}}Z&1&&v.children!==_.children&&u(te,_.children)}else!se&&K==null&&oe(te,ue,me,C,U);((xe=me.onVnodeUpdated)||be)&&ot(()=>{xe&&$t(xe,C,_,v),be&&Cn(_,v,C,"updated")},V)},T=(v,_,C,V,U,L,se)=>{for(let te=0;te<_.length;te++){const Z=v[te],K=_[te],be=Z.el&&(Z.type===ge||!Vn(Z,K)||Z.shapeFlag&198)?d(Z.el):C;g(Z,K,be,null,V,U,L,se,!0)}},oe=(v,_,C,V,U)=>{if(_!==C){if(_!==Be)for(const L in _)!Sr(L)&&!(L in C)&&s(v,L,_[L],null,U,V);for(const L in C){if(Sr(L))continue;const se=C[L],te=_[L];se!==te&&L!=="value"&&s(v,L,te,se,U,V)}"value"in C&&s(v,"value",_.value,C.value,U)}},I=(v,_,C,V,U,L,se,te,Z)=>{const K=_.el=v?v.el:l(""),be=_.anchor=v?v.anchor:l("");let{patchFlag:ue,dynamicChildren:me,slotScopeIds:xe}=_;xe&&(te=te?te.concat(xe):xe),v==null?(r(K,C,V),r(be,C,V),$(_.children||[],C,be,U,L,se,te,Z)):ue>0&&ue&64&&me&&v.dynamicChildren&&v.dynamicChildren.length===me.length?(T(v.dynamicChildren,me,C,U,L,se,te),(_.key!=null||U&&_===U.subTree)&&Di(v,_,!0)):ae(v,_,C,be,U,L,se,te,Z)},le=(v,_,C,V,U,L,se,te,Z)=>{_.slotScopeIds=te,v==null?_.shapeFlag&512?U.ctx.activate(_,C,V,se,Z):ye(_,C,V,U,L,se,Z):z(v,_,Z)},ye=(v,_,C,V,U,L,se)=>{const te=v.component=nh(v,V,U);if(Uu(v)&&(te.ctx.renderer=he),rh(te,!1,se),te.asyncDep){if(U&&U.registerDep(te,ee,se),!v.el){const Z=te.subTree=G(kt);w(null,Z,_,C),v.placeholder=Z.el}}else ee(te,v,_,C,U,L,se)},z=(v,_,C)=>{const V=_.component=v.component;if(Np(v,_,C))if(V.asyncDep&&!V.asyncResolved){re(V,_,C);return}else V.next=_,V.update();else _.el=v.el,V.vnode=_},ee=(v,_,C,V,U,L,se)=>{const te=()=>{if(v.isMounted){let{next:ue,bu:me,u:xe,parent:$e,vnode:qe}=v;{const Et=cc(v);if(Et){ue&&(ue.el=qe.el,re(v,ue,se)),Et.asyncDep.then(()=>{ot(()=>{v.isUnmounted||K()},U)});return}}let Me=ue,He;Sn(v,!1),ue?(ue.el=qe.el,re(v,ue,se)):ue=qe,me&&co(me),(He=ue.props&&ue.props.onVnodeBeforeUpdate)&&$t(He,$e,ue,qe),Sn(v,!0);const Xe=Al(v),St=v.subTree;v.subTree=Xe,g(St,Xe,d(St.el),M(St),v,U,L),ue.el=Xe.el,Me===null&&Lp(v,Xe.el),xe&&ot(xe,U),(He=ue.props&&ue.props.onVnodeUpdated)&&ot(()=>$t(He,$e,ue,qe),U)}else{let ue;const{el:me,props:xe}=_,{bm:$e,m:qe,parent:Me,root:He,type:Xe}=v,St=Jn(_);Sn(v,!1),$e&&co($e),!St&&(ue=xe&&xe.onVnodeBeforeMount)&&$t(ue,Me,_),Sn(v,!0);{He.ce&&He.ce._hasShadowRoot()&&He.ce._injectChildStyle(Xe,v.parent?v.parent.type:void 0);const Et=v.subTree=Al(v);g(null,Et,C,V,v,U,L),_.el=Et.el}if(qe&&ot(qe,U),!St&&(ue=xe&&xe.onVnodeMounted)){const Et=_;ot(()=>$t(ue,Me,Et),U)}(_.shapeFlag&256||Me&&Jn(Me.vnode)&&Me.vnode.shapeFlag&256)&&v.a&&ot(v.a,U),v.isMounted=!0,_=C=V=null}};v.scope.on();const Z=v.effect=new pu(te);v.scope.off();const K=v.update=Z.run.bind(Z),be=v.job=Z.runIfDirty.bind(Z);be.i=v,be.id=v.uid,Z.scheduler=()=>Pi(be),Sn(v,!0),K()},re=(v,_,C)=>{_.component=v;const V=v.vnode.props;v.vnode=_,v.next=null,Vp(v,_.props,V,C),Kp(v,_.children,C),Zt(),yl(v),en()},ae=(v,_,C,V,U,L,se,te,Z=!1)=>{const K=v&&v.children,be=v?v.shapeFlag:0,ue=_.children,{patchFlag:me,shapeFlag:xe}=_;if(me>0){if(me&128){B(K,ue,C,V,U,L,se,te,Z);return}else if(me&256){R(K,ue,C,V,U,L,se,te,Z);return}}xe&8?(be&16&&de(K,U,L),ue!==K&&u(C,ue)):be&16?xe&16?B(K,ue,C,V,U,L,se,te,Z):de(K,U,L,!0):(be&8&&u(C,""),xe&16&&$(ue,C,V,U,L,se,te,Z))},R=(v,_,C,V,U,L,se,te,Z)=>{v=v||Wn,_=_||Wn;const K=v.length,be=_.length,ue=Math.min(K,be);let me;for(me=0;me<ue;me++){const xe=_[me]=Z?Gt(_[me]):Mt(_[me]);g(v[me],xe,C,null,U,L,se,te,Z)}K>be?de(v,U,L,!0,!1,ue):$(_,C,V,U,L,se,te,Z,ue)},B=(v,_,C,V,U,L,se,te,Z)=>{let K=0;const be=_.length;let ue=v.length-1,me=be-1;for(;K<=ue&&K<=me;){const xe=v[K],$e=_[K]=Z?Gt(_[K]):Mt(_[K]);if(Vn(xe,$e))g(xe,$e,C,null,U,L,se,te,Z);else break;K++}for(;K<=ue&&K<=me;){const xe=v[ue],$e=_[me]=Z?Gt(_[me]):Mt(_[me]);if(Vn(xe,$e))g(xe,$e,C,null,U,L,se,te,Z);else break;ue--,me--}if(K>ue){if(K<=me){const xe=me+1,$e=xe<be?_[xe].el:V;for(;K<=me;)g(null,_[K]=Z?Gt(_[K]):Mt(_[K]),C,$e,U,L,se,te,Z),K++}}else if(K>me)for(;K<=ue;)pe(v[K],U,L,!0),K++;else{const xe=K,$e=K,qe=new Map;for(K=$e;K<=me;K++){const lt=_[K]=Z?Gt(_[K]):Mt(_[K]);lt.key!=null&&qe.set(lt.key,K)}let Me,He=0;const Xe=me-$e+1;let St=!1,Et=0;const fr=new Array(Xe);for(K=0;K<Xe;K++)fr[K]=0;for(K=xe;K<=ue;K++){const lt=v[K];if(He>=Xe){pe(lt,U,L,!0);continue}let At;if(lt.key!=null)At=qe.get(lt.key);else for(Me=$e;Me<=me;Me++)if(fr[Me-$e]===0&&Vn(lt,_[Me])){At=Me;break}At===void 0?pe(lt,U,L,!0):(fr[At-$e]=K+1,At>=Et?Et=At:St=!0,g(lt,_[At],C,null,U,L,se,te,Z),He++)}const dl=St?Xp(fr):Wn;for(Me=dl.length-1,K=Xe-1;K>=0;K--){const lt=$e+K,At=_[lt],fl=_[lt+1],pl=lt+1<be?fl.el||dc(fl):V;fr[K]===0?g(null,At,C,pl,U,L,se,te,Z):St&&(Me<0||K!==dl[Me]?W(At,C,pl,2):Me--)}}},W=(v,_,C,V,U=null)=>{const{el:L,type:se,transition:te,children:Z,shapeFlag:K}=v;if(K&6){W(v.component.subTree,_,C,V);return}if(K&128){v.suspense.move(_,C,V);return}if(K&64){se.move(v,_,C,he);return}if(se===ge){r(L,_,C);for(let ue=0;ue<Z.length;ue++)W(Z[ue],_,C,V);r(v.anchor,_,C);return}if(se===Cs){k(v,_,C);return}if(V!==2&&K&1&&te)if(V===0)te.persisted&&!L[Tt]?r(L,_,C):(te.beforeEnter(L),r(L,_,C),ot(()=>te.enter(L),U));else{const{leave:ue,delayLeave:me,afterLeave:xe}=te,$e=()=>{v.ctx.isUnmounted?o(L):r(L,_,C)},qe=()=>{const Me=L._isLeaving||!!L[Tt];L._isLeaving&&L[Tt](!0),te.persisted&&!Me?$e():ue(L,()=>{$e(),xe&&xe()})};me?me(L,$e,qe):qe()}else r(L,_,C)},pe=(v,_,C,V=!1,U=!1)=>{const{type:L,props:se,ref:te,children:Z,dynamicChildren:K,shapeFlag:be,patchFlag:ue,dirs:me,cacheIndex:xe,memo:$e}=v;if(ue===-2&&(U=!1),te!=null&&(Zt(),$r(te,null,C,v,!0),en()),xe!=null&&(_.renderCache[xe]=void 0),be&256){_.ctx.deactivate(v);return}const qe=be&1&&me,Me=!Jn(v);let He;if(Me&&(He=se&&se.onVnodeBeforeUnmount)&&$t(He,_,v),be&6)ne(v.component,C,V);else{if(be&128){v.suspense.unmount(C,V);return}qe&&Cn(v,null,_,"beforeUnmount"),be&64?v.type.remove(v,_,C,he,V):K&&!K.hasOnce&&(L!==ge||ue>0&&ue&64)?de(K,_,C,!1,!0):(L===ge&&ue&384||!U&&be&16)&&de(Z,_,C),V&&ke(v)}const Xe=$e!=null&&xe==null;(Me&&(He=se&&se.onVnodeUnmounted)||qe||Xe)&&ot(()=>{He&&$t(He,_,v),qe&&Cn(v,null,_,"unmounted"),Xe&&(v.el=null)},C)},ke=v=>{const{type:_,el:C,anchor:V,transition:U}=v;if(_===ge){j(C,V);return}if(_===Cs){S(v);return}const L=()=>{o(C),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(v.shapeFlag&1&&U&&!U.persisted){const{leave:se,delayLeave:te}=U,Z=()=>se(C,L);te?te(v.el,L,Z):Z()}else L()},j=(v,_)=>{let C;for(;v!==_;)C=f(v),o(v),v=C;o(_)},ne=(v,_,C)=>{const{bum:V,scope:U,job:L,subTree:se,um:te,m:Z,a:K}=v;Pl(Z),Pl(K),V&&co(V),U.stop(),L&&(L.flags|=8,pe(se,v,_,C)),te&&ot(te,_),ot(()=>{v.isUnmounted=!0},_)},de=(v,_,C,V=!1,U=!1,L=0)=>{for(let se=L;se<v.length;se++)pe(v[se],_,C,V,U)},M=v=>{if(v.shapeFlag&6)return M(v.component.subTree);if(v.shapeFlag&128)return v.suspense.next();const _=f(v.anchor||v.el),C=_&&_[ju];return C?f(C):_};let ce=!1;const ie=(v,_,C)=>{let V;v==null?_._vnode&&(pe(_._vnode,null,null,!0),V=_._vnode.component):g(_._vnode||null,v,_,null,null,null,C),_._vnode=v,ce||(ce=!0,yl(V),qu(),ce=!1)},he={p:g,um:pe,m:W,r:ke,mt:ye,mc:$,pc:ae,pbc:T,n:M,o:e};return{render:ie,hydrate:void 0,createApp:Mp(ie)}}function ks({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 Sn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Yp(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Di(e,t,n=!1){const r=e.children,o=t.children;if(ve(r)&&ve(o))for(let s=0;s<r.length;s++){const i=r[s];let l=o[s];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[s]=Gt(o[s]),l.el=i.el),!n&&l.patchFlag!==-2&&Di(i,l)),l.type===Xo&&(l.patchFlag===-1&&(l=o[s]=Gt(l)),l.el=i.el),l.type===kt&&!l.el&&(l.el=i.el)}}function Xp(e){const t=e.slice(),n=[0];let r,o,s,i,l;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(o=n[n.length-1],e[o]<c){t[r]=o,n.push(r);continue}for(s=0,i=n.length-1;s<i;)l=s+i>>1,e[n[l]]<c?s=l+1:i=l;c<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function cc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:cc(t)}function Pl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function dc(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?dc(t.subTree):null}const fc=e=>e.__isSuspense;function Jp(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):op(e)}const ge=Symbol.for("v-fgt"),Xo=Symbol.for("v-txt"),kt=Symbol.for("v-cmt"),Cs=Symbol.for("v-stc"),Pr=[];let ct=null;function b(e=!1){Pr.push(ct=e?null:[])}function Qp(){Pr.pop(),ct=Pr[Pr.length-1]||null}let Br=1;function _o(e,t=!1){Br+=e,e<0&&ct&&t&&(ct.hasOnce=!0)}function pc(e){return e.dynamicChildren=Br>0?ct||Wn:null,Qp(),Br>0&&ct&&ct.push(e),e}function A(e,t,n,r,o,s){return pc(P(e,t,n,r,o,s,!0))}function J(e,t,n,r,o){return pc(G(e,t,n,r,o,!0))}function Nr(e){return e?e.__v_isVNode===!0:!1}function Vn(e,t){return e.type===t.type&&e.key===t.key}const hc=({key:e})=>e??null,fo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?je(e)||Ke(e)||we(e)?{i:Je,r:e,k:t,f:!!n}:e:null);function P(e,t=null,n=null,r=0,o=null,s=e===ge?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&hc(t),ref:t&&fo(t),scopeId:Bu,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:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Je};return l?(Ii(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=je(n)?8:16),Br>0&&!i&&ct&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&ct.push(a),a}const G=Zp;function Zp(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===Gu)&&(e=kt),Nr(e)){const l=yn(e,t,!0);return n&&Ii(l,n),Br>0&&!s&&ct&&(l.shapeFlag&6?ct[ct.indexOf(e)]=l:ct.push(l)),l.patchFlag=-2,l}if(ah(e)&&(e=e.__vccOpts),t){t=vt(t);let{class:l,style:a}=t;l&&!je(l)&&(t.class=Ce(l)),Pe(a)&&(Uo(a)&&!ve(a)&&(a=We({},a)),t.style=ir(a))}const i=je(e)?1:fc(e)?128:ap(e)?64:Pe(e)?4:we(e)?2:0;return P(e,t,n,r,o,i,s,!0)}function vt(e){return e?Uo(e)||oc(e)?We({},e):e:null}function yn(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:l,transition:a}=e,c=t?Ve(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&hc(c),ref:t&&t.ref?n&&s?ve(s)?s.concat(fo(t)):[s,fo(t)]:fo(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&yn(e.ssContent),ssFallback:e.ssFallback&&yn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Fr(u,a.clone(u)),u}function Ee(e=" ",t=0){return G(Xo,null,e,t)}function fe(e="",t=!1){return t?(b(),J(kt,null,e)):G(kt,null,e)}function Mt(e){return e==null||typeof e=="boolean"?G(kt):ve(e)?G(ge,null,e.slice()):Nr(e)?Gt(e):G(Xo,null,String(e))}function Gt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:yn(e)}function Ii(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ve(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Ii(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!oc(t)?t._ctx=Je:o===3&&Je&&(Je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else we(t)?(t={default:t,_ctx:Je},n=32):(t=String(t),r&64?(n=16,t=[Ee(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ve(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=Ce([t.class,r.class]));else if(o==="style")t.style=ir([t.style,r.style]);else if(Do(o)){const s=t[o],i=r[o];i&&s!==i&&!(ve(s)&&s.includes(i))?t[o]=s?[].concat(s,i):i:i==null&&s==null&&!Io(o)&&(t[o]=i)}else o!==""&&(t[o]=r[o])}return t}function $t(e,t,n,r=null){gt(e,t,7,[n,r])}const eh=Zu();let th=0;function nh(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||eh,s={uid:th++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new cu(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ic(r,o),emitsOptions:ec(r,o),emit:null,emitted:null,propsDefaults:Be,inheritAttrs:r.inheritAttrs,ctx:Be,data:Be,props:Be,attrs:Be,slots:Be,refs:Be,setupState:Be,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=Ip.bind(null,s),e.ce&&e.ce(s),s}let tt=null;const Vt=()=>tt||Je;let xo,ni;{const e=No(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};xo=t("__VUE_INSTANCE_SETTERS__",n=>tt=n),ni=t("__VUE_SSR_SETTERS__",n=>Lr=n)}const Kr=e=>{const t=tt;return xo(e),e.scope.on(),()=>{e.scope.off(),xo(t)}},Tl=()=>{tt&&tt.scope.off(),xo(null)};function mc(e){return e.vnode.shapeFlag&4}let Lr=!1;function rh(e,t=!1,n=!1){t&&ni(t);const{props:r,children:o}=e.vnode,s=mc(e);jp(e,r,s,t),Hp(e,o,n||t);const i=s?oh(e,t):void 0;return t&&ni(!1),i}function oh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ep);const{setup:r}=n;if(r){Zt();const o=e.setupContext=r.length>1?ih(e):null,s=Kr(e),i=Hr(r,e,0,[e.props,o]),l=ru(i);if(en(),s(),(l||e.sp)&&!Jn(e)&&zu(e),l){if(i.then(Tl,Tl),t)return i.then(a=>{Rl(e,a)}).catch(a=>{Ko(a,e,0)});e.asyncDep=i}else Rl(e,i)}else gc(e)}function Rl(e,t,n){we(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pe(t)&&(e.setupState=Ru(t)),gc(e)}function gc(e,t,n){const r=e.type;e.render||(e.render=r.render||qt);{const o=Kr(e);Zt();try{Ap(e)}finally{en(),o()}}}const sh={get(e,t){return et(e,"get",""),e[t]}};function ih(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,sh),slots:e.slots,emit:e.emit,expose:t}}function Jo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ru(Pu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Or)return Or[n](e)},has(t,n){return n in t||n in Or}})):e.proxy}function lh(e,t=!0){return we(e)?e.displayName||e.name:e.name||t&&e.__name}function ah(e){return we(e)&&"__vccOpts"in e}const E=(e,t)=>Zf(e,t,Lr);function _t(e,t,n){try{_o(-1);const r=arguments.length;return r===2?Pe(t)&&!ve(t)?Nr(t)?G(e,null,[t]):G(e,t):G(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Nr(n)&&(n=[n]),G(e,t,n))}finally{_o(1)}}const uh="3.5.35";let ri;const Ml=typeof window<"u"&&window.trustedTypes;if(Ml)try{ri=Ml.createPolicy("vue",{createHTML:e=>e})}catch{}const vc=ri?e=>ri.createHTML(e):e=>e,ch="http://www.w3.org/2000/svg",dh="http://www.w3.org/1998/Math/MathML",Wt=typeof document<"u"?document:null,Dl=Wt&&Wt.createElement("template"),fh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Wt.createElementNS(ch,e):t==="mathml"?Wt.createElementNS(dh,e):n?Wt.createElement(e,{is:n}):Wt.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Wt.createTextNode(e),createComment:e=>Wt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{Dl.innerHTML=vc(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const l=Dl.content;if(r==="svg"||r==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},cn="transition",mr="animation",tr=Symbol("_vtc"),yc={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},ph=We({},hp,yc),En=(e,t=[])=>{ve(e)?e.forEach(n=>n(...t)):e&&e(...t)},Il=e=>e?ve(e)?e.some(t=>t.length>1):e.length>1:!1;function hh(e){const t={};for(const I in e)I in yc||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=s,appearActiveClass:c=i,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=mh(o),g=m&&m[0],y=m&&m[1],{onBeforeEnter:w,onEnter:x,onEnterCancelled:k,onLeave:S,onLeaveCancelled:N,onBeforeAppear:X=w,onAppear:q=x,onAppearCancelled:$=k}=t,O=(I,le,ye,z)=>{I._enterCancelled=z,pn(I,le?u:l),pn(I,le?c:i),ye&&ye()},T=(I,le)=>{I._isLeaving=!1,pn(I,d),pn(I,p),pn(I,f),le&&le()},oe=I=>(le,ye)=>{const z=I?q:x,ee=()=>O(le,I,ye);En(z,[le,ee]),ql(()=>{pn(le,I?a:s),Ot(le,I?u:l),Il(z)||Fl(le,r,g,ee)})};return We(t,{onBeforeEnter(I){En(w,[I]),Ot(I,s),Ot(I,i)},onBeforeAppear(I){En(X,[I]),Ot(I,a),Ot(I,c)},onEnter:oe(!1),onAppear:oe(!0),onLeave(I,le){I._isLeaving=!0;const ye=()=>T(I,le);Ot(I,d),I._enterCancelled?(Ot(I,f),oi(I)):(oi(I),Ot(I,f)),ql(()=>{I._isLeaving&&(pn(I,d),Ot(I,p),Il(S)||Fl(I,r,y,ye))}),En(S,[I,ye])},onEnterCancelled(I){O(I,!1,void 0,!0),En(k,[I])},onAppearCancelled(I){O(I,!0,void 0,!0),En($,[I])},onLeaveCancelled(I){T(I),En(N,[I])}})}function mh(e){if(e==null)return null;if(Pe(e))return[Ss(e.enter),Ss(e.leave)];{const t=Ss(e);return[t,t]}}function Ss(e){return yf(e)}function Ot(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[tr]||(e[tr]=new Set)).add(t)}function pn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[tr];n&&(n.delete(t),n.size||(e[tr]=void 0))}function ql(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let gh=0;function Fl(e,t,n,r){const o=e._endId=++gh,s=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:i,timeout:l,propCount:a}=bc(e,t);if(!i)return r();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,f),s()},f=p=>{p.target===e&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},l+1),e.addEventListener(c,f)}function bc(e,t){const n=window.getComputedStyle(e),r=m=>(n[m]||"").split(", "),o=r(`${cn}Delay`),s=r(`${cn}Duration`),i=Bl(o,s),l=r(`${mr}Delay`),a=r(`${mr}Duration`),c=Bl(l,a);let u=null,d=0,f=0;t===cn?i>0&&(u=cn,d=i,f=s.length):t===mr?c>0&&(u=mr,d=c,f=a.length):(d=Math.max(i,c),u=d>0?i>c?cn:mr:null,f=u?u===cn?s.length:a.length:0);const p=u===cn&&/\b(?:transform|all)(?:,|$)/.test(r(`${cn}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Bl(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Nl(n)+Nl(e[r])))}function Nl(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function oi(e){return(e?e.ownerDocument:document).body.offsetHeight}function vh(e,t,n){const r=e[tr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const wo=Symbol("_vod"),_c=Symbol("_vsh"),yh={name:"show",beforeMount(e,{value:t},{transition:n}){e[wo]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):gr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),gr(e,!0),r.enter(e)):r.leave(e,()=>{gr(e,!1)}):gr(e,t))},beforeUnmount(e,{value:t}){gr(e,t)}};function gr(e,t){e.style.display=t?e[wo]:"none",e[_c]=!t}const bh=Symbol(""),_h=/(?:^|;)\s*display\s*:/;function xh(e,t,n){const r=e.style,o=je(n);let s=!1;if(n&&!o){if(t)if(je(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&kr(r,l,"")}else for(const i in t)n[i]==null&&kr(r,i,"");for(const i in n){i==="display"&&(s=!0);const l=n[i];l!=null?kh(e,i,!je(t)&&t?t[i]:void 0,l)||kr(r,i,l):kr(r,i,"")}}else if(o){if(t!==n){const i=r[bh];i&&(n+=";"+i),r.cssText=n,s=_h.test(n)}}else t&&e.removeAttribute("style");wo in e&&(e[wo]=s?r.display:"",e[_c]&&(r.display="none"))}const Ll=/\s*!important$/;function kr(e,t,n){if(ve(n))n.forEach(r=>kr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=wh(e,t);Ll.test(n)?e.setProperty(wn(r),n.replace(Ll,""),"important"):e[r]=n}}const jl=["Webkit","Moz","ms"],Es={};function wh(e,t){const n=Es[t];if(n)return n;let r=Qe(t);if(r!=="filter"&&r in e)return Es[t]=r;r=Bo(r);for(let o=0;o<jl.length;o++){const s=jl[o]+r;if(s in e)return Es[t]=s}return t}function kh(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&je(r)&&n===r}const Vl="http://www.w3.org/1999/xlink";function zl(e,t,n,r,o,s=Cf(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Vl,t.slice(6,t.length)):e.setAttributeNS(Vl,t,n):n==null||s&&!lu(n)?e.removeAttribute(t):e.setAttribute(t,s?"":pt(n)?String(n):n)}function Ul(e,t,n,r,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?vc(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const l=s==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=lu(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(o||t)}function zn(e,t,n,r){e.addEventListener(t,n,r)}function Ch(e,t,n,r){e.removeEventListener(t,n,r)}const Hl=Symbol("_vei");function Sh(e,t,n,r,o=null){const s=e[Hl]||(e[Hl]={}),i=s[t];if(r&&i)i.value=r;else{const[l,a]=Eh(t);if(r){const c=s[t]=Oh(r,o);zn(e,l,c,a)}else i&&(Ch(e,l,i,a),s[t]=void 0)}}const Kl=/(?:Once|Passive|Capture)$/;function Eh(e){let t;if(Kl.test(e)){t={};let r;for(;r=e.match(Kl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):wn(e.slice(2)),t]}let As=0;const Ah=Promise.resolve(),$h=()=>As||(Ah.then(()=>As=0),As=Date.now());function Oh(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const o=n.value;if(ve(o)){const s=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{s.call(r),r._stopped=!0};const i=o.slice(),l=[r];for(let a=0;a<i.length&&!r._stopped;a++){const c=i[a];c&&gt(c,t,5,l)}}else gt(o,t,5,[r])};return n.value=e,n.attached=$h(),n}const Wl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ph=(e,t,n,r,o,s)=>{const i=o==="svg";t==="class"?vh(e,r,i):t==="style"?xh(e,n,r):Do(t)?Io(t)||Sh(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Th(e,t,r,i))?(Ul(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&zl(e,t,r,i,s,t!=="value")):e._isVueCE&&(Rh(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!je(r)))?Ul(e,Qe(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),zl(e,t,r,i))};function Th(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Wl(t)&&we(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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Wl(t)&&je(n)?!1:t in e}function Rh(e,t){const n=e._def.props;if(!n)return!1;const r=Qe(t);return Array.isArray(n)?n.some(o=>Qe(o)===r):Object.keys(n).some(o=>Qe(o)===r)}const xc=new WeakMap,wc=new WeakMap,ko=Symbol("_moveCb"),Gl=Symbol("_enterCb"),Mh=e=>(delete e.props.mode,e),Dh=Mh({name:"TransitionGroup",props:We({},ph,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Vt(),r=pp();let o,s;return Ti(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!Nh(o[0].el,n.vnode.el,i)){o=[];return}o.forEach(qh),o.forEach(Fh);const l=o.filter(Bh);oi(n.vnode.el),l.forEach(a=>{const c=a.el,u=c.style;Ot(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[ko]=f=>{f&&f.target!==c||(!f||f.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",d),c[ko]=null,pn(c,i))};c.addEventListener("transitionend",d)}),o=[]}),()=>{const i=Oe(e),l=hh(i);let a=i.tag||ge;if(o=[],s)for(let c=0;c<s.length;c++){const u=s[c];u.el&&u.el instanceof Element&&(o.push(u),Fr(u,Xs(u,l,r,n)),xc.set(u,kc(u.el)))}s=t.default?Vu(t.default()):[];for(let c=0;c<s.length;c++){const u=s[c];u.key!=null&&Fr(u,Xs(u,l,r,n))}return G(a,null,s)}}}),Ih=Dh;function qh(e){const t=e.el;t[ko]&&t[ko](),t[Gl]&&t[Gl]()}function Fh(e){wc.set(e,kc(e.el))}function Bh(e){const t=xc.get(e),n=wc.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const s=e.el,i=s.style,l=s.getBoundingClientRect();let a=1,c=1;return s.offsetWidth&&(a=l.width/s.offsetWidth),s.offsetHeight&&(c=l.height/s.offsetHeight),(!Number.isFinite(a)||a===0)&&(a=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(a-1)<.01&&(a=1),Math.abs(c-1)<.01&&(c=1),i.transform=i.webkitTransform=`translate(${r/a}px,${o/c}px)`,i.transitionDuration="0s",e}}function kc(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Nh(e,t,n){const r=e.cloneNode(),o=e[tr];o&&o.forEach(l=>{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:i}=bc(r);return s.removeChild(r),i}const Yl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ve(t)?n=>co(t,n):t};function Lh(e){e.target.composing=!0}function Xl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $s=Symbol("_assign");function Jl(e,t,n){return t&&(e=e.trim()),n&&(e=Ci(e)),e}const Ql={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[$s]=Yl(o);const s=r||o.props&&o.props.type==="number";zn(e,t?"change":"input",i=>{i.target.composing||e[$s](Jl(e.value,n,s))}),(n||s)&&zn(e,"change",()=>{e.value=Jl(e.value,n,s)}),t||(zn(e,"compositionstart",Lh),zn(e,"compositionend",Xl),zn(e,"change",Xl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:s}},i){if(e[$s]=Yl(i),e.composing)return;const l=(s||e.type==="number")&&!/^0\d/.test(e.value)?Ci(e.value):e.value,a=t??"";if(l===a)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===a)||(e.value=a)}},jh=["ctrl","shift","alt","meta"],Vh={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)=>jh.some(n=>e[`${n}Key`]&&!t.includes(n))},Bt=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((o,...s)=>{for(let i=0;i<t.length;i++){const l=Vh[t[i]];if(l&&l(o,t))return}return e(o,...s)}))},zh={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Cc=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(o=>{if(!("key"in o))return;const s=wn(o.key);if(t.some(i=>i===s||zh[i]===s))return e(o)}))},Uh=We({patchProp:Ph},fh);let Zl;function Hh(){return Zl||(Zl=Wp(Uh))}const Kh=((...e)=>{const t=Hh().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Gh(r);if(!o)return;const s=t._component;!we(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,Wh(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function Wh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Gh(e){return je(e)?document.querySelector(e):e}const Un=typeof document<"u";function Sc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Yh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Sc(e.default)}const Te=Object.assign;function Os(e,t){const n={};for(const r in t){const o=t[r];n[r]=Ct(o)?o.map(e):e(o)}return n}const Tr=()=>{},Ct=Array.isArray;function ea(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Ec=Symbol("");function nr(e,t){return Te(new Error,{type:e,[Ec]:!0},t)}function Kt(e,t){return e instanceof Error&&Ec in e&&(t==null||!!(e.type&t))}const qi=Symbol(""),ta=Symbol(""),Qo=Symbol(""),Fi=Symbol(""),si=Symbol("");function Wr(){return nt(Qo)}function zt(e){return nt(Fi)}const Ac=/#/g,Xh=/&/g,Jh=/\//g,Qh=/=/g,Zh=/\?/g,$c=/\+/g,em=/%5B/g,tm=/%5D/g,Oc=/%5E/g,nm=/%60/g,Pc=/%7B/g,rm=/%7C/g,Tc=/%7D/g,om=/%20/g;function Bi(e){return e==null?"":encodeURI(""+e).replace(rm,"|").replace(em,"[").replace(tm,"]")}function sm(e){return Bi(e).replace(Pc,"{").replace(Tc,"}").replace(Oc,"^")}function ii(e){return Bi(e).replace($c,"%2B").replace(om,"+").replace(Ac,"%23").replace(Xh,"%26").replace(nm,"`").replace(Pc,"{").replace(Tc,"}").replace(Oc,"^")}function im(e){return ii(e).replace(Qh,"%3D")}function lm(e){return Bi(e).replace(Ac,"%23").replace(Zh,"%3F")}function am(e){return lm(e).replace(Jh,"%2F")}function Co(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const um=/\/$/,cm=e=>e.replace(um,"");function Ps(e,t,n="/"){let r,o={},s="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(r=t.slice(0,a),s=t.slice(a,l>0?l:t.length),o=e(s.slice(1))),l>=0&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=hm(r??t,n),{fullPath:r+s+i,path:r,query:o,hash:Co(i)}}function dm(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function na(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function fm(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&rr(t.matched[r],n.matched[o])&&Rc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function rr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Rc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!pm(e[n],t[n]))return!1;return!0}function pm(e,t){return Ct(e)?ra(e,t):Ct(t)?ra(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function ra(e,t){return Ct(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function hm(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,l;for(i=0;i<r.length;i++)if(l=r[i],l!==".")if(l==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i).join("/")}const dn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};function mm(e){if(!e)if(Un){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),cm(e)}const gm=/^[^#]+#/;function vm(e,t){return e.replace(gm,"#")+t}function ym(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Zo=()=>({left:window.scrollX,top:window.scrollY});function bm(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=ym(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function oa(e,t){return(history.state?history.state.position-t:-1)+e}const li=new Map;function _m(e,t){li.set(e,t)}function xm(e){const t=li.get(e);return li.delete(e),t}function wm(e){return typeof e=="string"||e&&typeof e=="object"}function Mc(e){return typeof e=="string"||typeof e=="symbol"}function km(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const o=n[r].replace($c," "),s=o.indexOf("="),i=Co(s<0?o:o.slice(0,s)),l=s<0?null:Co(o.slice(s+1));if(i in t){let a=t[i];Ct(a)||(a=t[i]=[a]),a.push(l)}else t[i]=l}return t}function sa(e){let t="";for(let n in e){const r=e[n];if(n=im(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ct(r)?r.map(o=>o&&ii(o)):[r&&ii(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Cm(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ct(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}function vr(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Dc(e,t,n){const r=e.value;if(!r)return;let o=r;const s=()=>{o[t].delete(n)};ar(s),Ku(s),Hu(()=>{const i=e.value;i&&(o=i),o[t].add(n)}),o[t].add(n)}function Sm(e){Dc(nt(qi,{}),"leaveGuards",e)}function Em(e){Dc(nt(qi,{}),"updateGuards",e)}function gn(e,t,n,r,o,s=i=>i()){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((l,a)=>{const c=f=>{f===!1?a(nr(4,{from:n,to:t})):f instanceof Error?a(f):wm(f)?a(nr(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),l())},u=s(()=>e.call(r&&r.instances[o],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>a(f))})}function Ts(e,t,n,r,o=s=>s()){const s=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Sc(a)){const c=(a.__vccOpts||a)[t];c&&s.push(gn(c,n,r,i,l,o))}else{let c=a();s.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const d=Yh(u)?u.default:u;i.mods[l]=u,i.components[l]=d;const f=(d.__vccOpts||d)[t];return f&&gn(f,n,r,i,l,o)()}))}}return s}function Am(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;i<s;i++){const l=t.matched[i];l&&(e.matched.find(c=>rr(c,l))?r.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(c=>rr(c,a))||o.push(a))}return[n,r,o]}let $m=()=>location.protocol+"//"+location.host;function Ic(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let i=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(i);return l[0]!=="/"&&(l="/"+l),na(l,"")}return na(n,e)+r+o}function Om(e,t,n,r){let o=[],s=[],i=null;const l=({state:f})=>{const p=Ic(e,location),m=n.value,g=t.value;let y=0;if(f){if(n.value=p,t.value=f,i&&i===m){i=null;return}y=g?f.position-g.position:0}else r(p);o.forEach(w=>{w(n.value,m,{delta:y,type:"pop",direction:y?y>0?"forward":"back":""})})};function a(){i=n.value}function c(f){o.push(f);const p=()=>{const m=o.indexOf(f);m>-1&&o.splice(m,1)};return s.push(p),p}function u(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Te({},f.state,{scroll:Zo()}),"")}}function d(){for(const f of s)f();s=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:a,listen:c,destroy:d}}function ia(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Zo():null}}function Pm(e){const{history:t,location:n}=window,r={value:Ic(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(a,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+a:$m()+e+a;try{t[u?"replaceState":"pushState"](c,"",f),o.value=c}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function i(a,c){s(a,Te({},t.state,ia(o.value.back,a,o.value.forward,!0),c,{position:o.value.position}),!0),r.value=a}function l(a,c){const u=Te({},o.value,t.state,{forward:a,scroll:Zo()});s(u.current,u,!0),s(a,Te({},ia(r.value,a,null),{position:u.position+1},c),!1),r.value=a}return{location:r,state:o,push:l,replace:i}}function Tm(e){e=mm(e);const t=Pm(e),n=Om(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=Te({location:"",base:e,go:r,createHref:vm.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}const Rm={type:0,value:""},Mm=/[a-zA-Z0-9_]/;function Dm(e){if(!e)return[[]];if(e==="/")return[[Rm]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let l=0,a,c="",u="";function d(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=a}for(;l<e.length;)switch(a=e[l++],n){case 0:a==="\\"?(r=n,n=4):a==="/"?(c&&d(),i()):a===":"?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:a==="("?n=2:Mm.test(a)?f():(d(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case 2:a===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+a:n=3:u+=a;break;case 3:d(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--,u="";break;default:t("Unknown state");break}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),d(),i(),o}const la="[^/]+?",Im={sensitive:!1,strict:!1,start:!0,end:!0},qm=/[.+*?^${}()[\]/\\]/g;function Fm(e,t){const n=Te({},Im,t),r=[];let o=n.start?"^":"";const s=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let d=0;d<c.length;d++){const f=c[d];let p=40+(n.sensitive?.25:0);if(f.type===0)d||(o+="/"),o+=f.value.replace(qm,"\\$&"),p+=40;else if(f.type===1){const{value:m,repeatable:g,optional:y,regexp:w}=f;s.push({name:m,repeatable:g,optional:y});const x=w||la;if(x!==la){p+=10;try{new RegExp(`(${x})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${m}" (${x}): `+S.message)}}let k=g?`((?:${x})(?:/(?:${x}))*)`:`(${x})`;d||(k=y&&c.length<2?`(?:/${k})`:"/"+k),y&&(k+="?"),o+=k,p+=20,y&&(p+=-8),g&&(p+=-20),x===".*"&&(p+=-50)}u.push(p)}r.push(u)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const i=new RegExp(o,n.sensitive?"":"i");function l(c){const u=c.match(i),d={};if(!u)return null;for(let f=1;f<u.length;f++){const p=u[f]||"",m=s[f-1];d[m.name]=p&&m.repeatable?p.split("/"):p}return d}function a(c){let u="",d=!1;for(const f of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const p of f)if(p.type===0)u+=p.value;else if(p.type===1){const{value:m,repeatable:g,optional:y}=p,w=m in c?c[m]:"";if(Ct(w)&&!g)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const x=Ct(w)?w.join("/"):w;if(!x)if(y)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${m}"`);u+=x}}return u||"/"}return{re:i,score:r,keys:s,parse:l,stringify:a}}function Bm(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function qc(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const s=Bm(r[n],o[n]);if(s)return s;n++}if(Math.abs(o.length-r.length)===1){if(aa(r))return 1;if(aa(o))return-1}return o.length-r.length}function aa(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Nm={strict:!1,end:!0,sensitive:!1};function Lm(e,t,n){const r=Fm(Dm(e.path),n),o=Te(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function jm(e,t){const n=[],r=new Map;t=ea(Nm,t);function o(d){return r.get(d)}function s(d,f,p){const m=!p,g=ca(d);g.aliasOf=p&&p.record;const y=ea(t,d),w=[g];if("alias"in d){const S=typeof d.alias=="string"?[d.alias]:d.alias;for(const N of S)w.push(ca(Te({},g,{components:p?p.record.components:g.components,path:N,aliasOf:p?p.record:g})))}let x,k;for(const S of w){const{path:N}=S;if(f&&N[0]!=="/"){const X=f.record.path,q=X[X.length-1]==="/"?"":"/";S.path=f.record.path+(N&&q+N)}if(x=Lm(S,f,y),p?p.alias.push(x):(k=k||x,k!==x&&k.alias.push(x),m&&d.name&&!da(x)&&i(d.name)),Fc(x)&&a(x),g.children){const X=g.children;for(let q=0;q<X.length;q++)s(X[q],x,p&&p.children[q])}p=p||x}return k?()=>{i(k)}:Tr}function i(d){if(Mc(d)){const f=r.get(d);f&&(r.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function a(d){const f=Um(d,n);n.splice(f,0,d),d.record.name&&!da(d)&&r.set(d.record.name,d)}function c(d,f){let p,m={},g,y;if("name"in d&&d.name){if(p=r.get(d.name),!p)throw nr(1,{location:d});y=p.record.name,m=Te(ua(f.params,p.keys.filter(k=>!k.optional).concat(p.parent?p.parent.keys.filter(k=>k.optional):[]).map(k=>k.name)),d.params&&ua(d.params,p.keys.map(k=>k.name))),g=p.stringify(m)}else if(d.path!=null)g=d.path,p=n.find(k=>k.re.test(g)),p&&(m=p.parse(g),y=p.record.name,p.keys.forEach(k=>{k.optional&&!m[k.name]&&delete m[k.name]}));else{if(p=f.name?r.get(f.name):n.find(k=>k.re.test(f.path)),!p)throw nr(1,{location:d,currentLocation:f});y=p.record.name,m=Te({},f.params,d.params),g=p.stringify(m)}const w=[];let x=p;for(;x;)w.unshift(x.record),x=x.parent;return{name:y,path:g,params:m,matched:w,meta:zm(w)}}e.forEach(d=>s(d));function u(){n.length=0,r.clear()}return{addRoute:s,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:l,getRecordMatcher:o}}function ua(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ca(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Vm(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Vm(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function da(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function zm(e){return e.reduce((t,n)=>Te(t,n.meta),{})}function Um(e,t){let n=0,r=t.length;for(;n!==r;){const s=n+r>>1;qc(e,t[s])<0?r=s:n=s+1}const o=Hm(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function Hm(e){let t=e;for(;t=t.parent;)if(Fc(t)&&qc(e,t)===0)return t}function Fc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function fa(e){const t=nt(Qo),n=nt(Fi),r=E(()=>{const a=h(e.to);return t.resolve(a)}),o=E(()=>{const{matched:a}=r.value,{length:c}=a,u=a[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(rr.bind(null,u));if(f>-1)return f;const p=pa(a[c-2]);return c>1&&pa(u)===p&&d[d.length-1].path!==p?d.findIndex(rr.bind(null,a[c-2])):f}),s=E(()=>o.value>-1&&Gm(n.params,r.value.params)),i=E(()=>o.value>-1&&o.value===n.matched.length-1&&Rc(n.params,r.value.params));function l(a={}){if(Wm(a)){const c=t[h(e.replace)?"replace":"push"](h(e.to)).catch(Tr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:E(()=>r.value.href),isActive:s,isExactActive:i,navigate:l}}function Km(e){return e.length===1?e[0]:e}const rn=Q({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:fa,setup(e,{slots:t}){const n=Dn(fa(e)),{options:r}=nt(Qo),o=E(()=>({[ha(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ha(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&Km(t.default(n));return e.custom?s:_t("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}});function Wm(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Gm(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!Ct(o)||o.length!==r.length||r.some((s,i)=>s.valueOf()!==o[i].valueOf()))return!1}return!0}function pa(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ha=(e,t,n)=>e??t??n,Ym=Q({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=nt(si),o=E(()=>e.route||r.value),s=nt(ta,0),i=E(()=>{let c=h(s);const{matched:u}=o.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),l=E(()=>o.value.matched[i.value]);Xn(ta,E(()=>i.value+1)),Xn(qi,l),Xn(si,o);const a=D();return ze(()=>[a.value,l.value,e.name],([c,u,d],[f,p,m])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!rr(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,d=l.value,f=d&&d.components[u];if(!f)return ma(n.default,{Component:f,route:c});const p=d.props[u],m=p?p===!0?c.params:typeof p=="function"?p(c):p:null,y=_t(f,Te({},m,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(d.instances[u]=null)},ref:a}));return ma(n.default,{Component:y,route:c})||y}}});function ma(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ai=Ym;function Xm(e){const t=jm(e.routes,e),n=e.parseQuery||km,r=e.stringifyQuery||sa,o=e.history,s=vr(),i=vr(),l=vr(),a=Ho(dn);let c=dn;Un&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Os.bind(null,M=>""+M),d=Os.bind(null,am),f=Os.bind(null,Co);function p(M,ce){let ie,he;return Mc(M)?(ie=t.getRecordMatcher(M),he=ce):he=M,t.addRoute(he,ie)}function m(M){const ce=t.getRecordMatcher(M);ce&&t.removeRoute(ce)}function g(){return t.getRoutes().map(M=>M.record)}function y(M){return!!t.getRecordMatcher(M)}function w(M,ce){if(ce=Te({},ce||a.value),typeof M=="string"){const C=Ps(n,M,ce.path),V=t.resolve({path:C.path},ce),U=o.createHref(C.fullPath);return Te(C,V,{params:f(V.params),redirectedFrom:void 0,href:U})}let ie;if(M.path!=null)ie=Te({},M,{path:Ps(n,M.path,ce.path).path});else{const C=Te({},M.params);for(const V in C)C[V]==null&&delete C[V];ie=Te({},M,{params:d(C)}),ce.params=d(ce.params)}const he=t.resolve(ie,ce),Ae=M.hash||"";he.params=u(f(he.params));const v=dm(r,Te({},M,{hash:sm(Ae),path:he.path})),_=o.createHref(v);return Te({fullPath:v,hash:Ae,query:r===sa?Cm(M.query):M.query||{}},he,{redirectedFrom:void 0,href:_})}function x(M){return typeof M=="string"?Ps(n,M,a.value.path):Te({},M)}function k(M,ce){if(c!==M)return nr(8,{from:ce,to:M})}function S(M){return q(M)}function N(M){return S(Te(x(M),{replace:!0}))}function X(M,ce){const ie=M.matched[M.matched.length-1];if(ie&&ie.redirect){const{redirect:he}=ie;let Ae=typeof he=="function"?he(M,ce):he;return typeof Ae=="string"&&(Ae=Ae.includes("?")||Ae.includes("#")?Ae=x(Ae):{path:Ae},Ae.params={}),Te({query:M.query,hash:M.hash,params:Ae.path!=null?{}:M.params},Ae)}}function q(M,ce){const ie=c=w(M),he=a.value,Ae=M.state,v=M.force,_=M.replace===!0,C=X(ie,he);if(C)return q(Te(x(C),{state:typeof C=="object"?Te({},Ae,C.state):Ae,force:v,replace:_}),ce||ie);const V=ie;V.redirectedFrom=ce;let U;return!v&&fm(r,he,ie)&&(U=nr(16,{to:V,from:he}),W(he,he,!0,!1)),(U?Promise.resolve(U):T(V,he)).catch(L=>Kt(L)?Kt(L,2)?L:B(L):ae(L,V,he)).then(L=>{if(L){if(Kt(L,2))return q(Te({replace:_},x(L.to),{state:typeof L.to=="object"?Te({},Ae,L.to.state):Ae,force:v}),ce||V)}else L=I(V,he,!0,_,Ae);return oe(V,he,L),L})}function $(M,ce){const ie=k(M,ce);return ie?Promise.reject(ie):Promise.resolve()}function O(M){const ce=j.values().next().value;return ce&&typeof ce.runWithContext=="function"?ce.runWithContext(M):M()}function T(M,ce){let ie;const[he,Ae,v]=Am(M,ce);ie=Ts(he.reverse(),"beforeRouteLeave",M,ce);for(const C of he)C.leaveGuards.forEach(V=>{ie.push(gn(V,M,ce))});const _=$.bind(null,M,ce);return ie.push(_),de(ie).then(()=>{ie=[];for(const C of s.list())ie.push(gn(C,M,ce));return ie.push(_),de(ie)}).then(()=>{ie=Ts(Ae,"beforeRouteUpdate",M,ce);for(const C of Ae)C.updateGuards.forEach(V=>{ie.push(gn(V,M,ce))});return ie.push(_),de(ie)}).then(()=>{ie=[];for(const C of v)if(C.beforeEnter)if(Ct(C.beforeEnter))for(const V of C.beforeEnter)ie.push(gn(V,M,ce));else ie.push(gn(C.beforeEnter,M,ce));return ie.push(_),de(ie)}).then(()=>(M.matched.forEach(C=>C.enterCallbacks={}),ie=Ts(v,"beforeRouteEnter",M,ce,O),ie.push(_),de(ie))).then(()=>{ie=[];for(const C of i.list())ie.push(gn(C,M,ce));return ie.push(_),de(ie)}).catch(C=>Kt(C,8)?C:Promise.reject(C))}function oe(M,ce,ie){l.list().forEach(he=>O(()=>he(M,ce,ie)))}function I(M,ce,ie,he,Ae){const v=k(M,ce);if(v)return v;const _=ce===dn,C=Un?history.state:{};ie&&(he||_?o.replace(M.fullPath,Te({scroll:_&&C&&C.scroll},Ae)):o.push(M.fullPath,Ae)),a.value=M,W(M,ce,ie,_),B()}let le;function ye(){le||(le=o.listen((M,ce,ie)=>{if(!ne.listening)return;const he=w(M),Ae=X(he,ne.currentRoute.value);if(Ae){q(Te(Ae,{replace:!0,force:!0}),he).catch(Tr);return}c=he;const v=a.value;Un&&_m(oa(v.fullPath,ie.delta),Zo()),T(he,v).catch(_=>Kt(_,12)?_:Kt(_,2)?(q(Te(x(_.to),{force:!0}),he).then(C=>{Kt(C,20)&&!ie.delta&&ie.type==="pop"&&o.go(-1,!1)}).catch(Tr),Promise.reject()):(ie.delta&&o.go(-ie.delta,!1),ae(_,he,v))).then(_=>{_=_||I(he,v,!1),_&&(ie.delta&&!Kt(_,8)?o.go(-ie.delta,!1):ie.type==="pop"&&Kt(_,20)&&o.go(-1,!1)),oe(he,v,_)}).catch(Tr)}))}let z=vr(),ee=vr(),re;function ae(M,ce,ie){B(M);const he=ee.list();return he.length?he.forEach(Ae=>Ae(M,ce,ie)):console.error(M),Promise.reject(M)}function R(){return re&&a.value!==dn?Promise.resolve():new Promise((M,ce)=>{z.add([M,ce])})}function B(M){return re||(re=!M,ye(),z.list().forEach(([ce,ie])=>M?ie(M):ce()),z.reset()),M}function W(M,ce,ie,he){const{scrollBehavior:Ae}=e;if(!Un||!Ae)return Promise.resolve();const v=!ie&&xm(oa(M.fullPath,0))||(he||!ie)&&history.state&&history.state.scroll||null;return Ue().then(()=>Ae(M,ce,v)).then(_=>_&&bm(_)).catch(_=>ae(_,M,ce))}const pe=M=>o.go(M);let ke;const j=new Set,ne={currentRoute:a,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:g,resolve:w,options:e,push:S,replace:N,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:s.add,beforeResolve:i.add,afterEach:l.add,onError:ee.add,isReady:R,install(M){M.component("RouterLink",rn),M.component("RouterView",ai),M.config.globalProperties.$router=ne,Object.defineProperty(M.config.globalProperties,"$route",{enumerable:!0,get:()=>h(a)}),Un&&!ke&&a.value===dn&&(ke=!0,S(o.location).catch(he=>{}));const ce={};for(const he in dn)Object.defineProperty(ce,he,{get:()=>a.value[he],enumerable:!0});M.provide(Qo,ne),M.provide(Fi,Ou(ce)),M.provide(si,a);const ie=M.unmount;j.add(M),M.unmount=function(){j.delete(M),j.size<1&&(c=dn,le&&le(),le=null,a.value=dn,ke=!1,re=!1),ie()}}};function de(M){return M.reduce((ce,ie)=>ce.then(()=>O(ie)),Promise.resolve())}return ne}const ga=e=>e==="";const Jm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const va=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Qm=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const Zm=e=>{const t=Qm(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Bn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const eg=Symbol("lucide-icons");function tg(){return nt(eg,{})}const ng=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":r,strokeWidth:o,"stroke-width":s,size:i,color:l,...a},{slots:c})=>{const{size:u,color:d,strokeWidth:f=2,absoluteStrokeWidth:p=!1,class:m=""}=tg(),g=E(()=>{const y=ga(n)||ga(r)||n===!0||r===!0||p===!0,w=o||s||f||Bn["stroke-width"];return y?Number(w)*24/Number(i??u??Bn.width):w});return _t("svg",{...Bn,...a,width:i??u??Bn.width,height:i??u??Bn.height,stroke:l??d??Bn.stroke,"stroke-width":g.value,class:Jm("lucide",m,...e?[`lucide-${va(Zm(e))}-icon`,`lucide-${va(e)}`]:["lucide-icon"])},[...t.map(y=>_t(...y)),...c.default?[c.default()]:[]])};const Se=(e,t)=>(n,{slots:r,attrs:o})=>_t(ng,{...o,...n,iconNode:t,name:e},r.default?{default:r.default}:void 0);const rg=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],og=Se("archive",rg);const sg=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Bc=Se("arrow-down",sg);const ig=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ni=Se("arrow-left",ig);const lg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ag=Se("arrow-right",lg);const ug=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Nc=Se("arrow-up-right",ug);const cg=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Lc=Se("arrow-up",cg);const dg=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["circle",{cx:"8",cy:"10",r:"2",key:"1xl4ub"}],["path",{d:"M8 12h8",key:"1wcyev"}],["circle",{cx:"16",cy:"10",r:"2",key:"r14t7q"}],["path",{d:"m6 20 .7-2.9A1.4 1.4 0 0 1 8.1 16h7.8a1.4 1.4 0 0 1 1.4 1l.7 3",key:"l01ucn"}]],fg=Se("cassette-tape",dg);const pg=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],or=Se("check",pg);const hg=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],es=Se("chevron-down",hg);const mg=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Li=Se("chevron-left",mg);const gg=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ts=Se("chevron-right",gg);const vg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Gr=Se("circle-alert",vg);const yg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],bg=Se("circle",yg);const _g=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M6 12c0-1.7.7-3.2 1.8-4.2",key:"oqkarx"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M18 12c0 1.7-.7 3.2-1.8 4.2",key:"1eah9h"}]],xg=Se("disc-3",_g);const wg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],kg=Se("disc",wg);const Cg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Sg=Se("image",Cg);const Eg=[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]],Ag=Se("library",Eg);const $g=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],Og=Se("list",$g);const Pg=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],jc=Se("log-out",Pg);const Tg=[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]],Rg=Se("mic-vocal",Tg);const Mg=[["path",{d:"M5 12h14",key:"1ays0h"}]],Vc=Se("minus",Mg);const Dg=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],Ig=Se("palette",Dg);const qg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],zc=Se("panel-left-close",qg);const Fg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],Uc=Se("panel-left-open",Fg);const Bg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Hc=Se("plus",Bg);const Ng=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],Kc=Se("puzzle",Ng);const Lg=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Wc=Se("search-x",Lg);const jg=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ns=Se("search",jg);const Vg=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Gc=Se("settings",Vg);const zg=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ug=Se("shield-check",zg);const Hg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Kg=Se("square",Hg);const Wg=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],ji=Se("sun",Wg);const Gg=[["path",{d:"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",key:"16rjxf"}],["path",{d:"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",key:"178nd4"}],["circle",{cx:"10.5",cy:"6.5",r:".5",fill:"currentColor",key:"12ikhr"}]],Yg=Se("tags",Gg);const Xg=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Vi=Se("trash-2",Xg);const Jg=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],Yc=Se("user-minus",Jg);const Qg=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],Xc=Se("user-plus",Qg);const Zg=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ev=Se("user",Zg);const tv=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],nv=Se("users-round",tv);const rv=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],ov=Se("users",rv);const sv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],rs=Se("x",sv),iv=/\{[^{}]+\}/g,lv=()=>typeof process=="object"&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici;function av(){return Math.random().toString(36).slice(2,11)}function uv(e){let{baseUrl:t="",Request:n=globalThis.Request,fetch:r=globalThis.fetch,querySerializer:o,bodySerializer:s,pathSerializer:i,headers:l,requestInitExt:a=void 0,...c}={...e};a=lv()?a:void 0,t=_a(t);const u=[];async function d(f,p){const{baseUrl:m,fetch:g=r,Request:y=n,headers:w,params:x={},parseAs:k="json",querySerializer:S,bodySerializer:N=s??dv,pathSerializer:X,body:q,middleware:$=[],...O}=p||{};let T=t;m&&(T=_a(m)??t);let oe=typeof o=="function"?o:ya(o);S&&(oe=typeof S=="function"?S:ya({...typeof o=="object"?o:{},...S}));const I=X||i||cv,le=q===void 0?void 0:N(q,ba(l,w,x.header)),ye=ba(le===void 0||le instanceof FormData?{}:{"Content-Type":"application/json"},l,w,x.header),z=[...u,...$],ee={redirect:"follow",...c,...O,body:le,headers:ye};let re,ae,R=new y(fv(f,{baseUrl:T,params:x,querySerializer:oe,pathSerializer:I}),ee),B;for(const ke in O)ke in R||(R[ke]=O[ke]);if(z.length){re=av(),ae=Object.freeze({baseUrl:T,fetch:g,parseAs:k,querySerializer:oe,bodySerializer:N,pathSerializer:I});for(const ke of z)if(ke&&typeof ke=="object"&&typeof ke.onRequest=="function"){const j=await ke.onRequest({request:R,schemaPath:f,params:x,options:ae,id:re});if(j)if(j instanceof y)R=j;else if(j instanceof Response){B=j;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!B){try{B=await g(R,a)}catch(ke){let j=ke;if(z.length)for(let ne=z.length-1;ne>=0;ne--){const de=z[ne];if(de&&typeof de=="object"&&typeof de.onError=="function"){const M=await de.onError({request:R,error:j,schemaPath:f,params:x,options:ae,id:re});if(M){if(M instanceof Response){j=void 0,B=M;break}if(M instanceof Error){j=M;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(j)throw j}if(z.length)for(let ke=z.length-1;ke>=0;ke--){const j=z[ke];if(j&&typeof j=="object"&&typeof j.onResponse=="function"){const ne=await j.onResponse({request:R,response:B,schemaPath:f,params:x,options:ae,id:re});if(ne){if(!(ne instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");B=ne}}}}const W=B.headers.get("Content-Length");if(B.status===204||R.method==="HEAD"||W==="0"&&!B.headers.get("Transfer-Encoding")?.includes("chunked"))return B.ok?{data:void 0,response:B}:{error:void 0,response:B};if(B.ok)return{data:await(async()=>{if(k==="stream")return B.body;if(k==="json"&&!W){const j=await B.text();return j?JSON.parse(j):void 0}return await B[k]()})(),response:B};let pe=await B.text();try{pe=JSON.parse(pe)}catch{}return{error:pe,response:B}}return{request(f,p,m){return d(p,{...m,method:f.toUpperCase()})},GET(f,p){return d(f,{...p,method:"GET"})},PUT(f,p){return d(f,{...p,method:"PUT"})},POST(f,p){return d(f,{...p,method:"POST"})},DELETE(f,p){return d(f,{...p,method:"DELETE"})},OPTIONS(f,p){return d(f,{...p,method:"OPTIONS"})},HEAD(f,p){return d(f,{...p,method:"HEAD"})},PATCH(f,p){return d(f,{...p,method:"PATCH"})},TRACE(f,p){return d(f,{...p,method:"TRACE"})},use(...f){for(const p of f)if(p){if(typeof p!="object"||!("onRequest"in p||"onResponse"in p||"onError"in p))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");u.push(p)}},eject(...f){for(const p of f){const m=u.indexOf(p);m!==-1&&u.splice(m,1)}}}}function os(e,t,n){if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${n?.allowReserved===!0?t:encodeURIComponent(t)}`}function Jc(e,t,n){if(!t||typeof t!="object")return"";const r=[],o={simple:",",label:".",matrix:";"}[n.style]||"&";if(n.style!=="deepObject"&&n.explode===!1){for(const l in t)r.push(l,n.allowReserved===!0?t[l]:encodeURIComponent(t[l]));const i=r.join(",");switch(n.style){case"form":return`${e}=${i}`;case"label":return`.${i}`;case"matrix":return`;${e}=${i}`;default:return i}}for(const i in t){const l=n.style==="deepObject"?`${e}[${i}]`:i;r.push(os(l,t[i],n))}const s=r.join(o);return n.style==="label"||n.style==="matrix"?`${o}${s}`:s}function Qc(e,t,n){if(!Array.isArray(t))return"";if(n.explode===!1){const s={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[n.style]||",",i=(n.allowReserved===!0?t:t.map(l=>encodeURIComponent(l))).join(s);switch(n.style){case"simple":return i;case"label":return`.${i}`;case"matrix":return`;${e}=${i}`;default:return`${e}=${i}`}}const r={simple:",",label:".",matrix:";"}[n.style]||"&",o=[];for(const s of t)n.style==="simple"||n.style==="label"?o.push(n.allowReserved===!0?s:encodeURIComponent(s)):o.push(os(e,s,n));return n.style==="label"||n.style==="matrix"?`${r}${o.join(r)}`:o.join(r)}function ya(e){return function(n){const r=[];if(n&&typeof n=="object")for(const o in n){const s=n[o];if(s!=null){if(Array.isArray(s)){if(s.length===0)continue;r.push(Qc(o,s,{style:"form",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if(typeof s=="object"){r.push(Jc(o,s,{style:"deepObject",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}r.push(os(o,s,e))}}return r.join("&")}}function cv(e,t){let n=e;for(const r of e.match(iv)??[]){let o=r.substring(1,r.length-1),s=!1,i="simple";if(o.endsWith("*")&&(s=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(i="label",o=o.substring(1)):o.startsWith(";")&&(i="matrix",o=o.substring(1)),!t||t[o]===void 0||t[o]===null)continue;const l=t[o];if(Array.isArray(l)){n=n.replace(r,Qc(o,l,{style:i,explode:s}));continue}if(typeof l=="object"){n=n.replace(r,Jc(o,l,{style:i,explode:s}));continue}if(i==="matrix"){n=n.replace(r,`;${os(o,l)}`);continue}n=n.replace(r,i==="label"?`.${encodeURIComponent(l)}`:encodeURIComponent(l))}return n}function dv(e,t){return e instanceof FormData?e:t&&(t.get instanceof Function?t.get("Content-Type")??t.get("content-type"):t["Content-Type"]??t["content-type"])==="application/x-www-form-urlencoded"?new URLSearchParams(e).toString():JSON.stringify(e)}function fv(e,t){let n=`${t.baseUrl}${e}`;t.params?.path&&(n=t.pathSerializer(n,t.params.path));let r=t.querySerializer(t.params.query??{});return r.startsWith("?")&&(r=r.substring(1)),r&&(n+=`?${r}`),n}function ba(...e){const t=new Headers;for(const n of e){if(!n||typeof n!="object")continue;const r=n instanceof Headers?n.entries():Object.entries(n);for(const[o,s]of r)if(s===null)t.delete(o);else if(Array.isArray(s))for(const i of s)t.append(o,i);else s!==void 0&&t.set(o,s)}return t}function _a(e){return e.endsWith("/")?e.substring(0,e.length-1):e}const xa="/backend",pv="__SUMMER_ADMIN_BASE__";function hv(e=document){const t=e.querySelector('meta[name="summer-admin-base"]')?.content.trim()??"";if(t===""||t===pv||!t.startsWith("/"))return xa;const n=t.replace(/\/+$/,"");return n===""?xa:n}const wa=hv(),Zc={base:wa,api:`${wa}/api/v1`},mv="XMLHttpRequest";let ui=null,ed=null,yr=null;const Rs=new WeakMap;function gv(e){ui=e}function vv(e){ed=e}function yv(e){return new URL(e.url,"http://local").pathname}function ka(e){const t=yv(e);return t.endsWith("/auth/login")||t.endsWith("/auth/refresh")}function td(){return yr||(yr=(async()=>{try{const{data:e,response:t}=await Le.POST("/auth/refresh");if(!t.ok||!e)return!1;const n=e.data.expires_in;return ed?.(typeof n=="number"?n:null),!0}catch{return!1}finally{yr=null}})(),yr)}const bv={onRequest({request:e}){return e.headers.set("X-Requested-With",mv),ka(e)||Rs.set(e,e.clone()),e},async onResponse({request:e,response:t}){if(t.status!==401||ka(e))return t;const n=Rs.get(e);if(Rs.delete(e),!n||!await td())return ui?.(),t;const r=await globalThis.fetch(n);return r.status===401&&ui?.(),r}},Le=uv({baseUrl:Zc.api,credentials:"same-origin",fetch:e=>globalThis.fetch(e)});Le.use(bv);const zi=D({}),nd=D(typeof document>"u"?"pl":document.documentElement.lang||"pl");function _v(e,t){zi.value=e,t&&(nd.value=t,typeof document<"u"&&(document.documentElement.lang=t))}async function xv(){const{data:e,response:t}=await Le.GET("/lang");!t.ok||!e||_v(e.data,e.meta.locale)}function Ca(e){const t=e.codePointAt(0);if(t===void 0)return e;const n=String.fromCodePoint(t);return n.toUpperCase()+e.slice(n.length)}function ci(e,t={}){if(e==="")return e;const n=[];for(const[o,s]of Object.entries(t)){const i=o.replace(/^:/,"");if(i==="")continue;const l=String(s);n.push([`:${Ca(i)}`,Ca(l)]),n.push([`:${i.toUpperCase()}`,l.toUpperCase()]),n.push([`:${i}`,l])}n.sort((o,s)=>s[0].length-o[0].length);let r=e;for(const[o,s]of n)r=r.split(o).join(s);return r}const Sa=new Map;function wv(e,t=nd.value){let n=Sa.get(t);if(n===void 0){try{n=new Intl.PluralRules(t)}catch{n=null}Sa.set(t,n)}return n?n.select(e):"other"}function Fe(e,t,n={}){if(!e)return"";if(t===void 0)return ci(e.other??"",n);const r=e[wv(t)]??e.other??"";return ci(r,{count:t,...n})}function H(e,t={}){const n=zi.value[e]?.other;return n===void 0?e:ci(n,t)}function Ui(e,t,n={}){const r=zi.value[e];return r?Fe(r,t,n):e}const Ea={archive:og,"arrow-down":Bc,"arrow-left":Ni,"arrow-right":ag,"arrow-up":Lc,"arrow-up-right":Nc,"cassette-tape":fg,check:or,"chevron-down":es,"chevron-left":Li,"chevron-right":ts,circle:bg,"circle-alert":Gr,disc:kg,"disc-3":xg,image:Sg,library:Ag,list:Og,"log-out":jc,"mic-vocal":Rg,minus:Vc,palette:Ig,"panel-left-close":zc,"panel-left-open":Uc,plus:Hc,puzzle:Kc,search:ns,"search-x":Wc,settings:Gc,"shield-check":Ug,sun:ji,tags:Yg,"trash-2":Vi,user:ev,"user-minus":Yc,"user-plus":Xc,users:ov,"users-round":nv,x:rs},kv={"icon-archive":"archive","icon-circle":"circle","icon-list-ul":"list","icon-tags":"tags","icon-user":"user","icon-search":"search","icon-cog":"settings","icon-users":"users"},Aa=Kg;function Ms(e,t){return Object.hasOwn(e,t)?e[t]:void 0}function ss(e){if(!e)return Aa;const t=e.trim();return Ms(Ea,t)??Ms(Ea,Ms(kv,t)??"")??Aa}const Cv=/^[A-Za-z0-9_-]+$/;function is(e){const t=e.split(".");if(t.length!==3||!t.every(s=>Cv.test(s)))return null;const[n,r,o]=t;return{vendor:n,plugin:r,controller:o}}function bn(e){const t=is(e);return t?`/${t.vendor}/${t.plugin}/${t.controller}`:null}function rd(e){return`${e.vendor}.${e.plugin}.${e.controller}`}function Hi(e){const t=e.replace(/^\/+|\/+$/g,"").split("/");if(t.length<3)return null;const n=t.slice(0,3).join(".");return is(n)?n:null}function $a(e){const t=is(e);return t?`${t.vendor}.${t.plugin}`:null}const So=D([]);async function od(){const{data:e,response:t}=await Le.GET("/navigation");return So.value=t.ok&&e?e.data:[],So.value}function Sv(e){So.value=e}const Eo=E(()=>So.value.filter(e=>e.sideMenu.length>0).map((e,t)=>({entry:e,index:t})).sort((e,t)=>e.entry.order-t.entry.order||e.index-t.index).map(({entry:e})=>e));function Ki(e){for(const t of e.sideMenu){const n=bn(t.controller);if(n)return n}return bn(e.controller)}function ls(e,t){const n=`${e}.${t}`;return Eo.value.find(r=>$a(r.controller)===n||r.sideMenu.some(o=>$a(o.controller)===n))??null}function Ev(){for(const e of Eo.value){const t=Ki(e);if(t)return t}return null}const sr=D([]),Av=E(()=>sr.value.length>0);async function sd(){const{data:e,response:t}=await Le.GET("/settings");return sr.value=t.ok&&e?e.data:[],sr.value}function $v(e){sr.value=e}function di(e){return sr.value.find(t=>t.code===e)??null}const Oa=E(()=>{const e=sr.value.map((n,r)=>({entry:n,index:r})).sort((n,r)=>n.entry.order-r.entry.order||n.index-r.index).map(({entry:n})=>n),t=[];for(const n of e){let r=t.find(o=>o.category===n.category);r||(r={category:n.category,entries:[]},t.push(r)),r.entries.push(n)}return t}),id="summer-admin.sidebar",Ov="(max-width: 1099px)",as=D(!1),Rr=D(!1),Pv=E(()=>Rr.value||as.value);function ld(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function Tv(){try{return ld()?.getItem(id)==="true"}catch{return!1}}function ad(e){as.value=e;try{ld()?.setItem(id,e?"true":"false")}catch{}}function Rv(){if(as.value=Tv(),typeof window>"u"||typeof window.matchMedia!="function")return Rr.value=!1,()=>{};const e=window.matchMedia(Ov);Rr.value=e.matches;const t=n=>{Rr.value=n.matches};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}function ud(){return{collapsed:Pv,narrow:tn(Rr),manual:tn(as),setCollapsed:ad,watchViewport:Rv}}const Mv=["id","aria-label"],Dv={class:"px-2.5 pt-1 pb-2 text-[14px] font-bold","aria-hidden":"true"},Iv=Q({__name:"SectionFlyout",props:{entry:{},id:{}},emits:["escape","leave","navigate"],setup(e,{expose:t,emit:n}){const r=e,o=n,s=zt(),i=D(null),l=E(()=>Hi(s.path)),a=E(()=>r.entry.sideMenu.flatMap(p=>{const m=bn(p.controller);return m?[{item:p,to:m,icon:ss(p.icon),current:l.value===p.controller}]:[]}));function c(){return[...i.value?.querySelectorAll('[role="menuitem"]')??[]]}async function u(){await Ue(),c()[0]?.focus()}function d(p){return!!p&&!!i.value?.contains(p)}function f(p){const m=c(),g=m.indexOf(document.activeElement);switch(p.key){case"ArrowDown":p.preventDefault(),m[(g+1)%m.length]?.focus();break;case"ArrowUp":p.preventDefault(),m[(g-1+m.length)%m.length]?.focus();break;case"Home":p.preventDefault(),m[0]?.focus();break;case"End":p.preventDefault(),m[m.length-1]?.focus();break;case"Escape":p.preventDefault(),o("escape");break;case"Tab":o("leave");break}}return t({focusFirst:u,contains:d}),(p,m)=>(b(),A("div",{id:e.id,ref_key:"root",ref:i,role:"menu","data-section-flyout":"","aria-label":e.entry.label,class:"fixed top-3 left-[calc(var(--spacing-rail)+8px)] z-40 flex w-[230px] flex-col gap-0.5 rounded-[14px] border border-border bg-surface p-2 text-text shadow-pop",onKeydown:f},[P("span",Dv,F(e.entry.label),1),(b(!0),A(ge,null,De(a.value,g=>(b(),J(h(rn),{key:g.item.code,to:g.to,role:"menuitem",tabindex:"-1","aria-current":g.current?"page":void 0,class:Ce([g.current?"bg-sel font-semibold text-text":"font-medium text-muted hover:bg-hover hover:text-text","flex h-[38px] items-center gap-3 rounded-tab px-2.5 no-underline transition-colors duration-150 ease-out"]),onClick:m[0]||(m[0]=y=>o("navigate"))},{default:Y(()=>[(b(),J(vn(g.icon),{size:18,"aria-hidden":"true"})),P("span",null,F(g.item.label),1)]),_:2},1032,["to","aria-current","class"]))),128))],40,Mv))}}),qv=["aria-label"],Fv={class:"mb-3.5 flex size-10 items-center justify-center rounded-inner bg-accent-soft",title:"SummerCMS"},Bv=["aria-label","title"],Nv=200,Lv=Q({__name:"PluginRail",setup(e){const t=zt(),{collapsed:n,narrow:r,setCollapsed:o}=ud(),s=E(()=>ls(String(t.params.vendor??""),String(t.params.plugin??""))),i=E(()=>t.path==="/settings"||t.path.startsWith("/settings/")),l=E(()=>Eo.value.map($=>({entry:$,to:Ki($)??"/",icon:ss($.icon),current:s.value?.code===$.code}))),a=D(null),c=D(null),u=E(()=>Eo.value.find($=>$.code===a.value)??null),d=new Map;let f=null,p=!1;function m($){return`section-flyout-${$}`}function g($,O){const T=O?.$el;T instanceof HTMLElement?d.set($,T):d.delete($)}function y(){f!==null&&(clearTimeout(f),f=null)}function w(){y(),a.value=null}function x(){y(),f=setTimeout(()=>{f=null;const $=document.activeElement,O=a.value;O!==null&&(d.get(O)===$||c.value?.contains($))||(a.value=null)},Nv)}function k($){n.value&&(y(),a.value=$)}function S($){p||k($)}async function N($,O){n.value&&($.key==="Enter"||$.key==="ArrowDown"?($.preventDefault(),k(O),await Ue(),await c.value?.focusFirst()):$.key==="Escape"&&a.value!==null&&($.preventDefault(),w()))}function X(){const $=a.value;w(),$!==null&&(p=!0,d.get($)?.focus(),p=!1)}function q(){o(!1),Ue(()=>document.querySelector("[data-sidebar-collapse]")?.focus())}return ze(n,$=>{$||w()}),wt(y),($,O)=>(b(),A("nav",{"aria-label":h(H)("backend::lang.nav.plugins"),class:"flex w-rail shrink-0 flex-col items-center gap-1.5 border-r border-side-border bg-side pt-3.5 pb-3"},[P("span",Fv,[G(h(ji),{size:22,class:"text-accent","aria-hidden":"true"})]),(b(!0),A(ge,null,De(l.value,T=>(b(),J(h(rn),{key:T.entry.code,ref_for:!0,ref:oe=>g(T.entry.code,oe),to:T.to,"data-rail-item":T.entry.code,"aria-current":T.current?"page":void 0,"aria-haspopup":h(n)?"menu":void 0,"aria-expanded":h(n)?a.value===T.entry.code?"true":"false":void 0,"aria-controls":h(n)&&a.value===T.entry.code?m(T.entry.code):void 0,class:Ce([T.current?"bg-accent-soft font-bold text-accent":"text-side-text hover:bg-side-hover hover:text-white","flex w-[68px] flex-col items-center gap-1 rounded-inner px-1.5 py-2 text-center text-[11px] leading-[1.2] tracking-[-0.01em] no-underline transition-colors duration-150 ease-out"]),onMouseenter:oe=>k(T.entry.code),onMouseleave:x,onFocus:oe=>S(T.entry.code),onBlur:x,onKeydown:oe=>N(oe,T.entry.code)},{default:Y(()=>[(b(),J(vn(T.icon),{size:20,"aria-hidden":"true"})),P("span",null,F(T.entry.label),1)]),_:2},1032,["to","data-rail-item","aria-current","aria-haspopup","aria-expanded","aria-controls","class","onMouseenter","onFocus","onKeydown"]))),128)),h(n)&&u.value?(b(),J(Iv,{key:0,id:m(u.value.code),ref_key:"flyout",ref:c,entry:u.value,onMouseenter:y,onMouseleave:x,onFocusin:y,onFocusout:x,onEscape:X,onLeave:x,onNavigate:w},null,8,["id","entry"])):fe("",!0),O[0]||(O[0]=P("span",{class:"flex-1","aria-hidden":"true"},null,-1)),h(n)&&!h(r)?(b(),A("button",{key:1,type:"button","data-sidebar-expand":"","aria-label":h(H)("backend::lang.nav.expand"),title:h(H)("backend::lang.nav.expand"),class:"mb-1 flex size-10 items-center justify-center rounded-inner text-side-text transition-colors duration-150 ease-out hover:bg-side-hover hover:text-white",onClick:q},[G(h(Uc),{size:20,"aria-hidden":"true"})],8,Bv)):fe("",!0),h(Av)?(b(),J(h(rn),{key:2,to:"/settings","data-rail-settings":"","aria-current":i.value?"page":void 0,class:Ce([i.value?"bg-accent-soft font-bold text-accent":"text-side-text hover:bg-side-hover hover:text-white","flex w-[68px] flex-col items-center gap-1 rounded-inner px-1.5 py-2 text-center text-[11px] leading-[1.2] tracking-[-0.01em] no-underline transition-colors duration-150 ease-out"])},{default:Y(()=>[G(h(Gc),{size:20,"aria-hidden":"true"}),P("span",null,F(h(H)("backend::lang.nav.settings")),1)]),_:1},8,["aria-current","class"])):fe("",!0)],8,qv))}}),jv=["aria-label"],Vv={class:"mb-3.5 flex h-10 items-center justify-between gap-2 pl-2"},zv={class:"truncate text-[16px] font-bold"},Uv=["aria-label","title"],Hv=Q({__name:"SectionPanel",props:{entry:{}},setup(e){const t=e,n=zt(),r=E(()=>Hi(n.path)),o=E(()=>t.entry.sideMenu.flatMap(i=>{const l=bn(i.controller);return l?[{item:i,to:l,icon:ss(i.icon),current:r.value===i.controller}]:[]}));function s(){ad(!0),Ue(()=>document.querySelector("[data-sidebar-expand]")?.focus())}return(i,l)=>(b(),A("aside",{"aria-label":h(H)("backend::lang.nav.sections"),class:"flex w-panel shrink-0 flex-col gap-0.5 border-r border-border bg-surface px-3 py-3.5"},[P("div",Vv,[P("span",zv,F(e.entry.label),1),P("button",{type:"button","data-sidebar-collapse":"","aria-label":h(H)("backend::lang.nav.collapse"),title:h(H)("backend::lang.nav.collapse"),class:"flex size-[30px] shrink-0 items-center justify-center rounded-tab text-muted transition-colors duration-150 ease-out hover:bg-hover hover:text-text",onClick:s},[G(h(zc),{size:18,"aria-hidden":"true"})],8,Uv)]),(b(!0),A(ge,null,De(o.value,a=>(b(),J(h(rn),{key:a.item.code,to:a.to,"aria-current":a.current?"page":void 0,class:Ce([a.current?"bg-sel font-semibold text-text":"font-medium text-muted hover:bg-hover hover:text-text","flex h-nav items-center gap-3 rounded-control px-3 no-underline transition-colors duration-150 ease-out"])},{default:Y(()=>[(b(),J(vn(a.icon),{size:18,"aria-hidden":"true"})),P("span",null,F(a.item.label),1)]),_:2},1032,["to","aria-current","class"]))),128))],8,jv))}}),Wi=D(""),Pa=tn(Wi);function Kv(e){Wi.value=e}function Wv(){Wi.value=""}const Gv=["aria-label"],Yv={class:"flex min-w-0 items-center gap-2"},Xv=["aria-current"],Jv=Q({__name:"Breadcrumbs",setup(e){const t=zt(),n=E(()=>{if(t.name==="settings"||t.name==="settings-form"){const l=[{label:H("backend::lang.nav.settings"),to:"/settings"}],a=t.name==="settings-form"?di(String(t.params.code??"")):null;return a&&l.push({label:a.label}),l}const r=ls(String(t.params.vendor??""),String(t.params.plugin??""));if(!r)return[];const o=[{label:r.label,to:Ki(r)??void 0}],s=Hi(t.path),i=r.sideMenu.find(l=>l.controller===s)??null;return i&&o.push({label:i.label,to:bn(i.controller)??void 0}),(t.name==="record"||t.name==="create")&&Pa.value!==""&&o.push({label:Pa.value}),o});return(r,o)=>(b(),A("nav",{"aria-label":h(H)("backend::lang.nav.breadcrumbs"),class:"min-w-0"},[P("ol",Yv,[(b(!0),A(ge,null,De(n.value,(s,i)=>(b(),A("li",{key:i,"data-crumb":"",class:"flex min-w-0 items-center gap-2"},[i>0?(b(),J(h(ts),{key:0,size:14,class:"shrink-0 text-muted","aria-hidden":"true"})):fe("",!0),i===n.value.length-1||!s.to?(b(),A("span",{key:1,"aria-current":i===n.value.length-1?"page":void 0,class:Ce([i===n.value.length-1?"font-semibold text-text":"text-muted","truncate"])},F(s.label),11,Xv)):(b(),J(h(rn),{key:2,to:s.to,class:"truncate text-muted no-underline transition-colors duration-150 ease-out hover:text-text"},{default:Y(()=>[Ee(F(s.label),1)]),_:2},1032,["to"]))]))),128))])],8,Gv))}});function Ut(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,r=Symbol(n);return[i=>{const l=nt(r,i);if(l||l===null)return l;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},i=>(Xn(r,i),i)]}function Ze(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function cd(e,t,n){const r=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(o)}function Qv(e){return e==null}function Zv(e,t){var n;const r=Ho();return Ft(()=>{r.value=e()},{...t,flush:(n=t?.flush)!==null&&n!==void 0?n:"sync"}),tn(r)}function dd(e,t){return Ei()?(fu(e,t),!0):!1}function ey(e){let t=!1,n;const r=du(!0);return((...o)=>(t||(n=r.run(()=>e(...o)),t=!0),n))}const ln=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ty=e=>typeof e<"u",ny=Object.prototype.toString,ry=e=>ny.call(e)==="[object Object]",Ta=oy();function oy(){var e,t,n;return ln&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function Ds(e){return Array.isArray(e)?e:[e]}function sy(e){return Vt()}function fd(e){if(!ln)return e;let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...s)=>(t+=1,r||(r=du(!0),n=r.run(()=>e(...s))),dd(o),n))}function iy(e,t=1e4){return Gf((n,r)=>{let o=ft(e),s;const i=()=>setTimeout(()=>{o=ft(e),r()},ft(t));return dd(()=>{clearTimeout(s)}),{get(){return n(),o},set(l){o=l,r(),clearTimeout(s),s=i()}}})}function ly(e,t){sy()&&wt(e,t)}function ay(e,t,n){return ze(e,t,{...n,immediate:!0})}const Gi=ln?window:void 0;function ur(e){var t;const n=ft(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Ao(...e){const t=(r,o,s,i)=>(r.addEventListener(o,s,i),()=>r.removeEventListener(o,s,i)),n=E(()=>{const r=Ds(ft(e[0])).filter(o=>o!=null);return r.every(o=>typeof o!="string")?r:void 0});return ay(()=>{var r,o;return[(r=(o=n.value)===null||o===void 0?void 0:o.map(s=>ur(s)))!==null&&r!==void 0?r:[Gi].filter(s=>s!=null),Ds(ft(n.value?e[1]:e[0])),Ds(h(n.value?e[2]:e[1])),ft(n.value?e[3]:e[2])]},([r,o,s,i],l,a)=>{if(!r?.length||!o?.length||!s?.length)return;const c=ry(i)?{...i}:i,u=r.flatMap(d=>o.flatMap(f=>s.map(p=>t(d,f,p,c))));a(()=>{u.forEach(d=>d())})},{flush:"post"})}function uy(){const e=Ho(!1),t=Vt();return t&&jt(()=>{e.value=!0},t),e}function cy(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function dy(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=Gi,eventName:s="keydown",passive:i=!1,dedupe:l=!1}=r,a=cy(t);return Ao(o,s,u=>{u.repeat&&ft(l)||a(u)&&n(u)},i)}function fy(e){return JSON.parse(JSON.stringify(e))}function us(e,t,n,r={}){var o,s;const{clone:i=!1,passive:l=!1,eventName:a,deep:c=!1,defaultValue:u,shouldEmit:d}=r,f=Vt(),p=n||f?.emit||(f==null||(o=f.$emit)===null||o===void 0?void 0:o.bind(f))||(f==null||(s=f.proxy)===null||s===void 0||(s=s.$emit)===null||s===void 0?void 0:s.bind(f?.proxy));let m=a;t||(t="modelValue"),m=m||`update:${t.toString()}`;const g=x=>i?typeof i=="function"?i(x):fy(x):x,y=()=>ty(e[t])?g(e[t]):u,w=x=>{d?d(x)&&p(m,x):p(m,x)};if(l){const x=D(y());let k=!1;return ze(()=>e[t],S=>{k||(k=!0,x.value=g(S),Ue(()=>k=!1))}),ze(x,S=>{!k&&(S!==e[t]||c)&&w(S)},{deep:c}),x}else return E({get(){return y()},set(x){w(x)}})}function Yi(e){return e?e.flatMap(t=>t.type===ge?Yi(t.children):[t]):[]}const py=["INPUT","TEXTAREA"];function Ra(e,t,n,r={}){if(!t||r.enableIgnoredElement&&py.includes(t.nodeName))return null;const{arrowKeyOptions:o="both",attributeName:s="[data-reka-collection-item]",itemsArray:i=[],loop:l=!0,dir:a="ltr",preventScroll:c=!0,focus:u=!1}=r,[d,f,p,m,g,y]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],w=p||m,x=d||f;if(!g&&!y&&(!w&&!x||o==="vertical"&&x||o==="horizontal"&&w))return null;const k=n?Array.from(n.querySelectorAll(s)):i;if(!k.length)return null;c&&e.preventDefault();let S=null;return x||w?S=pd(k,t,{goForward:w?m:a==="ltr"?d:f,loop:l}):g?S=k.at(0)||null:y&&(S=k.at(-1)||null),u&&S?.focus(),S}function pd(e,t,n,r=e.includes(t)?e.length:e.length+1){if(--r===0)return null;const o=e.indexOf(t);let s;if(o===-1?s=n.goForward?0:e.length-1:s=n.goForward?o+1:o-1,!n.loop&&(s<0||s>=e.length))return null;const i=(s+e.length)%e.length,l=e[i];return l?l.hasAttribute("disabled")&&l.getAttribute("disabled")!=="false"?pd(e,l,n,r):l:null}const[Xi]=Ut("ConfigProvider");function Is(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function fi(e,t,n=".",r){if(!Is(t))return fi(e,{},n,r);const o={...t};for(const s of Object.keys(e)){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(o,s,i,n)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:Is(i)&&Is(o[s])?o[s]=fi(i,o[s],(n?`${n}.`:"")+s.toString(),r):o[s]=i))}return o}function hy(e){return(...t)=>t.reduce((n,r)=>fi(n,r,"",e),{})}const my=hy(),gy=fd(()=>{const e=D(new Map),t=D(),n=E(()=>{for(const i of e.value.values())if(i)return!0;return!1}),r=Xi({scrollBody:D(!0)});let o=null;const s=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",Ta&&o?.(),t.value=void 0};return ze(n,(i,l)=>{if(!ln)return;if(!i){l&&s();return}t.value===void 0&&(t.value=document.body.style.overflow);const a=window.innerWidth-document.documentElement.clientWidth,c={padding:a,margin:0},u=r.scrollBody?.value?typeof r.scrollBody.value=="object"?my({padding:r.scrollBody.value.padding===!0?a:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?a:r.scrollBody.value.margin},c):c:{padding:0,margin:0};a>0&&(document.body.style.paddingRight=typeof u.padding=="number"?`${u.padding}px`:String(u.padding),document.body.style.marginRight=typeof u.margin=="number"?`${u.margin}px`:String(u.margin),document.documentElement.style.setProperty("--scrollbar-width",`${a}px`),document.body.style.overflow="hidden"),Ta&&(o=Ao(document,"touchmove",d=>vy(d),{passive:!1})),Ue(()=>{n.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function hd(e){const t=Math.random().toString(36).substring(2,7),n=gy();n.value.set(t,e??!1);const r=E({get:()=>n.value.get(t)??!1,set:o=>n.value.set(t,o)});return ly(()=>{n.value.delete(t)}),r}function md(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:md(n)}}function vy(e){const t=e||window.event,n=t.target;return n instanceof Element&&md(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function Ji(e){const t=Xi({dir:D("ltr")});return E(()=>e?.value||t.dir?.value||"ltr")}function cr(e){const t=Vt(),n=t?.type.emits,r={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(o=>{r[uo(Qe(o))]=(...s)=>e(o,...s)}),r}let qs=0;function yy(){Ft(e=>{if(!ln)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??Ma()),document.body.insertAdjacentElement("beforeend",t[1]??Ma()),qs++,e(()=>{qs===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),qs--})})}function Ma(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function Ie(){const e=Vt(),t=D(),n=E(()=>r());Ti(()=>{n.value!==r()&&Hf(t)});function r(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:ur(t)}const o=Object.assign({},e.exposed),s={};for(const l in e.props)Object.defineProperty(s,l,{enumerable:!0,configurable:!0,get:()=>e.props[l]});if(Object.keys(o).length>0)for(const l in o)Object.defineProperty(s,l,{enumerable:!0,configurable:!0,get:()=>o[l]});Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=s;function i(l){if(t.value=l,!!l&&(Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>l instanceof Element?l:l.$el}),!(l instanceof Element)&&!Object.hasOwn(l,"$el"))){const a=l.$.exposed,c=Object.assign({},s);for(const u in a)Object.defineProperty(c,u,{enumerable:!0,configurable:!0,get:()=>a[u]});e.exposed=c}}return{forwardRef:i,currentRef:t,currentElement:n}}function by(e){const t=Vt(),n=Object.keys(t?.type.props??{}).reduce((o,s)=>{const i=(t?.type.props[s]).default;return i!==void 0&&(o[s]=i),o},{}),r=Jf(e);return E(()=>{const o={},s=t?.vnode.props??{};return Object.keys(s).forEach(i=>{o[Qe(i)]=s[i]}),Object.keys({...n,...o}).reduce((i,l)=>(r.value[l]!==void 0&&(i[l]=r.value[l]),i),{})})}function Yr(e,t){const n=by(e),r=t?cr(t):{};return E(()=>({...n.value,...r}))}var _y=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Nn=new WeakMap,eo=new WeakMap,to={},Fs=0,gd=function(e){return e&&(e.host||gd(e.parentNode))},xy=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=gd(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},wy=function(e,t,n,r){var o=xy(t,Array.isArray(e)?e:[e]);to[n]||(to[n]=new WeakMap);var s=to[n],i=[],l=new Set,a=new Set(o),c=function(d){!d||l.has(d)||(l.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||a.has(d)||Array.prototype.forEach.call(d.children,function(f){if(l.has(f))u(f);else try{var p=f.getAttribute(r),m=p!==null&&p!=="false",g=(Nn.get(f)||0)+1,y=(s.get(f)||0)+1;Nn.set(f,g),s.set(f,y),i.push(f),g===1&&m&&eo.set(f,!0),y===1&&f.setAttribute(n,"true"),m||f.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",f,w)}})};return u(t),l.clear(),Fs++,function(){i.forEach(function(d){var f=Nn.get(d)-1,p=s.get(d)-1;Nn.set(d,f),s.set(d,p),f||(eo.has(d)||d.removeAttribute(r),eo.delete(d)),p||d.removeAttribute(n)}),Fs--,Fs||(Nn=new WeakMap,Nn=new WeakMap,eo=new WeakMap,to={})}},ky=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=_y(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),wy(r,o,n,"aria-hidden")):function(){return null}};function vd(e){let t;ze(()=>ur(e),n=>{let r=!1;try{r=!!n?.closest("[popover]:not(:popover-open)")}catch{}n&&!r?t=ky(n):t&&t()}),ar(()=>{t&&t()})}function $o(e,t="reka"){let n;const r=Xi({useId:void 0});return r.useId?n=r.useId():n=gp?.(),t?`${t}-${n}`:n}function Cy(e){const t=D(),n=E(()=>t.value?.width??0),r=E(()=>t.value?.height??0);return jt(()=>{const o=ur(e);if(o){t.value={width:o.offsetWidth,height:o.offsetHeight};const s=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let a,c;if("borderBoxSize"in l){const u=l.borderBoxSize,d=Array.isArray(u)?u[0]:u;a=d.inlineSize,c=d.blockSize}else a=o.offsetWidth,c=o.offsetHeight;t.value={width:a,height:c}});return s.observe(o,{box:"border-box"}),()=>s.unobserve(o)}else t.value=void 0}),{width:n,height:r}}function Sy(e,t){const n=D(e);function r(s){return t[n.value][s]??n.value}return{state:n,dispatch:s=>{n.value=r(s)}}}function Ey(e){const t=iy("",1e3);return{search:t,handleTypeaheadSearch:(o,s)=>{t.value=t.value+o;{const i=Ze(),l=s.map(f=>({...f,textValue:f.value?.textValue??f.ref.textContent?.trim()??""})),a=l.find(f=>f.ref===i),c=l.map(f=>f.textValue),u=$y(c,t.value,a?.textValue),d=l.find(f=>f.textValue===u);return d&&d.ref.focus(),d?.ref}},resetTypeahead:()=>{t.value=""}}}function Ay(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function $y(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Ay(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==n));const a=i.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}function Oy(e,t){const n=D({}),r=D("none"),o=D(e),s=e.value?"mounted":"unmounted";let i;const l=t.value?.ownerDocument.defaultView??Gi,{state:a,dispatch:c}=Sy(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=y=>{if(ln){const w=new CustomEvent(y,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(w)}};ze(e,async(y,w)=>{const x=w!==y;if(await Ue(),x){const k=r.value,S=no(t.value);y?(c("MOUNT"),u("enter"),S==="none"&&u("after-enter")):S==="none"||S==="undefined"||n.value?.display==="none"?(c("UNMOUNT"),u("leave"),u("after-leave")):w&&k!==S?(c("ANIMATION_OUT"),u("leave")):(c("UNMOUNT"),u("after-leave"))}},{immediate:!0});const d=y=>{const w=no(t.value),x=w.includes(CSS.escape(y.animationName)),k=a.value==="mounted"?"enter":"leave";if(y.target===t.value&&x&&(u(`after-${k}`),c("ANIMATION_END"),!o.value)){const S=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",i=l?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=S)})}y.target===t.value&&w==="none"&&c("ANIMATION_END")},f=y=>{y.target===t.value&&(r.value=no(t.value))},p=ze(t,(y,w)=>{y?(n.value=getComputedStyle(y),y.addEventListener("animationstart",f),y.addEventListener("animationcancel",d),y.addEventListener("animationend",d)):(c("ANIMATION_END"),i!==void 0&&l?.clearTimeout(i),w?.removeEventListener("animationstart",f),w?.removeEventListener("animationcancel",d),w?.removeEventListener("animationend",d))},{immediate:!0}),m=ze(a,()=>{const y=no(t.value);r.value=a.value==="mounted"?y:"none"});return ar(()=>{p(),m()}),{isPresent:E(()=>["mounted","unmountSuspended"].includes(a.value))}}function no(e){return e&&getComputedStyle(e).animationName||"none"}var Qi=Q({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){const{present:r,forceMount:o}=lr(e),s=D(),{isPresent:i}=Oy(r,s);n({present:i});let l=t.default({present:i.value});l=Yi(l||[]);const a=Vt();if(l&&l?.length>1){const c=a?.parent?.type.name?`<${a.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${c}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(u=>` - ${u}`).join(`
`)].join(`
`))}return()=>o.value||r.value||i.value?_t(t.default({present:i.value})[0],{ref:c=>{const u=ur(c);return typeof u?.hasAttribute>"u"||(u?.hasAttribute("data-reka-popper-content-wrapper")?s.value=u.firstElementChild:s.value=u),u}}):null}});const pi=Q({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;const r=Yi(n.default()),o=r.findIndex(a=>a.type!==kt);if(o===-1)return r;const s=r[o];delete s.props?.ref;const i=s.props?Ve(t,s.props):t,l=yn({...s,props:{}},i);return r.length===1?l:(r[o]=l,r)}}}),Py=["area","img","input"],yt=Q({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const r=e.asChild?"template":e.as;return typeof r=="string"&&Py.includes(r)?()=>_t(r,t):r!=="template"?()=>_t(e.as,t,{default:n.default}):()=>_t(pi,t,{default:n.default})}});function Da(){const e=D(),t=E(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:ur(e));return{primitiveElement:e,currentElement:t}}const[an,Ty]=Ut("DialogRoot");var Ry=Q({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=us(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),s=D(),i=D(),{modal:l}=lr(n);return Ty({open:o,modal:l,openModal:()=>{o.value=!0},onOpenChange:a=>{o.value=a},onOpenToggle:()=>{o.value=!o.value},contentId:"",titleId:"",descriptionId:"",triggerElement:s,contentElement:i}),(a,c)=>_e(a.$slots,"default",{open:h(o),close:()=>o.value=!1})}}),yd=Ry,My=Q({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;Ie();const n=an();return(r,o)=>(b(),J(h(yt),Ve(t,{type:r.as==="button"?"button":void 0,onClick:o[0]||(o[0]=s=>h(n).onOpenChange(!1))}),{default:Y(()=>[_e(r.$slots,"default")]),_:3},16,["type"]))}}),hi=My;const Dy="dismissableLayer.pointerDownOutside",Iy="dismissableLayer.focusOutside";function bd(e,t){if(!(t instanceof Element))return!1;const n=t.closest("[data-dismissable-layer]"),r=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),o=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(r===n||o.indexOf(r)<o.indexOf(n)))}function qy(e,t,n=!0){const r=t?.value?.ownerDocument??globalThis?.document,o=D(!1),s=D(()=>{});return Ft(i=>{if(!ln||!ft(n))return;const l=async c=>{const u=c.target;if(!(!t?.value||!u)){if(bd(t.value,u)){o.value=!1;return}if(c.target&&!o.value){let p=function(){cd(Dy,e,f)};var d=p;const f={originalEvent:c};c.pointerType==="touch"?(r.removeEventListener("click",s.value),s.value=p,r.addEventListener("click",s.value,{once:!0})):p()}else r.removeEventListener("click",s.value);o.value=!1}},a=window.setTimeout(()=>{r.addEventListener("pointerdown",l)},0);i(()=>{window.clearTimeout(a),r.removeEventListener("pointerdown",l),r.removeEventListener("click",s.value)})}),{onPointerDownCapture:()=>{ft(n)&&(o.value=!0)}}}function Fy(e,t,n=!0){const r=t?.value?.ownerDocument??globalThis?.document,o=D(!1);return Ft(s=>{if(!ln||!ft(n))return;const i=async l=>{if(!t?.value)return;await Ue(),await Ue();const a=l.target;!t.value||!a||bd(t.value,a)||l.target&&!o.value&&cd(Iy,e,{originalEvent:l})};r.addEventListener("focusin",i),s(()=>r.removeEventListener("focusin",i))}),{onFocusCapture:()=>{ft(n)&&(o.value=!0)},onBlurCapture:()=>{ft(n)&&(o.value=!1)}}}const at=Dn({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var By=Q({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:o,currentElement:s}=Ie(),i=E(()=>s.value?.ownerDocument??globalThis.document),l=E(()=>at.layersRoot),a=E(()=>s.value?Array.from(l.value).indexOf(s.value):-1),c=E(()=>at.layersWithOutsidePointerEventsDisabled.size>0),u=E(()=>{const p=Array.from(l.value),[m]=[...at.layersWithOutsidePointerEventsDisabled].slice(-1),g=p.indexOf(m);return a.value>=g}),d=qy(async p=>{const m=[...at.branches].some(g=>g?.contains(p.target));!u.value||m||(r("pointerDownOutside",p),r("interactOutside",p),await Ue(),p.defaultPrevented||r("dismiss"))},s),f=Fy(p=>{[...at.branches].some(g=>g?.contains(p.target))||(r("focusOutside",p),r("interactOutside",p),p.defaultPrevented||r("dismiss"))},s);return dy("Escape",p=>{a.value===l.value.size-1&&(r("escapeKeyDown",p),p.defaultPrevented||r("dismiss"))}),ze([s,()=>n.disableOutsidePointerEvents],([p,m],g,y)=>{p&&(m&&(at.layersWithOutsidePointerEventsDisabled.size===0&&(at.originalBodyPointerEvents=i.value.body.style.pointerEvents,i.value.body.style.pointerEvents="none"),at.layersWithOutsidePointerEventsDisabled.add(p),y(()=>{at.layersWithOutsidePointerEventsDisabled.delete(p),at.layersWithOutsidePointerEventsDisabled.size===0&&!Qv(at.originalBodyPointerEvents)&&(i.value.body.style.pointerEvents=at.originalBodyPointerEvents)})),l.value.add(p))},{immediate:!0}),Ft(p=>{p(()=>{s.value&&(l.value.delete(s.value),at.layersWithOutsidePointerEventsDisabled.delete(s.value))})}),(p,m)=>(b(),J(h(yt),{ref:h(o),"as-child":p.asChild,as:p.as,"data-dismissable-layer":"",style:ir({pointerEvents:c.value?u.value?"auto":"none":void 0}),onFocusCapture:h(f).onFocusCapture,onBlurCapture:h(f).onBlurCapture,onPointerdownCapture:h(d).onPointerDownCapture},{default:Y(()=>[_e(p.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),_d=By;const Ny=ey(()=>D([]));function Ly(){const e=Ny();return{add(t){const n=e.value[0];t!==n&&n?.pause(),e.value=Ia(e.value,t),e.value.unshift(t)},remove(t){e.value=Ia(e.value,t),e.value[0]?.resume()}}}function Ia(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}const Bs="focusScope.autoFocusOnMount",Ns="focusScope.autoFocusOnUnmount",qa={bubbles:!1,cancelable:!0};function jy(e,{select:t=!1}={}){const n=Ze();for(const r of e)if(hn(r,{select:t}),Ze()!==n)return!0}function Vy(e){const t=xd(e),n=Fa(t,e),r=Fa(t.reverse(),e);return[n,r]}function xd(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fa(e,t){for(const n of e)if(!zy(n,{upTo:t}))return n}function zy(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Uy(e){return e instanceof HTMLInputElement&&"select"in e}function hn(e,{select:t=!1}={}){if(e&&e.focus){const n=Ze();e.focus({preventScroll:!0}),e!==n&&Uy(e)&&t&&e.select()}}var Hy=Q({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,r=t,{currentRef:o,currentElement:s}=Ie(),i=D(null),l=Ly(),a=Dn({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Ft(u=>{if(!ln)return;const d=s.value;if(!n.trapped)return;function f(y){if(a.paused||!d)return;const w=y.target;d.contains(w)?i.value=w:hn(i.value,{select:!0})}function p(y){if(a.paused||!d)return;const w=y.relatedTarget;w!==null&&(d.contains(w)||hn(i.value,{select:!0}))}function m(y){const w=i.value;if(w===null||!y.some(S=>S.removedNodes.length>0))return;d.contains(w)||hn(d)}document.addEventListener("focusin",f),document.addEventListener("focusout",p);const g=new MutationObserver(m);d&&g.observe(d,{childList:!0,subtree:!0}),u(()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",p),g.disconnect()})}),Ft(async u=>{const d=s.value;if(await Ue(),!d)return;l.add(a);const f=Ze();if(!d.contains(f)){const m=new CustomEvent(Bs,qa);d.addEventListener(Bs,g=>r("mountAutoFocus",g)),d.dispatchEvent(m),m.defaultPrevented||(jy(xd(d),{select:!0}),Ze()===f&&hn(d))}u(()=>{d.removeEventListener(Bs,y=>r("mountAutoFocus",y));const m=new CustomEvent(Ns,qa),g=y=>{r("unmountAutoFocus",y)};d.addEventListener(Ns,g),d.dispatchEvent(m),d.setAttribute("data-focus-scope-unmounting",""),setTimeout(()=>{m.defaultPrevented||hn(f??document.body,{select:!0}),d.removeEventListener(Ns,g),l.remove(a),d.removeAttribute("data-focus-scope-unmounting")},0)})});function c(u){if(!n.loop&&!n.trapped||a.paused)return;const d=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,f=Ze();if(d&&f){const p=u.currentTarget,[m,g]=Vy(p);m&&g?!u.shiftKey&&f===g?(u.preventDefault(),n.loop&&hn(m,{select:!0})):u.shiftKey&&f===m&&(u.preventDefault(),n.loop&&hn(g,{select:!0})):f===p&&u.preventDefault()}}return(u,d)=>(b(),J(h(yt),{ref_key:"currentRef",ref:o,tabindex:"-1","as-child":u.asChild,as:u.as,onKeydown:c},{default:Y(()=>[_e(u.$slots,"default")]),_:3},8,["as-child","as"]))}}),wd=Hy;const Ky="menu.itemSelect",mi=["Enter"," "],Wy=["ArrowDown","PageUp","Home"],kd=["ArrowUp","PageDown","End"],Gy=[...Wy,...kd];[...mi],[...mi];function Cd(e){return e?"open":"closed"}function Yy(e){const t=Ze();for(const n of e)if(n===t||(n.focus(),Ze()!==t))return}function Xy(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const l=t[s].x,a=t[s].y,c=t[i].x,u=t[i].y;a>r!=u>r&&n<(c-l)*(r-a)/(u-a)+l&&(o=!o)}return o}function Jy(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Xy(n,t)}function Oo(e){return e.pointerType==="mouse"}var Qy=Q({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,o=an(),{forwardRef:s,currentElement:i}=Ie();return o.titleId||=$o(void 0,"reka-dialog-title"),o.descriptionId||=$o(void 0,"reka-dialog-description"),jt(()=>{o.contentElement=i,Ze()!==document.body&&(o.triggerElement.value=Ze())}),(l,a)=>(b(),J(h(wd),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:a[5]||(a[5]=c=>r("openAutoFocus",c)),onUnmountAutoFocus:a[6]||(a[6]=c=>r("closeAutoFocus",c))},{default:Y(()=>[G(h(_d),Ve({id:h(o).contentId,ref:h(s),as:l.as,"as-child":l.asChild,"disable-outside-pointer-events":l.disableOutsidePointerEvents,role:"dialog","aria-describedby":h(o).descriptionId,"aria-labelledby":h(o).titleId,"data-state":h(Cd)(h(o).open.value)},l.$attrs,{onDismiss:a[0]||(a[0]=c=>h(o).onOpenChange(!1)),onEscapeKeyDown:a[1]||(a[1]=c=>r("escapeKeyDown",c)),onFocusOutside:a[2]||(a[2]=c=>r("focusOutside",c)),onInteractOutside:a[3]||(a[3]=c=>r("interactOutside",c)),onPointerDownOutside:a[4]||(a[4]=c=>r("pointerDownOutside",c))}),{default:Y(()=>[_e(l.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),Sd=Qy,Zy=Q({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,o=an(),s=cr(r),{forwardRef:i,currentElement:l}=Ie();return vd(l),(a,c)=>(b(),J(Sd,Ve({...n,...h(s)},{ref:h(i),"trap-focus":h(o).open.value,"disable-outside-pointer-events":n.disableOutsidePointerEvents,onCloseAutoFocus:c[0]||(c[0]=u=>{u.defaultPrevented||(u.preventDefault(),h(o).triggerElement.value?.focus())}),onPointerDownOutside:c[1]||(c[1]=u=>{const d=u.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0;(d.button===2||f)&&u.preventDefault()}),onFocusOutside:c[2]||(c[2]=u=>{u.preventDefault()})}),{default:Y(()=>[_e(a.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),eb=Zy,tb=Q({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=cr(t);Ie();const s=an(),i=D(!1),l=D(!1);return(a,c)=>(b(),J(Sd,Ve({...n,...h(o)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:c[0]||(c[0]=u=>{u.defaultPrevented||(i.value||h(s).triggerElement.value?.focus(),u.preventDefault()),i.value=!1,l.value=!1}),onInteractOutside:c[1]||(c[1]=u=>{u.defaultPrevented||(i.value=!0,u.detail.originalEvent.type==="pointerdown"&&(l.value=!0));const d=u.target;h(s).triggerElement.value?.contains(d)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&l.value&&u.preventDefault()})}),{default:Y(()=>[_e(a.$slots,"default")]),_:3},16))}}),nb=tb,rb=Q({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,o=an(),s=cr(r),{forwardRef:i}=Ie();return(l,a)=>(b(),J(h(Qi),{present:l.forceMount||h(o).open.value},{default:Y(()=>[h(o).modal.value?(b(),J(eb,Ve({key:0,ref:h(i)},{...n,...h(s),...l.$attrs}),{default:Y(()=>[_e(l.$slots,"default")]),_:3},16)):(b(),J(nb,Ve({key:1,ref:h(i)},{...n,...h(s),...l.$attrs}),{default:Y(()=>[_e(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Ed=rb,ob=Q({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;Ie();const n=an();return(r,o)=>(b(),J(h(yt),Ve(t,{id:h(n).descriptionId}),{default:Y(()=>[_e(r.$slots,"default")]),_:3},16,["id"]))}}),Ad=ob,sb=Q({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=an();return hd(!0),Ie(),(n,r)=>(b(),J(h(yt),{as:n.as,"as-child":n.asChild,"data-state":h(t).open.value?"open":"closed",style:{"pointer-events":"auto"},onPointerdown:r[0]||(r[0]=Bt(()=>{},["left","self","prevent"]))},{default:Y(()=>[_e(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),ib=sb,lb=Q({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=an(),{forwardRef:n}=Ie();return(r,o)=>h(t)?.modal.value?(b(),J(h(Qi),{key:0,present:r.forceMount||h(t).open.value},{default:Y(()=>[G(ib,Ve(r.$attrs,{ref:h(n),as:r.as,"as-child":r.asChild}),{default:Y(()=>[_e(r.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):fe("v-if",!0)}}),$d=lb,ab=Q({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=uy();return(n,r)=>h(t)||n.forceMount?(b(),J(fp,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[_e(n.$slots,"default")],8,["to","disabled","defer"])):fe("v-if",!0)}}),Zi=ab,ub=Q({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,r)=>(b(),J(h(Zi),ht(vt(t)),{default:Y(()=>[_e(n.$slots,"default")]),_:3},16))}}),cb=ub,db=Q({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,n=an();return Ie(),(r,o)=>(b(),J(h(yt),Ve(t,{id:h(n).titleId}),{default:Y(()=>[_e(r.$slots,"default")]),_:3},16,["id"]))}}),Od=db;const[fb,pb]=Ut("AlertDialogContent");var hb=Q({__name:"AlertDialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=cr(t);Ie();const s=D();return pb({onCancelElementChange:i=>{s.value=i}}),(i,l)=>(b(),J(h(Ed),Ve({...n,...h(o)},{role:"alertdialog",onPointerDownOutside:l[0]||(l[0]=Bt(()=>{},["prevent"])),onInteractOutside:l[1]||(l[1]=Bt(()=>{},["prevent"])),onOpenAutoFocus:l[2]||(l[2]=()=>{Ue(()=>{s.value?.focus({preventScroll:!0})})})}),{default:Y(()=>[_e(i.$slots,"default")]),_:3},16))}}),mb=hb,gb=Q({__name:"AlertDialogCancel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=fb(),{forwardRef:r,currentElement:o}=Ie();return jt(()=>{n.onCancelElementChange(o.value)}),(s,i)=>(b(),J(h(hi),Ve(t,{ref:h(r)}),{default:Y(()=>[_e(s.$slots,"default")]),_:3},16))}}),vb=gb,yb=Q({__name:"AlertDialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;return Ie(),(n,r)=>(b(),J(h(Ad),ht(vt(t)),{default:Y(()=>[_e(n.$slots,"default")]),_:3},16))}}),bb=yb,_b=Q({__name:"AlertDialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Ie(),(n,r)=>(b(),J(h($d),ht(vt(t)),{default:Y(()=>[_e(n.$slots,"default")]),_:3},16))}}),xb=_b,wb=Q({__name:"AlertDialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,r)=>(b(),J(h(Zi),ht(vt(t)),{default:Y(()=>[_e(n.$slots,"default")]),_:3},16))}}),kb=wb,Cb=Q({__name:"AlertDialogRoot",props:{open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1}},emits:["update:open"],setup(e,{emit:t}){const o=Yr(e,t);return Ie(),(s,i)=>(b(),J(h(yd),Ve(h(o),{modal:!0}),{default:Y(l=>[_e(s.$slots,"default",ht(vt(l)))]),_:3},16))}}),Sb=Cb,Eb=Q({__name:"AlertDialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e;return Ie(),(n,r)=>(b(),J(h(Od),ht(vt(t)),{default:Y(()=>[_e(n.$slots,"default")]),_:3},16))}}),Ab=Eb;const Ba="data-reka-collection-item";function Pd(e={}){const{key:t="",isProvider:n=!1}=e,r=`${t}CollectionProvider`;let o;n?(o={collectionRef:D(),itemMap:D(new Map)},Xn(r,o)):o=nt(r);const s=(u=!1)=>{const d=o.collectionRef.value;if(!d)return[];const f=Array.from(d.querySelectorAll(`[${Ba}]`)),m=Array.from(o.itemMap.value.values()).sort((g,y)=>f.indexOf(g.ref)-f.indexOf(y.ref));return u?m:m.filter(g=>g.ref.dataset.disabled!=="")},i=Q({name:"CollectionSlot",inheritAttrs:!1,setup(u,{slots:d,attrs:f}){const{primitiveElement:p,currentElement:m}=Da();return ze(m,()=>{o.collectionRef.value=m.value}),()=>_t(pi,{ref:p,...f},d)}}),l=Q({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(u,{slots:d,attrs:f}){const{primitiveElement:p,currentElement:m}=Da();return Ft(g=>{if(m.value){const y=Pu(m.value);o.itemMap.value.set(y,{ref:m.value,value:u.value}),g(()=>o.itemMap.value.delete(y))}}),()=>_t(pi,{...f,[Ba]:"",ref:p},d)}}),a=E(()=>Array.from(o.itemMap.value.values())),c=E(()=>o.itemMap.value.size);return{getItems:s,reactiveItems:a,itemMapSize:c,CollectionSlot:i,CollectionItem:l}}const $b="rovingFocusGroup.onEntryFocus",Ob={bubbles:!1,cancelable:!0};function Pb(e,t=!1){const n=Ze();for(const r of e)if(r===n||(r.focus({preventScroll:t}),Ze()!==n))return}const[Td,Tb]=Ut("PopperRoot");var Rb=Q({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=D();return Tb({anchor:t,onAnchorChange:n=>t.value=n}),(n,r)=>_e(n.$slots,"default")}}),Mb=Rb,Db=Q({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:r}=Ie(),o=Td();return Nu(()=>{o.onAnchorChange(t.reference??r.value)}),(s,i)=>(b(),J(h(yt),{ref:h(n),as:s.as,"as-child":s.asChild},{default:Y(()=>[_e(s.$slots,"default")]),_:3},8,["as","as-child"]))}}),Ib=Db;function qb(e){return e!==null}function Fb(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[c,u]=gi(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(o.arrow?.x??0)+l/2,p=(o.arrow?.y??0)+a/2;let m="",g="";return c==="bottom"?(m=i?d:`${f}px`,g=`${-a}px`):c==="top"?(m=i?d:`${f}px`,g=`${r.floating.height+a}px`):c==="right"?(m=`${-a}px`,g=i?d:`${p}px`):c==="left"&&(m=`${r.floating.width+a}px`,g=i?d:`${p}px`),{data:{x:m,y:g}}}}}function gi(e){const[t,n="center"]=e.split("-");return[t,n]}const Bb=["top","right","bottom","left"],_n=Math.min,Jt=Math.max,Po=Math.round,ro=Math.floor,Qt=e=>({x:e,y:e}),Nb={left:"right",right:"left",bottom:"top",top:"bottom"};function Rd(e,t,n){return Jt(e,_n(t,n))}function on(e,t){return typeof e=="function"?e(t):e}function xn(e){return e.split("-")[0]}function dr(e){return e.split("-")[1]}function el(e){return e==="x"?"y":"x"}function tl(e){return e==="y"?"height":"width"}function It(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function nl(e){return el(It(e))}function Lb(e,t,n){n===void 0&&(n=!1);const r=dr(e),o=nl(e),s=tl(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=To(i)),[i,To(i)]}function jb(e){const t=To(e);return[vi(e),t,vi(t)]}function vi(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Na=["left","right"],La=["right","left"],Vb=["top","bottom"],zb=["bottom","top"];function Ub(e,t,n){switch(e){case"top":case"bottom":return n?t?La:Na:t?Na:La;case"left":case"right":return t?Vb:zb;default:return[]}}function Hb(e,t,n,r){const o=dr(e);let s=Ub(xn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(vi)))),s}function To(e){const t=xn(e);return Nb[t]+e.slice(t.length)}function Kb(e){var t,n,r,o;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(o=e.left)!=null?o:0}}function Md(e){return typeof e!="number"?Kb(e):{top:e,right:e,bottom:e,left:e}}function Ro(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ja(e,t,n){let{reference:r,floating:o}=e;const s=It(t),i=nl(t),l=tl(i),a=xn(t),c=s==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(a){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}const m=dr(t);return m&&(p[i]+=f*(m==="end"?1:-1)*(n&&c?-1:1)),p}async function Wb(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:l,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=on(t,e),m=Md(p),y=l[f?d==="floating"?"reference":"floating":d],w=Ro(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),x=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),S=await(s.isElement==null?void 0:s.isElement(k))&&await(s.getScale==null?void 0:s.getScale(k))||{x:1,y:1},N=Ro(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:k,strategy:a}):x);return{top:(w.top-N.top+m.top)/S.y,bottom:(N.bottom-w.bottom+m.bottom)/S.y,left:(w.left-N.left+m.left)/S.x,right:(N.right-w.right+m.right)/S.x}}const Gb=50,Yb=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,l=i.detectOverflow?i:{...i,detectOverflow:Wb},a=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=ja(c,r,a),f=r,p=0;const m={};for(let g=0;g<s.length;g++){const y=s[g];if(!y)continue;const{name:w,fn:x}=y,{x:k,y:S,data:N,reset:X}=await x({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:l,elements:{reference:e,floating:t}});u=k??u,d=S??d,m[w]={...m[w],...N},X&&p<Gb&&(p++,typeof X=="object"&&(X.placement&&(f=X.placement),X.rects&&(c=X.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):X.rects),{x:u,y:d}=ja(c,f,a)),g=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}},Xb=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:l,middlewareData:a}=t,{element:c,padding:u=0}=on(e,t)||{};if(c==null)return{};const d=Md(u),f={x:n,y:r},p=nl(o),m=tl(p),g=await i.getDimensions(c),y=p==="y",w=y?"top":"left",x=y?"bottom":"right",k=y?"clientHeight":"clientWidth",S=s.reference[m]+s.reference[p]-f[p]-s.floating[m],N=f[p]-s.reference[p],X=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let q=X?X[k]:0;(!q||!await(i.isElement==null?void 0:i.isElement(X)))&&(q=l.floating[k]||s.floating[m]);const $=S/2-N/2,O=q/2-g[m]/2-1,T=_n(d[w],O),oe=_n(d[x],O),I=q-g[m]-oe,le=q/2-g[m]/2+$,ye=Rd(T,le,I),z=!a.arrow&&dr(o)!=null&&le!==ye&&s.reference[m]/2-(le<T?T:oe)-g[m]/2<0,ee=z?le<T?le-T:le-I:0;return{[p]:f[p]+ee,data:{[p]:ye,centerOffset:le-ye-ee,...z&&{alignmentOffset:ee}},reset:z}}}),Jb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...y}=on(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=xn(o),x=It(l),k=xn(l)===l,S=await(a.isRTL==null?void 0:a.isRTL(c.floating)),N=f||(k||!g?[To(l)]:jb(l)),X=m!=="none";!f&&X&&N.push(...Hb(l,g,m,S));const q=[l,...N],$=await a.detectOverflow(t,y),O=[];let T=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&O.push($[w]),d){const ye=Lb(o,i,S);O.push($[ye[0]],$[ye[1]])}if(T=[...T,{placement:o,overflows:O}],!O.every(ye=>ye<=0)){var oe,I;const ye=(((oe=s.flip)==null?void 0:oe.index)||0)+1,z=q[ye];if(z&&(!(d==="alignment"?x!==It(z):!1)||T.every(ae=>It(ae.placement)===x?ae.overflows[0]>0:!0)))return{data:{index:ye,overflows:T},reset:{placement:z}};let ee=(I=T.filter(re=>re.overflows[0]<=0).sort((re,ae)=>re.overflows[1]-ae.overflows[1])[0])==null?void 0:I.placement;if(!ee)switch(p){case"bestFit":{var le;const re=(le=T.filter(ae=>{if(X){const R=It(ae.placement);return R===x||R==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(R=>R>0).reduce((R,B)=>R+B,0)]).sort((ae,R)=>ae[1]-R[1])[0])==null?void 0:le[0];re&&(ee=re);break}case"initialPlacement":ee=l;break}if(o!==ee)return{reset:{placement:ee}}}return{}}}};function Va(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function za(e){return Bb.some(t=>e[t]>=0)}const Qb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=on(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),l=Va(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:za(l)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),l=Va(i,n.floating);return{data:{escapedOffsets:l,escaped:za(l)}}}default:return{}}}}},Dd=new Set(["left","top"]);async function Zb(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=xn(n),l=dr(n),a=It(n)==="y",c=Dd.has(i)?-1:1,u=s&&a?-1:1,d=on(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof m=="number"&&(p=l==="end"?m*-1:m),a?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const e_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:l}=t,a=await Zb(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:s+a.y,data:{...a,placement:i}}}}},t_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:x=>{let{x:k,y:S}=x;return{x:k,y:S}}},...c}=on(e,t),u={x:n,y:r},d=await s.detectOverflow(t,c),f=It(o),p=el(f);let m=u[p],g=u[f];const y=(x,k)=>Rd(k+d[x==="y"?"top":"left"],k,k-d[x==="y"?"bottom":"right"]);i&&(m=y(p,m)),l&&(g=y(f,g));const w=a.fn({...t,[p]:m,[f]:g});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[p]:i,[f]:l}}}}}},n_=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,r;const{x:o,y:s,placement:i,rects:l,middlewareData:a}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=on(e,t),f={x:o,y:s},p=It(i),m=el(p);let g=f[m],y=f[p];const w=on(c,t),x=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(n=w.mainAxis)!=null?n:0,crossAxis:(r=w.crossAxis)!=null?r:0};if(u){const N=m==="y"?"height":"width",X=l.reference[m]-l.floating[N]+x.mainAxis,q=l.reference[m]+l.reference[N]-x.mainAxis;g<X?g=X:g>q&&(g=q)}if(d){var k,S;const N=m==="y"?"width":"height",X=Dd.has(xn(i)),q=l.reference[p]-l.floating[N]+(X&&((k=a.offset)==null?void 0:k[p])||0)+(X?0:x.crossAxis),$=l.reference[p]+l.reference[N]+(X?0:((S=a.offset)==null?void 0:S[p])||0)-(X?x.crossAxis:0);y<q?y=q:y>$&&(y=$)}return{[m]:g,[p]:y}}}},r_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:s}=t,{apply:i=()=>{},...l}=on(e,t),a=await o.detectOverflow(t,l),c=xn(n),u=dr(n),d=It(n)==="y",{width:f,height:p}=r.floating;let m,g;c==="top"||c==="bottom"?(m=c,g=u===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(g=c,m=u==="end"?"top":"bottom");const y=p-a.top-a.bottom,w=f-a.left-a.right,x=_n(p-a[m],y),k=_n(f-a[g],w),S=t.middlewareData.shift,N=!S;let X=x,q=k;S!=null&&S.enabled.x&&(q=w),S!=null&&S.enabled.y&&(X=y),N&&!u&&(d?q=f-2*Jt(a.left,a.right):X=p-2*Jt(a.top,a.bottom)),await i({...t,availableWidth:q,availableHeight:X});const $=await o.getDimensions(s.floating);return f!==$.width||p!==$.height?{reset:{rects:!0}}:{}}}};function cs(){return typeof window<"u"}function In(e){return rl(e)?(e.nodeName||"").toLowerCase():"#document"}function it(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function un(e){var t;return(t=(rl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rl(e){return cs()?e instanceof Node||e instanceof it(e).Node:!1}function Nt(e){return cs()?e instanceof Element||e instanceof it(e).Element:!1}function kn(e){return cs()?e instanceof HTMLElement||e instanceof it(e).HTMLElement:!1}function Ua(e){return!cs()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof it(e).ShadowRoot}function ds(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function o_(e){return/^(table|td|th)$/.test(In(e))}function fs(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const s_=/transform|translate|scale|rotate|perspective|filter/,i_=/paint|layout|strict|content/,An=e=>!!e&&e!=="none";let Ls;function ol(e){const t=Nt(e)?Lt(e):e;return An(t.transform)||An(t.translate)||An(t.scale)||An(t.rotate)||An(t.perspective)||!sl()&&(An(t.backdropFilter)||An(t.filter))||s_.test(t.willChange||"")||i_.test(t.contain||"")}function l_(e){let t=Rn(e);for(;kn(t)&&!jr(t);){if(ol(t))return t;if(fs(t))return null;t=Rn(t)}return null}function sl(){return Ls==null&&(Ls=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ls}function jr(e){return/^(html|body|#document)$/.test(In(e))}function Lt(e){return it(e).getComputedStyle(e)}function ps(e){return Nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rn(e){if(In(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ua(e)&&e.host||un(e);return Ua(t)?t.host:t}function Id(e){const t=Rn(e);return jr(t)?(e.ownerDocument||e).body:kn(t)&&ds(t)?t:Id(t)}function Vr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Id(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=it(o);if(s){const l=yi(i);return t.concat(i,i.visualViewport||[],ds(o)?o:[],l&&n?Vr(l):[])}else return t.concat(o,Vr(o,[],n))}function yi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qd(e){const t=Lt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=kn(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=Po(n)!==s||Po(r)!==i;return l&&(n=s,r=i),{width:n,height:r,$:l}}function il(e){return Nt(e)?e:e.contextElement}function Zn(e){const t=il(e);if(!kn(t))return Qt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=qd(t);let i=(s?Po(n.width):n.width)/r,l=(s?Po(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const a_=Qt(0);function Fd(e){const t=it(e);return!sl()||!t.visualViewport?a_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function u_(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===it(e)}function Mn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=il(e);let i=Qt(1);t&&(r?Nt(r)&&(i=Zn(r)):i=Zn(e));const l=u_(s,n,r)?Fd(s):Qt(0);let a=(o.left+l.x)/i.x,c=(o.top+l.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(s&&r){const f=it(s),p=Nt(r)?it(r):r;let m=f,g=yi(m);for(;g&&p!==m;){const y=Zn(g),w=g.getBoundingClientRect(),x=Lt(g),k=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*y.x,S=w.top+(g.clientTop+parseFloat(x.paddingTop))*y.y;a*=y.x,c*=y.y,u*=y.x,d*=y.y,a+=k,c+=S,m=it(g),g=yi(m)}}return Ro({width:u,height:d,x:a,y:c})}function hs(e,t){const n=ps(e).scrollLeft;return t?t.left+n:Mn(un(e)).left+n}function Bd(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-hs(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function c_(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=un(r),l=t?fs(t.floating):!1;if(r===i||l&&s)return n;let a={scrollLeft:0,scrollTop:0},c=Qt(1);const u=Qt(0),d=kn(r);if((d||!s)&&((In(r)!=="body"||ds(i))&&(a=ps(r)),d)){const p=Mn(r);c=Zn(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=i&&!d&&!s?Bd(i,a):Qt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-a.scrollTop*c.y+u.y+f.y}}function d_(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function f_(e){const t=ps(e),n=e.ownerDocument.body,r=Jt(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=Jt(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+hs(e);const i=-t.scrollTop;return Lt(n).direction==="rtl"&&(s+=Jt(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:s,y:i}}const p_=25;function h_(e,t,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",o=it(e),s=un(e),i=o.visualViewport;let l=s.clientWidth,a=s.clientHeight,c=0,u=0;if(i){const f=!sl()||t==="fixed";r?f||(c=-i.offsetLeft,u=-i.offsetTop):(l=i.width,a=i.height,f&&(c=i.offsetLeft,u=i.offsetTop))}if(hs(s)<=0){const f=s.ownerDocument,p=f.body,m=getComputedStyle(p),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,y=Math.abs(s.clientWidth-p.clientWidth-g),w=getComputedStyle(s).scrollbarGutter==="stable both-edges"?y/2:y;w<=p_&&(l-=w)}return{width:l,height:a,x:c,y:u}}function m_(e,t){const n=Mn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Zn(e),i=e.clientWidth*s.x,l=e.clientHeight*s.y,a=o*s.x,c=r*s.y;return{width:i,height:l,x:a,y:c}}function Ha(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=h_(e,n,t);else if(t==="document")r=f_(un(e));else if(Nt(t))r=m_(t,n);else{const o=Fd(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ro(r)}function g_(e,t){const n=t.get(e);if(n)return n;let r=Vr(e,[],!1).filter(l=>Nt(l)&&In(l)!=="body"),o=null;const s=Lt(e).position==="fixed";let i=s?Rn(e):e;for(;Nt(i)&&!jr(i);){const l=Lt(i),a=ol(i),c=o?o.position:s?"fixed":"";!a&&(c==="fixed"||c==="absolute"&&l.position==="static")?r=r.filter(d=>d!==i):o=l,i=Rn(i)}return t.set(e,r),r}function v_(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?fs(t)?[]:g_(t,this._c):[].concat(n),r],l=Ha(t,i[0],o);let a=l.top,c=l.right,u=l.bottom,d=l.left;for(let f=1;f<i.length;f++){const p=Ha(t,i[f],o);a=Jt(p.top,a),c=_n(p.right,c),u=_n(p.bottom,u),d=Jt(p.left,d)}return{width:c-d,height:u-a,x:d,y:a}}function y_(e){const{width:t,height:n}=qd(e);return{width:t,height:n}}function b_(e,t,n){const r=kn(t),o=un(t),s=n==="fixed",i=Mn(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const a=Qt(0);if((r||!s)&&((In(t)!=="body"||ds(o))&&(l=ps(t)),r)){const f=Mn(t,!0,s,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}!r&&o&&(a.x=hs(o));const c=o&&!r&&!s?Bd(o,l):Qt(0),u=i.left+l.scrollLeft-a.x-c.x,d=i.top+l.scrollTop-a.y-c.y;return{x:u,y:d,width:i.width,height:i.height}}function js(e){return Lt(e).position==="static"}function Ka(e,t){if(!kn(e)||Lt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return un(e)===n&&(n=n.ownerDocument.body),n}function Nd(e,t){const n=it(e);if(fs(e))return n;if(!kn(e)){let o=Rn(e);for(;o&&!jr(o);){if(Nt(o)&&!js(o))return o;o=Rn(o)}return n}let r=Ka(e,t);for(;r&&o_(r)&&js(r);)r=Ka(r,t);return r&&jr(r)&&js(r)&&!ol(r)?n:r||l_(e)||n}const __=async function(e){const t=this.getOffsetParent||Nd,n=this.getDimensions,r=await n(e.floating);return{reference:b_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function x_(e){return Lt(e).direction==="rtl"}const w_={convertOffsetParentRelativeRectToViewportRelativeRect:c_,getDocumentElement:un,getClippingRect:v_,getOffsetParent:Nd,getElementRects:__,getClientRects:d_,getDimensions:y_,getScale:Zn,isElement:Nt,isRTL:x_};function Ld(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function k_(e,t,n){let r=null,o;const s=un(e);function i(){var u;clearTimeout(o),(u=r)==null||u.disconnect(),r=null}function l(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),i();const f=e.getBoundingClientRect(),{left:p,top:m,width:g,height:y}=f;if(u||t(),!g||!y)return;const w=ro(m),x=ro(s.clientWidth-(p+g)),k=ro(s.clientHeight-(m+y)),S=ro(p),X={rootMargin:-w+"px "+-x+"px "+-k+"px "+-S+"px",threshold:Jt(0,_n(1,d))||1};let q=!0;function $(O){const T=O[0].intersectionRatio;if(!Ld(f,e.getBoundingClientRect()))return l();if(T!==d){if(!q)return l();T?l(!1,T):o=setTimeout(()=>{l(!1,1e-7)},1e3)}q=!1}try{r=new IntersectionObserver($,{...X,root:s.ownerDocument})}catch{r=new IntersectionObserver($,X)}r.observe(e)}const a=it(e),c=()=>l(n);return a.addEventListener("resize",c),l(!0),()=>{a.removeEventListener("resize",c),i()}}function C_(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,c=il(e),u=o||s?[...c?Vr(c):[],...t?Vr(t):[]]:[];u.forEach(w=>{o&&w.addEventListener("scroll",n),s&&w.addEventListener("resize",n)});const d=c&&l?k_(c,n,s):null;let f=-1,p=null;i&&(p=new ResizeObserver(w=>{let[x]=w;x&&x.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var k;(k=p)==null||k.observe(t)})),n()}),c&&!a&&p.observe(c),t&&p.observe(t));let m,g=a?Mn(e):null;a&&y();function y(){const w=Mn(e);g&&!Ld(g,w)&&n(),g=w,m=requestAnimationFrame(y)}return n(),()=>{var w;u.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),d?.(),(w=p)==null||w.disconnect(),p=null,a&&cancelAnimationFrame(m)}}const S_=e_,E_=t_,Wa=Jb,A_=r_,$_=Qb,O_=Xb,P_=n_,T_=(e,t,n)=>{const r=new Map,o=n??{},s={...w_,...o.platform,_c:r};return Yb(e,t,{...o,platform:s})};function R_(e){return e!=null&&typeof e=="object"&&"$el"in e}function bi(e){if(R_(e)){const t=e.$el;return rl(t)&&In(t)==="#comment"?null:t}return e}function Hn(e){return typeof e=="function"?e():h(e)}function M_(e){return{name:"arrow",options:e,fn(t){const n=bi(Hn(e.element));return n==null?{}:O_({element:n,padding:e.padding}).fn(t)}}}function jd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ga(e,t){const n=jd(e);return Math.round(t*n)/n}function D_(e,t,n){n===void 0&&(n={});const r=n.whileElementsMounted,o=E(()=>{var q;return(q=Hn(n.open))!=null?q:!0}),s=E(()=>Hn(n.middleware)),i=E(()=>{var q;return(q=Hn(n.placement))!=null?q:"bottom"}),l=E(()=>{var q;return(q=Hn(n.strategy))!=null?q:"absolute"}),a=E(()=>{var q;return(q=Hn(n.transform))!=null?q:!0}),c=E(()=>bi(e.value)),u=E(()=>bi(t.value)),d=D(0),f=D(0),p=D(l.value),m=D(i.value),g=Ho({}),y=D(!1),w=E(()=>{const q={position:p.value,left:"0",top:"0"};if(!u.value)return q;const $=Ga(u.value,d.value),O=Ga(u.value,f.value);return a.value?{...q,transform:"translate("+$+"px, "+O+"px)",...jd(u.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:$+"px",top:O+"px"}});let x;function k(){if(c.value==null||u.value==null)return;const q=o.value;T_(c.value,u.value,{middleware:s.value,placement:i.value,strategy:l.value}).then($=>{d.value=$.x,f.value=$.y,p.value=$.strategy,m.value=$.placement,g.value=$.middlewareData,y.value=q!==!1})}function S(){typeof x=="function"&&(x(),x=void 0)}function N(){if(S(),r===void 0){k();return}if(c.value!=null&&u.value!=null){x=r(c.value,u.value,k);return}}function X(){o.value||(y.value=!1)}return ze([s,i,l,o],k,{flush:"sync"}),ze([c,u],N,{flush:"sync"}),ze(o,X,{flush:"sync"}),Ei()&&fu(S),{x:Fn(d),y:Fn(f),strategy:Fn(p),placement:Fn(m),middlewareData:Fn(g),isPositioned:Fn(y),floatingStyles:w,update:k}}const Vd={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[tC,I_]=Ut("PopperContent");var q_=Q({inheritAttrs:!1,__name:"PopperContent",props:Xu({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...Vd}),emits:["placed"],setup(e,{emit:t}){const n=e,r=t,o=Td(),{forwardRef:s,currentElement:i}=Ie(),l=D(),a=D(),{width:c,height:u}=Cy(a),d=E(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),f=E(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),p=E(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),m=E(()=>({padding:f.value,boundary:p.value.filter(qb),altBoundary:p.value.length>0})),g=E(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),y=Zv(()=>[S_({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Wa({...m.value,...g.value}),n.avoidCollisions&&E_({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?P_():void 0,...m.value}),!n.prioritizePosition&&n.avoidCollisions&&Wa({...m.value,...g.value}),A_({...m.value,apply:({elements:I,rects:le,availableWidth:ye,availableHeight:z})=>{const{width:ee,height:re}=le.reference,ae=I.floating.style;ae.setProperty("--reka-popper-available-width",`${ye}px`),ae.setProperty("--reka-popper-available-height",`${z}px`),ae.setProperty("--reka-popper-anchor-width",`${ee}px`),ae.setProperty("--reka-popper-anchor-height",`${re}px`)}}),a.value&&M_({element:a.value,padding:n.arrowPadding}),Fb({arrowWidth:c.value,arrowHeight:u.value}),n.hideWhenDetached&&$_({strategy:"referenceHidden",...m.value})]),w=E(()=>n.reference??o.anchor.value),{floatingStyles:x,placement:k,isPositioned:S,middlewareData:N}=D_(w,l,{strategy:n.positionStrategy,placement:d,whileElementsMounted:(...I)=>C_(...I,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:y}),X=E(()=>gi(k.value)[0]),q=E(()=>gi(k.value)[1]);Nu(()=>{S.value&&r("placed")});const $=E(()=>{const I=N.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&I}),O=D("");Ft(()=>{i.value&&(O.value=window.getComputedStyle(i.value).zIndex)});const T=E(()=>N.value.arrow?.x??0),oe=E(()=>N.value.arrow?.y??0);return I_({placedSide:X,onArrowChange:I=>a.value=I,arrowX:T,arrowY:oe,shouldHideArrow:$}),(I,le)=>(b(),A("div",{ref_key:"floatingRef",ref:l,"data-reka-popper-content-wrapper":"",style:ir({...h(x),transform:h(S)?h(x).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O.value,"--reka-popper-transform-origin":[h(N).transformOrigin?.x,h(N).transformOrigin?.y].join(" "),...h(N).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[G(h(yt),Ve({ref:h(s)},I.$attrs,{"as-child":n.asChild,as:I.as,"data-side":X.value,"data-align":q.value,style:{animation:h(S)?void 0:"none"}}),{default:Y(()=>[_e(I.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),F_=q_;const[nC,B_]=Ut("RovingFocusGroup");var N_=Q({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){const r=e,o=n,{loop:s,orientation:i,dir:l}=lr(r),a=Ji(l),c=us(r,"currentTabStopId",o,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=D(!1),d=D(!1),f=D(0),{getItems:p,CollectionSlot:m}=Pd({isProvider:!0});function g(w){const x=!d.value;if(w.currentTarget&&w.target===w.currentTarget&&x&&!u.value){const k=new CustomEvent($b,Ob);if(w.currentTarget.dispatchEvent(k),o("entryFocus",k),!k.defaultPrevented){const S=p().map(O=>O.ref).filter(O=>O.dataset.disabled!==""),N=S.find(O=>O.getAttribute("data-active")===""),X=S.find(O=>O.getAttribute("data-highlighted")===""),q=S.find(O=>O.id===c.value),$=[N,X,q,...S].filter(Boolean);Pb($,r.preventScrollOnEntryFocus)}}d.value=!1}function y(){setTimeout(()=>{d.value=!1},1)}return t({getItems:p}),B_({loop:s,dir:a,orientation:i,currentTabStopId:c,onItemFocus:w=>{c.value=w},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{f.value++},onFocusableItemRemove:()=>{f.value--}}),(w,x)=>(b(),J(h(m),null,{default:Y(()=>[G(h(yt),{tabindex:u.value||f.value===0?-1:0,"data-orientation":h(i),as:w.as,"as-child":w.asChild,dir:h(a),style:{outline:"none"},onMousedown:x[0]||(x[0]=k=>d.value=!0),onMouseup:y,onFocus:g,onBlur:x[1]||(x[1]=k=>u.value=!1)},{default:Y(()=>[_e(w.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),L_=N_,j_=Q({__name:"MenuAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(b(),J(h(Ib),ht(vt(t)),{default:Y(()=>[_e(n.$slots,"default")]),_:3},16))}}),V_=j_;function z_(){const e=D(!1);return jt(()=>{Ao("keydown",()=>{e.value=!0},{capture:!0,passive:!0}),Ao(["pointerdown","pointermove"],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const U_=fd(z_),[ms,H_]=Ut(["MenuRoot","MenuSub"],"MenuContext"),[ll,K_]=Ut("MenuRoot");var W_=Q({__name:"MenuRoot",props:{open:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t,{modal:o,dir:s}=lr(n),i=Ji(s),l=us(n,"open",r),a=D(),c=U_();return H_({open:l,onOpenChange:u=>{l.value=u},content:a,onContentChange:u=>{a.value=u}}),K_({onClose:()=>{l.value=!1},isUsingKeyboardRef:c,dir:i,modal:o}),(u,d)=>(b(),J(h(Mb),null,{default:Y(()=>[_e(u.$slots,"default")]),_:3}))}}),G_=W_;const[zd,Y_]=Ut("MenuContent");var X_=Q({__name:"MenuContentImpl",props:Xu({loop:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},disableOutsideScroll:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...Vd}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(e,{emit:t}){const n=e,r=t,o=ms(),s=ll(),{trapFocus:i,disableOutsidePointerEvents:l,loop:a}=lr(n);yy(),hd(l.value);const c=D(""),u=D(0),d=D(0),f=D(null),p=D("right"),m=D(0),g=D(null),y=D(),{forwardRef:w,currentElement:x}=Ie(),{handleTypeaheadSearch:k}=Ey(),S=D();function N(z){const ee=Ra(z,S.value||Ze(),x.value,{loop:a.value,arrowKeyOptions:"vertical",dir:s?.dir.value,focus:!1,attributeName:"[data-reka-collection-item]:not([data-disabled])"});ee&&(S.value=ee,ee.scrollIntoView({block:"nearest"}))}function X(){S.value&&S.value.click()}const q=D(),$=D();ze(S,z=>{$.value&&(z===void 0||z!==$.value.trigger.value)&&($.value.onOpenChange(!1),$.value=void 0)}),ze(x,z=>{o.onContentChange(z)}),ar(()=>{window.clearTimeout(u.value)});function O(z){return p.value===f.value?.side&&Jy(z,f.value?.area)}async function T(z){r("openAutoFocus",z),!z.defaultPrevented&&(z.preventDefault(),x.value?.focus({preventScroll:!0}))}function oe(z){if(z.defaultPrevented)return;const ee=z.target,re=ee.closest("[data-reka-menu-content]")===z.currentTarget,ae=["input","textarea"].includes(ee.tagName.toLowerCase()),R=z.ctrlKey||z.altKey||z.metaKey,B=z.key.length===1,W=Ra(z,Ze(),x.value,{loop:a.value,arrowKeyOptions:"vertical",dir:s?.dir.value,focus:!0,attributeName:"[data-reka-collection-item]:not([data-disabled])"});if(W)return W?.focus();if(z.code==="Space")return;const pe=y.value?.getItems()??[];if(re&&(z.key==="Tab"&&z.preventDefault(),!R&&B&&!ae&&k(z.key,pe)),z.target!==x.value||!Gy.includes(z.key))return;z.preventDefault();const ke=[...pe.map(j=>j.ref)];kd.includes(z.key)&&ke.reverse(),Yy(ke)}function I(z){z?.currentTarget?.contains?.(z.target)||(window.clearTimeout(u.value),c.value="")}function le(z){if(!Oo(z))return;const ee=z.target,re=m.value!==z.clientX;if(z?.currentTarget?.contains(ee)&&re){const ae=z.clientX>m.value?"right":"left";p.value=ae,m.value=z.clientX}}function ye(z){Oo(z)&&q.value&&q.value.focus()}return Y_({onItemEnter:z=>!!O(z),onItemLeave:z=>O(z)?!0:(["INPUT","TEXTAREA"].includes(Ze()?.tagName||"")||x.value?.focus(),g.value=null,!1),onTriggerLeave:z=>!!O(z),searchRef:c,highlightedElement:S,onKeydownNavigation:N,onKeydownEnter:X,filterElement:q,onFilterElementChange:z=>{q.value=z},activeSubmenuContext:$,pointerGraceTimerRef:d,onPointerGraceIntentChange:z=>{f.value=z}}),(z,ee)=>(b(),J(h(wd),{"as-child":"",trapped:h(i),onMountAutoFocus:T,onUnmountAutoFocus:ee[7]||(ee[7]=re=>r("closeAutoFocus",re))},{default:Y(()=>[G(h(_d),{"as-child":"","disable-outside-pointer-events":h(l),onEscapeKeyDown:ee[2]||(ee[2]=re=>r("escapeKeyDown",re)),onPointerDownOutside:ee[3]||(ee[3]=re=>r("pointerDownOutside",re)),onFocusOutside:ee[4]||(ee[4]=re=>r("focusOutside",re)),onInteractOutside:ee[5]||(ee[5]=re=>r("interactOutside",re)),onDismiss:ee[6]||(ee[6]=re=>r("dismiss"))},{default:Y(()=>[G(h(L_),{ref_key:"rovingFocusGroupRef",ref:y,"current-tab-stop-id":g.value,"onUpdate:currentTabStopId":ee[0]||(ee[0]=re=>g.value=re),"as-child":"",orientation:"vertical",dir:h(s).dir.value,loop:h(a),onEntryFocus:ee[1]||(ee[1]=re=>{r("entryFocus",re),h(s).isUsingKeyboardRef.value||re.preventDefault()})},{default:Y(()=>[G(h(F_),{ref:h(w),role:"menu",as:z.as,"as-child":z.asChild,"aria-orientation":"vertical","data-reka-menu-content":"","data-state":h(Cd)(h(o).open.value),dir:h(s).dir.value,side:z.side,"side-offset":z.sideOffset,align:z.align,"align-offset":z.alignOffset,"avoid-collisions":z.avoidCollisions,"collision-boundary":z.collisionBoundary,"collision-padding":z.collisionPadding,"arrow-padding":z.arrowPadding,"prioritize-position":z.prioritizePosition,"position-strategy":z.positionStrategy,"update-position-strategy":z.updatePositionStrategy,sticky:z.sticky,"hide-when-detached":z.hideWhenDetached,reference:z.reference,onKeydown:oe,onBlur:I,onPointermove:le,onPointerenter:ye},{default:Y(()=>[_e(z.$slots,"default")]),_:3},8,["as","as-child","data-state","dir","side","side-offset","align","align-offset","avoid-collisions","collision-boundary","collision-padding","arrow-padding","prioritize-position","position-strategy","update-position-strategy","sticky","hide-when-detached","reference"])]),_:3},8,["current-tab-stop-id","dir","loop"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),Ud=X_,J_=Q({inheritAttrs:!1,__name:"MenuItemImpl",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=zd(),{forwardRef:r,currentElement:o}=Ie(),{CollectionItem:s}=Pd(),i=D(!1),l=E(()=>i.value||o.value!=null&&n.highlightedElement.value===o.value);async function a(u){if(!(u.defaultPrevented||!Oo(u))){if(t.disabled)n.onItemLeave(u);else if(!n.onItemEnter(u)){const f=u.currentTarget;n.highlightedElement.value=f,["INPUT","TEXTAREA"].includes(Ze()?.tagName||"")||f.focus({preventScroll:!0})}}}async function c(u){if(await Ue(),u.defaultPrevented||!Oo(u)||n.highlightedElement.value!==o.value)return;!n.onItemLeave(u)&&n.highlightedElement.value===o.value&&(n.highlightedElement.value=void 0)}return(u,d)=>(b(),J(h(s),{value:{textValue:u.textValue}},{default:Y(()=>[G(h(yt),Ve({ref:h(r),role:"menuitem",tabindex:"-1"},u.$attrs,{as:u.as,"as-child":u.asChild,"aria-disabled":u.disabled||void 0,"data-disabled":u.disabled?"":void 0,"data-highlighted":l.value?"":void 0,onPointermove:a,onPointerleave:c,onFocus:d[0]||(d[0]=async f=>{await Ue(),!(f.defaultPrevented||u.disabled)&&(i.value=!0,h(n).highlightedElement.value=f.currentTarget)}),onBlur:d[1]||(d[1]=async f=>{await Ue(),!f.defaultPrevented&&(i.value=!1)})}),{default:Y(()=>[_e(u.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3},8,["value"]))}}),Q_=J_,Z_=Q({__name:"MenuItem",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:o,currentElement:s}=Ie(),i=ll(),l=zd(),a=D(!1);async function c(){const u=s.value;if(!n.disabled&&u){const d=new CustomEvent(Ky,{bubbles:!0,cancelable:!0});r("select",d),await Ue(),d.defaultPrevented?a.value=!1:i.onClose()}}return(u,d)=>(b(),J(Q_,Ve(n,{ref:h(o),onClick:c,onPointerdown:d[0]||(d[0]=()=>{a.value=!0}),onPointerup:d[1]||(d[1]=async f=>{await Ue(),!f.defaultPrevented&&(a.value||f.currentTarget?.click())}),onKeydown:d[2]||(d[2]=async f=>{const p=h(l).searchRef.value!=="";u.disabled||p&&f.key===" "||h(mi).includes(f.key)&&(f.currentTarget?.click(),f.preventDefault())})}),{default:Y(()=>[_e(u.$slots,"default")]),_:3},16))}}),e1=Z_,t1=Q({__name:"MenuRootContentModal",props:{loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,o=Yr(n,r),s=ms(),{forwardRef:i,currentElement:l}=Ie();return vd(l),(a,c)=>(b(),J(Ud,Ve(h(o),{ref:h(i),"trap-focus":h(s).open.value,"disable-outside-pointer-events":h(s).open.value,"disable-outside-scroll":!0,onDismiss:c[0]||(c[0]=u=>h(s).onOpenChange(!1)),onFocusOutside:c[1]||(c[1]=Bt(u=>r("focusOutside",u),["prevent"]))}),{default:Y(()=>[_e(a.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),n1=t1,r1=Q({__name:"MenuRootContentNonModal",props:{loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const o=Yr(e,t),s=ms();return(i,l)=>(b(),J(Ud,Ve(h(o),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:l[0]||(l[0]=a=>h(s).onOpenChange(!1))}),{default:Y(()=>[_e(i.$slots,"default")]),_:3},16))}}),o1=r1,s1=Q({__name:"MenuContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const o=Yr(e,t),s=ms(),i=ll();return(l,a)=>(b(),J(h(Qi),{present:l.forceMount||h(s).open.value},{default:Y(()=>[h(i).modal.value?(b(),J(n1,ht(Ve({key:0},{...l.$attrs,...h(o)})),{default:Y(()=>[_e(l.$slots,"default")]),_:3},16)):(b(),J(o1,ht(Ve({key:1},{...l.$attrs,...h(o)})),{default:Y(()=>[_e(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),i1=s1,l1=Q({__name:"MenuPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,r)=>(b(),J(h(Zi),ht(vt(t)),{default:Y(()=>[_e(n.$slots,"default")]),_:3},16))}}),a1=l1,u1=Q({__name:"MenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(b(),J(h(yt),Ve(t,{role:"separator","aria-orientation":"horizontal"}),{default:Y(()=>[_e(n.$slots,"default")]),_:3},16))}}),c1=u1;const[Hd,d1]=Ut("DropdownMenuRoot");var f1=Q({__name:"DropdownMenuRoot",props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t;Ie();const o=us(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),s=D(),{modal:i,dir:l}=lr(n),a=Ji(l);return d1({open:o,onOpenChange:c=>{o.value=c},onOpenToggle:()=>{o.value=!o.value},triggerId:"",triggerElement:s,contentId:"",modal:i,dir:a}),(c,u)=>(b(),J(h(G_),{open:h(o),"onUpdate:open":u[0]||(u[0]=d=>Ke(o)?o.value=d:null),dir:h(a),modal:h(i)},{default:Y(()=>[_e(c.$slots,"default",{open:h(o)})]),_:3},8,["open","dir","modal"]))}}),p1=f1,h1=Q({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(e,{emit:t}){const o=Yr(e,t);Ie();const s=Hd(),i=D(!1);function l(a){a.defaultPrevented||(i.value||setTimeout(()=>{s.triggerElement.value?.focus()},0),i.value=!1,a.preventDefault())}return s.contentId||=$o(void 0,"reka-dropdown-menu-content"),(a,c)=>(b(),J(h(i1),Ve(h(o),{id:h(s).contentId,"aria-labelledby":h(s)?.triggerId,style:{"--reka-dropdown-menu-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-dropdown-menu-content-available-width":"var(--reka-popper-available-width)","--reka-dropdown-menu-content-available-height":"var(--reka-popper-available-height)","--reka-dropdown-menu-trigger-width":"var(--reka-popper-anchor-width)","--reka-dropdown-menu-trigger-height":"var(--reka-popper-anchor-height)"},onCloseAutoFocus:l,onInteractOutside:c[0]||(c[0]=u=>{if(u.defaultPrevented)return;const d=u.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0,p=d.button===2||f;(!h(s).modal.value||p)&&(i.value=!0),h(s).triggerElement.value?.contains(u.target)&&u.preventDefault()})}),{default:Y(()=>[_e(a.$slots,"default")]),_:3},16,["id","aria-labelledby"]))}}),m1=h1,g1=Q({__name:"DropdownMenuItem",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,o=cr(t);return Ie(),(s,i)=>(b(),J(h(e1),ht(vt({...n,...h(o)})),{default:Y(()=>[_e(s.$slots,"default")]),_:3},16))}}),v1=g1,y1=Q({__name:"DropdownMenuPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,r)=>(b(),J(h(a1),ht(vt(t)),{default:Y(()=>[_e(n.$slots,"default")]),_:3},16))}}),b1=y1,_1=Q({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Ie(),(n,r)=>(b(),J(h(c1),ht(vt(t)),{default:Y(()=>[_e(n.$slots,"default")]),_:3},16))}}),x1=_1,w1=Q({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=Hd(),{forwardRef:r,currentElement:o}=Ie();return jt(()=>{n.triggerElement=o}),n.triggerId||=$o(void 0,"reka-dropdown-menu-trigger"),(s,i)=>(b(),J(h(V_),{"as-child":""},{default:Y(()=>[G(h(yt),{id:h(n).triggerId,ref:h(r),type:s.as==="button"?"button":void 0,"as-child":t.asChild,as:s.as,"aria-haspopup":"menu","aria-expanded":h(n).open.value,"aria-controls":h(n).open.value?h(n).contentId:void 0,"data-disabled":s.disabled?"":void 0,disabled:s.disabled,"data-state":h(n).open.value?"open":"closed",onClick:i[0]||(i[0]=async l=>{!s.disabled&&l.button===0&&l.ctrlKey===!1&&(h(n)?.onOpenToggle(),await Ue(),h(n).open.value&&l.preventDefault())}),onKeydown:i[1]||(i[1]=Cc(l=>{s.disabled||(["Enter"," "].includes(l.key)&&h(n).onOpenToggle(),l.key==="ArrowDown"&&h(n).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())},["enter","space","arrow-down"]))},{default:Y(()=>[_e(s.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),k1=w1;const Mo=D(null),Kd=D(null);let Mr=null;function Wd(e){Gd(),Kd.value=e,!(e===null||e<=0)&&(Mr=setTimeout(()=>{Mr=null,td()},e*800))}function Gd(){Mr!==null&&(clearTimeout(Mr),Mr=null)}vv(Wd);const Kn=tn(Mo);async function C1(e,t){const{data:n,response:r}=await Le.POST("/auth/login",{body:{login:e,password:t}});return!r.ok||!n?!1:(Wd(typeof n.data.expires_in=="number"?n.data.expires_in:null),!0)}async function Yd(){const{data:e,response:t}=await Le.GET("/auth/me");return Mo.value=t.ok&&e?e.data:null,Mo.value}function Xd(){Gd(),Mo.value=null,Kd.value=null}async function S1(e){try{await Le.POST("/auth/logout")}catch{}finally{Xd(),Sv([]),$v([])}e&&await e.replace({name:"login"}).catch(()=>{})}const E1={class:"flex size-[34px] shrink-0 items-center justify-center rounded-full bg-accent text-[13px] font-bold text-on-accent","aria-hidden":"true","data-user-initials":""},A1={class:"flex flex-col leading-tight max-[1099px]:hidden","data-user-identity":""},$1={class:"font-semibold"},O1={key:0,class:"text-[12px] text-muted","data-user-role":""},P1={class:"flex items-center gap-3 px-2 py-2"},T1={class:"flex size-10 shrink-0 items-center justify-center rounded-full bg-accent text-[14px] font-bold text-on-accent","aria-hidden":"true"},R1={class:"flex min-w-0 flex-col leading-tight"},M1={class:"truncate font-bold"},D1={class:"truncate text-[13px] text-muted"},I1=Q({__name:"UserMenu",setup(e){const t=Wr(),n=E(()=>{const i=Kn.value;if(!i)return"";const l=`${i.first_name} ${i.last_name}`.trim();return l===""?i.login:l}),r=E(()=>{const i=Kn.value;if(!i)return"";const l=[i.first_name,i.last_name].map(a=>a.trim()).filter(Boolean);return l.length>0?l.slice(0,2).map(a=>a.charAt(0).toUpperCase()).join(""):i.login.slice(0,2).toUpperCase()}),o=E(()=>Kn.value?.role?.name??"");async function s(){await S1(t)}return(i,l)=>(b(),J(h(p1),{modal:!1},{default:Y(()=>[G(h(k1),{"data-user-menu":"",disabled:!h(Kn),"aria-label":`${h(H)("backend::lang.nav.user_menu")}: ${n.value}`,class:"flex h-input items-center gap-2.5 rounded-inner px-2 text-left transition-colors duration-150 ease-out hover:bg-hover"},{default:Y(()=>[P("span",E1,F(r.value),1),P("span",A1,[P("span",$1,F(n.value),1),o.value?(b(),A("span",O1,F(o.value),1)):fe("",!0)]),G(h(es),{size:16,class:"text-muted","aria-hidden":"true"})]),_:1},8,["disabled","aria-label"]),G(h(b1),null,{default:Y(()=>[G(h(m1),{"data-user-menu-content":"",align:"end","side-offset":8,class:"z-50 flex w-[280px] flex-col rounded-[14px] border border-border bg-surface p-2 text-text shadow-menu"},{default:Y(()=>[P("div",P1,[P("span",T1,F(r.value),1),P("span",R1,[P("span",M1,F(n.value),1),P("span",D1,F(h(Kn)?.email),1)])]),G(h(x1),{class:"my-1 h-px bg-border"}),G(h(v1),{"data-action":"logout",class:"flex h-10 cursor-pointer items-center gap-2.5 rounded-control px-3 font-medium outline-none transition-colors duration-150 ease-out data-[highlighted]:bg-hover",onSelect:s},{default:Y(()=>[G(h(jc),{size:18,"aria-hidden":"true"}),P("span",null,F(h(H)("backend::lang.auth.logout")),1)]),_:1})]),_:1})]),_:1})]),_:1}))}}),q1=4e3,zr=D([]),_i=new Map;let F1=1;const B1=tn(zr);function Ye(e,t="success"){const n=F1++;return zr.value=[{id:n,text:e,tone:t},...zr.value],_i.set(n,setTimeout(()=>Jd(n),q1)),n}function Jd(e){const t=_i.get(e);t!==void 0&&(clearTimeout(t),_i.delete(e)),zr.value=zr.value.filter(n=>n.id!==e)}const N1=["role","data-tone"],L1={class:"font-medium"},j1=["aria-label","onClick"],V1=Q({__name:"Toast",setup(e){return(t,n)=>(b(),J(Ih,{tag:"div",name:"toast",class:"pointer-events-none fixed inset-x-0 bottom-[88px] z-50 flex flex-col items-center gap-2 px-4"},{default:Y(()=>[(b(!0),A(ge,null,De(h(B1),r=>(b(),A("div",{key:r.id,role:r.tone==="danger"?"alert":"status","data-tone":r.tone,class:"pointer-events-auto flex max-w-[560px] items-center gap-3 rounded-[14px] bg-[#1d2740] py-3 pr-2.5 pl-3.5 text-white shadow-toast"},[P("span",{class:Ce([r.tone==="danger"?"bg-[#f58a8a] text-[#1d2740]":"bg-accent text-on-accent","flex size-[26px] shrink-0 items-center justify-center rounded-full"]),"aria-hidden":"true"},[r.tone==="danger"?(b(),J(h(Gr),{key:0,size:16})):(b(),J(h(or),{key:1,size:16}))],2),P("span",L1,F(r.text),1),P("button",{type:"button","aria-label":h(H)("backend::lang.form.close"),class:"flex size-8 items-center justify-center rounded-pager text-[#c3cbda] transition-colors duration-150 ease-out hover:bg-side-hover hover:text-white",onClick:o=>h(Jd)(r.id)},[G(h(rs),{size:16,"aria-hidden":"true"})],8,j1)],8,N1))),128))]),_:1}))}}),z1={class:"flex min-h-screen bg-bg text-text"},U1={class:"flex min-w-0 flex-1 flex-col"},H1={class:"flex h-header shrink-0 items-center justify-between gap-4 border-b border-border bg-surface pr-6 pl-8"},K1={class:"min-w-0 flex-1 px-8 py-7"},W1=Q({__name:"AppShell",setup(e){const t=zt(),{collapsed:n,watchViewport:r}=ud(),o=r();wt(o);const s=E(()=>ls(String(t.params.vendor??""),String(t.params.plugin??"")));return(i,l)=>(b(),A("div",z1,[G(Lv),s.value&&!h(n)?(b(),J(Hv,{key:0,entry:s.value},null,8,["entry"])):fe("",!0),P("div",U1,[P("header",H1,[G(Jv),G(I1)]),P("main",K1,[_e(i.$slots,"default")])]),G(V1)]))}}),G1=Q({__name:"App",setup(e){const t=zt(),n=E(()=>t.meta.shell===!0);return(r,o)=>n.value?(b(),J(W1,{key:0},{default:Y(()=>[G(h(ai),null,{default:Y(({Component:s,route:i})=>[(b(),J(vn(s),{key:i.path}))]),_:1})]),_:1})):(b(),J(h(ai),{key:1}))}}),Y1={class:"flex min-h-screen items-center justify-center px-4",style:{background:"radial-gradient(ellipse at 50% 35%, #2b3a5c 0%, #1d2740 60%)"}},X1={class:"flex w-full max-w-[400px] flex-col gap-6"},J1={class:"flex items-center justify-center gap-3"},Q1={class:"flex size-[34px] items-center justify-center rounded-full bg-accent-soft"},Z1={class:"text-[22px] font-bold tracking-[-0.02em]"},e0={class:"flex flex-col gap-1.5"},t0={class:"font-semibold"},n0={class:"flex flex-col gap-1.5"},r0={class:"font-semibold"},o0=["aria-invalid"],s0={key:0,role:"alert",class:"flex items-center gap-2.5 rounded-control bg-[#fdf0f0] px-3.5 py-3 text-[#c62828]"},i0=["disabled"],l0=Q({__name:"LoginView",setup(e){const t=zt(),n=Wr(),r=D(""),o=D(""),s=D(!1),i=D(!1);async function l(){if(!i.value){i.value=!0,s.value=!1;try{if(!await C1(r.value.trim(),o.value)||!await Yd()){s.value=!0;return}o.value="",await Promise.all([od(),sd().catch(()=>[])]),await n.replace(pf(t.query.redirect)??"/")}finally{i.value=!1}}}return(a,c)=>(b(),A("main",Y1,[P("div",X1,[P("div",J1,[P("span",Q1,[G(h(ji),{size:20,class:"text-accent","aria-hidden":"true"})]),c[2]||(c[2]=P("span",{class:"text-[18px] font-bold text-white"},[Ee("Summer"),P("span",{class:"text-accent"},"CMS")],-1))]),P("form",{class:"flex flex-col gap-[18px] rounded-card bg-white p-8 text-[#141b2d] shadow-login",novalidate:"",onSubmit:Bt(l,["prevent"])},[P("h1",Z1,F(h(H)("backend::lang.auth.title")),1),P("label",e0,[P("span",t0,F(h(H)("backend::lang.auth.login")),1),Ws(P("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.value=u),name:"login",type:"text",autocomplete:"username",required:"",class:"h-input rounded-control border border-[#d2d8e2] bg-white px-3.5"},null,512),[[Ql,r.value]])]),P("label",n0,[P("span",r0,F(h(H)("backend::lang.auth.password")),1),Ws(P("input",{"onUpdate:modelValue":c[1]||(c[1]=u=>o.value=u),name:"password",type:"password",autocomplete:"current-password",required:"","aria-invalid":s.value?"true":void 0,class:Ce([s.value?"border-[#c62828]":"border-[#d2d8e2]","h-input rounded-control border bg-white px-3.5"])},null,10,o0),[[Ql,o.value]])]),s.value?(b(),A("div",s0,[G(h(Gr),{size:18,"aria-hidden":"true"}),P("span",null,F(h(H)("backend::lang.auth.invalid")),1)])):fe("",!0),P("button",{type:"submit",disabled:i.value,class:"h-input rounded-control bg-[#22304d] font-semibold text-white disabled:opacity-60"},F(h(H)("backend::lang.auth.submit")),9,i0)],32)])]))}}),a0=/^filter\[(.+)\]$/,u0=/^[1-9]\d*$/;function Ln(e){const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"?t:""}function Ya(e){return u0.test(e)?Number(e):void 0}function c0(e){const t={},n=Ln(e.search).trim();n!==""&&(t.search=n);const r=Ln(e.sort).trim();if(r!==""){t.sort=r;const l=Ln(e.dir);t.dir=l==="desc"?"desc":"asc"}const o=Ya(Ln(e.page));o!==void 0&&(t.page=o);const s=Ya(Ln(e.per_page));s!==void 0&&(t.per_page=s);const i={};for(const l of Object.keys(e).sort()){const a=a0.exec(l)?.[1],c=Ln(e[l]);a&&c!==""&&(i[a]=c)}return Object.keys(i).length>0&&(t.filter=i),t}function Qd(e){const t={};e.search&&(t.search=e.search),e.sort&&(t.sort=e.sort,t.dir=e.dir==="desc"?"desc":"asc"),e.page!==void 0&&e.page>1&&(t.page=String(e.page)),e.per_page!==void 0&&(t.per_page=String(e.per_page));for(const n of Object.keys(e.filter??{}).sort()){const r=e.filter?.[n];r!==void 0&&r!==""&&(t[`filter[${n}]`]=r)}return t}function d0(e){return JSON.stringify(Qd(e))}const f0=/^\d+$/;function Zd(e,t,n){const r=is(t),o=bn(t);if(!r||!o)return"/";const i=((e??"").trim().split(/[?#]/,1)[0]??"").split("/").filter(u=>u!==""),l=[r.vendor,r.plugin,r.controller];if(!l.every((u,d)=>i[d]?.toLowerCase()===u.toLowerCase()))return o;const c=i.slice(l.length);if(c.length===0)return o;if(c.length===1&&c[0]==="create")return`${o}/create`;if(c.length===2&&c[0]==="update"){const u=c[1]===":id"?String(n??""):c[1]??"";return f0.test(u)?`${o}/${u}`:o}return o}const p0={key:0,"data-switch":"true",class:"inline-flex h-6 items-center gap-1 rounded-pill bg-ok-bg px-2.5 text-[12px] font-semibold text-ok-text"},h0={key:1,"data-switch":"false",class:"inline-flex h-6 items-center rounded-pill border border-border-strong px-2.5 text-[12px] font-semibold text-muted"},m0={key:1,class:"text-muted","data-empty":""},g0={key:2,class:"text-[13px] text-muted tabular-nums"},Vs=Q({__name:"CellValue",props:{column:{},value:{}},setup(e){const t=e;function n(c){return c==null||c===""}function r(c){return n(c)?"":Array.isArray(c)?c.map(r).filter(u=>u!=="").join(", "):typeof c=="boolean"?H(c?"backend::lang.list.column_switch_true":"backend::lang.list.column_switch_false"):typeof c=="object"?"":String(c)}function o(c){return String(c).padStart(2,"0")}function s(c){if(typeof c!="string"&&typeof c!="number")return"";const u=new Date(c);return Number.isNaN(u.getTime())?String(c):`${u.getFullYear()}-${o(u.getMonth()+1)}-${o(u.getDate())} ${o(u.getHours())}:${o(u.getMinutes())}`}function i(c){return typeof c=="string"?c!==""&&c!=="0"&&c.toLowerCase()!=="false":!!c}const l=E(()=>t.column.type==="switch"?"switch":t.column.type==="datetime"?"datetime":"text"),a=E(()=>l.value==="datetime"?s(t.value):r(t.value));return(c,u)=>l.value==="switch"&&!n(e.value)?(b(),A(ge,{key:0},[i(e.value)?(b(),A("span",p0,[G(h(Nc),{size:14,"aria-hidden":"true"}),Ee(F(h(H)("backend::lang.list.column_switch_true")),1)])):(b(),A("span",h0,F(h(H)("backend::lang.list.column_switch_false")),1))],64)):a.value===""?(b(),A("span",m0,"—")):l.value==="datetime"?(b(),A("span",g0,F(a.value),1)):(b(),A(ge,{key:3},[Ee(F(a.value),1)],64))}}),v0={class:"overflow-x-auto"},y0={class:"sticky top-0 z-10"},b0={class:"h-row-head border-y border-border bg-subtle"},_0={key:0,scope:"col","data-select":"",class:"w-[52px] pl-5"},x0=["aria-checked","aria-label","disabled"],w0=["aria-sort"],k0=["data-sort","onClick"],C0=["aria-busy"],S0={key:0,class:"pl-5"},E0={key:1},A0=["colspan"],$0={class:"text-muted"},O0=["aria-selected","onClick"],P0={key:0,"data-select":"",class:"pl-5"},T0=["aria-checked","aria-label","onClick"],R0={key:0,class:"flex items-center gap-3"},M0={"data-avatar":"",class:"flex size-[30px] shrink-0 items-center justify-center rounded-full bg-subtle text-[12px] font-bold text-text","aria-hidden":"true"},ef=Q({__name:"DataTable",props:{columns:{},rows:{},loading:{type:Boolean,default:!1},rowLink:{type:Function,default:void 0},selectable:{type:Boolean,default:!1},selected:{default:()=>[]},sortable:{type:Boolean,default:!1},sort:{default:null},variant:{default:"list"}},emits:["update:selected","sort"],setup(e,{emit:t}){const n=e,r=t,o=Wr();function s($){const O=$.id;return typeof O=="number"||typeof O=="string"?O:null}function i($,O){const T=s($);return T===null?`row-${O}`:String(T)}function l($){return n.rowLink?n.rowLink($):null}function a($,O){if($.target?.closest("a, button, input, label, select"))return;const oe=l(O);oe&&o.push(oe)}const c=E(()=>n.rows.map(s).filter($=>$!==null)),u=E(()=>new Set(n.selected.map(String))),d=E(()=>{const $=c.value,O=$.filter(T=>u.value.has(String(T))).length;return O===0?"false":O===$.length?"true":"mixed"});function f($){const O=s($);return O!==null&&u.value.has(String(O))}function p(){r("update:selected",d.value==="true"?[]:[...c.value])}function m($){const O=s($);O!==null&&(u.value.has(String(O))?r("update:selected",n.selected.filter(T=>String(T)!==String(O))):r("update:selected",[...n.selected,O]))}function g($){if(n.sort?.column===$.key)return n.sort.dir==="desc"?"descending":"ascending"}function y($){return n.sortable&&$.sortable}const w=E(()=>n.variant==="relation"),x=E(()=>w.value?"h-[56px]":"h-row"),k=E(()=>w.value?3:8);function S($){return(typeof $=="string"||typeof $=="number"?String($):"").split(/[\s@._-]+/).filter(Boolean).slice(0,2).map(T=>T.charAt(0).toUpperCase()).join("")}function N($,O){return O===0?"font-semibold":w.value||$.relation?"text-muted":""}const X=E(()=>Math.max(n.columns.length+(n.selectable?1:0),1)),q=["w-3/5","w-2/5","w-1/2","w-3/4","w-1/3","w-2/3","w-1/2","w-2/5"];return($,O)=>(b(),A("div",v0,[P("table",{class:Ce([w.value?"min-w-[480px]":"min-w-[640px]","w-full border-collapse text-left"])},[P("thead",y0,[P("tr",b0,[e.selectable?(b(),A("th",_0,[P("button",{type:"button",role:"checkbox","aria-checked":d.value,"aria-label":h(H)("backend::lang.list.select_all"),disabled:e.loading||c.value.length===0,class:Ce([d.value==="false"?"border-border-strong bg-surface":"border-primary bg-primary text-on-primary","flex size-[18px] items-center justify-center rounded-checkbox border disabled:opacity-60"]),onClick:p},[d.value==="mixed"?(b(),J(h(Vc),{key:0,size:14,"aria-hidden":"true"})):d.value==="true"?(b(),J(h(or),{key:1,size:14,"aria-hidden":"true"})):fe("",!0)],10,x0)])):fe("",!0),(b(!0),A(ge,null,De(e.columns,T=>(b(),A("th",{key:T.key,scope:"col","aria-sort":y(T)?g(T)??"none":void 0,class:Ce([g(T)?"text-text":"text-muted","px-3.5 text-[12px] font-semibold first:pl-5 last:pr-5"])},[y(T)?(b(),A("button",{key:0,type:"button","data-sort":T.key,class:"inline-flex items-center gap-1 font-semibold",onClick:oe=>r("sort",T.key)},[Ee(F(T.label)+" ",1),g(T)==="ascending"?(b(),J(h(Lc),{key:0,size:14,"aria-hidden":"true"})):g(T)==="descending"?(b(),J(h(Bc),{key:1,size:14,"aria-hidden":"true"})):fe("",!0)],8,k0)):(b(),A(ge,{key:1},[Ee(F(T.label),1)],64))],10,w0))),128))])]),P("tbody",{"aria-busy":e.loading?"true":void 0},[e.loading?(b(!0),A(ge,{key:0},De(k.value,T=>(b(),A("tr",{key:`skeleton-${T}`,"data-skeleton":"",class:Ce([x.value,"border-b border-border"])},[e.selectable?(b(),A("td",S0,[...O[0]||(O[0]=[P("span",{class:"block size-[18px] rounded-checkbox bg-skel"},null,-1)])])):fe("",!0),(b(!0),A(ge,null,De(e.columns,oe=>(b(),A("td",{key:oe.key,class:"px-3.5 first:pl-5 last:pr-5"},[P("span",{class:Ce([q[(T-1)%q.length],"block h-3 rounded-[6px] bg-skel"])},null,2)]))),128))],2))),128)):e.rows.length===0?(b(),A("tr",E0,[P("td",{colspan:X.value,class:"px-5 py-20 text-center"},[_e($.$slots,"empty",{},()=>[P("span",$0,F(h(H)("backend::lang.list.no_records")),1)])],8,A0)])):(b(!0),A(ge,{key:2},De(e.rows,(T,oe)=>(b(),A("tr",{key:i(T,oe),class:Ce([[x.value,f(T)?"bg-sel":l(T)?"hover:bg-hover":"",l(T)?"cursor-pointer":""],"border-b border-border transition-colors duration-150 ease-out"]),"aria-selected":e.selectable?f(T)?"true":"false":void 0,onClick:I=>a(I,T)},[e.selectable?(b(),A("td",P0,[P("button",{type:"button",role:"checkbox","aria-checked":f(T)?"true":"false","aria-label":h(H)("backend::lang.list.select_row"),class:Ce([f(T)?"border-primary bg-primary text-on-primary":"border-border-strong bg-surface","flex size-[18px] items-center justify-center rounded-checkbox border"]),onClick:I=>m(T)},[f(T)?(b(),J(h(or),{key:0,size:14,"aria-hidden":"true"})):fe("",!0)],10,T0)])):fe("",!0),(b(!0),A(ge,null,De(e.columns,(I,le)=>(b(),A("td",{key:I.key,class:Ce([N(I,le),"px-3.5 first:pl-5 last:pr-5"])},[w.value&&le===0?(b(),A("span",R0,[P("span",M0,F(S(T[I.key])),1),G(Vs,{column:I,value:T[I.key]},null,8,["column","value"])])):le===0&&l(T)?(b(),J(h(rn),{key:1,to:l(T),class:"text-text no-underline"},{default:Y(()=>[G(Vs,{column:I,value:T[I.key]},null,8,["column","value"])]),_:2},1032,["to"])):(b(),J(Vs,{key:2,column:I,value:T[I.key]},null,8,["column","value"]))],2))),128))],10,O0))),128))],8,C0)],2)]))}}),D0=["aria-label"],I0={key:0,class:"flex flex-col gap-1 text-[13px]"},q0={class:"font-semibold text-muted"},F0=["data-filter","value","onChange"],B0=["value"],N0={key:1,class:"flex flex-col gap-1 text-[13px]"},L0={class:"mb-1 font-semibold text-muted"},j0={class:"flex items-center gap-2"},V0=["data-filter","aria-label","value","onChange"],z0=["data-filter","aria-label","value","onChange"],U0={key:2,class:"flex flex-col gap-1 text-[13px]"},H0={class:"font-semibold text-muted"},K0=["data-filter","value","onChange"],W0=["value"],br="",oo="h-button rounded-control border border-border-strong bg-surface px-3 text-text",G0=Q({__name:"FilterBar",props:{filters:{},values:{},source:{}},emits:["update"],setup(e,{emit:t}){const n=e,r=t;function o(d){if(d.options&&d.options.length>0)return d.options.map(p=>({value:JSON.stringify(p.value),label:p.label}));const f=[];return d.trueValue!==void 0&&f.push({value:JSON.stringify(d.trueValue),label:H("backend::lang.list.column_switch_true")}),d.falseValue!==void 0&&f.push({value:JSON.stringify(d.falseValue),label:H("backend::lang.list.column_switch_false")}),f}const s=D({});async function i(d){const{data:f}=await Le.GET("/{vendor}/{plugin}/{controller}/filters/{scope}/options",{params:{path:{...n.source,scope:d.name}}});s.value={...s.value,[d.name]:f?.data??[]}}jt(()=>{for(const d of n.filters)d.type==="scope"&&i(d)});const l=Dn({});function a(){for(const d of n.filters){if(d.type!=="daterange")continue;const[f="",p=""]=(n.values[d.name]??"").split(".."),m=l[d.name];(!m||n.values[d.name]!==void 0||m.from!==""&&m.to!=="")&&(l[d.name]={from:f,to:p})}}ze(()=>n.values,a,{immediate:!0,deep:!0});function c(d,f,p){const m={...l[d.name]??{from:"",to:""},[f]:p};l[d.name]=m,m.from!==""&&m.to!==""?r("update",d.name,`${m.from}..${m.to}`):(m.from===""&&m.to===""||n.values[d.name]!==void 0)&&r("update",d.name,null)}function u(d,f){r("update",d.name,f===br?null:f)}return(d,f)=>(b(),A("div",{role:"group","aria-label":h(H)("backend::lang.list.filters"),"data-filter-bar":"",class:"flex flex-wrap items-end gap-4 border-t border-border px-5 py-3.5"},[(b(!0),A(ge,null,De(e.filters,p=>(b(),A(ge,{key:p.name},[p.type==="switch"?(b(),A("label",I0,[P("span",q0,F(p.label||p.name),1),P("select",{"data-filter":p.name,value:e.values[p.name]??br,class:Ce(oo),onChange:m=>u(p,m.target.value)},[P("option",{value:br},F(h(H)("backend::lang.list.filter_all")),1),(b(!0),A(ge,null,De(o(p),m=>(b(),A("option",{key:m.value,value:m.value},F(m.label),9,B0))),128))],40,F0)])):p.type==="daterange"?(b(),A("fieldset",N0,[P("legend",L0,F(p.label||p.name),1),P("div",j0,[P("input",{type:"date","data-filter":`${p.name}-from`,"aria-label":h(H)("backend::lang.list.filter_from"),value:l[p.name]?.from??"",class:Ce(oo),onChange:m=>c(p,"from",m.target.value)},null,40,V0),f[0]||(f[0]=P("span",{"aria-hidden":"true"},"–",-1)),P("input",{type:"date","data-filter":`${p.name}-to`,"aria-label":h(H)("backend::lang.list.filter_to"),value:l[p.name]?.to??"",class:Ce(oo),onChange:m=>c(p,"to",m.target.value)},null,40,z0)])])):p.type==="scope"?(b(),A("label",U0,[P("span",H0,F(p.label||p.name),1),(b(),A("select",{key:`${p.name}-${s.value[p.name]?.length??-1}`,"data-filter":p.name,value:e.values[p.name]??br,class:Ce(oo),onChange:m=>u(p,m.target.value)},[P("option",{value:br},F(h(H)("backend::lang.list.filter_all")),1),(b(!0),A(ge,null,De(s.value[p.name]??[],m=>(b(),A("option",{key:m.value,value:m.value},F(m.label),9,W0))),128))],40,K0))])):fe("",!0)],64))),128))],8,D0))}}),Y0=["type","disabled"],ut=Q({__name:"Button",props:{variant:{default:"outline"},size:{default:"md"},type:{default:"button"},disabled:{type:Boolean,default:!1},icon:{default:void 0},to:{default:void 0}},setup(e){const t=e,n={primary:"bg-primary text-on-primary hover:opacity-90",outline:"border border-border-strong bg-surface text-text hover:bg-hover",ghost:"text-muted hover:bg-hover hover:text-text",danger:"border border-danger bg-surface text-danger hover:bg-danger-soft"},r=E(()=>["inline-flex shrink-0 items-center justify-center gap-2 rounded-control px-4 font-semibold whitespace-nowrap no-underline transition-colors duration-150 ease-out disabled:cursor-not-allowed disabled:opacity-60",t.size==="sm"?"h-[38px]":"h-button",n[t.variant]]);return(o,s)=>e.to!==void 0?(b(),J(h(rn),{key:0,to:e.to,class:Ce(r.value)},{default:Y(()=>[e.icon?(b(),J(vn(e.icon),{key:0,size:16,"aria-hidden":"true"})):fe("",!0),_e(o.$slots,"default")]),_:3},8,["to","class"])):(b(),A("button",{key:1,type:e.type,disabled:e.disabled,class:Ce(r.value)},[e.icon?(b(),J(vn(e.icon),{key:0,size:16,"aria-hidden":"true"})):fe("",!0),_e(o.$slots,"default")],10,Y0))}}),X0={class:"flex flex-wrap items-center justify-between gap-3 px-5 py-4"},J0={key:0,class:"relative block w-[320px] max-w-full"},Q0={class:"sr-only"},Z0=["value","placeholder"],ex={key:1},tx={class:"flex items-center gap-2.5"},nx={key:0,"data-selected-pill":"",class:"inline-flex h-8 items-center gap-1.5 rounded-pill bg-sel px-3 text-[13px] font-semibold"},rx=Q({__name:"ListToolbar",props:{showSearch:{type:Boolean},search:{},searchPrompt:{},buttons:{},selectedCount:{},selectedLabel:{},deleteLabel:{}},emits:["update:search","delete"],setup(e,{emit:t}){const n=t;return(r,o)=>(b(),A("div",X0,[e.showSearch?(b(),A("label",J0,[P("span",Q0,F(h(H)("backend::lang.list.search")),1),G(h(ns),{size:18,class:"pointer-events-none absolute top-1/2 left-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"}),P("input",{type:"search","data-list-search":"",value:e.search,placeholder:e.searchPrompt,class:"h-button w-full rounded-control border border-transparent bg-subtle pr-3.5 pl-10",onInput:o[0]||(o[0]=s=>n("update:search",s.target.value))},null,40,Z0)])):(b(),A("span",ex)),P("div",tx,[e.selectedCount>0?(b(),A("span",nx,[G(h(or),{size:14,"aria-hidden":"true"}),Ee(F(e.selectedLabel),1)])):fe("",!0),(b(!0),A(ge,null,De(e.buttons,s=>(b(),A(ge,{key:s},[s==="delete"?(b(),J(ut,{key:0,"data-action":"delete",variant:e.selectedCount>0?"danger":"outline",icon:h(Vi),disabled:e.selectedCount===0,onClick:o[1]||(o[1]=i=>n("delete"))},{default:Y(()=>[Ee(F(e.deleteLabel),1)]),_:1},8,["variant","icon","disabled"])):fe("",!0)],64))),128))])]))}}),ox={class:"flex flex-wrap items-center gap-x-6 gap-y-3 border-t border-border px-5 py-3.5 text-[13px] text-muted"},sx={"data-range":""},ix={key:0,class:"flex items-center gap-2"},lx=["value"],ax=["value"],ux=["aria-label"],cx=["disabled"],dx={key:0,"aria-hidden":"true",class:"px-1"},fx=["data-page","aria-current","onClick"],px=["disabled"],zs="inline-flex h-pager min-w-pager items-center justify-center gap-1 rounded-pager border border-border px-2.5 text-[13px] text-text disabled:cursor-not-allowed disabled:opacity-60 hover:bg-hover",tf=Q({__name:"Pagination",props:{meta:{},loading:{type:Boolean},perPageOptions:{},perPage:{}},emits:["page","perPage"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>n.meta?.total??0),s=E(()=>n.meta?.page??1),i=E(()=>Math.max(n.meta?.last_page??1,1)),l=E(()=>{const u=n.meta;if(!u||u.total===0)return Ui("backend::lang.list.results",0);const d=(u.page-1)*u.per_page+1,f=Math.min(u.page*u.per_page,u.total);return H("backend::lang.list.pagination_range",{from:d,to:f,total:u.total})}),a=E(()=>{const u=i.value,d=s.value,f=new Set([1,u,d-1,d,d+1].filter(g=>g>=1&&g<=u));d<=3&&[2,3].forEach(g=>g<=u&&f.add(g)),d>=u-2&&[u-1,u-2].forEach(g=>g>=1&&f.add(g));const p=[...f].sort((g,y)=>g-y),m=[];return p.forEach((g,y)=>{const w=p[y-1];w!==void 0&&g-w>1&&m.push(null),m.push(g)}),m});function c(u){const d=Number(u.target.value);Number.isFinite(d)&&d>0&&r("perPage",d)}return(u,d)=>(b(),A("footer",ox,[P("span",sx,F(e.loading?h(H)("backend::lang.list.loading"):l.value),1),e.perPageOptions.length>1?(b(),A("label",ix,[P("span",null,F(h(H)("backend::lang.list.records_per_page")),1),P("select",{"data-per-page":"",value:String(e.perPage),class:"h-pager rounded-pager border border-border-strong bg-surface px-2 text-text",onChange:c},[(b(!0),A(ge,null,De(e.perPageOptions,f=>(b(),A("option",{key:f,value:String(f)},F(f),9,ax))),128))],40,lx)])):fe("",!0),!e.loading&&o.value>0?(b(),A("nav",{key:1,"aria-label":h(H)("backend::lang.list.pagination"),class:"ml-auto flex items-center gap-1.5"},[P("button",{type:"button","data-page":"prev",class:Ce(zs),disabled:s.value<=1,onClick:d[0]||(d[0]=f=>r("page",s.value-1))},[G(h(Li),{size:14,"aria-hidden":"true"}),Ee(F(h(H)("backend::lang.list.prev_page")),1)],8,cx),(b(!0),A(ge,null,De(a.value,(f,p)=>(b(),A(ge,{key:f??`gap-${p}`},[f===null?(b(),A("span",dx,"…")):(b(),A("button",{key:1,type:"button","data-page":f,"aria-current":f===s.value?"page":void 0,class:Ce([zs,f===s.value?"border-transparent bg-sel font-bold":""]),onClick:m=>f!==s.value&&r("page",f)},F(f),11,fx))],64))),128)),P("button",{type:"button","data-page":"next",class:Ce(zs),disabled:s.value>=i.value,onClick:d[1]||(d[1]=f=>r("page",s.value+1))},[Ee(F(h(H)("backend::lang.list.next_page")),1),G(h(ts),{size:14,"aria-hidden":"true"})],8,px)],8,ux)):fe("",!0)]))}}),hx={class:"flex gap-2.5"},al=Q({__name:"ConfirmDialog",props:{open:{type:Boolean},message:{},title:{default:void 0},confirmLabel:{default:void 0},cancelLabel:{default:void 0},danger:{type:Boolean,default:!1}},emits:["update:open","confirm","cancel"],setup(e,{emit:t}){const n=t;function r(s){n("update:open",s),s||n("cancel")}function o(){n("confirm"),n("update:open",!1)}return(s,i)=>(b(),J(h(Sb),{open:e.open,"onUpdate:open":r},{default:Y(()=>[G(h(kb),null,{default:Y(()=>[G(h(xb),{class:"fixed inset-0 z-40 bg-overlay"}),G(h(mb),{"data-confirm-dialog":"",class:"fixed top-1/2 left-1/2 z-50 flex w-[calc(100%-32px)] max-w-[440px] -translate-x-1/2 -translate-y-1/2 flex-col gap-4 rounded-modal bg-surface p-6 text-text shadow-pop"},{default:Y(()=>[G(h(Ab),{class:"text-[20px] font-bold tracking-[-0.01em]"},{default:Y(()=>[Ee(F(e.title??h(H)("backend::lang.form.confirm")),1)]),_:1}),G(h(bb),{class:"text-muted"},{default:Y(()=>[Ee(F(e.message),1)]),_:1}),P("div",hx,[G(h(vb),{"data-action":"cancel",class:"inline-flex h-button flex-1 items-center justify-center rounded-control border border-border-strong bg-surface font-semibold hover:bg-hover"},{default:Y(()=>[Ee(F(e.cancelLabel??h(H)("backend::lang.form.cancel")),1)]),_:1}),P("button",{type:"button","data-action":"confirm",class:Ce([e.danger?"bg-danger text-white":"bg-primary text-on-primary","inline-flex h-button flex-1 items-center justify-center rounded-control font-semibold hover:opacity-90"]),onClick:o},F(e.confirmLabel??h(H)("backend::lang.form.confirm")),3)])]),_:1})]),_:1})]),_:1},8,["open"]))}});function ul(){const e=D(null);let t=null;function n(o){const s=t;t=null,e.value=null,s?.(o)}function r(o){return n(!1),e.value=o,new Promise(s=>{t=s})}return{request:e,ask:r,confirm:()=>n(!0),cancel:()=>n(!1)}}const mx={class:"flex flex-col gap-5"},gx={class:"flex flex-wrap items-end justify-between gap-4"},vx={class:"flex flex-col"},yx={class:"text-[26px] font-bold tracking-[-0.02em]"},bx={key:0,"data-record-count":"",class:"text-muted"},_x={key:0,class:"flex items-center gap-2.5"},xx={class:"overflow-hidden rounded-card border border-border bg-surface shadow-card"},wx={key:2,role:"alert",class:"border-t border-border px-5 py-4 text-danger"},kx={key:0,"data-empty-search":"",class:"flex flex-col items-center gap-3"},Cx={class:"flex size-14 items-center justify-center rounded-full bg-subtle text-muted"},Sx={class:"text-[17px] font-bold"},Ex={class:"max-w-[420px] text-muted"},Ax={key:1,"data-empty-list":"",class:"text-muted"},$x=300,Ox=Q({__name:"ListView",setup(e){const t=zt(),n=Wr(),r={vendor:String(t.params.vendor??""),plugin:String(t.params.plugin??""),controller:String(t.params.controller??"")},o=rd(r),s=bn(o)??"/",i=D(null),l=D([]),a=D(null),c=D(!0),u=D(!1),d=D(!1),f=E(()=>u.value||d.value),p=D([]),m=D(!1),g=ul(),y=E(()=>c0(t.query)),w=D(y.value.search??""),x=E(()=>i.value?.messages),k=E(()=>i.value?.title?i.value.title:ls(r.vendor,r.plugin)?.sideMenu.find(ne=>ne.controller===o)?.label??o),S=E(()=>a.value?Fe(x.value?.recordCount,a.value.total):""),N=E(()=>i.value?.toolbarButtons??[]),X=E(()=>N.value.filter(j=>j==="create")),q=E(()=>N.value.filter(j=>j==="delete")),$=E(()=>{const j=i.value?.perPageOptions??[];return j.length>0?j:[i.value?.recordsPerPage||20]}),O=E(()=>y.value.per_page??a.value?.per_page??i.value?.recordsPerPage??20),T=E(()=>y.value.sort?{column:y.value.sort,dir:y.value.dir==="desc"?"desc":"asc"}:null);function oe(j){const ne=i.value?.recordUrl,de=j.id;return!ne||typeof de!="number"&&typeof de!="string"?null:Zd(ne,o,de)}function I(j){n.replace({path:t.path,query:Qd(j)})}let le=0;async function ye(){const j=++le;c.value=!0,d.value=!1;const ne=await Le.GET("/{vendor}/{plugin}/{controller}",{params:{path:r,query:y.value}});j===le&&(l.value=ne.data?.data??[],a.value=ne.data?.meta??null,d.value=!ne.data,c.value=!1)}async function z(){const j=await Le.GET("/{vendor}/{plugin}/{controller}/schema/list",{params:{path:r}});i.value=j.data?.data??null,u.value=!i.value}z(),ze(()=>d0(y.value),()=>{p.value=[],w.value=y.value.search??"",ye()},{immediate:!0});let ee=null;function re(j){w.value=j,ee!==null&&clearTimeout(ee),ee=setTimeout(()=>{ee=null;const ne=j.trim();I({...y.value,search:ne===""?void 0:ne,page:void 0})},$x)}wt(()=>{ee!==null&&clearTimeout(ee)});function ae(){w.value="",I({...y.value,search:void 0,page:void 0})}function R(j){const ne=T.value;ne?.column!==j?I({...y.value,sort:j,dir:"asc",page:void 0}):ne.dir==="asc"?I({...y.value,sort:j,dir:"desc",page:void 0}):I({...y.value,sort:void 0,dir:void 0,page:void 0})}function B(j){I({...y.value,page:j})}function W(j){I({...y.value,per_page:j,page:void 0})}function pe(j,ne){const de={...y.value.filter??{}};ne===null?delete de[j]:de[j]=ne,I({...y.value,filter:de,page:void 0})}async function ke(){const j=p.value.map(Number).filter(de=>Number.isInteger(de)&&de>0);if(!(j.length===0||m.value||!await g.ask({message:Fe(x.value?.deleteConfirm,j.length),confirmLabel:H("backend::lang.form.delete"),danger:!0}))){m.value=!0;try{const de=await Le.POST("/{vendor}/{plugin}/{controller}/bulk-delete",{params:{path:r},body:{ids:j}});if(de.data){Ye(Fe(x.value?.deleted,de.data.data.deleted)),p.value=[],await ye();return}Ye(de.error?.error.message||H("backend::lang.list.delete_failed"),"danger")}catch{Ye(H("backend::lang.list.delete_failed"),"danger")}finally{m.value=!1}}}return(j,ne)=>(b(),A("section",mx,[P("header",gx,[P("div",vx,[P("h1",yx,F(k.value),1),S.value?(b(),A("p",bx,F(S.value),1)):fe("",!0)]),X.value.length>0?(b(),A("div",_x,[(b(!0),A(ge,null,De(X.value,de=>(b(),J(ut,{key:de,"data-action":"create",variant:"primary",icon:h(Hc),to:`${h(s)}/create`},{default:Y(()=>[Ee(F(h(Fe)(x.value?.create)),1)]),_:1},8,["icon","to"]))),128))])):fe("",!0)]),P("div",xx,[i.value?(b(),J(rx,{key:0,"show-search":i.value.showSearch,search:w.value,"search-prompt":h(Fe)(x.value?.searchPrompt),buttons:q.value,"selected-count":p.value.length,"selected-label":h(Fe)(x.value?.selected,p.value.length),"delete-label":h(Fe)(x.value?.deleteSelected,p.value.length),"onUpdate:search":re,onDelete:ke},null,8,["show-search","search","search-prompt","buttons","selected-count","selected-label","delete-label"])):fe("",!0),i.value&&i.value.filters.length>0?(b(),J(G0,{key:1,filters:i.value.filters,values:y.value.filter??{},source:r,onUpdate:pe},null,8,["filters","values"])):fe("",!0),f.value&&!c.value?(b(),A("p",wx,F(h(H)("backend::lang.list.load_failed")),1)):(b(),J(ef,{key:3,columns:i.value?.columns??[],rows:l.value,loading:c.value||!i.value,"row-link":oe,selectable:i.value?.showCheckboxes??!1,selected:p.value,sortable:i.value?.showSorting??!1,sort:T.value,"onUpdate:selected":ne[0]||(ne[0]=de=>p.value=de),onSort:R},{empty:Y(()=>[y.value.search?(b(),A("div",kx,[P("span",Cx,[G(h(Wc),{size:24,"aria-hidden":"true"})]),P("p",Sx,F(h(Fe)(x.value?.emptySearch,void 0,{term:y.value.search})),1),P("p",Ex,F(h(Fe)(x.value?.emptySearchHint,void 0,{term:y.value.search})),1),G(ut,{"data-action":"clear-search",onClick:ae},{default:Y(()=>[Ee(F(h(H)("backend::lang.list.clear_search")),1)]),_:1})])):(b(),A("p",Ax,F(h(Fe)(x.value?.empty)||i.value?.noRecordsMessage||h(H)("backend::lang.list.no_records")),1))]),_:1},8,["columns","rows","loading","selectable","selected","sortable","sort"])),G(tf,{meta:a.value,loading:c.value||!i.value,"per-page-options":$.value,"per-page":O.value,onPage:B,onPerPage:W},null,8,["meta","loading","per-page-options","per-page"])]),G(al,{open:h(g).request.value!==null,message:h(g).request.value?.message??"","confirm-label":h(g).request.value?.confirmLabel,danger:h(g).request.value?.danger,onConfirm:h(g).confirm,onCancel:h(g).cancel},null,8,["open","message","confirm-label","danger","onConfirm","onCancel"])]))}}),Px={key:0,role:"alert","data-error-banner":"",class:"flex items-start gap-3 rounded-inner bg-danger-soft px-[18px] py-3.5 text-danger"},Tx={class:"flex flex-col gap-1"},nf=Q({__name:"FormErrorBanner",props:{errors:{},fieldNames:{}},setup(e){const t=e,n=E(()=>Object.keys(t.errors).length),r=E(()=>Object.entries(t.errors).filter(([o])=>!t.fieldNames.includes(o)).flatMap(([,o])=>o));return(o,s)=>n.value>0?(b(),A("div",Px,[G(h(Gr),{size:20,class:"mt-px shrink-0","aria-hidden":"true"}),P("div",Tx,[P("p",null,[P("strong",null,F(h(H)("backend::lang.form.error_title")),1),Ee(" "+F(h(Ui)("backend::lang.form.error_fields",n.value)),1)]),(b(!0),A(ge,null,De(r.value,(i,l)=>(b(),A("p",{key:l,class:"text-[13px]"},F(i),1))),128))])])):fe("",!0)}}),Rx=new Set(["readonly","placeholder","maxlength","minlength","min","max","step","autocomplete","spellcheck","pattern"]);function cl(e){const t={};for(const[n,r]of Object.entries(e.attributes??{})){const o=n.toLowerCase();!Rx.has(o)||r===null||r===!1||(t[o]=r)}return t}function gs(e){return["w-full rounded-control border bg-surface px-3.5 text-text transition-colors duration-150 ease-out",e?"border-danger":"border-border-strong"].join(" ")}function rf(e){return typeof e=="string"?e!==""&&e!=="0"&&e.toLowerCase()!=="false":!!e}function of(e,t){return typeof e=="number"?t?1:0:t}const Mx={class:"flex min-w-0 flex-col"},Dx=["for"],Ix={key:0,class:"text-danger","aria-hidden":"true"},qx=["id"],Fx=["id","name","checked","aria-invalid","aria-describedby"],Bx=Q({__name:"CheckboxField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>rf(n.modelValue));function s(i){r("update:modelValue",of(n.modelValue,i.target.checked))}return(i,l)=>(b(),A("div",{class:Ce([e.invalid?"border-danger":"border-border","flex items-center justify-between gap-4 rounded-inner border px-4 py-3.5"]),"data-toggle-card":""},[P("div",Mx,[P("label",{for:e.controlId,class:"font-semibold"},[Ee(F(e.field.label||e.field.name),1),e.field.required?(b(),A("span",Ix," *")):fe("",!0)],8,Dx),e.field.comment?(b(),A("p",{key:0,id:`${e.controlId}-comment`,class:"text-[13px] text-muted"},F(e.field.comment),9,qx)):fe("",!0)]),P("input",{id:e.controlId,type:"checkbox",name:e.field.name,checked:o.value,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:"size-5 shrink-0 rounded-[6px] accent-primary",onChange:s},null,40,Fx)],2))}}),Nx={class:"relative"},Lx=["id","name","value","required","aria-required","aria-invalid","aria-describedby"],jx=["value"],so="empty",io="placeholder",Vx=Q({__name:"DropdownField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>n.field.options??[]);function s(c,u){return c==null||u===null||u===void 0?c===u||c==null&&u==null:String(c)===String(u)}const i=E(()=>{const c=o.value.findIndex(u=>s(u.value,n.modelValue));return c>=0?String(c):n.field.emptyOption!==void 0&&(n.modelValue===null||n.modelValue===void 0||n.modelValue==="")?so:io}),l=E(()=>i.value===so||i.value===io);function a(c){const u=c.target.value;if(u===so){r("update:modelValue",null);return}const d=o.value[Number(u)];d&&r("update:modelValue",d.value)}return(c,u)=>(b(),A("div",Nx,[P("select",{id:e.controlId,name:e.field.name,value:i.value,required:e.field.required||void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:Ce([[h(gs)(e.invalid),l.value?"text-muted":""],"h-input appearance-none pr-10"]),onChange:a},[e.field.emptyOption!==void 0?(b(),A("option",{key:0,value:so,class:"text-muted"},F(e.field.emptyOption),1)):fe("",!0),i.value===io?(b(),A("option",{key:1,value:io,disabled:""},F(h(H)("backend::lang.form.select_placeholder")),1)):fe("",!0),(b(!0),A(ge,null,De(o.value,(d,f)=>(b(),A("option",{key:f,value:String(f),class:"text-text"},F(d.label),9,jx))),128))],42,Lx),G(h(es),{size:16,class:"pointer-events-none absolute top-1/2 right-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"})]))}}),zx=["id","name","value","required","aria-required","aria-invalid","aria-describedby"],Ux=Q({__name:"NumberField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>n.modelValue===null||n.modelValue===void 0?"":String(n.modelValue)),s=E(()=>cl(n.field));function i(l){const a=l.target.value.trim();if(a===""){r("update:modelValue",null);return}const c=Number(a);r("update:modelValue",Number.isFinite(c)?c:null)}return(l,a)=>(b(),A("input",Ve({id:e.controlId},s.value,{name:e.field.name,type:"number",inputmode:"decimal",value:o.value,required:e.field.required||void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:[h(gs)(e.invalid),"h-input tabular-nums"],onInput:i}),null,16,zx))}}),Hx={class:"flex items-start gap-3"},Kx={class:"flex min-w-0 flex-1 flex-col gap-1"},Wx={class:"relative block"},Gx={class:"sr-only"},Yx=["value","placeholder"],Xx=["aria-label","aria-busy"],Jx=["data-candidate","aria-selected","onClick","onKeydown"],Qx={class:"flex size-8 shrink-0 items-center justify-center rounded-full bg-subtle text-[12px] font-bold","aria-hidden":"true"},Zx={class:"flex min-w-0 flex-1 flex-col leading-tight"},ew={class:"truncate font-semibold"},tw={key:0,class:"truncate text-[13px] text-muted"},nw={key:0,role:"presentation",class:"px-1 py-3 text-[13px] text-muted"},rw={key:1,role:"presentation","data-candidates-empty":"",class:"px-1 py-3 text-[13px] text-muted"},ow=["aria-label"],sw={"data-candidates-range":"",class:"flex-1"},iw=["aria-label","disabled"],lw=["aria-label","disabled"],aw={class:"flex gap-2.5"},uw=["disabled"],cw=5,dw=300,Xa="inline-flex size-[34px] items-center justify-center rounded-tab border border-border text-text hover:bg-hover disabled:cursor-not-allowed disabled:opacity-60",fw=Q({__name:"RelationPickerModal",props:{open:{type:Boolean},source:{},recordId:{},relation:{},schema:{}},emits:["update:open","linked","closed"],setup(e,{emit:t}){const n=e,r=t,o=D(""),s=D(1),i=D([]),l=D(null),a=D(!1),c=D(!1),u=D(new Set),d=D(null);let f=0,p=null;const m=E(()=>n.schema.manage.list.columns),g=E(()=>m.value[0]?.key??""),y=E(()=>m.value[1]?.key??""),w=E(()=>u.value.size),x=`relation-${n.relation}-candidates`,k=E(()=>{const R=l.value;if(!R||R.total===0)return"";const B=(R.page-1)*R.per_page+1,W=Math.min(R.page*R.per_page,R.total);return H("backend::lang.relation.candidates_range",{from:B,to:W,total:R.total})}),S=E(()=>Math.max(l.value?.last_page??1,1));function N(R){const B=R.id;return typeof B=="number"&&Number.isInteger(B)?B:typeof B=="string"&&/^\d+$/.test(B)?Number(B):null}function X(R,B){const W=B===""?void 0:R[B];return typeof W=="string"||typeof W=="number"?String(W):""}function q(R){return R.split(/[\s@._-]+/).filter(Boolean).slice(0,2).map(B=>B.charAt(0).toUpperCase()).join("")}async function $(){const R=++f;a.value=!0;try{const B=o.value.trim(),{data:W}=await Le.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/candidates",{params:{path:{...n.source,id:n.recordId,name:n.relation},query:{search:B===""?void 0:B,page:s.value,per_page:cw}}});if(R!==f)return;i.value=W?.data??[],l.value=W?.meta??null}catch{R===f&&(i.value=[],l.value=null)}finally{R===f&&(a.value=!1)}}function O(){p!==null&&(clearTimeout(p),p=null),f++,o.value="",s.value=1,i.value=[],l.value=null,a.value=!1,u.value=new Set}ze(()=>n.open,R=>{R?(O(),$()):O()},{immediate:!0});function T(R){o.value=R.target.value,p!==null&&clearTimeout(p),p=setTimeout(()=>{p=null,s.value=1,$()},dw)}function oe(R){R<1||R>S.value||R===s.value||(s.value=R,$())}function I(R){const B=N(R);return B!==null&&u.value.has(B)}function le(R){const B=N(R);if(B===null)return;const W=new Set(u.value);W.has(B)?W.delete(B):W.add(B),u.value=W}function ye(R,B,W){switch(R.key){case" ":case"Enter":R.preventDefault(),le(B);break;case"ArrowDown":case"ArrowUp":{R.preventDefault();const pe=R.currentTarget.parentElement?.querySelectorAll('[role="option"]'),ke=R.key==="ArrowDown"?1:-1;pe?.[Math.min(Math.max(W+ke,0),pe.length-1)]?.focus();break}}}function z(R){r("update:open",R)}async function ee(){const R=[...u.value];if(!(c.value||R.length===0)){c.value=!0;try{const B=await Le.POST("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/link",{params:{path:{...n.source,id:n.recordId,name:n.relation}},body:{ids:R}});if(B.data){z(!1),r("linked",B.data.data.linked??R.length);return}Ye(B.error?.error.message||H("backend::lang.form.error_generic"),"danger")}catch{Ye(H("backend::lang.form.error_generic"),"danger")}finally{c.value=!1}}}function re(R){R.preventDefault(),d.value?.focus()}function ae(R){R.preventDefault(),r("closed")}return wt(()=>{p!==null&&clearTimeout(p)}),(R,B)=>(b(),J(h(yd),{open:e.open,"onUpdate:open":z},{default:Y(()=>[G(h(cb),null,{default:Y(()=>[G(h($d),{"data-dialog-overlay":"",class:"fixed inset-0 z-40 bg-overlay"}),G(h(Ed),{"data-relation-picker":"","data-dialog-content":"","aria-modal":"true",class:"fixed top-1/2 left-1/2 z-50 flex max-h-[calc(100vh-32px)] w-[calc(100%-32px)] max-w-[560px] -translate-x-1/2 -translate-y-1/2 flex-col gap-4 rounded-modal bg-surface p-6 text-text shadow-pop",onOpenAutoFocus:re,onCloseAutoFocus:ae},{default:Y(()=>[P("div",Hx,[P("div",Kx,[G(h(Od),{class:"text-[20px] font-bold tracking-[-0.01em]"},{default:Y(()=>[Ee(F(h(Fe)(e.schema.messages.link)),1)]),_:1}),G(h(Ad),{class:"text-muted"},{default:Y(()=>[Ee(F(h(Fe)(e.schema.messages.linkHint)),1)]),_:1})]),G(h(hi),{"data-action":"close","aria-label":h(H)("backend::lang.form.close"),class:"flex size-[34px] shrink-0 items-center justify-center rounded-tab bg-subtle text-muted hover:bg-hover hover:text-text"},{default:Y(()=>[G(h(rs),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"])]),P("label",Wx,[P("span",Gx,F(h(H)("backend::lang.list.search")),1),G(h(ns),{size:18,class:"pointer-events-none absolute top-1/2 left-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"}),P("input",{ref_key:"searchInput",ref:d,type:"search","data-candidate-search":"",value:o.value,placeholder:h(Fe)(e.schema.messages.candidateSearch),"aria-controls":x,class:"h-input w-full rounded-control border border-border-strong bg-surface pr-3.5 pl-10",onInput:T},null,40,Yx)]),P("ul",{id:x,role:"listbox","aria-multiselectable":"true","aria-label":h(Fe)(e.schema.messages.link),"aria-busy":a.value?"true":void 0,class:"flex min-h-0 flex-col gap-2 overflow-y-auto"},[(b(!0),A(ge,null,De(i.value,(W,pe)=>(b(),A("li",{key:N(W)??`row-${pe}`,role:"option",tabindex:"0","data-candidate":N(W)??void 0,"aria-selected":I(W)?"true":"false",class:Ce([I(W)?"border-[#e0b020] bg-sel":"border-border hover:bg-hover","flex h-[54px] cursor-pointer items-center gap-3 rounded-inner border px-3 transition-colors duration-150 ease-out"]),onClick:ke=>le(W),onKeydown:ke=>ye(ke,W,pe)},[P("span",Qx,F(q(X(W,g.value))),1),P("span",Zx,[P("span",ew,F(X(W,g.value)),1),y.value?(b(),A("span",tw,F(X(W,y.value)),1)):fe("",!0)]),P("span",{class:Ce([I(W)?"border-primary bg-primary text-on-primary":"border-border-strong bg-surface","flex size-[18px] shrink-0 items-center justify-center rounded-checkbox border"]),"aria-hidden":"true"},[I(W)?(b(),J(h(or),{key:0,size:14})):fe("",!0)],2)],42,Jx))),128)),a.value&&i.value.length===0?(b(),A("li",nw,F(h(H)("backend::lang.list.loading")),1)):!a.value&&i.value.length===0?(b(),A("li",rw,F(h(H)("backend::lang.relation.no_candidates")),1)):fe("",!0)],8,Xx),l.value&&l.value.total>0?(b(),A("nav",{key:0,"aria-label":h(H)("backend::lang.list.pagination"),class:"flex items-center gap-2 text-[13px] text-muted"},[P("span",sw,F(k.value),1),P("button",{type:"button","data-page":"prev","aria-label":h(H)("backend::lang.list.prev_page"),class:Ce(Xa),disabled:a.value||s.value<=1,onClick:B[0]||(B[0]=W=>oe(s.value-1))},[G(h(Li),{size:16,"aria-hidden":"true"})],8,iw),P("button",{type:"button","data-page":"next","aria-label":h(H)("backend::lang.list.next_page"),class:Ce(Xa),disabled:a.value||s.value>=S.value,onClick:B[1]||(B[1]=W=>oe(s.value+1))},[G(h(ts),{size:16,"aria-hidden":"true"})],8,lw)],8,ow)):fe("",!0),P("div",aw,[G(h(hi),{"data-action":"cancel",class:"inline-flex h-button flex-1 items-center justify-center rounded-control border border-border-strong bg-surface font-semibold hover:bg-hover"},{default:Y(()=>[Ee(F(h(H)("backend::lang.form.cancel")),1)]),_:1}),P("button",{type:"button","data-action":"confirm-link",disabled:c.value||w.value===0,class:"inline-flex h-button flex-1 items-center justify-center rounded-control bg-primary font-semibold text-on-primary hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60",onClick:ee},F(h(H)("backend::lang.relation.add_count",{count:w.value})),9,uw)])]),_:1})]),_:1})]),_:1},8,["open"]))}}),pw=["id","data-relation-name","aria-labelledby","aria-describedby"],hw={class:"flex flex-wrap items-center gap-3"},mw={class:"flex min-w-0 flex-1 flex-col"},gw=["id"],vw=["id"],yw={key:0,class:"relative block w-[220px] max-w-full"},bw={class:"sr-only"},_w=["value","placeholder"],xw={key:0,role:"alert",class:"rounded-inner bg-danger-soft px-[18px] py-3.5 text-danger"},ww={key:1,class:"overflow-hidden rounded-inner border border-border"},kw={"data-relation-empty":"",class:"text-muted"},Cw=300,Sw=Q({__name:"RelationManager",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},setup(e){const t=e,n=E(()=>t.field.relation||t.field.name),r=E(()=>t.source!=null&&typeof t.recordId=="number"),o=D(null),s=D([]),i=D(null),l=D(!0),a=D(!1),c=D(""),u=D(1),d=D(null),f=D([]),p=D(!1),m=D(!1);let g=null;const y=ul();let w=0,x=null;const k=E(()=>o.value?.view.list.columns??[]),S=E(()=>o.value?.view.toolbarButtons??[]),N=E(()=>o.value?.messages),X=E(()=>`${t.controlId}-heading`),q=E(()=>`${t.controlId}-comment`);function $(){return{...t.source,id:t.recordId,name:n.value}}async function O(){const{data:B}=await Le.GET("/{vendor}/{plugin}/{controller}/schema/relation/{name}",{params:{path:{...t.source,name:n.value}}});o.value=B?.data??null}async function T(){const B=++w;l.value=!0,a.value=!1;try{const W=c.value.trim(),pe={page:u.value};W!==""&&(pe.search=W),d.value&&(pe.sort=d.value.column,pe.dir=d.value.dir);const{data:ke}=await Le.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}",{params:{path:$(),query:pe}});if(B!==w)return;s.value=ke?.data??[],i.value=ke?.meta??null,a.value=!ke}catch{B===w&&(s.value=[],i.value=null,a.value=!0)}finally{B===w&&(l.value=!1)}}async function oe(){if(r.value){try{await O()}catch{o.value=null}if(!o.value){l.value=!1,a.value=!0;return}await T()}}function I(B){c.value=B.target.value,x!==null&&clearTimeout(x),x=setTimeout(()=>{x=null,u.value=1,f.value=[],T()},Cw)}function le(B){u.value=B,f.value=[],T()}function ye(B){const W=d.value;W?.column!==B?d.value={column:B,dir:"asc"}:W.dir==="asc"?d.value={column:B,dir:"desc"}:d.value=null,u.value=1,f.value=[],T()}function z(){return f.value.map(Number).filter(B=>Number.isInteger(B)&&B>0)}async function ee(){const B=z();if(!(p.value||B.length===0||!o.value||!await y.ask({message:Fe(N.value?.unlinkConfirm,B.length),confirmLabel:Fe(N.value?.unlinkSelected),danger:!0}))){p.value=!0;try{const pe=await Le.POST("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/unlink",{params:{path:$()},body:{ids:B}});if(pe.data){f.value=[],Ye(Fe(N.value?.unlinked,pe.data.data.removed??B.length)),await T();return}Ye(pe.error?.error.message||H("backend::lang.form.error_generic"),"danger")}catch{Ye(H("backend::lang.form.error_generic"),"danger")}finally{p.value=!1}}}async function re(B){Ye(Fe(N.value?.linked,B)),f.value=[],await T()}function ae(){g?.focus()}function R(B){const W=B?.$el;g=W instanceof HTMLElement?W:null}return wt(()=>{x!==null&&clearTimeout(x)}),oe(),(B,W)=>r.value?(b(),A("section",{key:0,id:e.controlId,"data-relation-manager":"","data-relation-name":n.value,"aria-labelledby":X.value,"aria-describedby":e.field.comment?q.value:void 0,tabindex:"-1",class:"flex flex-col gap-4"},[P("header",hw,[P("div",mw,[P("h2",{id:X.value,class:"text-[17px] font-bold tracking-[-0.01em]"},F(o.value?.label||e.field.label||n.value),9,gw),e.field.comment?(b(),A("p",{key:0,id:q.value,class:"text-[13px] text-muted"},F(e.field.comment),9,vw)):fe("",!0)]),o.value?.view.showSearch?(b(),A("label",yw,[P("span",bw,F(h(H)("backend::lang.list.search")),1),G(h(ns),{size:16,class:"pointer-events-none absolute top-1/2 left-3 -translate-y-1/2 text-muted","aria-hidden":"true"}),P("input",{type:"search","data-relation-search":"",value:c.value,placeholder:h(H)("backend::lang.list.search_prompt"),class:"h-[38px] w-full rounded-control border border-transparent bg-subtle pr-3 pl-9",onInput:I,onKeydown:W[0]||(W[0]=Cc(Bt(()=>{},["prevent"]),["enter"]))},null,40,_w)])):fe("",!0),(b(!0),A(ge,null,De(S.value,pe=>(b(),A(ge,{key:pe},[pe==="unlink"?(b(),J(ut,{key:0,"data-action":"unlink",size:"sm",variant:"danger",icon:h(Yc),disabled:p.value||f.value.length===0,onClick:ee},{default:Y(()=>[Ee(F(h(Fe)(N.value?.unlinkSelected)),1)]),_:1},8,["icon","disabled"])):pe==="link"?(b(),J(ut,{key:1,ref_for:!0,ref:R,"data-action":"link",size:"sm",variant:"primary",icon:h(Xc),disabled:p.value||!o.value,"aria-haspopup":"dialog",onClick:W[1]||(W[1]=ke=>m.value=!0)},{default:Y(()=>[Ee(F(h(Fe)(N.value?.link)),1)]),_:1},8,["icon","disabled"])):fe("",!0)],64))),128))]),a.value&&!l.value?(b(),A("p",xw,F(h(H)("backend::lang.relation.load_failed")),1)):(b(),A("div",ww,[G(ef,{selected:f.value,"onUpdate:selected":W[2]||(W[2]=pe=>f.value=pe),variant:"relation",columns:k.value,rows:s.value,loading:l.value,selectable:S.value.includes("unlink"),sortable:!0,sort:d.value,onSort:ye},{empty:Y(()=>[P("span",kw,F(h(Fe)(N.value?.empty)),1)]),_:1},8,["selected","columns","rows","loading","selectable","sort"]),i.value&&i.value.last_page>1?(b(),J(tf,{key:0,meta:i.value,loading:l.value,"per-page-options":[],"per-page":i.value.per_page,onPage:le},null,8,["meta","loading","per-page"])):fe("",!0)])),o.value&&S.value.includes("link")?(b(),J(fw,{key:2,open:m.value,"onUpdate:open":W[3]||(W[3]=pe=>m.value=pe),source:e.source,"record-id":e.recordId,relation:n.value,schema:o.value,onLinked:re,onClosed:ae},null,8,["open","source","record-id","relation","schema"])):fe("",!0),G(al,{open:h(y).request.value!==null,message:h(y).request.value?.message??"","confirm-label":h(y).request.value?.confirmLabel,danger:h(y).request.value?.danger,onConfirm:h(y).confirm,onCancel:h(y).cancel},null,8,["open","message","confirm-label","danger","onConfirm","onCancel"])],8,pw)):fe("",!0)}}),Ew=["id","aria-describedby"],Aw=["data-relation"],$w={class:"flex size-[22px] items-center justify-center rounded-full bg-primary text-[10px] font-bold text-on-primary","aria-hidden":"true"},Ow={class:"font-semibold"},Pw=["aria-label","onClick"],Tw=["id","aria-expanded","aria-controls","aria-activedescendant","aria-required","aria-invalid","aria-describedby","value","placeholder"],Rw={key:1,class:"relative"},Mw=["id","aria-expanded","aria-controls","aria-activedescendant","aria-required","aria-invalid","aria-describedby","value","placeholder"],Dw=["id"],Iw=["id","data-value","aria-selected","onMousedown"],qw={key:0,role:"presentation",class:"px-3 py-2 text-[13px] text-muted"},Fw={key:1,role:"presentation",class:"px-3 py-2 text-[13px] text-muted"},Bw={key:2,role:"presentation",class:"p-1"},Nw=20,Lw=300,jw=Q({__name:"RelationField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>n.field.readOnly?"readonly":n.field.multiple?"multiple":"single"),s=E(()=>`${n.controlId}-listbox`),i=D({});ze(()=>n.labels,R=>{const B={...i.value};for(const W of R??[])B[W.value]=W.label;i.value=B},{immediate:!0});function l(R){return typeof R=="number"&&Number.isInteger(R)?R:typeof R=="string"&&/^\d+$/.test(R)?Number(R):null}const a=E(()=>l(n.modelValue)),c=E(()=>Array.isArray(n.modelValue)?n.modelValue.map(l).filter(R=>R!==null):[]);function u(R){return i.value[R]??String(R)}function d(R){return R.split(/[\s@._-]+/).filter(Boolean).slice(0,2).map(B=>B.charAt(0).toUpperCase()).join("")}const f=E(()=>{const R=n.labels?.[0]?.label;return R||(n.field.emptyOption??"—")}),p=D(!1),m=D(""),g=D([]),y=D(0),w=D(0),x=D(!1),k=D(-1);let S=0,N=null;const X=E(()=>y.value<w.value);async function q(R,B){const W=n.source;if(!W){g.value=[];return}const pe=++S;x.value=!0;try{const ke=m.value.trim(),{data:j}=await Le.GET("/{vendor}/{plugin}/{controller}/fields/{field}/options",{params:{path:{...W,field:n.field.name},query:{search:ke===""?void 0:ke,page:R,per_page:Nw}}});if(pe!==S)return;const ne=j?.data??[],de={...i.value};for(const M of ne)de[M.value]=M.label;i.value=de,g.value=B?[...g.value,...ne]:ne,y.value=j?.meta.page??R,w.value=j?.meta.last_page??R}catch{pe===S&&!B&&(g.value=[])}finally{pe===S&&(x.value=!1)}}const $=E(()=>{const R=[];o.value==="single"&&n.field.emptyOption!==void 0&&R.push({key:"empty",label:n.field.emptyOption,value:null,muted:!0});const B=new Set(c.value);for(const W of g.value)o.value==="multiple"&&B.has(W.value)||R.push({key:`option-${W.value}`,label:W.label,value:W.value,muted:!1});return R});function O(R){return`${s.value}-${R}`}function T(){p.value||(p.value=!0,k.value=-1,q(1,!1))}function oe(){p.value=!1,m.value="",k.value=-1,N!==null&&(clearTimeout(N),N=null)}function I(R){m.value=R.target.value,p.value=!0,k.value=-1,N!==null&&clearTimeout(N),N=setTimeout(()=>{N=null,q(1,!1)},Lw)}function le(){X.value&&!x.value&&q(y.value+1,!0)}function ye(R){const B=R.target;B.scrollTop+B.clientHeight>=B.scrollHeight-24&&le()}function z(R){o.value==="multiple"?R.value!==null&&!c.value.includes(R.value)&&r("update:modelValue",[...c.value,R.value]):r("update:modelValue",R.value),oe()}function ee(R){r("update:modelValue",c.value.filter(B=>B!==R))}function re(R){switch(R.key){case"ArrowDown":R.preventDefault(),p.value?k.value=Math.min(k.value+1,$.value.length-1):T();break;case"ArrowUp":R.preventDefault(),k.value=Math.max(k.value-1,0);break;case"Enter":if(p.value){R.preventDefault();const B=$.value[k.value];B&&z(B)}break;case"Escape":p.value&&(R.preventDefault(),oe());break;case"Backspace":o.value==="multiple"&&m.value===""&&c.value.length>0&&ee(c.value[c.value.length-1]);break}}const ae=E(()=>a.value!==null?u(a.value):n.field.emptyOption??"");return wt(()=>{N!==null&&clearTimeout(N)}),(R,B)=>o.value==="readonly"?(b(),A("div",{key:0,id:e.controlId,"data-relation-readonly":"","aria-describedby":e.describedBy||void 0,class:Ce([e.labels?.[0]?.label?"text-text":"text-muted","flex min-h-input items-center rounded-control border border-border bg-subtle px-3.5"])},F(f.value),11,Ew)):(b(),A("div",{key:1,class:"relative","data-relation":o.value},[o.value==="multiple"?(b(),A("div",{key:0,class:Ce([e.invalid?"border-danger":"border-border-strong","flex min-h-input flex-wrap items-center gap-1.5 rounded-control border bg-surface p-1.5"])},[(b(!0),A(ge,null,De(c.value,W=>(b(),A("span",{key:W,"data-chip":"",class:"inline-flex h-[30px] items-center gap-1.5 rounded-pill bg-subtle pr-1 pl-1"},[P("span",$w,F(d(u(W))),1),P("span",Ow,F(u(W)),1),P("button",{type:"button","aria-label":h(H)("backend::lang.form.remove_item",{name:u(W)}),class:"flex size-6 items-center justify-center rounded-full text-muted hover:bg-hover hover:text-text",onClick:pe=>ee(W)},[G(h(rs),{size:14,"aria-hidden":"true"})],8,Pw)]))),128)),P("input",{id:e.controlId,type:"text",role:"combobox",autocomplete:"off","aria-expanded":p.value?"true":"false","aria-controls":s.value,"aria-autocomplete":"list","aria-activedescendant":p.value&&k.value>=0?O(k.value):void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,value:m.value,placeholder:h(H)("backend::lang.form.add_item"),class:"h-[30px] min-w-[120px] flex-1 border-0 bg-transparent px-2 focus-visible:shadow-none",onClick:T,onInput:I,onKeydown:re,onBlur:oe},null,40,Tw)],2)):(b(),A("div",Rw,[P("input",{id:e.controlId,type:"text",role:"combobox",autocomplete:"off","aria-expanded":p.value?"true":"false","aria-controls":s.value,"aria-autocomplete":"list","aria-activedescendant":p.value&&k.value>=0?O(k.value):void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,value:p.value?m.value:ae.value,placeholder:p.value&&ae.value||h(H)("backend::lang.form.select_placeholder"),class:Ce([[e.invalid?"border-danger":"border-border-strong",!p.value&&a.value===null?"text-muted":"text-text"],"h-input w-full rounded-control border bg-surface pr-10 pl-3.5"]),onClick:T,onInput:I,onKeydown:re,onBlur:oe},null,42,Mw),G(h(es),{size:16,class:"pointer-events-none absolute top-1/2 right-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"})])),Ws(P("ul",{id:s.value,role:"listbox",class:"absolute inset-x-0 top-full z-20 mt-1 max-h-64 overflow-y-auto rounded-inner border border-border bg-surface p-1 shadow-menu",onScroll:ye},[(b(!0),A(ge,null,De($.value,(W,pe)=>(b(),A("li",{id:O(pe),key:W.key,role:"option","data-value":W.value??"empty","aria-selected":o.value==="single"&&W.value===a.value?"true":"false",class:Ce([[W.muted?"text-muted":"text-text",pe===k.value?"bg-hover":""],"flex h-10 cursor-pointer items-center rounded-control px-3 hover:bg-hover"]),onMousedown:Bt(ke=>z(W),["prevent"])},F(W.label),43,Iw))),128)),x.value?(b(),A("li",qw,F(h(H)("backend::lang.form.loading_options")),1)):$.value.filter(W=>W.value!==null).length===0?(b(),A("li",Fw,F(h(H)("backend::lang.form.no_options")),1)):fe("",!0),X.value&&!x.value?(b(),A("li",Bw,[P("button",{type:"button","data-action":"more-options",class:"h-8 w-full rounded-control text-[13px] font-semibold text-muted hover:bg-hover hover:text-text",onMousedown:Bt(le,["prevent"])},F(h(H)("backend::lang.form.more_options")),33)])):fe("",!0)],40,Dw),[[yh,p.value]])],8,Aw))}}),Vw={class:"flex min-w-0 flex-col"},zw=["for"],Uw={key:0,class:"text-danger","aria-hidden":"true"},Hw=["id"],Kw=["id","aria-checked","aria-invalid","aria-describedby"],Ww=Q({__name:"SwitchField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>rf(n.modelValue));function s(){r("update:modelValue",of(n.modelValue,!o.value))}return(i,l)=>(b(),A("div",{class:Ce([e.invalid?"border-danger":"border-border","flex items-center justify-between gap-4 rounded-inner border px-4 py-3.5"]),"data-toggle-card":""},[P("div",Vw,[P("label",{for:e.controlId,class:"font-semibold"},[Ee(F(e.field.label||e.field.name),1),e.field.required?(b(),A("span",Uw," *")):fe("",!0)],8,zw),e.field.comment?(b(),A("p",{key:0,id:`${e.controlId}-comment`,class:"text-[13px] text-muted"},F(e.field.comment),9,Hw)):fe("",!0)]),P("button",{id:e.controlId,type:"button",role:"switch","aria-checked":o.value?"true":"false","aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:Ce([o.value?"bg-primary":"bg-border-strong","relative h-[26px] w-11 shrink-0 rounded-pill transition-colors duration-150 ease-out"]),onClick:s},[P("span",{class:Ce([o.value?"translate-x-[18px] bg-on-primary":"translate-x-0 bg-white","absolute top-[3px] left-[3px] size-5 rounded-full shadow-tab transition-transform duration-150 ease-out"]),"aria-hidden":"true"},null,2)],10,Kw)],2))}}),Gw=["id","name","value","required","aria-required","aria-invalid","aria-describedby"],Yw=Q({__name:"TextField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>n.modelValue===null||n.modelValue===void 0?"":String(n.modelValue)),s=E(()=>cl(n.field));return(i,l)=>(b(),A("input",Ve({id:e.controlId},s.value,{name:e.field.name,type:"text",value:o.value,required:e.field.required||void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:[h(gs)(e.invalid),"h-input"],onInput:l[0]||(l[0]=a=>r("update:modelValue",a.target.value))}),null,16,Gw))}}),Xw=["id","name","rows","value","required","aria-required","aria-invalid","aria-describedby"],Jw=Q({__name:"TextareaField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o={tiny:2,small:4,large:8,huge:12,giant:18},s=E(()=>o[n.field.size??""]??5),i=E(()=>n.modelValue===null||n.modelValue===void 0?"":String(n.modelValue)),l=E(()=>cl(n.field));return(a,c)=>(b(),A("textarea",Ve({id:e.controlId},l.value,{name:e.field.name,rows:s.value,value:i.value,required:e.field.required||void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:[h(gs)(e.invalid),"min-h-input resize-y py-2.5"],onInput:c[0]||(c[0]=u=>r("update:modelValue",u.target.value))}),null,16,Xw))}}),Qw=["id","aria-describedby"],Zw={key:0},ek={class:"font-mono text-text"},tk={key:1},nk={class:"font-mono text-text"},lo="\0",rk=Q({__name:"UnsupportedField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},setup(e){const t=e,n=E(()=>{const[o="",s=""]=H("backend::lang.form.unsupported_field",{type:lo}).split(lo);return{before:o,after:s}}),r=E(()=>H("backend::lang.form.unsupported_field",{type:lo}).includes(lo));return(o,s)=>(b(),A("div",{id:e.controlId,"data-unsupported-field":"","aria-describedby":e.describedBy||void 0,class:"flex min-h-input items-center gap-2.5 rounded-control border-[1.5px] border-dashed border-border-strong bg-subtle px-3.5 text-[13px] text-muted"},[G(h(Kc),{size:16,"aria-hidden":"true"}),r.value?(b(),A("span",Zw,[Ee(F(n.value.before),1),P("code",ek,F(t.field.type),1),Ee(F(n.value.after),1)])):(b(),A("span",tk,[Ee(F(h(H)("backend::lang.form.unsupported_field"))+" ",1),P("code",nk,F(t.field.type),1)]))],8,Qw))}}),vs="relation-manager",sf=new Map([["text",Yw],["textarea",Jw],["number",Ux],["dropdown",Vx],["switch",Ww],["checkbox",Bx],["relation",jw],[vs,Sw]]),ok=new Set(["switch","checkbox",vs]),lf=new Set([vs]);function sk(e){return sf.get(e)??rk}function ik(e){return sf.has(e)&&!lf.has(e)}function lk(e){return lf.has(e)}function ak(e){return ok.has(e)}const uk=Q({__name:"FieldRenderer",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>sk(n.field.type));return(s,i)=>(b(),J(vn(o.value),{field:e.field,"model-value":e.modelValue,"control-id":e.controlId,invalid:e.invalid,"described-by":e.describedBy,labels:e.labels,source:e.source,"record-id":e.recordId,"onUpdate:modelValue":i[0]||(i[0]=l=>r("update:modelValue",l))},null,8,["field","model-value","control-id","invalid","described-by","labels","source","record-id"]))}}),ck=["data-field"],dk=["for"],fk={key:0,class:"text-danger","aria-hidden":"true"},pk=["id"],hk=["id"],mk=Q({__name:"FormField",props:{field:{},modelValue:{},errors:{},labels:{},source:{},recordId:{},idPrefix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=E(()=>`${n.idPrefix??"field"}-${n.field.name}`),s=E(()=>o.value),i=E(()=>`${o.value}-comment`),l=E(()=>`${o.value}-error`),a=E(()=>(n.errors?.length??0)>0),c=E(()=>ak(n.field.type)),u=E(()=>!c.value&&!!n.field.comment),d=E(()=>[u.value||c.value&&n.field.comment?i.value:"",a.value?l.value:""].filter(Boolean).join(" "));return(f,p)=>(b(),A("div",{class:"flex min-w-0 flex-col gap-1.5","data-field":e.field.name},[c.value?fe("",!0):(b(),A("label",{key:0,for:s.value,class:"font-semibold"},[Ee(F(e.field.label||e.field.name),1),e.field.required?(b(),A("span",fk," *")):fe("",!0)],8,dk)),G(uk,{field:e.field,"model-value":e.modelValue,"control-id":s.value,invalid:a.value,"described-by":d.value,labels:e.labels,source:e.source,"record-id":e.recordId,"onUpdate:modelValue":p[0]||(p[0]=m=>r("update:modelValue",m))},null,8,["field","model-value","control-id","invalid","described-by","labels","source","record-id"]),u.value?(b(),A("p",{key:1,id:i.value,class:"text-[13px] text-muted"},F(e.field.comment),9,pk)):fe("",!0),a.value?(b(),A("div",{key:2,id:l.value,class:"flex flex-col gap-0.5 text-[13px] text-danger"},[(b(!0),A(ge,null,De(e.errors,(m,g)=>(b(),A("p",{key:g,class:"flex items-center gap-1.5"},[G(h(Gr),{size:14,class:"shrink-0","aria-hidden":"true"}),P("span",null,F(m),1)]))),128))],8,hk)):fe("",!0)],8,ck))}}),gk={class:"grid grid-cols-1 gap-x-6 gap-y-[22px] min-[600px]:grid-cols-2"},af=Q({__name:"FormGrid",props:{fields:{},values:{},errors:{},labels:{},source:{},recordId:{},idPrefix:{}},emits:["update"],setup(e,{emit:t}){const n=t;function r(o){if(o.type===vs)return"col-span-full";switch(o.span){case"left":return"min-[600px]:col-start-1";case"right":return"min-[600px]:col-start-2";case"auto":case"row":return"";default:return"col-span-full"}}return(o,s)=>(b(),A("div",gk,[(b(!0),A(ge,null,De(e.fields,i=>(b(),J(mk,{key:i.name,class:Ce(r(i)),field:i,"model-value":e.values[i.name],errors:e.errors[i.name],labels:e.labels?.[i.name],source:e.source,"record-id":e.recordId,"id-prefix":e.idPrefix,"onUpdate:modelValue":l=>n("update",i.name,l)},null,8,["class","field","model-value","errors","labels","source","record-id","id-prefix","onUpdate:modelValue"]))),128))]))}}),Cr="default";function ao(e){return e.tab?`tab:${e.tab}`:Cr}function xi(e,t){return`${e}-tab-${t}`}function uf(e,t){return`${e}-panel-${t}`}function cf(e,t){const n=e.context;if(n==null)return!0;const r=Array.isArray(n)?n:[n];return r.length===0||r.includes(t)}function po(e,t){const n={};for(const r of e){if(r.readOnly||!ik(r.type))continue;const o=t[r.name];o!==void 0&&(n[r.name]=o)}return n}function vk(e){const t={};for(const n of e)n.default!==void 0?t[n.name]=n.default:n.type==="switch"||n.type==="checkbox"?t[n.name]=!1:n.type==="relation"&&n.multiple&&(t[n.name]=[]);return t}function df(e){const t={};for(const[n,r]of Object.entries(e??{})){const o=Array.isArray(r)?r.filter(s=>typeof s=="string"&&s!==""):typeof r=="string"&&r!==""?[r]:[];o.length>0&&(t[n]=o)}return t}function Ja(e){return JSON.stringify(Object.keys(e).sort().map(t=>[t,e[t]]))}function ff(e,t){const n=document.getElementById(`${e}-${t}`);return n?(n.matches("input, select, textarea, button, [tabindex]")||n.setAttribute("tabindex","-1"),n.focus(),!0):!1}const yk={role:"tablist",class:"inline-flex gap-1 rounded-inner border border-border bg-subtle p-1"},bk=["id","data-tab","aria-selected","aria-controls","tabindex","onClick","onKeydown"],_k=["aria-label"],xk=Q({__name:"FormTabs",props:{tabs:{},modelValue:{},idPrefix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t;function o(s,i){const l=s.key==="ArrowRight"?1:s.key==="ArrowLeft"?-1:0;if(l===0)return;s.preventDefault();const a=(i+l+n.tabs.length)%n.tabs.length,c=n.tabs[a];c&&(r("update:modelValue",c.key),document.getElementById(xi(n.idPrefix,a))?.focus())}return(s,i)=>(b(),A("div",yk,[(b(!0),A(ge,null,De(e.tabs,(l,a)=>(b(),A("button",{id:h(xi)(e.idPrefix,a),key:l.key,type:"button",role:"tab","data-tab":l.key,"aria-selected":l.key===e.modelValue?"true":"false","aria-controls":h(uf)(e.idPrefix,a),tabindex:l.key===e.modelValue?0:-1,class:Ce([l.key===e.modelValue?"bg-surface text-text shadow-tab":"text-muted hover:text-text","inline-flex h-[34px] items-center gap-2 rounded-tab px-4 font-semibold transition-colors duration-150 ease-out"]),onClick:c=>r("update:modelValue",l.key),onKeydown:c=>o(c,a)},[Ee(F(l.label)+" ",1),l.errors>0?(b(),A("span",{key:0,"data-tab-errors":"","aria-label":h(Ui)("backend::lang.form.tab_errors",l.errors),class:"inline-flex h-5 min-w-5 items-center justify-center rounded-pill bg-danger px-1.5 text-[11px] font-bold text-white"},F(l.errors),9,_k)):fe("",!0)],42,bk))),128))]))}}),wk={class:"flex w-full flex-col gap-5 pb-24"},kk={class:"flex flex-wrap items-center gap-4"},Ck={class:"flex min-w-0 flex-1 flex-col"},Sk={class:"truncate text-[24px] font-bold tracking-[-0.02em]"},Ek={key:0,class:"text-muted"},Ak={key:0,role:"alert",class:"rounded-inner bg-danger-soft px-[18px] py-3.5 text-danger"},$k=["id","role","aria-labelledby"],Ok={class:"fixed inset-x-0 bottom-0 z-30 flex items-center gap-2.5 border-t border-border bg-surface px-8 py-3.5"},Pk={class:"ml-auto flex items-center gap-2.5"},_r="field",Qa=Q({__name:"FormView",setup(e){const t=zt(),n=Wr(),r={vendor:String(t.params.vendor??""),plugin:String(t.params.plugin??""),controller:String(t.params.controller??"")},o=rd(r),s=bn(o)??"/",i=t.name==="create"?"create":"update",l=i==="update"?Number(t.params.id):null,a=D(null),c=D({}),u=D({}),d=D({}),f=D(!0),p=D(!1),m=D(!1),g=D(""),y=D(Cr),w=ul();let x=!1;const k=E(()=>(a.value?.fields??[]).filter(j=>cf(j,i)&&(i==="update"||!lk(j.type)))),S=E(()=>k.value.map(j=>j.name)),N=E(()=>{if(!k.value.some(ne=>ne.tab))return[];const j=[];for(const ne of k.value){const de=ao(ne);let M=j.find(ce=>ce.key===de);M||(M={key:de,label:ne.tab||H("backend::lang.form.tab_default"),errors:0},de===Cr?j.unshift(M):j.push(M)),d.value[ne.name]&&(M.errors+=1)}return j}),X=E(()=>Math.max(N.value.findIndex(j=>j.key===y.value),0)),q=E(()=>{if(N.value.length===0)return k.value;const j=N.value[X.value]?.key??Cr;return k.value.filter(ne=>ao(ne)===j)}),$=E(()=>{const j=a.value?.fields.find(de=>de.type==="text"),ne=j?c.value[j.name]:void 0;return typeof ne=="string"||typeof ne=="number"?String(ne).trim():""}),O=E(()=>{if(i==="update"&&$.value!=="")return $.value;const j=i==="create"?a.value?.messages.create:a.value?.messages.update;return Fe(j,void 0,{name:$.value})}),T=E(()=>i==="update"?Fe(a.value?.messages.update,void 0,{name:$.value}):""),oe=E(()=>!f.value&&Ja(po(k.value,c.value))!==g.value);function I(j){j&&(c.value={...j.data},u.value=j.meta.labels??{}),g.value=Ja(po(k.value,c.value))}async function le(){f.value=!0,p.value=!1;const j={path:r},[ne,de]=await Promise.all([Le.GET("/{vendor}/{plugin}/{controller}/schema/form",{params:j}),l!==null?Le.GET("/{vendor}/{plugin}/{controller}/{id}",{params:{path:{...r,id:l}}}):Promise.resolve(null)]);a.value=ne.data?.data??null,p.value=!ne.data||de!==null&&!de.data,a.value&&i==="create"&&(c.value=vk(k.value)),I(de?.data),y.value=N.value[0]?.key??Cr,f.value=!1}function ye(j,ne){if(c.value={...c.value,[j]:ne},d.value[j]){const de={...d.value};delete de[j],d.value=de}}async function z(j){d.value=df(j?.details);const ne=k.value.filter(M=>d.value[M.name]),de=ne.find(M=>ao(M)===y.value)??ne[0];de&&(N.value.length>0&&(y.value=ao(de)),await Ue(),ff(_r,de.name))}function ee(j,ne){const de=a.value?.redirects,M=(de?.[i]?.[j]||de?.default)??"";return Zd(M,o,typeof ne=="number"||typeof ne=="string"?ne:null)}async function re(){if(m.value||!a.value)return null;m.value=!0;try{const j=po(k.value,c.value),ne=l===null?await Le.POST("/{vendor}/{plugin}/{controller}",{params:{path:r},body:j}):await Le.PUT("/{vendor}/{plugin}/{controller}/{id}",{params:{path:{...r,id:l}},body:j});return ne.data?(d.value={},I(ne.data),Ye(Fe(a.value.messages.saved,void 0,{name:$.value})),ne.data):(ne.response.status===422?await z(ne.error?.error):Ye(ne.error?.error.message||H("backend::lang.form.error_generic"),"danger"),null)}catch{return Ye(H("backend::lang.form.error_generic"),"danger"),null}finally{m.value=!1}}async function ae(j){x=!0;try{await n.push(j)}finally{x=!1}}async function R(){const j=await re();j&&i==="create"&&await ae(ee("redirect",j.data.id))}async function B(){const j=await re();j&&await ae(ee("redirectClose",j.data.id))}async function W(){if(!(l===null||m.value||!a.value||!await w.ask({message:Fe(a.value.messages.deleteConfirm,void 0,{name:$.value}),confirmLabel:H("backend::lang.form.delete"),danger:!0}))){m.value=!0;try{const ne=await Le.DELETE("/{vendor}/{plugin}/{controller}/{id}",{params:{path:{...r,id:l}}});if(ne.data){Ye(Fe(a.value.messages.deleted,void 0,{name:$.value})),await ae(s);return}Ye(ne.error?.error.message||H("backend::lang.form.error_generic"),"danger")}catch{Ye(H("backend::lang.form.error_generic"),"danger")}finally{m.value=!1}}}async function pe(){return x||!oe.value?!0:w.ask({message:H("backend::lang.form.unsaved_confirm"),confirmLabel:H("backend::lang.form.discard"),danger:!0})}Sm(pe),Em(pe);function ke(j){oe.value&&(j.preventDefault(),j.returnValue="")}return jt(()=>window.addEventListener("beforeunload",ke)),wt(()=>window.removeEventListener("beforeunload",ke)),Ft(()=>Kv(f.value?"":O.value)),wt(Wv),le(),(j,ne)=>(b(),A("section",wk,[P("header",kk,[G(ut,{variant:"outline","data-action":"back",to:h(s),"aria-label":h(H)("backend::lang.form.return_to_list"),class:"size-10! px-0!"},{default:Y(()=>[G(h(Ni),{size:18,"aria-hidden":"true"})]),_:1},8,["to","aria-label"]),P("div",Ck,[P("h1",Sk,F(f.value?"":O.value),1),T.value?(b(),A("p",Ek,F(T.value),1)):fe("",!0)]),N.value.length>0?(b(),J(xk,{key:0,modelValue:y.value,"onUpdate:modelValue":ne[0]||(ne[0]=de=>y.value=de),tabs:N.value,"id-prefix":_r},null,8,["modelValue","tabs"])):fe("",!0)]),p.value&&!f.value?(b(),A("p",Ak,F(h(H)("backend::lang.form.load_failed")),1)):a.value?(b(),A(ge,{key:1},[G(nf,{errors:d.value,"field-names":S.value},null,8,["errors","field-names"]),P("form",{id:N.value.length>0?h(uf)(_r,X.value):void 0,role:N.value.length>0?"tabpanel":void 0,"aria-labelledby":N.value.length>0?h(xi)(_r,X.value):void 0,class:"rounded-card border border-border bg-surface p-7 shadow-card",novalidate:"",onSubmit:Bt(R,["prevent"])},[G(af,{fields:q.value,values:c.value,errors:d.value,labels:u.value,source:r,"record-id":h(l),"id-prefix":_r,onUpdate:ye},null,8,["fields","values","errors","labels","record-id"])],40,$k)],64)):fe("",!0),P("footer",Ok,[h(i)==="update"?(b(),J(ut,{key:0,variant:"danger","data-action":"delete",icon:h(Vi),disabled:m.value||f.value||!a.value,onClick:W},{default:Y(()=>[Ee(F(h(H)("backend::lang.form.delete")),1)]),_:1},8,["icon","disabled"])):fe("",!0),P("div",Pk,[G(ut,{variant:"ghost","data-action":"cancel",to:h(s)},{default:Y(()=>[Ee(F(h(H)("backend::lang.form.cancel")),1)]),_:1},8,["to"]),G(ut,{variant:"outline","data-action":"save-close",disabled:m.value||f.value||!a.value,onClick:B},{default:Y(()=>[Ee(F(h(H)("backend::lang.form.save_and_close")),1)]),_:1},8,["disabled"]),G(ut,{variant:"primary","data-action":"save",disabled:m.value||f.value||!a.value,onClick:R},{default:Y(()=>[Ee(F(m.value?h(H)("backend::lang.form.saving"):h(H)("backend::lang.form.save")),1)]),_:1},8,["disabled"])])]),G(al,{open:h(w).request.value!==null,message:h(w).request.value?.message??"","confirm-label":h(w).request.value?.confirmLabel,danger:h(w).request.value?.danger,onConfirm:h(w).confirm,onCancel:h(w).cancel},null,8,["open","message","confirm-label","danger","onConfirm","onCancel"])]))}}),Tk={class:"flex w-full flex-col gap-5 pb-24"},Rk={class:"flex items-center gap-4"},Mk={class:"flex min-w-0 flex-col"},Dk={class:"truncate text-[24px] font-bold tracking-[-0.02em]"},Ik={key:0,class:"text-muted"},qk={key:0,role:"alert",class:"rounded-inner bg-danger-soft px-[18px] py-3.5 text-danger"},Fk={class:"fixed inset-x-0 bottom-0 z-30 flex items-center justify-end gap-2.5 border-t border-border bg-surface px-8 py-3.5"},Za="setting",Bk=Q({__name:"SettingsFormView",setup(e){const t=zt(),n=String(t.params.code??""),r=D(null),o=D({}),s=D({}),i=D(!0),l=D(!1),a=D(!1),c=E(()=>(r.value?.fields??[]).filter(y=>cf(y,"update"))),u=E(()=>c.value.map(y=>y.name)),d=E(()=>di(n)?.label||r.value?.name||n),f=E(()=>di(n)?.description??"");async function p(){const y={path:{code:n}},[w,x]=await Promise.all([Le.GET("/settings/{code}/schema",{params:y}),Le.GET("/settings/{code}",{params:y})]);r.value=w.data?.data??null,o.value={...x.data?.data.data??{}},l.value=!w.data||!x.data,i.value=!1}function m(y,w){if(o.value={...o.value,[y]:w},s.value[y]){const x={...s.value};delete x[y],s.value=x}}async function g(){if(!(a.value||!r.value)){a.value=!0;try{const y=await Le.PUT("/settings/{code}",{params:{path:{code:n}},body:po(c.value,o.value)});if(y.data){s.value={},o.value={...y.data.data.data},Ye(H("backend::lang.settings.saved"));return}if(y.response.status===422){s.value=df(y.error?.error.details);const w=c.value.find(x=>s.value[x.name]);await Ue(),w&&ff(Za,w.name);return}Ye(y.error?.error.message||H("backend::lang.form.error_generic"),"danger")}catch{Ye(H("backend::lang.form.error_generic"),"danger")}finally{a.value=!1}}}return p(),(y,w)=>(b(),A("section",Tk,[P("header",Rk,[G(ut,{variant:"outline","data-action":"back",to:"/settings","aria-label":h(H)("backend::lang.settings.back"),class:"size-10! px-0!"},{default:Y(()=>[G(h(Ni),{size:18,"aria-hidden":"true"})]),_:1},8,["aria-label"]),P("div",Mk,[P("h1",Dk,F(d.value),1),f.value?(b(),A("p",Ik,F(f.value),1)):fe("",!0)])]),l.value&&!i.value?(b(),A("p",qk,F(h(H)("backend::lang.form.load_failed")),1)):r.value?(b(),A(ge,{key:1},[G(nf,{errors:s.value,"field-names":u.value},null,8,["errors","field-names"]),P("form",{class:"rounded-card border border-border bg-surface p-7 shadow-card",novalidate:"",onSubmit:Bt(g,["prevent"])},[G(af,{fields:c.value,values:o.value,errors:s.value,source:null,"id-prefix":Za,onUpdate:m},null,8,["fields","values","errors"])],32)],64)):fe("",!0),P("footer",Fk,[G(ut,{variant:"ghost",to:"/settings"},{default:Y(()=>[Ee(F(h(H)("backend::lang.form.cancel")),1)]),_:1}),G(ut,{variant:"primary","data-action":"save",disabled:a.value||i.value||!r.value,onClick:g},{default:Y(()=>[Ee(F(a.value?h(H)("backend::lang.form.saving"):h(H)("backend::lang.form.save")),1)]),_:1},8,["disabled"])])]))}}),Nk={class:"flex flex-col gap-5"},Lk={class:"text-[26px] font-bold tracking-[-0.02em]"},jk={key:0,class:"text-muted"},Vk={key:0,class:"text-[13px] font-semibold tracking-[0.02em] text-muted uppercase"},zk={class:"grid grid-cols-1 gap-3 min-[900px]:grid-cols-2"},Uk={class:"flex size-10 shrink-0 items-center justify-center rounded-inner bg-subtle text-muted"},Hk={class:"flex min-w-0 flex-col"},Kk={class:"font-semibold"},Wk={key:0,class:"text-[13px] text-muted"},Gk=Q({__name:"SettingsIndexView",setup(e){return(t,n)=>(b(),A("section",Nk,[P("header",null,[P("h1",Lk,F(h(H)("backend::lang.settings.title")),1)]),h(Oa).length===0?(b(),A("p",jk,F(h(H)("backend::lang.settings.empty")),1)):fe("",!0),(b(!0),A(ge,null,De(h(Oa),r=>(b(),A("section",{key:r.category,"data-settings-group":"",class:"flex flex-col gap-3"},[r.category?(b(),A("h2",Vk,F(r.category),1)):fe("",!0),P("div",zk,[(b(!0),A(ge,null,De(r.entries,o=>(b(),J(h(rn),{key:o.code,to:`/settings/${encodeURIComponent(o.code)}`,"data-settings":o.code,class:"flex items-start gap-3.5 rounded-card border border-border bg-surface p-5 text-text no-underline shadow-card hover:bg-hover"},{default:Y(()=>[P("span",Uk,[(b(),J(vn(h(ss)(o.icon)),{size:20,"aria-hidden":"true"}))]),P("span",Hk,[P("span",Kk,F(o.label),1),o.description?(b(),A("span",Wk,F(o.description),1)):fe("",!0)])]),_:2},1032,["to","data-settings"]))),128))])]))),128))]))}}),Yk={class:"flex flex-col items-center gap-2 py-20 text-center"},Xk={class:"text-[17px] font-bold"},eu=Q({__name:"NotFoundView",props:{home:{type:Boolean}},setup(e){return(t,n)=>(b(),A("section",Yk,[P("h1",Xk,F(e.home?h(H)("backend::lang.nav.empty"):h(H)("backend::lang.page.not_found")),1)]))}});function pf(e){return typeof e!="string"||e.length===0||!e.startsWith("/")||e.startsWith("//")||e.startsWith("/\\")?null:e}function Jk(e=Tm(Zc.base)){const t=Xm({history:e,routes:[{path:"/login",name:"login",component:l0,meta:{public:!0}},{path:"/",name:"home",component:eu,props:{home:!0},meta:{shell:!0},beforeEnter:()=>Ev()??!0},{path:"/settings",name:"settings",component:Gk,meta:{shell:!0}},{path:"/settings/:code",name:"settings-form",component:Bk,meta:{shell:!0}},{path:"/:vendor/:plugin/:controller",name:"list",component:Ox,meta:{shell:!0}},{path:"/:vendor/:plugin/:controller/create",name:"create",component:Qa,meta:{shell:!0}},{path:"/:vendor/:plugin/:controller/:id(\\d+)",name:"record",component:Qa,meta:{shell:!0}},{path:"/:pathMatch(.*)*",name:"not-found",component:eu,meta:{shell:!0}}]});return t.beforeEach(n=>{const r=Kn.value!==null;return n.meta.public?r&&n.name==="login"?pf(n.query.redirect)??"/":!0:r?!0:{name:"login",query:{redirect:n.fullPath}}}),t}const Qk="(prefers-color-scheme: dark)";function Zk(e=window){const t=e.document.documentElement;if(typeof e.matchMedia!="function")return t.classList.remove("dark"),()=>{};const n=e.matchMedia(Qk),r=s=>{t.classList.toggle("dark",s)};r(n.matches);const o=s=>r(s.matches);return n.addEventListener("change",o),()=>n.removeEventListener("change",o)}async function eC(){Zk(),await xv().catch(()=>{}),await Yd().catch(()=>null)&&await Promise.all([od().catch(()=>[]),sd().catch(()=>[])]);const t=Jk();gv(()=>{Xd();const r=t.currentRoute.value;r.name!=="login"&&t.push({name:"login",query:{redirect:r.fullPath}})});const n=Kh(G1);n.use(t),await t.isReady(),n.mount("#app")}eC();