@alisaitteke/photoshop-mcp 1.2.0 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -2
- package/dist/analytics/beta-telemetry.d.ts +11 -0
- package/dist/analytics/beta-telemetry.d.ts.map +1 -0
- package/dist/analytics/beta-telemetry.js +47 -0
- package/dist/analytics/beta-telemetry.js.map +1 -0
- package/dist/analytics/client-ip.d.ts +5 -0
- package/dist/analytics/client-ip.d.ts.map +1 -0
- package/dist/analytics/client-ip.js +39 -0
- package/dist/analytics/client-ip.js.map +1 -0
- package/dist/analytics/config.d.ts +6 -0
- package/dist/analytics/config.d.ts.map +1 -0
- package/dist/analytics/config.js +23 -0
- package/dist/analytics/config.js.map +1 -0
- package/dist/analytics/context.d.ts +2 -0
- package/dist/analytics/context.d.ts.map +1 -0
- package/dist/analytics/context.js +13 -0
- package/dist/analytics/context.js.map +1 -0
- package/dist/analytics/events.d.ts +3 -0
- package/dist/analytics/events.d.ts.map +1 -0
- package/dist/analytics/events.js +85 -0
- package/dist/analytics/events.js.map +1 -0
- package/dist/analytics/identity.d.ts +9 -0
- package/dist/analytics/identity.d.ts.map +1 -0
- package/dist/analytics/identity.js +166 -0
- package/dist/analytics/identity.js.map +1 -0
- package/dist/analytics/index.d.ts +12 -0
- package/dist/analytics/index.d.ts.map +1 -0
- package/dist/analytics/index.js +38 -0
- package/dist/analytics/index.js.map +1 -0
- package/dist/analytics/launch-method.d.ts +4 -0
- package/dist/analytics/launch-method.d.ts.map +1 -0
- package/dist/analytics/launch-method.js +33 -0
- package/dist/analytics/launch-method.js.map +1 -0
- package/dist/analytics/locale.d.ts +4 -0
- package/dist/analytics/locale.d.ts.map +1 -0
- package/dist/analytics/locale.js +14 -0
- package/dist/analytics/locale.js.map +1 -0
- package/dist/analytics/noop.d.ts +6 -0
- package/dist/analytics/noop.d.ts.map +1 -0
- package/dist/analytics/noop.js +9 -0
- package/dist/analytics/noop.js.map +1 -0
- package/dist/analytics/posthog-node.d.ts +11 -0
- package/dist/analytics/posthog-node.d.ts.map +1 -0
- package/dist/analytics/posthog-node.js +55 -0
- package/dist/analytics/posthog-node.js.map +1 -0
- package/dist/analytics/provider.d.ts +5 -0
- package/dist/analytics/provider.d.ts.map +1 -0
- package/dist/analytics/provider.js +27 -0
- package/dist/analytics/provider.js.map +1 -0
- package/dist/analytics/types.d.ts +23 -0
- package/dist/analytics/types.d.ts.map +1 -0
- package/dist/analytics/types.js +2 -0
- package/dist/analytics/types.js.map +1 -0
- package/dist/core/server.d.ts +1 -0
- package/dist/core/server.d.ts.map +1 -1
- package/dist/core/server.js +3 -0
- package/dist/core/server.js.map +1 -1
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -1
- package/dist/platform/macos-detector.js +4 -4
- package/dist/platform/macos-detector.js.map +1 -1
- package/dist/platform/macos-executor.js +1 -1
- package/dist/platform/macos-executor.js.map +1 -1
- package/dist/platform/windows-detector.js +4 -4
- package/dist/platform/windows-detector.js.map +1 -1
- package/dist/platform/windows-executor.js +2 -2
- package/dist/platform/windows-executor.js.map +1 -1
- package/dist/ui/agent/action-plan.d.ts +19 -0
- package/dist/ui/agent/action-plan.d.ts.map +1 -0
- package/dist/ui/agent/action-plan.js +552 -0
- package/dist/ui/agent/action-plan.js.map +1 -0
- package/dist/ui/agent/api-key.d.ts.map +1 -1
- package/dist/ui/agent/api-key.js +22 -4
- package/dist/ui/agent/api-key.js.map +1 -1
- package/dist/ui/agent/claude-account.d.ts.map +1 -1
- package/dist/ui/agent/claude-account.js +26 -12
- package/dist/ui/agent/claude-account.js.map +1 -1
- package/dist/ui/agent/gemini-account.d.ts.map +1 -1
- package/dist/ui/agent/gemini-account.js +14 -4
- package/dist/ui/agent/gemini-account.js.map +1 -1
- package/dist/ui/agent/shared.d.ts +26 -1
- package/dist/ui/agent/shared.d.ts.map +1 -1
- package/dist/ui/agent/shared.js +61 -0
- package/dist/ui/agent/shared.js.map +1 -1
- package/dist/ui/agent.d.ts +1 -0
- package/dist/ui/agent.d.ts.map +1 -1
- package/dist/ui/agent.js +36 -0
- package/dist/ui/agent.js.map +1 -1
- package/dist/ui/cli.js +11 -1
- package/dist/ui/cli.js.map +1 -1
- package/dist/ui/config.d.ts +6 -1
- package/dist/ui/config.d.ts.map +1 -1
- package/dist/ui/config.js +1 -12
- package/dist/ui/config.js.map +1 -1
- package/dist/ui/server.d.ts.map +1 -1
- package/dist/ui/server.js +103 -6
- package/dist/ui/server.js.map +1 -1
- package/dist/ui/store/chats.d.ts +11 -0
- package/dist/ui/store/chats.d.ts.map +1 -1
- package/dist/ui/store/chats.js.map +1 -1
- package/dist/ui/store/db.js +2 -2
- package/dist/ui/store/db.js.map +1 -1
- package/package.json +4 -2
- package/web/dist/assets/index-BgiXf1Jy.css +1 -0
- package/web/dist/assets/index-n0ymP-Cw.js +249 -0
- package/web/dist/index.html +9 -3
- package/web/dist/assets/index-BN0tu4e6.css +0 -1
- package/web/dist/assets/index-Cf7sH5RM.js +0 -138
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();/**
|
|
2
|
-
* @vue/shared v3.5.38
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/function Bs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const he={},Bn=[],kt=()=>{},Ll=()=>!1,mr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vr=e=>e.startsWith("onUpdate:"),Fe=Object.assign,Fs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},au=Object.prototype.hasOwnProperty,ye=(e,t)=>au.call(e,t),J=Array.isArray,Fn=e=>Mo(e)==="[object Map]",Yn=e=>Mo(e)==="[object Set]",mi=e=>Mo(e)==="[object Date]",ne=e=>typeof e=="function",Oe=e=>typeof e=="string",ut=e=>typeof e=="symbol",xe=e=>e!==null&&typeof e=="object",Bl=e=>(xe(e)||ne(e))&&ne(e.then)&&ne(e.catch),Fl=Object.prototype.toString,Mo=e=>Fl.call(e),cu=e=>Mo(e).slice(8,-1),ql=e=>Mo(e)==="[object Object]",yr=e=>Oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fo=Bs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),br=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},uu=/-\w/g,Be=br(e=>e.replace(uu,t=>t.slice(1).toUpperCase())),du=/\B([A-Z])/g,Zt=br(e=>e.replace(du,"-$1").toLowerCase()),xr=br(e=>e.charAt(0).toUpperCase()+e.slice(1)),po=br(e=>e?`on${xr(e)}`:""),ze=(e,t)=>!Object.is(e,t),Zo=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Vl=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},_r=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let vi;const wr=()=>vi||(vi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Pn(e){if(J(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=Oe(o)?gu(o):Pn(o);if(r)for(const s in r)t[s]=r[s]}return t}else if(Oe(e)||xe(e))return e}const fu=/;(?![^(]*\))/g,pu=/:([^]+)/,hu=/\/\*[^]*?\*\//g;function gu(e){const t={};return e.replace(hu,"").split(fu).forEach(n=>{if(n){const o=n.split(pu);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ie(e){let t="";if(Oe(e))t=e;else if(J(e))for(let n=0;n<e.length;n++){const o=Ie(e[n]);o&&(t+=o+" ")}else if(xe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Do(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Oe(t)&&(e.class=Ie(t)),n&&(e.style=Pn(n)),e}const mu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",vu=Bs(mu);function zl(e){return!!e||e===""}function yu(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=dn(e[o],t[o]);return n}function dn(e,t){if(e===t)return!0;let n=mi(e),o=mi(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=ut(e),o=ut(t),n||o)return e===t;if(n=J(e),o=J(t),n||o)return n&&o?yu(e,t):!1;if(n=xe(e),o=xe(t),n||o){if(!n||!o)return!1;const r=Object.keys(e).length,s=Object.keys(t).length;if(r!==s)return!1;for(const i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!dn(e[i],t[i]))return!1}}return String(e)===String(t)}function qs(e,t){return e.findIndex(n=>dn(n,t))}const jl=e=>!!(e&&e.__v_isRef===!0),se=e=>Oe(e)?e:e==null?"":J(e)||xe(e)&&(e.toString===Fl||!ne(e.toString))?jl(e)?se(e.value):JSON.stringify(e,Ul,2):String(e),Ul=(e,t)=>jl(t)?Ul(e,t.value):Fn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],s)=>(n[jr(o,s)+" =>"]=r,n),{})}:Yn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>jr(n))}:ut(t)?jr(t):xe(t)&&!J(t)&&!ql(t)?String(t):t,jr=(e,t="")=>{var n;return ut(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.5.38
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let $e;class Hl{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&&$e&&($e.active?(this.parent=$e,this.index=($e.scopes||($e.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=$e;try{return $e=this,t()}finally{$e=n}}}on(){++this._on===1&&(this.prevScope=$e,$e=this)}off(){if(this._on>0&&--this._on===0){if($e===this)$e=this.prevScope;else{let t=$e;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,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(this.effects.length=0,n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Wl(e){return new Hl(e)}function Vs(){return $e}function Kl(e,t=!1){$e&&$e.cleanups.push(e)}let Ae;const Ur=new WeakSet;class Gl{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,$e&&($e.active?$e.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ur.has(this)&&(Ur.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Xl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,yi(this),Yl(this);const t=Ae,n=ht;Ae=this,ht=!0;try{return this.fn()}finally{Ql(this),Ae=t,ht=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Us(t);this.deps=this.depsTail=void 0,yi(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ur.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ps(this)&&this.run()}get dirty(){return ps(this)}}let Jl=0,ho,go;function Xl(e,t=!1){if(e.flags|=8,t){e.next=go,go=e;return}e.next=ho,ho=e}function zs(){Jl++}function js(){if(--Jl>0)return;if(go){let t=go;for(go=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(o){e||(e=o)}t=n}}if(e)throw e}function Yl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ql(e){let t,n=e.depsTail,o=n;for(;o;){const r=o.prevDep;o.version===-1?(o===n&&(n=r),Us(o),bu(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=r}e.deps=t,e.depsTail=n}function ps(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===wo)||(e.globalVersion=wo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ps(e))))return;e.flags|=2;const t=e.dep,n=Ae,o=ht;Ae=e,ht=!0;try{Yl(e);const r=e.fn(e._value);(t.version===0||ze(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Ae=n,ht=o,Ql(e),e.flags&=-3}}function Us(e,t=!1){const{dep:n,prevSub:o,nextSub:r}=e;if(o&&(o.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Us(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function bu(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ht=!0;const ea=[];function Kt(){ea.push(ht),ht=!1}function Gt(){const e=ea.pop();ht=e===void 0?!0:e}function yi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ae;Ae=void 0;try{t()}finally{Ae=n}}}let wo=0;class xu{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 Cr{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(!Ae||!ht||Ae===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ae)n=this.activeLink=new xu(Ae,this),Ae.deps?(n.prevDep=Ae.depsTail,Ae.depsTail.nextDep=n,Ae.depsTail=n):Ae.deps=Ae.depsTail=n,ta(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=Ae.depsTail,n.nextDep=void 0,Ae.depsTail.nextDep=n,Ae.depsTail=n,Ae.deps===n&&(Ae.deps=o)}return n}trigger(t){this.version++,wo++,this.notify(t)}notify(t){zs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{js()}}}function ta(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)ta(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const tr=new WeakMap,An=Symbol(""),hs=Symbol(""),Co=Symbol("");function We(e,t,n){if(ht&&Ae){let o=tr.get(e);o||tr.set(e,o=new Map);let r=o.get(n);r||(o.set(n,r=new Cr),r.map=o,r.key=n),r.track()}}function jt(e,t,n,o,r,s){const i=tr.get(e);if(!i){wo++;return}const l=a=>{a&&a.trigger()};if(zs(),t==="clear")i.forEach(l);else{const a=J(e),u=a&&yr(n);if(a&&n==="length"){const c=Number(o);i.forEach((d,f)=>{(f==="length"||f===Co||!ut(f)&&f>=c)&&l(d)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),u&&l(i.get(Co)),t){case"add":a?u&&l(i.get("length")):(l(i.get(An)),Fn(e)&&l(i.get(hs)));break;case"delete":a||(l(i.get(An)),Fn(e)&&l(i.get(hs)));break;case"set":Fn(e)&&l(i.get(An));break}}js()}function _u(e,t){const n=tr.get(e);return n&&n.get(t)}function Mn(e){const t=me(e);return t===e?t:(We(t,"iterate",Co),at(e)?t:t.map(gt))}function Ar(e){return We(e=me(e),"iterate",Co),e}function Et(e,t){return Xt(e)?Wn(Sn(e)?gt(t):t):gt(t)}const wu={__proto__:null,[Symbol.iterator](){return Hr(this,Symbol.iterator,e=>Et(this,e))},concat(...e){return Mn(this).concat(...e.map(t=>J(t)?Mn(t):t))},entries(){return Hr(this,"entries",e=>(e[1]=Et(this,e[1]),e))},every(e,t){return Bt(this,"every",e,t,void 0,arguments)},filter(e,t){return Bt(this,"filter",e,t,n=>n.map(o=>Et(this,o)),arguments)},find(e,t){return Bt(this,"find",e,t,n=>Et(this,n),arguments)},findIndex(e,t){return Bt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Bt(this,"findLast",e,t,n=>Et(this,n),arguments)},findLastIndex(e,t){return Bt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Bt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Wr(this,"includes",e)},indexOf(...e){return Wr(this,"indexOf",e)},join(e){return Mn(this).join(e)},lastIndexOf(...e){return Wr(this,"lastIndexOf",e)},map(e,t){return Bt(this,"map",e,t,void 0,arguments)},pop(){return oo(this,"pop")},push(...e){return oo(this,"push",e)},reduce(e,...t){return bi(this,"reduce",e,t)},reduceRight(e,...t){return bi(this,"reduceRight",e,t)},shift(){return oo(this,"shift")},some(e,t){return Bt(this,"some",e,t,void 0,arguments)},splice(...e){return oo(this,"splice",e)},toReversed(){return Mn(this).toReversed()},toSorted(e){return Mn(this).toSorted(e)},toSpliced(...e){return Mn(this).toSpliced(...e)},unshift(...e){return oo(this,"unshift",e)},values(){return Hr(this,"values",e=>Et(this,e))}};function Hr(e,t,n){const o=Ar(e),r=o[t]();return o!==e&&!at(e)&&(r._next=r.next,r.next=()=>{const s=r._next();return s.done||(s.value=n(s.value)),s}),r}const Cu=Array.prototype;function Bt(e,t,n,o,r,s){const i=Ar(e),l=i!==e&&!at(e),a=i[t];if(a!==Cu[t]){const d=a.apply(e,s);return l?gt(d):d}let u=n;i!==e&&(l?u=function(d,f){return n.call(this,Et(e,d),f,e)}:n.length>2&&(u=function(d,f){return n.call(this,d,f,e)}));const c=a.call(i,u,o);return l&&r?r(c):c}function bi(e,t,n,o){const r=Ar(e),s=r!==e&&!at(e);let i=n,l=!1;r!==e&&(s?(l=o.length===0,i=function(u,c,d){return l&&(l=!1,u=Et(e,u)),n.call(this,u,Et(e,c),d,e)}):n.length>3&&(i=function(u,c,d){return n.call(this,u,c,d,e)}));const a=r[t](i,...o);return l?Et(e,a):a}function Wr(e,t,n){const o=me(e);We(o,"iterate",Co);const r=o[t](...n);return(r===-1||r===!1)&&Or(n[0])?(n[0]=me(n[0]),o[t](...n)):r}function oo(e,t,n=[]){Kt(),zs();const o=me(e)[t].apply(e,n);return js(),Gt(),o}const Au=Bs("__proto__,__v_isRef,__isVue"),na=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ut));function Su(e){ut(e)||(e=String(e));const t=me(this);return We(t,"has",e),t.hasOwnProperty(e)}class oa{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return o===(r?s?ca:aa:s?la:ia).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const i=J(t);if(!r){let a;if(i&&(a=wu[n]))return a;if(n==="hasOwnProperty")return Su}const l=Reflect.get(t,n,Re(t)?t:o);if((ut(n)?na.has(n):Au(n))||(r||We(t,"get",n),s))return l;if(Re(l)){const a=i&&yr(n)?l:l.value;return r&&xe(a)?nr(a):a}return xe(l)?r?nr(l):Jt(l):l}}class ra extends oa{constructor(t=!1){super(!1,t)}set(t,n,o,r){let s=t[n];const i=J(t)&&yr(n);if(!this._isShallow){const u=Xt(s);if(!at(o)&&!Xt(o)&&(s=me(s),o=me(o)),!i&&Re(s)&&!Re(o))return u||(s.value=o),!0}const l=i?Number(n)<t.length:ye(t,n),a=Reflect.set(t,n,o,Re(t)?t:r);return t===me(r)&&(l?ze(o,s)&&jt(t,"set",n,o):jt(t,"add",n,o)),a}deleteProperty(t,n){const o=ye(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&o&&jt(t,"delete",n,void 0),r}has(t,n){const o=Reflect.has(t,n);return(!ut(n)||!na.has(n))&&We(t,"has",n),o}ownKeys(t){return We(t,"iterate",J(t)?"length":An),Reflect.ownKeys(t)}}class sa extends oa{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Eu=new ra,Ou=new sa,Pu=new ra(!0),ku=new sa(!0),gs=e=>e,jo=e=>Reflect.getPrototypeOf(e);function Tu(e,t,n){return function(...o){const r=this.__v_raw,s=me(r),i=Fn(s),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=r[e](...o),c=n?gs:t?Wn:gt;return!t&&We(s,"iterate",a?hs:An),Fe(Object.create(u),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:l?[c(d[0]),c(d[1])]:c(d),done:f}}})}}function Uo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ru(e,t){const n={get(r){const s=this.__v_raw,i=me(s),l=me(r);e||(ze(r,l)&&We(i,"get",r),We(i,"get",l));const{has:a}=jo(i),u=t?gs:e?Wn:gt;if(a.call(i,r))return u(s.get(r));if(a.call(i,l))return u(s.get(l));s!==i&&s.get(r)},get size(){const r=this.__v_raw;return!e&&We(me(r),"iterate",An),r.size},has(r){const s=this.__v_raw,i=me(s),l=me(r);return e||(ze(r,l)&&We(i,"has",r),We(i,"has",l)),r===l?s.has(r):s.has(r)||s.has(l)},forEach(r,s){const i=this,l=i.__v_raw,a=me(l),u=t?gs:e?Wn:gt;return!e&&We(a,"iterate",An),l.forEach((c,d)=>r.call(s,u(c),u(d),i))}};return Fe(n,e?{add:Uo("add"),set:Uo("set"),delete:Uo("delete"),clear:Uo("clear")}:{add(r){const s=me(this),i=jo(s),l=me(r),a=!t&&!at(r)&&!Xt(r)?l:r;return i.has.call(s,a)||ze(r,a)&&i.has.call(s,r)||ze(l,a)&&i.has.call(s,l)||(s.add(a),jt(s,"add",a,a)),this},set(r,s){!t&&!at(s)&&!Xt(s)&&(s=me(s));const i=me(this),{has:l,get:a}=jo(i);let u=l.call(i,r);u||(r=me(r),u=l.call(i,r));const c=a.call(i,r);return i.set(r,s),u?ze(s,c)&&jt(i,"set",r,s):jt(i,"add",r,s),this},delete(r){const s=me(this),{has:i,get:l}=jo(s);let a=i.call(s,r);a||(r=me(r),a=i.call(s,r)),l&&l.call(s,r);const u=s.delete(r);return a&&jt(s,"delete",r,void 0),u},clear(){const r=me(this),s=r.size!==0,i=r.clear();return s&&jt(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Tu(r,e,t)}),n}function Sr(e,t){const n=Ru(e,t);return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ye(n,r)&&r in o?n:o,r,s)}const Iu={get:Sr(!1,!1)},Mu={get:Sr(!1,!0)},Du={get:Sr(!0,!1)},Nu={get:Sr(!0,!0)},ia=new WeakMap,la=new WeakMap,aa=new WeakMap,ca=new WeakMap;function $u(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Jt(e){return Xt(e)?e:Er(e,!1,Eu,Iu,ia)}function ua(e){return Er(e,!1,Pu,Mu,la)}function nr(e){return Er(e,!0,Ou,Du,aa)}function xn(e){return Er(e,!0,ku,Nu,ca)}function Er(e,t,n,o,r){if(!xe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const s=r.get(e);if(s)return s;const i=$u(cu(e));if(i===0)return e;const l=new Proxy(e,i===2?o:n);return r.set(e,l),l}function Sn(e){return Xt(e)?Sn(e.__v_raw):!!(e&&e.__v_isReactive)}function Xt(e){return!!(e&&e.__v_isReadonly)}function at(e){return!!(e&&e.__v_isShallow)}function Or(e){return e?!!e.__v_raw:!1}function me(e){const t=e&&e.__v_raw;return t?me(t):e}function Lu(e){return!ye(e,"__v_skip")&&Object.isExtensible(e)&&Vl(e,"__v_skip",!0),e}const gt=e=>xe(e)?Jt(e):e,Wn=e=>xe(e)?nr(e):e;function Re(e){return e?e.__v_isRef===!0:!1}function U(e){return da(e,!1)}function No(e){return da(e,!0)}function da(e,t){return Re(e)?e:new Bu(e,t)}class Bu{constructor(t,n){this.dep=new Cr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:me(t),this._value=n?t:gt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||at(t)||Xt(t);t=o?t:me(t),ze(t,n)&&(this._rawValue=t,this._value=o?t:gt(t),this.dep.trigger())}}function Fu(e){e.dep&&e.dep.trigger()}function _(e){return Re(e)?e.value:e}function Ze(e){return ne(e)?e():_(e)}const qu={get:(e,t,n)=>t==="__v_raw"?e:_(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Re(r)&&!Re(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function fa(e){return Sn(e)?e:new Proxy(e,qu)}class Vu{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Cr,{get:o,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=o,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function pa(e){return new Vu(e)}function Ao(e){const t=J(e)?new Array(e.length):{};for(const n in e)t[n]=ha(e,n);return t}class zu{constructor(t,n,o){this._object=t,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._key=ut(n)?n:String(n),this._raw=me(t);let r=!0,s=t;if(!J(t)||ut(this._key)||!yr(this._key))do r=!Or(s)||at(s);while(r&&(s=s.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=_(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Re(this._raw[this._key])){const n=this._object[this._key];if(Re(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return _u(this._raw,this._key)}}class ju{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 Uu(e,t,n){return Re(e)?e:ne(e)?new ju(e):xe(e)&&arguments.length>1?ha(e,t,n):U(e)}function ha(e,t,n){return new zu(e,t,n)}class Hu{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Cr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=wo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Ae!==this)return Xl(this,!0),!0}get value(){const t=this.dep.track();return Zl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Wu(e,t,n=!1){let o,r;return ne(e)?o=e:(o=e.get,r=e.set),new Hu(o,r,n)}const Ho={},or=new WeakMap;let _n;function Ku(e,t=!1,n=_n){if(n){let o=or.get(n);o||or.set(n,o=[]),o.push(e)}}function Gu(e,t,n=he){const{immediate:o,deep:r,once:s,scheduler:i,augmentJob:l,call:a}=n,u=A=>r?A:at(A)||r===!1||r===0?Ut(A,1):Ut(A);let c,d,f,p,b=!1,g=!1;if(Re(e)?(d=()=>e.value,b=at(e)):Sn(e)?(d=()=>u(e),b=!0):J(e)?(g=!0,b=e.some(A=>Sn(A)||at(A)),d=()=>e.map(A=>{if(Re(A))return A.value;if(Sn(A))return u(A);if(ne(A))return a?a(A,2):A()})):ne(e)?t?d=a?()=>a(e,2):e:d=()=>{if(f){Kt();try{f()}finally{Gt()}}const A=_n;_n=c;try{return a?a(e,3,[p]):e(p)}finally{_n=A}}:d=kt,t&&r){const A=d,D=r===!0?1/0:r;d=()=>Ut(A(),D)}const m=Vs(),h=()=>{c.stop(),m&&m.active&&Fs(m.effects,c)};if(s&&t){const A=t;t=(...D)=>{const B=A(...D);return h(),B}}let v=g?new Array(e.length).fill(Ho):Ho;const w=A=>{if(!(!(c.flags&1)||!c.dirty&&!A))if(t){const D=c.run();if(A||r||b||(g?D.some((B,M)=>ze(B,v[M])):ze(D,v))){f&&f();const B=_n;_n=c;try{const M=[D,v===Ho?void 0:g&&v[0]===Ho?[]:v,p];v=D,a?a(t,3,M):t(...M)}finally{_n=B}}}else c.run()};return l&&l(w),c=new Gl(d),c.scheduler=i?()=>i(w,!1):w,p=A=>Ku(A,!1,c),f=c.onStop=()=>{const A=or.get(c);if(A){if(a)a(A,4);else for(const D of A)D();or.delete(c)}},t?o?w(!0):v=c.run():i?i(w.bind(null,!0),!0):c.run(),h.pause=c.pause.bind(c),h.resume=c.resume.bind(c),h.stop=h,h}function Ut(e,t=1/0,n){if(t<=0||!xe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Re(e))Ut(e.value,t,n);else if(J(e))for(let o=0;o<e.length;o++)Ut(e[o],t,n);else if(Yn(e)||Fn(e))e.forEach(o=>{Ut(o,t,n)});else if(ql(e)){for(const o in e)Ut(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ut(e[o],t,n)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.38
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/function $o(e,t,n,o){try{return o?e(...o):e()}catch(r){Pr(r,t,n)}}function mt(e,t,n,o){if(ne(e)){const r=$o(e,t,n,o);return r&&Bl(r)&&r.catch(s=>{Pr(s,t,n)}),r}if(J(e)){const r=[];for(let s=0;s<e.length;s++)r.push(mt(e[s],t,n,o));return r}}function Pr(e,t,n,o=!0){const r=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||he;if(t){let l=t.parent;const a=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const c=l.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,a,u)===!1)return}l=l.parent}if(s){Kt(),$o(s,null,10,[e,a,u]),Gt();return}}Ju(e,n,r,o,i)}function Ju(e,t,n,o=!0,r=!1){if(r)throw e;console.error(e)}const Qe=[];let St=-1;const qn=[];let an=null,Nn=0;const ga=Promise.resolve();let rr=null;function vt(e){const t=rr||ga;return e?t.then(this?e.bind(this):e):t}function Xu(e){let t=St+1,n=Qe.length;for(;t<n;){const o=t+n>>>1,r=Qe[o],s=So(r);s<e||s===e&&r.flags&2?t=o+1:n=o}return t}function Hs(e){if(!(e.flags&1)){const t=So(e),n=Qe[Qe.length-1];!n||!(e.flags&2)&&t>=So(n)?Qe.push(e):Qe.splice(Xu(t),0,e),e.flags|=1,ma()}}function ma(){rr||(rr=ga.then(ya))}function Yu(e){J(e)?qn.push(...e):an&&e.id===-1?an.splice(Nn+1,0,e):e.flags&1||(qn.push(e),e.flags|=1),ma()}function xi(e,t,n=St+1){for(;n<Qe.length;n++){const o=Qe[n];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Qe.splice(n,1),n--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function va(e){if(qn.length){const t=[...new Set(qn)].sort((n,o)=>So(n)-So(o));if(qn.length=0,an){an.push(...t);return}for(an=t,Nn=0;Nn<an.length;Nn++){const n=an[Nn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}an=null,Nn=0}}const So=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ya(e){try{for(St=0;St<Qe.length;St++){const t=Qe[St];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),$o(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;St<Qe.length;St++){const t=Qe[St];t&&(t.flags&=-2)}St=-1,Qe.length=0,va(),rr=null,(Qe.length||qn.length)&&ya()}}let je=null,ba=null;function sr(e){const t=je;return je=e,ba=e&&e.type.__scopeId||null,t}function $(e,t=je,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&ar(-1);const s=sr(t);let i;try{i=e(...r)}finally{sr(s),o._d&&ar(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Ws(e,t){if(je===null)return e;const n=Mr(je),o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[s,i,l,a=he]=t[r];s&&(ne(s)&&(s={mounted:s,updated:s}),s.deep&&Ut(i),o.push({dir:s,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function vn(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];s&&(l.oldValue=s[i].value);let a=l.dir[o];a&&(Kt(),mt(a,n,8,[e.el,l,e,t]),Gt())}}function mo(e,t){if(Ke){let n=Ke.provides;const o=Ke.parent&&Ke.parent.provides;o===n&&(n=Ke.provides=Object.create(o)),n[e]=t}}function ft(e,t,n=!1){const o=Nt();if(o||zn){let r=zn?zn._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ne(t)?t.call(o&&o.proxy):t}}const Qu=Symbol.for("v-scx"),Zu=()=>ft(Qu);function Rt(e,t){return Lo(e,null,t)}function xa(e,t){return Lo(e,null,{flush:"post"})}function ed(e,t){return Lo(e,null,{flush:"sync"})}function Le(e,t,n){return Lo(e,t,n)}function Lo(e,t,n=he){const{immediate:o,deep:r,flush:s,once:i}=n,l=Fe({},n),a=t&&o||!t&&s!=="post";let u;if(ko){if(s==="sync"){const p=Zu();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!a){const p=()=>{};return p.stop=kt,p.resume=kt,p.pause=kt,p}}const c=Ke;l.call=(p,b,g)=>mt(p,c,b,g);let d=!1;s==="post"?l.scheduler=p=>{Xe(p,c&&c.suspense)}:s!=="sync"&&(d=!0,l.scheduler=(p,b)=>{b?p():Hs(p)}),l.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,c&&(p.id=c.uid,p.i=c))};const f=Gu(e,t,l);return ko&&(u?u.push(f):a&&f()),f}function td(e,t,n){const o=this.proxy,r=Oe(e)?e.includes(".")?_a(o,e):()=>o[e]:e.bind(o,o);let s;ne(t)?s=t:(s=t.handler,n=t);const i=Bo(this),l=Lo(r,s.bind(o),n);return i(),l}function _a(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}const sn=new WeakMap,wa=Symbol("_vte"),nd=e=>e.__isTeleport,wn=e=>e&&(e.disabled||e.disabled===""),od=e=>e&&(e.defer||e.defer===""),_i=e=>typeof SVGElement<"u"&&e instanceof SVGElement,wi=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ms=(e,t)=>{const n=e&&e.to;return Oe(n)?t?t(n):null:n},rd={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,s,i,l,a,u){const{mc:c,pc:d,pbc:f,o:{insert:p,querySelector:b,createText:g,createComment:m,parentNode:h}}=u,v=wn(t.props);let{dynamicChildren:w}=t;const A=(M,ee,oe)=>{M.shapeFlag&16&&c(M.children,ee,oe,r,s,i,l,a)},D=(M=t)=>{const ee=wn(M.props),oe=M.target=ms(M.props,b),ue=vs(oe,M,g,p);oe&&(i!=="svg"&&_i(oe)?i="svg":i!=="mathml"&&wi(oe)&&(i="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(oe),ee||(A(M,oe,ue),ao(M,!1)))},B=M=>{const ee=()=>{if(sn.get(M)===ee){if(sn.delete(M),wn(M.props)){const oe=h(M.el)||n;A(M,oe,M.anchor),ao(M,!0)}D(M)}};sn.set(M,ee),Xe(ee,s)};if(e==null){const M=t.el=g(""),ee=t.anchor=g("");if(p(M,n,o),p(ee,n,o),od(t.props)||s&&s.pendingBranch){B(t);return}v&&(A(t,n,ee),ao(t,!0)),D()}else{t.el=e.el;const M=t.anchor=e.anchor,ee=sn.get(e);if(ee){ee.flags|=8,sn.delete(e),B(t);return}t.targetStart=e.targetStart;const oe=t.target=e.target,ue=t.targetAnchor=e.targetAnchor,_e=wn(e.props),H=_e?n:oe,ge=_e?M:ue;if(i==="svg"||_i(oe)?i="svg":(i==="mathml"||wi(oe))&&(i="mathml"),w?(f(e.dynamicChildren,w,H,r,s,i,l),Ys(e,t,!0)):a||d(e,t,H,ge,r,s,i,l,!1),v)_e?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Wo(t,n,M,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const de=t.target=ms(t.props,b);de&&Wo(t,de,null,u,0)}else _e&&Wo(t,oe,ue,u,1);ao(t,v)}},remove(e,t,n,{um:o,o:{remove:r}},s){const{shapeFlag:i,children:l,anchor:a,targetStart:u,targetAnchor:c,target:d,props:f}=e,p=s||!wn(f),b=sn.get(e);if(b&&(b.flags|=8,sn.delete(e)),d&&(r(u),r(c)),s&&r(a),!b&&i&16)for(let g=0;g<l.length;g++){const m=l[g];o(m,t,n,p,!!m.dynamicChildren)}},move:Wo,hydrate:sd};function Wo(e,t,n,{o:{insert:o},m:r},s=2){s===0&&o(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:a,children:u,props:c}=e,d=s===2;if(d&&o(i,t,n),!sn.has(e)&&(!d||wn(c))&&a&16)for(let f=0;f<u.length;f++)r(u[f],t,n,2);d&&o(l,t,n)}function sd(e,t,n,o,r,s,{o:{nextSibling:i,parentNode:l,querySelector:a,insert:u,createText:c}},d){function f(m,h){let v=h;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")t.targetStart=v;else if(v.data==="teleport anchor"){t.targetAnchor=v,m._lpa=t.targetAnchor&&i(t.targetAnchor);break}}v=i(v)}}function p(m,h){h.anchor=d(i(m),h,l(m),n,o,r,s)}const b=t.target=ms(t.props,a),g=wn(t.props);if(b){const m=b._lpa||b.firstChild;t.shapeFlag&16&&(g?(p(e,t),f(b,m),t.targetAnchor||vs(b,t,c,u,l(e)===b?e:null)):(t.anchor=i(e),f(b,m),t.targetAnchor||vs(b,t,c,u),d(m&&i(m),t,b,n,o,r,s))),ao(t,g)}else g&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const id=rd;function ao(e,t){const n=e.ctx;if(n&&n.ut){let o,r;for(t?(o=e.el,r=e.anchor):(o=e.targetStart,r=e.targetAnchor);o&&o!==r;)o.nodeType===1&&o.setAttribute("data-v-owner",n.uid),o=o.nextSibling;n.ut()}}function vs(e,t,n,o,r=null){const s=t.targetStart=n(""),i=t.targetAnchor=n("");return s[wa]=i,e&&(o(s,e,r),o(i,e,r)),i}const Kr=Symbol("_leaveCb");function Ks(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ks(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 K(e,t){return ne(e)?Fe({name:e.name},t,{setup:e}):e}function Gr(){const e=Nt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Ca(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ci(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const ir=new WeakMap;function vo(e,t,n,o,r=!1){if(J(e)){e.forEach((g,m)=>vo(g,t&&(J(t)?t[m]:t),n,o,r));return}if(Vn(o)&&!r){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&vo(e,t,n,o.component.subTree);return}const s=o.shapeFlag&4?Mr(o.component):o.el,i=r?null:s,{i:l,r:a}=e,u=t&&t.r,c=l.refs===he?l.refs={}:l.refs,d=l.setupState,f=me(d),p=d===he?Ll:g=>Ci(c,g)?!1:ye(f,g),b=(g,m)=>!(m&&Ci(c,m));if(u!=null&&u!==a){if(Ai(t),Oe(u))c[u]=null,p(u)&&(d[u]=null);else if(Re(u)){const g=t;b(u,g.k)&&(u.value=null),g.k&&(c[g.k]=null)}}if(ne(a))$o(a,l,12,[i,c]);else{const g=Oe(a),m=Re(a);if(g||m){const h=()=>{if(e.f){const v=g?p(a)?d[a]:c[a]:b()||!e.k?a.value:c[e.k];if(r)J(v)&&Fs(v,s);else if(J(v))v.includes(s)||v.push(s);else if(g)c[a]=[s],p(a)&&(d[a]=c[a]);else{const w=[s];b(a,e.k)&&(a.value=w),e.k&&(c[e.k]=w)}}else g?(c[a]=i,p(a)&&(d[a]=i)):m&&(b(a,e.k)&&(a.value=i),e.k&&(c[e.k]=i))};if(i){const v=()=>{h(),ir.delete(e)};v.id=-1,ir.set(e,v),Xe(v,n)}else Ai(e),h()}}}function Ai(e){const t=ir.get(e);t&&(t.flags|=8,ir.delete(e))}wr().requestIdleCallback;wr().cancelIdleCallback;const Vn=e=>!!e.type.__asyncLoader,Aa=e=>e.type.__isKeepAlive;function ld(e,t){Sa(e,"a",t)}function ad(e,t){Sa(e,"da",t)}function Sa(e,t,n=Ke){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(kr(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Aa(r.parent.vnode)&&cd(o,t,n,r),r=r.parent}}function cd(e,t,n,o){const r=kr(t,e,o,!0);Tr(()=>{Fs(o[t],r)},n)}function kr(e,t,n=Ke,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{Kt();const l=Bo(n),a=mt(t,n,e,i);return l(),Gt(),a});return o?r.unshift(s):r.push(s),s}}const en=e=>(t,n=Ke)=>{(!ko||e==="sp")&&kr(e,(...o)=>t(...o),n)},ud=en("bm"),Dt=en("m"),dd=en("bu"),Ea=en("u"),Oa=en("bum"),Tr=en("um"),fd=en("sp"),pd=en("rtg"),hd=en("rtc");function gd(e,t=Ke){kr("ec",e,t)}const md="components",Pa=Symbol.for("v-ndc");function Gs(e){return Oe(e)?vd(md,e,!1)||e:e||Pa}function vd(e,t,n=!0,o=!1){const r=je||Ke;if(r){const s=r.type;{const l=nf(s,!1);if(l&&(l===t||l===Be(t)||l===xr(Be(t))))return s}const i=Si(r[e]||s[e],t)||Si(r.appContext[e],t);return!i&&o?s:i}}function Si(e,t){return e&&(e[t]||e[Be(t)]||e[xr(Be(t))])}function fn(e,t,n,o){let r;const s=n,i=J(e);if(i||Oe(e)){const l=i&&Sn(e);let a=!1,u=!1;l&&(a=!at(e),u=Xt(e),e=Ar(e)),r=new Array(e.length);for(let c=0,d=e.length;c<d;c++)r[c]=t(a?u?Wn(gt(e[c])):gt(e[c]):e[c],c,void 0,s)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,s)}else if(xe(e))if(e[Symbol.iterator])r=Array.from(e,(l,a)=>t(l,a,void 0,s));else{const l=Object.keys(e);r=new Array(l.length);for(let a=0,u=l.length;a<u;a++){const c=l[a];r[a]=t(e[c],c,a,s)}}else r=[];return r}function ae(e,t,n={},o,r){if(je.ce||je.parent&&Vn(je.parent)&&je.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),S(),G(Se,null,[I("slot",n,o)],u?-2:64)}let s=e[t];s&&s._c&&(s._d=!1),S();const i=s&&ka(s(n)),l=n.key||i&&i.key,a=G(Se,{key:(l&&!ut(l)?l:`_${t}`)+(!i&&o?"_fb":"")},i||[],i&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function ka(e){return e.some(t=>Po(t)?!(t.type===It||t.type===Se&&!ka(t.children)):!0)?e:null}function yd(e,t){const n={};for(const o in e)n[po(o)]=e[o];return n}const ys=e=>e?Ja(e)?Mr(e):ys(e.parent):null,yo=Fe(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=>ys(e.parent),$root:e=>ys(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ra(e),$forceUpdate:e=>e.f||(e.f=()=>{Hs(e.update)}),$nextTick:e=>e.n||(e.n=vt.bind(e.proxy)),$watch:e=>td.bind(e)}),Jr=(e,t)=>e!==he&&!e.__isScriptSetup&&ye(e,t),bd={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:l,appContext:a}=e;if(t[0]!=="$"){const f=i[t];if(f!==void 0)switch(f){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(Jr(o,t))return i[t]=1,o[t];if(r!==he&&ye(r,t))return i[t]=2,r[t];if(ye(s,t))return i[t]=3,s[t];if(n!==he&&ye(n,t))return i[t]=4,n[t];bs&&(i[t]=0)}}const u=yo[t];let c,d;if(u)return t==="$attrs"&&We(e.attrs,"get",""),u(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(n!==he&&ye(n,t))return i[t]=4,n[t];if(d=a.config.globalProperties,ye(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return Jr(r,t)?(r[t]=n,!0):o!==he&&ye(o,t)?(o[t]=n,!0):ye(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,props:s,type:i}},l){let a;return!!(n[l]||e!==he&&l[0]!=="$"&&ye(e,l)||Jr(t,l)||ye(s,l)||ye(o,l)||ye(yo,l)||ye(r.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ye(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Eo(e){return J(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function xd(e,t){const n=Eo(e);for(const o in t){if(o.startsWith("__skip"))continue;let r=n[o];r?J(r)||ne(r)?r=n[o]={type:r,default:t[o]}:r.default=t[o]:r===null&&(r=n[o]={default:t[o]}),r&&t[`__skip_${o}`]&&(r.skipFactory=!0)}return n}function _d(e,t){return!e||!t?e||t:J(e)&&J(t)?e.concat(t):Fe({},Eo(e),Eo(t))}let bs=!0;function wd(e){const t=Ra(e),n=e.proxy,o=e.ctx;bs=!1,t.beforeCreate&&Ei(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:l,provide:a,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:p,updated:b,activated:g,deactivated:m,beforeDestroy:h,beforeUnmount:v,destroyed:w,unmounted:A,render:D,renderTracked:B,renderTriggered:M,errorCaptured:ee,serverPrefetch:oe,expose:ue,inheritAttrs:_e,components:H,directives:ge,filters:de}=t;if(u&&Cd(u,o,null),i)for(const re in i){const Q=i[re];ne(Q)&&(o[re]=Q.bind(n))}if(r){const re=r.call(n,n);xe(re)&&(e.data=Jt(re))}if(bs=!0,s)for(const re in s){const Q=s[re],Pe=ne(Q)?Q.bind(n,n):ne(Q.get)?Q.get.bind(n,n):kt,ot=!ne(Q)&&ne(Q.set)?Q.set.bind(n):kt,Me=F({get:Pe,set:ot});Object.defineProperty(o,re,{enumerable:!0,configurable:!0,get:()=>Me.value,set:tt=>Me.value=tt})}if(l)for(const re in l)Ta(l[re],o,n,re);if(a){const re=ne(a)?a.call(n):a;Reflect.ownKeys(re).forEach(Q=>{mo(Q,re[Q])})}c&&Ei(c,e,"c");function ce(re,Q){J(Q)?Q.forEach(Pe=>re(Pe.bind(n))):Q&&re(Q.bind(n))}if(ce(ud,d),ce(Dt,f),ce(dd,p),ce(Ea,b),ce(ld,g),ce(ad,m),ce(gd,ee),ce(hd,B),ce(pd,M),ce(Oa,v),ce(Tr,A),ce(fd,oe),J(ue))if(ue.length){const re=e.exposed||(e.exposed={});ue.forEach(Q=>{Object.defineProperty(re,Q,{get:()=>n[Q],set:Pe=>n[Q]=Pe,enumerable:!0})})}else e.exposed||(e.exposed={});D&&e.render===kt&&(e.render=D),_e!=null&&(e.inheritAttrs=_e),H&&(e.components=H),ge&&(e.directives=ge),oe&&Ca(e)}function Cd(e,t,n=kt){J(e)&&(e=xs(e));for(const o in e){const r=e[o];let s;xe(r)?"default"in r?s=ft(r.from||o,r.default,!0):s=ft(r.from||o):s=ft(r),Re(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function Ei(e,t,n){mt(J(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ta(e,t,n,o){let r=o.includes(".")?_a(n,o):()=>n[o];if(Oe(e)){const s=t[e];ne(s)&&Le(r,s)}else if(ne(e))Le(r,e.bind(n));else if(xe(e))if(J(e))e.forEach(s=>Ta(s,t,n,o));else{const s=ne(e.handler)?e.handler.bind(n):t[e.handler];ne(s)&&Le(r,s,e)}}function Ra(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,l=s.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(u=>lr(a,u,i,!0)),lr(a,t,i)),xe(t)&&s.set(t,a),a}function lr(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&lr(e,s,n,!0),r&&r.forEach(i=>lr(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const l=Ad[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Ad={data:Oi,props:Pi,emits:Pi,methods:co,computed:co,beforeCreate:Je,created:Je,beforeMount:Je,mounted:Je,beforeUpdate:Je,updated:Je,beforeDestroy:Je,beforeUnmount:Je,destroyed:Je,unmounted:Je,activated:Je,deactivated:Je,errorCaptured:Je,serverPrefetch:Je,components:co,directives:co,watch:Ed,provide:Oi,inject:Sd};function Oi(e,t){return t?e?function(){return Fe(ne(e)?e.call(this,this):e,ne(t)?t.call(this,this):t)}:t:e}function Sd(e,t){return co(xs(e),xs(t))}function xs(e){if(J(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Je(e,t){return e?[...new Set([].concat(e,t))]:t}function co(e,t){return e?Fe(Object.create(null),e,t):t}function Pi(e,t){return e?J(e)&&J(t)?[...new Set([...e,...t])]:Fe(Object.create(null),Eo(e),Eo(t??{})):t}function Ed(e,t){if(!e)return t;if(!t)return e;const n=Fe(Object.create(null),e);for(const o in t)n[o]=Je(e[o],t[o]);return n}function Ia(){return{app:null,config:{isNativeTag:Ll,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 Od=0;function Pd(e,t){return function(o,r=null){ne(o)||(o=Fe({},o)),r!=null&&!xe(r)&&(r=null);const s=Ia(),i=new WeakSet,l=[];let a=!1;const u=s.app={_uid:Od++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:rf,get config(){return s.config},set config(c){},use(c,...d){return i.has(c)||(c&&ne(c.install)?(i.add(c),c.install(u,...d)):ne(c)&&(i.add(c),c(u,...d))),u},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),u},component(c,d){return d?(s.components[c]=d,u):s.components[c]},directive(c,d){return d?(s.directives[c]=d,u):s.directives[c]},mount(c,d,f){if(!a){const p=u._ceVNode||I(o,r);return p.appContext=s,f===!0?f="svg":f===!1&&(f=void 0),e(p,c,f),a=!0,u._container=c,c.__vue_app__=u,Mr(p.component)}},onUnmount(c){l.push(c)},unmount(){a&&(mt(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return s.provides[c]=d,u},runWithContext(c){const d=zn;zn=u;try{return c()}finally{zn=d}}};return u}}let zn=null;function kd(e,t,n=he){const o=Nt(),r=Be(t),s=Zt(t),i=Ma(e,r),l=pa((a,u)=>{let c,d=he,f;return ed(()=>{const p=e[r];ze(c,p)&&(c=p,u())}),{get(){return a(),n.get?n.get(c):c},set(p){const b=n.set?n.set(p):p;if(!ze(b,c)&&!(d!==he&&ze(p,d)))return;const g=o.vnode.props,m=!!(g&&(t in g||r in g||s in g)&&(`onUpdate:${t}`in g||`onUpdate:${r}`in g||`onUpdate:${s}`in g));m||(c=p,u()),o.emit(`update:${t}`,b),ze(p,d)&&(ze(p,b)&&!ze(b,f)||m&&d!==he&&!ze(b,c))&&u(),d=p,f=b}}});return l[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?i||he:l,done:!1}:{done:!0}}}},l}const Ma=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Be(t)}Modifiers`]||e[`${Zt(t)}Modifiers`];function Td(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||he;let r=n;const s=t.startsWith("update:"),i=s&&Ma(o,t.slice(7));i&&(i.trim&&(r=n.map(c=>Oe(c)?c.trim():c)),i.number&&(r=n.map(_r)));let l,a=o[l=po(t)]||o[l=po(Be(t))];!a&&s&&(a=o[l=po(Zt(t))]),a&&mt(a,e,6,r);const u=o[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,mt(u,e,6,r)}}const Rd=new WeakMap;function Da(e,t,n=!1){const o=n?Rd:t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},l=!1;if(!ne(e)){const a=u=>{const c=Da(u,t,!0);c&&(l=!0,Fe(i,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!l?(xe(e)&&o.set(e,null),null):(J(s)?s.forEach(a=>i[a]=null):Fe(i,s),xe(e)&&o.set(e,i),i)}function Rr(e,t){return!e||!mr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ye(e,t[0].toLowerCase()+t.slice(1))||ye(e,Zt(t))||ye(e,t))}function ki(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[s],slots:i,attrs:l,emit:a,render:u,renderCache:c,props:d,data:f,setupState:p,ctx:b,inheritAttrs:g}=e,m=sr(e);let h,v;try{if(n.shapeFlag&4){const A=r||o,D=A;h=Ot(u.call(D,A,c,d,p,f,b)),v=l}else{const A=t;h=Ot(A.length>1?A(d,{attrs:l,slots:i,emit:a}):A(d,null)),v=t.props?l:Id(l)}}catch(A){bo.length=0,Pr(A,e,1),h=I(It)}let w=h;if(v&&g!==!1){const A=Object.keys(v),{shapeFlag:D}=w;A.length&&D&7&&(s&&A.some(vr)&&(v=Md(v,s)),w=En(w,v,!1,!0))}return n.dirs&&(w=En(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&Ks(w,n.transition),h=w,sr(m),h}const Id=e=>{let t;for(const n in e)(n==="class"||n==="style"||mr(n))&&((t||(t={}))[n]=e[n]);return t},Md=(e,t)=>{const n={};for(const o in e)(!vr(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Dd(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:l,patchFlag:a}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?Ti(o,i,u):!!i;if(a&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const f=c[d];if(Na(i,o,f)&&!Rr(u,f))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?Ti(o,i,u):!0:!!i;return!1}function Ti(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const s=o[r];if(Na(t,e,s)&&!Rr(n,s))return!0}return!1}function Na(e,t,n){const o=e[n],r=t[n];return n==="style"&&xe(o)&&xe(r)?!dn(o,r):o!==r}function Nd({vnode:e,parent:t,suspense:n},o){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=o,e=r),r===e)(e=t.vnode).el=o,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=o)}const $a={},La=()=>Object.create($a),Ba=e=>Object.getPrototypeOf(e)===$a;function $d(e,t,n,o=!1){const r={},s=La();e.propsDefaults=Object.create(null),Fa(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:ua(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function Ld(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,l=me(r),[a]=e.propsOptions;let u=!1;if((o||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let f=c[d];if(Rr(e.emitsOptions,f))continue;const p=t[f];if(a)if(ye(s,f))p!==s[f]&&(s[f]=p,u=!0);else{const b=Be(f);r[b]=_s(a,l,b,p,e,!1)}else p!==s[f]&&(s[f]=p,u=!0)}}}else{Fa(e,t,r,s)&&(u=!0);let c;for(const d in l)(!t||!ye(t,d)&&((c=Zt(d))===d||!ye(t,c)))&&(a?n&&(n[d]!==void 0||n[c]!==void 0)&&(r[d]=_s(a,l,d,void 0,e,!0)):delete r[d]);if(s!==l)for(const d in s)(!t||!ye(t,d))&&(delete s[d],u=!0)}u&&jt(e.attrs,"set","")}function Fa(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(fo(a))continue;const u=t[a];let c;r&&ye(r,c=Be(a))?!s||!s.includes(c)?n[c]=u:(l||(l={}))[c]=u:Rr(e.emitsOptions,a)||(!(a in o)||u!==o[a])&&(o[a]=u,i=!0)}if(s){const a=me(n),u=l||he;for(let c=0;c<s.length;c++){const d=s[c];n[d]=_s(r,a,d,u[d],e,!ye(u,d))}}return i}function _s(e,t,n,o,r,s){const i=e[n];if(i!=null){const l=ye(i,"default");if(l&&o===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&ne(a)){const{propsDefaults:u}=r;if(n in u)o=u[n];else{const c=Bo(r);o=u[n]=a.call(null,t),c()}}else o=a;r.ce&&r.ce._setProp(n,o)}i[0]&&(s&&!l?o=!1:i[1]&&(o===""||o===Zt(n))&&(o=!0))}return o}const Bd=new WeakMap;function qa(e,t,n=!1){const o=n?Bd:t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},l=[];let a=!1;if(!ne(e)){const c=d=>{a=!0;const[f,p]=qa(d,t,!0);Fe(i,f),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!a)return xe(e)&&o.set(e,Bn),Bn;if(J(s))for(let c=0;c<s.length;c++){const d=Be(s[c]);Ri(d)&&(i[d]=he)}else if(s)for(const c in s){const d=Be(c);if(Ri(d)){const f=s[c],p=i[d]=J(f)||ne(f)?{type:f}:Fe({},f),b=p.type;let g=!1,m=!0;if(J(b))for(let h=0;h<b.length;++h){const v=b[h],w=ne(v)&&v.name;if(w==="Boolean"){g=!0;break}else w==="String"&&(m=!1)}else g=ne(b)&&b.name==="Boolean";p[0]=g,p[1]=m,(g||ye(p,"default"))&&l.push(d)}}const u=[i,l];return xe(e)&&o.set(e,u),u}function Ri(e){return e[0]!=="$"&&!fo(e)}const Js=e=>e==="_"||e==="_ctx"||e==="$stable",Xs=e=>J(e)?e.map(Ot):[Ot(e)],Fd=(e,t,n)=>{if(t._n)return t;const o=$((...r)=>Xs(t(...r)),n);return o._c=!1,o},Va=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Js(r))continue;const s=e[r];if(ne(s))t[r]=Fd(r,s,o);else if(s!=null){const i=Xs(s);t[r]=()=>i}}},za=(e,t)=>{const n=Xs(t);e.slots.default=()=>n},ja=(e,t,n)=>{for(const o in t)(n||!Js(o))&&(e[o]=t[o])},qd=(e,t,n)=>{const o=e.slots=La();if(e.vnode.shapeFlag&32){const r=t._;r?(ja(o,t,n),n&&Vl(o,"_",r,!0)):Va(t,o)}else t&&za(e,t)},Vd=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=he;if(o.shapeFlag&32){const l=t._;l?n&&l===1?s=!1:ja(r,t,n):(s=!t.$stable,Va(t,r)),i=t}else t&&(za(e,t),i={default:1});if(s)for(const l in r)!Js(l)&&i[l]==null&&delete r[l]},Xe=Wd;function zd(e){return jd(e)}function jd(e,t){const n=wr();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:l,createComment:a,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:p=kt,insertStaticContent:b}=e,g=(y,x,C,O=null,k=null,E=null,q=void 0,L=null,N=!!x.dynamicChildren)=>{if(y===x)return;y&&!ro(y,x)&&(O=P(y),tt(y,k,E,!0),y=null),x.patchFlag===-2&&(N=!1,x.dynamicChildren=null);const{type:R,ref:Z,shapeFlag:z}=x;switch(R){case Ir:m(y,x,C,O);break;case It:h(y,x,C,O);break;case Yr:y==null&&v(x,C,O,q);break;case Se:H(y,x,C,O,k,E,q,L,N);break;default:z&1?D(y,x,C,O,k,E,q,L,N):z&6?ge(y,x,C,O,k,E,q,L,N):(z&64||z&128)&&R.process(y,x,C,O,k,E,q,L,N,X)}Z!=null&&k?vo(Z,y&&y.ref,E,x||y,!x):Z==null&&y&&y.ref!=null&&vo(y.ref,null,E,y,!0)},m=(y,x,C,O)=>{if(y==null)o(x.el=l(x.children),C,O);else{const k=x.el=y.el;x.children!==y.children&&u(k,x.children)}},h=(y,x,C,O)=>{y==null?o(x.el=a(x.children||""),C,O):x.el=y.el},v=(y,x,C,O)=>{[y.el,y.anchor]=b(y.children,x,C,O,y.el,y.anchor)},w=({el:y,anchor:x},C,O)=>{let k;for(;y&&y!==x;)k=f(y),o(y,C,O),y=k;o(x,C,O)},A=({el:y,anchor:x})=>{let C;for(;y&&y!==x;)C=f(y),r(y),y=C;r(x)},D=(y,x,C,O,k,E,q,L,N)=>{if(x.type==="svg"?q="svg":x.type==="math"&&(q="mathml"),y==null)B(x,C,O,k,E,q,L,N);else{const R=y.el&&y.el._isVueCE?y.el:null;try{R&&R._beginPatch(),oe(y,x,k,E,q,L,N)}finally{R&&R._endPatch()}}},B=(y,x,C,O,k,E,q,L)=>{let N,R;const{props:Z,shapeFlag:z,transition:Y,dirs:te}=y;if(N=y.el=i(y.type,E,Z&&Z.is,Z),z&8?c(N,y.children):z&16&&ee(y.children,N,null,O,k,Xr(y,E),q,L),te&&vn(y,null,O,"created"),M(N,y,y.scopeId,q,O),Z){for(const Ce in Z)Ce!=="value"&&!fo(Ce)&&s(N,Ce,null,Z[Ce],E,O);"value"in Z&&s(N,"value",null,Z.value,E),(R=Z.onVnodeBeforeMount)&&At(R,O,y)}te&&vn(y,null,O,"beforeMount");const pe=Ud(k,Y);pe&&Y.beforeEnter(N),o(N,x,C),((R=Z&&Z.onVnodeMounted)||pe||te)&&Xe(()=>{try{R&&At(R,O,y),pe&&Y.enter(N),te&&vn(y,null,O,"mounted")}finally{}},k)},M=(y,x,C,O,k)=>{if(C&&p(y,C),O)for(let E=0;E<O.length;E++)p(y,O[E]);if(k){let E=k.subTree;if(x===E||Wa(E.type)&&(E.ssContent===x||E.ssFallback===x)){const q=k.vnode;M(y,q,q.scopeId,q.slotScopeIds,k.parent)}}},ee=(y,x,C,O,k,E,q,L,N=0)=>{for(let R=N;R<y.length;R++){const Z=y[R]=L?zt(y[R]):Ot(y[R]);g(null,Z,x,C,O,k,E,q,L)}},oe=(y,x,C,O,k,E,q)=>{const L=x.el=y.el;let{patchFlag:N,dynamicChildren:R,dirs:Z}=x;N|=y.patchFlag&16;const z=y.props||he,Y=x.props||he;let te;if(C&&yn(C,!1),(te=Y.onVnodeBeforeUpdate)&&At(te,C,x,y),Z&&vn(x,y,C,"beforeUpdate"),C&&yn(C,!0),(z.innerHTML&&Y.innerHTML==null||z.textContent&&Y.textContent==null)&&c(L,""),R?ue(y.dynamicChildren,R,L,C,O,Xr(x,k),E):q||Q(y,x,L,null,C,O,Xr(x,k),E,!1),N>0){if(N&16)_e(L,z,Y,C,k);else if(N&2&&z.class!==Y.class&&s(L,"class",null,Y.class,k),N&4&&s(L,"style",z.style,Y.style,k),N&8){const pe=x.dynamicProps;for(let Ce=0;Ce<pe.length;Ce++){const we=pe[Ce],De=z[we],Ve=Y[we];(Ve!==De||we==="value")&&s(L,we,De,Ve,k,C)}}N&1&&y.children!==x.children&&c(L,x.children)}else!q&&R==null&&_e(L,z,Y,C,k);((te=Y.onVnodeUpdated)||Z)&&Xe(()=>{te&&At(te,C,x,y),Z&&vn(x,y,C,"updated")},O)},ue=(y,x,C,O,k,E,q)=>{for(let L=0;L<x.length;L++){const N=y[L],R=x[L],Z=N.el&&(N.type===Se||!ro(N,R)||N.shapeFlag&198)?d(N.el):C;g(N,R,Z,null,O,k,E,q,!0)}},_e=(y,x,C,O,k)=>{if(x!==C){if(x!==he)for(const E in x)!fo(E)&&!(E in C)&&s(y,E,x[E],null,k,O);for(const E in C){if(fo(E))continue;const q=C[E],L=x[E];q!==L&&E!=="value"&&s(y,E,L,q,k,O)}"value"in C&&s(y,"value",x.value,C.value,k)}},H=(y,x,C,O,k,E,q,L,N)=>{const R=x.el=y?y.el:l(""),Z=x.anchor=y?y.anchor:l("");let{patchFlag:z,dynamicChildren:Y,slotScopeIds:te}=x;te&&(L=L?L.concat(te):te),y==null?(o(R,C,O),o(Z,C,O),ee(x.children||[],C,Z,k,E,q,L,N)):z>0&&z&64&&Y&&y.dynamicChildren&&y.dynamicChildren.length===Y.length?(ue(y.dynamicChildren,Y,C,k,E,q,L),(x.key!=null||k&&x===k.subTree)&&Ys(y,x,!0)):Q(y,x,C,Z,k,E,q,L,N)},ge=(y,x,C,O,k,E,q,L,N)=>{x.slotScopeIds=L,y==null?x.shapeFlag&512?k.ctx.activate(x,C,O,q,N):de(x,C,O,k,E,q,N):ke(y,x,N)},de=(y,x,C,O,k,E,q)=>{const L=y.component=Yd(y,O,k);if(Aa(y)&&(L.ctx.renderer=X),Qd(L,!1,q),L.asyncDep){if(k&&k.registerDep(L,ce,q),!y.el){const N=L.subTree=I(It);h(null,N,x,C),y.placeholder=N.el}}else ce(L,y,x,C,k,E,q)},ke=(y,x,C)=>{const O=x.component=y.component;if(Dd(y,x,C))if(O.asyncDep&&!O.asyncResolved){re(O,x,C);return}else O.next=x,O.update();else x.el=y.el,O.vnode=x},ce=(y,x,C,O,k,E,q)=>{const L=()=>{if(y.isMounted){let{next:z,bu:Y,u:te,parent:pe,vnode:Ce}=y;{const wt=Ua(y);if(wt){z&&(z.el=Ce.el,re(y,z,q)),wt.asyncDep.then(()=>{Xe(()=>{y.isUnmounted||R()},k)});return}}let we=z,De;yn(y,!1),z?(z.el=Ce.el,re(y,z,q)):z=Ce,Y&&Zo(Y),(De=z.props&&z.props.onVnodeBeforeUpdate)&&At(De,pe,z,Ce),yn(y,!0);const Ve=ki(y),_t=y.subTree;y.subTree=Ve,g(_t,Ve,d(_t.el),P(_t),y,k,E),z.el=Ve.el,we===null&&Nd(y,Ve.el),te&&Xe(te,k),(De=z.props&&z.props.onVnodeUpdated)&&Xe(()=>At(De,pe,z,Ce),k)}else{let z;const{el:Y,props:te}=x,{bm:pe,m:Ce,parent:we,root:De,type:Ve}=y,_t=Vn(x);yn(y,!1),pe&&Zo(pe),!_t&&(z=te&&te.onVnodeBeforeMount)&&At(z,we,x),yn(y,!0);{De.ce&&De.ce._hasShadowRoot()&&De.ce._injectChildStyle(Ve,y.parent?y.parent.type:void 0);const wt=y.subTree=ki(y);g(null,wt,C,O,y,k,E),x.el=wt.el}if(Ce&&Xe(Ce,k),!_t&&(z=te&&te.onVnodeMounted)){const wt=x;Xe(()=>At(z,we,wt),k)}(x.shapeFlag&256||we&&Vn(we.vnode)&&we.vnode.shapeFlag&256)&&y.a&&Xe(y.a,k),y.isMounted=!0,x=C=O=null}};y.scope.on();const N=y.effect=new Gl(L);y.scope.off();const R=y.update=N.run.bind(N),Z=y.job=N.runIfDirty.bind(N);Z.i=y,Z.id=y.uid,N.scheduler=()=>Hs(Z),yn(y,!0),R()},re=(y,x,C)=>{x.component=y;const O=y.vnode.props;y.vnode=x,y.next=null,Ld(y,x.props,O,C),Vd(y,x.children,C),Kt(),xi(y),Gt()},Q=(y,x,C,O,k,E,q,L,N=!1)=>{const R=y&&y.children,Z=y?y.shapeFlag:0,z=x.children,{patchFlag:Y,shapeFlag:te}=x;if(Y>0){if(Y&128){ot(R,z,C,O,k,E,q,L,N);return}else if(Y&256){Pe(R,z,C,O,k,E,q,L,N);return}}te&8?(Z&16&&dt(R,k,E),z!==R&&c(C,z)):Z&16?te&16?ot(R,z,C,O,k,E,q,L,N):dt(R,k,E,!0):(Z&8&&c(C,""),te&16&&ee(z,C,O,k,E,q,L,N))},Pe=(y,x,C,O,k,E,q,L,N)=>{y=y||Bn,x=x||Bn;const R=y.length,Z=x.length,z=Math.min(R,Z);let Y;for(Y=0;Y<z;Y++){const te=x[Y]=N?zt(x[Y]):Ot(x[Y]);g(y[Y],te,C,null,k,E,q,L,N)}R>Z?dt(y,k,E,!0,!1,z):ee(x,C,O,k,E,q,L,N,z)},ot=(y,x,C,O,k,E,q,L,N)=>{let R=0;const Z=x.length;let z=y.length-1,Y=Z-1;for(;R<=z&&R<=Y;){const te=y[R],pe=x[R]=N?zt(x[R]):Ot(x[R]);if(ro(te,pe))g(te,pe,C,null,k,E,q,L,N);else break;R++}for(;R<=z&&R<=Y;){const te=y[z],pe=x[Y]=N?zt(x[Y]):Ot(x[Y]);if(ro(te,pe))g(te,pe,C,null,k,E,q,L,N);else break;z--,Y--}if(R>z){if(R<=Y){const te=Y+1,pe=te<Z?x[te].el:O;for(;R<=Y;)g(null,x[R]=N?zt(x[R]):Ot(x[R]),C,pe,k,E,q,L,N),R++}}else if(R>Y)for(;R<=z;)tt(y[R],k,E,!0),R++;else{const te=R,pe=R,Ce=new Map;for(R=pe;R<=Y;R++){const rt=x[R]=N?zt(x[R]):Ot(x[R]);rt.key!=null&&Ce.set(rt.key,R)}let we,De=0;const Ve=Y-pe+1;let _t=!1,wt=0;const no=new Array(Ve);for(R=0;R<Ve;R++)no[R]=0;for(R=te;R<=z;R++){const rt=y[R];if(De>=Ve){tt(rt,k,E,!0);continue}let Ct;if(rt.key!=null)Ct=Ce.get(rt.key);else for(we=pe;we<=Y;we++)if(no[we-pe]===0&&ro(rt,x[we])){Ct=we;break}Ct===void 0?tt(rt,k,E,!0):(no[Ct-pe]=R+1,Ct>=wt?wt=Ct:_t=!0,g(rt,x[Ct],C,null,k,E,q,L,N),De++)}const pi=_t?Hd(no):Bn;for(we=pi.length-1,R=Ve-1;R>=0;R--){const rt=pe+R,Ct=x[rt],hi=x[rt+1],gi=rt+1<Z?hi.el||Ha(hi):O;no[R]===0?g(null,Ct,C,gi,k,E,q,L,N):_t&&(we<0||R!==pi[we]?Me(Ct,C,gi,2):we--)}}},Me=(y,x,C,O,k=null)=>{const{el:E,type:q,transition:L,children:N,shapeFlag:R}=y;if(R&6){Me(y.component.subTree,x,C,O);return}if(R&128){y.suspense.move(x,C,O);return}if(R&64){q.move(y,x,C,X);return}if(q===Se){o(E,x,C);for(let z=0;z<N.length;z++)Me(N[z],x,C,O);o(y.anchor,x,C);return}if(q===Yr){w(y,x,C);return}if(O!==2&&R&1&&L)if(O===0)L.persisted&&!E[Kr]?o(E,x,C):(L.beforeEnter(E),o(E,x,C),Xe(()=>L.enter(E),k));else{const{leave:z,delayLeave:Y,afterLeave:te}=L,pe=()=>{y.ctx.isUnmounted?r(E):o(E,x,C)},Ce=()=>{const we=E._isLeaving||!!E[Kr];E._isLeaving&&E[Kr](!0),L.persisted&&!we?pe():z(E,()=>{pe(),te&&te()})};Y?Y(E,pe,Ce):Ce()}else o(E,x,C)},tt=(y,x,C,O=!1,k=!1)=>{const{type:E,props:q,ref:L,children:N,dynamicChildren:R,shapeFlag:Z,patchFlag:z,dirs:Y,cacheIndex:te,memo:pe}=y;if(z===-2&&(k=!1),L!=null&&(Kt(),vo(L,null,C,y,!0),Gt()),te!=null&&(x.renderCache[te]=void 0),Z&256){x.ctx.deactivate(y);return}const Ce=Z&1&&Y,we=!Vn(y);let De;if(we&&(De=q&&q.onVnodeBeforeUnmount)&&At(De,x,y),Z&6)mn(y.component,C,O);else{if(Z&128){y.suspense.unmount(C,O);return}Ce&&vn(y,null,x,"beforeUnmount"),Z&64?y.type.remove(y,x,C,X,O):R&&!R.hasOnce&&(E!==Se||z>0&&z&64)?dt(R,x,C,!1,!0):(E===Se&&z&384||!k&&Z&16)&&dt(N,x,C),O&&Rn(y)}const Ve=pe!=null&&te==null;(we&&(De=q&&q.onVnodeUnmounted)||Ce||Ve)&&Xe(()=>{De&&At(De,x,y),Ce&&vn(y,null,x,"unmounted"),Ve&&(y.el=null)},C)},Rn=y=>{const{type:x,el:C,anchor:O,transition:k}=y;if(x===Se){In(C,O);return}if(x===Yr){A(y);return}const E=()=>{r(C),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(y.shapeFlag&1&&k&&!k.persisted){const{leave:q,delayLeave:L}=k,N=()=>q(C,E);L?L(y.el,E,N):N()}else E()},In=(y,x)=>{let C;for(;y!==x;)C=f(y),r(y),y=C;r(x)},mn=(y,x,C)=>{const{bum:O,scope:k,job:E,subTree:q,um:L,m:N,a:R}=y;Ii(N),Ii(R),O&&Zo(O),k.stop(),E&&(E.flags|=8,tt(q,y,x,C)),L&&Xe(L,x),Xe(()=>{y.isUnmounted=!0},x)},dt=(y,x,C,O=!1,k=!1,E=0)=>{for(let q=E;q<y.length;q++)tt(y[q],x,C,O,k)},P=y=>{if(y.shapeFlag&6)return P(y.component.subTree);if(y.shapeFlag&128)return y.suspense.next();const x=f(y.anchor||y.el),C=x&&x[wa];return C?f(C):x};let W=!1;const V=(y,x,C)=>{let O;y==null?x._vnode&&(tt(x._vnode,null,null,!0),O=x._vnode.component):g(x._vnode||null,y,x,null,null,null,C),x._vnode=y,W||(W=!0,xi(O),va(),W=!1)},X={p:g,um:tt,m:Me,r:Rn,mt:de,mc:ee,pc:Q,pbc:ue,n:P,o:e};return{render:V,hydrate:void 0,createApp:Pd(V)}}function Xr({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 yn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ud(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ys(e,t,n=!1){const o=e.children,r=t.children;if(J(o)&&J(r))for(let s=0;s<o.length;s++){const i=o[s];let l=r[s];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[s]=zt(r[s]),l.el=i.el),!n&&l.patchFlag!==-2&&Ys(i,l)),l.type===Ir&&(l.patchFlag===-1&&(l=r[s]=zt(l)),l.el=i.el),l.type===It&&!l.el&&(l.el=i.el)}}function Hd(e){const t=e.slice(),n=[0];let o,r,s,i,l;const a=e.length;for(o=0;o<a;o++){const u=e[o];if(u!==0){if(r=n[n.length-1],e[r]<u){t[o]=r,n.push(o);continue}for(s=0,i=n.length-1;s<i;)l=s+i>>1,e[n[l]]<u?s=l+1:i=l;u<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function Ua(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ua(t)}function Ii(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ha(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ha(t.subTree):null}const Wa=e=>e.__isSuspense;function Wd(e,t){t&&t.pendingBranch?J(e)?t.effects.push(...e):t.effects.push(e):Yu(e)}const Se=Symbol.for("v-fgt"),Ir=Symbol.for("v-txt"),It=Symbol.for("v-cmt"),Yr=Symbol.for("v-stc"),bo=[];let lt=null;function S(e=!1){bo.push(lt=e?null:[])}function Kd(){bo.pop(),lt=bo[bo.length-1]||null}let Oo=1;function ar(e,t=!1){Oo+=e,e<0&<&&t&&(lt.hasOnce=!0)}function Ka(e){return e.dynamicChildren=Oo>0?lt||Bn:null,Kd(),Oo>0&<&<.push(e),e}function j(e,t,n,o,r,s){return Ka(T(e,t,n,o,r,s,!0))}function G(e,t,n,o,r){return Ka(I(e,t,n,o,r,!0))}function Po(e){return e?e.__v_isVNode===!0:!1}function ro(e,t){return e.type===t.type&&e.key===t.key}const Ga=({key:e})=>e??null,er=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Oe(e)||Re(e)||ne(e)?{i:je,r:e,k:t,f:!!n}:e:null);function T(e,t=null,n=null,o=0,r=null,s=e===Se?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ga(t),ref:t&&er(t),scopeId:ba,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:je};return l?(Qs(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=Oe(n)?8:16),Oo>0&&!i&<&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&<.push(a),a}const I=Gd;function Gd(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===Pa)&&(e=It),Po(e)){const l=En(e,t,!0);return n&&Qs(l,n),Oo>0&&!s&<&&(l.shapeFlag&6?lt[lt.indexOf(e)]=l:lt.push(l)),l.patchFlag=-2,l}if(of(e)&&(e=e.__vccOpts),t){t=Qn(t);let{class:l,style:a}=t;l&&!Oe(l)&&(t.class=Ie(l)),xe(a)&&(Or(a)&&!J(a)&&(a=Fe({},a)),t.style=Pn(a))}const i=Oe(e)?1:Wa(e)?128:nd(e)?64:xe(e)?4:ne(e)?2:0;return T(e,t,n,o,r,i,s,!0)}function Qn(e){return e?Or(e)||Ba(e)?Fe({},e):e:null}function En(e,t,n=!1,o=!1){const{props:r,ref:s,patchFlag:i,children:l,transition:a}=e,u=t?Ue(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Ga(u),ref:t&&t.ref?n&&s?J(s)?s.concat(er(t)):[s,er(t)]:er(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&En(e.ssContent),ssFallback:e.ssFallback&&En(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&o&&Ks(c,a.clone(c)),c}function ie(e=" ",t=0){return I(Ir,null,e,t)}function be(e="",t=!1){return t?(S(),G(It,null,e)):I(It,null,e)}function Ot(e){return e==null||typeof e=="boolean"?I(It):J(e)?I(Se,null,e.slice()):Po(e)?zt(e):I(Ir,null,String(e))}function zt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:En(e)}function Qs(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(J(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Qs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Ba(t)?t._ctx=je:r===3&&je&&(je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ne(t)?(t={default:t,_ctx:je},n=32):(t=String(t),o&64?(n=16,t=[ie(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ue(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=Ie([t.class,o.class]));else if(r==="style")t.style=Pn([t.style,o.style]);else if(mr(r)){const s=t[r],i=o[r];i&&s!==i&&!(J(s)&&s.includes(i))?t[r]=s?[].concat(s,i):i:i==null&&s==null&&!vr(r)&&(t[r]=i)}else r!==""&&(t[r]=o[r])}return t}function At(e,t,n,o=null){mt(e,t,7,[n,o])}const Jd=Ia();let Xd=0;function Yd(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Jd,s={uid:Xd++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Hl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:qa(o,r),emitsOptions:Da(o,r),emit:null,emitted:null,propsDefaults:he,inheritAttrs:o.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=Td.bind(null,s),e.ce&&e.ce(s),s}let Ke=null;const Nt=()=>Ke||je;let cr,ws;{const e=wr(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),s=>{r.length>1?r.forEach(i=>i(s)):r[0](s)}};cr=t("__VUE_INSTANCE_SETTERS__",n=>Ke=n),ws=t("__VUE_SSR_SETTERS__",n=>ko=n)}const Bo=e=>{const t=Ke;return cr(e),e.scope.on(),()=>{e.scope.off(),cr(t)}},Mi=()=>{Ke&&Ke.scope.off(),cr(null)};function Ja(e){return e.vnode.shapeFlag&4}let ko=!1;function Qd(e,t=!1,n=!1){t&&ws(t);const{props:o,children:r}=e.vnode,s=Ja(e);$d(e,o,s,t),qd(e,r,n||t);const i=s?Zd(e,t):void 0;return t&&ws(!1),i}function Zd(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bd);const{setup:o}=n;if(o){Kt();const r=e.setupContext=o.length>1?tf(e):null,s=Bo(e),i=$o(o,e,0,[e.props,r]),l=Bl(i);if(Gt(),s(),(l||e.sp)&&!Vn(e)&&Ca(e),l){if(i.then(Mi,Mi),t)return i.then(a=>{Di(e,a)}).catch(a=>{Pr(a,e,0)});e.asyncDep=i}else Di(e,i)}else Xa(e)}function Di(e,t,n){ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:xe(t)&&(e.setupState=fa(t)),Xa(e)}function Xa(e,t,n){const o=e.type;e.render||(e.render=o.render||kt);{const r=Bo(e);Kt();try{wd(e)}finally{Gt(),r()}}}const ef={get(e,t){return We(e,"get",""),e[t]}};function tf(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ef),slots:e.slots,emit:e.emit,expose:t}}function Mr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(fa(Lu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in yo)return yo[n](e)},has(t,n){return n in t||n in yo}})):e.proxy}function nf(e,t=!0){return ne(e)?e.displayName||e.name:e.name||t&&e.__name}function of(e){return ne(e)&&"__vccOpts"in e}const F=(e,t)=>Wu(e,t,ko);function Wt(e,t,n){try{ar(-1);const o=arguments.length;return o===2?xe(t)&&!J(t)?Po(t)?I(e,null,[t]):I(e,t):I(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Po(n)&&(n=[n]),I(e,t,n))}finally{ar(1)}}const rf="3.5.38";/**
|
|
14
|
-
* @vue/runtime-dom v3.5.38
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**/let Cs;const Ni=typeof window<"u"&&window.trustedTypes;if(Ni)try{Cs=Ni.createPolicy("vue",{createHTML:e=>e})}catch{}const Ya=Cs?e=>Cs.createHTML(e):e=>e,sf="http://www.w3.org/2000/svg",lf="http://www.w3.org/1998/Math/MathML",Vt=typeof document<"u"?document:null,$i=Vt&&Vt.createElement("template"),af={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?Vt.createElementNS(sf,e):t==="mathml"?Vt.createElementNS(lf,e):n?Vt.createElement(e,{is:n}):Vt.createElement(e);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Vt.createTextNode(e),createComment:e=>Vt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Vt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{$i.innerHTML=Ya(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const l=$i.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},cf=Symbol("_vtc");function uf(e,t,n){const o=e[cf];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Li=Symbol("_vod"),df=Symbol("_vsh"),ff=Symbol(""),pf=/(?:^|;)\s*display\s*:/;function hf(e,t,n){const o=e.style,r=Oe(n);let s=!1;if(n&&!r){if(t)if(Oe(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&uo(o,l,"")}else for(const i in t)n[i]==null&&uo(o,i,"");for(const i in n){i==="display"&&(s=!0);const l=n[i];l!=null?mf(e,i,!Oe(t)&&t?t[i]:void 0,l)||uo(o,i,l):uo(o,i,"")}}else if(r){if(t!==n){const i=o[ff];i&&(n+=";"+i),o.cssText=n,s=pf.test(n)}}else t&&e.removeAttribute("style");Li in e&&(e[Li]=s?o.display:"",e[df]&&(o.display="none"))}const Bi=/\s*!important$/;function uo(e,t,n){if(J(n))n.forEach(o=>uo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=gf(e,t);Bi.test(n)?e.setProperty(Zt(o),n.replace(Bi,""),"important"):e[o]=n}}const Fi=["Webkit","Moz","ms"],Qr={};function gf(e,t){const n=Qr[t];if(n)return n;let o=Be(t);if(o!=="filter"&&o in e)return Qr[t]=o;o=xr(o);for(let r=0;r<Fi.length;r++){const s=Fi[r]+o;if(s in e)return Qr[t]=s}return t}function mf(e,t,n,o){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Oe(o)&&n===o}const qi="http://www.w3.org/1999/xlink";function Vi(e,t,n,o,r,s=vu(t)){o&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(qi,t.slice(6,t.length)):e.setAttributeNS(qi,t,n):n==null||s&&!zl(n)?e.removeAttribute(t):e.setAttribute(t,s?"":ut(n)?String(n):n)}function zi(e,t,n,o,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Ya(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const l=s==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=zl(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(r||t)}function Ht(e,t,n,o){e.addEventListener(t,n,o)}function vf(e,t,n,o){e.removeEventListener(t,n,o)}const ji=Symbol("_vei");function yf(e,t,n,o,r=null){const s=e[ji]||(e[ji]={}),i=s[t];if(o&&i)i.value=o;else{const[l,a]=bf(t);if(o){const u=s[t]=wf(o,r);Ht(e,l,u,a)}else i&&(vf(e,l,i,a),s[t]=void 0)}}const Ui=/(?:Once|Passive|Capture)$/;function bf(e){let t;if(Ui.test(e)){t={};let o;for(;o=e.match(Ui);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Zt(e.slice(2)),t]}let Zr=0;const xf=Promise.resolve(),_f=()=>Zr||(xf.then(()=>Zr=0),Zr=Date.now());function wf(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;const r=n.value;if(J(r)){const s=o.stopImmediatePropagation;o.stopImmediatePropagation=()=>{s.call(o),o._stopped=!0};const i=r.slice(),l=[o];for(let a=0;a<i.length&&!o._stopped;a++){const u=i[a];u&&mt(u,t,5,l)}}else mt(r,t,5,[o])};return n.value=e,n.attached=_f(),n}const Hi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Cf=(e,t,n,o,r,s)=>{const i=r==="svg";t==="class"?uf(e,o,i):t==="style"?hf(e,n,o):mr(t)?vr(t)||yf(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Af(e,t,o,i))?(zi(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Vi(e,t,o,i,s,t!=="value")):e._isVueCE&&(Sf(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Oe(o)))?zi(e,Be(t),o,s,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Vi(e,t,o,i))};function Af(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Hi(t)&&ne(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Hi(t)&&Oe(n)?!1:t in e}function Sf(e,t){const n=e._def.props;if(!n)return!1;const o=Be(t);return Array.isArray(n)?n.some(r=>Be(r)===o):Object.keys(n).some(r=>Be(r)===o)}const pn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return J(t)?n=>Zo(t,n):t};function Ef(e){e.target.composing=!0}function Wi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const pt=Symbol("_assign");function Ki(e,t,n){return t&&(e=e.trim()),n&&(e=_r(e)),e}const ur={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[pt]=pn(r);const s=o||r.props&&r.props.type==="number";Ht(e,t?"change":"input",i=>{i.target.composing||e[pt](Ki(e.value,n,s))}),(n||s)&&Ht(e,"change",()=>{e.value=Ki(e.value,n,s)}),t||(Ht(e,"compositionstart",Ef),Ht(e,"compositionend",Wi),Ht(e,"change",Wi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:s}},i){if(e[pt]=pn(i),e.composing)return;const l=(s||e.type==="number")&&!/^0\d/.test(e.value)?_r(e.value):e.value,a=t??"";if(l===a)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(o&&t===n||r&&e.value.trim()===a)||(e.value=a)}},Of={deep:!0,created(e,t,n){e[pt]=pn(n),Ht(e,"change",()=>{const o=e._modelValue,r=Kn(e),s=e.checked,i=e[pt];if(J(o)){const l=qs(o,r),a=l!==-1;if(s&&!a)i(o.concat(r));else if(!s&&a){const u=[...o];u.splice(l,1),i(u)}}else if(Yn(o)){const l=new Set(o);s?l.add(r):l.delete(r),i(l)}else i(Qa(e,s))})},mounted:Gi,beforeUpdate(e,t,n){e[pt]=pn(n),Gi(e,t,n)}};function Gi(e,{value:t,oldValue:n},o){e._modelValue=t;let r;if(J(t))r=qs(t,o.props.value)>-1;else if(Yn(t))r=t.has(o.props.value);else{if(t===n)return;r=dn(t,Qa(e,!0))}e.checked!==r&&(e.checked=r)}const Pf={created(e,{value:t},n){e.checked=dn(t,n.props.value),e[pt]=pn(n),Ht(e,"change",()=>{e[pt](Kn(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e[pt]=pn(o),t!==n&&(e.checked=dn(t,o.props.value))}},kf={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=Yn(t);Ht(e,"change",()=>{const s=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?_r(Kn(i)):Kn(i));e[pt](e.multiple?r?new Set(s):s:s[0]),e._assigning=!0,vt(()=>{e._assigning=!1})}),e[pt]=pn(o)},mounted(e,{value:t}){Ji(e,t)},beforeUpdate(e,t,n){e[pt]=pn(n)},updated(e,{value:t}){e._assigning||Ji(e,t)}};function Ji(e,t){const n=e.multiple,o=J(t);if(!(n&&!o&&!Yn(t))){for(let r=0,s=e.options.length;r<s;r++){const i=e.options[r],l=Kn(i);if(n)if(o){const a=typeof l;a==="string"||a==="number"?i.selected=t.some(u=>String(u)===String(l)):i.selected=qs(t,l)>-1}else i.selected=t.has(l);else if(dn(Kn(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Kn(e){return"_value"in e?e._value:e.value}function Qa(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Tf={created(e,t,n){Ko(e,t,n,null,"created")},mounted(e,t,n){Ko(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){Ko(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){Ko(e,t,n,o,"updated")}};function Rf(e,t){switch(e){case"SELECT":return kf;case"TEXTAREA":return ur;default:switch(t){case"checkbox":return Of;case"radio":return Pf;default:return ur}}}function Ko(e,t,n,o,r){const i=Rf(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,o)}const If=["ctrl","shift","alt","meta"],Mf={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)=>If.some(n=>e[`${n}Key`]&&!t.includes(n))},un=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=((r,...s)=>{for(let i=0;i<t.length;i++){const l=Mf[t[i]];if(l&&l(r,t))return}return e(r,...s)}))},Df={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},As=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=(r=>{if(!("key"in r))return;const s=Zt(r.key);if(t.some(i=>i===s||Df[i]===s))return e(r)}))},Nf=Fe({patchProp:Cf},af);let Xi;function $f(){return Xi||(Xi=zd(Nf))}const Lf=((...e)=>{const t=$f().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=Ff(o);if(!r)return;const s=t._component;!ne(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,Bf(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t});function Bf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ff(e){return Oe(e)?document.querySelector(e):e}const qf="/assets/source-sans-3-latin-wght-normal-BqRLTx4X.woff2";/*!
|
|
18
|
-
* vue-router v4.6.4
|
|
19
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
20
|
-
* @license MIT
|
|
21
|
-
*/const $n=typeof document<"u";function Za(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Vf(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Za(e.default)}const ve=Object.assign;function es(e,t){const n={};for(const o in t){const r=t[o];n[o]=yt(r)?r.map(e):e(r)}return n}const xo=()=>{},yt=Array.isArray;function Yi(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}const ec=/#/g,zf=/&/g,jf=/\//g,Uf=/=/g,Hf=/\?/g,tc=/\+/g,Wf=/%5B/g,Kf=/%5D/g,nc=/%5E/g,Gf=/%60/g,oc=/%7B/g,Jf=/%7C/g,rc=/%7D/g,Xf=/%20/g;function Zs(e){return e==null?"":encodeURI(""+e).replace(Jf,"|").replace(Wf,"[").replace(Kf,"]")}function Yf(e){return Zs(e).replace(oc,"{").replace(rc,"}").replace(nc,"^")}function Ss(e){return Zs(e).replace(tc,"%2B").replace(Xf,"+").replace(ec,"%23").replace(zf,"%26").replace(Gf,"`").replace(oc,"{").replace(rc,"}").replace(nc,"^")}function Qf(e){return Ss(e).replace(Uf,"%3D")}function Zf(e){return Zs(e).replace(ec,"%23").replace(Hf,"%3F")}function ep(e){return Zf(e).replace(jf,"%2F")}function To(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const tp=/\/$/,np=e=>e.replace(tp,"");function ts(e,t,n="/"){let o,r={},s="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(o=t.slice(0,a),s=t.slice(a,l>0?l:t.length),r=e(s.slice(1))),l>=0&&(o=o||t.slice(0,l),i=t.slice(l,t.length)),o=ip(o??t,n),{fullPath:o+s+i,path:o,query:r,hash:To(i)}}function op(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Qi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function rp(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Gn(t.matched[o],n.matched[r])&&sc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Gn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function sc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!sp(e[n],t[n]))return!1;return!0}function sp(e,t){return yt(e)?Zi(e,t):yt(t)?Zi(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Zi(e,t){return yt(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function ip(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let s=n.length-1,i,l;for(i=0;i<o.length;i++)if(l=o[i],l!==".")if(l==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+o.slice(i).join("/")}const nn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Es=(function(e){return e.pop="pop",e.push="push",e})({}),ns=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function lp(e){if(!e)if($n){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),np(e)}const ap=/^[^#]+#/;function cp(e,t){return e.replace(ap,"#")+t}function up(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const Dr=()=>({left:window.scrollX,top:window.scrollY});function dp(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=up(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function el(e,t){return(history.state?history.state.position-t:-1)+e}const Os=new Map;function fp(e,t){Os.set(e,t)}function pp(e){const t=Os.get(e);return Os.delete(e),t}function hp(e){return typeof e=="string"||e&&typeof e=="object"}function ic(e){return typeof e=="string"||typeof e=="symbol"}let Te=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const lc=Symbol("");Te.MATCHER_NOT_FOUND+"",Te.NAVIGATION_GUARD_REDIRECT+"",Te.NAVIGATION_ABORTED+"",Te.NAVIGATION_CANCELLED+"",Te.NAVIGATION_DUPLICATED+"";function Jn(e,t){return ve(new Error,{type:e,[lc]:!0},t)}function Ft(e,t){return e instanceof Error&&lc in e&&(t==null||!!(e.type&t))}const gp=["params","query","hash"];function mp(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of gp)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function vp(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const r=n[o].replace(tc," "),s=r.indexOf("="),i=To(s<0?r:r.slice(0,s)),l=s<0?null:To(r.slice(s+1));if(i in t){let a=t[i];yt(a)||(a=t[i]=[a]),a.push(l)}else t[i]=l}return t}function tl(e){let t="";for(let n in e){const o=e[n];if(n=Qf(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(yt(o)?o.map(r=>r&&Ss(r)):[o&&Ss(o)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function yp(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=yt(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const bp=Symbol(""),nl=Symbol(""),Nr=Symbol(""),ei=Symbol(""),Ps=Symbol("");function so(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function cn(e,t,n,o,r,s=i=>i()){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((l,a)=>{const u=f=>{f===!1?a(Jn(Te.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?a(f):hp(f)?a(Jn(Te.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(i&&o.enterCallbacks[r]===i&&typeof f=="function"&&i.push(f),l())},c=s(()=>e.call(o&&o.instances[r],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(f=>a(f))})}function os(e,t,n,o,r=s=>s()){const s=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Za(a)){const u=(a.__vccOpts||a)[t];u&&s.push(cn(u,n,o,i,l,r))}else{let u=a();s.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const d=Vf(c)?c.default:c;i.mods[l]=c,i.components[l]=d;const f=(d.__vccOpts||d)[t];return f&&cn(f,n,o,i,l,r)()}))}}return s}function xp(e,t){const n=[],o=[],r=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;i<s;i++){const l=t.matched[i];l&&(e.matched.find(u=>Gn(u,l))?o.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(u=>Gn(u,a))||r.push(a))}return[n,o,r]}/*!
|
|
22
|
-
* vue-router v4.6.4
|
|
23
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
24
|
-
* @license MIT
|
|
25
|
-
*/let _p=()=>location.protocol+"//"+location.host;function ac(e,t){const{pathname:n,search:o,hash:r}=t,s=e.indexOf("#");if(s>-1){let i=r.includes(e.slice(s))?e.slice(s).length:1,l=r.slice(i);return l[0]!=="/"&&(l="/"+l),Qi(l,"")}return Qi(n,e)+o+r}function wp(e,t,n,o){let r=[],s=[],i=null;const l=({state:f})=>{const p=ac(e,location),b=n.value,g=t.value;let m=0;if(f){if(n.value=p,t.value=f,i&&i===b){i=null;return}m=g?f.position-g.position:0}else o(p);r.forEach(h=>{h(n.value,b,{delta:m,type:Es.pop,direction:m?m>0?ns.forward:ns.back:ns.unknown})})};function a(){i=n.value}function u(f){r.push(f);const p=()=>{const b=r.indexOf(f);b>-1&&r.splice(b,1)};return s.push(p),p}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(ve({},f.state,{scroll:Dr()}),"")}}function d(){for(const f of s)f();s=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:a,listen:u,destroy:d}}function ol(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?Dr():null}}function Cp(e){const{history:t,location:n}=window,o={value:ac(e,n)},r={value:t.state};r.value||s(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(a,u,c){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+a:_p()+e+a;try{t[c?"replaceState":"pushState"](u,"",f),r.value=u}catch(p){console.error(p),n[c?"replace":"assign"](f)}}function i(a,u){s(a,ve({},t.state,ol(r.value.back,a,r.value.forward,!0),u,{position:r.value.position}),!0),o.value=a}function l(a,u){const c=ve({},r.value,t.state,{forward:a,scroll:Dr()});s(c.current,c,!0),s(a,ve({},ol(o.value,a,null),{position:c.position+1},u),!1),o.value=a}return{location:o,state:r,push:l,replace:i}}function Ap(e){e=lp(e);const t=Cp(e),n=wp(e,t.state,t.location,t.replace);function o(s,i=!0){i||n.pauseListeners(),history.go(s)}const r=ve({location:"",base:e,go:o,createHref:cp.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Cn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Ne=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Ne||{});const Sp={type:Cn.Static,value:""},Ep=/[a-zA-Z0-9_]/;function Op(e){if(!e)return[[]];if(e==="/")return[[Sp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=Ne.Static,o=n;const r=[];let s;function i(){s&&r.push(s),s=[]}let l=0,a,u="",c="";function d(){u&&(n===Ne.Static?s.push({type:Cn.Static,value:u}):n===Ne.Param||n===Ne.ParamRegExp||n===Ne.ParamRegExpEnd?(s.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:Cn.Param,value:u,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==Ne.ParamRegExp){o=n,n=Ne.EscapeNext;continue}switch(n){case Ne.Static:a==="/"?(u&&d(),i()):a===":"?(d(),n=Ne.Param):f();break;case Ne.EscapeNext:f(),n=o;break;case Ne.Param:a==="("?n=Ne.ParamRegExp:Ep.test(a)?f():(d(),n=Ne.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case Ne.ParamRegExp:a===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+a:n=Ne.ParamRegExpEnd:c+=a;break;case Ne.ParamRegExpEnd:d(),n=Ne.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--,c="";break;default:t("Unknown state");break}}return n===Ne.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),d(),i(),r}const rl="[^/]+?",Pp={sensitive:!1,strict:!1,start:!0,end:!0};var Ye=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Ye||{});const kp=/[.+*?^${}()[\]/\\]/g;function Tp(e,t){const n=ve({},Pp,t),o=[];let r=n.start?"^":"";const s=[];for(const u of e){const c=u.length?[]:[Ye.Root];n.strict&&!u.length&&(r+="/");for(let d=0;d<u.length;d++){const f=u[d];let p=Ye.Segment+(n.sensitive?Ye.BonusCaseSensitive:0);if(f.type===Cn.Static)d||(r+="/"),r+=f.value.replace(kp,"\\$&"),p+=Ye.Static;else if(f.type===Cn.Param){const{value:b,repeatable:g,optional:m,regexp:h}=f;s.push({name:b,repeatable:g,optional:m});const v=h||rl;if(v!==rl){p+=Ye.BonusCustomRegExp;try{`${v}`}catch(A){throw new Error(`Invalid custom RegExp for param "${b}" (${v}): `+A.message)}}let w=g?`((?:${v})(?:/(?:${v}))*)`:`(${v})`;d||(w=m&&u.length<2?`(?:/${w})`:"/"+w),m&&(w+="?"),r+=w,p+=Ye.Dynamic,m&&(p+=Ye.BonusOptional),g&&(p+=Ye.BonusRepeatable),v===".*"&&(p+=Ye.BonusWildcard)}c.push(p)}o.push(c)}if(n.strict&&n.end){const u=o.length-1;o[u][o[u].length-1]+=Ye.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function l(u){const c=u.match(i),d={};if(!c)return null;for(let f=1;f<c.length;f++){const p=c[f]||"",b=s[f-1];d[b.name]=p&&b.repeatable?p.split("/"):p}return d}function a(u){let c="",d=!1;for(const f of e){(!d||!c.endsWith("/"))&&(c+="/"),d=!1;for(const p of f)if(p.type===Cn.Static)c+=p.value;else if(p.type===Cn.Param){const{value:b,repeatable:g,optional:m}=p,h=b in u?u[b]:"";if(yt(h)&&!g)throw new Error(`Provided param "${b}" is an array but it is not repeatable (* or + modifiers)`);const v=yt(h)?h.join("/"):h;if(!v)if(m)f.length<2&&(c.endsWith("/")?c=c.slice(0,-1):d=!0);else throw new Error(`Missing required param "${b}"`);c+=v}}return c||"/"}return{re:i,score:o,keys:s,parse:l,stringify:a}}function Rp(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===Ye.Static+Ye.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Ye.Static+Ye.Segment?1:-1:0}function cc(e,t){let n=0;const o=e.score,r=t.score;for(;n<o.length&&n<r.length;){const s=Rp(o[n],r[n]);if(s)return s;n++}if(Math.abs(r.length-o.length)===1){if(sl(o))return 1;if(sl(r))return-1}return r.length-o.length}function sl(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Ip={strict:!1,end:!0,sensitive:!1};function Mp(e,t,n){const o=Tp(Op(e.path),n),r=ve(o,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Dp(e,t){const n=[],o=new Map;t=Yi(Ip,t);function r(d){return o.get(d)}function s(d,f,p){const b=!p,g=ll(d);g.aliasOf=p&&p.record;const m=Yi(t,d),h=[g];if("alias"in d){const A=typeof d.alias=="string"?[d.alias]:d.alias;for(const D of A)h.push(ll(ve({},g,{components:p?p.record.components:g.components,path:D,aliasOf:p?p.record:g})))}let v,w;for(const A of h){const{path:D}=A;if(f&&D[0]!=="/"){const B=f.record.path,M=B[B.length-1]==="/"?"":"/";A.path=f.record.path+(D&&M+D)}if(v=Mp(A,f,m),p?p.alias.push(v):(w=w||v,w!==v&&w.alias.push(v),b&&d.name&&!al(v)&&i(d.name)),uc(v)&&a(v),g.children){const B=g.children;for(let M=0;M<B.length;M++)s(B[M],v,p&&p.children[M])}p=p||v}return w?()=>{i(w)}:xo}function i(d){if(ic(d)){const f=o.get(d);f&&(o.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&o.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function a(d){const f=Lp(d,n);n.splice(f,0,d),d.record.name&&!al(d)&&o.set(d.record.name,d)}function u(d,f){let p,b={},g,m;if("name"in d&&d.name){if(p=o.get(d.name),!p)throw Jn(Te.MATCHER_NOT_FOUND,{location:d});m=p.record.name,b=ve(il(f.params,p.keys.filter(w=>!w.optional).concat(p.parent?p.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),d.params&&il(d.params,p.keys.map(w=>w.name))),g=p.stringify(b)}else if(d.path!=null)g=d.path,p=n.find(w=>w.re.test(g)),p&&(b=p.parse(g),m=p.record.name);else{if(p=f.name?o.get(f.name):n.find(w=>w.re.test(f.path)),!p)throw Jn(Te.MATCHER_NOT_FOUND,{location:d,currentLocation:f});m=p.record.name,b=ve({},f.params,d.params),g=p.stringify(b)}const h=[];let v=p;for(;v;)h.unshift(v.record),v=v.parent;return{name:m,path:g,params:b,matched:h,meta:$p(h)}}e.forEach(d=>s(d));function c(){n.length=0,o.clear()}return{addRoute:s,resolve:u,removeRoute:i,clearRoutes:c,getRoutes:l,getRecordMatcher:r}}function il(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function ll(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Np(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Np(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function al(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $p(e){return e.reduce((t,n)=>ve(t,n.meta),{})}function Lp(e,t){let n=0,o=t.length;for(;n!==o;){const s=n+o>>1;cc(e,t[s])<0?o=s:n=s+1}const r=Bp(e);return r&&(o=t.lastIndexOf(r,o-1)),o}function Bp(e){let t=e;for(;t=t.parent;)if(uc(t)&&cc(e,t)===0)return t}function uc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function cl(e){const t=ft(Nr),n=ft(ei),o=F(()=>{const a=_(e.to);return t.resolve(a)}),r=F(()=>{const{matched:a}=o.value,{length:u}=a,c=a[u-1],d=n.matched;if(!c||!d.length)return-1;const f=d.findIndex(Gn.bind(null,c));if(f>-1)return f;const p=ul(a[u-2]);return u>1&&ul(c)===p&&d[d.length-1].path!==p?d.findIndex(Gn.bind(null,a[u-2])):f}),s=F(()=>r.value>-1&&jp(n.params,o.value.params)),i=F(()=>r.value>-1&&r.value===n.matched.length-1&&sc(n.params,o.value.params));function l(a={}){if(zp(a)){const u=t[_(e.replace)?"replace":"push"](_(e.to)).catch(xo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:o,href:F(()=>o.value.href),isActive:s,isExactActive:i,navigate:l}}function Fp(e){return e.length===1?e[0]:e}const qp=K({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:cl,setup(e,{slots:t}){const n=Jt(cl(e)),{options:o}=ft(Nr),r=F(()=>({[dl(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[dl(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&Fp(t.default(n));return e.custom?s:Wt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},s)}}}),Vp=qp;function zp(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function jp(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!yt(r)||r.length!==o.length||o.some((s,i)=>s.valueOf()!==r[i].valueOf()))return!1}return!0}function ul(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const dl=(e,t,n)=>e??t??n,Up=K({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=ft(Ps),r=F(()=>e.route||o.value),s=ft(nl,0),i=F(()=>{let u=_(s);const{matched:c}=r.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),l=F(()=>r.value.matched[i.value]);mo(nl,F(()=>i.value+1)),mo(bp,l),mo(Ps,r);const a=U();return Le(()=>[a.value,l.value,e.name],([u,c,d],[f,p,b])=>{c&&(c.instances[d]=u,p&&p!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),u&&c&&(!p||!Gn(c,p)||!f)&&(c.enterCallbacks[d]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=r.value,c=e.name,d=l.value,f=d&&d.components[c];if(!f)return fl(n.default,{Component:f,route:u});const p=d.props[c],b=p?p===!0?u.params:typeof p=="function"?p(u):p:null,m=Wt(f,ve({},b,t,{onVnodeUnmounted:h=>{h.component.isUnmounted&&(d.instances[c]=null)},ref:a}));return fl(n.default,{Component:m,route:u})||m}}});function fl(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Hp=Up;function Wp(e){const t=Dp(e.routes,e),n=e.parseQuery||vp,o=e.stringifyQuery||tl,r=e.history,s=so(),i=so(),l=so(),a=No(nn);let u=nn;$n&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=es.bind(null,P=>""+P),d=es.bind(null,ep),f=es.bind(null,To);function p(P,W){let V,X;return ic(P)?(V=t.getRecordMatcher(P),X=W):X=P,t.addRoute(X,V)}function b(P){const W=t.getRecordMatcher(P);W&&t.removeRoute(W)}function g(){return t.getRoutes().map(P=>P.record)}function m(P){return!!t.getRecordMatcher(P)}function h(P,W){if(W=ve({},W||a.value),typeof P=="string"){const C=ts(n,P,W.path),O=t.resolve({path:C.path},W),k=r.createHref(C.fullPath);return ve(C,O,{params:f(O.params),hash:To(C.hash),redirectedFrom:void 0,href:k})}let V;if(P.path!=null)V=ve({},P,{path:ts(n,P.path,W.path).path});else{const C=ve({},P.params);for(const O in C)C[O]==null&&delete C[O];V=ve({},P,{params:d(C)}),W.params=d(W.params)}const X=t.resolve(V,W),fe=P.hash||"";X.params=c(f(X.params));const y=op(o,ve({},P,{hash:Yf(fe),path:X.path})),x=r.createHref(y);return ve({fullPath:y,hash:fe,query:o===tl?yp(P.query):P.query||{}},X,{redirectedFrom:void 0,href:x})}function v(P){return typeof P=="string"?ts(n,P,a.value.path):ve({},P)}function w(P,W){if(u!==P)return Jn(Te.NAVIGATION_CANCELLED,{from:W,to:P})}function A(P){return M(P)}function D(P){return A(ve(v(P),{replace:!0}))}function B(P,W){const V=P.matched[P.matched.length-1];if(V&&V.redirect){const{redirect:X}=V;let fe=typeof X=="function"?X(P,W):X;return typeof fe=="string"&&(fe=fe.includes("?")||fe.includes("#")?fe=v(fe):{path:fe},fe.params={}),ve({query:P.query,hash:P.hash,params:fe.path!=null?{}:P.params},fe)}}function M(P,W){const V=u=h(P),X=a.value,fe=P.state,y=P.force,x=P.replace===!0,C=B(V,X);if(C)return M(ve(v(C),{state:typeof C=="object"?ve({},fe,C.state):fe,force:y,replace:x}),W||V);const O=V;O.redirectedFrom=W;let k;return!y&&rp(o,X,V)&&(k=Jn(Te.NAVIGATION_DUPLICATED,{to:O,from:X}),Me(X,X,!0,!1)),(k?Promise.resolve(k):ue(O,X)).catch(E=>Ft(E)?Ft(E,Te.NAVIGATION_GUARD_REDIRECT)?E:ot(E):Q(E,O,X)).then(E=>{if(E){if(Ft(E,Te.NAVIGATION_GUARD_REDIRECT))return M(ve({replace:x},v(E.to),{state:typeof E.to=="object"?ve({},fe,E.to.state):fe,force:y}),W||O)}else E=H(O,X,!0,x,fe);return _e(O,X,E),E})}function ee(P,W){const V=w(P,W);return V?Promise.reject(V):Promise.resolve()}function oe(P){const W=In.values().next().value;return W&&typeof W.runWithContext=="function"?W.runWithContext(P):P()}function ue(P,W){let V;const[X,fe,y]=xp(P,W);V=os(X.reverse(),"beforeRouteLeave",P,W);for(const C of X)C.leaveGuards.forEach(O=>{V.push(cn(O,P,W))});const x=ee.bind(null,P,W);return V.push(x),dt(V).then(()=>{V=[];for(const C of s.list())V.push(cn(C,P,W));return V.push(x),dt(V)}).then(()=>{V=os(fe,"beforeRouteUpdate",P,W);for(const C of fe)C.updateGuards.forEach(O=>{V.push(cn(O,P,W))});return V.push(x),dt(V)}).then(()=>{V=[];for(const C of y)if(C.beforeEnter)if(yt(C.beforeEnter))for(const O of C.beforeEnter)V.push(cn(O,P,W));else V.push(cn(C.beforeEnter,P,W));return V.push(x),dt(V)}).then(()=>(P.matched.forEach(C=>C.enterCallbacks={}),V=os(y,"beforeRouteEnter",P,W,oe),V.push(x),dt(V))).then(()=>{V=[];for(const C of i.list())V.push(cn(C,P,W));return V.push(x),dt(V)}).catch(C=>Ft(C,Te.NAVIGATION_CANCELLED)?C:Promise.reject(C))}function _e(P,W,V){l.list().forEach(X=>oe(()=>X(P,W,V)))}function H(P,W,V,X,fe){const y=w(P,W);if(y)return y;const x=W===nn,C=$n?history.state:{};V&&(X||x?r.replace(P.fullPath,ve({scroll:x&&C&&C.scroll},fe)):r.push(P.fullPath,fe)),a.value=P,Me(P,W,V,x),ot()}let ge;function de(){ge||(ge=r.listen((P,W,V)=>{if(!mn.listening)return;const X=h(P),fe=B(X,mn.currentRoute.value);if(fe){M(ve(fe,{replace:!0,force:!0}),X).catch(xo);return}u=X;const y=a.value;$n&&fp(el(y.fullPath,V.delta),Dr()),ue(X,y).catch(x=>Ft(x,Te.NAVIGATION_ABORTED|Te.NAVIGATION_CANCELLED)?x:Ft(x,Te.NAVIGATION_GUARD_REDIRECT)?(M(ve(v(x.to),{force:!0}),X).then(C=>{Ft(C,Te.NAVIGATION_ABORTED|Te.NAVIGATION_DUPLICATED)&&!V.delta&&V.type===Es.pop&&r.go(-1,!1)}).catch(xo),Promise.reject()):(V.delta&&r.go(-V.delta,!1),Q(x,X,y))).then(x=>{x=x||H(X,y,!1),x&&(V.delta&&!Ft(x,Te.NAVIGATION_CANCELLED)?r.go(-V.delta,!1):V.type===Es.pop&&Ft(x,Te.NAVIGATION_ABORTED|Te.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),_e(X,y,x)}).catch(xo)}))}let ke=so(),ce=so(),re;function Q(P,W,V){ot(P);const X=ce.list();return X.length?X.forEach(fe=>fe(P,W,V)):console.error(P),Promise.reject(P)}function Pe(){return re&&a.value!==nn?Promise.resolve():new Promise((P,W)=>{ke.add([P,W])})}function ot(P){return re||(re=!P,de(),ke.list().forEach(([W,V])=>P?V(P):W()),ke.reset()),P}function Me(P,W,V,X){const{scrollBehavior:fe}=e;if(!$n||!fe)return Promise.resolve();const y=!V&&pp(el(P.fullPath,0))||(X||!V)&&history.state&&history.state.scroll||null;return vt().then(()=>fe(P,W,y)).then(x=>x&&dp(x)).catch(x=>Q(x,P,W))}const tt=P=>r.go(P);let Rn;const In=new Set,mn={currentRoute:a,listening:!0,addRoute:p,removeRoute:b,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:g,resolve:h,options:e,push:A,replace:D,go:tt,back:()=>tt(-1),forward:()=>tt(1),beforeEach:s.add,beforeResolve:i.add,afterEach:l.add,onError:ce.add,isReady:Pe,install(P){P.component("RouterLink",Vp),P.component("RouterView",Hp),P.config.globalProperties.$router=mn,Object.defineProperty(P.config.globalProperties,"$route",{enumerable:!0,get:()=>_(a)}),$n&&!Rn&&a.value===nn&&(Rn=!0,A(r.location).catch(X=>{}));const W={};for(const X in nn)Object.defineProperty(W,X,{get:()=>a.value[X],enumerable:!0});P.provide(Nr,mn),P.provide(ei,ua(W)),P.provide(Ps,a);const V=P.unmount;In.add(P),P.unmount=function(){In.delete(P),In.size<1&&(u=nn,ge&&ge(),ge=null,a.value=nn,Rn=!1,re=!1),V()}}};function dt(P){return P.reduce((W,V)=>W.then(()=>oe(V)),Promise.resolve())}return mn}function Kp(){return ft(Nr)}function Gp(e){return ft(ei)}/**
|
|
26
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
27
|
-
*
|
|
28
|
-
* This source code is licensed under the ISC license.
|
|
29
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/const Jp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
31
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the ISC license.
|
|
34
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/var Go={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"};/**
|
|
36
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
37
|
-
*
|
|
38
|
-
* This source code is licensed under the ISC license.
|
|
39
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/const Xp=({size:e,strokeWidth:t=2,absoluteStrokeWidth:n,color:o,iconNode:r,name:s,class:i,...l},{slots:a})=>Wt("svg",{...Go,width:e||Go.width,height:e||Go.height,stroke:o||Go.stroke,"stroke-width":n?Number(t)*24/Number(e):t,class:["lucide",`lucide-${Jp(s??"icon")}`],...l},[...r.map(u=>Wt(...u)),...a.default?[a.default()]:[]]);/**
|
|
41
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
42
|
-
*
|
|
43
|
-
* This source code is licensed under the ISC license.
|
|
44
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/const qe=(e,t)=>(n,{slots:o})=>Wt(Xp,{...n,iconNode:t,name:e},o);/**
|
|
46
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
47
|
-
*
|
|
48
|
-
* This source code is licensed under the ISC license.
|
|
49
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/const Yp=qe("ArrowUpIcon",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
|
|
51
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
52
|
-
*
|
|
53
|
-
* This source code is licensed under the ISC license.
|
|
54
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/const dc=qe("CheckIcon",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
56
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
57
|
-
*
|
|
58
|
-
* This source code is licensed under the ISC license.
|
|
59
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/const fc=qe("ChevronDownIcon",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
61
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const Qp=qe("ChevronRightIcon",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
66
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the ISC license.
|
|
69
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/const Zp=qe("CircleCheckIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
71
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
72
|
-
*
|
|
73
|
-
* This source code is licensed under the ISC license.
|
|
74
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const eh=qe("CircleXIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
76
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the ISC license.
|
|
79
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const th=qe("EllipsisIcon",[["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"}]]);/**
|
|
81
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the ISC license.
|
|
84
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const pc=qe("ExternalLinkIcon",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
86
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the ISC license.
|
|
89
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const dr=qe("LoaderCircleIcon",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
91
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the ISC license.
|
|
94
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const pl=qe("LockIcon",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
|
96
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
97
|
-
*
|
|
98
|
-
* This source code is licensed under the ISC license.
|
|
99
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const hc=qe("MessageSquarePlusIcon",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M9 10h6",key:"9gxzsh"}]]);/**
|
|
101
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const nh=qe("PencilIcon",[["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"}]]);/**
|
|
106
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the ISC license.
|
|
109
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const oh=qe("Settings2Icon",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
|
111
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the ISC license.
|
|
114
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const hl=qe("SparklesIcon",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
|
116
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the ISC license.
|
|
119
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const rh=qe("SquareIcon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
121
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the ISC license.
|
|
124
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const gc=qe("Trash2Icon",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
126
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the ISC license.
|
|
129
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const sh=qe("UserIcon",[["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"}]]);/**
|
|
131
|
-
* @license lucide-vue-next v0.469.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const ih=qe("XIcon",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Zn(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,o=Symbol(n);return[i=>{const l=ft(o,i);if(l||l===null)return l;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},i=>(mo(o,i),i)]}function jn(){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 mc(e,t,n){const o=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),o.dispatchEvent(r)}function lh(e){return e==null}function ah(e,t){var n;const o=No();return Rt(()=>{o.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!==null&&n!==void 0?n:"sync"}),nr(o)}function Fo(e,t){return Vs()?(Kl(e,t),!0):!1}function ch(){const e=new Set,t=s=>{e.delete(s)};return{on:s=>{e.add(s);const i=()=>t(s);return Fo(i),{off:i}},off:t,trigger:(...s)=>Promise.all(Array.from(e).map(i=>i(...s))),clear:()=>{e.clear()}}}function uh(e){let t=!1,n;const o=Wl(!0);return((...r)=>(t||(n=o.run(()=>e(...r)),t=!0),n))}const $t=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const dh=e=>typeof e<"u",fh=Object.prototype.toString,ph=e=>fh.call(e)==="[object Object]",gl=hh();function hh(){var e,t,n;return $t&&!!(!((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 rs(e){return Array.isArray(e)?e:[e]}function gh(e){return Nt()}function mh(e){if(!$t)return e;let t=0,n,o;const r=()=>{t-=1,o&&t<=0&&(o.stop(),n=void 0,o=void 0)};return((...s)=>(t+=1,o||(o=Wl(!0),n=o.run(()=>e(...s))),Fo(r),n))}function vh(e){return Jt(Re(e)?new Proxy({},{get(t,n,o){return _(Reflect.get(e.value,n,o))},set(t,n,o){return Re(e.value[n])&&!Re(o)?e.value[n].value=o:e.value[n]=o,!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 yh(e){return vh(F(e))}function bh(e,...t){const n=t.flat(),o=n[0];return yh(()=>Object.fromEntries(typeof o=="function"?Object.entries(Ao(e)).filter(([r,s])=>!o(Ze(s),r)):Object.entries(Ao(e)).filter(r=>!n.includes(r[0]))))}function xh(e,t=1e4){return pa((n,o)=>{let r=Ze(e),s;const i=()=>setTimeout(()=>{r=Ze(e),o()},Ze(t));return Fo(()=>{clearTimeout(s)}),{get(){return n(),r},set(l){r=l,o(),clearTimeout(s),s=i()}}})}function _h(e,t){gh()&&Oa(e,t)}function vc(e,t,n={}){const{immediate:o=!0,immediateCallback:r=!1}=n,s=No(!1);let i;function l(){i&&(clearTimeout(i),i=void 0)}function a(){s.value=!1,l()}function u(...c){r&&e(),l(),s.value=!0,i=setTimeout(()=>{s.value=!1,i=void 0,e(...c)},Ze(t))}return o&&(s.value=!0,$t&&u()),Fo(a),{isPending:xn(s),start:u,stop:a}}function wh(e,t,n){return Le(e,t,{...n,immediate:!0})}const ti=$t?window:void 0;function qo(e){var t;const n=Ze(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function fr(...e){const t=(o,r,s,i)=>(o.addEventListener(r,s,i),()=>o.removeEventListener(r,s,i)),n=F(()=>{const o=rs(Ze(e[0])).filter(r=>r!=null);return o.every(r=>typeof r!="string")?o:void 0});return wh(()=>{var o,r;return[(o=(r=n.value)===null||r===void 0?void 0:r.map(s=>qo(s)))!==null&&o!==void 0?o:[ti].filter(s=>s!=null),rs(Ze(n.value?e[1]:e[0])),rs(_(n.value?e[2]:e[1])),Ze(n.value?e[3]:e[2])]},([o,r,s,i],l,a)=>{if(!(o!=null&&o.length)||!(r!=null&&r.length)||!(s!=null&&s.length))return;const u=ph(i)?{...i}:i,c=o.flatMap(d=>r.flatMap(f=>s.map(p=>t(d,f,p,u))));a(()=>{c.forEach(d=>d())})},{flush:"post"})}function Ch(){const e=No(!1),t=Nt();return t&&Dt(()=>{e.value=!0},t),e}function Ah(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Sh(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=ti,eventName:s="keydown",passive:i=!1,dedupe:l=!1}=o,a=Ah(t);return fr(r,s,c=>{c.repeat&&Ze(l)||a(c)&&n(c)},i)}function Eh(e){return JSON.parse(JSON.stringify(e))}function yc(e,t,n,o={}){var r,s;const{clone:i=!1,passive:l=!1,eventName:a,deep:u=!1,defaultValue:c,shouldEmit:d}=o,f=Nt(),p=n||(f==null?void 0:f.emit)||(f==null||(r=f.$emit)===null||r===void 0?void 0:r.bind(f))||(f==null||(s=f.proxy)===null||s===void 0||(s=s.$emit)===null||s===void 0?void 0:s.bind(f==null?void 0:f.proxy));let b=a;b=b||`update:${t.toString()}`;const g=v=>i?typeof i=="function"?i(v):Eh(v):v,m=()=>dh(e[t])?g(e[t]):c,h=v=>{d?d(v)&&p(b,v):p(b,v)};if(l){const v=U(m());let w=!1;return Le(()=>e[t],A=>{w||(w=!0,v.value=g(A),vt(()=>w=!1))}),Le(v,A=>{!w&&(A!==e[t]||u)&&h(A)},{deep:u}),v}else return F({get(){return m()},set(v){h(v)}})}function ni(e){return e?e.flatMap(t=>t.type===Se?ni(t.children):[t]):[]}const[bc]=Zn("ConfigProvider");function ss(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 ks(e,t,n=".",o){if(!ss(t))return ks(e,{},n,o);const r={...t};for(const s of Object.keys(e)){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(o&&o(r,s,i,n)||(Array.isArray(i)&&Array.isArray(r[s])?r[s]=[...i,...r[s]]:ss(i)&&ss(r[s])?r[s]=ks(i,r[s],(n?`${n}.`:"")+s.toString(),o):r[s]=i))}return r}function Oh(e){return(...t)=>t.reduce((n,o)=>ks(n,o,"",e),{})}const xc=Oh(),Ph=mh(()=>{const e=U(new Map),t=U(),n=F(()=>{for(const i of e.value.values())if(i)return!0;return!1}),o=bc({scrollBody:U(!0)});let r=null;const s=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",gl&&(r==null||r()),t.value=void 0};return Le(n,(i,l)=>{var d;if(!$t)return;if(!i){l&&s();return}t.value===void 0&&(t.value=document.body.style.overflow);const a=window.innerWidth-document.documentElement.clientWidth,u={padding:a,margin:0},c=(d=o.scrollBody)!=null&&d.value?typeof o.scrollBody.value=="object"?xc({padding:o.scrollBody.value.padding===!0?a:o.scrollBody.value.padding,margin:o.scrollBody.value.margin===!0?a:o.scrollBody.value.margin},u):u:{padding:0,margin:0};a>0&&(document.body.style.paddingRight=typeof c.padding=="number"?`${c.padding}px`:String(c.padding),document.body.style.marginRight=typeof c.margin=="number"?`${c.margin}px`:String(c.margin),document.documentElement.style.setProperty("--scrollbar-width",`${a}px`),document.body.style.overflow="hidden"),gl&&(r=fr(document,"touchmove",f=>Th(f),{passive:!1})),vt(()=>{n.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function kh(e){const t=Math.random().toString(36).substring(2,7),n=Ph();n.value.set(t,e);const o=F({get:()=>n.value.get(t)??!1,set:r=>n.value.set(t,r)});return _h(()=>{n.value.delete(t)}),o}function _c(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:_c(n)}}function Th(e){const t=e||window.event,n=t.target;return n instanceof Element&&_c(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function Rh(e){const t=Nt(),n=t==null?void 0:t.type.emits,o={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),n==null||n.forEach(r=>{o[po(Be(r))]=(...s)=>e(r,...s)}),o}let is=0;function Ih(){Rt(e=>{if(!$t)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??ml()),document.body.insertAdjacentElement("beforeend",t[1]??ml()),is++,e(()=>{is===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),is--})})}function ml(){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 et(){const e=Nt(),t=U(),n=F(()=>o());Ea(()=>{n.value!==o()&&Fu(t)});function o(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:qo(t)}const r=Object.assign({},e.exposed),s={};for(const l in e.props)Object.defineProperty(s,l,{enumerable:!0,configurable:!0,get:()=>e.props[l]});if(Object.keys(r).length>0)for(const l in r)Object.defineProperty(s,l,{enumerable:!0,configurable:!0,get:()=>r[l]});Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=s;function i(l){if(t.value=l,!!l&&(Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>l instanceof Element?l:l.$el}),!(l instanceof Element)&&!Object.hasOwn(l,"$el"))){const a=l.$.exposed,u=Object.assign({},s);for(const c in a)Object.defineProperty(u,c,{enumerable:!0,configurable:!0,get:()=>a[c]});e.exposed=u}}return{forwardRef:i,currentRef:t,currentElement:n}}function $r(e){const t=Nt(),n=Object.keys((t==null?void 0:t.type.props)??{}).reduce((r,s)=>{const i=(t==null?void 0:t.type.props[s]).default;return i!==void 0&&(r[s]=i),r},{}),o=Uu(e);return F(()=>{const r={},s=(t==null?void 0:t.vnode.props)??{};return Object.keys(s).forEach(i=>{r[Be(i)]=s[i]}),Object.keys({...n,...r}).reduce((i,l)=>(o.value[l]!==void 0&&(i[l]=o.value[l]),i),{})})}function kn(e,t){const n=$r(e),o=t?Rh(t):{};return F(()=>({...n.value,...o}))}function Mh(e,t){const n=xh(!1,300);Fo(()=>{n.value=!1});const o=U(null),r=ch();function s(){o.value=null,n.value=!1}function i(l,a){if(!a)return;const u=l.currentTarget,c={x:l.clientX,y:l.clientY},d=Dh(c,u.getBoundingClientRect()),f=Nh(c,d,1),p=$h(a.getBoundingClientRect()),b=Bh([...f,...p]);o.value=b,n.value=!0}return Rt(l=>{if(e.value&&t.value){const a=c=>i(c,t.value),u=c=>i(c,e.value);e.value.addEventListener("pointerleave",a),t.value.addEventListener("pointerleave",u),l(()=>{var c,d;(c=e.value)==null||c.removeEventListener("pointerleave",a),(d=t.value)==null||d.removeEventListener("pointerleave",u)})}}),Rt(l=>{var a;if(o.value){const u=c=>{var m,h;if(!o.value||!(c.target instanceof Element))return;const d=c.target,f={x:c.clientX,y:c.clientY},p=((m=e.value)==null?void 0:m.contains(d))||((h=t.value)==null?void 0:h.contains(d)),b=!Lh(f,o.value),g=!!d.closest("[data-grace-area-trigger]");p?s():(b||g)&&(s(),r.trigger())};(a=e.value)==null||a.ownerDocument.addEventListener("pointermove",u),l(()=>{var c;return(c=e.value)==null?void 0:c.ownerDocument.removeEventListener("pointermove",u)})}}),{isPointerInTransit:n,onPointerExit:r.on}}function Dh(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,o,r,s)){case s:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Nh(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function $h(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function Lh(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const l=t[s].x,a=t[s].y,u=t[i].x,c=t[i].y;a>o!=c>o&&n<(u-l)*(o-a)/(c-a)+l&&(r=!r)}return r}function Bh(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),Fh(t)}function Fh(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const s=t.at(-1),i=t[t.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const s=n.at(-1),i=n[n.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var qh=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dn=new WeakMap,Jo=new WeakMap,Xo={},ls=0,wc=function(e){return e&&(e.host||wc(e.parentNode))},Vh=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=wc(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},zh=function(e,t,n,o){var r=Vh(t,Array.isArray(e)?e:[e]);Xo[n]||(Xo[n]=new WeakMap);var s=Xo[n],i=[],l=new Set,a=new Set(r),u=function(d){!d||l.has(d)||(l.add(d),u(d.parentNode))};r.forEach(u);var c=function(d){!d||a.has(d)||Array.prototype.forEach.call(d.children,function(f){if(l.has(f))c(f);else try{var p=f.getAttribute(o),b=p!==null&&p!=="false",g=(Dn.get(f)||0)+1,m=(s.get(f)||0)+1;Dn.set(f,g),s.set(f,m),i.push(f),g===1&&b&&Jo.set(f,!0),m===1&&f.setAttribute(n,"true"),b||f.setAttribute(o,"true")}catch(h){console.error("aria-hidden: cannot operate on ",f,h)}})};return c(t),l.clear(),ls++,function(){i.forEach(function(d){var f=Dn.get(d)-1,p=s.get(d)-1;Dn.set(d,f),s.set(d,p),f||(Jo.has(d)||d.removeAttribute(o),Jo.delete(d)),p||d.removeAttribute(n)}),ls--,ls||(Dn=new WeakMap,Dn=new WeakMap,Jo=new WeakMap,Xo={})}},jh=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=qh(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),zh(o,r,n,"aria-hidden")):function(){return null}};function Uh(e){let t;Le(()=>qo(e),n=>{let o=!1;try{o=!!(n!=null&&n.closest("[popover]:not(:popover-open)"))}catch{}n&&!o?t=jh(n):t&&t()}),Tr(()=>{t&&t()})}function oi(e,t="reka"){let n;const o=bc({useId:void 0});return o.useId?n=o.useId():n=Gr==null?void 0:Gr(),t?`${t}-${n}`:n}function Hh(e){const t=U(),n=F(()=>{var r;return((r=t.value)==null?void 0:r.width)??0}),o=F(()=>{var r;return((r=t.value)==null?void 0:r.height)??0});return Dt(()=>{const r=qo(e);if(r){t.value={width:r.offsetWidth,height:r.offsetHeight};const s=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let a,u;if("borderBoxSize"in l){const c=l.borderBoxSize,d=Array.isArray(c)?c[0]:c;a=d.inlineSize,u=d.blockSize}else a=r.offsetWidth,u=r.offsetHeight;t.value={width:a,height:u}});return s.observe(r,{box:"border-box"}),()=>s.unobserve(r)}else t.value=void 0}),{width:n,height:o}}function Wh(e,t){const n=U(e);function o(s){return t[n.value][s]??n.value}return{state:n,dispatch:s=>{n.value=o(s)}}}function Kh(e,t){var m;const n=U({}),o=U("none"),r=U(e),s=e.value?"mounted":"unmounted";let i;const l=((m=t.value)==null?void 0:m.ownerDocument.defaultView)??ti,{state:a,dispatch:u}=Wh(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),c=h=>{var v;if($t){const w=new CustomEvent(h,{bubbles:!1,cancelable:!1});(v=t.value)==null||v.dispatchEvent(w)}};Le(e,async(h,v)=>{var A;const w=v!==h;if(await vt(),w){const D=o.value,B=Yo(t.value);h?(u("MOUNT"),c("enter"),B==="none"&&c("after-enter")):B==="none"||B==="undefined"||((A=n.value)==null?void 0:A.display)==="none"?(u("UNMOUNT"),c("leave"),c("after-leave")):v&&D!==B?(u("ANIMATION_OUT"),c("leave")):(u("UNMOUNT"),c("after-leave"))}},{immediate:!0});const d=h=>{const v=Yo(t.value),w=v.includes(CSS.escape(h.animationName)),A=a.value==="mounted"?"enter":"leave";if(h.target===t.value&&w&&(c(`after-${A}`),u("ANIMATION_END"),!r.value)){const D=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",i=l==null?void 0:l.setTimeout(()=>{var B;((B=t.value)==null?void 0:B.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=D)})}h.target===t.value&&v==="none"&&u("ANIMATION_END")},f=h=>{h.target===t.value&&(o.value=Yo(t.value))},p=Le(t,(h,v)=>{h?(n.value=getComputedStyle(h),h.addEventListener("animationstart",f),h.addEventListener("animationcancel",d),h.addEventListener("animationend",d)):(u("ANIMATION_END"),i!==void 0&&(l==null||l.clearTimeout(i)),v==null||v.removeEventListener("animationstart",f),v==null||v.removeEventListener("animationcancel",d),v==null||v.removeEventListener("animationend",d))},{immediate:!0}),b=Le(a,()=>{const h=Yo(t.value);o.value=a.value==="mounted"?h:"none"});return Tr(()=>{p(),b()}),{isPresent:F(()=>["mounted","unmountSuspended"].includes(a.value))}}function Yo(e){return e&&getComputedStyle(e).animationName||"none"}var Cc=K({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var u;const{present:o,forceMount:r}=Ao(e),s=U(),{isPresent:i}=Kh(o,s);n({present:i});let l=t.default({present:i.value});l=ni(l||[]);const a=Nt();if(l&&(l==null?void 0:l.length)>1){const c=(u=a==null?void 0:a.parent)!=null&&u.type.name?`<${a.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${c}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(d=>` - ${d}`).join(`
|
|
136
|
-
`)].join(`
|
|
137
|
-
`))}return()=>r.value||o.value||i.value?Wt(t.default({present:i.value})[0],{ref:c=>{const d=qo(c);return typeof(d==null?void 0:d.hasAttribute)>"u"||(d!=null&&d.hasAttribute("data-reka-popper-content-wrapper")?s.value=d.firstElementChild:s.value=d),d}}):null}});const Gh=K({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var a;if(!n.default)return null;const o=ni(n.default()),r=o.findIndex(u=>u.type!==It);if(r===-1)return o;const s=o[r];(a=s.props)==null||delete a.ref;const i=s.props?Ue(t,s.props):t,l=En({...s,props:{}},i);return o.length===1?l:(o[r]=l,o)}}}),Jh=["area","img","input"],Mt=K({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const o=e.asChild?"template":e.as;return typeof o=="string"&&Jh.includes(o)?()=>Wt(o,t):o!=="template"?()=>Wt(e.as,t,{default:n.default}):()=>Wt(Gh,t,{default:n.default})}}),Xh="dismissableLayer.pointerDownOutside",Yh="dismissableLayer.focusOutside";function Ac(e,t){if(!(t instanceof Element))return!1;const n=t.closest("[data-dismissable-layer]"),o=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),r=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(o===n||r.indexOf(o)<r.indexOf(n)))}function Qh(e,t,n=!0){var i;const o=((i=t==null?void 0:t.value)==null?void 0:i.ownerDocument)??(globalThis==null?void 0:globalThis.document),r=U(!1),s=U(()=>{});return Rt(l=>{if(!$t||!Ze(n))return;const a=async c=>{const d=c.target;if(!(!(t!=null&&t.value)||!d)){if(Ac(t.value,d)){r.value=!1;return}if(c.target&&!r.value){let b=function(){mc(Xh,e,p)};var f=b;const p={originalEvent:c};c.pointerType==="touch"?(o.removeEventListener("click",s.value),s.value=b,o.addEventListener("click",s.value,{once:!0})):b()}else o.removeEventListener("click",s.value);r.value=!1}},u=window.setTimeout(()=>{o.addEventListener("pointerdown",a)},0);l(()=>{window.clearTimeout(u),o.removeEventListener("pointerdown",a),o.removeEventListener("click",s.value)})}),{onPointerDownCapture:()=>{Ze(n)&&(r.value=!0)}}}function Zh(e,t,n=!0){var s;const o=((s=t==null?void 0:t.value)==null?void 0:s.ownerDocument)??(globalThis==null?void 0:globalThis.document),r=U(!1);return Rt(i=>{if(!$t||!Ze(n))return;const l=async a=>{if(!(t!=null&&t.value))return;await vt(),await vt();const u=a.target;!t.value||!u||Ac(t.value,u)||a.target&&!r.value&&mc(Yh,e,{originalEvent:a})};o.addEventListener("focusin",l),i(()=>o.removeEventListener("focusin",l))}),{onFocusCapture:()=>{Ze(n)&&(r.value=!0)},onBlurCapture:()=>{Ze(n)&&(r.value=!1)}}}const st=Jt({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var eg=K({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,o=t,{forwardRef:r,currentElement:s}=et(),i=F(()=>{var p;return((p=s.value)==null?void 0:p.ownerDocument)??globalThis.document}),l=F(()=>st.layersRoot),a=F(()=>s.value?Array.from(l.value).indexOf(s.value):-1),u=F(()=>st.layersWithOutsidePointerEventsDisabled.size>0),c=F(()=>{const p=Array.from(l.value),[b]=[...st.layersWithOutsidePointerEventsDisabled].slice(-1),g=p.indexOf(b);return a.value>=g}),d=Qh(async p=>{const b=[...st.branches].some(g=>g==null?void 0:g.contains(p.target));!c.value||b||(o("pointerDownOutside",p),o("interactOutside",p),await vt(),p.defaultPrevented||o("dismiss"))},s),f=Zh(p=>{[...st.branches].some(g=>g==null?void 0:g.contains(p.target))||(o("focusOutside",p),o("interactOutside",p),p.defaultPrevented||o("dismiss"))},s);return Sh("Escape",p=>{a.value===l.value.size-1&&(o("escapeKeyDown",p),p.defaultPrevented||o("dismiss"))}),Le([s,()=>n.disableOutsidePointerEvents],([p,b],g,m)=>{p&&(b&&(st.layersWithOutsidePointerEventsDisabled.size===0&&(st.originalBodyPointerEvents=i.value.body.style.pointerEvents,i.value.body.style.pointerEvents="none"),st.layersWithOutsidePointerEventsDisabled.add(p),m(()=>{st.layersWithOutsidePointerEventsDisabled.delete(p),st.layersWithOutsidePointerEventsDisabled.size===0&&!lh(st.originalBodyPointerEvents)&&(i.value.body.style.pointerEvents=st.originalBodyPointerEvents)})),l.value.add(p))},{immediate:!0}),Rt(p=>{p(()=>{s.value&&(l.value.delete(s.value),st.layersWithOutsidePointerEventsDisabled.delete(s.value))})}),(p,b)=>(S(),G(_(Mt),{ref:_(r),"as-child":p.asChild,as:p.as,"data-dismissable-layer":"",style:Pn({pointerEvents:u.value?c.value?"auto":"none":void 0}),onFocusCapture:_(f).onFocusCapture,onBlurCapture:_(f).onBlurCapture,onPointerdownCapture:_(d).onPointerDownCapture},{default:$(()=>[ae(p.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Sc=eg;const tg=uh(()=>U([]));function ng(){const e=tg();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=vl(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=vl(e.value,t),(n=e.value[0])==null||n.resume()}}}function vl(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}const as="focusScope.autoFocusOnMount",cs="focusScope.autoFocusOnUnmount",yl={bubbles:!1,cancelable:!0};function og(e,{select:t=!1}={}){const n=jn();for(const o of e)if(ln(o,{select:t}),jn()!==n)return!0}function rg(e){const t=Ec(e),n=bl(t,e),o=bl(t.reverse(),e);return[n,o]}function Ec(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function bl(e,t){for(const n of e)if(!sg(n,{upTo:t}))return n}function sg(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 ig(e){return e instanceof HTMLInputElement&&"select"in e}function ln(e,{select:t=!1}={}){if(e&&e.focus){const n=jn();e.focus({preventScroll:!0}),e!==n&&ig(e)&&t&&e.select()}}var lg=K({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,o=t,{currentRef:r,currentElement:s}=et(),i=U(null),l=ng(),a=Jt({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Rt(c=>{if(!$t)return;const d=s.value;if(!n.trapped)return;function f(m){if(a.paused||!d)return;const h=m.target;d.contains(h)?i.value=h:ln(i.value,{select:!0})}function p(m){if(a.paused||!d)return;const h=m.relatedTarget;h!==null&&(d.contains(h)||ln(i.value,{select:!0}))}function b(m){const h=i.value;if(h===null||!m.some(A=>A.removedNodes.length>0))return;d.contains(h)||ln(d)}document.addEventListener("focusin",f),document.addEventListener("focusout",p);const g=new MutationObserver(b);d&&g.observe(d,{childList:!0,subtree:!0}),c(()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",p),g.disconnect()})}),Rt(async c=>{const d=s.value;if(await vt(),!d)return;l.add(a);const f=jn();if(!d.contains(f)){const b=new CustomEvent(as,yl);d.addEventListener(as,g=>o("mountAutoFocus",g)),d.dispatchEvent(b),b.defaultPrevented||(og(Ec(d),{select:!0}),jn()===f&&ln(d))}c(()=>{d.removeEventListener(as,m=>o("mountAutoFocus",m));const b=new CustomEvent(cs,yl),g=m=>{o("unmountAutoFocus",m)};d.addEventListener(cs,g),d.dispatchEvent(b),d.setAttribute("data-focus-scope-unmounting",""),setTimeout(()=>{b.defaultPrevented||ln(f??document.body,{select:!0}),d.removeEventListener(cs,g),l.remove(a),d.removeAttribute("data-focus-scope-unmounting")},0)})});function u(c){if(!n.loop&&!n.trapped||a.paused)return;const d=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,f=jn();if(d&&f){const p=c.currentTarget,[b,g]=rg(p);b&&g?!c.shiftKey&&f===g?(c.preventDefault(),n.loop&&ln(b,{select:!0})):c.shiftKey&&f===b&&(c.preventDefault(),n.loop&&ln(g,{select:!0})):f===p&&c.preventDefault()}}return(c,d)=>(S(),G(_(Mt),{ref_key:"currentRef",ref:r,tabindex:"-1","as-child":c.asChild,as:c.as,onKeydown:u},{default:$(()=>[ae(c.$slots,"default")]),_:3},8,["as-child","as"]))}}),ag=lg,cg=K({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=Ch();return(n,o)=>_(t)||n.forceMount?(S(),G(id,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[ae(n.$slots,"default")],8,["to","disabled","defer"])):be("v-if",!0)}}),Oc=cg,ug=K({__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)=>(S(),G(_(Mt),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"?"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:$(()=>[ae(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),dg=ug;const[Pc,fg]=Zn("PopperRoot");var pg=K({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=U();return fg({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>ae(n.$slots,"default")}}),kc=pg,hg=K({__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:o}=et(),r=Pc();return xa(()=>{r.onAnchorChange(t.reference??o.value)}),(s,i)=>(S(),G(_(Mt),{ref:_(n),as:s.as,"as-child":s.asChild},{default:$(()=>[ae(s.$slots,"default")]),_:3},8,["as","as-child"]))}}),Tc=hg;function gg(e){return e!==null}function mg(e){return{name:"transformOrigin",options:e,fn(t){var m,h,v;const{placement:n,rects:o,middlewareData:r}=t,i=((m=r.arrow)==null?void 0:m.centerOffset)!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[u,c]=Ts(n),d={start:"0%",center:"50%",end:"100%"}[c],f=(((h=r.arrow)==null?void 0:h.x)??0)+l/2,p=(((v=r.arrow)==null?void 0:v.y)??0)+a/2;let b="",g="";return u==="bottom"?(b=i?d:`${f}px`,g=`${-a}px`):u==="top"?(b=i?d:`${f}px`,g=`${o.floating.height+a}px`):u==="right"?(b=`${-a}px`,g=i?d:`${p}px`):u==="left"&&(b=`${o.floating.width+a}px`,g=i?d:`${p}px`),{data:{x:b,y:g}}}}}function Ts(e){const[t,n="center"]=e.split("-");return[t,n]}const vg=["top","right","bottom","left"],hn=Math.min,it=Math.max,pr=Math.round,Qo=Math.floor,Tt=e=>({x:e,y:e}),yg={left:"right",right:"left",bottom:"top",top:"bottom"};function Rs(e,t,n){return it(e,hn(t,n))}function Yt(e,t){return typeof e=="function"?e(t):e}function Qt(e){return e.split("-")[0]}function eo(e){return e.split("-")[1]}function ri(e){return e==="x"?"y":"x"}function si(e){return e==="y"?"height":"width"}function Pt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ii(e){return ri(Pt(e))}function bg(e,t,n){n===void 0&&(n=!1);const o=eo(e),r=ii(e),s=si(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=hr(i)),[i,hr(i)]}function xg(e){const t=hr(e);return[Is(e),t,Is(t)]}function Is(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const xl=["left","right"],_l=["right","left"],_g=["top","bottom"],wg=["bottom","top"];function Cg(e,t,n){switch(e){case"top":case"bottom":return n?t?_l:xl:t?xl:_l;case"left":case"right":return t?_g:wg;default:return[]}}function Ag(e,t,n,o){const r=eo(e);let s=Cg(Qt(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Is)))),s}function hr(e){const t=Qt(e);return yg[t]+e.slice(t.length)}function Sg(e){return{top:0,right:0,bottom:0,left:0,...e}}function Rc(e){return typeof e!="number"?Sg(e):{top:e,right:e,bottom:e,left:e}}function gr(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function wl(e,t,n){let{reference:o,floating:r}=e;const s=Pt(t),i=ii(t),l=si(i),a=Qt(t),u=s==="y",c=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[l]/2-r[l]/2;let p;switch(a){case"top":p={x:c,y:o.y-r.height};break;case"bottom":p={x:c,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(eo(t)){case"start":p[i]-=f*(n&&u?-1:1);break;case"end":p[i]+=f*(n&&u?-1:1);break}return p}async function Eg(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:l,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Yt(t,e),b=Rc(p),m=l[f?d==="floating"?"reference":"floating":d],h=gr(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(m)))==null||n?m:m.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:a})),v=d==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),A=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},D=gr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:w,strategy:a}):v);return{top:(h.top-D.top+b.top)/A.y,bottom:(D.bottom-h.bottom+b.bottom)/A.y,left:(h.left-D.left+b.left)/A.x,right:(D.right-h.right+b.right)/A.x}}const Og=50,Pg=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,l=i.detectOverflow?i:{...i,detectOverflow:Eg},a=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:d}=wl(u,o,a),f=o,p=0;const b={};for(let g=0;g<s.length;g++){const m=s[g];if(!m)continue;const{name:h,fn:v}=m,{x:w,y:A,data:D,reset:B}=await v({x:c,y:d,initialPlacement:o,placement:f,strategy:r,middlewareData:b,rects:u,platform:l,elements:{reference:e,floating:t}});c=w??c,d=A??d,b[h]={...b[h],...D},B&&p<Og&&(p++,typeof B=="object"&&(B.placement&&(f=B.placement),B.rects&&(u=B.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):B.rects),{x:c,y:d}=wl(u,f,a)),g=-1)}return{x:c,y:d,placement:f,strategy:r,middlewareData:b}},kg=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=Yt(e,t)||{};if(u==null)return{};const d=Rc(c),f={x:n,y:o},p=ii(r),b=si(p),g=await i.getDimensions(u),m=p==="y",h=m?"top":"left",v=m?"bottom":"right",w=m?"clientHeight":"clientWidth",A=s.reference[b]+s.reference[p]-f[p]-s.floating[b],D=f[p]-s.reference[p],B=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let M=B?B[w]:0;(!M||!await(i.isElement==null?void 0:i.isElement(B)))&&(M=l.floating[w]||s.floating[b]);const ee=A/2-D/2,oe=M/2-g[b]/2-1,ue=hn(d[h],oe),_e=hn(d[v],oe),H=ue,ge=M-g[b]-_e,de=M/2-g[b]/2+ee,ke=Rs(H,de,ge),ce=!a.arrow&&eo(r)!=null&&de!==ke&&s.reference[b]/2-(de<H?ue:_e)-g[b]/2<0,re=ce?de<H?de-H:de-ge:0;return{[p]:f[p]+re,data:{[p]:ke,centerOffset:de-ke-re,...ce&&{alignmentOffset:re}},reset:ce}}}),Tg=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...m}=Yt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const h=Qt(r),v=Pt(l),w=Qt(l)===l,A=await(a.isRTL==null?void 0:a.isRTL(u.floating)),D=f||(w||!g?[hr(l)]:xg(l)),B=b!=="none";!f&&B&&D.push(...Ag(l,g,b,A));const M=[l,...D],ee=await a.detectOverflow(t,m),oe=[];let ue=((o=s.flip)==null?void 0:o.overflows)||[];if(c&&oe.push(ee[h]),d){const de=bg(r,i,A);oe.push(ee[de[0]],ee[de[1]])}if(ue=[...ue,{placement:r,overflows:oe}],!oe.every(de=>de<=0)){var _e,H;const de=(((_e=s.flip)==null?void 0:_e.index)||0)+1,ke=M[de];if(ke&&(!(d==="alignment"?v!==Pt(ke):!1)||ue.every(Q=>Pt(Q.placement)===v?Q.overflows[0]>0:!0)))return{data:{index:de,overflows:ue},reset:{placement:ke}};let ce=(H=ue.filter(re=>re.overflows[0]<=0).sort((re,Q)=>re.overflows[1]-Q.overflows[1])[0])==null?void 0:H.placement;if(!ce)switch(p){case"bestFit":{var ge;const re=(ge=ue.filter(Q=>{if(B){const Pe=Pt(Q.placement);return Pe===v||Pe==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(Pe=>Pe>0).reduce((Pe,ot)=>Pe+ot,0)]).sort((Q,Pe)=>Q[1]-Pe[1])[0])==null?void 0:ge[0];re&&(ce=re);break}case"initialPlacement":ce=l;break}if(r!==ce)return{reset:{placement:ce}}}return{}}}};function Cl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Al(e){return vg.some(t=>e[t]>=0)}const Rg=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...s}=Yt(e,t);switch(r){case"referenceHidden":{const i=await o.detectOverflow(t,{...s,elementContext:"reference"}),l=Cl(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Al(l)}}}case"escaped":{const i=await o.detectOverflow(t,{...s,altBoundary:!0}),l=Cl(i,n.floating);return{data:{escapedOffsets:l,escaped:Al(l)}}}default:return{}}}}},Ic=new Set(["left","top"]);async function Ig(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=Qt(n),l=eo(n),a=Pt(n)==="y",u=Ic.has(i)?-1:1,c=s&&a?-1:1,d=Yt(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof b=="number"&&(p=l==="end"?b*-1:b),a?{x:p*c,y:f*u}:{x:f*u,y:p*c}}const Mg=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:l}=t,a=await Ig(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+a.x,y:s+a.y,data:{...a,placement:i}}}}},Dg=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:h=>{let{x:v,y:w}=h;return{x:v,y:w}}},...u}=Yt(e,t),c={x:n,y:o},d=await s.detectOverflow(t,u),f=Pt(Qt(r)),p=ri(f);let b=c[p],g=c[f];if(i){const h=p==="y"?"top":"left",v=p==="y"?"bottom":"right",w=b+d[h],A=b-d[v];b=Rs(w,b,A)}if(l){const h=f==="y"?"top":"left",v=f==="y"?"bottom":"right",w=g+d[h],A=g-d[v];g=Rs(w,g,A)}const m=a.fn({...t,[p]:b,[f]:g});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[p]:i,[f]:l}}}}}},Ng=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=Yt(e,t),c={x:n,y:o},d=Pt(r),f=ri(d);let p=c[f],b=c[d];const g=Yt(l,t),m=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(a){const w=f==="y"?"height":"width",A=s.reference[f]-s.floating[w]+m.mainAxis,D=s.reference[f]+s.reference[w]-m.mainAxis;p<A?p=A:p>D&&(p=D)}if(u){var h,v;const w=f==="y"?"width":"height",A=Ic.has(Qt(r)),D=s.reference[d]-s.floating[w]+(A&&((h=i.offset)==null?void 0:h[d])||0)+(A?0:m.crossAxis),B=s.reference[d]+s.reference[w]+(A?0:((v=i.offset)==null?void 0:v[d])||0)-(A?m.crossAxis:0);b<D?b=D:b>B&&(b=B)}return{[f]:p,[d]:b}}}},$g=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:i,elements:l}=t,{apply:a=()=>{},...u}=Yt(e,t),c=await i.detectOverflow(t,u),d=Qt(r),f=eo(r),p=Pt(r)==="y",{width:b,height:g}=s.floating;let m,h;d==="top"||d==="bottom"?(m=d,h=f===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(h=d,m=f==="end"?"top":"bottom");const v=g-c.top-c.bottom,w=b-c.left-c.right,A=hn(g-c[m],v),D=hn(b-c[h],w),B=!t.middlewareData.shift;let M=A,ee=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ee=w),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(M=v),B&&!f){const ue=it(c.left,0),_e=it(c.right,0),H=it(c.top,0),ge=it(c.bottom,0);p?ee=b-2*(ue!==0||_e!==0?ue+_e:it(c.left,c.right)):M=g-2*(H!==0||ge!==0?H+ge:it(c.top,c.bottom))}await a({...t,availableWidth:ee,availableHeight:M});const oe=await i.getDimensions(l.floating);return b!==oe.width||g!==oe.height?{reset:{rects:!0}}:{}}}};function Lr(){return typeof window<"u"}function Tn(e){return li(e)?(e.nodeName||"").toLowerCase():"#document"}function ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Lt(e){var t;return(t=(li(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function li(e){return Lr()?e instanceof Node||e instanceof ct(e).Node:!1}function bt(e){return Lr()?e instanceof Element||e instanceof ct(e).Element:!1}function tn(e){return Lr()?e instanceof HTMLElement||e instanceof ct(e).HTMLElement:!1}function Sl(e){return!Lr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ct(e).ShadowRoot}function Vo(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=xt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Lg(e){return/^(table|td|th)$/.test(Tn(e))}function Br(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Bg=/transform|translate|scale|rotate|perspective|filter/,Fg=/paint|layout|strict|content/,bn=e=>!!e&&e!=="none";let us;function ai(e){const t=bt(e)?xt(e):e;return bn(t.transform)||bn(t.translate)||bn(t.scale)||bn(t.rotate)||bn(t.perspective)||!ci()&&(bn(t.backdropFilter)||bn(t.filter))||Bg.test(t.willChange||"")||Fg.test(t.contain||"")}function qg(e){let t=gn(e);for(;tn(t)&&!Xn(t);){if(ai(t))return t;if(Br(t))return null;t=gn(t)}return null}function ci(){return us==null&&(us=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),us}function Xn(e){return/^(html|body|#document)$/.test(Tn(e))}function xt(e){return ct(e).getComputedStyle(e)}function Fr(e){return bt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gn(e){if(Tn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Sl(e)&&e.host||Lt(e);return Sl(t)?t.host:t}function Mc(e){const t=gn(e);return Xn(t)?e.ownerDocument?e.ownerDocument.body:e.body:tn(t)&&Vo(t)?t:Mc(t)}function Ro(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Mc(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=ct(r);if(s){const l=Ms(i);return t.concat(i,i.visualViewport||[],Vo(r)?r:[],l&&n?Ro(l):[])}else return t.concat(r,Ro(r,[],n))}function Ms(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dc(e){const t=xt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=tn(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,l=pr(n)!==s||pr(o)!==i;return l&&(n=s,o=i),{width:n,height:o,$:l}}function ui(e){return bt(e)?e:e.contextElement}function Un(e){const t=ui(e);if(!tn(t))return Tt(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Dc(t);let i=(s?pr(n.width):n.width)/o,l=(s?pr(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Vg=Tt(0);function Nc(e){const t=ct(e);return!ci()||!t.visualViewport?Vg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zg(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ct(e)?!1:t}function On(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=ui(e);let i=Tt(1);t&&(o?bt(o)&&(i=Un(o)):i=Un(e));const l=zg(s,n,o)?Nc(s):Tt(0);let a=(r.left+l.x)/i.x,u=(r.top+l.y)/i.y,c=r.width/i.x,d=r.height/i.y;if(s){const f=ct(s),p=o&&bt(o)?ct(o):o;let b=f,g=Ms(b);for(;g&&o&&p!==b;){const m=Un(g),h=g.getBoundingClientRect(),v=xt(g),w=h.left+(g.clientLeft+parseFloat(v.paddingLeft))*m.x,A=h.top+(g.clientTop+parseFloat(v.paddingTop))*m.y;a*=m.x,u*=m.y,c*=m.x,d*=m.y,a+=w,u+=A,b=ct(g),g=Ms(b)}}return gr({width:c,height:d,x:a,y:u})}function qr(e,t){const n=Fr(e).scrollLeft;return t?t.left+n:On(Lt(e)).left+n}function $c(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-qr(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function jg(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=Lt(o),l=t?Br(t.floating):!1;if(o===i||l&&s)return n;let a={scrollLeft:0,scrollTop:0},u=Tt(1);const c=Tt(0),d=tn(o);if((d||!d&&!s)&&((Tn(o)!=="body"||Vo(i))&&(a=Fr(o)),d)){const p=On(o);u=Un(o),c.x=p.x+o.clientLeft,c.y=p.y+o.clientTop}const f=i&&!d&&!s?$c(i,a):Tt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-a.scrollTop*u.y+c.y+f.y}}function Ug(e){return Array.from(e.getClientRects())}function Hg(e){const t=Lt(e),n=Fr(e),o=e.ownerDocument.body,r=it(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=it(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+qr(e);const l=-n.scrollTop;return xt(o).direction==="rtl"&&(i+=it(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:l}}const El=25;function Wg(e,t){const n=ct(e),o=Lt(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,l=0,a=0;if(r){s=r.width,i=r.height;const c=ci();(!c||c&&t==="fixed")&&(l=r.offsetLeft,a=r.offsetTop)}const u=qr(o);if(u<=0){const c=o.ownerDocument,d=c.body,f=getComputedStyle(d),p=c.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,b=Math.abs(o.clientWidth-d.clientWidth-p);b<=El&&(s-=b)}else u<=El&&(s+=u);return{width:s,height:i,x:l,y:a}}function Kg(e,t){const n=On(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=tn(e)?Un(e):Tt(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,a=r*s.x,u=o*s.y;return{width:i,height:l,x:a,y:u}}function Ol(e,t,n){let o;if(t==="viewport")o=Wg(e,n);else if(t==="document")o=Hg(Lt(e));else if(bt(t))o=Kg(t,n);else{const r=Nc(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return gr(o)}function Lc(e,t){const n=gn(e);return n===t||!bt(n)||Xn(n)?!1:xt(n).position==="fixed"||Lc(n,t)}function Gg(e,t){const n=t.get(e);if(n)return n;let o=Ro(e,[],!1).filter(l=>bt(l)&&Tn(l)!=="body"),r=null;const s=xt(e).position==="fixed";let i=s?gn(e):e;for(;bt(i)&&!Xn(i);){const l=xt(i),a=ai(i);!a&&l.position==="fixed"&&(r=null),(s?!a&&!r:!a&&l.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Vo(i)&&!a&&Lc(e,i))?o=o.filter(c=>c!==i):r=l,i=gn(i)}return t.set(e,o),o}function Jg(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?Br(t)?[]:Gg(t,this._c):[].concat(n),o],l=Ol(t,i[0],r);let a=l.top,u=l.right,c=l.bottom,d=l.left;for(let f=1;f<i.length;f++){const p=Ol(t,i[f],r);a=it(p.top,a),u=hn(p.right,u),c=hn(p.bottom,c),d=it(p.left,d)}return{width:u-d,height:c-a,x:d,y:a}}function Xg(e){const{width:t,height:n}=Dc(e);return{width:t,height:n}}function Yg(e,t,n){const o=tn(t),r=Lt(t),s=n==="fixed",i=On(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const a=Tt(0);function u(){a.x=qr(r)}if(o||!o&&!s)if((Tn(t)!=="body"||Vo(r))&&(l=Fr(t)),o){const p=On(t,!0,s,t);a.x=p.x+t.clientLeft,a.y=p.y+t.clientTop}else r&&u();s&&!o&&r&&u();const c=r&&!o&&!s?$c(r,l):Tt(0),d=i.left+l.scrollLeft-a.x-c.x,f=i.top+l.scrollTop-a.y-c.y;return{x:d,y:f,width:i.width,height:i.height}}function ds(e){return xt(e).position==="static"}function Pl(e,t){if(!tn(e)||xt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Lt(e)===n&&(n=n.ownerDocument.body),n}function Bc(e,t){const n=ct(e);if(Br(e))return n;if(!tn(e)){let r=gn(e);for(;r&&!Xn(r);){if(bt(r)&&!ds(r))return r;r=gn(r)}return n}let o=Pl(e,t);for(;o&&Lg(o)&&ds(o);)o=Pl(o,t);return o&&Xn(o)&&ds(o)&&!ai(o)?n:o||qg(e)||n}const Qg=async function(e){const t=this.getOffsetParent||Bc,n=this.getDimensions,o=await n(e.floating);return{reference:Yg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Zg(e){return xt(e).direction==="rtl"}const em={convertOffsetParentRelativeRectToViewportRelativeRect:jg,getDocumentElement:Lt,getClippingRect:Jg,getOffsetParent:Bc,getElementRects:Qg,getClientRects:Ug,getDimensions:Xg,getScale:Un,isElement:bt,isRTL:Zg};function Fc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tm(e,t){let n=null,o;const r=Lt(e);function s(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function i(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(l||t(),!f||!p)return;const b=Qo(d),g=Qo(r.clientWidth-(c+f)),m=Qo(r.clientHeight-(d+p)),h=Qo(c),w={rootMargin:-b+"px "+-g+"px "+-m+"px "+-h+"px",threshold:it(0,hn(1,a))||1};let A=!0;function D(B){const M=B[0].intersectionRatio;if(M!==a){if(!A)return i();M?i(!1,M):o=setTimeout(()=>{i(!1,1e-7)},1e3)}M===1&&!Fc(u,e.getBoundingClientRect())&&i(),A=!1}try{n=new IntersectionObserver(D,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(D,w)}n.observe(e)}return i(!0),s}function nm(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,u=ui(e),c=r||s?[...u?Ro(u):[],...t?Ro(t):[]]:[];c.forEach(h=>{r&&h.addEventListener("scroll",n,{passive:!0}),s&&h.addEventListener("resize",n)});const d=u&&l?tm(u,n):null;let f=-1,p=null;i&&(p=new ResizeObserver(h=>{let[v]=h;v&&v.target===u&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),u&&!a&&p.observe(u),t&&p.observe(t));let b,g=a?On(e):null;a&&m();function m(){const h=On(e);g&&!Fc(g,h)&&n(),g=h,b=requestAnimationFrame(m)}return n(),()=>{var h;c.forEach(v=>{r&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),d==null||d(),(h=p)==null||h.disconnect(),p=null,a&&cancelAnimationFrame(b)}}const om=Mg,rm=Dg,kl=Tg,sm=$g,im=Rg,lm=kg,am=Ng,cm=(e,t,n)=>{const o=new Map,r={platform:em,...n},s={...r.platform,_c:o};return Pg(e,t,{...r,platform:s})};function um(e){return e!=null&&typeof e=="object"&&"$el"in e}function Ds(e){if(um(e)){const t=e.$el;return li(t)&&Tn(t)==="#comment"?null:t}return e}function Ln(e){return typeof e=="function"?e():_(e)}function dm(e){return{name:"arrow",options:e,fn(t){const n=Ds(Ln(e.element));return n==null?{}:lm({element:n,padding:e.padding}).fn(t)}}}function qc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Tl(e,t){const n=qc(e);return Math.round(t*n)/n}function fm(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,r=F(()=>{var M;return(M=Ln(n.open))!=null?M:!0}),s=F(()=>Ln(n.middleware)),i=F(()=>{var M;return(M=Ln(n.placement))!=null?M:"bottom"}),l=F(()=>{var M;return(M=Ln(n.strategy))!=null?M:"absolute"}),a=F(()=>{var M;return(M=Ln(n.transform))!=null?M:!0}),u=F(()=>Ds(e.value)),c=F(()=>Ds(t.value)),d=U(0),f=U(0),p=U(l.value),b=U(i.value),g=No({}),m=U(!1),h=F(()=>{const M={position:p.value,left:"0",top:"0"};if(!c.value)return M;const ee=Tl(c.value,d.value),oe=Tl(c.value,f.value);return a.value?{...M,transform:"translate("+ee+"px, "+oe+"px)",...qc(c.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:ee+"px",top:oe+"px"}});let v;function w(){if(u.value==null||c.value==null)return;const M=r.value;cm(u.value,c.value,{middleware:s.value,placement:i.value,strategy:l.value}).then(ee=>{d.value=ee.x,f.value=ee.y,p.value=ee.strategy,b.value=ee.placement,g.value=ee.middlewareData,m.value=M!==!1})}function A(){typeof v=="function"&&(v(),v=void 0)}function D(){if(A(),o===void 0){w();return}if(u.value!=null&&c.value!=null){v=o(u.value,c.value,w);return}}function B(){r.value||(m.value=!1)}return Le([s,i,l,r],w,{flush:"sync"}),Le([u,c],D,{flush:"sync"}),Le(r,B,{flush:"sync"}),Vs()&&Kl(A),{x:xn(d),y:xn(f),strategy:xn(p),placement:xn(b),middlewareData:xn(g),isPositioned:xn(m),floatingStyles:h,update:w}}const pm={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},[xb,hm]=Zn("PopperContent");var gm=K({inheritAttrs:!1,__name:"PopperContent",props:xd({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}},{...pm}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,r=Pc(),{forwardRef:s,currentElement:i}=et(),l=U(),a=U(),{width:u,height:c}=Hh(a),d=F(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),f=F(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),p=F(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),b=F(()=>({padding:f.value,boundary:p.value.filter(gg),altBoundary:p.value.length>0})),g=F(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),m=ah(()=>[om({mainAxis:n.sideOffset+c.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&kl({...b.value,...g.value}),n.avoidCollisions&&rm({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?am():void 0,...b.value}),!n.prioritizePosition&&n.avoidCollisions&&kl({...b.value,...g.value}),sm({...b.value,apply:({elements:H,rects:ge,availableWidth:de,availableHeight:ke})=>{const{width:ce,height:re}=ge.reference,Q=H.floating.style;Q.setProperty("--reka-popper-available-width",`${de}px`),Q.setProperty("--reka-popper-available-height",`${ke}px`),Q.setProperty("--reka-popper-anchor-width",`${ce}px`),Q.setProperty("--reka-popper-anchor-height",`${re}px`)}}),a.value&&dm({element:a.value,padding:n.arrowPadding}),mg({arrowWidth:u.value,arrowHeight:c.value}),n.hideWhenDetached&&im({strategy:"referenceHidden",...b.value})]),h=F(()=>n.reference??r.anchor.value),{floatingStyles:v,placement:w,isPositioned:A,middlewareData:D}=fm(h,l,{strategy:n.positionStrategy,placement:d,whileElementsMounted:(...H)=>nm(...H,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:m}),B=F(()=>Ts(w.value)[0]),M=F(()=>Ts(w.value)[1]);xa(()=>{A.value&&o("placed")});const ee=F(()=>{var ge;const H=((ge=D.value.arrow)==null?void 0:ge.centerOffset)!==0;return n.hideShiftedArrow&&H}),oe=U("");Rt(()=>{i.value&&(oe.value=window.getComputedStyle(i.value).zIndex)});const ue=F(()=>{var H;return((H=D.value.arrow)==null?void 0:H.x)??0}),_e=F(()=>{var H;return((H=D.value.arrow)==null?void 0:H.y)??0});return hm({placedSide:B,onArrowChange:H=>a.value=H,arrowX:ue,arrowY:_e,shouldHideArrow:ee}),(H,ge)=>{var de,ke,ce;return S(),j("div",{ref_key:"floatingRef",ref:l,"data-reka-popper-content-wrapper":"",style:Pn({..._(v),transform:_(A)?_(v).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe.value,"--reka-popper-transform-origin":[(de=_(D).transformOrigin)==null?void 0:de.x,(ke=_(D).transformOrigin)==null?void 0:ke.y].join(" "),...((ce=_(D).hide)==null?void 0:ce.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[I(_(Mt),Ue({ref:_(s)},H.$attrs,{"as-child":n.asChild,as:H.as,"data-side":B.value,"data-align":M.value,style:{animation:_(A)?void 0:"none"}}),{default:$(()=>[ae(H.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),Vc=gm;const[zo,mm]=Zn("PopoverRoot");var vm=K({__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,o=t,{modal:r}=Ao(n),s=yc(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0});return mm({contentId:"",triggerId:"",modal:r,open:s,onOpenChange:a=>{s.value=a},onOpenToggle:()=>{s.value=!s.value},triggerElement:U(),hasCustomAnchor:U(!1)}),(a,u)=>(S(),G(_(kc),null,{default:$(()=>[ae(a.$slots,"default",{open:_(s),close:()=>s.value=!1})]),_:3}))}}),ym=vm,bm=K({__name:"PopoverContentImpl",props:{trapFocus:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=$r(bh(n,"trapFocus","disableOutsidePointerEvents")),{forwardRef:s}=et(),i=zo();return Ih(),(l,a)=>(S(),G(_(ag),{"as-child":"",loop:"",trapped:l.trapFocus,onMountAutoFocus:a[5]||(a[5]=u=>o("openAutoFocus",u)),onUnmountAutoFocus:a[6]||(a[6]=u=>o("closeAutoFocus",u))},{default:$(()=>[I(_(Sc),{"as-child":"","disable-outside-pointer-events":l.disableOutsidePointerEvents,onPointerDownOutside:a[0]||(a[0]=u=>o("pointerDownOutside",u)),onInteractOutside:a[1]||(a[1]=u=>o("interactOutside",u)),onEscapeKeyDown:a[2]||(a[2]=u=>o("escapeKeyDown",u)),onFocusOutside:a[3]||(a[3]=u=>o("focusOutside",u)),onDismiss:a[4]||(a[4]=u=>_(i).onOpenChange(!1))},{default:$(()=>[I(_(Vc),Ue(_(r),{id:_(i).contentId,ref:_(s),"data-state":_(i).open.value?"open":"closed","aria-labelledby":_(i).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:$(()=>[ae(l.$slots,"default")]),_:3},16,["id","data-state","aria-labelledby"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),zc=bm,xm=K({__name:"PopoverContentModal",props:{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},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=zo(),s=U(!1);kh(!0);const i=kn(n,o),{forwardRef:l,currentElement:a}=et();return Uh(a),(u,c)=>(S(),G(zc,Ue(_(i),{ref:_(l),"trap-focus":_(r).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:c[0]||(c[0]=un(d=>{var f;o("closeAutoFocus",d),s.value||(f=_(r).triggerElement.value)==null||f.focus()},["prevent"])),onPointerDownOutside:c[1]||(c[1]=d=>{o("pointerDownOutside",d);const f=d.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0,b=f.button===2||p;s.value=b}),onFocusOutside:c[2]||(c[2]=un(()=>{},["prevent"]))}),{default:$(()=>[ae(u.$slots,"default")]),_:3},16,["trap-focus"]))}}),_m=xm,wm=K({__name:"PopoverContentNonModal",props:{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},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=zo(),s=U(!1),i=U(!1),l=kn(n,o);return(a,u)=>(S(),G(zc,Ue(_(l),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:u[0]||(u[0]=c=>{var d;o("closeAutoFocus",c),c.defaultPrevented||(s.value||(d=_(r).triggerElement.value)==null||d.focus(),c.preventDefault()),s.value=!1,i.value=!1}),onInteractOutside:u[1]||(u[1]=async c=>{var p;o("interactOutside",c),c.defaultPrevented||(s.value=!0,c.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const d=c.target;((p=_(r).triggerElement.value)==null?void 0:p.contains(d))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&i.value&&c.preventDefault()})}),{default:$(()=>[ae(a.$slots,"default")]),_:3},16))}}),Cm=wm,Am=K({__name:"PopoverContent",props:{forceMount:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=zo(),s=kn(n,o),{forwardRef:i}=et();return r.contentId||(r.contentId=oi(void 0,"reka-popover-content")),(l,a)=>(S(),G(_(Cc),{present:l.forceMount||_(r).open.value},{default:$(()=>[_(r).modal.value?(S(),G(_m,Ue({key:0},_(s),{ref:_(i)}),{default:$(()=>[ae(l.$slots,"default")]),_:3},16)):(S(),G(Cm,Ue({key:1},_(s),{ref:_(i)}),{default:$(()=>[ae(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Sm=Am,Em=K({__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,o)=>(S(),G(_(Oc),Do(Qn(t)),{default:$(()=>[ae(n.$slots,"default")]),_:3},16))}}),Om=Em,Pm=K({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=zo(),{forwardRef:o,currentElement:r}=et();return n.triggerId||(n.triggerId=oi(void 0,"reka-popover-trigger")),Dt(()=>{n.triggerElement.value=r.value}),(s,i)=>(S(),G(Gs(_(n).hasCustomAnchor.value?_(Mt):_(Tc)),{"as-child":""},{default:$(()=>[I(_(Mt),{id:_(n).triggerId,ref:_(o),type:s.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":_(n).open.value,"aria-controls":_(n).contentId,"data-state":_(n).open.value?"open":"closed",as:s.as,"as-child":t.asChild,onClick:_(n).onOpenToggle},{default:$(()=>[ae(s.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),km=Pm,Tm=K({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(e){const t=e;return et(),(n,o)=>(S(),G(_(Mt),Ue(t,{onMousedown:o[0]||(o[0]=r=>{!r.defaultPrevented&&r.detail>1&&r.preventDefault()})}),{default:$(()=>[ae(n.$slots,"default")]),_:3},16))}}),Rm=Tm;const[Vr,Im]=Zn("TooltipProvider");var Mm=K({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(e){const t=e,{delayDuration:n,skipDelayDuration:o,disableHoverableContent:r,disableClosingTrigger:s,ignoreNonKeyboardFocus:i,disabled:l,content:a}=Ao(t);et();const u=U(!0),c=U(!1),{start:d,stop:f}=vc(()=>{u.value=!0},o,{immediate:!1});return Im({isOpenDelayed:u,delayDuration:n,onOpen(){f(),u.value=!1},onClose(){d()},isPointerInTransitRef:c,disableHoverableContent:r,disableClosingTrigger:s,disabled:l,ignoreNonKeyboardFocus:i,content:a}),(p,b)=>ae(p.$slots,"default")}}),Dm=Mm;const jc="tooltip.open",[zr,Nm]=Zn("TooltipRoot");var $m=K({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=t;et();const r=Vr(),s=F(()=>n.disableHoverableContent??r.disableHoverableContent.value),i=F(()=>n.disableClosingTrigger??r.disableClosingTrigger.value),l=F(()=>n.disabled??r.disabled.value),a=F(()=>n.delayDuration??r.delayDuration.value),u=F(()=>n.ignoreNonKeyboardFocus??r.ignoreNonKeyboardFocus.value),c=yc(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0});Le(c,w=>{r.onClose&&(w?(r.onOpen(),document.dispatchEvent(new CustomEvent(jc))):r.onClose())});const d=U(!1),f=U(),p=F(()=>c.value?d.value?"delayed-open":"instant-open":"closed"),{start:b,stop:g}=vc(()=>{d.value=!0,c.value=!0},a,{immediate:!1});function m(){g(),d.value=!1,c.value=!0}function h(){g(),c.value=!1}function v(){b()}return Nm({contentId:"",open:c,stateAttribute:p,trigger:f,onTriggerChange(w){f.value=w},onTriggerEnter(){r.isOpenDelayed.value?v():m()},onTriggerLeave(){s.value?h():g()},onOpen:m,onClose:h,disableHoverableContent:s,disableClosingTrigger:i,disabled:l,ignoreNonKeyboardFocus:u}),(w,A)=>(S(),G(_(kc),null,{default:$(()=>[ae(w.$slots,"default",{open:_(c)})]),_:3}))}}),Lm=$m,Bm=K({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=zr(),s=Vr(),{forwardRef:i,currentElement:l}=et(),a=F(()=>{var c;return n.ariaLabel||((c=l.value)==null?void 0:c.textContent)}),u=F(()=>{const{ariaLabel:c,...d}=n;return xc(d,s.content.value??{},{side:"top",sideOffset:0,align:"center",avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:"partial",hideWhenDetached:!1})});return Dt(()=>{fr(window,"scroll",c=>{const d=c.target;d!=null&&d.contains(r.trigger.value)&&r.onClose()},{capture:!0}),fr(window,jc,r.onClose)}),(c,d)=>(S(),G(_(Sc),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:d[0]||(d[0]=f=>o("escapeKeyDown",f)),onPointerDownOutside:d[1]||(d[1]=f=>{var p;_(r).disableClosingTrigger.value&&((p=_(r).trigger.value)!=null&&p.contains(f.target))&&f.preventDefault(),o("pointerDownOutside",f)}),onFocusOutside:d[2]||(d[2]=un(()=>{},["prevent"])),onDismiss:d[3]||(d[3]=f=>_(r).onClose())},{default:$(()=>[I(_(Vc),Ue({ref:_(i),"data-state":_(r).stateAttribute.value},{...c.$attrs,...u.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:$(()=>[ae(c.$slots,"default"),I(_(dg),{id:_(r).contentId,role:"tooltip"},{default:$(()=>[ie(se(a.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),Uc=Bm,Fm=K({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){const n=$r(e),{forwardRef:o,currentElement:r}=et(),{trigger:s,onClose:i}=zr(),l=Vr(),{isPointerInTransit:a,onPointerExit:u}=Mh(s,r);return l.isPointerInTransitRef=a,u(()=>{i()}),(c,d)=>(S(),G(Uc,Ue({ref:_(o)},_(n)),{default:$(()=>[ae(c.$slots,"default")]),_:3},16))}}),qm=Fm,Vm=K({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=zr(),s=kn(n,o),{forwardRef:i}=et();return(l,a)=>(S(),G(_(Cc),{present:l.forceMount||_(r).open.value},{default:$(()=>[(S(),G(Gs(_(r).disableHoverableContent.value?Uc:qm),Ue({ref:_(i)},_(s)),{default:$(()=>[ae(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),zm=Vm,jm=K({__name:"TooltipPortal",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,o)=>(S(),G(_(Oc),Do(Qn(t)),{default:$(()=>[ae(n.$slots,"default")]),_:3},16))}}),Um=jm,Hm=K({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=zr(),o=Vr();n.contentId||(n.contentId=oi(void 0,"reka-tooltip-content"));const{forwardRef:r,currentElement:s}=et(),i=U(!1),l=U(!1),a=F(()=>n.disabled.value?{}:{click:g,focus:p,pointermove:d,pointerleave:f,pointerdown:c,blur:b});Dt(()=>{n.onTriggerChange(s.value)});function u(){setTimeout(()=>{i.value=!1},1)}function c(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),i.value=!0,document.addEventListener("pointerup",u,{once:!0})}function d(m){m.pointerType!=="touch"&&!l.value&&!o.isPointerInTransitRef.value&&(n.onTriggerEnter(),l.value=!0)}function f(){n.onTriggerLeave(),l.value=!1}function p(m){var h,v;i.value||n.ignoreNonKeyboardFocus.value&&!((v=(h=m.target).matches)!=null&&v.call(h,":focus-visible"))||n.onOpen()}function b(){n.onClose()}function g(){n.disableClosingTrigger.value||n.onClose()}return(m,h)=>(S(),G(_(Tc),{"as-child":"",reference:m.reference},{default:$(()=>[I(_(Mt),Ue({ref:_(r),"aria-describedby":_(n).open.value?_(n).contentId:void 0,"data-state":_(n).stateAttribute.value,as:m.as,"as-child":t.asChild,"data-grace-area-trigger":""},yd(a.value)),{default:$(()=>[ae(m.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),Wm=Hm;function Hc(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Hc(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Wc(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Hc(e))&&(o&&(o+=" "),o+=t);return o}const di="-",Km=e=>{const t=Jm(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const l=i.split(di);return l[0]===""&&l.length!==1&&l.shift(),Kc(l,t)||Gm(i)},getConflictingClassGroupIds:(i,l)=>{const a=n[i]||[];return l&&o[i]?[...a,...o[i]]:a}}},Kc=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?Kc(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;const s=e.join(di);return(i=t.validators.find(({validator:l})=>l(s)))==null?void 0:i.classGroupId},Rl=/^\[(.+)\]$/,Gm=e=>{if(Rl.test(e)){const t=Rl.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Jm=e=>{const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return Ym(Object.entries(e.classGroups),n).forEach(([s,i])=>{Ns(i,o,s,t)}),o},Ns=(e,t,n,o)=>{e.forEach(r=>{if(typeof r=="string"){const s=r===""?t:Il(t,r);s.classGroupId=n;return}if(typeof r=="function"){if(Xm(r)){Ns(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([s,i])=>{Ns(i,Il(t,s),n,o)})})},Il=(e,t)=>{let n=e;return t.split(di).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},Xm=e=>e.isThemeGetter,Ym=(e,t)=>t?e.map(([n,o])=>{const r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,l])=>[t+i,l])):s);return[n,r]}):e,Qm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const r=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,o=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return r(s,i),i},set(s,i){n.has(s)?n.set(s,i):r(s,i)}}},Gc="!",Zm=e=>{const{separator:t,experimentalParseClassName:n}=e,o=t.length===1,r=t[0],s=t.length,i=l=>{const a=[];let u=0,c=0,d;for(let m=0;m<l.length;m++){let h=l[m];if(u===0){if(h===r&&(o||l.slice(m,m+s)===t)){a.push(l.slice(c,m)),c=m+s;continue}if(h==="/"){d=m;continue}}h==="["?u++:h==="]"&&u--}const f=a.length===0?l:l.substring(c),p=f.startsWith(Gc),b=p?f.substring(1):f,g=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:g}};return n?l=>n({className:l,parseClassName:i}):i},ev=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(o=>{o[0]==="["?(t.push(...n.sort(),o),n=[]):n.push(o)}),t.push(...n.sort()),t},tv=e=>({cache:Qm(e.cacheSize),parseClassName:Zm(e),...Km(e)}),nv=/\s+/,ov=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],i=e.trim().split(nv);let l="";for(let a=i.length-1;a>=0;a-=1){const u=i[a],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(u);let b=!!p,g=o(b?f.substring(0,p):f);if(!g){if(!b){l=u+(l.length>0?" "+l:l);continue}if(g=o(f),!g){l=u+(l.length>0?" "+l:l);continue}b=!1}const m=ev(c).join(":"),h=d?m+Gc:m,v=h+g;if(s.includes(v))continue;s.push(v);const w=r(g,b);for(let A=0;A<w.length;++A){const D=w[A];s.push(h+D)}l=u+(l.length>0?" "+l:l)}return l};function rv(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Jc(t))&&(o&&(o+=" "),o+=n);return o}const Jc=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=Jc(e[o]))&&(n&&(n+=" "),n+=t);return n};function sv(e,...t){let n,o,r,s=i;function i(a){const u=t.reduce((c,d)=>d(c),e());return n=tv(u),o=n.cache.get,r=n.cache.set,s=l,l(a)}function l(a){const u=o(a);if(u)return u;const c=ov(a,n);return r(a,c),c}return function(){return s(rv.apply(null,arguments))}}const Ee=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Xc=/^\[(?:([a-z-]+):)?(.+)\]$/i,iv=/^\d+\/\d+$/,lv=new Set(["px","full","screen"]),av=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cv=/\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$/,uv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,dv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qt=e=>Hn(e)||lv.has(e)||iv.test(e),on=e=>to(e,"length",xv),Hn=e=>!!e&&!Number.isNaN(Number(e)),fs=e=>to(e,"number",Hn),io=e=>!!e&&Number.isInteger(Number(e)),pv=e=>e.endsWith("%")&&Hn(e.slice(0,-1)),le=e=>Xc.test(e),rn=e=>av.test(e),hv=new Set(["length","size","percentage"]),gv=e=>to(e,hv,Yc),mv=e=>to(e,"position",Yc),vv=new Set(["image","url"]),yv=e=>to(e,vv,wv),bv=e=>to(e,"",_v),lo=()=>!0,to=(e,t,n)=>{const o=Xc.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):n(o[2]):!1},xv=e=>cv.test(e)&&!uv.test(e),Yc=()=>!1,_v=e=>dv.test(e),wv=e=>fv.test(e),Cv=()=>{const e=Ee("colors"),t=Ee("spacing"),n=Ee("blur"),o=Ee("brightness"),r=Ee("borderColor"),s=Ee("borderRadius"),i=Ee("borderSpacing"),l=Ee("borderWidth"),a=Ee("contrast"),u=Ee("grayscale"),c=Ee("hueRotate"),d=Ee("invert"),f=Ee("gap"),p=Ee("gradientColorStops"),b=Ee("gradientColorStopPositions"),g=Ee("inset"),m=Ee("margin"),h=Ee("opacity"),v=Ee("padding"),w=Ee("saturate"),A=Ee("scale"),D=Ee("sepia"),B=Ee("skew"),M=Ee("space"),ee=Ee("translate"),oe=()=>["auto","contain","none"],ue=()=>["auto","hidden","clip","visible","scroll"],_e=()=>["auto",le,t],H=()=>[le,t],ge=()=>["",qt,on],de=()=>["auto",Hn,le],ke=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ce=()=>["solid","dashed","dotted","double","none"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],Pe=()=>["","0",le],ot=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Me=()=>[Hn,le];return{cacheSize:500,separator:":",theme:{colors:[lo],spacing:[qt,on],blur:["none","",rn,le],brightness:Me(),borderColor:[e],borderRadius:["none","","full",rn,le],borderSpacing:H(),borderWidth:ge(),contrast:Me(),grayscale:Pe(),hueRotate:Me(),invert:Pe(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[pv,on],inset:_e(),margin:_e(),opacity:Me(),padding:H(),saturate:Me(),scale:Me(),sepia:Pe(),skew:Me(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",le]}],container:["container"],columns:[{columns:[rn]}],"break-after":[{"break-after":ot()}],"break-before":[{"break-before":ot()}],"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"],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:[...ke(),le]}],overflow:[{overflow:ue()}],"overflow-x":[{"overflow-x":ue()}],"overflow-y":[{"overflow-y":ue()}],overscroll:[{overscroll:oe()}],"overscroll-x":[{"overscroll-x":oe()}],"overscroll-y":[{"overscroll-y":oe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",io,le]}],basis:[{basis:_e()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",le]}],grow:[{grow:Pe()}],shrink:[{shrink:Pe()}],order:[{order:["first","last","none",io,le]}],"grid-cols":[{"grid-cols":[lo]}],"col-start-end":[{col:["auto",{span:["full",io,le]},le]}],"col-start":[{"col-start":de()}],"col-end":[{"col-end":de()}],"grid-rows":[{"grid-rows":[lo]}],"row-start-end":[{row:["auto",{span:[io,le]},le]}],"row-start":[{"row-start":de()}],"row-end":[{"row-end":de()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",le]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",le]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",le,t]}],"min-w":[{"min-w":[le,t,"min","max","fit"]}],"max-w":[{"max-w":[le,t,"none","full","min","max","fit","prose",{screen:[rn]},rn]}],h:[{h:[le,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[le,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[le,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[le,t,"auto","min","max","fit"]}],"font-size":[{text:["base",rn,on]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fs]}],"font-family":[{font:[lo]}],"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:["tighter","tight","normal","wide","wider","widest",le]}],"line-clamp":[{"line-clamp":["none",Hn,fs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",qt,le]}],"list-image":[{"list-image":["none",le]}],"list-style-type":[{list:["none","disc","decimal",le]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",qt,on]}],"underline-offset":[{"underline-offset":["auto",qt,le]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ke(),mv]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},yv]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...ce(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:ce()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...ce()]}],"outline-offset":[{"outline-offset":[qt,le]}],"outline-w":[{outline:[qt,on]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[qt,on]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",rn,bv]}],"shadow-color":[{shadow:[lo]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":re()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",rn,le]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[D]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",le]}],duration:[{duration:Me()}],ease:[{ease:["linear","in","out","in-out",le]}],delay:[{delay:Me()}],animate:[{animate:["none","spin","ping","pulse","bounce",le]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[io,le]}],"translate-x":[{"translate-x":[ee]}],"translate-y":[{"translate-y":[ee]}],"skew-x":[{"skew-x":[B]}],"skew-y":[{"skew-y":[B]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",le]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",le]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",le]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[qt,on,fs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}},Av=sv(Cv);function nt(...e){return Av(Wc(e))}const Ml=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Dl=Wc,Qc=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return Dl(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:s}=t,i=Object.keys(r).map(u=>{const c=n==null?void 0:n[u],d=s==null?void 0:s[u];if(c===null)return null;const f=Ml(c)||Ml(d);return r[u][f]}),l=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),a=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,c)=>{let{class:d,className:f,...p}=c;return Object.entries(p).every(b=>{let[g,m]=b;return Array.isArray(m)?m.includes({...s,...l}[g]):{...s,...l}[g]===m})?[...u,d,f]:u},[]);return Dl(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)},Sv=Qc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_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"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-6",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),He=K({__name:"Button",props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(n,o)=>(S(),G(_(Mt),{as:e.as,"as-child":e.asChild,class:Ie(_(nt)(_(Sv)({variant:e.variant,size:e.size}),t.class))},{default:$(()=>[ae(n.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),Ev=["type","placeholder","disabled"],$s=K({__name:"Input",props:_d({class:{},type:{default:"text"},placeholder:{},disabled:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=kd(e,"modelValue");return(o,r)=>Ws((S(),j("input",{"onUpdate:modelValue":r[0]||(r[0]=s=>n.value=s),type:e.type,placeholder:e.placeholder,disabled:e.disabled,class:Ie(_(nt)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t.class))},null,10,Ev)),[[Tf,n.value]])}}),_o=K({__name:"Label",props:{class:{},for:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(S(),G(_(Rm),{for:t.for,class:Ie(_(nt)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t.class))},{default:$(()=>[ae(n.$slots,"default")]),_:3},8,["for","class"]))}}),Ov=K({__name:"Card",props:{class:{}},setup(e){const t=e;return(n,o)=>(S(),j("div",{class:Ie(_(nt)("rounded-xl border bg-card text-card-foreground shadow",t.class))},[ae(n.$slots,"default")],2))}}),Pv=K({__name:"CardHeader",props:{class:{}},setup(e){const t=e;return(n,o)=>(S(),j("div",{class:Ie(_(nt)("flex flex-col space-y-1.5 p-6",t.class))},[ae(n.$slots,"default")],2))}}),kv=K({__name:"CardTitle",props:{class:{}},setup(e){const t=e;return(n,o)=>(S(),j("h3",{class:Ie(_(nt)("font-semibold leading-none tracking-tight",t.class))},[ae(n.$slots,"default")],2))}}),Tv=K({__name:"CardDescription",props:{class:{}},setup(e){const t=e;return(n,o)=>(S(),j("p",{class:Ie(_(nt)("text-sm text-muted-foreground",t.class))},[ae(n.$slots,"default")],2))}}),Rv=K({__name:"CardContent",props:{class:{}},setup(e){const t=e;return(n,o)=>(S(),j("div",{class:Ie(_(nt)("p-6 pt-0",t.class))},[ae(n.$slots,"default")],2))}}),Iv=K({__name:"CardFooter",props:{class:{}},setup(e){const t=e;return(n,o)=>(S(),j("div",{class:Ie(_(nt)("flex items-center p-6 pt-0",t.class))},[ae(n.$slots,"default")],2))}}),Mv=["aria-label"],Dv={class:"adobe-app-icon__label"},Nv=K({__name:"AdobeAppIcon",props:{app:{},size:{default:32}},setup(e){const t={ps:{label:"Ps",bg:"#001E36",fg:"#31A8FF"},ai:{label:"Ai",bg:"#330000",fg:"#FF9A00"},ae:{label:"Ae",bg:"#00005B",fg:"#9999FF"},pr:{label:"Pr",bg:"#00005B",fg:"#EA77FF"},id:{label:"Id",bg:"#49021F",fg:"#F36"},xd:{label:"Xd",bg:"#1E0033",fg:"#FF61F6"},lr:{label:"Lr",bg:"#001E36",fg:"#31A8FF"}},n=e,o=F(()=>t[n.app]),r=F(()=>({width:`${n.size}px`,height:`${n.size}px`,background:o.value.bg,color:o.value.fg,borderRadius:`${Math.max(2,Math.round(n.size*.1875))}px`,fontSize:`${Math.round(n.size*.55)}px`}));return(s,i)=>(S(),j("div",{class:"adobe-app-icon",style:Pn(r.value),"aria-label":o.value.label},[T("span",Dv,se(o.value.label),1)],12,Mv))}}),$v=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ls=$v(Nv,[["__scopeId","data-v-ea369691"]]),Lv="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eAnthropic%3c/title%3e%3cpath%20d='M13.827%203.52h3.603L24%2020h-3.603l-6.57-16.48zm-7.258%200h3.767L16.906%2020h-3.674l-1.343-3.461H5.017l-1.344%203.46H0L6.57%203.522zm4.132%209.959L8.453%207.687%206.205%2013.48H10.7z'%3e%3c/path%3e%3c/svg%3e",Bv="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eOpenAI%3c/title%3e%3cpath%20d='M9.205%208.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357%201.356-.523%202.117-.523%202.854%200%204.662%202.212%204.662%204.566%200%20.167%200%20.357-.024.547l-4.71-2.759a.797.797%200%2000-.856%200l-5.97%203.473zm10.609%208.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473%201.95-1.118a.433.433%200%2001.476%200l4.543%202.617c1.309.76%202.189%202.378%202.189%203.948%200%201.808-1.07%203.473-2.76%204.163zM7.802%2012.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545%201.95-4.472%204.591-4.472%201%200%201.927.333%202.712.928L8.23%205.067c-.285.166-.428.404-.428.737v6.898zM12%2015.128l-2.795-1.57v-3.33L12%208.658l2.795%201.57v3.33L12%2015.128zm1.796%207.23c-1%200-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974%201.142c.167.095.238.238.238.428v5.233c0%202.545-1.974%204.472-4.614%204.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482%204.482%200%20014.21%206.327v5.423c0%20.333.143.571.428.738l5.947%203.449-1.95%201.118a.432.432%200%2001-.476%200zm-.262%203.9c-2.688%200-4.662-2.021-4.662-4.519%200-.19.024-.38.047-.57l4.686%202.71c.286.167.571.167.856%200l5.97-3.448v2.26c0%20.19-.07.333-.237.428l-4.543%202.616c-.619.357-1.356.523-2.117.523zm5.899%202.83a5.947%205.947%200%20005.827-4.756C22.287%2018.339%2024%2015.84%2024%2013.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498%200-3.401-2.759-5.947-5.946-5.947-.642%200-1.26.095-1.88.31A5.962%205.962%200%200010.205%200a5.947%205.947%200%2000-5.827%204.757C1.713%205.447%200%207.945%200%2010.49c0%201.666.713%203.283%201.998%204.448-.119.5-.19%201-.19%201.499%200%203.401%202.759%205.946%205.946%205.946.642%200%201.26-.095%201.88-.309a5.96%205.96%200%20004.162%201.713z'%3e%3c/path%3e%3c/svg%3e",Fv="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eOpenRouter%3c/title%3e%3cpath%20d='M16.804%201.957l7.22%204.105v.087L16.73%2010.21l.017-2.117-.821-.03c-1.059-.028-1.611.002-2.268.11-1.064.175-2.038.577-3.147%201.352L8.345%2011.03c-.284.195-.495.336-.68.455l-.515.322-.397.234.385.23.53.338c.476.314%201.17.796%202.701%201.866%201.11.775%202.083%201.177%203.147%201.352l.3.045c.694.091%201.375.094%202.825.033l.022-2.159%207.22%204.105v.087L16.589%2022l.014-1.862-.635.022c-1.386.042-2.137.002-3.138-.162-1.694-.28-3.26-.926-4.881-2.059l-2.158-1.5a21.997%2021.997%200%2000-.755-.498l-.467-.28a55.927%2055.927%200%2000-.76-.43C2.908%2014.73.563%2014.116%200%2014.116V9.888l.14.004c.564-.007%202.91-.622%203.809-1.124l1.016-.58.438-.274c.428-.28%201.072-.726%202.686-1.853%201.621-1.133%203.186-1.78%204.881-2.059%201.152-.19%201.974-.213%203.814-.138l.02-1.907z'%3e%3c/path%3e%3c/svg%3e",qv="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eGemini%3c/title%3e%3cpath%20d='M20.616%2010.835a14.147%2014.147%200%2001-4.45-3.001%2014.111%2014.111%200%2001-3.678-6.452.503.503%200%2000-.975%200%2014.134%2014.134%200%2001-3.679%206.452%2014.155%2014.155%200%2001-4.45%203.001c-.65.28-1.318.505-2.002.678a.502.502%200%20000%20.975c.684.172%201.35.397%202.002.677a14.147%2014.147%200%20014.45%203.001%2014.112%2014.112%200%20013.679%206.453.502.502%200%2000.975%200c.172-.685.397-1.351.677-2.003a14.145%2014.145%200%20013.001-4.45%2014.113%2014.113%200%20016.453-3.678.503.503%200%20000-.975%2013.245%2013.245%200%2001-2.003-.678z'%20fill='%233186FF'%3e%3c/path%3e%3cpath%20d='M20.616%2010.835a14.147%2014.147%200%2001-4.45-3.001%2014.111%2014.111%200%2001-3.678-6.452.503.503%200%2000-.975%200%2014.134%2014.134%200%2001-3.679%206.452%2014.155%2014.155%200%2001-4.45%203.001c-.65.28-1.318.505-2.002.678a.502.502%200%20000%20.975c.684.172%201.35.397%202.002.677a14.147%2014.147%200%20014.45%203.001%2014.112%2014.112%200%20013.679%206.453.502.502%200%2000.975%200c.172-.685.397-1.351.677-2.003a14.145%2014.145%200%20013.001-4.45%2014.113%2014.113%200%20016.453-3.678.503.503%200%20000-.975%2013.245%2013.245%200%2001-2.003-.678z'%20fill='url(%23lobe-icons-gemini-0-_R_0_)'%3e%3c/path%3e%3cpath%20d='M20.616%2010.835a14.147%2014.147%200%2001-4.45-3.001%2014.111%2014.111%200%2001-3.678-6.452.503.503%200%2000-.975%200%2014.134%2014.134%200%2001-3.679%206.452%2014.155%2014.155%200%2001-4.45%203.001c-.65.28-1.318.505-2.002.678a.502.502%200%20000%20.975c.684.172%201.35.397%202.002.677a14.147%2014.147%200%20014.45%203.001%2014.112%2014.112%200%20013.679%206.453.502.502%200%2000.975%200c.172-.685.397-1.351.677-2.003a14.145%2014.145%200%20013.001-4.45%2014.113%2014.113%200%20016.453-3.678.503.503%200%20000-.975%2013.245%2013.245%200%2001-2.003-.678z'%20fill='url(%23lobe-icons-gemini-1-_R_0_)'%3e%3c/path%3e%3cpath%20d='M20.616%2010.835a14.147%2014.147%200%2001-4.45-3.001%2014.111%2014.111%200%2001-3.678-6.452.503.503%200%2000-.975%200%2014.134%2014.134%200%2001-3.679%206.452%2014.155%2014.155%200%2001-4.45%203.001c-.65.28-1.318.505-2.002.678a.502.502%200%20000%20.975c.684.172%201.35.397%202.002.677a14.147%2014.147%200%20014.45%203.001%2014.112%2014.112%200%20013.679%206.453.502.502%200%2000.975%200c.172-.685.397-1.351.677-2.003a14.145%2014.145%200%20013.001-4.45%2014.113%2014.113%200%20016.453-3.678.503.503%200%20000-.975%2013.245%2013.245%200%2001-2.003-.678z'%20fill='url(%23lobe-icons-gemini-2-_R_0_)'%3e%3c/path%3e%3cdefs%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='lobe-icons-gemini-0-_R_0_'%20x1='7'%20x2='11'%20y1='15.5'%20y2='12'%3e%3cstop%20stop-color='%2308B962'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%2308B962'%20stop-opacity='0'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='lobe-icons-gemini-1-_R_0_'%20x1='8'%20x2='11.5'%20y1='5.5'%20y2='11'%3e%3cstop%20stop-color='%23F94543'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23F94543'%20stop-opacity='0'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='lobe-icons-gemini-2-_R_0_'%20x1='3.5'%20x2='17.5'%20y1='13.5'%20y2='12'%3e%3cstop%20stop-color='%23FABC12'%3e%3c/stop%3e%3cstop%20offset='.46'%20stop-color='%23FABC12'%20stop-opacity='0'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Vv=["src","alt","width","height"],Io=K({__name:"ProviderIcon",props:{provider:{},size:{default:16}},setup(e){const t={anthropic:Lv,openai:Bv,openrouter:Fv,google:qv},n={anthropic:"Anthropic",openai:"OpenAI",openrouter:"OpenRouter",google:"Google"},o={anthropic:!0,openai:!0,openrouter:!0,google:!1},r=e,s=F(()=>t[r.provider]),i=F(()=>n[r.provider]),l=F(()=>o[r.provider]);return(a,u)=>(S(),j("img",{src:s.value,alt:i.value,width:r.size,height:r.size,class:Ie(["provider-icon",{"provider-icon--mono":l.value}]),decoding:"async",loading:"lazy"},null,10,Vv))}});class Zc extends Error{constructor(t,n,o){super(n),this.status=t,this.data=o,this.name="ApiError"}}async function Ge(e,t={}){const n=new Headers(t.headers);t.body&&!n.has("content-type")&&n.set("content-type","application/json");const o=await fetch(e,{...t,headers:n});if(!o.ok){const r=await o.json().catch(()=>({}));throw new Zc(o.status,r.error??o.statusText,r)}if(o.status!==204)return await o.json()}const zv=()=>Ge("/api/status"),jv=e=>Ge("/api/active",{method:"POST",body:JSON.stringify(e)}),fi=()=>Ge("/api/providers"),eu=(e,t)=>Ge(`/api/providers/${e}/validate-key`,{method:"POST",body:JSON.stringify({apiKey:t})}),tu=(e,t)=>Ge(`/api/providers/${e}/key`,{method:"POST",body:JSON.stringify({apiKey:t})}),Uv=e=>Ge(`/api/providers/${e}/key`,{method:"DELETE"}),nu=(e,t)=>Ge(`/api/providers/${e}/auth-method`,{method:"POST",body:JSON.stringify({authMethod:t})}),ou=e=>Ge(`/api/providers/${e}/validate-cli`,{method:"POST",body:"{}"}),Hv=(e,t)=>Ge(`/api/providers/${e}/cli-path`,{method:"POST",body:JSON.stringify({cliPath:t})}),Wv=()=>Ge("/api/chats"),Kv=e=>Ge("/api/chats",{method:"POST",body:JSON.stringify(e)}),Gv=e=>Ge(`/api/chats/${e}`),Jv=(e,t)=>Ge(`/api/chats/${e}`,{method:"PATCH",body:JSON.stringify({title:t})}),Nl=(e,t)=>Ge(`/api/chats/${e}`,{method:"PATCH",body:JSON.stringify(t)}),Xv=e=>Ge(`/api/chats/${e}`,{method:"DELETE"});async function*Yv(e,t){const n=await fetch("/api/chat",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e),signal:t});if(!n.ok||!n.body){const i=await n.text().catch(()=>"");throw new Zc(n.status,i||n.statusText)}const o=n.body.getReader(),r=new TextDecoder;let s="";for(;;){const{value:i,done:l}=await o.read();if(l)break;s+=r.decode(i,{stream:!0});const a=s.split(/\n\n/);s=a.pop()??"";for(const u of a){const c=Zv(u);c&&(yield c)}}}const Qv=e=>Ge(`/api/abort/${encodeURIComponent(e)}`,{method:"POST"});function Zv(e){const t=e.split(/\n/);let n="message";const o=[];for(const s of t)s.startsWith("event:")?n=s.slice(6).trim():s.startsWith("data:")&&o.push(s.slice(5).trimStart());if(!o.length)return null;const r=o.join(`
|
|
138
|
-
`);try{return{event:n,data:JSON.parse(r)}}catch{return{event:n,data:r}}}const ey={class:"flex min-h-screen items-center justify-center p-6"},ty={class:"space-y-2"},ny={class:"grid grid-cols-2 gap-2"},oy=["onClick"],ry={key:0,class:"space-y-2"},sy={class:"flex gap-2"},iy={class:"space-y-2"},ly=["href"],ay={key:2,class:"rounded-md bg-muted/40 p-3 text-xs text-muted-foreground"},cy={class:"mt-2"},uy={class:"text-foreground"},dy={class:"mt-1"},fy={class:"text-foreground"},py={key:3,class:"text-sm text-destructive"},hy=K({__name:"Onboarding",emits:["saved"],setup(e,{emit:t}){const n=t,o=U([]),r=U("anthropic"),s=U("api_key"),i=U(""),l=U(!1),a=U(null),u=F(()=>o.value.find(m=>m.id===r.value)),c=F(()=>{var m;return((m=u.value)==null?void 0:m.supportedAuthMethods.includes("cli_account"))??!1}),d={anthropic:{install:"npm install -g @anthropic-ai/claude-code",login:"claude auth login"},google:{install:"npm install -g @google/gemini-cli",login:"gemini auth login"}};Dt(async()=>{o.value=await fi()});async function f(m){r.value=m;const h=o.value.find(v=>v.id===m);s.value=(h==null?void 0:h.authMethod)??"api_key",a.value=null}async function p(m){s.value=m,a.value=null,u.value&&await nu(u.value.id,m)}async function b(){const m=u.value;if(m){a.value=null,l.value=!0;try{if(s.value==="api_key"){const h=await eu(m.id,i.value);if(!h.ok){a.value=h.error||"Could not validate this key.";return}await tu(m.id,i.value)}else{const h=await ou(m.id);if(!h.ok){a.value=h.error||"CLI is not authenticated.";return}}await jv({activeProvider:m.id,activeModel:m.defaultModel}),n("saved")}catch(h){a.value=h.message}finally{l.value=!1}}}const g=F(()=>u.value?s.value==="api_key"?!!i.value.trim():!0:!1);return(m,h)=>(S(),j("div",ey,[I(_(Ov),{class:"w-full max-w-md"},{default:$(()=>[I(_(Pv),null,{default:$(()=>[I(Ls,{app:"ps",size:40,class:"mb-2"}),I(_(kv),null,{default:$(()=>[...h[3]||(h[3]=[ie("Connect an AI provider",-1)])]),_:1}),I(_(Tv),null,{default:$(()=>[...h[4]||(h[4]=[ie(" Use your own API key or sign in with a CLI subscription account. Credentials are stored locally at ",-1),T("code",{class:"text-xs"},"~/.photoshop-mcp/data.db",-1),ie(" and never leave your machine. ",-1)])]),_:1})]),_:1}),I(_(Rv),{class:"space-y-4"},{default:$(()=>{var v;return[T("div",ty,[I(_(_o),null,{default:$(()=>[...h[5]||(h[5]=[ie("Provider",-1)])]),_:1}),T("div",ny,[(S(!0),j(Se,null,fn(o.value,w=>(S(),j("button",{key:w.id,type:"button",class:Ie(["flex flex-col items-center gap-1.5 rounded-md border px-2 py-3 text-xs font-medium transition",r.value===w.id?"border-primary bg-primary/10 text-primary":"border-input text-muted-foreground hover:bg-accent"]),onClick:A=>f(w.id)},[I(Io,{provider:w.id,size:22},null,8,["provider"]),ie(" "+se(w.label),1)],10,oy))),128))])]),c.value?(S(),j("div",ry,[I(_(_o),null,{default:$(()=>[...h[6]||(h[6]=[ie("Authentication",-1)])]),_:1}),T("div",sy,[I(_(He),{size:"sm",class:"flex-1",variant:s.value==="api_key"?"default":"outline",onClick:h[0]||(h[0]=w=>p("api_key"))},{default:$(()=>[...h[7]||(h[7]=[ie(" API key ",-1)])]),_:1},8,["variant"]),I(_(He),{size:"sm",class:"flex-1",variant:s.value==="cli_account"?"default":"outline",onClick:h[1]||(h[1]=w=>p("cli_account"))},{default:$(()=>[...h[8]||(h[8]=[ie(" Uses your account ",-1)])]),_:1},8,["variant"])])])):be("",!0),s.value==="api_key"?(S(),j(Se,{key:1},[T("div",iy,[I(_(_o),{for:"api-key"},{default:$(()=>[...h[9]||(h[9]=[ie("API key",-1)])]),_:1}),I(_($s),{id:"api-key",modelValue:i.value,"onUpdate:modelValue":h[2]||(h[2]=w=>i.value=w),type:"password",placeholder:((v=u.value)==null?void 0:v.apiKeyHint)??"",disabled:l.value,onKeydown:As(b,["enter"])},null,8,["modelValue","placeholder","disabled"])]),u.value?(S(),j("a",{key:0,href:u.value.apiKeyHelpUrl,target:"_blank",rel:"noreferrer",class:"inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground"},[h[10]||(h[10]=ie(" Get an API key ",-1)),I(_(pc),{class:"size-3"})],8,ly)):be("",!0)],64)):u.value&&d[u.value.id]?(S(),j("div",ay,[h[13]||(h[13]=T("p",{class:"font-medium text-foreground"},"Set up the CLI first",-1)),T("p",cy,[h[11]||(h[11]=ie(" Install: ",-1)),T("code",uy,se(d[u.value.id].install),1)]),T("p",dy,[h[12]||(h[12]=ie(" Login: ",-1)),T("code",fy,se(d[u.value.id].login),1)]),h[14]||(h[14]=T("p",{class:"mt-2"}," Then click validate — usage counts against your subscription quota, not API billing. ",-1))])):be("",!0),a.value?(S(),j("p",py,se(a.value),1)):be("",!0)]}),_:1}),I(_(Iv),null,{default:$(()=>[I(_(He),{class:"w-full",disabled:l.value||!g.value,onClick:b},{default:$(()=>[l.value?(S(),G(_(dr),{key:0,class:"size-4 animate-spin"})):be("",!0),ie(" "+se(l.value?"Validating…":s.value==="api_key"?"Validate & save":"Check connection & continue"),1)]),_:1},8,["disabled"])]),_:1})]),_:1})]))}}),gy=K({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=kn(e,t);return(s,i)=>(S(),G(_(Lm),Do(Qn(_(r))),{default:$(()=>[ae(s.$slots,"default")]),_:3},16))}}),my=K({__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:6},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=kn(n,t);return(s,i)=>(S(),G(_(Um),null,{default:$(()=>[I(_(zm),Ue(_(r),{class:_(nt)("z-50 overflow-hidden rounded-md border border-border bg-popover px-3 py-2 text-xs text-popover-foreground shadow-md","data-[state=delayed-open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=delayed-open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=delayed-open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1","data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",n.class)}),{default:$(()=>[ae(s.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),vy=K({__name:"TooltipProvider",props:{delayDuration:{default:200},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean},content:{}},setup(e){const n=$r(e);return(o,r)=>(S(),G(_(Dm),Do(Qn(_(n))),{default:$(()=>[ae(o.$slots,"default")]),_:3},16))}}),yy=K({__name:"TooltipTrigger",props:{reference:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e;return(n,o)=>(S(),G(_(Wm),Ue(t,{class:_(nt)(t.class)}),{default:$(()=>[ae(n.$slots,"default")]),_:3},16,["class"]))}}),by={class:"flex h-14 shrink-0 items-center justify-between gap-3 border-b border-border bg-background/80 px-4 backdrop-blur"},xy={class:"min-w-0 flex-1 truncate text-sm font-medium"},_y={key:0,class:"rounded-md border border-border bg-muted/40 px-2 py-1 text-xs font-medium text-muted-foreground"},wy={class:"space-y-2"},Cy={class:"grid grid-cols-2 gap-x-3 gap-y-1 text-xs"},Ay={class:"text-right tabular-nums"},Sy={class:"text-right tabular-nums"},Ey={class:"text-right tabular-nums"},Oy={class:"text-right tabular-nums"},Py={class:"text-right tabular-nums"},ky={class:"border-t border-border pt-2 text-xs"},Ty={class:"flex items-center justify-between font-medium"},Ry={class:"tabular-nums"},Iy={key:0,class:"text-[11px] leading-snug text-muted-foreground"},My=K({__name:"StatusBar",props:{chat:{},totals:{},subscriptionMode:{type:Boolean}},setup(e){const t=e,n=new Intl.NumberFormat("en-US");function o(a){return a<=0?"$0.0000":a<1e-4?"< $0.0001":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:4,maximumFractionDigits:4}).format(a)}function r(a){return n.format(a)}const s=F(()=>{const a=t.totals;return!!(a&&a.assistantTurns>0)}),i=F(()=>{const a=t.totals;return!!(a&&a.assistantTurns>0&&a.pricedTurns<a.assistantTurns)}),l=F(()=>{const a=t.totals;return!a||a.assistantTurns===0||a.pricedTurns===0?null:o(a.totalUsd)});return(a,u)=>{var c;return S(),j("header",by,[T("div",xy,se(((c=e.chat)==null?void 0:c.title)??"New chat"),1),e.chat&&e.subscriptionMode?(S(),j("span",_y," Included in subscription ")):e.chat&&s.value?(S(),G(_(vy),{key:1},{default:$(()=>[I(_(gy),null,{default:$(()=>[I(_(yy),{class:"rounded-md border border-border bg-muted/40 px-2 py-1 text-xs font-medium tabular-nums text-muted-foreground hover:bg-muted"},{default:$(()=>[ie(se(l.value??"—"),1)]),_:1}),I(_(my),{align:"end",class:"w-64"},{default:$(()=>[T("div",wy,[u[6]||(u[6]=T("div",{class:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground"}," Conversation usage ",-1)),T("div",Cy,[u[3]||(u[3]=T("span",{class:"text-muted-foreground"},"Input",-1)),T("span",Ay,se(r(e.totals.inputTokens))+" tok · "+se(o(e.totals.inputUsd)),1),e.totals.cachedReadTokens>0?(S(),j(Se,{key:0},[u[0]||(u[0]=T("span",{class:"text-muted-foreground"},"Cached read",-1)),T("span",Sy,se(r(e.totals.cachedReadTokens))+" tok · "+se(o(e.totals.cachedReadUsd)),1)],64)):be("",!0),e.totals.cachedWriteTokens>0?(S(),j(Se,{key:1},[u[1]||(u[1]=T("span",{class:"text-muted-foreground"},"Cached write",-1)),T("span",Ey,se(r(e.totals.cachedWriteTokens))+" tok · "+se(o(e.totals.cachedWriteUsd)),1)],64)):be("",!0),u[4]||(u[4]=T("span",{class:"text-muted-foreground"},"Output",-1)),T("span",Oy,se(r(e.totals.outputTokens))+" tok · "+se(o(e.totals.outputUsd)),1),e.totals.reasoningTokens>0?(S(),j(Se,{key:2},[u[2]||(u[2]=T("span",{class:"text-muted-foreground"},"Reasoning",-1)),T("span",Py,se(r(e.totals.reasoningTokens))+" tok ",1)],64)):be("",!0)]),T("div",ky,[T("div",Ty,[u[5]||(u[5]=T("span",null,"Total",-1)),T("span",Ry,se(r(e.totals.totalTokens))+" tok · "+se(o(e.totals.totalUsd)),1)])]),i.value?(S(),j("p",Iy," Some turns lack pricing data, so this total may underestimate cost. ")):be("",!0)])]),_:1})]),_:1})]),_:1})):be("",!0)])}}}),Dy=Qc("inline-flex items-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 transition-colors",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground",success:"border-transparent bg-emerald-500/15 text-emerald-500 dark:bg-emerald-500/20",warning:"border-transparent bg-amber-500/15 text-amber-500 dark:bg-amber-500/20"}},defaultVariants:{variant:"default"}}),ru=K({__name:"Badge",props:{variant:{},class:{}},setup(e){const t=e;return(n,o)=>(S(),j("span",{class:Ie(_(nt)(_(Dy)({variant:e.variant}),t.class))},[ae(n.$slots,"default")],2))}}),Ny={class:"rounded-lg border border-border bg-card/50"},$y={class:"font-mono text-foreground"},Ly={class:"ml-auto flex items-center gap-1.5"},By={key:0,class:"space-y-2 border-t border-border p-3 text-xs"},Fy={class:"overflow-x-auto rounded-md bg-muted/40 p-2 text-[11px] leading-snug"},qy={key:0},Vy={class:"max-h-64 overflow-auto rounded-md bg-muted/40 p-2 text-[11px] leading-snug"},zy=K({__name:"ToolCallCard",props:{toolCall:{}},setup(e){const t=e,n=U(!1),o=F(()=>{const l=t.toolCall.name;return l.startsWith("mcp__photoshop__")?l.slice(16):l}),r=F(()=>i(t.toolCall.input)),s=F(()=>{var l;return((l=t.toolCall.result)==null?void 0:l.content)??""});function i(l){try{return JSON.stringify(l,null,2)}catch{return String(l)}}return(l,a)=>(S(),j("div",Ny,[T("button",{type:"button",class:"flex w-full items-center gap-2 px-3 py-2 text-left text-xs",onClick:a[0]||(a[0]=u=>n.value=!n.value)},[(S(),G(Gs(n.value?_(fc):_(Qp)),{class:"size-3 text-muted-foreground"})),T("span",$y,se(o.value),1),T("span",Ly,[e.toolCall.status==="pending"?(S(),G(_(dr),{key:0,class:"size-3 animate-spin text-muted-foreground"})):e.toolCall.status==="success"?(S(),G(_(Zp),{key:1,class:"size-3.5 text-emerald-500"})):(S(),G(_(eh),{key:2,class:"size-3.5 text-destructive"})),e.toolCall.status!=="pending"?(S(),G(_(ru),{key:3,variant:e.toolCall.status==="success"?"success":"destructive",class:"text-[10px]"},{default:$(()=>[ie(se(e.toolCall.status),1)]),_:1},8,["variant"])):be("",!0)])]),n.value?(S(),j("div",By,[T("div",null,[a[1]||(a[1]=T("div",{class:"mb-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground"}," Input ",-1)),T("pre",Fy,se(r.value),1)]),e.toolCall.result?(S(),j("div",qy,[a[2]||(a[2]=T("div",{class:"mb-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground"}," Result ",-1)),T("pre",Vy,se(s.value),1)])):be("",!0)])):be("",!0)]))}}),jy={class:"mx-auto flex max-w-3xl flex-col gap-6 px-4 py-6"},Uy={key:0,class:"rounded-xl border border-dashed border-border bg-card/40 p-8 text-center"},Hy={class:"flex size-7 shrink-0 items-center justify-center rounded-md border border-border bg-card text-muted-foreground"},Wy={class:"flex min-w-0 flex-1 flex-col gap-2"},Ky={class:"text-xs font-medium text-muted-foreground"},Gy={key:0,class:"whitespace-pre-wrap text-sm leading-relaxed text-foreground"},Jy={key:1,class:"flex items-center gap-2 text-xs text-muted-foreground"},Xy=K({__name:"MessageList",props:{messages:{},busy:{type:Boolean},providers:{}},setup(e){const t=e,n=U(null);async function o(){await vt(),n.value&&(n.value.scrollTop=n.value.scrollHeight)}Le(()=>{var s;return[t.messages.length,t.busy,(s=t.messages[t.messages.length-1])==null?void 0:s.text]},()=>{o()},{deep:!0}),Dt(o);function r(s){var u;if(!s.provider)return"Assistant";const i=t.providers.find(c=>c.id===s.provider),l=(i==null?void 0:i.label)??s.provider,a=((u=i==null?void 0:i.models.find(c=>c.id===s.model))==null?void 0:u.label)??s.model;return a?`${l} · ${a}`:l}return(s,i)=>(S(),j("div",{ref_key:"scroller",ref:n,class:"flex-1 overflow-y-auto"},[T("div",jy,[e.messages.length===0?(S(),j("div",Uy,[I(_(hl),{class:"mx-auto mb-3 size-6 text-muted-foreground"}),i[0]||(i[0]=T("h2",{class:"text-base font-semibold"},"Tell the assistant what to do in Photoshop",-1)),i[1]||(i[1]=T("p",{class:"mx-auto mt-2 max-w-md text-sm text-muted-foreground"},` Try: "Create a new 1920×1080 document, fill the background with light blue, add the text 'Hello' in the center, and save it as hello.psd on my Desktop." `,-1))])):be("",!0),(S(!0),j(Se,null,fn(e.messages,l=>(S(),j("div",{key:l.id,class:"flex gap-3"},[T("div",Hy,[l.role==="user"?(S(),G(_(sh),{key:0,class:"size-4"})):l.provider?(S(),G(Io,{key:1,provider:l.provider,size:16},null,8,["provider"])):(S(),G(_(hl),{key:2,class:"size-4"}))]),T("div",Wy,[T("div",Ky,se(l.role==="user"?"You":r(l)),1),l.text?(S(),j("div",Gy,se(l.text),1)):be("",!0),(S(!0),j(Se,null,fn(l.toolCalls,a=>(S(),G(zy,{key:a.id,"tool-call":a},null,8,["tool-call"]))),128))])]))),128)),e.busy?(S(),j("div",Jy,[...i[2]||(i[2]=[T("span",{class:"inline-block size-1.5 animate-pulse rounded-full bg-muted-foreground"},null,-1),ie(" Working… ",-1)])])):be("",!0)])],512))}}),Yy={class:"border-t border-border bg-background px-4 py-3"},Qy={class:"mx-auto max-w-3xl rounded-2xl border border-border bg-card shadow-sm transition-shadow focus-within:ring-1 focus-within:ring-ring"},Zy=["disabled"],e0={class:"flex items-center justify-between gap-2 px-2 pb-2"},t0={class:"min-w-0 flex-1"},n0=K({__name:"Composer",props:{busy:{type:Boolean},disabled:{type:Boolean}},emits:["send","abort"],setup(e,{emit:t}){const n=e,o=t,r=U("");function s(l){l.key==="Enter"&&!l.shiftKey&&!l.isComposing&&(l.preventDefault(),i())}function i(){const l=r.value.trim();!l||n.busy||n.disabled||(o("send",l),r.value="")}return(l,a)=>(S(),j("div",Yy,[T("div",Qy,[Ws(T("textarea",{"onUpdate:modelValue":a[0]||(a[0]=u=>r.value=u),disabled:e.busy||e.disabled,rows:2,placeholder:"Describe what you want the agent to do in Photoshop…",class:"block w-full resize-none border-0 bg-transparent px-4 pt-3 pb-1 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-0 disabled:cursor-not-allowed disabled:opacity-60 max-h-48 min-h-[52px]",onKeydown:s},null,40,Zy),[[ur,r.value]]),T("div",e0,[T("div",t0,[ae(l.$slots,"actions")]),e.busy?(S(),G(_(He),{key:1,size:"icon",variant:"secondary",class:"size-8 rounded-full",onClick:a[1]||(a[1]=u=>o("abort"))},{default:$(()=>[I(_(rh),{class:"size-3.5"})]),_:1})):(S(),G(_(He),{key:0,size:"icon",disabled:!r.value.trim()||e.disabled,class:"size-8 rounded-full disabled:opacity-40",onClick:i},{default:$(()=>[I(_(Yp),{class:"size-4"})]),_:1},8,["disabled"]))])]),a[2]||(a[2]=T("p",{class:"mx-auto mt-2 max-w-3xl text-center text-[11px] text-muted-foreground"},[ie(" Press "),T("kbd",{class:"rounded border border-border px-1 py-px text-[10px]"},"Enter"),ie(" to send · "),T("kbd",{class:"rounded border border-border px-1 py-px text-[10px]"},"Shift+Enter"),ie(" for newline ")],-1))]))}}),su=K({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=kn(e,t);return(s,i)=>(S(),G(_(ym),Do(Qn(_(r))),{default:$(()=>[ae(s.$slots,"default")]),_:3},16))}}),iu=K({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e;return(n,o)=>(S(),G(_(km),Ue(t,{class:_(nt)(t.class)}),{default:$(()=>[ae(n.$slots,"default")]),_:3},16,["class"]))}}),lu=K({__name:"PopoverContent",props:{forceMount:{type:Boolean},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{default:"center"},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:{},disableOutsidePointerEvents:{type:Boolean},class:{}},setup(e){const t=e;return(n,o)=>(S(),G(_(Om),null,{default:$(()=>[I(_(Sm),Ue(t,{class:_(nt)("z-50 w-72 rounded-md border border-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=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t.class)}),{default:$(()=>[ae(n.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),o0={class:"border-t border-border/50 bg-background/60 px-4 py-2 backdrop-blur"},r0={class:"mx-auto max-w-3xl"},s0={class:"font-normal"},i0={class:"font-medium text-foreground"},l0={class:"max-h-96 overflow-y-auto"},a0={class:"flex items-center justify-between gap-2 bg-muted/50 px-3 py-1.5 text-xs font-medium text-muted-foreground"},c0={class:"inline-flex items-center gap-1.5"},u0={key:0,class:"inline-flex items-center gap-1 text-[10px] text-muted-foreground/80"},d0={class:"py-1"},f0=["onClick"],p0={class:"min-w-0 flex-1"},h0={class:"truncate font-medium"},g0=K({__name:"ModelSelector",props:{providers:{},currentProvider:{},currentModel:{},disabled:{type:Boolean}},emits:["update:provider","update:model","open-settings"],setup(e,{emit:t}){const n=e,o=t,r=U(!1),s=F(()=>n.providers.find(a=>a.id===n.currentProvider)),i=F(()=>{var a;return(a=s.value)==null?void 0:a.models.find(u=>u.id===n.currentModel)});function l(a,u){if(!a.isAuthenticated){r.value=!1,o("open-settings");return}a.id!==n.currentProvider&&o("update:provider",a.id),u.id!==n.currentModel&&o("update:model",u.id),r.value=!1}return(a,u)=>(S(),j("div",o0,[T("div",r0,[I(_(su),{open:r.value,"onUpdate:open":u[0]||(u[0]=c=>r.value=c)},{default:$(()=>[I(_(iu),{"as-child":""},{default:$(()=>[I(_(He),{variant:"ghost",size:"sm",disabled:e.disabled,class:"h-7 gap-1.5 px-2 text-xs text-muted-foreground hover:text-foreground"},{default:$(()=>{var c;return[I(Io,{provider:e.currentProvider,size:14},null,8,["provider"]),T("span",s0,[u[1]||(u[1]=ie(" Model: ",-1)),T("span",i0,se(((c=i.value)==null?void 0:c.label)??"Select model"),1)]),I(_(fc),{class:"size-3.5 opacity-50"})]}),_:1},8,["disabled"])]),_:1}),I(_(lu),{class:"w-80 p-0",align:"start",side:"top"},{default:$(()=>[T("div",l0,[(S(!0),j(Se,null,fn(e.providers,c=>(S(),j("div",{key:c.id,class:"border-b border-border/50 last:border-0"},[T("div",a0,[T("span",c0,[I(Io,{provider:c.id,size:14},null,8,["provider"]),ie(" "+se(c.label),1)]),c.isAuthenticated?be("",!0):(S(),j("span",u0,[I(_(pl),{class:"size-3"}),ie(" "+se(c.authMethod==="cli_account"?"Connect account":"Add API key"),1)]))]),T("div",d0,[(S(!0),j(Se,null,fn(c.models,d=>(S(),j("button",{key:d.id,type:"button",class:Ie(["flex w-full items-center gap-2 px-3 py-2 text-left text-sm",[c.isAuthenticated?"hover:bg-accent":"opacity-50 hover:bg-muted/30",c.id===e.currentProvider&&d.id===e.currentModel?"bg-accent":""]]),onClick:f=>l(c,d)},[c.isAuthenticated?(S(),G(_(dc),{key:0,class:Ie(["size-4 shrink-0",c.id===e.currentProvider&&d.id===e.currentModel?"opacity-100":"opacity-0"])},null,8,["class"])):(S(),G(_(pl),{key:1,class:"size-3.5 shrink-0 text-muted-foreground"})),T("div",p0,[T("div",h0,se(d.label),1)])],10,f0))),128))])]))),128))])]),_:1})]),_:1},8,["open"])])]))}}),m0={class:"flex h-9 shrink-0 items-center justify-center gap-2 border-t border-border/60 bg-background/80 px-4 text-[11px] text-muted-foreground backdrop-blur"},v0="https://github.com/alisaitteke/photoshop-mcp",y0="https://github.com/alisaitteke",b0=K({__name:"Footer",setup(e){return(t,n)=>(S(),j("footer",m0,[T("a",{href:v0,target:"_blank",rel:"noopener noreferrer",class:"transition-colors hover:text-foreground"}," GitHub "),n[1]||(n[1]=T("span",{"aria-hidden":"true",class:"text-muted-foreground/60"},"·",-1)),T("span",null,[n[0]||(n[0]=ie(" by ",-1)),T("a",{href:y0,target:"_blank",rel:"noopener noreferrer",class:"transition-colors hover:text-foreground"}," @alisaitteke ")])]))}}),x0={class:"flex h-screen flex-col"},_0={key:0,class:"flex flex-1 flex-col items-center justify-center gap-3 p-8 text-center"},w0={key:0,class:"border-t border-destructive/40 bg-destructive/10 px-4 py-2 text-center text-xs text-destructive"},C0=K({__name:"ChatView",props:{providers:{},store:{},settingsOpen:{type:Boolean}},emits:["new-chat","open-settings"],setup(e,{emit:t}){const n=e,o=t,r=F(()=>{const u=n.store.activeChatId.value;return u?n.store.chats.value.find(c=>c.id===u)??null:null}),s=F(()=>{const u=r.value;return u?n.providers.find(c=>c.id===u.provider)??null:null}),i=F(()=>{var u;return((u=s.value)==null?void 0:u.authMethod)==="cli_account"});async function l(u){const c=r.value;c&&(await Nl(c.id,{provider:u}),await n.store.loadChats())}async function a(u){const c=r.value;c&&(await Nl(c.id,{model:u}),await n.store.loadChats())}return(u,c)=>(S(),j("div",x0,[I(My,{chat:r.value,totals:r.value?n.store.chatTotals.value:null,"subscription-mode":i.value},null,8,["chat","totals","subscription-mode"]),r.value?(S(),j(Se,{key:1},[I(Xy,{messages:n.store.messages,busy:n.store.sending.value,providers:n.providers},null,8,["messages","busy","providers"]),n.store.error.value?(S(),j("div",w0,se(n.store.error.value),1)):be("",!0),I(n0,{busy:n.store.sending.value,onSend:c[2]||(c[2]=d=>n.store.send(d)),onAbort:n.store.abort},{actions:$(()=>[I(g0,{providers:n.providers,"current-provider":r.value.provider,"current-model":r.value.model,disabled:n.store.sending.value,"onUpdate:provider":l,"onUpdate:model":a,onOpenSettings:c[1]||(c[1]=d=>o("open-settings"))},null,8,["providers","current-provider","current-model","disabled"])]),_:1},8,["busy","onAbort"])],64)):(S(),j("div",_0,[c[4]||(c[4]=T("p",{class:"text-sm text-muted-foreground"},"Select a chat from the sidebar or start a new one.",-1)),I(_(He),{onClick:c[0]||(c[0]=d=>o("new-chat"))},{default:$(()=>[I(_(hc),{class:"size-4"}),c[3]||(c[3]=ie(" New chat ",-1))]),_:1})])),I(b0)]))}}),A0={class:"flex items-center gap-2 border-b border-border px-3 py-3"},S0={class:"flex items-center gap-2 rounded-md transition-colors hover:bg-accent/50 p-1 -ml-1",title:"Adobe Creative Cloud Apps"},E0={class:"space-y-3"},O0={class:"grid grid-cols-3 gap-2"},P0=["disabled"],k0={class:"text-xs text-center"},T0={class:"px-3 pt-3"},R0={class:"mt-3 flex-1 overflow-y-auto px-2"},I0={key:0,class:"px-2 py-6 text-center text-xs text-muted-foreground"},M0={key:1,class:"space-y-0.5"},D0=["onClick"],N0={class:"min-w-0 flex-1"},$0=["onBlur","onKeydown"],L0=["title"],B0={class:"text-[10px] text-muted-foreground"},F0=["onClick"],q0=["onClick"],V0=["onClick"],z0={class:"border-t border-border p-2"},j0=K({__name:"Sidebar",props:{chats:{},activeChatId:{}},emits:["new-chat","select","rename","delete","open-settings"],setup(e,{emit:t}){const n=e,o=t,r=U(null),s=U(null),i=U(""),l=[{id:"ps",name:"Photoshop",active:!0},{id:"ai",name:"Illustrator",active:!1},{id:"ae",name:"After Effects",active:!1},{id:"pr",name:"Premiere Pro",active:!1},{id:"id",name:"InDesign",active:!1},{id:"xd",name:"XD",active:!1},{id:"lr",name:"Lightroom",active:!1}];function a(b,g){g.stopPropagation(),r.value=r.value===b?null:b}function u(b,g){g.stopPropagation(),s.value=b.id,i.value=b.title,r.value=null}function c(b){const g=i.value.trim();g&&o("rename",b,g),s.value=null}function d(){s.value=null}function f(b,g){g.stopPropagation(),r.value=null,o("delete",b)}function p(b){const g=new Date(b),m=new Date;return g.toDateString()===m.toDateString()?g.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"}):g.toLocaleDateString(void 0,{month:"short",day:"numeric"})}return(b,g)=>(S(),j("aside",{class:"flex h-screen w-[260px] shrink-0 flex-col border-r border-border bg-card/40",onClick:g[5]||(g[5]=m=>r.value=null)},[T("div",A0,[I(_(su),null,{default:$(()=>[I(_(iu),{"as-child":""},{default:$(()=>[T("button",S0,[I(Ls,{app:"ps",size:28}),g[6]||(g[6]=T("span",{class:"text-sm font-semibold"},"Photoshop MCP",-1))])]),_:1}),I(_(lu),{align:"start",class:"w-80"},{default:$(()=>[T("div",E0,[g[8]||(g[8]=T("div",null,[T("h4",{class:"text-sm font-semibold mb-1"},"Adobe Creative Cloud"),T("p",{class:"text-xs text-muted-foreground"}," MCP integrations for Adobe applications ")],-1)),T("div",O0,[(S(),j(Se,null,fn(l,m=>T("button",{key:m.id,disabled:!m.active,class:Ie(["group relative flex flex-col items-center gap-2 rounded-lg border border-border p-3 transition-all hover:border-primary/50 disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:border-border",{"border-primary bg-primary/5":m.active}])},[I(Ls,{app:m.id,size:32},null,8,["app"]),T("span",k0,se(m.name),1),m.active?be("",!0):(S(),G(_(ru),{key:0,variant:"secondary",class:"absolute -top-1 -right-1 text-[9px] px-1 py-0 h-4"},{default:$(()=>[...g[7]||(g[7]=[ie(" Soon ",-1)])]),_:1}))],10,P0)),64))])])]),_:1})]),_:1})]),T("div",T0,[I(_(He),{class:"w-full justify-start gap-2",variant:"outline",onClick:g[0]||(g[0]=m=>o("new-chat"))},{default:$(()=>[I(_(hc),{class:"size-4"}),g[9]||(g[9]=ie(" New chat ",-1))]),_:1})]),T("div",R0,[n.chats.length===0?(S(),j("div",I0," No chats yet. ")):(S(),j("div",M0,[(S(!0),j(Se,null,fn(n.chats,m=>(S(),j("div",{key:m.id,class:Ie(["group relative flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-accent",{"bg-accent":m.id===n.activeChatId}]),onClick:h=>o("select",m.id)},[T("div",N0,[s.value===m.id?Ws((S(),j("input",{key:0,"onUpdate:modelValue":g[1]||(g[1]=h=>i.value=h),class:"w-full rounded border border-input bg-background px-1 py-0.5 text-sm focus:outline-none focus:ring-1 focus:ring-ring",autofocus:"",onClick:g[2]||(g[2]=un(()=>{},["stop"])),onBlur:h=>c(m.id),onKeydown:[As(un(h=>c(m.id),["prevent"]),["enter"]),As(un(d,["prevent"]),["escape"])]},null,40,$0)),[[ur,i.value]]):(S(),j("div",{key:1,class:"truncate",title:m.title},se(m.title),9,L0)),T("div",B0,se(p(m.updatedAt))+" · "+se(m.provider),1)]),T("button",{class:Ie(["invisible flex size-6 items-center justify-center rounded text-muted-foreground hover:bg-background group-hover:visible",{visible:r.value===m.id}]),onClick:h=>a(m.id,h)},[I(_(th),{class:"size-3.5"})],10,F0),r.value===m.id?(S(),j("div",{key:0,class:"absolute right-1 top-9 z-10 w-32 rounded-md border border-border bg-popover p-1 text-sm shadow-md",onClick:g[3]||(g[3]=un(()=>{},["stop"]))},[T("button",{class:"flex w-full items-center gap-2 rounded px-2 py-1 text-left hover:bg-accent",onClick:h=>u(m,h)},[I(_(nh),{class:"size-3.5"}),g[10]||(g[10]=ie(" Rename ",-1))],8,q0),T("button",{class:"flex w-full items-center gap-2 rounded px-2 py-1 text-left text-destructive hover:bg-destructive/10",onClick:h=>f(m.id,h)},[I(_(gc),{class:"size-3.5"}),g[11]||(g[11]=ie(" Delete ",-1))],8,V0)])):be("",!0)],10,D0))),128))]))]),T("div",z0,[I(_(He),{variant:"ghost",size:"sm",class:"w-full justify-start gap-2",onClick:g[4]||(g[4]=m=>o("open-settings"))},{default:$(()=>[I(_(oh),{class:"size-4"}),g[12]||(g[12]=ie(" Settings ",-1))]),_:1})])]))}}),U0={class:"max-h-[90vh] w-full max-w-lg overflow-y-auto rounded-xl border border-border bg-card p-5 shadow-lg"},H0={class:"mb-4 flex items-center justify-between"},W0={class:"space-y-4"},K0={class:"mb-2 flex items-center justify-between"},G0={class:"flex items-center gap-2"},J0={class:"text-sm font-semibold"},X0={key:0,class:"inline-flex items-center gap-1 rounded-full bg-emerald-500/10 px-2 py-0.5 text-[10px] text-emerald-600 dark:text-emerald-400"},Y0=["href"],Q0={key:0,class:"mb-3 space-y-2"},Z0={class:"flex gap-2"},eb={key:1,class:"flex items-center gap-2"},tb={key:2,class:"space-y-2"},nb={key:0,class:"rounded-md bg-muted/40 p-2 text-[11px] text-muted-foreground"},ob={class:"text-foreground"},rb={class:"mt-1"},sb={class:"text-foreground"},ib={class:"space-y-1"},lb={key:3,class:"mt-2 text-xs text-destructive"},ab={class:"mt-6 flex justify-end"},cb=K({__name:"SettingsDialog",emits:["close","saved"],setup(e,{emit:t}){const n=t,o=U([]),r=U({}),s=U({}),i=U({}),l=U({}),a={anthropic:{install:"npm install -g @anthropic-ai/claude-code",login:"claude auth login"},google:{install:"npm install -g @google/gemini-cli",login:"gemini auth login"}};async function u(){o.value=await fi();for(const g of o.value)g.cliPath&&(s.value[g.id]=g.cliPath)}Dt(u);async function c(g,m){if(g.authMethod!==m){l.value[g.id]=null,i.value[g.id]=!0;try{await nu(g.id,m),await u(),n("saved")}catch(h){l.value[g.id]=h.message}finally{i.value[g.id]=!1}}}async function d(g){var h;const m=(h=r.value[g.id])==null?void 0:h.trim();if(m){l.value[g.id]=null,i.value[g.id]=!0;try{const v=await eu(g.id,m);if(!v.ok){l.value[g.id]=v.error||"Invalid key";return}await tu(g.id,m),r.value[g.id]="",await u(),n("saved")}catch(v){l.value[g.id]=v.message}finally{i.value[g.id]=!1}}}async function f(g){i.value[g.id]=!0;try{await Uv(g.id),await u(),n("saved")}finally{i.value[g.id]=!1}}async function p(g){var m;l.value[g.id]=null,i.value[g.id]=!0;try{const h=(m=s.value[g.id])==null?void 0:m.trim();h&&await Hv(g.id,h);const v=await ou(g.id);if(!v.ok){l.value[g.id]=v.error||"CLI not authenticated";return}await u(),n("saved")}catch(h){l.value[g.id]=h.message}finally{i.value[g.id]=!1}}function b(g){return g.supportedAuthMethods.includes("cli_account")}return(g,m)=>(S(),j("div",{class:"fixed inset-0 z-50 flex items-center justify-center bg-background/70 p-4 backdrop-blur",onClick:m[2]||(m[2]=un(h=>n("close"),["self"]))},[T("div",U0,[T("div",H0,[m[3]||(m[3]=T("h2",{class:"text-base font-semibold"},"Settings",-1)),I(_(He),{variant:"ghost",size:"icon",onClick:m[0]||(m[0]=h=>n("close"))},{default:$(()=>[I(_(ih),{class:"size-4"})]),_:1})]),T("div",W0,[m[11]||(m[11]=T("h3",{class:"text-sm font-medium"},"Providers",-1)),(S(!0),j(Se,null,fn(o.value,h=>(S(),j("div",{key:h.id,class:"rounded-lg border border-border p-3"},[T("div",K0,[T("div",G0,[I(Io,{provider:h.id,size:18},null,8,["provider"]),T("span",J0,se(h.label),1),h.isAuthenticated?(S(),j("span",X0,[I(_(dc),{class:"size-3"}),ie(" "+se(h.authMethod==="cli_account"?h.accountLabel||"Account connected":h.apiKeyMasked),1)])):be("",!0)]),h.authMethod==="api_key"?(S(),j("a",{key:0,href:h.apiKeyHelpUrl,target:"_blank",rel:"noreferrer",class:"inline-flex items-center gap-1 text-[11px] text-muted-foreground hover:text-foreground"},[m[4]||(m[4]=ie(" Get key ",-1)),I(_(pc),{class:"size-3"})],8,Y0)):be("",!0)]),b(h)?(S(),j("div",Q0,[I(_(_o),{class:"text-xs text-muted-foreground"},{default:$(()=>[...m[5]||(m[5]=[ie("Authentication",-1)])]),_:1}),T("div",Z0,[I(_(He),{size:"sm",variant:h.authMethod==="api_key"?"default":"outline",disabled:i.value[h.id],onClick:v=>c(h,"api_key")},{default:$(()=>[...m[6]||(m[6]=[ie(" API key ",-1)])]),_:1},8,["variant","disabled","onClick"]),I(_(He),{size:"sm",variant:h.authMethod==="cli_account"?"default":"outline",disabled:i.value[h.id],onClick:v=>c(h,"cli_account")},{default:$(()=>[...m[7]||(m[7]=[ie(" Uses your account ",-1)])]),_:1},8,["variant","disabled","onClick"])])])):be("",!0),h.authMethod==="api_key"?(S(),j("div",eb,[I(_($s),{modelValue:r.value[h.id],"onUpdate:modelValue":v=>r.value[h.id]=v,type:"password",placeholder:h.hasApiKey?"Replace key…":h.apiKeyHint,disabled:i.value[h.id]},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled"]),I(_(He),{size:"sm",disabled:i.value[h.id]||!r.value[h.id],onClick:v=>d(h)},{default:$(()=>[i.value[h.id]?(S(),G(_(dr),{key:0,class:"size-4 animate-spin"})):be("",!0),ie(" "+se(i.value[h.id]?"…":"Save"),1)]),_:2},1032,["disabled","onClick"]),h.hasApiKey?(S(),G(_(He),{key:0,size:"icon",variant:"ghost",disabled:i.value[h.id],onClick:v=>f(h)},{default:$(()=>[I(_(gc),{class:"size-4 text-muted-foreground"})]),_:1},8,["disabled","onClick"])):be("",!0)])):(S(),j("div",tb,[a[h.id]?(S(),j("div",nb,[T("p",null,[m[8]||(m[8]=ie(" Install: ",-1)),T("code",ob,se(a[h.id].install),1)]),T("p",rb,[m[9]||(m[9]=ie(" Login: ",-1)),T("code",sb,se(a[h.id].login),1)])])):be("",!0),T("div",ib,[I(_(_o),{class:"text-xs text-muted-foreground"},{default:$(()=>[...m[10]||(m[10]=[ie("CLI path (optional)",-1)])]),_:1}),I(_($s),{modelValue:s.value[h.id],"onUpdate:modelValue":v=>s.value[h.id]=v,placeholder:"/usr/local/bin/claude",disabled:i.value[h.id]},null,8,["modelValue","onUpdate:modelValue","disabled"])]),I(_(He),{size:"sm",disabled:i.value[h.id],onClick:v=>p(h)},{default:$(()=>[i.value[h.id]?(S(),G(_(dr),{key:0,class:"size-4 animate-spin"})):be("",!0),ie(" "+se(i.value[h.id]?"Checking…":"Check connection"),1)]),_:2},1032,["disabled","onClick"])])),l.value[h.id]?(S(),j("p",lb,se(l.value[h.id]),1)):be("",!0)]))),128))]),T("div",ab,[I(_(He),{onClick:m[1]||(m[1]=h=>n("close"))},{default:$(()=>[...m[12]||(m[12]=[ie("Done",-1)])]),_:1})])])]))}}),ub={totalUsd:0,inputUsd:0,outputUsd:0,cachedReadUsd:0,cachedWriteUsd:0,totalTokens:0,inputTokens:0,outputTokens:0,cachedReadTokens:0,cachedWriteTokens:0,reasoningTokens:0,assistantTurns:0,pricedTurns:0};function db(){const e=U([]),t=U(null),n=Jt([]),o=U(!1),r=U(null);let s=null,i=null;const l=F(()=>{var w,A,D;const v={...ub};for(const B of n)B.role==="assistant"&&(!B.usage&&!B.cost||(v.assistantTurns+=1,B.cost&&(v.pricedTurns+=1,v.totalUsd+=B.cost.totalUsd,v.inputUsd+=B.cost.inputUsd,v.outputUsd+=B.cost.outputUsd,v.cachedReadUsd+=B.cost.cachedReadUsd,v.cachedWriteUsd+=B.cost.cachedWriteUsd),B.usage&&(v.totalTokens+=B.usage.totalTokens??0,v.inputTokens+=B.usage.inputTokens??0,v.outputTokens+=B.usage.outputTokens??0,v.cachedReadTokens+=((w=B.usage.inputTokenDetails)==null?void 0:w.cacheReadTokens)??0,v.cachedWriteTokens+=((A=B.usage.inputTokenDetails)==null?void 0:A.cacheWriteTokens)??0,v.reasoningTokens+=((D=B.usage.outputTokenDetails)==null?void 0:D.reasoningTokens)??0)));return v});async function a(){e.value=await Wv()}async function u(v){t.value=v,n.splice(0,n.length),r.value=null;const w=await Gv(v);for(const A of w.messages)n.push({id:A.id,role:A.role,text:A.content.text,toolCalls:A.content.toolCalls??[],usage:A.content.usage,cost:A.content.cost,provider:A.content.provider,model:A.content.model,createdAt:A.createdAt})}async function c(v){const w=await Kv(v);return e.value=[w,...e.value],t.value=w.id,n.splice(0,n.length),r.value=null,w}async function d(v){await Xv(v),e.value=e.value.filter(w=>w.id!==v),t.value===v&&(t.value=null,n.splice(0,n.length))}async function f(v,w){await Jv(v,w);const A=e.value.findIndex(D=>D.id===v);A!==-1&&(e.value[A]={...e.value[A],title:w})}function p(){const v=n[n.length-1];if(v&&v.role==="assistant")return v;const w=e.value.find(D=>D.id===t.value),A={id:crypto.randomUUID(),role:"assistant",text:"",toolCalls:[],provider:w==null?void 0:w.provider,model:w==null?void 0:w.model,createdAt:Date.now()};return n.push(A),A}function b(v){for(let w=n.length-1;w>=0;w--){const A=n[w].toolCalls.find(D=>D.id===v);if(A)return A}}function g(v,w){if(v==="text-delta"&&w.text){const A=p();A.text+=w.text}else if(v==="tool-call"&&w.id&&w.name)p().toolCalls.push({id:w.id,name:w.name,input:w.input,status:"pending"});else if(v==="tool-result"&&w.id){const A=b(w.id);A&&(A.result={ok:!!w.ok,content:w.content??""},A.status=w.ok?"success":"error")}else if(v==="finish"){const A=p();w.usage&&(A.usage=w.usage),w.cost&&(A.cost=w.cost)}else v==="error"&&(r.value=w.message??"Unknown error")}async function m(v){const w=v.trim();if(!w||!t.value)return;o.value=!0,r.value=null,n.push({id:crypto.randomUUID(),role:"user",text:w,toolCalls:[],createdAt:Date.now()});const A=crypto.randomUUID();s=A,i=new AbortController;try{for await(const D of Yv({chatId:t.value,prompt:w,requestId:A},i.signal)){if(D.event==="done")break;g(D.event,D.data)}a()}catch(D){D.name!=="AbortError"&&(r.value=D.message)}finally{o.value=!1,s=null,i=null}}async function h(){if(s){try{await Qv(s)}catch{}i==null||i.abort()}}return{chats:e,activeChatId:t,messages:n,sending:o,error:r,chatTotals:l,loadChats:a,selectChat:u,newChat:c,removeChat:d,rename:f,send:m,abort:h}}const fb={key:0,class:"flex min-h-screen items-center justify-center text-sm text-muted-foreground"},pb={key:1,class:"flex min-h-screen items-center justify-center p-6"},hb={class:"max-w-md rounded-lg border border-destructive/40 bg-destructive/10 p-4 text-sm text-destructive"},gb={key:3,class:"flex h-screen"},mb=K({__name:"App",setup(e){const t=U(null),n=U([]),o=U(!0),r=U(null),s=U(!1),i=db(),l=Gp(),a=Kp(),u=F(()=>n.value.some(h=>h.isAuthenticated));function c(){const h=l.params.id;return typeof h=="string"&&h?h:null}async function d(){const h=c();if(!h){i.activeChatId.value!==null&&(i.activeChatId.value=null,i.messages.splice(0,i.messages.length));return}if(i.activeChatId.value!==h){if(!i.chats.value.some(v=>v.id===h)){await a.replace({name:"home"});return}await i.selectChat(h)}}async function f(){try{[t.value,n.value]=await Promise.all([zv(),fi()]),u.value&&(await i.loadChats(),await d())}catch(h){r.value=h.message}finally{o.value=!1}}Le(()=>l.params.id,()=>{u.value&&d()});async function p(){if(!t.value)return;const h=await i.newChat({provider:t.value.activeProvider,model:t.value.activeModel});await a.push({name:"chat",params:{id:h.id}})}async function b(h){await a.push({name:"chat",params:{id:h}})}async function g(h){const v=i.activeChatId.value===h;await i.removeChat(h),v&&await a.replace({name:"home"})}async function m(){await f()}return Dt(f),(h,v)=>o.value?(S(),j("div",fb," Loading… ")):r.value?(S(),j("div",pb,[T("div",hb,se(r.value),1)])):u.value?(S(),j("div",gb,[I(j0,{chats:_(i).chats.value,"active-chat-id":_(i).activeChatId.value,onNewChat:p,onSelect:b,onRename:v[0]||(v[0]=(w,A)=>_(i).rename(w,A)),onDelete:g,onOpenSettings:v[1]||(v[1]=w=>s.value=!0)},null,8,["chats","active-chat-id"]),I(C0,{class:"flex-1",providers:n.value,store:_(i),"settings-open":s.value,onNewChat:p,onOpenSettings:v[2]||(v[2]=w=>s.value=!0)},null,8,["providers","store","settings-open"]),s.value?(S(),G(cb,{key:0,onClose:v[3]||(v[3]=w=>s.value=!1),onSaved:m})):be("",!0)])):(S(),G(hy,{key:2,onSaved:f}))}}),$l={render:()=>null},vb=[{path:"/",name:"home",component:$l},{path:"/c/:id",name:"chat",component:$l}],yb=Wp({history:Ap(),routes:vb}),bb=new FontFace("Source Sans 3 Variable",`url(${qf}) format('woff2-variations')`,{style:"normal",weight:"200 900",display:"swap"});bb.load().then(e=>document.fonts.add(e)).catch(()=>{});Lf(mb).use(yb).mount("#app");
|