myapikey 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/web/dist/assets/index-CCZx1TIp.js +290 -0
- package/packages/web/dist/assets/index-HG56nCKJ.css +1 -0
- package/packages/web/dist/index.html +2 -2
- package/packages/web/dist/assets/index-DbWj0oao.css +0 -1
- package/packages/web/dist/assets/index-Dihwbrfs.js +0 -290
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
var wu=e=>{throw TypeError(e)};var Um=(e,t,n)=>t.has(e)||wu("Cannot "+n);var Ar=(e,t,n)=>(Um(e,t,"read from private field"),n?n.call(e):t.get(e)),xu=(e,t,n)=>t.has(e)?wu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/**
|
|
2
|
-
* @vue/shared v3.5.40
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/function _i(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const We={},cr=[],Tn=()=>{},_d=()=>!1,ha=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ga=e=>e.startsWith("onUpdate:"),vt=Object.assign,wi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},jm=Object.prototype.hasOwnProperty,tt=(e,t)=>jm.call(e,t),Se=Array.isArray,dr=e=>mo(e)==="[object Map]",wd=e=>mo(e)==="[object Set]",ku=e=>mo(e)==="[object Date]",Oe=e=>typeof e=="function",ct=e=>typeof e=="string",tn=e=>typeof e=="symbol",Xe=e=>e!==null&&typeof e=="object",xd=e=>(Xe(e)||Oe(e))&&Oe(e.then)&&Oe(e.catch),kd=Object.prototype.toString,mo=e=>kd.call(e),Hm=e=>mo(e).slice(8,-1),Sd=e=>mo(e)==="[object Object]",va=e=>ct(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,qr=_i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ya=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Wm=/-\w/g,Ot=ya(e=>e.replace(Wm,t=>t.slice(1).toUpperCase())),Km=/\B([A-Z])/g,ls=ya(e=>e.replace(Km,"-$1").toLowerCase()),ba=ya(e=>e.charAt(0).toUpperCase()+e.slice(1)),Vo=ya(e=>e?`on${ba(e)}`:""),Et=(e,t)=>!Object.is(e,t),Uo=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Cd=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},xi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},zm=e=>{const t=ct(e)?Number(e):NaN;return isNaN(t)?e:t};let Su;const _a=()=>Su||(Su=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function hn(e){if(Se(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ct(s)?Jm(s):hn(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(ct(e)||Xe(e))return e}const Gm=/;(?![^(]*\))/g,Ym=/:([^]+)/,Xm=/\/\*[^]*?\*\//g;function Jm(e){const t={};return e.replace(Xm,"").split(Gm).forEach(n=>{if(n){const s=n.split(Ym);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function xe(e){let t="";if(ct(e))t=e;else if(Se(e))for(let n=0;n<e.length;n++){const s=xe(e[n]);s&&(t+=s+" ")}else if(Xe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Pt(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ct(t)&&(e.class=xe(t)),n&&(e.style=hn(n)),e}const Qm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Zm=_i(Qm);function Ad(e){return!!e||e===""}function eh(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=ki(e[s],t[s]);return n}function ki(e,t){if(e===t)return!0;let n=ku(e),s=ku(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=tn(e),s=tn(t),n||s)return e===t;if(n=Se(e),s=Se(t),n||s)return n&&s?eh(e,t):!1;if(n=Xe(e),s=Xe(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const a in e){const i=e.hasOwnProperty(a),u=t.hasOwnProperty(a);if(i&&!u||!i&&u||!ki(e[a],t[a]))return!1}}return String(e)===String(t)}const Ed=e=>!!(e&&e.__v_isRef===!0),E=e=>ct(e)?e:e==null?"":Se(e)||Xe(e)&&(e.toString===kd||!Oe(e.toString))?Ed(e)?E(e.value):JSON.stringify(e,Od,2):String(e),Od=(e,t)=>Ed(t)?Od(e,t.value):dr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[tl(s,o)+" =>"]=r,n),{})}:wd(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>tl(n))}:tn(t)?tl(t):Xe(t)&&!Se(t)&&!Sd(t)?String(t):t,tl=(e,t="")=>{var n;return tn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.5.40
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let St;class Pd{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&&St&&(St.active?(this.parent=St,this.index=(St.scopes||(St.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){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[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){const r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}const s=this.effects.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}}run(t){if(this._active){const n=St;try{return St=this,t()}finally{St=n}}}on(){++this._on===1&&(this.prevScope=St,St=this)}off(){if(this._on>0&&--this._on===0){if(St===this)St=this.prevScope;else{let t=St;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,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(n=0,s=r.length;n<s;n++)r[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Si(e){return new Pd(e)}function wa(){return St}function Ci(e,t=!1){St&&St.cleanups.push(e)}let it;const nl=new WeakSet;class Td{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,St&&(St.active?St.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,nl.has(this)&&(nl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Id(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Cu(this),Md(this);const t=it,n=fn;it=this,fn=!0;try{return this.fn()}finally{Rd(this),it=t,fn=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,Cu(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?nl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Pl(this)&&this.run()}get dirty(){return Pl(this)}}let $d=0,Br,Vr;function Id(e,t=!1){if(e.flags|=8,t){e.next=Vr,Vr=e;return}e.next=Br,Br=e}function Ai(){$d++}function Ei(){if(--$d>0)return;if(Vr){let t=Vr;for(Vr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Br;){let t=Br;for(Br=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Md(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Rd(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Oi(s),th(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Pl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ld(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ld(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Yr)||(e.globalVersion=Yr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Pl(e))))return;e.flags|=2;const t=e.dep,n=it,s=fn;it=e,fn=!0;try{Md(e);const r=e.fn(e._value);(t.version===0||Et(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{it=n,fn=s,Rd(e),e.flags&=-3}}function Oi(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Oi(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function th(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let fn=!0;const Dd=[];function ts(){Dd.push(fn),fn=!1}function ns(){const e=Dd.pop();fn=e===void 0?!0:e}function Cu(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=it;it=void 0;try{t()}finally{it=n}}}let Yr=0;class nh{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 xa{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(!it||!fn||it===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==it)n=this.activeLink=new nh(it,this),it.deps?(n.prevDep=it.depsTail,it.depsTail.nextDep=n,it.depsTail=n):it.deps=it.depsTail=n,Fd(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=it.depsTail,n.nextDep=void 0,it.depsTail.nextDep=n,it.depsTail=n,it.deps===n&&(it.deps=s)}return n}trigger(t){this.version++,Yr++,this.notify(t)}notify(t){Ai();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ei()}}}function Fd(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Fd(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ko=new WeakMap,js=Symbol(""),Tl=Symbol(""),Xr=Symbol("");function Lt(e,t,n){if(fn&&it){let s=Ko.get(e);s||Ko.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new xa),r.map=s,r.key=n),r.track()}}function Kn(e,t,n,s,r,o){const a=Ko.get(e);if(!a){Yr++;return}const i=u=>{u&&u.trigger()};if(Ai(),t==="clear")a.forEach(i);else{const u=Se(e),c=u&&va(n);if(u&&n==="length"){const d=Number(s);a.forEach((f,p)=>{(p==="length"||p===Xr||!tn(p)&&p>=d)&&i(f)})}else switch((n!==void 0||a.has(void 0))&&i(a.get(n)),c&&i(a.get(Xr)),t){case"add":u?c&&i(a.get("length")):(i(a.get(js)),dr(e)&&i(a.get(Tl)));break;case"delete":u||(i(a.get(js)),dr(e)&&i(a.get(Tl)));break;case"set":dr(e)&&i(a.get(js));break}}Ei()}function sh(e,t){const n=Ko.get(e);return n&&n.get(t)}function er(e){const t=He(e);return t===e?t:(Lt(t,"iterate",Xr),Zt(e)?t:t.map(gn))}function ka(e){return Lt(e=He(e),"iterate",Xr),e}function En(e,t){return ss(e)?gr(Hs(e)?gn(t):t):gn(t)}const rh={__proto__:null,[Symbol.iterator](){return sl(this,Symbol.iterator,e=>En(this,e))},concat(...e){return er(this).concat(...e.map(t=>Se(t)?er(t):t))},entries(){return sl(this,"entries",e=>(e[1]=En(this,e[1]),e))},every(e,t){return qn(this,"every",e,t,void 0,arguments)},filter(e,t){return qn(this,"filter",e,t,n=>n.map(s=>En(this,s)),arguments)},find(e,t){return qn(this,"find",e,t,n=>En(this,n),arguments)},findIndex(e,t){return qn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return qn(this,"findLast",e,t,n=>En(this,n),arguments)},findLastIndex(e,t){return qn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return qn(this,"forEach",e,t,void 0,arguments)},includes(...e){return rl(this,"includes",e)},indexOf(...e){return rl(this,"indexOf",e)},join(e){return er(this).join(e)},lastIndexOf(...e){return rl(this,"lastIndexOf",e)},map(e,t){return qn(this,"map",e,t,void 0,arguments)},pop(){return Er(this,"pop")},push(...e){return Er(this,"push",e)},reduce(e,...t){return Au(this,"reduce",e,t)},reduceRight(e,...t){return Au(this,"reduceRight",e,t)},shift(){return Er(this,"shift")},some(e,t){return qn(this,"some",e,t,void 0,arguments)},splice(...e){return Er(this,"splice",e)},toReversed(){return er(this).toReversed()},toSorted(e){return er(this).toSorted(e)},toSpliced(...e){return er(this).toSpliced(...e)},unshift(...e){return Er(this,"unshift",e)},values(){return sl(this,"values",e=>En(this,e))}};function sl(e,t,n){const s=ka(e),r=s[t]();return s!==e&&!Zt(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const oh=Array.prototype;function qn(e,t,n,s,r,o){const a=ka(e),i=a!==e&&!Zt(e),u=a[t];if(u!==oh[t]){const f=u.apply(e,o);return i?gn(f):f}let c=n;a!==e&&(i?c=function(f,p){return n.call(this,En(e,f),p,e)}:n.length>2&&(c=function(f,p){return n.call(this,f,p,e)}));const d=u.call(a,c,s);return i&&r?r(d):d}function Au(e,t,n,s){const r=ka(e),o=r!==e&&!Zt(e);let a=n,i=!1;r!==e&&(o?(i=s.length===0,a=function(c,d,f){return i&&(i=!1,c=En(e,c)),n.call(this,c,En(e,d),f,e)}):n.length>3&&(a=function(c,d,f){return n.call(this,c,d,f,e)}));const u=r[t](a,...s);return i?En(e,u):u}function rl(e,t,n){const s=He(e);Lt(s,"iterate",Xr);const r=s[t](...n);return(r===-1||r===!1)&&Aa(n[0])?(n[0]=He(n[0]),s[t](...n)):r}function Er(e,t,n=[]){ts(),Ai();const s=He(e)[t].apply(e,n);return Ei(),ns(),s}const ah=_i("__proto__,__v_isRef,__isVue"),Nd=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(tn));function lh(e){tn(e)||(e=String(e));const t=He(this);return Lt(t,"has",e),t.hasOwnProperty(e)}class qd{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?Wd:Hd:o?jd:Ud).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const a=Se(t);if(!r){let u;if(a&&(u=rh[n]))return u;if(n==="hasOwnProperty")return lh}const i=Reflect.get(t,n,pt(t)?t:s);if((tn(n)?Nd.has(n):ah(n))||(r||Lt(t,"get",n),o))return i;if(pt(i)){const u=a&&va(n)?i:i.value;return r&&Xe(u)?Il(u):u}return Xe(i)?r?Il(i):Ks(i):i}}class Bd extends qd{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const a=Se(t)&&va(n);if(!this._isShallow){const c=ss(o);if(!Zt(s)&&!ss(s)&&(o=He(o),s=He(s)),!a&&pt(o)&&!pt(s))return c||(o.value=s),!0}const i=a?Number(n)<t.length:tt(t,n),u=Reflect.set(t,n,s,pt(t)?t:r);return t===He(r)&&u&&(i?Et(s,o)&&Kn(t,"set",n,s):Kn(t,"add",n,s)),u}deleteProperty(t,n){const s=tt(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Kn(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!tn(n)||!Nd.has(n))&&Lt(t,"has",n),s}ownKeys(t){return Lt(t,"iterate",Se(t)?"length":js),Reflect.ownKeys(t)}}class Vd extends qd{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ih=new Bd,uh=new Vd,ch=new Bd(!0),dh=new Vd(!0),$l=e=>e,Eo=e=>Reflect.getPrototypeOf(e);function fh(e,t,n){return function(...s){const r=this.__v_raw,o=He(r),a=dr(o),i=e==="entries"||e===Symbol.iterator&&a,u=e==="keys"&&a,c=r[e](...s),d=n?$l:t?gr:gn;return!t&&Lt(o,"iterate",u?Tl:js),vt(Object.create(c),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:i?[d(f[0]),d(f[1])]:d(f),done:p}}})}}function Oo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ph(e,t){const n={get(r){const o=this.__v_raw,a=He(o),i=He(r);e||(Et(r,i)&&Lt(a,"get",r),Lt(a,"get",i));const{has:u}=Eo(a),c=t?$l:e?gr:gn;if(u.call(a,r))return c(o.get(r));if(u.call(a,i))return c(o.get(i));o!==a&&o.get(r)},get size(){const r=this.__v_raw;return!e&&Lt(He(r),"iterate",js),r.size},has(r){const o=this.__v_raw,a=He(o),i=He(r);return e||(Et(r,i)&&Lt(a,"has",r),Lt(a,"has",i)),r===i?o.has(r):o.has(r)||o.has(i)},forEach(r,o){const a=this,i=a.__v_raw,u=He(i),c=t?$l:e?gr:gn;return!e&&Lt(u,"iterate",js),i.forEach((d,f)=>r.call(o,c(d),c(f),a))}};return vt(n,e?{add:Oo("add"),set:Oo("set"),delete:Oo("delete"),clear:Oo("clear")}:{add(r){const o=He(this),a=Eo(o),i=He(r),u=!t&&!Zt(r)&&!ss(r)?i:r;return a.has.call(o,u)||Et(r,u)&&a.has.call(o,r)||Et(i,u)&&a.has.call(o,i)||(o.add(u),Kn(o,"add",u,u)),this},set(r,o){!t&&!Zt(o)&&!ss(o)&&(o=He(o));const a=He(this),{has:i,get:u}=Eo(a);let c=i.call(a,r);c||(r=He(r),c=i.call(a,r));const d=u.call(a,r);return a.set(r,o),c?Et(o,d)&&Kn(a,"set",r,o):Kn(a,"add",r,o),this},delete(r){const o=He(this),{has:a,get:i}=Eo(o);let u=a.call(o,r);u||(r=He(r),u=a.call(o,r)),i&&i.call(o,r);const c=o.delete(r);return u&&Kn(o,"delete",r,void 0),c},clear(){const r=He(this),o=r.size!==0,a=r.clear();return o&&Kn(r,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=fh(r,e,t)}),n}function Sa(e,t){const n=ph(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(tt(n,r)&&r in s?n:s,r,o)}const mh={get:Sa(!1,!1)},hh={get:Sa(!1,!0)},gh={get:Sa(!0,!1)},vh={get:Sa(!0,!0)},Ud=new WeakMap,jd=new WeakMap,Hd=new WeakMap,Wd=new WeakMap;function yh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ks(e){return ss(e)?e:Ca(e,!1,ih,mh,Ud)}function bh(e){return Ca(e,!1,ch,hh,jd)}function Il(e){return Ca(e,!0,uh,gh,Hd)}function tr(e){return Ca(e,!0,dh,vh,Wd)}function Ca(e,t,n,s,r){if(!Xe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=r.get(e);if(o)return o;const a=yh(Hm(e));if(a===0)return e;const i=new Proxy(e,a===2?s:n);return r.set(e,i),i}function Hs(e){return ss(e)?Hs(e.__v_raw):!!(e&&e.__v_isReactive)}function ss(e){return!!(e&&e.__v_isReadonly)}function Zt(e){return!!(e&&e.__v_isShallow)}function Aa(e){return e?!!e.__v_raw:!1}function He(e){const t=e&&e.__v_raw;return t?He(t):e}function Kd(e){return!tt(e,"__v_skip")&&Object.isExtensible(e)&&Cd(e,"__v_skip",!0),e}const gn=e=>Xe(e)?Ks(e):e,gr=e=>Xe(e)?Il(e):e;function pt(e){return e?e.__v_isRef===!0:!1}function F(e){return zd(e,!1)}function Ea(e){return zd(e,!0)}function zd(e,t){return pt(e)?e:new _h(e,t)}class _h{constructor(t,n){this.dep=new xa,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:He(t),this._value=n?t:gn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Zt(t)||ss(t);t=s?t:He(t),Et(t,n)&&(this._rawValue=t,this._value=s?t:gn(t),this.dep.trigger())}}function wh(e){e.dep&&e.dep.trigger()}function l(e){return pt(e)?e.value:e}function Ft(e){return Oe(e)?e():l(e)}const xh={get:(e,t,n)=>t==="__v_raw"?e:l(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return pt(r)&&!pt(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Gd(e){return Hs(e)?e:new Proxy(e,xh)}class kh{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new xa,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Yd(e){return new kh(e)}function Xt(e){const t=Se(e)?new Array(e.length):{};for(const n in e)t[n]=Xd(e,n);return t}class Sh{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=tn(n)?n:String(n),this._raw=He(t);let r=!0,o=t;if(!Se(t)||tn(this._key)||!va(this._key))do r=!Aa(o)||Zt(o);while(r&&(o=o.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=l(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&pt(this._raw[this._key])){const n=this._object[this._key];if(pt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return sh(this._raw,this._key)}}class Ch{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 Ah(e,t,n){return pt(e)?e:Oe(e)?new Ch(e):Xe(e)&&arguments.length>1?Xd(e,t,n):F(e)}function Xd(e,t,n){return new Sh(e,t,n)}class Eh{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new xa(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Yr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&it!==this)return Id(this,!0),!0}get value(){const t=this.dep.track();return Ld(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Oh(e,t,n=!1){let s,r;return Oe(e)?s=e:(s=e.get,r=e.set),new Eh(s,r,n)}const Po={},zo=new WeakMap;let Fs;function Ph(e,t=!1,n=Fs){if(n){let s=zo.get(n);s||zo.set(n,s=[]),s.push(e)}}function Th(e,t,n=We){const{immediate:s,deep:r,once:o,scheduler:a,augmentJob:i,call:u}=n,c=k=>r?k:Zt(k)||r===!1||r===0?zn(k,1):zn(k);let d,f,p,m,v=!1,w=!1;if(pt(e)?(f=()=>e.value,v=Zt(e)):Hs(e)?(f=()=>c(e),v=!0):Se(e)?(w=!0,v=e.some(k=>Hs(k)||Zt(k)),f=()=>e.map(k=>{if(pt(k))return k.value;if(Hs(k))return c(k);if(Oe(k))return u?u(k,2):k()})):Oe(e)?t?f=u?()=>u(e,2):e:f=()=>{if(p){ts();try{p()}finally{ns()}}const k=Fs;Fs=d;try{return u?u(e,3,[m]):e(m)}finally{Fs=k}}:f=Tn,t&&r){const k=f,R=r===!0?1/0:r;f=()=>zn(k(),R)}const C=wa(),h=()=>{d.stop(),C&&C.active&&wi(C.effects,d)};if(o&&t){const k=t;t=(...R)=>{const I=k(...R);return h(),I}}let b=w?new Array(e.length).fill(Po):Po;const $=k=>{if(!(!(d.flags&1)||!d.dirty&&!k))if(t){const R=d.run();if(k||r||v||(w?R.some((I,A)=>Et(I,b[A])):Et(R,b))){p&&p();const I=Fs;Fs=d;try{const A=[R,b===Po?void 0:w&&b[0]===Po?[]:b,m];b=R,u?u(t,3,A):t(...A)}finally{Fs=I}}}else d.run()};return i&&i($),d=new Td(f),d.scheduler=a?()=>a($,!1):$,m=k=>Ph(k,!1,d),p=d.onStop=()=>{const k=zo.get(d);if(k){if(u)u(k,4);else for(const R of k)R();zo.delete(d)}},t?s?$(!0):b=d.run():a?a($.bind(null,!0),!0):d.run(),h.pause=d.pause.bind(d),h.resume=d.resume.bind(d),h.stop=h,h}function zn(e,t=1/0,n){if(t<=0||!Xe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,pt(e))zn(e.value,t,n);else if(Se(e))for(let s=0;s<e.length;s++)zn(e[s],t,n);else if(wd(e)||dr(e))e.forEach(s=>{zn(s,t,n)});else if(Sd(e)){for(const s in e)zn(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&zn(e[s],t,n)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.40
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/function ho(e,t,n,s){try{return s?e(...s):e()}catch(r){Oa(r,t,n)}}function un(e,t,n,s){if(Oe(e)){const r=ho(e,t,n,s);return r&&xd(r)&&r.catch(o=>{Oa(o,t,n)}),r}if(Se(e)){const r=[];for(let o=0;o<e.length;o++)r.push(un(e[o],t,n,s));return r}}function Oa(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||We;if(t){let i=t.parent;const u=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const d=i.ec;if(d){for(let f=0;f<d.length;f++)if(d[f](e,u,c)===!1)return}i=i.parent}if(o){ts(),ho(o,null,10,[e,u,c]),ns();return}}$h(e,n,r,s,a)}function $h(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const Vt=[];let Sn=-1;const fr=[];let vs=null,sr=0;const Jd=Promise.resolve();let Go=null;function yt(e){const t=Go||Jd;return e?t.then(this?e.bind(this):e):t}function Ih(e){let t=Sn+1,n=Vt.length;for(;t<n;){const s=t+n>>>1,r=Vt[s],o=Jr(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function Pi(e){if(!(e.flags&1)){const t=Jr(e),n=Vt[Vt.length-1];!n||!(e.flags&2)&&t>=Jr(n)?Vt.push(e):Vt.splice(Ih(t),0,e),e.flags|=1,Qd()}}function Qd(){Go||(Go=Jd.then(ef))}function Mh(e){Se(e)?fr.push(...e):vs&&e.id===-1?vs.splice(sr+1,0,e):e.flags&1||(fr.push(e),e.flags|=1),Qd()}function Eu(e,t,n=Sn+1){for(;n<Vt.length;n++){const s=Vt[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Vt.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Zd(e){if(fr.length){const t=[...new Set(fr)].sort((n,s)=>Jr(n)-Jr(s));if(fr.length=0,vs){vs.push(...t);return}for(vs=t,sr=0;sr<vs.length;sr++){const n=vs[sr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}vs=null,sr=0}}const Jr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ef(e){try{for(Sn=0;Sn<Vt.length;Sn++){const t=Vt[Sn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ho(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Sn<Vt.length;Sn++){const t=Vt[Sn];t&&(t.flags&=-2)}Sn=-1,Vt.length=0,Zd(),Go=null,(Vt.length||fr.length)&&ef()}}let Tt=null,tf=null;function Yo(e){const t=Tt;return Tt=e,tf=e&&e.type.__scopeId||null,t}function y(e,t=Tt,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Qo(-1);const o=Yo(t),a=Jn.length;let i;try{i=e(...r)}finally{for(let u=Jn.length;u>a;u--)Di();Yo(o),s._d&&Qo(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function zs(e,t){if(Tt===null)return e;const n=Ia(Tt),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,a,i,u=We]=t[r];o&&(Oe(o)&&(o={mounted:o,updated:o}),o.deep&&zn(a),s.push({dir:o,instance:n,value:a,oldValue:void 0,arg:i,modifiers:u}))}return e}function Is(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let a=0;a<r.length;a++){const i=r[a];o&&(i.oldValue=o[a].value);let u=i.dir[s];u&&(ts(),un(u,n,8,[e.el,i,e,t]),ns())}}function Ti(e,t){if(Dt){let n=Dt.provides;const s=Dt.parent&&Dt.parent.provides;s===n&&(n=Dt.provides=Object.create(s)),n[e]=t}}function Ws(e,t,n=!1){const s=Jt();if(s||mr){let r=mr?mr._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Oe(t)?t.call(s&&s.proxy):t}}const Rh=Symbol.for("v-scx"),Lh=()=>Ws(Rh);function rs(e,t){return go(e,null,t)}function nf(e,t){return go(e,null,{flush:"post"})}function Dh(e,t){return go(e,null,{flush:"sync"})}function De(e,t,n){return go(e,t,n)}function go(e,t,n=We){const{immediate:s,deep:r,flush:o,once:a}=n,i=vt({},n),u=t&&s||!t&&o!=="post";let c;if(to){if(o==="sync"){const m=Lh();c=m.__watcherHandles||(m.__watcherHandles=[])}else if(!u){const m=()=>{};return m.stop=Tn,m.resume=Tn,m.pause=Tn,m}}const d=Dt;i.call=(m,v,w)=>un(m,d,v,w);let f=!1;o==="post"?i.scheduler=m=>{Bt(m,d&&d.suspense)}:o!=="sync"&&(f=!0,i.scheduler=(m,v)=>{v?m():Pi(m)}),i.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,d&&(m.id=d.uid,m.i=d))};const p=Th(e,t,i);return to&&(c?c.push(p):u&&p()),p}function Fh(e,t,n){const s=this.proxy,r=ct(e)?e.includes(".")?sf(s,e):()=>s[e]:e.bind(s,s);let o;Oe(t)?o=t:(o=t.handler,n=t);const a=_o(this),i=go(r,o.bind(s),n);return a(),i}function sf(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const ms=new WeakMap,rf=Symbol("_vte"),Nh=e=>e.__isTeleport,Ns=e=>e&&(e.disabled||e.disabled===""),qh=e=>e&&(e.defer||e.defer===""),Ou=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Pu=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ml=(e,t)=>{const n=e&&e.to;return ct(n)?t?t(n):null:n},Bh={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,a,i,u,c){const{mc:d,pc:f,pbc:p,o:{insert:m,querySelector:v,createText:w,createComment:C,parentNode:h}}=c,b=Ns(t.props);let{dynamicChildren:$}=t;const k=(A,M,N)=>{A.shapeFlag&16&&d(A.children,M,N,r,o,a,i,u)},R=(A=t)=>{const M=Ns(A.props),N=A.target=Ml(A.props,v),z=Rl(N,A,w,m);N&&(a!=="svg"&&Ou(N)?a="svg":a!=="mathml"&&Pu(N)&&(a="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(N),M||(k(A,N,z),Dr(A,!1)))},I=A=>{const M=()=>{if(ms.get(A)===M){if(ms.delete(A),Ns(A.props)){const N=h(A.el)||n;k(A,N,A.anchor),Dr(A,!0)}R(A)}};ms.set(A,M),Bt(M,o)};if(e==null){const A=t.el=w(""),M=t.anchor=w("");if(m(A,n,s),m(M,n,s),qh(t.props)||o&&o.pendingBranch){I(t);return}b&&(k(t,n,M),Dr(t,!0)),R()}else{t.el=e.el;const A=t.anchor=e.anchor,M=ms.get(e);if(M){M.flags|=8,ms.delete(e),I(t);return}t.targetStart=e.targetStart;const N=t.target=e.target,z=t.targetAnchor=e.targetAnchor,Y=Ns(e.props),W=Y?n:N,ue=Y?A:z;if(a==="svg"||Ou(N)?a="svg":(a==="mathml"||Pu(N))&&(a="mathml"),$?(p(e.dynamicChildren,$,W,r,o,a,i),Li(e,t,!0)):u||f(e,t,W,ue,r,o,a,i,!1),b)Y?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):To(t,n,A,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const me=Ml(t.props,v);me&&(t.target=me,To(t,me,null,c,0))}else Y&&To(t,N,z,c,1);Dr(t,b)}},remove(e,t,n,{um:s,o:{remove:r}},o){const{shapeFlag:a,children:i,anchor:u,targetStart:c,targetAnchor:d,target:f,props:p}=e,m=Ns(p),v=o||!m,w=ms.get(e);if(w&&(w.flags|=8,ms.delete(e)),f&&(r(c),r(d)),o&&r(u),!w&&(m||f)&&a&16)for(let C=0;C<i.length;C++){const h=i[C];s(h,t,n,v,!!h.dynamicChildren)}},move:To,hydrate:Vh};function To(e,t,n,{o:{insert:s},m:r},o=2){o===0&&s(e.targetAnchor,t,n);const{el:a,anchor:i,shapeFlag:u,children:c,props:d}=e,f=o===2;if(f&&s(a,t,n),!ms.has(e)&&(!f||Ns(d))&&u&16)for(let p=0;p<c.length;p++)r(c[p],t,n,2);f&&s(i,t,n)}function Vh(e,t,n,s,r,o,{o:{nextSibling:a,parentNode:i,querySelector:u,insert:c,createText:d}},f){function p(C,h){let b=h;for(;b;){if(b&&b.nodeType===8){if(b.data==="teleport start anchor")t.targetStart=b;else if(b.data==="teleport anchor"){t.targetAnchor=b,C._lpa=t.targetAnchor&&a(t.targetAnchor);break}}b=a(b)}}function m(C,h){h.anchor=f(a(C),h,i(C),n,s,r,o)}const v=t.target=Ml(t.props,u),w=Ns(t.props);if(v){const C=v._lpa||v.firstChild;t.shapeFlag&16&&(w?(m(e,t),p(v,C),t.targetAnchor||Rl(v,t,d,c,i(e)===v?e:null)):(t.anchor=a(e),p(v,C),t.targetAnchor||Rl(v,t,d,c),f(C&&a(C),t,v,n,s,r,o))),Dr(t,w)}else w&&t.shapeFlag&16&&(m(e,t),t.targetStart=e,t.targetAnchor=a(e));return t.anchor&&a(t.anchor)}const $i=Bh;function Dr(e,t){const n=e.ctx;if(n&&n.ut){let s,r;for(t?(s=e.el,r=e.anchor):(s=e.targetStart,r=e.targetAnchor);s&&s!==r;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function Rl(e,t,n,s,r=null){const o=t.targetStart=n(""),a=t.targetAnchor=n("");return o[rf]=a,e&&(s(o,e,r),s(a,e,r)),a}const Cn=Symbol("_leaveCb"),Or=Symbol("_enterCb");function Uh(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return mt(()=>{e.isMounted=!0}),Ta(()=>{e.isUnmounting=!0}),e}const sn=[Function,Array],jh={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:sn,onEnter:sn,onAfterEnter:sn,onEnterCancelled:sn,onBeforeLeave:sn,onLeave:sn,onAfterLeave:sn,onLeaveCancelled:sn,onBeforeAppear:sn,onAppear:sn,onAfterAppear:sn,onAppearCancelled:sn};function Hh(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Ll(e,t,n,s,r){const{appear:o,mode:a,persisted:i=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:v,onLeaveCancelled:w,onBeforeAppear:C,onAppear:h,onAfterAppear:b,onAppearCancelled:$}=t,k=String(e.key),R=Hh(n,e),I=(N,z)=>{N&&un(N,s,9,z)},A=(N,z)=>{const Y=z[1];I(N,z),Se(N)?N.every(W=>W.length<=1)&&Y():N.length<=1&&Y()},M={mode:a,persisted:i,beforeEnter(N){let z=u;if(!n.isMounted)if(o)z=C||u;else return;N[Cn]&&N[Cn](!0);const Y=R[k];Y&&rr(e,Y)&&Y.el[Cn]&&Y.el[Cn](),I(z,[N])},enter(N){if(R[k]===e)return;let z=c,Y=d,W=f;if(!n.isMounted)if(o)z=h||c,Y=b||d,W=$||f;else return;let ue=!1;N[Or]=X=>{ue||(ue=!0,X?I(W,[N]):I(Y,[N]),M.delayedLeave&&M.delayedLeave(),N[Or]=void 0)};const me=N[Or].bind(null,!1);z?A(z,[N,me]):me()},leave(N,z){const Y=String(e.key);if(N[Or]&&N[Or](!0),n.isUnmounting)return z();I(p,[N]);let W=!1;N[Cn]=me=>{W||(W=!0,z(),me?I(w,[N]):I(v,[N]),N[Cn]=void 0,R[Y]===e&&delete R[Y])};const ue=N[Cn].bind(null,!1);R[Y]=e,m?A(m,[N,ue]):ue()},clone(N){const z=Ll(N,t,n,s,r);return r&&r(z),z}};return M}function Qr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Qr(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 of(e,t=!1,n){let s=[],r=0;for(let o=0;o<e.length;o++){let a=e[o];const i=n==null?a.key:String(n)+String(a.key!=null?a.key:o);a.type===Ce?(a.patchFlag&128&&r++,s=s.concat(of(a.children,t,i))):(t||a.type!==vn)&&s.push(i!=null?_s(a,{key:i}):a)}if(r>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}function Q(e,t){return Oe(e)?vt({name:e.name},t,{setup:e}):e}function ol(){const e=Jt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function af(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Tu(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Xo=new WeakMap;function Ur(e,t,n,s,r=!1){if(Se(e)){e.forEach((w,C)=>Ur(w,t&&(Se(t)?t[C]:t),n,s,r));return}if(pr(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Ur(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Ia(s.component):s.el,a=r?null:o,{i,r:u}=e,c=t&&t.r,d=i.refs===We?i.refs={}:i.refs,f=i.setupState,p=He(f),m=f===We?_d:w=>Tu(d,w)?!1:tt(p,w),v=(w,C)=>!(C&&Tu(d,C));if(c!=null&&c!==u){if($u(t),ct(c))d[c]=null,m(c)&&(f[c]=null);else if(pt(c)){const w=t;v(c,w.k)&&(c.value=null),w.k&&(d[w.k]=null)}}if(Oe(u))ho(u,i,12,[a,d]);else{const w=ct(u),C=pt(u);if(w||C){const h=()=>{if(e.f){const b=w?m(u)?f[u]:d[u]:v()||!e.k?u.value:d[e.k];if(r)Se(b)&&wi(b,o);else if(Se(b))b.includes(o)||b.push(o);else if(w)d[u]=[o],m(u)&&(f[u]=d[u]);else{const $=[o];v(u,e.k)&&(u.value=$),e.k&&(d[e.k]=$)}}else w?(d[u]=a,m(u)&&(f[u]=a)):C&&(v(u,e.k)&&(u.value=a),e.k&&(d[e.k]=a))};if(a){const b=()=>{h(),Xo.delete(e)};b.id=-1,Xo.set(e,b),Bt(b,n)}else $u(e),h()}}}function $u(e){const t=Xo.get(e);t&&(t.flags|=8,Xo.delete(e))}_a().requestIdleCallback;_a().cancelIdleCallback;const pr=e=>!!e.type.__asyncLoader,lf=e=>e.type.__isKeepAlive;function Wh(e,t){uf(e,"a",t)}function Kh(e,t){uf(e,"da",t)}function uf(e,t,n=Dt){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Pa(t,s,n),n){let r=n.parent;for(;r&&r.parent;)lf(r.parent.vnode)&&zh(s,t,n,r),r=r.parent}}function zh(e,t,n,s){const r=Pa(t,e,s,!0);yn(()=>{wi(s[t],r)},n)}function Pa(e,t,n=Dt,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{ts();const i=_o(n),u=un(t,n,e,a);return i(),ns(),u});return s?r.unshift(o):r.push(o),o}}const is=e=>(t,n=Dt)=>{(!to||e==="sp")&&Pa(e,(...s)=>t(...s),n)},Gh=is("bm"),mt=is("m"),Yh=is("bu"),Ii=is("u"),Ta=is("bum"),yn=is("um"),Xh=is("sp"),Jh=is("rtg"),Qh=is("rtc");function Zh(e,t=Dt){Pa("ec",e,t)}const eg="components",cf=Symbol.for("v-ndc");function vo(e){return ct(e)?tg(eg,e,!1)||e:e||cf}function tg(e,t,n=!0,s=!1){const r=Tt||Dt;if(r){const o=r.type;{const i=Fg(o,!1);if(i&&(i===t||i===Ot(t)||i===ba(Ot(t))))return o}const a=Iu(r[e]||o[e],t)||Iu(r.appContext[e],t);return!a&&s?o:a}}function Iu(e,t){return e&&(e[t]||e[Ot(t)]||e[ba(Ot(t))])}function ut(e,t,n,s){let r;const o=n&&n[s],a=Se(e);if(a||ct(e)){const i=a&&Hs(e);let u=!1,c=!1;i&&(u=!Zt(e),c=ss(e),e=ka(e)),r=new Array(e.length);for(let d=0,f=e.length;d<f;d++)r[d]=t(u?c?gr(gn(e[d])):gn(e[d]):e[d],d,void 0,o&&o[d])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,o&&o[i])}else if(Xe(e))if(e[Symbol.iterator])r=Array.from(e,(i,u)=>t(i,u,void 0,o&&o[u]));else{const i=Object.keys(e);r=new Array(i.length);for(let u=0,c=i.length;u<c;u++){const d=i[u];r[u]=t(e[d],d,u,o&&o[u])}}else r=[];return n&&(n[s]=r),r}function ie(e,t,n={},s,r,o){if(Tt.ce||Tt.parent&&pr(Tt.parent)&&Tt.parent.ce){const c=o!=null&&n.key==null?vt({},n,{key:o}):n,d=Object.keys(c).length>0;return t!=="default"&&(c.name=t),x(),D(Ce,null,[g("slot",c,s&&s())],d?-2:64)}let a=e[t];a&&a._c&&(a._d=!1);const i=Jn.length;x();let u;try{const c=a&&df(a(n)),d=n.key||o||c&&c.key;u=D(Ce,{key:(d&&!tn(d)?d:`_${t}`)+(!c&&s?"_fb":"")},c||(s?s():[]),c&&e._===1?64:-2)}catch(c){for(let d=Jn.length;d>i;d--)Di();throw c}finally{a&&a._c&&(a._d=!0)}return!r&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),u}function df(e){return e.some(t=>eo(t)?!(t.type===vn||t.type===Ce&&!df(t.children)):!0)?e:null}const Dl=e=>e?If(e)?Ia(e):Dl(e.parent):null,jr=vt(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=>Dl(e.parent),$root:e=>Dl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>mf(e),$forceUpdate:e=>e.f||(e.f=()=>{Pi(e.update)}),$nextTick:e=>e.n||(e.n=yt.bind(e.proxy)),$watch:e=>Fh.bind(e)}),al=(e,t)=>e!==We&&!e.__isScriptSetup&&tt(e,t),ng={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:a,type:i,appContext:u}=e;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(al(s,t))return a[t]=1,s[t];if(r!==We&&tt(r,t))return a[t]=2,r[t];if(tt(o,t))return a[t]=3,o[t];if(n!==We&&tt(n,t))return a[t]=4,n[t];Fl&&(a[t]=0)}}const c=jr[t];let d,f;if(c)return t==="$attrs"&&Lt(e.attrs,"get",""),c(e);if((d=i.__cssModules)&&(d=d[t]))return d;if(n!==We&&tt(n,t))return a[t]=4,n[t];if(f=u.config.globalProperties,tt(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return al(r,t)?(r[t]=n,!0):s!==We&&tt(s,t)?(s[t]=n,!0):tt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:o,type:a}},i){let u;return!!(n[i]||e!==We&&i[0]!=="$"&&tt(e,i)||al(t,i)||tt(o,i)||tt(s,i)||tt(jr,i)||tt(r.config.globalProperties,i)||(u=a.__cssModules)&&u[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:tt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function sg(){return rg().attrs}function rg(e){const t=Jt();return t.setupContext||(t.setupContext=Rf(t))}function Zr(e){return Se(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function ff(e,t){const n=Zr(e);for(const s in t){if(s.startsWith("__skip"))continue;let r=n[s];r?Se(r)||Oe(r)?r=n[s]={type:r,default:t[s]}:r.default=t[s]:r===null&&(r=n[s]={default:t[s]}),r&&t[`__skip_${s}`]&&(r.skipFactory=!0)}return n}function bs(e,t){return!e||!t?e||t:Se(e)&&Se(t)?e.concat(t):vt({},Zr(e),Zr(t))}let Fl=!0;function og(e){const t=mf(e),n=e.proxy,s=e.ctx;Fl=!1,t.beforeCreate&&Mu(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:a,watch:i,provide:u,inject:c,created:d,beforeMount:f,mounted:p,beforeUpdate:m,updated:v,activated:w,deactivated:C,beforeDestroy:h,beforeUnmount:b,destroyed:$,unmounted:k,render:R,renderTracked:I,renderTriggered:A,errorCaptured:M,serverPrefetch:N,expose:z,inheritAttrs:Y,components:W,directives:ue,filters:me}=t;if(c&&ag(c,s,null),a)for(const oe in a){const fe=a[oe];Oe(fe)&&(s[oe]=fe.bind(n))}if(r){const oe=r.call(n,n);Xe(oe)&&(e.data=Ks(oe))}if(Fl=!0,o)for(const oe in o){const fe=o[oe],ae=Oe(fe)?fe.bind(n,n):Oe(fe.get)?fe.get.bind(n,n):Tn,Z=!Oe(fe)&&Oe(fe.set)?fe.set.bind(n):Tn,de=te({get:ae,set:Z});Object.defineProperty(s,oe,{enumerable:!0,configurable:!0,get:()=>de.value,set:Be=>de.value=Be})}if(i)for(const oe in i)pf(i[oe],s,n,oe);if(u){const oe=Oe(u)?u.call(n):u;Reflect.ownKeys(oe).forEach(fe=>{Ti(fe,oe[fe])})}d&&Mu(d,e,"c");function ce(oe,fe){Se(fe)?fe.forEach(ae=>oe(ae.bind(n))):fe&&oe(fe.bind(n))}if(ce(Gh,f),ce(mt,p),ce(Yh,m),ce(Ii,v),ce(Wh,w),ce(Kh,C),ce(Zh,M),ce(Qh,I),ce(Jh,A),ce(Ta,b),ce(yn,k),ce(Xh,N),Se(z))if(z.length){const oe=e.exposed||(e.exposed={});z.forEach(fe=>{Object.defineProperty(oe,fe,{get:()=>n[fe],set:ae=>n[fe]=ae,enumerable:!0})})}else e.exposed||(e.exposed={});R&&e.render===Tn&&(e.render=R),Y!=null&&(e.inheritAttrs=Y),W&&(e.components=W),ue&&(e.directives=ue),N&&af(e)}function ag(e,t,n=Tn){Se(e)&&(e=Nl(e));for(const s in e){const r=e[s];let o;Xe(r)?"default"in r?o=Ws(r.from||s,r.default,!0):o=Ws(r.from||s):o=Ws(r),pt(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[s]=o}}function Mu(e,t,n){un(Se(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function pf(e,t,n,s){let r=s.includes(".")?sf(n,s):()=>n[s];if(ct(e)){const o=t[e];Oe(o)&&De(r,o)}else if(Oe(e))De(r,e.bind(n));else if(Xe(e))if(Se(e))e.forEach(o=>pf(o,t,n,s));else{const o=Oe(e.handler)?e.handler.bind(n):t[e.handler];Oe(o)&&De(r,o,e)}}function mf(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,i=o.get(t);let u;return i?u=i:!r.length&&!n&&!s?u=t:(u={},r.length&&r.forEach(c=>Jo(u,c,a,!0)),Jo(u,t,a)),Xe(t)&&o.set(t,u),u}function Jo(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Jo(e,o,n,!0),r&&r.forEach(a=>Jo(e,a,n,!0));for(const a in t)if(!(s&&a==="expose")){const i=lg[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const lg={data:Ru,props:Lu,emits:Lu,methods:Fr,computed:Fr,beforeCreate:qt,created:qt,beforeMount:qt,mounted:qt,beforeUpdate:qt,updated:qt,beforeDestroy:qt,beforeUnmount:qt,destroyed:qt,unmounted:qt,activated:qt,deactivated:qt,errorCaptured:qt,serverPrefetch:qt,components:Fr,directives:Fr,watch:ug,provide:Ru,inject:ig};function Ru(e,t){return t?e?function(){return vt(Oe(e)?e.call(this,this):e,Oe(t)?t.call(this,this):t)}:t:e}function ig(e,t){return Fr(Nl(e),Nl(t))}function Nl(e){if(Se(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function qt(e,t){return e?[...new Set([].concat(e,t))]:t}function Fr(e,t){return e?vt(Object.create(null),e,t):t}function Lu(e,t){return e?Se(e)&&Se(t)?[...new Set([...e,...t])]:vt(Object.create(null),Zr(e),Zr(t??{})):t}function ug(e,t){if(!e)return t;if(!t)return e;const n=vt(Object.create(null),e);for(const s in t)n[s]=qt(e[s],t[s]);return n}function hf(){return{app:null,config:{isNativeTag:_d,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 cg=0;function dg(e,t){return function(s,r=null){Oe(s)||(s=vt({},s)),r!=null&&!Xe(r)&&(r=null);const o=hf(),a=new WeakSet,i=[];let u=!1;const c=o.app={_uid:cg++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Vg,get config(){return o.config},set config(d){},use(d,...f){return a.has(d)||(d&&Oe(d.install)?(a.add(d),d.install(c,...f)):Oe(d)&&(a.add(d),d(c,...f))),c},mixin(d){return o.mixins.includes(d)||o.mixins.push(d),c},component(d,f){return f?(o.components[d]=f,c):o.components[d]},directive(d,f){return f?(o.directives[d]=f,c):o.directives[d]},mount(d,f,p){if(!u){const m=c._ceVNode||g(s,r);return m.appContext=o,p===!0?p="svg":p===!1&&(p=void 0),e(m,d,p),u=!0,c._container=d,d.__vue_app__=c,Ia(m.component)}},onUnmount(d){i.push(d)},unmount(){u&&(un(i,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(d,f){return o.provides[d]=f,c},runWithContext(d){const f=mr;mr=c;try{return d()}finally{mr=f}}};return c}}let mr=null;function yo(e,t,n=We){const s=Jt(),r=Ot(t),o=ls(t),a=gf(e,r),i=Yd((u,c)=>{let d,f=We,p;return Dh(()=>{const m=e[r];Et(d,m)&&(d=m,c())}),{get(){return u(),n.get?n.get(d):d},set(m){const v=n.set?n.set(m):m;if(!Et(v,d)&&!(f!==We&&Et(m,f)))return;const w=s.vnode.props,C=!!(w&&(t in w||r in w||o in w)&&(`onUpdate:${t}`in w||`onUpdate:${r}`in w||`onUpdate:${o}`in w));C||(d=m,c()),s.emit(`update:${t}`,v),Et(m,f)&&(Et(m,v)&&!Et(v,p)||C&&f!==We&&!Et(v,d))&&c(),f=m,p=v}}});return i[Symbol.iterator]=()=>{let u=0;return{next(){return u<2?{value:u++?a||We:i,done:!1}:{done:!0}}}},i}const gf=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ot(t)}Modifiers`]||e[`${ls(t)}Modifiers`];function fg(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||We;let r=n;const o=t.startsWith("update:"),a=o&&gf(s,t.slice(7));a&&(a.trim&&(r=n.map(d=>ct(d)?d.trim():d)),a.number&&(r=n.map(xi)));let i,u=s[i=Vo(t)]||s[i=Vo(Ot(t))];!u&&o&&(u=s[i=Vo(ls(t))]),u&&un(u,e,6,r);const c=s[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,un(c,e,6,r)}}const pg=new WeakMap;function vf(e,t,n=!1){const s=n?pg:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let a={},i=!1;if(!Oe(e)){const u=c=>{const d=vf(c,t,!0);d&&(i=!0,vt(a,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!i?(Xe(e)&&s.set(e,null),null):(Se(o)?o.forEach(u=>a[u]=null):vt(a,o),Xe(e)&&s.set(e,a),a)}function $a(e,t){return!e||!ha(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),tt(e,t[0].toLowerCase()+t.slice(1))||tt(e,ls(t))||tt(e,t))}function Du(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:a,attrs:i,emit:u,render:c,renderCache:d,props:f,data:p,setupState:m,ctx:v,inheritAttrs:w}=e,C=Yo(e);let h,b;try{if(n.shapeFlag&4){const k=r||s,R=k;h=On(c.call(R,k,d,f,m,p,v)),b=i}else{const k=t;h=On(k.length>1?k(f,{attrs:i,slots:a,emit:u}):k(f,null)),b=t.props?i:mg(i)}}catch(k){Jn.length=0,Oa(k,e,1),h=g(vn)}let $=h;if(b&&w!==!1){const k=Object.keys(b),{shapeFlag:R}=$;k.length&&R&7&&(o&&k.some(ga)&&(b=hg(b,o)),$=_s($,b,!1,!0))}return n.dirs&&($=_s($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&Qr($,n.transition),h=$,Yo(C),h}const mg=e=>{let t;for(const n in e)(n==="class"||n==="style"||ha(n))&&((t||(t={}))[n]=e[n]);return t},hg=(e,t)=>{const n={};for(const s in e)(!ga(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function gg(e,t,n){const{props:s,children:r,component:o}=e,{props:a,children:i,patchFlag:u}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return s?Fu(s,a,c):!!a;if(u&8){const d=t.dynamicProps;for(let f=0;f<d.length;f++){const p=d[f];if(yf(a,s,p)&&!$a(c,p))return!0}}}else return(r||i)&&(!i||!i.$stable)?!0:s===a?!1:s?a?Fu(s,a,c):!0:!!a;return!1}function Fu(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(yf(t,e,o)&&!$a(n,o))return!0}return!1}function yf(e,t,n){const s=e[n],r=t[n];return n==="style"&&Xe(s)&&Xe(r)?!ki(s,r):s!==r}function vg({vnode:e,parent:t,suspense:n},s){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=s,e=r),r===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const bf={},_f=()=>Object.create(bf),wf=e=>Object.getPrototypeOf(e)===bf;function yg(e,t,n,s=!1){const r={},o=_f();e.propsDefaults=Object.create(null),xf(e,t,r,o);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);n?e.props=s?r:bh(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function bg(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:a}}=e,i=He(r),[u]=e.propsOptions;let c=!1;if((s||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let f=0;f<d.length;f++){let p=d[f];if($a(e.emitsOptions,p))continue;const m=t[p];if(u)if(tt(o,p))m!==o[p]&&(o[p]=m,c=!0);else{const v=Ot(p);r[v]=ql(u,i,v,m,e,!1)}else m!==o[p]&&(o[p]=m,c=!0)}}}else{xf(e,t,r,o)&&(c=!0);let d;for(const f in i)(!t||!tt(t,f)&&((d=ls(f))===f||!tt(t,d)))&&(u?n&&(n[f]!==void 0||n[d]!==void 0)&&(r[f]=ql(u,i,f,void 0,e,!0)):delete r[f]);if(o!==i)for(const f in o)(!t||!tt(t,f))&&(delete o[f],c=!0)}c&&Kn(e.attrs,"set","")}function xf(e,t,n,s){const[r,o]=e.propsOptions;let a=!1,i;if(t)for(let u in t){if(qr(u))continue;const c=t[u];let d;r&&tt(r,d=Ot(u))?!o||!o.includes(d)?n[d]=c:(i||(i={}))[d]=c:$a(e.emitsOptions,u)||(!(u in s)||c!==s[u])&&(s[u]=c,a=!0)}if(o){const u=He(n),c=i||We;for(let d=0;d<o.length;d++){const f=o[d];n[f]=ql(r,u,f,c[f],e,!tt(c,f))}}return a}function ql(e,t,n,s,r,o){const a=e[n];if(a!=null){const i=tt(a,"default");if(i&&s===void 0){const u=a.default;if(a.type!==Function&&!a.skipFactory&&Oe(u)){const{propsDefaults:c}=r;if(n in c)s=c[n];else{const d=_o(r);s=c[n]=u.call(null,t),d()}}else s=u;r.ce&&r.ce._setProp(n,s)}a[0]&&(o&&!i?s=!1:a[1]&&(s===""||s===ls(n))&&(s=!0))}return s}const _g=new WeakMap;function kf(e,t,n=!1){const s=n?_g:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,a={},i=[];let u=!1;if(!Oe(e)){const d=f=>{u=!0;const[p,m]=kf(f,t,!0);vt(a,p),m&&i.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!u)return Xe(e)&&s.set(e,cr),cr;if(Se(o))for(let d=0;d<o.length;d++){const f=Ot(o[d]);Nu(f)&&(a[f]=We)}else if(o)for(const d in o){const f=Ot(d);if(Nu(f)){const p=o[d],m=a[f]=Se(p)||Oe(p)?{type:p}:vt({},p),v=m.type;let w=!1,C=!0;if(Se(v))for(let h=0;h<v.length;++h){const b=v[h],$=Oe(b)&&b.name;if($==="Boolean"){w=!0;break}else $==="String"&&(C=!1)}else w=Oe(v)&&v.name==="Boolean";m[0]=w,m[1]=C,(w||tt(m,"default"))&&i.push(f)}}const c=[a,i];return Xe(e)&&s.set(e,c),c}function Nu(e){return e[0]!=="$"&&!qr(e)}const Mi=e=>e==="_"||e==="_ctx"||e==="$stable",Ri=e=>Se(e)?e.map(On):[On(e)],wg=(e,t,n)=>{if(t._n)return t;const s=y((...r)=>Ri(t(...r)),n);return s._c=!1,s},Sf=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Mi(r))continue;const o=e[r];if(Oe(o))t[r]=wg(r,o,s);else if(o!=null){const a=Ri(o);t[r]=()=>a}}},Cf=(e,t)=>{const n=Ri(t);e.slots.default=()=>n},Af=(e,t,n)=>{for(const s in t)(n||!Mi(s))&&(e[s]=t[s])},xg=(e,t,n)=>{const s=e.slots=_f();if(e.vnode.shapeFlag&32){const r=t._;r?(Af(s,t,n),n&&Cd(s,"_",r,!0)):Sf(t,s)}else t&&Cf(e,t)},kg=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,a=We;if(s.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:Af(r,t,n):(o=!t.$stable,Sf(t,r)),a=t}else t&&(Cf(e,t),a={default:1});if(o)for(const i in r)!Mi(i)&&a[i]==null&&delete r[i]},Bt=Og;function Sg(e){return Cg(e)}function Cg(e,t){const n=_a();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:a,createText:i,createComment:u,setText:c,setElementText:d,parentNode:f,nextSibling:p,setScopeId:m=Tn,insertStaticContent:v}=e,w=(_,T,j,le=null,ne=null,re=null,O=void 0,P=null,q=!!T.dynamicChildren)=>{if(_===T)return;_&&!rr(_,T)&&(le=Ye(_),Be(_,ne,re,!0),_=null),T.patchFlag===-2&&(q=!1,T.dynamicChildren=null);const{type:U,ref:pe,shapeFlag:se}=T;switch(U){case bo:C(_,T,j,le);break;case vn:h(_,T,j,le);break;case jo:_==null&&b(T,j,le,O);break;case Ce:W(_,T,j,le,ne,re,O,P,q);break;default:se&1?R(_,T,j,le,ne,re,O,P,q):se&6?ue(_,T,j,le,ne,re,O,P,q):(se&64||se&128)&&U.process(_,T,j,le,ne,re,O,P,q,dt)}pe!=null&&ne?Ur(pe,_&&_.ref,re,T||_,!T):pe==null&&_&&_.ref!=null&&Ur(_.ref,null,re,_,!0)},C=(_,T,j,le)=>{if(_==null)s(T.el=i(T.children),j,le);else{const ne=T.el=_.el;T.children!==_.children&&c(ne,T.children)}},h=(_,T,j,le)=>{_==null?s(T.el=u(T.children||""),j,le):T.el=_.el},b=(_,T,j,le)=>{[_.el,_.anchor]=v(_.children,T,j,le,_.el,_.anchor)},$=({el:_,anchor:T},j,le)=>{let ne;for(;_&&_!==T;)ne=p(_),s(_,j,le),_=ne;s(T,j,le)},k=({el:_,anchor:T})=>{let j;for(;_&&_!==T;)j=p(_),r(_),_=j;r(T)},R=(_,T,j,le,ne,re,O,P,q)=>{if(T.type==="svg"?O="svg":T.type==="math"&&(O="mathml"),_==null)I(T,j,le,ne,re,O,P,q);else{const U=_.el&&_.el._isVueCE?_.el:null;try{U&&U._beginPatch(),N(_,T,ne,re,O,P,q)}finally{U&&U._endPatch()}}},I=(_,T,j,le,ne,re,O,P)=>{let q,U;const{props:pe,shapeFlag:se,transition:B,dirs:G}=_;if(q=_.el=a(_.type,re,pe&&pe.is,pe),se&8?d(q,_.children):se&16&&M(_.children,q,null,le,ne,ll(_,re),O,P),G&&Is(_,null,le,"created"),A(q,_,_.scopeId,O,le),pe){for(const Ae in pe)Ae!=="value"&&!qr(Ae)&&o(q,Ae,null,pe[Ae],re,le);"value"in pe&&o(q,"value",null,pe.value,re),(U=pe.onVnodeBeforeMount)&&bn(U,le,_)}G&&Is(_,null,le,"beforeMount");const _e=Ag(ne,B);_e&&B.beforeEnter(q),s(q,T,j),((U=pe&&pe.onVnodeMounted)||_e||G)&&Bt(()=>{try{U&&bn(U,le,_),_e&&B.enter(q),G&&Is(_,null,le,"mounted")}finally{}},ne)},A=(_,T,j,le,ne)=>{if(j&&m(_,j),le)for(let re=0;re<le.length;re++)m(_,le[re]);if(ne){let re=ne.subTree;if(T===re||Pf(re.type)&&(re.ssContent===T||re.ssFallback===T)){const O=ne.vnode;A(_,O,O.scopeId,O.slotScopeIds,ne.parent)}}},M=(_,T,j,le,ne,re,O,P,q=0)=>{for(let U=q;U<_.length;U++){const pe=_[U]=P?jn(_[U]):On(_[U]);w(null,pe,T,j,le,ne,re,O,P)}},N=(_,T,j,le,ne,re,O)=>{const P=T.el=_.el;let{patchFlag:q,dynamicChildren:U,dirs:pe}=T;q|=_.patchFlag&16;const se=_.props||We,B=T.props||We;let G;if(j&&Ms(j,!1),(G=B.onVnodeBeforeUpdate)&&bn(G,j,T,_),pe&&Is(T,_,j,"beforeUpdate"),j&&Ms(j,!0),U&&(!_.dynamicChildren||_.dynamicChildren.length!==U.length)&&(q=0,O=!1,U=null),(se.innerHTML&&B.innerHTML==null||se.textContent&&B.textContent==null)&&d(P,""),U?z(_.dynamicChildren,U,P,j,le,ll(T,ne),re):O||fe(_,T,P,null,j,le,ll(T,ne),re,!1),q>0){if(q&16)Y(P,se,B,j,ne);else if(q&2&&se.class!==B.class&&o(P,"class",null,B.class,ne),q&4&&o(P,"style",se.style,B.style,ne),q&8){const _e=T.dynamicProps;for(let Ae=0;Ae<_e.length;Ae++){const Me=_e[Ae],Qe=se[Me],je=B[Me];(je!==Qe||Me==="value")&&o(P,Me,Qe,je,ne,j)}}q&1&&_.children!==T.children&&d(P,T.children)}else!O&&U==null&&Y(P,se,B,j,ne);((G=B.onVnodeUpdated)||pe)&&Bt(()=>{G&&bn(G,j,T,_),pe&&Is(T,_,j,"updated")},le)},z=(_,T,j,le,ne,re,O)=>{for(let P=0;P<T.length;P++){const q=_[P],U=T[P],pe=q.el&&(q.type===Ce||!rr(q,U)||q.shapeFlag&198)?f(q.el):j;w(q,U,pe,null,le,ne,re,O,!0)}},Y=(_,T,j,le,ne)=>{if(T!==j){if(T!==We)for(const re in T)!qr(re)&&!(re in j)&&o(_,re,T[re],null,ne,le);for(const re in j){if(qr(re))continue;const O=j[re],P=T[re];O!==P&&re!=="value"&&o(_,re,P,O,ne,le)}"value"in j&&o(_,"value",T.value,j.value,ne)}},W=(_,T,j,le,ne,re,O,P,q)=>{const U=T.el=_?_.el:i(""),pe=T.anchor=_?_.anchor:i("");let{patchFlag:se,dynamicChildren:B,slotScopeIds:G}=T;G&&(P=P?P.concat(G):G),_==null?(s(U,j,le),s(pe,j,le),M(T.children||[],j,pe,ne,re,O,P,q)):se>0&&se&64&&B&&_.dynamicChildren&&_.dynamicChildren.length===B.length?(z(_.dynamicChildren,B,j,ne,re,O,P),(T.key!=null||ne&&T===ne.subTree)&&Li(_,T,!0)):fe(_,T,j,pe,ne,re,O,P,q)},ue=(_,T,j,le,ne,re,O,P,q)=>{T.slotScopeIds=P,_==null?T.shapeFlag&512?ne.ctx.activate(T,j,le,O,q):me(T,j,le,ne,re,O,q):X(_,T,q)},me=(_,T,j,le,ne,re,O)=>{const P=_.component=Mg(_,le,ne);if(lf(_)&&(P.ctx.renderer=dt),Rg(P,!1,O),P.asyncDep){if(ne&&ne.registerDep(P,ce,O),!_.el){const q=P.subTree=g(vn);h(null,q,T,j),_.placeholder=q.el}}else ce(P,_,T,j,ne,re,O)},X=(_,T,j)=>{const le=T.component=_.component;if(gg(_,T,j))if(le.asyncDep&&!le.asyncResolved){oe(le,T,j);return}else le.next=T,le.update();else T.el=_.el,le.vnode=T},ce=(_,T,j,le,ne,re,O)=>{const P=()=>{if(_.isMounted){let{next:se,bu:B,u:G,parent:_e,vnode:Ae}=_;{const At=Ef(_);if(At){se&&(se.el=Ae.el,oe(_,se,O)),At.asyncDep.then(()=>{Bt(()=>{_.isUnmounted||U()},ne)});return}}let Me=se,Qe;Ms(_,!1),se?(se.el=Ae.el,oe(_,se,O)):se=Ae,B&&Uo(B),(Qe=se.props&&se.props.onVnodeBeforeUpdate)&&bn(Qe,_e,se,Ae),Ms(_,!0);const je=Du(_),Wt=_.subTree;_.subTree=je,w(Wt,je,f(Wt.el),Ye(Wt),_,ne,re),se.el=je.el,Me===null&&vg(_,je.el),G&&Bt(G,ne),(Qe=se.props&&se.props.onVnodeUpdated)&&Bt(()=>bn(Qe,_e,se,Ae),ne)}else{let se;const{el:B,props:G}=T,{bm:_e,m:Ae,parent:Me,root:Qe,type:je}=_,Wt=pr(T);Ms(_,!1),_e&&Uo(_e),!Wt&&(se=G&&G.onVnodeBeforeMount)&&bn(se,Me,T),Ms(_,!0);{Qe.ce&&Qe.ce._hasShadowRoot()&&Qe.ce._injectChildStyle(je,_.parent?_.parent.type:void 0);const At=_.subTree=Du(_);w(null,At,j,le,_,ne,re),T.el=At.el}if(Ae&&Bt(Ae,ne),!Wt&&(se=G&&G.onVnodeMounted)){const At=T;Bt(()=>bn(se,Me,At),ne)}(T.shapeFlag&256||Me&&pr(Me.vnode)&&Me.vnode.shapeFlag&256)&&_.a&&Bt(_.a,ne),_.isMounted=!0,T=j=le=null}};_.scope.on();const q=_.effect=new Td(P);_.scope.off();const U=_.update=q.run.bind(q),pe=_.job=q.runIfDirty.bind(q);pe.i=_,pe.id=_.uid,q.scheduler=()=>Pi(pe),Ms(_,!0),U()},oe=(_,T,j)=>{T.component=_;const le=_.vnode.props;_.vnode=T,_.next=null,bg(_,T.props,le,j),kg(_,T.children,j),ts(),Eu(_),ns()},fe=(_,T,j,le,ne,re,O,P,q=!1)=>{const U=_&&_.children,pe=_?_.shapeFlag:0,se=T.children,{patchFlag:B,shapeFlag:G}=T;if(B>0){if(B&128){Z(U,se,j,le,ne,re,O,P,q);return}else if(B&256){ae(U,se,j,le,ne,re,O,P,q);return}}G&8?(pe&16&&Je(U,ne,re),se!==U&&d(j,se)):pe&16?G&16?Z(U,se,j,le,ne,re,O,P,q):Je(U,ne,re,!0):(pe&8&&d(j,""),G&16&&M(se,j,le,ne,re,O,P,q))},ae=(_,T,j,le,ne,re,O,P,q)=>{_=_||cr,T=T||cr;const U=_.length,pe=T.length,se=Math.min(U,pe);let B;for(B=0;B<se;B++){const G=T[B]=q?jn(T[B]):On(T[B]);w(_[B],G,j,null,ne,re,O,P,q)}U>pe?Je(_,ne,re,!0,!1,se):M(T,j,le,ne,re,O,P,q,se)},Z=(_,T,j,le,ne,re,O,P,q)=>{let U=0;const pe=T.length;let se=_.length-1,B=pe-1;for(;U<=se&&U<=B;){const G=_[U],_e=T[U]=q?jn(T[U]):On(T[U]);if(rr(G,_e))w(G,_e,j,null,ne,re,O,P,q);else break;U++}for(;U<=se&&U<=B;){const G=_[se],_e=T[B]=q?jn(T[B]):On(T[B]);if(rr(G,_e))w(G,_e,j,null,ne,re,O,P,q);else break;se--,B--}if(U>se){if(U<=B){const G=B+1,_e=G<pe?T[G].el:le;for(;U<=B;)w(null,T[U]=q?jn(T[U]):On(T[U]),j,_e,ne,re,O,P,q),U++}}else if(U>B)for(;U<=se;)Be(_[U],ne,re,!0),U++;else{const G=U,_e=U,Ae=new Map;for(U=_e;U<=B;U++){const Nt=T[U]=q?jn(T[U]):On(T[U]);Nt.key!=null&&Ae.set(Nt.key,U)}let Me,Qe=0;const je=B-_e+1;let Wt=!1,At=0;const Ts=new Array(je);for(U=0;U<je;U++)Ts[U]=0;for(U=G;U<=se;U++){const Nt=_[U];if(Qe>=je){Be(Nt,ne,re,!0);continue}let nn;if(Nt.key!=null)nn=Ae.get(Nt.key);else for(Me=_e;Me<=B;Me++)if(Ts[Me-_e]===0&&rr(Nt,T[Me])){nn=Me;break}nn===void 0?Be(Nt,ne,re,!0):(Ts[nn-_e]=U+1,nn>=At?At=nn:Wt=!0,w(Nt,T[nn],j,null,ne,re,O,P,q),Qe++)}const Sr=Wt?Eg(Ts):cr;for(Me=Sr.length-1,U=je-1;U>=0;U--){const Nt=_e+U,nn=T[Nt],So=T[Nt+1],Co=Nt+1<pe?So.el||Of(So):le;Ts[U]===0?w(null,nn,j,Co,ne,re,O,P,q):Wt&&(Me<0||U!==Sr[Me]?de(nn,j,Co,2):Me--)}}},de=(_,T,j,le,ne=null)=>{const{el:re,type:O,transition:P,children:q,shapeFlag:U}=_;if(U&6){de(_.component.subTree,T,j,le);return}if(U&128){_.suspense.move(T,j,le);return}if(U&64){O.move(_,T,j,dt);return}if(O===Ce){s(re,T,j);for(let se=0;se<q.length;se++)de(q[se],T,j,le);s(_.anchor,T,j);return}if(O===jo){$(_,T,j);return}if(le!==2&&U&1&&P)if(le===0)P.persisted&&!re[Cn]?s(re,T,j):(P.beforeEnter(re),s(re,T,j),Bt(()=>P.enter(re),ne));else{const{leave:se,delayLeave:B,afterLeave:G}=P,_e=()=>{_.ctx.isUnmounted?r(re):s(re,T,j)},Ae=()=>{const Me=re._isLeaving||!!re[Cn];re._isLeaving&&re[Cn](!0),P.persisted&&!Me?_e():se(re,()=>{_e(),G&&G()})};B?B(re,_e,Ae):Ae()}else s(re,T,j)},Be=(_,T,j,le=!1,ne=!1)=>{const{type:re,props:O,ref:P,children:q,dynamicChildren:U,shapeFlag:pe,patchFlag:se,dirs:B,cacheIndex:G,memo:_e}=_;if(se===-2&&(ne=!1),P!=null&&(ts(),Ur(P,null,j,_,!0),ns()),G!=null&&(T.renderCache[G]=void 0),pe&256){T.ctx.deactivate(_);return}const Ae=pe&1&&B,Me=!pr(_);let Qe;if(Me&&(Qe=O&&O.onVnodeBeforeUnmount)&&bn(Qe,T,_),pe&6)st(_.component,j,le);else{if(pe&128){_.suspense.unmount(j,le);return}Ae&&Is(_,null,T,"beforeUnmount"),pe&64?_.type.remove(_,T,j,dt,le):U&&!U.hasOnce&&(re!==Ce||se>0&&se&64)?Je(U,T,j,!1,!0):(re===Ce&&se&384||!ne&&pe&16)&&Je(q,T,j),le&<(_)}const je=_e!=null&&G==null;(Me&&(Qe=O&&O.onVnodeUnmounted)||Ae||je)&&Bt(()=>{Qe&&bn(Qe,T,_),Ae&&Is(_,null,T,"unmounted"),je&&(_.el=null)},j)},lt=_=>{const{type:T,el:j,anchor:le,transition:ne}=_;if(T===Ce){at(j,le);return}if(T===jo){k(_);return}const re=()=>{r(j),ne&&!ne.persisted&&ne.afterLeave&&ne.afterLeave()};if(_.shapeFlag&1&&ne&&!ne.persisted){const{leave:O,delayLeave:P}=ne,q=()=>O(j,re);P?P(_.el,re,q):q()}else re()},at=(_,T)=>{let j;for(;_!==T;)j=p(_),r(_),_=j;r(T)},st=(_,T,j)=>{const{bum:le,scope:ne,job:re,subTree:O,um:P,m:q,a:U}=_;qu(q),qu(U),le&&Uo(le),ne.stop(),re&&(re.flags|=8,Be(O,_,T,j)),P&&Bt(P,T),Bt(()=>{_.isUnmounted=!0},T)},Je=(_,T,j,le=!1,ne=!1,re=0)=>{for(let O=re;O<_.length;O++)Be(_[O],T,j,le,ne)},Ye=_=>{if(_.shapeFlag&6)return Ye(_.component.subTree);if(_.shapeFlag&128)return _.suspense.next();const T=p(_.anchor||_.el),j=T&&T[rf];return j?p(j):T};let Ve=!1;const $e=(_,T,j)=>{let le;_==null?T._vnode&&(Be(T._vnode,null,null,!0),le=T._vnode.component):w(T._vnode||null,_,T,null,null,null,j),T._vnode=_,Ve||(Ve=!0,Eu(le),Zd(),Ve=!1)},dt={p:w,um:Be,m:de,r:lt,mt:me,mc:M,pc:fe,pbc:z,n:Ye,o:e};return{render:$e,hydrate:void 0,createApp:dg($e)}}function ll({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 Ms({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ag(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Li(e,t,n=!1){const s=e.children,r=t.children;if(Se(s)&&Se(r))for(let o=0;o<s.length;o++){const a=s[o];let i=r[o];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=r[o]=jn(r[o]),i.el=a.el),!n&&i.patchFlag!==-2&&Li(a,i)),i.type===bo&&(i.patchFlag===-1&&(i=r[o]=jn(i)),i.el=a.el),i.type===vn&&!i.el&&(i.el=a.el)}}function Eg(e){const t=e.slice(),n=[0];let s,r,o,a,i;const u=e.length;for(s=0;s<u;s++){const c=e[s];if(c!==0){if(r=n[n.length-1],e[r]<c){t[s]=r,n.push(s);continue}for(o=0,a=n.length-1;o<a;)i=o+a>>1,e[n[i]]<c?o=i+1:a=i;c<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function Ef(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ef(t)}function qu(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Of(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Of(t.subTree):null}const Pf=e=>e.__isSuspense;function Og(e,t){t&&t.pendingBranch?Se(e)?t.effects.push(...e):t.effects.push(e):Mh(e)}const Ce=Symbol.for("v-fgt"),bo=Symbol.for("v-txt"),vn=Symbol.for("v-cmt"),jo=Symbol.for("v-stc"),Jn=[];let Ut=null;function x(e=!1){Jn.push(Ut=e?null:[])}function Di(){Jn.pop(),Ut=Jn[Jn.length-1]||null}let vr=1;function Qo(e,t=!1){vr+=e,e<0&&Ut&&t&&(Ut.hasOnce=!0)}function Tf(e){return e.dynamicChildren=vr>0?Ut||cr:null,Di(),vr>0&&Ut&&Ut.push(e),e}function J(e,t,n,s,r,o){return Tf(S(e,t,n,s,r,o,!0))}function D(e,t,n,s,r){return Tf(g(e,t,n,s,r,!0))}function eo(e){return e?e.__v_isVNode===!0:!1}function rr(e,t){return e.type===t.type&&e.key===t.key}const $f=({key:e})=>e??null,Ho=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ct(e)||pt(e)||Oe(e)?{i:Tt,r:e,k:t,f:!!n}:e:null);function S(e,t=null,n=null,s=0,r=null,o=e===Ce?0:1,a=!1,i=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$f(t),ref:t&&Ho(t),scopeId:tf,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Tt};return i?(Zo(u,n),o&128&&e.normalize(u)):n&&(u.shapeFlag|=ct(n)?8:16),vr>0&&!a&&Ut&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&Ut.push(u),u}const g=Pg;function Pg(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===cf)&&(e=vn),eo(e)){const i=_s(e,t,!0);return n&&Zo(i,n),vr>0&&!o&&Ut&&(i.shapeFlag&6?Ut[Ut.indexOf(e)]=i:Ut.push(i)),i.patchFlag=-2,i}if(Ng(e)&&(e=e.__vccOpts),t){t=$t(t);let{class:i,style:u}=t;i&&!ct(i)&&(t.class=xe(i)),Xe(u)&&(Aa(u)&&!Se(u)&&(u=vt({},u)),t.style=hn(u))}const a=ct(e)?1:Pf(e)?128:Nh(e)?64:Xe(e)?4:Oe(e)?2:0;return S(e,t,n,s,r,a,o,!0)}function $t(e){return e?Aa(e)||wf(e)?vt({},e):e:null}function _s(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:a,children:i,transition:u}=e,c=t?Ee(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&$f(c),ref:t&&t.ref?n&&o?Se(o)?o.concat(Ho(t)):[o,Ho(t)]:Ho(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&_s(e.ssContent),ssFallback:e.ssFallback&&_s(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&s&&Qr(d,u.clone(d)),d}function K(e=" ",t=0){return g(bo,null,e,t)}function Tg(e,t){const n=g(jo,null,e);return n.staticCount=t,n}function we(e="",t=!1){return t?(x(),D(vn,null,e)):g(vn,null,e)}function On(e){return e==null||typeof e=="boolean"?g(vn):Se(e)?g(Ce,null,e.slice()):eo(e)?jn(e):g(bo,null,String(e))}function jn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:_s(e)}function Zo(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(Se(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Zo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!wf(t)?t._ctx=Tt:r===3&&Tt&&(Tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Oe(t)){if(s&65){Zo(e,{default:t});return}t={default:t,_ctx:Tt},n=32}else t=String(t),s&64?(n=16,t=[K(t)]):n=8;e.children=t,e.shapeFlag|=n}function Ee(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=xe([t.class,s.class]));else if(r==="style")t.style=hn([t.style,s.style]);else if(ha(r)){const o=t[r],a=s[r];a&&o!==a&&!(Se(o)&&o.includes(a))?t[r]=o?[].concat(o,a):a:a==null&&o==null&&!ga(r)&&(t[r]=a)}else r!==""&&(t[r]=s[r])}return t}function bn(e,t,n,s=null){un(e,t,7,[n,s])}const $g=hf();let Ig=0;function Mg(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||$g,o={uid:Ig++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Pd(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:kf(s,r),emitsOptions:vf(s,r),emit:null,emitted:null,propsDefaults:We,inheritAttrs:s.inheritAttrs,ctx:We,data:We,props:We,attrs:We,slots:We,refs:We,setupState:We,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=fg.bind(null,o),e.ce&&e.ce(o),o}let Dt=null;const Jt=()=>Dt||Tt;let ea,Bl;{const e=_a(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(a=>a(o)):r[0](o)}};ea=t("__VUE_INSTANCE_SETTERS__",n=>Dt=n),Bl=t("__VUE_SSR_SETTERS__",n=>to=n)}const _o=e=>{const t=Dt;return ea(e),e.scope.on(),()=>{e.scope.off(),ea(t)}},Bu=()=>{Dt&&Dt.scope.off(),ea(null)};function If(e){return e.vnode.shapeFlag&4}let to=!1;function Rg(e,t=!1,n=!1){t&&Bl(t);const{props:s,children:r}=e.vnode,o=If(e);yg(e,s,o,t),xg(e,r,n||t);const a=o?Lg(e,t):void 0;return t&&Bl(!1),a}function Lg(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ng);const{setup:s}=n;if(s){ts();const r=e.setupContext=s.length>1?Rf(e):null,o=_o(e),a=ho(s,e,0,[e.props,r]),i=xd(a);if(ns(),o(),(i||e.sp)&&!pr(e)&&af(e),i){if(a.then(Bu,Bu),t)return a.then(u=>{Vu(e,u)}).catch(u=>{Oa(u,e,0)});e.asyncDep=a}else Vu(e,a)}else Mf(e)}function Vu(e,t,n){Oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Xe(t)&&(e.setupState=Gd(t)),Mf(e)}function Mf(e,t,n){const s=e.type;e.render||(e.render=s.render||Tn);{const r=_o(e);ts();try{og(e)}finally{ns(),r()}}}const Dg={get(e,t){return Lt(e,"get",""),e[t]}};function Rf(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Dg),slots:e.slots,emit:e.emit,expose:t}}function Ia(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Gd(Kd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in jr)return jr[n](e)},has(t,n){return n in t||n in jr}})):e.proxy}function Fg(e,t=!0){return Oe(e)?e.displayName||e.name:e.name||t&&e.__name}function Ng(e){return Oe(e)&&"__vccOpts"in e}const te=(e,t)=>Oh(e,t,to);function en(e,t,n){try{Qo(-1);const s=arguments.length;return s===2?Xe(t)&&!Se(t)?eo(t)?g(e,null,[t]):g(e,t):g(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&eo(n)&&(n=[n]),g(e,t,n))}finally{Qo(1)}}function qg(e,t,n,s){const r=n[s];if(r&&Bg(r,e))return r;const o=t();return o.memo=e.slice(),o.cacheIndex=s,n[s]=o}function Bg(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let s=0;s<n.length;s++)if(Et(n[s],t[s]))return!1;return vr>0&&Ut&&Ut.push(e),!0}const Vg="3.5.40";/**
|
|
14
|
-
* @vue/runtime-dom v3.5.40
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**/let Vl;const Uu=typeof window<"u"&&window.trustedTypes;if(Uu)try{Vl=Uu.createPolicy("vue",{createHTML:e=>e})}catch{}const Lf=Vl?e=>Vl.createHTML(e):e=>e,Ug="http://www.w3.org/2000/svg",jg="http://www.w3.org/1998/Math/MathML",Un=typeof document<"u"?document:null,ju=Un&&Un.createElement("template"),Hg={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Un.createElementNS(Ug,e):t==="mathml"?Un.createElementNS(jg,e):n?Un.createElement(e,{is:n}):Un.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Un.createTextNode(e),createComment:e=>Un.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Un.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const a=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{ju.innerHTML=Lf(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=ju.content;if(s==="svg"||s==="mathml"){const u=i.firstChild;for(;u.firstChild;)i.appendChild(u.firstChild);i.removeChild(u)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},fs="transition",Pr="animation",yr=Symbol("_vtc"),Df={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},Wg=vt({},jh,Df),Rs=(e,t=[])=>{Se(e)?e.forEach(n=>n(...t)):e&&e(...t)},Hu=e=>e?Se(e)?e.some(t=>t.length>1):e.length>1:!1;function Kg(e){const t={};for(const W in e)W in Df||(t[W]=e[W]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:c=a,appearToClass:d=i,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,v=zg(r),w=v&&v[0],C=v&&v[1],{onBeforeEnter:h,onEnter:b,onEnterCancelled:$,onLeave:k,onLeaveCancelled:R,onBeforeAppear:I=h,onAppear:A=b,onAppearCancelled:M=$}=t,N=(W,ue,me,X)=>{W._enterCancelled=X,hs(W,ue?d:i),hs(W,ue?c:a),me&&me()},z=(W,ue)=>{W._isLeaving=!1,hs(W,f),hs(W,m),hs(W,p),ue&&ue()},Y=W=>(ue,me)=>{const X=W?A:b,ce=()=>N(ue,W,me);Rs(X,[ue,ce]),Wu(()=>{hs(ue,W?u:o),kn(ue,W?d:i),Hu(X)||Ku(ue,s,w,ce)})};return vt(t,{onBeforeEnter(W){Rs(h,[W]),kn(W,o),kn(W,a)},onBeforeAppear(W){Rs(I,[W]),kn(W,u),kn(W,c)},onEnter:Y(!1),onAppear:Y(!0),onLeave(W,ue){W._isLeaving=!0;const me=()=>z(W,ue);kn(W,f),W._enterCancelled?(kn(W,p),Ul(W)):(Ul(W),kn(W,p)),Wu(()=>{W._isLeaving&&(hs(W,f),kn(W,m),Hu(k)||Ku(W,s,C,me))}),Rs(k,[W,me])},onEnterCancelled(W){N(W,!1,void 0,!0),Rs($,[W])},onAppearCancelled(W){N(W,!0,void 0,!0),Rs(M,[W])},onLeaveCancelled(W){z(W),Rs(R,[W])}})}function zg(e){if(e==null)return null;if(Xe(e))return[il(e.enter),il(e.leave)];{const t=il(e);return[t,t]}}function il(e){return zm(e)}function kn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[yr]||(e[yr]=new Set)).add(t)}function hs(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[yr];n&&(n.delete(t),n.size||(e[yr]=void 0))}function Wu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Gg=0;function Ku(e,t,n,s){const r=e._endId=++Gg,o=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:a,timeout:i,propCount:u}=Ff(e,t);if(!a)return s();const c=a+"end";let d=0;const f=()=>{e.removeEventListener(c,p),o()},p=m=>{m.target===e&&++d>=u&&f()};setTimeout(()=>{d<u&&f()},i+1),e.addEventListener(c,p)}function Ff(e,t){const n=window.getComputedStyle(e),s=v=>(n[v]||"").split(", "),r=s(`${fs}Delay`),o=s(`${fs}Duration`),a=zu(r,o),i=s(`${Pr}Delay`),u=s(`${Pr}Duration`),c=zu(i,u);let d=null,f=0,p=0;t===fs?a>0&&(d=fs,f=a,p=o.length):t===Pr?c>0&&(d=Pr,f=c,p=u.length):(f=Math.max(a,c),d=f>0?a>c?fs:Pr:null,p=d?d===fs?o.length:u.length:0);const m=d===fs&&/\b(?:transform|all)(?:,|$)/.test(s(`${fs}Property`).toString());return{type:d,timeout:f,propCount:p,hasTransform:m}}function zu(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Gu(n)+Gu(e[s])))}function Gu(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ul(e){return(e?e.ownerDocument:document).body.offsetHeight}function Yg(e,t,n){const s=e[yr];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ta=Symbol("_vod"),Fi=Symbol("_vsh"),jl={name:"show",beforeMount(e,{value:t},{transition:n}){e[ta]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Tr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Tr(e,!0),s.enter(e)):s.leave(e,()=>{Tr(e,!1)}):Tr(e,t))},beforeUnmount(e,{value:t}){Tr(e,t)}};function Tr(e,t){e.style.display=t?e[ta]:"none",e[Fi]=!t}const Xg=Symbol(""),Jg=/(?:^|;)\s*display\s*:/;function Qg(e,t,n){const s=e.style,r=ct(n);let o=!1;if(n&&!r){if(t)if(ct(t))for(const a of t.split(";")){const i=a.slice(0,a.indexOf(":")).trim();n[i]==null&&Nr(s,i,"")}else for(const a in t)n[a]==null&&Nr(s,a,"");for(const a in n){a==="display"&&(o=!0);const i=n[a];i!=null?ev(e,a,!ct(t)&&t?t[a]:void 0,i)||Nr(s,a,i):Nr(s,a,"")}}else if(r){if(t!==n){const a=s[Xg];a&&(n+=";"+a),s.cssText=n,o=Jg.test(n)}}else t&&e.removeAttribute("style");ta in e&&(e[ta]=o?s.display:"",e[Fi]&&(s.display="none"))}const Yu=/\s*!important$/;function Nr(e,t,n){if(Se(n))n.forEach(s=>Nr(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Zg(e,t);Yu.test(n)?e.setProperty(ls(s),n.replace(Yu,""),"important"):e[s]=n}}const Xu=["Webkit","Moz","ms"],ul={};function Zg(e,t){const n=ul[t];if(n)return n;let s=Ot(t);if(s!=="filter"&&s in e)return ul[t]=s;s=ba(s);for(let r=0;r<Xu.length;r++){const o=Xu[r]+s;if(o in e)return ul[t]=o}return t}function ev(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ct(s)&&n===s}const Ju="http://www.w3.org/1999/xlink";function Qu(e,t,n,s,r,o=Zm(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ju,t.slice(6,t.length)):e.setAttributeNS(Ju,t,n):n==null||o&&!Ad(n)?e.removeAttribute(t):e.setAttribute(t,o?"":tn(n)?String(n):n)}function Zu(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Lf(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,u=n==null?e.type==="checkbox"?"on":"":String(n);(i!==u||!("_value"in e))&&(e.value=u),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=Ad(n):n==null&&i==="string"?(n="",a=!0):i==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(r||t)}function or(e,t,n,s){e.addEventListener(t,n,s)}function tv(e,t,n,s){e.removeEventListener(t,n,s)}const ec=Symbol("_vei");function nv(e,t,n,s,r=null){const o=e[ec]||(e[ec]={}),a=o[t];if(s&&a)a.value=s;else{const[i,u]=ov(t);if(s){const c=o[t]=iv(s,r);or(e,i,c,u)}else a&&(tv(e,i,a,u),o[t]=void 0)}}const sv=/(Once|Passive|Capture)$/,rv=/^on:?(?:Once|Passive|Capture)$/;function ov(e){let t,n;for(;(n=e.match(sv))&&!rv.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):ls(e.slice(2)),t]}let cl=0;const av=Promise.resolve(),lv=()=>cl||(av.then(()=>cl=0),cl=Date.now());function iv(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(Se(r)){const o=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{o.call(s),s._stopped=!0};const a=r.slice(),i=[s];for(let u=0;u<a.length&&!s._stopped;u++){const c=a[u];c&&un(c,t,5,i)}}else un(r,t,5,[s])};return n.value=e,n.attached=lv(),n}const tc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,uv=(e,t,n,s,r,o)=>{const a=r==="svg";t==="class"?Yg(e,s,a):t==="style"?Qg(e,n,s):ha(t)?ga(t)||nv(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):cv(e,t,s,a))?(Zu(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qu(e,t,s,a,o,t!=="value")):e._isVueCE&&(dv(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ct(s)))?Zu(e,Ot(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Qu(e,t,s,a))};function cv(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&tc(t)&&Oe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return tc(t)&&ct(n)?!1:t in e}function dv(e,t){const n=e._def.props;if(!n)return!1;const s=Ot(t);return Array.isArray(n)?n.some(r=>Ot(r)===s):Object.keys(n).some(r=>Ot(r)===s)}const Nf=new WeakMap,qf=new WeakMap,na=Symbol("_moveCb"),nc=Symbol("_enterCb"),fv=e=>(delete e.props.mode,e),pv=fv({name:"TransitionGroup",props:vt({},Wg,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Jt(),s=Uh();let r,o;return Ii(()=>{if(!r.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!yv(r[0].el,n.vnode.el,a)){r=[];return}r.forEach(hv),r.forEach(gv);const i=r.filter(vv);Ul(n.vnode.el),i.forEach(u=>{const c=u.el,d=c.style;kn(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const f=c[na]=p=>{p&&p.target!==c||(!p||p.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[na]=null,hs(c,a))};c.addEventListener("transitionend",f)}),r=[]}),()=>{const a=He(e),i=Kg(a);let u=a.tag||Ce;if(r=[],o)for(let c=0;c<o.length;c++){const d=o[c];d.el&&d.el instanceof Element&&!d.el[Fi]&&(r.push(d),Qr(d,Ll(d,i,s,n)),Nf.set(d,Bf(d.el)))}o=t.default?of(t.default()):[];for(let c=0;c<o.length;c++){const d=o[c];d.key!=null&&Qr(d,Ll(d,i,s,n))}return g(u,null,o)}}}),mv=pv;function hv(e){const t=e.el;t[na]&&t[na](),t[nc]&&t[nc]()}function gv(e){qf.set(e,Bf(e.el))}function vv(e){const t=Nf.get(e),n=qf.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const o=e.el,a=o.style,i=o.getBoundingClientRect();let u=1,c=1;return o.offsetWidth&&(u=i.width/o.offsetWidth),o.offsetHeight&&(c=i.height/o.offsetHeight),(!Number.isFinite(u)||u===0)&&(u=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(u-1)<.01&&(u=1),Math.abs(c-1)<.01&&(c=1),a.transform=a.webkitTransform=`translate(${s/u}px,${r/c}px)`,a.transitionDuration="0s",e}}function Bf(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function yv(e,t,n){const s=e.cloneNode(),r=e[yr];r&&r.forEach(i=>{i.split(/\s+/).forEach(u=>u&&s.classList.remove(u))}),n.split(/\s+/).forEach(i=>i&&s.classList.add(i)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:a}=Ff(s);return o.removeChild(s),a}const sc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Se(t)?n=>Uo(t,n):t};function bv(e){e.target.composing=!0}function rc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const dl=Symbol("_assign");function oc(e,t,n){return t&&(e=e.trim()),n&&(e=xi(e)),e}const Vf={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[dl]=sc(r);const o=s||r.props&&r.props.type==="number";or(e,t?"change":"input",a=>{a.target.composing||e[dl](oc(e.value,n,o))}),(n||o)&&or(e,"change",()=>{e.value=oc(e.value,n,o)}),t||(or(e,"compositionstart",bv),or(e,"compositionend",rc),or(e,"change",rc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},a){if(e[dl]=sc(a),e.composing)return;const i=(o||e.type==="number")&&!/^0\d/.test(e.value)?xi(e.value):e.value,u=t??"";if(i===u)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===u)||(e.value=u)}},_v=["ctrl","shift","alt","meta"],wv={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)=>_v.some(n=>e[`${n}Key`]&&!t.includes(n))},ln=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let a=0;a<t.length;a++){const i=wv[t[a]];if(i&&i(r,t))return}return e(r,...o)})},xv={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Bs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const o=ls(r.key);if(t.some(a=>a===o||xv[a]===o))return e(r)})},kv=vt({patchProp:uv},Hg);let ac;function Sv(){return ac||(ac=Sg(kv))}const Cv=(...e)=>{const t=Sv().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Ev(s);if(!r)return;const o=t._component;!Oe(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const a=n(r,!1,Av(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function Av(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ev(e){return ct(e)?document.querySelector(e):e}/*!
|
|
18
|
-
* shared v11.4.8
|
|
19
|
-
* (c) 2026 kazuya kawaguchi
|
|
20
|
-
* Released under the MIT License.
|
|
21
|
-
*/const sa=typeof window<"u",ks=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Ov=(e,t,n)=>Pv({l:e,k:t,s:n}),Pv=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),wt=e=>typeof e=="number"&&isFinite(e),Uf=e=>qi(e)==="[object Date]",br=e=>qi(e)==="[object RegExp]",Ni=e=>nt(e)&&Object.keys(e).length===0,xt=Object.assign,Tv=Object.create,ot=(e=null)=>Tv(e);let lc;const Vs=()=>lc||(lc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ot()),$v=Object.prototype.hasOwnProperty;function an(e,t){return $v.call(e,t)}const gt=Array.isArray,ft=e=>typeof e=="function",he=e=>typeof e=="string",Ke=e=>typeof e=="boolean",ze=e=>e!==null&&typeof e=="object",Iv=e=>ze(e)&&ft(e.then)&&ft(e.catch),jf=Object.prototype.toString,qi=e=>jf.call(e),nt=e=>qi(e)==="[object Object]",Mv=e=>e==null?"":gt(e)||nt(e)&&e.toString===jf?JSON.stringify(e,null,2):String(e);function Bi(e,t=""){return e.reduce((n,s,r)=>r===0?n+s:n+t+s,"")}function Rv(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function ic(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function Lv(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}const Dv=/^javascript:/i,Fv=/^(?:href|src|action|formaction)$/i,Nv=/&#(?:x([0-9a-f]+)|(\d+));?/gi,qv=/&(?:Tab|NewLine);/g,Bv=/:?/gi,Vv=/[\u0000-\u0020\u007f-\u009f]/g,Uv=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,jv=/(^|[\s"'<>/])on(\w+\s*=)/gi,Hv=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function Wv(e,t,n){const s=t||n;if(!s)return e;const r=Number.parseInt(s,t?16:10);return r<=127?String.fromCharCode(r):e}function Vi(e){const t=e.replace(Nv,Wv).replace(qv,"").replace(Bv,":").replace(Vv,"");return Dv.test(t)}function Kv(e){const t=/url\s*\(/gi;let n="",s=0,r;for(;(r=t.exec(e))!==null;){const o=r.index,a=t.lastIndex-1;let i=a+1,u=1,c=null;for(;i<e.length;i++){const p=e[i];if(c){p===c&&(c=null);continue}if(p==='"'||p==="'")c=p;else if(p==="(")u++;else if(p===")"&&(u--,u===0))break}if(u!==0)break;const d=e.slice(a+1,i).trim(),f=d.startsWith('"')&&d.endsWith('"')||d.startsWith("'")&&d.endsWith("'")?d.slice(1,-1).trim():d;n+=e.slice(s,o),n+=Vi(f)?"url(about:blank)":e.slice(o,i+1),s=i+1}return n+e.slice(s)}function uc(e,t){if(Fv.test(e)&&Vi(t))return"about:blank";const n=e.toLowerCase()==="style"?Kv(t):t;return Lv(n)}function zv(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(t,n,s)=>`${n}="${uc(n,s)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(t,n,s)=>`${n}='${uc(n,s)}'`),Uv.test(e)&&(e=e.replace(jv,"$1on$2")),e=e.replace(Hv,(t,n,s,r)=>Vi(r)?`${n}${s}about:blank`:t),e}const $o=e=>!ze(e)||gt(e);function Wo(e,t){if($o(e)||$o(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:r}=n.pop();Object.keys(s).forEach(o=>{o!=="__proto__"&&(ze(s[o])&&!ze(r[o])&&(r[o]=Array.isArray(s[o])?[]:ot()),$o(r[o])||$o(s[o])?r[o]=s[o]:n.push({src:s[o],des:r[o]}))})}}/*!
|
|
22
|
-
* message-compiler v11.4.8
|
|
23
|
-
* (c) 2026 kazuya kawaguchi
|
|
24
|
-
* Released under the MIT License.
|
|
25
|
-
*/function Gv(e,t,n){return{line:e,column:t,offset:n}}function Hl(e,t,n){return{start:e,end:t}}const et={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},Yv=17;function Ma(e,t,n={}){const{domain:s,messages:r,args:o}=n,a=e,i=new SyntaxError(String(a));return i.code=e,t&&(i.location=t),i.domain=s,i}function Xv(e){throw e}const _n=" ",Jv="\r",Rt=`
|
|
26
|
-
`,Qv="\u2028",Zv="\u2029";function ey(e){const t=e;let n=0,s=1,r=1,o=0;const a=A=>t[A]===Jv&&t[A+1]===Rt,i=A=>t[A]===Rt,u=A=>t[A]===Zv,c=A=>t[A]===Qv,d=A=>a(A)||i(A)||u(A)||c(A),f=()=>n,p=()=>s,m=()=>r,v=()=>o,w=A=>a(A)||u(A)||c(A)?Rt:t[A],C=()=>w(n),h=()=>w(n+o);function b(){return o=0,d(n)&&(s++,r=0),a(n)&&n++,n++,r++,t[n]}function $(){return a(n+o)&&o++,o++,t[n+o]}function k(){n=0,s=1,r=1,o=0}function R(A=0){o=A}function I(){const A=n+o;for(;A!==n;)b();o=0}return{index:f,line:p,column:m,peekOffset:v,charAt:w,currentChar:C,currentPeek:h,next:b,peek:$,reset:k,resetPeek:R,skipToPeek:I}}const Bn=void 0,ty=".",cc="'",ny="tokenizer";function sy(e,t={}){const n=t.location!==!1,s=ey(e),r=()=>s.index(),o=()=>Gv(s.line(),s.column(),s.index()),a=o(),i=r(),u={currentType:13,offset:i,startLoc:a,endLoc:a,lastType:13,lastOffset:i,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>u,{onError:d}=t;function f(O,P,q,...U){const pe=c();if(P.column+=q,P.offset+=q,d){const se=n?Hl(pe.startLoc,P):null,B=Ma(O,se,{domain:ny,args:U});d(B)}}function p(O,P,q){O.endLoc=o(),O.currentType=P;const U={type:P};return n&&(U.loc=Hl(O.startLoc,O.endLoc)),q!=null&&(U.value=q),U}const m=O=>p(O,13);function v(O,P){return O.currentChar()===P?(O.next(),P):(f(et.EXPECTED_TOKEN,o(),0,P),"")}function w(O){let P="";for(;O.currentPeek()===_n||O.currentPeek()===Rt;)P+=O.currentPeek(),O.peek();return P}function C(O){const P=w(O);return O.skipToPeek(),P}function h(O){if(O===Bn)return!1;const P=O.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P===95}function b(O){if(O===Bn)return!1;const P=O.charCodeAt(0);return P>=48&&P<=57}function $(O,P){const{currentType:q}=P;if(q!==2)return!1;w(O);const U=h(O.currentPeek());return O.resetPeek(),U}function k(O,P){const{currentType:q}=P;if(q!==2)return!1;w(O);const U=O.currentPeek()==="-"?O.peek():O.currentPeek(),pe=b(U);return O.resetPeek(),pe}function R(O,P){const{currentType:q}=P;if(q!==2)return!1;w(O);const U=O.currentPeek()===cc;return O.resetPeek(),U}function I(O,P){const{currentType:q}=P;if(q!==7)return!1;w(O);const U=O.currentPeek()===".";return O.resetPeek(),U}function A(O,P){const{currentType:q}=P;if(q!==8)return!1;w(O);const U=h(O.currentPeek());return O.resetPeek(),U}function M(O,P){const{currentType:q}=P;if(!(q===7||q===11))return!1;w(O);const U=O.currentPeek()===":";return O.resetPeek(),U}function N(O,P){const{currentType:q}=P;if(q!==9)return!1;const U=()=>{const se=O.currentPeek();return se==="{"?h(O.peek()):se==="@"||se==="|"||se===":"||se==="."||se===_n||!se?!1:se===Rt?(O.peek(),U()):Y(O,!1)},pe=U();return O.resetPeek(),pe}function z(O){w(O);const P=O.currentPeek()==="|";return O.resetPeek(),P}function Y(O,P=!0){const q=(pe=!1,se="")=>{const B=O.currentPeek();return B==="{"||B==="@"||!B?pe:B==="|"?!(se===_n||se===Rt):B===_n?(O.peek(),q(!0,_n)):B===Rt?(O.peek(),q(!0,Rt)):!0},U=q();return P&&O.resetPeek(),U}function W(O,P){const q=O.currentChar();return q===Bn?Bn:P(q)?(O.next(),q):null}function ue(O){const P=O.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===95||P===36}function me(O){return W(O,ue)}function X(O){const P=O.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===95||P===36||P===45}function ce(O){return W(O,X)}function oe(O){const P=O.charCodeAt(0);return P>=48&&P<=57}function fe(O){return W(O,oe)}function ae(O){const P=O.charCodeAt(0);return P>=48&&P<=57||P>=65&&P<=70||P>=97&&P<=102}function Z(O){return W(O,ae)}function de(O){let P="",q="";for(;P=fe(O);)q+=P;return q}function Be(O){let P="";for(;;){const q=O.currentChar();if(q==="\\"){const U=O.peek();U==="{"||U==="}"||U==="@"||U==="|"||U==="\\"?(P+=q+U,O.next(),O.next()):(O.resetPeek(),P+=q,O.next())}else{if(q==="{"||q==="}"||q==="@"||q==="|"||!q)break;if(q===_n||q===Rt)if(Y(O))P+=q,O.next();else{if(z(O))break;P+=q,O.next()}else P+=q,O.next()}}return P}function lt(O){C(O);let P="",q="";for(;P=ce(O);)q+=P;const U=O.currentChar();if(U&&U!=="}"&&U!==Bn&&U!==_n&&U!==Rt&&U!==" "){const pe=dt(O);return f(et.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,q+pe),q+pe}return O.currentChar()===Bn&&f(et.UNTERMINATED_CLOSING_BRACE,o(),0),q}function at(O){C(O);let P="";return O.currentChar()==="-"?(O.next(),P+=`-${de(O)}`):P+=de(O),O.currentChar()===Bn&&f(et.UNTERMINATED_CLOSING_BRACE,o(),0),P}function st(O){return O!==cc&&O!==Rt}function Je(O){C(O),v(O,"'");let P="",q="";for(;P=W(O,st);)P==="\\"?q+=Ye(O):q+=P;const U=O.currentChar();return U===Rt||U===Bn?(f(et.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),U===Rt&&(O.next(),v(O,"'")),q):(v(O,"'"),q)}function Ye(O){const P=O.currentChar();switch(P){case"\\":case"'":return O.next(),`\\${P}`;case"u":return Ve(O,P,4);case"U":return Ve(O,P,6);default:return f(et.UNKNOWN_ESCAPE_SEQUENCE,o(),0,P),""}}function Ve(O,P,q){v(O,P);let U="";for(let pe=0;pe<q;pe++){const se=Z(O);if(!se){f(et.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${P}${U}${O.currentChar()}`);break}U+=se}return`\\${P}${U}`}function $e(O){return O!=="{"&&O!=="}"&&O!==_n&&O!==Rt}function dt(O){C(O);let P="",q="";for(;P=W(O,$e);)q+=P;return q}function ge(O){let P="",q="";for(;P=me(O);)q+=P;return q}function _(O){const P=q=>{const U=O.currentChar();return U==="{"||U==="@"||U==="|"||U==="("||U===")"||!U||U===_n?q:(q+=U,O.next(),P(q))};return P("")}function T(O){C(O);const P=v(O,"|");return C(O),P}function j(O,P){let q=null;switch(O.currentChar()){case"{":return P.braceNest>=1&&f(et.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),O.next(),q=p(P,2,"{"),C(O),P.braceNest++,q;case"}":return P.braceNest>0&&P.currentType===2&&f(et.EMPTY_PLACEHOLDER,o(),0),O.next(),q=p(P,3,"}"),P.braceNest--,P.braceNest>0&&C(O),P.inLinked&&P.braceNest===0&&(P.inLinked=!1),q;case"@":return P.braceNest>0&&f(et.UNTERMINATED_CLOSING_BRACE,o(),0),q=le(O,P)||m(P),P.braceNest=0,q;default:{let pe=!0,se=!0,B=!0;if(z(O))return P.braceNest>0&&f(et.UNTERMINATED_CLOSING_BRACE,o(),0),q=p(P,1,T(O)),P.braceNest=0,P.inLinked=!1,q;if(P.braceNest>0&&(P.currentType===4||P.currentType===5||P.currentType===6))return f(et.UNTERMINATED_CLOSING_BRACE,o(),0),P.braceNest=0,ne(O,P);if(pe=$(O,P))return q=p(P,4,lt(O)),C(O),q;if(se=k(O,P))return q=p(P,5,at(O)),C(O),q;if(B=R(O,P))return q=p(P,6,Je(O)),C(O),q;if(!pe&&!se&&!B)return q=p(P,12,dt(O)),f(et.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,q.value),C(O),q;break}}return q}function le(O,P){const{currentType:q}=P;let U=null;const pe=O.currentChar();switch((q===7||q===8||q===11||q===9)&&(pe===Rt||pe===_n)&&f(et.INVALID_LINKED_FORMAT,o(),0),pe){case"@":return O.next(),U=p(P,7,"@"),P.inLinked=!0,U;case".":return C(O),O.next(),p(P,8,".");case":":return C(O),O.next(),p(P,9,":");default:return z(O)?(U=p(P,1,T(O)),P.braceNest=0,P.inLinked=!1,U):I(O,P)||M(O,P)?(C(O),le(O,P)):A(O,P)?(C(O),p(P,11,ge(O))):N(O,P)?(C(O),pe==="{"?j(O,P)||U:p(P,10,_(O))):(q===7&&f(et.INVALID_LINKED_FORMAT,o(),0),P.braceNest=0,P.inLinked=!1,ne(O,P))}}function ne(O,P){let q={type:13};if(P.braceNest>0)return j(O,P)||m(P);if(P.inLinked)return le(O,P)||m(P);switch(O.currentChar()){case"{":return j(O,P)||m(P);case"}":return f(et.UNBALANCED_CLOSING_BRACE,o(),0),O.next(),p(P,3,"}");case"@":return le(O,P)||m(P);default:{if(z(O))return q=p(P,1,T(O)),P.braceNest=0,P.inLinked=!1,q;if(Y(O))return p(P,0,Be(O));break}}return q}function re(){const{currentType:O,offset:P,startLoc:q,endLoc:U}=u;return u.lastType=O,u.lastOffset=P,u.lastStartLoc=q,u.lastEndLoc=U,u.offset=r(),u.startLoc=o(),s.currentChar()===Bn?p(u,13):ne(s,u)}return{nextToken:re,currentOffset:r,currentPosition:o,context:c}}const ry="parser",oy=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,ay=/\\([\\@{}|])/g;function ly(e,t){return t}function iy(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function uy(e={}){const t=e.location!==!1,{onError:n}=e;function s(h,b,$,k,...R){const I=h.currentPosition();if(I.offset+=k,I.column+=k,n){const A=t?Hl($,I):null,M=Ma(b,A,{domain:ry,args:R});n(M)}}function r(h,b,$){const k={type:h};return t&&(k.start=b,k.end=b,k.loc={start:$,end:$}),k}function o(h,b,$,k){t&&(h.end=b,h.loc&&(h.loc.end=$))}function a(h,b){const $=h.context(),k=r(3,$.offset,$.startLoc);return k.value=b.replace(ay,ly),o(k,h.currentOffset(),h.currentPosition()),k}function i(h,b){const $=h.context(),{lastOffset:k,lastStartLoc:R}=$,I=r(5,k,R);return I.index=parseInt(b,10),h.nextToken(),o(I,h.currentOffset(),h.currentPosition()),I}function u(h,b){const $=h.context(),{lastOffset:k,lastStartLoc:R}=$,I=r(4,k,R);return I.key=b,h.nextToken(),o(I,h.currentOffset(),h.currentPosition()),I}function c(h,b){const $=h.context(),{lastOffset:k,lastStartLoc:R}=$,I=r(9,k,R);return I.value=b.replace(oy,iy),h.nextToken(),o(I,h.currentOffset(),h.currentPosition()),I}function d(h){const b=h.nextToken(),$=h.context(),{lastOffset:k,lastStartLoc:R}=$,I=r(8,k,R);return b.type!==11?(s(h,et.UNEXPECTED_EMPTY_LINKED_MODIFIER,$.lastStartLoc,0),I.value="",o(I,k,R),{nextConsumeToken:b,node:I}):(b.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,wn(b)),I.value=b.value||"",o(I,h.currentOffset(),h.currentPosition()),{node:I})}function f(h,b){const $=h.context(),k=r(7,$.offset,$.startLoc);return k.value=b,o(k,h.currentOffset(),h.currentPosition()),k}function p(h){const b=h.context(),$=r(6,b.offset,b.startLoc);let k=h.nextToken();if(k.type===8){const R=d(h);$.modifier=R.node,k=R.nextConsumeToken||h.nextToken()}switch(k.type!==9&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(k)),k=h.nextToken(),k.type===2&&(k=h.nextToken()),k.type){case 10:k.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(k)),$.key=f(h,k.value||"");break;case 4:k.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(k)),$.key=u(h,k.value||"");break;case 5:k.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(k)),$.key=i(h,k.value||"");break;case 6:k.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(k)),$.key=c(h,k.value||"");break;default:{s(h,et.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const R=h.context(),I=r(7,R.offset,R.startLoc);return I.value="",o(I,R.offset,R.startLoc),$.key=I,o($,R.offset,R.startLoc),{nextConsumeToken:k,node:$}}}return o($,h.currentOffset(),h.currentPosition()),{node:$}}function m(h){const b=h.context(),$=b.currentType===1?h.currentOffset():b.offset,k=b.currentType===1?b.endLoc:b.startLoc,R=r(2,$,k);R.items=[];let I=null;do{const N=I||h.nextToken();switch(I=null,N.type){case 0:N.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(N)),R.items.push(a(h,N.value||""));break;case 5:N.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(N)),R.items.push(i(h,N.value||""));break;case 4:N.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(N)),R.items.push(u(h,N.value||""));break;case 6:N.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(N)),R.items.push(c(h,N.value||""));break;case 7:{const z=p(h);R.items.push(z.node),I=z.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const A=b.currentType===1?b.lastOffset:h.currentOffset(),M=b.currentType===1?b.lastEndLoc:h.currentPosition();return o(R,A,M),R}function v(h,b,$,k){const R=h.context();let I=k.items.length===0;const A=r(1,b,$);A.cases=[],A.cases.push(k);do{const M=m(h);I||(I=M.items.length===0),A.cases.push(M)}while(R.currentType!==13);return I&&s(h,et.MUST_HAVE_MESSAGES_IN_PLURAL,$,0),o(A,h.currentOffset(),h.currentPosition()),A}function w(h){const b=h.context(),{offset:$,startLoc:k}=b,R=m(h);return b.currentType===13?R:v(h,$,k,R)}function C(h){const b=sy(h,xt({},e)),$=b.context(),k=r(0,$.offset,$.startLoc);return t&&k.loc&&(k.loc.source=h),k.body=w(b),e.onCacheKey&&(k.cacheKey=e.onCacheKey(h)),$.currentType!==13&&s(b,et.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,h[$.offset]||""),o(k,b.currentOffset(),b.currentPosition()),k}return{parse:C}}function wn(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function cy(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function dc(e,t){for(let n=0;n<e.length;n++)Ui(e[n],t)}function Ui(e,t){switch(e.type){case 1:dc(e.cases,t),t.helper("plural");break;case 2:dc(e.items,t);break;case 6:{Ui(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function dy(e,t={}){const n=cy(e);n.helper("normalize"),e.body&&Ui(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function fy(e){const t=e.body;return t.type===2?fc(t):t.cases.forEach(n=>fc(n)),e}function fc(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=Bi(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}function ar(e){switch(e.t=e.type,e.type){case 0:{const t=e;ar(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)ar(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)ar(n[s]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;ar(t.key),t.k=t.key,delete t.key,t.modifier&&(ar(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function py(e,t){const{filename:n,breakLineCode:s,needIndent:r}=t,o=t.location!==!1,a={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:r,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const i=()=>a;function u(w,C){a.code+=w}function c(w,C=!0){const h=C?s:"";u(r?h+" ".repeat(w):h)}function d(w=!0){const C=++a.indentLevel;w&&c(C)}function f(w=!0){const C=--a.indentLevel;w&&c(C)}function p(){c(a.indentLevel)}return{context:i,push:u,indent:d,deindent:f,newline:p,helper:w=>`_${w}`,needIndent:()=>a.needIndent}}function my(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),_r(e,t.key),t.modifier?(e.push(", "),_r(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function hy(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const r=t.items.length;for(let o=0;o<r&&(_r(e,t.items[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}function gy(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const r=t.cases.length;for(let o=0;o<r&&(_r(e,t.cases[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}}function vy(e,t){t.body?_r(e,t.body):e.push("null")}function _r(e,t){const{helper:n}=e;switch(t.type){case 0:vy(e,t);break;case 1:gy(e,t);break;case 2:hy(e,t);break;case 6:my(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const yy=(e,t={})=>{const n=he(t.mode)?t.mode:"normal",s=he(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
27
|
-
`,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],i=py(e,{filename:s,breakLineCode:r,needIndent:o});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(o),a.length>0&&(i.push(`const { ${Bi(a.map(d=>`${d}: _${d}`),", ")} } = ctx`),i.newline()),i.push("return "),_r(i,e),i.deindent(o),i.push("}"),delete e.helpers;const{code:u,map:c}=i.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function by(e,t={}){const n=xt({},t),s=!!n.jit,r=!!n.minify,o=n.optimize==null?!0:n.optimize,i=uy(n).parse(e);return s?(o&&fy(i),r&&ar(i),{ast:i,code:""}):(dy(i,n),yy(i,n))}/*!
|
|
28
|
-
* core-base v11.4.8
|
|
29
|
-
* (c) 2026 kazuya kawaguchi
|
|
30
|
-
* Released under the MIT License.
|
|
31
|
-
*/function _y(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Vs().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Vs().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function $n(e){return ze(e)&&ji(e)===0&&(an(e,"b")||an(e,"body"))}const Hf=["b","body"];function wy(e){return Ss(e,Hf)}const Wf=["c","cases"];function xy(e){return Ss(e,Wf,[])}const Kf=["s","static"];function ky(e){return Ss(e,Kf)}const zf=["i","items"];function Sy(e){return Ss(e,zf,[])}const Gf=["t","type"];function ji(e){return Ss(e,Gf)}const Yf=["v","value"];function Io(e,t){const n=Ss(e,Yf);if(n!=null)return n;throw no(t)}const Xf=["m","modifier"];function Cy(e){return Ss(e,Xf)}const Jf=["k","key"];function Ay(e){const t=Ss(e,Jf);if(t)return t;throw no(6)}function Ss(e,t,n){for(let s=0;s<t.length;s++){const r=t[s];if(an(e,r)&&e[r]!=null)return e[r]}return n}const Qf=[...Hf,...Wf,...Kf,...zf,...Jf,...Xf,...Yf,...Gf];function no(e){return new Error(`unhandled node type: ${e}`)}function fl(e){return n=>Ey(n,e)}function Ey(e,t){const n=wy(t);if(n==null)throw no(0);if(ji(n)===1){const o=xy(n);return e.plural(o.reduce((a,i)=>[...a,pc(e,i)],[]))}else return pc(e,n)}function pc(e,t){const n=ky(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=Sy(t).reduce((r,o)=>[...r,Wl(e,o)],[]);return e.normalize(s)}}function Wl(e,t){const n=ji(t);switch(n){case 3:return Io(t,n);case 9:return Io(t,n);case 4:{const s=t;if(an(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(an(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw no(n)}case 5:{const s=t;if(an(s,"i")&&wt(s.i))return e.interpolate(e.list(s.i));if(an(s,"index")&&wt(s.index))return e.interpolate(e.list(s.index));throw no(n)}case 6:{const s=t,r=Cy(s),o=Ay(s);return e.linked(Wl(e,o),r?Wl(e,r):void 0,e.type)}case 7:return Io(t,n);case 8:return Io(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Oy=e=>e;let Mo=ot();function Py(e,t={}){let n=!1;const s=t.onError||Xv;return t.onError=r=>{n=!0,s(r)},{...by(e,t),detectError:n}}function Ty(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&he(e)){Ke(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||Oy)(e),r=Mo[s];if(r)return r;const{ast:o,detectError:a}=Py(e,{...t,location:!1,jit:!0}),i=fl(o);return a?i:Mo[s]=i}else{const n=e.cacheKey;if(n){const s=Mo[n];return s||(Mo[n]=fl(e))}else return fl(e)}}let so=null;function $y(e){so=e}function Iy(e,t,n){so&&so.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const My=Ry("function:translate");function Ry(e){return t=>so&&so.emit(e,t)}const Gn={INVALID_ARGUMENT:Yv,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Ly=24;function Yn(e){return Ma(e,null,void 0)}function Hi(e,t){return t.locale!=null?mc(t.locale):mc(e.locale)}let pl;function mc(e){if(he(e))return e;if(ft(e)){if(e.resolvedOnce&&pl!=null)return pl;if(e.constructor.name==="Function"){const t=e();if(Iv(t))throw Yn(Gn.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return pl=t}else throw Yn(Gn.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Yn(Gn.NOT_SUPPORT_LOCALE_TYPE)}function Dy(e,t,n){return[...new Set([n,...gt(t)?t:ze(t)?Object.keys(t):he(t)?[t]:[n]])]}function Kl(e,t,n){const s=he(n)?n:ro,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(s);if(!o){o=[];let a=[n];for(;gt(a);)a=hc(o,a,t);const i=gt(t)||!nt(t)?t:t.default?t.default:null;a=he(i)?[i]:i,gt(a)&&hc(o,a,!1),r.__localeChainCache.set(s,o)}return o}function hc(e,t,n){let s=!0;for(let r=0;r<t.length&&Ke(s);r++){const o=t[r];he(o)&&(s=Fy(e,t[r],n))}return s}function Fy(e,t,n){let s;const r=t.split("-");do{const o=r.join("-");s=Ny(e,o,n),r.splice(-1,1)}while(r.length&&s===!0);return s}function Ny(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(gt(n)||nt(n))&&n[r]&&(s=n[r])}return s}const Cs=[];Cs[0]={w:[0],i:[3,0],"[":[4],o:[7]};Cs[1]={w:[1],".":[2],"[":[4],o:[7]};Cs[2]={w:[2],i:[3,0],0:[3,0]};Cs[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Cs[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Cs[5]={"'":[4,0],o:8,l:[5,0]};Cs[6]={'"':[4,0],o:8,l:[6,0]};const qy=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function By(e){return qy.test(e)}function Vy(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Uy(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function jy(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:By(t)?Vy(t):"*"+t}function Hy(e){const t=[];let n=-1,s=0,r=0,o,a,i,u,c,d,f;const p=[];p[0]=()=>{a===void 0?a=i:a+=i},p[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},p[2]=()=>{p[0](),r++},p[3]=()=>{if(r>0)r--,s=4,p[0]();else{if(r=0,a===void 0||(a=jy(a),a===!1))return!1;p[1]()}};function m(){const v=e[n+1];if(s===5&&v==="'"||s===6&&v==='"')return n++,i="\\"+v,p[0](),!0}for(;s!==null;)if(n++,o=e[n],!(o==="\\"&&m())){if(u=Uy(o),f=Cs[s],c=f[u]||f.l||8,c===8||(s=c[0],c[1]!==void 0&&(d=p[c[1]],d&&(i=o,d()===!1))))return;if(s===7)return t}}const gc=new Map;function Wy(e,t){return ze(e)?e[t]:null}function Ky(e,t){if(!ze(e))return null;let n=gc.get(t);if(n||(n=Hy(t),n&&gc.set(t,n)),!n)return null;const s=n.length;let r=e,o=0;for(;o<s;){const a=n[o];if(Qf.includes(a)&&$n(r)||!ze(r)||!an(r,a))return null;const i=r[a];if(i===void 0||ft(r))return null;r=i,o++}return r}const zy="11.4.8",Ra=-1,ro="en-US",ra="",vc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Gy(){return{upper:(e,t)=>t==="text"&&he(e)?e.toUpperCase():t==="vnode"&&ze(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&he(e)?e.toLowerCase():t==="vnode"&&ze(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&he(e)?vc(e):t==="vnode"&&ze(e)&&"__v_isVNode"in e?vc(e.children):e}}let Zf;function Yy(e){Zf=e}let ep;function Xy(e){ep=e}let tp;function Jy(e){tp=e}let np=null;const Qy=e=>{np=e},Zy=()=>np;let sp=null;const yc=e=>{sp=e},eb=()=>sp;let bc=0;function tb(e={}){const t=ft(e.onWarn)?e.onWarn:Rv,n=he(e.version)?e.version:zy,s=he(e.locale)||ft(e.locale)?e.locale:ro,r=ft(s)?ro:s,o=gt(e.fallbackLocale)||nt(e.fallbackLocale)||he(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=nt(e.messages)?e.messages:ml(r),i=nt(e.datetimeFormats)?e.datetimeFormats:ml(r),u=nt(e.numberFormats)?e.numberFormats:ml(r),c=xt(ot(),e.modifiers,Gy()),d=e.pluralRules||ot(),f=ft(e.missing)?e.missing:null,p=Ke(e.missingWarn)||br(e.missingWarn)?e.missingWarn:!0,m=Ke(e.fallbackWarn)||br(e.fallbackWarn)?e.fallbackWarn:!0,v=!!e.fallbackFormat,w=!!e.unresolving,C=ft(e.postTranslation)?e.postTranslation:null,h=nt(e.processor)?e.processor:null,b=Ke(e.warnHtmlMessage)?e.warnHtmlMessage:!0,$=!!e.escapeParameter,k=ft(e.messageCompiler)?e.messageCompiler:Zf,R=ft(e.messageResolver)?e.messageResolver:ep||Wy,I=ft(e.localeFallbacker)?e.localeFallbacker:tp||Dy,A=ze(e.fallbackContext)?e.fallbackContext:void 0,M=e,N=ze(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,z=ze(M.__numberFormatters)?M.__numberFormatters:new Map,Y=ze(M.__meta)?M.__meta:{};bc++;const W={version:n,cid:bc,locale:s,fallbackLocale:o,messages:a,modifiers:c,pluralRules:d,missing:f,missingWarn:p,fallbackWarn:m,fallbackFormat:v,unresolving:w,postTranslation:C,processor:h,warnHtmlMessage:b,escapeParameter:$,messageCompiler:k,messageResolver:R,localeFallbacker:I,fallbackContext:A,onWarn:t,__meta:Y};return W.datetimeFormats=i,W.numberFormats=u,W.__datetimeFormatters=N,W.__numberFormatters=z,__INTLIFY_PROD_DEVTOOLS__&&Iy(W,n,Y),W}const ml=e=>({[e]:ot()});function rp(e,t,n,s,r){const{missing:o,onWarn:a}=e;if(o!==null){const i=o(e,n,t,r);return he(i)?i:t}else return t}function $r(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function nb(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function sb(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(nb(e,t[s]))return!0;return!1}function op(e,t,n,s,r,o,a){const{fallbackLocale:i,localeFallbacker:u,onWarn:c}=e,d=u(e,i,n);for(let f=0;f<d.length;f++){const p=d[f],m=(s[p]||{})[t];if(nt(m)&&he(p))return p;rp(e,t,p,r,a)}return null}function ap(e,t,n){let s=`${e}__${t}`;return nt(n)&&!Ni(n)&&(s=`${s}__${JSON.stringify(n)}`),s}function lp(e,t,n){for(const s in n){const r=`${t}__${s}`;for(const o of e.keys())(o===r||o.startsWith(`${r}__`))&&e.delete(o)}}function ip(e,t,n,s){const[,r,o,a]=e;let i=n;return he(r)?t.key=r:nt(r)&&Object.keys(r).forEach(u=>{s.includes(u)?i[u]=r[u]:t[u]=r[u]}),he(o)?t.locale=o:nt(o)&&(i=o),nt(a)&&(i=a),i}function _c(e,...t){const{datetimeFormats:n,unresolving:s,onWarn:r}=e,{__datetimeFormatters:o}=e;if(!he(t[0])&&!Uf(t[0])&&!wt(t[0]))return ra;const[a,i,u,c]=zl(...t),d=Ke(u.missingWarn)?u.missingWarn:e.missingWarn,f=Ke(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=!!u.part,m=Hi(e,u);if(!he(a)||a===""){const b=new Intl.DateTimeFormat(m.replace(/!/g,""),c);return p?b.formatToParts(i):b.format(i)}const v=op(e,a,m,n,d,f,"datetime format");if(!he(v))return s?Ra:a;const w=n[v][a],C=ap(v,a,c);let h=o.get(C);return h||(h=new Intl.DateTimeFormat(v,xt({},w,c)),o.set(C,h)),p?h.formatToParts(i):h.format(i)}const up=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function zl(...e){const[t]=e,n=ot(),s=ot();let r;if(he(t)){const a=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!a)throw Yn(Gn.INVALID_ISO_DATE_ARGUMENT);const i=a[3]?a[3].trim().startsWith("T")?`${a[1].trim()}${a[3].trim()}`:`${a[1].trim()}T${a[3].trim()}`:a[1].trim();r=new Date(i);try{r.toISOString()}catch{throw Yn(Gn.INVALID_ISO_DATE_ARGUMENT)}}else if(Uf(t)){if(isNaN(t.getTime()))throw Yn(Gn.INVALID_DATE_ARGUMENT);r=t}else if(wt(t))r=t;else throw Yn(Gn.INVALID_ARGUMENT);const o=ip(e,n,s,up);return[n.key||"",r,n,o]}function wc(e,t,n){lp(e.__datetimeFormatters,t,n)}function xc(e,...t){const{numberFormats:n,unresolving:s,onWarn:r}=e,{__numberFormatters:o}=e;if(!wt(t[0]))return ra;const[a,i,u,c]=Gl(...t),d=Ke(u.missingWarn)?u.missingWarn:e.missingWarn,f=Ke(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=!!u.part,m=Hi(e,u);if(!he(a)||a===""){const b=new Intl.NumberFormat(m.replace(/!/g,""),c);return p?b.formatToParts(i):b.format(i)}const v=op(e,a,m,n,d,f,"number format");if(!he(v))return s?Ra:a;const w=n[v][a],C=ap(v,a,c);let h=o.get(C);return h||(h=new Intl.NumberFormat(v,xt({},w,c)),o.set(C,h)),p?h.formatToParts(i):h.format(i)}const cp=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Gl(...e){const[t]=e,n=ot(),s=ot();if(!wt(t))throw Yn(Gn.INVALID_ARGUMENT);const r=t,o=ip(e,n,s,cp);return[n.key||"",r,n,o]}function kc(e,t,n){lp(e.__numberFormatters,t,n)}const rb=e=>e,ob=e=>"",ab="text",lb=e=>e.length===0?"":Bi(e),ib=Mv;function hl(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function ub(e){var n,s;const t=wt(e.pluralIndex)?e.pluralIndex:-1;return wt((n=e.named)==null?void 0:n.count)?e.named.count:wt((s=e.named)==null?void 0:s.n)?e.named.n:t}function cb(e={}){var h,b,$,k;const t=e.locale,n=ub(e),s=he(t)&&ft((h=e.pluralRules)==null?void 0:h[t])?e.pluralRules[t]:hl,r=s===hl?void 0:hl,o=R=>R[s(n,R.length,r)],a=e.list||[],i=R=>a[R],u=e.named||ot();wt(e.pluralIndex)&&(u.count||(u.count=e.pluralIndex),u.n||(u.n=e.pluralIndex));const c=R=>u[R];function d(R,I){const A=ft(e.messages)?e.messages(R,!!I):ze(e.messages)?e.messages[R]:!1;return A||(e.parent?e.parent.message(R):ob)}const f=R=>e.modifiers?e.modifiers[R]:rb,p=ft((b=e.processor)==null?void 0:b.normalize)?e.processor.normalize:lb,m=ft(($=e.processor)==null?void 0:$.interpolate)?e.processor.interpolate:ib,v=he((k=e.processor)==null?void 0:k.type)?e.processor.type:ab,C={list:i,named:c,plural:o,linked:(R,...I)=>{const[A,M]=I;let N="text",z="";I.length===1?ze(A)?(z=A.modifier||z,N=A.type||N):he(A)&&(z=A||z):I.length===2&&(he(A)&&(z=A||z),he(M)&&(N=M||N));const Y=d(R,!0)(C),W=Y===""||Y===void 0?R:Y,ue=N==="vnode"&>(W)&&z?W[0]:W;return z?f(z)(ue,N):ue},message:d,type:v,interpolate:m,normalize:p,values:xt(ot(),a,u)};return C}const Sc=()=>"",on=e=>ft(e);function Cc(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:r,messageCompiler:o,fallbackLocale:a,messages:i}=e,[u,c]=Yl(...t),d=Ke(c.missingWarn)?c.missingWarn:e.missingWarn,f=Ke(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,p=Ke(c.escapeParameter)?c.escapeParameter:e.escapeParameter,m=!!c.resolvedMessage,v=he(c.default)||Ke(c.default)?Ke(c.default)?o?u:()=>u:c.default:n?o?u:()=>u:null,w=n||v!=null&&(he(v)||ft(v)),C=Hi(e,c);p&&db(c);let[h,b,$]=m?[u,C,i[C]||ot()]:dp(e,u,C,a,f,d),k=h,R=u;if(!m&&!(he(k)||$n(k)||on(k))&&w&&(k=v,R=k),!m&&(!(he(k)||$n(k)||on(k))||!he(b)))return r?Ra:u;let I=!1;const A=()=>{I=!0},M=on(k)?k:fp(e,u,b,k,R,A);if(I)return k;const N=mb(e,b,$,c),z=cb(N),Y=fb(e,M,z);let W=s?s(Y,u):Y;if(p&&he(W)&&(W=zv(W)),__INTLIFY_PROD_DEVTOOLS__){const ue={timestamp:Date.now(),key:he(u)?u:on(k)?k.key:"",locale:b||(on(k)?k.locale:""),format:he(k)?k:on(k)?k.source:"",message:W};ue.meta=xt({},e.__meta,Zy()||{}),My(ue)}return W}function db(e){gt(e.list)?e.list=e.list.map(t=>he(t)?ic(t):t):ze(e.named)&&Object.keys(e.named).forEach(t=>{he(e.named[t])&&(e.named[t]=ic(e.named[t]))})}function dp(e,t,n,s,r,o){const{messages:a,onWarn:i,messageResolver:u,localeFallbacker:c}=e,d=c(e,s,n);let f=ot(),p,m=null;const v="translate";for(let w=0;w<d.length&&(p=d[w],f=a[p]||ot(),(m=u(f,t))===null&&(m=f[t]),!(he(m)||$n(m)||on(m)));w++)if(!sb(p,d)){const C=rp(e,t,p,o,v);C!==t&&(m=C)}return[m,p,f]}function fp(e,t,n,s,r,o){const{messageCompiler:a,warnHtmlMessage:i}=e;if(on(s)){const c=s;return c.locale=c.locale||n,c.key=c.key||t,c}if(a==null){const c=()=>s;return c.locale=n,c.key=t,c}const u=a(s,pb(e,n,r,s,i,o));return u.locale=n,u.key=t,u.source=s,u}function fb(e,t,n){return t(n)}function Yl(...e){const[t,n,s]=e,r=ot();if(!he(t)&&!wt(t)&&!on(t)&&!$n(t))throw Yn(Gn.INVALID_ARGUMENT);const o=wt(t)?String(t):(on(t),t);return wt(n)?r.plural=n:he(n)?r.default=n:nt(n)&&!Ni(n)?r.named=n:gt(n)&&(r.list=n),wt(s)?r.plural=s:he(s)?r.default=s:nt(s)&&xt(r,s),[o,r]}function pb(e,t,n,s,r,o){return{locale:t,key:n,warnHtmlMessage:r,onError:a=>{throw o&&o(a),a},onCacheKey:a=>Ov(t,n,a)}}function mb(e,t,n,s){const{modifiers:r,pluralRules:o,messageResolver:a,fallbackLocale:i,fallbackWarn:u,missingWarn:c,fallbackContext:d}=e,p={locale:t,modifiers:r,pluralRules:o,messages:(m,v)=>{let w=a(n,m);if(w==null&&(d||v)){const[C,,h]=dp(d||e,m,t,i,u,c);w=C??a(h,m)}if(he(w)||$n(w)){let C=!1;const b=fp(e,m,t,w,m,()=>{C=!0});return C?Sc:b}else return on(w)?w:Sc}};return e.processor&&(p.processor=e.processor),s.list&&(p.list=s.list),s.named&&(p.named=s.named),wt(s.plural)&&(p.pluralIndex=s.plural),p}_y();/*!
|
|
32
|
-
* vue-i18n v11.4.8
|
|
33
|
-
* (c) 2026 kazuya kawaguchi
|
|
34
|
-
* Released under the MIT License.
|
|
35
|
-
*/const hb="11.4.8";function gb(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Vs().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Vs().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Vs().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Vs().__INTLIFY_PROD_DEVTOOLS__=!1)}const jt={UNEXPECTED_RETURN_TYPE:Ly,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Gt(e,...t){return Ma(e,null,void 0)}const Xl=ks("__translateVNode"),Jl=ks("__datetimeParts"),Ql=ks("__numberParts"),pp=ks("__setPluralRules"),mp=ks("__injectWithOption"),ir=ks("__dispose");function oo(e){if(!ze(e)||$n(e))return e;for(const t in e)if(an(e,t))if(!t.includes("."))ze(e[t])&&oo(e[t]);else{const n=t.split("."),s=n.length-1;let r=e,o=!1;for(let a=0;a<s;a++){if(n[a]==="__proto__")throw new Error(`unsafe key: ${n[a]}`);if(n[a]in r||(r[n[a]]=ot()),!ze(r[n[a]])){o=!0;break}r=r[n[a]]}if(o||($n(r)?Qf.includes(n[s])||delete e[t]:(r[n[s]]=e[t],delete e[t])),!$n(r)){const a=r[n[s]];ze(a)&&oo(a)}}return e}function Wi(e,t){const{messages:n,__i18n:s,messageResolver:r,flatJson:o}=t,a=nt(n)?n:gt(s)?ot():{[e]:ot()};if(gt(s)&&s.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:u,resource:c}=i;u?(a[u]=a[u]||ot(),Wo(c,a[u])):Wo(c,a)}else he(i)&&Wo(JSON.parse(i),a)}),r==null&&o)for(const i in a)an(a,i)&&oo(a[i]);return a}function hp(e){return e.type}function gp(e,t,n){let s=ze(t.messages)?t.messages:ot();"__i18nGlobal"in n&&(s=Wi(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const r=Object.keys(s);r.length&&r.forEach(o=>{e.mergeLocaleMessage(o,s[o])});{if(ze(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(ze(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function Ac(e){return g(bo,null,e,0)}function ao(){return Jt()}const Ec="__INTLIFY_META__",Oc=()=>[],vb=()=>!1;let Pc=0;function Tc(e){return(t,n,s,r)=>e(n,s,ao()||void 0,r)}const yb=()=>{const e=ao();let t=null;return e&&(t=hp(e)[Ec])?{[Ec]:t}:null};function oa(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,r=e.flatJson,o=sa?F:Ea;let a=Ke(e.inheritLocale)?e.inheritLocale:!0;const i=o(t&&a?t.locale.value:he(e.locale)?e.locale:ro),u=o(t&&a?t.fallbackLocale.value:he(e.fallbackLocale)||gt(e.fallbackLocale)||nt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),c=o(Wi(i.value,e)),d=o(nt(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),f=o(nt(e.numberFormats)?e.numberFormats:{[i.value]:{}});let p=t?t.missingWarn:Ke(e.missingWarn)||br(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:Ke(e.fallbackWarn)||br(e.fallbackWarn)?e.fallbackWarn:!0,v=t?t.fallbackRoot:Ke(e.fallbackRoot)?e.fallbackRoot:!0,w=!!e.fallbackFormat,C=ft(e.missing)?e.missing:null,h=ft(e.missing)?Tc(e.missing):null,b=ft(e.postTranslation)?e.postTranslation:null,$=t?t.warnHtmlMessage:Ke(e.warnHtmlMessage)?e.warnHtmlMessage:!0,k=!!e.escapeParameter;const R=t?t.modifiers:nt(e.modifiers)?e.modifiers:{};let I=e.pluralRules||t&&t.pluralRules,A;A=(()=>{s&&yc(null);const B={version:hb,locale:i.value,fallbackLocale:u.value,messages:c.value,modifiers:R,pluralRules:I,missing:h===null?void 0:h,missingWarn:p,fallbackWarn:m,fallbackFormat:w,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:$,escapeParameter:k,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};B.datetimeFormats=d.value,B.numberFormats=f.value,B.__datetimeFormatters=nt(A)?A.__datetimeFormatters:void 0,B.__numberFormatters=nt(A)?A.__numberFormatters:void 0;const G=tb(B);return s&&yc(G),G})(),$r(A,i.value,u.value);function N(){return[i.value,u.value,c.value,d.value,f.value]}const z=te({get:()=>i.value,set:B=>{A.locale=B,i.value=B}}),Y=te({get:()=>u.value,set:B=>{A.fallbackLocale=B,u.value=B,$r(A,i.value,B)}}),W=te(()=>c.value),ue=te(()=>d.value),me=te(()=>f.value);function X(){return ft(b)?b:null}function ce(B){b=B,A.postTranslation=B}function oe(){return C}function fe(B){B!==null&&(h=Tc(B)),C=B,A.missing=h}const ae=(B,G,_e,Ae,Me,Qe)=>{N();let je;try{__INTLIFY_PROD_DEVTOOLS__,s||(A.fallbackContext=t?eb():void 0),je=B(A)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(A.fallbackContext=void 0)}if(_e!=="translate exists"&&wt(je)&&je===Ra||_e==="translate exists"&&!je){const[Wt,At]=G();return t&&v?Ae(t):Me(Wt)}else{if(Qe(je))return je;throw Gt(jt.UNEXPECTED_RETURN_TYPE)}};function Z(...B){return ae(G=>Reflect.apply(Cc,null,[G,...B]),()=>Yl(...B),"translate",G=>Reflect.apply(G.t,G,[...B]),G=>G,G=>he(G))}function de(...B){const[G,_e,Ae]=B;if(Ae&&!ze(Ae))throw Gt(jt.INVALID_ARGUMENT);return Z(G,_e,xt({resolvedMessage:!0},Ae||{}))}function Be(...B){return ae(G=>Reflect.apply(_c,null,[G,...B]),()=>zl(...B),"datetime format",G=>Reflect.apply(G.d,G,[...B]),()=>ra,G=>he(G)||gt(G))}function lt(...B){return ae(G=>Reflect.apply(xc,null,[G,...B]),()=>Gl(...B),"number format",G=>Reflect.apply(G.n,G,[...B]),()=>ra,G=>he(G)||gt(G))}function at(B){return B.map(G=>he(G)||wt(G)||Ke(G)?Ac(String(G)):G)}const Je={normalize:at,interpolate:B=>B,type:"vnode"};function Ye(...B){return ae(G=>{let _e;const Ae=G;try{Ae.processor=Je,_e=Reflect.apply(Cc,null,[Ae,...B])}finally{Ae.processor=null}return _e},()=>Yl(...B),"translate",G=>G[Xl](...B),G=>[Ac(G)],G=>gt(G))}function Ve(...B){return ae(G=>Reflect.apply(xc,null,[G,...B]),()=>Gl(...B),"number format",G=>G[Ql](...B),Oc,G=>he(G)||gt(G))}function $e(...B){return ae(G=>Reflect.apply(_c,null,[G,...B]),()=>zl(...B),"datetime format",G=>G[Jl](...B),Oc,G=>he(G)||gt(G))}function dt(B){I=B,A.pluralRules=I}function ge(B,G){return ae(()=>{if(!B)return!1;const _e=he(G)?G:i.value,Ae=he(G)?[_e]:Kl(A,u.value,_e);for(let Me=0;Me<Ae.length;Me++){const Qe=j(Ae[Me]);let je=A.messageResolver(Qe,B);if(je===null&&(je=Qe[B]),$n(je)||on(je)||he(je))return!0}return!1},()=>[B],"translate exists",_e=>Reflect.apply(_e.te,_e,[B,G]),vb,_e=>Ke(_e))}function _(B){let G=null;const _e=Kl(A,u.value,i.value);for(let Ae=0;Ae<_e.length;Ae++){const Me=c.value[_e[Ae]]||{},Qe=A.messageResolver(Me,B);if(Qe!=null){G=Qe;break}}return G}function T(B){const G=_(B);return G??(t?t.tm(B)||{}:{})}function j(B){return c.value[B]||{}}function le(B,G){if(r){const _e={[B]:G};for(const Ae in _e)an(_e,Ae)&&oo(_e[Ae]);G=_e[B]}c.value[B]=G,A.messages=c.value}function ne(B,G){c.value[B]=c.value[B]||{};const _e={[B]:G};if(r)for(const Ae in _e)an(_e,Ae)&&oo(_e[Ae]);G=_e[B],Wo(G,c.value[B]),A.messages=c.value}function re(B){return d.value[B]||{}}function O(B,G){d.value[B]=G,A.datetimeFormats=d.value,wc(A,B,G)}function P(B,G){d.value[B]=xt(d.value[B]||{},G),A.datetimeFormats=d.value,wc(A,B,G)}function q(B){return f.value[B]||{}}function U(B,G){f.value[B]=G,A.numberFormats=f.value,kc(A,B,G)}function pe(B,G){f.value[B]=xt(f.value[B]||{},G),A.numberFormats=f.value,kc(A,B,G)}Pc++,t&&sa&&(De(t.locale,B=>{a&&(i.value=B,A.locale=B,$r(A,i.value,u.value))}),De(t.fallbackLocale,B=>{a&&(u.value=B,A.fallbackLocale=B,$r(A,i.value,u.value))}));const se={id:Pc,locale:z,fallbackLocale:Y,get inheritLocale(){return a},set inheritLocale(B){a=B,B&&t&&(i.value=t.locale.value,u.value=t.fallbackLocale.value,$r(A,i.value,u.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:W,get modifiers(){return R},get pluralRules(){return I||{}},get isGlobal(){return s},get missingWarn(){return p},set missingWarn(B){p=B,A.missingWarn=p},get fallbackWarn(){return m},set fallbackWarn(B){m=B,A.fallbackWarn=m},get fallbackRoot(){return v},set fallbackRoot(B){v=B},get fallbackFormat(){return w},set fallbackFormat(B){w=B,A.fallbackFormat=w},get warnHtmlMessage(){return $},set warnHtmlMessage(B){$=B,A.warnHtmlMessage=B},get escapeParameter(){return k},set escapeParameter(B){k=B,A.escapeParameter=B},t:Z,getLocaleMessage:j,setLocaleMessage:le,mergeLocaleMessage:ne,getPostTranslationHandler:X,setPostTranslationHandler:ce,getMissingHandler:oe,setMissingHandler:fe,[pp]:dt};return se.datetimeFormats=ue,se.numberFormats=me,se.rt=de,se.te=ge,se.tm=T,se.d=Be,se.n=lt,se.getDateTimeFormat=re,se.setDateTimeFormat=O,se.mergeDateTimeFormat=P,se.getNumberFormat=q,se.setNumberFormat=U,se.mergeNumberFormat=pe,se[mp]=n,se[Xl]=Ye,se[Jl]=$e,se[Ql]=Ve,se}function bb(e){const t=he(e.locale)?e.locale:ro,n=he(e.fallbackLocale)||gt(e.fallbackLocale)||nt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=ft(e.missing)?e.missing:void 0,r=Ke(e.silentTranslationWarn)||br(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=Ke(e.silentFallbackWarn)||br(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=Ke(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,u=nt(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,d=ft(e.postTranslation)?e.postTranslation:void 0,f=he(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,m=Ke(e.sync)?e.sync:!0;let v=e.messages;if(nt(e.sharedMessages)){const R=e.sharedMessages;v=Object.keys(R).reduce((A,M)=>{const N=A[M]||(A[M]={});return xt(N,R[M]),A},v||{})}const{__i18n:w,__root:C,__injectWithOption:h}=e,b=e.datetimeFormats,$=e.numberFormats,k=e.flatJson;return{locale:t,fallbackLocale:n,messages:v,flatJson:k,datetimeFormats:b,numberFormats:$,missing:s,missingWarn:r,fallbackWarn:o,fallbackRoot:a,fallbackFormat:i,modifiers:u,pluralRules:c,postTranslation:d,warnHtmlMessage:f,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:m,__i18n:w,__root:C,__injectWithOption:h}}function Zl(e={}){const t=oa(bb(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(r){t.locale.value=r},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(r){t.fallbackLocale.value=r},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(r){t.setMissingHandler(r)},get silentTranslationWarn(){return Ke(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(r){t.missingWarn=Ke(r)?!r:r},get silentFallbackWarn(){return Ke(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(r){t.fallbackWarn=Ke(r)?!r:r},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(r){t.fallbackFormat=r},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(r){t.setPostTranslationHandler(r)},get sync(){return t.inheritLocale},set sync(r){t.inheritLocale=r},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){t.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(r){t.escapeParameter=r},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...r){return Reflect.apply(t.t,t,[...r])},rt(...r){return Reflect.apply(t.rt,t,[...r])},te(r,o){return t.te(r,o)},tm(r){return t.tm(r)},getLocaleMessage(r){return t.getLocaleMessage(r)},setLocaleMessage(r,o){t.setLocaleMessage(r,o)},mergeLocaleMessage(r,o){t.mergeLocaleMessage(r,o)},d(...r){return Reflect.apply(t.d,t,[...r])},getDateTimeFormat(r){return t.getDateTimeFormat(r)},setDateTimeFormat(r,o){t.setDateTimeFormat(r,o)},mergeDateTimeFormat(r,o){t.mergeDateTimeFormat(r,o)},n(...r){return Reflect.apply(t.n,t,[...r])},getNumberFormat(r){return t.getNumberFormat(r)},setNumberFormat(r,o){t.setNumberFormat(r,o)},mergeNumberFormat(r,o){t.mergeNumberFormat(r,o)}};return s.__extender=n,s}function _b(e,t,n){return{beforeCreate(){const s=ao();if(!s)throw Gt(jt.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const o=r.i18n;if(r.__i18n&&(o.__i18n=r.__i18n),o.__root=t,this===this.$root)this.$i18n=$c(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=Zl(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=$c(e,r);else{this.$i18n=Zl({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&gp(t,r,r),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$te=(o,a)=>this.$i18n.te(o,a),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=ao();if(!s)throw Gt(jt.UNEXPECTED_ERROR);const r=this.$i18n;r&&(delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r!=null&&r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(s),delete this.$i18n)}}}function $c(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[pp](t.pluralizationRules||e.pluralizationRules);const n=Wi(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const Ki={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function wb({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,r)=>[...s,...r.type===Ce?r.children:[r]],[]):t.reduce((n,s)=>{const r=e[s];return r&&(n[s]=r()),n},ot())}function vp(){return Ce}const xb=Q({name:"i18n-t",props:xt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>wt(e)||!isNaN(e)}},Ki),setup(e,t){const{slots:n,attrs:s}=t,r=e.i18n||Ht({useScope:e.scope,__useComponent:!0});return()=>{const o=()=>{const u=Object.keys(n).filter(f=>f[0]!=="_"),c=ot();e.locale&&(c.locale=e.locale),e.plural!==void 0&&(c.plural=he(e.plural)?+e.plural:e.plural);const d=wb(t,u);return r[Xl](e.keypath,d,c)},a=xt(ot(),s),i=he(e.tag)||ze(e.tag)?e.tag:vp();return ze(i)?en(i,a,{default:o}):en(i,a,o())}}}),Ic=xb;function kb(e){return gt(e)&&!he(e[0])}function yp(e,t,n,s){const{slots:r,attrs:o}=t;return()=>{const a=()=>{const c={part:!0};let d=ot();e.locale&&(c.locale=e.locale),he(e.format)?c.key=e.format:ze(e.format)&&(he(e.format.key)&&(c.key=e.format.key),d=Object.keys(e.format).reduce((m,v)=>n.includes(v)?xt(ot(),m,{[v]:e.format[v]}):m,ot()));const f=s(e.value,c,d);let p=[c.key];return gt(f)?p=f.map((m,v)=>{const w=r[m.type],C=w?w({[m.type]:m.value,index:v,parts:f}):[m.value];return kb(C)&&(C[0].key=`${m.type}-${v}`),C}):he(f)&&(p=[f]),p},i=xt(ot(),o),u=he(e.tag)||ze(e.tag)?e.tag:vp();return ze(u)?en(u,i,{default:a}):en(u,i,a())}}const Sb=Q({name:"i18n-n",props:xt({value:{type:Number,required:!0},format:{type:[String,Object]}},Ki),setup(e,t){const n=e.i18n||Ht({useScope:e.scope,__useComponent:!0});return yp(e,t,cp,(...s)=>n[Ql](...s))}}),Mc=Sb;function Cb(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Ab(e){const t=a=>{const{instance:i,value:u}=a;if(!i||!i.$)throw Gt(jt.UNEXPECTED_ERROR);const c=Cb(e,i.$),d=Rc(u);return[Reflect.apply(c.t,c,[...Lc(d)]),c]};return{created:(a,i)=>{const[u,c]=t(i);sa&&(a.__i18nWatcher=De(c.locale,()=>{i.instance&&i.instance.$forceUpdate()})),a.__composer=c,a.textContent=u},unmounted:a=>{sa&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:i})=>{if(a.__composer){const u=a.__composer,c=Rc(i);a.textContent=Reflect.apply(u.t,u,[...Lc(c)])}},getSSRProps:a=>{const[i]=t(a);return{textContent:i}}}}function Rc(e){if(he(e))return{path:e};if(nt(e)){if(!("path"in e))throw Gt(jt.REQUIRED_VALUE,"path");return e}else throw Gt(jt.INVALID_VALUE)}function Lc(e){const{path:t,locale:n,args:s,choice:r,plural:o}=e,a={},i=s||{};return he(n)&&(a.locale=n),wt(r)&&(a.plural=r),wt(o)&&(a.plural=o),[t,i,a]}function Eb(e,t,...n){const s=nt(n[0])?n[0]:{};(Ke(s.globalInstall)?s.globalInstall:!0)&&([Ic.name,"I18nT"].forEach(o=>e.component(o,Ic)),[Mc.name,"I18nN"].forEach(o=>e.component(o,Mc)),[Nc.name,"I18nD"].forEach(o=>e.component(o,Nc))),e.directive("t",Ab(t))}const Ob=ks("global-vue-i18n");function Pb(e={}){const t=__VUE_I18N_LEGACY_API__&&Ke(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=Ke(e.globalInjection)?e.globalInjection:!0,s=new Map,[r,o]=Tb(e,t),a=ks("");function i(f){return s.get(f)||null}function u(f,p){s.set(f,p)}function c(f){s.delete(f)}const d={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...p){if(f.__VUE_I18N_SYMBOL__=a,f.provide(f.__VUE_I18N_SYMBOL__,d),nt(p[0])){const w=p[0];d.__composerExtend=w.__composerExtend,d.__vueI18nExtend=w.__vueI18nExtend}let m=null;!t&&n&&(m=Fb(f,d.global)),__VUE_I18N_FULL_INSTALL__&&Eb(f,d,...p),__VUE_I18N_LEGACY_API__&&t&&f.mixin(_b(o,o.__composer,d));const v=f.unmount;f.unmount=()=>{m&&m(),d.dispose(),v()}},get global(){return o},dispose(){r.stop()},__instances:s,__getInstance:i,__setInstance:u,__deleteInstance:c};return d}function Ht(e={}){const t=ao();if(t==null)throw Gt(jt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Gt(jt.NOT_INSTALLED);const n=$b(t),s=Mb(n),r=hp(t),o=Ib(e,r);if(o==="global")return gp(s,e,r),s;if(o==="parent"){let u=Dc(n,t,e.__useComponent);return u==null&&(u=s),u}if(o==="isolated"){if(n.mode!=="composition")throw Gt(jt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const u=n,c=xt({},e),d=Dc(n,t);c.__root=d||s;const f=oa(c);return u.__composerExtend&&(f[ir]=u.__composerExtend(f)),wa()&&Ci(()=>{const m=f[ir];m&&(m(),delete f[ir])}),f}const a=n;let i=a.__getInstance(t);if(i==null){const u=xt({},e);"__i18n"in r&&(u.__i18n=r.__i18n),s&&(u.__root=s),i=oa(u),a.__composerExtend&&(i[ir]=a.__composerExtend(i)),Lb(a,t,i),a.__setInstance(t,i)}return i}function Tb(e,t){const n=Si(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Zl(e)):n.run(()=>oa(e));if(s==null)throw Gt(jt.UNEXPECTED_ERROR);return[n,s]}function $b(e){const t=Ws(e.isCE?Ob:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Gt(e.isCE?jt.NOT_INSTALLED_WITH_PROVIDE:jt.UNEXPECTED_ERROR);return t}function Ib(e,t){return Ni(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Mb(e){return e.mode==="composition"?e.global:e.global.__composer}function Dc(e,t,n=!1){let s=null;const r=t.root;let o=Rb(t,n);for(;o!=null;){const a=e;if(e.mode==="composition")s=a.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const i=a.__getInstance(o);i!=null&&(s=i.__composer,n&&s&&!s[mp]&&(s=null))}if(s!=null||r===o)break;o=o.parent}return s}function Rb(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Lb(e,t,n){mt(()=>{},t),yn(()=>{const s=n;e.__deleteInstance(t);const r=s[ir];r&&(r(),delete s[ir])},t)}const Db=["locale","fallbackLocale","availableLocales"],Fc=["t","rt","d","n","tm","te"];function Fb(e,t){const n=Object.create(null);return Db.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o)throw Gt(jt.UNEXPECTED_ERROR);const a=pt(o.value)?{get(){return o.value.value},set(i){o.value.value=i}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,r,a)}),e.config.globalProperties.$i18n=n,Fc.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o||!o.value)throw Gt(jt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,o)}),()=>{delete e.config.globalProperties.$i18n,Fc.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}const Nb=Q({name:"i18n-d",props:xt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ki),setup(e,t){const n=e.i18n||Ht({useScope:e.scope,__useComponent:!0});return yp(e,t,up,(...s)=>n[Jl](...s))}}),Nc=Nb;gb();Yy(Ty);Xy(Ky);Jy(Kl);if(__INTLIFY_PROD_DEVTOOLS__){const e=Vs();e.__INTLIFY__=!0,$y(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const zi="myapikey.creds";function aa(){const e=localStorage.getItem(zi);if(!e)return null;try{const t=JSON.parse(e);if(t&&t.user&&t.pass)return{user:t.user,pass:t.pass}}catch{}return null}function bp(e,t){localStorage.setItem(zi,JSON.stringify({user:e,pass:t}))}function gl(){localStorage.removeItem(zi)}async function Ne(e,t,n){var i;const s=aa();if(!s)throw new Error("Not authenticated");const r=await fetch(t,{method:e,headers:{authorization:"Basic "+btoa(`${s.user}:${s.pass}`),...n?{"content-type":"application/json"}:{}},body:n?JSON.stringify(n):void 0}),o=await r.text();let a=null;try{a=o?JSON.parse(o):null}catch{}if(!r.ok){const u=((i=a==null?void 0:a.error)==null?void 0:i.message)??o??r.statusText;throw new Error(String(u))}return a}const qb={common:{loading:"Loading…",dismiss:"Dismiss",confirm:"Confirm",cancel:"Cancel"},nav:{connect:"Usage",models:"Models",logs:"Recent calls",stats:"Stats",settings:"Settings"},app:{connecting:"Connecting…",toLight:"Switch to light",toDark:"Switch to dark",signOut:"Sign out"},login:{subtitle:"Sign in to manage your gateway",username:"Username",password:"Password",signIn:"Sign in",errInvalid:"Invalid username or password",errNetwork:"Can't reach the gateway — is it running?"},connect:{title:"Usage",desc:"Point any OpenAI- or Anthropic-compatible tool here — put the API key below into its 'API key' field.",baseUrlOpenai:"Base URL (OpenAI-compatible)",baseUrlAnthropic:"Base URL (Claude / Anthropic)",apiKey:"API Key",copy:"Copy",copied:"Copied",copyFailed:"Copy failed — select and copy manually",reveal:"Show",hide:"Hide",openaiTitle:"OpenAI-compatible (Cursor, Cline, OpenAI SDK)",anthropicTitle:"Anthropic / Claude Code",curlTitle:"Raw HTTP",responsesTitle:"OpenAI Responses (raw HTTP)",note:"This is the host's LAN IP; if your agent runs on a different network (VPN, container, etc.), use whichever address that machine can reach."},settings:{title:"Account",desc:"Manage your web login account (username + password).",loginPassword:"Login password",username:"Username",newPassword:"New password",newPasswordPh:"Leave blank to keep current",confirmPassword:"Confirm new password",confirmPh:"Re-enter new password",save:"Save",saving:"Saving…",saved:"Account updated",errUserShort:"Username must not be empty",errPassShort:"New password must be at least 8 characters",errPassMismatch:"New passwords don't match",apikey:{title:"API Key",desc:"Rotating invalidates the old key — tools already configured need the new one.",rotate:"Rotate key",rotating:"Rotating…",rotated:"API key rotated",rotateTitle:"Rotate API key",rotateDesc:"Generates a brand-new key; the current one stops working immediately. Any agent already configured (Cursor / Claude Code / etc.) must be updated with the new key to keep working.",rotateConfirm:"Rotate"},storage:{title:"Storage",desc:"Where the gateway keeps its config and call log on disk. To change it, set the MYAPIKEY_DATA_DIR env var or pass --data-dir, then restart.",dataDir:"Data directory",dataFile:"Config file",logsFile:"Call log"}},sources:{manage:"Manage sources",subtitle:"Connect and manage your AI service sources.",add:"Add source",edit:"Edit source",addHint:"Most backends don't implement /responses — enable only if yours does.",nameLabel:"Name",namePh:"openrouter",urlLabelOpenai:"OpenAI base URL",urlPhOpenai:"https://api.openai.com/v1",urlHintOpenai:"Include the version segment, e.g. /v1 or /api/v3 (gateway appends /chat/completions)",urlLabelAnthropic:"Anthropic base URL",urlPhAnthropic:"https://api.anthropic.com",urlHintAnthropic:"Exclude /v1 — the gateway appends /v1/messages",baseHelpToggle:"Why fill it this way?",baseHelpSplit:"A source can serve both formats, and they often live on different URLs (e.g. Ark: OpenAI at /api/coding/v3, Anthropic at /api/coding), so there's one base per format.",baseHelpOpenai:"Include the version segment — it varies by vendor (OpenAI /v1, Ark /api/v3) and the gateway can't guess. Paste the base URL from the backend's docs; the gateway appends /chat/completions.",baseHelpAnthropic:"Exclude /v1 — the Anthropic convention (Claude Code and Ark both append /v1/messages client-side). Fill https://api.anthropic.com or Ark's /api/coding; the gateway appends /v1/messages.",keyLabel:"API Key",keyPh:"sk-…",keyPhEdit:"Enter new key (leave blank to keep current)",currentKeyLabel:"current",rpmLabel:"Rate limit (RPM)",rpmPh:"unlimited",rpmHint:"Max requests/min to forward here before overflowing to the next source. Leaves a free/limited key some headroom instead of racing its cap. Blank = no pacing.",rpmBadge:"{n} rpm",rpmBadgeHint:"Paced to {n} requests/min — calls past that overflow to the next source. (Source-wide: applies to every model using this source.)",rpmSaved:"Rate limit set to {n}/min",rpmCleared:"Rate limit removed (unlimited)",formats:"Formats",responses:"Responses API",addBtn:"Add",saveBtn:"Save",cancel:"Cancel",remove:"Remove source",refresh:"Refresh",moreActions:"More actions",refreshModels:"Refresh models",editLabel:"Edit",deleteLabel:"Delete",refreshAll:"Refresh all",refreshing:"Scanning…",discoveredCount:"{n} models",notScanned:"Not scanned",notScannedHint:'Click "Refresh models" to scan this source.',noModelsFound:"No models found",noModelsHint:'Discovery returned no models — this source may not expose a /models list. Use "Add models" to enter names manually.',added:"Source added",updated:"Source updated",removed:'Removed "{name}"',refreshDone:'Refreshed "{name}"',refreshAllDone:"Refreshed all sources",refreshAllPartial:"Some sources failed to refresh: {failed}",refreshAllFailed:"Refresh failed — check that sources are reachable",removeAria:'Remove source "{name}"',errRequired:"name and key are required",errBaseUrl:"fill a base URL for each selected format",errFormat:"Pick at least one format",confirmRemove:'Remove source "{name}"? It will be unlinked from all models.',empty:"No sources yet — add one to connect an AI service."},models:{title:"Models",desc:"Routes to its sources by priority; falls over on 429 / 5xx / timeout.",searchPh:"Search models…",enabledSection:"Enabled",availableSection:"Available",availableDesc:"Discovered across all sources — enable one to make it callable.",openaiSection:"OpenAI · /chat/completions",anthropicSection:"Anthropic · /messages",responsesSection:"OpenAI · /responses",noneSection:"Enabled · no source",empty:"No sources yet.",emptyHint:"Add a source (OpenAI / OpenRouter / a local service) and it will auto-scan available models.",addSource:"Add source",manageSources:"Manage sources",enabled:"enabled",disabled:"disabled",primary:"primary",fallback:"fallback",offeredBy:"sources",noSources:"No sources linked — add one below.",noSourcesShort:"no sources linked",count:"{n} source(s)",enable:"Enable",enableAll:"Enable all",enableAllDone:"Enabled all available models",enableAllFailed:"Failed to enable models",enableAllPartial:"{failed} model(s) failed to enable",unsupported:"Unsupported",fmtOpenai:"OpenAI·Chat",fmtAnthropic:"Anthropic",fmtResponses:"OpenAI·Responses",fmtOpenaiShort:"Chat",fmtAnthropicShort:"Claude",fmtResponsesShort:"Responses",chipLegend:"Tap a format to toggle that route: ● enabled · ○ available · dimmed = no source offers it.",chipOn:"Enabled — click to turn off",chipOff:"Available — click to enable",chipNa:"No source offers this route",addToChain:"Add",addSourceToChain:"Add source",confirmRemove:'Remove "{name}" entirely?',enabledToast:'Enabled "{name}"',disabledToast:'Disabled "{name}"',removedToast:'Removed "{name}"',sourceAdded:"Source added to route",sourceRemoved:"Source removed from route",upstreamLabel:"Upstream model",upstreamPh:"same as name",upstreamHint:"Model name sent upstream to this source. Empty = forward the requested name unchanged.",mapSaved:"Upstream model updated",editUpstream:"Edit upstream model",removeSource:"Remove source",addSourceTitle:"Add source",addSourceDesc:"Attach a source to this model; optionally set the upstream model name sent to it.",addSourceNone:"No sources left to add — every source that serves this model's routes is already attached.",addSourceTargetsHint:"Will attach to:",addSourcePartial:"Some routes failed to add",removeAria:'Remove model "{name}"',moveUpAria:"Move up",moveDownAria:"Move down",expandAria:"Expand",collapseAria:"Collapse",removeModel:"Remove model",moreActions:"More actions",testModel:"Test",testSource:"Test this source",probeTesting:"Testing",probeOk:"Working",probeOkHint:"Last test passed (via {name})",probeFail:"Failing",probeFailHint:"Last test failed",delisted:"Possibly delisted",delistedHint:"This model isn't listed by any of its enabled sources — it may be delisted. Use Test to confirm.",removeSourceAria:'Remove source "{name}"',addModels:"Add models",addModelsDesc:"Bulk-add model names for a source with no /models endpoint.",addModelsSlotsHint:"Each model is enabled on every endpoint this source serves:",providerLabel:"Source",providerPh:"Select a source",newSourceOpt:"+ New source",addModelsNewHint:"Create a new source, then attach these models to it.",namesLabel:"Model names",addModelsNamesPh:"One per line, or comma / space separated, e.g. gpt-4o, claude-…",addModelsCount:"{n} model(s) will be added",addModelsBtn:"Add",addedToast:"Added {n} model(s)",addModelsFailed:"{n} failed to add"},logs:{title:"Recent calls",desc:"On-disk (logs.jsonl), last 200, auto-refreshed every 4s by default.",empty:"No calls yet.",noMatch:"No calls match the current filters.",live:"Live",refresh:"Refresh",pause:"Pause",resume:"Resume",col:{time:"Time",model:"Model",provider:"Source",format:"Format",status:"Status",latency:"Latency"},stream:"stream",filter:{title:"Filters",model:"Model",provider:"Source",status:"Status",all:"All",success:"Success",error:"Error",clear:"Clear filters",remove:"Remove {label}"},searchPh:"Search model or source…",summary:{window:"last {n} calls",errorRate:"error rate {pct}%",avgLatency:"recent avg {ms}"},detail:{time:"Time",latency:"Latency",stream:"Streaming",streamYes:"yes",streamNo:"no",error:"Error",errorNone:"None"},circuit:{stripTitle:"Sources in cooldown",badge:"Cooldown",remaining:"{s}s left",failures:"{n} consecutive failures",cooldown:"cooldown {s}s",reset:"Reset now",reasonUnknown:"transient failure"},pacing:{stripTitle:"Sources at their rate limit",at:"{used}/{cap} rpm",reason:"pacing — overflowing to the next source"}},stats:{title:"Call stats",desc:"Call counts and latency broken down by time, model, source, and format. From the on-disk log (~90 days retained).",range:"Time range",ranges:{h24:"24h",d7:"7d",d30:"30d",d90:"90d",all:"All"},totals:{calls:"Calls",success:"Success",error:"Failed",errorRate:"Error rate",avgLatency:"Avg latency",p95:"P95 latency"},byModel:"By model",byProvider:"By source",byFormat:"By format",byDay:"Calls per day",peak:"Peak",callsAxis:"calls",col:{name:"Name",calls:"Calls",success:"Success",error:"Failed",errorRate:"Error rate",avgLatency:"Avg latency"},empty:"No calls in the selected range.",loading:"Loading…",refresh:"Refresh"}},Bb={common:{loading:"加载中…",dismiss:"关闭",confirm:"确认",cancel:"取消"},nav:{connect:"使用方式",models:"模型",logs:"最近调用",stats:"统计",settings:"设置"},app:{connecting:"连接中…",toLight:"切换到浅色",toDark:"切换到深色",signOut:"退出登录"},login:{subtitle:"登录以管理你的网关",username:"用户名",password:"密码",signIn:"登录",errInvalid:"用户名或密码错误",errNetwork:"无法连接到网关,请确认服务正在运行"},connect:{title:"使用方式",desc:"把任意兼容 OpenAI 或 Anthropic 的工具指向这里,把下面的 API Key 填进它的 api key 字段即可。",baseUrlOpenai:"Base URL(OpenAI 兼容)",baseUrlAnthropic:"Base URL(Claude / Anthropic)",apiKey:"API Key",copy:"复制",copied:"已复制",copyFailed:"复制失败,请手动选中复制",reveal:"显示",hide:"隐藏",openaiTitle:"兼容 OpenAI(Cursor / Cline / OpenAI SDK)",anthropicTitle:"Anthropic / Claude Code",curlTitle:"原始 HTTP",responsesTitle:"OpenAI Responses(原始 HTTP)",note:"上面是本机在局域网里的 IP;若 agent 跑在别的网络(VPN、容器等),请换成那台机器能访问到的地址。"},settings:{title:"账号",desc:"管理网页登录账号(用户名 + 登录密码)。",loginPassword:"登录密码",username:"用户名",newPassword:"新密码",newPasswordPh:"留空则保持当前密码",confirmPassword:"确认新密码",confirmPh:"再次输入新密码",save:"保存",saving:"保存中…",saved:"账号已更新",errUserShort:"用户名不能为空",errPassShort:"新密码至少 8 位",errPassMismatch:"两次输入的新密码不一致",apikey:{title:"API Key",desc:"轮换后旧密钥立即失效,已配好的工具需用新密钥重填。",rotate:"轮换密钥",rotating:"轮换中…",rotated:"API Key 已轮换",rotateTitle:"轮换 API Key",rotateDesc:"会生成一把全新密钥,当前密钥立即失效。已配好的 agent(Cursor / Claude Code 等)需要用新密钥重新配置才能继续调用。",rotateConfirm:"确认轮换"},storage:{title:"存储",desc:"网关在磁盘上保存配置与调用日志的位置。修改方式:设置环境变量 MYAPIKEY_DATA_DIR 或传入 --data-dir,然后重启。",dataDir:"数据目录",dataFile:"配置文件",logsFile:"调用日志"}},sources:{manage:"管理模型来源",subtitle:"接入并管理你的 AI 服务来源。",add:"添加模型来源",edit:"编辑模型来源",addHint:"/responses 多数后端未实现,仅在后端支持时勾选。",nameLabel:"名称",namePh:"openrouter",urlLabelOpenai:"OpenAI Base URL",urlPhOpenai:"https://api.openai.com/v1",urlHintOpenai:"含版本段,如 /v1 或 /api/v3(网关补 /chat/completions)",urlLabelAnthropic:"Anthropic Base URL",urlPhAnthropic:"https://api.anthropic.com",urlHintAnthropic:"不含 /v1,网关自动补 /v1/messages",baseHelpToggle:"为什么这么填?",baseHelpSplit:"一个来源可同时接入两种格式,而它们的后端地址常常不同(例如火山 Ark:OpenAI 是 /api/coding/v3、Anthropic 是 /api/coding),所以按格式分开填。",baseHelpOpenai:"含版本段。各家不同(OpenAI 是 /v1、火山 Ark 是 /api/v3),网关无法替你判断,所以直接粘后端文档的 Base URL;网关在后面补 /chat/completions。",baseHelpAnthropic:"不带 /v1。这是 Anthropic 生态的约定(Claude Code、Ark 都由客户端补 /v1/messages),所以填 https://api.anthropic.com 或 Ark 的 /api/coding,网关自动补 /v1/messages。",keyLabel:"API Key",keyPh:"sk-…",keyPhEdit:"输入新 Key(留空则保持不变)",currentKeyLabel:"当前",rpmLabel:"速率限制 (RPM)",rpmPh:"不限",rpmHint:"每分钟最多向此来源转发多少次,超出即溢出到下一个来源。给免费/有限额度的 Key 留点余量,而不是顶满它自身的上限。留空 = 不限速。",rpmBadge:"{n} rpm",rpmBadgeHint:"限制为每分钟 {n} 次,超出的请求会切换到下一个来源。(来源级:对该来源的所有模型生效。)",rpmSaved:"速率限制已设为 {n}/分钟",rpmCleared:"已取消速率限制(不限)",formats:"格式",responses:"支持 Responses",addBtn:"添加",saveBtn:"保存",cancel:"取消",remove:"移除来源",refresh:"刷新",moreActions:"更多操作",refreshModels:"刷新模型",editLabel:"编辑",deleteLabel:"删除",refreshAll:"刷新全部",refreshing:"扫描中…",discoveredCount:"{n} 个模型",notScanned:"未扫描",notScannedHint:"点击「刷新模型」扫描该来源。",noModelsFound:"未发现模型",noModelsHint:"扫描未返回模型——该来源可能不提供 /models 列表。可用「添加模型」手动填写名称。",added:"来源已添加",updated:"来源已更新",removed:"已移除「{name}」",refreshDone:"已刷新「{name}」",refreshAllDone:"已刷新所有来源",refreshAllPartial:"部分来源刷新失败:{failed}",refreshAllFailed:"刷新失败,请检查来源是否可达",removeAria:"移除来源「{name}」",errRequired:"名称和密钥为必填",errBaseUrl:"请为已选的每种格式填写 Base URL",errFormat:"请至少选择一种格式",confirmRemove:"确定移除来源「{name}」?它将从所有模型中解除关联。",empty:"还没有模型来源,添加一个来接入 AI 服务。"},models:{title:"模型",desc:"按优先级路由到各来源,遇 429 / 5xx / 超时自动降级。",searchPh:"搜索模型…",enabledSection:"已启用",availableSection:"可用模型",availableDesc:"来自所有来源的发现结果,启用后即可调用。",openaiSection:"OpenAI · /chat/completions",anthropicSection:"Anthropic · /messages",responsesSection:"OpenAI · /responses",noneSection:"已启用 · 无来源",empty:"还没有模型来源。",emptyHint:"添加一个来源(OpenAI / OpenRouter / 本地服务等),它会自动扫描可用模型。",addSource:"添加模型来源",manageSources:"管理模型来源",enabled:"已启用",disabled:"已禁用",primary:"主",fallback:"备",offeredBy:"来源",noSources:"尚未关联来源——从下方加入。",noSourcesShort:"未关联来源",count:"{n} 个来源",enable:"启用",enableAll:"全部启用",enableAllDone:"已启用全部可用模型",enableAllFailed:"启用模型失败",enableAllPartial:"{failed} 个模型启用失败",unsupported:"不支持",fmtOpenai:"OpenAI·Chat",fmtAnthropic:"Anthropic",fmtResponses:"OpenAI·Responses",fmtOpenaiShort:"Chat",fmtAnthropicShort:"Claude",fmtResponsesShort:"Responses",chipLegend:"点格式开关切换该路由:● 已启用 · ○ 可启用 · 灰显=无来源提供。",chipOn:"已启用 — 点击关闭",chipOff:"可启用 — 点击开启",chipNa:"无来源提供此路由",addToChain:"加入",addSourceToChain:"添加来源",confirmRemove:"确定完全移除「{name}」?",enabledToast:"已启用「{name}」",disabledToast:"已禁用「{name}」",removedToast:"已移除「{name}」",sourceAdded:"来源已加入路由",sourceRemoved:"来源已从路由移除",upstreamLabel:"上游模型",upstreamPh:"默认同名",upstreamHint:"发给该上游来源的模型名;留空 = 原样转发请求里的名字。",mapSaved:"上游模型已更新",editUpstream:"编辑上游模型",removeSource:"移除来源",addSourceTitle:"添加来源",addSourceDesc:"选一个来源挂到该模型;可指定发给它的上游模型名。",addSourceNone:"没有可添加的来源 —— 能服务该模型路由的来源都已挂上。",addSourceTargetsHint:"将挂到:",addSourcePartial:"部分路由添加失败",removeAria:"移除模型「{name}」",moveUpAria:"上移",moveDownAria:"下移",expandAria:"展开",collapseAria:"收起",removeModel:"移除模型",moreActions:"更多操作",testModel:"测试",testSource:"测试此来源",probeTesting:"测试中",probeOk:"可用",probeOkHint:"最近测试通过(源:{name})",probeFail:"不可用",probeFailHint:"最近测试失败",delisted:"可能下架",delistedHint:"该模型已不在任何已启用源的模型列表中,可能已下架。可用「测试」确认。",removeSourceAria:"移除来源「{name}」",addModels:"添加模型",addModelsDesc:"为没有 /models 接口的来源手动批量添加模型名。",addModelsSlotsHint:"每个模型会挂到该来源的所有端点上:",providerLabel:"来源",providerPh:"选择来源",newSourceOpt:"+ 新建来源",addModelsNewHint:"先建一个新来源,再把这些模型挂到它上面。",namesLabel:"模型名",addModelsNamesPh:"每行一个,或用逗号 / 空格分隔,例如 gpt-4o, claude-…",addModelsCount:"将添加 {n} 个模型",addModelsBtn:"添加",addedToast:"已添加 {n} 个模型",addModelsFailed:"{n} 个添加失败"},logs:{title:"最近调用",desc:"落盘存储(logs.jsonl),最近 200 条,默认每 4 秒自动刷新。",empty:"暂无调用记录。",noMatch:"没有符合当前筛选条件的调用。",live:"实时",refresh:"刷新",pause:"暂停",resume:"继续",col:{time:"时间",model:"模型",provider:"来源",format:"格式",status:"状态",latency:"延迟"},stream:"流式",filter:{title:"筛选",model:"模型",provider:"来源",status:"状态",all:"全部",success:"成功",error:"失败",clear:"清除筛选",remove:"移除 {label}"},searchPh:"搜索模型或来源…",summary:{window:"近 {n} 次调用",errorRate:"错误率 {pct}%",avgLatency:"近期均值 {ms}"},detail:{time:"时间",latency:"延迟",stream:"流式",streamYes:"是",streamNo:"否",error:"错误",errorNone:"无"},circuit:{stripTitle:"冷却中的来源",badge:"冷却",remaining:"剩 {s}s",failures:"连续失败 {n} 次",cooldown:"冷却 {s}s",reset:"立即重置",reasonUnknown:"临时错误"},pacing:{stripTitle:"已达速率上限的来源",at:"{used}/{cap} rpm",reason:"限速中 —— 超出部分切换到下一个来源"}},stats:{title:"调用统计",desc:"按时间段、模型、来源、格式汇总调用次数与延迟。数据来自落盘日志(保留约 90 天)。",range:"时间范围",ranges:{h24:"24 小时",d7:"7 天",d30:"30 天",d90:"90 天",all:"全部"},totals:{calls:"总调用",success:"成功",error:"失败",errorRate:"错误率",avgLatency:"平均延迟",p95:"P95 延迟"},byModel:"按模型",byProvider:"按来源",byFormat:"按格式",byDay:"每日调用",peak:"峰值",callsAxis:"次调用",col:{name:"名称",calls:"调用",success:"成功",error:"失败",errorRate:"错误率",avgLatency:"平均延迟"},empty:"所选范围内暂无调用记录。",loading:"加载中…",refresh:"刷新"}},_p="myapikey.locale";function Vb(){const e=localStorage.getItem(_p);return e==="en"||e==="zh"?e:(typeof navigator<"u"?navigator.language:"en").toLowerCase().startsWith("zh")?"zh":"en"}const wp=Pb({legacy:!1,locale:Vb(),fallbackLocale:"en",messages:{en:qb,zh:Bb}});function Ub(e){wp.global.locale.value=e,localStorage.setItem(_p,e)}const Kt={openai:{solid:"bg-emerald-500",text:"text-emerald-600 dark:text-emerald-400",soft:"bg-emerald-500/5",border:"border-emerald-500/30",chip:"bg-emerald-500/15 text-emerald-700 dark:text-emerald-300",badge:"border-transparent bg-emerald-500/15 text-emerald-600 dark:text-emerald-400"},anthropic:{solid:"bg-amber-500",text:"text-amber-600 dark:text-amber-400",soft:"bg-amber-500/5",border:"border-amber-500/30",chip:"bg-amber-500/15 text-amber-700 dark:text-amber-300",badge:"border-transparent bg-amber-500/15 text-amber-600 dark:text-amber-400"},responses:{solid:"bg-violet-500",text:"text-violet-600 dark:text-violet-400",soft:"bg-violet-500/5",border:"border-violet-500/30",chip:"bg-violet-500/15 text-violet-700 dark:text-violet-300",badge:"border-transparent bg-violet-500/15 text-violet-600 dark:text-violet-400"}},qc=[{solid:"bg-sky-500",badge:"border-transparent bg-sky-500/15 text-sky-600 dark:text-sky-400"},{solid:"bg-indigo-500",badge:"border-transparent bg-indigo-500/15 text-indigo-600 dark:text-indigo-400"},{solid:"bg-fuchsia-500",badge:"border-transparent bg-fuchsia-500/15 text-fuchsia-600 dark:text-fuchsia-400"},{solid:"bg-rose-500",badge:"border-transparent bg-rose-500/15 text-rose-600 dark:text-rose-400"},{solid:"bg-teal-500",badge:"border-transparent bg-teal-500/15 text-teal-600 dark:text-teal-400"},{solid:"bg-orange-500",badge:"border-transparent bg-orange-500/15 text-orange-600 dark:text-orange-400"},{solid:"bg-cyan-500",badge:"border-transparent bg-cyan-500/15 text-cyan-600 dark:text-cyan-400"},{solid:"bg-pink-500",badge:"border-transparent bg-pink-500/15 text-pink-600 dark:text-pink-400"}];function ei(e){let t=5381;for(let n=0;n<e.length;n++)t=t*33^e.charCodeAt(n);return qc[Math.abs(t)%qc.length]}const lo=F([]);let jb=1;function Hb(){return lo}function xp(e){lo.value=lo.value.filter(t=>t.id!==e)}function Te(e,t="default",n=3500){const s=jb++;lo.value=[...lo.value,{id:s,message:e,variant:t}],n>0&&window.setTimeout(()=>xp(s),n)}function kp(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=kp(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Sp(){for(var e,t,n=0,s="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=kp(e))&&(s&&(s+=" "),s+=t);return s}const Bc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Vc=Sp,Cp=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return Vc(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:o}=t,a=Object.keys(r).map(c=>{const d=n==null?void 0:n[c],f=o==null?void 0:o[c];if(d===null)return null;const p=Bc(d)||Bc(f);return r[c][p]}),i=n&&Object.entries(n).reduce((c,d)=>{let[f,p]=d;return p===void 0||(c[f]=p),c},{}),u=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((c,d)=>{let{class:f,className:p,...m}=d;return Object.entries(m).every(v=>{let[w,C]=v;return Array.isArray(C)?C.includes({...o,...i}[w]):{...o,...i}[w]===C})?[...c,f,p]:c},[]);return Vc(e,a,u,n==null?void 0:n.class,n==null?void 0:n.className)},Wb=(e,t)=>{const n=new Array(e.length+t.length);for(let s=0;s<e.length;s++)n[s]=e[s];for(let s=0;s<t.length;s++)n[e.length+s]=t[s];return n},Kb=(e,t)=>({classGroupId:e,validator:t}),Ap=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),la="-",Uc=[],zb="arbitrary..",Gb=e=>{const t=Xb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Yb(a);const i=a.split(la),u=i[0]===""&&i.length>1?1:0;return Ep(i,u,t)},getConflictingClassGroupIds:(a,i)=>{if(i){const u=s[a],c=n[a];return u?c?Wb(c,u):u:c||Uc}return n[a]||Uc}}},Ep=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const c=Ep(e,t+1,o);if(c)return c}const a=n.validators;if(a===null)return;const i=t===0?e.join(la):e.slice(t).join(la),u=a.length;for(let c=0;c<u;c++){const d=a[c];if(d.validator(i))return d.classGroupId}},Yb=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),s=t.slice(0,n);return s?zb+s:void 0})(),Xb=e=>{const{theme:t,classGroups:n}=e;return Jb(n,t)},Jb=(e,t)=>{const n=Ap();for(const s in e){const r=e[s];Gi(r,n,s,t)}return n},Gi=(e,t,n,s)=>{const r=e.length;for(let o=0;o<r;o++){const a=e[o];Qb(a,t,n,s)}},Qb=(e,t,n,s)=>{if(typeof e=="string"){Zb(e,t,n);return}if(typeof e=="function"){e_(e,t,n,s);return}t_(e,t,n,s)},Zb=(e,t,n)=>{const s=e===""?t:Op(t,e);s.classGroupId=n},e_=(e,t,n,s)=>{if(n_(e)){Gi(e(s),t,n,s);return}t.validators===null&&(t.validators=[]),t.validators.push(Kb(n,e))},t_=(e,t,n,s)=>{const r=Object.entries(e),o=r.length;for(let a=0;a<o;a++){const[i,u]=r[a];Gi(u,Op(t,i),n,s)}},Op=(e,t)=>{let n=e;const s=t.split(la),r=s.length;for(let o=0;o<r;o++){const a=s[o];let i=n.nextPart.get(a);i||(i=Ap(),n.nextPart.set(a,i)),n=i}return n},n_=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,s_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),s=Object.create(null);const r=(o,a)=>{n[o]=a,t++,t>e&&(t=0,s=n,n=Object.create(null))};return{get(o){let a=n[o];if(a!==void 0)return a;if((a=s[o])!==void 0)return r(o,a),a},set(o,a){o in n?n[o]=a:r(o,a)}}},ti="!",jc=":",r_=[],Hc=(e,t,n,s,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:s,isExternal:r}),o_=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=r=>{const o=[];let a=0,i=0,u=0,c;const d=r.length;for(let w=0;w<d;w++){const C=r[w];if(a===0&&i===0){if(C===jc){o.push(r.slice(u,w)),u=w+1;continue}if(C==="/"){c=w;continue}}C==="["?a++:C==="]"?a--:C==="("?i++:C===")"&&i--}const f=o.length===0?r:r.slice(u);let p=f,m=!1;f.endsWith(ti)?(p=f.slice(0,-1),m=!0):f.startsWith(ti)&&(p=f.slice(1),m=!0);const v=c&&c>u?c-u:void 0;return Hc(o,m,p,v)};if(t){const r=t+jc,o=s;s=a=>a.startsWith(r)?o(a.slice(r.length)):Hc(r_,!1,a,void 0,!0)}if(n){const r=s;s=o=>n({className:o,parseClassName:r})}return s},a_=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,s)=>{t.set(n,1e6+s)}),n=>{const s=[];let r=[];for(let o=0;o<n.length;o++){const a=n[o],i=a[0]==="[",u=t.has(a);i||u?(r.length>0&&(r.sort(),s.push(...r),r=[]),s.push(a)):r.push(a)}return r.length>0&&(r.sort(),s.push(...r)),s}},l_=e=>({cache:s_(e.cacheSize),parseClassName:o_(e),sortModifiers:a_(e),postfixLookupClassGroupIds:i_(e),...Gb(e)}),i_=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let s=0;s<n.length;s++)t[n[s]]=!0;return t},u_=/\s+/,c_=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r,sortModifiers:o,postfixLookupClassGroupIds:a}=t,i=[],u=e.trim().split(u_);let c="";for(let d=u.length-1;d>=0;d-=1){const f=u[d],{isExternal:p,modifiers:m,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:C}=n(f);if(p){c=f+(c.length>0?" "+c:c);continue}let h=!!C,b;if(h){const A=w.substring(0,C);b=s(A);const M=b&&a[b]?s(w):void 0;M&&M!==b&&(b=M,h=!1)}else b=s(w);if(!b){if(!h){c=f+(c.length>0?" "+c:c);continue}if(b=s(w),!b){c=f+(c.length>0?" "+c:c);continue}h=!1}const $=m.length===0?"":m.length===1?m[0]:o(m).join(":"),k=v?$+ti:$,R=k+b;if(i.indexOf(R)>-1)continue;i.push(R);const I=r(b,h);for(let A=0;A<I.length;++A){const M=I[A];i.push(k+M)}c=f+(c.length>0?" "+c:c)}return c},d_=(...e)=>{let t=0,n,s,r="";for(;t<e.length;)(n=e[t++])&&(s=Pp(n))&&(r&&(r+=" "),r+=s);return r},Pp=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=Pp(e[s]))&&(n&&(n+=" "),n+=t);return n},f_=(e,...t)=>{let n,s,r,o;const a=u=>{const c=t.reduce((d,f)=>f(d),e());return n=l_(c),s=n.cache.get,r=n.cache.set,o=i,i(u)},i=u=>{const c=s(u);if(c)return c;const d=c_(u,n);return r(u,d),d};return o=a,(...u)=>o(d_(...u))},p_=[],kt=e=>{const t=n=>n[e]||p_;return t.isThemeGetter=!0,t},Tp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$p=/^\((?:(\w[\w-]*):)?(.+)\)$/i,m_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,h_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,g_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,v_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,y_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,b_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ps=e=>m_.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),xn=e=>!!e&&Number.isInteger(Number(e)),vl=e=>e.endsWith("%")&&Le(e.slice(0,-1)),Vn=e=>h_.test(e),Ip=()=>!0,__=e=>g_.test(e)&&!v_.test(e),Yi=()=>!1,w_=e=>y_.test(e),x_=e=>b_.test(e),k_=e=>!ye(e)&&!be(e),S_=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),C_=e=>As(e,Lp,Yi),ye=e=>Tp.test(e),Ls=e=>As(e,Dp,__),Wc=e=>As(e,M_,Le),A_=e=>As(e,Np,Ip),E_=e=>As(e,Fp,Yi),Kc=e=>As(e,Mp,Yi),O_=e=>As(e,Rp,x_),Ro=e=>As(e,qp,w_),be=e=>$p.test(e),Ir=e=>Xs(e,Dp),P_=e=>Xs(e,Fp),zc=e=>Xs(e,Mp),T_=e=>Xs(e,Lp),$_=e=>Xs(e,Rp),Lo=e=>Xs(e,qp,!0),I_=e=>Xs(e,Np,!0),As=(e,t,n)=>{const s=Tp.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},Xs=(e,t,n=!1)=>{const s=$p.exec(e);return s?s[1]?t(s[1]):n:!1},Mp=e=>e==="position"||e==="percentage",Rp=e=>e==="image"||e==="url",Lp=e=>e==="length"||e==="size"||e==="bg-size",Dp=e=>e==="length",M_=e=>e==="number",Fp=e=>e==="family-name",Np=e=>e==="number"||e==="weight",qp=e=>e==="shadow",R_=()=>{const e=kt("color"),t=kt("font"),n=kt("text"),s=kt("font-weight"),r=kt("tracking"),o=kt("leading"),a=kt("breakpoint"),i=kt("container"),u=kt("spacing"),c=kt("radius"),d=kt("shadow"),f=kt("inset-shadow"),p=kt("text-shadow"),m=kt("drop-shadow"),v=kt("blur"),w=kt("perspective"),C=kt("aspect"),h=kt("ease"),b=kt("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...k(),be,ye],I=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],M=()=>[be,ye,u],N=()=>[ps,"full","auto",...M()],z=()=>[xn,"none","subgrid",be,ye],Y=()=>["auto",{span:["full",xn,be,ye]},xn,be,ye],W=()=>[xn,"auto",be,ye],ue=()=>["auto","min","max","fr",be,ye],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],ce=()=>["auto",...M()],oe=()=>[ps,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],fe=()=>[ps,"screen","full","dvw","lvw","svw","min","max","fit",...M()],ae=()=>[ps,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],Z=()=>[e,be,ye],de=()=>[...k(),zc,Kc,{position:[be,ye]}],Be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],lt=()=>["auto","cover","contain",T_,C_,{size:[be,ye]}],at=()=>[vl,Ir,Ls],st=()=>["","none","full",c,be,ye],Je=()=>["",Le,Ir,Ls],Ye=()=>["solid","dashed","dotted","double"],Ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$e=()=>[Le,vl,zc,Kc],dt=()=>["","none",v,be,ye],ge=()=>["none",Le,be,ye],_=()=>["none",Le,be,ye],T=()=>[Le,be,ye],j=()=>[ps,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Vn],breakpoint:[Vn],color:[Ip],container:[Vn],"drop-shadow":[Vn],ease:["in","out","in-out"],font:[k_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Vn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Vn],shadow:[Vn],spacing:["px",Le],text:[Vn],"text-shadow":[Vn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ps,ye,be,C]}],container:["container"],"container-type":[{"@container":["","normal","size",be,ye]}],"container-named":[S_],columns:[{columns:[Le,ye,be,i]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{"inset-s":N(),start:N()}],end:[{"inset-e":N(),end:N()}],"inset-bs":[{"inset-bs":N()}],"inset-be":[{"inset-be":N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[xn,"auto",be,ye]}],basis:[{basis:[ps,"full","auto",i,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,ps,"auto","initial","none",ye]}],grow:[{grow:["",Le,be,ye]}],shrink:[{shrink:["",Le,be,ye]}],order:[{order:[xn,"first","last","none",be,ye]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:Y()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:Y()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:ce()}],mx:[{mx:ce()}],my:[{my:ce()}],ms:[{ms:ce()}],me:[{me:ce()}],mbs:[{mbs:ce()}],mbe:[{mbe:ce()}],mt:[{mt:ce()}],mr:[{mr:ce()}],mb:[{mb:ce()}],ml:[{ml:ce()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:oe()}],"inline-size":[{inline:["auto",...fe()]}],"min-inline-size":[{"min-inline":["auto",...fe()]}],"max-inline-size":[{"max-inline":["none",...fe()]}],"block-size":[{block:["auto",...ae()]}],"min-block-size":[{"min-block":["auto",...ae()]}],"max-block-size":[{"max-block":["none",...ae()]}],w:[{w:[i,"screen",...oe()]}],"min-w":[{"min-w":[i,"screen","none",...oe()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...oe()]}],h:[{h:["screen","lh",...oe()]}],"min-h":[{"min-h":["screen","lh","none",...oe()]}],"max-h":[{"max-h":["screen","lh",...oe()]}],"font-size":[{text:["base",n,Ir,Ls]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,I_,A_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vl,ye]}],"font-family":[{font:[P_,E_,t]}],"font-features":[{"font-features":[ye]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,be,ye]}],"line-clamp":[{"line-clamp":[Le,"none",be,Wc]}],leading:[{leading:[o,...M()]}],"list-image":[{"list-image":["none",be,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Z()}],"text-color":[{text:Z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ye(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",be,Ls]}],"text-decoration-color":[{decoration:Z()}],"underline-offset":[{"underline-offset":[Le,"auto",be,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"tab-size":[{tab:[xn,be,ye]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,ye]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:Be()}],"bg-size":[{bg:lt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},xn,be,ye],radial:["",be,ye],conic:[xn,be,ye]},$_,O_]}],"bg-color":[{bg:Z()}],"gradient-from-pos":[{from:at()}],"gradient-via-pos":[{via:at()}],"gradient-to-pos":[{to:at()}],"gradient-from":[{from:Z()}],"gradient-via":[{via:Z()}],"gradient-to":[{to:Z()}],rounded:[{rounded:st()}],"rounded-s":[{"rounded-s":st()}],"rounded-e":[{"rounded-e":st()}],"rounded-t":[{"rounded-t":st()}],"rounded-r":[{"rounded-r":st()}],"rounded-b":[{"rounded-b":st()}],"rounded-l":[{"rounded-l":st()}],"rounded-ss":[{"rounded-ss":st()}],"rounded-se":[{"rounded-se":st()}],"rounded-ee":[{"rounded-ee":st()}],"rounded-es":[{"rounded-es":st()}],"rounded-tl":[{"rounded-tl":st()}],"rounded-tr":[{"rounded-tr":st()}],"rounded-br":[{"rounded-br":st()}],"rounded-bl":[{"rounded-bl":st()}],"border-w":[{border:Je()}],"border-w-x":[{"border-x":Je()}],"border-w-y":[{"border-y":Je()}],"border-w-s":[{"border-s":Je()}],"border-w-e":[{"border-e":Je()}],"border-w-bs":[{"border-bs":Je()}],"border-w-be":[{"border-be":Je()}],"border-w-t":[{"border-t":Je()}],"border-w-r":[{"border-r":Je()}],"border-w-b":[{"border-b":Je()}],"border-w-l":[{"border-l":Je()}],"divide-x":[{"divide-x":Je()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Je()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ye(),"hidden","none"]}],"divide-style":[{divide:[...Ye(),"hidden","none"]}],"border-color":[{border:Z()}],"border-color-x":[{"border-x":Z()}],"border-color-y":[{"border-y":Z()}],"border-color-s":[{"border-s":Z()}],"border-color-e":[{"border-e":Z()}],"border-color-bs":[{"border-bs":Z()}],"border-color-be":[{"border-be":Z()}],"border-color-t":[{"border-t":Z()}],"border-color-r":[{"border-r":Z()}],"border-color-b":[{"border-b":Z()}],"border-color-l":[{"border-l":Z()}],"divide-color":[{divide:Z()}],"outline-style":[{outline:[...Ye(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,be,ye]}],"outline-w":[{outline:["",Le,Ir,Ls]}],"outline-color":[{outline:Z()}],shadow:[{shadow:["","none",d,Lo,Ro]}],"shadow-color":[{shadow:Z()}],"inset-shadow":[{"inset-shadow":["none",f,Lo,Ro]}],"inset-shadow-color":[{"inset-shadow":Z()}],"ring-w":[{ring:Je()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Z()}],"ring-offset-w":[{"ring-offset":[Le,Ls]}],"ring-offset-color":[{"ring-offset":Z()}],"inset-ring-w":[{"inset-ring":Je()}],"inset-ring-color":[{"inset-ring":Z()}],"text-shadow":[{"text-shadow":["none",p,Lo,Ro]}],"text-shadow-color":[{"text-shadow":Z()}],opacity:[{opacity:[Le,be,ye]}],"mix-blend":[{"mix-blend":[...Ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ve()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":$e()}],"mask-image-linear-to-pos":[{"mask-linear-to":$e()}],"mask-image-linear-from-color":[{"mask-linear-from":Z()}],"mask-image-linear-to-color":[{"mask-linear-to":Z()}],"mask-image-t-from-pos":[{"mask-t-from":$e()}],"mask-image-t-to-pos":[{"mask-t-to":$e()}],"mask-image-t-from-color":[{"mask-t-from":Z()}],"mask-image-t-to-color":[{"mask-t-to":Z()}],"mask-image-r-from-pos":[{"mask-r-from":$e()}],"mask-image-r-to-pos":[{"mask-r-to":$e()}],"mask-image-r-from-color":[{"mask-r-from":Z()}],"mask-image-r-to-color":[{"mask-r-to":Z()}],"mask-image-b-from-pos":[{"mask-b-from":$e()}],"mask-image-b-to-pos":[{"mask-b-to":$e()}],"mask-image-b-from-color":[{"mask-b-from":Z()}],"mask-image-b-to-color":[{"mask-b-to":Z()}],"mask-image-l-from-pos":[{"mask-l-from":$e()}],"mask-image-l-to-pos":[{"mask-l-to":$e()}],"mask-image-l-from-color":[{"mask-l-from":Z()}],"mask-image-l-to-color":[{"mask-l-to":Z()}],"mask-image-x-from-pos":[{"mask-x-from":$e()}],"mask-image-x-to-pos":[{"mask-x-to":$e()}],"mask-image-x-from-color":[{"mask-x-from":Z()}],"mask-image-x-to-color":[{"mask-x-to":Z()}],"mask-image-y-from-pos":[{"mask-y-from":$e()}],"mask-image-y-to-pos":[{"mask-y-to":$e()}],"mask-image-y-from-color":[{"mask-y-from":Z()}],"mask-image-y-to-color":[{"mask-y-to":Z()}],"mask-image-radial":[{"mask-radial":[be,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":$e()}],"mask-image-radial-to-pos":[{"mask-radial-to":$e()}],"mask-image-radial-from-color":[{"mask-radial-from":Z()}],"mask-image-radial-to-color":[{"mask-radial-to":Z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":$e()}],"mask-image-conic-to-pos":[{"mask-conic-to":$e()}],"mask-image-conic-from-color":[{"mask-conic-from":Z()}],"mask-image-conic-to-color":[{"mask-conic-to":Z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:Be()}],"mask-size":[{mask:lt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",be,ye]}],filter:[{filter:["","none",be,ye]}],blur:[{blur:dt()}],brightness:[{brightness:[Le,be,ye]}],contrast:[{contrast:[Le,be,ye]}],"drop-shadow":[{"drop-shadow":["","none",m,Lo,Ro]}],"drop-shadow-color":[{"drop-shadow":Z()}],grayscale:[{grayscale:["",Le,be,ye]}],"hue-rotate":[{"hue-rotate":[Le,be,ye]}],invert:[{invert:["",Le,be,ye]}],saturate:[{saturate:[Le,be,ye]}],sepia:[{sepia:["",Le,be,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",be,ye]}],"backdrop-blur":[{"backdrop-blur":dt()}],"backdrop-brightness":[{"backdrop-brightness":[Le,be,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Le,be,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,be,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,be,ye]}],"backdrop-invert":[{"backdrop-invert":["",Le,be,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Le,be,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Le,be,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,be,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",be,ye]}],ease:[{ease:["linear","initial",h,be,ye]}],delay:[{delay:[Le,be,ye]}],animate:[{animate:["none",b,be,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,be,ye]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:_()}],"scale-x":[{"scale-x":_()}],"scale-y":[{"scale-y":_()}],"scale-z":[{"scale-z":_()}],"scale-3d":["scale-3d"],skew:[{skew:T()}],"skew-x":[{"skew-x":T()}],"skew-y":[{"skew-y":T()}],transform:[{transform:[be,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:j()}],"translate-x":[{"translate-x":j()}],"translate-y":[{"translate-y":j()}],"translate-z":[{"translate-z":j()}],"translate-none":["translate-none"],zoom:[{zoom:[xn,be,ye]}],accent:[{accent:Z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":Z()}],"scrollbar-track-color":[{"scrollbar-track":Z()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",be,ye]}],fill:[{fill:["none",...Z()]}],"stroke-w":[{stroke:[Le,Ir,Ls,Wc]}],stroke:[{stroke:["none",...Z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},L_=f_(R_);function Ge(...e){return L_(Sp(e))}const D_=["type","disabled"],Pe=Q({__name:"Button",props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]},type:{},disabled:{type:Boolean}},setup(e){const t=e;return(n,s)=>(x(),J("button",{type:t.type??"button",disabled:t.disabled,class:xe(l(Ge)(l(F_)({variant:t.variant,size:t.size}),t.class))},[ie(n.$slots,"default")],10,D_))}}),F_=Cp("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all duration-150 hover:scale-[1.02] active:scale-[0.97] disabled:pointer-events-none disabled:opacity-50 disabled:hover:scale-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline hover:scale-100 active:scale-100"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),N_=["type","value","placeholder","autocomplete","disabled"],bt=Q({__name:"Input",props:{modelValue:{},class:{type:[Boolean,null,String,Object,Array]},type:{},placeholder:{},autocomplete:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=t;return(r,o)=>(x(),J("input",{type:n.type??"text",value:n.modelValue,placeholder:n.placeholder,autocomplete:n.autocomplete,disabled:n.disabled,onInput:o[0]||(o[0]=a=>s("update:modelValue",a.target.value)),class:xe(l(Ge)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",n.class))},null,42,N_))}}),pn=Q({__name:"Card",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),J("div",{class:xe(l(Ge)("rounded-xl border bg-card text-card-foreground shadow",t.class))},[ie(n.$slots,"default")],2))}}),In=Q({__name:"CardHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),J("div",{class:xe(l(Ge)("flex flex-col space-y-1.5 p-6",t.class))},[ie(n.$slots,"default")],2))}}),Mn=Q({__name:"CardTitle",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),J("h3",{class:xe(l(Ge)("font-semibold leading-none tracking-tight",t.class))},[ie(n.$slots,"default")],2))}}),ys=Q({__name:"CardDescription",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),J("p",{class:xe(l(Ge)("text-sm text-muted-foreground",t.class))},[ie(n.$slots,"default")],2))}}),mn=Q({__name:"CardContent",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),J("div",{class:xe(l(Ge)("p-6 pt-0",t.class))},[ie(n.$slots,"default")],2))}}),ht=Q({__name:"Badge",props:{variant:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),J("span",{class:xe(l(Ge)(l(q_)({variant:t.variant}),t.class))},[ie(n.$slots,"default")],2))}}),q_=Cp("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none",{variants:{variant:{default:"border-transparent bg-primary/15 text-primary",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive/15 text-destructive",outline:"text-foreground",muted:"border-transparent bg-muted text-muted-foreground",success:"border-transparent bg-emerald-500/15 text-emerald-500",warning:"border-transparent bg-amber-500/15 text-amber-600 dark:text-amber-400"}},defaultVariants:{variant:"default"}});function Gc(e){return typeof e=="string"?`'${e}'`:new B_().serialize(e)}const B_=function(){var t;class e{constructor(){xu(this,t,new Map)}compare(s,r){const o=typeof s,a=typeof r;return o==="string"&&a==="string"?s.localeCompare(r):o==="number"&&a==="number"?s-r:String.prototype.localeCompare.call(this.serialize(s,!0),this.serialize(r,!0))}serialize(s,r){if(s===null)return"null";switch(typeof s){case"string":return r?s:`'${s}'`;case"bigint":return`${s}n`;case"object":return this.$object(s);case"function":return this.$function(s)}return String(s)}serializeObject(s){const r=Object.prototype.toString.call(s);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),s);const o=s.constructor,a=o===Object||o===void 0?"":o.name;if(a!==""&&globalThis[a]===o)return this.serializeBuiltInType(a,s);if(typeof s.toJSON=="function"){const i=s.toJSON();return a+(i!==null&&typeof i=="object"?this.$object(i):`(${this.serialize(i)})`)}return this.serializeObjectEntries(a,Object.entries(s))}serializeBuiltInType(s,r){const o=this["$"+s];if(o)return o.call(this,r);if(typeof(r==null?void 0:r.entries)=="function")return this.serializeObjectEntries(s,r.entries());throw new Error(`Cannot serialize ${s}`)}serializeObjectEntries(s,r){const o=Array.from(r).sort((i,u)=>this.compare(i[0],u[0]));let a=`${s}{`;for(let i=0;i<o.length;i++){const[u,c]=o[i];a+=`${this.serialize(u,!0)}:${this.serialize(c)}`,i<o.length-1&&(a+=",")}return a+"}"}$object(s){let r=Ar(this,t).get(s);return r===void 0&&(Ar(this,t).set(s,`#${Ar(this,t).size}`),r=this.serializeObject(s),Ar(this,t).set(s,r)),r}$function(s){const r=Function.prototype.toString.call(s);return r.slice(-15)==="[native code] }"?`${s.name||""}()[native]`:`${s.name}(${s.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(s){let r="[";for(let o=0;o<s.length;o++)r+=this.serialize(s[o]),o<s.length-1&&(r+=",");return r+"]"}$Date(s){try{return`Date(${s.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(s){return`ArrayBuffer[${new Uint8Array(s).join(",")}]`}$Set(s){return`Set${this.$Array(Array.from(s).sort((r,o)=>this.compare(r,o)))}`}$Map(s){return this.serializeObjectEntries("Map",s.entries())}}t=new WeakMap;for(const n of["Error","RegExp","URL"])e.prototype["$"+n]=function(s){return`${n}(${s})`};for(const n of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+n]=function(s){return`${n}[${s.join(",")}]`};for(const n of["BigInt64Array","BigUint64Array"])e.prototype["$"+n]=function(s){return`${n}[${s.join("n,")}${s.length>0?"n":""}]`};return e}();function io(e,t){return e===t||Gc(e)===Gc(t)}function Yc(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(n,Math.max(t,e))}function It(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,s=Symbol(n);return[a=>{const i=Ws(s,a);if(i||i===null)return i;throw new Error(`Injection \`${s.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},a=>(Ti(s,a),a)]}function Ct(){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 Xi(e,t,n){const s=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),s.dispatchEvent(r)}function wr(e){return e==null}function Xc(e,t){return wr(e)?!1:Array.isArray(e)?e.some(n=>io(n,t)):io(e,t)}function Ji(e,t){return wa()?(Ci(e,t),!0):!1}function V_(e){let t=!1,n;const s=Si(!0);return(...r)=>(t||(n=s.run(()=>e(...r)),t=!0),n)}const Rn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const U_=e=>typeof e<"u",j_=Object.prototype.toString,H_=e=>j_.call(e)==="[object Object]",Jc=W_();function W_(){var e,t,n;return Rn&&!!(!((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 yl(e){return Array.isArray(e)?e:[e]}function K_(e){return Jt()}function Bp(e){if(!Rn)return e;let t=0,n,s;const r=()=>{t-=1,s&&t<=0&&(s.stop(),n=void 0,s=void 0)};return(...o)=>(t+=1,s||(s=Si(!0),n=s.run(()=>e(...o))),Ji(r),n)}function z_(e){return Ks(pt(e)?new Proxy({},{get(t,n,s){return l(Reflect.get(e.value,n,s))},set(t,n,s){return pt(e.value[n])&&!pt(s)?e.value[n].value=s:e.value[n]=s,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function G_(e){return z_(te(e))}function Y_(e,...t){const n=t.flat(),s=n[0];return G_(()=>Object.fromEntries(typeof s=="function"?Object.entries(Xt(e)).filter(([r,o])=>!s(Ft(o),r)):Object.entries(Xt(e)).filter(r=>!n.includes(r[0]))))}function X_(e,t=1e4){return Yd((n,s)=>{let r=Ft(e),o;const a=()=>setTimeout(()=>{r=Ft(e),s()},Ft(t));return Ji(()=>{clearTimeout(o)}),{get(){return n(),r},set(i){r=i,s(),clearTimeout(o),o=a()}}})}function J_(e,t){K_()&&Ta(e,t)}function Q_(e,t,n){return De(e,t,{...n,immediate:!0})}const La=Rn?window:void 0;function Ln(e){var t;const n=Ft(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function ia(...e){const t=(s,r,o,a)=>(s.addEventListener(r,o,a),()=>s.removeEventListener(r,o,a)),n=te(()=>{const s=yl(Ft(e[0])).filter(r=>r!=null);return s.every(r=>typeof r!="string")?s:void 0});return Q_(()=>{var s,r;return[(s=(r=n.value)===null||r===void 0?void 0:r.map(o=>Ln(o)))!==null&&s!==void 0?s:[La].filter(o=>o!=null),yl(Ft(n.value?e[1]:e[0])),yl(l(n.value?e[2]:e[1])),Ft(n.value?e[3]:e[2])]},([s,r,o,a],i,u)=>{if(!(s!=null&&s.length)||!(r!=null&&r.length)||!(o!=null&&o.length))return;const c=H_(a)?{...a}:a,d=s.flatMap(f=>r.flatMap(p=>o.map(m=>t(f,p,m,c))));u(()=>{d.forEach(f=>f())})},{flush:"post"})}function Vp(){const e=Ea(!1),t=Jt();return t&&mt(()=>{e.value=!0},t),e}function Z_(e){const t=Vp();return te(()=>(t.value,!!e()))}function e1(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function t1(...e){let t,n,s={};e.length===3?(t=e[0],n=e[1],s=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],s=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=La,eventName:o="keydown",passive:a=!1,dedupe:i=!1}=s,u=e1(t);return ia(r,o,d=>{d.repeat&&Ft(i)||u(d)&&n(d)},a)}function n1(e){return JSON.parse(JSON.stringify(e))}function s1(e,t,n={}){const{window:s=La,...r}=n;let o;const a=Z_(()=>s&&"ResizeObserver"in s),i=()=>{o&&(o.disconnect(),o=void 0)},u=De(te(()=>{const d=Ft(e);return Array.isArray(d)?d.map(f=>Ln(f)):[Ln(d)]}),d=>{if(i(),a.value&&s){o=new ResizeObserver(t);for(const f of d)f&&o.observe(f,r)}},{immediate:!0,flush:"post"}),c=()=>{i(),u()};return Ji(c),{isSupported:a,stop:c}}function os(e,t,n,s={}){var r,o;const{clone:a=!1,passive:i=!1,eventName:u,deep:c=!1,defaultValue:d,shouldEmit:f}=s,p=Jt(),m=n||(p==null?void 0:p.emit)||(p==null||(r=p.$emit)===null||r===void 0?void 0:r.bind(p))||(p==null||(o=p.proxy)===null||o===void 0||(o=o.$emit)===null||o===void 0?void 0:o.bind(p==null?void 0:p.proxy));let v=u;t||(t="modelValue"),v=v||`update:${t.toString()}`;const w=b=>a?typeof a=="function"?a(b):n1(b):b,C=()=>U_(e[t])?w(e[t]):d,h=b=>{f?f(b)&&m(v,b):m(v,b)};if(i){const b=F(C());let $=!1;return De(()=>e[t],k=>{$||($=!0,b.value=w(k),yt(()=>$=!1))}),De(b,k=>{!$&&(k!==e[t]||c)&&h(k)},{deep:c}),b}else return te({get(){return C()},set(b){h(b)}})}function Qi(e){return e?e.flatMap(t=>t.type===Ce?Qi(t.children):[t]):[]}const r1=["INPUT","TEXTAREA"];function Qc(e,t,n,s={}){if(!t||s.enableIgnoredElement&&r1.includes(t.nodeName))return null;const{arrowKeyOptions:r="both",attributeName:o="[data-reka-collection-item]",itemsArray:a=[],loop:i=!0,dir:u="ltr",preventScroll:c=!0,focus:d=!1}=s,[f,p,m,v,w,C]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],h=m||v,b=f||p;if(!w&&!C&&(!h&&!b||r==="vertical"&&b||r==="horizontal"&&h))return null;const $=n?Array.from(n.querySelectorAll(o)):a;if(!$.length)return null;c&&e.preventDefault();let k=null;return b||h?k=Up($,t,{goForward:h?v:u==="ltr"?f:p,loop:i}):w?k=$.at(0)||null:C&&(k=$.at(-1)||null),d&&(k==null||k.focus()),k}function Up(e,t,n,s=e.includes(t)?e.length:e.length+1){if(--s===0)return null;const r=e.indexOf(t);let o;if(r===-1?o=n.goForward?0:e.length-1:o=n.goForward?r+1:r-1,!n.loop&&(o<0||o>=e.length))return null;const a=(o+e.length)%e.length,i=e[a];return i?i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false"?Up(e,i,n,s):i:null}const[wo]=It("ConfigProvider");function bl(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 ni(e,t,n=".",s){if(!bl(t))return ni(e,{},n,s);const r={...t};for(const o of Object.keys(e)){if(o==="__proto__"||o==="constructor")continue;const a=e[o];a!=null&&(s&&s(r,o,a,n)||(Array.isArray(a)&&Array.isArray(r[o])?r[o]=[...a,...r[o]]:bl(a)&&bl(r[o])?r[o]=ni(a,r[o],(n?`${n}.`:"")+o.toString(),s):r[o]=a))}return r}function o1(e){return(...t)=>t.reduce((n,s)=>ni(n,s,"",e),{})}const a1=o1(),l1=Bp(()=>{const e=F(new Map),t=F(),n=te(()=>{for(const a of e.value.values())if(a)return!0;return!1}),s=wo({scrollBody:F(!0)});let r=null;const o=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",Jc&&(r==null||r()),t.value=void 0};return De(n,(a,i)=>{var f;if(!Rn)return;if(!a){i&&o();return}t.value===void 0&&(t.value=document.body.style.overflow);const u=window.innerWidth-document.documentElement.clientWidth,c={padding:u,margin:0},d=(f=s.scrollBody)!=null&&f.value?typeof s.scrollBody.value=="object"?a1({padding:s.scrollBody.value.padding===!0?u:s.scrollBody.value.padding,margin:s.scrollBody.value.margin===!0?u:s.scrollBody.value.margin},c):c:{padding:0,margin:0};u>0&&(document.body.style.paddingRight=typeof d.padding=="number"?`${d.padding}px`:String(d.padding),document.body.style.marginRight=typeof d.margin=="number"?`${d.margin}px`:String(d.margin),document.documentElement.style.setProperty("--scrollbar-width",`${u}px`),document.body.style.overflow="hidden"),Jc&&(r=ia(document,"touchmove",p=>i1(p),{passive:!1})),yt(()=>{n.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function Da(e){const t=Math.random().toString(36).substring(2,7),n=l1();n.value.set(t,e??!1);const s=te({get:()=>n.value.get(t)??!1,set:r=>n.value.set(t,r)});return J_(()=>{n.value.delete(t)}),s}function jp(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:jp(n)}}function i1(e){const t=e||window.event,n=t.target;return n instanceof Element&&jp(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function xr(e){const t=wo({dir:F("ltr")});return te(()=>{var n;return(e==null?void 0:e.value)||((n=t.dir)==null?void 0:n.value)||"ltr"})}function xo(e){const t=Jt(),n=t==null?void 0:t.type.emits,s={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),n==null||n.forEach(r=>{s[Vo(Ot(r))]=(...o)=>e(r,...o)}),s}let _l=0;function Zi(){rs(e=>{if(!Rn)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??Zc()),document.body.insertAdjacentElement("beforeend",t[1]??Zc()),_l++,e(()=>{_l===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),_l--})})}function Zc(){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 Hp(e){return te(()=>{var t;return Ft(e)?!!((t=Ln(e))!=null&&t.closest("form")):!0})}function Fe(){const e=Jt(),t=F(),n=te(()=>s());Ii(()=>{n.value!==s()&&wh(t)});function s(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:Ln(t)}const r=Object.assign({},e.exposed),o={};for(const i in e.props)Object.defineProperty(o,i,{enumerable:!0,configurable:!0,get:()=>e.props[i]});if(Object.keys(r).length>0)for(const i in r)Object.defineProperty(o,i,{enumerable:!0,configurable:!0,get:()=>r[i]});Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=o;function a(i){if(t.value=i,!!i&&(Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>i instanceof Element?i:i.$el}),!(i instanceof Element)&&!Object.hasOwn(i,"$el"))){const u=i.$.exposed,c=Object.assign({},o);for(const d in u)Object.defineProperty(c,d,{enumerable:!0,configurable:!0,get:()=>u[d]});e.exposed=c}}return{forwardRef:a,currentRef:t,currentElement:n}}function Fa(e){const t=Jt(),n=Object.keys((t==null?void 0:t.type.props)??{}).reduce((r,o)=>{const a=(t==null?void 0:t.type.props[o]).default;return a!==void 0&&(r[o]=a),r},{}),s=Ah(e);return te(()=>{const r={},o=(t==null?void 0:t.vnode.props)??{};return Object.keys(o).forEach(a=>{r[Ot(a)]=o[a]}),Object.keys({...n,...r}).reduce((a,i)=>(s.value[i]!==void 0&&(a[i]=s.value[i]),a),{})})}function Mt(e,t){const n=Fa(e),s=t?xo(t):{};return te(()=>({...n.value,...s}))}function u1(){var t,n;const e=(n=(t=Jt())==null?void 0:t.vnode)==null?void 0:n.scopeId;return e?{[e]:""}:{}}var c1=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},nr=new WeakMap,Do=new WeakMap,Fo={},wl=0,Wp=function(e){return e&&(e.host||Wp(e.parentNode))},d1=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=Wp(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},f1=function(e,t,n,s){var r=d1(t,Array.isArray(e)?e:[e]);Fo[n]||(Fo[n]=new WeakMap);var o=Fo[n],a=[],i=new Set,u=new Set(r),c=function(f){!f||i.has(f)||(i.add(f),c(f.parentNode))};r.forEach(c);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(p){if(i.has(p))d(p);else try{var m=p.getAttribute(s),v=m!==null&&m!=="false",w=(nr.get(p)||0)+1,C=(o.get(p)||0)+1;nr.set(p,w),o.set(p,C),a.push(p),w===1&&v&&Do.set(p,!0),C===1&&p.setAttribute(n,"true"),v||p.setAttribute(s,"true")}catch(h){console.error("aria-hidden: cannot operate on ",p,h)}})};return d(t),i.clear(),wl++,function(){a.forEach(function(f){var p=nr.get(f)-1,m=o.get(f)-1;nr.set(f,p),o.set(f,m),p||(Do.has(f)||f.removeAttribute(s),Do.delete(f)),m||f.removeAttribute(n)}),wl--,wl||(nr=new WeakMap,nr=new WeakMap,Do=new WeakMap,Fo={})}},p1=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),r=c1(e);return r?(s.push.apply(s,Array.from(r.querySelectorAll("[aria-live], script"))),f1(s,r,n,"aria-hidden")):function(){return null}};function Na(e){let t;De(()=>Ln(e),n=>{let s=!1;try{s=!!(n!=null&&n.closest("[popover]:not(:popover-open)"))}catch{}n&&!s?t=p1(n):t&&t()}),yn(()=>{t&&t()})}function Dn(e,t="reka"){let n;const s=wo({useId:void 0});return s.useId?n=s.useId():n=ol==null?void 0:ol(),t?`${t}-${n}`:n}function m1(e){const t=F(),n=te(()=>{var o;return((o=t.value)==null?void 0:o.width)??0}),s=te(()=>{var o;return((o=t.value)==null?void 0:o.height)??0});let r;return mt(()=>{const o=Ln(e);o?(t.value={width:o.offsetWidth,height:o.offsetHeight},r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let u,c;if("borderBoxSize"in i){const d=i.borderBoxSize,f=Array.isArray(d)?d[0]:d;u=f.inlineSize,c=f.blockSize}else u=o.offsetWidth,c=o.offsetHeight;t.value={width:u,height:c}}),r.observe(o,{box:"border-box"})):t.value=void 0}),yn(()=>{r==null||r.disconnect(),r=void 0}),{width:n,height:s}}function h1(e,t){const n=F(e);function s(o){return t[n.value][o]??n.value}return{state:n,dispatch:o=>{n.value=s(o)}}}function eu(e){const t=X_("",1e3);return{search:t,handleTypeaheadSearch:(r,o)=>{t.value=t.value+r;{const a=Ct(),i=o.map(p=>{var m,v;return{...p,textValue:((m=p.value)==null?void 0:m.textValue)??((v=p.ref.textContent)==null?void 0:v.trim())??""}}),u=i.find(p=>p.ref===a),c=i.map(p=>p.textValue),d=v1(c,t.value,u==null?void 0:u.textValue),f=i.find(p=>p.textValue===d);return f&&f.ref.focus(),f==null?void 0:f.ref}},resetTypeahead:()=>{t.value=""}}}function g1(e,t){return e.map((n,s)=>e[(t+s)%e.length])}function v1(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let a=g1(e,Math.max(o,0));r.length===1&&(a=a.filter(c=>c!==n));const u=a.find(c=>c.toLowerCase().startsWith(r.toLowerCase()));return u!==n?u:void 0}function y1(e,t){var C;const n=F({}),s=F("none"),r=F(e),o=e.value?"mounted":"unmounted";let a;const i=((C=t.value)==null?void 0:C.ownerDocument.defaultView)??La,{state:u,dispatch:c}=h1(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),d=h=>{var b;if(Rn){const $=new CustomEvent(h,{bubbles:!1,cancelable:!1});(b=t.value)==null||b.dispatchEvent($)}};De(e,async(h,b)=>{var k;const $=b!==h;if(await yt(),$){const R=s.value,I=No(t.value);h?(c("MOUNT"),d("enter"),I==="none"&&d("after-enter")):I==="none"||I==="undefined"||((k=n.value)==null?void 0:k.display)==="none"?(c("UNMOUNT"),d("leave"),d("after-leave")):b&&R!==I?(c("ANIMATION_OUT"),d("leave")):(c("UNMOUNT"),d("after-leave"))}},{immediate:!0});const f=h=>{const b=No(t.value),$=b.includes(CSS.escape(h.animationName)),k=u.value==="mounted"?"enter":"leave";if(h.target===t.value&&$&&(d(`after-${k}`),c("ANIMATION_END"),!r.value)){const R=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",a=i==null?void 0:i.setTimeout(()=>{var I;((I=t.value)==null?void 0:I.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=R)})}h.target===t.value&&b==="none"&&c("ANIMATION_END")},p=h=>{h.target===t.value&&(s.value=No(t.value))},m=De(t,(h,b)=>{h?(n.value=getComputedStyle(h),h.addEventListener("animationstart",p),h.addEventListener("animationcancel",f),h.addEventListener("animationend",f)):(c("ANIMATION_END"),a!==void 0&&(i==null||i.clearTimeout(a)),b==null||b.removeEventListener("animationstart",p),b==null||b.removeEventListener("animationcancel",f),b==null||b.removeEventListener("animationend",f))},{immediate:!0}),v=De(u,()=>{const h=No(t.value);s.value=u.value==="mounted"?h:"none"});return yn(()=>{m(),v(),t.value&&(t.value.removeEventListener("animationstart",p),t.value.removeEventListener("animationcancel",f),t.value.removeEventListener("animationend",f)),a!==void 0&&(i==null||i.clearTimeout(a))}),{isPresent:te(()=>["mounted","unmountSuspended"].includes(u.value))}}function No(e){return e&&getComputedStyle(e).animationName||"none"}var Js=Q({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var c;const{present:s,forceMount:r}=Xt(e),o=F(),{isPresent:a}=y1(s,o);n({present:a});let i=t.default({present:a.value});i=Qi(i||[]);const u=Jt();if(i&&(i==null?void 0:i.length)>1){const d=(c=u==null?void 0:u.parent)!=null&&c.type.name?`<${u.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${d}\` 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(f=>` - ${f}`).join(`
|
|
36
|
-
`)].join(`
|
|
37
|
-
`))}return()=>r.value||s.value||a.value?en(t.default({present:a.value})[0],{ref:d=>{const f=Ln(d);return typeof(f==null?void 0:f.hasAttribute)>"u"||(f!=null&&f.hasAttribute("data-reka-popper-content-wrapper")?o.value=f.firstElementChild:o.value=f),f}}):null}});const si=Q({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var u;if(!n.default)return null;const s=Qi(n.default()),r=s.findIndex(c=>c.type!==vn);if(r===-1)return s;const o=s[r];(u=o.props)==null||delete u.ref;const a=o.props?Ee(t,o.props):t,i=_s({...o,props:{}},a);return s.length===1?i:(s[r]=i,s)}}}),b1=["area","img","input"],Ue=Q({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const s=e.asChild?"template":e.as;return typeof s=="string"&&b1.includes(s)?()=>en(s,t):s!=="template"?()=>en(e.as,t,{default:n.default}):()=>en(si,t,{default:n.default})}});function ri(){const e=F(),t=te(()=>{var n,s;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(s=e.value)==null?void 0:s.$el.nextElementSibling:Ln(e)});return{primitiveElement:e,currentElement:t}}const[us,_1]=It("DialogRoot");var w1=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},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=os(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),o=F(),a=F(),{modal:i,unmountOnHide:u}=Xt(n);return _1({open:r,modal:i,unmountOnHide:u,openModal:()=>{r.value=!0},onOpenChange:c=>{r.value=c},onOpenToggle:()=>{r.value=!r.value},contentId:"",titleId:"",descriptionId:"",triggerElement:o,contentElement:a}),(c,d)=>ie(c.$slots,"default",{open:l(r),close:()=>r.value=!1})}}),x1=w1,k1=Q({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;Fe();const n=us();return(s,r)=>(x(),D(l(Ue),Ee(t,{type:s.as==="button"?"button":void 0,onClick:r[0]||(r[0]=o=>l(n).onOpenChange(!1))}),{default:y(()=>[ie(s.$slots,"default")]),_:3},16,["type"]))}}),S1=k1;const C1="dismissableLayer.pointerDownOutside",A1="dismissableLayer.focusOutside";function Kp(e,t){if(!(t instanceof Element))return!1;const n=t.closest("[data-dismissable-layer]"),s=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),r=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(s===n||r.indexOf(s)<r.indexOf(n)))}function E1(e,t,n=!0){var a;const s=((a=t==null?void 0:t.value)==null?void 0:a.ownerDocument)??(globalThis==null?void 0:globalThis.document),r=F(!1),o=F(()=>{});return rs(i=>{if(!Rn||!Ft(n))return;const u=async d=>{const f=d.target;if(!(!(t!=null&&t.value)||!f)){if(Kp(t.value,f)){r.value=!1;return}if(d.target&&!r.value){let v=function(){Xi(C1,e,m)};var p=v;const m={originalEvent:d};d.pointerType==="touch"?(s.removeEventListener("click",o.value),o.value=v,s.addEventListener("click",o.value,{once:!0})):v()}else s.removeEventListener("click",o.value);r.value=!1}},c=window.setTimeout(()=>{s.addEventListener("pointerdown",u)},0);i(()=>{window.clearTimeout(c),s.removeEventListener("pointerdown",u),s.removeEventListener("click",o.value)})}),{onPointerDownCapture:()=>{Ft(n)&&(r.value=!0)}}}function O1(e,t,n=!0){var o;const s=((o=t==null?void 0:t.value)==null?void 0:o.ownerDocument)??(globalThis==null?void 0:globalThis.document),r=F(!1);return rs(a=>{if(!Rn||!Ft(n))return;const i=async u=>{if(!(t!=null&&t.value))return;await yt(),await yt();const c=u.target;!t.value||!c||Kp(t.value,c)||u.target&&!r.value&&Xi(A1,e,{originalEvent:u})};s.addEventListener("focusin",i),a(()=>s.removeEventListener("focusin",i))}),{onFocusCapture:()=>{Ft(n)&&(r.value=!0)},onBlurCapture:()=>{Ft(n)&&(r.value=!1)}}}const Qt=Ks({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var P1=Q({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,s=t,{forwardRef:r,currentElement:o}=Fe(),a=te(()=>{var m;return((m=o.value)==null?void 0:m.ownerDocument)??globalThis.document}),i=te(()=>Qt.layersRoot),u=te(()=>o.value?Array.from(i.value).indexOf(o.value):-1),c=te(()=>Qt.layersWithOutsidePointerEventsDisabled.size>0),d=te(()=>{const m=Array.from(i.value),[v]=[...Qt.layersWithOutsidePointerEventsDisabled].slice(-1),w=m.indexOf(v);return u.value>=w}),f=E1(async m=>{const v=[...Qt.branches].some(w=>w==null?void 0:w.contains(m.target));!n.present||!d.value||v||(s("pointerDownOutside",m),s("interactOutside",m),await yt(),m.defaultPrevented||s("dismiss"))},o),p=O1(m=>{const v=[...Qt.branches].some(w=>w==null?void 0:w.contains(m.target));!n.present||v||(s("focusOutside",m),s("interactOutside",m),m.defaultPrevented||s("dismiss"))},o);return t1("Escape",m=>{!n.present||!(u.value===i.value.size-1)||(s("escapeKeyDown",m),m.defaultPrevented||s("dismiss"))}),De([o,()=>n.disableOutsidePointerEvents,()=>n.present],([m,v,w],C,h)=>{!m||!w||v&&(Qt.layersWithOutsidePointerEventsDisabled.size===0&&(Qt.originalBodyPointerEvents=a.value.body.style.pointerEvents,a.value.body.style.pointerEvents="none"),Qt.layersWithOutsidePointerEventsDisabled.add(m),h(()=>{Qt.layersWithOutsidePointerEventsDisabled.delete(m),Qt.layersWithOutsidePointerEventsDisabled.size===0&&!wr(Qt.originalBodyPointerEvents)&&(a.value.body.style.pointerEvents=Qt.originalBodyPointerEvents)}))},{immediate:!0}),De([o,()=>n.present],([m,v],w,C)=>{!m||!v||(i.value.add(m),C(()=>{i.value.delete(m)}))},{immediate:!0}),rs(m=>{m(()=>{o.value&&(i.value.delete(o.value),Qt.layersWithOutsidePointerEventsDisabled.delete(o.value))})}),(m,v)=>(x(),D(l(Ue),{ref:l(r),"as-child":m.asChild,as:m.as,"data-dismissable-layer":"",style:hn({pointerEvents:c.value?d.value?"auto":"none":void 0}),onFocusCapture:l(p).onFocusCapture,onBlurCapture:l(p).onBlurCapture,onPointerdownCapture:l(f).onPointerDownCapture},{default:y(()=>[ie(m.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),qa=P1;const T1=V_(()=>F([]));function $1(){const e=T1();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=ed(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=ed(e.value,t),(n=e.value[0])==null||n.resume()}}}function ed(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}const xl="focusScope.autoFocusOnMount",kl="focusScope.autoFocusOnUnmount",td={bubbles:!1,cancelable:!0};function I1(e,{select:t=!1}={}){const n=Ct();for(const s of e)if(gs(s,{select:t}),Ct()!==n)return!0}function M1(e){const t=zp(e),n=nd(t,e),s=nd(t.reverse(),e);return[n,s]}function zp(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function nd(e,t){for(const n of e)if(!R1(n,{upTo:t}))return n}function R1(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 L1(e){return e instanceof HTMLInputElement&&"select"in e}function gs(e,{select:t=!1}={}){if(e&&e.focus){const n=Ct();e.focus({preventScroll:!0}),e!==n&&L1(e)&&t&&e.select()}}var D1=Q({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},present:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,s=t,{currentRef:r,currentElement:o}=Fe(),a=F(null),i=$1(),u=Ks({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});rs(f=>{if(!Rn)return;const p=o.value;if(!n.trapped)return;function m(h){if(u.paused||!p)return;const b=h.target;p.contains(b)?a.value=b:gs(a.value,{select:!0})}function v(h){if(u.paused||!p)return;const b=h.relatedTarget;b!==null&&(p.contains(b)||gs(a.value,{select:!0}))}function w(h){const b=a.value;if(b===null||!h.some(R=>R.removedNodes.length>0))return;p.contains(b)||gs(p)}document.addEventListener("focusin",m),document.addEventListener("focusout",v);const C=new MutationObserver(w);p&&C.observe(p,{childList:!0,subtree:!0}),f(()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",v),C.disconnect()})});function c(f,p){const m=new CustomEvent(xl,td),v=w=>s("mountAutoFocus",w);f.addEventListener(xl,v),f.dispatchEvent(m),f.removeEventListener(xl,v),m.defaultPrevented||(I1(zp(f),{select:!0}),Ct()===p&&gs(f))}rs(async f=>{const p=o.value;if(await yt(),!p)return;n.present!==!1&&i.add(u);const m=Ct();!p.contains(m)&&n.present!==!1&&c(p,m),f(()=>{const w=new CustomEvent(kl,td),C=h=>{s("unmountAutoFocus",h)};p.addEventListener(kl,C),p.dispatchEvent(w),p.setAttribute("data-focus-scope-unmounting",""),setTimeout(()=>{w.defaultPrevented||gs(m??document.body,{select:!0}),p.removeEventListener(kl,C),i.remove(u),p.removeAttribute("data-focus-scope-unmounting")},0)})}),De(()=>n.present,async(f,p)=>{if(!Rn)return;if(f===!1&&p===!0){i.remove(u);return}if(f!==!0||p!==!1)return;i.add(u),await yt();const m=o.value;if(!m)return;const v=Ct();m.contains(v)||c(m,v)});function d(f){if(!n.loop&&!n.trapped||u.paused)return;const p=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,m=Ct();if(p&&m){const v=f.currentTarget,[w,C]=M1(v);w&&C?!f.shiftKey&&m===C?(f.preventDefault(),n.loop&&gs(w,{select:!0})):f.shiftKey&&m===w&&(f.preventDefault(),n.loop&&gs(C,{select:!0})):m===v&&f.preventDefault()}}return(f,p)=>(x(),D(l(Ue),{ref_key:"currentRef",ref:r,tabindex:"-1","as-child":f.asChild,as:f.as,onKeydown:d},{default:y(()=>[ie(f.$slots,"default")]),_:3},8,["as-child","as"]))}}),Ba=D1;const F1="menu.itemSelect",oi=["Enter"," "],N1=["ArrowDown","PageUp","Home"],Gp=["ArrowUp","PageDown","End"],q1=[...N1,...Gp];[...oi],[...oi];function Yp(e){return e?"open":"closed"}function ai(e){const t=Ct();for(const n of e)if(n===t||(n.focus(),Ct()!==t))return}function B1(e,t){const{x:n,y:s}=e;let r=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const i=t[o].x,u=t[o].y,c=t[a].x,d=t[a].y;u>s!=d>s&&n<(c-i)*(s-u)/(d-u)+i&&(r=!r)}return r}function V1(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return B1(n,t)}function ua(e){return e.pointerType==="mouse"}var U1=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},present:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,r=us(),{forwardRef:o,currentElement:a}=Fe();return r.titleId||(r.titleId=Dn(void 0,"reka-dialog-title")),r.descriptionId||(r.descriptionId=Dn(void 0,"reka-dialog-description")),mt(()=>{r.contentElement=a,Ct()!==document.body&&(r.triggerElement.value=Ct())}),(i,u)=>(x(),D(l(Ba),{"as-child":"",loop:"",trapped:n.trapFocus,present:n.present,onMountAutoFocus:u[5]||(u[5]=c=>s("openAutoFocus",c)),onUnmountAutoFocus:u[6]||(u[6]=c=>s("closeAutoFocus",c))},{default:y(()=>[g(l(qa),Ee({id:l(r).contentId,ref:l(o),as:i.as,"as-child":i.asChild,present:n.present,"disable-outside-pointer-events":i.disableOutsidePointerEvents,role:"dialog","aria-describedby":l(r).descriptionId,"aria-labelledby":l(r).titleId,"data-state":l(Yp)(l(r).open.value)},i.$attrs,{onDismiss:u[0]||(u[0]=c=>l(r).onOpenChange(!1)),onEscapeKeyDown:u[1]||(u[1]=c=>s("escapeKeyDown",c)),onFocusOutside:u[2]||(u[2]=c=>s("focusOutside",c)),onInteractOutside:u[3]||(u[3]=c=>s("interactOutside",c)),onPointerDownOutside:u[4]||(u[4]=c=>s("pointerDownOutside",c))}),{default:y(()=>[ie(i.$slots,"default")]),_:3},16,["id","as","as-child","present","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped","present"]))}}),Xp=U1,j1=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},present:{type:Boolean,required:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,r=us(),o=xo(s),{forwardRef:a,currentElement:i}=Fe(),u=te(()=>n.present?i.value:void 0);Na(u);const c=te(()=>{const{present:d,...f}=n;return f});return De(()=>n.present,(d,f)=>{var p;!d&&f&&((p=r.triggerElement.value)==null||p.focus())}),(d,f)=>(x(),D(Xp,Ee({...c.value,...l(o)},{ref:l(a),present:d.present,"trap-focus":l(r).open.value,"disable-outside-pointer-events":n.disableOutsidePointerEvents,onCloseAutoFocus:f[0]||(f[0]=p=>{var m;p.defaultPrevented||(p.preventDefault(),(m=l(r).triggerElement.value)==null||m.focus())}),onPointerDownOutside:f[1]||(f[1]=p=>{const m=p.detail.originalEvent,v=m.button===0&&m.ctrlKey===!0;(m.button===2||v)&&p.preventDefault()}),onFocusOutside:f[2]||(f[2]=p=>{p.preventDefault()})}),{default:y(()=>[ie(d.$slots,"default")]),_:3},16,["present","trap-focus","disable-outside-pointer-events"]))}}),H1=j1,W1=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},present:{type:Boolean,required:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=xo(t);Fe();const o=us(),a=F(!1),i=F(!1),u=te(()=>{const{present:c,...d}=n;return d});return De(()=>n.present,(c,d)=>{var f;!c&&d&&(a.value||(f=o.triggerElement.value)==null||f.focus(),a.value=!1,i.value=!1)}),(c,d)=>(x(),D(Xp,Ee({...u.value,...l(r)},{present:c.present,"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:d[0]||(d[0]=f=>{var p;f.defaultPrevented||(a.value||(p=l(o).triggerElement.value)==null||p.focus(),f.preventDefault()),a.value=!1,i.value=!1}),onInteractOutside:d[1]||(d[1]=f=>{var v;f.defaultPrevented||(a.value=!0,f.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const p=f.target;((v=l(o).triggerElement.value)==null?void 0:v.contains(p))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&i.value&&f.preventDefault()})}),{default:y(()=>[ie(c.$slots,"default")]),_:3},16,["present"]))}}),K1=W1,z1=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,s=t,r=us(),o=xo(s),{forwardRef:a}=Fe();return(i,u)=>(x(),D(l(Js),{present:i.forceMount||l(r).open.value,"force-mount":i.forceMount||!l(r).unmountOnHide.value},{default:y(({present:c})=>[l(r).modal.value?zs((x(),D(H1,Ee({key:0,ref:l(a),present:l(r).unmountOnHide.value||c},{...n,...l(o),...i.$attrs}),{default:y(()=>[ie(i.$slots,"default")]),_:2},1040,["present"])),[[jl,l(r).unmountOnHide.value||c]]):zs((x(),D(K1,Ee({key:1,ref:l(a),present:l(r).unmountOnHide.value||c},{...n,...l(o),...i.$attrs}),{default:y(()=>[ie(i.$slots,"default")]),_:2},1040,["present"])),[[jl,l(r).unmountOnHide.value||c]])]),_:3},8,["present","force-mount"]))}}),G1=z1,Y1=Q({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;Fe();const n=us();return(s,r)=>(x(),D(l(Ue),Ee(t,{id:l(n).descriptionId}),{default:y(()=>[ie(s.$slots,"default")]),_:3},16,["id"]))}}),X1=Y1,J1=Q({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},setup(e){const t=e,n=us(),s=Da(t.present);return De(()=>t.present,r=>s.value=r),Fe(),(r,o)=>(x(),D(l(Ue),{as:r.as,"as-child":r.asChild,"data-state":l(n).open.value?"open":"closed",style:{"pointer-events":"auto"},onPointerdown:o[0]||(o[0]=ln(()=>{},["left","self","prevent"]))},{default:y(()=>[ie(r.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),Q1=J1,Z1=Q({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=us(),{forwardRef:n}=Fe();return(s,r)=>{var o;return(o=l(t))!=null&&o.modal.value?(x(),D(l(Js),{key:0,present:s.forceMount||l(t).open.value,"force-mount":s.forceMount||!l(t).unmountOnHide.value},{default:y(({present:a})=>[zs(g(Q1,Ee(s.$attrs,{ref:l(n),as:s.as,"as-child":s.asChild,present:l(t).unmountOnHide.value||a}),{default:y(()=>[ie(s.$slots,"default")]),_:2},1040,["as","as-child","present"]),[[jl,l(t).unmountOnHide.value||a]])]),_:3},8,["present","force-mount"])):we("v-if",!0)}}}),e0=Z1,t0=Q({__name:"Teleport",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,n=wo({}),s=te(()=>{var o;return t.to??((o=n.teleportTo)==null?void 0:o.value)??"body"}),r=Vp();return(o,a)=>l(r)||o.forceMount?(x(),D($i,{key:0,to:s.value,disabled:o.disabled,defer:o.defer},[ie(o.$slots,"default")],8,["to","disabled","defer"])):we("v-if",!0)}}),Va=t0,n0=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,s)=>(x(),D(l(Va),Pt($t(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),s0=n0,r0=Q({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,n=us();return Fe(),(s,r)=>(x(),D(l(Ue),Ee(t,{id:l(n).titleId}),{default:y(()=>[ie(s.$slots,"default")]),_:3},16,["id"]))}}),o0=r0;const sd="data-reka-collection-item";function Es(e={}){const{key:t="",isProvider:n=!1}=e,s=`${t}CollectionProvider`;let r;n?(r={collectionRef:F(),itemMap:F(new Map)},Ti(s,r)):r=Ws(s);const o=(d=!1)=>{const f=r.collectionRef.value;if(!f)return[];const p=Array.from(f.querySelectorAll(`[${sd}]`)),m=new Map(p.map((C,h)=>[C,h])),w=Array.from(r.itemMap.value.values()).sort((C,h)=>(m.get(C.ref)??-1)-(m.get(h.ref)??-1));return d?w:w.filter(C=>C.ref.dataset.disabled!=="")},a=Q({name:"CollectionSlot",inheritAttrs:!1,setup(d,{slots:f,attrs:p}){const{primitiveElement:m,currentElement:v}=ri();return De(v,()=>{r.collectionRef.value=v.value}),()=>en(si,{ref:m,...p},f)}}),i=Q({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(d,{slots:f,attrs:p}){const{primitiveElement:m,currentElement:v}=ri();return rs(w=>{if(v.value){const C=Kd(v.value);r.itemMap.value.set(C,{ref:v.value,value:d.value}),w(()=>r.itemMap.value.delete(C))}}),()=>en(si,{...p,[sd]:"",ref:m},f)}}),u=te(()=>Array.from(r.itemMap.value.values())),c=te(()=>r.itemMap.value.size);return{getItems:o,reactiveItems:u,itemMapSize:c,CollectionSlot:a,CollectionItem:i}}var a0=Q({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,n)=>(x(),D(l(Ue),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"||t.feature==="fully-hidden"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:y(()=>[ie(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),Jp=a0,l0=Q({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,{primitiveElement:n,currentElement:s}=ri(),r=te(()=>t.checked??t.value);return De(r,(o,a)=>{if(!s.value)return;const i=s.value,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"value").set;if(d&&o!==a){const f=new Event("input",{bubbles:!0}),p=new Event("change",{bubbles:!0});d.call(i,o),i.dispatchEvent(f),i.dispatchEvent(p)}}),(o,a)=>(x(),D(Jp,Ee({ref_key:"primitiveElement",ref:n},{...t,...o.$attrs},{as:"input"}),null,16))}}),rd=l0,i0=Q({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,n=te(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),s=te(()=>typeof t.value=="string"||typeof t.value=="number"||typeof t.value=="boolean"||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value=="object"&&Array.isArray(t.value)?t.value.flatMap((r,o)=>typeof r=="object"?Object.entries(r).map(([a,i])=>({name:`${t.name}[${o}][${a}]`,value:i})):{name:`${t.name}[${o}]`,value:r}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([r,o])=>({name:`${t.name}[${r}]`,value:o})):[]);return(r,o)=>(x(),J(Ce,null,[we(" We render single input if it's required "),n.value?(x(),D(rd,Ee({key:r.name},{...t,...r.$attrs},{name:r.name,value:r.value}),null,16,["name","value"])):(x(!0),J(Ce,{key:1},ut(s.value,a=>(x(),D(rd,Ee({key:a.name},{ref_for:!0},{...t,...r.$attrs},{name:a.name,value:a.value}),null,16,["name","value"]))),128))],2112))}}),u0=i0;const c0="rovingFocusGroup.onEntryFocus",d0={bubbles:!1,cancelable:!0},f0={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function p0(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function m0(e,t,n){const s=p0(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return f0[s]}function Qp(e,t=!1){const n=Ct();for(const s of e)if(s===n||(s.focus({preventScroll:t}),Ct()!==n))return}function h0(e,t){return e.map((n,s)=>e[(t+s)%e.length])}const[Zp,g0]=It("PopperRoot");var v0=Q({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=F();return g0({anchor:t,onAnchorChange:n=>t.value=n}),(n,s)=>ie(n.$slots,"default")}}),tu=v0,y0=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:s}=Fe(),r=Zp();return nf(()=>{r.onAnchorChange(t.reference??s.value)}),(o,a)=>(x(),D(l(Ue),{ref:l(n),as:o.as,"as-child":o.asChild},{default:y(()=>[ie(o.$slots,"default")]),_:3},8,["as","as-child"]))}}),nu=y0;function b0(e){return e!==null}function _0(e){return{name:"transformOrigin",options:e,fn(t){var h,b,$;const{placement:n,rects:s,middlewareData:r}=t,a=((h=r.arrow)==null?void 0:h.centerOffset)!==0,i=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[c,d]=li(n),f={start:e.dir==="rtl"?"100%":"0%",center:"50%",end:e.dir==="rtl"?"0%":"100%"}[d],p={start:"0%",center:"50%",end:"100%"}[d],m=(((b=r.arrow)==null?void 0:b.x)??0)+i/2,v=((($=r.arrow)==null?void 0:$.y)??0)+u/2;let w="",C="";return c==="bottom"?(w=a?f:`${m}px`,C=`${-u}px`):c==="top"?(w=a?f:`${m}px`,C=`${s.floating.height+u}px`):c==="right"?(w=`${-u}px`,C=a?p:`${v}px`):c==="left"&&(w=`${s.floating.width+u}px`,C=a?p:`${v}px`),{data:{x:w,y:C}}}}}function li(e){const[t,n="center"]=e.split("-");return[t,n]}const w0=["top","right","bottom","left"],ws=Math.min,Qn=Math.max,ca=Math.round,qo=Math.floor,Zn=e=>({x:e,y:e}),x0={left:"right",right:"left",bottom:"top",top:"bottom"};function em(e,t,n){return Qn(e,ws(t,n))}function as(e,t){return typeof e=="function"?e(t):e}function xs(e){return e.split("-")[0]}function kr(e){return e.split("-")[1]}function su(e){return e==="x"?"y":"x"}function ru(e){return e==="y"?"height":"width"}function Pn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ou(e){return su(Pn(e))}function k0(e,t,n){n===void 0&&(n=!1);const s=kr(e),r=ou(e),o=ru(r);let a=r==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=da(a)),[a,da(a)]}function S0(e){const t=da(e);return[ii(e),t,ii(t)]}function ii(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const od=["left","right"],ad=["right","left"],C0=["top","bottom"],A0=["bottom","top"];function E0(e,t,n){switch(e){case"top":case"bottom":return n?t?ad:od:t?od:ad;case"left":case"right":return t?C0:A0;default:return[]}}function O0(e,t,n,s){const r=kr(e);let o=E0(xs(e),n==="start",s);return r&&(o=o.map(a=>a+"-"+r),t&&(o=o.concat(o.map(ii)))),o}function da(e){const t=xs(e);return x0[t]+e.slice(t.length)}function P0(e){var t,n,s,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(s=e.bottom)!=null?s:0,left:(r=e.left)!=null?r:0}}function tm(e){return typeof e!="number"?P0(e):{top:e,right:e,bottom:e,left:e}}function fa(e){const{x:t,y:n,width:s,height:r}=e;return{width:s,height:r,top:n,left:t,right:t+s,bottom:n+r,x:t,y:n}}function ld(e,t,n){let{reference:s,floating:r}=e;const o=Pn(t),a=ou(t),i=ru(a),u=xs(t),c=o==="y",d=s.x+s.width/2-r.width/2,f=s.y+s.height/2-r.height/2,p=s[i]/2-r[i]/2;let m;switch(u){case"top":m={x:d,y:s.y-r.height};break;case"bottom":m={x:d,y:s.y+s.height};break;case"right":m={x:s.x+s.width,y:f};break;case"left":m={x:s.x-r.width,y:f};break;default:m={x:s.x,y:s.y}}const v=kr(t);return v&&(m[a]+=p*(v==="end"?1:-1)*(n&&c?-1:1)),m}async function T0(e,t){var n;t===void 0&&(t={});const{x:s,y:r,platform:o,rects:a,elements:i,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=as(t,e),v=tm(m),C=i[p?f==="floating"?"reference":"floating":f],h=fa(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(C)))==null||n?C:C.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:u})),b=f==="floating"?{x:s,y:r,width:a.floating.width,height:a.floating.height}:a.reference,$=await(o.getOffsetParent==null?void 0:o.getOffsetParent(i.floating)),k=await(o.isElement==null?void 0:o.isElement($))&&await(o.getScale==null?void 0:o.getScale($))||{x:1,y:1},R=fa(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:$,strategy:u}):b);return{top:(h.top-R.top+v.top)/k.y,bottom:(R.bottom-h.bottom+v.bottom)/k.y,left:(h.left-R.left+v.left)/k.x,right:(R.right-h.right+v.right)/k.x}}const $0=50,I0=async(e,t,n)=>{const{placement:s="bottom",strategy:r="absolute",middleware:o=[],platform:a}=n,i=a.detectOverflow?a:{...a,detectOverflow:T0},u=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=ld(c,s,u),p=s,m=0;const v={};for(let w=0;w<o.length;w++){const C=o[w];if(!C)continue;const{name:h,fn:b}=C,{x:$,y:k,data:R,reset:I}=await b({x:d,y:f,initialPlacement:s,placement:p,strategy:r,middlewareData:v,rects:c,platform:i,elements:{reference:e,floating:t}});d=$??d,f=k??f,v[h]={...v[h],...R},I&&m<$0&&(m++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(c=I.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):I.rects),{x:d,y:f}=ld(c,p,u)),w=-1)}return{x:d,y:f,placement:p,strategy:r,middlewareData:v}},M0=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:r,rects:o,platform:a,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=as(e,t)||{};if(c==null)return{};const f=tm(d),p={x:n,y:s},m=ou(r),v=ru(m),w=await a.getDimensions(c),C=m==="y",h=C?"top":"left",b=C?"bottom":"right",$=C?"clientHeight":"clientWidth",k=o.reference[v]+o.reference[m]-p[m]-o.floating[v],R=p[m]-o.reference[m],I=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let A=I?I[$]:0;(!A||!await(a.isElement==null?void 0:a.isElement(I)))&&(A=i.floating[$]||o.floating[v]);const M=k/2-R/2,N=A/2-w[v]/2-1,z=ws(f[h],N),Y=ws(f[b],N),W=A-w[v]-Y,ue=A/2-w[v]/2+M,me=em(z,ue,W),X=!u.arrow&&kr(r)!=null&&ue!==me&&o.reference[v]/2-(ue<z?z:Y)-w[v]/2<0,ce=X?ue<z?ue-z:ue-W:0;return{[m]:p[m]+ce,data:{[m]:me,centerOffset:ue-me-ce,...X&&{alignmentOffset:ce}},reset:X}}}),R0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:r,middlewareData:o,rects:a,initialPlacement:i,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...C}=as(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const h=xs(r),b=Pn(i),$=xs(i)===i,k=await(u.isRTL==null?void 0:u.isRTL(c.floating)),R=p||($||!w?[da(i)]:S0(i)),I=v!=="none";!p&&I&&R.push(...O0(i,w,v,k));const A=[i,...R],M=await u.detectOverflow(t,C),N=[];let z=((s=o.flip)==null?void 0:s.overflows)||[];if(d&&N.push(M[h]),f){const me=k0(r,a,k);N.push(M[me[0]],M[me[1]])}if(z=[...z,{placement:r,overflows:N}],!N.every(me=>me<=0)){var Y,W;const me=(((Y=o.flip)==null?void 0:Y.index)||0)+1,X=A[me];if(X&&(!(f==="alignment"?b!==Pn(X):!1)||z.every(fe=>Pn(fe.placement)===b?fe.overflows[0]>0:!0)))return{data:{index:me,overflows:z},reset:{placement:X}};let ce=(W=z.filter(oe=>oe.overflows[0]<=0).sort((oe,fe)=>oe.overflows[1]-fe.overflows[1])[0])==null?void 0:W.placement;if(!ce)switch(m){case"bestFit":{var ue;const oe=(ue=z.filter(fe=>{if(I){const ae=Pn(fe.placement);return ae===b||ae==="y"}return!0}).map(fe=>[fe.placement,fe.overflows.filter(ae=>ae>0).reduce((ae,Z)=>ae+Z,0)]).sort((fe,ae)=>fe[1]-ae[1])[0])==null?void 0:ue[0];oe&&(ce=oe);break}case"initialPlacement":ce=i;break}if(r!==ce)return{reset:{placement:ce}}}return{}}}};function id(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ud(e){return w0.some(t=>e[t]>=0)}const L0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:s}=t,{strategy:r="referenceHidden",...o}=as(e,t);switch(r){case"referenceHidden":{const a=await s.detectOverflow(t,{...o,elementContext:"reference"}),i=id(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:ud(i)}}}case"escaped":{const a=await s.detectOverflow(t,{...o,altBoundary:!0}),i=id(a,n.floating);return{data:{escapedOffsets:i,escaped:ud(i)}}}default:return{}}}}},nm=new Set(["left","top"]);async function D0(e,t){const{placement:n,platform:s,elements:r}=e,o=await(s.isRTL==null?void 0:s.isRTL(r.floating)),a=xs(n),i=kr(n),u=Pn(n)==="y",c=nm.has(a)?-1:1,d=o&&u?-1:1,f=as(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof v=="number"&&(m=i==="end"?v*-1:v),u?{x:m*d,y:p*c}:{x:p*c,y:m*d}}const F0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:r,y:o,placement:a,middlewareData:i}=t,u=await D0(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(s=i.arrow)!=null&&s.alignmentOffset?{}:{x:r+u.x,y:o+u.y,data:{...u,placement:a}}}}},N0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:r,platform:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:u={fn:b=>{let{x:$,y:k}=b;return{x:$,y:k}}},...c}=as(e,t),d={x:n,y:s},f=await o.detectOverflow(t,c),p=Pn(r),m=su(p);let v=d[m],w=d[p];const C=(b,$)=>em($+f[b==="y"?"top":"left"],$,$-f[b==="y"?"bottom":"right"]);a&&(v=C(m,v)),i&&(w=C(p,w));const h=u.fn({...t,[m]:v,[p]:w});return{...h,data:{x:h.x-n,y:h.y-s,enabled:{[m]:a,[p]:i}}}}}},q0=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,s;const{x:r,y:o,placement:a,rects:i,middlewareData:u}=t,{offset:c=0,mainAxis:d=!0,crossAxis:f=!0}=as(e,t),p={x:r,y:o},m=Pn(a),v=su(m);let w=p[v],C=p[m];const h=as(c,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:(n=h.mainAxis)!=null?n:0,crossAxis:(s=h.crossAxis)!=null?s:0};if(d){const R=v==="y"?"height":"width",I=i.reference[v]-i.floating[R]+b.mainAxis,A=i.reference[v]+i.reference[R]-b.mainAxis;w<I?w=I:w>A&&(w=A)}if(f){var $,k;const R=v==="y"?"width":"height",I=nm.has(xs(a)),A=i.reference[m]-i.floating[R]+(I&&(($=u.offset)==null?void 0:$[m])||0)+(I?0:b.crossAxis),M=i.reference[m]+i.reference[R]+(I?0:((k=u.offset)==null?void 0:k[m])||0)-(I?b.crossAxis:0);C<A?C=A:C>M&&(C=M)}return{[v]:w,[m]:C}}}},B0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:s,platform:r,elements:o}=t,{apply:a=()=>{},...i}=as(e,t),u=await r.detectOverflow(t,i),c=xs(n),d=kr(n),f=Pn(n)==="y",{width:p,height:m}=s.floating;let v,w;c==="top"||c==="bottom"?(v=c,w=d===(await(r.isRTL==null?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(w=c,v=d==="end"?"top":"bottom");const C=m-u.top-u.bottom,h=p-u.left-u.right,b=ws(m-u[v],C),$=ws(p-u[w],h),k=t.middlewareData.shift,R=!k;let I=b,A=$;k!=null&&k.enabled.x&&(A=h),k!=null&&k.enabled.y&&(I=C),R&&!d&&(f?A=p-2*Qn(u.left,u.right):I=m-2*Qn(u.top,u.bottom)),await a({...t,availableWidth:A,availableHeight:I});const M=await r.getDimensions(o.floating);return p!==M.width||m!==M.height?{reset:{rects:!0}}:{}}}};function Ua(){return typeof window<"u"}function Qs(e){return au(e)?(e.nodeName||"").toLowerCase():"#document"}function Yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function cs(e){var t;return(t=(au(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function au(e){return Ua()?e instanceof Node||e instanceof Yt(e).Node:!1}function Fn(e){return Ua()?e instanceof Element||e instanceof Yt(e).Element:!1}function Os(e){return Ua()?e instanceof HTMLElement||e instanceof Yt(e).HTMLElement:!1}function cd(e){return!Ua()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yt(e).ShadowRoot}function ja(e){const{overflow:t,overflowX:n,overflowY:s,display:r}=Nn(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&r!=="inline"&&r!=="contents"}function V0(e){return/^(table|td|th)$/.test(Qs(e))}function Ha(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const U0=/transform|translate|scale|rotate|perspective|filter/,j0=/paint|layout|strict|content/,Ds=e=>!!e&&e!=="none";let Sl;function lu(e){const t=Fn(e)?Nn(e):e;return Ds(t.transform)||Ds(t.translate)||Ds(t.scale)||Ds(t.rotate)||Ds(t.perspective)||!iu()&&(Ds(t.backdropFilter)||Ds(t.filter))||U0.test(t.willChange||"")||j0.test(t.contain||"")}function H0(e){let t=Gs(e);for(;Os(t)&&!uo(t);){if(lu(t))return t;if(Ha(t))return null;t=Gs(t)}return null}function iu(){return Sl==null&&(Sl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Sl}function uo(e){return/^(html|body|#document)$/.test(Qs(e))}function Nn(e){return Yt(e).getComputedStyle(e)}function Wa(e){return Fn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gs(e){if(Qs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cd(e)&&e.host||cs(e);return cd(t)?t.host:t}function sm(e){const t=Gs(e);return uo(t)?(e.ownerDocument||e).body:Os(t)&&ja(t)?t:sm(t)}function co(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=sm(e),o=r===((s=e.ownerDocument)==null?void 0:s.body),a=Yt(r);if(o){const i=ui(a);return t.concat(a,a.visualViewport||[],ja(r)?r:[],i&&n?co(i):[])}else return t.concat(r,co(r,[],n))}function ui(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rm(e){const t=Nn(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const r=Os(e),o=r?e.offsetWidth:n,a=r?e.offsetHeight:s,i=ca(n)!==o||ca(s)!==a;return i&&(n=o,s=a),{width:n,height:s,$:i}}function uu(e){return Fn(e)?e:e.contextElement}function hr(e){const t=uu(e);if(!Os(t))return Zn(1);const n=t.getBoundingClientRect(),{width:s,height:r,$:o}=rm(t);let a=(o?ca(n.width):n.width)/s,i=(o?ca(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const W0=Zn(0);function om(e){const t=Yt(e);return!iu()||!t.visualViewport?W0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function K0(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Yt(e)}function Ys(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=uu(e);let a=Zn(1);t&&(s?Fn(s)&&(a=hr(s)):a=hr(e));const i=K0(o,n,s)?om(o):Zn(0);let u=(r.left+i.x)/a.x,c=(r.top+i.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(o&&s){const p=Yt(o),m=Fn(s)?Yt(s):s;let v=p,w=ui(v);for(;w&&m!==v;){const C=hr(w),h=w.getBoundingClientRect(),b=Nn(w),$=h.left+(w.clientLeft+parseFloat(b.paddingLeft))*C.x,k=h.top+(w.clientTop+parseFloat(b.paddingTop))*C.y;u*=C.x,c*=C.y,d*=C.x,f*=C.y,u+=$,c+=k,v=Yt(w),w=ui(v)}}return fa({width:d,height:f,x:u,y:c})}function Ka(e,t){const n=Wa(e).scrollLeft;return t?t.left+n:Ys(cs(e)).left+n}function am(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-Ka(e,n),r=n.top+t.scrollTop;return{x:s,y:r}}function z0(e){let{elements:t,rect:n,offsetParent:s,strategy:r}=e;const o=r==="fixed",a=cs(s),i=t?Ha(t.floating):!1;if(s===a||i&&o)return n;let u={scrollLeft:0,scrollTop:0},c=Zn(1);const d=Zn(0),f=Os(s);if((f||!o)&&((Qs(s)!=="body"||ja(a))&&(u=Wa(s)),f)){const m=Ys(s);c=hr(s),d.x=m.x+s.clientLeft,d.y=m.y+s.clientTop}const p=a&&!f&&!o?am(a,u):Zn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-u.scrollTop*c.y+d.y+p.y}}function G0(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Y0(e){const t=Wa(e),n=e.ownerDocument.body,s=Qn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=Qn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-t.scrollLeft+Ka(e);const a=-t.scrollTop;return Nn(n).direction==="rtl"&&(o+=Qn(e.clientWidth,n.clientWidth)-s),{width:s,height:r,x:o,y:a}}const X0=25;function J0(e,t,n){n===void 0&&(n="viewport");const s=n==="layoutViewport",r=Yt(e),o=cs(e),a=r.visualViewport;let i=o.clientWidth,u=o.clientHeight,c=0,d=0;if(a){const p=!iu()||t==="fixed";s?p||(c=-a.offsetLeft,d=-a.offsetTop):(i=a.width,u=a.height,p&&(c=a.offsetLeft,d=a.offsetTop))}if(Ka(o)<=0){const p=o.ownerDocument,m=p.body,v=getComputedStyle(m),w=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,C=Math.abs(o.clientWidth-m.clientWidth-w),h=getComputedStyle(o).scrollbarGutter==="stable both-edges"?C/2:C;h<=X0&&(i-=h)}return{width:i,height:u,x:c,y:d}}function Q0(e,t){const n=Ys(e,!0,t==="fixed"),s=n.top+e.clientTop,r=n.left+e.clientLeft,o=hr(e),a=e.clientWidth*o.x,i=e.clientHeight*o.y,u=r*o.x,c=s*o.y;return{width:a,height:i,x:u,y:c}}function dd(e,t,n){let s;if(t==="viewport"||t==="layoutViewport")s=J0(e,n,t);else if(t==="document")s=Y0(cs(e));else if(Fn(t))s=Q0(t,n);else{const r=om(e);s={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return fa(s)}function Z0(e,t){const n=t.get(e);if(n)return n;let s=co(e,[],!1).filter(i=>Fn(i)&&Qs(i)!=="body"),r=null;const o=Nn(e).position==="fixed";let a=o?Gs(e):e;for(;Fn(a)&&!uo(a);){const i=Nn(a),u=lu(a),c=r?r.position:o?"fixed":"";!u&&(c==="fixed"||c==="absolute"&&i.position==="static")?s=s.filter(f=>f!==a):r=i,a=Gs(a)}return t.set(e,s),s}function ew(e){let{element:t,boundary:n,rootBoundary:s,strategy:r}=e;const a=[...n==="clippingAncestors"?Ha(t)?[]:Z0(t,this._c):[].concat(n),s],i=dd(t,a[0],r);let u=i.top,c=i.right,d=i.bottom,f=i.left;for(let p=1;p<a.length;p++){const m=dd(t,a[p],r);u=Qn(m.top,u),c=ws(m.right,c),d=ws(m.bottom,d),f=Qn(m.left,f)}return{width:c-f,height:d-u,x:f,y:u}}function tw(e){const{width:t,height:n}=rm(e);return{width:t,height:n}}function nw(e,t,n){const s=Os(t),r=cs(t),o=n==="fixed",a=Ys(e,!0,o,t);let i={scrollLeft:0,scrollTop:0};const u=Zn(0);if((s||!o)&&((Qs(t)!=="body"||ja(r))&&(i=Wa(t)),s)){const p=Ys(t,!0,o,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}!s&&r&&(u.x=Ka(r));const c=r&&!s&&!o?am(r,i):Zn(0),d=a.left+i.scrollLeft-u.x-c.x,f=a.top+i.scrollTop-u.y-c.y;return{x:d,y:f,width:a.width,height:a.height}}function Cl(e){return Nn(e).position==="static"}function fd(e,t){if(!Os(e)||Nn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return cs(e)===n&&(n=n.ownerDocument.body),n}function lm(e,t){const n=Yt(e);if(Ha(e))return n;if(!Os(e)){let r=Gs(e);for(;r&&!uo(r);){if(Fn(r)&&!Cl(r))return r;r=Gs(r)}return n}let s=fd(e,t);for(;s&&V0(s)&&Cl(s);)s=fd(s,t);return s&&uo(s)&&Cl(s)&&!lu(s)?n:s||H0(e)||n}const sw=async function(e){const t=this.getOffsetParent||lm,n=this.getDimensions,s=await n(e.floating);return{reference:nw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function rw(e){return Nn(e).direction==="rtl"}const ow={convertOffsetParentRelativeRectToViewportRelativeRect:z0,getDocumentElement:cs,getClippingRect:ew,getOffsetParent:lm,getElementRects:sw,getClientRects:G0,getDimensions:tw,getScale:hr,isElement:Fn,isRTL:rw};function im(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function aw(e,t,n){let s=null,r;const o=cs(e);function a(){var d;clearTimeout(r),(d=s)==null||d.disconnect(),s=null}function i(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),a();const p=e.getBoundingClientRect(),{left:m,top:v,width:w,height:C}=p;if(d||t(),!w||!C)return;const h=qo(v),b=qo(o.clientWidth-(m+w)),$=qo(o.clientHeight-(v+C)),k=qo(m),I={rootMargin:-h+"px "+-b+"px "+-$+"px "+-k+"px",threshold:Qn(0,ws(1,f))||1};let A=!0;function M(N){const z=N[0].intersectionRatio;if(!im(p,e.getBoundingClientRect()))return i();if(z!==f){if(!A)return i();z?i(!1,z):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A=!1}try{s=new IntersectionObserver(M,{...I,root:o.ownerDocument})}catch{s=new IntersectionObserver(M,I)}s.observe(e)}const u=Yt(e),c=()=>i(n);return u.addEventListener("resize",c),i(!0),()=>{u.removeEventListener("resize",c),a()}}function lw(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=s,c=uu(e),d=r||o?[...c?co(c):[],...t?co(t):[]]:[];d.forEach(h=>{r&&h.addEventListener("scroll",n),o&&h.addEventListener("resize",n)});const f=c&&i?aw(c,n,o):null;let p=-1,m=null;a&&(m=new ResizeObserver(h=>{let[b]=h;b&&b.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var $;($=m)==null||$.observe(t)})),n()}),c&&!u&&m.observe(c),t&&m.observe(t));let v,w=u?Ys(e):null;u&&C();function C(){const h=Ys(e);w&&!im(w,h)&&n(),w=h,v=requestAnimationFrame(C)}return n(),()=>{var h;d.forEach(b=>{r&&b.removeEventListener("scroll",n),o&&b.removeEventListener("resize",n)}),f==null||f(),(h=m)==null||h.disconnect(),m=null,u&&cancelAnimationFrame(v)}}const iw=F0,uw=N0,pd=R0,cw=B0,dw=L0,fw=M0,pw=q0,mw=(e,t,n)=>{const s=new Map,r=n??{},o={...ow,...r.platform,_c:s};return I0(e,t,{...r,platform:o})};function hw(e){return e!=null&&typeof e=="object"&&"$el"in e}function ci(e){if(hw(e)){const t=e.$el;return au(t)&&Qs(t)==="#comment"?null:t}return e}function lr(e){return typeof e=="function"?e():l(e)}function gw(e){return{name:"arrow",options:e,fn(t){const n=ci(lr(e.element));return n==null?{}:fw({element:n,padding:e.padding}).fn(t)}}}function um(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function md(e,t){const n=um(e);return Math.round(t*n)/n}function vw(e,t,n){n===void 0&&(n={});const s=n.whileElementsMounted,r=te(()=>{var A;return(A=lr(n.open))!=null?A:!0}),o=te(()=>lr(n.middleware)),a=te(()=>{var A;return(A=lr(n.placement))!=null?A:"bottom"}),i=te(()=>{var A;return(A=lr(n.strategy))!=null?A:"absolute"}),u=te(()=>{var A;return(A=lr(n.transform))!=null?A:!0}),c=te(()=>ci(e.value)),d=te(()=>ci(t.value)),f=F(0),p=F(0),m=F(i.value),v=F(a.value),w=Ea({}),C=F(!1),h=te(()=>{const A={position:m.value,left:"0",top:"0"};if(!d.value)return A;const M=md(d.value,f.value),N=md(d.value,p.value);return u.value?{...A,transform:"translate("+M+"px, "+N+"px)",...um(d.value)>=1.5&&{willChange:"transform"}}:{position:m.value,left:M+"px",top:N+"px"}});let b;function $(){if(c.value==null||d.value==null)return;const A=r.value;mw(c.value,d.value,{middleware:o.value,placement:a.value,strategy:i.value}).then(M=>{f.value=M.x,p.value=M.y,m.value=M.strategy,v.value=M.placement,w.value=M.middlewareData,C.value=A!==!1})}function k(){typeof b=="function"&&(b(),b=void 0)}function R(){if(k(),s===void 0){$();return}if(c.value!=null&&d.value!=null){b=s(c.value,d.value,$);return}}function I(){r.value||(C.value=!1)}return De([o,a,i,r],$,{flush:"sync"}),De([c,d],R,{flush:"sync"}),De(r,I,{flush:"sync"}),wa()&&Ci(k),{x:tr(f),y:tr(p),strategy:tr(m),placement:tr(v),middlewareData:tr(w),isPositioned:tr(C),floatingStyles:h,update:$}}const yw=["dir"],cm={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},[XP,bw]=It("PopperContent");var _w=Q({inheritAttrs:!1,__name:"PopperContent",props:ff({memoDependencies:{type:Array,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},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...cm}),emits:["placed"],setup(e,{emit:t}){const n=e,s=t,r=Zp(),{forwardRef:o,currentElement:a}=Fe(),i=xr(te(()=>n.dir)),u=F(),c=F(),{width:d,height:f}=m1(c),p=te(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),m=te(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),v=te(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),w=te(()=>({padding:m.value,boundary:v.value.filter(b0),altBoundary:v.value.length>0})),C=te(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),h=te(()=>[iw({mainAxis:n.sideOffset+f.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&pd({...w.value,...C.value}),n.avoidCollisions&&uw({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?pw():void 0,...w.value}),!n.prioritizePosition&&n.avoidCollisions&&pd({...w.value,...C.value}),cw({...w.value,apply:({elements:ue,rects:me,availableWidth:X,availableHeight:ce})=>{const{width:oe,height:fe}=me.reference,ae=ue.floating.style;ae.setProperty("--reka-popper-available-width",`${X}px`),ae.setProperty("--reka-popper-available-height",`${ce}px`),ae.setProperty("--reka-popper-anchor-width",`${oe}px`),ae.setProperty("--reka-popper-anchor-height",`${fe}px`)}}),c.value&&gw({element:c.value,padding:n.arrowPadding}),_0({arrowWidth:d.value,arrowHeight:f.value,dir:i.value}),n.hideWhenDetached&&dw({strategy:"referenceHidden",...w.value})]),b=te(()=>n.reference??r.anchor.value),{floatingStyles:$,placement:k,isPositioned:R,middlewareData:I}=vw(b,u,{strategy:n.positionStrategy,placement:p,whileElementsMounted:(...ue)=>lw(...ue,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:h}),A=te(()=>li(k.value)[0]),M=te(()=>li(k.value)[1]);nf(()=>{R.value&&s("placed")});const N=te(()=>{var me;const ue=((me=I.value.arrow)==null?void 0:me.centerOffset)!==0;return n.hideShiftedArrow&&ue}),z=F("");rs(()=>{a.value&&(z.value=window.getComputedStyle(a.value).zIndex)});const Y=te(()=>{var ue;return((ue=I.value.arrow)==null?void 0:ue.x)??0}),W=te(()=>{var ue;return((ue=I.value.arrow)==null?void 0:ue.y)??0});return bw({placedSide:A,onArrowChange:ue=>c.value=ue,arrowX:Y,arrowY:W,shouldHideArrow:N}),(ue,me)=>{var X,ce,oe;return x(),J("div",{ref_key:"floatingRef",ref:u,"data-reka-popper-content-wrapper":"",dir:l(i),style:hn({...l($),transform:l(R)?l($).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z.value,"--reka-popper-transform-origin":[(X=l(I).transformOrigin)==null?void 0:X.x,(ce=l(I).transformOrigin)==null?void 0:ce.y].join(" "),...((oe=l(I).hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[n.memoDependencies?qg([n.asChild,n.as,A.value,M.value,l(R),...Object.values(ue.$attrs),...n.memoDependencies],()=>(x(),D(l(Ue),Ee({key:0,ref:l(o)},ue.$attrs,{"as-child":n.asChild,as:n.as,"data-side":A.value,"data-align":M.value,style:{animation:l(R)?void 0:"none"}}),{default:y(()=>[ie(ue.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])),me,0):(x(),D(l(Ue),Ee({key:1,ref:l(o)},ue.$attrs,{"as-child":n.asChild,as:n.as,"data-side":A.value,"data-align":M.value,dir:l(i),style:{animation:l(R)?void 0:"none"}}),{default:y(()=>[ie(ue.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","dir","style"]))],12,yw)}}}),cu=_w;function ww(e){const t=wo({nonce:F()});return te(()=>{var n;return(e==null?void 0:e.value)||((n=t.nonce)==null?void 0:n.value)})}const[xw,kw]=It("RovingFocusGroup");var Sw=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 s=e,r=n,{loop:o,orientation:a,dir:i}=Xt(s),u=xr(i),c=os(s,"currentTabStopId",r,{defaultValue:s.defaultCurrentTabStopId,passive:s.currentTabStopId===void 0}),d=F(!1),f=F(!1),p=F(0),{getItems:m,CollectionSlot:v}=Es({isProvider:!0});function w(h){const b=!f.value;if(h.currentTarget&&h.target===h.currentTarget&&b&&!d.value){const $=new CustomEvent(c0,d0);if(h.currentTarget.dispatchEvent($),r("entryFocus",$),!$.defaultPrevented){const k=m().map(N=>N.ref).filter(N=>N.dataset.disabled!==""),R=k.find(N=>N.getAttribute("data-active")===""),I=k.find(N=>N.getAttribute("data-highlighted")===""),A=k.find(N=>N.id===c.value),M=[R,I,A,...k].filter(Boolean);Qp(M,s.preventScrollOnEntryFocus)}}f.value=!1}function C(){setTimeout(()=>{f.value=!1},1)}return t({getItems:m}),kw({loop:o,dir:u,orientation:a,currentTabStopId:c,onItemFocus:h=>{c.value=h},onItemShiftTab:()=>{d.value=!0},onFocusableItemAdd:()=>{p.value++},onFocusableItemRemove:()=>{p.value--}}),(h,b)=>(x(),D(l(v),null,{default:y(()=>[g(l(Ue),{tabindex:d.value||p.value===0?-1:0,"data-orientation":l(a),as:h.as,"as-child":h.asChild,dir:l(u),style:{outline:"none"},onMousedown:b[0]||(b[0]=$=>f.value=!0),onMouseup:C,onFocus:w,onBlur:b[1]||(b[1]=$=>d.value=!1)},{default:y(()=>[ie(h.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),dm=Sw,Cw=Q({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=xw(),s=Dn(),r=te(()=>t.tabStopId||s),o=te(()=>n.currentTabStopId.value===r.value),{getItems:a,CollectionItem:i}=Es();mt(()=>{t.focusable&&n.onFocusableItemAdd()}),yn(()=>{t.focusable&&n.onFocusableItemRemove()}),De(()=>t.focusable,(c,d)=>{c!==d&&(c?n.onFocusableItemAdd():n.onFocusableItemRemove())});function u(c){if(c.key==="Tab"&&c.shiftKey){n.onItemShiftTab();return}if(c.target!==c.currentTarget)return;const d=m0(c,n.orientation.value,n.dir.value);if(d!==void 0){if(c.metaKey||c.ctrlKey||c.altKey||!t.allowShiftKey&&c.shiftKey)return;c.preventDefault();let f=[...a().map(p=>p.ref).filter(p=>p.dataset.disabled!=="")];if(d==="last")f.reverse();else if(d==="prev"||d==="next"){d==="prev"&&f.reverse();const p=f.indexOf(c.currentTarget);f=n.loop.value?h0(f,p+1):f.slice(p+1)}yt(()=>Qp(f))}}return(c,d)=>(x(),D(l(i),null,{default:y(()=>[g(l(Ue),{tabindex:o.value?0:-1,"data-orientation":l(n).orientation.value,"data-active":c.active?"":void 0,"data-disabled":c.focusable?void 0:"",as:c.as,"as-child":c.asChild,onMousedown:d[0]||(d[0]=f=>{c.focusable?l(n).onItemFocus(r.value):f.preventDefault()}),onFocus:d[1]||(d[1]=f=>l(n).onItemFocus(r.value)),onKeydown:u},{default:y(()=>[ie(c.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),fm=Cw;const[Aw]=It("CheckboxGroupRoot");function du(e){return e==="indeterminate"}function pm(e){return du(e)?"indeterminate":e?"checked":"unchecked"}const[Ew,Ow]=It("CheckboxRoot");var Pw=Q({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1},value:{type:null,required:!1,default:"on"},id:{type:String,required:!1},trueValue:{type:null,required:!1,default:()=>!0},falseValue:{type:null,required:!1,default:()=>!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=t,{forwardRef:r,currentElement:o}=Fe(),a=Aw(null),i=os(n,"modelValue",s,{defaultValue:n.defaultValue??n.falseValue,passive:n.modelValue===void 0}),u=te(()=>(a==null?void 0:a.disabled.value)||n.disabled),c=te(()=>io(i.value,n.trueValue)),d=te(()=>wr(a==null?void 0:a.modelValue.value)?i.value==="indeterminate"?"indeterminate":c.value:Xc(a.modelValue.value,n.value));function f(){if(wr(a==null?void 0:a.modelValue.value))i.value==="indeterminate"?i.value=n.trueValue:i.value=c.value?n.falseValue:n.trueValue;else{const C=[...a.modelValue.value||[]];if(Xc(C,n.value)){const h=C.findIndex(b=>io(b,n.value));C.splice(h,1)}else C.push(n.value);a.modelValue.value=C}}const p=Hp(o),m=u1(),v=sg(),w=te(()=>{var C;if(!v["aria-label"])return n.id&&o.value?(C=document.querySelector(`[for="${n.id}"]`))==null?void 0:C.innerText:void 0});return Ow({disabled:u,state:d}),(C,h)=>{var b,$;return x(),J(Ce,null,[(x(),D(vo((b=l(a))!=null&&b.rovingFocus.value?l(fm):l(Ue)),Ee({...C.$attrs,...l(m)},{id:C.id,ref:l(r),role:"checkbox","as-child":C.asChild,as:C.as,type:C.as==="button"?"button":void 0,"aria-checked":l(du)(d.value)?"mixed":d.value,"aria-required":C.required,"aria-label":C.$attrs["aria-label"]||w.value,"data-state":l(pm)(d.value),"data-disabled":u.value?"":void 0,disabled:u.value,focusable:($=l(a))!=null&&$.rovingFocus.value?!u.value:void 0,onKeydown:Bs(ln(()=>{},["prevent"]),["enter"]),onClick:f}),{default:y(()=>[ie(C.$slots,"default",{modelValue:l(i),state:d.value})]),_:3},16,["id","as-child","as","type","aria-checked","aria-required","aria-label","data-state","data-disabled","disabled","focusable","onKeydown"])),l(p)&&C.name&&!l(a)?(x(),D(l(u0),Ee({key:0,type:"checkbox",checked:!!d.value,name:C.name,value:C.value,disabled:u.value,required:C.required},l(m)),null,16,["checked","name","value","disabled","required"])):we("v-if",!0)],64)}}}),Tw=Pw,$w=Q({__name:"CheckboxIndicator",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const{forwardRef:t}=Fe(),n=Ew();return(s,r)=>(x(),D(l(Js),{present:s.forceMount||l(du)(l(n).state.value)||l(n).state.value===!0},{default:y(()=>[g(l(Ue),Ee({ref:l(t),"data-state":l(pm)(l(n).state.value),"data-disabled":l(n).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":s.asChild,as:s.as},s.$attrs),{default:y(()=>[ie(s.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),Iw=$w,Mw=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,s)=>(x(),D(l(nu),Pt($t(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),Rw=Mw;function Lw(){const e=F(!1);return mt(()=>{ia("keydown",()=>{e.value=!0},{capture:!0,passive:!0}),ia(["pointerdown","pointermove"],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const Dw=Bp(Lw),[za,Fw]=It(["MenuRoot","MenuSub"],"MenuContext"),[fu,Nw]=It("MenuRoot");var qw=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,s=t,{modal:r,dir:o}=Xt(n),a=xr(o),i=os(n,"open",s),u=F(),c=Dw();return Fw({open:i,onOpenChange:d=>{i.value=d},content:u,onContentChange:d=>{u.value=d}}),Nw({onClose:()=>{i.value=!1},isUsingKeyboardRef:c,dir:a,modal:r}),(d,f)=>(x(),D(l(tu),null,{default:y(()=>[ie(d.$slots,"default")]),_:3}))}}),Bw=qw;const[mm,Vw]=It("MenuContent");var Uw=Q({__name:"MenuContentImpl",props:ff({loop:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},disableOutsideScroll:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,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}},{...cm}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(e,{emit:t}){const n=e,s=t,r=za(),o=fu(),{trapFocus:a,disableOutsidePointerEvents:i,loop:u}=Xt(n);Zi(),Da(i.value);const c=F(""),d=F(0),f=F(0),p=F(null),m=F("right"),v=F(0),w=F(null),C=F(),{forwardRef:h,currentElement:b}=Fe(),{handleTypeaheadSearch:$}=eu(),k=F();function R(X){const ce=Qc(X,k.value||Ct(),b.value,{loop:u.value,arrowKeyOptions:"vertical",dir:o==null?void 0:o.dir.value,focus:!1,attributeName:"[data-reka-collection-item]:not([data-disabled])"});ce&&(k.value=ce,ce.scrollIntoView({block:"nearest"}))}function I(){k.value&&k.value.click()}const A=F(),M=F();De(k,X=>{if(M.value&&(X===void 0||X!==M.value.trigger.value)){if(X===void 0)return;M.value.onOpenChange(!1),M.value=void 0}}),De(b,X=>{r.onContentChange(X)}),yn(()=>{window.clearTimeout(d.value)});function N(X){var oe,fe;return m.value===((oe=p.value)==null?void 0:oe.side)&&V1(X,(fe=p.value)==null?void 0:fe.area)}async function z(X){var ce;s("openAutoFocus",X),!X.defaultPrevented&&(X.preventDefault(),(ce=b.value)==null||ce.focus({preventScroll:!0}))}function Y(X){var at;if(X.defaultPrevented)return;const ce=X.target,oe=ce.closest("[data-reka-menu-content]")===X.currentTarget,fe=["input","textarea"].includes(ce.tagName.toLowerCase()),ae=X.ctrlKey||X.altKey||X.metaKey,Z=X.key.length===1,de=Qc(X,Ct(),b.value,{loop:u.value,arrowKeyOptions:"vertical",dir:o==null?void 0:o.dir.value,focus:!0,attributeName:"[data-reka-collection-item]:not([data-disabled])"});if(de)return de==null?void 0:de.focus();if(X.code==="Space")return;const Be=((at=C.value)==null?void 0:at.getItems())??[];if(oe&&(X.key==="Tab"&&o.modal.value&&X.preventDefault(),!ae&&Z&&!fe&&$(X.key,Be)),X.target!==b.value||!q1.includes(X.key))return;X.preventDefault();const lt=[...Be.map(st=>st.ref)];Gp.includes(X.key)&<.reverse(),ai(lt)}function W(X){var ce,oe;(oe=(ce=X==null?void 0:X.currentTarget)==null?void 0:ce.contains)!=null&&oe.call(ce,X.target)||(window.clearTimeout(d.value),c.value="")}function ue(X){var fe;if(!ua(X))return;const ce=X.target,oe=v.value!==X.clientX;if((fe=X==null?void 0:X.currentTarget)!=null&&fe.contains(ce)&&oe){const ae=X.clientX>v.value?"right":"left";m.value=ae,v.value=X.clientX}}function me(X){ua(X)&&A.value&&A.value.focus()}return Vw({onItemEnter:X=>!!N(X),onItemLeave:X=>{var oe,fe;return N(X)?!0:(["INPUT","TEXTAREA"].includes(((oe=Ct())==null?void 0:oe.tagName)||"")||(fe=b.value)==null||fe.focus(),w.value=null,!1)},onTriggerLeave:X=>!!N(X),searchRef:c,highlightedElement:k,onKeydownNavigation:R,onKeydownEnter:I,filterElement:A,onFilterElementChange:X=>{A.value=X},activeSubmenuContext:M,pointerGraceTimerRef:f,onPointerGraceIntentChange:X=>{p.value=X}}),(X,ce)=>(x(),D(l(Ba),{"as-child":"",trapped:l(a),onMountAutoFocus:z,onUnmountAutoFocus:ce[7]||(ce[7]=oe=>s("closeAutoFocus",oe))},{default:y(()=>[g(l(qa),{"as-child":"","disable-outside-pointer-events":l(i),onEscapeKeyDown:ce[2]||(ce[2]=oe=>s("escapeKeyDown",oe)),onPointerDownOutside:ce[3]||(ce[3]=oe=>s("pointerDownOutside",oe)),onFocusOutside:ce[4]||(ce[4]=oe=>s("focusOutside",oe)),onInteractOutside:ce[5]||(ce[5]=oe=>s("interactOutside",oe)),onDismiss:ce[6]||(ce[6]=oe=>s("dismiss"))},{default:y(()=>[g(l(dm),{ref_key:"rovingFocusGroupRef",ref:C,"current-tab-stop-id":w.value,"onUpdate:currentTabStopId":ce[0]||(ce[0]=oe=>w.value=oe),"as-child":"",orientation:"vertical",dir:l(o).dir.value,loop:l(u),onEntryFocus:ce[1]||(ce[1]=oe=>{s("entryFocus",oe),l(o).isUsingKeyboardRef.value||oe.preventDefault()})},{default:y(()=>[g(l(cu),{ref:l(h),role:"menu",as:X.as,"as-child":X.asChild,"aria-orientation":"vertical","data-reka-menu-content":"","data-state":l(Yp)(l(r).open.value),dir:l(o).dir.value,side:X.side,"side-offset":X.sideOffset,align:X.align,"align-offset":X.alignOffset,"avoid-collisions":X.avoidCollisions,"collision-boundary":X.collisionBoundary,"collision-padding":X.collisionPadding,"arrow-padding":X.arrowPadding,"prioritize-position":X.prioritizePosition,"position-strategy":X.positionStrategy,"update-position-strategy":X.updatePositionStrategy,sticky:X.sticky,"hide-when-detached":X.hideWhenDetached,reference:X.reference,onKeydown:Y,onBlur:W,onPointermove:ue,onPointerenter:me},{default:y(()=>[ie(X.$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"]))}}),hm=Uw,jw=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=mm(),{forwardRef:s,currentElement:r}=Fe(),{CollectionItem:o}=Es(),a=F(!1),i=te(()=>a.value||r.value!=null&&n.highlightedElement.value===r.value);async function u(d){var f;if(!(d.defaultPrevented||!ua(d))){if(t.disabled)n.onItemLeave(d);else if(!n.onItemEnter(d)){const m=d.currentTarget;n.highlightedElement.value=m,["INPUT","TEXTAREA"].includes(((f=Ct())==null?void 0:f.tagName)||"")||m.focus({preventScroll:!0})}}}async function c(d){if(await yt(),d.defaultPrevented||!ua(d)||n.highlightedElement.value!==r.value)return;!n.onItemLeave(d)&&n.highlightedElement.value===r.value&&(n.highlightedElement.value=void 0)}return(d,f)=>(x(),D(l(o),{value:{textValue:d.textValue}},{default:y(()=>[g(l(Ue),Ee({ref:l(s),role:"menuitem",tabindex:"-1"},d.$attrs,{as:d.as,"as-child":d.asChild,"aria-disabled":d.disabled||void 0,"data-disabled":d.disabled?"":void 0,"data-highlighted":i.value?"":void 0,onPointermove:u,onPointerleave:c,onFocus:f[0]||(f[0]=async p=>{await yt(),!(p.defaultPrevented||d.disabled)&&(a.value=!0,l(n).highlightedElement.value=p.currentTarget)}),onBlur:f[1]||(f[1]=async p=>{await yt(),!p.defaultPrevented&&(a.value=!1)})}),{default:y(()=>[ie(d.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3},8,["value"]))}}),Hw=jw,Ww=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,s=t,{forwardRef:r,currentElement:o}=Fe(),a=fu(),i=mm(),u=F(!1);async function c(){const d=o.value;if(!n.disabled&&d){const f=new CustomEvent(F1,{bubbles:!0,cancelable:!0});s("select",f),await yt(),f.defaultPrevented?u.value=!1:a.onClose()}}return(d,f)=>(x(),D(Hw,Ee(n,{ref:l(r),onClick:c,onPointerdown:f[0]||(f[0]=()=>{u.value=!0}),onPointerup:f[1]||(f[1]=async p=>{var m;await yt(),!p.defaultPrevented&&(u.value||(m=p.currentTarget)==null||m.click())}),onKeydown:f[2]||(f[2]=async p=>{var v;const m=l(i).searchRef.value!=="";d.disabled||m&&p.key===" "||l(oi).includes(p.key)&&((v=p.currentTarget)==null||v.click(),p.preventDefault())})}),{default:y(()=>[ie(d.$slots,"default")]),_:3},16))}}),Kw=Ww,zw=Q({__name:"MenuRootContentModal",props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,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,s=t,r=Mt(n,s),o=za(),{forwardRef:a,currentElement:i}=Fe();return Na(i),(u,c)=>(x(),D(hm,Ee(l(r),{ref:l(a),"trap-focus":l(o).open.value,"disable-outside-pointer-events":l(o).open.value,"disable-outside-scroll":!0,onDismiss:c[0]||(c[0]=d=>l(o).onOpenChange(!1)),onFocusOutside:c[1]||(c[1]=ln(d=>s("focusOutside",d),["prevent"]))}),{default:y(()=>[ie(u.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),Gw=zw,Yw=Q({__name:"MenuRootContentNonModal",props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,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 r=Mt(e,t),o=za();return(a,i)=>(x(),D(hm,Ee(l(r),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:i[0]||(i[0]=u=>l(o).onOpenChange(!1))}),{default:y(()=>[ie(a.$slots,"default")]),_:3},16))}}),Xw=Yw,Jw=Q({__name:"MenuContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,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 r=Mt(e,t),o=za(),a=fu();return(i,u)=>(x(),D(l(Js),{present:i.forceMount||l(o).open.value},{default:y(()=>[l(a).modal.value?(x(),D(Gw,Pt(Ee({key:0},{...i.$attrs,...l(r)})),{default:y(()=>[ie(i.$slots,"default")]),_:3},16)):(x(),D(Xw,Pt(Ee({key:1},{...i.$attrs,...l(r)})),{default:y(()=>[ie(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Qw=Jw,Zw=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,s)=>(x(),D(l(Va),Pt($t(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),ex=Zw,tx=Q({__name:"MenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,s)=>(x(),D(l(Ue),Ee(t,{role:"separator","aria-orientation":"horizontal"}),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),nx=tx;const[ko,sx]=It("PopoverRoot");var rx=Q({__name:"PopoverRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1}},emits:["update:open"],setup(e,{emit:t}){const n=e,s=t,{modal:r}=Xt(n),o=os(n,"open",s,{defaultValue:n.defaultOpen,passive:n.open===void 0});return sx({contentId:"",triggerId:"",modal:r,open:o,onOpenChange:u=>{o.value=u},onOpenToggle:()=>{o.value=!o.value},triggerElement:F(),hasCustomAnchor:F(!1)}),(u,c)=>(x(),D(l(tu),null,{default:y(()=>[ie(u.$slots,"default",{open:l(o),close:()=>o.value=!1})]),_:3}))}}),ox=rx,ax=Q({__name:"PopoverContentImpl",props:{trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,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},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,r=Fa(Y_(n,"trapFocus","disableOutsidePointerEvents")),{forwardRef:o}=Fe(),a=ko();return Zi(),(i,u)=>(x(),D(l(Ba),{"as-child":"",loop:"",trapped:i.trapFocus,onMountAutoFocus:u[5]||(u[5]=c=>s("openAutoFocus",c)),onUnmountAutoFocus:u[6]||(u[6]=c=>s("closeAutoFocus",c))},{default:y(()=>[g(l(qa),{"as-child":"","disable-outside-pointer-events":i.disableOutsidePointerEvents,onPointerDownOutside:u[0]||(u[0]=c=>s("pointerDownOutside",c)),onInteractOutside:u[1]||(u[1]=c=>s("interactOutside",c)),onEscapeKeyDown:u[2]||(u[2]=c=>s("escapeKeyDown",c)),onFocusOutside:u[3]||(u[3]=c=>s("focusOutside",c)),onDismiss:u[4]||(u[4]=c=>l(a).onOpenChange(!1))},{default:y(()=>[g(l(cu),Ee(l(r),{id:l(a).contentId,ref:l(o),"data-state":l(a).open.value?"open":"closed","aria-labelledby":l(a).triggerId,style:{"--reka-popover-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-popover-content-available-width":"var(--reka-popper-available-width)","--reka-popover-content-available-height":"var(--reka-popper-available-height)","--reka-popover-trigger-width":"var(--reka-popper-anchor-width)","--reka-popover-trigger-height":"var(--reka-popper-anchor-height)"},role:"dialog"}),{default:y(()=>[ie(i.$slots,"default")]),_:3},16,["id","data-state","aria-labelledby"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),gm=ax,lx=Q({__name:"PopoverContentModal",props:{memoDependencies:{type:Array,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},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,r=ko(),o=F(!1);Da(!0);const a=Mt(n,s),{forwardRef:i,currentElement:u}=Fe();return Na(u),(c,d)=>(x(),D(gm,Ee(l(a),{ref:l(i),"trap-focus":l(r).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:d[0]||(d[0]=ln(f=>{var p;s("closeAutoFocus",f),o.value||(p=l(r).triggerElement.value)==null||p.focus()},["prevent"])),onPointerDownOutside:d[1]||(d[1]=f=>{s("pointerDownOutside",f);const p=f.detail.originalEvent,m=p.button===0&&p.ctrlKey===!0,v=p.button===2||m;o.value=v}),onFocusOutside:d[2]||(d[2]=ln(()=>{},["prevent"]))}),{default:y(()=>[ie(c.$slots,"default")]),_:3},16,["trap-focus"]))}}),ix=lx,ux=Q({__name:"PopoverContentNonModal",props:{memoDependencies:{type:Array,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},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,r=ko(),o=F(!1),a=F(!1),i=Mt(n,s);return(u,c)=>(x(),D(gm,Ee(l(i),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:c[0]||(c[0]=d=>{var f;s("closeAutoFocus",d),d.defaultPrevented||(o.value||(f=l(r).triggerElement.value)==null||f.focus(),d.preventDefault()),o.value=!1,a.value=!1}),onInteractOutside:c[1]||(c[1]=async d=>{var m;s("interactOutside",d),d.defaultPrevented||(o.value=!0,d.detail.originalEvent.type==="pointerdown"&&(a.value=!0));const f=d.target;((m=l(r).triggerElement.value)==null?void 0:m.contains(f))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&a.value&&d.preventDefault()})}),{default:y(()=>[ie(u.$slots,"default")]),_:3},16))}}),cx=ux,dx=Q({__name:"PopoverContent",props:{forceMount:{type:Boolean,required:!1},memoDependencies:{type:Array,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},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,r=ko(),o=Mt(n,s),{forwardRef:a}=Fe();return r.contentId||(r.contentId=Dn(void 0,"reka-popover-content")),(i,u)=>(x(),D(l(Js),{present:i.forceMount||l(r).open.value},{default:y(()=>[l(r).modal.value?(x(),D(ix,Ee({key:0},l(o),{ref:l(a)}),{default:y(()=>[ie(i.$slots,"default")]),_:3},16)):(x(),D(cx,Ee({key:1},l(o),{ref:l(a)}),{default:y(()=>[ie(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),fx=dx,px=Q({__name:"PopoverPortal",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,s)=>(x(),D(l(Va),Pt($t(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),mx=px,hx=Q({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=ko(),{forwardRef:s,currentElement:r}=Fe();return n.triggerId||(n.triggerId=Dn(void 0,"reka-popover-trigger")),mt(()=>{n.triggerElement.value=r.value}),(o,a)=>(x(),D(vo(l(n).hasCustomAnchor.value?l(Ue):l(nu)),{"as-child":""},{default:y(()=>[g(l(Ue),{id:l(n).triggerId,ref:l(s),type:o.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":l(n).open.value,"aria-controls":l(n).contentId,"data-state":l(n).open.value?"open":"closed",as:o.as,"as-child":t.asChild,onClick:l(n).onOpenToggle},{default:y(()=>[ie(o.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),gx=hx;const[vm,vx]=It("DropdownMenuRoot");var yx=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,s=t;Fe();const r=os(n,"open",s,{defaultValue:n.defaultOpen,passive:n.open===void 0}),o=F(),{modal:a,dir:i}=Xt(n),u=xr(i);return vx({open:r,onOpenChange:c=>{r.value=c},onOpenToggle:()=>{r.value=!r.value},triggerId:"",triggerElement:o,contentId:"",modal:a,dir:u}),(c,d)=>(x(),D(l(Bw),{open:l(r),"onUpdate:open":d[0]||(d[0]=f=>pt(r)?r.value=f:null),dir:l(u),modal:l(a)},{default:y(()=>[ie(c.$slots,"default",{open:l(r)})]),_:3},8,["open","dir","modal"]))}}),bx=yx,_x=Q({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,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 r=Mt(e,t);Fe();const o=vm(),a=F(!1);function i(u){u.defaultPrevented||(a.value||setTimeout(()=>{var c;(c=o.triggerElement.value)==null||c.focus()},0),a.value=!1,u.preventDefault())}return o.contentId||(o.contentId=Dn(void 0,"reka-dropdown-menu-content")),(u,c)=>{var d;return x(),D(l(Qw),Ee(l(r),{id:l(o).contentId,"aria-labelledby":(d=l(o))==null?void 0:d.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:i,onInteractOutside:c[0]||(c[0]=f=>{var w;if(f.defaultPrevented)return;const p=f.detail.originalEvent,m=p.button===0&&p.ctrlKey===!0,v=p.button===2||m;(!l(o).modal.value||v)&&(a.value=!0),(w=l(o).triggerElement.value)!=null&&w.contains(f.target)&&f.preventDefault()})}),{default:y(()=>[ie(u.$slots,"default")]),_:3},16,["id","aria-labelledby"])}}}),wx=_x,xx=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,r=xo(t);return Fe(),(o,a)=>(x(),D(l(Kw),Pt($t({...n,...l(r)})),{default:y(()=>[ie(o.$slots,"default")]),_:3},16))}}),kx=xx,Sx=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,s)=>(x(),D(l(ex),Pt($t(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),Cx=Sx,Ax=Q({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Fe(),(n,s)=>(x(),D(l(nx),Pt($t(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),Ex=Ax,Ox=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=vm(),{forwardRef:s,currentElement:r}=Fe();return mt(()=>{n.triggerElement=r}),n.triggerId||(n.triggerId=Dn(void 0,"reka-dropdown-menu-trigger")),(o,a)=>(x(),D(l(Rw),{"as-child":""},{default:y(()=>[g(l(Ue),{id:l(n).triggerId,ref:l(s),type:o.as==="button"?"button":void 0,"as-child":t.asChild,as:o.as,"aria-haspopup":"menu","aria-expanded":l(n).open.value,"aria-controls":l(n).open.value?l(n).contentId:void 0,"data-disabled":o.disabled?"":void 0,disabled:o.disabled,"data-state":l(n).open.value?"open":"closed",onClick:a[0]||(a[0]=async i=>{var u;!o.disabled&&i.button===0&&i.ctrlKey===!1&&((u=l(n))==null||u.onOpenToggle(),await yt(),l(n).open.value&&i.preventDefault())}),onKeydown:a[1]||(a[1]=Bs(i=>{o.disabled||(["Enter"," "].includes(i.key)&&l(n).onOpenToggle(),i.key==="ArrowDown"&&l(n).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())},["enter","space","arrow-down"]))},{default:y(()=>[ie(o.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),Px=Ox;const Tx=[" ","Enter","ArrowUp","ArrowDown"],$x=[" ","Enter"],dn=10;function fo(e,t,n){return e===void 0?!1:Array.isArray(e)?e.some(s=>di(s,t,n)):di(e,t,n)}function di(e,t,n){return e===void 0||t===void 0?!1:typeof e=="string"?e===t:typeof n=="function"?n(e,t):typeof n=="string"?(e==null?void 0:e[n])===(t==null?void 0:t[n]):io(e,t)}function Ix(e){return e==null||e===""||Array.isArray(e)&&e.length===0}const Mx=["value"],[Ps,ym]=It("SelectRoot");var Rx=Q({inheritAttrs:!1,__name:"SelectRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},nullableValue:{type:String,required:!1,default:""},by:{type:[String,Function],required:!1},dir:{type:String,required:!1},multiple:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const n=e,s=t,{required:r,disabled:o,multiple:a,dir:i}=Xt(n),u=os(n,"modelValue",s,{defaultValue:n.defaultValue??(a.value?[]:void 0),passive:n.modelValue===void 0,deep:!0}),c=os(n,"open",s,{defaultValue:n.defaultOpen,passive:n.open===void 0}),d=F(),f=F(),p=F({x:0,y:0}),m=te(()=>{var k;return a.value&&Array.isArray(u.value)?((k=u.value)==null?void 0:k.length)===0:wr(u.value)});Es({isProvider:!0});const v=xr(i),w=Hp(d),C=F(new Set),h=te(()=>Array.from(C.value).map(k=>k.value).join(";"));function b(k){if(a.value){const R=Array.isArray(u.value)?[...u.value]:[],I=R.findIndex(A=>di(A,k,n.by));I===-1?R.push(k):R.splice(I,1),u.value=[...R]}else u.value=k}function $(k){return Array.from(C.value).find(R=>fo(k,R.value,n.by))}return ym({triggerElement:d,onTriggerChange:k=>{d.value=k},valueElement:f,onValueElementChange:k=>{f.value=k},contentId:"",modelValue:u,onValueChange:b,by:n.by,open:c,multiple:a,required:r,onOpenChange:k=>{c.value=k},dir:v,triggerPointerDownPosRef:p,disabled:o,isEmptyModelValue:m,optionsSet:C,onOptionAdd:k=>{const R=$(k.value);R&&C.value.delete(R),C.value.add(k)},onOptionRemove:k=>{const R=$(k.value);R&&C.value.delete(R)}}),(k,R)=>(x(),D(l(tu),null,{default:y(()=>[ie(k.$slots,"default",{modelValue:l(u),open:l(c)}),l(w)&&k.name?(x(),D(Fx,{key:h.value,"aria-hidden":"true",tabindex:"-1",multiple:l(a),required:l(r),name:k.name,autocomplete:k.autocomplete,disabled:l(o),value:l(u)},{default:y(()=>[l(wr)(l(u))?(x(),J("option",{key:0,value:k.nullableValue},null,8,Mx)):we("v-if",!0),(x(!0),J(Ce,null,ut(Array.from(C.value),I=>(x(),J("option",Ee({key:I.value??""},{ref_for:!0},I),null,16))),128))]),_:1},8,["multiple","required","name","autocomplete","disabled","value"])):we("v-if",!0)]),_:3}))}}),Lx=Rx,Dx=Q({__name:"BubbleSelect",props:{autocomplete:{type:String,required:!1},autofocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},form:{type:String,required:!1},multiple:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},size:{type:Number,required:!1},value:{type:null,required:!1}},setup(e){const t=e,n=F(),s=Ps();De(()=>t.value,(o,a)=>{const i=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(i,"value").set;if(o!==a&&c&&n.value){const d=new Event("change",{bubbles:!0});c.call(n.value,o),n.value.dispatchEvent(d)}});function r(o){s.onValueChange(o.target.value)}return(o,a)=>(x(),D(l(Jp),{"as-child":""},{default:y(()=>[S("select",Ee({ref_key:"selectElement",ref:n},t,{onInput:r}),[ie(o.$slots,"default")],16)]),_:3}))}}),Fx=Dx,Nx=Q({__name:"SelectPopperPosition",props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},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,default:dn},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},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const n=Fa(e);return(s,r)=>(x(),D(l(cu),Ee(l(n),{style:{boxSizing:"border-box","--reka-select-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-select-content-available-width":"var(--reka-popper-available-width)","--reka-select-content-available-height":"var(--reka-popper-available-height)","--reka-select-trigger-width":"var(--reka-popper-anchor-width)","--reka-select-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:y(()=>[ie(s.$slots,"default")]),_:3},16))}}),qx=Nx;const Bx={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[Ga,bm]=It("SelectContent");var Vx=Q({__name:"SelectContentImpl",props:{position:{type:String,required:!1,default:"item-aligned"},bodyLock:{type:Boolean,required:!1,default:!0},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},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},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,s=t,r=Ps();Zi(),Da(n.bodyLock);const{CollectionSlot:o,getItems:a}=Es(),i=F();Na(i);const{search:u,handleTypeaheadSearch:c}=eu(),d=F(),f=F(),p=F(),m=F(!1),v=F(!1),w=F(!1);function C(){f.value&&i.value&&ai([f.value,i.value])}De(m,()=>{C()});const{onOpenChange:h,triggerPointerDownPosRef:b}=r;rs(I=>{if(!i.value)return;let A={x:0,y:0};const M=z=>{var Y,W;A={x:Math.abs(Math.round(z.pageX)-(((Y=b.value)==null?void 0:Y.x)??0)),y:Math.abs(Math.round(z.pageY)-(((W=b.value)==null?void 0:W.y)??0))}},N=z=>{var Y;z.pointerType!=="touch"&&(A.x<=10&&A.y<=10?z.preventDefault():(Y=i.value)!=null&&Y.contains(z.target)||h(!1),document.removeEventListener("pointermove",M),b.value=null)};b.value!==null&&(document.addEventListener("pointermove",M),document.addEventListener("pointerup",N,{capture:!0,once:!0})),I(()=>{document.removeEventListener("pointermove",M),document.removeEventListener("pointerup",N,{capture:!0})})});function $(I){const A=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!A&&I.key.length===1&&c(I.key,a()),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let N=[...a().map(z=>z.ref)];if(["ArrowUp","End"].includes(I.key)&&(N=N.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const z=I.target,Y=N.indexOf(z);N=N.slice(Y+1)}setTimeout(()=>ai(N)),I.preventDefault()}}const k=te(()=>n.position==="popper"?n:{}),R=Fa(k.value);return bm({content:i,viewport:d,onViewportChange:I=>{d.value=I},itemRefCallback:(I,A,M)=>{const N=!v.value&&!M,z=fo(r.modelValue.value,A,r.by);if(r.multiple.value){if(w.value)return;(z||N)&&(f.value=I,z&&(w.value=!0))}else(z||N)&&(f.value=I);N&&(v.value=!0)},selectedItem:f,selectedItemText:p,onItemLeave:()=>{var I;(I=i.value)==null||I.focus()},itemTextRefCallback:(I,A,M)=>{const N=!v.value&&!M;(fo(r.modelValue.value,A,r.by)||N)&&(p.value=I)},focusSelectedItem:C,position:n.position,isPositioned:m,searchRef:u}),(I,A)=>(x(),D(l(o),null,{default:y(()=>[g(l(Ba),{"as-child":"",onMountAutoFocus:A[6]||(A[6]=ln(()=>{},["prevent"])),onUnmountAutoFocus:A[7]||(A[7]=M=>{var N;s("closeAutoFocus",M),!M.defaultPrevented&&((N=l(r).triggerElement.value)==null||N.focus({preventScroll:!0}),M.preventDefault())})},{default:y(()=>[g(l(qa),{"as-child":"","disable-outside-pointer-events":I.disableOutsidePointerEvents,onFocusOutside:A[2]||(A[2]=ln(()=>{},["prevent"])),onDismiss:A[3]||(A[3]=M=>l(r).onOpenChange(!1)),onEscapeKeyDown:A[4]||(A[4]=M=>s("escapeKeyDown",M)),onPointerDownOutside:A[5]||(A[5]=M=>s("pointerDownOutside",M))},{default:y(()=>[(x(),D(vo(I.position==="popper"?qx:Kx),Ee({...I.$attrs,...l(R)},{id:l(r).contentId,ref:M=>{if(!M)return;const N=l(Ln)(M);N!=null&&N.hasAttribute("data-reka-popper-content-wrapper")?i.value=N.firstElementChild:i.value=N},role:"listbox","data-state":l(r).open.value?"open":"closed",dir:l(r).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:A[0]||(A[0]=ln(()=>{},["prevent"])),onPlaced:A[1]||(A[1]=M=>m.value=!0),onKeydown:$}),{default:y(()=>[ie(I.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3})]),_:3}))}}),Ux=Vx;const[jx,Hx]=It("SelectItemAlignedPosition");var Wx=Q({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["placed"],setup(e,{emit:t}){const n=e,s=t,{getItems:r}=Es(),o=Ps(),a=Ga(),i=F(!1),u=F(!0),c=F(),{forwardRef:d,currentElement:f}=Fe(),{viewport:p,selectedItem:m,selectedItemText:v,focusSelectedItem:w}=a;function C(){if(o.triggerElement.value&&o.valueElement.value&&c.value&&f.value&&(p!=null&&p.value)&&(m!=null&&m.value)&&(v!=null&&v.value)){const $=o.triggerElement.value.getBoundingClientRect(),k=f.value.getBoundingClientRect(),R=o.valueElement.value.getBoundingClientRect(),I=v.value.getBoundingClientRect();if(o.dir.value!=="rtl"){const Ye=I.left-k.left,Ve=R.left-Ye,$e=$.left-Ve,dt=$.width+$e,ge=Math.max(dt,k.width),_=window.innerWidth-dn,T=Yc(Ve,dn,Math.max(dn,_-ge));c.value.style.minWidth=`${dt}px`,c.value.style.left=`${T}px`}else{const Ye=k.right-I.right,Ve=window.innerWidth-R.right-Ye,$e=window.innerWidth-$.right-Ve,dt=$.width+$e,ge=Math.max(dt,k.width),_=window.innerWidth-dn,T=Yc(Ve,dn,Math.max(dn,_-ge));c.value.style.minWidth=`${dt}px`,c.value.style.right=`${T}px`}const A=r().map(Ye=>Ye.ref),M=window.innerHeight-dn*2,N=p.value.scrollHeight,z=window.getComputedStyle(f.value),Y=Number.parseInt(z.borderTopWidth,10),W=Number.parseInt(z.paddingTop,10),ue=Number.parseInt(z.borderBottomWidth,10),me=Number.parseInt(z.paddingBottom,10),X=Y+W+N+me+ue,ce=Math.min(m.value.offsetHeight*5,X),oe=window.getComputedStyle(p.value),fe=Number.parseInt(oe.paddingTop,10),ae=Number.parseInt(oe.paddingBottom,10),Z=$.top+$.height/2-dn,de=M-Z,Be=m.value.offsetHeight/2,lt=m.value.offsetTop+Be,at=Y+W+lt,st=X-at;if(at<=Z){const Ye=m.value===A.at(-1);c.value.style.bottom="0px";const Ve=f.value.clientHeight-p.value.offsetTop-p.value.offsetHeight,$e=Math.max(de,Be+(Ye?ae:0)+Ve+ue),dt=at+$e;c.value.style.height=`${dt}px`}else{const Ye=m.value===A[0];c.value.style.top="0px";const $e=Math.max(Z,Y+p.value.offsetTop+(Ye?fe:0)+Be)+st;c.value.style.height=`${$e}px`,p.value.scrollTop=at-Z+p.value.offsetTop}c.value.style.margin=`${dn}px 0`,c.value.style.minHeight=`${ce}px`,c.value.style.maxHeight=`${M}px`,s("placed"),requestAnimationFrame(()=>i.value=!0)}}const h=F("");mt(async()=>{await yt(),C(),f.value&&(h.value=window.getComputedStyle(f.value).zIndex)});function b($){$&&u.value===!0&&(C(),w==null||w(),u.value=!1)}return s1(o.triggerElement,()=>{C()}),Hx({contentWrapper:c,shouldExpandOnScrollRef:i,onScrollButtonChange:b}),($,k)=>(x(),J("div",{ref_key:"contentWrapperElement",ref:c,style:hn({display:"flex",flexDirection:"column",position:"fixed",zIndex:h.value})},[g(l(Ue),Ee({ref:l(d),style:{boxSizing:"border-box",maxHeight:"100%"}},{...$.$attrs,...n}),{default:y(()=>[ie($.$slots,"default")]),_:3},16)],4))}}),Kx=Wx,zx=Q({inheritAttrs:!1,__name:"SelectProvider",props:{context:{type:Object,required:!0}},setup(e){return ym(e.context),bm(Bx),(n,s)=>ie(n.$slots,"default")}}),Gx=zx;const Yx={key:1};var Xx=Q({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},memoDependencies:{type:Array,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},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=Mt(n,t),o=Ps(),a=F();mt(()=>{a.value=new DocumentFragment});const i=F(),u=te(()=>n.forceMount||o.open.value),c=F(u.value);let d;function f(){d&&(clearTimeout(d),d=void 0)}return De(u,(p,m,v)=>{f(),d=setTimeout(()=>{c.value=u.value,d=void 0}),v(f)}),yn(f),(p,m)=>{var v;return u.value||c.value||(v=i.value)!=null&&v.present?(x(),D(l(Js),{key:0,ref_key:"presenceRef",ref:i,present:u.value},{default:y(()=>[g(Ux,Pt($t({...l(r),...p.$attrs})),{default:y(()=>[ie(p.$slots,"default")]),_:3},16)]),_:3},8,["present"])):a.value?(x(),J("div",Yx,[(x(),D($i,{to:a.value},[g(Gx,{context:l(o)},{default:y(()=>[ie(p.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):we("v-if",!0)}}}),Jx=Xx,Qx=Q({__name:"SelectIcon",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,n)=>(x(),D(l(Ue),{"aria-hidden":"true",as:t.as,"as-child":t.asChild},{default:y(()=>[ie(t.$slots,"default",{},()=>[n[0]||(n[0]=K("▼"))])]),_:3},8,["as","as-child"]))}}),Zx=Qx;const[_m,ek]=It("SelectItem");var tk=Q({__name:"SelectItem",props:{value:{type:null,required:!0},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,s=t,{disabled:r}=Xt(n),o=Ps(),a=Ga(),{forwardRef:i,currentElement:u}=Fe(),{CollectionItem:c}=Es(),d=te(()=>{var k;return fo((k=o.modelValue)==null?void 0:k.value,n.value,o.by)}),f=F(!1),p=F(n.textValue??""),m=Dn(void 0,"reka-select-item-text"),v="select.select";async function w(k){if(k.defaultPrevented)return;const R={originalEvent:k,value:n.value};Xi(v,C,R)}async function C(k){await yt(),s("select",k),!k.defaultPrevented&&(r.value||(o.onValueChange(n.value),o.multiple.value||o.onOpenChange(!1)))}async function h(k){var R,I;await yt(),!k.defaultPrevented&&(r.value?(R=a.onItemLeave)==null||R.call(a):(I=k.currentTarget)==null||I.focus({preventScroll:!0}))}async function b(k){var R;await yt(),!k.defaultPrevented&&k.currentTarget===Ct()&&((R=a.onItemLeave)==null||R.call(a))}async function $(k){var I;await yt(),!(k.defaultPrevented||((I=a.searchRef)==null?void 0:I.value)!==""&&k.key===" ")&&($x.includes(k.key)&&w(k),k.key===" "&&k.preventDefault())}if(n.value==="")throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return mt(()=>{u.value&&a.itemRefCallback(u.value,n.value,n.disabled)}),ek({value:n.value,disabled:r,textId:m,isSelected:d,onItemTextChange:k=>{p.value=((p.value||(k==null?void 0:k.textContent))??"").trim()}}),(k,R)=>(x(),D(l(c),{value:{textValue:p.value}},{default:y(()=>[g(l(Ue),{ref:l(i),role:"option","aria-labelledby":l(m),"data-highlighted":f.value?"":void 0,"aria-selected":d.value,"data-state":d.value?"checked":"unchecked","aria-disabled":l(r)||void 0,"data-disabled":l(r)?"":void 0,tabindex:l(r)?void 0:-1,as:k.as,"as-child":k.asChild,onFocus:R[0]||(R[0]=I=>f.value=!0),onBlur:R[1]||(R[1]=I=>f.value=!1),onPointerup:w,onPointerdown:R[2]||(R[2]=I=>{I.currentTarget.focus({preventScroll:!0})}),onTouchend:R[3]||(R[3]=ln(()=>{},["prevent","stop"])),onPointermove:h,onPointerleave:b,onKeydown:$},{default:y(()=>[ie(k.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"])]),_:3},8,["value"]))}}),nk=tk,sk=Q({__name:"SelectItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=_m();return(s,r)=>l(n).isSelected.value?(x(),D(l(Ue),Ee({key:0,"aria-hidden":"true"},t),{default:y(()=>[ie(s.$slots,"default")]),_:3},16)):we("v-if",!0)}}),rk=sk,ok=Q({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=Ps(),s=Ga(),r=_m(),{forwardRef:o,currentElement:a}=Fe(),i=te(()=>{var u,c;return{value:r.value,disabled:r.disabled.value,textContent:((u=a.value)==null?void 0:u.textContent)??((c=r.value)==null?void 0:c.toString())??""}});return mt(()=>{a.value&&(r.onItemTextChange(a.value),s.itemTextRefCallback(a.value,r.value,r.disabled.value),n.onOptionAdd(i.value))}),yn(()=>{n.onOptionRemove(i.value)}),(u,c)=>(x(),D(l(Ue),Ee({id:l(r).textId,ref:l(o)},{...t,...u.$attrs}),{default:y(()=>[ie(u.$slots,"default")]),_:3},16,["id"]))}}),ak=ok,lk=Q({__name:"SelectPortal",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,s)=>(x(),D(l(Va),Pt($t(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),ik=lk,uk=Q({__name:"SelectTrigger",props:{disabled:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=Ps(),{forwardRef:s,currentElement:r}=Fe(),o=te(()=>{var h;return((h=n.disabled)==null?void 0:h.value)||t.disabled});n.contentId||(n.contentId=Dn(void 0,"reka-select-content")),mt(()=>{n.onTriggerChange(r.value)});const{getItems:a}=Es(),{search:i,handleTypeaheadSearch:u,resetTypeahead:c}=eu();function d(){o.value||(n.onOpenChange(!0),c())}function f(h){d(),n.triggerPointerDownPosRef.value={x:Math.round(h.pageX),y:Math.round(h.pageY)}}function p(h){return h.button===0&&h.ctrlKey===!1}let m=!1;function v(h){if(h.pointerType==="touch")return h.preventDefault();const b=h.target;b.hasPointerCapture(h.pointerId)&&b.releasePointerCapture(h.pointerId),p(h)&&(f(h),m=!0)}function w(h){p(h)&&h.preventDefault()}function C(h){var b;m||(b=h.currentTarget)==null||b.focus(),m=!1}return(h,b)=>(x(),D(l(nu),{"as-child":"",reference:h.reference},{default:y(()=>{var $,k,R,I;return[g(l(Ue),{ref:l(s),role:"combobox",type:h.as==="button"?"button":void 0,"aria-controls":l(n).contentId,"aria-expanded":l(n).open.value||!1,"aria-required":($=l(n).required)==null?void 0:$.value,"aria-autocomplete":"none",disabled:o.value,dir:(k=l(n))==null?void 0:k.dir.value,"data-state":(R=l(n))!=null&&R.open.value?"open":"closed","data-disabled":o.value?"":void 0,"data-placeholder":l(Ix)((I=l(n).modelValue)==null?void 0:I.value)?"":void 0,"as-child":h.asChild,as:h.as,onClick:C,onPointerdown:v,onMousedown:w,onPointerup:b[0]||(b[0]=ln(A=>{A.pointerType==="touch"&&f(A)},["prevent"])),onKeydown:b[1]||(b[1]=A=>{const M=l(i)!=="";!(A.ctrlKey||A.altKey||A.metaKey)&&A.key.length===1&&M&&A.key===" "||(l(u)(A.key,l(a)()),l(Tx).includes(A.key)&&(d(),A.preventDefault()))})},{default:y(()=>[ie(h.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]}),_:3},8,["reference"]))}}),ck=uk,dk=Q({__name:"SelectValue",props:{placeholder:{type:String,required:!1,default:""},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,{forwardRef:n,currentElement:s}=Fe(),r=Ps();mt(()=>{r.valueElement=s});const o=te(()=>{var d;let i=[];const u=Array.from(r.optionsSet.value),c=f=>u.find(p=>fo(f,p.value,r.by));return Array.isArray(r.modelValue.value)?i=r.modelValue.value.map(f=>{var p;return((p=c(f))==null?void 0:p.textContent)??""}):i=[((d=c(r.modelValue.value))==null?void 0:d.textContent)??""],i.filter(Boolean)}),a=te(()=>o.value.length?o.value.join(", "):t.placeholder);return(i,u)=>(x(),D(l(Ue),{ref:l(n),as:i.as,"as-child":i.asChild,style:{pointerEvents:"none"},"data-placeholder":o.value.length?void 0:t.placeholder},{default:y(()=>[ie(i.$slots,"default",{selectedLabel:o.value,modelValue:l(r).modelValue.value},()=>[K(E(a.value),1)])]),_:3},8,["as","as-child","data-placeholder"]))}}),fk=dk,pk=Q({__name:"SelectViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{nonce:n}=Xt(t),s=ww(n),r=Ga(),o=r.position==="item-aligned"?jx():void 0,{forwardRef:a,currentElement:i}=Fe();mt(()=>{r==null||r.onViewportChange(i.value)});const u=F(0);function c(d){const f=d.currentTarget,{shouldExpandOnScrollRef:p,contentWrapper:m}=o??{};if(p!=null&&p.value&&(m!=null&&m.value)){const v=Math.abs(u.value-f.scrollTop);if(v>0){const w=window.innerHeight-dn*2,C=Number.parseFloat(m.value.style.minHeight),h=Number.parseFloat(m.value.style.height),b=Math.max(C,h);if(b<w){const $=b+v,k=Math.min(w,$),R=$-k;m.value.style.height=`${k}px`,m.value.style.bottom==="0px"&&(f.scrollTop=R>0?R:0,m.value.style.justifyContent="flex-end")}}}u.value=f.scrollTop}return(d,f)=>(x(),J(Ce,null,[g(l(Ue),Ee({ref:l(a),"data-reka-select-viewport":"",role:"presentation"},{...d.$attrs,...t},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:c}),{default:y(()=>[ie(d.$slots,"default")]),_:3},16),g(l(Ue),{as:"style",nonce:l(s)},{default:y(()=>f[0]||(f[0]=[K(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),mk=pk,hk=Q({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=["horizontal","vertical"];function s(i){return n.includes(i)}const r=te(()=>s(t.orientation)?t.orientation:"horizontal"),o=te(()=>r.value==="vertical"?t.orientation:void 0),a=te(()=>t.decorative?{role:"none"}:{"aria-orientation":o.value,role:"separator"});return(i,u)=>(x(),D(l(Ue),Ee({as:i.as,"as-child":i.asChild,"data-orientation":r.value},a.value),{default:y(()=>[ie(i.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),gk=hk,vk=Q({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,s)=>(x(),D(gk,Pt($t(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),yk=vk;const[pu,bk]=It("TabsRoot");var _k=Q({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=t,{orientation:r,unmountOnHide:o,dir:a}=Xt(n),i=xr(a);Fe();const u=os(n,"modelValue",s,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),c=F(),d=Ea(new Set);return bk({modelValue:u,changeModelValue:f=>{u.value=f},orientation:r,dir:i,unmountOnHide:o,activationMode:n.activationMode,baseId:Dn(void 0,"reka-tabs"),tabsList:c,contentIds:d,registerContent:f=>{d.value=new Set([...d.value,f])},unregisterContent:f=>{const p=new Set(d.value);p.delete(f),d.value=p}}),(f,p)=>(x(),D(l(Ue),{dir:l(i),"data-orientation":l(r),"as-child":f.asChild,as:f.as},{default:y(()=>[ie(f.$slots,"default",{modelValue:l(u)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),wk=_k;function wm(e,t){return`${e}-trigger-${t}`}function xm(e,t){return`${e}-content-${t}`}var xk=Q({__name:"TabsContent",props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n}=Fe(),s=pu(),r=te(()=>wm(s.baseId,t.value)),o=te(()=>xm(s.baseId,t.value)),a=te(()=>t.value===s.modelValue.value),i=F(a.value);return mt(()=>{s.registerContent(t.value),requestAnimationFrame(()=>{i.value=!1})}),Ta(()=>{s.unregisterContent(t.value)}),(u,c)=>(x(),D(l(Js),{present:u.forceMount||a.value,"force-mount":""},{default:y(({present:d})=>[g(l(Ue),{id:o.value,ref:l(n),"as-child":u.asChild,as:u.as,role:"tabpanel","data-state":a.value?"active":"inactive","data-orientation":l(s).orientation.value,"aria-labelledby":r.value,hidden:!d,tabindex:"0",style:hn({animationDuration:i.value?"0s":void 0})},{default:y(()=>[!l(s).unmountOnHide.value||d?ie(u.$slots,"default",{key:0}):we("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),kk=xk,Sk=Q({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{loop:n}=Xt(t),{forwardRef:s,currentElement:r}=Fe(),o=pu();return o.tabsList=r,(a,i)=>(x(),D(l(dm),{"as-child":"",orientation:l(o).orientation.value,dir:l(o).dir.value,loop:l(n)},{default:y(()=>[g(l(Ue),{ref:l(s),role:"tablist","as-child":a.asChild,as:a.as,"aria-orientation":l(o).orientation.value},{default:y(()=>[ie(a.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),Ck=Sk,Ak=Q({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,{forwardRef:n}=Fe(),s=pu(),r=te(()=>wm(s.baseId,t.value)),o=te(()=>s.contentIds.value.has(t.value)?xm(s.baseId,t.value):void 0),a=te(()=>t.value===s.modelValue.value);return(i,u)=>(x(),D(l(fm),{"as-child":"",focusable:!i.disabled,active:a.value},{default:y(()=>[g(l(Ue),{id:r.value,ref:l(n),role:"tab",type:i.as==="button"?"button":void 0,as:i.as,"as-child":i.asChild,"aria-selected":a.value?"true":"false","aria-controls":o.value,"data-state":a.value?"active":"inactive",disabled:i.disabled,"data-disabled":i.disabled?"":void 0,"data-orientation":l(s).orientation.value,onMousedown:u[0]||(u[0]=ln(c=>{!i.disabled&&c.ctrlKey===!1?l(s).changeModelValue(i.value):c.preventDefault()},["left"])),onKeydown:u[1]||(u[1]=Bs(c=>l(s).changeModelValue(i.value),["enter","space"])),onFocus:u[2]||(u[2]=()=>{const c=l(s).activationMode!=="manual";!a.value&&!i.disabled&&c&&l(s).changeModelValue(i.value)})},{default:y(()=>[ie(i.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),Ek=Ak;const fi=Q({__name:"DropdownMenu",props:{defaultOpen:{type:Boolean},open:{type:Boolean},dir:{},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Mt(e,t);return(o,a)=>(x(),D(l(bx),Pt($t(l(r))),{default:y(()=>[ie(o.$slots,"default")]),_:3},16))}}),pi=Q({__name:"DropdownMenuTrigger",setup(e){return(t,n)=>(x(),D(l(Px),{"as-child":""},{default:y(()=>[ie(t.$slots,"default")]),_:3}))}}),mi=Q({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},memoDependencies:{},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,r=te(()=>{const{class:a,...i}=n;return i}),o=Mt(r,s);return(a,i)=>(x(),D(l(Cx),null,{default:y(()=>[g(l(wx),Ee(l(o),{class:l(Ge)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",n.class)}),{default:y(()=>[ie(a.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),Hn=Q({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},inset:{type:Boolean}},emits:["select"],setup(e,{emit:t}){const n=e,s=t,r=te(()=>{const{class:a,inset:i,...u}=n;return u}),o=Mt(r,s);return(a,i)=>(x(),D(l(kx),Ee(l(o),{"data-inset":e.inset?"":void 0,class:l(Ge)("relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0",n.class)}),{default:y(()=>[ie(a.$slots,"default")]),_:3},16,["data-inset","class"]))}}),hi=Q({__name:"DropdownMenuSeparator",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),D(l(Ex),{class:xe(l(Ge)("-mx-1 my-1 h-px bg-muted",t.class))},null,8,["class"]))}});/**
|
|
38
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the ISC license.
|
|
41
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/const Ok=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
|
|
43
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
44
|
-
*
|
|
45
|
-
* This source code is licensed under the ISC license.
|
|
46
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/const hd=e=>e==="";/**
|
|
48
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
49
|
-
*
|
|
50
|
-
* This source code is licensed under the ISC license.
|
|
51
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/const Pk=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/**
|
|
53
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the ISC license.
|
|
56
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/const gd=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
58
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
59
|
-
*
|
|
60
|
-
* This source code is licensed under the ISC license.
|
|
61
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
62
|
-
*/const Tk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,s)=>s?s.toUpperCase():n.toLowerCase());/**
|
|
63
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
64
|
-
*
|
|
65
|
-
* This source code is licensed under the ISC license.
|
|
66
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/const $k=e=>{const t=Tk(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
68
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
69
|
-
*
|
|
70
|
-
* This source code is licensed under the ISC license.
|
|
71
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/var Mr={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"};/**
|
|
73
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
74
|
-
*
|
|
75
|
-
* This source code is licensed under the ISC license.
|
|
76
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/const Ik=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":s,strokeWidth:r,"stroke-width":o,size:a=Mr.width,color:i=Mr.stroke,...u},{slots:c})=>en("svg",{...Mr,...u,width:a,height:a,stroke:i,"stroke-width":hd(n)||hd(s)||n===!0||s===!0?Number(r||o||Mr["stroke-width"])*24/Number(a):r||o||Mr["stroke-width"],class:Pk("lucide",u.class,...e?[`lucide-${gd($k(e))}-icon`,`lucide-${gd(e)}`]:["lucide-icon"]),...!c.default&&!Ok(u)&&{"aria-hidden":"true"}},[...t.map(d=>en(...d)),...c.default?[c.default()]:[]]);/**
|
|
78
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
79
|
-
*
|
|
80
|
-
* This source code is licensed under the ISC license.
|
|
81
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/const Ie=(e,t)=>(n,{slots:s,attrs:r})=>en(Ik,{...r,...n,iconNode:t,name:e},s);/**
|
|
83
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
84
|
-
*
|
|
85
|
-
* This source code is licensed under the ISC license.
|
|
86
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/const km=Ie("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
88
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
89
|
-
*
|
|
90
|
-
* This source code is licensed under the ISC license.
|
|
91
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
-
*/const Sm=Ie("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
|
|
93
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
94
|
-
*
|
|
95
|
-
* This source code is licensed under the ISC license.
|
|
96
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
-
*/const Xn=Ie("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
98
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
99
|
-
*
|
|
100
|
-
* This source code is licensed under the ISC license.
|
|
101
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/const Ya=Ie("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
103
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
104
|
-
*
|
|
105
|
-
* This source code is licensed under the ISC license.
|
|
106
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
-
*/const Cm=Ie("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
108
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
109
|
-
*
|
|
110
|
-
* This source code is licensed under the ISC license.
|
|
111
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/const Mk=Ie("circle-alert",[["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"}]]);/**
|
|
113
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
114
|
-
*
|
|
115
|
-
* This source code is licensed under the ISC license.
|
|
116
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
-
*/const Rk=Ie("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
118
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
119
|
-
*
|
|
120
|
-
* This source code is licensed under the ISC license.
|
|
121
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
-
*/const Us=Ie("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
123
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
124
|
-
*
|
|
125
|
-
* This source code is licensed under the ISC license.
|
|
126
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
-
*/const Am=Ie("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]);/**
|
|
128
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
129
|
-
*
|
|
130
|
-
* This source code is licensed under the ISC license.
|
|
131
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
-
*/const gi=Ie("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
133
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
134
|
-
*
|
|
135
|
-
* This source code is licensed under the ISC license.
|
|
136
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
-
*/const pa=Ie("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
138
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
139
|
-
*
|
|
140
|
-
* This source code is licensed under the ISC license.
|
|
141
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
-
*/const ma=Ie("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
143
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
144
|
-
*
|
|
145
|
-
* This source code is licensed under the ISC license.
|
|
146
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
-
*/const Lk=Ie("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]);/**
|
|
148
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
149
|
-
*
|
|
150
|
-
* This source code is licensed under the ISC license.
|
|
151
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
-
*/const Hr=Ie("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
|
153
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
154
|
-
*
|
|
155
|
-
* This source code is licensed under the ISC license.
|
|
156
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
-
*/const Dk=Ie("hard-drive",[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]]);/**
|
|
158
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
159
|
-
*
|
|
160
|
-
* This source code is licensed under the ISC license.
|
|
161
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
-
*/const Em=Ie("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
163
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
164
|
-
*
|
|
165
|
-
* This source code is licensed under the ISC license.
|
|
166
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
-
*/const Fk=Ie("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
|
|
168
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
169
|
-
*
|
|
170
|
-
* This source code is licensed under the ISC license.
|
|
171
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
-
*/const Nk=Ie("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
|
|
173
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
174
|
-
*
|
|
175
|
-
* This source code is licensed under the ISC license.
|
|
176
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
-
*/const _t=Ie("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
178
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
179
|
-
*
|
|
180
|
-
* This source code is licensed under the ISC license.
|
|
181
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
-
*/const qk=Ie("log-out",[["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"}]]);/**
|
|
183
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
184
|
-
*
|
|
185
|
-
* This source code is licensed under the ISC license.
|
|
186
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
-
*/const Bk=Ie("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/**
|
|
188
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
189
|
-
*
|
|
190
|
-
* This source code is licensed under the ISC license.
|
|
191
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
-
*/const Vk=Ie("move-down",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);/**
|
|
193
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
194
|
-
*
|
|
195
|
-
* This source code is licensed under the ISC license.
|
|
196
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
-
*/const Uk=Ie("move-up",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);/**
|
|
198
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
199
|
-
*
|
|
200
|
-
* This source code is licensed under the ISC license.
|
|
201
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
-
*/const jk=Ie("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);/**
|
|
203
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
204
|
-
*
|
|
205
|
-
* This source code is licensed under the ISC license.
|
|
206
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
-
*/const Om=Ie("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
208
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
209
|
-
*
|
|
210
|
-
* This source code is licensed under the ISC license.
|
|
211
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
212
|
-
*/const Hk=Ie("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);/**
|
|
213
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
214
|
-
*
|
|
215
|
-
* This source code is licensed under the ISC license.
|
|
216
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
217
|
-
*/const Pm=Ie("plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]);/**
|
|
218
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
219
|
-
*
|
|
220
|
-
* This source code is licensed under the ISC license.
|
|
221
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
222
|
-
*/const es=Ie("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
223
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
224
|
-
*
|
|
225
|
-
* This source code is licensed under the ISC license.
|
|
226
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
227
|
-
*/const po=Ie("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
228
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
229
|
-
*
|
|
230
|
-
* This source code is licensed under the ISC license.
|
|
231
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
232
|
-
*/const Wk=Ie("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
233
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
234
|
-
*
|
|
235
|
-
* This source code is licensed under the ISC license.
|
|
236
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
237
|
-
*/const Tm=Ie("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
|
|
238
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
239
|
-
*
|
|
240
|
-
* This source code is licensed under the ISC license.
|
|
241
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
242
|
-
*/const vi=Ie("server-cog",[["path",{d:"m10.852 14.772-.383.923",key:"11vil6"}],["path",{d:"M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923",key:"1v3clb"}],["path",{d:"m13.148 9.228.383-.923",key:"t2zzyc"}],["path",{d:"m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544",key:"1bxfiv"}],["path",{d:"m14.772 10.852.923-.383",key:"k9m8cz"}],["path",{d:"m14.772 13.148.923.383",key:"1xvhww"}],["path",{d:"M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5",key:"tn8das"}],["path",{d:"M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5",key:"1g2pve"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"m9.228 10.852-.923-.383",key:"1wtb30"}],["path",{d:"m9.228 13.148-.923.383",key:"1a830x"}]]);/**
|
|
243
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
244
|
-
*
|
|
245
|
-
* This source code is licensed under the ISC license.
|
|
246
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
247
|
-
*/const Kk=Ie("settings",[["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"}]]);/**
|
|
248
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
249
|
-
*
|
|
250
|
-
* This source code is licensed under the ISC license.
|
|
251
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
252
|
-
*/const zk=Ie("sun",[["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"}]]);/**
|
|
253
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
254
|
-
*
|
|
255
|
-
* This source code is licensed under the ISC license.
|
|
256
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
257
|
-
*/const Al=Ie("timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/**
|
|
258
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
259
|
-
*
|
|
260
|
-
* This source code is licensed under the ISC license.
|
|
261
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
262
|
-
*/const yi=Ie("trash-2",[["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"}]]);/**
|
|
263
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
264
|
-
*
|
|
265
|
-
* This source code is licensed under the ISC license.
|
|
266
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
267
|
-
*/const Gk=Ie("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
268
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
269
|
-
*
|
|
270
|
-
* This source code is licensed under the ISC license.
|
|
271
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
272
|
-
*/const Yk=Ie("user",[["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"}]]);/**
|
|
273
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
274
|
-
*
|
|
275
|
-
* This source code is licensed under the ISC license.
|
|
276
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
277
|
-
*/const mu=Ie("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
278
|
-
* @license lucide-vue-next v1.0.0 - ISC
|
|
279
|
-
*
|
|
280
|
-
* This source code is licensed under the ISC license.
|
|
281
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
282
|
-
*/const Bo=Ie("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Xa=Q({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean},unmountOnHide:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Mt(e,t);return(o,a)=>(x(),D(l(x1),Pt($t(l(r))),{default:y(()=>[ie(o.$slots,"default")]),_:3},16))}}),Ja=Q({__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,r=te(()=>{const{class:a,...i}=n;return i}),o=Mt(r,s);return(a,i)=>(x(),D(l(s0),null,{default:y(()=>[g(l(e0),{class:"fixed inset-0 z-50 bg-black/80"}),g(l(G1),Ee(l(o),{class:l(Ge)("fixed left-[50%] top-[50%] z-50 grid max-h-[90vh] w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 overflow-y-auto border bg-background p-6 shadow-lg sm:rounded-lg",n.class)}),{default:y(()=>[ie(a.$slots,"default"),g(l(S1),{class:"absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background"},{default:y(()=>[g(l(mu),{class:"h-4 w-4"}),i[0]||(i[0]=S("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),Qa=Q({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),D(l(o0),{class:xe(l(Ge)("text-lg font-semibold leading-none tracking-tight",t.class))},{default:y(()=>[ie(n.$slots,"default")]),_:3},8,["class"]))}}),Za=Q({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),D(l(X1),{class:xe(l(Ge)("text-sm text-muted-foreground",t.class))},{default:y(()=>[ie(n.$slots,"default")]),_:3},8,["class"]))}}),Wn=Q({__name:"Checkbox",props:bs({class:{type:[Boolean,null,String,Object,Array]},id:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=yo(e,"modelValue");return(s,r)=>(x(),D(l(Tw),{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=o=>n.value=o),id:t.id,class:xe(l(Ge)("peer h-4 w-4 shrink-0 cursor-pointer rounded-[4px] border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t.class))},{default:y(()=>[g(l(Iw),{class:"flex h-full w-full items-center justify-center text-current"},{default:y(()=>[g(l(Xn),{class:"h-3.5 w-3.5"})]),_:1})]),_:1},8,["modelValue","id","class"]))}}),bi=Q({__name:"Separator",props:{class:{type:[Boolean,null,String,Object,Array]},orientation:{}},setup(e){const t=e;return(n,s)=>(x(),D(l(yk),{orientation:t.orientation??"horizontal",class:xe(l(Ge)("shrink-0 bg-border",t.orientation==="vertical"?"h-full w-px":"h-px w-full",t.class))},null,8,["orientation","class"]))}}),Xk={class:"flex gap-3 pr-8"},Jk={key:0,class:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-destructive/15 text-destructive"},Qk={class:"min-w-0 flex-1 space-y-1.5"},Zk={class:"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end"},hu=Q({__name:"ConfirmDialog",props:bs({title:{},description:{},confirmText:{default:""},cancelText:{default:""},variant:{default:"default"},loading:{type:Boolean,default:!1}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:bs(["confirm"],["update:open"]),setup(e,{emit:t}){const{t:n}=Ht(),s=yo(e,"open"),r=t;return(o,a)=>(x(),D(l(Xa),{open:s.value,"onUpdate:open":a[2]||(a[2]=i=>s.value=i)},{default:y(()=>[g(l(Ja),{class:"max-w-sm"},{default:y(()=>[S("div",Xk,[e.variant==="destructive"?(x(),J("span",Jk,[g(l(Gk),{class:"h-4 w-4"})])):we("",!0),S("div",Qk,[g(l(Qa),{class:"text-base leading-tight"},{default:y(()=>[K(E(e.title),1)]),_:1}),e.description?(x(),D(l(Za),{key:0},{default:y(()=>[K(E(e.description),1)]),_:1})):we("",!0)])]),S("div",Zk,[g(l(Pe),{variant:"outline",disabled:e.loading,onClick:a[0]||(a[0]=i=>s.value=!1)},{default:y(()=>[K(E(e.cancelText||l(n)("common.cancel")),1)]),_:1},8,["disabled"]),g(l(Pe),{variant:e.variant,disabled:e.loading,onClick:a[1]||(a[1]=i=>r("confirm"))},{default:y(()=>[e.loading?(x(),D(l(_t),{key:0,class:"h-4 w-4 animate-spin"})):we("",!0),K(" "+E(e.confirmText||l(n)("common.confirm")),1)]),_:1},8,["variant","disabled"])])]),_:1})]),_:1},8,["open"]))}}),eS={class:"flex items-center gap-2 pr-8"},tS={class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-primary/15 text-primary"},nS={class:"min-w-0"},sS={key:0,class:"py-4 text-center text-sm text-muted-foreground"},rS={key:1,class:"py-4 text-center text-sm text-destructive"},oS={class:"space-y-1"},aS={key:0,class:"space-y-1.5 rounded-md border bg-muted/30 p-3 text-xs leading-relaxed text-muted-foreground"},lS={key:3,class:"space-y-3 rounded-lg border bg-muted/30 p-4"},iS={class:"space-y-1.5"},uS={class:"text-xs font-medium text-muted-foreground"},cS={class:"space-y-1.5"},dS={class:"text-xs font-medium text-muted-foreground"},fS={class:"space-y-3 rounded-md border bg-background/50 p-3"},pS={class:"space-y-2"},mS={class:"flex items-center gap-2.5"},hS={class:"flex items-center gap-2.5 pl-7"},gS={class:"flex items-center gap-2.5"},vS={class:"text-xs text-muted-foreground"},yS={key:0,class:"space-y-1.5"},bS={class:"text-xs font-medium text-muted-foreground"},_S={class:"text-xs text-muted-foreground"},wS={key:1,class:"space-y-1.5"},xS={class:"text-xs font-medium text-muted-foreground"},kS={class:"text-xs text-muted-foreground"},SS={class:"space-y-1.5"},CS={class:"text-xs font-medium text-muted-foreground"},AS={key:2,class:"text-sm text-destructive"},ES={class:"flex justify-end gap-2"},OS={key:4,class:"space-y-2"},PS={key:0,class:"flex items-center gap-3"},TS={class:"min-w-0 flex-1"},$S={class:"flex items-center gap-2"},IS={class:"truncate font-medium"},MS={key:0,class:"mt-0.5 truncate font-mono text-xs text-muted-foreground"},RS={key:1,class:"mt-0.5 truncate font-mono text-xs text-muted-foreground"},LS={key:1,class:"space-y-3"},DS={class:"space-y-1.5"},FS={class:"text-xs font-medium text-muted-foreground"},NS={class:"space-y-1.5"},qS={class:"text-xs font-medium text-muted-foreground"},BS={class:"space-y-3 rounded-md border bg-background/50 p-3"},VS={class:"space-y-2"},US={class:"flex items-center gap-2.5"},jS={class:"flex items-center gap-2.5 pl-7"},HS={class:"flex items-center gap-2.5"},WS={key:0,class:"space-y-1.5"},KS={class:"text-xs font-medium text-muted-foreground"},zS={class:"text-xs text-muted-foreground"},GS={key:1,class:"space-y-1.5"},YS={class:"text-xs font-medium text-muted-foreground"},XS={class:"text-xs text-muted-foreground"},JS={class:"space-y-1.5"},QS={class:"flex items-center justify-between"},ZS={class:"text-xs font-medium text-muted-foreground"},eC={key:0,class:"text-xs text-muted-foreground"},tC={class:"space-y-1.5"},nC={class:"text-xs font-medium text-muted-foreground"},sC={class:"text-xs text-muted-foreground"},rC={class:"flex justify-end gap-2"},oC=Q({__name:"SourcesDialog",props:{open:{type:Boolean,default:!1},openModifiers:{}},emits:bs(["changed"],["update:open"]),setup(e,{emit:t}){const{t:n}=Ht(),s=yo(e,"open"),r=t,o=F([]),a=F(!1),i=F(""),u=F(""),c=F(""),d=F(""),f=F(""),p=F(!0),m=F(!1),v=F(!1),w=F(!1),C=F(""),h=F(!1),b=F(!1),$=F(null),k=F(""),R=F(""),I=F(""),A=F(""),M=F(""),N=F(!0),z=F(!1),Y=F(!1),W=F(!1),ue=F({}),me=F(null),X=F(!1),ce=F(!1);async function oe(){a.value=!0,i.value="";try{const ge=await Ne("GET","/admin/providers");o.value=ge.providers}catch(ge){i.value=ge.message}finally{a.value=!1}}De(s,ge=>{ge&&oe()});function fe(ge,_){const T=ge==="new"?p:N,j=ge==="new"?m:z;if(_==="openai"){if(T.value&&!j.value)return;T.value=!T.value}else{if(j.value&&!T.value)return;j.value=!j.value}}function ae(ge){const _=[];return(ge==="new"?p:N).value&&_.push("openai"),(ge==="new"?m:z).value&&_.push("anthropic"),_}async function Z(){if(w.value)return;C.value="";const ge=ae("new");if(!u.value||!f.value){C.value=n("sources.errRequired");return}if(!ge.length){C.value=n("sources.errFormat");return}if(p.value&&!c.value||m.value&&!d.value){C.value=n("sources.errBaseUrl");return}w.value=!0;try{const _=await Ne("POST","/admin/providers",{name:u.value,baseUrlOpenai:c.value,baseUrlAnthropic:d.value,apiKey:f.value,formats:ge,supportsResponses:p.value&&v.value});o.value=[...o.value,_.provider],u.value=f.value="",c.value=d.value="",v.value=!1,h.value=!1,Te(n("sources.added"),"success"),r("changed")}catch(_){Te(_.message,"error")}finally{w.value=!1}}function de(ge){$.value=ge.id,k.value=ge.name,R.value=ge.baseUrlOpenai,I.value=ge.baseUrlAnthropic,A.value="",M.value=ge.rpm?String(ge.rpm):"",N.value=ge.formats.includes("openai"),z.value=ge.formats.includes("anthropic"),Y.value=!!ge.supportsResponses}function Be(){$.value=null}async function lt(ge){if(W.value)return;const _=ae("edit");if(!k.value){Te(n("sources.errRequired"),"error");return}if(!_.length){Te(n("sources.errFormat"),"error");return}if(N.value&&!R.value||z.value&&!I.value){Te(n("sources.errBaseUrl"),"error");return}W.value=!0;try{const T={name:k.value,baseUrlOpenai:R.value,baseUrlAnthropic:I.value,formats:_,supportsResponses:N.value&&Y.value,rpm:Number(M.value)||0};A.value&&(T.apiKey=A.value);const j=await Ne("PUT",`/admin/providers/${ge.id}`,T);o.value=o.value.map(le=>le.id===ge.id?j.provider:le),$.value=null,Te(n("sources.updated"),"success"),r("changed")}catch(T){Te(T.message,"error")}finally{W.value=!1}}async function at(ge){ue.value[ge.id]=!0;try{const _=await Ne("POST",`/admin/providers/${ge.id}/discover`);o.value=o.value.map(T=>T.id===ge.id?{...T,discoveredModels:_.models}:T),Te(n("sources.refreshDone",{name:ge.name}),_.models.length?"success":"default"),r("changed")}catch(_){Te(_.message,"error")}finally{ue.value[ge.id]=!1}}function st(ge){me.value=ge,X.value=!0}async function Je(){const ge=me.value;if(!(!ge||ce.value)){ce.value=!0;try{await Ne("DELETE",`/admin/providers/${ge.id}`),o.value=o.value.filter(_=>_.id!==ge.id),Te(n("sources.removed",{name:ge.name}),"success"),r("changed"),X.value=!1}catch(_){Te(_.message,"error")}finally{ce.value=!1}}}function Ye(ge){var _;return((_=ge.discoveredModels)==null?void 0:_.length)??0}function Ve(ge){return Ye(ge)>0?"found":ge.discoveredAt?"empty":"never"}function $e(ge){const _=Ve(ge);return _==="found"?n("sources.discoveredCount",{n:Ye(ge)}):n(_==="empty"?"sources.noModelsFound":"sources.notScanned")}function dt(ge){const _=Ve(ge);return _==="empty"?n("sources.noModelsHint"):_==="never"?n("sources.notScannedHint"):""}return(ge,_)=>(x(),J(Ce,null,[g(l(Xa),{open:s.value,"onUpdate:open":_[18]||(_[18]=T=>s.value=T)},{default:y(()=>[g(l(Ja),{class:"max-w-xl"},{default:y(()=>[S("div",eS,[S("span",tS,[g(l(vi),{class:"h-4 w-4"})]),S("div",nS,[g(l(Qa),{class:"text-base"},{default:y(()=>[K(E(l(n)("sources.manage")),1)]),_:1}),g(l(Za),null,{default:y(()=>[K(E(l(n)("sources.subtitle")),1)]),_:1})])]),a.value?(x(),J("p",sS,E(l(n)("common.loading")),1)):i.value?(x(),J("p",rS,E(i.value),1)):we("",!0),S("div",oS,[S("button",{type:"button",class:"inline-flex items-center gap-1 text-xs font-medium text-muted-foreground hover:text-foreground",onClick:_[0]||(_[0]=T=>b.value=!b.value)},[g(l(Em),{class:"h-3.5 w-3.5"}),K(" "+E(l(n)("sources.baseHelpToggle"))+" ",1),g(l(Ya),{class:xe(["h-3.5 w-3.5 transition-transform",{"rotate-180":b.value}])},null,8,["class"])]),b.value?(x(),J("div",aS,[S("p",null,E(l(n)("sources.baseHelpSplit")),1),S("p",null,[_[20]||(_[20]=S("span",{class:"font-medium text-foreground"},"openai",-1)),K(" — "+E(l(n)("sources.baseHelpOpenai")),1)]),S("p",null,[_[21]||(_[21]=S("span",{class:"font-medium text-foreground"},"anthropic",-1)),K(" — "+E(l(n)("sources.baseHelpAnthropic")),1)])])):we("",!0)]),!h.value&&o.value.length?(x(),D(l(Pe),{key:2,variant:"outline",class:"w-full justify-center",onClick:_[1]||(_[1]=T=>h.value=!0)},{default:y(()=>[g(l(es),{class:"h-4 w-4"}),K(E(l(n)("sources.add")),1)]),_:1})):(x(),J("div",lS,[S("div",iS,[S("label",uS,E(l(n)("sources.nameLabel")),1),g(l(bt),{modelValue:u.value,"onUpdate:modelValue":_[2]||(_[2]=T=>u.value=T),placeholder:l(n)("sources.namePh"),autocomplete:"off","aria-label":"name"},null,8,["modelValue","placeholder"])]),S("div",cS,[S("label",dS,E(l(n)("sources.formats")),1),S("div",fS,[S("div",pS,[S("div",mS,[g(l(Wn),{"model-value":p.value,disabled:p.value&&!m.value,"aria-label":"openai","onUpdate:modelValue":_[3]||(_[3]=T=>fe("new","openai"))},null,8,["model-value","disabled"]),_[22]||(_[22]=S("span",{class:"text-sm font-medium leading-none"},"openai",-1)),_[23]||(_[23]=S("span",{class:"text-xs text-muted-foreground"},"/chat/completions",-1))]),S("div",hS,[g(l(Wn),{modelValue:v.value,"onUpdate:modelValue":_[4]||(_[4]=T=>v.value=T),disabled:!p.value,"aria-label":l(n)("sources.responses")},null,8,["modelValue","disabled","aria-label"]),S("span",{class:xe(["text-sm leading-none",p.value?"":"text-muted-foreground"])},E(l(n)("sources.responses")),3),_[24]||(_[24]=S("span",{class:"text-xs text-muted-foreground"},"/responses",-1))])]),g(l(bi)),S("div",gS,[g(l(Wn),{"model-value":m.value,disabled:m.value&&!p.value,"aria-label":"anthropic","onUpdate:modelValue":_[5]||(_[5]=T=>fe("new","anthropic"))},null,8,["model-value","disabled"]),_[25]||(_[25]=S("span",{class:"text-sm font-medium leading-none"},"anthropic",-1)),_[26]||(_[26]=S("span",{class:"text-xs text-muted-foreground"},"/messages",-1))])]),S("p",vS,E(l(n)("sources.addHint")),1)]),p.value?(x(),J("div",yS,[S("label",bS,E(l(n)("sources.urlLabelOpenai")),1),g(l(bt),{modelValue:c.value,"onUpdate:modelValue":_[6]||(_[6]=T=>c.value=T),placeholder:l(n)("sources.urlPhOpenai"),autocomplete:"off","aria-label":"openai base url"},null,8,["modelValue","placeholder"]),S("p",_S,E(l(n)("sources.urlHintOpenai")),1)])):we("",!0),m.value?(x(),J("div",wS,[S("label",xS,E(l(n)("sources.urlLabelAnthropic")),1),g(l(bt),{modelValue:d.value,"onUpdate:modelValue":_[7]||(_[7]=T=>d.value=T),placeholder:l(n)("sources.urlPhAnthropic"),autocomplete:"off","aria-label":"anthropic base url"},null,8,["modelValue","placeholder"]),S("p",kS,E(l(n)("sources.urlHintAnthropic")),1)])):we("",!0),S("div",SS,[S("label",CS,E(l(n)("sources.keyLabel")),1),g(l(bt),{modelValue:f.value,"onUpdate:modelValue":_[8]||(_[8]=T=>f.value=T),type:"password",placeholder:l(n)("sources.keyPh"),autocomplete:"new-password","aria-label":"api key"},null,8,["modelValue","placeholder"])]),C.value?(x(),J("p",AS,E(C.value),1)):we("",!0),S("div",ES,[o.value.length?(x(),D(l(Pe),{key:0,variant:"ghost",size:"sm",onClick:_[9]||(_[9]=T=>h.value=!1)},{default:y(()=>[K(E(l(n)("sources.cancel")),1)]),_:1})):we("",!0),g(l(Pe),{size:"sm",disabled:w.value,onClick:Z},{default:y(()=>[w.value?(x(),D(l(_t),{key:0,class:"h-4 w-4 animate-spin"})):(x(),D(l(es),{key:1,class:"h-4 w-4"})),K(E(l(n)("sources.addBtn")),1)]),_:1},8,["disabled"])])])),o.value.length?(x(),J("div",OS,[(x(!0),J(Ce,null,ut(o.value,T=>(x(),J("div",{key:T.id,class:"rounded-lg border p-3"},[$.value!==T.id?(x(),J("div",PS,[S("div",TS,[S("div",$S,[S("span",IS,E(T.name),1),(x(!0),J(Ce,null,ut(T.formats,j=>(x(),D(l(ht),{key:j,variant:"secondary"},{default:y(()=>[K(E(j),1)]),_:2},1024))),128)),T.rpm?(x(),D(l(ht),{key:0,variant:"outline",title:l(n)("sources.rpmBadgeHint")},{default:y(()=>[K(E(l(n)("sources.rpmBadge",{n:T.rpm})),1)]),_:2},1032,["title"])):we("",!0),g(l(ht),{variant:"muted",title:dt(T)},{default:y(()=>[K(E($e(T)),1)]),_:2},1032,["title"])]),T.formats.includes("openai")?(x(),J("div",MS,[_[27]||(_[27]=S("span",{class:"opacity-60"},"openai ·",-1)),K(" "+E(T.baseUrlOpenai),1)])):we("",!0),T.formats.includes("anthropic")?(x(),J("div",RS,[_[28]||(_[28]=S("span",{class:"opacity-60"},"anthropic ·",-1)),K(" "+E(T.baseUrlAnthropic),1)])):we("",!0)]),g(l(fi),null,{default:y(()=>[g(l(pi),null,{default:y(()=>[g(l(Pe),{variant:"ghost",size:"icon",class:"h-8 w-8","aria-label":l(n)("sources.moreActions")},{default:y(()=>[g(l(gi),{class:"h-4 w-4"})]),_:1},8,["aria-label"])]),_:1}),g(l(mi),{align:"end"},{default:y(()=>[g(l(Hn),{disabled:ue.value[T.id],onSelect:j=>at(T)},{default:y(()=>[ue.value[T.id]?(x(),D(l(_t),{key:0,class:"animate-spin"})):(x(),D(l(po),{key:1})),K(" "+E(l(n)("sources.refreshModels")),1)]),_:2},1032,["disabled","onSelect"]),g(l(Hn),{onSelect:j=>de(T)},{default:y(()=>[g(l(Om)),K(" "+E(l(n)("sources.editLabel")),1)]),_:1},8,["onSelect"]),g(l(hi)),g(l(Hn),{class:"text-destructive focus:bg-destructive/10 focus:text-destructive",onSelect:j=>st(T)},{default:y(()=>[g(l(yi)),K(" "+E(l(n)("sources.deleteLabel")),1)]),_:1},8,["onSelect"])]),_:2},1024)]),_:2},1024)])):(x(),J("div",LS,[S("div",DS,[S("label",FS,E(l(n)("sources.nameLabel")),1),g(l(bt),{modelValue:k.value,"onUpdate:modelValue":_[10]||(_[10]=j=>k.value=j),placeholder:l(n)("sources.namePh"),autocomplete:"off","aria-label":"name"},null,8,["modelValue","placeholder"])]),S("div",NS,[S("label",qS,E(l(n)("sources.formats")),1),S("div",BS,[S("div",VS,[S("div",US,[g(l(Wn),{"model-value":N.value,disabled:N.value&&!z.value,"aria-label":"openai","onUpdate:modelValue":_[11]||(_[11]=j=>fe("edit","openai"))},null,8,["model-value","disabled"]),_[29]||(_[29]=S("span",{class:"text-sm font-medium leading-none"},"openai",-1)),_[30]||(_[30]=S("span",{class:"text-xs text-muted-foreground"},"/chat/completions",-1))]),S("div",jS,[g(l(Wn),{modelValue:Y.value,"onUpdate:modelValue":_[12]||(_[12]=j=>Y.value=j),disabled:!N.value,"aria-label":l(n)("sources.responses")},null,8,["modelValue","disabled","aria-label"]),S("span",{class:xe(["text-sm leading-none",N.value?"":"text-muted-foreground"])},E(l(n)("sources.responses")),3),_[31]||(_[31]=S("span",{class:"text-xs text-muted-foreground"},"/responses",-1))])]),g(l(bi)),S("div",HS,[g(l(Wn),{"model-value":z.value,disabled:z.value&&!N.value,"aria-label":"anthropic","onUpdate:modelValue":_[13]||(_[13]=j=>fe("edit","anthropic"))},null,8,["model-value","disabled"]),_[32]||(_[32]=S("span",{class:"text-sm font-medium leading-none"},"anthropic",-1)),_[33]||(_[33]=S("span",{class:"text-xs text-muted-foreground"},"/messages",-1))])])]),N.value?(x(),J("div",WS,[S("label",KS,E(l(n)("sources.urlLabelOpenai")),1),g(l(bt),{modelValue:R.value,"onUpdate:modelValue":_[14]||(_[14]=j=>R.value=j),placeholder:l(n)("sources.urlPhOpenai"),autocomplete:"off","aria-label":"openai base url"},null,8,["modelValue","placeholder"]),S("p",zS,E(l(n)("sources.urlHintOpenai")),1)])):we("",!0),z.value?(x(),J("div",GS,[S("label",YS,E(l(n)("sources.urlLabelAnthropic")),1),g(l(bt),{modelValue:I.value,"onUpdate:modelValue":_[15]||(_[15]=j=>I.value=j),placeholder:l(n)("sources.urlPhAnthropic"),autocomplete:"off","aria-label":"anthropic base url"},null,8,["modelValue","placeholder"]),S("p",XS,E(l(n)("sources.urlHintAnthropic")),1)])):we("",!0),S("div",JS,[S("div",QS,[S("label",ZS,E(l(n)("sources.keyLabel")),1),T.apiKey?(x(),J("span",eC,E(l(n)("sources.currentKeyLabel"))+": "+E(T.apiKey),1)):we("",!0)]),g(l(bt),{modelValue:A.value,"onUpdate:modelValue":_[16]||(_[16]=j=>A.value=j),type:"password",placeholder:l(n)("sources.keyPhEdit"),autocomplete:"new-password","aria-label":"api key"},null,8,["modelValue","placeholder"])]),S("div",tC,[S("label",nC,E(l(n)("sources.rpmLabel")),1),g(l(bt),{modelValue:M.value,"onUpdate:modelValue":_[17]||(_[17]=j=>M.value=j),type:"number",min:"0",inputmode:"numeric",placeholder:l(n)("sources.rpmPh"),"aria-label":"rpm"},null,8,["modelValue","placeholder"]),S("p",sC,E(l(n)("sources.rpmHint")),1)]),S("div",rC,[g(l(Pe),{variant:"ghost",size:"sm",onClick:Be},{default:y(()=>[K(E(l(n)("sources.cancel")),1)]),_:1}),g(l(Pe),{size:"sm",disabled:W.value,onClick:j=>lt(T)},{default:y(()=>[W.value?(x(),D(l(_t),{key:0,class:"h-4 w-4 animate-spin"})):we("",!0),K(E(l(n)("sources.saveBtn")),1)]),_:1},8,["disabled","onClick"])])]))]))),128))])):we("",!0)]),_:1})]),_:1},8,["open"]),g(hu,{open:X.value,"onUpdate:open":_[19]||(_[19]=T=>X.value=T),variant:"destructive",title:l(n)("sources.remove"),description:me.value?l(n)("sources.confirmRemove",{name:me.value.name}):"","confirm-text":l(n)("sources.remove"),loading:ce.value,onConfirm:Je},null,8,["open","title","description","confirm-text","loading"])],64))}}),Wr=Q({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},nullableValue:{},by:{type:[String,Function]},dir:{},multiple:{type:Boolean},autocomplete:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const r=Mt(e,t);return(o,a)=>(x(),D(l(Lx),Pt($t(l(r))),{default:y(()=>[ie(o.$slots,"default")]),_:3},16))}}),Kr=Q({__name:"SelectTrigger",props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=te(()=>{const{class:s,...r}=t;return r});return(s,r)=>(x(),D(l(ck),Ee(n.value,{class:l(Ge)("flex h-9 w-full items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t.class)}),{default:y(()=>[ie(s.$slots,"default"),g(l(Zx),{"as-child":""},{default:y(()=>[g(l(Ya),{class:"h-4 w-4 opacity-50"})]),_:1})]),_:3},16,["class"]))}}),zr=Q({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,s)=>(x(),D(l(fk),Pt($t(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),Gr=Q({__name:"SelectContent",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},memoDependencies:{},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},dir:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,s=t,r=te(()=>{const{class:a,...i}=n;return i}),o=Mt(r,s);return(a,i)=>(x(),D(l(ik),null,{default:y(()=>[g(l(Jx),Ee(l(o),{class:l(Ge)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md",n.position==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:translate-x-1 data-[side=right]:-translate-x-1 data-[side=top]:-translate-y-1",n.class)}),{default:y(()=>[g(l(mk),{class:xe(l(Ge)("p-1",n.position==="popper"&&"w-full min-w-[var(--reka-select-trigger-width)]"))},{default:y(()=>[ie(a.$slots,"default")]),_:3},8,["class"])]),_:3},16,["class"])]),_:3}))}}),aC={class:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"},An=Q({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=te(()=>{const{class:s,...r}=t;return r});return(s,r)=>(x(),D(l(nk),Ee(n.value,{class:l(Ge)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t.class)}),{default:y(()=>[S("span",aC,[g(l(rk),null,{default:y(()=>[g(l(Xn),{class:"h-4 w-4"})]),_:1})]),g(l(ak),null,{default:y(()=>[ie(s.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),lC={class:"flex items-center gap-2 pr-8"},iC={class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-primary/15 text-primary"},uC={class:"min-w-0"},cC={class:"space-y-3"},dC={class:"space-y-1.5"},fC={class:"text-xs font-medium text-muted-foreground"},pC={class:"text-xs text-muted-foreground"},mC={class:"font-medium text-foreground"},hC={key:0,class:"space-y-3 rounded-lg border bg-muted/30 p-4"},gC={class:"text-xs text-muted-foreground"},vC={class:"space-y-1.5"},yC={class:"text-xs font-medium text-muted-foreground"},bC={class:"space-y-1.5"},_C={class:"text-xs font-medium text-muted-foreground"},wC={class:"space-y-2 rounded-md border bg-background/50 p-3"},xC={class:"space-y-2"},kC={class:"flex items-center gap-2.5"},SC={class:"flex items-center gap-2.5 pl-7"},CC={class:"flex items-center gap-2.5"},AC={key:0,class:"space-y-1.5"},EC={class:"text-xs font-medium text-muted-foreground"},OC={class:"text-xs text-muted-foreground"},PC={key:1,class:"space-y-1.5"},TC={class:"text-xs font-medium text-muted-foreground"},$C={class:"text-xs text-muted-foreground"},IC={class:"space-y-1.5"},MC={class:"text-xs font-medium text-muted-foreground"},RC={key:2,class:"text-sm text-destructive"},LC={class:"space-y-1.5"},DC={class:"text-xs font-medium text-muted-foreground"},FC=["placeholder"],NC={key:0,class:"text-xs text-muted-foreground"},qC={class:"flex justify-end gap-2"},El="__new__",BC=Q({__name:"AddModelsDialog",props:bs({providers:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:bs(["changed"],["update:open"]),setup(e,{emit:t}){const{t:n}=Ht(),s=e,r=yo(e,"open"),o=t,a=F(""),i=F(""),u=F(!1),c=F(""),d=F(""),f=F(""),p=F(""),m=F(!0),v=F(!1),w=F(!1),C=F("");De(r,z=>{z&&(a.value=s.providers.length?s.providers[0].id:El,i.value="",c.value=p.value="",d.value=f.value="",m.value=!0,v.value=!1,w.value=!1,C.value="")});const h=te(()=>a.value===El);function b(z){const Y=[...z.formats];return z.supportsResponses&&!Y.includes("responses")&&Y.push("responses"),Y}const $=te(()=>{if(h.value)return b({formats:R(),supportsResponses:m.value&&w.value});const z=s.providers.find(Y=>Y.id===a.value);return z?b(z):[]});function k(z){if(z==="openai"){if(m.value&&!v.value)return;m.value=!m.value}else{if(v.value&&!m.value)return;v.value=!v.value}}function R(){const z=[];return m.value&&z.push("openai"),v.value&&z.push("anthropic"),z}function I(){return!c.value.trim()||!p.value?n("sources.errRequired"):R().length?m.value&&!d.value.trim()||v.value&&!f.value.trim()?n("sources.errBaseUrl"):"":n("sources.errFormat")}const A=te(()=>{const z=new Set,Y=[];for(const W of i.value.split(/[\s,;]+/)){const ue=W.trim();ue&&!z.has(ue)&&(z.add(ue),Y.push(ue))}return Y}),M=te(()=>!!a.value&&A.value.length>0&&!u.value);async function N(){if(M.value){if(h.value){const z=I();if(z){C.value=z;return}}u.value=!0;try{let z=a.value,Y=[],W=!1;if(h.value){const oe=await Ne("POST","/admin/providers",{name:c.value.trim(),baseUrlOpenai:d.value,baseUrlAnthropic:f.value,apiKey:p.value,formats:R(),supportsResponses:m.value&&w.value});z=oe.provider.id,a.value=z,Y=b(oe.provider),W=!0,Te(n("sources.added"),"success")}else{const oe=s.providers.find(fe=>fe.id===z);Y=oe?b(oe):[]}const ue=[];for(const oe of A.value)for(const fe of Y)ue.push({name:oe,slot:fe});const me=await Promise.allSettled(ue.map(oe=>Ne("POST","/admin/models",{name:oe.name,format:oe.slot,providers:[z]}))),X=new Set;let ce=0;me.forEach((oe,fe)=>{oe.status==="fulfilled"?X.add(ue[fe].name):ce++}),X.size&&Te(n("models.addedToast",{n:X.size}),"success"),ce&&Te(n("models.addModelsFailed",{n:ce}),"error"),(W||X.size)&&o("changed"),X.size&&(r.value=!1)}finally{u.value=!1}}}return(z,Y)=>(x(),D(l(Xa),{open:r.value,"onUpdate:open":Y[10]||(Y[10]=W=>r.value=W)},{default:y(()=>[g(l(Ja),{class:xe(h.value?"max-w-lg":"max-w-md")},{default:y(()=>[S("div",lC,[S("span",iC,[g(l(es),{class:"h-4 w-4"})]),S("div",uC,[g(l(Qa),{class:"text-base"},{default:y(()=>[K(E(l(n)("models.addModels")),1)]),_:1}),g(l(Za),null,{default:y(()=>[K(E(l(n)("models.addModelsDesc")),1)]),_:1})])]),S("div",cC,[S("div",dC,[S("label",fC,E(l(n)("models.providerLabel")),1),g(l(Wr),{modelValue:a.value,"onUpdate:modelValue":Y[0]||(Y[0]=W=>a.value=W)},{default:y(()=>[g(l(Kr),null,{default:y(()=>[g(l(zr),{placeholder:l(n)("models.providerPh")},null,8,["placeholder"])]),_:1}),g(l(Gr),null,{default:y(()=>[g(l(An),{value:El},{default:y(()=>[K(E(l(n)("models.newSourceOpt")),1)]),_:1}),(x(!0),J(Ce,null,ut(e.providers,W=>(x(),D(l(An),{key:W.id,value:W.id},{default:y(()=>[K(E(W.name),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"]),S("p",pC,[K(E(l(n)("models.addModelsSlotsHint"))+" ",1),S("span",mC,E($.value.join(" / ")||"—"),1)])]),h.value?(x(),J("div",hC,[S("p",gC,E(l(n)("models.addModelsNewHint")),1),S("div",vC,[S("label",yC,E(l(n)("sources.nameLabel")),1),g(l(bt),{modelValue:c.value,"onUpdate:modelValue":Y[1]||(Y[1]=W=>c.value=W),placeholder:l(n)("sources.namePh"),autocomplete:"off","aria-label":"name"},null,8,["modelValue","placeholder"])]),S("div",bC,[S("label",_C,E(l(n)("sources.formats")),1),S("div",wC,[S("div",xC,[S("div",kC,[g(l(Wn),{"model-value":m.value,disabled:m.value&&!v.value,"aria-label":"openai","onUpdate:modelValue":Y[2]||(Y[2]=W=>k("openai"))},null,8,["model-value","disabled"]),Y[11]||(Y[11]=S("span",{class:"text-sm font-medium leading-none"},"openai",-1)),Y[12]||(Y[12]=S("span",{class:"text-xs text-muted-foreground"},"/chat/completions",-1))]),S("div",SC,[g(l(Wn),{modelValue:w.value,"onUpdate:modelValue":Y[3]||(Y[3]=W=>w.value=W),disabled:!m.value,"aria-label":l(n)("sources.responses")},null,8,["modelValue","disabled","aria-label"]),S("span",{class:xe(["text-sm leading-none",m.value?"":"text-muted-foreground"])},E(l(n)("sources.responses")),3),Y[13]||(Y[13]=S("span",{class:"text-xs text-muted-foreground"},"/responses",-1))])]),g(l(bi)),S("div",CC,[g(l(Wn),{"model-value":v.value,disabled:v.value&&!m.value,"aria-label":"anthropic","onUpdate:modelValue":Y[4]||(Y[4]=W=>k("anthropic"))},null,8,["model-value","disabled"]),Y[14]||(Y[14]=S("span",{class:"text-sm font-medium leading-none"},"anthropic",-1)),Y[15]||(Y[15]=S("span",{class:"text-xs text-muted-foreground"},"/messages",-1))])])]),m.value?(x(),J("div",AC,[S("label",EC,E(l(n)("sources.urlLabelOpenai")),1),g(l(bt),{modelValue:d.value,"onUpdate:modelValue":Y[5]||(Y[5]=W=>d.value=W),placeholder:l(n)("sources.urlPhOpenai"),autocomplete:"off","aria-label":"openai base url"},null,8,["modelValue","placeholder"]),S("p",OC,E(l(n)("sources.urlHintOpenai")),1)])):we("",!0),v.value?(x(),J("div",PC,[S("label",TC,E(l(n)("sources.urlLabelAnthropic")),1),g(l(bt),{modelValue:f.value,"onUpdate:modelValue":Y[6]||(Y[6]=W=>f.value=W),placeholder:l(n)("sources.urlPhAnthropic"),autocomplete:"off","aria-label":"anthropic base url"},null,8,["modelValue","placeholder"]),S("p",$C,E(l(n)("sources.urlHintAnthropic")),1)])):we("",!0),S("div",IC,[S("label",MC,E(l(n)("sources.keyLabel")),1),g(l(bt),{modelValue:p.value,"onUpdate:modelValue":Y[7]||(Y[7]=W=>p.value=W),type:"password",placeholder:l(n)("sources.keyPh"),autocomplete:"new-password","aria-label":"api key"},null,8,["modelValue","placeholder"])]),C.value?(x(),J("p",RC,E(C.value),1)):we("",!0)])):we("",!0),S("div",LC,[S("label",DC,E(l(n)("models.namesLabel")),1),zs(S("textarea",{"onUpdate:modelValue":Y[8]||(Y[8]=W=>i.value=W),placeholder:l(n)("models.addModelsNamesPh"),rows:"6",spellcheck:"false",class:"flex w-full resize-y rounded-md border border-input bg-transparent px-3 py-2 font-mono text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50"},null,8,FC),[[Vf,i.value]]),A.value.length?(x(),J("p",NC,E(l(n)("models.addModelsCount",{n:A.value.length})),1)):we("",!0)]),S("div",qC,[g(l(Pe),{variant:"outline",disabled:u.value,onClick:Y[9]||(Y[9]=W=>r.value=!1)},{default:y(()=>[K(E(l(n)("common.cancel")),1)]),_:1},8,["disabled"]),g(l(Pe),{disabled:!M.value,onClick:N},{default:y(()=>[u.value?(x(),D(l(_t),{key:0,class:"h-4 w-4 animate-spin"})):(x(),D(l(es),{key:1,class:"h-4 w-4"})),K(" "+E(l(n)("models.addModelsBtn")),1)]),_:1},8,["disabled"])])])]),_:1},8,["class"])]),_:1},8,["open"]))}}),VC={class:"flex items-center gap-2 pr-8"},UC={class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-primary/15 text-primary"},jC={class:"min-w-0"},HC={class:"space-y-3"},WC={key:0,class:"rounded-md bg-muted/40 px-3 py-6 text-center text-sm text-muted-foreground"},KC={class:"space-y-1.5"},zC={class:"text-xs font-medium text-muted-foreground"},GC={key:0,class:"text-xs text-muted-foreground"},YC={class:"font-medium text-foreground"},XC={class:"space-y-1.5"},JC={class:"text-xs font-medium text-muted-foreground"},QC=["placeholder","title"],ZC={class:"text-xs text-muted-foreground"},eA={class:"flex justify-end gap-2"},tA=Q({__name:"AddSourceDialog",props:bs({modelName:{},providers:{},enabledFormats:{},chainByFormat:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:bs(["added"],["update:open"]),setup(e,{emit:t}){const{t:n}=Ht(),s=e,r=yo(e,"open"),o=t,a=encodeURIComponent,i=F(""),u=F(""),c=F(!1);function d(h,b){return b==="responses"?!!h.supportsResponses:h.formats.includes(b)}function f(h){const b=s.providers.find($=>$.id===h);return b?s.enabledFormats.filter($=>d(b,$)&&!(s.chainByFormat[$]??[]).includes(h)):[]}const p=te(()=>s.providers.filter(h=>s.enabledFormats.some(b=>d(h,b)&&!(s.chainByFormat[b]??[]).includes(h.id))).sort((h,b)=>h.name.localeCompare(b.name))),m={openai:"models.fmtOpenaiShort",anthropic:"models.fmtAnthropicShort",responses:"models.fmtResponsesShort"},v=te(()=>i.value?f(i.value).map(h=>n(m[h]??h)):[]),w=te(()=>!!i.value&&!c.value);De(r,h=>{var b;h&&(i.value=((b=p.value[0])==null?void 0:b.id)??"",u.value="")});async function C(){if(!w.value)return;const h=i.value,b=s.providers.find(R=>R.id===h);if(!h||!b)return;const $=f(h),k=u.value.trim();c.value=!0;try{let I=(await Promise.allSettled($.map(A=>Ne("POST",`/admin/models/${a(s.modelName)}/providers`,{format:A,providerId:h})))).filter(A=>A.status==="rejected").length;if(k){const A=s.enabledFormats.filter(N=>d(b,N)),M=await Promise.allSettled(A.map(N=>Ne("PUT",`/admin/models/${a(s.modelName)}/map`,{format:N,providerId:h,model:k})));I+=M.filter(N=>N.status==="rejected").length}I?Te(n("models.addSourcePartial"),"error"):Te(n("models.sourceAdded"),"success"),o("added"),r.value=!1}catch(R){Te(R.message,"error")}finally{c.value=!1}}return(h,b)=>(x(),D(l(Xa),{open:r.value,"onUpdate:open":b[3]||(b[3]=$=>r.value=$)},{default:y(()=>[g(l(Ja),{class:"max-w-md"},{default:y(()=>[S("div",VC,[S("span",UC,[g(l(es),{class:"h-4 w-4"})]),S("div",jC,[g(l(Qa),{class:"text-base"},{default:y(()=>[K(E(l(n)("models.addSourceTitle")),1)]),_:1}),g(l(Za),null,{default:y(()=>[K(E(l(n)("models.addSourceDesc")),1)]),_:1})])]),S("div",HC,[p.value.length?(x(),J(Ce,{key:1},[S("div",KC,[S("label",zC,E(l(n)("models.providerLabel")),1),g(l(Wr),{modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=$=>i.value=$)},{default:y(()=>[g(l(Kr),null,{default:y(()=>[g(l(zr),{placeholder:l(n)("models.providerPh")},null,8,["placeholder"])]),_:1}),g(l(Gr),null,{default:y(()=>[(x(!0),J(Ce,null,ut(p.value,$=>(x(),D(l(An),{key:$.id,value:$.id},{default:y(()=>[K(E($.name),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"]),v.value.length?(x(),J("p",GC,[K(E(l(n)("models.addSourceTargetsHint"))+" ",1),S("span",YC,E(v.value.join(" / ")),1)])):we("",!0)]),S("div",XC,[S("label",JC,E(l(n)("models.upstreamLabel")),1),zs(S("input",{"onUpdate:modelValue":b[1]||(b[1]=$=>u.value=$),type:"text",placeholder:l(n)("models.upstreamPh"),title:l(n)("models.upstreamHint"),spellcheck:"false",class:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 font-mono text-sm shadow-sm transition-colors placeholder:font-sans placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background"},null,8,QC),[[Vf,u.value]]),S("p",ZC,E(l(n)("models.upstreamHint")),1)])],64)):(x(),J("div",WC,E(l(n)("models.addSourceNone")),1)),S("div",eA,[g(l(Pe),{variant:"outline",disabled:c.value,onClick:b[2]||(b[2]=$=>r.value=!1)},{default:y(()=>[K(E(l(n)("common.cancel")),1)]),_:1},8,["disabled"]),g(l(Pe),{disabled:!w.value||!p.value.length,onClick:C},{default:y(()=>[c.value?(x(),D(l(_t),{key:0,class:"h-4 w-4 animate-spin"})):(x(),D(l(es),{key:1,class:"h-4 w-4"})),K(" "+E(l(n)("models.addToChain")),1)]),_:1},8,["disabled"])])])]),_:1})]),_:1},8,["open"]))}}),nA={class:"space-y-4"},sA={class:"flex h-11 w-11 items-center justify-center rounded-xl bg-primary/15 text-primary"},rA={class:"space-y-1"},oA={class:"font-medium"},aA={class:"max-w-sm text-sm text-muted-foreground"},lA={class:"flex flex-wrap items-center gap-2"},iA={class:"relative min-w-[180px] flex-1"},uA={class:"text-xs text-muted-foreground"},cA={key:0,class:"py-6 text-center text-sm text-muted-foreground"},dA={key:1,class:"py-6 text-center text-sm text-destructive"},fA={key:0,class:"relative overflow-hidden rounded-lg border border-border/60 bg-card"},pA={class:"flex items-center gap-2.5 border-b border-border/60 bg-muted/30 px-3 py-2"},mA={class:"text-sm font-semibold"},hA={class:"ml-auto inline-flex items-center rounded-md bg-primary/15 px-1.5 py-0.5 text-xs font-medium tabular-nums text-primary"},gA={class:"divide-y divide-border"},vA={class:"flex items-center gap-3"},yA=["aria-expanded","aria-label","onClick"],bA={class:"flex min-w-0 flex-1 flex-col items-start"},_A={class:"flex w-full items-center gap-2"},wA={class:"truncate font-mono text-sm font-medium"},xA={class:"w-full truncate text-xs text-muted-foreground"},kA={class:"flex shrink-0 items-center gap-1.5"},SA=["disabled","title","aria-label","onClick"],CA={key:0,class:"mt-2 space-y-3 rounded-md border bg-muted/30 p-2"},AA={class:"flex items-center gap-2 px-1"},EA={class:"text-xs font-semibold"},OA={class:"font-mono text-[11px] text-muted-foreground"},PA={class:"ml-auto flex items-center gap-1.5"},TA={key:0,class:"flex items-start gap-2 rounded bg-muted px-2 py-1.5 text-xs text-muted-foreground"},$A={class:"shrink-0 font-medium"},IA={key:1,class:"px-1 py-1 text-xs text-muted-foreground"},MA={class:"w-4 shrink-0 text-right text-xs text-muted-foreground"},RA={class:"flex items-center gap-1.5 text-sm"},LA={key:2,class:"flex items-center gap-1"},DA=["value","placeholder","aria-label","title","onKeyup","onBlur"],FA=["title","onClick"],NA={key:7,class:"flex items-center gap-1"},qA=["value","placeholder","aria-label","title","onInput","onKeyup","onBlur"],BA=["title","onClick"],VA={class:"ml-auto flex items-center gap-0.5 opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100"},UA={key:0,class:"flex justify-center pt-1"},jA={class:"relative overflow-hidden rounded-lg border border-border/60 bg-card"},HA={class:"flex items-center gap-2.5 border-b border-border/60 bg-muted/30 px-3 py-2"},WA={class:"text-sm font-semibold"},KA={class:"ml-auto inline-flex items-center rounded-md bg-muted px-1.5 py-0.5 text-xs font-medium tabular-nums text-muted-foreground"},zA={key:0,class:"divide-y divide-border"},GA={key:0,class:"py-3 text-center text-xs text-muted-foreground"},YA={class:"flex min-w-0 items-center gap-2"},XA={class:"truncate font-mono text-sm"},JA={class:"hidden gap-1 sm:flex"},QA={class:"flex shrink-0 items-center gap-1.5"},ZA=["disabled","title","aria-label","onClick"],eE=Q({__name:"Models",setup(e){const{t}=Ht(),n=["openai","anthropic","responses"],s=F([]),r=F([]),o=F(""),a=F(!1),i=F(""),u=F(!0),c=F(new Set),d=F(!1),f=F(!1),p=F(!1),m=F(!1),v=F({}),w=F({}),C=F({}),h=F({}),b=F({}),$=F({}),k=F({}),R=F({}),I=F(""),A=F(null),M=F(!1),N={mounted:H=>H.focus()},z=F(null),Y=F(!1),W=encodeURIComponent;async function ue(){a.value=!0,o.value="";try{const[H,V]=await Promise.all([Ne("GET","/admin/models"),Ne("GET","/admin/providers")]);s.value=H.models,r.value=V.providers}catch(H){o.value=H.message}finally{a.value=!1}}const me=te(()=>new Map(r.value.map(H=>[H.id,H]))),X=te(()=>{const H=new Map;for(const V of r.value)for(const ee of V.discoveredModels??[]){const L=H.get(ee);L?L.push(V.id):H.set(ee,[V.id])}return H}),ce=te(()=>{const H=new Set;for(const ee of r.value)for(const L of ee.discoveredModels??[])H.add(L);for(const ee of s.value)H.add(ee.name);const V=ee=>({enabled:(ee==null?void 0:ee.enabled)??!1,chain:((ee==null?void 0:ee.providers)??[]).map(L=>({id:L.id,name:L.name,model:L.model}))});return[...H].map(ee=>{const L=s.value.find(Re=>Re.name===ee),ve=(X.value.get(ee)??[]).map(Re=>me.value.get(Re)).filter(Re=>!!Re).map(Re=>({id:Re.id,name:Re.name,formats:Re.formats,supportsResponses:Re.supportsResponses}));return{name:ee,openai:V(L==null?void 0:L.openai),anthropic:V(L==null?void 0:L.anthropic),responses:V(L==null?void 0:L.responses),offering:ve}})});function oe(H){return n.filter(V=>H[V].enabled)}function fe(H){return n.filter(V=>H.offering.some(ee=>Ye(ee,V)))}function ae(H){return fe(H).filter(V=>!H[V].enabled)}function Z(H,V){return H[V].enabled?"enabled":fe(H).includes(V)?"enableable":"unsupported"}function de(H,V){return H.offering.filter(ee=>Ye(ee,V)).map(ee=>ee.id)}const Be=te(()=>{const H=i.value.trim().toLowerCase();return ce.value.filter(V=>!H||V.name.toLowerCase().includes(H))}),lt=te(()=>Be.value.filter(H=>H.openai.enabled||H.anthropic.enabled||H.responses.enabled)),at=te(()=>Be.value.filter(H=>!(H.openai.enabled||H.anthropic.enabled||H.responses.enabled)&&fe(H).length>0));function st(H){const V=oe(H);return r.value.filter(ee=>V.some(L=>Ye(ee,L)&&!H[L].chain.some(ve=>ve.id===ee.id)))}function Je(H){const V={};for(const ee of n)V[ee]=H[ee].chain.map(L=>L.id);return V}function Ye(H,V){return V==="responses"?!!H.supportsResponses:H.formats.includes(V)}const Ve={openai:{key:"models.fmtOpenai",chip:"models.fmtOpenaiShort",endpoint:"/chat/completions"},anthropic:{key:"models.fmtAnthropic",chip:"models.fmtAnthropicShort",endpoint:"/messages"},responses:{key:"models.fmtResponses",chip:"models.fmtResponsesShort",endpoint:"/responses"}};function $e(H){return c.value.has(H)}function dt(H){const V=new Set(c.value);V.has(H)?V.delete(H):V.add(H),c.value=V}function ge(H){return H.length?H.map(V=>V.name).join(" → "):t("models.noSourcesShort")}function _(H){return oe(H).map(V=>`${t(Ve[V].chip)}: ${ge(H[V].chain)}`).join(" · ")}function T(H){const V=me.value.get(H);if(!V)return[];const ee=V.formats.filter(L=>L==="openai"||L==="anthropic");return V.supportsResponses&&ee.push("responses"),ee}function j(H,V){const ee=H[V].chain;if(!ee.length)return!1;const L=ve=>{var Re;return((Re=me.value.get(ve))==null?void 0:Re.discoveredModels)??[]};return!ee.some(ve=>L(ve.id).includes(ve.model??H.name))&&ee.some(ve=>L(ve.id).length>0)}function le(H){return oe(H).some(V=>j(H,V))}function ne(H){let V=!1,ee=null,L=null;for(const ve of oe(H)){const Re=`${H.name}:${ve}`;h.value[Re]&&(V=!0);const Ze=k.value[Re];Ze!=null&&Ze.ok&&!ee?ee=Ze:Ze&&!Ze.ok&&!L&&(L=Ze)}return V?{state:"testing"}:ee?{state:"ok",provider:ee.provider}:L?{state:"fail",status:L.status,error:L.error}:null}function re(H,V){const ee=Z(H,V);return ee==="enabled"?`border-transparent ${Kt[V].solid} text-white shadow-sm`:ee==="enableable"?"border-dashed border-input text-muted-foreground hover:bg-accent hover:text-accent-foreground":"border-transparent text-muted-foreground/40"}function O(H,V){const ee=Z(H,V);return ee==="enabled"?`${t(Ve[V].key)} · ${t("models.chipOn")}`:ee==="enableable"?`${t(Ve[V].key)} · ${t("models.chipOff")}`:`${t(Ve[V].key)} · ${t("models.chipNa")}`}async function P(H,V){H[V].enabled?await pe(H,V):await q(H,V)}async function q(H,V){const ee=`${H.name}:${V}`;w.value[ee]=!0;const L=H.offering.filter(Ze=>Ye(Ze,V)),ve=L.map(Ze=>({id:Ze.id,name:Ze.name})),Re=s.value.find(Ze=>Ze.name===H.name);if(Re){Re[V].enabled=!0;for(const Ze of ve)Re[V].providers.find(cn=>cn.id===Ze.id)||Re[V].providers.push(Ze)}else s.value.push({name:H.name,openai:{enabled:V==="openai",providers:V==="openai"?ve:[]},anthropic:{enabled:V==="anthropic",providers:V==="anthropic"?ve:[]},responses:{enabled:V==="responses",providers:V==="responses"?ve:[]}});try{await Ne("POST","/admin/models",{name:H.name,format:V,providers:L.map(Ze=>Ze.id)}),Te(t("models.enabledToast",{name:`${H.name} [${V}]`}),"success")}catch(Ze){await ue(),Te(Ze.message,"error")}finally{w.value[ee]=!1}}async function U(){if(f.value)return;f.value=!0;const H=[];for(const L of at.value)for(const ve of ae(L))H.push({name:L.name,fmt:ve,providers:de(L,ve)});for(const L of H)w.value[`${L.name}:${L.fmt}`]=!0;const V=await Promise.allSettled(H.map(L=>Ne("POST","/admin/models",{name:L.name,format:L.fmt,providers:L.providers})));for(const L of H)w.value[`${L.name}:${L.fmt}`]=!1;if(await ue(),f.value=!1,!H.length)return;const ee=V.filter(L=>L.status==="rejected").length;ee?ee===H.length?Te(t("models.enableAllFailed"),"error"):Te(t("models.enableAllPartial",{failed:ee}),"error"):Te(t("models.enableAllDone"),"success")}async function pe(H,V){const ee=s.value.find(L=>L.name===H.name);ee&&(ee[V].enabled=!1);try{await Ne("POST",`/admin/models/${W(H.name)}/disable`,{format:V}),Te(t("models.disabledToast",{name:`${H.name} [${V}]`}),"success")}catch(L){await ue(),Te(L.message,"error")}}function se(H){z.value=H,Y.value=!0}async function B(H,V){const ee=`${H.name}:${V}`;if(!h.value[ee]){h.value[ee]=!0;try{const L=await Ne("POST",`/admin/models/${W(H.name)}/test?format=${V}`);k.value[ee]=L.result}catch(L){k.value[ee]={ok:!1,status:0,format:V,error:L.message}}finally{h.value[ee]=!1}}}async function G(H){const V=oe(H);V.length&&await Promise.all(V.map(ee=>B(H,ee)))}async function _e(H,V,ee){const L=`${H.name}:${V}:${ee.id}`;if(!b.value[L]){b.value[L]=!0;try{const ve=await Ne("POST",`/admin/models/${W(H.name)}/providers/${W(ee.id)}/test?format=${V}`);$.value[L]=ve.result}catch(ve){$.value[L]={ok:!1,status:0,format:V,error:ve.message}}finally{b.value[L]=!1}}}async function Ae(){const H=z.value;if(H){v.value[H.name]=!0;try{await Ne("DELETE",`/admin/models/${W(H.name)}`),s.value=s.value.filter(V=>V.name!==H.name),Te(t("models.removedToast",{name:H.name}),"success"),Y.value=!1}catch(V){Te(V.message,"error")}finally{v.value[H.name]=!1}}}async function Me(H,V,ee){const L=s.value.find(Re=>Re.name===H.name);if(!L)return;const ve=L[ee].providers.slice();L[ee].providers=V.map(Re=>ve.find(Ze=>Ze.id===Re)).filter(Boolean);try{await Ne("PUT",`/admin/models/${W(H.name)}/priority`,{format:ee,providers:V})}catch(Re){L[ee].providers=ve,Te(Re.message,"error")}}function Qe(H,V,ee){if(V===0)return;const L=H[ee].chain.map(ve=>ve.id);[L[V-1],L[V]]=[L[V],L[V-1]],Me(H,L,ee)}function je(H,V,ee){const L=H[ee].chain.map(ve=>ve.id);V>=L.length-1||([L[V+1],L[V]]=[L[V],L[V+1]],Me(H,L,ee))}function Wt(H){A.value=H,M.value=!0}function At(H,V,ee){return`${H.name}:${V}:${ee.id}`}function Ts(H,V,ee){return I.value===At(H,V,ee)}function Sr(H,V,ee){const L=At(H,V,ee);R.value[L]=ee.model??"",I.value=L}function Nt(H,V,ee){return R.value[At(H,V,ee)]??""}function nn(H,V,ee,L){R.value[At(H,V,ee)]=L}async function So(H,V,ee){const L=At(H,V,ee);I.value="";const ve=(R.value[L]??"").trim(),Re=(ee.model??"").trim();if(ve===Re)return;const Ze=s.value.find(cn=>cn.name===H.name);if(Ze){const cn=Ze[V].providers.findIndex(Ao=>Ao.id===ee.id);cn>=0&&(Ze[V].providers[cn].model=ve||void 0)}R.value[L]=ve;try{await Ne("PUT",`/admin/models/${W(H.name)}/map`,{format:V,providerId:ee.id,model:ve}),Te(t("models.mapSaved"),"success")}catch(cn){await ue(),Te(cn.message,"error")}}function Co(H,V,ee,L){R.value[At(H,V,ee)]=ee.model??"",L.blur()}const el=F(""),Cr=F("");function $s(H){var V;return((V=me.value.get(H))==null?void 0:V.rpm)??0}function Lm(H){return el.value===H.id}function gu(H){el.value=H.id,Cr.value=$s(H.id)?String($s(H.id)):""}function Dm(H){Cr.value=H}async function Fm(H,V){const ee=me.value.get(H);ee&&await Ne("PUT",`/admin/providers/${H}`,{name:ee.name,baseUrlOpenai:ee.baseUrlOpenai,baseUrlAnthropic:ee.baseUrlAnthropic,formats:ee.formats,supportsResponses:ee.supportsResponses??!1,rpm:V})}async function Nm(H){const V=H.id;el.value="";const ee=Number(Cr.value),L=Number.isFinite(ee)&&ee>0?Math.floor(ee):0;if(L!==$s(V))try{await Fm(V,L),r.value=r.value.map(ve=>ve.id===V?{...ve,rpm:L}:ve),Te(L?t("sources.rpmSaved",{n:L}):t("sources.rpmCleared"),L?"success":"default")}catch(ve){Te(ve.message,"error")}}function qm(H,V){Cr.value=$s(H.id)?String($s(H.id)):"",V.blur()}async function Bm(H,V,ee){const L=`${H.name}:${V}:${ee}`;if(C.value[L])return;C.value[L]=!0;const ve=s.value.find(Re=>Re.name===H.name);ve&&(ve[ee].providers=ve[ee].providers.filter(Re=>Re.id!==V));try{await Ne("DELETE",`/admin/models/${W(H.name)}/providers/${V}?format=${ee}`),Te(t("models.sourceRemoved"),"success")}catch(Re){await ue(),Te(Re.message,"error")}finally{C.value[L]=!1}}async function Vm(){if(d.value||!r.value.length)return;d.value=!0;const H=r.value,V=await Promise.allSettled(H.map(L=>Ne("POST",`/admin/providers/${L.id}/discover`)));await ue();const ee=V.map((L,ve)=>L.status==="rejected"?H[ve].name:null).filter(L=>!!L);ee.length?ee.length===H.length?Te(t("sources.refreshAllFailed"),"error"):Te(t("sources.refreshAllPartial",{failed:ee.join("、")}),"error"):Te(t("sources.refreshAllDone"),"success"),d.value=!1}return mt(ue),(H,V)=>{var ee;return x(),J("div",nA,[!a.value&&!r.value.length?(x(),D(l(pn),{key:0},{default:y(()=>[g(l(mn),{class:"flex flex-col items-center gap-3 py-12 text-center"},{default:y(()=>[S("span",sA,[g(l(vi),{class:"h-5 w-5"})]),S("div",rA,[S("div",oA,E(l(t)("models.empty")),1),S("p",aA,E(l(t)("models.emptyHint")),1)]),g(l(Pe),{onClick:V[0]||(V[0]=L=>p.value=!0)},{default:y(()=>[g(l(es),{class:"h-4 w-4"}),K(E(l(t)("models.addSource")),1)]),_:1})]),_:1})]),_:1})):(x(),D(l(pn),{key:1},{default:y(()=>[g(l(In),null,{default:y(()=>[g(l(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[g(l(Am),{class:"h-4 w-4 text-primary"}),K(" "+E(l(t)("models.title")),1)]),_:1}),g(l(ys),null,{default:y(()=>[K(E(l(t)("models.desc")),1)]),_:1})]),_:1}),g(l(mn),{class:"space-y-4"},{default:y(()=>[S("div",lA,[S("div",iA,[g(l(Tm),{class:"absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),g(l(bt),{modelValue:i.value,"onUpdate:modelValue":V[1]||(V[1]=L=>i.value=L),placeholder:l(t)("models.searchPh"),class:"pl-8"},null,8,["modelValue","placeholder"])]),g(l(Pe),{size:"sm",onClick:V[2]||(V[2]=L=>m.value=!0)},{default:y(()=>[g(l(es),{class:"h-4 w-4"}),K(E(l(t)("models.addModels")),1)]),_:1}),g(l(Pe),{variant:"outline",size:"sm",disabled:d.value,onClick:Vm},{default:y(()=>[d.value?(x(),D(l(_t),{key:0,class:"h-4 w-4 animate-spin"})):(x(),D(l(po),{key:1,class:"h-4 w-4"})),K(E(l(t)("sources.refreshAll")),1)]),_:1},8,["disabled"]),g(l(Pe),{variant:"outline",size:"sm",onClick:V[3]||(V[3]=L=>p.value=!0)},{default:y(()=>[g(l(vi),{class:"h-4 w-4"}),K(E(l(t)("models.manageSources")),1)]),_:1})]),S("p",uA,E(l(t)("models.chipLegend")),1),a.value?(x(),J("p",cA,E(l(t)("common.loading")),1)):o.value?(x(),J("p",dA,E(o.value),1)):(x(),J(Ce,{key:2},[lt.value.length?(x(),J("section",fA,[V[15]||(V[15]=S("div",{class:"pointer-events-none absolute inset-y-0 left-0 w-1 bg-primary","aria-hidden":"true"},null,-1)),S("div",pA,[V[12]||(V[12]=S("span",{class:"h-2 w-2 shrink-0 rounded-full bg-primary"},null,-1)),S("span",mA,E(l(t)("models.enabledSection")),1),S("span",hA,E(lt.value.length),1)]),S("div",gA,[(x(!0),J(Ce,null,ut(lt.value,L=>{var ve,Re,Ze,cn,Ao;return x(),J("div",{key:L.name,class:"px-3 py-2.5"},[S("div",vA,[S("button",{type:"button",class:"flex min-w-0 flex-1 items-center gap-2 text-left","aria-expanded":$e(L.name),"aria-label":$e(L.name)?l(t)("models.collapseAria"):l(t)("models.expandAria"),onClick:ke=>dt(L.name)},[g(l(Cm),{class:xe(["h-4 w-4 shrink-0 text-muted-foreground transition-transform",{"rotate-90":$e(L.name)}])},null,8,["class"]),S("span",bA,[S("span",_A,[S("span",wA,E(L.name),1),((ve=ne(L))==null?void 0:ve.state)==="testing"?(x(),D(l(ht),{key:0,variant:"muted",class:"gap-1"},{default:y(()=>[g(l(_t),{class:"h-3 w-3 animate-spin"}),K(E(l(t)("models.probeTesting")),1)]),_:1})):((Re=ne(L))==null?void 0:Re.state)==="ok"?(x(),D(l(ht),{key:1,variant:"success",title:l(t)("models.probeOkHint",{name:((Ze=ne(L))==null?void 0:Ze.provider)??""})},{default:y(()=>[K(E(l(t)("models.probeOk")),1)]),_:1},8,["title"])):((cn=ne(L))==null?void 0:cn.state)==="fail"?(x(),D(l(ht),{key:2,variant:"destructive",title:((Ao=ne(L))==null?void 0:Ao.error)||l(t)("models.probeFailHint")},{default:y(()=>{var ke;return[K(E(l(t)("models.probeFail"))+" · "+E(((ke=ne(L))==null?void 0:ke.status)||"?"),1)]}),_:2},1032,["title"])):le(L)?(x(),D(l(ht),{key:3,variant:"secondary",title:l(t)("models.delistedHint")},{default:y(()=>[K(E(l(t)("models.delisted")),1)]),_:1},8,["title"])):we("",!0)]),S("span",xA,E(_(L)),1)])],8,yA),S("div",kA,[(x(),J(Ce,null,ut(n,ke=>S("button",{key:ke,type:"button",disabled:Z(L,ke)==="unsupported"||w.value[`${L.name}:${ke}`],title:O(L,ke),"aria-label":O(L,ke),class:xe(["inline-flex items-center gap-1 rounded-md border px-2 py-0.5 text-xs font-medium transition-colors disabled:cursor-not-allowed",re(L,ke)]),onClick:ds=>P(L,ke)},[w.value[`${L.name}:${ke}`]?(x(),D(l(_t),{key:0,class:"h-3 w-3 animate-spin"})):(x(),J("span",{key:1,class:xe(["rounded-full",Z(L,ke)==="enabled"?"h-1.5 w-1.5 bg-current":Z(L,ke)==="enableable"?"h-1.5 w-1.5 border border-current":"h-1.5 w-1.5"])},null,2)),K(" "+E(l(t)(Ve[ke].chip)),1)],10,SA)),64))]),g(l(fi),null,{default:y(()=>[g(l(pi),null,{default:y(()=>[g(l(Pe),{variant:"ghost",size:"icon",class:"h-8 w-8 shrink-0 text-muted-foreground","aria-label":l(t)("models.moreActions")},{default:y(()=>[g(l(gi),{class:"h-4 w-4"})]),_:1},8,["aria-label"])]),_:1}),g(l(mi),{align:"end"},{default:y(()=>{var ke;return[g(l(Hn),{disabled:((ke=ne(L))==null?void 0:ke.state)==="testing"||!oe(L).length,onSelect:ds=>G(L)},{default:y(()=>{var ds;return[((ds=ne(L))==null?void 0:ds.state)==="testing"?(x(),D(l(_t),{key:0,class:"animate-spin"})):(x(),D(l(Bo),{key:1})),K(" "+E(l(t)("models.testModel")),1)]}),_:2},1032,["disabled","onSelect"]),g(l(hi)),g(l(Hn),{class:"text-destructive focus:bg-destructive/10 focus:text-destructive",onSelect:ds=>se(L)},{default:y(()=>[g(l(yi)),K(" "+E(l(t)("models.removeModel")),1)]),_:1},8,["onSelect"])]}),_:2},1024)]),_:2},1024)]),$e(L.name)?(x(),J("div",CA,[(x(!0),J(Ce,null,ut(oe(L),ke=>{var ds,vu,yu;return x(),J("div",{key:ke,class:"space-y-1"},[S("div",AA,[S("span",{class:xe(["h-2 w-2 rounded-full",l(Kt)[ke].solid])},null,2),S("span",EA,E(l(t)(Ve[ke].key)),1),S("span",OA,E(Ve[ke].endpoint),1),S("div",PA,[(ds=k.value[`${L.name}:${ke}`])!=null&&ds.ok?(x(),D(l(ht),{key:0,variant:"success",title:l(t)("models.probeOkHint",{name:((vu=k.value[`${L.name}:${ke}`])==null?void 0:vu.provider)??""})},{default:y(()=>[K(E(l(t)("models.probeOk")),1)]),_:1},8,["title"])):k.value[`${L.name}:${ke}`]?(x(),D(l(ht),{key:1,variant:"destructive",title:((yu=k.value[`${L.name}:${ke}`])==null?void 0:yu.error)||l(t)("models.probeFailHint")},{default:y(()=>{var qe;return[K(E(l(t)("models.probeFail"))+" · "+E(((qe=k.value[`${L.name}:${ke}`])==null?void 0:qe.status)||"?"),1)]}),_:2},1032,["title"])):we("",!0),g(l(Pe),{variant:"ghost",size:"sm",class:"h-6 gap-1 px-2 text-xs",disabled:h.value[`${L.name}:${ke}`],onClick:qe=>B(L,ke)},{default:y(()=>[h.value[`${L.name}:${ke}`]?(x(),D(l(_t),{key:0,class:"h-3 w-3 animate-spin"})):(x(),D(l(Bo),{key:1,class:"h-3 w-3"})),K(" "+E(l(t)("models.testModel")),1)]),_:2},1032,["disabled","onClick"])])]),j(L,ke)&&!k.value[`${L.name}:${ke}`]?(x(),J("div",TA,[S("span",$A,E(l(t)("models.delisted")),1),S("span",null,E(l(t)("models.delistedHint")),1)])):we("",!0),L[ke].chain.length?we("",!0):(x(),J("div",IA,E(l(t)("models.noSources")),1)),(x(!0),J(Ce,null,ut(L[ke].chain,(qe,Zs)=>{var bu,_u;return x(),J("div",{key:qe.id,class:"group flex items-center gap-2 rounded px-1 py-1 hover:bg-muted/40"},[S("span",MA,E(Zs+1)+".",1),S("span",RA,[S("span",{class:xe(["h-1.5 w-1.5 rounded-full",l(ei)(qe.id).solid])},null,2),K(" "+E(qe.name),1)]),(x(!0),J(Ce,null,ut(T(qe.id),rt=>(x(),D(l(ht),{key:rt,variant:"secondary",class:xe(l(Kt)[rt].badge)},{default:y(()=>[K(E(l(t)(Ve[rt].chip)),1)]),_:2},1032,["class"]))),128)),Zs===0?(x(),D(l(ht),{key:0,variant:"default"},{default:y(()=>[K(E(l(t)("models.primary")),1)]),_:1})):(x(),D(l(ht),{key:1,variant:"muted"},{default:y(()=>[K(E(l(t)("models.fallback")),1)]),_:1})),Lm(qe)?(x(),J("span",LA,[g(l(Hr),{class:"h-3 w-3 text-muted-foreground"}),zs(S("input",{type:"number",min:"0",inputmode:"numeric",value:Cr.value,placeholder:l(t)("sources.rpmPh"),"aria-label":l(t)("sources.rpmLabel"),title:l(t)("sources.rpmHint"),class:"h-6 w-16 rounded-md border border-input bg-background px-2 font-mono text-xs shadow-sm transition-colors placeholder:font-sans placeholder:text-muted-foreground/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background",onInput:V[4]||(V[4]=rt=>Dm(rt.target.value)),onKeyup:[V[5]||(V[5]=Bs(rt=>rt.target.blur(),["enter"])),Bs(rt=>qm(qe,rt.target),["esc"])],onBlur:rt=>Nm(qe)},null,40,DA),[[N]])])):$s(qe.id)>0?(x(),J("button",{key:3,type:"button",title:l(t)("sources.rpmBadgeHint"),class:"inline-flex items-center gap-1 rounded-full border border-input bg-background px-2 py-0.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:rt=>gu(qe)},[g(l(Hr),{class:"h-3 w-3"}),K(" "+E(l(t)("sources.rpmBadge",{n:$s(qe.id)})),1)],8,FA)):we("",!0),b.value[`${L.name}:${ke}:${qe.id}`]?(x(),D(l(ht),{key:4,variant:"muted",class:"gap-1"},{default:y(()=>[g(l(_t),{class:"h-3 w-3 animate-spin"}),K(E(l(t)("models.probeTesting")),1)]),_:1})):(bu=$.value[`${L.name}:${ke}:${qe.id}`])!=null&&bu.ok?(x(),D(l(ht),{key:5,variant:"success",title:l(t)("models.probeOkHint",{name:qe.name})},{default:y(()=>[K(E(l(t)("models.probeOk")),1)]),_:1},8,["title"])):$.value[`${L.name}:${ke}:${qe.id}`]?(x(),D(l(ht),{key:6,variant:"destructive",title:((_u=$.value[`${L.name}:${ke}:${qe.id}`])==null?void 0:_u.error)||l(t)("models.probeFailHint")},{default:y(()=>{var rt;return[K(E(l(t)("models.probeFail"))+" · "+E(((rt=$.value[`${L.name}:${ke}:${qe.id}`])==null?void 0:rt.status)||"?"),1)]}),_:2},1032,["title"])):we("",!0),Ts(L,ke,qe)?(x(),J("div",NA,[V[13]||(V[13]=S("span",{class:"text-xs text-muted-foreground"},"→",-1)),zs(S("input",{type:"text",value:Nt(L,ke,qe),placeholder:l(t)("models.upstreamPh"),"aria-label":l(t)("models.upstreamLabel"),title:l(t)("models.upstreamHint"),spellcheck:"false",class:"h-6 w-40 rounded-md border border-input bg-background px-2 font-mono text-xs shadow-sm transition-colors placeholder:font-sans placeholder:text-muted-foreground/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background",onInput:rt=>nn(L,ke,qe,rt.target.value),onKeyup:[V[6]||(V[6]=Bs(rt=>rt.target.blur(),["enter"])),Bs(rt=>Co(L,ke,qe,rt.target),["esc"])],onBlur:rt=>So(L,ke,qe)},null,40,qA),[[N]])])):qe.model?(x(),J("button",{key:8,type:"button",title:l(t)("models.upstreamHint"),class:"inline-flex items-center gap-1 rounded border border-transparent px-1.5 py-0.5 font-mono text-xs text-muted-foreground transition-colors hover:border-border hover:bg-background hover:text-foreground",onClick:rt=>Sr(L,ke,qe)},[V[14]||(V[14]=S("span",null,"→",-1)),K(E(qe.model),1)],8,BA)):we("",!0),S("div",VA,[g(l(Pe),{variant:"ghost",size:"icon",class:"h-7 w-7",disabled:Zs===0,"aria-label":l(t)("models.moveUpAria"),onClick:rt=>Qe(L,Zs,ke)},{default:y(()=>[g(l(Uk),{class:"h-4 w-4"})]),_:1},8,["disabled","aria-label","onClick"]),g(l(Pe),{variant:"ghost",size:"icon",class:"h-7 w-7",disabled:Zs===L[ke].chain.length-1,"aria-label":l(t)("models.moveDownAria"),onClick:rt=>je(L,Zs,ke)},{default:y(()=>[g(l(Vk),{class:"h-4 w-4"})]),_:1},8,["disabled","aria-label","onClick"]),g(l(fi),null,{default:y(()=>[g(l(pi),null,{default:y(()=>[g(l(Pe),{variant:"ghost",size:"icon",class:"h-7 w-7 text-muted-foreground","aria-label":l(t)("models.moreActions")},{default:y(()=>[g(l(gi),{class:"h-4 w-4"})]),_:1},8,["aria-label"])]),_:1}),g(l(mi),{align:"end"},{default:y(()=>[g(l(Hn),{disabled:b.value[`${L.name}:${ke}:${qe.id}`],onSelect:rt=>_e(L,ke,qe)},{default:y(()=>[b.value[`${L.name}:${ke}:${qe.id}`]?(x(),D(l(_t),{key:0,class:"animate-spin"})):(x(),D(l(Bo),{key:1})),K(" "+E(l(t)("models.testSource")),1)]),_:2},1032,["disabled","onSelect"]),g(l(Hn),{onSelect:rt=>Sr(L,ke,qe)},{default:y(()=>[g(l(Om),{class:"h-4 w-4"}),K(" "+E(l(t)("models.editUpstream")),1)]),_:1},8,["onSelect"]),g(l(Hn),{onSelect:rt=>gu(qe)},{default:y(()=>[g(l(Hr),{class:"h-4 w-4"}),K(" "+E(l(t)("sources.rpmLabel")),1)]),_:1},8,["onSelect"]),g(l(hi)),g(l(Hn),{class:"text-destructive focus:bg-destructive/10 focus:text-destructive",onSelect:rt=>Bm(L,qe.id,ke)},{default:y(()=>[g(l(yi),{class:"h-4 w-4"}),K(" "+E(l(t)("models.removeSource")),1)]),_:1},8,["onSelect"])]),_:2},1024)]),_:2},1024)])])}),128))])}),128)),st(L).length?(x(),J("div",UA,[g(l(Pe),{variant:"outline",size:"sm",class:"h-7 gap-1 border-dashed text-muted-foreground",onClick:ke=>Wt(L)},{default:y(()=>[g(l(es),{class:"h-3.5 w-3.5"}),K(" "+E(l(t)("models.addSourceToChain")),1)]),_:1},8,["onClick"])])):we("",!0)])):we("",!0)])}),128))])])):we("",!0),S("section",jA,[V[17]||(V[17]=S("div",{class:"pointer-events-none absolute inset-y-0 left-0 w-1 bg-muted-foreground/40","aria-hidden":"true"},null,-1)),S("div",HA,[S("button",{type:"button",class:"flex min-w-0 flex-1 items-center gap-2.5 rounded px-1 py-0.5 text-left hover:bg-muted/50",onClick:V[7]||(V[7]=L=>u.value=!u.value)},[g(l(Ya),{class:xe(["h-4 w-4 shrink-0 text-muted-foreground transition-transform",{"-rotate-90":!u.value}])},null,8,["class"]),V[16]||(V[16]=S("span",{class:"h-2 w-2 shrink-0 rounded-full bg-muted-foreground/40"},null,-1)),S("span",WA,E(l(t)("models.availableSection")),1),S("span",KA,E(at.value.length),1)]),at.value.length?(x(),D(l(Pe),{key:0,size:"sm",variant:"secondary",class:"h-7 gap-1.5 px-2.5",disabled:f.value,onClick:U},{default:y(()=>[f.value?(x(),D(l(_t),{key:0,class:"h-3.5 w-3.5 animate-spin"})):(x(),D(l(Bo),{key:1,class:"h-3.5 w-3.5"})),K(" "+E(l(t)("models.enableAll")),1)]),_:1},8,["disabled"])):we("",!0)]),u.value?(x(),J("div",zA,[at.value.length?we("",!0):(x(),J("p",GA,E(l(t)("models.availableDesc")),1)),(x(!0),J(Ce,null,ut(at.value,L=>(x(),J("div",{key:L.name,class:"flex items-center justify-between gap-2 px-3 py-2"},[S("div",YA,[S("span",XA,E(L.name),1),S("div",JA,[(x(!0),J(Ce,null,ut(L.offering,ve=>(x(),D(l(ht),{key:ve.id,variant:"secondary",class:xe(l(ei)(ve.id).badge)},{default:y(()=>[K(E(ve.name),1)]),_:2},1032,["class"]))),128))])]),S("div",QA,[(x(),J(Ce,null,ut(n,ve=>S("button",{key:ve,type:"button",disabled:Z(L,ve)==="unsupported"||w.value[`${L.name}:${ve}`],title:O(L,ve),"aria-label":O(L,ve),class:xe(["inline-flex items-center gap-1 rounded-md border px-2 py-0.5 text-xs font-medium transition-colors disabled:cursor-not-allowed",re(L,ve)]),onClick:Re=>P(L,ve)},[w.value[`${L.name}:${ve}`]?(x(),D(l(_t),{key:0,class:"h-3 w-3 animate-spin"})):(x(),J("span",{key:1,class:xe(["rounded-full",Z(L,ve)==="enabled"?"h-1.5 w-1.5 bg-current":Z(L,ve)==="enableable"?"h-1.5 w-1.5 border border-current":"h-1.5 w-1.5"])},null,2)),K(" "+E(l(t)(Ve[ve].chip)),1)],10,ZA)),64))])]))),128))])):we("",!0)])],64))]),_:1})]),_:1})),g(oC,{open:p.value,"onUpdate:open":V[8]||(V[8]=L=>p.value=L),onChanged:ue},null,8,["open"]),g(BC,{open:m.value,"onUpdate:open":V[9]||(V[9]=L=>m.value=L),providers:r.value,onChanged:ue},null,8,["open","providers"]),g(tA,{open:M.value,"onUpdate:open":V[10]||(V[10]=L=>M.value=L),"model-name":((ee=A.value)==null?void 0:ee.name)??"",providers:r.value,"enabled-formats":A.value?oe(A.value):[],"chain-by-format":A.value?Je(A.value):{},onAdded:ue},null,8,["open","model-name","providers","enabled-formats","chain-by-format"]),g(hu,{open:Y.value,"onUpdate:open":V[11]||(V[11]=L=>Y.value=L),variant:"destructive",title:l(t)("models.removeModel"),description:z.value?l(t)("models.confirmRemove",{name:z.value.name}):"","confirm-text":l(t)("models.removeModel"),loading:z.value?!!v.value[z.value.name]:!1,onConfirm:Ae},null,8,["open","title","description","confirm-text","loading"])])}}}),tE={class:"relative w-full overflow-auto"},$m=Q({__name:"Table",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),J("div",tE,[S("table",{class:xe(l(Ge)("w-full caption-bottom text-sm",t.class))},[ie(n.$slots,"default")],2)]))}}),Im=Q({__name:"TableHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),J("thead",{class:xe(l(Ge)("[&_tr]:border-b",t.class))},[ie(n.$slots,"default")],2))}}),Mm=Q({__name:"TableBody",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),J("tbody",{class:xe(l(Ge)("[&_tr:last-child]:border-0",t.class))},[ie(n.$slots,"default")],2))}}),ur=Q({__name:"TableRow",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),J("tr",{class:xe(l(Ge)("border-b transition-colors hover:bg-muted/40 data-[state=selected]:bg-muted",t.class))},[ie(n.$slots,"default")],2))}}),rn=Q({__name:"TableHead",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),J("th",{class:xe(l(Ge)("h-10 px-3 text-left align-middle text-xs font-medium uppercase tracking-wide text-muted-foreground [&:has([role=checkbox])]:pr-0",t.class))},[ie(n.$slots,"default")],2))}}),zt=Q({__name:"TableCell",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),J("td",{class:xe(l(Ge)("p-3 align-middle [&:has([role=checkbox])]:pr-0",t.class))},[ie(n.$slots,"default")],2))}}),nE=Q({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Mt(e,t);return(o,a)=>(x(),D(l(ox),Pt($t(l(r))),{default:y(()=>[ie(o.$slots,"default")]),_:3},16))}}),sE=Q({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,s)=>(x(),D(l(gx),Pt($t(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),rE=Q({__name:"PopoverContent",props:{forceMount:{type:Boolean},memoDependencies:{},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},dir:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,r=te(()=>{const{class:a,...i}=n;return i}),o=Mt(r,s);return(a,i)=>(x(),D(l(mx),null,{default:y(()=>[g(l(fx),Ee(l(o),{class:l(Ge)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",n.class)}),{default:y(()=>[ie(a.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),oE={class:"flex items-center justify-between gap-2"},aE={class:"flex gap-1"},lE={class:"sr-only"},iE={class:"flex flex-wrap items-center gap-2"},uE={class:"relative flex-1 sm:max-w-sm"},cE={key:0,class:"inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-medium text-primary-foreground"},dE={class:"space-y-2.5"},fE={class:"flex items-center justify-between"},pE={class:"text-xs font-medium"},mE={class:"space-y-2"},hE={class:"grid grid-cols-[3.5rem_1fr] items-center gap-2"},gE={class:"text-xs text-muted-foreground"},vE={class:"grid grid-cols-[3.5rem_1fr] items-center gap-2"},yE={class:"text-xs text-muted-foreground"},bE={class:"grid grid-cols-[3.5rem_1fr] items-center gap-2"},_E={class:"text-xs text-muted-foreground"},wE={key:0,class:"flex flex-wrap items-center gap-1.5"},xE={class:"text-muted-foreground"},kE={class:"font-medium"},SE=["aria-label","onClick"],CE={class:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground"},AE={key:1,class:"space-y-2 rounded-lg border border-amber-500/30 bg-amber-500/5 p-3"},EE={class:"flex items-center gap-1.5 text-xs font-medium text-amber-700 dark:text-amber-400"},OE={class:"space-y-1.5"},PE={class:"font-medium"},TE={class:"break-all text-muted-foreground"},$E={key:2,class:"space-y-2 rounded-lg border border-orange-500/30 bg-orange-500/5 p-3"},IE={class:"flex items-center gap-1.5 text-xs font-medium text-orange-700 dark:text-orange-400"},ME={class:"space-y-1.5"},RE={class:"font-medium"},LE={class:"text-muted-foreground"},DE={key:3,class:"py-6 text-center text-sm text-muted-foreground"},FE={key:4,class:"py-6 text-center text-sm text-muted-foreground"},NE={key:5,class:"overflow-x-auto"},qE={class:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs"},BE={class:"font-mono text-muted-foreground"},VE={class:"font-medium"},UE={class:"text-muted-foreground"},jE={class:"text-muted-foreground"},HE={class:"break-all text-muted-foreground"},WE={class:"inline-flex items-center gap-1.5"},KE={class:"grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5 px-2 py-2 text-xs sm:grid-cols-[auto_1fr_auto_1fr]"},zE={class:"text-muted-foreground"},GE={class:"font-mono"},YE={class:"text-muted-foreground"},XE={class:"font-mono"},JE={class:"text-muted-foreground"},QE={class:"text-muted-foreground"},ZE={class:"break-all font-mono"},vd="myapikey.logs.filters",eO=Q({__name:"Logs",setup(e){const{t}=Ht(),n=F([]),s=F(!0),r=F(!1),o=F([]),a=F([]),i=F("all"),u=F("all"),c=F("all"),d=F(""),f=F(new Set),p=F(!1);try{const ae=JSON.parse(localStorage.getItem(vd)||"null");ae&&(typeof ae.model=="string"&&(i.value=ae.model),typeof ae.provider=="string"&&(u.value=ae.provider),(ae.status==="success"||ae.status==="error")&&(c.value=ae.status),typeof ae.query=="string"&&(d.value=ae.query))}catch{}De([i,u,c,d],()=>{try{localStorage.setItem(vd,JSON.stringify({model:i.value,provider:u.value,status:c.value,query:d.value}))}catch{}});let m;async function v(){r.value=!0;try{const[ae,Z]=await Promise.all([Ne("GET","/admin/logs").catch(()=>null),Ne("GET","/admin/circuit").catch(()=>null)]);ae&&(n.value=ae.logs),Z&&(o.value=Z.providers.filter(de=>de.state==="cooling"),a.value=Z.providers.filter(de=>de.rpm>0&&de.rpmUsed>=de.rpm&&de.state!=="cooling"))}finally{r.value=!1}}async function w(ae){await Ne("POST",`/admin/circuit/${ae}/reset`).catch(()=>{}),await v()}function C(){h(),m=window.setInterval(v,4e3)}function h(){m&&(clearInterval(m),m=void 0)}function b(){s.value=!s.value,s.value?(v(),C()):h()}function $(ae){return ae>=200&&ae<300?"success":ae>=400?"destructive":"muted"}function k(ae){var Z;return((Z=Kt[ae])==null?void 0:Z.badge)??""}function R(ae){return ae<1e3?`${ae}ms`:`${(ae/1e3).toFixed(1)}s`}function I(ae){if(ae<=0)return"0";const Z=Math.round(ae*1e3)/10;return Number.isInteger(Z)?String(Z):Z.toFixed(1)}function A(ae){return new Date(ae).toLocaleTimeString()}function M(ae){return new Date(ae).toLocaleString()}function N(ae){return`${ae.ts}-${ae.model}-${ae.provider}-${ae.status}-${ae.kind??"call"}`}function z(ae){return f.value.has(N(ae))}function Y(ae){const Z=new Set(f.value),de=N(ae);Z.has(de)?Z.delete(de):Z.add(de),f.value=Z}const W=te(()=>[...new Set(n.value.map(ae=>ae.model))].sort()),ue=te(()=>[...new Set(n.value.map(ae=>ae.provider))].sort()),me=te(()=>{const ae=d.value.trim().toLowerCase();return n.value.filter(Z=>!(i.value!=="all"&&Z.model!==i.value||u.value!=="all"&&Z.provider!==u.value||c.value==="success"&&!(Z.status>=200&&Z.status<300)||c.value==="error"&&Z.status<400||ae&&!(Z.model.toLowerCase().includes(ae)||Z.provider.toLowerCase().includes(ae))))}),X=te(()=>{const ae=me.value.filter(lt=>lt.kind!=="cooldown"),Z=ae.length,de=ae.filter(lt=>lt.status>=400).length,Be=Z?Math.round(ae.reduce((lt,at)=>lt+at.ms,0)/Z):0;return{total:Z,fail:de,avgMs:Be,errorRateStr:I(Z?de/Z:0)}}),ce=te(()=>(i.value!=="all"?1:0)+(u.value!=="all"?1:0)+(c.value!=="all"?1:0)),oe=te(()=>{const ae=[];return i.value!=="all"&&ae.push({key:"model",label:t("logs.filter.model"),value:i.value,clear:()=>i.value="all"}),u.value!=="all"&&ae.push({key:"provider",label:t("logs.filter.provider"),value:u.value,clear:()=>u.value="all"}),c.value!=="all"&&ae.push({key:"status",label:t("logs.filter.status"),value:c.value==="success"?t("logs.filter.success"):t("logs.filter.error"),clear:()=>c.value="all"}),ae});function fe(){i.value="all",u.value="all",c.value="all"}return mt(()=>{v(),C()}),yn(h),(ae,Z)=>(x(),D(l(pn),null,{default:y(()=>[g(l(In),null,{default:y(()=>[S("div",oE,[g(l(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[g(l(km),{class:"h-4 w-4 text-primary"}),K(" "+E(l(t)("logs.title"))+" ",1),s.value?(x(),D(l(ht),{key:0,variant:"success",class:"gap-1.5"},{default:y(()=>[Z[5]||(Z[5]=S("span",{class:"relative flex h-1.5 w-1.5"},[S("span",{class:"absolute inline-flex h-full w-full animate-ping rounded-full bg-current opacity-75"}),S("span",{class:"relative inline-flex h-1.5 w-1.5 rounded-full bg-current"})],-1)),K(" "+E(l(t)("logs.live")),1)]),_:1})):we("",!0)]),_:1}),S("div",aE,[g(l(Pe),{variant:"outline",size:"sm",disabled:r.value,onClick:v},{default:y(()=>[r.value?(x(),D(l(_t),{key:0,class:"h-3.5 w-3.5 animate-spin"})):(x(),D(l(po),{key:1,class:"h-3.5 w-3.5"})),S("span",lE,E(l(t)("logs.refresh")),1)]),_:1},8,["disabled"]),g(l(Pe),{variant:"outline",size:"sm","aria-pressed":s.value,onClick:b},{default:y(()=>[s.value?(x(),D(l(jk),{key:0,class:"h-3.5 w-3.5"})):(x(),D(l(Hk),{key:1,class:"h-3.5 w-3.5"})),K(" "+E(s.value?l(t)("logs.pause"):l(t)("logs.resume")),1)]),_:1},8,["aria-pressed"])])]),g(l(ys),null,{default:y(()=>[K(E(l(t)("logs.desc")),1)]),_:1})]),_:1}),g(l(mn),{class:"space-y-3"},{default:y(()=>[S("div",iE,[S("div",uE,[g(l(Tm),{class:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),g(l(bt),{modelValue:d.value,"onUpdate:modelValue":Z[0]||(Z[0]=de=>d.value=de),placeholder:l(t)("logs.searchPh"),class:"h-8 pl-8"},null,8,["modelValue","placeholder"])]),g(l(nE),{open:p.value,"onUpdate:open":Z[4]||(Z[4]=de=>p.value=de)},{default:y(()=>[g(l(sE),{"as-child":""},{default:y(()=>[g(l(Pe),{variant:"outline",size:"sm",class:"h-8 gap-1.5"},{default:y(()=>[g(l(Lk),{class:"h-3.5 w-3.5"}),K(" "+E(l(t)("logs.filter.title"))+" ",1),ce.value?(x(),J("span",cE,E(ce.value),1)):we("",!0)]),_:1})]),_:1}),g(l(rE),{align:"start",class:"w-72 p-3"},{default:y(()=>[S("div",dE,[S("div",fE,[S("span",pE,E(l(t)("logs.filter.title")),1),ce.value?(x(),J("button",{key:0,type:"button",class:"text-xs text-primary hover:underline",onClick:fe},E(l(t)("logs.filter.clear")),1)):we("",!0)]),S("div",mE,[S("div",hE,[S("span",gE,E(l(t)("logs.filter.model")),1),g(l(Wr),{modelValue:i.value,"onUpdate:modelValue":Z[1]||(Z[1]=de=>i.value=de)},{default:y(()=>[g(l(Kr),{class:"h-8 w-full"},{default:y(()=>[g(l(zr),{placeholder:l(t)("logs.filter.model")},null,8,["placeholder"])]),_:1}),g(l(Gr),null,{default:y(()=>[g(l(An),{value:"all"},{default:y(()=>[K(E(l(t)("logs.filter.all")),1)]),_:1}),(x(!0),J(Ce,null,ut(W.value,de=>(x(),D(l(An),{key:de,value:de},{default:y(()=>[K(E(de),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"])]),S("div",vE,[S("span",yE,E(l(t)("logs.filter.provider")),1),g(l(Wr),{modelValue:u.value,"onUpdate:modelValue":Z[2]||(Z[2]=de=>u.value=de)},{default:y(()=>[g(l(Kr),{class:"h-8 w-full"},{default:y(()=>[g(l(zr),{placeholder:l(t)("logs.filter.provider")},null,8,["placeholder"])]),_:1}),g(l(Gr),null,{default:y(()=>[g(l(An),{value:"all"},{default:y(()=>[K(E(l(t)("logs.filter.all")),1)]),_:1}),(x(!0),J(Ce,null,ut(ue.value,de=>(x(),D(l(An),{key:de,value:de},{default:y(()=>[K(E(de),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"])]),S("div",bE,[S("span",_E,E(l(t)("logs.filter.status")),1),g(l(Wr),{modelValue:c.value,"onUpdate:modelValue":Z[3]||(Z[3]=de=>c.value=de)},{default:y(()=>[g(l(Kr),{class:"h-8 w-full"},{default:y(()=>[g(l(zr),{placeholder:l(t)("logs.filter.status")},null,8,["placeholder"])]),_:1}),g(l(Gr),null,{default:y(()=>[g(l(An),{value:"all"},{default:y(()=>[K(E(l(t)("logs.filter.all")),1)]),_:1}),g(l(An),{value:"success"},{default:y(()=>[K(E(l(t)("logs.filter.success")),1)]),_:1}),g(l(An),{value:"error"},{default:y(()=>[K(E(l(t)("logs.filter.error")),1)]),_:1})]),_:1})]),_:1},8,["modelValue"])])])])]),_:1})]),_:1},8,["open"])]),oe.value.length?(x(),J("div",wE,[(x(!0),J(Ce,null,ut(oe.value,de=>(x(),J("span",{key:de.key,class:"inline-flex items-center gap-1 rounded-full border border-input bg-muted/40 py-0.5 pl-2.5 pr-1 text-xs"},[S("span",xE,E(de.label)+":",1),S("span",kE,E(de.value),1),S("button",{type:"button",class:"rounded-full p-0.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground","aria-label":l(t)("logs.filter.remove",{label:de.label}),onClick:de.clear},[g(l(mu),{class:"h-3 w-3"})],8,SE)]))),128)),S("button",{type:"button",class:"text-xs text-muted-foreground hover:text-foreground",onClick:fe},E(l(t)("logs.filter.clear")),1)])):we("",!0),S("div",CE,[S("span",null,E(l(t)("logs.summary.window",{n:X.value.total})),1),S("span",{class:xe({"text-destructive":X.value.fail>0})},E(l(t)("logs.summary.errorRate",{pct:X.value.errorRateStr})),3),S("span",null,E(l(t)("logs.summary.avgLatency",{ms:R(X.value.avgMs)})),1)]),o.value.length?(x(),J("div",AE,[S("div",EE,[g(l(Al),{class:"h-4 w-4"}),K(" "+E(l(t)("logs.circuit.stripTitle")),1)]),S("ul",OE,[(x(!0),J(Ce,null,ut(o.value,de=>(x(),J("li",{key:de.id,class:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs"},[S("span",PE,E(de.name),1),g(l(ht),{variant:"warning",class:"gap-1 whitespace-nowrap"},{default:y(()=>[g(l(Al),{class:"h-3 w-3"}),K(" "+E(l(t)("logs.circuit.remaining",{s:de.secondsLeft})),1)]),_:2},1024),S("span",TE,E(de.lastReason||l(t)("logs.circuit.reasonUnknown")),1),g(l(Pe),{variant:"outline",size:"sm",class:"ml-auto h-6 gap-1",onClick:Be=>w(de.id)},{default:y(()=>[g(l(po),{class:"h-3 w-3"}),K(" "+E(l(t)("logs.circuit.reset")),1)]),_:1},8,["onClick"])]))),128))])])):we("",!0),a.value.length?(x(),J("div",$E,[S("div",IE,[g(l(Hr),{class:"h-4 w-4"}),K(" "+E(l(t)("logs.pacing.stripTitle")),1)]),S("ul",ME,[(x(!0),J(Ce,null,ut(a.value,de=>(x(),J("li",{key:de.id,class:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs"},[S("span",RE,E(de.name),1),g(l(ht),{variant:"outline",class:"gap-1 whitespace-nowrap"},{default:y(()=>[g(l(Hr),{class:"h-3 w-3"}),K(" "+E(l(t)("logs.pacing.at",{used:de.rpmUsed,cap:de.rpm})),1)]),_:2},1024),S("span",LE,E(l(t)("logs.pacing.reason")),1)]))),128))])])):we("",!0),n.value.length?me.value.length?(x(),J("div",NE,[g(l($m),null,{default:y(()=>[g(l(Im),null,{default:y(()=>[g(l(ur),null,{default:y(()=>[g(l(rn),{class:"w-8"}),g(l(rn),null,{default:y(()=>[K(E(l(t)("logs.col.time")),1)]),_:1}),g(l(rn),null,{default:y(()=>[K(E(l(t)("logs.col.model")),1)]),_:1}),g(l(rn),null,{default:y(()=>[K(E(l(t)("logs.col.provider")),1)]),_:1}),g(l(rn),null,{default:y(()=>[K(E(l(t)("logs.col.format")),1)]),_:1}),g(l(rn),{class:"text-right"},{default:y(()=>[K(E(l(t)("logs.col.latency")),1)]),_:1}),g(l(rn),{class:"text-right"},{default:y(()=>[K(E(l(t)("logs.col.status")),1)]),_:1})]),_:1})]),_:1}),g(l(Mm),null,{default:y(()=>[(x(!0),J(Ce,null,ut(me.value,de=>(x(),J(Ce,{key:N(de)},[de.kind==="cooldown"?(x(),D(l(ur),{key:0,class:"bg-amber-500/5 hover:bg-amber-500/10"},{default:y(()=>[g(l(zt),{colspan:"7",class:"py-2"},{default:y(()=>[S("div",qE,[S("span",BE,E(A(de.ts)),1),g(l(ht),{variant:"warning",class:"gap-1 whitespace-nowrap"},{default:y(()=>[g(l(Al),{class:"h-3 w-3"}),K(" "+E(l(t)("logs.circuit.badge")),1)]),_:1}),S("span",VE,E(de.provider),1),S("span",UE,E(l(t)("logs.circuit.failures",{n:de.fails})),1),S("span",jE,E(l(t)("logs.circuit.cooldown",{s:Math.round((de.cooldownMs??0)/1e3)})),1),S("span",HE,E(de.error||l(t)("logs.circuit.reasonUnknown")),1)])]),_:2},1024)]),_:2},1024)):(x(),J(Ce,{key:1},[g(l(ur),{class:"cursor-pointer hover:bg-muted/50",onClick:Be=>Y(de)},{default:y(()=>[g(l(zt),{class:"w-8 text-muted-foreground"},{default:y(()=>[(x(),D(vo(z(de)?l(Ya):l(Cm)),{class:"h-3.5 w-3.5"}))]),_:2},1024),g(l(zt),{class:"font-mono text-xs text-muted-foreground",title:M(de.ts)},{default:y(()=>[K(E(A(de.ts)),1)]),_:2},1032,["title"]),g(l(zt),{class:"font-mono text-xs"},{default:y(()=>[K(E(de.model),1)]),_:2},1024),g(l(zt),{class:"text-sm"},{default:y(()=>[K(E(de.provider),1)]),_:2},1024),g(l(zt),null,{default:y(()=>[S("span",WE,[g(l(ht),{variant:"outline",class:xe(k(de.format))},{default:y(()=>[K(E(de.format),1)]),_:2},1032,["class"]),de.stream?(x(),D(l(ht),{key:0,variant:"muted",class:"text-[10px]"},{default:y(()=>[K(E(l(t)("logs.stream")),1)]),_:1})):we("",!0)])]),_:2},1024),g(l(zt),{class:"text-right font-mono text-xs text-muted-foreground"},{default:y(()=>[K(E(R(de.ms)),1)]),_:2},1024),g(l(zt),{class:"text-right"},{default:y(()=>[g(l(ht),{variant:$(de.status),class:"font-mono"},{default:y(()=>[K(E(de.status),1)]),_:2},1032,["variant"])]),_:2},1024)]),_:2},1032,["onClick"]),z(de)?(x(),D(l(ur),{key:0,class:"hover:bg-transparent"},{default:y(()=>[g(l(zt),{colspan:"7",class:"bg-muted/30"},{default:y(()=>[S("dl",KE,[S("dt",zE,E(l(t)("logs.detail.time")),1),S("dd",GE,E(M(de.ts)),1),S("dt",YE,E(l(t)("logs.detail.latency")),1),S("dd",XE,E(R(de.ms)),1),S("dt",JE,E(l(t)("logs.detail.stream")),1),S("dd",null,E(de.stream?l(t)("logs.detail.streamYes"):l(t)("logs.detail.streamNo")),1),S("dt",QE,E(l(t)("logs.detail.error")),1),S("dd",ZE,E(de.error||l(t)("logs.detail.errorNone")),1)])]),_:2},1024)]),_:2},1024)):we("",!0)],64))],64))),128))]),_:1})]),_:1})])):(x(),J("p",FE,E(l(t)("logs.noMatch")),1)):(x(),J("p",DE,E(l(t)("logs.empty")),1))]),_:1})]),_:1}))}}),tO={key:0,class:"py-4 text-center text-xs text-muted-foreground"},nO={class:"flex items-center gap-1.5"},sO={class:"truncate font-mono text-xs"},rO={class:"flex items-center gap-2"},oO={class:"h-1.5 w-full max-w-[120px] overflow-hidden rounded-full bg-muted"},aO={class:"font-mono text-xs tabular-nums"},Ol=Q({__name:"StatsBreakdown",props:{title:{},buckets:{},max:{},kind:{}},setup(e){const{t}=Ht();function n(o){return o<1e3?`${o}ms`:`${(o/1e3).toFixed(1)}s`}function s(o,a){return a?Math.round(o/a*100):0}function r(o){var a;return(a=Kt[o])==null?void 0:a.solid}return(o,a)=>(x(),D(l(pn),null,{default:y(()=>[g(l(In),{class:"pb-2"},{default:y(()=>[g(l(Mn),{class:"text-sm"},{default:y(()=>[K(E(e.title),1)]),_:1})]),_:1}),g(l(mn),null,{default:y(()=>[e.buckets.length?(x(),D(l($m),{key:1},{default:y(()=>[g(l(Im),null,{default:y(()=>[g(l(ur),null,{default:y(()=>[g(l(rn),null,{default:y(()=>[K(E(l(t)("stats.col.name")),1)]),_:1}),g(l(rn),{class:"w-1/3"},{default:y(()=>[K(E(l(t)("stats.col.calls")),1)]),_:1}),g(l(rn),{class:"text-right"},{default:y(()=>[K(E(l(t)("stats.col.success")),1)]),_:1}),g(l(rn),{class:"text-right"},{default:y(()=>[K(E(l(t)("stats.col.error")),1)]),_:1}),g(l(rn),{class:"text-right"},{default:y(()=>[K(E(l(t)("stats.col.avgLatency")),1)]),_:1})]),_:1})]),_:1}),g(l(Mm),null,{default:y(()=>[(x(!0),J(Ce,null,ut(e.buckets,i=>(x(),D(l(ur),{key:i.key},{default:y(()=>[g(l(zt),{class:"py-1.5"},{default:y(()=>[S("div",nO,[e.kind==="format"&&r(i.key)?(x(),J("span",{key:0,class:xe(["h-2 w-2 shrink-0 rounded-full",r(i.key)])},null,2)):e.kind==="provider"&&i.id?(x(),J("span",{key:1,class:xe(["h-2 w-2 shrink-0 rounded-full",l(ei)(i.id).solid])},null,2)):we("",!0),S("span",sO,E(i.key),1)])]),_:2},1024),g(l(zt),{class:"py-1.5"},{default:y(()=>[S("div",rO,[S("div",oO,[S("div",{class:"h-full rounded-full bg-primary/50",style:hn({width:s(i.calls,e.max)+"%"})},null,4)]),S("span",aO,E(i.calls),1)])]),_:2},1024),g(l(zt),{class:"py-1.5 text-right font-mono text-xs text-emerald-600 dark:text-emerald-400"},{default:y(()=>[K(E(i.success),1)]),_:2},1024),g(l(zt),{class:xe(["py-1.5 text-right font-mono text-xs",i.error?"text-destructive":"text-muted-foreground"])},{default:y(()=>[K(E(i.error),1)]),_:2},1032,["class"]),g(l(zt),{class:"py-1.5 text-right font-mono text-xs text-muted-foreground"},{default:y(()=>[K(E(n(i.avgMs)),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})):(x(),J("p",tO,E(l(t)("stats.empty")),1))]),_:1})]),_:1}))}}),lO={class:"flex flex-wrap items-center justify-between gap-2"},iO={class:"flex items-center gap-2"},uO={class:"inline-flex rounded-md border bg-muted/30 p-0.5"},cO=["onClick"],dO={class:"sr-only"},fO={key:0,class:"flex items-center justify-center gap-2 py-10 text-sm text-muted-foreground"},pO={key:1,class:"py-10 text-center text-sm text-muted-foreground"},mO={class:"grid grid-cols-2 gap-2 sm:grid-cols-3 lg:grid-cols-6"},hO={class:"rounded-lg border bg-muted/20 p-3"},gO={class:"text-xs text-muted-foreground"},vO={class:"mt-1 font-mono text-xl tabular-nums"},yO={class:"rounded-lg border bg-muted/20 p-3"},bO={class:"text-xs text-muted-foreground"},_O={class:"mt-1 font-mono text-xl tabular-nums text-emerald-600 dark:text-emerald-400"},wO={class:"rounded-lg border bg-muted/20 p-3"},xO={class:"text-xs text-muted-foreground"},kO={class:"mt-1 font-mono text-xl tabular-nums text-destructive"},SO={class:"rounded-lg border bg-muted/20 p-3"},CO={class:"text-xs text-muted-foreground"},AO={class:"mt-1 font-mono text-xl tabular-nums"},EO={class:"rounded-lg border bg-muted/20 p-3"},OO={class:"text-xs text-muted-foreground"},PO={class:"mt-1 font-mono text-xl tabular-nums"},TO={class:"rounded-lg border bg-muted/20 p-3"},$O={class:"text-xs text-muted-foreground"},IO={class:"mt-1 font-mono text-xl tabular-nums"},MO={class:"mb-2 flex items-center justify-between gap-2"},RO={class:"text-sm font-medium"},LO={key:0,class:"text-[11px] text-muted-foreground"},DO={class:"font-mono tabular-nums text-foreground"},FO={class:"rounded-lg border p-3"},NO={class:"relative pt-9"},qO={class:"flex h-40 gap-px"},BO={class:"pointer-events-none absolute bottom-full left-1/2 z-20 mb-1 hidden -translate-x-1/2 whitespace-nowrap rounded-md border bg-background px-2 py-1 text-center text-xs shadow-md group-hover:block"},VO={class:"font-medium"},UO={class:"font-mono tabular-nums"},jO={class:"text-[10px]"},HO={class:"text-emerald-600 dark:text-emerald-400"},WO={class:"text-destructive"},KO={class:"mt-1.5 flex justify-between text-[10px] text-muted-foreground"},zO={class:"grid gap-4 lg:grid-cols-2"},GO={class:"lg:col-span-2"},yd=160,YO=Q({__name:"Stats",setup(e){const{t}=Ht(),n=[{v:"24h",key:"h24"},{v:"7d",key:"d7"},{v:"30d",key:"d30"},{v:"90d",key:"d90"},{v:"all",key:"all"}],s=F(localStorage.getItem("myapikey.stats.range")||"7d");n.some(v=>v.v===s.value)||(s.value="7d"),De(s,v=>{try{localStorage.setItem("myapikey.stats.range",v)}catch{}});const r=F(null),o=F(!1);async function a(){o.value=!0;try{r.value=await Ne("GET",`/admin/stats?range=${s.value}`)}catch{r.value=null}finally{o.value=!1}}De(s,a),mt(a);function i(v){return v<1e3?`${v}ms`:`${(v/1e3).toFixed(1)}s`}function u(v){if(!v)return"0%";const w=Math.round(v*1e3)/10;return(w%1===0?w.toFixed(0):w.toFixed(1))+"%"}function c(v){const[w,C,h]=v.split("-").map(Number);return new Date(w,C-1,h).toLocaleDateString(void 0,{month:"short",day:"numeric"})}const d=te(()=>{var v;return((v=r.value)==null?void 0:v.byDay.reduce((w,C)=>Math.max(w,C.calls),0))??0});function f(v){const w=d.value||1,C=v.calls/w*yd,h=v.error/w*yd;return{success:Math.max(0,Math.round(C-h)),error:Math.round(h)}}function p(v){return v.reduce((w,C)=>Math.max(w,C.calls),0)||1}const m=te(()=>!!r.value&&r.value.totals.calls>0);return(v,w)=>(x(),D(l(pn),null,{default:y(()=>[g(l(In),null,{default:y(()=>[S("div",lO,[g(l(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[g(l(Sm),{class:"h-4 w-4 text-primary"}),K(" "+E(l(t)("stats.title")),1)]),_:1}),S("div",iO,[S("div",uO,[(x(),J(Ce,null,ut(n,C=>S("button",{key:C.v,type:"button",class:xe(["rounded-sm px-2.5 py-1 text-xs transition-colors",s.value===C.v?"bg-background font-medium shadow-sm":"text-muted-foreground hover:text-foreground"]),onClick:h=>s.value=C.v},E(l(t)(`stats.ranges.${C.key}`)),11,cO)),64))]),g(l(Pe),{variant:"outline",size:"sm",disabled:o.value,onClick:a},{default:y(()=>[o.value?(x(),D(l(_t),{key:0,class:"h-3.5 w-3.5 animate-spin"})):(x(),D(l(po),{key:1,class:"h-3.5 w-3.5"})),S("span",dO,E(l(t)("stats.refresh")),1)]),_:1},8,["disabled"])])]),g(l(ys),null,{default:y(()=>[K(E(l(t)("stats.desc")),1)]),_:1})]),_:1}),g(l(mn),{class:"space-y-5"},{default:y(()=>[o.value&&!r.value?(x(),J("div",fO,[g(l(_t),{class:"h-4 w-4 animate-spin"}),K(" "+E(l(t)("stats.loading")),1)])):m.value?r.value?(x(),J(Ce,{key:2},[S("div",mO,[S("div",hO,[S("div",gO,E(l(t)("stats.totals.calls")),1),S("div",vO,E(r.value.totals.calls),1)]),S("div",yO,[S("div",bO,E(l(t)("stats.totals.success")),1),S("div",_O,E(r.value.totals.success),1)]),S("div",wO,[S("div",xO,E(l(t)("stats.totals.error")),1),S("div",kO,E(r.value.totals.error),1)]),S("div",SO,[S("div",CO,E(l(t)("stats.totals.errorRate")),1),S("div",AO,E(u(r.value.totals.errorRate)),1)]),S("div",EO,[S("div",OO,E(l(t)("stats.totals.avgLatency")),1),S("div",PO,E(i(r.value.totals.avgMs)),1)]),S("div",TO,[S("div",$O,E(l(t)("stats.totals.p95")),1),S("div",IO,E(i(r.value.totals.p95Ms)),1)])]),S("div",null,[S("div",MO,[S("div",RO,E(l(t)("stats.byDay")),1),d.value?(x(),J("div",LO,[K(E(l(t)("stats.peak"))+" ",1),S("span",DO,E(d.value),1)])):we("",!0)]),S("div",FO,[S("div",NO,[S("div",qO,[(x(!0),J(Ce,null,ut(r.value.byDay,C=>(x(),J("div",{key:C.day,class:"group relative flex min-w-0 flex-1 cursor-default flex-col justify-end"},[S("div",{style:hn({height:f(C).success+"px"}),class:"w-full rounded-t-sm bg-emerald-500/70 transition-colors group-hover:bg-emerald-500"},null,4),S("div",{style:hn({height:f(C).error+"px"}),class:xe(["w-full transition-colors group-hover:bg-destructive",f(C).error?"bg-destructive/70":""])},null,6),S("div",BO,[S("div",VO,E(c(C.day)),1),S("div",UO,E(C.calls)+" "+E(l(t)("stats.callsAxis")),1),S("div",jO,[S("span",HO,E(C.success),1),w[0]||(w[0]=S("span",{class:"text-muted-foreground"}," / ",-1)),S("span",WO,E(C.error),1)])])]))),128))])]),S("div",KO,[S("span",null,E(r.value.byDay.length?c(r.value.byDay[0].day):""),1),S("span",null,E(r.value.byDay.length?c(r.value.byDay[r.value.byDay.length-1].day):""),1)])])]),S("div",zO,[S("div",GO,[g(Ol,{title:l(t)("stats.byModel"),buckets:r.value.byModel,max:p(r.value.byModel),kind:"model"},null,8,["title","buckets","max"])]),g(Ol,{title:l(t)("stats.byProvider"),buckets:r.value.byProvider,max:p(r.value.byProvider),kind:"provider"},null,8,["title","buckets","max"]),g(Ol,{title:l(t)("stats.byFormat"),buckets:r.value.byFormat,max:p(r.value.byFormat),kind:"format"},null,8,["title","buckets","max"])])],64)):we("",!0):(x(),J("div",pO,E(l(t)("stats.empty")),1))]),_:1})]),_:1}))}});async function Rm(e){if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.writeText(e),!0}catch{}try{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="0",t.style.opacity="0",document.body.appendChild(t),t.focus(),t.select();const n=document.execCommand("copy");return document.body.removeChild(t),n}catch{return!1}}const XO={class:"space-y-4"},JO={class:"space-y-2"},QO={class:"min-w-0"},ZO={class:"mt-0.5 truncate font-mono text-sm"},eP={class:"min-w-0"},tP={class:"mt-0.5 truncate font-mono text-sm"},nP={class:"text-xs text-muted-foreground"},sP={class:"flex items-center justify-between gap-3 rounded-lg border border-primary/40 bg-primary/5 p-3"},rP={class:"min-w-0"},oP={class:"text-xs font-medium text-primary"},aP={class:"truncate font-mono text-sm"},lP={class:"flex items-center gap-1"},iP={class:"overflow-x-auto rounded-md border bg-muted/40 p-3 font-mono text-xs leading-relaxed"},uP=Q({__name:"Connect",setup(e){const{t}=Ht(),n={openai:"openai",anthropic:"anthropic",responses:"responses",curl:null};function s(m){const v=n[m];return v?Kt[v]:null}const r=F(null),o=F(null),a=F(""),i=F(!1),u=te(()=>{const m=window.location.hostname;if((m==="localhost"||m==="127.0.0.1")&&o.value){const v=window.location.port;return`${window.location.protocol}//${o.value}${v?":"+v:""}`}return window.location.origin}),c=te(()=>`${u.value}/v1`);async function d(){r.value=(await Ne("GET","/admin/api-key")).apiKey,o.value=(await Ne("GET","/admin/connection")).lanIp}async function f(m,v){await Rm(v)?(a.value=m,setTimeout(()=>{a.value===m&&(a.value="")},1500)):Te(t("connect.copyFailed"),"error")}const p=te(()=>[{key:"openai",title:t("connect.openaiTitle"),text:`export OPENAI_BASE_URL=${c.value}
|
|
283
|
-
export OPENAI_API_KEY=${r.value??""}`},{key:"anthropic",title:t("connect.anthropicTitle"),text:`export ANTHROPIC_BASE_URL=${u.value}
|
|
284
|
-
export ANTHROPIC_API_KEY=${r.value??""}`},{key:"curl",title:t("connect.curlTitle"),text:`curl ${c.value}/chat/completions \\
|
|
285
|
-
-H "Authorization: Bearer ${r.value??""}" \\
|
|
286
|
-
-H "Content-Type: application/json" \\
|
|
287
|
-
-d '{"model":"<model>","messages":[{"role":"user","content":"hi"}]}'`},{key:"responses",title:t("connect.responsesTitle"),text:`curl ${c.value}/responses \\
|
|
288
|
-
-H "Authorization: Bearer ${r.value??""}" \\
|
|
289
|
-
-H "Content-Type: application/json" \\
|
|
290
|
-
-d '{"model":"<model>","input":"hi"}'`}]);return mt(d),(m,v)=>(x(),J("div",XO,[g(l(pn),null,{default:y(()=>[g(l(In),null,{default:y(()=>[g(l(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[g(l(Pm),{class:"h-4 w-4 text-primary"}),K(" "+E(l(t)("connect.title")),1)]),_:1}),g(l(ys),null,{default:y(()=>[K(E(l(t)("connect.desc")),1)]),_:1})]),_:1}),g(l(mn),{class:"space-y-3"},{default:y(()=>[S("div",JO,[S("div",{class:xe(["flex items-center justify-between gap-3 rounded-lg border p-3",[l(Kt).openai.border,l(Kt).openai.soft]])},[S("div",QO,[S("div",{class:xe(["flex items-center gap-1.5 text-xs font-medium",l(Kt).openai.text])},[S("span",{class:xe(["h-1.5 w-1.5 rounded-full",l(Kt).openai.solid])},null,2),K(" "+E(l(t)("connect.baseUrlOpenai")),1)],2),S("div",ZO,E(c.value),1)]),g(l(Pe),{variant:"outline",size:"sm",onClick:v[0]||(v[0]=w=>f("url-openai",c.value))},{default:y(()=>[a.value==="url-openai"?(x(),D(l(Xn),{key:0,class:"h-4 w-4"})):(x(),D(l(Us),{key:1,class:"h-4 w-4"})),K(" "+E(a.value==="url-openai"?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:1})],2),S("div",{class:xe(["flex items-center justify-between gap-3 rounded-lg border p-3",[l(Kt).anthropic.border,l(Kt).anthropic.soft]])},[S("div",eP,[S("div",{class:xe(["flex items-center gap-1.5 text-xs font-medium",l(Kt).anthropic.text])},[S("span",{class:xe(["h-1.5 w-1.5 rounded-full",l(Kt).anthropic.solid])},null,2),K(" "+E(l(t)("connect.baseUrlAnthropic")),1)],2),S("div",tP,E(u.value),1)]),g(l(Pe),{variant:"outline",size:"sm",onClick:v[1]||(v[1]=w=>f("url-anthropic",u.value))},{default:y(()=>[a.value==="url-anthropic"?(x(),D(l(Xn),{key:0,class:"h-4 w-4"})):(x(),D(l(Us),{key:1,class:"h-4 w-4"})),K(" "+E(a.value==="url-anthropic"?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:1})],2)]),S("p",nP,E(l(t)("connect.note")),1),S("div",sP,[S("div",rP,[S("div",oP,E(l(t)("connect.apiKey")),1),S("div",aP,E(r.value?i.value?r.value:"•".repeat(Math.min(r.value.length,24)):"…"),1)]),S("div",lP,[g(l(Pe),{variant:"ghost",size:"icon",title:i.value?l(t)("connect.hide"):l(t)("connect.reveal"),"aria-label":i.value?l(t)("connect.hide"):l(t)("connect.reveal"),onClick:v[2]||(v[2]=w=>i.value=!i.value)},{default:y(()=>[i.value?(x(),D(l(pa),{key:0,class:"h-4 w-4"})):(x(),D(l(ma),{key:1,class:"h-4 w-4"}))]),_:1},8,["title","aria-label"]),g(l(Pe),{variant:"outline",size:"sm",onClick:v[3]||(v[3]=w=>f("key",r.value??""))},{default:y(()=>[a.value==="key"?(x(),D(l(Xn),{key:0,class:"h-4 w-4"})):(x(),D(l(Us),{key:1,class:"h-4 w-4"})),K(" "+E(a.value==="key"?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:1})])])]),_:1})]),_:1}),(x(!0),J(Ce,null,ut(p.value,w=>(x(),D(l(pn),{key:w.key},{default:y(()=>[g(l(In),{class:"flex flex-row items-center justify-between space-y-0"},{default:y(()=>[g(l(Mn),{class:"flex items-center gap-2 text-sm font-medium"},{default:y(()=>{var C;return[s(w.key)?(x(),J("span",{key:0,class:xe(["h-1.5 w-1.5 rounded-full",(C=s(w.key))==null?void 0:C.solid])},null,2)):we("",!0),K(" "+E(w.title),1)]}),_:2},1024),g(l(Pe),{variant:"ghost",size:"sm",onClick:C=>f(w.key,w.text)},{default:y(()=>[a.value===w.key?(x(),D(l(Xn),{key:0,class:"h-4 w-4"})):(x(),D(l(Us),{key:1,class:"h-4 w-4"})),K(" "+E(a.value===w.key?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:2},1032,["onClick"])]),_:2},1024),g(l(mn),null,{default:y(()=>[S("pre",iP,E(w.text),1)]),_:2},1024)]),_:2},1024))),128))]))}}),cP=["for"],qs=Q({__name:"Label",props:{class:{type:[Boolean,null,String,Object,Array]},for:{}},setup(e){const t=e;return(n,s)=>(x(),J("label",{for:t.for,class:xe(l(Ge)("text-sm font-medium leading-none text-foreground",t.class))},[ie(n.$slots,"default")],10,cP))}}),dP={class:"max-w-xl space-y-4"},fP={class:"space-y-1.5"},pP={class:"flex items-center justify-between gap-3 rounded-lg border p-3"},mP={class:"min-w-0 truncate font-mono text-sm"},hP={class:"flex items-center gap-1"},gP={class:"space-y-3"},vP={class:"space-y-1.5"},yP={class:"space-y-1.5"},bP={class:"space-y-1.5"},_P={key:0,class:"text-sm text-destructive"},wP={class:"flex justify-end"},xP={class:"flex items-center justify-between gap-3 rounded-lg border border-primary/40 bg-primary/5 p-3"},kP={class:"min-w-0 truncate font-mono text-sm"},SP={class:"flex items-center gap-1"},CP={class:"flex justify-end"},AP={class:"flex items-center justify-between gap-3 rounded-lg border p-3"},EP={class:"min-w-0 truncate font-mono text-sm"},OP=Q({__name:"Settings",setup(e){const{t}=Ht(),n=F(null),s=F(""),r=F(""),o=F(""),a=F(!1),i=F(!1),u=F(""),c=F(null),d=F(!1),f=F(!1),p=F(!1),m=F(null),v=F(""),w=te(()=>{var I;return((I=n.value)==null?void 0:I.password)??""}),C=te(()=>{const I=m.value;return I?[{key:"datadir",label:t("settings.storage.dataDir"),value:I.dataDir},{key:"datafile",label:t("settings.storage.dataFile"),value:I.dataFile},{key:"logsfile",label:t("settings.storage.logsFile"),value:I.logsFile}]:[]});async function h(){try{const[I,A,M]=await Promise.all([Ne("GET","/admin/account"),Ne("GET","/admin/api-key"),Ne("GET","/admin/storage")]);n.value=I,s.value=I.username,c.value=A.apiKey,m.value=M}catch(I){Te(I.message,"error")}}async function b(I,A){await Rm(A)?(v.value=I,setTimeout(()=>{v.value===I&&(v.value="")},1500)):Te(t("connect.copyFailed"),"error")}function $(){if(!s.value.trim())return t("settings.errUserShort");if(r.value){if(r.value.length<8)return t("settings.errPassShort");if(r.value!==o.value)return t("settings.errPassMismatch")}return null}async function k(){var M,N;if(i.value)return;u.value="";const I=$();if(I){u.value=I;return}i.value=!0;const A={username:s.value.trim()};r.value&&(A.password=r.value);try{await Ne("PUT","/admin/account",A);const z=r.value||((M=n.value)==null?void 0:M.password)||((N=aa())==null?void 0:N.pass)||"",Y=s.value.trim();bp(Y,z),n.value={username:Y,password:z},r.value="",o.value="",Te(t("settings.saved"),"success")}catch(z){u.value=z.message}finally{i.value=!1}}async function R(){if(!f.value){f.value=!0;try{const I=await Ne("POST","/admin/api-key/rotate");c.value=I.apiKey,Te(t("settings.apikey.rotated"),"success"),p.value=!1}catch(I){Te(I.message,"error")}finally{f.value=!1}}}return mt(h),(I,A)=>(x(),J("div",dP,[g(l(pn),null,{default:y(()=>[g(l(In),null,{default:y(()=>[g(l(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[g(l(Yk),{class:"h-4 w-4 text-primary"}),K(E(l(t)("settings.title")),1)]),_:1}),g(l(ys),null,{default:y(()=>[K(E(l(t)("settings.desc")),1)]),_:1})]),_:1}),g(l(mn),{class:"space-y-4"},{default:y(()=>[S("div",fP,[g(l(qs),null,{default:y(()=>[K(E(l(t)("settings.loginPassword")),1)]),_:1}),S("div",pP,[S("div",mP,E(n.value?a.value?w.value:"•".repeat(Math.min(w.value.length,24)):"…"),1),S("div",hP,[g(l(Pe),{variant:"ghost",size:"icon",title:a.value?l(t)("connect.hide"):l(t)("connect.reveal"),"aria-label":a.value?l(t)("connect.hide"):l(t)("connect.reveal"),onClick:A[0]||(A[0]=M=>a.value=!a.value)},{default:y(()=>[a.value?(x(),D(l(pa),{key:0,class:"h-4 w-4"})):(x(),D(l(ma),{key:1,class:"h-4 w-4"}))]),_:1},8,["title","aria-label"]),g(l(Pe),{variant:"outline",size:"sm",onClick:A[1]||(A[1]=M=>b("pass",w.value))},{default:y(()=>[v.value==="pass"?(x(),D(l(Xn),{key:0,class:"h-4 w-4"})):(x(),D(l(Us),{key:1,class:"h-4 w-4"})),K(" "+E(v.value==="pass"?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:1})])])]),S("div",gP,[S("div",vP,[g(l(qs),{for:"username"},{default:y(()=>[K(E(l(t)("settings.username")),1)]),_:1}),g(l(bt),{id:"username",modelValue:s.value,"onUpdate:modelValue":A[2]||(A[2]=M=>s.value=M),autocomplete:"username"},null,8,["modelValue"])]),S("div",yP,[g(l(qs),{for:"newpass"},{default:y(()=>[K(E(l(t)("settings.newPassword")),1)]),_:1}),g(l(bt),{id:"newpass",modelValue:r.value,"onUpdate:modelValue":A[3]||(A[3]=M=>r.value=M),type:"password",placeholder:l(t)("settings.newPasswordPh"),autocomplete:"new-password"},null,8,["modelValue","placeholder"])]),S("div",bP,[g(l(qs),{for:"confirmpass"},{default:y(()=>[K(E(l(t)("settings.confirmPassword")),1)]),_:1}),g(l(bt),{id:"confirmpass",modelValue:o.value,"onUpdate:modelValue":A[4]||(A[4]=M=>o.value=M),type:"password",placeholder:l(t)("settings.confirmPh"),autocomplete:"new-password"},null,8,["modelValue","placeholder"])]),u.value?(x(),J("p",_P,E(u.value),1)):we("",!0),S("div",wP,[g(l(Pe),{disabled:i.value,onClick:k},{default:y(()=>[i.value?(x(),D(l(_t),{key:0,class:"h-4 w-4 animate-spin"})):we("",!0),K(" "+E(i.value?l(t)("settings.saving"):l(t)("settings.save")),1)]),_:1},8,["disabled"])])])]),_:1})]),_:1}),g(l(pn),null,{default:y(()=>[g(l(In),null,{default:y(()=>[g(l(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[g(l(Fk),{class:"h-4 w-4 text-primary"}),K(E(l(t)("settings.apikey.title")),1)]),_:1}),g(l(ys),null,{default:y(()=>[K(E(l(t)("settings.apikey.desc")),1)]),_:1})]),_:1}),g(l(mn),{class:"space-y-3"},{default:y(()=>[S("div",xP,[S("div",kP,E(c.value?d.value?c.value:"•".repeat(Math.min(c.value.length,24)):"…"),1),S("div",SP,[g(l(Pe),{variant:"ghost",size:"icon",title:d.value?l(t)("connect.hide"):l(t)("connect.reveal"),"aria-label":d.value?l(t)("connect.hide"):l(t)("connect.reveal"),onClick:A[5]||(A[5]=M=>d.value=!d.value)},{default:y(()=>[d.value?(x(),D(l(pa),{key:0,class:"h-4 w-4"})):(x(),D(l(ma),{key:1,class:"h-4 w-4"}))]),_:1},8,["title","aria-label"]),g(l(Pe),{variant:"outline",size:"sm",onClick:A[6]||(A[6]=M=>b("apikey",c.value??""))},{default:y(()=>[v.value==="apikey"?(x(),D(l(Xn),{key:0,class:"h-4 w-4"})):(x(),D(l(Us),{key:1,class:"h-4 w-4"})),K(" "+E(v.value==="apikey"?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:1})])]),S("div",CP,[g(l(Pe),{variant:"outline",disabled:f.value,onClick:A[7]||(A[7]=M=>p.value=!0)},{default:y(()=>[g(l(Wk),{class:"h-4 w-4"}),K(" "+E(l(t)("settings.apikey.rotate")),1)]),_:1},8,["disabled"])])]),_:1})]),_:1}),g(l(pn),null,{default:y(()=>[g(l(In),null,{default:y(()=>[g(l(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[g(l(Dk),{class:"h-4 w-4 text-primary"}),K(E(l(t)("settings.storage.title")),1)]),_:1}),g(l(ys),null,{default:y(()=>[K(E(l(t)("settings.storage.desc")),1)]),_:1})]),_:1}),g(l(mn),{class:"space-y-3"},{default:y(()=>[(x(!0),J(Ce,null,ut(C.value,M=>(x(),J("div",{key:M.key,class:"space-y-1.5"},[g(l(qs),null,{default:y(()=>[K(E(M.label),1)]),_:2},1024),S("div",AP,[S("div",EP,E(M.value),1),g(l(Pe),{variant:"outline",size:"sm",onClick:N=>b(M.key,M.value)},{default:y(()=>[v.value===M.key?(x(),D(l(Xn),{key:0,class:"h-4 w-4"})):(x(),D(l(Us),{key:1,class:"h-4 w-4"})),K(" "+E(v.value===M.key?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:2},1032,["onClick"])])]))),128))]),_:1})]),_:1}),g(hu,{open:p.value,"onUpdate:open":A[8]||(A[8]=M=>p.value=M),variant:"destructive",title:l(t)("settings.apikey.rotateTitle"),description:l(t)("settings.apikey.rotateDesc"),"confirm-text":l(t)("settings.apikey.rotateConfirm"),loading:f.value,onConfirm:R},null,8,["open","title","description","confirm-text","loading"])]))}}),PP=["width","height"],bd=Q({__name:"Logo",props:{size:{default:28}},setup(e){return(t,n)=>(x(),J("svg",{width:e.size,height:e.size,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"MyAPIKey"},[...n[0]||(n[0]=[Tg('<defs><linearGradient id="myapikey-logo" x1="0" y1="0" x2="40" y2="40" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#f59e0b"></stop><stop offset="0.33" stop-color="#f97316"></stop><stop offset="0.67" stop-color="#ef4444"></stop><stop offset="1" stop-color="#ec4899"></stop></linearGradient></defs><rect width="40" height="40" rx="10" fill="url(#myapikey-logo)"></rect><g stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><circle cx="14" cy="16.5" r="4.6"></circle><path d="M19.6 16.5 H31.5 M26.5 16.5 V20.8 M31.5 16.5 V19.5"></path></g><path d="M6 28 Q9.5 25 13 28 T20 28 T27 28 T34 28" stroke="#fff" stroke-width="2.8" stroke-linecap="round" opacity="0.9"></path>',4)])],8,PP))}}),TP=Q({__name:"Tabs",props:{class:{type:[Boolean,null,String,Object,Array]},defaultValue:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=t;return(r,o)=>(x(),D(l(wk),{"default-value":n.defaultValue,"model-value":n.modelValue,"onUpdate:modelValue":o[0]||(o[0]=a=>s("update:modelValue",a)),class:xe(l(Ge)(n.class))},{default:y(()=>[ie(r.$slots,"default")]),_:3},8,["default-value","model-value","class"]))}}),$P=Q({__name:"TabsList",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),D(l(Ck),{class:xe(l(Ge)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t.class))},{default:y(()=>[ie(n.$slots,"default")]),_:3},8,["class"]))}}),Rr=Q({__name:"TabsTrigger",props:{value:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),D(l(Ek),{value:t.value,class:xe(l(Ge)("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",t.class))},{default:y(()=>[ie(n.$slots,"default")]),_:3},8,["value","class"]))}}),Lr=Q({__name:"TabsContent",props:{value:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),D(l(kk),{value:t.value,tabindex:"-1",class:xe(l(Ge)("mt-4 ring-offset-background focus-visible:outline-none",t.class))},{default:y(()=>[ie(n.$slots,"default")]),_:3},8,["value","class"]))}}),IP={class:"pointer-events-none fixed inset-x-0 bottom-0 z-50 flex flex-col items-center gap-2 p-4 sm:items-end"},MP={class:"flex-1 text-sm"},RP=["aria-label","onClick"],LP=Q({__name:"Toaster",setup(e){const{t}=Ht(),n=Hb(),s={success:Rk,error:Mk,default:Em};return(r,o)=>(x(),D($i,{to:"body"},[S("div",IP,[g(mv,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","leave-active-class":"transition duration-150 ease-in absolute","leave-to-class":"opacity-0 translate-y-2 sm:translate-y-0 sm:translate-x-2"},{default:y(()=>[(x(!0),J(Ce,null,ut(l(n),a=>(x(),J("div",{key:a.id,class:xe(["pointer-events-auto flex w-full max-w-sm items-start gap-2.5 rounded-lg border p-3 shadow-lg backdrop-blur",a.variant==="error"?"border-destructive/40 bg-destructive/10 text-destructive":a.variant==="success"?"border-emerald-500/40 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400":"border-border bg-popover/95 text-popover-foreground"]),role:"status","aria-live":"polite"},[(x(),D(vo(s[a.variant]),{class:"mt-0.5 h-4 w-4 shrink-0"})),S("p",MP,E(a.message),1),S("button",{class:"shrink-0 rounded-sm opacity-60 transition-opacity hover:opacity-100","aria-label":l(t)("common.dismiss"),onClick:i=>l(xp)(a.id)},[g(l(mu),{class:"h-4 w-4"})],8,RP)],2))),128))]),_:1})])]))}}),DP={key:0,class:"flex min-h-screen items-center justify-center text-muted-foreground"},FP={key:1,class:"flex min-h-screen items-center justify-center p-4"},NP={class:"space-y-1.5"},qP={class:"space-y-1.5"},BP={class:"relative"},VP={key:0,class:"text-sm text-destructive"},UP={key:2,class:"min-h-screen"},jP={class:"sticky top-0 z-10 border-b bg-background/80 backdrop-blur"},HP={class:"mx-auto flex h-14 max-w-5xl items-center justify-between px-4"},WP={class:"flex items-center gap-2 font-semibold tracking-tight"},KP={class:"flex items-center gap-1"},zP={class:"mx-auto max-w-5xl px-4 py-6"},GP=Q({__name:"App",setup(e){const{t,locale:n}=Ht(),s=F(!1),r=F(""),o=F(""),a=F(""),i=F(!0),u=F(!1),c=F(!1),d=F(!0);function f(h){d.value=h,document.documentElement.classList.toggle("dark",h),localStorage.setItem("myapikey.theme",h?"dark":"light")}function p(){f(!d.value)}function m(){Ub(n.value==="zh"?"en":"zh")}const v=te(()=>n.value==="zh"?"English":"中文");async function w(){if(!u.value){a.value="",u.value=!0,bp(r.value,o.value);try{await Ne("GET","/admin/providers"),s.value=!0}catch(h){const b=h.message;a.value=/fetch|network/i.test(b)?t("login.errNetwork"):t("login.errInvalid"),gl()}finally{u.value=!1}}}function C(){gl(),s.value=!1,r.value="",o.value=""}return mt(async()=>{const h=localStorage.getItem("myapikey.theme");if(f(h?h==="dark":!0),aa())try{await Ne("GET","/admin/providers"),s.value=!0,r.value=aa().user}catch{gl()}i.value=!1}),(h,b)=>(x(),J(Ce,null,[i.value?(x(),J("div",DP,E(l(t)("app.connecting")),1)):s.value?(x(),J("div",UP,[S("header",jP,[S("div",HP,[S("div",WP,[g(bd,{size:26}),b[4]||(b[4]=K(" MyAPIKey ",-1))]),S("div",KP,[g(l(Pe),{variant:"ghost",size:"sm",title:v.value,onClick:m},{default:y(()=>[g(l(Nk),{class:"h-4 w-4"}),K(E(v.value),1)]),_:1},8,["title"]),g(l(Pe),{variant:"ghost",size:"icon",title:d.value?l(t)("app.toLight"):l(t)("app.toDark"),onClick:p},{default:y(()=>[d.value?(x(),D(l(zk),{key:0,class:"h-4 w-4"})):(x(),D(l(Bk),{key:1,class:"h-4 w-4"}))]),_:1},8,["title"]),g(l(Pe),{variant:"ghost",size:"sm",onClick:C},{default:y(()=>[g(l(qk),{class:"h-4 w-4"}),K(E(l(t)("app.signOut")),1)]),_:1})])])]),S("main",zP,[g(l(TP),{"default-value":"connect"},{default:y(()=>[g(l($P),{class:"mb-2"},{default:y(()=>[g(l(Rr),{value:"connect"},{default:y(()=>[g(l(Pm),{class:"h-4 w-4"}),K(E(l(t)("nav.connect")),1)]),_:1}),g(l(Rr),{value:"models"},{default:y(()=>[g(l(Am),{class:"h-4 w-4"}),K(E(l(t)("nav.models")),1)]),_:1}),g(l(Rr),{value:"logs"},{default:y(()=>[g(l(km),{class:"h-4 w-4"}),K(E(l(t)("nav.logs")),1)]),_:1}),g(l(Rr),{value:"stats"},{default:y(()=>[g(l(Sm),{class:"h-4 w-4"}),K(E(l(t)("nav.stats")),1)]),_:1}),g(l(Rr),{value:"settings"},{default:y(()=>[g(l(Kk),{class:"h-4 w-4"}),K(E(l(t)("nav.settings")),1)]),_:1})]),_:1}),g(l(Lr),{value:"connect"},{default:y(()=>[g(uP)]),_:1}),g(l(Lr),{value:"models"},{default:y(()=>[g(eE)]),_:1}),g(l(Lr),{value:"logs"},{default:y(()=>[g(eO)]),_:1}),g(l(Lr),{value:"stats"},{default:y(()=>[g(YO)]),_:1}),g(l(Lr),{value:"settings"},{default:y(()=>[g(OP)]),_:1})]),_:1})])])):(x(),J("div",FP,[g(l(pn),{class:"w-full max-w-sm"},{default:y(()=>[g(l(In),{class:"space-y-3 text-center"},{default:y(()=>[g(bd,{size:44,class:"mx-auto"}),g(l(Mn),{class:"text-xl"},{default:y(()=>[...b[3]||(b[3]=[K("MyAPIKey",-1)])]),_:1}),g(l(ys),null,{default:y(()=>[K(E(l(t)("login.subtitle")),1)]),_:1})]),_:1}),g(l(mn),null,{default:y(()=>[S("form",{class:"space-y-3",onSubmit:ln(w,["prevent"])},[S("div",NP,[g(l(qs),{for:"u"},{default:y(()=>[K(E(l(t)("login.username")),1)]),_:1}),g(l(bt),{id:"u",modelValue:r.value,"onUpdate:modelValue":b[0]||(b[0]=$=>r.value=$),autocomplete:"username",autofocus:""},null,8,["modelValue"])]),S("div",qP,[g(l(qs),{for:"p"},{default:y(()=>[K(E(l(t)("login.password")),1)]),_:1}),S("div",BP,[g(l(bt),{id:"p",modelValue:o.value,"onUpdate:modelValue":b[1]||(b[1]=$=>o.value=$),type:c.value?"text":"password",autocomplete:"current-password",class:"pr-9"},null,8,["modelValue","type"]),g(l(Pe),{type:"button",variant:"ghost",size:"icon",class:"absolute right-1 top-1 h-7 w-7 text-muted-foreground",title:c.value?l(t)("connect.hide"):l(t)("connect.reveal"),"aria-label":c.value?l(t)("connect.hide"):l(t)("connect.reveal"),tabindex:"-1",onClick:b[2]||(b[2]=$=>c.value=!c.value)},{default:y(()=>[c.value?(x(),D(l(pa),{key:0,class:"h-4 w-4"})):(x(),D(l(ma),{key:1,class:"h-4 w-4"}))]),_:1},8,["title","aria-label"])])]),g(l(Pe),{type:"submit",class:"w-full",disabled:u.value},{default:y(()=>[u.value?(x(),D(l(_t),{key:0,class:"h-4 w-4 animate-spin"})):we("",!0),K(" "+E(u.value?l(t)("common.loading"):l(t)("login.signIn")),1)]),_:1},8,["disabled"]),a.value?(x(),J("p",VP,E(a.value),1)):we("",!0)],32)]),_:1})]),_:1})])),g(LP)],64))}});Cv(GP).use(wp).mount("#app");
|