myapikey 0.3.0 → 0.4.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.
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
var Cu=e=>{throw TypeError(e)};var eh=(e,t,n)=>t.has(e)||Cu("Cannot "+n);var Po=(e,t,n)=>(eh(e,t,"read from private field"),n?n.call(e):t.get(e)),Au=(e,t,n)=>t.has(e)?Cu("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 o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const l of r.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/**
|
|
2
|
+
* @vue/shared v3.5.40
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/function xi(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const We={},fo=[],Tn=()=>{},Cd=()=>!1,va=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,ki=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},th=Object.prototype.hasOwnProperty,et=(e,t)=>th.call(e,t),Se=Array.isArray,po=e=>vr(e)==="[object Map]",Ad=e=>vr(e)==="[object Set]",Eu=e=>vr(e)==="[object Date]",Te=e=>typeof e=="function",it=e=>typeof e=="string",nn=e=>typeof e=="symbol",Qe=e=>e!==null&&typeof e=="object",Ed=e=>(Qe(e)||Te(e))&&Te(e.then)&&Te(e.catch),Od=Object.prototype.toString,vr=e=>Od.call(e),nh=e=>vr(e).slice(8,-1),Pd=e=>vr(e)==="[object Object]",ya=e=>it(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Uo=xi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ba=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},sh=/-\w/g,Et=ba(e=>e.replace(sh,t=>t.slice(1).toUpperCase())),oh=/\B([A-Z])/g,is=ba(e=>e.replace(oh,"-$1").toLowerCase()),_a=ba(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ur=ba(e=>e?`on${_a(e)}`:""),At=(e,t)=>!Object.is(e,t),Hr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Td=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Si=e=>{const t=parseFloat(e);return isNaN(t)?e:t},rh=e=>{const t=it(e)?Number(e):NaN;return isNaN(t)?e:t};let Ou;const wa=()=>Ou||(Ou=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function vn(e){if(Se(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=it(s)?uh(s):vn(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(it(e)||Qe(e))return e}const ah=/;(?![^(]*\))/g,lh=/:([^]+)/,ih=/\/\*[^]*?\*\//g;function uh(e){const t={};return e.replace(ih,"").split(ah).forEach(n=>{if(n){const s=n.split(lh);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function xe(e){let t="";if(it(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(Qe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Ot(e){if(!e)return null;let{class:t,style:n}=e;return t&&!it(t)&&(e.class=xe(t)),n&&(e.style=vn(n)),e}const ch="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",dh=xi(ch);function $d(e){return!!e||e===""}function fh(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Ci(e[s],t[s]);return n}function Ci(e,t){if(e===t)return!0;let n=Eu(e),s=Eu(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=nn(e),s=nn(t),n||s)return e===t;if(n=Se(e),s=Se(t),n||s)return n&&s?fh(e,t):!1;if(n=Qe(e),s=Qe(t),n||s){if(!n||!s)return!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const l in e){const i=e.hasOwnProperty(l),u=t.hasOwnProperty(l);if(i&&!u||!i&&u||!Ci(e[l],t[l]))return!1}}return String(e)===String(t)}const Id=e=>!!(e&&e.__v_isRef===!0),A=e=>it(e)?e:e==null?"":Se(e)||Qe(e)&&(e.toString===Od||!Te(e.toString))?Id(e)?A(e.value):JSON.stringify(e,Md,2):String(e),Md=(e,t)=>Id(t)?Md(e,t.value):po(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[nl(s,r)+" =>"]=o,n),{})}:Ad(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>nl(n))}:nn(t)?nl(t):Qe(t)&&!Se(t)&&!Pd(t)?String(t):t,nl=(e,t="")=>{var n;return nn(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 Rd{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 o=this.scopes.slice();for(t=0,n=o.length;t<n;t++)o[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 o=this.scopes.slice();for(n=0,s=o.length;n<s;n++)o[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Ai(e){return new Rd(e)}function xa(){return St}function Ei(e,t=!1){St&&St.cleanups.push(e)}let lt;const sl=new WeakSet;class Ld{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,sl.has(this)&&(sl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Nd(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Pu(this),Fd(this);const t=lt,n=pn;lt=this,pn=!0;try{return this.fn()}finally{qd(this),lt=t,pn=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ti(t);this.deps=this.depsTail=void 0,Pu(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?sl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Tl(this)&&this.run()}get dirty(){return Tl(this)}}let Dd=0,Ho,jo;function Nd(e,t=!1){if(e.flags|=8,t){e.next=jo,jo=e;return}e.next=Ho,Ho=e}function Oi(){Dd++}function Pi(){if(--Dd>0)return;if(jo){let t=jo;for(jo=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ho;){let t=Ho;for(Ho=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 Fd(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function qd(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),Ti(s),ph(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function Tl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Bd(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Bd(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Qo)||(e.globalVersion=Qo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Tl(e))))return;e.flags|=2;const t=e.dep,n=lt,s=pn;lt=e,pn=!0;try{Fd(e);const o=e.fn(e._value);(t.version===0||At(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{lt=n,pn=s,qd(e),e.flags&=-3}}function Ti(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)Ti(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ph(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let pn=!0;const Vd=[];function ns(){Vd.push(pn),pn=!1}function ss(){const e=Vd.pop();pn=e===void 0?!0:e}function Pu(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=lt;lt=void 0;try{t()}finally{lt=n}}}let Qo=0;class mh{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 ka{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(!lt||!pn||lt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==lt)n=this.activeLink=new mh(lt,this),lt.deps?(n.prevDep=lt.depsTail,lt.depsTail.nextDep=n,lt.depsTail=n):lt.deps=lt.depsTail=n,Ud(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=lt.depsTail,n.nextDep=void 0,lt.depsTail.nextDep=n,lt.depsTail=n,lt.deps===n&&(lt.deps=s)}return n}trigger(t){this.version++,Qo++,this.notify(t)}notify(t){Oi();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Pi()}}}function Ud(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)Ud(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const zr=new WeakMap,Hs=Symbol(""),$l=Symbol(""),Zo=Symbol("");function Rt(e,t,n){if(pn&<){let s=zr.get(e);s||zr.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new ka),o.map=s,o.key=n),o.track()}}function Kn(e,t,n,s,o,r){const l=zr.get(e);if(!l){Qo++;return}const i=u=>{u&&u.trigger()};if(Oi(),t==="clear")l.forEach(i);else{const u=Se(e),c=u&&ya(n);if(u&&n==="length"){const d=Number(s);l.forEach((f,p)=>{(p==="length"||p===Zo||!nn(p)&&p>=d)&&i(f)})}else switch((n!==void 0||l.has(void 0))&&i(l.get(n)),c&&i(l.get(Zo)),t){case"add":u?c&&i(l.get("length")):(i(l.get(Hs)),po(e)&&i(l.get($l)));break;case"delete":u||(i(l.get(Hs)),po(e)&&i(l.get($l)));break;case"set":po(e)&&i(l.get(Hs));break}}Pi()}function hh(e,t){const n=zr.get(e);return n&&n.get(t)}function to(e){const t=je(e);return t===e?t:(Rt(t,"iterate",Zo),Zt(e)?t:t.map(gn))}function Sa(e){return Rt(e=je(e),"iterate",Zo),e}function En(e,t){return os(e)?yo(js(e)?gn(t):t):gn(t)}const vh={__proto__:null,[Symbol.iterator](){return ol(this,Symbol.iterator,e=>En(this,e))},concat(...e){return to(this).concat(...e.map(t=>Se(t)?to(t):t))},entries(){return ol(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 to(this).join(e)},lastIndexOf(...e){return rl(this,"lastIndexOf",e)},map(e,t){return qn(this,"map",e,t,void 0,arguments)},pop(){return To(this,"pop")},push(...e){return To(this,"push",e)},reduce(e,...t){return Tu(this,"reduce",e,t)},reduceRight(e,...t){return Tu(this,"reduceRight",e,t)},shift(){return To(this,"shift")},some(e,t){return qn(this,"some",e,t,void 0,arguments)},splice(...e){return To(this,"splice",e)},toReversed(){return to(this).toReversed()},toSorted(e){return to(this).toSorted(e)},toSpliced(...e){return to(this).toSpliced(...e)},unshift(...e){return To(this,"unshift",e)},values(){return ol(this,"values",e=>En(this,e))}};function ol(e,t,n){const s=Sa(e),o=s[t]();return s!==e&&!Zt(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const gh=Array.prototype;function qn(e,t,n,s,o,r){const l=Sa(e),i=l!==e&&!Zt(e),u=l[t];if(u!==gh[t]){const f=u.apply(e,r);return i?gn(f):f}let c=n;l!==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(l,c,s);return i&&o?o(d):d}function Tu(e,t,n,s){const o=Sa(e),r=o!==e&&!Zt(e);let l=n,i=!1;o!==e&&(r?(i=s.length===0,l=function(c,d,f){return i&&(i=!1,c=En(e,c)),n.call(this,c,En(e,d),f,e)}):n.length>3&&(l=function(c,d,f){return n.call(this,c,d,f,e)}));const u=o[t](l,...s);return i?En(e,u):u}function rl(e,t,n){const s=je(e);Rt(s,"iterate",Zo);const o=s[t](...n);return(o===-1||o===!1)&&Ea(n[0])?(n[0]=je(n[0]),s[t](...n)):o}function To(e,t,n=[]){ns(),Oi();const s=je(e)[t].apply(e,n);return Pi(),ss(),s}const yh=xi("__proto__,__v_isRef,__isVue"),Hd=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(nn));function bh(e){nn(e)||(e=String(e));const t=je(this);return Rt(t,"has",e),t.hasOwnProperty(e)}class jd{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?Xd:Yd:r?Gd:zd).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const l=Se(t);if(!o){let u;if(l&&(u=vh[n]))return u;if(n==="hasOwnProperty")return bh}const i=Reflect.get(t,n,pt(t)?t:s);if((nn(n)?Hd.has(n):yh(n))||(o||Rt(t,"get",n),r))return i;if(pt(i)){const u=l&&ya(n)?i:i.value;return o&&Qe(u)?Ml(u):u}return Qe(i)?o?Ml(i):Ks(i):i}}class Wd extends jd{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];const l=Se(t)&&ya(n);if(!this._isShallow){const c=os(r);if(!Zt(s)&&!os(s)&&(r=je(r),s=je(s)),!l&&pt(r)&&!pt(s))return c||(r.value=s),!0}const i=l?Number(n)<t.length:et(t,n),u=Reflect.set(t,n,s,pt(t)?t:o);return t===je(o)&&u&&(i?At(s,r)&&Kn(t,"set",n,s):Kn(t,"add",n,s)),u}deleteProperty(t,n){const s=et(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&Kn(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!nn(n)||!Hd.has(n))&&Rt(t,"has",n),s}ownKeys(t){return Rt(t,"iterate",Se(t)?"length":Hs),Reflect.ownKeys(t)}}class Kd extends jd{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const _h=new Wd,wh=new Kd,xh=new Wd(!0),kh=new Kd(!0),Il=e=>e,Or=e=>Reflect.getPrototypeOf(e);function Sh(e,t,n){return function(...s){const o=this.__v_raw,r=je(o),l=po(r),i=e==="entries"||e===Symbol.iterator&&l,u=e==="keys"&&l,c=o[e](...s),d=n?Il:t?yo:gn;return!t&&Rt(r,"iterate",u?$l:Hs),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 Pr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ch(e,t){const n={get(o){const r=this.__v_raw,l=je(r),i=je(o);e||(At(o,i)&&Rt(l,"get",o),Rt(l,"get",i));const{has:u}=Or(l),c=t?Il:e?yo:gn;if(u.call(l,o))return c(r.get(o));if(u.call(l,i))return c(r.get(i));r!==l&&r.get(o)},get size(){const o=this.__v_raw;return!e&&Rt(je(o),"iterate",Hs),o.size},has(o){const r=this.__v_raw,l=je(r),i=je(o);return e||(At(o,i)&&Rt(l,"has",o),Rt(l,"has",i)),o===i?r.has(o):r.has(o)||r.has(i)},forEach(o,r){const l=this,i=l.__v_raw,u=je(i),c=t?Il:e?yo:gn;return!e&&Rt(u,"iterate",Hs),i.forEach((d,f)=>o.call(r,c(d),c(f),l))}};return vt(n,e?{add:Pr("add"),set:Pr("set"),delete:Pr("delete"),clear:Pr("clear")}:{add(o){const r=je(this),l=Or(r),i=je(o),u=!t&&!Zt(o)&&!os(o)?i:o;return l.has.call(r,u)||At(o,u)&&l.has.call(r,o)||At(i,u)&&l.has.call(r,i)||(r.add(u),Kn(r,"add",u,u)),this},set(o,r){!t&&!Zt(r)&&!os(r)&&(r=je(r));const l=je(this),{has:i,get:u}=Or(l);let c=i.call(l,o);c||(o=je(o),c=i.call(l,o));const d=u.call(l,o);return l.set(o,r),c?At(r,d)&&Kn(l,"set",o,r):Kn(l,"add",o,r),this},delete(o){const r=je(this),{has:l,get:i}=Or(r);let u=l.call(r,o);u||(o=je(o),u=l.call(r,o)),i&&i.call(r,o);const c=r.delete(o);return u&&Kn(r,"delete",o,void 0),c},clear(){const o=je(this),r=o.size!==0,l=o.clear();return r&&Kn(o,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=Sh(o,e,t)}),n}function Ca(e,t){const n=Ch(e,t);return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(et(n,o)&&o in s?n:s,o,r)}const Ah={get:Ca(!1,!1)},Eh={get:Ca(!1,!0)},Oh={get:Ca(!0,!1)},Ph={get:Ca(!0,!0)},zd=new WeakMap,Gd=new WeakMap,Yd=new WeakMap,Xd=new WeakMap;function Th(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 os(e)?e:Aa(e,!1,_h,Ah,zd)}function $h(e){return Aa(e,!1,xh,Eh,Gd)}function Ml(e){return Aa(e,!0,wh,Oh,Yd)}function no(e){return Aa(e,!0,kh,Ph,Xd)}function Aa(e,t,n,s,o){if(!Qe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=o.get(e);if(r)return r;const l=Th(nh(e));if(l===0)return e;const i=new Proxy(e,l===2?s:n);return o.set(e,i),i}function js(e){return os(e)?js(e.__v_raw):!!(e&&e.__v_isReactive)}function os(e){return!!(e&&e.__v_isReadonly)}function Zt(e){return!!(e&&e.__v_isShallow)}function Ea(e){return e?!!e.__v_raw:!1}function je(e){const t=e&&e.__v_raw;return t?je(t):e}function Jd(e){return!et(e,"__v_skip")&&Object.isExtensible(e)&&Td(e,"__v_skip",!0),e}const gn=e=>Qe(e)?Ks(e):e,yo=e=>Qe(e)?Ml(e):e;function pt(e){return e?e.__v_isRef===!0:!1}function N(e){return Qd(e,!1)}function Oa(e){return Qd(e,!0)}function Qd(e,t){return pt(e)?e:new Ih(e,t)}class Ih{constructor(t,n){this.dep=new ka,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:je(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)||os(t);t=s?t:je(t),At(t,n)&&(this._rawValue=t,this._value=s?t:gn(t),this.dep.trigger())}}function Mh(e){e.dep&&e.dep.trigger()}function a(e){return pt(e)?e.value:e}function Dt(e){return Te(e)?e():a(e)}const Rh={get:(e,t,n)=>t==="__v_raw"?e:a(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return pt(o)&&!pt(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Zd(e){return js(e)?e:new Proxy(e,Rh)}class Lh{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new ka,{get:s,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function ef(e){return new Lh(e)}function Gt(e){const t=Se(e)?new Array(e.length):{};for(const n in e)t[n]=tf(e,n);return t}class Dh{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=nn(n)?n:String(n),this._raw=je(t);let o=!0,r=t;if(!Se(t)||nn(this._key)||!ya(this._key))do o=!Ea(r)||Zt(r);while(o&&(r=r.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=a(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 hh(this._raw,this._key)}}class Nh{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 Fh(e,t,n){return pt(e)?e:Te(e)?new Nh(e):Qe(e)&&arguments.length>1?tf(e,t,n):N(e)}function tf(e,t,n){return new Dh(e,t,n)}class qh{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ka(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Qo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&<!==this)return Nd(this,!0),!0}get value(){const t=this.dep.track();return Bd(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Bh(e,t,n=!1){let s,o;return Te(e)?s=e:(s=e.get,o=e.set),new qh(s,o,n)}const Tr={},Gr=new WeakMap;let Fs;function Vh(e,t=!1,n=Fs){if(n){let s=Gr.get(n);s||Gr.set(n,s=[]),s.push(e)}}function Uh(e,t,n=We){const{immediate:s,deep:o,once:r,scheduler:l,augmentJob:i,call:u}=n,c=k=>o?k:Zt(k)||o===!1||o===0?zn(k,1):zn(k);let d,f,p,m,g=!1,w=!1;if(pt(e)?(f=()=>e.value,g=Zt(e)):js(e)?(f=()=>c(e),g=!0):Se(e)?(w=!0,g=e.some(k=>js(k)||Zt(k)),f=()=>e.map(k=>{if(pt(k))return k.value;if(js(k))return c(k);if(Te(k))return u?u(k,2):k()})):Te(e)?t?f=u?()=>u(e,2):e:f=()=>{if(p){ns();try{p()}finally{ss()}}const k=Fs;Fs=d;try{return u?u(e,3,[m]):e(m)}finally{Fs=k}}:f=Tn,t&&o){const k=f,R=o===!0?1/0:o;f=()=>zn(k(),R)}const C=xa(),h=()=>{d.stop(),C&&C.active&&ki(C.effects,d)};if(r&&t){const k=t;t=(...R)=>{const I=k(...R);return h(),I}}let b=w?new Array(e.length).fill(Tr):Tr;const $=k=>{if(!(!(d.flags&1)||!d.dirty&&!k))if(t){const R=d.run();if(k||o||g||(w?R.some((I,E)=>At(I,b[E])):At(R,b))){p&&p();const I=Fs;Fs=d;try{const E=[R,b===Tr?void 0:w&&b[0]===Tr?[]:b,m];b=R,u?u(t,3,E):t(...E)}finally{Fs=I}}}else d.run()};return i&&i($),d=new Ld(f),d.scheduler=l?()=>l($,!1):$,m=k=>Vh(k,!1,d),p=d.onStop=()=>{const k=Gr.get(d);if(k){if(u)u(k,4);else for(const R of k)R();Gr.delete(d)}},t?s?$(!0):b=d.run():l?l($.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||!Qe(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(Ad(e)||po(e))e.forEach(s=>{zn(s,t,n)});else if(Pd(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 gr(e,t,n,s){try{return s?e(...s):e()}catch(o){Pa(o,t,n)}}function un(e,t,n,s){if(Te(e)){const o=gr(e,t,n,s);return o&&Ed(o)&&o.catch(r=>{Pa(r,t,n)}),o}if(Se(e)){const o=[];for(let r=0;r<e.length;r++)o.push(un(e[r],t,n,s));return o}}function Pa(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:l}=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(r){ns(),gr(r,null,10,[e,u,c]),ss();return}}Hh(e,n,o,s,l)}function Hh(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const Bt=[];let Cn=-1;const mo=[];let ys=null,oo=0;const nf=Promise.resolve();let Yr=null;function yt(e){const t=Yr||nf;return e?t.then(this?e.bind(this):e):t}function jh(e){let t=Cn+1,n=Bt.length;for(;t<n;){const s=t+n>>>1,o=Bt[s],r=er(o);r<e||r===e&&o.flags&2?t=s+1:n=s}return t}function $i(e){if(!(e.flags&1)){const t=er(e),n=Bt[Bt.length-1];!n||!(e.flags&2)&&t>=er(n)?Bt.push(e):Bt.splice(jh(t),0,e),e.flags|=1,sf()}}function sf(){Yr||(Yr=nf.then(rf))}function Wh(e){Se(e)?mo.push(...e):ys&&e.id===-1?ys.splice(oo+1,0,e):e.flags&1||(mo.push(e),e.flags|=1),sf()}function $u(e,t,n=Cn+1){for(;n<Bt.length;n++){const s=Bt[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Bt.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function of(e){if(mo.length){const t=[...new Set(mo)].sort((n,s)=>er(n)-er(s));if(mo.length=0,ys){ys.push(...t);return}for(ys=t,oo=0;oo<ys.length;oo++){const n=ys[oo];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ys=null,oo=0}}const er=e=>e.id==null?e.flags&2?-1:1/0:e.id;function rf(e){try{for(Cn=0;Cn<Bt.length;Cn++){const t=Bt[Cn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),gr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Cn<Bt.length;Cn++){const t=Bt[Cn];t&&(t.flags&=-2)}Cn=-1,Bt.length=0,of(),Yr=null,(Bt.length||mo.length)&&rf()}}let Pt=null,af=null;function Xr(e){const t=Pt;return Pt=e,af=e&&e.type.__scopeId||null,t}function y(e,t=Pt,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Zr(-1);const r=Xr(t),l=Qn.length;let i;try{i=e(...o)}finally{for(let u=Qn.length;u>l;u--)Fi();Xr(r),s._d&&Zr(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function zs(e,t){if(Pt===null)return e;const n=Ma(Pt),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,l,i,u=We]=t[o];r&&(Te(r)&&(r={mounted:r,updated:r}),r.deep&&zn(l),s.push({dir:r,instance:n,value:l,oldValue:void 0,arg:i,modifiers:u}))}return e}function Ms(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let l=0;l<o.length;l++){const i=o[l];r&&(i.oldValue=r[l].value);let u=i.dir[s];u&&(ns(),un(u,n,8,[e.el,i,e,t]),ss())}}function Ii(e,t){if(Lt){let n=Lt.provides;const s=Lt.parent&&Lt.parent.provides;s===n&&(n=Lt.provides=Object.create(s)),n[e]=t}}function Ws(e,t,n=!1){const s=Yt();if(s||vo){let o=vo?vo._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Te(t)?t.call(s&&s.proxy):t}}const Kh=Symbol.for("v-scx"),zh=()=>Ws(Kh);function rs(e,t){return yr(e,null,t)}function lf(e,t){return yr(e,null,{flush:"post"})}function Gh(e,t){return yr(e,null,{flush:"sync"})}function De(e,t,n){return yr(e,t,n)}function yr(e,t,n=We){const{immediate:s,deep:o,flush:r,once:l}=n,i=vt({},n),u=t&&s||!t&&r!=="post";let c;if(or){if(r==="sync"){const m=zh();c=m.__watcherHandles||(m.__watcherHandles=[])}else if(!u){const m=()=>{};return m.stop=Tn,m.resume=Tn,m.pause=Tn,m}}const d=Lt;i.call=(m,g,w)=>un(m,d,g,w);let f=!1;r==="post"?i.scheduler=m=>{qt(m,d&&d.suspense)}:r!=="sync"&&(f=!0,i.scheduler=(m,g)=>{g?m():$i(m)}),i.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,d&&(m.id=d.uid,m.i=d))};const p=Uh(e,t,i);return or&&(c?c.push(p):u&&p()),p}function Yh(e,t,n){const s=this.proxy,o=it(e)?e.includes(".")?uf(s,e):()=>s[e]:e.bind(s,s);let r;Te(t)?r=t:(r=t.handler,n=t);const l=xr(this),i=yr(o,r.bind(s),n);return l(),i}function uf(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}const hs=new WeakMap,cf=Symbol("_vte"),Xh=e=>e.__isTeleport,qs=e=>e&&(e.disabled||e.disabled===""),Jh=e=>e&&(e.defer||e.defer===""),Iu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Mu=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Rl=(e,t)=>{const n=e&&e.to;return it(n)?t?t(n):null:n},Qh={name:"Teleport",__isTeleport:!0,process(e,t,n,s,o,r,l,i,u,c){const{mc:d,pc:f,pbc:p,o:{insert:m,querySelector:g,createText:w,createComment:C,parentNode:h}}=c,b=qs(t.props);let{dynamicChildren:$}=t;const k=(E,M,q)=>{E.shapeFlag&16&&d(E.children,M,q,o,r,l,i,u)},R=(E=t)=>{const M=qs(E.props),q=E.target=Rl(E.props,g),Y=Ll(q,E,w,m);q&&(l!=="svg"&&Iu(q)?l="svg":l!=="mathml"&&Mu(q)&&(l="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(q),M||(k(E,q,Y),qo(E,!1)))},I=E=>{const M=()=>{if(hs.get(E)===M){if(hs.delete(E),qs(E.props)){const q=h(E.el)||n;k(E,q,E.anchor),qo(E,!0)}R(E)}};hs.set(E,M),qt(M,r)};if(e==null){const E=t.el=w(""),M=t.anchor=w("");if(m(E,n,s),m(M,n,s),Jh(t.props)||r&&r.pendingBranch){I(t);return}b&&(k(t,n,M),qo(t,!0)),R()}else{t.el=e.el;const E=t.anchor=e.anchor,M=hs.get(e);if(M){M.flags|=8,hs.delete(e),I(t);return}t.targetStart=e.targetStart;const q=t.target=e.target,Y=t.targetAnchor=e.targetAnchor,re=qs(e.props),H=re?n:q,ee=re?E:Y;if(l==="svg"||Iu(q)?l="svg":(l==="mathml"||Mu(q))&&(l="mathml"),$?(p(e.dynamicChildren,$,H,o,r,l,i),Ni(e,t,!0)):u||f(e,t,H,ee,o,r,l,i,!1),b)re?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):$r(t,n,E,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const me=Rl(t.props,g);me&&(t.target=me,$r(t,me,null,c,0))}else re&&$r(t,q,Y,c,1);qo(t,b)}},remove(e,t,n,{um:s,o:{remove:o}},r){const{shapeFlag:l,children:i,anchor:u,targetStart:c,targetAnchor:d,target:f,props:p}=e,m=qs(p),g=r||!m,w=hs.get(e);if(w&&(w.flags|=8,hs.delete(e)),f&&(o(c),o(d)),r&&o(u),!w&&(m||f)&&l&16)for(let C=0;C<i.length;C++){const h=i[C];s(h,t,n,g,!!h.dynamicChildren)}},move:$r,hydrate:Zh};function $r(e,t,n,{o:{insert:s},m:o},r=2){r===0&&s(e.targetAnchor,t,n);const{el:l,anchor:i,shapeFlag:u,children:c,props:d}=e,f=r===2;if(f&&s(l,t,n),!hs.has(e)&&(!f||qs(d))&&u&16)for(let p=0;p<c.length;p++)o(c[p],t,n,2);f&&s(i,t,n)}function Zh(e,t,n,s,o,r,{o:{nextSibling:l,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&&l(t.targetAnchor);break}}b=l(b)}}function m(C,h){h.anchor=f(l(C),h,i(C),n,s,o,r)}const g=t.target=Rl(t.props,u),w=qs(t.props);if(g){const C=g._lpa||g.firstChild;t.shapeFlag&16&&(w?(m(e,t),p(g,C),t.targetAnchor||Ll(g,t,d,c,i(e)===g?e:null)):(t.anchor=l(e),p(g,C),t.targetAnchor||Ll(g,t,d,c),f(C&&l(C),t,g,n,s,o,r))),qo(t,w)}else w&&t.shapeFlag&16&&(m(e,t),t.targetStart=e,t.targetAnchor=l(e));return t.anchor&&l(t.anchor)}const Mi=Qh;function qo(e,t){const n=e.ctx;if(n&&n.ut){let s,o;for(t?(s=e.el,o=e.anchor):(s=e.targetStart,o=e.targetAnchor);s&&s!==o;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function Ll(e,t,n,s,o=null){const r=t.targetStart=n(""),l=t.targetAnchor=n("");return r[cf]=l,e&&(s(r,e,o),s(l,e,o)),l}const An=Symbol("_leaveCb"),$o=Symbol("_enterCb");function ev(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return mt(()=>{e.isMounted=!0}),$a(()=>{e.isUnmounting=!0}),e}const on=[Function,Array],tv={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:on,onEnter:on,onAfterEnter:on,onEnterCancelled:on,onBeforeLeave:on,onLeave:on,onAfterLeave:on,onLeaveCancelled:on,onBeforeAppear:on,onAppear:on,onAfterAppear:on,onAppearCancelled:on};function nv(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 Dl(e,t,n,s,o){const{appear:r,mode:l,persisted:i=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:g,onLeaveCancelled:w,onBeforeAppear:C,onAppear:h,onAfterAppear:b,onAppearCancelled:$}=t,k=String(e.key),R=nv(n,e),I=(q,Y)=>{q&&un(q,s,9,Y)},E=(q,Y)=>{const re=Y[1];I(q,Y),Se(q)?q.every(H=>H.length<=1)&&re():q.length<=1&&re()},M={mode:l,persisted:i,beforeEnter(q){let Y=u;if(!n.isMounted)if(r)Y=C||u;else return;q[An]&&q[An](!0);const re=R[k];re&&ro(e,re)&&re.el[An]&&re.el[An](),I(Y,[q])},enter(q){if(R[k]===e)return;let Y=c,re=d,H=f;if(!n.isMounted)if(r)Y=h||c,re=b||d,H=$||f;else return;let ee=!1;q[$o]=J=>{ee||(ee=!0,J?I(H,[q]):I(re,[q]),M.delayedLeave&&M.delayedLeave(),q[$o]=void 0)};const me=q[$o].bind(null,!1);Y?E(Y,[q,me]):me()},leave(q,Y){const re=String(e.key);if(q[$o]&&q[$o](!0),n.isUnmounting)return Y();I(p,[q]);let H=!1;q[An]=me=>{H||(H=!0,Y(),me?I(w,[q]):I(g,[q]),q[An]=void 0,R[re]===e&&delete R[re])};const ee=q[An].bind(null,!1);R[re]=e,m?E(m,[q,ee]):ee()},clone(q){const Y=Dl(q,t,n,s,o);return o&&o(Y),Y}};return M}function tr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,tr(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 df(e,t=!1,n){let s=[],o=0;for(let r=0;r<e.length;r++){let l=e[r];const i=n==null?l.key:String(n)+String(l.key!=null?l.key:r);l.type===Ae?(l.patchFlag&128&&o++,s=s.concat(df(l.children,t,i))):(t||l.type!==yn)&&s.push(i!=null?ws(l,{key:i}):l)}if(o>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}function X(e,t){return Te(e)?vt({name:e.name},t,{setup:e}):e}function al(){const e=Yt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function ff(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ru(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Jr=new WeakMap;function Wo(e,t,n,s,o=!1){if(Se(e)){e.forEach((w,C)=>Wo(w,t&&(Se(t)?t[C]:t),n,s,o));return}if(ho(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Wo(e,t,n,s.component.subTree);return}const r=s.shapeFlag&4?Ma(s.component):s.el,l=o?null:r,{i,r:u}=e,c=t&&t.r,d=i.refs===We?i.refs={}:i.refs,f=i.setupState,p=je(f),m=f===We?Cd:w=>Ru(d,w)?!1:et(p,w),g=(w,C)=>!(C&&Ru(d,C));if(c!=null&&c!==u){if(Lu(t),it(c))d[c]=null,m(c)&&(f[c]=null);else if(pt(c)){const w=t;g(c,w.k)&&(c.value=null),w.k&&(d[w.k]=null)}}if(Te(u))gr(u,i,12,[l,d]);else{const w=it(u),C=pt(u);if(w||C){const h=()=>{if(e.f){const b=w?m(u)?f[u]:d[u]:g()||!e.k?u.value:d[e.k];if(o)Se(b)&&ki(b,r);else if(Se(b))b.includes(r)||b.push(r);else if(w)d[u]=[r],m(u)&&(f[u]=d[u]);else{const $=[r];g(u,e.k)&&(u.value=$),e.k&&(d[e.k]=$)}}else w?(d[u]=l,m(u)&&(f[u]=l)):C&&(g(u,e.k)&&(u.value=l),e.k&&(d[e.k]=l))};if(l){const b=()=>{h(),Jr.delete(e)};b.id=-1,Jr.set(e,b),qt(b,n)}else Lu(e),h()}}}function Lu(e){const t=Jr.get(e);t&&(t.flags|=8,Jr.delete(e))}wa().requestIdleCallback;wa().cancelIdleCallback;const ho=e=>!!e.type.__asyncLoader,pf=e=>e.type.__isKeepAlive;function sv(e,t){mf(e,"a",t)}function ov(e,t){mf(e,"da",t)}function mf(e,t,n=Lt){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ta(t,s,n),n){let o=n.parent;for(;o&&o.parent;)pf(o.parent.vnode)&&rv(s,t,n,o),o=o.parent}}function rv(e,t,n,s){const o=Ta(t,e,s,!0);bn(()=>{ki(s[t],o)},n)}function Ta(e,t,n=Lt,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...l)=>{ns();const i=xr(n),u=un(t,n,e,l);return i(),ss(),u});return s?o.unshift(r):o.push(r),r}}const us=e=>(t,n=Lt)=>{(!or||e==="sp")&&Ta(e,(...s)=>t(...s),n)},av=us("bm"),mt=us("m"),lv=us("bu"),Ri=us("u"),$a=us("bum"),bn=us("um"),iv=us("sp"),uv=us("rtg"),cv=us("rtc");function dv(e,t=Lt){Ta("ec",e,t)}const fv="components",hf=Symbol.for("v-ndc");function br(e){return it(e)?pv(fv,e,!1)||e:e||hf}function pv(e,t,n=!0,s=!1){const o=Pt||Lt;if(o){const r=o.type;{const i=Yv(r,!1);if(i&&(i===t||i===Et(t)||i===_a(Et(t))))return r}const l=Du(o[e]||r[e],t)||Du(o.appContext[e],t);return!l&&s?r:l}}function Du(e,t){return e&&(e[t]||e[Et(t)]||e[_a(Et(t))])}function ct(e,t,n,s){let o;const r=n&&n[s],l=Se(e);if(l||it(e)){const i=l&&js(e);let u=!1,c=!1;i&&(u=!Zt(e),c=os(e),e=Sa(e)),o=new Array(e.length);for(let d=0,f=e.length;d<f;d++)o[d]=t(u?c?yo(gn(e[d])):gn(e[d]):e[d],d,void 0,r&&r[d])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,r&&r[i])}else if(Qe(e))if(e[Symbol.iterator])o=Array.from(e,(i,u)=>t(i,u,void 0,r&&r[u]));else{const i=Object.keys(e);o=new Array(i.length);for(let u=0,c=i.length;u<c;u++){const d=i[u];o[u]=t(e[d],d,u,r&&r[u])}}else o=[];return n&&(n[s]=o),o}function ie(e,t,n={},s,o,r){if(Pt.ce||Pt.parent&&ho(Pt.parent)&&Pt.parent.ce){const c=r!=null&&n.key==null?vt({},n,{key:r}):n,d=Object.keys(c).length>0;return t!=="default"&&(c.name=t),x(),F(Ae,null,[v("slot",c,s&&s())],d?-2:64)}let l=e[t];l&&l._c&&(l._d=!1);const i=Qn.length;x();let u;try{const c=l&&vf(l(n)),d=n.key||r||c&&c.key;u=F(Ae,{key:(d&&!nn(d)?d:`_${t}`)+(!c&&s?"_fb":"")},c||(s?s():[]),c&&e._===1?64:-2)}catch(c){for(let d=Qn.length;d>i;d--)Fi();throw c}finally{l&&l._c&&(l._d=!0)}return!o&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),u}function vf(e){return e.some(t=>sr(t)?!(t.type===yn||t.type===Ae&&!vf(t.children)):!0)?e:null}const Nl=e=>e?Nf(e)?Ma(e):Nl(e.parent):null,Ko=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=>Nl(e.parent),$root:e=>Nl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>bf(e),$forceUpdate:e=>e.f||(e.f=()=>{$i(e.update)}),$nextTick:e=>e.n||(e.n=yt.bind(e.proxy)),$watch:e=>Yh.bind(e)}),ll=(e,t)=>e!==We&&!e.__isScriptSetup&&et(e,t),mv={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:r,accessCache:l,type:i,appContext:u}=e;if(t[0]!=="$"){const p=l[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(ll(s,t))return l[t]=1,s[t];if(o!==We&&et(o,t))return l[t]=2,o[t];if(et(r,t))return l[t]=3,r[t];if(n!==We&&et(n,t))return l[t]=4,n[t];Fl&&(l[t]=0)}}const c=Ko[t];let d,f;if(c)return t==="$attrs"&&Rt(e.attrs,"get",""),c(e);if((d=i.__cssModules)&&(d=d[t]))return d;if(n!==We&&et(n,t))return l[t]=4,n[t];if(f=u.config.globalProperties,et(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return ll(o,t)?(o[t]=n,!0):s!==We&&et(s,t)?(s[t]=n,!0):et(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,props:r,type:l}},i){let u;return!!(n[i]||e!==We&&i[0]!=="$"&&et(e,i)||ll(t,i)||et(r,i)||et(s,i)||et(Ko,i)||et(o.config.globalProperties,i)||(u=l.__cssModules)&&u[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:et(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hv(){return vv().attrs}function vv(e){const t=Yt();return t.setupContext||(t.setupContext=qf(t))}function nr(e){return Se(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function gf(e,t){const n=nr(e);for(const s in t){if(s.startsWith("__skip"))continue;let o=n[s];o?Se(o)||Te(o)?o=n[s]={type:o,default:t[s]}:o.default=t[s]:o===null&&(o=n[s]={default:t[s]}),o&&t[`__skip_${s}`]&&(o.skipFactory=!0)}return n}function _s(e,t){return!e||!t?e||t:Se(e)&&Se(t)?e.concat(t):vt({},nr(e),nr(t))}let Fl=!0;function gv(e){const t=bf(e),n=e.proxy,s=e.ctx;Fl=!1,t.beforeCreate&&Nu(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:l,watch:i,provide:u,inject:c,created:d,beforeMount:f,mounted:p,beforeUpdate:m,updated:g,activated:w,deactivated:C,beforeDestroy:h,beforeUnmount:b,destroyed:$,unmounted:k,render:R,renderTracked:I,renderTriggered:E,errorCaptured:M,serverPrefetch:q,expose:Y,inheritAttrs:re,components:H,directives:ee,filters:me}=t;if(c&&yv(c,s,null),l)for(const de in l){const fe=l[de];Te(fe)&&(s[de]=fe.bind(n))}if(o){const de=o.call(n,n);Qe(de)&&(e.data=Ks(de))}if(Fl=!0,r)for(const de in r){const fe=r[de],se=Te(fe)?fe.bind(n,n):Te(fe.get)?fe.get.bind(n,n):Tn,Q=!Te(fe)&&Te(fe.set)?fe.set.bind(n):Tn,ce=te({get:se,set:Q});Object.defineProperty(s,de,{enumerable:!0,configurable:!0,get:()=>ce.value,set:Be=>ce.value=Be})}if(i)for(const de in i)yf(i[de],s,n,de);if(u){const de=Te(u)?u.call(n):u;Reflect.ownKeys(de).forEach(fe=>{Ii(fe,de[fe])})}d&&Nu(d,e,"c");function ue(de,fe){Se(fe)?fe.forEach(se=>de(se.bind(n))):fe&&de(fe.bind(n))}if(ue(av,f),ue(mt,p),ue(lv,m),ue(Ri,g),ue(sv,w),ue(ov,C),ue(dv,M),ue(cv,I),ue(uv,E),ue($a,b),ue(bn,k),ue(iv,q),Se(Y))if(Y.length){const de=e.exposed||(e.exposed={});Y.forEach(fe=>{Object.defineProperty(de,fe,{get:()=>n[fe],set:se=>n[fe]=se,enumerable:!0})})}else e.exposed||(e.exposed={});R&&e.render===Tn&&(e.render=R),re!=null&&(e.inheritAttrs=re),H&&(e.components=H),ee&&(e.directives=ee),q&&ff(e)}function yv(e,t,n=Tn){Se(e)&&(e=ql(e));for(const s in e){const o=e[s];let r;Qe(o)?"default"in o?r=Ws(o.from||s,o.default,!0):r=Ws(o.from||s):r=Ws(o),pt(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:l=>r.value=l}):t[s]=r}}function Nu(e,t,n){un(Se(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function yf(e,t,n,s){let o=s.includes(".")?uf(n,s):()=>n[s];if(it(e)){const r=t[e];Te(r)&&De(o,r)}else if(Te(e))De(o,e.bind(n));else if(Qe(e))if(Se(e))e.forEach(r=>yf(r,t,n,s));else{const r=Te(e.handler)?e.handler.bind(n):t[e.handler];Te(r)&&De(o,r,e)}}function bf(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:l}}=e.appContext,i=r.get(t);let u;return i?u=i:!o.length&&!n&&!s?u=t:(u={},o.length&&o.forEach(c=>Qr(u,c,l,!0)),Qr(u,t,l)),Qe(t)&&r.set(t,u),u}function Qr(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Qr(e,r,n,!0),o&&o.forEach(l=>Qr(e,l,n,!0));for(const l in t)if(!(s&&l==="expose")){const i=bv[l]||n&&n[l];e[l]=i?i(e[l],t[l]):t[l]}return e}const bv={data:Fu,props:qu,emits:qu,methods:Bo,computed:Bo,beforeCreate:Ft,created:Ft,beforeMount:Ft,mounted:Ft,beforeUpdate:Ft,updated:Ft,beforeDestroy:Ft,beforeUnmount:Ft,destroyed:Ft,unmounted:Ft,activated:Ft,deactivated:Ft,errorCaptured:Ft,serverPrefetch:Ft,components:Bo,directives:Bo,watch:wv,provide:Fu,inject:_v};function Fu(e,t){return t?e?function(){return vt(Te(e)?e.call(this,this):e,Te(t)?t.call(this,this):t)}:t:e}function _v(e,t){return Bo(ql(e),ql(t))}function ql(e){if(Se(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ft(e,t){return e?[...new Set([].concat(e,t))]:t}function Bo(e,t){return e?vt(Object.create(null),e,t):t}function qu(e,t){return e?Se(e)&&Se(t)?[...new Set([...e,...t])]:vt(Object.create(null),nr(e),nr(t??{})):t}function wv(e,t){if(!e)return t;if(!t)return e;const n=vt(Object.create(null),e);for(const s in t)n[s]=Ft(e[s],t[s]);return n}function _f(){return{app:null,config:{isNativeTag:Cd,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 xv=0;function kv(e,t){return function(s,o=null){Te(s)||(s=vt({},s)),o!=null&&!Qe(o)&&(o=null);const r=_f(),l=new WeakSet,i=[];let u=!1;const c=r.app={_uid:xv++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:Zv,get config(){return r.config},set config(d){},use(d,...f){return l.has(d)||(d&&Te(d.install)?(l.add(d),d.install(c,...f)):Te(d)&&(l.add(d),d(c,...f))),c},mixin(d){return r.mixins.includes(d)||r.mixins.push(d),c},component(d,f){return f?(r.components[d]=f,c):r.components[d]},directive(d,f){return f?(r.directives[d]=f,c):r.directives[d]},mount(d,f,p){if(!u){const m=c._ceVNode||v(s,o);return m.appContext=r,p===!0?p="svg":p===!1&&(p=void 0),e(m,d,p),u=!0,c._container=d,d.__vue_app__=c,Ma(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 r.provides[d]=f,c},runWithContext(d){const f=vo;vo=c;try{return d()}finally{vo=f}}};return c}}let vo=null;function _r(e,t,n=We){const s=Yt(),o=Et(t),r=is(t),l=wf(e,o),i=ef((u,c)=>{let d,f=We,p;return Gh(()=>{const m=e[o];At(d,m)&&(d=m,c())}),{get(){return u(),n.get?n.get(d):d},set(m){const g=n.set?n.set(m):m;if(!At(g,d)&&!(f!==We&&At(m,f)))return;const w=s.vnode.props,C=!!(w&&(t in w||o in w||r in w)&&(`onUpdate:${t}`in w||`onUpdate:${o}`in w||`onUpdate:${r}`in w));C||(d=m,c()),s.emit(`update:${t}`,g),At(m,f)&&(At(m,g)&&!At(g,p)||C&&f!==We&&!At(g,d))&&c(),f=m,p=g}}});return i[Symbol.iterator]=()=>{let u=0;return{next(){return u<2?{value:u++?l||We:i,done:!1}:{done:!0}}}},i}const wf=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Et(t)}Modifiers`]||e[`${is(t)}Modifiers`];function Sv(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||We;let o=n;const r=t.startsWith("update:"),l=r&&wf(s,t.slice(7));l&&(l.trim&&(o=n.map(d=>it(d)?d.trim():d)),l.number&&(o=n.map(Si)));let i,u=s[i=Ur(t)]||s[i=Ur(Et(t))];!u&&r&&(u=s[i=Ur(is(t))]),u&&un(u,e,6,o);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,o)}}const Cv=new WeakMap;function xf(e,t,n=!1){const s=n?Cv:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let l={},i=!1;if(!Te(e)){const u=c=>{const d=xf(c,t,!0);d&&(i=!0,vt(l,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!i?(Qe(e)&&s.set(e,null),null):(Se(r)?r.forEach(u=>l[u]=null):vt(l,r),Qe(e)&&s.set(e,l),l)}function Ia(e,t){return!e||!va(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),et(e,t[0].toLowerCase()+t.slice(1))||et(e,is(t))||et(e,t))}function Bu(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[r],slots:l,attrs:i,emit:u,render:c,renderCache:d,props:f,data:p,setupState:m,ctx:g,inheritAttrs:w}=e,C=Xr(e);let h,b;try{if(n.shapeFlag&4){const k=o||s,R=k;h=On(c.call(R,k,d,f,m,p,g)),b=i}else{const k=t;h=On(k.length>1?k(f,{attrs:i,slots:l,emit:u}):k(f,null)),b=t.props?i:Av(i)}}catch(k){Qn.length=0,Pa(k,e,1),h=v(yn)}let $=h;if(b&&w!==!1){const k=Object.keys(b),{shapeFlag:R}=$;k.length&&R&7&&(r&&k.some(ga)&&(b=Ev(b,r)),$=ws($,b,!1,!0))}return n.dirs&&($=ws($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&tr($,n.transition),h=$,Xr(C),h}const Av=e=>{let t;for(const n in e)(n==="class"||n==="style"||va(n))&&((t||(t={}))[n]=e[n]);return t},Ev=(e,t)=>{const n={};for(const s in e)(!ga(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ov(e,t,n){const{props:s,children:o,component:r}=e,{props:l,children:i,patchFlag:u}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return s?Vu(s,l,c):!!l;if(u&8){const d=t.dynamicProps;for(let f=0;f<d.length;f++){const p=d[f];if(kf(l,s,p)&&!Ia(c,p))return!0}}}else return(o||i)&&(!i||!i.$stable)?!0:s===l?!1:s?l?Vu(s,l,c):!0:!!l;return!1}function Vu(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(kf(t,e,r)&&!Ia(n,r))return!0}return!1}function kf(e,t,n){const s=e[n],o=t[n];return n==="style"&&Qe(s)&&Qe(o)?!Ci(s,o):s!==o}function Pv({vnode:e,parent:t,suspense:n},s){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=s,e=o),o===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const Sf={},Cf=()=>Object.create(Sf),Af=e=>Object.getPrototypeOf(e)===Sf;function Tv(e,t,n,s=!1){const o={},r=Cf();e.propsDefaults=Object.create(null),Ef(e,t,o,r);for(const l in e.propsOptions[0])l in o||(o[l]=void 0);n?e.props=s?o:$h(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function $v(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:l}}=e,i=je(o),[u]=e.propsOptions;let c=!1;if((s||l>0)&&!(l&16)){if(l&8){const d=e.vnode.dynamicProps;for(let f=0;f<d.length;f++){let p=d[f];if(Ia(e.emitsOptions,p))continue;const m=t[p];if(u)if(et(r,p))m!==r[p]&&(r[p]=m,c=!0);else{const g=Et(p);o[g]=Bl(u,i,g,m,e,!1)}else m!==r[p]&&(r[p]=m,c=!0)}}}else{Ef(e,t,o,r)&&(c=!0);let d;for(const f in i)(!t||!et(t,f)&&((d=is(f))===f||!et(t,d)))&&(u?n&&(n[f]!==void 0||n[d]!==void 0)&&(o[f]=Bl(u,i,f,void 0,e,!0)):delete o[f]);if(r!==i)for(const f in r)(!t||!et(t,f))&&(delete r[f],c=!0)}c&&Kn(e.attrs,"set","")}function Ef(e,t,n,s){const[o,r]=e.propsOptions;let l=!1,i;if(t)for(let u in t){if(Uo(u))continue;const c=t[u];let d;o&&et(o,d=Et(u))?!r||!r.includes(d)?n[d]=c:(i||(i={}))[d]=c:Ia(e.emitsOptions,u)||(!(u in s)||c!==s[u])&&(s[u]=c,l=!0)}if(r){const u=je(n),c=i||We;for(let d=0;d<r.length;d++){const f=r[d];n[f]=Bl(o,u,f,c[f],e,!et(c,f))}}return l}function Bl(e,t,n,s,o,r){const l=e[n];if(l!=null){const i=et(l,"default");if(i&&s===void 0){const u=l.default;if(l.type!==Function&&!l.skipFactory&&Te(u)){const{propsDefaults:c}=o;if(n in c)s=c[n];else{const d=xr(o);s=c[n]=u.call(null,t),d()}}else s=u;o.ce&&o.ce._setProp(n,s)}l[0]&&(r&&!i?s=!1:l[1]&&(s===""||s===is(n))&&(s=!0))}return s}const Iv=new WeakMap;function Of(e,t,n=!1){const s=n?Iv:t.propsCache,o=s.get(e);if(o)return o;const r=e.props,l={},i=[];let u=!1;if(!Te(e)){const d=f=>{u=!0;const[p,m]=Of(f,t,!0);vt(l,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(!r&&!u)return Qe(e)&&s.set(e,fo),fo;if(Se(r))for(let d=0;d<r.length;d++){const f=Et(r[d]);Uu(f)&&(l[f]=We)}else if(r)for(const d in r){const f=Et(d);if(Uu(f)){const p=r[d],m=l[f]=Se(p)||Te(p)?{type:p}:vt({},p),g=m.type;let w=!1,C=!0;if(Se(g))for(let h=0;h<g.length;++h){const b=g[h],$=Te(b)&&b.name;if($==="Boolean"){w=!0;break}else $==="String"&&(C=!1)}else w=Te(g)&&g.name==="Boolean";m[0]=w,m[1]=C,(w||et(m,"default"))&&i.push(f)}}const c=[l,i];return Qe(e)&&s.set(e,c),c}function Uu(e){return e[0]!=="$"&&!Uo(e)}const Li=e=>e==="_"||e==="_ctx"||e==="$stable",Di=e=>Se(e)?e.map(On):[On(e)],Mv=(e,t,n)=>{if(t._n)return t;const s=y((...o)=>Di(t(...o)),n);return s._c=!1,s},Pf=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Li(o))continue;const r=e[o];if(Te(r))t[o]=Mv(o,r,s);else if(r!=null){const l=Di(r);t[o]=()=>l}}},Tf=(e,t)=>{const n=Di(t);e.slots.default=()=>n},$f=(e,t,n)=>{for(const s in t)(n||!Li(s))&&(e[s]=t[s])},Rv=(e,t,n)=>{const s=e.slots=Cf();if(e.vnode.shapeFlag&32){const o=t._;o?($f(s,t,n),n&&Td(s,"_",o,!0)):Pf(t,s)}else t&&Tf(e,t)},Lv=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,l=We;if(s.shapeFlag&32){const i=t._;i?n&&i===1?r=!1:$f(o,t,n):(r=!t.$stable,Pf(t,o)),l=t}else t&&(Tf(e,t),l={default:1});if(r)for(const i in o)!Li(i)&&l[i]==null&&delete o[i]},qt=Bv;function Dv(e){return Nv(e)}function Nv(e,t){const n=wa();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:l,createText:i,createComment:u,setText:c,setElementText:d,parentNode:f,nextSibling:p,setScopeId:m=Tn,insertStaticContent:g}=e,w=(_,T,W,le=null,oe=null,ne=null,O=void 0,P=null,V=!!T.dynamicChildren)=>{if(_===T)return;_&&!ro(_,T)&&(le=qe(_),Be(_,oe,ne,!0),_=null),T.patchFlag===-2&&(V=!1,T.dynamicChildren=null);const{type:j,ref:pe,shapeFlag:ae}=T;switch(j){case wr:C(_,T,W,le);break;case yn:h(_,T,W,le);break;case jr:_==null&&b(T,W,le,O);break;case Ae:H(_,T,W,le,oe,ne,O,P,V);break;default:ae&1?R(_,T,W,le,oe,ne,O,P,V):ae&6?ee(_,T,W,le,oe,ne,O,P,V):(ae&64||ae&128)&&j.process(_,T,W,le,oe,ne,O,P,V,ut)}pe!=null&&oe?Wo(pe,_&&_.ref,ne,T||_,!T):pe==null&&_&&_.ref!=null&&Wo(_.ref,null,ne,_,!0)},C=(_,T,W,le)=>{if(_==null)s(T.el=i(T.children),W,le);else{const oe=T.el=_.el;T.children!==_.children&&c(oe,T.children)}},h=(_,T,W,le)=>{_==null?s(T.el=u(T.children||""),W,le):T.el=_.el},b=(_,T,W,le)=>{[_.el,_.anchor]=g(_.children,T,W,le,_.el,_.anchor)},$=({el:_,anchor:T},W,le)=>{let oe;for(;_&&_!==T;)oe=p(_),s(_,W,le),_=oe;s(T,W,le)},k=({el:_,anchor:T})=>{let W;for(;_&&_!==T;)W=p(_),o(_),_=W;o(T)},R=(_,T,W,le,oe,ne,O,P,V)=>{if(T.type==="svg"?O="svg":T.type==="math"&&(O="mathml"),_==null)I(T,W,le,oe,ne,O,P,V);else{const j=_.el&&_.el._isVueCE?_.el:null;try{j&&j._beginPatch(),q(_,T,oe,ne,O,P,V)}finally{j&&j._endPatch()}}},I=(_,T,W,le,oe,ne,O,P)=>{let V,j;const{props:pe,shapeFlag:ae,transition:U,dirs:z}=_;if(V=_.el=l(_.type,ne,pe&&pe.is,pe),ae&8?d(V,_.children):ae&16&&M(_.children,V,null,le,oe,il(_,ne),O,P),z&&Ms(_,null,le,"created"),E(V,_,_.scopeId,O,le),pe){for(const Ce in pe)Ce!=="value"&&!Uo(Ce)&&r(V,Ce,null,pe[Ce],ne,le);"value"in pe&&r(V,"value",null,pe.value,ne),(j=pe.onVnodeBeforeMount)&&_n(j,le,_)}z&&Ms(_,null,le,"beforeMount");const he=Fv(oe,U);he&&U.beforeEnter(V),s(V,T,W),((j=pe&&pe.onVnodeMounted)||he||z)&&qt(()=>{try{j&&_n(j,le,_),he&&U.enter(V),z&&Ms(_,null,le,"mounted")}finally{}},oe)},E=(_,T,W,le,oe)=>{if(W&&m(_,W),le)for(let ne=0;ne<le.length;ne++)m(_,le[ne]);if(oe){let ne=oe.subTree;if(T===ne||Rf(ne.type)&&(ne.ssContent===T||ne.ssFallback===T)){const O=oe.vnode;E(_,O,O.scopeId,O.slotScopeIds,oe.parent)}}},M=(_,T,W,le,oe,ne,O,P,V=0)=>{for(let j=V;j<_.length;j++){const pe=_[j]=P?Hn(_[j]):On(_[j]);w(null,pe,T,W,le,oe,ne,O,P)}},q=(_,T,W,le,oe,ne,O)=>{const P=T.el=_.el;let{patchFlag:V,dynamicChildren:j,dirs:pe}=T;V|=_.patchFlag&16;const ae=_.props||We,U=T.props||We;let z;if(W&&Rs(W,!1),(z=U.onVnodeBeforeUpdate)&&_n(z,W,T,_),pe&&Ms(T,_,W,"beforeUpdate"),W&&Rs(W,!0),j&&(!_.dynamicChildren||_.dynamicChildren.length!==j.length)&&(V=0,O=!1,j=null),(ae.innerHTML&&U.innerHTML==null||ae.textContent&&U.textContent==null)&&d(P,""),j?Y(_.dynamicChildren,j,P,W,le,il(T,oe),ne):O||fe(_,T,P,null,W,le,il(T,oe),ne,!1),V>0){if(V&16)re(P,ae,U,W,oe);else if(V&2&&ae.class!==U.class&&r(P,"class",null,U.class,oe),V&4&&r(P,"style",ae.style,U.style,oe),V&8){const he=T.dynamicProps;for(let Ce=0;Ce<he.length;Ce++){const Me=he[Ce],Xe=ae[Me],He=U[Me];(He!==Xe||Me==="value")&&r(P,Me,Xe,He,oe,W)}}V&1&&_.children!==T.children&&d(P,T.children)}else!O&&j==null&&re(P,ae,U,W,oe);((z=U.onVnodeUpdated)||pe)&&qt(()=>{z&&_n(z,W,T,_),pe&&Ms(T,_,W,"updated")},le)},Y=(_,T,W,le,oe,ne,O)=>{for(let P=0;P<T.length;P++){const V=_[P],j=T[P],pe=V.el&&(V.type===Ae||!ro(V,j)||V.shapeFlag&198)?f(V.el):W;w(V,j,pe,null,le,oe,ne,O,!0)}},re=(_,T,W,le,oe)=>{if(T!==W){if(T!==We)for(const ne in T)!Uo(ne)&&!(ne in W)&&r(_,ne,T[ne],null,oe,le);for(const ne in W){if(Uo(ne))continue;const O=W[ne],P=T[ne];O!==P&&ne!=="value"&&r(_,ne,P,O,oe,le)}"value"in W&&r(_,"value",T.value,W.value,oe)}},H=(_,T,W,le,oe,ne,O,P,V)=>{const j=T.el=_?_.el:i(""),pe=T.anchor=_?_.anchor:i("");let{patchFlag:ae,dynamicChildren:U,slotScopeIds:z}=T;z&&(P=P?P.concat(z):z),_==null?(s(j,W,le),s(pe,W,le),M(T.children||[],W,pe,oe,ne,O,P,V)):ae>0&&ae&64&&U&&_.dynamicChildren&&_.dynamicChildren.length===U.length?(Y(_.dynamicChildren,U,W,oe,ne,O,P),(T.key!=null||oe&&T===oe.subTree)&&Ni(_,T,!0)):fe(_,T,W,pe,oe,ne,O,P,V)},ee=(_,T,W,le,oe,ne,O,P,V)=>{T.slotScopeIds=P,_==null?T.shapeFlag&512?oe.ctx.activate(T,W,le,O,V):me(T,W,le,oe,ne,O,V):J(_,T,V)},me=(_,T,W,le,oe,ne,O)=>{const P=_.component=Wv(_,le,oe);if(pf(_)&&(P.ctx.renderer=ut),Kv(P,!1,O),P.asyncDep){if(oe&&oe.registerDep(P,ue,O),!_.el){const V=P.subTree=v(yn);h(null,V,T,W),_.placeholder=V.el}}else ue(P,_,T,W,oe,ne,O)},J=(_,T,W)=>{const le=T.component=_.component;if(Ov(_,T,W))if(le.asyncDep&&!le.asyncResolved){de(le,T,W);return}else le.next=T,le.update();else T.el=_.el,le.vnode=T},ue=(_,T,W,le,oe,ne,O)=>{const P=()=>{if(_.isMounted){let{next:ae,bu:U,u:z,parent:he,vnode:Ce}=_;{const Xt=If(_);if(Xt){ae&&(ae.el=Ce.el,de(_,ae,O)),Xt.asyncDep.then(()=>{qt(()=>{_.isUnmounted||j()},oe)});return}}let Me=ae,Xe;Rs(_,!1),ae?(ae.el=Ce.el,de(_,ae,O)):ae=Ce,U&&Hr(U),(Xe=ae.props&&ae.props.onVnodeBeforeUpdate)&&_n(Xe,he,ae,Ce),Rs(_,!0);const He=Bu(_),jt=_.subTree;_.subTree=He,w(jt,He,f(jt.el),qe(jt),_,oe,ne),ae.el=He.el,Me===null&&Pv(_,He.el),z&&qt(z,oe),(Xe=ae.props&&ae.props.onVnodeUpdated)&&qt(()=>_n(Xe,he,ae,Ce),oe)}else{let ae;const{el:U,props:z}=T,{bm:he,m:Ce,parent:Me,root:Xe,type:He}=_,jt=ho(T);Rs(_,!1),he&&Hr(he),!jt&&(ae=z&&z.onVnodeBeforeMount)&&_n(ae,Me,T),Rs(_,!0);{Xe.ce&&Xe.ce._hasShadowRoot()&&Xe.ce._injectChildStyle(He,_.parent?_.parent.type:void 0);const Xt=_.subTree=Bu(_);w(null,Xt,W,le,_,oe,ne),T.el=Xt.el}if(Ce&&qt(Ce,oe),!jt&&(ae=z&&z.onVnodeMounted)){const Xt=T;qt(()=>_n(ae,Me,Xt),oe)}(T.shapeFlag&256||Me&&ho(Me.vnode)&&Me.vnode.shapeFlag&256)&&_.a&&qt(_.a,oe),_.isMounted=!0,T=W=le=null}};_.scope.on();const V=_.effect=new Ld(P);_.scope.off();const j=_.update=V.run.bind(V),pe=_.job=V.runIfDirty.bind(V);pe.i=_,pe.id=_.uid,V.scheduler=()=>$i(pe),Rs(_,!0),j()},de=(_,T,W)=>{T.component=_;const le=_.vnode.props;_.vnode=T,_.next=null,$v(_,T.props,le,W),Lv(_,T.children,W),ns(),$u(_),ss()},fe=(_,T,W,le,oe,ne,O,P,V=!1)=>{const j=_&&_.children,pe=_?_.shapeFlag:0,ae=T.children,{patchFlag:U,shapeFlag:z}=T;if(U>0){if(U&128){Q(j,ae,W,le,oe,ne,O,P,V);return}else if(U&256){se(j,ae,W,le,oe,ne,O,P,V);return}}z&8?(pe&16&&Ye(j,oe,ne),ae!==j&&d(W,ae)):pe&16?z&16?Q(j,ae,W,le,oe,ne,O,P,V):Ye(j,oe,ne,!0):(pe&8&&d(W,""),z&16&&M(ae,W,le,oe,ne,O,P,V))},se=(_,T,W,le,oe,ne,O,P,V)=>{_=_||fo,T=T||fo;const j=_.length,pe=T.length,ae=Math.min(j,pe);let U;for(U=0;U<ae;U++){const z=T[U]=V?Hn(T[U]):On(T[U]);w(_[U],z,W,null,oe,ne,O,P,V)}j>pe?Ye(_,oe,ne,!0,!1,ae):M(T,W,le,oe,ne,O,P,V,ae)},Q=(_,T,W,le,oe,ne,O,P,V)=>{let j=0;const pe=T.length;let ae=_.length-1,U=pe-1;for(;j<=ae&&j<=U;){const z=_[j],he=T[j]=V?Hn(T[j]):On(T[j]);if(ro(z,he))w(z,he,W,null,oe,ne,O,P,V);else break;j++}for(;j<=ae&&j<=U;){const z=_[ae],he=T[U]=V?Hn(T[U]):On(T[U]);if(ro(z,he))w(z,he,W,null,oe,ne,O,P,V);else break;ae--,U--}if(j>ae){if(j<=U){const z=U+1,he=z<pe?T[z].el:le;for(;j<=U;)w(null,T[j]=V?Hn(T[j]):On(T[j]),W,he,oe,ne,O,P,V),j++}}else if(j>U)for(;j<=ae;)Be(_[j],oe,ne,!0),j++;else{const z=j,he=j,Ce=new Map;for(j=he;j<=U;j++){const Nt=T[j]=V?Hn(T[j]):On(T[j]);Nt.key!=null&&Ce.set(Nt.key,j)}let Me,Xe=0;const He=U-he+1;let jt=!1,Xt=0;const $s=new Array(He);for(j=0;j<He;j++)$s[j]=0;for(j=z;j<=ae;j++){const Nt=_[j];if(Xe>=He){Be(Nt,oe,ne,!0);continue}let sn;if(Nt.key!=null)sn=Ce.get(Nt.key);else for(Me=he;Me<=U;Me++)if($s[Me-he]===0&&ro(Nt,T[Me])){sn=Me;break}sn===void 0?Be(Nt,oe,ne,!0):($s[sn-he]=j+1,sn>=Xt?Xt=sn:jt=!0,w(Nt,T[sn],W,null,oe,ne,O,P,V),Xe++)}const Ao=jt?qv($s):fo;for(Me=Ao.length-1,j=He-1;j>=0;j--){const Nt=he+j,sn=T[Nt],Ar=T[Nt+1],Eo=Nt+1<pe?Ar.el||Mf(Ar):le;$s[j]===0?w(null,sn,W,Eo,oe,ne,O,P,V):jt&&(Me<0||j!==Ao[Me]?ce(sn,W,Eo,2):Me--)}}},ce=(_,T,W,le,oe=null)=>{const{el:ne,type:O,transition:P,children:V,shapeFlag:j}=_;if(j&6){ce(_.component.subTree,T,W,le);return}if(j&128){_.suspense.move(T,W,le);return}if(j&64){O.move(_,T,W,ut);return}if(O===Ae){s(ne,T,W);for(let ae=0;ae<V.length;ae++)ce(V[ae],T,W,le);s(_.anchor,T,W);return}if(O===jr){$(_,T,W);return}if(le!==2&&j&1&&P)if(le===0)P.persisted&&!ne[An]?s(ne,T,W):(P.beforeEnter(ne),s(ne,T,W),qt(()=>P.enter(ne),oe));else{const{leave:ae,delayLeave:U,afterLeave:z}=P,he=()=>{_.ctx.isUnmounted?o(ne):s(ne,T,W)},Ce=()=>{const Me=ne._isLeaving||!!ne[An];ne._isLeaving&&ne[An](!0),P.persisted&&!Me?he():ae(ne,()=>{he(),z&&z()})};U?U(ne,he,Ce):Ce()}else s(ne,T,W)},Be=(_,T,W,le=!1,oe=!1)=>{const{type:ne,props:O,ref:P,children:V,dynamicChildren:j,shapeFlag:pe,patchFlag:ae,dirs:U,cacheIndex:z,memo:he}=_;if(ae===-2&&(oe=!1),P!=null&&(ns(),Wo(P,null,W,_,!0),ss()),z!=null&&(T.renderCache[z]=void 0),pe&256){T.ctx.deactivate(_);return}const Ce=pe&1&&U,Me=!ho(_);let Xe;if(Me&&(Xe=O&&O.onVnodeBeforeUnmount)&&_n(Xe,T,_),pe&6)nt(_.component,W,le);else{if(pe&128){_.suspense.unmount(W,le);return}Ce&&Ms(_,null,T,"beforeUnmount"),pe&64?_.type.remove(_,T,W,ut,le):j&&!j.hasOnce&&(ne!==Ae||ae>0&&ae&64)?Ye(j,T,W,!1,!0):(ne===Ae&&ae&384||!oe&&pe&16)&&Ye(V,T,W),le&&rt(_)}const He=he!=null&&z==null;(Me&&(Xe=O&&O.onVnodeUnmounted)||Ce||He)&&qt(()=>{Xe&&_n(Xe,T,_),Ce&&Ms(_,null,T,"unmounted"),He&&(_.el=null)},W)},rt=_=>{const{type:T,el:W,anchor:le,transition:oe}=_;if(T===Ae){at(W,le);return}if(T===jr){k(_);return}const ne=()=>{o(W),oe&&!oe.persisted&&oe.afterLeave&&oe.afterLeave()};if(_.shapeFlag&1&&oe&&!oe.persisted){const{leave:O,delayLeave:P}=oe,V=()=>O(W,ne);P?P(_.el,ne,V):V()}else ne()},at=(_,T)=>{let W;for(;_!==T;)W=p(_),o(_),_=W;o(T)},nt=(_,T,W)=>{const{bum:le,scope:oe,job:ne,subTree:O,um:P,m:V,a:j}=_;Hu(V),Hu(j),le&&Hr(le),oe.stop(),ne&&(ne.flags|=8,Be(O,_,T,W)),P&&qt(P,T),qt(()=>{_.isUnmounted=!0},T)},Ye=(_,T,W,le=!1,oe=!1,ne=0)=>{for(let O=ne;O<_.length;O++)Be(_[O],T,W,le,oe)},qe=_=>{if(_.shapeFlag&6)return qe(_.component.subTree);if(_.shapeFlag&128)return _.suspense.next();const T=p(_.anchor||_.el),W=T&&T[cf];return W?p(W):T};let ot=!1;const Ie=(_,T,W)=>{let le;_==null?T._vnode&&(Be(T._vnode,null,null,!0),le=T._vnode.component):w(T._vnode||null,_,T,null,null,null,W),T._vnode=_,ot||(ot=!0,$u(le),of(),ot=!1)},ut={p:w,um:Be,m:ce,r:rt,mt:me,mc:M,pc:fe,pbc:Y,n:qe,o:e};return{render:Ie,hydrate:void 0,createApp:kv(Ie)}}function il({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 Rs({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Fv(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ni(e,t,n=!1){const s=e.children,o=t.children;if(Se(s)&&Se(o))for(let r=0;r<s.length;r++){const l=s[r];let i=o[r];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=o[r]=Hn(o[r]),i.el=l.el),!n&&i.patchFlag!==-2&&Ni(l,i)),i.type===wr&&(i.patchFlag===-1&&(i=o[r]=Hn(i)),i.el=l.el),i.type===yn&&!i.el&&(i.el=l.el)}}function qv(e){const t=e.slice(),n=[0];let s,o,r,l,i;const u=e.length;for(s=0;s<u;s++){const c=e[s];if(c!==0){if(o=n[n.length-1],e[o]<c){t[s]=o,n.push(s);continue}for(r=0,l=n.length-1;r<l;)i=r+l>>1,e[n[i]]<c?r=i+1:l=i;c<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,l=n[r-1];r-- >0;)n[r]=l,l=t[l];return n}function If(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:If(t)}function Hu(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Mf(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Mf(t.subTree):null}const Rf=e=>e.__isSuspense;function Bv(e,t){t&&t.pendingBranch?Se(e)?t.effects.push(...e):t.effects.push(e):Wh(e)}const Ae=Symbol.for("v-fgt"),wr=Symbol.for("v-txt"),yn=Symbol.for("v-cmt"),jr=Symbol.for("v-stc"),Qn=[];let Vt=null;function x(e=!1){Qn.push(Vt=e?null:[])}function Fi(){Qn.pop(),Vt=Qn[Qn.length-1]||null}let bo=1;function Zr(e,t=!1){bo+=e,e<0&&Vt&&t&&(Vt.hasOnce=!0)}function Lf(e){return e.dynamicChildren=bo>0?Vt||fo:null,Fi(),bo>0&&Vt&&Vt.push(e),e}function G(e,t,n,s,o,r){return Lf(S(e,t,n,s,o,r,!0))}function F(e,t,n,s,o){return Lf(v(e,t,n,s,o,!0))}function sr(e){return e?e.__v_isVNode===!0:!1}function ro(e,t){return e.type===t.type&&e.key===t.key}const Df=({key:e})=>e??null,Wr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?it(e)||pt(e)||Te(e)?{i:Pt,r:e,k:t,f:!!n}:e:null);function S(e,t=null,n=null,s=0,o=null,r=e===Ae?0:1,l=!1,i=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Df(t),ref:t&&Wr(t),scopeId:af,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:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Pt};return i?(ea(u,n),r&128&&e.normalize(u)):n&&(u.shapeFlag|=it(n)?8:16),bo>0&&!l&&Vt&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&Vt.push(u),u}const v=Vv;function Vv(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===hf)&&(e=yn),sr(e)){const i=ws(e,t,!0);return n&&ea(i,n),bo>0&&!r&&Vt&&(i.shapeFlag&6?Vt[Vt.indexOf(e)]=i:Vt.push(i)),i.patchFlag=-2,i}if(Xv(e)&&(e=e.__vccOpts),t){t=Tt(t);let{class:i,style:u}=t;i&&!it(i)&&(t.class=xe(i)),Qe(u)&&(Ea(u)&&!Se(u)&&(u=vt({},u)),t.style=vn(u))}const l=it(e)?1:Rf(e)?128:Xh(e)?64:Qe(e)?4:Te(e)?2:0;return S(e,t,n,s,o,l,r,!0)}function Tt(e){return e?Ea(e)||Af(e)?vt({},e):e:null}function ws(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:l,children:i,transition:u}=e,c=t?Oe(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Df(c),ref:t&&t.ref?n&&r?Se(r)?r.concat(Wr(t)):[r,Wr(t)]:Wr(t):r,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!==Ae?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ws(e.ssContent),ssFallback:e.ssFallback&&ws(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&s&&tr(d,u.clone(d)),d}function K(e=" ",t=0){return v(wr,null,e,t)}function Uv(e,t){const n=v(jr,null,e);return n.staticCount=t,n}function we(e="",t=!1){return t?(x(),F(yn,null,e)):v(yn,null,e)}function On(e){return e==null||typeof e=="boolean"?v(yn):Se(e)?v(Ae,null,e.slice()):sr(e)?Hn(e):v(wr,null,String(e))}function Hn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ws(e)}function ea(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 o=t.default;o&&(o._c&&(o._d=!1),ea(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Af(t)?t._ctx=Pt:o===3&&Pt&&(Pt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Te(t)){if(s&65){ea(e,{default:t});return}t={default:t,_ctx:Pt},n=32}else t=String(t),s&64?(n=16,t=[K(t)]):n=8;e.children=t,e.shapeFlag|=n}function Oe(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=xe([t.class,s.class]));else if(o==="style")t.style=vn([t.style,s.style]);else if(va(o)){const r=t[o],l=s[o];l&&r!==l&&!(Se(r)&&r.includes(l))?t[o]=r?[].concat(r,l):l:l==null&&r==null&&!ga(o)&&(t[o]=l)}else o!==""&&(t[o]=s[o])}return t}function _n(e,t,n,s=null){un(e,t,7,[n,s])}const Hv=_f();let jv=0;function Wv(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Hv,r={uid:jv++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Rd(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Of(s,o),emitsOptions:xf(s,o),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 r.ctx={_:r},r.root=t?t.root:r,r.emit=Sv.bind(null,r),e.ce&&e.ce(r),r}let Lt=null;const Yt=()=>Lt||Pt;let ta,Vl;{const e=wa(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(l=>l(r)):o[0](r)}};ta=t("__VUE_INSTANCE_SETTERS__",n=>Lt=n),Vl=t("__VUE_SSR_SETTERS__",n=>or=n)}const xr=e=>{const t=Lt;return ta(e),e.scope.on(),()=>{e.scope.off(),ta(t)}},ju=()=>{Lt&&Lt.scope.off(),ta(null)};function Nf(e){return e.vnode.shapeFlag&4}let or=!1;function Kv(e,t=!1,n=!1){t&&Vl(t);const{props:s,children:o}=e.vnode,r=Nf(e);Tv(e,s,r,t),Rv(e,o,n||t);const l=r?zv(e,t):void 0;return t&&Vl(!1),l}function zv(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,mv);const{setup:s}=n;if(s){ns();const o=e.setupContext=s.length>1?qf(e):null,r=xr(e),l=gr(s,e,0,[e.props,o]),i=Ed(l);if(ss(),r(),(i||e.sp)&&!ho(e)&&ff(e),i){if(l.then(ju,ju),t)return l.then(u=>{Wu(e,u)}).catch(u=>{Pa(u,e,0)});e.asyncDep=l}else Wu(e,l)}else Ff(e)}function Wu(e,t,n){Te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Qe(t)&&(e.setupState=Zd(t)),Ff(e)}function Ff(e,t,n){const s=e.type;e.render||(e.render=s.render||Tn);{const o=xr(e);ns();try{gv(e)}finally{ss(),o()}}}const Gv={get(e,t){return Rt(e,"get",""),e[t]}};function qf(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Gv),slots:e.slots,emit:e.emit,expose:t}}function Ma(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Zd(Jd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ko)return Ko[n](e)},has(t,n){return n in t||n in Ko}})):e.proxy}function Yv(e,t=!0){return Te(e)?e.displayName||e.name:e.name||t&&e.__name}function Xv(e){return Te(e)&&"__vccOpts"in e}const te=(e,t)=>Bh(e,t,or);function en(e,t,n){try{Zr(-1);const s=arguments.length;return s===2?Qe(t)&&!Se(t)?sr(t)?v(e,null,[t]):v(e,t):v(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&sr(n)&&(n=[n]),v(e,t,n))}finally{Zr(1)}}function Jv(e,t,n,s){const o=n[s];if(o&&Qv(o,e))return o;const r=t();return r.memo=e.slice(),r.cacheIndex=s,n[s]=r}function Qv(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let s=0;s<n.length;s++)if(At(n[s],t[s]))return!1;return bo>0&&Vt&&Vt.push(e),!0}const Zv="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 Ul;const Ku=typeof window<"u"&&window.trustedTypes;if(Ku)try{Ul=Ku.createPolicy("vue",{createHTML:e=>e})}catch{}const Bf=Ul?e=>Ul.createHTML(e):e=>e,eg="http://www.w3.org/2000/svg",tg="http://www.w3.org/1998/Math/MathML",Un=typeof document<"u"?document:null,zu=Un&&Un.createElement("template"),ng={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 o=t==="svg"?Un.createElementNS(eg,e):t==="mathml"?Un.createElementNS(tg,e):n?Un.createElement(e,{is:n}):Un.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},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,o,r){const l=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{zu.innerHTML=Bf(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=zu.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[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ps="transition",Io="animation",_o=Symbol("_vtc"),Vf={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},sg=vt({},tv,Vf),Ls=(e,t=[])=>{Se(e)?e.forEach(n=>n(...t)):e&&e(...t)},Gu=e=>e?Se(e)?e.some(t=>t.length>1):e.length>1:!1;function og(e){const t={};for(const H in e)H in Vf||(t[H]=e[H]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:u=r,appearActiveClass:c=l,appearToClass:d=i,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,g=rg(o),w=g&&g[0],C=g&&g[1],{onBeforeEnter:h,onEnter:b,onEnterCancelled:$,onLeave:k,onLeaveCancelled:R,onBeforeAppear:I=h,onAppear:E=b,onAppearCancelled:M=$}=t,q=(H,ee,me,J)=>{H._enterCancelled=J,vs(H,ee?d:i),vs(H,ee?c:l),me&&me()},Y=(H,ee)=>{H._isLeaving=!1,vs(H,f),vs(H,m),vs(H,p),ee&&ee()},re=H=>(ee,me)=>{const J=H?E:b,ue=()=>q(ee,H,me);Ls(J,[ee,ue]),Yu(()=>{vs(ee,H?u:r),Sn(ee,H?d:i),Gu(J)||Xu(ee,s,w,ue)})};return vt(t,{onBeforeEnter(H){Ls(h,[H]),Sn(H,r),Sn(H,l)},onBeforeAppear(H){Ls(I,[H]),Sn(H,u),Sn(H,c)},onEnter:re(!1),onAppear:re(!0),onLeave(H,ee){H._isLeaving=!0;const me=()=>Y(H,ee);Sn(H,f),H._enterCancelled?(Sn(H,p),Hl(H)):(Hl(H),Sn(H,p)),Yu(()=>{H._isLeaving&&(vs(H,f),Sn(H,m),Gu(k)||Xu(H,s,C,me))}),Ls(k,[H,me])},onEnterCancelled(H){q(H,!1,void 0,!0),Ls($,[H])},onAppearCancelled(H){q(H,!0,void 0,!0),Ls(M,[H])},onLeaveCancelled(H){Y(H),Ls(R,[H])}})}function rg(e){if(e==null)return null;if(Qe(e))return[ul(e.enter),ul(e.leave)];{const t=ul(e);return[t,t]}}function ul(e){return rh(e)}function Sn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[_o]||(e[_o]=new Set)).add(t)}function vs(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[_o];n&&(n.delete(t),n.size||(e[_o]=void 0))}function Yu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ag=0;function Xu(e,t,n,s){const o=e._endId=++ag,r=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(r,n);const{type:l,timeout:i,propCount:u}=Uf(e,t);if(!l)return s();const c=l+"end";let d=0;const f=()=>{e.removeEventListener(c,p),r()},p=m=>{m.target===e&&++d>=u&&f()};setTimeout(()=>{d<u&&f()},i+1),e.addEventListener(c,p)}function Uf(e,t){const n=window.getComputedStyle(e),s=g=>(n[g]||"").split(", "),o=s(`${ps}Delay`),r=s(`${ps}Duration`),l=Ju(o,r),i=s(`${Io}Delay`),u=s(`${Io}Duration`),c=Ju(i,u);let d=null,f=0,p=0;t===ps?l>0&&(d=ps,f=l,p=r.length):t===Io?c>0&&(d=Io,f=c,p=u.length):(f=Math.max(l,c),d=f>0?l>c?ps:Io:null,p=d?d===ps?r.length:u.length:0);const m=d===ps&&/\b(?:transform|all)(?:,|$)/.test(s(`${ps}Property`).toString());return{type:d,timeout:f,propCount:p,hasTransform:m}}function Ju(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Qu(n)+Qu(e[s])))}function Qu(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Hl(e){return(e?e.ownerDocument:document).body.offsetHeight}function lg(e,t,n){const s=e[_o];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const na=Symbol("_vod"),qi=Symbol("_vsh"),jl={name:"show",beforeMount(e,{value:t},{transition:n}){e[na]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Mo(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),Mo(e,!0),s.enter(e)):s.leave(e,()=>{Mo(e,!1)}):Mo(e,t))},beforeUnmount(e,{value:t}){Mo(e,t)}};function Mo(e,t){e.style.display=t?e[na]:"none",e[qi]=!t}const ig=Symbol(""),ug=/(?:^|;)\s*display\s*:/;function cg(e,t,n){const s=e.style,o=it(n);let r=!1;if(n&&!o){if(t)if(it(t))for(const l of t.split(";")){const i=l.slice(0,l.indexOf(":")).trim();n[i]==null&&Vo(s,i,"")}else for(const l in t)n[l]==null&&Vo(s,l,"");for(const l in n){l==="display"&&(r=!0);const i=n[l];i!=null?fg(e,l,!it(t)&&t?t[l]:void 0,i)||Vo(s,l,i):Vo(s,l,"")}}else if(o){if(t!==n){const l=s[ig];l&&(n+=";"+l),s.cssText=n,r=ug.test(n)}}else t&&e.removeAttribute("style");na in e&&(e[na]=r?s.display:"",e[qi]&&(s.display="none"))}const Zu=/\s*!important$/;function Vo(e,t,n){if(Se(n))n.forEach(s=>Vo(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=dg(e,t);Zu.test(n)?e.setProperty(is(s),n.replace(Zu,""),"important"):e[s]=n}}const ec=["Webkit","Moz","ms"],cl={};function dg(e,t){const n=cl[t];if(n)return n;let s=Et(t);if(s!=="filter"&&s in e)return cl[t]=s;s=_a(s);for(let o=0;o<ec.length;o++){const r=ec[o]+s;if(r in e)return cl[t]=r}return t}function fg(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&it(s)&&n===s}const tc="http://www.w3.org/1999/xlink";function nc(e,t,n,s,o,r=dh(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(tc,t.slice(6,t.length)):e.setAttributeNS(tc,t,n):n==null||r&&!$d(n)?e.removeAttribute(t):e.setAttribute(t,r?"":nn(n)?String(n):n)}function sc(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Bf(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const i=r==="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 l=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=$d(n):n==null&&i==="string"?(n="",l=!0):i==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(o||t)}function ao(e,t,n,s){e.addEventListener(t,n,s)}function pg(e,t,n,s){e.removeEventListener(t,n,s)}const oc=Symbol("_vei");function mg(e,t,n,s,o=null){const r=e[oc]||(e[oc]={}),l=r[t];if(s&&l)l.value=s;else{const[i,u]=gg(t);if(s){const c=r[t]=_g(s,o);ao(e,i,c,u)}else l&&(pg(e,i,l,u),r[t]=void 0)}}const hg=/(Once|Passive|Capture)$/,vg=/^on:?(?:Once|Passive|Capture)$/;function gg(e){let t,n;for(;(n=e.match(hg))&&!vg.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):is(e.slice(2)),t]}let dl=0;const yg=Promise.resolve(),bg=()=>dl||(yg.then(()=>dl=0),dl=Date.now());function _g(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const o=n.value;if(Se(o)){const r=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{r.call(s),s._stopped=!0};const l=o.slice(),i=[s];for(let u=0;u<l.length&&!s._stopped;u++){const c=l[u];c&&un(c,t,5,i)}}else un(o,t,5,[s])};return n.value=e,n.attached=bg(),n}const rc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,wg=(e,t,n,s,o,r)=>{const l=o==="svg";t==="class"?lg(e,s,l):t==="style"?cg(e,n,s):va(t)?ga(t)||mg(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):xg(e,t,s,l))?(sc(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&nc(e,t,s,l,r,t!=="value")):e._isVueCE&&(kg(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!it(s)))?sc(e,Et(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),nc(e,t,s,l))};function xg(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&rc(t)&&Te(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return rc(t)&&it(n)?!1:t in e}function kg(e,t){const n=e._def.props;if(!n)return!1;const s=Et(t);return Array.isArray(n)?n.some(o=>Et(o)===s):Object.keys(n).some(o=>Et(o)===s)}const Hf=new WeakMap,jf=new WeakMap,sa=Symbol("_moveCb"),ac=Symbol("_enterCb"),Sg=e=>(delete e.props.mode,e),Cg=Sg({name:"TransitionGroup",props:vt({},sg,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Yt(),s=ev();let o,r;return Ri(()=>{if(!o.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!Tg(o[0].el,n.vnode.el,l)){o=[];return}o.forEach(Eg),o.forEach(Og);const i=o.filter(Pg);Hl(n.vnode.el),i.forEach(u=>{const c=u.el,d=c.style;Sn(c,l),d.transform=d.webkitTransform=d.transitionDuration="";const f=c[sa]=p=>{p&&p.target!==c||(!p||p.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[sa]=null,vs(c,l))};c.addEventListener("transitionend",f)}),o=[]}),()=>{const l=je(e),i=og(l);let u=l.tag||Ae;if(o=[],r)for(let c=0;c<r.length;c++){const d=r[c];d.el&&d.el instanceof Element&&!d.el[qi]&&(o.push(d),tr(d,Dl(d,i,s,n)),Hf.set(d,Wf(d.el)))}r=t.default?df(t.default()):[];for(let c=0;c<r.length;c++){const d=r[c];d.key!=null&&tr(d,Dl(d,i,s,n))}return v(u,null,r)}}}),Ag=Cg;function Eg(e){const t=e.el;t[sa]&&t[sa](),t[ac]&&t[ac]()}function Og(e){jf.set(e,Wf(e.el))}function Pg(e){const t=Hf.get(e),n=jf.get(e),s=t.left-n.left,o=t.top-n.top;if(s||o){const r=e.el,l=r.style,i=r.getBoundingClientRect();let u=1,c=1;return r.offsetWidth&&(u=i.width/r.offsetWidth),r.offsetHeight&&(c=i.height/r.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),l.transform=l.webkitTransform=`translate(${s/u}px,${o/c}px)`,l.transitionDuration="0s",e}}function Wf(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Tg(e,t,n){const s=e.cloneNode(),o=e[_o];o&&o.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 r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:l}=Uf(s);return r.removeChild(s),l}const lc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Se(t)?n=>Hr(t,n):t};function $g(e){e.target.composing=!0}function ic(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const fl=Symbol("_assign");function uc(e,t,n){return t&&(e=e.trim()),n&&(e=Si(e)),e}const Kf={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[fl]=lc(o);const r=s||o.props&&o.props.type==="number";ao(e,t?"change":"input",l=>{l.target.composing||e[fl](uc(e.value,n,r))}),(n||r)&&ao(e,"change",()=>{e.value=uc(e.value,n,r)}),t||(ao(e,"compositionstart",$g),ao(e,"compositionend",ic),ao(e,"change",ic))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:r}},l){if(e[fl]=lc(l),e.composing)return;const i=(r||e.type==="number")&&!/^0\d/.test(e.value)?Si(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||o&&e.value.trim()===u)||(e.value=u)}},Ig=["ctrl","shift","alt","meta"],Mg={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)=>Ig.some(n=>e[`${n}Key`]&&!t.includes(n))},tn=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...r)=>{for(let l=0;l<t.length;l++){const i=Mg[t[l]];if(i&&i(o,t))return}return e(o,...r)})},Rg={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Vs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const r=is(o.key);if(t.some(l=>l===r||Rg[l]===r))return e(o)})},Lg=vt({patchProp:wg},ng);let cc;function Dg(){return cc||(cc=Dv(Lg))}const Ng=(...e)=>{const t=Dg().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=qg(s);if(!o)return;const r=t._component;!Te(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const l=n(o,!1,Fg(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},t};function Fg(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function qg(e){return it(e)?document.querySelector(e):e}/*!
|
|
18
|
+
* shared v11.4.8
|
|
19
|
+
* (c) 2026 kazuya kawaguchi
|
|
20
|
+
* Released under the MIT License.
|
|
21
|
+
*/const oa=typeof window<"u",Ss=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Bg=(e,t,n)=>Vg({l:e,k:t,s:n}),Vg=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),wt=e=>typeof e=="number"&&isFinite(e),zf=e=>Vi(e)==="[object Date]",wo=e=>Vi(e)==="[object RegExp]",Bi=e=>tt(e)&&Object.keys(e).length===0,xt=Object.assign,Ug=Object.create,st=(e=null)=>Ug(e);let dc;const Us=()=>dc||(dc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:st()),Hg=Object.prototype.hasOwnProperty;function ln(e,t){return Hg.call(e,t)}const ht=Array.isArray,ft=e=>typeof e=="function",ye=e=>typeof e=="string",Ke=e=>typeof e=="boolean",ze=e=>e!==null&&typeof e=="object",jg=e=>ze(e)&&ft(e.then)&&ft(e.catch),Gf=Object.prototype.toString,Vi=e=>Gf.call(e),tt=e=>Vi(e)==="[object Object]",Wg=e=>e==null?"":ht(e)||tt(e)&&e.toString===Gf?JSON.stringify(e,null,2):String(e);function Ui(e,t=""){return e.reduce((n,s,o)=>o===0?n+s:n+t+s,"")}function Kg(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function fc(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function zg(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}const Gg=/^javascript:/i,Yg=/^(?:href|src|action|formaction)$/i,Xg=/&#(?:x([0-9a-f]+)|(\d+));?/gi,Jg=/&(?:Tab|NewLine);/g,Qg=/:?/gi,Zg=/[\u0000-\u0020\u007f-\u009f]/g,ey=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,ty=/(^|[\s"'<>/])on(\w+\s*=)/gi,ny=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function sy(e,t,n){const s=t||n;if(!s)return e;const o=Number.parseInt(s,t?16:10);return o<=127?String.fromCharCode(o):e}function Hi(e){const t=e.replace(Xg,sy).replace(Jg,"").replace(Qg,":").replace(Zg,"");return Gg.test(t)}function oy(e){const t=/url\s*\(/gi;let n="",s=0,o;for(;(o=t.exec(e))!==null;){const r=o.index,l=t.lastIndex-1;let i=l+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(l+1,i).trim(),f=d.startsWith('"')&&d.endsWith('"')||d.startsWith("'")&&d.endsWith("'")?d.slice(1,-1).trim():d;n+=e.slice(s,r),n+=Hi(f)?"url(about:blank)":e.slice(r,i+1),s=i+1}return n+e.slice(s)}function pc(e,t){if(Yg.test(e)&&Hi(t))return"about:blank";const n=e.toLowerCase()==="style"?oy(t):t;return zg(n)}function ry(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(t,n,s)=>`${n}="${pc(n,s)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(t,n,s)=>`${n}='${pc(n,s)}'`),ey.test(e)&&(e=e.replace(ty,"$1on$2")),e=e.replace(ny,(t,n,s,o)=>Hi(o)?`${n}${s}about:blank`:t),e}const Ir=e=>!ze(e)||ht(e);function Kr(e,t){if(Ir(e)||Ir(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:o}=n.pop();Object.keys(s).forEach(r=>{r!=="__proto__"&&(ze(s[r])&&!ze(o[r])&&(o[r]=Array.isArray(s[r])?[]:st()),Ir(o[r])||Ir(s[r])?o[r]=s[r]:n.push({src:s[r],des:o[r]}))})}}/*!
|
|
22
|
+
* message-compiler v11.4.8
|
|
23
|
+
* (c) 2026 kazuya kawaguchi
|
|
24
|
+
* Released under the MIT License.
|
|
25
|
+
*/function ay(e,t,n){return{line:e,column:t,offset:n}}function Wl(e,t,n){return{start:e,end:t}}const Ze={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},ly=17;function Ra(e,t,n={}){const{domain:s,messages:o,args:r}=n,l=e,i=new SyntaxError(String(l));return i.code=e,t&&(i.location=t),i.domain=s,i}function iy(e){throw e}const wn=" ",uy="\r",Mt=`
|
|
26
|
+
`,cy="\u2028",dy="\u2029";function fy(e){const t=e;let n=0,s=1,o=1,r=0;const l=E=>t[E]===uy&&t[E+1]===Mt,i=E=>t[E]===Mt,u=E=>t[E]===dy,c=E=>t[E]===cy,d=E=>l(E)||i(E)||u(E)||c(E),f=()=>n,p=()=>s,m=()=>o,g=()=>r,w=E=>l(E)||u(E)||c(E)?Mt:t[E],C=()=>w(n),h=()=>w(n+r);function b(){return r=0,d(n)&&(s++,o=0),l(n)&&n++,n++,o++,t[n]}function $(){return l(n+r)&&r++,r++,t[n+r]}function k(){n=0,s=1,o=1,r=0}function R(E=0){r=E}function I(){const E=n+r;for(;E!==n;)b();r=0}return{index:f,line:p,column:m,peekOffset:g,charAt:w,currentChar:C,currentPeek:h,next:b,peek:$,reset:k,resetPeek:R,skipToPeek:I}}const Bn=void 0,py=".",mc="'",my="tokenizer";function hy(e,t={}){const n=t.location!==!1,s=fy(e),o=()=>s.index(),r=()=>ay(s.line(),s.column(),s.index()),l=r(),i=o(),u={currentType:13,offset:i,startLoc:l,endLoc:l,lastType:13,lastOffset:i,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},c=()=>u,{onError:d}=t;function f(O,P,V,...j){const pe=c();if(P.column+=V,P.offset+=V,d){const ae=n?Wl(pe.startLoc,P):null,U=Ra(O,ae,{domain:my,args:j});d(U)}}function p(O,P,V){O.endLoc=r(),O.currentType=P;const j={type:P};return n&&(j.loc=Wl(O.startLoc,O.endLoc)),V!=null&&(j.value=V),j}const m=O=>p(O,13);function g(O,P){return O.currentChar()===P?(O.next(),P):(f(Ze.EXPECTED_TOKEN,r(),0,P),"")}function w(O){let P="";for(;O.currentPeek()===wn||O.currentPeek()===Mt;)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:V}=P;if(V!==2)return!1;w(O);const j=h(O.currentPeek());return O.resetPeek(),j}function k(O,P){const{currentType:V}=P;if(V!==2)return!1;w(O);const j=O.currentPeek()==="-"?O.peek():O.currentPeek(),pe=b(j);return O.resetPeek(),pe}function R(O,P){const{currentType:V}=P;if(V!==2)return!1;w(O);const j=O.currentPeek()===mc;return O.resetPeek(),j}function I(O,P){const{currentType:V}=P;if(V!==7)return!1;w(O);const j=O.currentPeek()===".";return O.resetPeek(),j}function E(O,P){const{currentType:V}=P;if(V!==8)return!1;w(O);const j=h(O.currentPeek());return O.resetPeek(),j}function M(O,P){const{currentType:V}=P;if(!(V===7||V===11))return!1;w(O);const j=O.currentPeek()===":";return O.resetPeek(),j}function q(O,P){const{currentType:V}=P;if(V!==9)return!1;const j=()=>{const ae=O.currentPeek();return ae==="{"?h(O.peek()):ae==="@"||ae==="|"||ae===":"||ae==="."||ae===wn||!ae?!1:ae===Mt?(O.peek(),j()):re(O,!1)},pe=j();return O.resetPeek(),pe}function Y(O){w(O);const P=O.currentPeek()==="|";return O.resetPeek(),P}function re(O,P=!0){const V=(pe=!1,ae="")=>{const U=O.currentPeek();return U==="{"||U==="@"||!U?pe:U==="|"?!(ae===wn||ae===Mt):U===wn?(O.peek(),V(!0,wn)):U===Mt?(O.peek(),V(!0,Mt)):!0},j=V();return P&&O.resetPeek(),j}function H(O,P){const V=O.currentChar();return V===Bn?Bn:P(V)?(O.next(),V):null}function ee(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 H(O,ee)}function J(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 ue(O){return H(O,J)}function de(O){const P=O.charCodeAt(0);return P>=48&&P<=57}function fe(O){return H(O,de)}function se(O){const P=O.charCodeAt(0);return P>=48&&P<=57||P>=65&&P<=70||P>=97&&P<=102}function Q(O){return H(O,se)}function ce(O){let P="",V="";for(;P=fe(O);)V+=P;return V}function Be(O){let P="";for(;;){const V=O.currentChar();if(V==="\\"){const j=O.peek();j==="{"||j==="}"||j==="@"||j==="|"||j==="\\"?(P+=V+j,O.next(),O.next()):(O.resetPeek(),P+=V,O.next())}else{if(V==="{"||V==="}"||V==="@"||V==="|"||!V)break;if(V===wn||V===Mt)if(re(O))P+=V,O.next();else{if(Y(O))break;P+=V,O.next()}else P+=V,O.next()}}return P}function rt(O){C(O);let P="",V="";for(;P=ue(O);)V+=P;const j=O.currentChar();if(j&&j!=="}"&&j!==Bn&&j!==wn&&j!==Mt&&j!==" "){const pe=ut(O);return f(Ze.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,V+pe),V+pe}return O.currentChar()===Bn&&f(Ze.UNTERMINATED_CLOSING_BRACE,r(),0),V}function at(O){C(O);let P="";return O.currentChar()==="-"?(O.next(),P+=`-${ce(O)}`):P+=ce(O),O.currentChar()===Bn&&f(Ze.UNTERMINATED_CLOSING_BRACE,r(),0),P}function nt(O){return O!==mc&&O!==Mt}function Ye(O){C(O),g(O,"'");let P="",V="";for(;P=H(O,nt);)P==="\\"?V+=qe(O):V+=P;const j=O.currentChar();return j===Mt||j===Bn?(f(Ze.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),j===Mt&&(O.next(),g(O,"'")),V):(g(O,"'"),V)}function qe(O){const P=O.currentChar();switch(P){case"\\":case"'":return O.next(),`\\${P}`;case"u":return ot(O,P,4);case"U":return ot(O,P,6);default:return f(Ze.UNKNOWN_ESCAPE_SEQUENCE,r(),0,P),""}}function ot(O,P,V){g(O,P);let j="";for(let pe=0;pe<V;pe++){const ae=Q(O);if(!ae){f(Ze.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${P}${j}${O.currentChar()}`);break}j+=ae}return`\\${P}${j}`}function Ie(O){return O!=="{"&&O!=="}"&&O!==wn&&O!==Mt}function ut(O){C(O);let P="",V="";for(;P=H(O,Ie);)V+=P;return V}function ve(O){let P="",V="";for(;P=me(O);)V+=P;return V}function _(O){const P=V=>{const j=O.currentChar();return j==="{"||j==="@"||j==="|"||j==="("||j===")"||!j||j===wn?V:(V+=j,O.next(),P(V))};return P("")}function T(O){C(O);const P=g(O,"|");return C(O),P}function W(O,P){let V=null;switch(O.currentChar()){case"{":return P.braceNest>=1&&f(Ze.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),O.next(),V=p(P,2,"{"),C(O),P.braceNest++,V;case"}":return P.braceNest>0&&P.currentType===2&&f(Ze.EMPTY_PLACEHOLDER,r(),0),O.next(),V=p(P,3,"}"),P.braceNest--,P.braceNest>0&&C(O),P.inLinked&&P.braceNest===0&&(P.inLinked=!1),V;case"@":return P.braceNest>0&&f(Ze.UNTERMINATED_CLOSING_BRACE,r(),0),V=le(O,P)||m(P),P.braceNest=0,V;default:{let pe=!0,ae=!0,U=!0;if(Y(O))return P.braceNest>0&&f(Ze.UNTERMINATED_CLOSING_BRACE,r(),0),V=p(P,1,T(O)),P.braceNest=0,P.inLinked=!1,V;if(P.braceNest>0&&(P.currentType===4||P.currentType===5||P.currentType===6))return f(Ze.UNTERMINATED_CLOSING_BRACE,r(),0),P.braceNest=0,oe(O,P);if(pe=$(O,P))return V=p(P,4,rt(O)),C(O),V;if(ae=k(O,P))return V=p(P,5,at(O)),C(O),V;if(U=R(O,P))return V=p(P,6,Ye(O)),C(O),V;if(!pe&&!ae&&!U)return V=p(P,12,ut(O)),f(Ze.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,V.value),C(O),V;break}}return V}function le(O,P){const{currentType:V}=P;let j=null;const pe=O.currentChar();switch((V===7||V===8||V===11||V===9)&&(pe===Mt||pe===wn)&&f(Ze.INVALID_LINKED_FORMAT,r(),0),pe){case"@":return O.next(),j=p(P,7,"@"),P.inLinked=!0,j;case".":return C(O),O.next(),p(P,8,".");case":":return C(O),O.next(),p(P,9,":");default:return Y(O)?(j=p(P,1,T(O)),P.braceNest=0,P.inLinked=!1,j):I(O,P)||M(O,P)?(C(O),le(O,P)):E(O,P)?(C(O),p(P,11,ve(O))):q(O,P)?(C(O),pe==="{"?W(O,P)||j:p(P,10,_(O))):(V===7&&f(Ze.INVALID_LINKED_FORMAT,r(),0),P.braceNest=0,P.inLinked=!1,oe(O,P))}}function oe(O,P){let V={type:13};if(P.braceNest>0)return W(O,P)||m(P);if(P.inLinked)return le(O,P)||m(P);switch(O.currentChar()){case"{":return W(O,P)||m(P);case"}":return f(Ze.UNBALANCED_CLOSING_BRACE,r(),0),O.next(),p(P,3,"}");case"@":return le(O,P)||m(P);default:{if(Y(O))return V=p(P,1,T(O)),P.braceNest=0,P.inLinked=!1,V;if(re(O))return p(P,0,Be(O));break}}return V}function ne(){const{currentType:O,offset:P,startLoc:V,endLoc:j}=u;return u.lastType=O,u.lastOffset=P,u.lastStartLoc=V,u.lastEndLoc=j,u.offset=o(),u.startLoc=r(),s.currentChar()===Bn?p(u,13):oe(s,u)}return{nextToken:ne,currentOffset:o,currentPosition:r,context:c}}const vy="parser",gy=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,yy=/\\([\\@{}|])/g;function by(e,t){return t}function _y(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 wy(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 E=t?Wl($,I):null,M=Ra(b,E,{domain:vy,args:R});n(M)}}function o(h,b,$){const k={type:h};return t&&(k.start=b,k.end=b,k.loc={start:$,end:$}),k}function r(h,b,$,k){t&&(h.end=b,h.loc&&(h.loc.end=$))}function l(h,b){const $=h.context(),k=o(3,$.offset,$.startLoc);return k.value=b.replace(yy,by),r(k,h.currentOffset(),h.currentPosition()),k}function i(h,b){const $=h.context(),{lastOffset:k,lastStartLoc:R}=$,I=o(5,k,R);return I.index=parseInt(b,10),h.nextToken(),r(I,h.currentOffset(),h.currentPosition()),I}function u(h,b){const $=h.context(),{lastOffset:k,lastStartLoc:R}=$,I=o(4,k,R);return I.key=b,h.nextToken(),r(I,h.currentOffset(),h.currentPosition()),I}function c(h,b){const $=h.context(),{lastOffset:k,lastStartLoc:R}=$,I=o(9,k,R);return I.value=b.replace(gy,_y),h.nextToken(),r(I,h.currentOffset(),h.currentPosition()),I}function d(h){const b=h.nextToken(),$=h.context(),{lastOffset:k,lastStartLoc:R}=$,I=o(8,k,R);return b.type!==11?(s(h,Ze.UNEXPECTED_EMPTY_LINKED_MODIFIER,$.lastStartLoc,0),I.value="",r(I,k,R),{nextConsumeToken:b,node:I}):(b.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,xn(b)),I.value=b.value||"",r(I,h.currentOffset(),h.currentPosition()),{node:I})}function f(h,b){const $=h.context(),k=o(7,$.offset,$.startLoc);return k.value=b,r(k,h.currentOffset(),h.currentPosition()),k}function p(h){const b=h.context(),$=o(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,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(k)),k=h.nextToken(),k.type===2&&(k=h.nextToken()),k.type){case 10:k.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(k)),$.key=f(h,k.value||"");break;case 4:k.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(k)),$.key=u(h,k.value||"");break;case 5:k.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(k)),$.key=i(h,k.value||"");break;case 6:k.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(k)),$.key=c(h,k.value||"");break;default:{s(h,Ze.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const R=h.context(),I=o(7,R.offset,R.startLoc);return I.value="",r(I,R.offset,R.startLoc),$.key=I,r($,R.offset,R.startLoc),{nextConsumeToken:k,node:$}}}return r($,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=o(2,$,k);R.items=[];let I=null;do{const q=I||h.nextToken();switch(I=null,q.type){case 0:q.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(q)),R.items.push(l(h,q.value||""));break;case 5:q.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(q)),R.items.push(i(h,q.value||""));break;case 4:q.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(q)),R.items.push(u(h,q.value||""));break;case 6:q.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(q)),R.items.push(c(h,q.value||""));break;case 7:{const Y=p(h);R.items.push(Y.node),I=Y.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const E=b.currentType===1?b.lastOffset:h.currentOffset(),M=b.currentType===1?b.lastEndLoc:h.currentPosition();return r(R,E,M),R}function g(h,b,$,k){const R=h.context();let I=k.items.length===0;const E=o(1,b,$);E.cases=[],E.cases.push(k);do{const M=m(h);I||(I=M.items.length===0),E.cases.push(M)}while(R.currentType!==13);return I&&s(h,Ze.MUST_HAVE_MESSAGES_IN_PLURAL,$,0),r(E,h.currentOffset(),h.currentPosition()),E}function w(h){const b=h.context(),{offset:$,startLoc:k}=b,R=m(h);return b.currentType===13?R:g(h,$,k,R)}function C(h){const b=hy(h,xt({},e)),$=b.context(),k=o(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,Ze.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,h[$.offset]||""),r(k,b.currentOffset(),b.currentPosition()),k}return{parse:C}}function xn(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 xy(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function hc(e,t){for(let n=0;n<e.length;n++)ji(e[n],t)}function ji(e,t){switch(e.type){case 1:hc(e.cases,t),t.helper("plural");break;case 2:hc(e.items,t);break;case 6:{ji(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 ky(e,t={}){const n=xy(e);n.helper("normalize"),e.body&&ji(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Sy(e){const t=e.body;return t.type===2?vc(t):t.cases.forEach(n=>vc(n)),e}function vc(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=Ui(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 lo(e){switch(e.t=e.type,e.type){case 0:{const t=e;lo(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++)lo(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++)lo(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;lo(t.key),t.k=t.key,delete t.key,t.modifier&&(lo(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 Cy(e,t){const{filename:n,breakLineCode:s,needIndent:o}=t,r=t.location!==!1,l={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:o,indentLevel:0};r&&e.loc&&(l.source=e.loc.source);const i=()=>l;function u(w,C){l.code+=w}function c(w,C=!0){const h=C?s:"";u(o?h+" ".repeat(w):h)}function d(w=!0){const C=++l.indentLevel;w&&c(C)}function f(w=!0){const C=--l.indentLevel;w&&c(C)}function p(){c(l.indentLevel)}return{context:i,push:u,indent:d,deindent:f,newline:p,helper:w=>`_${w}`,needIndent:()=>l.needIndent}}function Ay(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),xo(e,t.key),t.modifier?(e.push(", "),xo(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Ey(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const o=t.items.length;for(let r=0;r<o&&(xo(e,t.items[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Oy(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const o=t.cases.length;for(let r=0;r<o&&(xo(e,t.cases[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function Py(e,t){t.body?xo(e,t.body):e.push("null")}function xo(e,t){const{helper:n}=e;switch(t.type){case 0:Py(e,t);break;case 1:Oy(e,t);break;case 2:Ey(e,t);break;case 6:Ay(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 Ty=(e,t={})=>{const n=ye(t.mode)?t.mode:"normal",s=ye(t.filename)?t.filename:"message.intl";t.sourceMap;const o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
27
|
+
`,r=t.needIndent?t.needIndent:n!=="arrow",l=e.helpers||[],i=Cy(e,{filename:s,breakLineCode:o,needIndent:r});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(r),l.length>0&&(i.push(`const { ${Ui(l.map(d=>`${d}: _${d}`),", ")} } = ctx`),i.newline()),i.push("return "),xo(i,e),i.deindent(r),i.push("}"),delete e.helpers;const{code:u,map:c}=i.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function $y(e,t={}){const n=xt({},t),s=!!n.jit,o=!!n.minify,r=n.optimize==null?!0:n.optimize,i=wy(n).parse(e);return s?(r&&Sy(i),o&&lo(i),{ast:i,code:""}):(ky(i,n),Ty(i,n))}/*!
|
|
28
|
+
* core-base v11.4.8
|
|
29
|
+
* (c) 2026 kazuya kawaguchi
|
|
30
|
+
* Released under the MIT License.
|
|
31
|
+
*/function Iy(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Us().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Us().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function $n(e){return ze(e)&&Wi(e)===0&&(ln(e,"b")||ln(e,"body"))}const Yf=["b","body"];function My(e){return Cs(e,Yf)}const Xf=["c","cases"];function Ry(e){return Cs(e,Xf,[])}const Jf=["s","static"];function Ly(e){return Cs(e,Jf)}const Qf=["i","items"];function Dy(e){return Cs(e,Qf,[])}const Zf=["t","type"];function Wi(e){return Cs(e,Zf)}const ep=["v","value"];function Mr(e,t){const n=Cs(e,ep);if(n!=null)return n;throw rr(t)}const tp=["m","modifier"];function Ny(e){return Cs(e,tp)}const np=["k","key"];function Fy(e){const t=Cs(e,np);if(t)return t;throw rr(6)}function Cs(e,t,n){for(let s=0;s<t.length;s++){const o=t[s];if(ln(e,o)&&e[o]!=null)return e[o]}return n}const sp=[...Yf,...Xf,...Jf,...Qf,...np,...tp,...ep,...Zf];function rr(e){return new Error(`unhandled node type: ${e}`)}function pl(e){return n=>qy(n,e)}function qy(e,t){const n=My(t);if(n==null)throw rr(0);if(Wi(n)===1){const r=Ry(n);return e.plural(r.reduce((l,i)=>[...l,gc(e,i)],[]))}else return gc(e,n)}function gc(e,t){const n=Ly(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=Dy(t).reduce((o,r)=>[...o,Kl(e,r)],[]);return e.normalize(s)}}function Kl(e,t){const n=Wi(t);switch(n){case 3:return Mr(t,n);case 9:return Mr(t,n);case 4:{const s=t;if(ln(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(ln(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw rr(n)}case 5:{const s=t;if(ln(s,"i")&&wt(s.i))return e.interpolate(e.list(s.i));if(ln(s,"index")&&wt(s.index))return e.interpolate(e.list(s.index));throw rr(n)}case 6:{const s=t,o=Ny(s),r=Fy(s);return e.linked(Kl(e,r),o?Kl(e,o):void 0,e.type)}case 7:return Mr(t,n);case 8:return Mr(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const By=e=>e;let Rr=st();function Vy(e,t={}){let n=!1;const s=t.onError||iy;return t.onError=o=>{n=!0,s(o)},{...$y(e,t),detectError:n}}function Uy(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&ye(e)){Ke(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||By)(e),o=Rr[s];if(o)return o;const{ast:r,detectError:l}=Vy(e,{...t,location:!1,jit:!0}),i=pl(r);return l?i:Rr[s]=i}else{const n=e.cacheKey;if(n){const s=Rr[n];return s||(Rr[n]=pl(e))}else return pl(e)}}let ar=null;function Hy(e){ar=e}function jy(e,t,n){ar&&ar.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Wy=Ky("function:translate");function Ky(e){return t=>ar&&ar.emit(e,t)}const Gn={INVALID_ARGUMENT:ly,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},zy=24;function Yn(e){return Ra(e,null,void 0)}function Ki(e,t){return t.locale!=null?yc(t.locale):yc(e.locale)}let ml;function yc(e){if(ye(e))return e;if(ft(e)){if(e.resolvedOnce&&ml!=null)return ml;if(e.constructor.name==="Function"){const t=e();if(jg(t))throw Yn(Gn.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ml=t}else throw Yn(Gn.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Yn(Gn.NOT_SUPPORT_LOCALE_TYPE)}function Gy(e,t,n){return[...new Set([n,...ht(t)?t:ze(t)?Object.keys(t):ye(t)?[t]:[n]])]}function zl(e,t,n){const s=ye(n)?n:lr,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let r=o.__localeChainCache.get(s);if(!r){r=[];let l=[n];for(;ht(l);)l=bc(r,l,t);const i=ht(t)||!tt(t)?t:t.default?t.default:null;l=ye(i)?[i]:i,ht(l)&&bc(r,l,!1),o.__localeChainCache.set(s,r)}return r}function bc(e,t,n){let s=!0;for(let o=0;o<t.length&&Ke(s);o++){const r=t[o];ye(r)&&(s=Yy(e,t[o],n))}return s}function Yy(e,t,n){let s;const o=t.split("-");do{const r=o.join("-");s=Xy(e,r,n),o.splice(-1,1)}while(o.length&&s===!0);return s}function Xy(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(ht(n)||tt(n))&&n[o]&&(s=n[o])}return s}const As=[];As[0]={w:[0],i:[3,0],"[":[4],o:[7]};As[1]={w:[1],".":[2],"[":[4],o:[7]};As[2]={w:[2],i:[3,0],0:[3,0]};As[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};As[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};As[5]={"'":[4,0],o:8,l:[5,0]};As[6]={'"':[4,0],o:8,l:[6,0]};const Jy=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Qy(e){return Jy.test(e)}function Zy(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 eb(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 tb(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Qy(t)?Zy(t):"*"+t}function nb(e){const t=[];let n=-1,s=0,o=0,r,l,i,u,c,d,f;const p=[];p[0]=()=>{l===void 0?l=i:l+=i},p[1]=()=>{l!==void 0&&(t.push(l),l=void 0)},p[2]=()=>{p[0](),o++},p[3]=()=>{if(o>0)o--,s=4,p[0]();else{if(o=0,l===void 0||(l=tb(l),l===!1))return!1;p[1]()}};function m(){const g=e[n+1];if(s===5&&g==="'"||s===6&&g==='"')return n++,i="\\"+g,p[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&m())){if(u=eb(r),f=As[s],c=f[u]||f.l||8,c===8||(s=c[0],c[1]!==void 0&&(d=p[c[1]],d&&(i=r,d()===!1))))return;if(s===7)return t}}const _c=new Map;function sb(e,t){return ze(e)?e[t]:null}function ob(e,t){if(!ze(e))return null;let n=_c.get(t);if(n||(n=nb(t),n&&_c.set(t,n)),!n)return null;const s=n.length;let o=e,r=0;for(;r<s;){const l=n[r];if(sp.includes(l)&&$n(o)||!ze(o)||!ln(o,l))return null;const i=o[l];if(i===void 0||ft(o))return null;o=i,r++}return o}const rb="11.4.8",La=-1,lr="en-US",ra="",wc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function ab(){return{upper:(e,t)=>t==="text"&&ye(e)?e.toUpperCase():t==="vnode"&&ze(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&ye(e)?e.toLowerCase():t==="vnode"&&ze(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&ye(e)?wc(e):t==="vnode"&&ze(e)&&"__v_isVNode"in e?wc(e.children):e}}let op;function lb(e){op=e}let rp;function ib(e){rp=e}let ap;function ub(e){ap=e}let lp=null;const cb=e=>{lp=e},db=()=>lp;let ip=null;const xc=e=>{ip=e},fb=()=>ip;let kc=0;function pb(e={}){const t=ft(e.onWarn)?e.onWarn:Kg,n=ye(e.version)?e.version:rb,s=ye(e.locale)||ft(e.locale)?e.locale:lr,o=ft(s)?lr:s,r=ht(e.fallbackLocale)||tt(e.fallbackLocale)||ye(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,l=tt(e.messages)?e.messages:hl(o),i=tt(e.datetimeFormats)?e.datetimeFormats:hl(o),u=tt(e.numberFormats)?e.numberFormats:hl(o),c=xt(st(),e.modifiers,ab()),d=e.pluralRules||st(),f=ft(e.missing)?e.missing:null,p=Ke(e.missingWarn)||wo(e.missingWarn)?e.missingWarn:!0,m=Ke(e.fallbackWarn)||wo(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,w=!!e.unresolving,C=ft(e.postTranslation)?e.postTranslation:null,h=tt(e.processor)?e.processor:null,b=Ke(e.warnHtmlMessage)?e.warnHtmlMessage:!0,$=!!e.escapeParameter,k=ft(e.messageCompiler)?e.messageCompiler:op,R=ft(e.messageResolver)?e.messageResolver:rp||sb,I=ft(e.localeFallbacker)?e.localeFallbacker:ap||Gy,E=ze(e.fallbackContext)?e.fallbackContext:void 0,M=e,q=ze(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,Y=ze(M.__numberFormatters)?M.__numberFormatters:new Map,re=ze(M.__meta)?M.__meta:{};kc++;const H={version:n,cid:kc,locale:s,fallbackLocale:r,messages:l,modifiers:c,pluralRules:d,missing:f,missingWarn:p,fallbackWarn:m,fallbackFormat:g,unresolving:w,postTranslation:C,processor:h,warnHtmlMessage:b,escapeParameter:$,messageCompiler:k,messageResolver:R,localeFallbacker:I,fallbackContext:E,onWarn:t,__meta:re};return H.datetimeFormats=i,H.numberFormats=u,H.__datetimeFormatters=q,H.__numberFormatters=Y,__INTLIFY_PROD_DEVTOOLS__&&jy(H,n,re),H}const hl=e=>({[e]:st()});function up(e,t,n,s,o){const{missing:r,onWarn:l}=e;if(r!==null){const i=r(e,n,t,o);return ye(i)?i:t}else return t}function Ro(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function mb(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function hb(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(mb(e,t[s]))return!0;return!1}function cp(e,t,n,s,o,r,l){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(tt(m)&&ye(p))return p;up(e,t,p,o,l)}return null}function dp(e,t,n){let s=`${e}__${t}`;return tt(n)&&!Bi(n)&&(s=`${s}__${JSON.stringify(n)}`),s}function fp(e,t,n){for(const s in n){const o=`${t}__${s}`;for(const r of e.keys())(r===o||r.startsWith(`${o}__`))&&e.delete(r)}}function pp(e,t,n,s){const[,o,r,l]=e;let i=n;return ye(o)?t.key=o:tt(o)&&Object.keys(o).forEach(u=>{s.includes(u)?i[u]=o[u]:t[u]=o[u]}),ye(r)?t.locale=r:tt(r)&&(i=r),tt(l)&&(i=l),i}function Sc(e,...t){const{datetimeFormats:n,unresolving:s,onWarn:o}=e,{__datetimeFormatters:r}=e;if(!ye(t[0])&&!zf(t[0])&&!wt(t[0]))return ra;const[l,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=Ki(e,u);if(!ye(l)||l===""){const b=new Intl.DateTimeFormat(m.replace(/!/g,""),c);return p?b.formatToParts(i):b.format(i)}const g=cp(e,l,m,n,d,f,"datetime format");if(!ye(g))return s?La:l;const w=n[g][l],C=dp(g,l,c);let h=r.get(C);return h||(h=new Intl.DateTimeFormat(g,xt({},w,c)),r.set(C,h)),p?h.formatToParts(i):h.format(i)}const mp=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Gl(...e){const[t]=e,n=st(),s=st();let o;if(ye(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Yn(Gn.INVALID_ISO_DATE_ARGUMENT);const i=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();o=new Date(i);try{o.toISOString()}catch{throw Yn(Gn.INVALID_ISO_DATE_ARGUMENT)}}else if(zf(t)){if(isNaN(t.getTime()))throw Yn(Gn.INVALID_DATE_ARGUMENT);o=t}else if(wt(t))o=t;else throw Yn(Gn.INVALID_ARGUMENT);const r=pp(e,n,s,mp);return[n.key||"",o,n,r]}function Cc(e,t,n){fp(e.__datetimeFormatters,t,n)}function Ac(e,...t){const{numberFormats:n,unresolving:s,onWarn:o}=e,{__numberFormatters:r}=e;if(!wt(t[0]))return ra;const[l,i,u,c]=Yl(...t),d=Ke(u.missingWarn)?u.missingWarn:e.missingWarn,f=Ke(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=!!u.part,m=Ki(e,u);if(!ye(l)||l===""){const b=new Intl.NumberFormat(m.replace(/!/g,""),c);return p?b.formatToParts(i):b.format(i)}const g=cp(e,l,m,n,d,f,"number format");if(!ye(g))return s?La:l;const w=n[g][l],C=dp(g,l,c);let h=r.get(C);return h||(h=new Intl.NumberFormat(g,xt({},w,c)),r.set(C,h)),p?h.formatToParts(i):h.format(i)}const hp=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Yl(...e){const[t]=e,n=st(),s=st();if(!wt(t))throw Yn(Gn.INVALID_ARGUMENT);const o=t,r=pp(e,n,s,hp);return[n.key||"",o,n,r]}function Ec(e,t,n){fp(e.__numberFormatters,t,n)}const vb=e=>e,gb=e=>"",yb="text",bb=e=>e.length===0?"":Ui(e),_b=Wg;function vl(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function wb(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 xb(e={}){var h,b,$,k;const t=e.locale,n=wb(e),s=ye(t)&&ft((h=e.pluralRules)==null?void 0:h[t])?e.pluralRules[t]:vl,o=s===vl?void 0:vl,r=R=>R[s(n,R.length,o)],l=e.list||[],i=R=>l[R],u=e.named||st();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 E=ft(e.messages)?e.messages(R,!!I):ze(e.messages)?e.messages[R]:!1;return E||(e.parent?e.parent.message(R):gb)}const f=R=>e.modifiers?e.modifiers[R]:vb,p=ft((b=e.processor)==null?void 0:b.normalize)?e.processor.normalize:bb,m=ft(($=e.processor)==null?void 0:$.interpolate)?e.processor.interpolate:_b,g=ye((k=e.processor)==null?void 0:k.type)?e.processor.type:yb,C={list:i,named:c,plural:r,linked:(R,...I)=>{const[E,M]=I;let q="text",Y="";I.length===1?ze(E)?(Y=E.modifier||Y,q=E.type||q):ye(E)&&(Y=E||Y):I.length===2&&(ye(E)&&(Y=E||Y),ye(M)&&(q=M||q));const re=d(R,!0)(C),H=re===""||re===void 0?R:re,ee=q==="vnode"&&ht(H)&&Y?H[0]:H;return Y?f(Y)(ee,q):ee},message:d,type:g,interpolate:m,normalize:p,values:xt(st(),l,u)};return C}const Oc=()=>"",an=e=>ft(e);function Pc(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:o,messageCompiler:r,fallbackLocale:l,messages:i}=e,[u,c]=Xl(...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,g=ye(c.default)||Ke(c.default)?Ke(c.default)?r?u:()=>u:c.default:n?r?u:()=>u:null,w=n||g!=null&&(ye(g)||ft(g)),C=Ki(e,c);p&&kb(c);let[h,b,$]=m?[u,C,i[C]||st()]:vp(e,u,C,l,f,d),k=h,R=u;if(!m&&!(ye(k)||$n(k)||an(k))&&w&&(k=g,R=k),!m&&(!(ye(k)||$n(k)||an(k))||!ye(b)))return o?La:u;let I=!1;const E=()=>{I=!0},M=an(k)?k:gp(e,u,b,k,R,E);if(I)return k;const q=Ab(e,b,$,c),Y=xb(q),re=Sb(e,M,Y);let H=s?s(re,u):re;if(p&&ye(H)&&(H=ry(H)),__INTLIFY_PROD_DEVTOOLS__){const ee={timestamp:Date.now(),key:ye(u)?u:an(k)?k.key:"",locale:b||(an(k)?k.locale:""),format:ye(k)?k:an(k)?k.source:"",message:H};ee.meta=xt({},e.__meta,db()||{}),Wy(ee)}return H}function kb(e){ht(e.list)?e.list=e.list.map(t=>ye(t)?fc(t):t):ze(e.named)&&Object.keys(e.named).forEach(t=>{ye(e.named[t])&&(e.named[t]=fc(e.named[t]))})}function vp(e,t,n,s,o,r){const{messages:l,onWarn:i,messageResolver:u,localeFallbacker:c}=e,d=c(e,s,n);let f=st(),p,m=null;const g="translate";for(let w=0;w<d.length&&(p=d[w],f=l[p]||st(),(m=u(f,t))===null&&(m=f[t]),!(ye(m)||$n(m)||an(m)));w++)if(!hb(p,d)){const C=up(e,t,p,r,g);C!==t&&(m=C)}return[m,p,f]}function gp(e,t,n,s,o,r){const{messageCompiler:l,warnHtmlMessage:i}=e;if(an(s)){const c=s;return c.locale=c.locale||n,c.key=c.key||t,c}if(l==null){const c=()=>s;return c.locale=n,c.key=t,c}const u=l(s,Cb(e,n,o,s,i,r));return u.locale=n,u.key=t,u.source=s,u}function Sb(e,t,n){return t(n)}function Xl(...e){const[t,n,s]=e,o=st();if(!ye(t)&&!wt(t)&&!an(t)&&!$n(t))throw Yn(Gn.INVALID_ARGUMENT);const r=wt(t)?String(t):(an(t),t);return wt(n)?o.plural=n:ye(n)?o.default=n:tt(n)&&!Bi(n)?o.named=n:ht(n)&&(o.list=n),wt(s)?o.plural=s:ye(s)?o.default=s:tt(s)&&xt(o,s),[r,o]}function Cb(e,t,n,s,o,r){return{locale:t,key:n,warnHtmlMessage:o,onError:l=>{throw r&&r(l),l},onCacheKey:l=>Bg(t,n,l)}}function Ab(e,t,n,s){const{modifiers:o,pluralRules:r,messageResolver:l,fallbackLocale:i,fallbackWarn:u,missingWarn:c,fallbackContext:d}=e,p={locale:t,modifiers:o,pluralRules:r,messages:(m,g)=>{let w=l(n,m);if(w==null&&(d||g)){const[C,,h]=vp(d||e,m,t,i,u,c);w=C??l(h,m)}if(ye(w)||$n(w)){let C=!1;const b=gp(e,m,t,w,m,()=>{C=!0});return C?Oc:b}else return an(w)?w:Oc}};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}Iy();/*!
|
|
32
|
+
* vue-i18n v11.4.8
|
|
33
|
+
* (c) 2026 kazuya kawaguchi
|
|
34
|
+
* Released under the MIT License.
|
|
35
|
+
*/const Eb="11.4.8";function Ob(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Us().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Us().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Us().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Us().__INTLIFY_PROD_DEVTOOLS__=!1)}const Ut={UNEXPECTED_RETURN_TYPE:zy,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 Kt(e,...t){return Ra(e,null,void 0)}const Jl=Ss("__translateVNode"),Ql=Ss("__datetimeParts"),Zl=Ss("__numberParts"),yp=Ss("__setPluralRules"),bp=Ss("__injectWithOption"),uo=Ss("__dispose");function ir(e){if(!ze(e)||$n(e))return e;for(const t in e)if(ln(e,t))if(!t.includes("."))ze(e[t])&&ir(e[t]);else{const n=t.split("."),s=n.length-1;let o=e,r=!1;for(let l=0;l<s;l++){if(n[l]==="__proto__")throw new Error(`unsafe key: ${n[l]}`);if(n[l]in o||(o[n[l]]=st()),!ze(o[n[l]])){r=!0;break}o=o[n[l]]}if(r||($n(o)?sp.includes(n[s])||delete e[t]:(o[n[s]]=e[t],delete e[t])),!$n(o)){const l=o[n[s]];ze(l)&&ir(l)}}return e}function zi(e,t){const{messages:n,__i18n:s,messageResolver:o,flatJson:r}=t,l=tt(n)?n:ht(s)?st():{[e]:st()};if(ht(s)&&s.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:u,resource:c}=i;u?(l[u]=l[u]||st(),Kr(c,l[u])):Kr(c,l)}else ye(i)&&Kr(JSON.parse(i),l)}),o==null&&r)for(const i in l)ln(l,i)&&ir(l[i]);return l}function _p(e){return e.type}function wp(e,t,n){let s=ze(t.messages)?t.messages:st();"__i18nGlobal"in n&&(s=zi(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const o=Object.keys(s);o.length&&o.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(ze(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(ze(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function Tc(e){return v(wr,null,e,0)}function ur(){return Yt()}const $c="__INTLIFY_META__",Ic=()=>[],Pb=()=>!1;let Mc=0;function Rc(e){return(t,n,s,o)=>e(n,s,ur()||void 0,o)}const Tb=()=>{const e=ur();let t=null;return e&&(t=_p(e)[$c])?{[$c]:t}:null};function aa(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,o=e.flatJson,r=oa?N:Oa;let l=Ke(e.inheritLocale)?e.inheritLocale:!0;const i=r(t&&l?t.locale.value:ye(e.locale)?e.locale:lr),u=r(t&&l?t.fallbackLocale.value:ye(e.fallbackLocale)||ht(e.fallbackLocale)||tt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),c=r(zi(i.value,e)),d=r(tt(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),f=r(tt(e.numberFormats)?e.numberFormats:{[i.value]:{}});let p=t?t.missingWarn:Ke(e.missingWarn)||wo(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:Ke(e.fallbackWarn)||wo(e.fallbackWarn)?e.fallbackWarn:!0,g=t?t.fallbackRoot:Ke(e.fallbackRoot)?e.fallbackRoot:!0,w=!!e.fallbackFormat,C=ft(e.missing)?e.missing:null,h=ft(e.missing)?Rc(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:tt(e.modifiers)?e.modifiers:{};let I=e.pluralRules||t&&t.pluralRules,E;E=(()=>{s&&xc(null);const U={version:Eb,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"}};U.datetimeFormats=d.value,U.numberFormats=f.value,U.__datetimeFormatters=tt(E)?E.__datetimeFormatters:void 0,U.__numberFormatters=tt(E)?E.__numberFormatters:void 0;const z=pb(U);return s&&xc(z),z})(),Ro(E,i.value,u.value);function q(){return[i.value,u.value,c.value,d.value,f.value]}const Y=te({get:()=>i.value,set:U=>{E.locale=U,i.value=U}}),re=te({get:()=>u.value,set:U=>{E.fallbackLocale=U,u.value=U,Ro(E,i.value,U)}}),H=te(()=>c.value),ee=te(()=>d.value),me=te(()=>f.value);function J(){return ft(b)?b:null}function ue(U){b=U,E.postTranslation=U}function de(){return C}function fe(U){U!==null&&(h=Rc(U)),C=U,E.missing=h}const se=(U,z,he,Ce,Me,Xe)=>{q();let He;try{__INTLIFY_PROD_DEVTOOLS__,s||(E.fallbackContext=t?fb():void 0),He=U(E)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(E.fallbackContext=void 0)}if(he!=="translate exists"&&wt(He)&&He===La||he==="translate exists"&&!He){const[jt,Xt]=z();return t&&g?Ce(t):Me(jt)}else{if(Xe(He))return He;throw Kt(Ut.UNEXPECTED_RETURN_TYPE)}};function Q(...U){return se(z=>Reflect.apply(Pc,null,[z,...U]),()=>Xl(...U),"translate",z=>Reflect.apply(z.t,z,[...U]),z=>z,z=>ye(z))}function ce(...U){const[z,he,Ce]=U;if(Ce&&!ze(Ce))throw Kt(Ut.INVALID_ARGUMENT);return Q(z,he,xt({resolvedMessage:!0},Ce||{}))}function Be(...U){return se(z=>Reflect.apply(Sc,null,[z,...U]),()=>Gl(...U),"datetime format",z=>Reflect.apply(z.d,z,[...U]),()=>ra,z=>ye(z)||ht(z))}function rt(...U){return se(z=>Reflect.apply(Ac,null,[z,...U]),()=>Yl(...U),"number format",z=>Reflect.apply(z.n,z,[...U]),()=>ra,z=>ye(z)||ht(z))}function at(U){return U.map(z=>ye(z)||wt(z)||Ke(z)?Tc(String(z)):z)}const Ye={normalize:at,interpolate:U=>U,type:"vnode"};function qe(...U){return se(z=>{let he;const Ce=z;try{Ce.processor=Ye,he=Reflect.apply(Pc,null,[Ce,...U])}finally{Ce.processor=null}return he},()=>Xl(...U),"translate",z=>z[Jl](...U),z=>[Tc(z)],z=>ht(z))}function ot(...U){return se(z=>Reflect.apply(Ac,null,[z,...U]),()=>Yl(...U),"number format",z=>z[Zl](...U),Ic,z=>ye(z)||ht(z))}function Ie(...U){return se(z=>Reflect.apply(Sc,null,[z,...U]),()=>Gl(...U),"datetime format",z=>z[Ql](...U),Ic,z=>ye(z)||ht(z))}function ut(U){I=U,E.pluralRules=I}function ve(U,z){return se(()=>{if(!U)return!1;const he=ye(z)?z:i.value,Ce=ye(z)?[he]:zl(E,u.value,he);for(let Me=0;Me<Ce.length;Me++){const Xe=W(Ce[Me]);let He=E.messageResolver(Xe,U);if(He===null&&(He=Xe[U]),$n(He)||an(He)||ye(He))return!0}return!1},()=>[U],"translate exists",he=>Reflect.apply(he.te,he,[U,z]),Pb,he=>Ke(he))}function _(U){let z=null;const he=zl(E,u.value,i.value);for(let Ce=0;Ce<he.length;Ce++){const Me=c.value[he[Ce]]||{},Xe=E.messageResolver(Me,U);if(Xe!=null){z=Xe;break}}return z}function T(U){const z=_(U);return z??(t?t.tm(U)||{}:{})}function W(U){return c.value[U]||{}}function le(U,z){if(o){const he={[U]:z};for(const Ce in he)ln(he,Ce)&&ir(he[Ce]);z=he[U]}c.value[U]=z,E.messages=c.value}function oe(U,z){c.value[U]=c.value[U]||{};const he={[U]:z};if(o)for(const Ce in he)ln(he,Ce)&&ir(he[Ce]);z=he[U],Kr(z,c.value[U]),E.messages=c.value}function ne(U){return d.value[U]||{}}function O(U,z){d.value[U]=z,E.datetimeFormats=d.value,Cc(E,U,z)}function P(U,z){d.value[U]=xt(d.value[U]||{},z),E.datetimeFormats=d.value,Cc(E,U,z)}function V(U){return f.value[U]||{}}function j(U,z){f.value[U]=z,E.numberFormats=f.value,Ec(E,U,z)}function pe(U,z){f.value[U]=xt(f.value[U]||{},z),E.numberFormats=f.value,Ec(E,U,z)}Mc++,t&&oa&&(De(t.locale,U=>{l&&(i.value=U,E.locale=U,Ro(E,i.value,u.value))}),De(t.fallbackLocale,U=>{l&&(u.value=U,E.fallbackLocale=U,Ro(E,i.value,u.value))}));const ae={id:Mc,locale:Y,fallbackLocale:re,get inheritLocale(){return l},set inheritLocale(U){l=U,U&&t&&(i.value=t.locale.value,u.value=t.fallbackLocale.value,Ro(E,i.value,u.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:H,get modifiers(){return R},get pluralRules(){return I||{}},get isGlobal(){return s},get missingWarn(){return p},set missingWarn(U){p=U,E.missingWarn=p},get fallbackWarn(){return m},set fallbackWarn(U){m=U,E.fallbackWarn=m},get fallbackRoot(){return g},set fallbackRoot(U){g=U},get fallbackFormat(){return w},set fallbackFormat(U){w=U,E.fallbackFormat=w},get warnHtmlMessage(){return $},set warnHtmlMessage(U){$=U,E.warnHtmlMessage=U},get escapeParameter(){return k},set escapeParameter(U){k=U,E.escapeParameter=U},t:Q,getLocaleMessage:W,setLocaleMessage:le,mergeLocaleMessage:oe,getPostTranslationHandler:J,setPostTranslationHandler:ue,getMissingHandler:de,setMissingHandler:fe,[yp]:ut};return ae.datetimeFormats=ee,ae.numberFormats=me,ae.rt=ce,ae.te=ve,ae.tm=T,ae.d=Be,ae.n=rt,ae.getDateTimeFormat=ne,ae.setDateTimeFormat=O,ae.mergeDateTimeFormat=P,ae.getNumberFormat=V,ae.setNumberFormat=j,ae.mergeNumberFormat=pe,ae[bp]=n,ae[Jl]=qe,ae[Ql]=Ie,ae[Zl]=ot,ae}function $b(e){const t=ye(e.locale)?e.locale:lr,n=ye(e.fallbackLocale)||ht(e.fallbackLocale)||tt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=ft(e.missing)?e.missing:void 0,o=Ke(e.silentTranslationWarn)||wo(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=Ke(e.silentFallbackWarn)||wo(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=Ke(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,u=tt(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,d=ft(e.postTranslation)?e.postTranslation:void 0,f=ye(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,m=Ke(e.sync)?e.sync:!0;let g=e.messages;if(tt(e.sharedMessages)){const R=e.sharedMessages;g=Object.keys(R).reduce((E,M)=>{const q=E[M]||(E[M]={});return xt(q,R[M]),E},g||{})}const{__i18n:w,__root:C,__injectWithOption:h}=e,b=e.datetimeFormats,$=e.numberFormats,k=e.flatJson;return{locale:t,fallbackLocale:n,messages:g,flatJson:k,datetimeFormats:b,numberFormats:$,missing:s,missingWarn:o,fallbackWarn:r,fallbackRoot:l,fallbackFormat:i,modifiers:u,pluralRules:c,postTranslation:d,warnHtmlMessage:f,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:m,__i18n:w,__root:C,__injectWithOption:h}}function ei(e={}){const t=aa($b(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(o){t.locale.value=o},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(o){t.fallbackLocale.value=o},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(o){t.setMissingHandler(o)},get silentTranslationWarn(){return Ke(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(o){t.missingWarn=Ke(o)?!o:o},get silentFallbackWarn(){return Ke(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(o){t.fallbackWarn=Ke(o)?!o:o},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(o){t.fallbackFormat=o},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(o){t.setPostTranslationHandler(o)},get sync(){return t.inheritLocale},set sync(o){t.inheritLocale=o},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){t.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(o){t.escapeParameter=o},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...o){return Reflect.apply(t.t,t,[...o])},rt(...o){return Reflect.apply(t.rt,t,[...o])},te(o,r){return t.te(o,r)},tm(o){return t.tm(o)},getLocaleMessage(o){return t.getLocaleMessage(o)},setLocaleMessage(o,r){t.setLocaleMessage(o,r)},mergeLocaleMessage(o,r){t.mergeLocaleMessage(o,r)},d(...o){return Reflect.apply(t.d,t,[...o])},getDateTimeFormat(o){return t.getDateTimeFormat(o)},setDateTimeFormat(o,r){t.setDateTimeFormat(o,r)},mergeDateTimeFormat(o,r){t.mergeDateTimeFormat(o,r)},n(...o){return Reflect.apply(t.n,t,[...o])},getNumberFormat(o){return t.getNumberFormat(o)},setNumberFormat(o,r){t.setNumberFormat(o,r)},mergeNumberFormat(o,r){t.mergeNumberFormat(o,r)}};return s.__extender=n,s}function Ib(e,t,n){return{beforeCreate(){const s=ur();if(!s)throw Kt(Ut.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const r=o.i18n;if(o.__i18n&&(r.__i18n=o.__i18n),r.__root=t,this===this.$root)this.$i18n=Lc(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=ei(r);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=Lc(e,o);else{this.$i18n=ei({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&wp(t,o,o),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$te=(r,l)=>this.$i18n.te(r,l),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=ur();if(!s)throw Kt(Ut.UNEXPECTED_ERROR);const o=this.$i18n;o&&(delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o!=null&&o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(s),delete this.$i18n)}}}function Lc(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[yp](t.pluralizationRules||e.pluralizationRules);const n=zi(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 Gi={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Mb({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,o)=>[...s,...o.type===Ae?o.children:[o]],[]):t.reduce((n,s)=>{const o=e[s];return o&&(n[s]=o()),n},st())}function xp(){return Ae}const Rb=X({name:"i18n-t",props:xt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>wt(e)||!isNaN(e)}},Gi),setup(e,t){const{slots:n,attrs:s}=t,o=e.i18n||Ht({useScope:e.scope,__useComponent:!0});return()=>{const r=()=>{const u=Object.keys(n).filter(f=>f[0]!=="_"),c=st();e.locale&&(c.locale=e.locale),e.plural!==void 0&&(c.plural=ye(e.plural)?+e.plural:e.plural);const d=Mb(t,u);return o[Jl](e.keypath,d,c)},l=xt(st(),s),i=ye(e.tag)||ze(e.tag)?e.tag:xp();return ze(i)?en(i,l,{default:r}):en(i,l,r())}}}),Dc=Rb;function Lb(e){return ht(e)&&!ye(e[0])}function kp(e,t,n,s){const{slots:o,attrs:r}=t;return()=>{const l=()=>{const c={part:!0};let d=st();e.locale&&(c.locale=e.locale),ye(e.format)?c.key=e.format:ze(e.format)&&(ye(e.format.key)&&(c.key=e.format.key),d=Object.keys(e.format).reduce((m,g)=>n.includes(g)?xt(st(),m,{[g]:e.format[g]}):m,st()));const f=s(e.value,c,d);let p=[c.key];return ht(f)?p=f.map((m,g)=>{const w=o[m.type],C=w?w({[m.type]:m.value,index:g,parts:f}):[m.value];return Lb(C)&&(C[0].key=`${m.type}-${g}`),C}):ye(f)&&(p=[f]),p},i=xt(st(),r),u=ye(e.tag)||ze(e.tag)?e.tag:xp();return ze(u)?en(u,i,{default:l}):en(u,i,l())}}const Db=X({name:"i18n-n",props:xt({value:{type:Number,required:!0},format:{type:[String,Object]}},Gi),setup(e,t){const n=e.i18n||Ht({useScope:e.scope,__useComponent:!0});return kp(e,t,hp,(...s)=>n[Zl](...s))}}),Nc=Db;function Nb(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 Fb(e){const t=l=>{const{instance:i,value:u}=l;if(!i||!i.$)throw Kt(Ut.UNEXPECTED_ERROR);const c=Nb(e,i.$),d=Fc(u);return[Reflect.apply(c.t,c,[...qc(d)]),c]};return{created:(l,i)=>{const[u,c]=t(i);oa&&(l.__i18nWatcher=De(c.locale,()=>{i.instance&&i.instance.$forceUpdate()})),l.__composer=c,l.textContent=u},unmounted:l=>{oa&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:i})=>{if(l.__composer){const u=l.__composer,c=Fc(i);l.textContent=Reflect.apply(u.t,u,[...qc(c)])}},getSSRProps:l=>{const[i]=t(l);return{textContent:i}}}}function Fc(e){if(ye(e))return{path:e};if(tt(e)){if(!("path"in e))throw Kt(Ut.REQUIRED_VALUE,"path");return e}else throw Kt(Ut.INVALID_VALUE)}function qc(e){const{path:t,locale:n,args:s,choice:o,plural:r}=e,l={},i=s||{};return ye(n)&&(l.locale=n),wt(o)&&(l.plural=o),wt(r)&&(l.plural=r),[t,i,l]}function qb(e,t,...n){const s=tt(n[0])?n[0]:{};(Ke(s.globalInstall)?s.globalInstall:!0)&&([Dc.name,"I18nT"].forEach(r=>e.component(r,Dc)),[Nc.name,"I18nN"].forEach(r=>e.component(r,Nc)),[Uc.name,"I18nD"].forEach(r=>e.component(r,Uc))),e.directive("t",Fb(t))}const Bb=Ss("global-vue-i18n");function Vb(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,[o,r]=Ub(e,t),l=Ss("");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__=l,f.provide(f.__VUE_I18N_SYMBOL__,d),tt(p[0])){const w=p[0];d.__composerExtend=w.__composerExtend,d.__vueI18nExtend=w.__vueI18nExtend}let m=null;!t&&n&&(m=Yb(f,d.global)),__VUE_I18N_FULL_INSTALL__&&qb(f,d,...p),__VUE_I18N_LEGACY_API__&&t&&f.mixin(Ib(r,r.__composer,d));const g=f.unmount;f.unmount=()=>{m&&m(),d.dispose(),g()}},get global(){return r},dispose(){o.stop()},__instances:s,__getInstance:i,__setInstance:u,__deleteInstance:c};return d}function Ht(e={}){const t=ur();if(t==null)throw Kt(Ut.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Kt(Ut.NOT_INSTALLED);const n=Hb(t),s=Wb(n),o=_p(t),r=jb(e,o);if(r==="global")return wp(s,e,o),s;if(r==="parent"){let u=Bc(n,t,e.__useComponent);return u==null&&(u=s),u}if(r==="isolated"){if(n.mode!=="composition")throw Kt(Ut.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const u=n,c=xt({},e),d=Bc(n,t);c.__root=d||s;const f=aa(c);return u.__composerExtend&&(f[uo]=u.__composerExtend(f)),xa()&&Ei(()=>{const m=f[uo];m&&(m(),delete f[uo])}),f}const l=n;let i=l.__getInstance(t);if(i==null){const u=xt({},e);"__i18n"in o&&(u.__i18n=o.__i18n),s&&(u.__root=s),i=aa(u),l.__composerExtend&&(i[uo]=l.__composerExtend(i)),zb(l,t,i),l.__setInstance(t,i)}return i}function Ub(e,t){const n=Ai(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>ei(e)):n.run(()=>aa(e));if(s==null)throw Kt(Ut.UNEXPECTED_ERROR);return[n,s]}function Hb(e){const t=Ws(e.isCE?Bb:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Kt(e.isCE?Ut.NOT_INSTALLED_WITH_PROVIDE:Ut.UNEXPECTED_ERROR);return t}function jb(e,t){return Bi(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Wb(e){return e.mode==="composition"?e.global:e.global.__composer}function Bc(e,t,n=!1){let s=null;const o=t.root;let r=Kb(t,n);for(;r!=null;){const l=e;if(e.mode==="composition")s=l.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const i=l.__getInstance(r);i!=null&&(s=i.__composer,n&&s&&!s[bp]&&(s=null))}if(s!=null||o===r)break;r=r.parent}return s}function Kb(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function zb(e,t,n){mt(()=>{},t),bn(()=>{const s=n;e.__deleteInstance(t);const o=s[uo];o&&(o(),delete s[uo])},t)}const Gb=["locale","fallbackLocale","availableLocales"],Vc=["t","rt","d","n","tm","te"];function Yb(e,t){const n=Object.create(null);return Gb.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r)throw Kt(Ut.UNEXPECTED_ERROR);const l=pt(r.value)?{get(){return r.value.value},set(i){r.value.value=i}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,o,l)}),e.config.globalProperties.$i18n=n,Vc.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r||!r.value)throw Kt(Ut.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,r)}),()=>{delete e.config.globalProperties.$i18n,Vc.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}const Xb=X({name:"i18n-d",props:xt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Gi),setup(e,t){const n=e.i18n||Ht({useScope:e.scope,__useComponent:!0});return kp(e,t,mp,(...s)=>n[Ql](...s))}}),Uc=Xb;Ob();lb(Uy);ib(ob);ub(zl);if(__INTLIFY_PROD_DEVTOOLS__){const e=Us();e.__INTLIFY__=!0,Hy(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Yi="myapikey.creds";function la(){const e=localStorage.getItem(Yi);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 Sp(e,t){localStorage.setItem(Yi,JSON.stringify({user:e,pass:t}))}function gl(){localStorage.removeItem(Yi)}async function Fe(e,t,n){var i;const s=la();if(!s)throw new Error("Not authenticated");const o=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}),r=await o.text();let l=null;try{l=r?JSON.parse(r):null}catch{}if(!o.ok){const u=((i=l==null?void 0:l.error)==null?void 0:i.message)??r??o.statusText;throw new Error(String(u))}return l}const Jb={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.",availableAllFiltered:"No chat models to enable ({n} non-chat hidden by filter).",filterChatOnly:"Chat models only",filterInclude:"Include non-chat",filterChatHint:"{n} non-chat models hidden (embeddings/audio/image…). Click to show all.",filterAllHint:"Showing all models. Click to keep chat models only.",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.",noneSourceOpt:"✎ Custom names (no source)",addModelsNoneHint:'Register just the model names with no source attached. After adding, expand the model in the list and click "Add source" to attach one.',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"}},Qb={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:"来自所有来源的发现结果,启用后即可调用。",availableAllFiltered:"没有可启用的对话模型(还有 {n} 个非对话模型被隐藏)。",filterChatOnly:"仅对话模型",filterInclude:"含非对话模型",filterChatHint:"已隐藏 {n} 个非对话模型(嵌入/音频/图像等),点击显示全部。",filterAllHint:"当前显示全部模型,点击仅保留对话模型。",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:"先建一个新来源,再把这些模型挂到它上面。",noneSourceOpt:"✎ 仅自定义名(不绑来源)",addModelsNoneHint:"只把模型名登记进来,暂不绑定任何来源。添加后到列表里展开该模型,点「添加来源」再挂上去。",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:"刷新"}},Cp="myapikey.locale";function Zb(){const e=localStorage.getItem(Cp);return e==="en"||e==="zh"?e:(typeof navigator<"u"?navigator.language:"en").toLowerCase().startsWith("zh")?"zh":"en"}const Ap=Vb({legacy:!1,locale:Zb(),fallbackLocale:"en",messages:{en:Jb,zh:Qb}});function e_(e){Ap.global.locale.value=e,localStorage.setItem(Cp,e)}const Qt={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"}},Hc=[{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 ti(e){let t=5381;for(let n=0;n<e.length;n++)t=t*33^e.charCodeAt(n);return Hc[Math.abs(t)%Hc.length]}const cr=N([]);let t_=1;function n_(){return cr}function Ep(e){cr.value=cr.value.filter(t=>t.id!==e)}function $e(e,t="default",n=3500){const s=t_++;cr.value=[...cr.value,{id:s,message:e,variant:t}],n>0&&window.setTimeout(()=>Ep(s),n)}async function Xi(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}}function Op(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Op(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Pp(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Op(e))&&(s&&(s+=" "),s+=t);return s}const jc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Wc=Pp,Tp=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return Wc(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:r}=t,l=Object.keys(o).map(c=>{const d=n==null?void 0:n[c],f=r==null?void 0:r[c];if(d===null)return null;const p=jc(d)||jc(f);return o[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(g=>{let[w,C]=g;return Array.isArray(C)?C.includes({...r,...i}[w]):{...r,...i}[w]===C})?[...c,f,p]:c},[]);return Wc(e,l,u,n==null?void 0:n.class,n==null?void 0:n.className)},s_=(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},o_=(e,t)=>({classGroupId:e,validator:t}),$p=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ia="-",Kc=[],r_="arbitrary..",a_=e=>{const t=i_(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return l_(l);const i=l.split(ia),u=i[0]===""&&i.length>1?1:0;return Ip(i,u,t)},getConflictingClassGroupIds:(l,i)=>{if(i){const u=s[l],c=n[l];return u?c?s_(c,u):u:c||Kc}return n[l]||Kc}}},Ip=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],r=n.nextPart.get(o);if(r){const c=Ip(e,t+1,r);if(c)return c}const l=n.validators;if(l===null)return;const i=t===0?e.join(ia):e.slice(t).join(ia),u=l.length;for(let c=0;c<u;c++){const d=l[c];if(d.validator(i))return d.classGroupId}},l_=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?r_+s:void 0})(),i_=e=>{const{theme:t,classGroups:n}=e;return u_(n,t)},u_=(e,t)=>{const n=$p();for(const s in e){const o=e[s];Ji(o,n,s,t)}return n},Ji=(e,t,n,s)=>{const o=e.length;for(let r=0;r<o;r++){const l=e[r];c_(l,t,n,s)}},c_=(e,t,n,s)=>{if(typeof e=="string"){d_(e,t,n);return}if(typeof e=="function"){f_(e,t,n,s);return}p_(e,t,n,s)},d_=(e,t,n)=>{const s=e===""?t:Mp(t,e);s.classGroupId=n},f_=(e,t,n,s)=>{if(m_(e)){Ji(e(s),t,n,s);return}t.validators===null&&(t.validators=[]),t.validators.push(o_(n,e))},p_=(e,t,n,s)=>{const o=Object.entries(e),r=o.length;for(let l=0;l<r;l++){const[i,u]=o[l];Ji(u,Mp(t,i),n,s)}},Mp=(e,t)=>{let n=e;const s=t.split(ia),o=s.length;for(let r=0;r<o;r++){const l=s[r];let i=n.nextPart.get(l);i||(i=$p(),n.nextPart.set(l,i)),n=i}return n},m_=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,h_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),s=Object.create(null);const o=(r,l)=>{n[r]=l,t++,t>e&&(t=0,s=n,n=Object.create(null))};return{get(r){let l=n[r];if(l!==void 0)return l;if((l=s[r])!==void 0)return o(r,l),l},set(r,l){r in n?n[r]=l:o(r,l)}}},ni="!",zc=":",v_=[],Gc=(e,t,n,s,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:s,isExternal:o}),g_=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=o=>{const r=[];let l=0,i=0,u=0,c;const d=o.length;for(let w=0;w<d;w++){const C=o[w];if(l===0&&i===0){if(C===zc){r.push(o.slice(u,w)),u=w+1;continue}if(C==="/"){c=w;continue}}C==="["?l++:C==="]"?l--:C==="("?i++:C===")"&&i--}const f=r.length===0?o:o.slice(u);let p=f,m=!1;f.endsWith(ni)?(p=f.slice(0,-1),m=!0):f.startsWith(ni)&&(p=f.slice(1),m=!0);const g=c&&c>u?c-u:void 0;return Gc(r,m,p,g)};if(t){const o=t+zc,r=s;s=l=>l.startsWith(o)?r(l.slice(o.length)):Gc(v_,!1,l,void 0,!0)}if(n){const o=s;s=r=>n({className:r,parseClassName:o})}return s},y_=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,s)=>{t.set(n,1e6+s)}),n=>{const s=[];let o=[];for(let r=0;r<n.length;r++){const l=n[r],i=l[0]==="[",u=t.has(l);i||u?(o.length>0&&(o.sort(),s.push(...o),o=[]),s.push(l)):o.push(l)}return o.length>0&&(o.sort(),s.push(...o)),s}},b_=e=>({cache:h_(e.cacheSize),parseClassName:g_(e),sortModifiers:y_(e),postfixLookupClassGroupIds:__(e),...a_(e)}),__=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},w_=/\s+/,x_=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:r,postfixLookupClassGroupIds:l}=t,i=[],u=e.trim().split(w_);let c="";for(let d=u.length-1;d>=0;d-=1){const f=u[d],{isExternal:p,modifiers:m,hasImportantModifier:g,baseClassName:w,maybePostfixModifierPosition:C}=n(f);if(p){c=f+(c.length>0?" "+c:c);continue}let h=!!C,b;if(h){const E=w.substring(0,C);b=s(E);const M=b&&l[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]:r(m).join(":"),k=g?$+ni:$,R=k+b;if(i.indexOf(R)>-1)continue;i.push(R);const I=o(b,h);for(let E=0;E<I.length;++E){const M=I[E];i.push(k+M)}c=f+(c.length>0?" "+c:c)}return c},k_=(...e)=>{let t=0,n,s,o="";for(;t<e.length;)(n=e[t++])&&(s=Rp(n))&&(o&&(o+=" "),o+=s);return o},Rp=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=Rp(e[s]))&&(n&&(n+=" "),n+=t);return n},S_=(e,...t)=>{let n,s,o,r;const l=u=>{const c=t.reduce((d,f)=>f(d),e());return n=b_(c),s=n.cache.get,o=n.cache.set,r=i,i(u)},i=u=>{const c=s(u);if(c)return c;const d=x_(u,n);return o(u,d),d};return r=l,(...u)=>r(k_(...u))},C_=[],kt=e=>{const t=n=>n[e]||C_;return t.isThemeGetter=!0,t},Lp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Dp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,A_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,E_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,O_=/\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$/,P_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,T_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ms=e=>A_.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),kn=e=>!!e&&Number.isInteger(Number(e)),yl=e=>e.endsWith("%")&&Le(e.slice(0,-1)),Vn=e=>E_.test(e),Np=()=>!0,I_=e=>O_.test(e)&&!P_.test(e),Qi=()=>!1,M_=e=>T_.test(e),R_=e=>$_.test(e),L_=e=>!be(e)&&!_e(e),D_=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)),N_=e=>Es(e,Bp,Qi),be=e=>Lp.test(e),Ds=e=>Es(e,Vp,I_),Yc=e=>Es(e,W_,Le),F_=e=>Es(e,Hp,Np),q_=e=>Es(e,Up,Qi),Xc=e=>Es(e,Fp,Qi),B_=e=>Es(e,qp,R_),Lr=e=>Es(e,jp,M_),_e=e=>Dp.test(e),Lo=e=>Xs(e,Vp),V_=e=>Xs(e,Up),Jc=e=>Xs(e,Fp),U_=e=>Xs(e,Bp),H_=e=>Xs(e,qp),Dr=e=>Xs(e,jp,!0),j_=e=>Xs(e,Hp,!0),Es=(e,t,n)=>{const s=Lp.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},Xs=(e,t,n=!1)=>{const s=Dp.exec(e);return s?s[1]?t(s[1]):n:!1},Fp=e=>e==="position"||e==="percentage",qp=e=>e==="image"||e==="url",Bp=e=>e==="length"||e==="size"||e==="bg-size",Vp=e=>e==="length",W_=e=>e==="number",Up=e=>e==="family-name",Hp=e=>e==="number"||e==="weight",jp=e=>e==="shadow",K_=()=>{const e=kt("color"),t=kt("font"),n=kt("text"),s=kt("font-weight"),o=kt("tracking"),r=kt("leading"),l=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"),g=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(),_e,be],I=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],M=()=>[_e,be,u],q=()=>[ms,"full","auto",...M()],Y=()=>[kn,"none","subgrid",_e,be],re=()=>["auto",{span:["full",kn,_e,be]},kn,_e,be],H=()=>[kn,"auto",_e,be],ee=()=>["auto","min","max","fr",_e,be],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],ue=()=>["auto",...M()],de=()=>[ms,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],fe=()=>[ms,"screen","full","dvw","lvw","svw","min","max","fit",...M()],se=()=>[ms,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],Q=()=>[e,_e,be],ce=()=>[...k(),Jc,Xc,{position:[_e,be]}],Be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],rt=()=>["auto","cover","contain",U_,N_,{size:[_e,be]}],at=()=>[yl,Lo,Ds],nt=()=>["","none","full",c,_e,be],Ye=()=>["",Le,Lo,Ds],qe=()=>["solid","dashed","dotted","double"],ot=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ie=()=>[Le,yl,Jc,Xc],ut=()=>["","none",g,_e,be],ve=()=>["none",Le,_e,be],_=()=>["none",Le,_e,be],T=()=>[Le,_e,be],W=()=>[ms,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Vn],breakpoint:[Vn],color:[Np],container:[Vn],"drop-shadow":[Vn],ease:["in","out","in-out"],font:[L_],"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",ms,be,_e,C]}],container:["container"],"container-type":[{"@container":["","normal","size",_e,be]}],"container-named":[D_],columns:[{columns:[Le,be,_e,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:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:q()}],"inset-x":[{"inset-x":q()}],"inset-y":[{"inset-y":q()}],start:[{"inset-s":q(),start:q()}],end:[{"inset-e":q(),end:q()}],"inset-bs":[{"inset-bs":q()}],"inset-be":[{"inset-be":q()}],top:[{top:q()}],right:[{right:q()}],bottom:[{bottom:q()}],left:[{left:q()}],visibility:["visible","invisible","collapse"],z:[{z:[kn,"auto",_e,be]}],basis:[{basis:[ms,"full","auto",i,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,ms,"auto","initial","none",be]}],grow:[{grow:["",Le,_e,be]}],shrink:[{shrink:["",Le,_e,be]}],order:[{order:[kn,"first","last","none",_e,be]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],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:ue()}],mx:[{mx:ue()}],my:[{my:ue()}],ms:[{ms:ue()}],me:[{me:ue()}],mbs:[{mbs:ue()}],mbe:[{mbe:ue()}],mt:[{mt:ue()}],mr:[{mr:ue()}],mb:[{mb:ue()}],ml:[{ml:ue()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:de()}],"inline-size":[{inline:["auto",...fe()]}],"min-inline-size":[{"min-inline":["auto",...fe()]}],"max-inline-size":[{"max-inline":["none",...fe()]}],"block-size":[{block:["auto",...se()]}],"min-block-size":[{"min-block":["auto",...se()]}],"max-block-size":[{"max-block":["none",...se()]}],w:[{w:[i,"screen",...de()]}],"min-w":[{"min-w":[i,"screen","none",...de()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[l]},...de()]}],h:[{h:["screen","lh",...de()]}],"min-h":[{"min-h":["screen","lh","none",...de()]}],"max-h":[{"max-h":["screen","lh",...de()]}],"font-size":[{text:["base",n,Lo,Ds]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,j_,F_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yl,be]}],"font-family":[{font:[V_,q_,t]}],"font-features":[{"font-features":[be]}],"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:[o,_e,be]}],"line-clamp":[{"line-clamp":[Le,"none",_e,Yc]}],leading:[{leading:[r,...M()]}],"list-image":[{"list-image":["none",_e,be]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_e,be]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...qe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",_e,Ds]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[Le,"auto",_e,be]}],"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:[kn,_e,be]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_e,be]}],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",_e,be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ce()}],"bg-repeat":[{bg:Be()}],"bg-size":[{bg:rt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},kn,_e,be],radial:["",_e,be],conic:[kn,_e,be]},H_,B_]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:at()}],"gradient-via-pos":[{via:at()}],"gradient-to-pos":[{to:at()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:nt()}],"rounded-s":[{"rounded-s":nt()}],"rounded-e":[{"rounded-e":nt()}],"rounded-t":[{"rounded-t":nt()}],"rounded-r":[{"rounded-r":nt()}],"rounded-b":[{"rounded-b":nt()}],"rounded-l":[{"rounded-l":nt()}],"rounded-ss":[{"rounded-ss":nt()}],"rounded-se":[{"rounded-se":nt()}],"rounded-ee":[{"rounded-ee":nt()}],"rounded-es":[{"rounded-es":nt()}],"rounded-tl":[{"rounded-tl":nt()}],"rounded-tr":[{"rounded-tr":nt()}],"rounded-br":[{"rounded-br":nt()}],"rounded-bl":[{"rounded-bl":nt()}],"border-w":[{border:Ye()}],"border-w-x":[{"border-x":Ye()}],"border-w-y":[{"border-y":Ye()}],"border-w-s":[{"border-s":Ye()}],"border-w-e":[{"border-e":Ye()}],"border-w-bs":[{"border-bs":Ye()}],"border-w-be":[{"border-be":Ye()}],"border-w-t":[{"border-t":Ye()}],"border-w-r":[{"border-r":Ye()}],"border-w-b":[{"border-b":Ye()}],"border-w-l":[{"border-l":Ye()}],"divide-x":[{"divide-x":Ye()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ye()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...qe(),"hidden","none"]}],"divide-style":[{divide:[...qe(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-bs":[{"border-bs":Q()}],"border-color-be":[{"border-be":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...qe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,_e,be]}],"outline-w":[{outline:["",Le,Lo,Ds]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",d,Dr,Lr]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",f,Dr,Lr]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:Ye()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[Le,Ds]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":Ye()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",p,Dr,Lr]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[Le,_e,be]}],"mix-blend":[{"mix-blend":[...ot(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ot()}],"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":Ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ie()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":Ie()}],"mask-image-t-to-pos":[{"mask-t-to":Ie()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":Ie()}],"mask-image-r-to-pos":[{"mask-r-to":Ie()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":Ie()}],"mask-image-b-to-pos":[{"mask-b-to":Ie()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":Ie()}],"mask-image-l-to-pos":[{"mask-l-to":Ie()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":Ie()}],"mask-image-x-to-pos":[{"mask-x-to":Ie()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":Ie()}],"mask-image-y-to-pos":[{"mask-y-to":Ie()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[_e,be]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ie()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"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":Ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ie()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ce()}],"mask-repeat":[{mask:Be()}],"mask-size":[{mask:rt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_e,be]}],filter:[{filter:["","none",_e,be]}],blur:[{blur:ut()}],brightness:[{brightness:[Le,_e,be]}],contrast:[{contrast:[Le,_e,be]}],"drop-shadow":[{"drop-shadow":["","none",m,Dr,Lr]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",Le,_e,be]}],"hue-rotate":[{"hue-rotate":[Le,_e,be]}],invert:[{invert:["",Le,_e,be]}],saturate:[{saturate:[Le,_e,be]}],sepia:[{sepia:["",Le,_e,be]}],"backdrop-filter":[{"backdrop-filter":["","none",_e,be]}],"backdrop-blur":[{"backdrop-blur":ut()}],"backdrop-brightness":[{"backdrop-brightness":[Le,_e,be]}],"backdrop-contrast":[{"backdrop-contrast":[Le,_e,be]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,_e,be]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,_e,be]}],"backdrop-invert":[{"backdrop-invert":["",Le,_e,be]}],"backdrop-opacity":[{"backdrop-opacity":[Le,_e,be]}],"backdrop-saturate":[{"backdrop-saturate":[Le,_e,be]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,_e,be]}],"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",_e,be]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",_e,be]}],ease:[{ease:["linear","initial",h,_e,be]}],delay:[{delay:[Le,_e,be]}],animate:[{animate:["none",b,_e,be]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,_e,be]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:ve()}],"rotate-x":[{"rotate-x":ve()}],"rotate-y":[{"rotate-y":ve()}],"rotate-z":[{"rotate-z":ve()}],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:[_e,be,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:W()}],"translate-x":[{"translate-x":W()}],"translate-y":[{"translate-y":W()}],"translate-z":[{"translate-z":W()}],"translate-none":["translate-none"],zoom:[{zoom:[kn,_e,be]}],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"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",_e,be]}],"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":Q()}],"scrollbar-track-color":[{"scrollbar-track":Q()}],"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",_e,be]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[Le,Lo,Ds,Yc]}],stroke:[{stroke:["none",...Q()]}],"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"]}},z_=S_(K_);function Ge(...e){return z_(Pp(e))}const G_=["type","disabled"],Pe=X({__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(),G("button",{type:t.type??"button",disabled:t.disabled,class:xe(a(Ge)(a(Y_)({variant:t.variant,size:t.size}),t.class))},[ie(n.$slots,"default")],10,G_))}}),Y_=Tp("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"}}),X_=["type","value","placeholder","autocomplete","disabled"],bt=X({__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(o,r)=>(x(),G("input",{type:n.type??"text",value:n.modelValue,placeholder:n.placeholder,autocomplete:n.autocomplete,disabled:n.disabled,onInput:r[0]||(r[0]=l=>s("update:modelValue",l.target.value)),class:xe(a(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,X_))}}),mn=X({__name:"Card",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),G("div",{class:xe(a(Ge)("rounded-xl border bg-card text-card-foreground shadow",t.class))},[ie(n.$slots,"default")],2))}}),In=X({__name:"CardHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),G("div",{class:xe(a(Ge)("flex flex-col space-y-1.5 p-6",t.class))},[ie(n.$slots,"default")],2))}}),Mn=X({__name:"CardTitle",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),G("h3",{class:xe(a(Ge)("font-semibold leading-none tracking-tight",t.class))},[ie(n.$slots,"default")],2))}}),bs=X({__name:"CardDescription",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),G("p",{class:xe(a(Ge)("text-sm text-muted-foreground",t.class))},[ie(n.$slots,"default")],2))}}),hn=X({__name:"CardContent",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),G("div",{class:xe(a(Ge)("p-6 pt-0",t.class))},[ie(n.$slots,"default")],2))}}),gt=X({__name:"Badge",props:{variant:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),G("span",{class:xe(a(Ge)(a(J_)({variant:t.variant}),t.class))},[ie(n.$slots,"default")],2))}}),J_=Tp("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 Qc(e){return typeof e=="string"?`'${e}'`:new Q_().serialize(e)}const Q_=function(){var t;class e{constructor(){Au(this,t,new Map)}compare(s,o){const r=typeof s,l=typeof o;return r==="string"&&l==="string"?s.localeCompare(o):r==="number"&&l==="number"?s-o:String.prototype.localeCompare.call(this.serialize(s,!0),this.serialize(o,!0))}serialize(s,o){if(s===null)return"null";switch(typeof s){case"string":return o?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 o=Object.prototype.toString.call(s);if(o!=="[object Object]")return this.serializeBuiltInType(o.length<10?`unknown:${o}`:o.slice(8,-1),s);const r=s.constructor,l=r===Object||r===void 0?"":r.name;if(l!==""&&globalThis[l]===r)return this.serializeBuiltInType(l,s);if(typeof s.toJSON=="function"){const i=s.toJSON();return l+(i!==null&&typeof i=="object"?this.$object(i):`(${this.serialize(i)})`)}return this.serializeObjectEntries(l,Object.entries(s))}serializeBuiltInType(s,o){const r=this["$"+s];if(r)return r.call(this,o);if(typeof(o==null?void 0:o.entries)=="function")return this.serializeObjectEntries(s,o.entries());throw new Error(`Cannot serialize ${s}`)}serializeObjectEntries(s,o){const r=Array.from(o).sort((i,u)=>this.compare(i[0],u[0]));let l=`${s}{`;for(let i=0;i<r.length;i++){const[u,c]=r[i];l+=`${this.serialize(u,!0)}:${this.serialize(c)}`,i<r.length-1&&(l+=",")}return l+"}"}$object(s){let o=Po(this,t).get(s);return o===void 0&&(Po(this,t).set(s,`#${Po(this,t).size}`),o=this.serializeObject(s),Po(this,t).set(s,o)),o}$function(s){const o=Function.prototype.toString.call(s);return o.slice(-15)==="[native code] }"?`${s.name||""}()[native]`:`${s.name}(${s.length})${o.replace(/\s*\n\s*/g,"")}`}$Array(s){let o="[";for(let r=0;r<s.length;r++)o+=this.serialize(s[r]),r<s.length-1&&(o+=",");return o+"]"}$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((o,r)=>this.compare(o,r)))}`}$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 dr(e,t){return e===t||Qc(e)===Qc(t)}function Zc(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(n,Math.max(t,e))}function $t(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,s=Symbol(n);return[l=>{const i=Ws(s,l);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}\``}`)},l=>(Ii(s,l),l)]}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 Zi(e,t,n){const s=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),s.dispatchEvent(o)}function ko(e){return e==null}function ed(e,t){return ko(e)?!1:Array.isArray(e)?e.some(n=>dr(n,t)):dr(e,t)}function eu(e,t){return xa()?(Ei(e,t),!0):!1}function Z_(e){let t=!1,n;const s=Ai(!0);return(...o)=>(t||(n=s.run(()=>e(...o)),t=!0),n)}const Rn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const e1=e=>typeof e<"u",t1=Object.prototype.toString,n1=e=>t1.call(e)==="[object Object]",td=s1();function s1(){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 bl(e){return Array.isArray(e)?e:[e]}function o1(e){return Yt()}function Wp(e){if(!Rn)return e;let t=0,n,s;const o=()=>{t-=1,s&&t<=0&&(s.stop(),n=void 0,s=void 0)};return(...r)=>(t+=1,s||(s=Ai(!0),n=s.run(()=>e(...r))),eu(o),n)}function r1(e){return Ks(pt(e)?new Proxy({},{get(t,n,s){return a(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 a1(e){return r1(te(e))}function l1(e,...t){const n=t.flat(),s=n[0];return a1(()=>Object.fromEntries(typeof s=="function"?Object.entries(Gt(e)).filter(([o,r])=>!s(Dt(r),o)):Object.entries(Gt(e)).filter(o=>!n.includes(o[0]))))}function i1(e,t=1e4){return ef((n,s)=>{let o=Dt(e),r;const l=()=>setTimeout(()=>{o=Dt(e),s()},Dt(t));return eu(()=>{clearTimeout(r)}),{get(){return n(),o},set(i){o=i,s(),clearTimeout(r),r=l()}}})}function u1(e,t){o1()&&$a(e,t)}function c1(e,t,n){return De(e,t,{...n,immediate:!0})}const Da=Rn?window:void 0;function Ln(e){var t;const n=Dt(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function ua(...e){const t=(s,o,r,l)=>(s.addEventListener(o,r,l),()=>s.removeEventListener(o,r,l)),n=te(()=>{const s=bl(Dt(e[0])).filter(o=>o!=null);return s.every(o=>typeof o!="string")?s:void 0});return c1(()=>{var s,o;return[(s=(o=n.value)===null||o===void 0?void 0:o.map(r=>Ln(r)))!==null&&s!==void 0?s:[Da].filter(r=>r!=null),bl(Dt(n.value?e[1]:e[0])),bl(a(n.value?e[2]:e[1])),Dt(n.value?e[3]:e[2])]},([s,o,r,l],i,u)=>{if(!(s!=null&&s.length)||!(o!=null&&o.length)||!(r!=null&&r.length))return;const c=n1(l)?{...l}:l,d=s.flatMap(f=>o.flatMap(p=>r.map(m=>t(f,p,m,c))));u(()=>{d.forEach(f=>f())})},{flush:"post"})}function Kp(){const e=Oa(!1),t=Yt();return t&&mt(()=>{e.value=!0},t),e}function d1(e){const t=Kp();return te(()=>(t.value,!!e()))}function f1(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function p1(...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:o=Da,eventName:r="keydown",passive:l=!1,dedupe:i=!1}=s,u=f1(t);return ua(o,r,d=>{d.repeat&&Dt(i)||u(d)&&n(d)},l)}function m1(e){return JSON.parse(JSON.stringify(e))}function h1(e,t,n={}){const{window:s=Da,...o}=n;let r;const l=d1(()=>s&&"ResizeObserver"in s),i=()=>{r&&(r.disconnect(),r=void 0)},u=De(te(()=>{const d=Dt(e);return Array.isArray(d)?d.map(f=>Ln(f)):[Ln(d)]}),d=>{if(i(),l.value&&s){r=new ResizeObserver(t);for(const f of d)f&&r.observe(f,o)}},{immediate:!0,flush:"post"}),c=()=>{i(),u()};return eu(c),{isSupported:l,stop:c}}function as(e,t,n,s={}){var o,r;const{clone:l=!1,passive:i=!1,eventName:u,deep:c=!1,defaultValue:d,shouldEmit:f}=s,p=Yt(),m=n||(p==null?void 0:p.emit)||(p==null||(o=p.$emit)===null||o===void 0?void 0:o.bind(p))||(p==null||(r=p.proxy)===null||r===void 0||(r=r.$emit)===null||r===void 0?void 0:r.bind(p==null?void 0:p.proxy));let g=u;t||(t="modelValue"),g=g||`update:${t.toString()}`;const w=b=>l?typeof l=="function"?l(b):m1(b):b,C=()=>e1(e[t])?w(e[t]):d,h=b=>{f?f(b)&&m(g,b):m(g,b)};if(i){const b=N(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 tu(e){return e?e.flatMap(t=>t.type===Ae?tu(t.children):[t]):[]}const v1=["INPUT","TEXTAREA"];function nd(e,t,n,s={}){if(!t||s.enableIgnoredElement&&v1.includes(t.nodeName))return null;const{arrowKeyOptions:o="both",attributeName:r="[data-reka-collection-item]",itemsArray:l=[],loop:i=!0,dir:u="ltr",preventScroll:c=!0,focus:d=!1}=s,[f,p,m,g,w,C]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],h=m||g,b=f||p;if(!w&&!C&&(!h&&!b||o==="vertical"&&b||o==="horizontal"&&h))return null;const $=n?Array.from(n.querySelectorAll(r)):l;if(!$.length)return null;c&&e.preventDefault();let k=null;return b||h?k=zp($,t,{goForward:h?g:u==="ltr"?f:p,loop:i}):w?k=$.at(0)||null:C&&(k=$.at(-1)||null),d&&(k==null||k.focus()),k}function zp(e,t,n,s=e.includes(t)?e.length:e.length+1){if(--s===0)return null;const o=e.indexOf(t);let r;if(o===-1?r=n.goForward?0:e.length-1:r=n.goForward?o+1:o-1,!n.loop&&(r<0||r>=e.length))return null;const l=(r+e.length)%e.length,i=e[l];return i?i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false"?zp(e,i,n,s):i:null}const[kr]=$t("ConfigProvider");function _l(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 si(e,t,n=".",s){if(!_l(t))return si(e,{},n,s);const o={...t};for(const r of Object.keys(e)){if(r==="__proto__"||r==="constructor")continue;const l=e[r];l!=null&&(s&&s(o,r,l,n)||(Array.isArray(l)&&Array.isArray(o[r])?o[r]=[...l,...o[r]]:_l(l)&&_l(o[r])?o[r]=si(l,o[r],(n?`${n}.`:"")+r.toString(),s):o[r]=l))}return o}function g1(e){return(...t)=>t.reduce((n,s)=>si(n,s,"",e),{})}const y1=g1(),b1=Wp(()=>{const e=N(new Map),t=N(),n=te(()=>{for(const l of e.value.values())if(l)return!0;return!1}),s=kr({scrollBody:N(!0)});let o=null;const r=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",td&&(o==null||o()),t.value=void 0};return De(n,(l,i)=>{var f;if(!Rn)return;if(!l){i&&r();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"?y1({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"),td&&(o=ua(document,"touchmove",p=>_1(p),{passive:!1})),yt(()=>{n.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function Na(e){const t=Math.random().toString(36).substring(2,7),n=b1();n.value.set(t,e??!1);const s=te({get:()=>n.value.get(t)??!1,set:o=>n.value.set(t,o)});return u1(()=>{n.value.delete(t)}),s}function Gp(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:Gp(n)}}function _1(e){const t=e||window.event,n=t.target;return n instanceof Element&&Gp(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function So(e){const t=kr({dir:N("ltr")});return te(()=>{var n;return(e==null?void 0:e.value)||((n=t.dir)==null?void 0:n.value)||"ltr"})}function Sr(e){const t=Yt(),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(o=>{s[Ur(Et(o))]=(...r)=>e(o,...r)}),s}let wl=0;function nu(){rs(e=>{if(!Rn)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??sd()),document.body.insertAdjacentElement("beforeend",t[1]??sd()),wl++,e(()=>{wl===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),wl--})})}function sd(){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 Yp(e){return te(()=>{var t;return Dt(e)?!!((t=Ln(e))!=null&&t.closest("form")):!0})}function Ne(){const e=Yt(),t=N(),n=te(()=>s());Ri(()=>{n.value!==s()&&Mh(t)});function s(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:Ln(t)}const o=Object.assign({},e.exposed),r={};for(const i in e.props)Object.defineProperty(r,i,{enumerable:!0,configurable:!0,get:()=>e.props[i]});if(Object.keys(o).length>0)for(const i in o)Object.defineProperty(r,i,{enumerable:!0,configurable:!0,get:()=>o[i]});Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=r;function l(i){if(t.value=i,!!i&&(Object.defineProperty(r,"$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({},r);for(const d in u)Object.defineProperty(c,d,{enumerable:!0,configurable:!0,get:()=>u[d]});e.exposed=c}}return{forwardRef:l,currentRef:t,currentElement:n}}function Fa(e){const t=Yt(),n=Object.keys((t==null?void 0:t.type.props)??{}).reduce((o,r)=>{const l=(t==null?void 0:t.type.props[r]).default;return l!==void 0&&(o[r]=l),o},{}),s=Fh(e);return te(()=>{const o={},r=(t==null?void 0:t.vnode.props)??{};return Object.keys(r).forEach(l=>{o[Et(l)]=r[l]}),Object.keys({...n,...o}).reduce((l,i)=>(s.value[i]!==void 0&&(l[i]=s.value[i]),l),{})})}function It(e,t){const n=Fa(e),s=t?Sr(t):{};return te(()=>({...n.value,...s}))}function w1(){var t,n;const e=(n=(t=Yt())==null?void 0:t.vnode)==null?void 0:n.scopeId;return e?{[e]:""}:{}}var x1=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},so=new WeakMap,Nr=new WeakMap,Fr={},xl=0,Xp=function(e){return e&&(e.host||Xp(e.parentNode))},k1=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=Xp(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})},S1=function(e,t,n,s){var o=k1(t,Array.isArray(e)?e:[e]);Fr[n]||(Fr[n]=new WeakMap);var r=Fr[n],l=[],i=new Set,u=new Set(o),c=function(f){!f||i.has(f)||(i.add(f),c(f.parentNode))};o.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),g=m!==null&&m!=="false",w=(so.get(p)||0)+1,C=(r.get(p)||0)+1;so.set(p,w),r.set(p,C),l.push(p),w===1&&g&&Nr.set(p,!0),C===1&&p.setAttribute(n,"true"),g||p.setAttribute(s,"true")}catch(h){console.error("aria-hidden: cannot operate on ",p,h)}})};return d(t),i.clear(),xl++,function(){l.forEach(function(f){var p=so.get(f)-1,m=r.get(f)-1;so.set(f,p),r.set(f,m),p||(Nr.has(f)||f.removeAttribute(s),Nr.delete(f)),m||f.removeAttribute(n)}),xl--,xl||(so=new WeakMap,so=new WeakMap,Nr=new WeakMap,Fr={})}},C1=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),o=x1(e);return o?(s.push.apply(s,Array.from(o.querySelectorAll("[aria-live], script"))),S1(s,o,n,"aria-hidden")):function(){return null}};function qa(e){let t;De(()=>Ln(e),n=>{let s=!1;try{s=!!(n!=null&&n.closest("[popover]:not(:popover-open)"))}catch{}n&&!s?t=C1(n):t&&t()}),bn(()=>{t&&t()})}function Dn(e,t="reka"){let n;const s=kr({useId:void 0});return s.useId?n=s.useId():n=al==null?void 0:al(),t?`${t}-${n}`:n}function A1(e){const t=N(),n=te(()=>{var r;return((r=t.value)==null?void 0:r.width)??0}),s=te(()=>{var r;return((r=t.value)==null?void 0:r.height)??0});let o;return mt(()=>{const r=Ln(e);r?(t.value={width:r.offsetWidth,height:r.offsetHeight},o=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const i=l[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=r.offsetWidth,c=r.offsetHeight;t.value={width:u,height:c}}),o.observe(r,{box:"border-box"})):t.value=void 0}),bn(()=>{o==null||o.disconnect(),o=void 0}),{width:n,height:s}}function E1(e,t){const n=N(e);function s(r){return t[n.value][r]??n.value}return{state:n,dispatch:r=>{n.value=s(r)}}}function su(e){const t=i1("",1e3);return{search:t,handleTypeaheadSearch:(o,r)=>{t.value=t.value+o;{const l=Ct(),i=r.map(p=>{var m,g;return{...p,textValue:((m=p.value)==null?void 0:m.textValue)??((g=p.ref.textContent)==null?void 0:g.trim())??""}}),u=i.find(p=>p.ref===l),c=i.map(p=>p.textValue),d=P1(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 O1(e,t){return e.map((n,s)=>e[(t+s)%e.length])}function P1(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,r=n?e.indexOf(n):-1;let l=O1(e,Math.max(r,0));o.length===1&&(l=l.filter(c=>c!==n));const u=l.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function T1(e,t){var C;const n=N({}),s=N("none"),o=N(e),r=e.value?"mounted":"unmounted";let l;const i=((C=t.value)==null?void 0:C.ownerDocument.defaultView)??Da,{state:u,dispatch:c}=E1(r,{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=qr(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=qr(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"),!o.value)){const R=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",l=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=qr(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"),l!==void 0&&(i==null||i.clearTimeout(l)),b==null||b.removeEventListener("animationstart",p),b==null||b.removeEventListener("animationcancel",f),b==null||b.removeEventListener("animationend",f))},{immediate:!0}),g=De(u,()=>{const h=qr(t.value);s.value=u.value==="mounted"?h:"none"});return bn(()=>{m(),g(),t.value&&(t.value.removeEventListener("animationstart",p),t.value.removeEventListener("animationcancel",f),t.value.removeEventListener("animationend",f)),l!==void 0&&(i==null||i.clearTimeout(l))}),{isPresent:te(()=>["mounted","unmountSuspended"].includes(u.value))}}function qr(e){return e&&getComputedStyle(e).animationName||"none"}var Js=X({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var c;const{present:s,forceMount:o}=Gt(e),r=N(),{isPresent:l}=T1(s,r);n({present:l});let i=t.default({present:l.value});i=tu(i||[]);const u=Yt();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()=>o.value||s.value||l.value?en(t.default({present:l.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")?r.value=f.firstElementChild:r.value=f),f}}):null}});const oi=X({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var u;if(!n.default)return null;const s=tu(n.default()),o=s.findIndex(c=>c.type!==yn);if(o===-1)return s;const r=s[o];(u=r.props)==null||delete u.ref;const l=r.props?Oe(t,r.props):t,i=ws({...r,props:{}},l);return s.length===1?i:(s[o]=i,s)}}}),$1=["area","img","input"],Ue=X({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"&&$1.includes(s)?()=>en(s,t):s!=="template"?()=>en(e.as,t,{default:n.default}):()=>en(oi,t,{default:n.default})}});function ri(){const e=N(),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[cs,I1]=$t("DialogRoot");var M1=X({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,o=as(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),r=N(),l=N(),{modal:i,unmountOnHide:u}=Gt(n);return I1({open:o,modal:i,unmountOnHide:u,openModal:()=>{o.value=!0},onOpenChange:c=>{o.value=c},onOpenToggle:()=>{o.value=!o.value},contentId:"",titleId:"",descriptionId:"",triggerElement:r,contentElement:l}),(c,d)=>ie(c.$slots,"default",{open:a(o),close:()=>o.value=!1})}}),R1=M1,L1=X({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;Ne();const n=cs();return(s,o)=>(x(),F(a(Ue),Oe(t,{type:s.as==="button"?"button":void 0,onClick:o[0]||(o[0]=r=>a(n).onOpenChange(!1))}),{default:y(()=>[ie(s.$slots,"default")]),_:3},16,["type"]))}}),D1=L1;const N1="dismissableLayer.pointerDownOutside",F1="dismissableLayer.focusOutside";function Jp(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]"),o=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(s===n||o.indexOf(s)<o.indexOf(n)))}function q1(e,t,n=!0){var l;const s=((l=t==null?void 0:t.value)==null?void 0:l.ownerDocument)??(globalThis==null?void 0:globalThis.document),o=N(!1),r=N(()=>{});return rs(i=>{if(!Rn||!Dt(n))return;const u=async d=>{const f=d.target;if(!(!(t!=null&&t.value)||!f)){if(Jp(t.value,f)){o.value=!1;return}if(d.target&&!o.value){let g=function(){Zi(N1,e,m)};var p=g;const m={originalEvent:d};d.pointerType==="touch"?(s.removeEventListener("click",r.value),r.value=g,s.addEventListener("click",r.value,{once:!0})):g()}else s.removeEventListener("click",r.value);o.value=!1}},c=window.setTimeout(()=>{s.addEventListener("pointerdown",u)},0);i(()=>{window.clearTimeout(c),s.removeEventListener("pointerdown",u),s.removeEventListener("click",r.value)})}),{onPointerDownCapture:()=>{Dt(n)&&(o.value=!0)}}}function B1(e,t,n=!0){var r;const s=((r=t==null?void 0:t.value)==null?void 0:r.ownerDocument)??(globalThis==null?void 0:globalThis.document),o=N(!1);return rs(l=>{if(!Rn||!Dt(n))return;const i=async u=>{if(!(t!=null&&t.value))return;await yt(),await yt();const c=u.target;!t.value||!c||Jp(t.value,c)||u.target&&!o.value&&Zi(F1,e,{originalEvent:u})};s.addEventListener("focusin",i),l(()=>s.removeEventListener("focusin",i))}),{onFocusCapture:()=>{Dt(n)&&(o.value=!0)},onBlurCapture:()=>{Dt(n)&&(o.value=!1)}}}const Jt=Ks({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var V1=X({__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:o,currentElement:r}=Ne(),l=te(()=>{var m;return((m=r.value)==null?void 0:m.ownerDocument)??globalThis.document}),i=te(()=>Jt.layersRoot),u=te(()=>r.value?Array.from(i.value).indexOf(r.value):-1),c=te(()=>Jt.layersWithOutsidePointerEventsDisabled.size>0),d=te(()=>{const m=Array.from(i.value),[g]=[...Jt.layersWithOutsidePointerEventsDisabled].slice(-1),w=m.indexOf(g);return u.value>=w}),f=q1(async m=>{const g=[...Jt.branches].some(w=>w==null?void 0:w.contains(m.target));!n.present||!d.value||g||(s("pointerDownOutside",m),s("interactOutside",m),await yt(),m.defaultPrevented||s("dismiss"))},r),p=B1(m=>{const g=[...Jt.branches].some(w=>w==null?void 0:w.contains(m.target));!n.present||g||(s("focusOutside",m),s("interactOutside",m),m.defaultPrevented||s("dismiss"))},r);return p1("Escape",m=>{!n.present||!(u.value===i.value.size-1)||(s("escapeKeyDown",m),m.defaultPrevented||s("dismiss"))}),De([r,()=>n.disableOutsidePointerEvents,()=>n.present],([m,g,w],C,h)=>{!m||!w||g&&(Jt.layersWithOutsidePointerEventsDisabled.size===0&&(Jt.originalBodyPointerEvents=l.value.body.style.pointerEvents,l.value.body.style.pointerEvents="none"),Jt.layersWithOutsidePointerEventsDisabled.add(m),h(()=>{Jt.layersWithOutsidePointerEventsDisabled.delete(m),Jt.layersWithOutsidePointerEventsDisabled.size===0&&!ko(Jt.originalBodyPointerEvents)&&(l.value.body.style.pointerEvents=Jt.originalBodyPointerEvents)}))},{immediate:!0}),De([r,()=>n.present],([m,g],w,C)=>{!m||!g||(i.value.add(m),C(()=>{i.value.delete(m)}))},{immediate:!0}),rs(m=>{m(()=>{r.value&&(i.value.delete(r.value),Jt.layersWithOutsidePointerEventsDisabled.delete(r.value))})}),(m,g)=>(x(),F(a(Ue),{ref:a(o),"as-child":m.asChild,as:m.as,"data-dismissable-layer":"",style:vn({pointerEvents:c.value?d.value?"auto":"none":void 0}),onFocusCapture:a(p).onFocusCapture,onBlurCapture:a(p).onBlurCapture,onPointerdownCapture:a(f).onPointerDownCapture},{default:y(()=>[ie(m.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Ba=V1;const U1=Z_(()=>N([]));function H1(){const e=U1();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=od(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=od(e.value,t),(n=e.value[0])==null||n.resume()}}}function od(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}const kl="focusScope.autoFocusOnMount",Sl="focusScope.autoFocusOnUnmount",rd={bubbles:!1,cancelable:!0};function j1(e,{select:t=!1}={}){const n=Ct();for(const s of e)if(gs(s,{select:t}),Ct()!==n)return!0}function W1(e){const t=Qp(e),n=ad(t,e),s=ad(t.reverse(),e);return[n,s]}function Qp(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const o=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||o?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ad(e,t){for(const n of e)if(!K1(n,{upTo:t}))return n}function K1(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 z1(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&&z1(e)&&t&&e.select()}}var G1=X({__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:o,currentElement:r}=Ne(),l=N(null),i=H1(),u=Ks({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});rs(f=>{if(!Rn)return;const p=r.value;if(!n.trapped)return;function m(h){if(u.paused||!p)return;const b=h.target;p.contains(b)?l.value=b:gs(l.value,{select:!0})}function g(h){if(u.paused||!p)return;const b=h.relatedTarget;b!==null&&(p.contains(b)||gs(l.value,{select:!0}))}function w(h){const b=l.value;if(b===null||!h.some(R=>R.removedNodes.length>0))return;p.contains(b)||gs(p)}document.addEventListener("focusin",m),document.addEventListener("focusout",g);const C=new MutationObserver(w);p&&C.observe(p,{childList:!0,subtree:!0}),f(()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),C.disconnect()})});function c(f,p){const m=new CustomEvent(kl,rd),g=w=>s("mountAutoFocus",w);f.addEventListener(kl,g),f.dispatchEvent(m),f.removeEventListener(kl,g),m.defaultPrevented||(j1(Qp(f),{select:!0}),Ct()===p&&gs(f))}rs(async f=>{const p=r.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(Sl,rd),C=h=>{s("unmountAutoFocus",h)};p.addEventListener(Sl,C),p.dispatchEvent(w),p.setAttribute("data-focus-scope-unmounting",""),setTimeout(()=>{w.defaultPrevented||gs(m??document.body,{select:!0}),p.removeEventListener(Sl,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=r.value;if(!m)return;const g=Ct();m.contains(g)||c(m,g)});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 g=f.currentTarget,[w,C]=W1(g);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===g&&f.preventDefault()}}return(f,p)=>(x(),F(a(Ue),{ref_key:"currentRef",ref:o,tabindex:"-1","as-child":f.asChild,as:f.as,onKeydown:d},{default:y(()=>[ie(f.$slots,"default")]),_:3},8,["as-child","as"]))}}),Va=G1;const Y1="menu.itemSelect",ai=["Enter"," "],X1=["ArrowDown","PageUp","Home"],Zp=["ArrowUp","PageDown","End"],J1=[...X1,...Zp];[...ai],[...ai];function em(e){return e?"open":"closed"}function li(e){const t=Ct();for(const n of e)if(n===t||(n.focus(),Ct()!==t))return}function Q1(e,t){const{x:n,y:s}=e;let o=!1;for(let r=0,l=t.length-1;r<t.length;l=r++){const i=t[r].x,u=t[r].y,c=t[l].x,d=t[l].y;u>s!=d>s&&n<(c-i)*(s-u)/(d-u)+i&&(o=!o)}return o}function Z1(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Q1(n,t)}function ca(e){return e.pointerType==="mouse"}var e0=X({__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,o=cs(),{forwardRef:r,currentElement:l}=Ne();return o.titleId||(o.titleId=Dn(void 0,"reka-dialog-title")),o.descriptionId||(o.descriptionId=Dn(void 0,"reka-dialog-description")),mt(()=>{o.contentElement=l,Ct()!==document.body&&(o.triggerElement.value=Ct())}),(i,u)=>(x(),F(a(Va),{"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(()=>[v(a(Ba),Oe({id:a(o).contentId,ref:a(r),as:i.as,"as-child":i.asChild,present:n.present,"disable-outside-pointer-events":i.disableOutsidePointerEvents,role:"dialog","aria-describedby":a(o).descriptionId,"aria-labelledby":a(o).titleId,"data-state":a(em)(a(o).open.value)},i.$attrs,{onDismiss:u[0]||(u[0]=c=>a(o).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"]))}}),tm=e0,t0=X({__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,o=cs(),r=Sr(s),{forwardRef:l,currentElement:i}=Ne(),u=te(()=>n.present?i.value:void 0);qa(u);const c=te(()=>{const{present:d,...f}=n;return f});return De(()=>n.present,(d,f)=>{var p;!d&&f&&((p=o.triggerElement.value)==null||p.focus())}),(d,f)=>(x(),F(tm,Oe({...c.value,...a(r)},{ref:a(l),present:d.present,"trap-focus":a(o).open.value,"disable-outside-pointer-events":n.disableOutsidePointerEvents,onCloseAutoFocus:f[0]||(f[0]=p=>{var m;p.defaultPrevented||(p.preventDefault(),(m=a(o).triggerElement.value)==null||m.focus())}),onPointerDownOutside:f[1]||(f[1]=p=>{const m=p.detail.originalEvent,g=m.button===0&&m.ctrlKey===!0;(m.button===2||g)&&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"]))}}),n0=t0,s0=X({__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,o=Sr(t);Ne();const r=cs(),l=N(!1),i=N(!1),u=te(()=>{const{present:c,...d}=n;return d});return De(()=>n.present,(c,d)=>{var f;!c&&d&&(l.value||(f=r.triggerElement.value)==null||f.focus(),l.value=!1,i.value=!1)}),(c,d)=>(x(),F(tm,Oe({...u.value,...a(o)},{present:c.present,"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:d[0]||(d[0]=f=>{var p;f.defaultPrevented||(l.value||(p=a(r).triggerElement.value)==null||p.focus(),f.preventDefault()),l.value=!1,i.value=!1}),onInteractOutside:d[1]||(d[1]=f=>{var g;f.defaultPrevented||(l.value=!0,f.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const p=f.target;((g=a(r).triggerElement.value)==null?void 0:g.contains(p))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&i.value&&f.preventDefault()})}),{default:y(()=>[ie(c.$slots,"default")]),_:3},16,["present"]))}}),o0=s0,r0=X({__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,o=cs(),r=Sr(s),{forwardRef:l}=Ne();return(i,u)=>(x(),F(a(Js),{present:i.forceMount||a(o).open.value,"force-mount":i.forceMount||!a(o).unmountOnHide.value},{default:y(({present:c})=>[a(o).modal.value?zs((x(),F(n0,Oe({key:0,ref:a(l),present:a(o).unmountOnHide.value||c},{...n,...a(r),...i.$attrs}),{default:y(()=>[ie(i.$slots,"default")]),_:2},1040,["present"])),[[jl,a(o).unmountOnHide.value||c]]):zs((x(),F(o0,Oe({key:1,ref:a(l),present:a(o).unmountOnHide.value||c},{...n,...a(r),...i.$attrs}),{default:y(()=>[ie(i.$slots,"default")]),_:2},1040,["present"])),[[jl,a(o).unmountOnHide.value||c]])]),_:3},8,["present","force-mount"]))}}),a0=r0,l0=X({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;Ne();const n=cs();return(s,o)=>(x(),F(a(Ue),Oe(t,{id:a(n).descriptionId}),{default:y(()=>[ie(s.$slots,"default")]),_:3},16,["id"]))}}),i0=l0,u0=X({__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=cs(),s=Na(t.present);return De(()=>t.present,o=>s.value=o),Ne(),(o,r)=>(x(),F(a(Ue),{as:o.as,"as-child":o.asChild,"data-state":a(n).open.value?"open":"closed",style:{"pointer-events":"auto"},onPointerdown:r[0]||(r[0]=tn(()=>{},["left","self","prevent"]))},{default:y(()=>[ie(o.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),c0=u0,d0=X({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=cs(),{forwardRef:n}=Ne();return(s,o)=>{var r;return(r=a(t))!=null&&r.modal.value?(x(),F(a(Js),{key:0,present:s.forceMount||a(t).open.value,"force-mount":s.forceMount||!a(t).unmountOnHide.value},{default:y(({present:l})=>[zs(v(c0,Oe(s.$attrs,{ref:a(n),as:s.as,"as-child":s.asChild,present:a(t).unmountOnHide.value||l}),{default:y(()=>[ie(s.$slots,"default")]),_:2},1040,["as","as-child","present"]),[[jl,a(t).unmountOnHide.value||l]])]),_:3},8,["present","force-mount"])):we("v-if",!0)}}}),f0=d0,p0=X({__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=kr({}),s=te(()=>{var r;return t.to??((r=n.teleportTo)==null?void 0:r.value)??"body"}),o=Kp();return(r,l)=>a(o)||r.forceMount?(x(),F(Mi,{key:0,to:s.value,disabled:r.disabled,defer:r.defer},[ie(r.$slots,"default")],8,["to","disabled","defer"])):we("v-if",!0)}}),Ua=p0,m0=X({__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(),F(a(Ua),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),h0=m0,v0=X({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,n=cs();return Ne(),(s,o)=>(x(),F(a(Ue),Oe(t,{id:a(n).titleId}),{default:y(()=>[ie(s.$slots,"default")]),_:3},16,["id"]))}}),g0=v0;const ld="data-reka-collection-item";function Os(e={}){const{key:t="",isProvider:n=!1}=e,s=`${t}CollectionProvider`;let o;n?(o={collectionRef:N(),itemMap:N(new Map)},Ii(s,o)):o=Ws(s);const r=(d=!1)=>{const f=o.collectionRef.value;if(!f)return[];const p=Array.from(f.querySelectorAll(`[${ld}]`)),m=new Map(p.map((C,h)=>[C,h])),w=Array.from(o.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!=="")},l=X({name:"CollectionSlot",inheritAttrs:!1,setup(d,{slots:f,attrs:p}){const{primitiveElement:m,currentElement:g}=ri();return De(g,()=>{o.collectionRef.value=g.value}),()=>en(oi,{ref:m,...p},f)}}),i=X({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(d,{slots:f,attrs:p}){const{primitiveElement:m,currentElement:g}=ri();return rs(w=>{if(g.value){const C=Jd(g.value);o.itemMap.value.set(C,{ref:g.value,value:d.value}),w(()=>o.itemMap.value.delete(C))}}),()=>en(oi,{...p,[ld]:"",ref:m},f)}}),u=te(()=>Array.from(o.itemMap.value.values())),c=te(()=>o.itemMap.value.size);return{getItems:r,reactiveItems:u,itemMapSize:c,CollectionSlot:l,CollectionItem:i}}var y0=X({__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(),F(a(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"]))}}),nm=y0,b0=X({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(),o=te(()=>t.checked??t.value);return De(o,(r,l)=>{if(!s.value)return;const i=s.value,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"value").set;if(d&&r!==l){const f=new Event("input",{bubbles:!0}),p=new Event("change",{bubbles:!0});d.call(i,r),i.dispatchEvent(f),i.dispatchEvent(p)}}),(r,l)=>(x(),F(nm,Oe({ref_key:"primitiveElement",ref:n},{...t,...r.$attrs},{as:"input"}),null,16))}}),id=b0,_0=X({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((o,r)=>typeof o=="object"?Object.entries(o).map(([l,i])=>({name:`${t.name}[${r}][${l}]`,value:i})):{name:`${t.name}[${r}]`,value:o}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([o,r])=>({name:`${t.name}[${o}]`,value:r})):[]);return(o,r)=>(x(),G(Ae,null,[we(" We render single input if it's required "),n.value?(x(),F(id,Oe({key:o.name},{...t,...o.$attrs},{name:o.name,value:o.value}),null,16,["name","value"])):(x(!0),G(Ae,{key:1},ct(s.value,l=>(x(),F(id,Oe({key:l.name},{ref_for:!0},{...t,...o.$attrs},{name:l.name,value:l.value}),null,16,["name","value"]))),128))],2112))}}),w0=_0;const x0="rovingFocusGroup.onEntryFocus",k0={bubbles:!1,cancelable:!0},S0={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function C0(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function A0(e,t,n){const s=C0(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return S0[s]}function sm(e,t=!1){const n=Ct();for(const s of e)if(s===n||(s.focus({preventScroll:t}),Ct()!==n))return}function E0(e,t){return e.map((n,s)=>e[(t+s)%e.length])}const[om,O0]=$t("PopperRoot");var P0=X({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=N();return O0({anchor:t,onAnchorChange:n=>t.value=n}),(n,s)=>ie(n.$slots,"default")}}),ou=P0,T0=X({__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}=Ne(),o=om();return lf(()=>{o.onAnchorChange(t.reference??s.value)}),(r,l)=>(x(),F(a(Ue),{ref:a(n),as:r.as,"as-child":r.asChild},{default:y(()=>[ie(r.$slots,"default")]),_:3},8,["as","as-child"]))}}),ru=T0;function $0(e){return e!==null}function I0(e){return{name:"transformOrigin",options:e,fn(t){var h,b,$;const{placement:n,rects:s,middlewareData:o}=t,l=((h=o.arrow)==null?void 0:h.centerOffset)!==0,i=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[c,d]=ii(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=o.arrow)==null?void 0:b.x)??0)+i/2,g=((($=o.arrow)==null?void 0:$.y)??0)+u/2;let w="",C="";return c==="bottom"?(w=l?f:`${m}px`,C=`${-u}px`):c==="top"?(w=l?f:`${m}px`,C=`${s.floating.height+u}px`):c==="right"?(w=`${-u}px`,C=l?p:`${g}px`):c==="left"&&(w=`${s.floating.width+u}px`,C=l?p:`${g}px`),{data:{x:w,y:C}}}}}function ii(e){const[t,n="center"]=e.split("-");return[t,n]}const M0=["top","right","bottom","left"],xs=Math.min,Zn=Math.max,da=Math.round,Br=Math.floor,es=e=>({x:e,y:e}),R0={left:"right",right:"left",bottom:"top",top:"bottom"};function rm(e,t,n){return Zn(e,xs(t,n))}function ls(e,t){return typeof e=="function"?e(t):e}function ks(e){return e.split("-")[0]}function Co(e){return e.split("-")[1]}function au(e){return e==="x"?"y":"x"}function lu(e){return e==="y"?"height":"width"}function Pn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function iu(e){return au(Pn(e))}function L0(e,t,n){n===void 0&&(n=!1);const s=Co(e),o=iu(e),r=lu(o);let l=o==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(l=fa(l)),[l,fa(l)]}function D0(e){const t=fa(e);return[ui(e),t,ui(t)]}function ui(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ud=["left","right"],cd=["right","left"],N0=["top","bottom"],F0=["bottom","top"];function q0(e,t,n){switch(e){case"top":case"bottom":return n?t?cd:ud:t?ud:cd;case"left":case"right":return t?N0:F0;default:return[]}}function B0(e,t,n,s){const o=Co(e);let r=q0(ks(e),n==="start",s);return o&&(r=r.map(l=>l+"-"+o),t&&(r=r.concat(r.map(ui)))),r}function fa(e){const t=ks(e);return R0[t]+e.slice(t.length)}function V0(e){var t,n,s,o;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(s=e.bottom)!=null?s:0,left:(o=e.left)!=null?o:0}}function am(e){return typeof e!="number"?V0(e):{top:e,right:e,bottom:e,left:e}}function pa(e){const{x:t,y:n,width:s,height:o}=e;return{width:s,height:o,top:n,left:t,right:t+s,bottom:n+o,x:t,y:n}}function dd(e,t,n){let{reference:s,floating:o}=e;const r=Pn(t),l=iu(t),i=lu(l),u=ks(t),c=r==="y",d=s.x+s.width/2-o.width/2,f=s.y+s.height/2-o.height/2,p=s[i]/2-o[i]/2;let m;switch(u){case"top":m={x:d,y:s.y-o.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-o.width,y:f};break;default:m={x:s.x,y:s.y}}const g=Co(t);return g&&(m[l]+=p*(g==="end"?1:-1)*(n&&c?-1:1)),m}async function U0(e,t){var n;t===void 0&&(t={});const{x:s,y:o,platform:r,rects:l,elements:i,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=ls(t,e),g=am(m),C=i[p?f==="floating"?"reference":"floating":f],h=pa(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(C)))==null||n?C:C.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:u})),b=f==="floating"?{x:s,y:o,width:l.floating.width,height:l.floating.height}:l.reference,$=await(r.getOffsetParent==null?void 0:r.getOffsetParent(i.floating)),k=await(r.isElement==null?void 0:r.isElement($))&&await(r.getScale==null?void 0:r.getScale($))||{x:1,y:1},R=pa(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:$,strategy:u}):b);return{top:(h.top-R.top+g.top)/k.y,bottom:(R.bottom-h.bottom+g.bottom)/k.y,left:(h.left-R.left+g.left)/k.x,right:(R.right-h.right+g.right)/k.x}}const H0=50,j0=async(e,t,n)=>{const{placement:s="bottom",strategy:o="absolute",middleware:r=[],platform:l}=n,i=l.detectOverflow?l:{...l,detectOverflow:U0},u=await(l.isRTL==null?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=dd(c,s,u),p=s,m=0;const g={};for(let w=0;w<r.length;w++){const C=r[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:o,middlewareData:g,rects:c,platform:i,elements:{reference:e,floating:t}});d=$??d,f=k??f,g[h]={...g[h],...R},I&&m<H0&&(m++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(c=I.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):I.rects),{x:d,y:f}=dd(c,p,u)),w=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:g}},W0=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:o,rects:r,platform:l,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=ls(e,t)||{};if(c==null)return{};const f=am(d),p={x:n,y:s},m=iu(o),g=lu(m),w=await l.getDimensions(c),C=m==="y",h=C?"top":"left",b=C?"bottom":"right",$=C?"clientHeight":"clientWidth",k=r.reference[g]+r.reference[m]-p[m]-r.floating[g],R=p[m]-r.reference[m],I=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c));let E=I?I[$]:0;(!E||!await(l.isElement==null?void 0:l.isElement(I)))&&(E=i.floating[$]||r.floating[g]);const M=k/2-R/2,q=E/2-w[g]/2-1,Y=xs(f[h],q),re=xs(f[b],q),H=E-w[g]-re,ee=E/2-w[g]/2+M,me=rm(Y,ee,H),J=!u.arrow&&Co(o)!=null&&ee!==me&&r.reference[g]/2-(ee<Y?Y:re)-w[g]/2<0,ue=J?ee<Y?ee-Y:ee-H:0;return{[m]:p[m]+ue,data:{[m]:me,centerOffset:ee-me-ue,...J&&{alignmentOffset:ue}},reset:J}}}),K0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:o,middlewareData:r,rects:l,initialPlacement:i,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:w=!0,...C}=ls(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const h=ks(o),b=Pn(i),$=ks(i)===i,k=await(u.isRTL==null?void 0:u.isRTL(c.floating)),R=p||($||!w?[fa(i)]:D0(i)),I=g!=="none";!p&&I&&R.push(...B0(i,w,g,k));const E=[i,...R],M=await u.detectOverflow(t,C),q=[];let Y=((s=r.flip)==null?void 0:s.overflows)||[];if(d&&q.push(M[h]),f){const me=L0(o,l,k);q.push(M[me[0]],M[me[1]])}if(Y=[...Y,{placement:o,overflows:q}],!q.every(me=>me<=0)){var re,H;const me=(((re=r.flip)==null?void 0:re.index)||0)+1,J=E[me];if(J&&(!(f==="alignment"?b!==Pn(J):!1)||Y.every(fe=>Pn(fe.placement)===b?fe.overflows[0]>0:!0)))return{data:{index:me,overflows:Y},reset:{placement:J}};let ue=(H=Y.filter(de=>de.overflows[0]<=0).sort((de,fe)=>de.overflows[1]-fe.overflows[1])[0])==null?void 0:H.placement;if(!ue)switch(m){case"bestFit":{var ee;const de=(ee=Y.filter(fe=>{if(I){const se=Pn(fe.placement);return se===b||se==="y"}return!0}).map(fe=>[fe.placement,fe.overflows.filter(se=>se>0).reduce((se,Q)=>se+Q,0)]).sort((fe,se)=>fe[1]-se[1])[0])==null?void 0:ee[0];de&&(ue=de);break}case"initialPlacement":ue=i;break}if(o!==ue)return{reset:{placement:ue}}}return{}}}};function fd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pd(e){return M0.some(t=>e[t]>=0)}const z0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:s}=t,{strategy:o="referenceHidden",...r}=ls(e,t);switch(o){case"referenceHidden":{const l=await s.detectOverflow(t,{...r,elementContext:"reference"}),i=fd(l,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:pd(i)}}}case"escaped":{const l=await s.detectOverflow(t,{...r,altBoundary:!0}),i=fd(l,n.floating);return{data:{escapedOffsets:i,escaped:pd(i)}}}default:return{}}}}},lm=new Set(["left","top"]);async function G0(e,t){const{placement:n,platform:s,elements:o}=e,r=await(s.isRTL==null?void 0:s.isRTL(o.floating)),l=ks(n),i=Co(n),u=Pn(n)==="y",c=lm.has(l)?-1:1,d=r&&u?-1:1,f=ls(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof g=="number"&&(m=i==="end"?g*-1:g),u?{x:m*d,y:p*c}:{x:p*c,y:m*d}}const Y0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:o,y:r,placement:l,middlewareData:i}=t,u=await G0(t,e);return l===((n=i.offset)==null?void 0:n.placement)&&(s=i.arrow)!=null&&s.alignmentOffset?{}:{x:o+u.x,y:r+u.y,data:{...u,placement:l}}}}},X0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:o,platform:r}=t,{mainAxis:l=!0,crossAxis:i=!1,limiter:u={fn:b=>{let{x:$,y:k}=b;return{x:$,y:k}}},...c}=ls(e,t),d={x:n,y:s},f=await r.detectOverflow(t,c),p=Pn(o),m=au(p);let g=d[m],w=d[p];const C=(b,$)=>rm($+f[b==="y"?"top":"left"],$,$-f[b==="y"?"bottom":"right"]);l&&(g=C(m,g)),i&&(w=C(p,w));const h=u.fn({...t,[m]:g,[p]:w});return{...h,data:{x:h.x-n,y:h.y-s,enabled:{[m]:l,[p]:i}}}}}},J0=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,s;const{x:o,y:r,placement:l,rects:i,middlewareData:u}=t,{offset:c=0,mainAxis:d=!0,crossAxis:f=!0}=ls(e,t),p={x:o,y:r},m=Pn(l),g=au(m);let w=p[g],C=p[m];const h=ls(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=g==="y"?"height":"width",I=i.reference[g]-i.floating[R]+b.mainAxis,E=i.reference[g]+i.reference[R]-b.mainAxis;w<I?w=I:w>E&&(w=E)}if(f){var $,k;const R=g==="y"?"width":"height",I=lm.has(ks(l)),E=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<E?C=E:C>M&&(C=M)}return{[g]:w,[m]:C}}}},Q0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:s,platform:o,elements:r}=t,{apply:l=()=>{},...i}=ls(e,t),u=await o.detectOverflow(t,i),c=ks(n),d=Co(n),f=Pn(n)==="y",{width:p,height:m}=s.floating;let g,w;c==="top"||c==="bottom"?(g=c,w=d===(await(o.isRTL==null?void 0:o.isRTL(r.floating))?"start":"end")?"left":"right"):(w=c,g=d==="end"?"top":"bottom");const C=m-u.top-u.bottom,h=p-u.left-u.right,b=xs(m-u[g],C),$=xs(p-u[w],h),k=t.middlewareData.shift,R=!k;let I=b,E=$;k!=null&&k.enabled.x&&(E=h),k!=null&&k.enabled.y&&(I=C),R&&!d&&(f?E=p-2*Zn(u.left,u.right):I=m-2*Zn(u.top,u.bottom)),await l({...t,availableWidth:E,availableHeight:I});const M=await o.getDimensions(r.floating);return p!==M.width||m!==M.height?{reset:{rects:!0}}:{}}}};function Ha(){return typeof window<"u"}function Qs(e){return uu(e)?(e.nodeName||"").toLowerCase():"#document"}function zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ds(e){var t;return(t=(uu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function uu(e){return Ha()?e instanceof Node||e instanceof zt(e).Node:!1}function Nn(e){return Ha()?e instanceof Element||e instanceof zt(e).Element:!1}function Ps(e){return Ha()?e instanceof HTMLElement||e instanceof zt(e).HTMLElement:!1}function md(e){return!Ha()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof zt(e).ShadowRoot}function ja(e){const{overflow:t,overflowX:n,overflowY:s,display:o}=Fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&o!=="inline"&&o!=="contents"}function Z0(e){return/^(table|td|th)$/.test(Qs(e))}function Wa(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ew=/transform|translate|scale|rotate|perspective|filter/,tw=/paint|layout|strict|content/,Ns=e=>!!e&&e!=="none";let Cl;function cu(e){const t=Nn(e)?Fn(e):e;return Ns(t.transform)||Ns(t.translate)||Ns(t.scale)||Ns(t.rotate)||Ns(t.perspective)||!du()&&(Ns(t.backdropFilter)||Ns(t.filter))||ew.test(t.willChange||"")||tw.test(t.contain||"")}function nw(e){let t=Gs(e);for(;Ps(t)&&!fr(t);){if(cu(t))return t;if(Wa(t))return null;t=Gs(t)}return null}function du(){return Cl==null&&(Cl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Cl}function fr(e){return/^(html|body|#document)$/.test(Qs(e))}function Fn(e){return zt(e).getComputedStyle(e)}function Ka(e){return Nn(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||md(e)&&e.host||ds(e);return md(t)?t.host:t}function im(e){const t=Gs(e);return fr(t)?(e.ownerDocument||e).body:Ps(t)&&ja(t)?t:im(t)}function pr(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=im(e),r=o===((s=e.ownerDocument)==null?void 0:s.body),l=zt(o);if(r){const i=ci(l);return t.concat(l,l.visualViewport||[],ja(o)?o:[],i&&n?pr(i):[])}else return t.concat(o,pr(o,[],n))}function ci(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function um(e){const t=Fn(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const o=Ps(e),r=o?e.offsetWidth:n,l=o?e.offsetHeight:s,i=da(n)!==r||da(s)!==l;return i&&(n=r,s=l),{width:n,height:s,$:i}}function fu(e){return Nn(e)?e:e.contextElement}function go(e){const t=fu(e);if(!Ps(t))return es(1);const n=t.getBoundingClientRect(),{width:s,height:o,$:r}=um(t);let l=(r?da(n.width):n.width)/s,i=(r?da(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!i||!Number.isFinite(i))&&(i=1),{x:l,y:i}}const sw=es(0);function cm(e){const t=zt(e);return!du()||!t.visualViewport?sw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ow(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===zt(e)}function Ys(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=fu(e);let l=es(1);t&&(s?Nn(s)&&(l=go(s)):l=go(e));const i=ow(r,n,s)?cm(r):es(0);let u=(o.left+i.x)/l.x,c=(o.top+i.y)/l.y,d=o.width/l.x,f=o.height/l.y;if(r&&s){const p=zt(r),m=Nn(s)?zt(s):s;let g=p,w=ci(g);for(;w&&m!==g;){const C=go(w),h=w.getBoundingClientRect(),b=Fn(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,g=zt(w),w=ci(g)}}return pa({width:d,height:f,x:u,y:c})}function za(e,t){const n=Ka(e).scrollLeft;return t?t.left+n:Ys(ds(e)).left+n}function dm(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-za(e,n),o=n.top+t.scrollTop;return{x:s,y:o}}function rw(e){let{elements:t,rect:n,offsetParent:s,strategy:o}=e;const r=o==="fixed",l=ds(s),i=t?Wa(t.floating):!1;if(s===l||i&&r)return n;let u={scrollLeft:0,scrollTop:0},c=es(1);const d=es(0),f=Ps(s);if((f||!r)&&((Qs(s)!=="body"||ja(l))&&(u=Ka(s)),f)){const m=Ys(s);c=go(s),d.x=m.x+s.clientLeft,d.y=m.y+s.clientTop}const p=l&&!f&&!r?dm(l,u):es(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 aw(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function lw(e){const t=Ka(e),n=e.ownerDocument.body,s=Zn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=Zn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let r=-t.scrollLeft+za(e);const l=-t.scrollTop;return Fn(n).direction==="rtl"&&(r+=Zn(e.clientWidth,n.clientWidth)-s),{width:s,height:o,x:r,y:l}}const iw=25;function uw(e,t,n){n===void 0&&(n="viewport");const s=n==="layoutViewport",o=zt(e),r=ds(e),l=o.visualViewport;let i=r.clientWidth,u=r.clientHeight,c=0,d=0;if(l){const p=!du()||t==="fixed";s?p||(c=-l.offsetLeft,d=-l.offsetTop):(i=l.width,u=l.height,p&&(c=l.offsetLeft,d=l.offsetTop))}if(za(r)<=0){const p=r.ownerDocument,m=p.body,g=getComputedStyle(m),w=p.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,C=Math.abs(r.clientWidth-m.clientWidth-w),h=getComputedStyle(r).scrollbarGutter==="stable both-edges"?C/2:C;h<=iw&&(i-=h)}return{width:i,height:u,x:c,y:d}}function cw(e,t){const n=Ys(e,!0,t==="fixed"),s=n.top+e.clientTop,o=n.left+e.clientLeft,r=go(e),l=e.clientWidth*r.x,i=e.clientHeight*r.y,u=o*r.x,c=s*r.y;return{width:l,height:i,x:u,y:c}}function hd(e,t,n){let s;if(t==="viewport"||t==="layoutViewport")s=uw(e,n,t);else if(t==="document")s=lw(ds(e));else if(Nn(t))s=cw(t,n);else{const o=cm(e);s={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return pa(s)}function dw(e,t){const n=t.get(e);if(n)return n;let s=pr(e,[],!1).filter(i=>Nn(i)&&Qs(i)!=="body"),o=null;const r=Fn(e).position==="fixed";let l=r?Gs(e):e;for(;Nn(l)&&!fr(l);){const i=Fn(l),u=cu(l),c=o?o.position:r?"fixed":"";!u&&(c==="fixed"||c==="absolute"&&i.position==="static")?s=s.filter(f=>f!==l):o=i,l=Gs(l)}return t.set(e,s),s}function fw(e){let{element:t,boundary:n,rootBoundary:s,strategy:o}=e;const l=[...n==="clippingAncestors"?Wa(t)?[]:dw(t,this._c):[].concat(n),s],i=hd(t,l[0],o);let u=i.top,c=i.right,d=i.bottom,f=i.left;for(let p=1;p<l.length;p++){const m=hd(t,l[p],o);u=Zn(m.top,u),c=xs(m.right,c),d=xs(m.bottom,d),f=Zn(m.left,f)}return{width:c-f,height:d-u,x:f,y:u}}function pw(e){const{width:t,height:n}=um(e);return{width:t,height:n}}function mw(e,t,n){const s=Ps(t),o=ds(t),r=n==="fixed",l=Ys(e,!0,r,t);let i={scrollLeft:0,scrollTop:0};const u=es(0);if((s||!r)&&((Qs(t)!=="body"||ja(o))&&(i=Ka(t)),s)){const p=Ys(t,!0,r,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}!s&&o&&(u.x=za(o));const c=o&&!s&&!r?dm(o,i):es(0),d=l.left+i.scrollLeft-u.x-c.x,f=l.top+i.scrollTop-u.y-c.y;return{x:d,y:f,width:l.width,height:l.height}}function Al(e){return Fn(e).position==="static"}function vd(e,t){if(!Ps(e)||Fn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ds(e)===n&&(n=n.ownerDocument.body),n}function fm(e,t){const n=zt(e);if(Wa(e))return n;if(!Ps(e)){let o=Gs(e);for(;o&&!fr(o);){if(Nn(o)&&!Al(o))return o;o=Gs(o)}return n}let s=vd(e,t);for(;s&&Z0(s)&&Al(s);)s=vd(s,t);return s&&fr(s)&&Al(s)&&!cu(s)?n:s||nw(e)||n}const hw=async function(e){const t=this.getOffsetParent||fm,n=this.getDimensions,s=await n(e.floating);return{reference:mw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function vw(e){return Fn(e).direction==="rtl"}const gw={convertOffsetParentRelativeRectToViewportRelativeRect:rw,getDocumentElement:ds,getClippingRect:fw,getOffsetParent:fm,getElementRects:hw,getClientRects:aw,getDimensions:pw,getScale:go,isElement:Nn,isRTL:vw};function pm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yw(e,t,n){let s=null,o;const r=ds(e);function l(){var d;clearTimeout(o),(d=s)==null||d.disconnect(),s=null}function i(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),l();const p=e.getBoundingClientRect(),{left:m,top:g,width:w,height:C}=p;if(d||t(),!w||!C)return;const h=Br(g),b=Br(r.clientWidth-(m+w)),$=Br(r.clientHeight-(g+C)),k=Br(m),I={rootMargin:-h+"px "+-b+"px "+-$+"px "+-k+"px",threshold:Zn(0,xs(1,f))||1};let E=!0;function M(q){const Y=q[0].intersectionRatio;if(!pm(p,e.getBoundingClientRect()))return i();if(Y!==f){if(!E)return i();Y?i(!1,Y):o=setTimeout(()=>{i(!1,1e-7)},1e3)}E=!1}try{s=new IntersectionObserver(M,{...I,root:r.ownerDocument})}catch{s=new IntersectionObserver(M,I)}s.observe(e)}const u=zt(e),c=()=>i(n);return u.addEventListener("resize",c),i(!0),()=>{u.removeEventListener("resize",c),l()}}function bw(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=s,c=fu(e),d=o||r?[...c?pr(c):[],...t?pr(t):[]]:[];d.forEach(h=>{o&&h.addEventListener("scroll",n),r&&h.addEventListener("resize",n)});const f=c&&i?yw(c,n,r):null;let p=-1,m=null;l&&(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 g,w=u?Ys(e):null;u&&C();function C(){const h=Ys(e);w&&!pm(w,h)&&n(),w=h,g=requestAnimationFrame(C)}return n(),()=>{var h;d.forEach(b=>{o&&b.removeEventListener("scroll",n),r&&b.removeEventListener("resize",n)}),f==null||f(),(h=m)==null||h.disconnect(),m=null,u&&cancelAnimationFrame(g)}}const _w=Y0,ww=X0,gd=K0,xw=Q0,kw=z0,Sw=W0,Cw=J0,Aw=(e,t,n)=>{const s=new Map,o=n??{},r={...gw,...o.platform,_c:s};return j0(e,t,{...o,platform:r})};function Ew(e){return e!=null&&typeof e=="object"&&"$el"in e}function di(e){if(Ew(e)){const t=e.$el;return uu(t)&&Qs(t)==="#comment"?null:t}return e}function io(e){return typeof e=="function"?e():a(e)}function Ow(e){return{name:"arrow",options:e,fn(t){const n=di(io(e.element));return n==null?{}:Sw({element:n,padding:e.padding}).fn(t)}}}function mm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yd(e,t){const n=mm(e);return Math.round(t*n)/n}function Pw(e,t,n){n===void 0&&(n={});const s=n.whileElementsMounted,o=te(()=>{var E;return(E=io(n.open))!=null?E:!0}),r=te(()=>io(n.middleware)),l=te(()=>{var E;return(E=io(n.placement))!=null?E:"bottom"}),i=te(()=>{var E;return(E=io(n.strategy))!=null?E:"absolute"}),u=te(()=>{var E;return(E=io(n.transform))!=null?E:!0}),c=te(()=>di(e.value)),d=te(()=>di(t.value)),f=N(0),p=N(0),m=N(i.value),g=N(l.value),w=Oa({}),C=N(!1),h=te(()=>{const E={position:m.value,left:"0",top:"0"};if(!d.value)return E;const M=yd(d.value,f.value),q=yd(d.value,p.value);return u.value?{...E,transform:"translate("+M+"px, "+q+"px)",...mm(d.value)>=1.5&&{willChange:"transform"}}:{position:m.value,left:M+"px",top:q+"px"}});let b;function $(){if(c.value==null||d.value==null)return;const E=o.value;Aw(c.value,d.value,{middleware:r.value,placement:l.value,strategy:i.value}).then(M=>{f.value=M.x,p.value=M.y,m.value=M.strategy,g.value=M.placement,w.value=M.middlewareData,C.value=E!==!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(){o.value||(C.value=!1)}return De([r,l,i,o],$,{flush:"sync"}),De([c,d],R,{flush:"sync"}),De(o,I,{flush:"sync"}),xa()&&Ei(k),{x:no(f),y:no(p),strategy:no(m),placement:no(g),middlewareData:no(w),isPositioned:no(C),floatingStyles:h,update:$}}const Tw=["dir"],hm={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},[mT,$w]=$t("PopperContent");var Iw=X({inheritAttrs:!1,__name:"PopperContent",props:gf({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}},{...hm}),emits:["placed"],setup(e,{emit:t}){const n=e,s=t,o=om(),{forwardRef:r,currentElement:l}=Ne(),i=So(te(()=>n.dir)),u=N(),c=N(),{width:d,height:f}=A1(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}),g=te(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),w=te(()=>({padding:m.value,boundary:g.value.filter($0),altBoundary:g.value.length>0})),C=te(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),h=te(()=>[_w({mainAxis:n.sideOffset+f.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&gd({...w.value,...C.value}),n.avoidCollisions&&ww({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?Cw():void 0,...w.value}),!n.prioritizePosition&&n.avoidCollisions&&gd({...w.value,...C.value}),xw({...w.value,apply:({elements:ee,rects:me,availableWidth:J,availableHeight:ue})=>{const{width:de,height:fe}=me.reference,se=ee.floating.style;se.setProperty("--reka-popper-available-width",`${J}px`),se.setProperty("--reka-popper-available-height",`${ue}px`),se.setProperty("--reka-popper-anchor-width",`${de}px`),se.setProperty("--reka-popper-anchor-height",`${fe}px`)}}),c.value&&Ow({element:c.value,padding:n.arrowPadding}),I0({arrowWidth:d.value,arrowHeight:f.value,dir:i.value}),n.hideWhenDetached&&kw({strategy:"referenceHidden",...w.value})]),b=te(()=>n.reference??o.anchor.value),{floatingStyles:$,placement:k,isPositioned:R,middlewareData:I}=Pw(b,u,{strategy:n.positionStrategy,placement:p,whileElementsMounted:(...ee)=>bw(...ee,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:h}),E=te(()=>ii(k.value)[0]),M=te(()=>ii(k.value)[1]);lf(()=>{R.value&&s("placed")});const q=te(()=>{var me;const ee=((me=I.value.arrow)==null?void 0:me.centerOffset)!==0;return n.hideShiftedArrow&&ee}),Y=N("");rs(()=>{l.value&&(Y.value=window.getComputedStyle(l.value).zIndex)});const re=te(()=>{var ee;return((ee=I.value.arrow)==null?void 0:ee.x)??0}),H=te(()=>{var ee;return((ee=I.value.arrow)==null?void 0:ee.y)??0});return $w({placedSide:E,onArrowChange:ee=>c.value=ee,arrowX:re,arrowY:H,shouldHideArrow:q}),(ee,me)=>{var J,ue,de;return x(),G("div",{ref_key:"floatingRef",ref:u,"data-reka-popper-content-wrapper":"",dir:a(i),style:vn({...a($),transform:a(R)?a($).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y.value,"--reka-popper-transform-origin":[(J=a(I).transformOrigin)==null?void 0:J.x,(ue=a(I).transformOrigin)==null?void 0:ue.y].join(" "),...((de=a(I).hide)==null?void 0:de.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[n.memoDependencies?Jv([n.asChild,n.as,E.value,M.value,a(R),...Object.values(ee.$attrs),...n.memoDependencies],()=>(x(),F(a(Ue),Oe({key:0,ref:a(r)},ee.$attrs,{"as-child":n.asChild,as:n.as,"data-side":E.value,"data-align":M.value,style:{animation:a(R)?void 0:"none"}}),{default:y(()=>[ie(ee.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])),me,0):(x(),F(a(Ue),Oe({key:1,ref:a(r)},ee.$attrs,{"as-child":n.asChild,as:n.as,"data-side":E.value,"data-align":M.value,dir:a(i),style:{animation:a(R)?void 0:"none"}}),{default:y(()=>[ie(ee.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","dir","style"]))],12,Tw)}}}),pu=Iw;function Mw(e){const t=kr({nonce:N()});return te(()=>{var n;return(e==null?void 0:e.value)||((n=t.nonce)==null?void 0:n.value)})}const[Rw,Lw]=$t("RovingFocusGroup");var Dw=X({__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,o=n,{loop:r,orientation:l,dir:i}=Gt(s),u=So(i),c=as(s,"currentTabStopId",o,{defaultValue:s.defaultCurrentTabStopId,passive:s.currentTabStopId===void 0}),d=N(!1),f=N(!1),p=N(0),{getItems:m,CollectionSlot:g}=Os({isProvider:!0});function w(h){const b=!f.value;if(h.currentTarget&&h.target===h.currentTarget&&b&&!d.value){const $=new CustomEvent(x0,k0);if(h.currentTarget.dispatchEvent($),o("entryFocus",$),!$.defaultPrevented){const k=m().map(q=>q.ref).filter(q=>q.dataset.disabled!==""),R=k.find(q=>q.getAttribute("data-active")===""),I=k.find(q=>q.getAttribute("data-highlighted")===""),E=k.find(q=>q.id===c.value),M=[R,I,E,...k].filter(Boolean);sm(M,s.preventScrollOnEntryFocus)}}f.value=!1}function C(){setTimeout(()=>{f.value=!1},1)}return t({getItems:m}),Lw({loop:r,dir:u,orientation:l,currentTabStopId:c,onItemFocus:h=>{c.value=h},onItemShiftTab:()=>{d.value=!0},onFocusableItemAdd:()=>{p.value++},onFocusableItemRemove:()=>{p.value--}}),(h,b)=>(x(),F(a(g),null,{default:y(()=>[v(a(Ue),{tabindex:d.value||p.value===0?-1:0,"data-orientation":a(l),as:h.as,"as-child":h.asChild,dir:a(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}))}}),vm=Dw,Nw=X({__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=Rw(),s=Dn(),o=te(()=>t.tabStopId||s),r=te(()=>n.currentTabStopId.value===o.value),{getItems:l,CollectionItem:i}=Os();mt(()=>{t.focusable&&n.onFocusableItemAdd()}),bn(()=>{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=A0(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=[...l().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?E0(f,p+1):f.slice(p+1)}yt(()=>sm(f))}}return(c,d)=>(x(),F(a(i),null,{default:y(()=>[v(a(Ue),{tabindex:r.value?0:-1,"data-orientation":a(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?a(n).onItemFocus(o.value):f.preventDefault()}),onFocus:d[1]||(d[1]=f=>a(n).onItemFocus(o.value)),onKeydown:u},{default:y(()=>[ie(c.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),gm=Nw;const[Fw]=$t("CheckboxGroupRoot");function mu(e){return e==="indeterminate"}function ym(e){return mu(e)?"indeterminate":e?"checked":"unchecked"}const[qw,Bw]=$t("CheckboxRoot");var Vw=X({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:o,currentElement:r}=Ne(),l=Fw(null),i=as(n,"modelValue",s,{defaultValue:n.defaultValue??n.falseValue,passive:n.modelValue===void 0}),u=te(()=>(l==null?void 0:l.disabled.value)||n.disabled),c=te(()=>dr(i.value,n.trueValue)),d=te(()=>ko(l==null?void 0:l.modelValue.value)?i.value==="indeterminate"?"indeterminate":c.value:ed(l.modelValue.value,n.value));function f(){if(ko(l==null?void 0:l.modelValue.value))i.value==="indeterminate"?i.value=n.trueValue:i.value=c.value?n.falseValue:n.trueValue;else{const C=[...l.modelValue.value||[]];if(ed(C,n.value)){const h=C.findIndex(b=>dr(b,n.value));C.splice(h,1)}else C.push(n.value);l.modelValue.value=C}}const p=Yp(r),m=w1(),g=hv(),w=te(()=>{var C;if(!g["aria-label"])return n.id&&r.value?(C=document.querySelector(`[for="${n.id}"]`))==null?void 0:C.innerText:void 0});return Bw({disabled:u,state:d}),(C,h)=>{var b,$;return x(),G(Ae,null,[(x(),F(br((b=a(l))!=null&&b.rovingFocus.value?a(gm):a(Ue)),Oe({...C.$attrs,...a(m)},{id:C.id,ref:a(o),role:"checkbox","as-child":C.asChild,as:C.as,type:C.as==="button"?"button":void 0,"aria-checked":a(mu)(d.value)?"mixed":d.value,"aria-required":C.required,"aria-label":C.$attrs["aria-label"]||w.value,"data-state":a(ym)(d.value),"data-disabled":u.value?"":void 0,disabled:u.value,focusable:($=a(l))!=null&&$.rovingFocus.value?!u.value:void 0,onKeydown:Vs(tn(()=>{},["prevent"]),["enter"]),onClick:f}),{default:y(()=>[ie(C.$slots,"default",{modelValue:a(i),state:d.value})]),_:3},16,["id","as-child","as","type","aria-checked","aria-required","aria-label","data-state","data-disabled","disabled","focusable","onKeydown"])),a(p)&&C.name&&!a(l)?(x(),F(a(w0),Oe({key:0,type:"checkbox",checked:!!d.value,name:C.name,value:C.value,disabled:u.value,required:C.required},a(m)),null,16,["checked","name","value","disabled","required"])):we("v-if",!0)],64)}}}),Uw=Vw,Hw=X({__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}=Ne(),n=qw();return(s,o)=>(x(),F(a(Js),{present:s.forceMount||a(mu)(a(n).state.value)||a(n).state.value===!0},{default:y(()=>[v(a(Ue),Oe({ref:a(t),"data-state":a(ym)(a(n).state.value),"data-disabled":a(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"]))}}),jw=Hw,Ww=X({__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(),F(a(ru),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),Kw=Ww;function zw(){const e=N(!1);return mt(()=>{ua("keydown",()=>{e.value=!0},{capture:!0,passive:!0}),ua(["pointerdown","pointermove"],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const Gw=Wp(zw),[Ga,Yw]=$t(["MenuRoot","MenuSub"],"MenuContext"),[hu,Xw]=$t("MenuRoot");var Jw=X({__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:o,dir:r}=Gt(n),l=So(r),i=as(n,"open",s),u=N(),c=Gw();return Yw({open:i,onOpenChange:d=>{i.value=d},content:u,onContentChange:d=>{u.value=d}}),Xw({onClose:()=>{i.value=!1},isUsingKeyboardRef:c,dir:l,modal:o}),(d,f)=>(x(),F(a(ou),null,{default:y(()=>[ie(d.$slots,"default")]),_:3}))}}),Qw=Jw;const[bm,Zw]=$t("MenuContent");var ex=X({__name:"MenuContentImpl",props:gf({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}},{...hm}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(e,{emit:t}){const n=e,s=t,o=Ga(),r=hu(),{trapFocus:l,disableOutsidePointerEvents:i,loop:u}=Gt(n);nu(),Na(i.value);const c=N(""),d=N(0),f=N(0),p=N(null),m=N("right"),g=N(0),w=N(null),C=N(),{forwardRef:h,currentElement:b}=Ne(),{handleTypeaheadSearch:$}=su(),k=N();function R(J){const ue=nd(J,k.value||Ct(),b.value,{loop:u.value,arrowKeyOptions:"vertical",dir:r==null?void 0:r.dir.value,focus:!1,attributeName:"[data-reka-collection-item]:not([data-disabled])"});ue&&(k.value=ue,ue.scrollIntoView({block:"nearest"}))}function I(){k.value&&k.value.click()}const E=N(),M=N();De(k,J=>{if(M.value&&(J===void 0||J!==M.value.trigger.value)){if(J===void 0)return;M.value.onOpenChange(!1),M.value=void 0}}),De(b,J=>{o.onContentChange(J)}),bn(()=>{window.clearTimeout(d.value)});function q(J){var de,fe;return m.value===((de=p.value)==null?void 0:de.side)&&Z1(J,(fe=p.value)==null?void 0:fe.area)}async function Y(J){var ue;s("openAutoFocus",J),!J.defaultPrevented&&(J.preventDefault(),(ue=b.value)==null||ue.focus({preventScroll:!0}))}function re(J){var at;if(J.defaultPrevented)return;const ue=J.target,de=ue.closest("[data-reka-menu-content]")===J.currentTarget,fe=["input","textarea"].includes(ue.tagName.toLowerCase()),se=J.ctrlKey||J.altKey||J.metaKey,Q=J.key.length===1,ce=nd(J,Ct(),b.value,{loop:u.value,arrowKeyOptions:"vertical",dir:r==null?void 0:r.dir.value,focus:!0,attributeName:"[data-reka-collection-item]:not([data-disabled])"});if(ce)return ce==null?void 0:ce.focus();if(J.code==="Space")return;const Be=((at=C.value)==null?void 0:at.getItems())??[];if(de&&(J.key==="Tab"&&r.modal.value&&J.preventDefault(),!se&&Q&&!fe&&$(J.key,Be)),J.target!==b.value||!J1.includes(J.key))return;J.preventDefault();const rt=[...Be.map(nt=>nt.ref)];Zp.includes(J.key)&&rt.reverse(),li(rt)}function H(J){var ue,de;(de=(ue=J==null?void 0:J.currentTarget)==null?void 0:ue.contains)!=null&&de.call(ue,J.target)||(window.clearTimeout(d.value),c.value="")}function ee(J){var fe;if(!ca(J))return;const ue=J.target,de=g.value!==J.clientX;if((fe=J==null?void 0:J.currentTarget)!=null&&fe.contains(ue)&&de){const se=J.clientX>g.value?"right":"left";m.value=se,g.value=J.clientX}}function me(J){ca(J)&&E.value&&E.value.focus()}return Zw({onItemEnter:J=>!!q(J),onItemLeave:J=>{var de,fe;return q(J)?!0:(["INPUT","TEXTAREA"].includes(((de=Ct())==null?void 0:de.tagName)||"")||(fe=b.value)==null||fe.focus(),w.value=null,!1)},onTriggerLeave:J=>!!q(J),searchRef:c,highlightedElement:k,onKeydownNavigation:R,onKeydownEnter:I,filterElement:E,onFilterElementChange:J=>{E.value=J},activeSubmenuContext:M,pointerGraceTimerRef:f,onPointerGraceIntentChange:J=>{p.value=J}}),(J,ue)=>(x(),F(a(Va),{"as-child":"",trapped:a(l),onMountAutoFocus:Y,onUnmountAutoFocus:ue[7]||(ue[7]=de=>s("closeAutoFocus",de))},{default:y(()=>[v(a(Ba),{"as-child":"","disable-outside-pointer-events":a(i),onEscapeKeyDown:ue[2]||(ue[2]=de=>s("escapeKeyDown",de)),onPointerDownOutside:ue[3]||(ue[3]=de=>s("pointerDownOutside",de)),onFocusOutside:ue[4]||(ue[4]=de=>s("focusOutside",de)),onInteractOutside:ue[5]||(ue[5]=de=>s("interactOutside",de)),onDismiss:ue[6]||(ue[6]=de=>s("dismiss"))},{default:y(()=>[v(a(vm),{ref_key:"rovingFocusGroupRef",ref:C,"current-tab-stop-id":w.value,"onUpdate:currentTabStopId":ue[0]||(ue[0]=de=>w.value=de),"as-child":"",orientation:"vertical",dir:a(r).dir.value,loop:a(u),onEntryFocus:ue[1]||(ue[1]=de=>{s("entryFocus",de),a(r).isUsingKeyboardRef.value||de.preventDefault()})},{default:y(()=>[v(a(pu),{ref:a(h),role:"menu",as:J.as,"as-child":J.asChild,"aria-orientation":"vertical","data-reka-menu-content":"","data-state":a(em)(a(o).open.value),dir:a(r).dir.value,side:J.side,"side-offset":J.sideOffset,align:J.align,"align-offset":J.alignOffset,"avoid-collisions":J.avoidCollisions,"collision-boundary":J.collisionBoundary,"collision-padding":J.collisionPadding,"arrow-padding":J.arrowPadding,"prioritize-position":J.prioritizePosition,"position-strategy":J.positionStrategy,"update-position-strategy":J.updatePositionStrategy,sticky:J.sticky,"hide-when-detached":J.hideWhenDetached,reference:J.reference,onKeydown:re,onBlur:H,onPointermove:ee,onPointerenter:me},{default:y(()=>[ie(J.$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"]))}}),_m=ex,tx=X({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=bm(),{forwardRef:s,currentElement:o}=Ne(),{CollectionItem:r}=Os(),l=N(!1),i=te(()=>l.value||o.value!=null&&n.highlightedElement.value===o.value);async function u(d){var f;if(!(d.defaultPrevented||!ca(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||!ca(d)||n.highlightedElement.value!==o.value)return;!n.onItemLeave(d)&&n.highlightedElement.value===o.value&&(n.highlightedElement.value=void 0)}return(d,f)=>(x(),F(a(r),{value:{textValue:d.textValue}},{default:y(()=>[v(a(Ue),Oe({ref:a(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)&&(l.value=!0,a(n).highlightedElement.value=p.currentTarget)}),onBlur:f[1]||(f[1]=async p=>{await yt(),!p.defaultPrevented&&(l.value=!1)})}),{default:y(()=>[ie(d.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3},8,["value"]))}}),nx=tx,sx=X({__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:o,currentElement:r}=Ne(),l=hu(),i=bm(),u=N(!1);async function c(){const d=r.value;if(!n.disabled&&d){const f=new CustomEvent(Y1,{bubbles:!0,cancelable:!0});s("select",f),await yt(),f.defaultPrevented?u.value=!1:l.onClose()}}return(d,f)=>(x(),F(nx,Oe(n,{ref:a(o),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 g;const m=a(i).searchRef.value!=="";d.disabled||m&&p.key===" "||a(ai).includes(p.key)&&((g=p.currentTarget)==null||g.click(),p.preventDefault())})}),{default:y(()=>[ie(d.$slots,"default")]),_:3},16))}}),ox=sx,rx=X({__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,o=It(n,s),r=Ga(),{forwardRef:l,currentElement:i}=Ne();return qa(i),(u,c)=>(x(),F(_m,Oe(a(o),{ref:a(l),"trap-focus":a(r).open.value,"disable-outside-pointer-events":a(r).open.value,"disable-outside-scroll":!0,onDismiss:c[0]||(c[0]=d=>a(r).onOpenChange(!1)),onFocusOutside:c[1]||(c[1]=tn(d=>s("focusOutside",d),["prevent"]))}),{default:y(()=>[ie(u.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),ax=rx,lx=X({__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 o=It(e,t),r=Ga();return(l,i)=>(x(),F(_m,Oe(a(o),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:i[0]||(i[0]=u=>a(r).onOpenChange(!1))}),{default:y(()=>[ie(l.$slots,"default")]),_:3},16))}}),ix=lx,ux=X({__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 o=It(e,t),r=Ga(),l=hu();return(i,u)=>(x(),F(a(Js),{present:i.forceMount||a(r).open.value},{default:y(()=>[a(l).modal.value?(x(),F(ax,Ot(Oe({key:0},{...i.$attrs,...a(o)})),{default:y(()=>[ie(i.$slots,"default")]),_:3},16)):(x(),F(ix,Ot(Oe({key:1},{...i.$attrs,...a(o)})),{default:y(()=>[ie(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),cx=ux,dx=X({__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(),F(a(Ua),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),fx=dx,px=X({__name:"MenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,s)=>(x(),F(a(Ue),Oe(t,{role:"separator","aria-orientation":"horizontal"}),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),mx=px;const[Cr,hx]=$t("PopoverRoot");var vx=X({__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:o}=Gt(n),r=as(n,"open",s,{defaultValue:n.defaultOpen,passive:n.open===void 0});return hx({contentId:"",triggerId:"",modal:o,open:r,onOpenChange:u=>{r.value=u},onOpenToggle:()=>{r.value=!r.value},triggerElement:N(),hasCustomAnchor:N(!1)}),(u,c)=>(x(),F(a(ou),null,{default:y(()=>[ie(u.$slots,"default",{open:a(r),close:()=>r.value=!1})]),_:3}))}}),gx=vx,yx=X({__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,o=Fa(l1(n,"trapFocus","disableOutsidePointerEvents")),{forwardRef:r}=Ne(),l=Cr();return nu(),(i,u)=>(x(),F(a(Va),{"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(()=>[v(a(Ba),{"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=>a(l).onOpenChange(!1))},{default:y(()=>[v(a(pu),Oe(a(o),{id:a(l).contentId,ref:a(r),"data-state":a(l).open.value?"open":"closed","aria-labelledby":a(l).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"]))}}),wm=yx,bx=X({__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,o=Cr(),r=N(!1);Na(!0);const l=It(n,s),{forwardRef:i,currentElement:u}=Ne();return qa(u),(c,d)=>(x(),F(wm,Oe(a(l),{ref:a(i),"trap-focus":a(o).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:d[0]||(d[0]=tn(f=>{var p;s("closeAutoFocus",f),r.value||(p=a(o).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,g=p.button===2||m;r.value=g}),onFocusOutside:d[2]||(d[2]=tn(()=>{},["prevent"]))}),{default:y(()=>[ie(c.$slots,"default")]),_:3},16,["trap-focus"]))}}),_x=bx,wx=X({__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,o=Cr(),r=N(!1),l=N(!1),i=It(n,s);return(u,c)=>(x(),F(wm,Oe(a(i),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:c[0]||(c[0]=d=>{var f;s("closeAutoFocus",d),d.defaultPrevented||(r.value||(f=a(o).triggerElement.value)==null||f.focus(),d.preventDefault()),r.value=!1,l.value=!1}),onInteractOutside:c[1]||(c[1]=async d=>{var m;s("interactOutside",d),d.defaultPrevented||(r.value=!0,d.detail.originalEvent.type==="pointerdown"&&(l.value=!0));const f=d.target;((m=a(o).triggerElement.value)==null?void 0:m.contains(f))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&l.value&&d.preventDefault()})}),{default:y(()=>[ie(u.$slots,"default")]),_:3},16))}}),xx=wx,kx=X({__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,o=Cr(),r=It(n,s),{forwardRef:l}=Ne();return o.contentId||(o.contentId=Dn(void 0,"reka-popover-content")),(i,u)=>(x(),F(a(Js),{present:i.forceMount||a(o).open.value},{default:y(()=>[a(o).modal.value?(x(),F(_x,Oe({key:0},a(r),{ref:a(l)}),{default:y(()=>[ie(i.$slots,"default")]),_:3},16)):(x(),F(xx,Oe({key:1},a(r),{ref:a(l)}),{default:y(()=>[ie(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Sx=kx,Cx=X({__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(),F(a(Ua),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),Ax=Cx,Ex=X({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=Cr(),{forwardRef:s,currentElement:o}=Ne();return n.triggerId||(n.triggerId=Dn(void 0,"reka-popover-trigger")),mt(()=>{n.triggerElement.value=o.value}),(r,l)=>(x(),F(br(a(n).hasCustomAnchor.value?a(Ue):a(ru)),{"as-child":""},{default:y(()=>[v(a(Ue),{id:a(n).triggerId,ref:a(s),type:r.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":a(n).open.value,"aria-controls":a(n).contentId,"data-state":a(n).open.value?"open":"closed",as:r.as,"as-child":t.asChild,onClick:a(n).onOpenToggle},{default:y(()=>[ie(r.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),Ox=Ex;const[xm,Px]=$t("DropdownMenuRoot");var Tx=X({__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;Ne();const o=as(n,"open",s,{defaultValue:n.defaultOpen,passive:n.open===void 0}),r=N(),{modal:l,dir:i}=Gt(n),u=So(i);return Px({open:o,onOpenChange:c=>{o.value=c},onOpenToggle:()=>{o.value=!o.value},triggerId:"",triggerElement:r,contentId:"",modal:l,dir:u}),(c,d)=>(x(),F(a(Qw),{open:a(o),"onUpdate:open":d[0]||(d[0]=f=>pt(o)?o.value=f:null),dir:a(u),modal:a(l)},{default:y(()=>[ie(c.$slots,"default",{open:a(o)})]),_:3},8,["open","dir","modal"]))}}),$x=Tx,Ix=X({__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 o=It(e,t);Ne();const r=xm(),l=N(!1);function i(u){u.defaultPrevented||(l.value||setTimeout(()=>{var c;(c=r.triggerElement.value)==null||c.focus()},0),l.value=!1,u.preventDefault())}return r.contentId||(r.contentId=Dn(void 0,"reka-dropdown-menu-content")),(u,c)=>{var d;return x(),F(a(cx),Oe(a(o),{id:a(r).contentId,"aria-labelledby":(d=a(r))==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,g=p.button===2||m;(!a(r).modal.value||g)&&(l.value=!0),(w=a(r).triggerElement.value)!=null&&w.contains(f.target)&&f.preventDefault()})}),{default:y(()=>[ie(u.$slots,"default")]),_:3},16,["id","aria-labelledby"])}}}),Mx=Ix,Rx=X({__name:"DropdownMenuItem",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,o=Sr(t);return Ne(),(r,l)=>(x(),F(a(ox),Ot(Tt({...n,...a(o)})),{default:y(()=>[ie(r.$slots,"default")]),_:3},16))}}),Lx=Rx,Dx=X({__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(),F(a(fx),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),Nx=Dx,Fx=X({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Ne(),(n,s)=>(x(),F(a(mx),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),qx=Fx,Bx=X({__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=xm(),{forwardRef:s,currentElement:o}=Ne();return mt(()=>{n.triggerElement=o}),n.triggerId||(n.triggerId=Dn(void 0,"reka-dropdown-menu-trigger")),(r,l)=>(x(),F(a(Kw),{"as-child":""},{default:y(()=>[v(a(Ue),{id:a(n).triggerId,ref:a(s),type:r.as==="button"?"button":void 0,"as-child":t.asChild,as:r.as,"aria-haspopup":"menu","aria-expanded":a(n).open.value,"aria-controls":a(n).open.value?a(n).contentId:void 0,"data-disabled":r.disabled?"":void 0,disabled:r.disabled,"data-state":a(n).open.value?"open":"closed",onClick:l[0]||(l[0]=async i=>{var u;!r.disabled&&i.button===0&&i.ctrlKey===!1&&((u=a(n))==null||u.onOpenToggle(),await yt(),a(n).open.value&&i.preventDefault())}),onKeydown:l[1]||(l[1]=Vs(i=>{r.disabled||(["Enter"," "].includes(i.key)&&a(n).onOpenToggle(),i.key==="ArrowDown"&&a(n).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())},["enter","space","arrow-down"]))},{default:y(()=>[ie(r.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),Vx=Bx;const Ux=[" ","Enter","ArrowUp","ArrowDown"],Hx=[" ","Enter"],dn=10;function mr(e,t,n){return e===void 0?!1:Array.isArray(e)?e.some(s=>fi(s,t,n)):fi(e,t,n)}function fi(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]):dr(e,t)}function jx(e){return e==null||e===""||Array.isArray(e)&&e.length===0}const Wx=["value"],[Ts,km]=$t("SelectRoot");var Kx=X({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:o,disabled:r,multiple:l,dir:i}=Gt(n),u=as(n,"modelValue",s,{defaultValue:n.defaultValue??(l.value?[]:void 0),passive:n.modelValue===void 0,deep:!0}),c=as(n,"open",s,{defaultValue:n.defaultOpen,passive:n.open===void 0}),d=N(),f=N(),p=N({x:0,y:0}),m=te(()=>{var k;return l.value&&Array.isArray(u.value)?((k=u.value)==null?void 0:k.length)===0:ko(u.value)});Os({isProvider:!0});const g=So(i),w=Yp(d),C=N(new Set),h=te(()=>Array.from(C.value).map(k=>k.value).join(";"));function b(k){if(l.value){const R=Array.isArray(u.value)?[...u.value]:[],I=R.findIndex(E=>fi(E,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=>mr(k,R.value,n.by))}return km({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:l,required:o,onOpenChange:k=>{c.value=k},dir:g,triggerPointerDownPosRef:p,disabled:r,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(),F(a(ou),null,{default:y(()=>[ie(k.$slots,"default",{modelValue:a(u),open:a(c)}),a(w)&&k.name?(x(),F(Yx,{key:h.value,"aria-hidden":"true",tabindex:"-1",multiple:a(l),required:a(o),name:k.name,autocomplete:k.autocomplete,disabled:a(r),value:a(u)},{default:y(()=>[a(ko)(a(u))?(x(),G("option",{key:0,value:k.nullableValue},null,8,Wx)):we("v-if",!0),(x(!0),G(Ae,null,ct(Array.from(C.value),I=>(x(),G("option",Oe({key:I.value??""},{ref_for:!0},I),null,16))),128))]),_:1},8,["multiple","required","name","autocomplete","disabled","value"])):we("v-if",!0)]),_:3}))}}),zx=Kx,Gx=X({__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=N(),s=Ts();De(()=>t.value,(r,l)=>{const i=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(i,"value").set;if(r!==l&&c&&n.value){const d=new Event("change",{bubbles:!0});c.call(n.value,r),n.value.dispatchEvent(d)}});function o(r){s.onValueChange(r.target.value)}return(r,l)=>(x(),F(a(nm),{"as-child":""},{default:y(()=>[S("select",Oe({ref_key:"selectElement",ref:n},t,{onInput:o}),[ie(r.$slots,"default")],16)]),_:3}))}}),Yx=Gx,Xx=X({__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,o)=>(x(),F(a(pu),Oe(a(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))}}),Jx=Xx;const Qx={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[Ya,Sm]=$t("SelectContent");var Zx=X({__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,o=Ts();nu(),Na(n.bodyLock);const{CollectionSlot:r,getItems:l}=Os(),i=N();qa(i);const{search:u,handleTypeaheadSearch:c}=su(),d=N(),f=N(),p=N(),m=N(!1),g=N(!1),w=N(!1);function C(){f.value&&i.value&&li([f.value,i.value])}De(m,()=>{C()});const{onOpenChange:h,triggerPointerDownPosRef:b}=o;rs(I=>{if(!i.value)return;let E={x:0,y:0};const M=Y=>{var re,H;E={x:Math.abs(Math.round(Y.pageX)-(((re=b.value)==null?void 0:re.x)??0)),y:Math.abs(Math.round(Y.pageY)-(((H=b.value)==null?void 0:H.y)??0))}},q=Y=>{var re;Y.pointerType!=="touch"&&(E.x<=10&&E.y<=10?Y.preventDefault():(re=i.value)!=null&&re.contains(Y.target)||h(!1),document.removeEventListener("pointermove",M),b.value=null)};b.value!==null&&(document.addEventListener("pointermove",M),document.addEventListener("pointerup",q,{capture:!0,once:!0})),I(()=>{document.removeEventListener("pointermove",M),document.removeEventListener("pointerup",q,{capture:!0})})});function $(I){const E=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!E&&I.key.length===1&&c(I.key,l()),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let q=[...l().map(Y=>Y.ref)];if(["ArrowUp","End"].includes(I.key)&&(q=q.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const Y=I.target,re=q.indexOf(Y);q=q.slice(re+1)}setTimeout(()=>li(q)),I.preventDefault()}}const k=te(()=>n.position==="popper"?n:{}),R=Fa(k.value);return Sm({content:i,viewport:d,onViewportChange:I=>{d.value=I},itemRefCallback:(I,E,M)=>{const q=!g.value&&!M,Y=mr(o.modelValue.value,E,o.by);if(o.multiple.value){if(w.value)return;(Y||q)&&(f.value=I,Y&&(w.value=!0))}else(Y||q)&&(f.value=I);q&&(g.value=!0)},selectedItem:f,selectedItemText:p,onItemLeave:()=>{var I;(I=i.value)==null||I.focus()},itemTextRefCallback:(I,E,M)=>{const q=!g.value&&!M;(mr(o.modelValue.value,E,o.by)||q)&&(p.value=I)},focusSelectedItem:C,position:n.position,isPositioned:m,searchRef:u}),(I,E)=>(x(),F(a(r),null,{default:y(()=>[v(a(Va),{"as-child":"",onMountAutoFocus:E[6]||(E[6]=tn(()=>{},["prevent"])),onUnmountAutoFocus:E[7]||(E[7]=M=>{var q;s("closeAutoFocus",M),!M.defaultPrevented&&((q=a(o).triggerElement.value)==null||q.focus({preventScroll:!0}),M.preventDefault())})},{default:y(()=>[v(a(Ba),{"as-child":"","disable-outside-pointer-events":I.disableOutsidePointerEvents,onFocusOutside:E[2]||(E[2]=tn(()=>{},["prevent"])),onDismiss:E[3]||(E[3]=M=>a(o).onOpenChange(!1)),onEscapeKeyDown:E[4]||(E[4]=M=>s("escapeKeyDown",M)),onPointerDownOutside:E[5]||(E[5]=M=>s("pointerDownOutside",M))},{default:y(()=>[(x(),F(br(I.position==="popper"?Jx:ok),Oe({...I.$attrs,...a(R)},{id:a(o).contentId,ref:M=>{if(!M)return;const q=a(Ln)(M);q!=null&&q.hasAttribute("data-reka-popper-content-wrapper")?i.value=q.firstElementChild:i.value=q},role:"listbox","data-state":a(o).open.value?"open":"closed",dir:a(o).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:E[0]||(E[0]=tn(()=>{},["prevent"])),onPlaced:E[1]||(E[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}))}}),ek=Zx;const[tk,nk]=$t("SelectItemAlignedPosition");var sk=X({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:o}=Os(),r=Ts(),l=Ya(),i=N(!1),u=N(!0),c=N(),{forwardRef:d,currentElement:f}=Ne(),{viewport:p,selectedItem:m,selectedItemText:g,focusSelectedItem:w}=l;function C(){if(r.triggerElement.value&&r.valueElement.value&&c.value&&f.value&&(p!=null&&p.value)&&(m!=null&&m.value)&&(g!=null&&g.value)){const $=r.triggerElement.value.getBoundingClientRect(),k=f.value.getBoundingClientRect(),R=r.valueElement.value.getBoundingClientRect(),I=g.value.getBoundingClientRect();if(r.dir.value!=="rtl"){const qe=I.left-k.left,ot=R.left-qe,Ie=$.left-ot,ut=$.width+Ie,ve=Math.max(ut,k.width),_=window.innerWidth-dn,T=Zc(ot,dn,Math.max(dn,_-ve));c.value.style.minWidth=`${ut}px`,c.value.style.left=`${T}px`}else{const qe=k.right-I.right,ot=window.innerWidth-R.right-qe,Ie=window.innerWidth-$.right-ot,ut=$.width+Ie,ve=Math.max(ut,k.width),_=window.innerWidth-dn,T=Zc(ot,dn,Math.max(dn,_-ve));c.value.style.minWidth=`${ut}px`,c.value.style.right=`${T}px`}const E=o().map(qe=>qe.ref),M=window.innerHeight-dn*2,q=p.value.scrollHeight,Y=window.getComputedStyle(f.value),re=Number.parseInt(Y.borderTopWidth,10),H=Number.parseInt(Y.paddingTop,10),ee=Number.parseInt(Y.borderBottomWidth,10),me=Number.parseInt(Y.paddingBottom,10),J=re+H+q+me+ee,ue=Math.min(m.value.offsetHeight*5,J),de=window.getComputedStyle(p.value),fe=Number.parseInt(de.paddingTop,10),se=Number.parseInt(de.paddingBottom,10),Q=$.top+$.height/2-dn,ce=M-Q,Be=m.value.offsetHeight/2,rt=m.value.offsetTop+Be,at=re+H+rt,nt=J-at;if(at<=Q){const qe=m.value===E.at(-1);c.value.style.bottom="0px";const ot=f.value.clientHeight-p.value.offsetTop-p.value.offsetHeight,Ie=Math.max(ce,Be+(qe?se:0)+ot+ee),ut=at+Ie;c.value.style.height=`${ut}px`}else{const qe=m.value===E[0];c.value.style.top="0px";const Ie=Math.max(Q,re+p.value.offsetTop+(qe?fe:0)+Be)+nt;c.value.style.height=`${Ie}px`,p.value.scrollTop=at-Q+p.value.offsetTop}c.value.style.margin=`${dn}px 0`,c.value.style.minHeight=`${ue}px`,c.value.style.maxHeight=`${M}px`,s("placed"),requestAnimationFrame(()=>i.value=!0)}}const h=N("");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 h1(r.triggerElement,()=>{C()}),nk({contentWrapper:c,shouldExpandOnScrollRef:i,onScrollButtonChange:b}),($,k)=>(x(),G("div",{ref_key:"contentWrapperElement",ref:c,style:vn({display:"flex",flexDirection:"column",position:"fixed",zIndex:h.value})},[v(a(Ue),Oe({ref:a(d),style:{boxSizing:"border-box",maxHeight:"100%"}},{...$.$attrs,...n}),{default:y(()=>[ie($.$slots,"default")]),_:3},16)],4))}}),ok=sk,rk=X({inheritAttrs:!1,__name:"SelectProvider",props:{context:{type:Object,required:!0}},setup(e){return km(e.context),Sm(Qx),(n,s)=>ie(n.$slots,"default")}}),ak=rk;const lk={key:1};var ik=X({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,o=It(n,t),r=Ts(),l=N();mt(()=>{l.value=new DocumentFragment});const i=N(),u=te(()=>n.forceMount||r.open.value),c=N(u.value);let d;function f(){d&&(clearTimeout(d),d=void 0)}return De(u,(p,m,g)=>{f(),d=setTimeout(()=>{c.value=u.value,d=void 0}),g(f)}),bn(f),(p,m)=>{var g;return u.value||c.value||(g=i.value)!=null&&g.present?(x(),F(a(Js),{key:0,ref_key:"presenceRef",ref:i,present:u.value},{default:y(()=>[v(ek,Ot(Tt({...a(o),...p.$attrs})),{default:y(()=>[ie(p.$slots,"default")]),_:3},16)]),_:3},8,["present"])):l.value?(x(),G("div",lk,[(x(),F(Mi,{to:l.value},[v(ak,{context:a(r)},{default:y(()=>[ie(p.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):we("v-if",!0)}}}),uk=ik,ck=X({__name:"SelectIcon",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,n)=>(x(),F(a(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"]))}}),dk=ck;const[Cm,fk]=$t("SelectItem");var pk=X({__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:o}=Gt(n),r=Ts(),l=Ya(),{forwardRef:i,currentElement:u}=Ne(),{CollectionItem:c}=Os(),d=te(()=>{var k;return mr((k=r.modelValue)==null?void 0:k.value,n.value,r.by)}),f=N(!1),p=N(n.textValue??""),m=Dn(void 0,"reka-select-item-text"),g="select.select";async function w(k){if(k.defaultPrevented)return;const R={originalEvent:k,value:n.value};Zi(g,C,R)}async function C(k){await yt(),s("select",k),!k.defaultPrevented&&(o.value||(r.onValueChange(n.value),r.multiple.value||r.onOpenChange(!1)))}async function h(k){var R,I;await yt(),!k.defaultPrevented&&(o.value?(R=l.onItemLeave)==null||R.call(l):(I=k.currentTarget)==null||I.focus({preventScroll:!0}))}async function b(k){var R;await yt(),!k.defaultPrevented&&k.currentTarget===Ct()&&((R=l.onItemLeave)==null||R.call(l))}async function $(k){var I;await yt(),!(k.defaultPrevented||((I=l.searchRef)==null?void 0:I.value)!==""&&k.key===" ")&&(Hx.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&&l.itemRefCallback(u.value,n.value,n.disabled)}),fk({value:n.value,disabled:o,textId:m,isSelected:d,onItemTextChange:k=>{p.value=((p.value||(k==null?void 0:k.textContent))??"").trim()}}),(k,R)=>(x(),F(a(c),{value:{textValue:p.value}},{default:y(()=>[v(a(Ue),{ref:a(i),role:"option","aria-labelledby":a(m),"data-highlighted":f.value?"":void 0,"aria-selected":d.value,"data-state":d.value?"checked":"unchecked","aria-disabled":a(o)||void 0,"data-disabled":a(o)?"":void 0,tabindex:a(o)?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]=tn(()=>{},["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"]))}}),mk=pk,hk=X({__name:"SelectItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=Cm();return(s,o)=>a(n).isSelected.value?(x(),F(a(Ue),Oe({key:0,"aria-hidden":"true"},t),{default:y(()=>[ie(s.$slots,"default")]),_:3},16)):we("v-if",!0)}}),vk=hk,gk=X({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=Ts(),s=Ya(),o=Cm(),{forwardRef:r,currentElement:l}=Ne(),i=te(()=>{var u,c;return{value:o.value,disabled:o.disabled.value,textContent:((u=l.value)==null?void 0:u.textContent)??((c=o.value)==null?void 0:c.toString())??""}});return mt(()=>{l.value&&(o.onItemTextChange(l.value),s.itemTextRefCallback(l.value,o.value,o.disabled.value),n.onOptionAdd(i.value))}),bn(()=>{n.onOptionRemove(i.value)}),(u,c)=>(x(),F(a(Ue),Oe({id:a(o).textId,ref:a(r)},{...t,...u.$attrs}),{default:y(()=>[ie(u.$slots,"default")]),_:3},16,["id"]))}}),yk=gk,bk=X({__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(),F(a(Ua),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),_k=bk,wk=X({__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=Ts(),{forwardRef:s,currentElement:o}=Ne(),r=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(o.value)});const{getItems:l}=Os(),{search:i,handleTypeaheadSearch:u,resetTypeahead:c}=su();function d(){r.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 g(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(),F(a(ru),{"as-child":"",reference:h.reference},{default:y(()=>{var $,k,R,I;return[v(a(Ue),{ref:a(s),role:"combobox",type:h.as==="button"?"button":void 0,"aria-controls":a(n).contentId,"aria-expanded":a(n).open.value||!1,"aria-required":($=a(n).required)==null?void 0:$.value,"aria-autocomplete":"none",disabled:r.value,dir:(k=a(n))==null?void 0:k.dir.value,"data-state":(R=a(n))!=null&&R.open.value?"open":"closed","data-disabled":r.value?"":void 0,"data-placeholder":a(jx)((I=a(n).modelValue)==null?void 0:I.value)?"":void 0,"as-child":h.asChild,as:h.as,onClick:C,onPointerdown:g,onMousedown:w,onPointerup:b[0]||(b[0]=tn(E=>{E.pointerType==="touch"&&f(E)},["prevent"])),onKeydown:b[1]||(b[1]=E=>{const M=a(i)!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&M&&E.key===" "||(a(u)(E.key,a(l)()),a(Ux).includes(E.key)&&(d(),E.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"]))}}),xk=wk,kk=X({__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}=Ne(),o=Ts();mt(()=>{o.valueElement=s});const r=te(()=>{var d;let i=[];const u=Array.from(o.optionsSet.value),c=f=>u.find(p=>mr(f,p.value,o.by));return Array.isArray(o.modelValue.value)?i=o.modelValue.value.map(f=>{var p;return((p=c(f))==null?void 0:p.textContent)??""}):i=[((d=c(o.modelValue.value))==null?void 0:d.textContent)??""],i.filter(Boolean)}),l=te(()=>r.value.length?r.value.join(", "):t.placeholder);return(i,u)=>(x(),F(a(Ue),{ref:a(n),as:i.as,"as-child":i.asChild,style:{pointerEvents:"none"},"data-placeholder":r.value.length?void 0:t.placeholder},{default:y(()=>[ie(i.$slots,"default",{selectedLabel:r.value,modelValue:a(o).modelValue.value},()=>[K(A(l.value),1)])]),_:3},8,["as","as-child","data-placeholder"]))}}),Sk=kk,Ck=X({__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}=Gt(t),s=Mw(n),o=Ya(),r=o.position==="item-aligned"?tk():void 0,{forwardRef:l,currentElement:i}=Ne();mt(()=>{o==null||o.onViewportChange(i.value)});const u=N(0);function c(d){const f=d.currentTarget,{shouldExpandOnScrollRef:p,contentWrapper:m}=r??{};if(p!=null&&p.value&&(m!=null&&m.value)){const g=Math.abs(u.value-f.scrollTop);if(g>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+g,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(),G(Ae,null,[v(a(Ue),Oe({ref:a(l),"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),v(a(Ue),{as:"style",nonce:a(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))}}),Ak=Ck,Ek=X({__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 o=te(()=>s(t.orientation)?t.orientation:"horizontal"),r=te(()=>o.value==="vertical"?t.orientation:void 0),l=te(()=>t.decorative?{role:"none"}:{"aria-orientation":r.value,role:"separator"});return(i,u)=>(x(),F(a(Ue),Oe({as:i.as,"as-child":i.asChild,"data-orientation":o.value},l.value),{default:y(()=>[ie(i.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),Ok=Ek,Pk=X({__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(),F(Ok,Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),Tk=Pk;const[vu,$k]=$t("TabsRoot");var Ik=X({__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:o,unmountOnHide:r,dir:l}=Gt(n),i=So(l);Ne();const u=as(n,"modelValue",s,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),c=N(),d=Oa(new Set);return $k({modelValue:u,changeModelValue:f=>{u.value=f},orientation:o,dir:i,unmountOnHide:r,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(),F(a(Ue),{dir:a(i),"data-orientation":a(o),"as-child":f.asChild,as:f.as},{default:y(()=>[ie(f.$slots,"default",{modelValue:a(u)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),Mk=Ik;function Am(e,t){return`${e}-trigger-${t}`}function Em(e,t){return`${e}-content-${t}`}var Rk=X({__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}=Ne(),s=vu(),o=te(()=>Am(s.baseId,t.value)),r=te(()=>Em(s.baseId,t.value)),l=te(()=>t.value===s.modelValue.value),i=N(l.value);return mt(()=>{s.registerContent(t.value),requestAnimationFrame(()=>{i.value=!1})}),$a(()=>{s.unregisterContent(t.value)}),(u,c)=>(x(),F(a(Js),{present:u.forceMount||l.value,"force-mount":""},{default:y(({present:d})=>[v(a(Ue),{id:r.value,ref:a(n),"as-child":u.asChild,as:u.as,role:"tabpanel","data-state":l.value?"active":"inactive","data-orientation":a(s).orientation.value,"aria-labelledby":o.value,hidden:!d,tabindex:"0",style:vn({animationDuration:i.value?"0s":void 0})},{default:y(()=>[!a(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"]))}}),Lk=Rk,Dk=X({__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}=Gt(t),{forwardRef:s,currentElement:o}=Ne(),r=vu();return r.tabsList=o,(l,i)=>(x(),F(a(vm),{"as-child":"",orientation:a(r).orientation.value,dir:a(r).dir.value,loop:a(n)},{default:y(()=>[v(a(Ue),{ref:a(s),role:"tablist","as-child":l.asChild,as:l.as,"aria-orientation":a(r).orientation.value},{default:y(()=>[ie(l.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),Nk=Dk,Fk=X({__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}=Ne(),s=vu(),o=te(()=>Am(s.baseId,t.value)),r=te(()=>s.contentIds.value.has(t.value)?Em(s.baseId,t.value):void 0),l=te(()=>t.value===s.modelValue.value);return(i,u)=>(x(),F(a(gm),{"as-child":"",focusable:!i.disabled,active:l.value},{default:y(()=>[v(a(Ue),{id:o.value,ref:a(n),role:"tab",type:i.as==="button"?"button":void 0,as:i.as,"as-child":i.asChild,"aria-selected":l.value?"true":"false","aria-controls":r.value,"data-state":l.value?"active":"inactive",disabled:i.disabled,"data-disabled":i.disabled?"":void 0,"data-orientation":a(s).orientation.value,onMousedown:u[0]||(u[0]=tn(c=>{!i.disabled&&c.ctrlKey===!1?a(s).changeModelValue(i.value):c.preventDefault()},["left"])),onKeydown:u[1]||(u[1]=Vs(c=>a(s).changeModelValue(i.value),["enter","space"])),onFocus:u[2]||(u[2]=()=>{const c=a(s).activationMode!=="manual";!l.value&&!i.disabled&&c&&a(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"]))}}),qk=Fk;const pi=X({__name:"DropdownMenu",props:{defaultOpen:{type:Boolean},open:{type:Boolean},dir:{},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const o=It(e,t);return(r,l)=>(x(),F(a($x),Ot(Tt(a(o))),{default:y(()=>[ie(r.$slots,"default")]),_:3},16))}}),mi=X({__name:"DropdownMenuTrigger",setup(e){return(t,n)=>(x(),F(a(Vx),{"as-child":""},{default:y(()=>[ie(t.$slots,"default")]),_:3}))}}),hi=X({__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,o=te(()=>{const{class:l,...i}=n;return i}),r=It(o,s);return(l,i)=>(x(),F(a(Nx),null,{default:y(()=>[v(a(Mx),Oe(a(r),{class:a(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(l.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),jn=X({__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,o=te(()=>{const{class:l,inset:i,...u}=n;return u}),r=It(o,s);return(l,i)=>(x(),F(a(Lx),Oe(a(r),{"data-inset":e.inset?"":void 0,class:a(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(l.$slots,"default")]),_:3},16,["data-inset","class"]))}}),vi=X({__name:"DropdownMenuSeparator",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),F(a(qx),{class:xe(a(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 Bk=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 bd=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 Vk=(...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 _d=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 Uk=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 Hk=e=>{const t=Uk(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 Do={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 jk=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":s,strokeWidth:o,"stroke-width":r,size:l=Do.width,color:i=Do.stroke,...u},{slots:c})=>en("svg",{...Do,...u,width:l,height:l,stroke:i,"stroke-width":bd(n)||bd(s)||n===!0||s===!0?Number(o||r||Do["stroke-width"])*24/Number(l):o||r||Do["stroke-width"],class:Vk("lucide",u.class,...e?[`lucide-${_d(Hk(e))}-icon`,`lucide-${_d(e)}`]:["lucide-icon"]),...!c.default&&!Bk(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 Re=(e,t)=>(n,{slots:s,attrs:o})=>en(jk,{...o,...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 Om=Re("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 Pm=Re("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=Re("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 Xa=Re("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 gi=Re("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 Wk=Re("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 Kk=Re("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 Jn=Re("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 Tm=Re("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 yi=Re("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 ma=Re("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 ha=Re("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 $m=Re("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 zo=Re("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 zk=Re("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 Im=Re("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 Gk=Re("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 Yk=Re("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=Re("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 Xk=Re("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 Jk=Re("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 Qk=Re("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 Zk=Re("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 eS=Re("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 Mm=Re("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 tS=Re("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 Rm=Re("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 ts=Re("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 hr=Re("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 nS=Re("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 Lm=Re("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 bi=Re("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 sS=Re("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 oS=Re("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 El=Re("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 _i=Re("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 rS=Re("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 aS=Re("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 gu=Re("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 Vr=Re("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"}]]),Ja=X({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean},unmountOnHide:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const o=It(e,t);return(r,l)=>(x(),F(a(R1),Ot(Tt(a(o))),{default:y(()=>[ie(r.$slots,"default")]),_:3},16))}}),Qa=X({__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,o=te(()=>{const{class:l,...i}=n;return i}),r=It(o,s);return(l,i)=>(x(),F(a(h0),null,{default:y(()=>[v(a(f0),{class:"fixed inset-0 z-50 bg-black/80"}),v(a(a0),Oe(a(r),{class:a(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(l.$slots,"default"),v(a(D1),{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(()=>[v(a(gu),{class:"h-4 w-4"}),i[0]||(i[0]=S("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),Za=X({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),F(a(g0),{class:xe(a(Ge)("text-lg font-semibold leading-none tracking-tight",t.class))},{default:y(()=>[ie(n.$slots,"default")]),_:3},8,["class"]))}}),el=X({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),F(a(i0),{class:xe(a(Ge)("text-sm text-muted-foreground",t.class))},{default:y(()=>[ie(n.$slots,"default")]),_:3},8,["class"]))}}),Wn=X({__name:"Checkbox",props:_s({class:{type:[Boolean,null,String,Object,Array]},id:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=_r(e,"modelValue");return(s,o)=>(x(),F(a(Uw),{modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=r=>n.value=r),id:t.id,class:xe(a(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(()=>[v(a(jw),{class:"flex h-full w-full items-center justify-center text-current"},{default:y(()=>[v(a(Xn),{class:"h-3.5 w-3.5"})]),_:1})]),_:1},8,["modelValue","id","class"]))}}),wi=X({__name:"Separator",props:{class:{type:[Boolean,null,String,Object,Array]},orientation:{}},setup(e){const t=e;return(n,s)=>(x(),F(a(Tk),{orientation:t.orientation??"horizontal",class:xe(a(Ge)("shrink-0 bg-border",t.orientation==="vertical"?"h-full w-px":"h-px w-full",t.class))},null,8,["orientation","class"]))}}),lS={class:"flex gap-3 pr-8"},iS={key:0,class:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-destructive/15 text-destructive"},uS={class:"min-w-0 flex-1 space-y-1.5"},cS={class:"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end"},yu=X({__name:"ConfirmDialog",props:_s({title:{},description:{},confirmText:{default:""},cancelText:{default:""},variant:{default:"default"},loading:{type:Boolean,default:!1}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:_s(["confirm"],["update:open"]),setup(e,{emit:t}){const{t:n}=Ht(),s=_r(e,"open"),o=t;return(r,l)=>(x(),F(a(Ja),{open:s.value,"onUpdate:open":l[2]||(l[2]=i=>s.value=i)},{default:y(()=>[v(a(Qa),{class:"max-w-sm"},{default:y(()=>[S("div",lS,[e.variant==="destructive"?(x(),G("span",iS,[v(a(rS),{class:"h-4 w-4"})])):we("",!0),S("div",uS,[v(a(Za),{class:"text-base leading-tight"},{default:y(()=>[K(A(e.title),1)]),_:1}),e.description?(x(),F(a(el),{key:0},{default:y(()=>[K(A(e.description),1)]),_:1})):we("",!0)])]),S("div",cS,[v(a(Pe),{variant:"outline",disabled:e.loading,onClick:l[0]||(l[0]=i=>s.value=!1)},{default:y(()=>[K(A(e.cancelText||a(n)("common.cancel")),1)]),_:1},8,["disabled"]),v(a(Pe),{variant:e.variant,disabled:e.loading,onClick:l[1]||(l[1]=i=>o("confirm"))},{default:y(()=>[e.loading?(x(),F(a(_t),{key:0,class:"h-4 w-4 animate-spin"})):we("",!0),K(" "+A(e.confirmText||a(n)("common.confirm")),1)]),_:1},8,["variant","disabled"])])]),_:1})]),_:1},8,["open"]))}}),dS={class:"flex items-center gap-2 pr-8"},fS={class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-primary/15 text-primary"},pS={class:"min-w-0"},mS={key:0,class:"py-4 text-center text-sm text-muted-foreground"},hS={key:1,class:"py-4 text-center text-sm text-destructive"},vS={class:"space-y-1"},gS={key:0,class:"space-y-1.5 rounded-md border bg-muted/30 p-3 text-xs leading-relaxed text-muted-foreground"},yS={key:3,class:"space-y-3 rounded-lg border bg-muted/30 p-4"},bS={class:"space-y-1.5"},_S={class:"text-xs font-medium text-muted-foreground"},wS={class:"space-y-1.5"},xS={class:"text-xs font-medium text-muted-foreground"},kS={class:"space-y-3 rounded-md border bg-background/50 p-3"},SS={class:"space-y-2"},CS={class:"flex items-center gap-2.5"},AS={class:"flex items-center gap-2.5 pl-7"},ES={class:"flex items-center gap-2.5"},OS={class:"text-xs text-muted-foreground"},PS={key:0,class:"space-y-1.5"},TS={class:"text-xs font-medium text-muted-foreground"},$S={class:"text-xs text-muted-foreground"},IS={key:1,class:"space-y-1.5"},MS={class:"text-xs font-medium text-muted-foreground"},RS={class:"text-xs text-muted-foreground"},LS={class:"space-y-1.5"},DS={class:"text-xs font-medium text-muted-foreground"},NS={key:2,class:"text-sm text-destructive"},FS={class:"flex justify-end gap-2"},qS={key:4,class:"space-y-2"},BS={key:0,class:"flex items-center gap-3"},VS={class:"min-w-0 flex-1"},US={class:"flex items-center gap-2"},HS={class:"truncate font-medium"},jS={key:0,class:"mt-0.5 truncate font-mono text-xs text-muted-foreground"},WS={key:1,class:"mt-0.5 truncate font-mono text-xs text-muted-foreground"},KS={key:1,class:"space-y-3"},zS={class:"space-y-1.5"},GS={class:"text-xs font-medium text-muted-foreground"},YS={class:"space-y-1.5"},XS={class:"text-xs font-medium text-muted-foreground"},JS={class:"space-y-3 rounded-md border bg-background/50 p-3"},QS={class:"space-y-2"},ZS={class:"flex items-center gap-2.5"},eC={class:"flex items-center gap-2.5 pl-7"},tC={class:"flex items-center gap-2.5"},nC={key:0,class:"space-y-1.5"},sC={class:"text-xs font-medium text-muted-foreground"},oC={class:"text-xs text-muted-foreground"},rC={key:1,class:"space-y-1.5"},aC={class:"text-xs font-medium text-muted-foreground"},lC={class:"text-xs text-muted-foreground"},iC={class:"space-y-1.5"},uC={class:"flex items-center justify-between"},cC={class:"text-xs font-medium text-muted-foreground"},dC={key:0,class:"text-xs text-muted-foreground"},fC={class:"space-y-1.5"},pC={class:"text-xs font-medium text-muted-foreground"},mC={class:"text-xs text-muted-foreground"},hC={class:"flex justify-end gap-2"},vC=X({__name:"SourcesDialog",props:{open:{type:Boolean,default:!1},openModifiers:{}},emits:_s(["changed"],["update:open"]),setup(e,{emit:t}){const{t:n}=Ht(),s=_r(e,"open"),o=t,r=N([]),l=N(!1),i=N(""),u=N(""),c=N(""),d=N(""),f=N(""),p=N(!0),m=N(!1),g=N(!1),w=N(!1),C=N(""),h=N(!1),b=N(!1),$=N(null),k=N(""),R=N(""),I=N(""),E=N(""),M=N(""),q=N(!0),Y=N(!1),re=N(!1),H=N(!1),ee=N({}),me=N(null),J=N(!1),ue=N(!1);async function de(){l.value=!0,i.value="";try{const ve=await Fe("GET","/admin/providers");r.value=ve.providers}catch(ve){i.value=ve.message}finally{l.value=!1}}De(s,ve=>{ve&&de()});function fe(ve,_){const T=ve==="new"?p:q,W=ve==="new"?m:Y;if(_==="openai"){if(T.value&&!W.value)return;T.value=!T.value}else{if(W.value&&!T.value)return;W.value=!W.value}}function se(ve){const _=[];return(ve==="new"?p:q).value&&_.push("openai"),(ve==="new"?m:Y).value&&_.push("anthropic"),_}async function Q(){if(w.value)return;C.value="";const ve=se("new");if(!u.value||!f.value){C.value=n("sources.errRequired");return}if(!ve.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 Fe("POST","/admin/providers",{name:u.value,baseUrlOpenai:c.value,baseUrlAnthropic:d.value,apiKey:f.value,formats:ve,supportsResponses:p.value&&g.value});r.value=[...r.value,_.provider],u.value=f.value="",c.value=d.value="",g.value=!1,h.value=!1,$e(n("sources.added"),"success"),o("changed")}catch(_){$e(_.message,"error")}finally{w.value=!1}}function ce(ve){$.value=ve.id,k.value=ve.name,R.value=ve.baseUrlOpenai,I.value=ve.baseUrlAnthropic,E.value="",M.value=ve.rpm?String(ve.rpm):"",q.value=ve.formats.includes("openai"),Y.value=ve.formats.includes("anthropic"),re.value=!!ve.supportsResponses}function Be(){$.value=null}async function rt(ve){if(H.value)return;const _=se("edit");if(!k.value){$e(n("sources.errRequired"),"error");return}if(!_.length){$e(n("sources.errFormat"),"error");return}if(q.value&&!R.value||Y.value&&!I.value){$e(n("sources.errBaseUrl"),"error");return}H.value=!0;try{const T={name:k.value,baseUrlOpenai:R.value,baseUrlAnthropic:I.value,formats:_,supportsResponses:q.value&&re.value,rpm:Number(M.value)||0};E.value&&(T.apiKey=E.value);const W=await Fe("PUT",`/admin/providers/${ve.id}`,T);r.value=r.value.map(le=>le.id===ve.id?W.provider:le),$.value=null,$e(n("sources.updated"),"success"),o("changed")}catch(T){$e(T.message,"error")}finally{H.value=!1}}async function at(ve){ee.value[ve.id]=!0;try{const _=await Fe("POST",`/admin/providers/${ve.id}/discover`);r.value=r.value.map(T=>T.id===ve.id?{...T,discoveredModels:_.models}:T),$e(n("sources.refreshDone",{name:ve.name}),_.models.length?"success":"default"),o("changed")}catch(_){$e(_.message,"error")}finally{ee.value[ve.id]=!1}}function nt(ve){me.value=ve,J.value=!0}async function Ye(){const ve=me.value;if(!(!ve||ue.value)){ue.value=!0;try{await Fe("DELETE",`/admin/providers/${ve.id}`),r.value=r.value.filter(_=>_.id!==ve.id),$e(n("sources.removed",{name:ve.name}),"success"),o("changed"),J.value=!1}catch(_){$e(_.message,"error")}finally{ue.value=!1}}}function qe(ve){var _;return((_=ve.discoveredModels)==null?void 0:_.length)??0}function ot(ve){return qe(ve)>0?"found":ve.discoveredAt?"empty":"never"}function Ie(ve){const _=ot(ve);return _==="found"?n("sources.discoveredCount",{n:qe(ve)}):n(_==="empty"?"sources.noModelsFound":"sources.notScanned")}function ut(ve){const _=ot(ve);return _==="empty"?n("sources.noModelsHint"):_==="never"?n("sources.notScannedHint"):""}return(ve,_)=>(x(),G(Ae,null,[v(a(Ja),{open:s.value,"onUpdate:open":_[18]||(_[18]=T=>s.value=T)},{default:y(()=>[v(a(Qa),{class:"max-w-xl"},{default:y(()=>[S("div",dS,[S("span",fS,[v(a(bi),{class:"h-4 w-4"})]),S("div",pS,[v(a(Za),{class:"text-base"},{default:y(()=>[K(A(a(n)("sources.manage")),1)]),_:1}),v(a(el),null,{default:y(()=>[K(A(a(n)("sources.subtitle")),1)]),_:1})])]),l.value?(x(),G("p",mS,A(a(n)("common.loading")),1)):i.value?(x(),G("p",hS,A(i.value),1)):we("",!0),S("div",vS,[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)},[v(a(Im),{class:"h-3.5 w-3.5"}),K(" "+A(a(n)("sources.baseHelpToggle"))+" ",1),v(a(Xa),{class:xe(["h-3.5 w-3.5 transition-transform",{"rotate-180":b.value}])},null,8,["class"])]),b.value?(x(),G("div",gS,[S("p",null,A(a(n)("sources.baseHelpSplit")),1),S("p",null,[_[20]||(_[20]=S("span",{class:"font-medium text-foreground"},"openai",-1)),K(" — "+A(a(n)("sources.baseHelpOpenai")),1)]),S("p",null,[_[21]||(_[21]=S("span",{class:"font-medium text-foreground"},"anthropic",-1)),K(" — "+A(a(n)("sources.baseHelpAnthropic")),1)])])):we("",!0)]),!h.value&&r.value.length?(x(),F(a(Pe),{key:2,variant:"outline",class:"w-full justify-center",onClick:_[1]||(_[1]=T=>h.value=!0)},{default:y(()=>[v(a(ts),{class:"h-4 w-4"}),K(A(a(n)("sources.add")),1)]),_:1})):(x(),G("div",yS,[S("div",bS,[S("label",_S,A(a(n)("sources.nameLabel")),1),v(a(bt),{modelValue:u.value,"onUpdate:modelValue":_[2]||(_[2]=T=>u.value=T),placeholder:a(n)("sources.namePh"),autocomplete:"off","aria-label":"name"},null,8,["modelValue","placeholder"])]),S("div",wS,[S("label",xS,A(a(n)("sources.formats")),1),S("div",kS,[S("div",SS,[S("div",CS,[v(a(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",AS,[v(a(Wn),{modelValue:g.value,"onUpdate:modelValue":_[4]||(_[4]=T=>g.value=T),disabled:!p.value,"aria-label":a(n)("sources.responses")},null,8,["modelValue","disabled","aria-label"]),S("span",{class:xe(["text-sm leading-none",p.value?"":"text-muted-foreground"])},A(a(n)("sources.responses")),3),_[24]||(_[24]=S("span",{class:"text-xs text-muted-foreground"},"/responses",-1))])]),v(a(wi)),S("div",ES,[v(a(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",OS,A(a(n)("sources.addHint")),1)]),p.value?(x(),G("div",PS,[S("label",TS,A(a(n)("sources.urlLabelOpenai")),1),v(a(bt),{modelValue:c.value,"onUpdate:modelValue":_[6]||(_[6]=T=>c.value=T),placeholder:a(n)("sources.urlPhOpenai"),autocomplete:"off","aria-label":"openai base url"},null,8,["modelValue","placeholder"]),S("p",$S,A(a(n)("sources.urlHintOpenai")),1)])):we("",!0),m.value?(x(),G("div",IS,[S("label",MS,A(a(n)("sources.urlLabelAnthropic")),1),v(a(bt),{modelValue:d.value,"onUpdate:modelValue":_[7]||(_[7]=T=>d.value=T),placeholder:a(n)("sources.urlPhAnthropic"),autocomplete:"off","aria-label":"anthropic base url"},null,8,["modelValue","placeholder"]),S("p",RS,A(a(n)("sources.urlHintAnthropic")),1)])):we("",!0),S("div",LS,[S("label",DS,A(a(n)("sources.keyLabel")),1),v(a(bt),{modelValue:f.value,"onUpdate:modelValue":_[8]||(_[8]=T=>f.value=T),type:"password",placeholder:a(n)("sources.keyPh"),autocomplete:"new-password","aria-label":"api key"},null,8,["modelValue","placeholder"])]),C.value?(x(),G("p",NS,A(C.value),1)):we("",!0),S("div",FS,[r.value.length?(x(),F(a(Pe),{key:0,variant:"ghost",size:"sm",onClick:_[9]||(_[9]=T=>h.value=!1)},{default:y(()=>[K(A(a(n)("sources.cancel")),1)]),_:1})):we("",!0),v(a(Pe),{size:"sm",disabled:w.value,onClick:Q},{default:y(()=>[w.value?(x(),F(a(_t),{key:0,class:"h-4 w-4 animate-spin"})):(x(),F(a(ts),{key:1,class:"h-4 w-4"})),K(A(a(n)("sources.addBtn")),1)]),_:1},8,["disabled"])])])),r.value.length?(x(),G("div",qS,[(x(!0),G(Ae,null,ct(r.value,T=>(x(),G("div",{key:T.id,class:"rounded-lg border p-3"},[$.value!==T.id?(x(),G("div",BS,[S("div",VS,[S("div",US,[S("span",HS,A(T.name),1),(x(!0),G(Ae,null,ct(T.formats,W=>(x(),F(a(gt),{key:W,variant:"secondary"},{default:y(()=>[K(A(W),1)]),_:2},1024))),128)),T.rpm?(x(),F(a(gt),{key:0,variant:"outline",title:a(n)("sources.rpmBadgeHint")},{default:y(()=>[K(A(a(n)("sources.rpmBadge",{n:T.rpm})),1)]),_:2},1032,["title"])):we("",!0),v(a(gt),{variant:"muted",title:ut(T)},{default:y(()=>[K(A(Ie(T)),1)]),_:2},1032,["title"])]),T.formats.includes("openai")?(x(),G("div",jS,[_[27]||(_[27]=S("span",{class:"opacity-60"},"openai ·",-1)),K(" "+A(T.baseUrlOpenai),1)])):we("",!0),T.formats.includes("anthropic")?(x(),G("div",WS,[_[28]||(_[28]=S("span",{class:"opacity-60"},"anthropic ·",-1)),K(" "+A(T.baseUrlAnthropic),1)])):we("",!0)]),v(a(pi),null,{default:y(()=>[v(a(mi),null,{default:y(()=>[v(a(Pe),{variant:"ghost",size:"icon",class:"h-8 w-8","aria-label":a(n)("sources.moreActions")},{default:y(()=>[v(a(yi),{class:"h-4 w-4"})]),_:1},8,["aria-label"])]),_:1}),v(a(hi),{align:"end"},{default:y(()=>[v(a(jn),{disabled:ee.value[T.id],onSelect:W=>at(T)},{default:y(()=>[ee.value[T.id]?(x(),F(a(_t),{key:0,class:"animate-spin"})):(x(),F(a(hr),{key:1})),K(" "+A(a(n)("sources.refreshModels")),1)]),_:2},1032,["disabled","onSelect"]),v(a(jn),{onSelect:W=>ce(T)},{default:y(()=>[v(a(Mm)),K(" "+A(a(n)("sources.editLabel")),1)]),_:1},8,["onSelect"]),v(a(vi)),v(a(jn),{class:"text-destructive focus:bg-destructive/10 focus:text-destructive",onSelect:W=>nt(T)},{default:y(()=>[v(a(_i)),K(" "+A(a(n)("sources.deleteLabel")),1)]),_:1},8,["onSelect"])]),_:2},1024)]),_:2},1024)])):(x(),G("div",KS,[S("div",zS,[S("label",GS,A(a(n)("sources.nameLabel")),1),v(a(bt),{modelValue:k.value,"onUpdate:modelValue":_[10]||(_[10]=W=>k.value=W),placeholder:a(n)("sources.namePh"),autocomplete:"off","aria-label":"name"},null,8,["modelValue","placeholder"])]),S("div",YS,[S("label",XS,A(a(n)("sources.formats")),1),S("div",JS,[S("div",QS,[S("div",ZS,[v(a(Wn),{"model-value":q.value,disabled:q.value&&!Y.value,"aria-label":"openai","onUpdate:modelValue":_[11]||(_[11]=W=>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",eC,[v(a(Wn),{modelValue:re.value,"onUpdate:modelValue":_[12]||(_[12]=W=>re.value=W),disabled:!q.value,"aria-label":a(n)("sources.responses")},null,8,["modelValue","disabled","aria-label"]),S("span",{class:xe(["text-sm leading-none",q.value?"":"text-muted-foreground"])},A(a(n)("sources.responses")),3),_[31]||(_[31]=S("span",{class:"text-xs text-muted-foreground"},"/responses",-1))])]),v(a(wi)),S("div",tC,[v(a(Wn),{"model-value":Y.value,disabled:Y.value&&!q.value,"aria-label":"anthropic","onUpdate:modelValue":_[13]||(_[13]=W=>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))])])]),q.value?(x(),G("div",nC,[S("label",sC,A(a(n)("sources.urlLabelOpenai")),1),v(a(bt),{modelValue:R.value,"onUpdate:modelValue":_[14]||(_[14]=W=>R.value=W),placeholder:a(n)("sources.urlPhOpenai"),autocomplete:"off","aria-label":"openai base url"},null,8,["modelValue","placeholder"]),S("p",oC,A(a(n)("sources.urlHintOpenai")),1)])):we("",!0),Y.value?(x(),G("div",rC,[S("label",aC,A(a(n)("sources.urlLabelAnthropic")),1),v(a(bt),{modelValue:I.value,"onUpdate:modelValue":_[15]||(_[15]=W=>I.value=W),placeholder:a(n)("sources.urlPhAnthropic"),autocomplete:"off","aria-label":"anthropic base url"},null,8,["modelValue","placeholder"]),S("p",lC,A(a(n)("sources.urlHintAnthropic")),1)])):we("",!0),S("div",iC,[S("div",uC,[S("label",cC,A(a(n)("sources.keyLabel")),1),T.apiKey?(x(),G("span",dC,A(a(n)("sources.currentKeyLabel"))+": "+A(T.apiKey),1)):we("",!0)]),v(a(bt),{modelValue:E.value,"onUpdate:modelValue":_[16]||(_[16]=W=>E.value=W),type:"password",placeholder:a(n)("sources.keyPhEdit"),autocomplete:"new-password","aria-label":"api key"},null,8,["modelValue","placeholder"])]),S("div",fC,[S("label",pC,A(a(n)("sources.rpmLabel")),1),v(a(bt),{modelValue:M.value,"onUpdate:modelValue":_[17]||(_[17]=W=>M.value=W),type:"number",min:"0",inputmode:"numeric",placeholder:a(n)("sources.rpmPh"),"aria-label":"rpm"},null,8,["modelValue","placeholder"]),S("p",mC,A(a(n)("sources.rpmHint")),1)]),S("div",hC,[v(a(Pe),{variant:"ghost",size:"sm",onClick:Be},{default:y(()=>[K(A(a(n)("sources.cancel")),1)]),_:1}),v(a(Pe),{size:"sm",disabled:H.value,onClick:W=>rt(T)},{default:y(()=>[H.value?(x(),F(a(_t),{key:0,class:"h-4 w-4 animate-spin"})):we("",!0),K(A(a(n)("sources.saveBtn")),1)]),_:1},8,["disabled","onClick"])])]))]))),128))])):we("",!0)]),_:1})]),_:1},8,["open"]),v(yu,{open:J.value,"onUpdate:open":_[19]||(_[19]=T=>J.value=T),variant:"destructive",title:a(n)("sources.remove"),description:me.value?a(n)("sources.confirmRemove",{name:me.value.name}):"","confirm-text":a(n)("sources.remove"),loading:ue.value,onConfirm:Ye},null,8,["open","title","description","confirm-text","loading"])],64))}}),Go=X({__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 o=It(e,t);return(r,l)=>(x(),F(a(zx),Ot(Tt(a(o))),{default:y(()=>[ie(r.$slots,"default")]),_:3},16))}}),Yo=X({__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,...o}=t;return o});return(s,o)=>(x(),F(a(xk),Oe(n.value,{class:a(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"),v(a(dk),{"as-child":""},{default:y(()=>[v(a(Xa),{class:"h-4 w-4 opacity-50"})]),_:1})]),_:3},16,["class"]))}}),Xo=X({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,s)=>(x(),F(a(Sk),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),Jo=X({__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,o=te(()=>{const{class:l,...i}=n;return i}),r=It(o,s);return(l,i)=>(x(),F(a(_k),null,{default:y(()=>[v(a(uk),Oe(a(r),{class:a(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(()=>[v(a(Ak),{class:xe(a(Ge)("p-1",n.position==="popper"&&"w-full min-w-[var(--reka-select-trigger-width)]"))},{default:y(()=>[ie(l.$slots,"default")]),_:3},8,["class"])]),_:3},16,["class"])]),_:3}))}}),gC={class:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"},fn=X({__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,...o}=t;return o});return(s,o)=>(x(),F(a(mk),Oe(n.value,{class:a(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",gC,[v(a(vk),null,{default:y(()=>[v(a(Xn),{class:"h-4 w-4"})]),_:1})]),v(a(yk),null,{default:y(()=>[ie(s.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),yC={class:"flex items-center gap-2 pr-8"},bC={class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-primary/15 text-primary"},_C={class:"min-w-0"},wC={class:"space-y-3"},xC={class:"space-y-1.5"},kC={class:"text-xs font-medium text-muted-foreground"},SC={class:"text-xs text-muted-foreground"},CC={class:"font-medium text-foreground"},AC={key:0,class:"space-y-3 rounded-lg border bg-muted/30 p-4"},EC={class:"text-xs text-muted-foreground"},OC={key:0,class:"space-y-1.5"},PC={class:"text-xs font-medium text-muted-foreground"},TC={class:"space-y-1.5"},$C={class:"text-xs font-medium text-muted-foreground"},IC={class:"space-y-2 rounded-md border bg-background/50 p-3"},MC={class:"space-y-2"},RC={class:"flex items-center gap-2.5"},LC={class:"flex items-center gap-2.5 pl-7"},DC={class:"flex items-center gap-2.5"},NC={key:1,class:"space-y-1.5"},FC={class:"text-xs font-medium text-muted-foreground"},qC={class:"text-xs text-muted-foreground"},BC={key:2,class:"space-y-1.5"},VC={class:"text-xs font-medium text-muted-foreground"},UC={class:"text-xs text-muted-foreground"},HC={key:3,class:"space-y-1.5"},jC={class:"text-xs font-medium text-muted-foreground"},WC={key:4,class:"text-sm text-destructive"},KC={class:"space-y-1.5"},zC={class:"text-xs font-medium text-muted-foreground"},GC=["placeholder"],YC={key:0,class:"text-xs text-muted-foreground"},XC={class:"flex justify-end gap-2"},Ol="__new__",wd="__none__",JC=X({__name:"AddModelsDialog",props:_s({providers:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:_s(["changed"],["update:open"]),setup(e,{emit:t}){const{t:n}=Ht(),s=e,o=_r(e,"open"),r=t,l=N(""),i=N(""),u=N(!1),c=N(""),d=N(""),f=N(""),p=N(""),m=N(!0),g=N(!1),w=N(!1),C=N("");De(o,re=>{re&&(l.value=s.providers.length?s.providers[0].id:Ol,i.value="",c.value=p.value="",d.value=f.value="",m.value=!0,g.value=!1,w.value=!1,C.value="")});const h=te(()=>l.value===Ol),b=te(()=>l.value===wd);function $(re){const H=[...re.formats];return re.supportsResponses&&!H.includes("responses")&&H.push("responses"),H}const k=te(()=>{if(h.value||b.value)return $({formats:I(),supportsResponses:m.value&&w.value});const re=s.providers.find(H=>H.id===l.value);return re?$(re):[]});function R(re){if(re==="openai"){if(m.value&&!g.value)return;m.value=!m.value}else{if(g.value&&!m.value)return;g.value=!g.value}}function I(){const re=[];return m.value&&re.push("openai"),g.value&&re.push("anthropic"),re}function E(){return!c.value.trim()||!p.value?n("sources.errRequired"):I().length?m.value&&!d.value.trim()||g.value&&!f.value.trim()?n("sources.errBaseUrl"):"":n("sources.errFormat")}const M=te(()=>{const re=new Set,H=[];for(const ee of i.value.split(/[\s,;]+/)){const me=ee.trim();me&&!re.has(me)&&(re.add(me),H.push(me))}return H}),q=te(()=>!!l.value&&M.value.length>0&&k.value.length>0&&!u.value);async function Y(){if(q.value){if(h.value){const re=E();if(re){C.value=re;return}}u.value=!0;try{let re=l.value,H=[],ee=!1;if(h.value){const fe=await Fe("POST","/admin/providers",{name:c.value.trim(),baseUrlOpenai:d.value,baseUrlAnthropic:f.value,apiKey:p.value,formats:I(),supportsResponses:m.value&&w.value});re=fe.provider.id,l.value=re,H=$(fe.provider),ee=!0,$e(n("sources.added"),"success")}else if(b.value)H=$({formats:I(),supportsResponses:m.value&&w.value});else{const fe=s.providers.find(se=>se.id===re);H=fe?$(fe):[]}const me=[];for(const fe of M.value)for(const se of H)me.push({name:fe,slot:se});const J=await Promise.allSettled(me.map(fe=>Fe("POST","/admin/models",{name:fe.name,format:fe.slot,providers:b.value?[]:[re]}))),ue=new Set;let de=0;J.forEach((fe,se)=>{fe.status==="fulfilled"?ue.add(me[se].name):de++}),ue.size&&$e(n("models.addedToast",{n:ue.size}),"success"),de&&$e(n("models.addModelsFailed",{n:de}),"error"),(ee||ue.size)&&r("changed"),ue.size&&(o.value=!1)}finally{u.value=!1}}}return(re,H)=>(x(),F(a(Ja),{open:o.value,"onUpdate:open":H[10]||(H[10]=ee=>o.value=ee)},{default:y(()=>[v(a(Qa),{class:xe(h.value?"max-w-lg":"max-w-md")},{default:y(()=>[S("div",yC,[S("span",bC,[v(a(ts),{class:"h-4 w-4"})]),S("div",_C,[v(a(Za),{class:"text-base"},{default:y(()=>[K(A(a(n)("models.addModels")),1)]),_:1}),v(a(el),null,{default:y(()=>[K(A(a(n)("models.addModelsDesc")),1)]),_:1})])]),S("div",wC,[S("div",xC,[S("label",kC,A(a(n)("models.providerLabel")),1),v(a(Go),{modelValue:l.value,"onUpdate:modelValue":H[0]||(H[0]=ee=>l.value=ee)},{default:y(()=>[v(a(Yo),null,{default:y(()=>[v(a(Xo),{placeholder:a(n)("models.providerPh")},null,8,["placeholder"])]),_:1}),v(a(Jo),null,{default:y(()=>[v(a(fn),{value:Ol},{default:y(()=>[K(A(a(n)("models.newSourceOpt")),1)]),_:1}),v(a(fn),{value:wd},{default:y(()=>[K(A(a(n)("models.noneSourceOpt")),1)]),_:1}),(x(!0),G(Ae,null,ct(e.providers,ee=>(x(),F(a(fn),{key:ee.id,value:ee.id},{default:y(()=>[K(A(ee.name),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"]),S("p",SC,[K(A(a(n)("models.addModelsSlotsHint"))+" ",1),S("span",CC,A(k.value.join(" / ")||"—"),1)])]),h.value||b.value?(x(),G("div",AC,[S("p",EC,A(h.value?a(n)("models.addModelsNewHint"):a(n)("models.addModelsNoneHint")),1),h.value?(x(),G("div",OC,[S("label",PC,A(a(n)("sources.nameLabel")),1),v(a(bt),{modelValue:c.value,"onUpdate:modelValue":H[1]||(H[1]=ee=>c.value=ee),placeholder:a(n)("sources.namePh"),autocomplete:"off","aria-label":"name"},null,8,["modelValue","placeholder"])])):we("",!0),S("div",TC,[S("label",$C,A(a(n)("sources.formats")),1),S("div",IC,[S("div",MC,[S("div",RC,[v(a(Wn),{"model-value":m.value,disabled:m.value&&!g.value,"aria-label":"openai","onUpdate:modelValue":H[2]||(H[2]=ee=>R("openai"))},null,8,["model-value","disabled"]),H[11]||(H[11]=S("span",{class:"text-sm font-medium leading-none"},"openai",-1)),H[12]||(H[12]=S("span",{class:"text-xs text-muted-foreground"},"/chat/completions",-1))]),S("div",LC,[v(a(Wn),{modelValue:w.value,"onUpdate:modelValue":H[3]||(H[3]=ee=>w.value=ee),disabled:!m.value,"aria-label":a(n)("sources.responses")},null,8,["modelValue","disabled","aria-label"]),S("span",{class:xe(["text-sm leading-none",m.value?"":"text-muted-foreground"])},A(a(n)("sources.responses")),3),H[13]||(H[13]=S("span",{class:"text-xs text-muted-foreground"},"/responses",-1))])]),v(a(wi)),S("div",DC,[v(a(Wn),{"model-value":g.value,disabled:g.value&&!m.value,"aria-label":"anthropic","onUpdate:modelValue":H[4]||(H[4]=ee=>R("anthropic"))},null,8,["model-value","disabled"]),H[14]||(H[14]=S("span",{class:"text-sm font-medium leading-none"},"anthropic",-1)),H[15]||(H[15]=S("span",{class:"text-xs text-muted-foreground"},"/messages",-1))])])]),h.value&&m.value?(x(),G("div",NC,[S("label",FC,A(a(n)("sources.urlLabelOpenai")),1),v(a(bt),{modelValue:d.value,"onUpdate:modelValue":H[5]||(H[5]=ee=>d.value=ee),placeholder:a(n)("sources.urlPhOpenai"),autocomplete:"off","aria-label":"openai base url"},null,8,["modelValue","placeholder"]),S("p",qC,A(a(n)("sources.urlHintOpenai")),1)])):we("",!0),h.value&&g.value?(x(),G("div",BC,[S("label",VC,A(a(n)("sources.urlLabelAnthropic")),1),v(a(bt),{modelValue:f.value,"onUpdate:modelValue":H[6]||(H[6]=ee=>f.value=ee),placeholder:a(n)("sources.urlPhAnthropic"),autocomplete:"off","aria-label":"anthropic base url"},null,8,["modelValue","placeholder"]),S("p",UC,A(a(n)("sources.urlHintAnthropic")),1)])):we("",!0),h.value?(x(),G("div",HC,[S("label",jC,A(a(n)("sources.keyLabel")),1),v(a(bt),{modelValue:p.value,"onUpdate:modelValue":H[7]||(H[7]=ee=>p.value=ee),type:"password",placeholder:a(n)("sources.keyPh"),autocomplete:"new-password","aria-label":"api key"},null,8,["modelValue","placeholder"])])):we("",!0),h.value&&C.value?(x(),G("p",WC,A(C.value),1)):we("",!0)])):we("",!0),S("div",KC,[S("label",zC,A(a(n)("models.namesLabel")),1),zs(S("textarea",{"onUpdate:modelValue":H[8]||(H[8]=ee=>i.value=ee),placeholder:a(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,GC),[[Kf,i.value]]),M.value.length?(x(),G("p",YC,A(a(n)("models.addModelsCount",{n:M.value.length})),1)):we("",!0)]),S("div",XC,[v(a(Pe),{variant:"outline",disabled:u.value,onClick:H[9]||(H[9]=ee=>o.value=!1)},{default:y(()=>[K(A(a(n)("common.cancel")),1)]),_:1},8,["disabled"]),v(a(Pe),{disabled:!q.value,onClick:Y},{default:y(()=>[u.value?(x(),F(a(_t),{key:0,class:"h-4 w-4 animate-spin"})):(x(),F(a(ts),{key:1,class:"h-4 w-4"})),K(" "+A(a(n)("models.addModelsBtn")),1)]),_:1},8,["disabled"])])])]),_:1},8,["class"])]),_:1},8,["open"]))}}),QC={class:"flex items-center gap-2 pr-8"},ZC={class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-primary/15 text-primary"},eA={class:"min-w-0"},tA={class:"space-y-3"},nA={key:0,class:"rounded-md bg-muted/40 px-3 py-6 text-center text-sm text-muted-foreground"},sA={class:"space-y-1.5"},oA={class:"text-xs font-medium text-muted-foreground"},rA={key:0,class:"text-xs text-muted-foreground"},aA={class:"font-medium text-foreground"},lA={class:"space-y-1.5"},iA={class:"text-xs font-medium text-muted-foreground"},uA=["placeholder","title"],cA={class:"text-xs text-muted-foreground"},dA={class:"flex justify-end gap-2"},fA=X({__name:"AddSourceDialog",props:_s({modelName:{},providers:{},enabledFormats:{},chainByFormat:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:_s(["added"],["update:open"]),setup(e,{emit:t}){const{t:n}=Ht(),s=e,o=_r(e,"open"),r=t,l=encodeURIComponent,i=N(""),u=N(""),c=N(!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"},g=te(()=>i.value?f(i.value).map(h=>n(m[h]??h)):[]),w=te(()=>!!i.value&&!c.value);De(o,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(E=>Fe("POST",`/admin/models/${l(s.modelName)}/providers`,{format:E,providerId:h})))).filter(E=>E.status==="rejected").length;if(k){const E=s.enabledFormats.filter(q=>d(b,q)),M=await Promise.allSettled(E.map(q=>Fe("PUT",`/admin/models/${l(s.modelName)}/map`,{format:q,providerId:h,model:k})));I+=M.filter(q=>q.status==="rejected").length}I?$e(n("models.addSourcePartial"),"error"):$e(n("models.sourceAdded"),"success"),r("added"),o.value=!1}catch(R){$e(R.message,"error")}finally{c.value=!1}}return(h,b)=>(x(),F(a(Ja),{open:o.value,"onUpdate:open":b[3]||(b[3]=$=>o.value=$)},{default:y(()=>[v(a(Qa),{class:"max-w-md"},{default:y(()=>[S("div",QC,[S("span",ZC,[v(a(ts),{class:"h-4 w-4"})]),S("div",eA,[v(a(Za),{class:"text-base"},{default:y(()=>[K(A(a(n)("models.addSourceTitle")),1)]),_:1}),v(a(el),null,{default:y(()=>[K(A(a(n)("models.addSourceDesc")),1)]),_:1})])]),S("div",tA,[p.value.length?(x(),G(Ae,{key:1},[S("div",sA,[S("label",oA,A(a(n)("models.providerLabel")),1),v(a(Go),{modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=$=>i.value=$)},{default:y(()=>[v(a(Yo),null,{default:y(()=>[v(a(Xo),{placeholder:a(n)("models.providerPh")},null,8,["placeholder"])]),_:1}),v(a(Jo),null,{default:y(()=>[(x(!0),G(Ae,null,ct(p.value,$=>(x(),F(a(fn),{key:$.id,value:$.id},{default:y(()=>[K(A($.name),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"]),g.value.length?(x(),G("p",rA,[K(A(a(n)("models.addSourceTargetsHint"))+" ",1),S("span",aA,A(g.value.join(" / ")),1)])):we("",!0)]),S("div",lA,[S("label",iA,A(a(n)("models.upstreamLabel")),1),zs(S("input",{"onUpdate:modelValue":b[1]||(b[1]=$=>u.value=$),type:"text",placeholder:a(n)("models.upstreamPh"),title:a(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,uA),[[Kf,u.value]]),S("p",cA,A(a(n)("models.upstreamHint")),1)])],64)):(x(),G("div",nA,A(a(n)("models.addSourceNone")),1)),S("div",dA,[v(a(Pe),{variant:"outline",disabled:c.value,onClick:b[2]||(b[2]=$=>o.value=!1)},{default:y(()=>[K(A(a(n)("common.cancel")),1)]),_:1},8,["disabled"]),v(a(Pe),{disabled:!w.value||!p.value.length,onClick:C},{default:y(()=>[c.value?(x(),F(a(_t),{key:0,class:"h-4 w-4 animate-spin"})):(x(),F(a(ts),{key:1,class:"h-4 w-4"})),K(" "+A(a(n)("models.addToChain")),1)]),_:1},8,["disabled"])])])]),_:1})]),_:1},8,["open"]))}}),pA={class:"space-y-4"},mA={class:"flex h-11 w-11 items-center justify-center rounded-xl bg-primary/15 text-primary"},hA={class:"space-y-1"},vA={class:"font-medium"},gA={class:"max-w-sm text-sm text-muted-foreground"},yA={class:"flex flex-wrap items-center gap-2"},bA={class:"relative min-w-[180px] flex-1"},_A={class:"text-xs text-muted-foreground"},wA={key:0,class:"py-6 text-center text-sm text-muted-foreground"},xA={key:1,class:"py-6 text-center text-sm text-destructive"},kA={key:0,class:"relative overflow-hidden rounded-lg border border-border/60 bg-card"},SA={class:"flex items-center gap-2.5 border-b border-border/60 bg-muted/30 px-3 py-2"},CA={class:"text-sm font-semibold"},AA={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"},EA={class:"divide-y divide-border"},OA={class:"flex items-center gap-3"},PA=["aria-expanded","aria-label","onClick","onKeydown"],TA={class:"flex min-w-0 flex-1 flex-col items-start"},$A={class:"flex w-full items-center gap-1.5"},IA={class:"truncate font-mono text-sm font-medium"},MA=["title","aria-label","onClick"],RA={class:"w-full truncate text-xs text-muted-foreground"},LA={class:"flex shrink-0 items-center gap-1.5"},DA=["disabled","title","aria-label","onClick"],NA={key:0,class:"mt-2 space-y-3 rounded-md border bg-muted/30 p-2"},FA={class:"flex items-center gap-2 px-1"},qA={class:"text-xs font-semibold"},BA={class:"font-mono text-[11px] text-muted-foreground"},VA={class:"ml-auto flex items-center gap-1.5"},UA={key:0,class:"flex items-start gap-2 rounded bg-muted px-2 py-1.5 text-xs text-muted-foreground"},HA={class:"shrink-0 font-medium"},jA={key:1,class:"px-1 py-1 text-xs text-muted-foreground"},WA={class:"w-4 shrink-0 text-right text-xs text-muted-foreground"},KA={class:"flex items-center gap-1.5 text-sm"},zA={key:2,class:"flex items-center gap-1"},GA=["value","placeholder","aria-label","title","onKeyup","onBlur"],YA=["title","onClick"],XA={key:7,class:"flex items-center gap-1"},JA=["value","placeholder","aria-label","title","onInput","onKeyup","onBlur"],QA=["title","onClick"],ZA={class:"ml-auto flex items-center gap-0.5 opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100"},eE={key:0,class:"flex justify-center pt-1"},tE={class:"relative overflow-hidden rounded-lg border border-border/60 bg-card"},nE={class:"flex items-center gap-2.5 border-b border-border/60 bg-muted/30 px-3 py-2"},sE={class:"text-sm font-semibold"},oE={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"},rE={key:0},aE={key:0,class:"py-3 text-center text-xs text-muted-foreground"},lE={key:1,class:"divide-y divide-border"},iE=["aria-expanded","aria-label","onClick"],uE={class:"text-sm font-medium"},cE={class:"inline-flex items-center rounded-md bg-muted px-1.5 py-0.5 text-xs font-medium tabular-nums text-muted-foreground"},dE={key:0,class:"divide-y divide-border/50 bg-muted/10"},fE={class:"flex min-w-0 items-center gap-1.5"},pE={class:"truncate font-mono text-sm"},mE=["title","aria-label","onClick"],hE={class:"flex shrink-0 items-center gap-1.5"},vE=["disabled","title","aria-label","onClick"],gE=8,yE=X({__name:"Models",setup(e){const{t}=Ht(),n=["openai","anthropic","responses"],s=N([]),o=N([]),r=N(""),l=N(!1),i=N(""),u=N(!0),c=N(new Set),d=N(!1),f=N(!1),p=N(!1),m=N(!1),g=N({}),w=N({}),C=N({}),h=N({}),b=N({}),$=N({}),k=N({}),R=N({}),I=N(""),E=N(null),M=N(!1),q={mounted:B=>B.focus()},Y=N(null),re=N(!1),H=encodeURIComponent;async function ee(){l.value=!0,r.value="";try{const[B,D]=await Promise.all([Fe("GET","/admin/models"),Fe("GET","/admin/providers")]);s.value=B.models,o.value=D.providers}catch(B){r.value=B.message}finally{l.value=!1}}const me=te(()=>new Map(o.value.map(B=>[B.id,B]))),J=te(()=>{const B=new Map;for(const D of o.value)for(const Z of D.discoveredModels??[]){const L=B.get(Z);L?L.push(D.id):B.set(Z,[D.id])}return B}),ue=te(()=>{const B=new Set;for(const Z of o.value)for(const L of Z.discoveredModels??[])B.add(L);for(const Z of s.value)B.add(Z.name);const D=Z=>({enabled:(Z==null?void 0:Z.enabled)??!1,chain:((Z==null?void 0:Z.providers)??[]).map(L=>({id:L.id,name:L.name,model:L.model}))});return[...B].map(Z=>{const L=s.value.find(Ee=>Ee.name===Z),ge=(J.value.get(Z)??[]).map(Ee=>me.value.get(Ee)).filter(Ee=>!!Ee).map(Ee=>({id:Ee.id,name:Ee.name,formats:Ee.formats,supportsResponses:Ee.supportsResponses}));return{name:Z,openai:D(L==null?void 0:L.openai),anthropic:D(L==null?void 0:L.anthropic),responses:D(L==null?void 0:L.responses),offering:ge}})});function de(B){return n.filter(D=>B[D].enabled)}function fe(B){return n.filter(D=>B.offering.some(Z=>oe(Z,D)))}function se(B){return fe(B).filter(D=>!B[D].enabled)}function Q(B,D){return B[D].enabled?"enabled":fe(B).includes(D)?"enableable":"unsupported"}function ce(B,D){return B.offering.filter(Z=>oe(Z,D)).map(Z=>Z.id)}const Be=te(()=>{const B=i.value.trim().toLowerCase();return ue.value.filter(D=>!B||D.name.toLowerCase().includes(B))}),rt=te(()=>Be.value.filter(B=>B.openai.enabled||B.anthropic.enabled||B.responses.enabled)),at=te(()=>Be.value.filter(B=>!(B.openai.enabled||B.anthropic.enabled||B.responses.enabled)&&fe(B).length>0)),nt=["embed","whisper","tts","dall-e","dall_e","image","moderation","audio","transcribe","rerank","realtime","sora"];function Ye(B){const D=B.toLowerCase();return nt.some(Z=>D.includes(Z))}const qe=N(!0),ot=te(()=>at.value.filter(B=>Ye(B.name)).length),Ie=te(()=>qe.value?at.value.filter(B=>!Ye(B.name)):at.value),ut=te(()=>{const B=[];for(const D of o.value){const Z=Ie.value.filter(L=>L.offering.some(ge=>ge.id===D.id)).sort((L,ge)=>L.name.localeCompare(ge.name));Z.length&&B.push({source:D,rows:Z})}return B}),ve=N({});function _(B,D){return i.value.trim()?!0:B in ve.value?ve.value[B]:D<=gE}function T(B,D){i.value.trim()||(ve.value={...ve.value,[B]:!_(B,D)})}function W(B){const D=de(B);return o.value.filter(Z=>D.some(L=>oe(Z,L)&&!B[L].chain.some(ge=>ge.id===Z.id)))}function le(B){const D={};for(const Z of n)D[Z]=B[Z].chain.map(L=>L.id);return D}function oe(B,D){return D==="responses"?!!B.supportsResponses:B.formats.includes(D)}const ne={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 O(B){return c.value.has(B)}function P(B){const D=new Set(c.value);D.has(B)?D.delete(B):D.add(B),c.value=D}async function V(B){const D=await Xi(B);$e(t(D?"connect.copied":"connect.copyFailed"),D?"success":"error")}function j(B,D){B.target===B.currentTarget&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),P(D))}function pe(B){return B.length?B.map(D=>D.name).join(" → "):t("models.noSourcesShort")}function ae(B){return de(B).map(D=>`${t(ne[D].chip)}: ${pe(B[D].chain)}`).join(" · ")}function U(B,D){const Z=B[D].chain;if(!Z.length)return!1;const L=ge=>{var Ee;return((Ee=me.value.get(ge))==null?void 0:Ee.discoveredModels)??[]};return!Z.some(ge=>L(ge.id).includes(ge.model??B.name))&&Z.some(ge=>L(ge.id).length>0)}function z(B){return de(B).some(D=>U(B,D))}function he(B){let D=!1,Z=null,L=null;for(const ge of de(B)){const Ee=`${B.name}:${ge}`;h.value[Ee]&&(D=!0);const Je=k.value[Ee];Je!=null&&Je.ok&&!Z?Z=Je:Je&&!Je.ok&&!L&&(L=Je)}return D?{state:"testing"}:Z?{state:"ok",provider:Z.provider}:L?{state:"fail",status:L.status,error:L.error}:null}function Ce(B,D){const Z=Q(B,D);return Z==="enabled"?`border-transparent ${Qt[D].solid} text-white shadow-sm`:Z==="enableable"?"border-dashed border-input text-muted-foreground hover:bg-accent hover:text-accent-foreground":"border-transparent text-muted-foreground/40"}function Me(B,D){const Z=Q(B,D);return Z==="enabled"?`${t(ne[D].key)} · ${t("models.chipOn")}`:Z==="enableable"?`${t(ne[D].key)} · ${t("models.chipOff")}`:`${t(ne[D].key)} · ${t("models.chipNa")}`}async function Xe(B,D){B[D].enabled?await Xt(B,D):await He(B,D)}async function He(B,D){const Z=`${B.name}:${D}`;w.value[Z]=!0;const L=B.offering.filter(Je=>oe(Je,D)),ge=L.map(Je=>({id:Je.id,name:Je.name})),Ee=s.value.find(Je=>Je.name===B.name);if(Ee){Ee[D].enabled=!0;for(const Je of ge)Ee[D].providers.find(cn=>cn.id===Je.id)||Ee[D].providers.push(Je)}else s.value.push({name:B.name,openai:{enabled:D==="openai",providers:D==="openai"?ge:[]},anthropic:{enabled:D==="anthropic",providers:D==="anthropic"?ge:[]},responses:{enabled:D==="responses",providers:D==="responses"?ge:[]}});try{await Fe("POST","/admin/models",{name:B.name,format:D,providers:L.map(Je=>Je.id)}),$e(t("models.enabledToast",{name:`${B.name} [${D}]`}),"success")}catch(Je){await ee(),$e(Je.message,"error")}finally{w.value[Z]=!1}}async function jt(){if(f.value)return;f.value=!0;const B=[];for(const L of Ie.value)for(const ge of se(L))B.push({name:L.name,fmt:ge,providers:ce(L,ge)});for(const L of B)w.value[`${L.name}:${L.fmt}`]=!0;const D=await Promise.allSettled(B.map(L=>Fe("POST","/admin/models",{name:L.name,format:L.fmt,providers:L.providers})));for(const L of B)w.value[`${L.name}:${L.fmt}`]=!1;if(await ee(),f.value=!1,!B.length)return;const Z=D.filter(L=>L.status==="rejected").length;Z?Z===B.length?$e(t("models.enableAllFailed"),"error"):$e(t("models.enableAllPartial",{failed:Z}),"error"):$e(t("models.enableAllDone"),"success")}async function Xt(B,D){const Z=s.value.find(L=>L.name===B.name);Z&&(Z[D].enabled=!1);try{await Fe("POST",`/admin/models/${H(B.name)}/disable`,{format:D}),$e(t("models.disabledToast",{name:`${B.name} [${D}]`}),"success")}catch(L){await ee(),$e(L.message,"error")}}function $s(B){Y.value=B,re.value=!0}async function Ao(B,D){const Z=`${B.name}:${D}`;if(!h.value[Z]){h.value[Z]=!0;try{const L=await Fe("POST",`/admin/models/${H(B.name)}/test?format=${D}`);k.value[Z]=L.result}catch(L){k.value[Z]={ok:!1,status:0,format:D,error:L.message}}finally{h.value[Z]=!1}}}async function Nt(B){const D=de(B);D.length&&await Promise.all(D.map(Z=>Ao(B,Z)))}async function sn(B,D,Z){const L=`${B.name}:${D}:${Z.id}`;if(!b.value[L]){b.value[L]=!0;try{const ge=await Fe("POST",`/admin/models/${H(B.name)}/providers/${H(Z.id)}/test?format=${D}`);$.value[L]=ge.result}catch(ge){$.value[L]={ok:!1,status:0,format:D,error:ge.message}}finally{b.value[L]=!1}}}async function Ar(){const B=Y.value;if(B){g.value[B.name]=!0;try{await Fe("DELETE",`/admin/models/${H(B.name)}`),s.value=s.value.filter(D=>D.name!==B.name),$e(t("models.removedToast",{name:B.name}),"success"),re.value=!1}catch(D){$e(D.message,"error")}finally{g.value[B.name]=!1}}}async function Eo(B,D,Z){const L=s.value.find(Ee=>Ee.name===B.name);if(!L)return;const ge=L[Z].providers.slice();L[Z].providers=D.map(Ee=>ge.find(Je=>Je.id===Ee)).filter(Boolean);try{await Fe("PUT",`/admin/models/${H(B.name)}/priority`,{format:Z,providers:D})}catch(Ee){L[Z].providers=ge,$e(Ee.message,"error")}}function qm(B,D,Z){if(D===0)return;const L=B[Z].chain.map(ge=>ge.id);[L[D-1],L[D]]=[L[D],L[D-1]],Eo(B,L,Z)}function Bm(B,D,Z){const L=B[Z].chain.map(ge=>ge.id);D>=L.length-1||([L[D+1],L[D]]=[L[D],L[D+1]],Eo(B,L,Z))}function Vm(B){E.value=B,M.value=!0}function Zs(B,D,Z){return`${B.name}:${D}:${Z.id}`}function Um(B,D,Z){return I.value===Zs(B,D,Z)}function bu(B,D,Z){const L=Zs(B,D,Z);R.value[L]=Z.model??"",I.value=L}function Hm(B,D,Z){return R.value[Zs(B,D,Z)]??""}function jm(B,D,Z,L){R.value[Zs(B,D,Z)]=L}async function Wm(B,D,Z){const L=Zs(B,D,Z);I.value="";const ge=(R.value[L]??"").trim(),Ee=(Z.model??"").trim();if(ge===Ee)return;const Je=s.value.find(cn=>cn.name===B.name);if(Je){const cn=Je[D].providers.findIndex(Er=>Er.id===Z.id);cn>=0&&(Je[D].providers[cn].model=ge||void 0)}R.value[L]=ge;try{await Fe("PUT",`/admin/models/${H(B.name)}/map`,{format:D,providerId:Z.id,model:ge}),$e(t("models.mapSaved"),"success")}catch(cn){await ee(),$e(cn.message,"error")}}function Km(B,D,Z,L){R.value[Zs(B,D,Z)]=Z.model??"",L.blur()}const tl=N(""),Oo=N("");function Is(B){var D;return((D=me.value.get(B))==null?void 0:D.rpm)??0}function zm(B){return tl.value===B.id}function _u(B){tl.value=B.id,Oo.value=Is(B.id)?String(Is(B.id)):""}function Gm(B){Oo.value=B}async function Ym(B,D){const Z=me.value.get(B);Z&&await Fe("PUT",`/admin/providers/${B}`,{name:Z.name,baseUrlOpenai:Z.baseUrlOpenai,baseUrlAnthropic:Z.baseUrlAnthropic,formats:Z.formats,supportsResponses:Z.supportsResponses??!1,rpm:D})}async function Xm(B){const D=B.id;tl.value="";const Z=Number(Oo.value),L=Number.isFinite(Z)&&Z>0?Math.floor(Z):0;if(L!==Is(D))try{await Ym(D,L),o.value=o.value.map(ge=>ge.id===D?{...ge,rpm:L}:ge),$e(L?t("sources.rpmSaved",{n:L}):t("sources.rpmCleared"),L?"success":"default")}catch(ge){$e(ge.message,"error")}}function Jm(B,D){Oo.value=Is(B.id)?String(Is(B.id)):"",D.blur()}async function Qm(B,D,Z){const L=`${B.name}:${D}:${Z}`;if(C.value[L])return;C.value[L]=!0;const ge=s.value.find(Ee=>Ee.name===B.name);ge&&(ge[Z].providers=ge[Z].providers.filter(Ee=>Ee.id!==D));try{await Fe("DELETE",`/admin/models/${H(B.name)}/providers/${D}?format=${Z}`),$e(t("models.sourceRemoved"),"success")}catch(Ee){await ee(),$e(Ee.message,"error")}finally{C.value[L]=!1}}async function Zm(){if(d.value||!o.value.length)return;d.value=!0;const B=o.value,D=await Promise.allSettled(B.map(L=>Fe("POST",`/admin/providers/${L.id}/discover`)));await ee();const Z=D.map((L,ge)=>L.status==="rejected"?B[ge].name:null).filter(L=>!!L);Z.length?Z.length===B.length?$e(t("sources.refreshAllFailed"),"error"):$e(t("sources.refreshAllPartial",{failed:Z.join("、")}),"error"):$e(t("sources.refreshAllDone"),"success"),d.value=!1}return mt(ee),(B,D)=>{var Z;return x(),G("div",pA,[!l.value&&!o.value.length?(x(),F(a(mn),{key:0},{default:y(()=>[v(a(hn),{class:"flex flex-col items-center gap-3 py-12 text-center"},{default:y(()=>[S("span",mA,[v(a(bi),{class:"h-5 w-5"})]),S("div",hA,[S("div",vA,A(a(t)("models.empty")),1),S("p",gA,A(a(t)("models.emptyHint")),1)]),v(a(Pe),{onClick:D[0]||(D[0]=L=>p.value=!0)},{default:y(()=>[v(a(ts),{class:"h-4 w-4"}),K(A(a(t)("models.addSource")),1)]),_:1})]),_:1})]),_:1})):(x(),F(a(mn),{key:1},{default:y(()=>[v(a(In),null,{default:y(()=>[v(a(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[v(a(Tm),{class:"h-4 w-4 text-primary"}),K(" "+A(a(t)("models.title")),1)]),_:1}),v(a(bs),null,{default:y(()=>[K(A(a(t)("models.desc")),1)]),_:1})]),_:1}),v(a(hn),{class:"space-y-4"},{default:y(()=>[S("div",yA,[S("div",bA,[v(a(Lm),{class:"absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),v(a(bt),{modelValue:i.value,"onUpdate:modelValue":D[1]||(D[1]=L=>i.value=L),placeholder:a(t)("models.searchPh"),class:"pl-8"},null,8,["modelValue","placeholder"])]),v(a(Pe),{size:"sm",onClick:D[2]||(D[2]=L=>m.value=!0)},{default:y(()=>[v(a(ts),{class:"h-4 w-4"}),K(A(a(t)("models.addModels")),1)]),_:1}),v(a(Pe),{variant:"outline",size:"sm",onClick:D[3]||(D[3]=L=>p.value=!0)},{default:y(()=>[v(a(bi),{class:"h-4 w-4"}),K(A(a(t)("models.manageSources")),1)]),_:1})]),S("p",_A,A(a(t)("models.chipLegend")),1),l.value?(x(),G("p",wA,A(a(t)("common.loading")),1)):r.value?(x(),G("p",xA,A(r.value),1)):(x(),G(Ae,{key:2},[rt.value.length?(x(),G("section",kA,[D[16]||(D[16]=S("div",{class:"pointer-events-none absolute inset-y-0 left-0 w-1 bg-primary","aria-hidden":"true"},null,-1)),S("div",SA,[D[13]||(D[13]=S("span",{class:"h-2 w-2 shrink-0 rounded-full bg-primary"},null,-1)),S("span",CA,A(a(t)("models.enabledSection")),1),S("span",AA,A(rt.value.length),1)]),S("div",EA,[(x(!0),G(Ae,null,ct(rt.value,L=>{var ge,Ee,Je,cn,Er;return x(),G("div",{key:L.name,class:"px-3 py-2.5"},[S("div",OA,[S("div",{role:"button",tabindex:"0",class:"flex min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-md text-left outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background","aria-expanded":O(L.name),"aria-label":O(L.name)?a(t)("models.collapseAria"):a(t)("models.expandAria"),onClick:ke=>P(L.name),onKeydown:ke=>j(ke,L.name)},[v(a(gi),{class:xe(["h-4 w-4 shrink-0 text-muted-foreground transition-transform",{"rotate-90":O(L.name)}])},null,8,["class"]),S("span",TA,[S("span",$A,[S("span",IA,A(L.name),1),S("button",{type:"button",title:a(t)("connect.copy"),"aria-label":a(t)("connect.copy"),class:"inline-flex h-5 w-5 shrink-0 items-center justify-center rounded text-muted-foreground/50 transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onClick:tn(ke=>V(L.name),["stop"])},[v(a(Jn),{class:"h-3 w-3"})],8,MA),((ge=he(L))==null?void 0:ge.state)==="testing"?(x(),F(a(gt),{key:0,variant:"muted",class:"gap-1"},{default:y(()=>[v(a(_t),{class:"h-3 w-3 animate-spin"}),K(A(a(t)("models.probeTesting")),1)]),_:1})):((Ee=he(L))==null?void 0:Ee.state)==="ok"?(x(),F(a(gt),{key:1,variant:"success",title:a(t)("models.probeOkHint",{name:((Je=he(L))==null?void 0:Je.provider)??""})},{default:y(()=>[K(A(a(t)("models.probeOk")),1)]),_:1},8,["title"])):((cn=he(L))==null?void 0:cn.state)==="fail"?(x(),F(a(gt),{key:2,variant:"destructive",title:((Er=he(L))==null?void 0:Er.error)||a(t)("models.probeFailHint")},{default:y(()=>{var ke;return[K(A(a(t)("models.probeFail"))+" · "+A(((ke=he(L))==null?void 0:ke.status)||"?"),1)]}),_:2},1032,["title"])):z(L)?(x(),F(a(gt),{key:3,variant:"secondary",title:a(t)("models.delistedHint")},{default:y(()=>[K(A(a(t)("models.delisted")),1)]),_:1},8,["title"])):we("",!0)]),S("span",RA,A(ae(L)),1)])],40,PA),S("div",LA,[(x(),G(Ae,null,ct(n,ke=>S("button",{key:ke,type:"button",disabled:Q(L,ke)==="unsupported"||w.value[`${L.name}:${ke}`],title:Me(L,ke),"aria-label":Me(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",Ce(L,ke)]),onClick:fs=>Xe(L,ke)},[w.value[`${L.name}:${ke}`]?(x(),F(a(_t),{key:0,class:"h-3 w-3 animate-spin"})):(x(),G("span",{key:1,class:xe(["rounded-full",Q(L,ke)==="enabled"?"h-1.5 w-1.5 bg-current":Q(L,ke)==="enableable"?"h-1.5 w-1.5 border border-current":"h-1.5 w-1.5"])},null,2)),K(" "+A(a(t)(ne[ke].chip)),1)],10,DA)),64))]),v(a(pi),null,{default:y(()=>[v(a(mi),null,{default:y(()=>[v(a(Pe),{variant:"ghost",size:"icon",class:"h-8 w-8 shrink-0 text-muted-foreground","aria-label":a(t)("models.moreActions")},{default:y(()=>[v(a(yi),{class:"h-4 w-4"})]),_:1},8,["aria-label"])]),_:1}),v(a(hi),{align:"end"},{default:y(()=>{var ke;return[v(a(jn),{disabled:((ke=he(L))==null?void 0:ke.state)==="testing"||!de(L).length,onSelect:fs=>Nt(L)},{default:y(()=>{var fs;return[((fs=he(L))==null?void 0:fs.state)==="testing"?(x(),F(a(_t),{key:0,class:"animate-spin"})):(x(),F(a(Vr),{key:1})),K(" "+A(a(t)("models.testModel")),1)]}),_:2},1032,["disabled","onSelect"]),v(a(vi)),v(a(jn),{class:"text-destructive focus:bg-destructive/10 focus:text-destructive",onSelect:fs=>$s(L)},{default:y(()=>[v(a(_i)),K(" "+A(a(t)("models.removeModel")),1)]),_:1},8,["onSelect"])]}),_:2},1024)]),_:2},1024)]),O(L.name)?(x(),G("div",NA,[(x(!0),G(Ae,null,ct(de(L),ke=>{var fs,wu,xu;return x(),G("div",{key:ke,class:"space-y-1"},[S("div",FA,[S("span",{class:xe(["h-2 w-2 rounded-full",a(Qt)[ke].solid])},null,2),S("span",qA,A(a(t)(ne[ke].key)),1),S("span",BA,A(ne[ke].endpoint),1),S("div",VA,[(fs=k.value[`${L.name}:${ke}`])!=null&&fs.ok?(x(),F(a(gt),{key:0,variant:"success",title:a(t)("models.probeOkHint",{name:((wu=k.value[`${L.name}:${ke}`])==null?void 0:wu.provider)??""})},{default:y(()=>[K(A(a(t)("models.probeOk")),1)]),_:1},8,["title"])):k.value[`${L.name}:${ke}`]?(x(),F(a(gt),{key:1,variant:"destructive",title:((xu=k.value[`${L.name}:${ke}`])==null?void 0:xu.error)||a(t)("models.probeFailHint")},{default:y(()=>{var Ve;return[K(A(a(t)("models.probeFail"))+" · "+A(((Ve=k.value[`${L.name}:${ke}`])==null?void 0:Ve.status)||"?"),1)]}),_:2},1032,["title"])):we("",!0),v(a(Pe),{variant:"ghost",size:"sm",class:"h-6 gap-1 px-2 text-xs",disabled:h.value[`${L.name}:${ke}`],onClick:Ve=>Ao(L,ke)},{default:y(()=>[h.value[`${L.name}:${ke}`]?(x(),F(a(_t),{key:0,class:"h-3 w-3 animate-spin"})):(x(),F(a(Vr),{key:1,class:"h-3 w-3"})),K(" "+A(a(t)("models.testModel")),1)]),_:2},1032,["disabled","onClick"])])]),U(L,ke)&&!k.value[`${L.name}:${ke}`]?(x(),G("div",UA,[S("span",HA,A(a(t)("models.delisted")),1),S("span",null,A(a(t)("models.delistedHint")),1)])):we("",!0),L[ke].chain.length?we("",!0):(x(),G("div",jA,A(a(t)("models.noSources")),1)),(x(!0),G(Ae,null,ct(L[ke].chain,(Ve,eo)=>{var ku,Su;return x(),G("div",{key:Ve.id,class:"group flex items-center gap-2 rounded px-1 py-1 hover:bg-muted/40"},[S("span",WA,A(eo+1)+".",1),S("span",KA,[S("span",{class:xe(["h-1.5 w-1.5 rounded-full",a(ti)(Ve.id).solid])},null,2),K(" "+A(Ve.name),1)]),eo===0?(x(),F(a(gt),{key:0,variant:"default"},{default:y(()=>[K(A(a(t)("models.primary")),1)]),_:1})):(x(),F(a(gt),{key:1,variant:"muted"},{default:y(()=>[K(A(a(t)("models.fallback")),1)]),_:1})),zm(Ve)?(x(),G("span",zA,[v(a(zo),{class:"h-3 w-3 text-muted-foreground"}),zs(S("input",{type:"number",min:"0",inputmode:"numeric",value:Oo.value,placeholder:a(t)("sources.rpmPh"),"aria-label":a(t)("sources.rpmLabel"),title:a(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:D[4]||(D[4]=dt=>Gm(dt.target.value)),onKeyup:[D[5]||(D[5]=Vs(dt=>dt.target.blur(),["enter"])),Vs(dt=>Jm(Ve,dt.target),["esc"])],onBlur:dt=>Xm(Ve)},null,40,GA),[[q]])])):Is(Ve.id)>0?(x(),G("button",{key:3,type:"button",title:a(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:dt=>_u(Ve)},[v(a(zo),{class:"h-3 w-3"}),K(" "+A(a(t)("sources.rpmBadge",{n:Is(Ve.id)})),1)],8,YA)):we("",!0),b.value[`${L.name}:${ke}:${Ve.id}`]?(x(),F(a(gt),{key:4,variant:"muted",class:"gap-1"},{default:y(()=>[v(a(_t),{class:"h-3 w-3 animate-spin"}),K(A(a(t)("models.probeTesting")),1)]),_:1})):(ku=$.value[`${L.name}:${ke}:${Ve.id}`])!=null&&ku.ok?(x(),F(a(gt),{key:5,variant:"success",title:a(t)("models.probeOkHint",{name:Ve.name})},{default:y(()=>[K(A(a(t)("models.probeOk")),1)]),_:1},8,["title"])):$.value[`${L.name}:${ke}:${Ve.id}`]?(x(),F(a(gt),{key:6,variant:"destructive",title:((Su=$.value[`${L.name}:${ke}:${Ve.id}`])==null?void 0:Su.error)||a(t)("models.probeFailHint")},{default:y(()=>{var dt;return[K(A(a(t)("models.probeFail"))+" · "+A(((dt=$.value[`${L.name}:${ke}:${Ve.id}`])==null?void 0:dt.status)||"?"),1)]}),_:2},1032,["title"])):we("",!0),Um(L,ke,Ve)?(x(),G("div",XA,[D[14]||(D[14]=S("span",{class:"text-xs text-muted-foreground"},"→",-1)),zs(S("input",{type:"text",value:Hm(L,ke,Ve),placeholder:a(t)("models.upstreamPh"),"aria-label":a(t)("models.upstreamLabel"),title:a(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:dt=>jm(L,ke,Ve,dt.target.value),onKeyup:[D[6]||(D[6]=Vs(dt=>dt.target.blur(),["enter"])),Vs(dt=>Km(L,ke,Ve,dt.target),["esc"])],onBlur:dt=>Wm(L,ke,Ve)},null,40,JA),[[q]])])):Ve.model?(x(),G("button",{key:8,type:"button",title:a(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:dt=>bu(L,ke,Ve)},[D[15]||(D[15]=S("span",null,"→",-1)),K(A(Ve.model),1)],8,QA)):we("",!0),S("div",ZA,[v(a(Pe),{variant:"ghost",size:"icon",class:"h-7 w-7",disabled:eo===0,"aria-label":a(t)("models.moveUpAria"),onClick:dt=>qm(L,eo,ke)},{default:y(()=>[v(a(Zk),{class:"h-4 w-4"})]),_:1},8,["disabled","aria-label","onClick"]),v(a(Pe),{variant:"ghost",size:"icon",class:"h-7 w-7",disabled:eo===L[ke].chain.length-1,"aria-label":a(t)("models.moveDownAria"),onClick:dt=>Bm(L,eo,ke)},{default:y(()=>[v(a(Qk),{class:"h-4 w-4"})]),_:1},8,["disabled","aria-label","onClick"]),v(a(pi),null,{default:y(()=>[v(a(mi),null,{default:y(()=>[v(a(Pe),{variant:"ghost",size:"icon",class:"h-7 w-7 text-muted-foreground","aria-label":a(t)("models.moreActions")},{default:y(()=>[v(a(yi),{class:"h-4 w-4"})]),_:1},8,["aria-label"])]),_:1}),v(a(hi),{align:"end"},{default:y(()=>[v(a(jn),{disabled:b.value[`${L.name}:${ke}:${Ve.id}`],onSelect:dt=>sn(L,ke,Ve)},{default:y(()=>[b.value[`${L.name}:${ke}:${Ve.id}`]?(x(),F(a(_t),{key:0,class:"animate-spin"})):(x(),F(a(Vr),{key:1})),K(" "+A(a(t)("models.testSource")),1)]),_:2},1032,["disabled","onSelect"]),v(a(jn),{onSelect:dt=>bu(L,ke,Ve)},{default:y(()=>[v(a(Mm),{class:"h-4 w-4"}),K(" "+A(a(t)("models.editUpstream")),1)]),_:1},8,["onSelect"]),v(a(jn),{onSelect:dt=>_u(Ve)},{default:y(()=>[v(a(zo),{class:"h-4 w-4"}),K(" "+A(a(t)("sources.rpmLabel")),1)]),_:1},8,["onSelect"]),v(a(vi)),v(a(jn),{class:"text-destructive focus:bg-destructive/10 focus:text-destructive",onSelect:dt=>Qm(L,Ve.id,ke)},{default:y(()=>[v(a(_i),{class:"h-4 w-4"}),K(" "+A(a(t)("models.removeSource")),1)]),_:1},8,["onSelect"])]),_:2},1024)]),_:2},1024)])])}),128))])}),128)),W(L).length?(x(),G("div",eE,[v(a(Pe),{variant:"outline",size:"sm",class:"h-7 gap-1 border-dashed text-muted-foreground",onClick:ke=>Vm(L)},{default:y(()=>[v(a(ts),{class:"h-3.5 w-3.5"}),K(" "+A(a(t)("models.addSourceToChain")),1)]),_:1},8,["onClick"])])):we("",!0)])):we("",!0)])}),128))])])):we("",!0),S("section",tE,[D[18]||(D[18]=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",nE,[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:D[7]||(D[7]=L=>u.value=!u.value)},[v(a(Xa),{class:xe(["h-4 w-4 shrink-0 text-muted-foreground transition-transform",{"-rotate-90":!u.value}])},null,8,["class"]),D[17]||(D[17]=S("span",{class:"h-2 w-2 shrink-0 rounded-full bg-muted-foreground/40"},null,-1)),S("span",sE,A(a(t)("models.availableSection")),1),S("span",oE,A(Ie.value.length),1)]),ot.value>0?(x(),F(a(Pe),{key:0,variant:"ghost",size:"sm",class:xe(["h-7 gap-1.5 px-2.5",qe.value?"bg-accent text-accent-foreground":"text-muted-foreground"]),title:qe.value?a(t)("models.filterChatHint",{n:ot.value}):a(t)("models.filterAllHint"),onClick:D[8]||(D[8]=L=>qe.value=!qe.value)},{default:y(()=>[v(a($m),{class:"h-3.5 w-3.5"}),K(" "+A(qe.value?a(t)("models.filterChatOnly"):a(t)("models.filterInclude")),1)]),_:1},8,["class","title"])):we("",!0),v(a(Pe),{variant:"ghost",size:"sm",class:"h-7 gap-1.5 px-2.5",disabled:d.value,title:a(t)("sources.refreshAll"),onClick:Zm},{default:y(()=>[d.value?(x(),F(a(_t),{key:0,class:"h-3.5 w-3.5 animate-spin"})):(x(),F(a(hr),{key:1,class:"h-3.5 w-3.5"})),K(" "+A(a(t)("sources.refreshAll")),1)]),_:1},8,["disabled","title"]),Ie.value.length?(x(),F(a(Pe),{key:1,size:"sm",variant:"secondary",class:"h-7 gap-1.5 px-2.5",disabled:f.value,onClick:jt},{default:y(()=>[f.value?(x(),F(a(_t),{key:0,class:"h-3.5 w-3.5 animate-spin"})):(x(),F(a(Vr),{key:1,class:"h-3.5 w-3.5"})),K(" "+A(a(t)("models.enableAll")),1)]),_:1},8,["disabled"])):we("",!0)]),u.value?(x(),G("div",rE,[Ie.value.length?(x(),G("div",lE,[(x(!0),G(Ae,null,ct(ut.value,L=>(x(),G("div",{key:L.source.id},[S("button",{type:"button",class:"flex w-full items-center gap-2 px-3 py-2 text-left hover:bg-muted/40","aria-expanded":_(L.source.id,L.rows.length),"aria-label":L.source.name,onClick:ge=>T(L.source.id,L.rows.length)},[v(a(gi),{class:xe(["h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform",{"rotate-90":_(L.source.id,L.rows.length)}])},null,8,["class"]),S("span",{class:xe(["h-1.5 w-1.5 shrink-0 rounded-full",a(ti)(L.source.id).solid])},null,2),S("span",uE,A(L.source.name),1),S("span",cE,A(L.rows.length),1)],8,iE),_(L.source.id,L.rows.length)?(x(),G("div",dE,[(x(!0),G(Ae,null,ct(L.rows,ge=>(x(),G("div",{key:ge.name,class:"flex items-center justify-between gap-2 px-3 py-2 pl-9"},[S("div",fE,[S("span",pE,A(ge.name),1),S("button",{type:"button",title:a(t)("connect.copy"),"aria-label":a(t)("connect.copy"),class:"inline-flex h-5 w-5 shrink-0 items-center justify-center rounded text-muted-foreground/50 transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onClick:Ee=>V(ge.name)},[v(a(Jn),{class:"h-3 w-3"})],8,mE)]),S("div",hE,[(x(),G(Ae,null,ct(n,Ee=>S("button",{key:Ee,type:"button",disabled:Q(ge,Ee)==="unsupported"||w.value[`${ge.name}:${Ee}`],title:Me(ge,Ee),"aria-label":Me(ge,Ee),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",Ce(ge,Ee)]),onClick:Je=>Xe(ge,Ee)},[w.value[`${ge.name}:${Ee}`]?(x(),F(a(_t),{key:0,class:"h-3 w-3 animate-spin"})):(x(),G("span",{key:1,class:xe(["rounded-full",Q(ge,Ee)==="enabled"?"h-1.5 w-1.5 bg-current":Q(ge,Ee)==="enableable"?"h-1.5 w-1.5 border border-current":"h-1.5 w-1.5"])},null,2)),K(" "+A(a(t)(ne[Ee].chip)),1)],10,vE)),64))])]))),128))])):we("",!0)]))),128))])):(x(),G("p",aE,A(qe.value&&at.value.length?a(t)("models.availableAllFiltered",{n:ot.value}):a(t)("models.availableDesc")),1))])):we("",!0)])],64))]),_:1})]),_:1})),v(vC,{open:p.value,"onUpdate:open":D[9]||(D[9]=L=>p.value=L),onChanged:ee},null,8,["open"]),v(JC,{open:m.value,"onUpdate:open":D[10]||(D[10]=L=>m.value=L),providers:o.value,onChanged:ee},null,8,["open","providers"]),v(fA,{open:M.value,"onUpdate:open":D[11]||(D[11]=L=>M.value=L),"model-name":((Z=E.value)==null?void 0:Z.name)??"",providers:o.value,"enabled-formats":E.value?de(E.value):[],"chain-by-format":E.value?le(E.value):{},onAdded:ee},null,8,["open","model-name","providers","enabled-formats","chain-by-format"]),v(yu,{open:re.value,"onUpdate:open":D[12]||(D[12]=L=>re.value=L),variant:"destructive",title:a(t)("models.removeModel"),description:Y.value?a(t)("models.confirmRemove",{name:Y.value.name}):"","confirm-text":a(t)("models.removeModel"),loading:Y.value?!!g.value[Y.value.name]:!1,onConfirm:Ar},null,8,["open","title","description","confirm-text","loading"])])}}}),bE={class:"relative w-full overflow-auto"},Dm=X({__name:"Table",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),G("div",bE,[S("table",{class:xe(a(Ge)("w-full caption-bottom text-sm",t.class))},[ie(n.$slots,"default")],2)]))}}),Nm=X({__name:"TableHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),G("thead",{class:xe(a(Ge)("[&_tr]:border-b",t.class))},[ie(n.$slots,"default")],2))}}),Fm=X({__name:"TableBody",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),G("tbody",{class:xe(a(Ge)("[&_tr:last-child]:border-0",t.class))},[ie(n.$slots,"default")],2))}}),co=X({__name:"TableRow",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),G("tr",{class:xe(a(Ge)("border-b transition-colors hover:bg-muted/40 data-[state=selected]:bg-muted",t.class))},[ie(n.$slots,"default")],2))}}),rn=X({__name:"TableHead",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),G("th",{class:xe(a(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))}}),Wt=X({__name:"TableCell",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),G("td",{class:xe(a(Ge)("p-3 align-middle [&:has([role=checkbox])]:pr-0",t.class))},[ie(n.$slots,"default")],2))}}),_E=X({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const o=It(e,t);return(r,l)=>(x(),F(a(gx),Ot(Tt(a(o))),{default:y(()=>[ie(r.$slots,"default")]),_:3},16))}}),wE=X({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,s)=>(x(),F(a(Ox),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),xE=X({__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,o=te(()=>{const{class:l,...i}=n;return i}),r=It(o,s);return(l,i)=>(x(),F(a(Ax),null,{default:y(()=>[v(a(Sx),Oe(a(r),{class:a(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(l.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),kE={class:"flex items-center justify-between gap-2"},SE={class:"flex gap-1"},CE={class:"sr-only"},AE={class:"flex flex-wrap items-center gap-2"},EE={class:"relative flex-1 sm:max-w-sm"},OE={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"},PE={class:"space-y-2.5"},TE={class:"flex items-center justify-between"},$E={class:"text-xs font-medium"},IE={class:"space-y-2"},ME={class:"grid grid-cols-[3.5rem_1fr] items-center gap-2"},RE={class:"text-xs text-muted-foreground"},LE={class:"grid grid-cols-[3.5rem_1fr] items-center gap-2"},DE={class:"text-xs text-muted-foreground"},NE={class:"grid grid-cols-[3.5rem_1fr] items-center gap-2"},FE={class:"text-xs text-muted-foreground"},qE={key:0,class:"flex flex-wrap items-center gap-1.5"},BE={class:"text-muted-foreground"},VE={class:"font-medium"},UE=["aria-label","onClick"],HE={class:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground"},jE={key:1,class:"space-y-2 rounded-lg border border-amber-500/30 bg-amber-500/5 p-3"},WE={class:"flex items-center gap-1.5 text-xs font-medium text-amber-700 dark:text-amber-400"},KE={class:"space-y-1.5"},zE={class:"font-medium"},GE={class:"break-all text-muted-foreground"},YE={key:2,class:"space-y-2 rounded-lg border border-orange-500/30 bg-orange-500/5 p-3"},XE={class:"flex items-center gap-1.5 text-xs font-medium text-orange-700 dark:text-orange-400"},JE={class:"space-y-1.5"},QE={class:"font-medium"},ZE={class:"text-muted-foreground"},eO={key:3,class:"py-6 text-center text-sm text-muted-foreground"},tO={key:4,class:"py-6 text-center text-sm text-muted-foreground"},nO={key:5,class:"overflow-x-auto"},sO={class:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs"},oO={class:"font-mono text-muted-foreground"},rO={class:"font-medium"},aO={class:"text-muted-foreground"},lO={class:"text-muted-foreground"},iO={class:"break-all text-muted-foreground"},uO={class:"inline-flex items-center gap-1.5"},cO={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]"},dO={class:"text-muted-foreground"},fO={class:"font-mono"},pO={class:"text-muted-foreground"},mO={class:"font-mono"},hO={class:"text-muted-foreground"},vO={class:"text-muted-foreground"},gO={class:"break-all font-mono"},xd="myapikey.logs.filters",yO=X({__name:"Logs",setup(e){const{t}=Ht(),n=N([]),s=N(!0),o=N(!1),r=N([]),l=N([]),i=N("all"),u=N("all"),c=N("all"),d=N(""),f=N(new Set),p=N(!1);try{const se=JSON.parse(localStorage.getItem(xd)||"null");se&&(typeof se.model=="string"&&(i.value=se.model),typeof se.provider=="string"&&(u.value=se.provider),(se.status==="success"||se.status==="error")&&(c.value=se.status),typeof se.query=="string"&&(d.value=se.query))}catch{}De([i,u,c,d],()=>{try{localStorage.setItem(xd,JSON.stringify({model:i.value,provider:u.value,status:c.value,query:d.value}))}catch{}});let m;async function g(){o.value=!0;try{const[se,Q]=await Promise.all([Fe("GET","/admin/logs").catch(()=>null),Fe("GET","/admin/circuit").catch(()=>null)]);se&&(n.value=se.logs),Q&&(r.value=Q.providers.filter(ce=>ce.state==="cooling"),l.value=Q.providers.filter(ce=>ce.rpm>0&&ce.rpmUsed>=ce.rpm&&ce.state!=="cooling"))}finally{o.value=!1}}async function w(se){await Fe("POST",`/admin/circuit/${se}/reset`).catch(()=>{}),await g()}function C(){h(),m=window.setInterval(g,4e3)}function h(){m&&(clearInterval(m),m=void 0)}function b(){s.value=!s.value,s.value?(g(),C()):h()}function $(se){return se>=200&&se<300?"success":se>=400?"destructive":"muted"}function k(se){var Q;return((Q=Qt[se])==null?void 0:Q.badge)??""}function R(se){return se<1e3?`${se}ms`:`${(se/1e3).toFixed(1)}s`}function I(se){if(se<=0)return"0";const Q=Math.round(se*1e3)/10;return Number.isInteger(Q)?String(Q):Q.toFixed(1)}function E(se){return new Date(se).toLocaleTimeString()}function M(se){return new Date(se).toLocaleString()}function q(se){return`${se.ts}-${se.model}-${se.provider}-${se.status}-${se.kind??"call"}`}function Y(se){return f.value.has(q(se))}function re(se){const Q=new Set(f.value),ce=q(se);Q.has(ce)?Q.delete(ce):Q.add(ce),f.value=Q}const H=te(()=>[...new Set(n.value.map(se=>se.model))].sort()),ee=te(()=>[...new Set(n.value.map(se=>se.provider))].sort()),me=te(()=>{const se=d.value.trim().toLowerCase();return n.value.filter(Q=>!(i.value!=="all"&&Q.model!==i.value||u.value!=="all"&&Q.provider!==u.value||c.value==="success"&&!(Q.status>=200&&Q.status<300)||c.value==="error"&&Q.status<400||se&&!(Q.model.toLowerCase().includes(se)||Q.provider.toLowerCase().includes(se))))}),J=te(()=>{const se=me.value.filter(rt=>rt.kind!=="cooldown"),Q=se.length,ce=se.filter(rt=>rt.status>=400).length,Be=Q?Math.round(se.reduce((rt,at)=>rt+at.ms,0)/Q):0;return{total:Q,fail:ce,avgMs:Be,errorRateStr:I(Q?ce/Q:0)}}),ue=te(()=>(i.value!=="all"?1:0)+(u.value!=="all"?1:0)+(c.value!=="all"?1:0)),de=te(()=>{const se=[];return i.value!=="all"&&se.push({key:"model",label:t("logs.filter.model"),value:i.value,clear:()=>i.value="all"}),u.value!=="all"&&se.push({key:"provider",label:t("logs.filter.provider"),value:u.value,clear:()=>u.value="all"}),c.value!=="all"&&se.push({key:"status",label:t("logs.filter.status"),value:c.value==="success"?t("logs.filter.success"):t("logs.filter.error"),clear:()=>c.value="all"}),se});function fe(){i.value="all",u.value="all",c.value="all"}return mt(()=>{g(),C()}),bn(h),(se,Q)=>(x(),F(a(mn),null,{default:y(()=>[v(a(In),null,{default:y(()=>[S("div",kE,[v(a(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[v(a(Om),{class:"h-4 w-4 text-primary"}),K(" "+A(a(t)("logs.title"))+" ",1),s.value?(x(),F(a(gt),{key:0,variant:"success",class:"gap-1.5"},{default:y(()=>[Q[5]||(Q[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(" "+A(a(t)("logs.live")),1)]),_:1})):we("",!0)]),_:1}),S("div",SE,[v(a(Pe),{variant:"outline",size:"sm",disabled:o.value,onClick:g},{default:y(()=>[o.value?(x(),F(a(_t),{key:0,class:"h-3.5 w-3.5 animate-spin"})):(x(),F(a(hr),{key:1,class:"h-3.5 w-3.5"})),S("span",CE,A(a(t)("logs.refresh")),1)]),_:1},8,["disabled"]),v(a(Pe),{variant:"outline",size:"sm","aria-pressed":s.value,onClick:b},{default:y(()=>[s.value?(x(),F(a(eS),{key:0,class:"h-3.5 w-3.5"})):(x(),F(a(tS),{key:1,class:"h-3.5 w-3.5"})),K(" "+A(s.value?a(t)("logs.pause"):a(t)("logs.resume")),1)]),_:1},8,["aria-pressed"])])]),v(a(bs),null,{default:y(()=>[K(A(a(t)("logs.desc")),1)]),_:1})]),_:1}),v(a(hn),{class:"space-y-3"},{default:y(()=>[S("div",AE,[S("div",EE,[v(a(Lm),{class:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),v(a(bt),{modelValue:d.value,"onUpdate:modelValue":Q[0]||(Q[0]=ce=>d.value=ce),placeholder:a(t)("logs.searchPh"),class:"h-8 pl-8"},null,8,["modelValue","placeholder"])]),v(a(_E),{open:p.value,"onUpdate:open":Q[4]||(Q[4]=ce=>p.value=ce)},{default:y(()=>[v(a(wE),{"as-child":""},{default:y(()=>[v(a(Pe),{variant:"outline",size:"sm",class:"h-8 gap-1.5"},{default:y(()=>[v(a($m),{class:"h-3.5 w-3.5"}),K(" "+A(a(t)("logs.filter.title"))+" ",1),ue.value?(x(),G("span",OE,A(ue.value),1)):we("",!0)]),_:1})]),_:1}),v(a(xE),{align:"start",class:"w-72 p-3"},{default:y(()=>[S("div",PE,[S("div",TE,[S("span",$E,A(a(t)("logs.filter.title")),1),ue.value?(x(),G("button",{key:0,type:"button",class:"text-xs text-primary hover:underline",onClick:fe},A(a(t)("logs.filter.clear")),1)):we("",!0)]),S("div",IE,[S("div",ME,[S("span",RE,A(a(t)("logs.filter.model")),1),v(a(Go),{modelValue:i.value,"onUpdate:modelValue":Q[1]||(Q[1]=ce=>i.value=ce)},{default:y(()=>[v(a(Yo),{class:"h-8 w-full"},{default:y(()=>[v(a(Xo),{placeholder:a(t)("logs.filter.model")},null,8,["placeholder"])]),_:1}),v(a(Jo),null,{default:y(()=>[v(a(fn),{value:"all"},{default:y(()=>[K(A(a(t)("logs.filter.all")),1)]),_:1}),(x(!0),G(Ae,null,ct(H.value,ce=>(x(),F(a(fn),{key:ce,value:ce},{default:y(()=>[K(A(ce),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"])]),S("div",LE,[S("span",DE,A(a(t)("logs.filter.provider")),1),v(a(Go),{modelValue:u.value,"onUpdate:modelValue":Q[2]||(Q[2]=ce=>u.value=ce)},{default:y(()=>[v(a(Yo),{class:"h-8 w-full"},{default:y(()=>[v(a(Xo),{placeholder:a(t)("logs.filter.provider")},null,8,["placeholder"])]),_:1}),v(a(Jo),null,{default:y(()=>[v(a(fn),{value:"all"},{default:y(()=>[K(A(a(t)("logs.filter.all")),1)]),_:1}),(x(!0),G(Ae,null,ct(ee.value,ce=>(x(),F(a(fn),{key:ce,value:ce},{default:y(()=>[K(A(ce),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"])]),S("div",NE,[S("span",FE,A(a(t)("logs.filter.status")),1),v(a(Go),{modelValue:c.value,"onUpdate:modelValue":Q[3]||(Q[3]=ce=>c.value=ce)},{default:y(()=>[v(a(Yo),{class:"h-8 w-full"},{default:y(()=>[v(a(Xo),{placeholder:a(t)("logs.filter.status")},null,8,["placeholder"])]),_:1}),v(a(Jo),null,{default:y(()=>[v(a(fn),{value:"all"},{default:y(()=>[K(A(a(t)("logs.filter.all")),1)]),_:1}),v(a(fn),{value:"success"},{default:y(()=>[K(A(a(t)("logs.filter.success")),1)]),_:1}),v(a(fn),{value:"error"},{default:y(()=>[K(A(a(t)("logs.filter.error")),1)]),_:1})]),_:1})]),_:1},8,["modelValue"])])])])]),_:1})]),_:1},8,["open"])]),de.value.length?(x(),G("div",qE,[(x(!0),G(Ae,null,ct(de.value,ce=>(x(),G("span",{key:ce.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",BE,A(ce.label)+":",1),S("span",VE,A(ce.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":a(t)("logs.filter.remove",{label:ce.label}),onClick:ce.clear},[v(a(gu),{class:"h-3 w-3"})],8,UE)]))),128)),S("button",{type:"button",class:"text-xs text-muted-foreground hover:text-foreground",onClick:fe},A(a(t)("logs.filter.clear")),1)])):we("",!0),S("div",HE,[S("span",null,A(a(t)("logs.summary.window",{n:J.value.total})),1),S("span",{class:xe({"text-destructive":J.value.fail>0})},A(a(t)("logs.summary.errorRate",{pct:J.value.errorRateStr})),3),S("span",null,A(a(t)("logs.summary.avgLatency",{ms:R(J.value.avgMs)})),1)]),r.value.length?(x(),G("div",jE,[S("div",WE,[v(a(El),{class:"h-4 w-4"}),K(" "+A(a(t)("logs.circuit.stripTitle")),1)]),S("ul",KE,[(x(!0),G(Ae,null,ct(r.value,ce=>(x(),G("li",{key:ce.id,class:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs"},[S("span",zE,A(ce.name),1),v(a(gt),{variant:"warning",class:"gap-1 whitespace-nowrap"},{default:y(()=>[v(a(El),{class:"h-3 w-3"}),K(" "+A(a(t)("logs.circuit.remaining",{s:ce.secondsLeft})),1)]),_:2},1024),S("span",GE,A(ce.lastReason||a(t)("logs.circuit.reasonUnknown")),1),v(a(Pe),{variant:"outline",size:"sm",class:"ml-auto h-6 gap-1",onClick:Be=>w(ce.id)},{default:y(()=>[v(a(hr),{class:"h-3 w-3"}),K(" "+A(a(t)("logs.circuit.reset")),1)]),_:1},8,["onClick"])]))),128))])])):we("",!0),l.value.length?(x(),G("div",YE,[S("div",XE,[v(a(zo),{class:"h-4 w-4"}),K(" "+A(a(t)("logs.pacing.stripTitle")),1)]),S("ul",JE,[(x(!0),G(Ae,null,ct(l.value,ce=>(x(),G("li",{key:ce.id,class:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs"},[S("span",QE,A(ce.name),1),v(a(gt),{variant:"outline",class:"gap-1 whitespace-nowrap"},{default:y(()=>[v(a(zo),{class:"h-3 w-3"}),K(" "+A(a(t)("logs.pacing.at",{used:ce.rpmUsed,cap:ce.rpm})),1)]),_:2},1024),S("span",ZE,A(a(t)("logs.pacing.reason")),1)]))),128))])])):we("",!0),n.value.length?me.value.length?(x(),G("div",nO,[v(a(Dm),null,{default:y(()=>[v(a(Nm),null,{default:y(()=>[v(a(co),null,{default:y(()=>[v(a(rn),{class:"w-8"}),v(a(rn),null,{default:y(()=>[K(A(a(t)("logs.col.time")),1)]),_:1}),v(a(rn),null,{default:y(()=>[K(A(a(t)("logs.col.model")),1)]),_:1}),v(a(rn),null,{default:y(()=>[K(A(a(t)("logs.col.provider")),1)]),_:1}),v(a(rn),null,{default:y(()=>[K(A(a(t)("logs.col.format")),1)]),_:1}),v(a(rn),{class:"text-right"},{default:y(()=>[K(A(a(t)("logs.col.latency")),1)]),_:1}),v(a(rn),{class:"text-right"},{default:y(()=>[K(A(a(t)("logs.col.status")),1)]),_:1})]),_:1})]),_:1}),v(a(Fm),null,{default:y(()=>[(x(!0),G(Ae,null,ct(me.value,ce=>(x(),G(Ae,{key:q(ce)},[ce.kind==="cooldown"?(x(),F(a(co),{key:0,class:"bg-amber-500/5 hover:bg-amber-500/10"},{default:y(()=>[v(a(Wt),{colspan:"7",class:"py-2"},{default:y(()=>[S("div",sO,[S("span",oO,A(E(ce.ts)),1),v(a(gt),{variant:"warning",class:"gap-1 whitespace-nowrap"},{default:y(()=>[v(a(El),{class:"h-3 w-3"}),K(" "+A(a(t)("logs.circuit.badge")),1)]),_:1}),S("span",rO,A(ce.provider),1),S("span",aO,A(a(t)("logs.circuit.failures",{n:ce.fails})),1),S("span",lO,A(a(t)("logs.circuit.cooldown",{s:Math.round((ce.cooldownMs??0)/1e3)})),1),S("span",iO,A(ce.error||a(t)("logs.circuit.reasonUnknown")),1)])]),_:2},1024)]),_:2},1024)):(x(),G(Ae,{key:1},[v(a(co),{class:"cursor-pointer hover:bg-muted/50",onClick:Be=>re(ce)},{default:y(()=>[v(a(Wt),{class:"w-8 text-muted-foreground"},{default:y(()=>[(x(),F(br(Y(ce)?a(Xa):a(gi)),{class:"h-3.5 w-3.5"}))]),_:2},1024),v(a(Wt),{class:"font-mono text-xs text-muted-foreground",title:M(ce.ts)},{default:y(()=>[K(A(E(ce.ts)),1)]),_:2},1032,["title"]),v(a(Wt),{class:"font-mono text-xs"},{default:y(()=>[K(A(ce.model),1)]),_:2},1024),v(a(Wt),{class:"text-sm"},{default:y(()=>[K(A(ce.provider),1)]),_:2},1024),v(a(Wt),null,{default:y(()=>[S("span",uO,[v(a(gt),{variant:"outline",class:xe(k(ce.format))},{default:y(()=>[K(A(ce.format),1)]),_:2},1032,["class"]),ce.stream?(x(),F(a(gt),{key:0,variant:"muted",class:"text-[10px]"},{default:y(()=>[K(A(a(t)("logs.stream")),1)]),_:1})):we("",!0)])]),_:2},1024),v(a(Wt),{class:"text-right font-mono text-xs text-muted-foreground"},{default:y(()=>[K(A(R(ce.ms)),1)]),_:2},1024),v(a(Wt),{class:"text-right"},{default:y(()=>[v(a(gt),{variant:$(ce.status),class:"font-mono"},{default:y(()=>[K(A(ce.status),1)]),_:2},1032,["variant"])]),_:2},1024)]),_:2},1032,["onClick"]),Y(ce)?(x(),F(a(co),{key:0,class:"hover:bg-transparent"},{default:y(()=>[v(a(Wt),{colspan:"7",class:"bg-muted/30"},{default:y(()=>[S("dl",cO,[S("dt",dO,A(a(t)("logs.detail.time")),1),S("dd",fO,A(M(ce.ts)),1),S("dt",pO,A(a(t)("logs.detail.latency")),1),S("dd",mO,A(R(ce.ms)),1),S("dt",hO,A(a(t)("logs.detail.stream")),1),S("dd",null,A(ce.stream?a(t)("logs.detail.streamYes"):a(t)("logs.detail.streamNo")),1),S("dt",vO,A(a(t)("logs.detail.error")),1),S("dd",gO,A(ce.error||a(t)("logs.detail.errorNone")),1)])]),_:2},1024)]),_:2},1024)):we("",!0)],64))],64))),128))]),_:1})]),_:1})])):(x(),G("p",tO,A(a(t)("logs.noMatch")),1)):(x(),G("p",eO,A(a(t)("logs.empty")),1))]),_:1})]),_:1}))}}),bO={key:0,class:"py-4 text-center text-xs text-muted-foreground"},_O={class:"flex items-center gap-1.5"},wO={class:"truncate font-mono text-xs"},xO={class:"flex items-center gap-2"},kO={class:"h-1.5 w-full max-w-[120px] overflow-hidden rounded-full bg-muted"},SO={class:"font-mono text-xs tabular-nums"},Pl=X({__name:"StatsBreakdown",props:{title:{},buckets:{},max:{},kind:{}},setup(e){const{t}=Ht();function n(r){return r<1e3?`${r}ms`:`${(r/1e3).toFixed(1)}s`}function s(r,l){return l?Math.round(r/l*100):0}function o(r){var l;return(l=Qt[r])==null?void 0:l.solid}return(r,l)=>(x(),F(a(mn),null,{default:y(()=>[v(a(In),{class:"pb-2"},{default:y(()=>[v(a(Mn),{class:"text-sm"},{default:y(()=>[K(A(e.title),1)]),_:1})]),_:1}),v(a(hn),null,{default:y(()=>[e.buckets.length?(x(),F(a(Dm),{key:1},{default:y(()=>[v(a(Nm),null,{default:y(()=>[v(a(co),null,{default:y(()=>[v(a(rn),null,{default:y(()=>[K(A(a(t)("stats.col.name")),1)]),_:1}),v(a(rn),{class:"w-1/3"},{default:y(()=>[K(A(a(t)("stats.col.calls")),1)]),_:1}),v(a(rn),{class:"text-right"},{default:y(()=>[K(A(a(t)("stats.col.success")),1)]),_:1}),v(a(rn),{class:"text-right"},{default:y(()=>[K(A(a(t)("stats.col.error")),1)]),_:1}),v(a(rn),{class:"text-right"},{default:y(()=>[K(A(a(t)("stats.col.avgLatency")),1)]),_:1})]),_:1})]),_:1}),v(a(Fm),null,{default:y(()=>[(x(!0),G(Ae,null,ct(e.buckets,i=>(x(),F(a(co),{key:i.key},{default:y(()=>[v(a(Wt),{class:"py-1.5"},{default:y(()=>[S("div",_O,[e.kind==="format"&&o(i.key)?(x(),G("span",{key:0,class:xe(["h-2 w-2 shrink-0 rounded-full",o(i.key)])},null,2)):e.kind==="provider"&&i.id?(x(),G("span",{key:1,class:xe(["h-2 w-2 shrink-0 rounded-full",a(ti)(i.id).solid])},null,2)):we("",!0),S("span",wO,A(i.key),1)])]),_:2},1024),v(a(Wt),{class:"py-1.5"},{default:y(()=>[S("div",xO,[S("div",kO,[S("div",{class:"h-full rounded-full bg-primary/50",style:vn({width:s(i.calls,e.max)+"%"})},null,4)]),S("span",SO,A(i.calls),1)])]),_:2},1024),v(a(Wt),{class:"py-1.5 text-right font-mono text-xs text-emerald-600 dark:text-emerald-400"},{default:y(()=>[K(A(i.success),1)]),_:2},1024),v(a(Wt),{class:xe(["py-1.5 text-right font-mono text-xs",i.error?"text-destructive":"text-muted-foreground"])},{default:y(()=>[K(A(i.error),1)]),_:2},1032,["class"]),v(a(Wt),{class:"py-1.5 text-right font-mono text-xs text-muted-foreground"},{default:y(()=>[K(A(n(i.avgMs)),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})):(x(),G("p",bO,A(a(t)("stats.empty")),1))]),_:1})]),_:1}))}}),CO={class:"flex flex-wrap items-center justify-between gap-2"},AO={class:"flex items-center gap-2"},EO={class:"inline-flex rounded-md border bg-muted/30 p-0.5"},OO=["onClick"],PO={class:"sr-only"},TO={key:0,class:"flex items-center justify-center gap-2 py-10 text-sm text-muted-foreground"},$O={key:1,class:"py-10 text-center text-sm text-muted-foreground"},IO={class:"grid grid-cols-2 gap-2 sm:grid-cols-3 lg:grid-cols-6"},MO={class:"rounded-lg border bg-muted/20 p-3"},RO={class:"text-xs text-muted-foreground"},LO={class:"mt-1 font-mono text-xl tabular-nums"},DO={class:"rounded-lg border bg-muted/20 p-3"},NO={class:"text-xs text-muted-foreground"},FO={class:"mt-1 font-mono text-xl tabular-nums text-emerald-600 dark:text-emerald-400"},qO={class:"rounded-lg border bg-muted/20 p-3"},BO={class:"text-xs text-muted-foreground"},VO={class:"mt-1 font-mono text-xl tabular-nums text-destructive"},UO={class:"rounded-lg border bg-muted/20 p-3"},HO={class:"text-xs text-muted-foreground"},jO={class:"mt-1 font-mono text-xl tabular-nums"},WO={class:"rounded-lg border bg-muted/20 p-3"},KO={class:"text-xs text-muted-foreground"},zO={class:"mt-1 font-mono text-xl tabular-nums"},GO={class:"rounded-lg border bg-muted/20 p-3"},YO={class:"text-xs text-muted-foreground"},XO={class:"mt-1 font-mono text-xl tabular-nums"},JO={class:"mb-2 flex items-center justify-between gap-2"},QO={class:"text-sm font-medium"},ZO={key:0,class:"text-[11px] text-muted-foreground"},eP={class:"font-mono tabular-nums text-foreground"},tP={class:"rounded-lg border p-3"},nP={class:"relative pt-9"},sP={class:"flex h-40 gap-px"},oP={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"},rP={class:"font-medium"},aP={class:"font-mono tabular-nums"},lP={class:"text-[10px]"},iP={class:"text-emerald-600 dark:text-emerald-400"},uP={class:"text-destructive"},cP={class:"mt-1.5 flex justify-between text-[10px] text-muted-foreground"},dP={class:"grid gap-4 lg:grid-cols-2"},fP={class:"lg:col-span-2"},kd=160,pP=X({__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=N(localStorage.getItem("myapikey.stats.range")||"7d");n.some(g=>g.v===s.value)||(s.value="7d"),De(s,g=>{try{localStorage.setItem("myapikey.stats.range",g)}catch{}});const o=N(null),r=N(!1);async function l(){r.value=!0;try{o.value=await Fe("GET",`/admin/stats?range=${s.value}`)}catch{o.value=null}finally{r.value=!1}}De(s,l),mt(l);function i(g){return g<1e3?`${g}ms`:`${(g/1e3).toFixed(1)}s`}function u(g){if(!g)return"0%";const w=Math.round(g*1e3)/10;return(w%1===0?w.toFixed(0):w.toFixed(1))+"%"}function c(g){const[w,C,h]=g.split("-").map(Number);return new Date(w,C-1,h).toLocaleDateString(void 0,{month:"short",day:"numeric"})}const d=te(()=>{var g;return((g=o.value)==null?void 0:g.byDay.reduce((w,C)=>Math.max(w,C.calls),0))??0});function f(g){const w=d.value||1,C=g.calls/w*kd,h=g.error/w*kd;return{success:Math.max(0,Math.round(C-h)),error:Math.round(h)}}function p(g){return g.reduce((w,C)=>Math.max(w,C.calls),0)||1}const m=te(()=>!!o.value&&o.value.totals.calls>0);return(g,w)=>(x(),F(a(mn),null,{default:y(()=>[v(a(In),null,{default:y(()=>[S("div",CO,[v(a(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[v(a(Pm),{class:"h-4 w-4 text-primary"}),K(" "+A(a(t)("stats.title")),1)]),_:1}),S("div",AO,[S("div",EO,[(x(),G(Ae,null,ct(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},A(a(t)(`stats.ranges.${C.key}`)),11,OO)),64))]),v(a(Pe),{variant:"outline",size:"sm",disabled:r.value,onClick:l},{default:y(()=>[r.value?(x(),F(a(_t),{key:0,class:"h-3.5 w-3.5 animate-spin"})):(x(),F(a(hr),{key:1,class:"h-3.5 w-3.5"})),S("span",PO,A(a(t)("stats.refresh")),1)]),_:1},8,["disabled"])])]),v(a(bs),null,{default:y(()=>[K(A(a(t)("stats.desc")),1)]),_:1})]),_:1}),v(a(hn),{class:"space-y-5"},{default:y(()=>[r.value&&!o.value?(x(),G("div",TO,[v(a(_t),{class:"h-4 w-4 animate-spin"}),K(" "+A(a(t)("stats.loading")),1)])):m.value?o.value?(x(),G(Ae,{key:2},[S("div",IO,[S("div",MO,[S("div",RO,A(a(t)("stats.totals.calls")),1),S("div",LO,A(o.value.totals.calls),1)]),S("div",DO,[S("div",NO,A(a(t)("stats.totals.success")),1),S("div",FO,A(o.value.totals.success),1)]),S("div",qO,[S("div",BO,A(a(t)("stats.totals.error")),1),S("div",VO,A(o.value.totals.error),1)]),S("div",UO,[S("div",HO,A(a(t)("stats.totals.errorRate")),1),S("div",jO,A(u(o.value.totals.errorRate)),1)]),S("div",WO,[S("div",KO,A(a(t)("stats.totals.avgLatency")),1),S("div",zO,A(i(o.value.totals.avgMs)),1)]),S("div",GO,[S("div",YO,A(a(t)("stats.totals.p95")),1),S("div",XO,A(i(o.value.totals.p95Ms)),1)])]),S("div",null,[S("div",JO,[S("div",QO,A(a(t)("stats.byDay")),1),d.value?(x(),G("div",ZO,[K(A(a(t)("stats.peak"))+" ",1),S("span",eP,A(d.value),1)])):we("",!0)]),S("div",tP,[S("div",nP,[S("div",sP,[(x(!0),G(Ae,null,ct(o.value.byDay,C=>(x(),G("div",{key:C.day,class:"group relative flex min-w-0 flex-1 cursor-default flex-col justify-end"},[S("div",{style:vn({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:vn({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",oP,[S("div",rP,A(c(C.day)),1),S("div",aP,A(C.calls)+" "+A(a(t)("stats.callsAxis")),1),S("div",lP,[S("span",iP,A(C.success),1),w[0]||(w[0]=S("span",{class:"text-muted-foreground"}," / ",-1)),S("span",uP,A(C.error),1)])])]))),128))])]),S("div",cP,[S("span",null,A(o.value.byDay.length?c(o.value.byDay[0].day):""),1),S("span",null,A(o.value.byDay.length?c(o.value.byDay[o.value.byDay.length-1].day):""),1)])])]),S("div",dP,[S("div",fP,[v(Pl,{title:a(t)("stats.byModel"),buckets:o.value.byModel,max:p(o.value.byModel),kind:"model"},null,8,["title","buckets","max"])]),v(Pl,{title:a(t)("stats.byProvider"),buckets:o.value.byProvider,max:p(o.value.byProvider),kind:"provider"},null,8,["title","buckets","max"]),v(Pl,{title:a(t)("stats.byFormat"),buckets:o.value.byFormat,max:p(o.value.byFormat),kind:"format"},null,8,["title","buckets","max"])])],64)):we("",!0):(x(),G("div",$O,A(a(t)("stats.empty")),1))]),_:1})]),_:1}))}}),mP={class:"space-y-4"},hP={class:"space-y-2"},vP={class:"min-w-0"},gP={class:"mt-0.5 truncate font-mono text-sm"},yP={class:"min-w-0"},bP={class:"mt-0.5 truncate font-mono text-sm"},_P={class:"text-xs text-muted-foreground"},wP={class:"flex items-center justify-between gap-3 rounded-lg border border-primary/40 bg-primary/5 p-3"},xP={class:"min-w-0"},kP={class:"text-xs font-medium text-primary"},SP={class:"truncate font-mono text-sm"},CP={class:"flex items-center gap-1"},AP={class:"overflow-x-auto rounded-md border bg-muted/40 p-3 font-mono text-xs leading-relaxed"},EP=X({__name:"Connect",setup(e){const{t}=Ht(),n={openai:"openai",anthropic:"anthropic",responses:"responses",curl:null};function s(m){const g=n[m];return g?Qt[g]:null}const o=N(null),r=N(null),l=N(""),i=N(!1),u=te(()=>{const m=window.location.hostname;if((m==="localhost"||m==="127.0.0.1")&&r.value){const g=window.location.port;return`${window.location.protocol}//${r.value}${g?":"+g:""}`}return window.location.origin}),c=te(()=>`${u.value}/v1`);async function d(){o.value=(await Fe("GET","/admin/api-key")).apiKey,r.value=(await Fe("GET","/admin/connection")).lanIp}async function f(m,g){await Xi(g)?(l.value=m,setTimeout(()=>{l.value===m&&(l.value="")},1500)):$e(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=${o.value??""}`},{key:"anthropic",title:t("connect.anthropicTitle"),text:`export ANTHROPIC_BASE_URL=${u.value}
|
|
284
|
+
export ANTHROPIC_API_KEY=${o.value??""}`},{key:"curl",title:t("connect.curlTitle"),text:`curl ${c.value}/chat/completions \\
|
|
285
|
+
-H "Authorization: Bearer ${o.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 ${o.value??""}" \\
|
|
289
|
+
-H "Content-Type: application/json" \\
|
|
290
|
+
-d '{"model":"<model>","input":"hi"}'`}]);return mt(d),(m,g)=>(x(),G("div",mP,[v(a(mn),null,{default:y(()=>[v(a(In),null,{default:y(()=>[v(a(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[v(a(Rm),{class:"h-4 w-4 text-primary"}),K(" "+A(a(t)("connect.title")),1)]),_:1}),v(a(bs),null,{default:y(()=>[K(A(a(t)("connect.desc")),1)]),_:1})]),_:1}),v(a(hn),{class:"space-y-3"},{default:y(()=>[S("div",hP,[S("div",{class:xe(["flex items-center justify-between gap-3 rounded-lg border p-3",[a(Qt).openai.border,a(Qt).openai.soft]])},[S("div",vP,[S("div",{class:xe(["flex items-center gap-1.5 text-xs font-medium",a(Qt).openai.text])},[S("span",{class:xe(["h-1.5 w-1.5 rounded-full",a(Qt).openai.solid])},null,2),K(" "+A(a(t)("connect.baseUrlOpenai")),1)],2),S("div",gP,A(c.value),1)]),v(a(Pe),{variant:"outline",size:"sm",onClick:g[0]||(g[0]=w=>f("url-openai",c.value))},{default:y(()=>[l.value==="url-openai"?(x(),F(a(Xn),{key:0,class:"h-4 w-4"})):(x(),F(a(Jn),{key:1,class:"h-4 w-4"})),K(" "+A(l.value==="url-openai"?a(t)("connect.copied"):a(t)("connect.copy")),1)]),_:1})],2),S("div",{class:xe(["flex items-center justify-between gap-3 rounded-lg border p-3",[a(Qt).anthropic.border,a(Qt).anthropic.soft]])},[S("div",yP,[S("div",{class:xe(["flex items-center gap-1.5 text-xs font-medium",a(Qt).anthropic.text])},[S("span",{class:xe(["h-1.5 w-1.5 rounded-full",a(Qt).anthropic.solid])},null,2),K(" "+A(a(t)("connect.baseUrlAnthropic")),1)],2),S("div",bP,A(u.value),1)]),v(a(Pe),{variant:"outline",size:"sm",onClick:g[1]||(g[1]=w=>f("url-anthropic",u.value))},{default:y(()=>[l.value==="url-anthropic"?(x(),F(a(Xn),{key:0,class:"h-4 w-4"})):(x(),F(a(Jn),{key:1,class:"h-4 w-4"})),K(" "+A(l.value==="url-anthropic"?a(t)("connect.copied"):a(t)("connect.copy")),1)]),_:1})],2)]),S("p",_P,A(a(t)("connect.note")),1),S("div",wP,[S("div",xP,[S("div",kP,A(a(t)("connect.apiKey")),1),S("div",SP,A(o.value?i.value?o.value:"•".repeat(Math.min(o.value.length,24)):"…"),1)]),S("div",CP,[v(a(Pe),{variant:"ghost",size:"icon",title:i.value?a(t)("connect.hide"):a(t)("connect.reveal"),"aria-label":i.value?a(t)("connect.hide"):a(t)("connect.reveal"),onClick:g[2]||(g[2]=w=>i.value=!i.value)},{default:y(()=>[i.value?(x(),F(a(ma),{key:0,class:"h-4 w-4"})):(x(),F(a(ha),{key:1,class:"h-4 w-4"}))]),_:1},8,["title","aria-label"]),v(a(Pe),{variant:"outline",size:"sm",onClick:g[3]||(g[3]=w=>f("key",o.value??""))},{default:y(()=>[l.value==="key"?(x(),F(a(Xn),{key:0,class:"h-4 w-4"})):(x(),F(a(Jn),{key:1,class:"h-4 w-4"})),K(" "+A(l.value==="key"?a(t)("connect.copied"):a(t)("connect.copy")),1)]),_:1})])])]),_:1})]),_:1}),(x(!0),G(Ae,null,ct(p.value,w=>(x(),F(a(mn),{key:w.key},{default:y(()=>[v(a(In),{class:"flex flex-row items-center justify-between space-y-0"},{default:y(()=>[v(a(Mn),{class:"flex items-center gap-2 text-sm font-medium"},{default:y(()=>{var C;return[s(w.key)?(x(),G("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(" "+A(w.title),1)]}),_:2},1024),v(a(Pe),{variant:"ghost",size:"sm",onClick:C=>f(w.key,w.text)},{default:y(()=>[l.value===w.key?(x(),F(a(Xn),{key:0,class:"h-4 w-4"})):(x(),F(a(Jn),{key:1,class:"h-4 w-4"})),K(" "+A(l.value===w.key?a(t)("connect.copied"):a(t)("connect.copy")),1)]),_:2},1032,["onClick"])]),_:2},1024),v(a(hn),null,{default:y(()=>[S("pre",AP,A(w.text),1)]),_:2},1024)]),_:2},1024))),128))]))}}),OP=["for"],Bs=X({__name:"Label",props:{class:{type:[Boolean,null,String,Object,Array]},for:{}},setup(e){const t=e;return(n,s)=>(x(),G("label",{for:t.for,class:xe(a(Ge)("text-sm font-medium leading-none text-foreground",t.class))},[ie(n.$slots,"default")],10,OP))}}),PP={class:"max-w-xl space-y-4"},TP={class:"space-y-1.5"},$P={class:"flex items-center justify-between gap-3 rounded-lg border p-3"},IP={class:"min-w-0 truncate font-mono text-sm"},MP={class:"flex items-center gap-1"},RP={class:"space-y-3"},LP={class:"space-y-1.5"},DP={class:"space-y-1.5"},NP={class:"space-y-1.5"},FP={key:0,class:"text-sm text-destructive"},qP={class:"flex justify-end"},BP={class:"flex items-center justify-between gap-3 rounded-lg border border-primary/40 bg-primary/5 p-3"},VP={class:"min-w-0 truncate font-mono text-sm"},UP={class:"flex items-center gap-1"},HP={class:"flex justify-end"},jP={class:"flex items-center justify-between gap-3 rounded-lg border p-3"},WP={class:"min-w-0 truncate font-mono text-sm"},KP=X({__name:"Settings",setup(e){const{t}=Ht(),n=N(null),s=N(""),o=N(""),r=N(""),l=N(!1),i=N(!1),u=N(""),c=N(null),d=N(!1),f=N(!1),p=N(!1),m=N(null),g=N(""),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,E,M]=await Promise.all([Fe("GET","/admin/account"),Fe("GET","/admin/api-key"),Fe("GET","/admin/storage")]);n.value=I,s.value=I.username,c.value=E.apiKey,m.value=M}catch(I){$e(I.message,"error")}}async function b(I,E){await Xi(E)?(g.value=I,setTimeout(()=>{g.value===I&&(g.value="")},1500)):$e(t("connect.copyFailed"),"error")}function $(){if(!s.value.trim())return t("settings.errUserShort");if(o.value){if(o.value.length<8)return t("settings.errPassShort");if(o.value!==r.value)return t("settings.errPassMismatch")}return null}async function k(){var M,q;if(i.value)return;u.value="";const I=$();if(I){u.value=I;return}i.value=!0;const E={username:s.value.trim()};o.value&&(E.password=o.value);try{await Fe("PUT","/admin/account",E);const Y=o.value||((M=n.value)==null?void 0:M.password)||((q=la())==null?void 0:q.pass)||"",re=s.value.trim();Sp(re,Y),n.value={username:re,password:Y},o.value="",r.value="",$e(t("settings.saved"),"success")}catch(Y){u.value=Y.message}finally{i.value=!1}}async function R(){if(!f.value){f.value=!0;try{const I=await Fe("POST","/admin/api-key/rotate");c.value=I.apiKey,$e(t("settings.apikey.rotated"),"success"),p.value=!1}catch(I){$e(I.message,"error")}finally{f.value=!1}}}return mt(h),(I,E)=>(x(),G("div",PP,[v(a(mn),null,{default:y(()=>[v(a(In),null,{default:y(()=>[v(a(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[v(a(aS),{class:"h-4 w-4 text-primary"}),K(A(a(t)("settings.title")),1)]),_:1}),v(a(bs),null,{default:y(()=>[K(A(a(t)("settings.desc")),1)]),_:1})]),_:1}),v(a(hn),{class:"space-y-4"},{default:y(()=>[S("div",TP,[v(a(Bs),null,{default:y(()=>[K(A(a(t)("settings.loginPassword")),1)]),_:1}),S("div",$P,[S("div",IP,A(n.value?l.value?w.value:"•".repeat(Math.min(w.value.length,24)):"…"),1),S("div",MP,[v(a(Pe),{variant:"ghost",size:"icon",title:l.value?a(t)("connect.hide"):a(t)("connect.reveal"),"aria-label":l.value?a(t)("connect.hide"):a(t)("connect.reveal"),onClick:E[0]||(E[0]=M=>l.value=!l.value)},{default:y(()=>[l.value?(x(),F(a(ma),{key:0,class:"h-4 w-4"})):(x(),F(a(ha),{key:1,class:"h-4 w-4"}))]),_:1},8,["title","aria-label"]),v(a(Pe),{variant:"outline",size:"sm",onClick:E[1]||(E[1]=M=>b("pass",w.value))},{default:y(()=>[g.value==="pass"?(x(),F(a(Xn),{key:0,class:"h-4 w-4"})):(x(),F(a(Jn),{key:1,class:"h-4 w-4"})),K(" "+A(g.value==="pass"?a(t)("connect.copied"):a(t)("connect.copy")),1)]),_:1})])])]),S("div",RP,[S("div",LP,[v(a(Bs),{for:"username"},{default:y(()=>[K(A(a(t)("settings.username")),1)]),_:1}),v(a(bt),{id:"username",modelValue:s.value,"onUpdate:modelValue":E[2]||(E[2]=M=>s.value=M),autocomplete:"username"},null,8,["modelValue"])]),S("div",DP,[v(a(Bs),{for:"newpass"},{default:y(()=>[K(A(a(t)("settings.newPassword")),1)]),_:1}),v(a(bt),{id:"newpass",modelValue:o.value,"onUpdate:modelValue":E[3]||(E[3]=M=>o.value=M),type:"password",placeholder:a(t)("settings.newPasswordPh"),autocomplete:"new-password"},null,8,["modelValue","placeholder"])]),S("div",NP,[v(a(Bs),{for:"confirmpass"},{default:y(()=>[K(A(a(t)("settings.confirmPassword")),1)]),_:1}),v(a(bt),{id:"confirmpass",modelValue:r.value,"onUpdate:modelValue":E[4]||(E[4]=M=>r.value=M),type:"password",placeholder:a(t)("settings.confirmPh"),autocomplete:"new-password"},null,8,["modelValue","placeholder"])]),u.value?(x(),G("p",FP,A(u.value),1)):we("",!0),S("div",qP,[v(a(Pe),{disabled:i.value,onClick:k},{default:y(()=>[i.value?(x(),F(a(_t),{key:0,class:"h-4 w-4 animate-spin"})):we("",!0),K(" "+A(i.value?a(t)("settings.saving"):a(t)("settings.save")),1)]),_:1},8,["disabled"])])])]),_:1})]),_:1}),v(a(mn),null,{default:y(()=>[v(a(In),null,{default:y(()=>[v(a(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[v(a(Gk),{class:"h-4 w-4 text-primary"}),K(A(a(t)("settings.apikey.title")),1)]),_:1}),v(a(bs),null,{default:y(()=>[K(A(a(t)("settings.apikey.desc")),1)]),_:1})]),_:1}),v(a(hn),{class:"space-y-3"},{default:y(()=>[S("div",BP,[S("div",VP,A(c.value?d.value?c.value:"•".repeat(Math.min(c.value.length,24)):"…"),1),S("div",UP,[v(a(Pe),{variant:"ghost",size:"icon",title:d.value?a(t)("connect.hide"):a(t)("connect.reveal"),"aria-label":d.value?a(t)("connect.hide"):a(t)("connect.reveal"),onClick:E[5]||(E[5]=M=>d.value=!d.value)},{default:y(()=>[d.value?(x(),F(a(ma),{key:0,class:"h-4 w-4"})):(x(),F(a(ha),{key:1,class:"h-4 w-4"}))]),_:1},8,["title","aria-label"]),v(a(Pe),{variant:"outline",size:"sm",onClick:E[6]||(E[6]=M=>b("apikey",c.value??""))},{default:y(()=>[g.value==="apikey"?(x(),F(a(Xn),{key:0,class:"h-4 w-4"})):(x(),F(a(Jn),{key:1,class:"h-4 w-4"})),K(" "+A(g.value==="apikey"?a(t)("connect.copied"):a(t)("connect.copy")),1)]),_:1})])]),S("div",HP,[v(a(Pe),{variant:"outline",disabled:f.value,onClick:E[7]||(E[7]=M=>p.value=!0)},{default:y(()=>[v(a(nS),{class:"h-4 w-4"}),K(" "+A(a(t)("settings.apikey.rotate")),1)]),_:1},8,["disabled"])])]),_:1})]),_:1}),v(a(mn),null,{default:y(()=>[v(a(In),null,{default:y(()=>[v(a(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[v(a(zk),{class:"h-4 w-4 text-primary"}),K(A(a(t)("settings.storage.title")),1)]),_:1}),v(a(bs),null,{default:y(()=>[K(A(a(t)("settings.storage.desc")),1)]),_:1})]),_:1}),v(a(hn),{class:"space-y-3"},{default:y(()=>[(x(!0),G(Ae,null,ct(C.value,M=>(x(),G("div",{key:M.key,class:"space-y-1.5"},[v(a(Bs),null,{default:y(()=>[K(A(M.label),1)]),_:2},1024),S("div",jP,[S("div",WP,A(M.value),1),v(a(Pe),{variant:"outline",size:"sm",onClick:q=>b(M.key,M.value)},{default:y(()=>[g.value===M.key?(x(),F(a(Xn),{key:0,class:"h-4 w-4"})):(x(),F(a(Jn),{key:1,class:"h-4 w-4"})),K(" "+A(g.value===M.key?a(t)("connect.copied"):a(t)("connect.copy")),1)]),_:2},1032,["onClick"])])]))),128))]),_:1})]),_:1}),v(yu,{open:p.value,"onUpdate:open":E[8]||(E[8]=M=>p.value=M),variant:"destructive",title:a(t)("settings.apikey.rotateTitle"),description:a(t)("settings.apikey.rotateDesc"),"confirm-text":a(t)("settings.apikey.rotateConfirm"),loading:f.value,onConfirm:R},null,8,["open","title","description","confirm-text","loading"])]))}}),zP=["width","height"],Sd=X({__name:"Logo",props:{size:{default:28}},setup(e){return(t,n)=>(x(),G("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]=[Uv('<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,zP))}}),GP=X({__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(o,r)=>(x(),F(a(Mk),{"default-value":n.defaultValue,"model-value":n.modelValue,"onUpdate:modelValue":r[0]||(r[0]=l=>s("update:modelValue",l)),class:xe(a(Ge)(n.class))},{default:y(()=>[ie(o.$slots,"default")]),_:3},8,["default-value","model-value","class"]))}}),YP=X({__name:"TabsList",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),F(a(Nk),{class:xe(a(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"]))}}),No=X({__name:"TabsTrigger",props:{value:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),F(a(qk),{value:t.value,class:xe(a(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"]))}}),Fo=X({__name:"TabsContent",props:{value:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),F(a(Lk),{value:t.value,tabindex:"-1",class:xe(a(Ge)("mt-4 ring-offset-background focus-visible:outline-none",t.class))},{default:y(()=>[ie(n.$slots,"default")]),_:3},8,["value","class"]))}}),XP={class:"pointer-events-none fixed inset-x-0 bottom-0 z-50 flex flex-col items-center gap-2 p-4 sm:items-end"},JP={class:"flex-1 text-sm"},QP=["aria-label","onClick"],ZP=X({__name:"Toaster",setup(e){const{t}=Ht(),n=n_(),s={success:Kk,error:Wk,default:Im};return(o,r)=>(x(),F(Mi,{to:"body"},[S("div",XP,[v(Ag,{"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),G(Ae,null,ct(a(n),l=>(x(),G("div",{key:l.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",l.variant==="error"?"border-destructive/40 bg-destructive/10 text-destructive":l.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(),F(br(s[l.variant]),{class:"mt-0.5 h-4 w-4 shrink-0"})),S("p",JP,A(l.message),1),S("button",{class:"shrink-0 rounded-sm opacity-60 transition-opacity hover:opacity-100","aria-label":a(t)("common.dismiss"),onClick:i=>a(Ep)(l.id)},[v(a(gu),{class:"h-4 w-4"})],8,QP)],2))),128))]),_:1})])]))}}),eT={key:0,class:"flex min-h-screen items-center justify-center text-muted-foreground"},tT={key:1,class:"flex min-h-screen items-center justify-center p-4"},nT={class:"space-y-1.5"},sT={class:"space-y-1.5"},oT={class:"relative"},rT={key:0,class:"text-sm text-destructive"},aT={key:2,class:"min-h-screen"},lT={class:"sticky top-0 z-10 border-b bg-background/80 backdrop-blur"},iT={class:"mx-auto flex h-14 max-w-5xl items-center justify-between px-4"},uT={class:"flex items-center gap-2 font-semibold tracking-tight"},cT={class:"flex items-center gap-1"},dT={class:"mx-auto max-w-5xl px-4 py-6"},fT=X({__name:"App",setup(e){const{t,locale:n}=Ht(),s=N(!1),o=N(""),r=N(""),l=N(""),i=N(!0),u=N(!1),c=N(!1),d=N(!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(){e_(n.value==="zh"?"en":"zh")}const g=te(()=>n.value==="zh"?"English":"中文");async function w(){if(!u.value){l.value="",u.value=!0,Sp(o.value,r.value);try{await Fe("GET","/admin/providers"),s.value=!0}catch(h){const b=h.message;l.value=/fetch|network/i.test(b)?t("login.errNetwork"):t("login.errInvalid"),gl()}finally{u.value=!1}}}function C(){gl(),s.value=!1,o.value="",r.value=""}return mt(async()=>{const h=localStorage.getItem("myapikey.theme");if(f(h?h==="dark":!0),la())try{await Fe("GET","/admin/providers"),s.value=!0,o.value=la().user}catch{gl()}i.value=!1}),(h,b)=>(x(),G(Ae,null,[i.value?(x(),G("div",eT,A(a(t)("app.connecting")),1)):s.value?(x(),G("div",aT,[S("header",lT,[S("div",iT,[S("div",uT,[v(Sd,{size:26}),b[4]||(b[4]=K(" MyAPIKey ",-1))]),S("div",cT,[v(a(Pe),{variant:"ghost",size:"sm",title:g.value,onClick:m},{default:y(()=>[v(a(Yk),{class:"h-4 w-4"}),K(A(g.value),1)]),_:1},8,["title"]),v(a(Pe),{variant:"ghost",size:"icon",title:d.value?a(t)("app.toLight"):a(t)("app.toDark"),onClick:p},{default:y(()=>[d.value?(x(),F(a(oS),{key:0,class:"h-4 w-4"})):(x(),F(a(Jk),{key:1,class:"h-4 w-4"}))]),_:1},8,["title"]),v(a(Pe),{variant:"ghost",size:"sm",onClick:C},{default:y(()=>[v(a(Xk),{class:"h-4 w-4"}),K(A(a(t)("app.signOut")),1)]),_:1})])])]),S("main",dT,[v(a(GP),{"default-value":"connect"},{default:y(()=>[v(a(YP),{class:"mb-2"},{default:y(()=>[v(a(No),{value:"connect"},{default:y(()=>[v(a(Rm),{class:"h-4 w-4"}),K(A(a(t)("nav.connect")),1)]),_:1}),v(a(No),{value:"models"},{default:y(()=>[v(a(Tm),{class:"h-4 w-4"}),K(A(a(t)("nav.models")),1)]),_:1}),v(a(No),{value:"logs"},{default:y(()=>[v(a(Om),{class:"h-4 w-4"}),K(A(a(t)("nav.logs")),1)]),_:1}),v(a(No),{value:"stats"},{default:y(()=>[v(a(Pm),{class:"h-4 w-4"}),K(A(a(t)("nav.stats")),1)]),_:1}),v(a(No),{value:"settings"},{default:y(()=>[v(a(sS),{class:"h-4 w-4"}),K(A(a(t)("nav.settings")),1)]),_:1})]),_:1}),v(a(Fo),{value:"connect"},{default:y(()=>[v(EP)]),_:1}),v(a(Fo),{value:"models"},{default:y(()=>[v(yE)]),_:1}),v(a(Fo),{value:"logs"},{default:y(()=>[v(yO)]),_:1}),v(a(Fo),{value:"stats"},{default:y(()=>[v(pP)]),_:1}),v(a(Fo),{value:"settings"},{default:y(()=>[v(KP)]),_:1})]),_:1})])])):(x(),G("div",tT,[v(a(mn),{class:"w-full max-w-sm"},{default:y(()=>[v(a(In),{class:"space-y-3 text-center"},{default:y(()=>[v(Sd,{size:44,class:"mx-auto"}),v(a(Mn),{class:"text-xl"},{default:y(()=>[...b[3]||(b[3]=[K("MyAPIKey",-1)])]),_:1}),v(a(bs),null,{default:y(()=>[K(A(a(t)("login.subtitle")),1)]),_:1})]),_:1}),v(a(hn),null,{default:y(()=>[S("form",{class:"space-y-3",onSubmit:tn(w,["prevent"])},[S("div",nT,[v(a(Bs),{for:"u"},{default:y(()=>[K(A(a(t)("login.username")),1)]),_:1}),v(a(bt),{id:"u",modelValue:o.value,"onUpdate:modelValue":b[0]||(b[0]=$=>o.value=$),autocomplete:"username",autofocus:""},null,8,["modelValue"])]),S("div",sT,[v(a(Bs),{for:"p"},{default:y(()=>[K(A(a(t)("login.password")),1)]),_:1}),S("div",oT,[v(a(bt),{id:"p",modelValue:r.value,"onUpdate:modelValue":b[1]||(b[1]=$=>r.value=$),type:c.value?"text":"password",autocomplete:"current-password",class:"pr-9"},null,8,["modelValue","type"]),v(a(Pe),{type:"button",variant:"ghost",size:"icon",class:"absolute right-1 top-1 h-7 w-7 text-muted-foreground",title:c.value?a(t)("connect.hide"):a(t)("connect.reveal"),"aria-label":c.value?a(t)("connect.hide"):a(t)("connect.reveal"),tabindex:"-1",onClick:b[2]||(b[2]=$=>c.value=!c.value)},{default:y(()=>[c.value?(x(),F(a(ma),{key:0,class:"h-4 w-4"})):(x(),F(a(ha),{key:1,class:"h-4 w-4"}))]),_:1},8,["title","aria-label"])])]),v(a(Pe),{type:"submit",class:"w-full",disabled:u.value},{default:y(()=>[u.value?(x(),F(a(_t),{key:0,class:"h-4 w-4 animate-spin"})):we("",!0),K(" "+A(u.value?a(t)("common.loading"):a(t)("login.signIn")),1)]),_:1},8,["disabled"]),l.value?(x(),G("p",rT,A(l.value),1)):we("",!0)],32)]),_:1})]),_:1})])),v(ZP)],64))}});Ng(fT).use(Ap).mount("#app");
|