@alisaitteke/photoshop-mcp 1.7.21 → 1.7.23

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.
Files changed (83) hide show
  1. package/README.md +26 -0
  2. package/dist/analytics/events.d.ts.map +1 -1
  3. package/dist/analytics/events.js +8 -1
  4. package/dist/analytics/events.js.map +1 -1
  5. package/dist/analytics/index.d.ts +2 -2
  6. package/dist/analytics/index.d.ts.map +1 -1
  7. package/dist/analytics/index.js +2 -2
  8. package/dist/analytics/index.js.map +1 -1
  9. package/dist/analytics/mcp-client.d.ts.map +1 -1
  10. package/dist/analytics/mcp-client.js +2 -1
  11. package/dist/analytics/mcp-client.js.map +1 -1
  12. package/dist/analytics/mcp-session.d.ts +14 -0
  13. package/dist/analytics/mcp-session.d.ts.map +1 -1
  14. package/dist/analytics/mcp-session.js +91 -0
  15. package/dist/analytics/mcp-session.js.map +1 -1
  16. package/dist/core/server.d.ts.map +1 -1
  17. package/dist/core/server.js +2 -5
  18. package/dist/core/server.js.map +1 -1
  19. package/dist/prompts/templates/composite-blend.js +2 -2
  20. package/dist/prompts/templates/composite-blend.js.map +1 -1
  21. package/dist/prompts/templates/dodge-burn-guide.js +1 -1
  22. package/dist/prompts/templates/dodge-burn-guide.js.map +1 -1
  23. package/dist/prompts/templates/dodge-burn.js +1 -1
  24. package/dist/prompts/templates/dodge-burn.js.map +1 -1
  25. package/dist/prompts/templates/gradient-fade.js +1 -1
  26. package/dist/prompts/templates/gradient-fade.js.map +1 -1
  27. package/dist/prompts/templates/sky-blend.js +1 -1
  28. package/dist/prompts/templates/sky-blend.js.map +1 -1
  29. package/dist/ui/agent/action-plan.d.ts.map +1 -1
  30. package/dist/ui/agent/action-plan.js +17 -30
  31. package/dist/ui/agent/action-plan.js.map +1 -1
  32. package/dist/ui/agent/api-key.d.ts.map +1 -1
  33. package/dist/ui/agent/api-key.js +7 -15
  34. package/dist/ui/agent/api-key.js.map +1 -1
  35. package/dist/ui/agent/claude-account.d.ts.map +1 -1
  36. package/dist/ui/agent/claude-account.js +6 -9
  37. package/dist/ui/agent/claude-account.js.map +1 -1
  38. package/dist/ui/agent/gemini-account.d.ts.map +1 -1
  39. package/dist/ui/agent/gemini-account.js +7 -8
  40. package/dist/ui/agent/gemini-account.js.map +1 -1
  41. package/dist/ui/agent/instant.d.ts +34 -0
  42. package/dist/ui/agent/instant.d.ts.map +1 -0
  43. package/dist/ui/agent/instant.js +78 -0
  44. package/dist/ui/agent/instant.js.map +1 -0
  45. package/dist/ui/agent/shared.d.ts +28 -6
  46. package/dist/ui/agent/shared.d.ts.map +1 -1
  47. package/dist/ui/agent/shared.js +21 -0
  48. package/dist/ui/agent/shared.js.map +1 -1
  49. package/dist/ui/agent.d.ts.map +1 -1
  50. package/dist/ui/agent.js +32 -4
  51. package/dist/ui/agent.js.map +1 -1
  52. package/dist/ui/config.d.ts +14 -0
  53. package/dist/ui/config.d.ts.map +1 -1
  54. package/dist/ui/config.js +17 -0
  55. package/dist/ui/config.js.map +1 -1
  56. package/dist/ui/intent/catalog.d.ts +39 -0
  57. package/dist/ui/intent/catalog.d.ts.map +1 -0
  58. package/dist/ui/intent/catalog.js +160 -0
  59. package/dist/ui/intent/catalog.js.map +1 -0
  60. package/dist/ui/intent/router.d.ts +92 -0
  61. package/dist/ui/intent/router.d.ts.map +1 -0
  62. package/dist/ui/intent/router.js +146 -0
  63. package/dist/ui/intent/router.js.map +1 -0
  64. package/dist/ui/intent/service.d.ts +55 -0
  65. package/dist/ui/intent/service.d.ts.map +1 -0
  66. package/dist/ui/intent/service.js +150 -0
  67. package/dist/ui/intent/service.js.map +1 -0
  68. package/dist/ui/server.d.ts.map +1 -1
  69. package/dist/ui/server.js +74 -2
  70. package/dist/ui/server.js.map +1 -1
  71. package/dist/ui/store/chats.d.ts +16 -0
  72. package/dist/ui/store/chats.d.ts.map +1 -1
  73. package/dist/ui/store/chats.js.map +1 -1
  74. package/dist/ui/store/previews.d.ts +28 -0
  75. package/dist/ui/store/previews.d.ts.map +1 -0
  76. package/dist/ui/store/previews.js +120 -0
  77. package/dist/ui/store/previews.js.map +1 -0
  78. package/package.json +2 -2
  79. package/web/dist/assets/index-hrv691GI.js +288 -0
  80. package/web/dist/assets/index-tyuEMiXQ.css +1 -0
  81. package/web/dist/index.html +2 -2
  82. package/web/dist/assets/index-DVa56xB2.js +0 -263
  83. package/web/dist/assets/index-vi5C3hqd.css +0 -1
@@ -0,0 +1,288 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(s){if(s.ep)return;s.ep=!0;const r=n(s);fetch(s.href,r)}})();/**
2
+ * @vue/shared v3.5.43
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function _i(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const _e={},Fn=[],Ft=()=>{},za=()=>!1,js=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ks=e=>e.startsWith("onUpdate:"),Ke=Object.assign,wi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Fd=Object.prototype.hasOwnProperty,Se=(e,t)=>Fd.call(e,t),ie=Array.isArray,Cn=e=>Qo(e)==="[object Map]",sn=e=>Qo(e)==="[object Set]",cl=e=>Qo(e)==="[object Date]",fe=e=>typeof e=="function",$e=e=>typeof e=="string",bt=e=>typeof e=="symbol",Ee=e=>e!==null&&typeof e=="object",Va=e=>(Ee(e)||fe(e))&&fe(e.then)&&fe(e.catch),Ua=Object.prototype.toString,Qo=e=>Ua.call(e),qd=e=>Qo(e).slice(8,-1),Ha=e=>Qo(e)==="[object Object]",Ws=e=>$e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Oo=_i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gs=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},zd=/-\w/g,je=Gs(e=>e.replace(zd,t=>t.slice(1).toUpperCase())),Vd=/\B([A-Z])/g,cn=Gs(e=>e.replace(Vd,"-$1").toLowerCase()),Js=Gs(e=>e.charAt(0).toUpperCase()+e.slice(1)),To=Gs(e=>e?`on${Js(e)}`:""),He=(e,t)=>!Object.is(e,t),Cs=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ja=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},Ys=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let dl;const Xs=()=>dl||(dl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function dn(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],s=$e(o)?Kd(o):dn(o);if(s)for(const r in s)t[r]=s[r]}return t}else if($e(e)||Ee(e))return e}const Ud=/;(?![^(]*\))/g,Hd=/:([^]+)/,jd=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function Kd(e){const t={};return e.replace(jd,n=>n.startsWith("/*")?"":n).split(Ud).forEach(n=>{if(n){const o=n.split(Hd);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function we(e){let t="";if($e(e))t=e;else if(ie(e))for(let n=0;n<e.length;n++){const o=we(e[n]);o&&(t+=o+" ")}else if(Ee(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function go(e){if(!e)return null;let{class:t,style:n}=e;return t&&!$e(t)&&(e.class=we(t)),n&&(e.style=dn(n)),e}const Wd="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Gd=_i(Wd);function Ka(e){return!!e||e===""}function Jd(e,t,n){if(e.length!==t.length)return!1;let o=!0;for(let s=0;o&&s<e.length;s++)o=Ct(e[s],t[s],n);return o}function fl(e,t,n){if(e.size!==t.size)return!1;const o=Array.from(t),s=new Uint8Array(o.length);for(const r of e){let i=-1;for(let l=0;l<o.length;l++)if(!s[l]&&Ct(r,o[l],n)){i=l;break}if(i<0)return!1;s[i]=1}return!0}function Yd(e,t,n){let o=Cn(e),s=Cn(t);if(o||s||(o=sn(e),s=sn(t),o||s))return o&&s?fl(e,t,n):!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const l in e){const a=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(a&&!c||!a&&c||!Ct(e[l],t[l],n))return!1}return String(e)===String(t)}function pl(e,t,n,o){n||(n=[new Map,new Map]);const[s,r]=n;if(s.has(e)||r.has(t))return s.get(e)===t&&r.get(t)===e;s.set(e,t),r.set(t,e);const i=o(e,t,n);return s.delete(e),r.delete(t),i}function Ct(e,t,n){if(e===t)return!0;let o=cl(e),s=cl(t);return o||s?o&&s?e.getTime()===t.getTime():!1:(o=bt(e),s=bt(t),o||s?e===t:(o=ie(e),s=ie(t),o||s?o&&s?pl(e,t,n,Jd):!1:(o=Ee(e),s=Ee(t),o||s?!o||!s?!1:pl(e,t,n,Yd):String(e)===String(t))))}function Ci(e,t){return e.findIndex(n=>Ct(n,t))}const Wa=e=>!!(e&&e.__v_isRef===!0),Q=e=>$e(e)?e:e==null?"":ie(e)||Ee(e)&&(e.toString===Ua||!fe(e.toString))?Wa(e)?Q(e.value):JSON.stringify(e,Ga,2):String(e),Ga=(e,t)=>Wa(t)?Ga(e,t.value):Cn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s],r)=>(n[wr(o,r)+" =>"]=s,n),{})}:sn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>wr(n))}:bt(t)?wr(t):Ee(t)&&!ie(t)&&!Ha(t)?String(t):t,wr=(e,t="")=>{var n;return bt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
+ * @vue/reactivity v3.5.43
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let ze;class Ja{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&&ze&&(ze.active?(this.parent=ze,this.index=(ze.scopes||(ze.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const o=this.scopes.slice();for(t=0,n=o.length;t<n;t++)o[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}const o=this.effects.slice();for(t=0,n=o.length;t<n;t++)o[t].resume()}}run(t){if(this._active){const n=ze;try{return ze=this,t()}finally{ze=n}}}on(){++this._on===1&&(this.prevScope=ze,ze=this)}off(){if(this._on>0&&--this._on===0){if(ze===this)ze=this.prevScope;else{let t=ze;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){const s=this.scopes.slice();for(n=0,o=s.length;n<o;n++)s[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Ya(e){return new Ja(e)}function ki(){return ze}function Xa(e,t=!1){ze&&ze.cleanups.push(e)}let Re;const Cr=new WeakSet;class Za{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,ze&&(ze.active?ze.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Cr.has(this)&&(Cr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||eu(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,hl(this),tu(this);const t=Re,n=_t;Re=this,_t=!0;try{return this.fn()}finally{nu(this),Re=t,_t=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ei(t);this.deps=this.depsTail=void 0,hl(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Cr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Xr(this)&&this.run()}get dirty(){return Xr(this)}}let Qa=0,Io,Ro;function eu(e,t=!1){if(e.flags|=8,t){e.next=Ro,Ro=e;return}e.next=Io,Io=e}function Ai(){Qa++}function Si(){if(--Qa>0)return;if(Ro){let t=Ro;for(Ro=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Io;){let t=Io;for(Io=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 tu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function nu(e){let t,n=e.depsTail,o=n;for(;o;){const s=o.prevDep;o.version===-1?(o===n&&(n=s),Ei(o),Xd(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=n}function Xr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ou(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ou(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Lo)||(e.globalVersion=Lo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Xr(e))))return;e.flags|=2;const t=e.dep,n=Re,o=_t;Re=e,_t=!0;try{tu(e);const s=e.fn(e._value);(t.version===0||He(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Re=n,_t=o,nu(e),e.flags&=-3}}function Ei(e,t=!1){const{dep:n,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)Ei(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Xd(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let _t=!0;const su=[];function rn(){su.push(_t),_t=!1}function ln(){const e=su.pop();_t=e===void 0?!0:e}function hl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Re;Re=void 0;try{t()}finally{Re=n}}}let Lo=0;class Zd{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 Zs{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(!Re||!_t||Re===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Re)n=this.activeLink=new Zd(Re,this),Re.deps?(n.prevDep=Re.depsTail,Re.depsTail.nextDep=n,Re.depsTail=n):Re.deps=Re.depsTail=n,ru(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=Re.depsTail,n.nextDep=void 0,Re.depsTail.nextDep=n,Re.depsTail=n,Re.deps===n&&(Re.deps=o)}return n}trigger(t){this.version++,Lo++,this.notify(t)}notify(t){Ai();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Si()}}}function ru(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)ru(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Os=new WeakMap,Vn=Symbol(""),Zr=Symbol(""),Fo=Symbol("");function Ze(e,t,n){if(_t&&Re){let o=Os.get(e);o||Os.set(e,o=new Map);let s=o.get(n);s||(o.set(n,s=new Zs),s.map=o,s.key=n),s.track()}}function Zt(e,t,n,o,s,r){const i=Os.get(e);if(!i){Lo++;return}const l=a=>{a&&a.trigger()};if(Ai(),t==="clear")i.forEach(l);else{const a=ie(e),c=a&&Ws(n);if(a&&n==="length"){const u=Number(o);i.forEach((d,f)=>{(f==="length"||f===Fo||!bt(f)&&f>=u)&&l(d)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),c&&l(i.get(Fo)),t){case"add":a?c&&l(i.get("length")):(l(i.get(Vn)),Cn(e)&&l(i.get(Zr)));break;case"delete":a||(l(i.get(Vn)),Cn(e)&&l(i.get(Zr)));break;case"set":Cn(e)&&l(i.get(Vn));break}}Si()}function Qd(e,t){const n=Os.get(e);return n&&n.get(t)}function Xn(e){const t=ke(e);return t===e||(Ze(t,"iterate",Fo),yt(e))?t:qt(e)?kn(e)?t.map(n=>An(xt(n))):t.map(An):t.map(xt)}function Qs(e){return Ze(e=ke(e),"iterate",Fo),e}function $t(e,t){return qt(e)?An(kn(e)?xt(t):t):xt(t)}const ef={__proto__:null,[Symbol.iterator](){return kr(this,Symbol.iterator,e=>$t(this,e))},concat(...e){return Xn(this).concat(...e.map(t=>ie(t)?Xn(t):t))},entries(){return kr(this,"entries",e=>(e[1]=$t(this,e[1]),e))},every(e,t){return Wt(this,"every",e,t,void 0,arguments)},filter(e,t){return Wt(this,"filter",e,t,n=>n.map(o=>$t(this,o)),arguments)},find(e,t){return Wt(this,"find",e,t,n=>$t(this,n),arguments)},findIndex(e,t){return Wt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Wt(this,"findLast",e,t,n=>$t(this,n),arguments)},findLastIndex(e,t){return Wt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Wt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ar(this,"includes",e)},indexOf(...e){return Ar(this,"indexOf",e)},join(e){return Xn(this).join(e)},lastIndexOf(...e){return Ar(this,"lastIndexOf",e)},map(e,t){return Wt(this,"map",e,t,void 0,arguments)},pop(){return _o(this,"pop")},push(...e){return _o(this,"push",e)},reduce(e,...t){return ml(this,"reduce",e,t)},reduceRight(e,...t){return ml(this,"reduceRight",e,t)},shift(){return _o(this,"shift")},some(e,t){return Wt(this,"some",e,t,void 0,arguments)},splice(...e){return _o(this,"splice",e)},toReversed(){return Xn(this).toReversed()},toSorted(e){return Xn(this).toSorted(e)},toSpliced(...e){return Xn(this).toSpliced(...e)},unshift(...e){return _o(this,"unshift",e)},values(){return kr(this,"values",e=>$t(this,e))}};function kr(e,t,n){const o=Qs(e),s=o[t]();return o!==e&&!yt(e)&&(s._next=s.next,s.next=()=>{const r=s._next();return r.done||(r.value=n(r.value)),r}),s}const tf=Array.prototype;function Wt(e,t,n,o,s,r){const i=Qs(e),l=i!==e&&!yt(e),a=i[t];if(a!==tf[t]){const d=a.apply(e,r);return l?xt(d):d}let c=n;i!==e&&(l?c=function(d,f){return n.call(this,$t(e,d),f,e)}:n.length>2&&(c=function(d,f){return n.call(this,d,f,e)}));const u=a.call(i,c,o);return l&&s?s(u):u}function ml(e,t,n,o){const s=Qs(e),r=s!==e&&!yt(e);let i=n,l=!1;s!==e&&(r?(l=o.length===0,i=function(c,u,d){return l&&(l=!1,c=$t(e,c)),n.call(this,c,$t(e,u),d,e)}):n.length>3&&(i=function(c,u,d){return n.call(this,c,u,d,e)}));const a=s[t](i,...o);return l?$t(e,a):a}function Ar(e,t,n){const o=ke(e);Ze(o,"iterate",Fo);const s=o[t](...n);return(s===-1||s===!1)&&nr(n[0])?(n[0]=ke(n[0]),o[t](...n)):s}function _o(e,t,n=[]){rn(),Ai();const o=ke(e)[t].apply(e,n);return Si(),ln(),o}const nf=_i("__proto__,__v_isRef,__isVue"),iu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(bt));function of(e){bt(e)||(e=String(e));const t=ke(this);return Ze(t,"has",e),t.hasOwnProperty(e)}class lu{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(s?r?pu:fu:r?du:cu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const i=ie(t);if(!s){let a;if(i&&(a=ef[n]))return a;if(n==="hasOwnProperty")return of}const l=Reflect.get(t,n,Ne(t)?t:o);if((bt(n)?iu.has(n):nf(n))||(s||Ze(t,"get",n),r))return l;if(Ne(l)){const a=i&&Ws(n)?l:l.value;return s&&Ee(a)?ei(a):a}return Ee(l)?s?ei(l):an(l):l}}class au extends lu{constructor(t=!1){super(!1,t)}set(t,n,o,s){let r=t[n];const i=ie(t)&&Ws(n);if(!this._isShallow){const c=qt(r);if(!yt(o)&&!qt(o)&&(r=ke(r),o=ke(o)),!i&&Ne(r)&&!Ne(o))return c||(r.value=o),!0}const l=i?Number(n)<t.length:Se(t,n),a=Reflect.set(t,n,o,Ne(t)?t:s);return t===ke(s)&&a&&(l?He(o,r)&&Zt(t,"set",n,o):Zt(t,"add",n,o)),a}deleteProperty(t,n){const o=Se(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&o&&Zt(t,"delete",n,void 0),s}has(t,n){const o=Reflect.has(t,n);return(!bt(n)||!iu.has(n))&&Ze(t,"has",n),o}ownKeys(t){return Ze(t,"iterate",ie(t)?"length":Vn),Reflect.ownKeys(t)}}class uu extends lu{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const sf=new au,rf=new uu,lf=new au(!0),af=new uu(!0),Qr=e=>e,cs=e=>Reflect.getPrototypeOf(e);function uf(e,t,n){return function(...o){const s=this.__v_raw,r=ke(s),i=Cn(r),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=s[e](...o),u=n?Qr:t?An:xt;return!t&&Ze(r,"iterate",a?Zr:Vn),Ke(Object.create(c),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:l?[u(d[0]),u(d[1])]:u(d),done:f}}})}}function ds(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function cf(e,t){const n={get(s){const r=this.__v_raw,i=ke(r),l=ke(s);e||(He(s,l)&&Ze(i,"get",s),Ze(i,"get",l));const{has:a}=cs(i),c=t?Qr:e?An:xt;if(a.call(i,s))return c(r.get(s));if(a.call(i,l))return c(r.get(l));r!==i&&r.get(s)},get size(){const s=this.__v_raw;return!e&&Ze(ke(s),"iterate",Vn),s.size},has(s){const r=this.__v_raw,i=ke(r),l=ke(s);return e||(He(s,l)&&Ze(i,"has",s),Ze(i,"has",l)),s===l?r.has(s):r.has(s)||r.has(l)},forEach(s,r){const i=this,l=i.__v_raw,a=ke(l),c=t?Qr:e?An:xt;return!e&&Ze(a,"iterate",Vn),l.forEach((u,d)=>s.call(r,c(u),c(d),i))}};return Ke(n,e?{add:ds("add"),set:ds("set"),delete:ds("delete"),clear:ds("clear")}:{add(s){const r=ke(this),i=cs(r),l=ke(s),a=!t&&!yt(s)&&!qt(s)?l:s;return i.has.call(r,a)||He(s,a)&&i.has.call(r,s)||He(l,a)&&i.has.call(r,l)||(r.add(a),Zt(r,"add",a,a)),this},set(s,r){!t&&!yt(r)&&!qt(r)&&(r=ke(r));const i=ke(this),{has:l,get:a}=cs(i);let c=l.call(i,s);c||(s=ke(s),c=l.call(i,s));const u=a.call(i,s);return i.set(s,r),c?He(r,u)&&Zt(i,"set",s,r):Zt(i,"add",s,r),this},delete(s){const r=ke(this),{has:i,get:l}=cs(r);let a=i.call(r,s);a||(s=ke(s),a=i.call(r,s)),l&&l.call(r,s);const c=r.delete(s);return a&&Zt(r,"delete",s,void 0),c},clear(){const s=ke(this),r=s.size!==0,i=s.clear();return r&&Zt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=uf(s,e,t)}),n}function er(e,t){const n=cf(e,t);return(o,s,r)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(Se(n,s)&&s in o?n:o,s,r)}const df={get:er(!1,!1)},ff={get:er(!1,!0)},pf={get:er(!0,!1)},hf={get:er(!0,!0)},cu=new WeakMap,du=new WeakMap,fu=new WeakMap,pu=new WeakMap;function mf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function an(e){return qt(e)?e:tr(e,!1,sf,df,cu)}function hu(e){return tr(e,!1,lf,ff,du)}function ei(e){return tr(e,!0,rf,pf,fu)}function Dn(e){return tr(e,!0,af,hf,pu)}function tr(e,t,n,o,s){if(!Ee(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=s.get(e);if(r)return r;const i=mf(qd(e));if(i===0)return e;const l=new Proxy(e,i===2?o:n);return s.set(e,l),l}function kn(e){return qt(e)?kn(e.__v_raw):!!(e&&e.__v_isReactive)}function qt(e){return!!(e&&e.__v_isReadonly)}function yt(e){return!!(e&&e.__v_isShallow)}function nr(e){return e?!!e.__v_raw:!1}function ke(e){const t=e&&e.__v_raw;return t?ke(t):e}function mu(e){return!Se(e,"__v_skip")&&Object.isExtensible(e)&&ja(e,"__v_skip",!0),e}const xt=e=>Ee(e)?an(e):e,An=e=>Ee(e)?ei(e):e;function Ne(e){return e?e.__v_isRef===!0:!1}function D(e){return gu(e,!1)}function es(e){return gu(e,!0)}function gu(e,t){return Ne(e)?e:new gf(e,t)}class gf{constructor(t,n){this.dep=new Zs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ke(t),this._value=n?t:xt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||yt(t)||qt(t);t=o?t:ke(t),He(t,n)&&(this._rawValue=t,this._value=o?t:xt(t),this.dep.trigger())}}function vf(e){e.dep&&e.dep.trigger()}function h(e){return Ne(e)?e.value:e}function ut(e){return fe(e)?e():h(e)}const yf={get:(e,t,n)=>t==="__v_raw"?e:h(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return Ne(s)&&!Ne(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function vu(e){return kn(e)?e:new Proxy(e,yf)}class bf{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Zs,{get:o,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=o,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function yu(e){return new bf(e)}function Sn(e){const t=ie(e)?new Array(e.length):{};for(const n in e)t[n]=bu(e,n);return t}class xf{constructor(t,n,o){this._object=t,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._key=bt(n)?n:String(n),this._raw=ke(t);let s=!0,r=t;if(!ie(t)||bt(this._key)||!Ws(this._key))do s=!nr(r)||yt(r);while(s&&(r=r.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=h(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ne(this._raw[this._key])){const n=this._object[this._key];if(Ne(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Qd(this._raw,this._key)}}class _f{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 wf(e,t,n){return Ne(e)?e:fe(e)?new _f(e):Ee(e)&&arguments.length>1?bu(e,t,n):D(e)}function bu(e,t,n){return new xf(e,t,n)}class Cf{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Zs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Lo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Re!==this)return eu(this,!0),!0}get value(){const t=this.dep.track();return ou(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function kf(e,t,n=!1){let o,s;return fe(e)?o=e:(o=e.get,s=e.set),new Cf(o,s,n)}const fs={},Ts=new WeakMap;let Nn;function Af(e,t=!1,n=Nn){if(n){let o=Ts.get(n);o||Ts.set(n,o=[]),o.push(e)}}function Sf(e,t,n=_e){const{immediate:o,deep:s,once:r,scheduler:i,augmentJob:l,call:a}=n,c=T=>s?T:yt(T)||s===!1||s===0?Qt(T,1):Qt(T);let u,d,f,p,g=!1,m=!1;if(Ne(e)?(d=()=>e.value,g=yt(e)):kn(e)?(d=()=>c(e),g=!0):ie(e)?(m=!0,g=e.some(T=>kn(T)||yt(T)),d=()=>e.map(T=>{if(Ne(T))return T.value;if(kn(T))return c(T);if(fe(T))return a?a(T,2):T()})):fe(e)?t?d=a?()=>a(e,2):e:d=()=>{if(f){rn();try{f()}finally{ln()}}const T=Nn;Nn=u;try{return a?a(e,3,[p]):e(p)}finally{Nn=T}}:d=Ft,t&&s){const T=d,K=s===!0?1/0:s;d=()=>Qt(T(),K)}const b=ki(),x=()=>{u.stop(),b&&b.active&&wi(b.effects,u)};if(r&&t){const T=t;t=(...K)=>{const H=T(...K);return x(),H}}let v=m?new Array(e.length).fill(fs):fs;const P=T=>{if(!(!(u.flags&1)||!u.dirty&&!T))if(t){const K=u.run();if(T||s||g||(m?K.some((H,R)=>He(H,v[R])):He(K,v))){f&&f();const H=Nn;Nn=u;try{const R=[K,v===fs?void 0:m&&v[0]===fs?[]:v,p];v=K,a?a(t,3,R):t(...R)}finally{Nn=H}}}else u.run()};return l&&l(P),u=new Za(d),u.scheduler=i?()=>i(P,!1):P,p=T=>Af(T,!1,u),f=u.onStop=()=>{const T=Ts.get(u);if(T){if(a)a(T,4);else for(const K of T)K();Ts.delete(u)}},t?o?P(!0):v=u.run():i?i(P.bind(null,!0),!0):u.run(),x.pause=u.pause.bind(u),x.resume=u.resume.bind(u),x.stop=x,x}function Qt(e,t=1/0,n){if(t<=0||!Ee(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ne(e))Qt(e.value,t,n);else if(ie(e))for(let o=0;o<e.length;o++)Qt(e[o],t,n);else if(sn(e)||Cn(e))e.forEach(o=>{Qt(o,t,n)});else if(Ha(e)){for(const o in e)Qt(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Qt(e[o],t,n)}return e}/**
10
+ * @vue/runtime-core v3.5.43
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/function ts(e,t,n,o){try{return o?e(...o):e()}catch(s){or(s,t,n)}}function kt(e,t,n,o){if(fe(e)){const s=ts(e,t,n,o);return s&&Va(s)&&s.catch(r=>{or(r,t,n)}),s}if(ie(e)){const s=[];for(let r=0;r<e.length;r++)s.push(kt(e[r],t,n,o));return s}}function or(e,t,n,o=!0){const s=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||_e;if(t){let l=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,a,c)===!1)return}l=l.parent}if(r){rn(),ts(r,null,10,[e,a,c]),ln();return}}Ef(e,n,s,o,i)}function Ef(e,t,n,o=!0,s=!1){if(s)throw e;console.error(e)}const it=[];let Mt=-1;const so=[];let _n=null,Qn=0;const xu=Promise.resolve();let Is=null;function et(e){const t=Is||xu;return e?t.then(this?e.bind(this):e):t}function Pf(e){let t=Mt+1,n=it.length;for(;t<n;){const o=t+n>>>1,s=it[o],r=qo(s);r<e||r===e&&s.flags&2?t=o+1:n=o}return t}function Pi(e){if(!(e.flags&1)){const t=qo(e),n=it[it.length-1];!n||!(e.flags&2)&&t>=qo(n)?it.push(e):it.splice(Pf(t),0,e),e.flags|=1,_u()}}function _u(){Is||(Is=xu.then(Cu))}function Of(e){if(!ie(e))_n&&e.id===-1?_n.splice(Qn+1,0,e):e.flags&1||(so.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)so.push(e[t]);_u()}function gl(e,t,n=Mt+1){for(;n<it.length;n++){const o=it[n];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;it.splice(n,1),n--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function wu(e){if(so.length){const t=[...new Set(so)].sort((n,o)=>qo(n)-qo(o));if(so.length=0,_n){for(let n=0;n<t.length;n++)_n.push(t[n]);return}for(_n=t,Qn=0;Qn<_n.length;Qn++){const n=_n[Qn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}_n=null,Qn=0}}const qo=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Cu(e){try{for(Mt=0;Mt<it.length;Mt++){const t=it[Mt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ts(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Mt<it.length;Mt++){const t=it[Mt];t&&(t.flags&=-2)}Mt=-1,it.length=0,wu(),Is=null,(it.length||so.length)&&Cu()}}let Je=null,ku=null;function Rs(e){const t=Je;return Je=e,ku=e&&e.type.__scopeId||null,t}function O(e,t=Je,n){if(!t||e._n)return e;const o=(...s)=>{o._d&&Bs(-1);const r=Rs(t),i=tn.length;let l;try{l=e(...s)}finally{for(let a=tn.length;a>i;a--)Di();Rs(r),o._d&&Bs(1)}return l};return o._n=!0,o._c=!0,o._d=!0,o}function ns(e,t){if(Je===null)return e;const n=ar(Je),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[r,i,l,a=_e]=t[s];r&&(fe(r)&&(r={mounted:r,updated:r}),r.deep&&Qt(i),o.push({dir:r,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function Mn(e,t,n,o){const s=e.dirs,r=t&&t.dirs;for(let i=0;i<s.length;i++){const l=s[i];r&&(l.oldValue=r[i].value);let a=l.dir[o];a&&(rn(),kt(a,n,8,[e.el,l,e,t]),ln())}}function Un(e,t){if(Qe){let n=Qe.provides;const o=Qe.parent&&Qe.parent.provides;o===n&&(n=Qe.provides=Object.create(o)),n[e]=t}}function pt(e,t,n=!1){const o=Ht();if(o||io){let s=io?io._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&fe(t)?t.call(o&&o.proxy):t}}const Tf=Symbol.for("v-scx"),If=()=>pt(Tf);function zt(e,t){return os(e,null,t)}function Au(e,t){return os(e,null,{flush:"post"})}function Rf(e,t){return os(e,null,{flush:"sync"})}function Oe(e,t,n){return os(e,t,n)}function os(e,t,n=_e){const{immediate:o,deep:s,flush:r,once:i}=n,l=Ke({},n),a=t&&o||!t&&r!=="post";let c;if(Ho){if(r==="sync"){const p=If();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!a){const p=()=>{};return p.stop=Ft,p.resume=Ft,p.pause=Ft,p}}const u=Qe;l.call=(p,g,m)=>kt(p,u,g,m);let d=!1;r==="post"?l.scheduler=p=>{st(p,u&&u.suspense)}:r!=="sync"&&(d=!0,l.scheduler=(p,g)=>{g?p():Pi(p)}),l.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const f=Sf(e,t,l);return Ho&&(c?c.push(f):a&&f()),f}function Mf(e,t,n){const o=this.proxy,s=$e(e)?e.includes(".")?Su(o,e):()=>o[e]:e.bind(o,o);let r;fe(t)?r=t:(r=t.handler,n=t);const i=rs(this),l=os(s,r.bind(o),n);return i(),l}function Su(e,t){const n=t.split(".");return()=>{let o=e;for(let s=0;s<n.length&&o;s++)o=o[n[s]];return o}}const bn=new WeakMap,Eu=Symbol("_vte"),sr=e=>e.__isTeleport,Ln=e=>e&&(e.disabled||e.disabled===""),$f=e=>e&&(e.defer||e.defer===""),vl=e=>typeof SVGElement<"u"&&e instanceof SVGElement,yl=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ti=(e,t)=>{const n=e&&e.to;return $e(n)?t?t(n):null:n},Bf={name:"Teleport",__isTeleport:!0,process(e,t,n,o,s,r,i,l,a,c){const{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:g,createText:m,createComment:b,parentNode:x}}=c,v=Ln(t.props);let{dynamicChildren:P}=t;const T=(R,J,oe)=>{R.shapeFlag&16&&u(R.children,J,oe,s,r,i,l,a)},K=(R=t)=>{const J=Ln(R.props),oe=R.target=ti(R.props,g),j=ni(oe,R,m,p);oe&&(i!=="svg"&&vl(oe)?i="svg":i!=="mathml"&&yl(oe)&&(i="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(oe),J||(T(R,oe,j),So(R,!1)))},H=R=>{const J=()=>{if(bn.get(R)===J){if(bn.delete(R),Ln(R.props)){const oe=x(R.el)||n;T(R,oe,R.anchor),So(R,!0)}K(R)}};bn.set(R,J),st(J,r)};if(e==null){const R=t.el=m(""),J=t.anchor=m("");if(p(R,n,o),p(J,n,o),$f(t.props)||r&&r.pendingBranch){H(t);return}v&&(T(t,n,J),So(t,!0)),K()}else{t.el=e.el;const R=t.anchor=e.anchor,J=bn.get(e);if(J){J.flags|=8,bn.delete(e),H(t);return}t.targetStart=e.targetStart;const oe=t.target=e.target,j=t.targetAnchor=e.targetAnchor,L=Ln(e.props),$=L?n:oe,I=L?R:j;if(i==="svg"||vl(oe)?i="svg":(i==="mathml"||yl(oe))&&(i="mathml"),P?(f(e.dynamicChildren,P,$,s,r,i,l),Bi(e,t,!0)):a||d(e,t,$,I,s,r,i,l,!1),v)L?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ps(t,n,R,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const se=ti(t.props,g);se&&(t.target=se,ps(t,se,null,c,0))}else L&&ps(t,oe,j,c,1);So(t,v)}},remove(e,t,n,{um:o,o:{remove:s}},r){const{shapeFlag:i,children:l,anchor:a,targetStart:c,targetAnchor:u,target:d,props:f}=e,p=Ln(f),g=r||!p,m=bn.get(e);if(m&&(m.flags|=8,bn.delete(e)),d&&(s(c),s(u)),r&&s(a),!m&&(p||d)&&i&16)for(let b=0;b<l.length;b++){const x=l[b];o(x,t,n,g,!!x.dynamicChildren)}},move:ps,hydrate:Df};function ps(e,t,n,{o:{insert:o},m:s},r=2){r===0&&o(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:a,children:c,props:u}=e,d=r===2;if(d&&o(i,t,n),!bn.has(e)&&(!d||Ln(u))&&a&16)for(let f=0;f<c.length;f++)s(c[f],t,n,2);d&&o(l,t,n)}function Df(e,t,n,o,s,r,{o:{nextSibling:i,parentNode:l,querySelector:a,insert:c,createText:u}},d){function f(b,x){let v=x;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,b._lpa=t.targetAnchor&&i(t.targetAnchor);break}}v=i(v)}}function p(b,x){x.anchor=d(i(b),x,l(b),n,o,s,r)}const g=t.target=ti(t.props,a),m=Ln(t.props);if(g){const b=g._lpa||g.firstChild;t.shapeFlag&16&&(m?(p(e,t),f(g,b),t.targetAnchor||ni(g,t,u,c,l(e)===g?e:null)):(t.anchor=i(e),f(g,b),t.targetAnchor||ni(g,t,u,c),d(b&&i(b),t,g,n,o,s,r))),So(t,m)}else m&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const Oi=Bf;function So(e,t){const n=e.ctx;if(n&&n.ut){let o,s;for(t?(o=e.el,s=e.anchor):(o=e.targetStart,s=e.targetAnchor);o&&o!==s;)o.nodeType===1&&o.setAttribute("data-v-owner",n.uid),o=o.nextSibling;n.ut()}}function ni(e,t,n,o,s=null){const r=t.targetStart=n(""),i=t.targetAnchor=n("");return r[Eu]=i,e&&(o(r,e,s),o(i,e,s)),i}const Sr=Symbol("_leaveCb");function Nf(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==St){t=n;break}}return t}function Pu(e){if(!Ii(e))return sr(e.type)&&e.children?Nf(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&fe(n.default))return n.default()}}function Ti(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Ti(sr(n.type)&&Pu(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function te(e,t){return fe(e)?Ke({name:e.name},t,{setup:e}):e}function Er(){const e=Ht();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Ou(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function bl(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Ms=new WeakMap;function Mo(e,t,n,o,s=!1){if(ie(e)){e.forEach((m,b)=>Mo(m,t&&(ie(t)?t[b]:t),n,o,s));return}if(ro(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Mo(e,t,n,o.component.subTree);return}const r=o.shapeFlag&4?ar(o.component):o.el,i=s?null:r,{i:l,r:a}=e,c=t&&t.r,u=l.refs===_e?l.refs={}:l.refs,d=l.setupState,f=ke(d),p=d===_e?za:m=>bl(u,m)?!1:Se(f,m),g=(m,b)=>!(b&&bl(u,b));if(c!=null&&c!==a){if(xl(t),$e(c))u[c]=null,p(c)&&(d[c]=null);else if(Ne(c)){const m=t;g(c,m.k)&&(c.value=null),m.k&&(u[m.k]=null)}}if(fe(a))ts(a,l,12,[i,u]);else{const m=$e(a),b=Ne(a);if(m||b){const x=()=>{if(e.f){const v=m?p(a)?d[a]:u[a]:g()||!e.k?a.value:u[e.k];if(s)ie(v)&&wi(v,r);else if(ie(v))v.includes(r)||v.push(r);else if(m)u[a]=[r],p(a)&&(d[a]=u[a]);else{const P=[r];g(a,e.k)&&(a.value=P),e.k&&(u[e.k]=P)}}else m?(u[a]=i,p(a)&&(d[a]=i)):b&&(g(a,e.k)&&(a.value=i),e.k&&(u[e.k]=i))};if(i){const v=()=>{x(),Ms.delete(e)};v.id=-1,Ms.set(e,v),st(v,n)}else xl(e),x()}}}function xl(e){const t=Ms.get(e);t&&(t.flags|=8,Ms.delete(e))}Xs().requestIdleCallback;Xs().cancelIdleCallback;const ro=e=>!!e.type.__asyncLoader,Ii=e=>e.type.__isKeepAlive;function Lf(e,t){Tu(e,"a",t)}function Ff(e,t){Tu(e,"da",t)}function Tu(e,t,n=Qe){const o=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(rr(t,o,n),n){let s=n.parent;for(;s&&s.parent;)Ii(s.parent.vnode)&&qf(o,t,n,s),s=s.parent}}function qf(e,t,n,o){const s=rr(t,e,o,!0);pn(()=>{wi(o[t],s)},n)}function rr(e,t,n=Qe,o=!1){if(n){const s=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{rn();const l=rs(n),a=kt(t,n,e,i);return l(),ln(),a});return o?s.unshift(r):s.push(r),r}}const fn=e=>(t,n=Qe)=>{(!Ho||e==="sp")&&rr(e,(...o)=>t(...o),n)},zf=fn("bm"),tt=fn("m"),Vf=fn("bu"),Iu=fn("u"),Ri=fn("bum"),pn=fn("um"),Uf=fn("sp"),Hf=fn("rtg"),jf=fn("rtc");function Kf(e,t=Qe){rr("ec",e,t)}const Wf="components",Ru=Symbol.for("v-ndc");function ss(e){return $e(e)?Gf(Wf,e,!1)||e:e||Ru}function Gf(e,t,n=!0,o=!1){const s=Je||Qe;if(s){const r=s.type;{const l=Mp(r,!1);if(l&&(l===t||l===je(t)||l===Js(je(t))))return r}const i=_l(s[e]||r[e],t)||_l(s.appContext[e],t);return!i&&o?r:i}}function _l(e,t){return e&&(e[t]||e[je(t)]||e[Js(je(t))])}function At(e,t,n,o){let s;const r=n,i=ie(e);if(i||$e(e)){const l=i&&kn(e);let a=!1,c=!1;l&&(a=!yt(e),c=qt(e),e=Qs(e)),s=new Array(e.length);for(let u=0,d=e.length;u<d;u++)s[u]=t(a?c?An(xt(e[u])):xt(e[u]):e[u],u,void 0,r)}else if(typeof e=="number"){s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,r)}else if(Ee(e))if(e[Symbol.iterator])s=Array.from(e,(l,a)=>t(l,a,void 0,r));else{const l=Object.keys(e);s=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const u=l[a];s[a]=t(e[u],u,a,r)}}else s=[];return s}function ue(e,t,n,o,s,r){if(n==null&&(n={}),Je.ce||Je.parent&&ro(Je.parent)&&Je.parent.ce){const c=n,u=Object.keys(c).length>0;return t!=="default"&&(c.name=t),C(),G(be,null,[A("slot",c,o)],u?-2:64)}let i=e[t];i&&i._c&&(i._d=!1);const l=tn.length;C();let a;try{const c=i&&Mu(i(n)),u=n.key||r||c&&c.key;a=G(be,{key:(u&&!bt(u)?u:`_${t}`)+(!c&&o?"_fb":"")},c||(o?o():[]),c&&e._===1?64:-2)}catch(c){for(let u=tn.length;u>l;u--)Di();throw c}finally{i&&i._c&&(i._d=!0)}return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),a}function Mu(e){return e.some(t=>Vo(t)?!(t.type===St||t.type===be&&!Mu(t.children)):!0)?e:null}function Jf(e,t){const n={};for(const o in e)n[To(o)]=e[o];return n}const oi=e=>e?Qu(e)?ar(e):oi(e.parent):null,$o=Ke(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=>oi(e.parent),$root:e=>oi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Bu(e),$forceUpdate:e=>e.f||(e.f=()=>{Pi(e.update)}),$nextTick:e=>e.n||(e.n=et.bind(e.proxy)),$watch:e=>Mf.bind(e)}),Pr=(e,t)=>e!==_e&&!e.__isScriptSetup&&Se(e,t),Yf={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:s,props:r,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 s[t];case 4:return n[t];case 3:return r[t]}else{if(Pr(o,t))return i[t]=1,o[t];if(s!==_e&&Se(s,t))return i[t]=2,s[t];if(Se(r,t))return i[t]=3,r[t];if(n!==_e&&Se(n,t))return i[t]=4,n[t];si&&(i[t]=0)}}const c=$o[t];let u,d;if(c)return t==="$attrs"&&Ze(e.attrs,"get",""),c(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==_e&&Se(n,t))return i[t]=4,n[t];if(d=a.config.globalProperties,Se(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:s,ctx:r}=e;return Pr(s,t)?(s[t]=n,!0):o!==_e&&Se(o,t)?(o[t]=n,!0):Se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:s,props:r,type:i}},l){let a;return!!(n[l]||e!==_e&&l[0]!=="$"&&Se(e,l)||Pr(t,l)||Se(r,l)||Se(o,l)||Se($o,l)||Se(s.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Se(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function zo(e){return ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Xf(e,t){const n=zo(e);for(const o in t){if(o.startsWith("__skip"))continue;let s=n[o];s?ie(s)||fe(s)?s=n[o]={type:s,default:t[o]}:s.default=t[o]:s===null&&(s=n[o]={default:t[o]}),s&&t[`__skip_${o}`]&&(s.skipFactory=!0)}return n}function Zf(e,t){return!e||!t?e||t:ie(e)&&ie(t)?e.concat(t):Ke({},zo(e),zo(t))}let si=!0;function Qf(e){const t=Bu(e),n=e.proxy,o=e.ctx;si=!1,t.beforeCreate&&wl(t.beforeCreate,e,"bc");const{data:s,computed:r,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:g,activated:m,deactivated:b,beforeDestroy:x,beforeUnmount:v,destroyed:P,unmounted:T,render:K,renderTracked:H,renderTriggered:R,errorCaptured:J,serverPrefetch:oe,expose:j,inheritAttrs:L,components:$,directives:I,filters:se}=t;if(c&&ep(c,o,null),i)for(const de in i){const ae=i[de];fe(ae)&&(o[de]=ae.bind(n))}if(s){const de=s.call(n,n);Ee(de)&&(e.data=an(de))}if(si=!0,r)for(const de in r){const ae=r[de],Ce=fe(ae)?ae.bind(n,n):fe(ae.get)?ae.get.bind(n,n):Ft,nt=!fe(ae)&&fe(ae.set)?ae.set.bind(n):Ft,Be=q({get:Ce,set:nt});Object.defineProperty(o,de,{enumerable:!0,configurable:!0,get:()=>Be.value,set:Ue=>Be.value=Ue})}if(l)for(const de in l)$u(l[de],o,n,de);if(a){const de=fe(a)?a.call(n):a;Reflect.ownKeys(de).forEach(ae=>{Un(ae,de[ae])})}u&&wl(u,e,"c");function W(de,ae){ie(ae)?ae.forEach(Ce=>de(Ce.bind(n))):ae&&de(ae.bind(n))}if(W(zf,d),W(tt,f),W(Vf,p),W(Iu,g),W(Lf,m),W(Ff,b),W(Kf,J),W(jf,H),W(Hf,R),W(Ri,v),W(pn,T),W(Uf,oe),ie(j))if(j.length){const de=e.exposed||(e.exposed={});j.forEach(ae=>{Object.defineProperty(de,ae,{get:()=>n[ae],set:Ce=>n[ae]=Ce,enumerable:!0})})}else e.exposed||(e.exposed={});K&&e.render===Ft&&(e.render=K),L!=null&&(e.inheritAttrs=L),$&&(e.components=$),I&&(e.directives=I),oe&&Ou(e)}function ep(e,t,n=Ft){ie(e)&&(e=ri(e));for(const o in e){const s=e[o];let r;Ee(s)?"default"in s?r=pt(s.from||o,s.default,!0):r=pt(s.from||o):r=pt(s),Ne(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[o]=r}}function wl(e,t,n){kt(ie(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function $u(e,t,n,o){let s=o.includes(".")?Su(n,o):()=>n[o];if($e(e)){const r=t[e];fe(r)&&Oe(s,r)}else if(fe(e))Oe(s,e.bind(n));else if(Ee(e))if(ie(e))e.forEach(r=>$u(r,t,n,o));else{const r=fe(e.handler)?e.handler.bind(n):t[e.handler];fe(r)&&Oe(s,r,e)}}function Bu(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let a;return l?a=l:!s.length&&!n&&!o?a=t:(a={},s.length&&s.forEach(c=>$s(a,c,i,!0)),$s(a,t,i)),Ee(t)&&r.set(t,a),a}function $s(e,t,n,o=!1){const{mixins:s,extends:r}=t;r&&$s(e,r,n,!0),s&&s.forEach(i=>$s(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const l=tp[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const tp={data:Cl,props:kl,emits:kl,methods:Eo,computed:Eo,beforeCreate:ot,created:ot,beforeMount:ot,mounted:ot,beforeUpdate:ot,updated:ot,beforeDestroy:ot,beforeUnmount:ot,destroyed:ot,unmounted:ot,activated:ot,deactivated:ot,errorCaptured:ot,serverPrefetch:ot,components:Eo,directives:Eo,watch:op,provide:Cl,inject:np};function Cl(e,t){return t?e?function(){return Ke(fe(e)?e.call(this,this):e,fe(t)?t.call(this,this):t)}:t:e}function np(e,t){return Eo(ri(e),ri(t))}function ri(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ot(e,t){return e?[...new Set([].concat(e,t))]:t}function Eo(e,t){return e?Ke(Object.create(null),e,t):t}function kl(e,t){return e?ie(e)&&ie(t)?[...new Set([...e,...t])]:Ke(Object.create(null),zo(e),zo(t??{})):t}function op(e,t){if(!e)return t;if(!t)return e;const n=Ke(Object.create(null),e);for(const o in t)n[o]=ot(e[o],t[o]);return n}function Du(){return{app:null,config:{isNativeTag:za,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 sp=0;function rp(e,t){return function(o,s=null){fe(o)||(o=Ke({},o)),s!=null&&!Ee(s)&&(s=null);const r=Du(),i=new WeakSet,l=[];let a=!1;const c=r.app={_uid:sp++,_component:o,_props:s,_container:null,_context:r,_instance:null,version:Np,get config(){return r.config},set config(u){},use(u,...d){return i.has(u)||(u&&fe(u.install)?(i.add(u),u.install(c,...d)):fe(u)&&(i.add(u),u(c,...d))),c},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),c},component(u,d){return d?(r.components[u]=d,c):r.components[u]},directive(u,d){return d?(r.directives[u]=d,c):r.directives[u]},mount(u,d,f){if(!a){const p=c._ceVNode||A(o,s);return p.appContext=r,f===!0?f="svg":f===!1&&(f=void 0),e(p,u,f),a=!0,c._container=u,u.__vue_app__=c,ar(p.component)}},onUnmount(u){l.push(u)},unmount(){a&&(kt(l,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return r.provides[u]=d,c},runWithContext(u){const d=io;io=c;try{return u()}finally{io=d}}};return c}}let io=null;function ip(e,t,n=_e){const o=Ht(),s=je(t),r=cn(t),i=Nu(e,s),l=yu((a,c)=>{let u,d=_e,f;return Rf(()=>{const p=e[s];He(u,p)&&(u=p,c())}),{get(){return a(),n.get?n.get(u):u},set(p){const g=n.set?n.set(p):p;if(!He(g,u)&&!(d!==_e&&He(p,d)))return;const m=o.vnode.props,b=!!(m&&(t in m||s in m||r in m)&&(`onUpdate:${t}`in m||`onUpdate:${s}`in m||`onUpdate:${r}`in m));b||(u=p,c()),o.emit(`update:${t}`,g),He(p,d)&&(He(p,g)&&!He(g,f)||b&&d!==_e&&!He(g,u))&&c(),d=p,f=g}}});return l[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?i||_e:l,done:!1}:{done:!0}}}},l}const Nu=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${je(t)}Modifiers`]||e[`${cn(t)}Modifiers`];function lp(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||_e;let s=n;const r=t.startsWith("update:"),i=r&&Nu(o,t.slice(7));i&&(i.trim&&(s=n.map(u=>$e(u)?u.trim():u)),i.number&&(s=s.map(Ys)));let l,a=o[l=To(t)]||o[l=To(je(t))];!a&&r&&(a=o[l=To(cn(t))]),a&&kt(a,e,6,s);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,kt(c,e,6,s)}}const ap=new WeakMap;function Lu(e,t,n=!1){const o=n?ap:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const r=e.emits;let i={},l=!1;if(!fe(e)){const a=c=>{const u=Lu(c,t,!0);u&&(l=!0,Ke(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(Ee(e)&&o.set(e,null),null):(ie(r)?r.forEach(a=>i[a]=null):Ke(i,r),Ee(e)&&o.set(e,i),i)}function ir(e,t){return!e||!js(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Se(e,t[0].toLowerCase()+t.slice(1))||Se(e,cn(t))||Se(e,t))}function Al(e){const{type:t,vnode:n,proxy:o,withProxy:s,propsOptions:[r],slots:i,attrs:l,emit:a,render:c,renderCache:u,props:d,data:f,setupState:p,ctx:g,inheritAttrs:m}=e,b=Rs(e);let x,v;try{if(n.shapeFlag&4){const T=s||o,K=T;x=Bt(c.call(K,T,u,d,p,f,g)),v=l}else{const T=t;x=Bt(T.length>1?T(d,{attrs:l,slots:i,emit:a}):T(d,null)),v=t.props?l:up(l)}}catch(T){tn.length=0,or(T,e,1),x=A(St)}let P=x;if(v&&m!==!1){const T=Object.keys(v),{shapeFlag:K}=P;T.length&&K&7&&(r&&T.some(Ks)&&(v=cp(v,r)),P=Hn(P,v,!1,!0))}if(n.dirs&&(P=Hn(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(n.dirs):n.dirs),n.transition){const T=sr(P.type)&&Pu(P)||P;Ti(T,n.transition)}return x=P,Rs(b),x}const up=e=>{let t;for(const n in e)(n==="class"||n==="style"||js(n))&&((t||(t={}))[n]=e[n]);return t},cp=(e,t)=>{const n={};for(const o in e)(!Ks(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function dp(e,t,n){const{props:o,children:s,component:r}=e,{props:i,children:l,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?Sl(o,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(Fu(i,o,f)&&!ir(c,f))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?Sl(o,i,c):!0:!!i;return!1}function Sl(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const r=o[s];if(Fu(t,e,r)&&!ir(n,r))return!0}return!1}function Fu(e,t,n){const o=e[n],s=t[n];return n==="style"&&Ee(o)&&Ee(s)?!Ct(o,s):o!==s}function fp({vnode:e,parent:t,suspense:n},o){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=o,e=s),s===e)(e=t.vnode).el=o,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=o)}const qu={},zu=()=>Object.create(qu),Vu=e=>Object.getPrototypeOf(e)===qu;function pp(e,t,n,o=!1){const s={},r=zu();e.propsDefaults=Object.create(null),Uu(e,t,s,r);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=o?s:hu(s):e.type.props?e.props=s:e.props=r,e.attrs=r}function hp(e,t,n,o){const{props:s,attrs:r,vnode:{patchFlag:i}}=e,l=ke(s),[a]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(ir(e.emitsOptions,f))continue;const p=t[f];if(a)if(Se(r,f))p!==r[f]&&(r[f]=p,c=!0);else{const g=je(f);s[g]=ii(a,l,g,p,e,!1)}else p!==r[f]&&(r[f]=p,c=!0)}}}else{Uu(e,t,s,r)&&(c=!0);let u;for(const d in l)(!t||!Se(t,d)&&((u=cn(d))===d||!Se(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(s[d]=ii(a,l,d,void 0,e,!0)):delete s[d]);if(r!==l)for(const d in r)(!t||!Se(t,d))&&(delete r[d],c=!0)}c&&Zt(e.attrs,"set","")}function Uu(e,t,n,o){const[s,r]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(Oo(a))continue;const c=t[a];let u;s&&Se(s,u=je(a))?!r||!r.includes(u)?n[u]=c:(l||(l={}))[u]=c:ir(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,i=!0)}if(r){const a=ke(n),c=l||_e;for(let u=0;u<r.length;u++){const d=r[u];n[d]=ii(s,a,d,c[d],e,!Se(c,d))}}return i}function ii(e,t,n,o,s,r){const i=e[n];if(i!=null){const l=Se(i,"default");if(l&&o===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&fe(a)){const{propsDefaults:c}=s;if(n in c)o=c[n];else{const u=rs(s);o=c[n]=a.call(null,t),u()}}else o=a;s.ce&&s.ce._setProp(n,o)}i[0]&&(r&&!l?o=!1:i[1]&&(o===""||o===cn(n))&&(o=!0))}return o}const mp=new WeakMap;function Hu(e,t,n=!1){const o=n?mp:t.propsCache,s=o.get(e);if(s)return s;const r=e.props,i={},l=[];let a=!1;if(!fe(e)){const u=d=>{a=!0;const[f,p]=Hu(d,t,!0);Ke(i,f),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!a)return Ee(e)&&o.set(e,Fn),Fn;if(ie(r))for(let u=0;u<r.length;u++){const d=je(r[u]);El(d)&&(i[d]=_e)}else if(r)for(const u in r){const d=je(u);if(El(d)){const f=r[u],p=i[d]=ie(f)||fe(f)?{type:f}:Ke({},f),g=p.type;let m=!1,b=!0;if(ie(g))for(let x=0;x<g.length;++x){const v=g[x],P=fe(v)&&v.name;if(P==="Boolean"){m=!0;break}else P==="String"&&(b=!1)}else m=fe(g)&&g.name==="Boolean";p[0]=m,p[1]=b,(m||Se(p,"default"))&&l.push(d)}}const c=[i,l];return Ee(e)&&o.set(e,c),c}function El(e){return e[0]!=="$"&&!Oo(e)}const Mi=e=>e==="_"||e==="_ctx"||e==="$stable",$i=e=>ie(e)?e.map(Bt):[Bt(e)],gp=(e,t,n)=>{if(t._n)return t;const o=O((...s)=>$i(t(...s)),n);return o._c=!1,o},ju=(e,t,n)=>{const o=e._ctx;for(const s in e){if(Mi(s))continue;const r=e[s];if(fe(r))t[s]=gp(s,r,o);else if(r!=null){const i=$i(r);t[s]=()=>i}}},Ku=(e,t)=>{const n=$i(t);e.slots.default=()=>n},Wu=(e,t,n)=>{for(const o in t)(n||!Mi(o))&&(e[o]=t[o])},vp=(e,t,n)=>{const o=e.slots=zu();if(e.vnode.shapeFlag&32){const s=t._;s?(Wu(o,t,n),n&&ja(o,"_",s,!0)):ju(t,o)}else t&&Ku(e,t)},yp=(e,t,n)=>{const{vnode:o,slots:s}=e;let r=!0,i=_e;if(o.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:Wu(s,t,n):(r=!t.$stable,ju(t,s)),i=t}else t&&(Ku(e,t),i={default:1});if(r)for(const l in s)!Mi(l)&&i[l]==null&&delete s[l]},st=Cp;function bp(e){return xp(e)}function xp(e,t){const n=Xs();n.__VUE__=!0;const{insert:o,remove:s,patchProp:r,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=Ft,insertStaticContent:g}=e,m=(y,_,w,B=null,F=null,N=null,ee=void 0,Z=null,Y=!!_.dynamicChildren)=>{if(y===_)return;y&&!wo(y,_)&&(B=E(y),Ue(y,F,N,!0),y=null),_.patchFlag===-2&&(Y=!1,_.dynamicChildren=null),_.dynamicChildren&&y&&y.dynamicChildren&&y.dynamicChildren.hasOnce&&(_.dynamicChildren===Fn&&(_.dynamicChildren=[]),_.dynamicChildren.hasOnce=!0);const{type:z,ref:ce,shapeFlag:re}=_;switch(z){case lr:b(y,_,w,B);break;case St:x(y,_,w,B);break;case ks:y==null&&v(_,w,B,ee);break;case be:$(y,_,w,B,F,N,ee,Z,Y);break;default:re&1?K(y,_,w,B,F,N,ee,Z,Y):re&6?I(y,_,w,B,F,N,ee,Z,Y):(re&64||re&128)&&z.process(y,_,w,B,F,N,ee,Z,Y,ne)}ce!=null&&F?Mo(ce,y&&y.ref,N,_||y,!_):ce==null&&y&&y.ref!=null&&Mo(y.ref,null,N,y,!0)},b=(y,_,w,B)=>{if(y==null)o(_.el=l(_.children),w,B);else{const F=_.el=y.el;_.children!==y.children&&c(F,_.children)}},x=(y,_,w,B)=>{y==null?o(_.el=a(_.children||""),w,B):_.el=y.el},v=(y,_,w,B)=>{[y.el,y.anchor]=g(y.children,_,w,B,y.el,y.anchor)},P=({el:y,anchor:_},w,B)=>{let F;for(;y&&y!==_;)F=f(y),o(y,w,B),y=F;o(_,w,B)},T=({el:y,anchor:_})=>{let w;for(;y&&y!==_;)w=f(y),s(y),y=w;s(_)},K=(y,_,w,B,F,N,ee,Z,Y)=>{if(_.type==="svg"?ee="svg":_.type==="math"&&(ee="mathml"),y==null)H(_,w,B,F,N,ee,Z,Y);else{const z=y.el&&y.el._isVueCE?y.el:null;try{z&&z._beginPatch(),oe(y,_,F,N,ee,Z,Y)}finally{z&&z._endPatch()}}},H=(y,_,w,B,F,N,ee,Z)=>{let Y,z;const{props:ce,shapeFlag:re,transition:le,dirs:he}=y;if(Y=y.el=i(y.type,N,ce&&ce.is,ce),re&8?u(Y,y.children):re&16&&J(y.children,Y,null,B,F,Or(y,N),ee,Z),he&&Mn(y,null,B,"created"),R(Y,y,y.scopeId,ee,B),ce){for(const Ie in ce)Ie!=="value"&&!Oo(Ie)&&r(Y,Ie,null,ce[Ie],N,B);"value"in ce&&r(Y,"value",null,ce.value,N),(z=ce.onVnodeBeforeMount)&&Rt(z,B,y)}he&&Mn(y,null,B,"beforeMount");const xe=_p(F,le);xe&&le.beforeEnter(Y),o(Y,_,w),((z=ce&&ce.onVnodeMounted)||xe||he)&&st(()=>{try{z&&Rt(z,B,y),xe&&le.enter(Y),he&&Mn(y,null,B,"mounted")}finally{}},F)},R=(y,_,w,B,F)=>{if(w&&p(y,w),B)for(let N=0;N<B.length;N++)p(y,B[N]);if(F){let N=F.subTree;if(_===N||Yu(N.type)&&(N.ssContent===_||N.ssFallback===_)){const ee=F.vnode;R(y,ee,ee.scopeId,ee.slotScopeIds,F.parent)}}},J=(y,_,w,B,F,N,ee,Z,Y=0)=>{for(let z=Y;z<y.length;z++){const ce=y[z]=Z?Xt(y[z]):Bt(y[z]);m(null,ce,_,w,B,F,N,ee,Z)}},oe=(y,_,w,B,F,N,ee)=>{const Z=_.el=y.el;let{patchFlag:Y,dynamicChildren:z,dirs:ce}=_;Y|=y.patchFlag&16;const re=y.props||_e,le=_.props||_e;let he;if(w&&$n(w,!1),(he=le.onVnodeBeforeUpdate)&&Rt(he,w,_,y),ce&&Mn(_,y,w,"beforeUpdate"),w&&$n(w,!0),z&&(!y.dynamicChildren||y.dynamicChildren.length!==z.length)&&(Y=0,ee=!1,z=null),(re.innerHTML&&le.innerHTML==null||re.textContent&&le.textContent==null)&&u(Z,""),z?j(y.dynamicChildren,z,Z,w,B,Or(_,F),N):ee||ae(y,_,Z,null,w,B,Or(_,F),N,!1),Y>0){if(Y&16)L(Z,re,le,w,F);else if(Y&2&&re.class!==le.class&&r(Z,"class",null,le.class,F),Y&4&&r(Z,"style",re.style,le.style,F),Y&8){const xe=_.dynamicProps;for(let Ie=0;Ie<xe.length;Ie++){const Te=xe[Ie],Fe=re[Te],We=le[Te];(We!==Fe||Te==="value")&&r(Z,Te,Fe,We,F,w)}}Y&1&&y.children!==_.children&&u(Z,_.children)}else!ee&&z==null&&L(Z,re,le,w,F);((he=le.onVnodeUpdated)||ce)&&st(()=>{he&&Rt(he,w,_,y),ce&&Mn(_,y,w,"updated")},B)},j=(y,_,w,B,F,N,ee)=>{for(let Z=0;Z<_.length;Z++){const Y=y[Z],z=_[Z],ce=Y.el&&(Y.type===be||!wo(Y,z)||Y.shapeFlag&198)?d(Y.el):w;m(Y,z,ce,null,B,F,N,ee,!0)}},L=(y,_,w,B,F)=>{if(_!==w){if(_!==_e)for(const N in _)!Oo(N)&&!(N in w)&&r(y,N,_[N],null,F,B);for(const N in w){if(Oo(N))continue;const ee=w[N],Z=_[N];ee!==Z&&N!=="value"&&r(y,N,Z,ee,F,B)}"value"in w&&r(y,"value",_.value,w.value,F)}},$=(y,_,w,B,F,N,ee,Z,Y)=>{const z=_.el=y?y.el:l(""),ce=_.anchor=y?y.anchor:l("");let{patchFlag:re,dynamicChildren:le,slotScopeIds:he}=_;he&&(Z=Z?Z.concat(he):he),y==null?(o(z,w,B),o(ce,w,B),J(_.children||[],w,ce,F,N,ee,Z,Y)):re>0&&re&64&&le&&y.dynamicChildren&&y.dynamicChildren.length===le.length?(j(y.dynamicChildren,le,w,F,N,ee,Z),(_.key!=null||F&&_===F.subTree)&&Bi(y,_,!0)):ae(y,_,w,ce,F,N,ee,Z,Y)},I=(y,_,w,B,F,N,ee,Z,Y)=>{_.slotScopeIds=Z,y==null?_.shapeFlag&512?F.ctx.activate(_,w,B,ee,Y):se(_,w,B,F,N,ee,Y):me(y,_,Y)},se=(y,_,w,B,F,N,ee)=>{const Z=y.component=Pp(y,B,F);if(Ii(y)&&(Z.ctx.renderer=ne),Op(Z,!1,ee),Z.asyncDep){if(F&&F.registerDep(Z,W,ee),!y.el){const Y=Z.subTree=A(St);x(null,Y,_,w),y.placeholder=Y.el}}else W(Z,y,_,w,F,N,ee)},me=(y,_,w)=>{const B=_.component=y.component;if(dp(y,_,w))if(B.asyncDep&&!B.asyncResolved){_.el=y.el,de(B,_,w);return}else B.next=_,B.update();else _.el=y.el,B.vnode=_},W=(y,_,w,B,F,N,ee)=>{const Z=()=>{if(y.isMounted){let{next:re,bu:le,u:he,parent:xe,vnode:Ie}=y;{const Tt=Gu(y);if(Tt){re&&(re.el=Ie.el,de(y,re,ee)),Tt.asyncDep.then(()=>{st(()=>{y.isUnmounted||z()},F)});return}}let Te=re,Fe;$n(y,!1),re?(re.el=Ie.el,de(y,re,ee)):re=Ie,le&&Cs(le),(Fe=re.props&&re.props.onVnodeBeforeUpdate)&&Rt(Fe,xe,re,Ie),$n(y,!0);const We=Al(y),Ot=y.subTree;y.subTree=We,m(Ot,We,d(Ot.el),E(Ot),y,F,N),re.el=We.el,Te===null&&fp(y,We.el),he&&st(he,F),(Fe=re.props&&re.props.onVnodeUpdated)&&st(()=>Rt(Fe,xe,re,Ie),F)}else{let re;const{el:le,props:he}=_,{bm:xe,m:Ie,parent:Te,root:Fe,type:We}=y,Ot=ro(_);$n(y,!1),xe&&Cs(xe),!Ot&&(re=he&&he.onVnodeBeforeMount)&&Rt(re,Te,_),$n(y,!0);{Fe.ce&&Fe.ce._hasShadowRoot()&&Fe.ce._injectChildStyle(We,y.parent?y.parent.type:void 0);const Tt=y.subTree=Al(y);m(null,Tt,w,B,y,F,N),_.el=Tt.el}if(Ie&&st(Ie,F),!Ot&&(re=he&&he.onVnodeMounted)){const Tt=_;st(()=>Rt(re,Te,Tt),F)}(_.shapeFlag&256||Te&&ro(Te.vnode)&&Te.vnode.shapeFlag&256)&&y.a&&st(y.a,F),y.isMounted=!0,_=w=B=null}};y.scope.on();const Y=y.effect=new Za(Z);y.scope.off();const z=y.update=Y.run.bind(Y),ce=y.job=Y.runIfDirty.bind(Y);ce.i=y,ce.id=y.uid,Y.scheduler=()=>Pi(ce),$n(y,!0),z()},de=(y,_,w)=>{_.component=y;const B=y.vnode.props;y.vnode=_,y.next=null,hp(y,_.props,B,w),yp(y,_.children,w),rn(),gl(y),ln()},ae=(y,_,w,B,F,N,ee,Z,Y=!1)=>{const z=y&&y.children,ce=y?y.shapeFlag:0,re=_.children,{patchFlag:le,shapeFlag:he}=_;if(le>0){if(le&128){nt(z,re,w,B,F,N,ee,Z,Y);return}else if(le&256){Ce(z,re,w,B,F,N,ee,Z,Y);return}}he&8?(ce&16&&ct(z,F,N),re!==z&&u(w,re)):ce&16?he&16?nt(z,re,w,B,F,N,ee,Z,Y):ct(z,F,N,!0):(ce&8&&u(w,""),he&16&&J(re,w,B,F,N,ee,Z,Y))},Ce=(y,_,w,B,F,N,ee,Z,Y)=>{y=y||Fn,_=_||Fn;const z=y.length,ce=_.length,re=Math.min(z,ce);let le;for(le=0;le<re;le++){const he=_[le]=Y?Xt(_[le]):Bt(_[le]);m(y[le],he,w,null,F,N,ee,Z,Y)}z>ce?ct(y,F,N,!0,!1,re):J(_,w,B,F,N,ee,Z,Y,re)},nt=(y,_,w,B,F,N,ee,Z,Y)=>{let z=0;const ce=_.length;let re=y.length-1,le=ce-1;for(;z<=re&&z<=le;){const he=y[z],xe=_[z]=Y?Xt(_[z]):Bt(_[z]);if(wo(he,xe))m(he,xe,w,null,F,N,ee,Z,Y);else break;z++}for(;z<=re&&z<=le;){const he=y[re],xe=_[le]=Y?Xt(_[le]):Bt(_[le]);if(wo(he,xe))m(he,xe,w,null,F,N,ee,Z,Y);else break;re--,le--}if(z>re){if(z<=le){const he=le+1,xe=he<ce?_[he].el:B;for(;z<=le;)m(null,_[z]=Y?Xt(_[z]):Bt(_[z]),w,xe,F,N,ee,Z,Y),z++}}else if(z>le)for(;z<=re;)Ue(y[z],F,N,!0),z++;else{const he=z,xe=z,Ie=new Map;for(z=xe;z<=le;z++){const mt=_[z]=Y?Xt(_[z]):Bt(_[z]);mt.key!=null&&Ie.set(mt.key,z)}let Te,Fe=0;const We=le-xe+1;let Ot=!1,Tt=0;const xo=new Array(We);for(z=0;z<We;z++)xo[z]=0;for(z=he;z<=re;z++){const mt=y[z];if(Fe>=We){Ue(mt,F,N,!0);continue}let It;if(mt.key!=null)It=Ie.get(mt.key);else for(Te=xe;Te<=le;Te++)if(xo[Te-xe]===0&&wo(mt,_[Te])){It=Te;break}It===void 0?Ue(mt,F,N,!0):(xo[It-xe]=z+1,It>=Tt?Tt=It:Ot=!0,m(mt,_[It],w,null,F,N,ee,Z,Y),Fe++)}const ll=Ot?wp(xo):Fn;for(Te=ll.length-1,z=We-1;z>=0;z--){const mt=xe+z,It=_[mt],al=_[mt+1],ul=mt+1<ce?al.el||Ju(al):B;xo[z]===0?m(null,It,w,ul,F,N,ee,Z,Y):Ot&&(Te<0||z!==ll[Te]?Be(It,w,ul,2):Te--)}}},Be=(y,_,w,B,F=null)=>{const{el:N,type:ee,transition:Z,children:Y,shapeFlag:z}=y;if(z&6){Be(y.component.subTree,_,w,B);return}if(z&128){y.suspense.move(_,w,B);return}if(z&64){ee.move(y,_,w,ne);return}if(ee===be){o(N,_,w);for(let re=0;re<Y.length;re++)Be(Y[re],_,w,B);o(y.anchor,_,w);return}if(ee===ks){P(y,_,w);return}if(B!==2&&z&1&&Z)if(B===0)Z.persisted&&!N[Sr]?o(N,_,w):(Z.beforeEnter(N),o(N,_,w),st(()=>Z.enter(N),F));else{const{leave:re,delayLeave:le,afterLeave:he}=Z,xe=()=>{y.ctx.isUnmounted?s(N):o(N,_,w)},Ie=()=>{const Te=N._isLeaving||!!N[Sr];N._isLeaving&&N[Sr](!0),Z.persisted&&!Te?xe():re(N,()=>{xe(),he&&he()})};le?le(N,xe,Ie):Ie()}else o(N,_,w)},Ue=(y,_,w,B=!1,F=!1)=>{const{type:N,props:ee,ref:Z,children:Y,dynamicChildren:z,shapeFlag:ce,patchFlag:re,dirs:le,cacheIndex:he,memo:xe}=y;if((re===-2||z&&z.hasOnce)&&(F=!1),Z!=null&&(rn(),Mo(Z,null,w,y,!0),ln()),he!=null&&(!y.ctx||y.ctx===_)&&(_.renderCache[he]=void 0),ce&256){_.ctx.deactivate(y);return}const Ie=ce&1&&le,Te=!ro(y);let Fe;if(Te&&(Fe=ee&&ee.onVnodeBeforeUnmount)&&Rt(Fe,_,y),ce&6)Kt(y.component,w,B);else{if(ce&128){y.suspense.unmount(w,B);return}Ie&&Mn(y,null,_,"beforeUnmount"),ce&64?y.type.remove(y,_,w,ne,B):z&&!z.hasOnce&&(N!==be||re>0&&re&64)?ct(z,_,w,!1,!0):(N===be&&re&384||!F&&ce&16)&&ct(Y,_,w),B&&jt(y)}const We=xe!=null&&he==null;(Te&&(Fe=ee&&ee.onVnodeUnmounted)||Ie||We)&&st(()=>{Fe&&Rt(Fe,_,y),Ie&&Mn(y,null,_,"unmounted"),We&&(y.el=null)},w)},jt=y=>{const{type:_,el:w,anchor:B,transition:F}=y;if(_===be){mn(w,B);return}if(_===ks){T(y),F&&!F.persisted&&F.afterLeave&&F.afterLeave();return}const N=()=>{s(w),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(y.shapeFlag&1&&F&&!F.persisted){const{leave:ee,delayLeave:Z}=F,Y=()=>ee(w,N);Z?Z(y.el,N,Y):Y()}else N()},mn=(y,_)=>{let w;for(;y!==_;)w=f(y),s(y),y=w;s(_)},Kt=(y,_,w)=>{const{bum:B,scope:F,job:N,subTree:ee,um:Z,m:Y,a:z}=y;Pl(Y),Pl(z),B&&Cs(B),F.stop(),N?(N.flags|=8,Ue(ee,y,_,w)):y.vnode.el&&ee&&(ee.transition=y.vnode.transition,Ue(ee,y,_,w)),Z&&st(Z,_),st(()=>{y.isUnmounted=!0},_)},ct=(y,_,w,B=!1,F=!1,N=0)=>{for(let ee=N;ee<y.length;ee++)Ue(y[ee],_,w,B,F)},E=y=>{if(y.shapeFlag&6)return E(y.component.subTree);if(y.shapeFlag&128)return y.suspense.next();const _=f(y.anchor||y.el),w=_&&_[Eu];return w?f(w):_};let k=!1;const U=(y,_,w)=>{let B;y==null?_._vnode&&(Ue(_._vnode,null,null,!0),B=_._vnode.component):m(_._vnode||null,y,_,null,null,null,w),_._vnode=y,k||(k=!0,gl(B),wu(),k=!1)},ne={p:m,um:Ue,m:Be,r:jt,mt:se,mc:J,pc:ae,pbc:j,n:E,o:e};return{render:U,hydrate:void 0,createApp:rp(U)}}function Or({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 $n({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function _p(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Bi(e,t,n=!1){const o=e.children,s=t.children;if(ie(o)&&ie(s))for(let r=0;r<o.length;r++){const i=o[r];let l=s[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[r]=Xt(s[r]),l.el=i.el),!n&&l.patchFlag!==-2&&Bi(i,l)),l.type===lr&&(l.patchFlag===-1&&(l=s[r]=Xt(l)),l.el=i.el),l.type===St&&!l.el&&(l.el=i.el)}}function wp(e){const t=e.slice(),n=[0];let o,s,r,i,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(s=n[n.length-1],e[s]<c){t[o]=s,n.push(o);continue}for(r=0,i=n.length-1;r<i;)l=r+i>>1,e[n[l]]<c?r=l+1:i=l;c<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function Gu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Gu(t)}function Pl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ju(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ju(t.subTree):null}const Yu=e=>e.__isSuspense;function Cp(e,t){t&&t.pendingBranch?ie(e)?t.effects.push(...e):t.effects.push(e):Of(e)}const be=Symbol.for("v-fgt"),lr=Symbol.for("v-txt"),St=Symbol.for("v-cmt"),ks=Symbol.for("v-stc"),tn=[];let at=null;function C(e=!1){tn.push(at=e?null:[])}function Di(){tn.pop(),at=tn[tn.length-1]||null}let uo=1;function Bs(e,t=!1){uo+=e,e<0&&at&&t&&(at.hasOnce=!0)}function Xu(e){return e.dynamicChildren=uo>0?at||Fn:null,Di(),uo>0&&at&&at.push(e),e}function M(e,t,n,o,s,r){return Xu(S(e,t,n,o,s,r,!0))}function G(e,t,n,o,s){return Xu(A(e,t,n,o,s,!0))}function Vo(e){return e?e.__v_isVNode===!0:!1}function wo(e,t){return e.type===t.type&&e.key===t.key}const Zu=({key:e})=>e??null,As=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?$e(e)||Ne(e)||fe(e)?{i:Je,r:e,k:t,f:!!n}:e:null);function S(e,t=null,n=null,o=0,s=null,r=e===be?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Zu(t),ref:t&&As(t),scopeId:ku,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Je};return l?(Ds(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=$e(n)?8:16),uo>0&&!i&&at&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&at.push(a),a}const A=kp;function kp(e,t=null,n=null,o=0,s=null,r=!1){if((!e||e===Ru)&&(e=St),Vo(e)){const l=Hn(e,t,!0);return n&&Ds(l,n),uo>0&&!r&&at&&(l.shapeFlag&6?at[at.indexOf(e)]=l:at.push(l)),l.patchFlag=-2,l}if($p(e)&&(e=e.__vccOpts),t){t=Jn(t);let{class:l,style:a}=t;l&&!$e(l)&&(t.class=we(l)),Ee(a)&&(nr(a)&&!ie(a)&&(a=Ke({},a)),t.style=dn(a))}const i=$e(e)?1:Yu(e)?128:sr(e)?64:Ee(e)?4:fe(e)?2:0;return S(e,t,n,o,s,i,r,!0)}function Jn(e){return e?nr(e)||Vu(e)?Ke({},e):e:null}function Hn(e,t,n=!1,o=!1){const{props:s,ref:r,patchFlag:i,children:l,transition:a}=e,c=t?Le(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Zu(c),ref:t&&t.ref?n&&r?ie(r)?r.concat(As(t)):[r,As(t)]:As(t):r,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!==be?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&&Hn(e.ssContent),ssFallback:e.ssFallback&&Hn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return a&&o&&Ti(u,a.clone(u)),u}function V(e=" ",t=0){return A(lr,null,e,t)}function Ap(e,t){const n=A(ks,null,e);return n.staticCount=t,n}function X(e="",t=!1){return t?(C(),G(St,null,e)):A(St,null,e)}function Bt(e){return e==null||typeof e=="boolean"?A(St):ie(e)?A(be,null,e.slice()):Vo(e)?Xt(e):A(lr,null,String(e))}function Xt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Hn(e)}function Ds(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ie(t))n=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Ds(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Vu(t)?t._ctx=Je:s===3&&Je&&(Je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(fe(t)){if(o&65){Ds(e,{default:t});return}t={default:t,_ctx:Je},n=32}else t=String(t),o&64?(n=16,t=[V(t)]):n=8;e.children=t,e.shapeFlag|=n}function Le(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=we([t.class,o.class]));else if(s==="style")t.style=dn([t.style,o.style]);else if(js(s)){const r=t[s],i=o[s];i&&r!==i&&!(ie(r)&&r.includes(i))?t[s]=r?[].concat(r,i):i:i==null&&r==null&&!Ks(s)&&(t[s]=i)}else s!==""&&(t[s]=o[s])}return t}function Rt(e,t,n,o=null){kt(e,t,7,[n,o])}const Sp=Du();let Ep=0;function Pp(e,t,n){const o=e.type,s=(t?t.appContext:e.appContext)||Sp,r={uid:Ep++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ja(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Hu(o,s),emitsOptions:Lu(o,s),emit:null,emitted:null,propsDefaults:_e,inheritAttrs:o.inheritAttrs,ctx:_e,data:_e,props:_e,attrs:_e,slots:_e,refs:_e,setupState:_e,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=lp.bind(null,r),e.ce&&e.ce(r),r}let Qe=null;const Ht=()=>Qe||Je;let Ns,Uo;{const e=Xs(),t=(n,o)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(o),r=>{s.length>1?s.forEach(i=>i(r)):s[0](r)}};Ns=t("__VUE_INSTANCE_SETTERS__",n=>Qe=n),Uo=t("__VUE_SSR_SETTERS__",n=>Ho=n)}const rs=e=>{const t=Qe;return Ns(e),e.scope.on(),()=>{e.scope.off(),Ns(t)}},Ol=()=>{Qe&&Qe.scope.off(),Ns(null)};function Qu(e){return e.vnode.shapeFlag&4}let Ho=!1;function Op(e,t=!1,n=!1){t&&Uo(t);const{props:o,children:s}=e.vnode,r=Qu(e);pp(e,o,r,t),vp(e,s,n||t);const i=r?Tp(e,t):void 0;return t&&Uo(!1),i}function Tp(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Yf);const{setup:o}=n;if(o){rn();const s=e.setupContext=o.length>1?Rp(e):null,r=rs(e),i=ts(o,e,0,[e.props,s]),l=Va(i);if(ln(),r(),(l||e.sp)&&!ro(e)&&Ou(e),l){if(i.then(Ol,Ol),t)return i.then(a=>{Uo(!0);try{Tl(e,a,t)}finally{Uo(!1)}}).catch(a=>{or(a,e,0)});e.asyncDep=i}else Tl(e,i)}else ec(e)}function Tl(e,t,n){fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ee(t)&&(e.setupState=vu(t)),ec(e)}function ec(e,t,n){const o=e.type;e.render||(e.render=o.render||Ft);{const s=rs(e);rn();try{Qf(e)}finally{ln(),s()}}}const Ip={get(e,t){return Ze(e,"get",""),e[t]}};function Rp(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ip),slots:e.slots,emit:e.emit,expose:t}}function ar(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(vu(mu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in $o)return $o[n](e)},has(t,n){return n in t||n in $o}})):e.proxy}function Mp(e,t=!0){return fe(e)?e.displayName||e.name:e.name||t&&e.__name}function $p(e){return fe(e)&&"__vccOpts"in e}const q=(e,t)=>kf(e,t,Ho);function wt(e,t,n){try{Bs(-1);const o=arguments.length;return o===2?Ee(t)&&!ie(t)?Vo(t)?A(e,null,[t]):A(e,t):A(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Vo(n)&&(n=[n]),A(e,t,n))}finally{Bs(1)}}function Bp(e,t,n,o){const s=n[o];if(s&&Dp(s,e))return s;const r=t();return r.memo=e.slice(),r.cacheIndex=o,n[o]=r}function Dp(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let o=0;o<n.length;o++)if(He(n[o],t[o]))return!1;return uo>0&&at&&at.push(e),!0}const Np="3.5.43";/**
14
+ * @vue/runtime-dom v3.5.43
15
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
+ * @license MIT
17
+ **/let li;const Il=typeof window<"u"&&window.trustedTypes;if(Il)try{li=Il.createPolicy("vue",{createHTML:e=>e})}catch{}const tc=li?e=>li.createHTML(e):e=>e,Lp="http://www.w3.org/2000/svg",Fp="http://www.w3.org/1998/Math/MathML",Yt=typeof document<"u"?document:null,Rl=Yt&&Yt.createElement("template"),qp={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 s=t==="svg"?Yt.createElementNS(Lp,e):t==="mathml"?Yt.createElementNS(Fp,e):n?Yt.createElement(e,{is:n}):Yt.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>Yt.createTextNode(e),createComment:e=>Yt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,s,r){const i=n?n.previousSibling:t.lastChild;if(s&&(s===r||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===r||!(s=s.nextSibling)););else{Rl.innerHTML=tc(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const l=Rl.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]}},zp=Symbol("_vtc");function Vp(e,t,n){const o=e[zp];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ml=Symbol("_vod"),Up=Symbol("_vsh"),Hp=Symbol(""),jp=/(?:^|;)\s*display\s*:/;function Kp(e,t,n){const o=e.style,s=$e(n);let r=!1;if(n&&!s){if(t)if($e(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&Po(o,l,"")}else for(const i in t)n[i]==null&&Po(o,i,"");for(const i in n){i==="display"&&(r=!0);const l=n[i];l!=null?Gp(e,i,!$e(t)&&t?t[i]:void 0,l)||Po(o,i,l):Po(o,i,"")}}else if(s){if(t!==n){const i=o[Hp];i&&(n+=";"+i),o.cssText=n,r=jp.test(n)}}else t&&e.removeAttribute("style");Ml in e&&(e[Ml]=r?o.display:"",e[Up]&&(o.display="none"))}const hs=/\s*!important$/;function Po(e,t,n){if(ie(n))n.forEach(o=>Po(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))hs.test(n)?e.setProperty(t,n.replace(hs,""),"important"):e.setProperty(t,n);else{const o=Wp(e,t);hs.test(n)?e.setProperty(cn(o),n.replace(hs,""),"important"):e[o]=n}}const $l=["Webkit","Moz","ms"],Tr={};function Wp(e,t){const n=Tr[t];if(n)return n;let o=je(t);if(o!=="filter"&&o in e)return Tr[t]=o;o=Js(o);for(let s=0;s<$l.length;s++){const r=$l[s]+o;if(r in e)return Tr[t]=r}return t}function Gp(e,t,n,o){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&$e(o)&&n===o}const Bl="http://www.w3.org/1999/xlink";function Dl(e,t,n,o,s,r=Gd(t)){o&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Bl,t.slice(6,t.length)):e.setAttributeNS(Bl,t,n):n==null||r&&!Ka(n)?e.removeAttribute(t):e.setAttribute(t,r?"":bt(n)?String(n):n)}function Nl(e,t,n,o,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?tc(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="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=Ka(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(s||t)}function en(e,t,n,o){e.addEventListener(t,n,o)}function Jp(e,t,n,o){e.removeEventListener(t,n,o)}const Ll=Symbol("_vei");function Yp(e,t,n,o,s=null){const r=e[Ll]||(e[Ll]={}),i=r[t];if(o&&i)i.value=o;else{const[l,a]=Qp(t);if(o){const c=r[t]=nh(o,s);en(e,l,c,a)}else i&&(Jp(e,l,i,a),r[t]=void 0)}}const Xp=/(Once|Passive|Capture)$/,Zp=/^on:?(?:Once|Passive|Capture)$/;function Qp(e){let t,n;for(;(n=e.match(Xp))&&!Zp.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):cn(e.slice(2)),t]}let Ir=0;const eh=Promise.resolve(),th=()=>Ir||(eh.then(()=>Ir=0),Ir=Date.now());function nh(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;const s=n.value;if(ie(s)){const r=o.stopImmediatePropagation;o.stopImmediatePropagation=()=>{r.call(o),o._stopped=!0};const i=s.slice(),l=[o];for(let a=0;a<i.length&&!o._stopped;a++){const c=i[a];c&&kt(c,t,5,l)}}else kt(s,t,5,[o])};return n.value=e,n.attached=th(),n}const Fl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,oh=(e,t,n,o,s,r)=>{const i=s==="svg";t==="class"?Vp(e,o,i):t==="style"?Kp(e,n,o):js(t)?Ks(t)||Yp(e,t,n,o,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):sh(e,t,o,i))?(Nl(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Dl(e,t,o,i,r,t!=="value")):e._isVueCE&&(rh(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!$e(o)))?Nl(e,je(t),o,r,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Dl(e,t,o,i))};function sh(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fl(t)&&fe(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 s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Fl(t)&&$e(n)?!1:t in e}function rh(e,t){const n=e._def.props;if(!n)return!1;const o=je(t);return Array.isArray(n)?n.some(s=>je(s)===o):Object.keys(n).some(s=>je(s)===o)}const En=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ie(t)?n=>Cs(t,n):t};function ih(e){e.target.composing=!0}function ql(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const gt=Symbol("_assign"),ms=Symbol("_initialValue");function Rr(e,t,n){return t&&(e=e.trim()),n&&(e=Ys(e)),e}const Ls={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e.parentNode&&(e.type==="text"?e[ms]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[ms]=e.defaultValue.replace(/\r\n?/g,`
18
+ `))),e[gt]=En(s);const r=o||s.props&&s.props.type==="number";en(e,t?"change":"input",i=>{i.target.composing||e[gt](Rr(e.value,n,r))}),(n||r)&&en(e,"change",()=>{e.value=Rr(e.value,n,r)}),t||(en(e,"compositionstart",ih),en(e,"compositionend",ql),en(e,"change",ql))},mounted(e,{value:t,modifiers:{trim:n,number:o}}){const s=t??"",r=e[ms];delete e[ms],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[gt](Rr(e.value,n,o)):e.value=s},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:s,number:r}},i){if(e[gt]=En(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?Ys(e.value):e.value,a=t??"";if(l===a)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(o&&t===n||s&&e.value.trim()===a)||(e.value=a)}},lh={deep:!0,created(e,t,n){e[gt]=En(n),en(e,"change",()=>{const o=e._modelValue,s=co(e),r=e.checked,i=e[gt];if(ie(o)){const l=Ci(o,s),a=l!==-1;if(r&&!a)i(o.concat(s));else if(!r&&a){const c=[...o];c.splice(l,1),i(c)}}else if(sn(o)){const l=new Set(o);r?l.add(s):l.delete(s),i(l)}else i(nc(e,r))})},mounted:zl,beforeUpdate(e,t,n){e[gt]=En(n),zl(e,t,n)}};function zl(e,{value:t,oldValue:n},o){e._modelValue=t;let s;if(ie(t))s=Ci(t,o.props.value)>-1;else if(sn(t))s=t.has(o.props.value);else{if(t===n)return;s=Ct(t,nc(e,!0))}e.checked!==s&&(e.checked=s)}const ah={created(e,{value:t},n){e.checked=Ct(t,n.props.value),e[gt]=En(n),en(e,"change",()=>{e[gt](co(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e[gt]=En(o),t!==n&&(e.checked=Ct(t,o.props.value))}},Ni={deep:!0,created(e,{value:t,modifiers:{number:n}},o){e._modelValue=t,en(e,"change",()=>{const s=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?Ys(co(a)):co(a)),r=e.multiple,i=r?sn(e._modelValue)?new Set(s):s:s[0],l=e._pendingValue=[r,r?ie(i)?s.slice():s:i];try{e[gt](i)}finally{et(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[gt]=En(o)},mounted(e,{value:t}){Vl(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[gt]=En(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!uh(t,n[1],n[0]))&&Vl(e,t)}};function uh(e,t,n){if(!n||ie(e))return Ct(e,t);if(sn(e)){if(e.size!==t.length)return!1;for(const o of t)if(!e.has(o))return!1;return!0}return!1}function Vl(e,t){const n=e.multiple,o=ie(t);if(!(n&&!o&&!sn(t))){for(let s=0,r=e.options.length;s<r;s++){const i=e.options[s],l=co(i);if(n)if(o){const a=typeof l;a==="string"||a==="number"?i.selected=t.some(c=>String(c)===String(l)):i.selected=Ci(t,l)>-1}else i.selected=t.has(l);else if(Ct(co(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function co(e){return"_value"in e?e._value:e.value}function nc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ch={created(e,t,n){gs(e,t,n,null,"created")},mounted(e,t,n){gs(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){gs(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){gs(e,t,n,o,"updated")}};function dh(e,t){switch(e){case"SELECT":return Ni;case"TEXTAREA":return Ls;default:switch(t){case"checkbox":return lh;case"radio":return ah;default:return Ls}}}function gs(e,t,n,o,s){const i=dh(e.tagName,n.props&&n.props.type)[s];i&&i(e,t,n,o)}const fh=["ctrl","shift","alt","meta"],ph={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)=>fh.some(n=>e[`${n}Key`]&&!t.includes(n))},vt=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=((s,...r)=>{for(let i=0;i<t.length;i++){const l=ph[t[i]];if(l&&l(s,t))return}return e(s,...r)}))},hh={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},jo=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=(s=>{if(!("key"in s))return;const r=cn(s.key);if(t.some(i=>i===r||hh[i]===r))return e(s)}))},mh=Ke({patchProp:oh},qp);let Ul;function gh(){return Ul||(Ul=bp(mh))}const vh=((...e)=>{const t=gh().createApp(...e),{mount:n}=t;return t.mount=o=>{const s=bh(o);if(!s)return;const r=t._component;!fe(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,yh(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t});function yh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function bh(e){return $e(e)?document.querySelector(e):e}const xh="/assets/source-sans-3-latin-wght-normal-BqRLTx4X.woff2";/*!
19
+ * vue-router v4.6.4
20
+ * (c) 2025 Eduardo San Martin Morote
21
+ * @license MIT
22
+ */const eo=typeof document<"u";function oc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function _h(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&oc(e.default)}const Ae=Object.assign;function Mr(e,t){const n={};for(const o in t){const s=t[o];n[o]=Et(s)?s.map(e):e(s)}return n}const Bo=()=>{},Et=Array.isArray;function Hl(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}const sc=/#/g,wh=/&/g,Ch=/\//g,kh=/=/g,Ah=/\?/g,rc=/\+/g,Sh=/%5B/g,Eh=/%5D/g,ic=/%5E/g,Ph=/%60/g,lc=/%7B/g,Oh=/%7C/g,ac=/%7D/g,Th=/%20/g;function Li(e){return e==null?"":encodeURI(""+e).replace(Oh,"|").replace(Sh,"[").replace(Eh,"]")}function Ih(e){return Li(e).replace(lc,"{").replace(ac,"}").replace(ic,"^")}function ai(e){return Li(e).replace(rc,"%2B").replace(Th,"+").replace(sc,"%23").replace(wh,"%26").replace(Ph,"`").replace(lc,"{").replace(ac,"}").replace(ic,"^")}function Rh(e){return ai(e).replace(kh,"%3D")}function Mh(e){return Li(e).replace(sc,"%23").replace(Ah,"%3F")}function $h(e){return Mh(e).replace(Ch,"%2F")}function Ko(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Bh=/\/$/,Dh=e=>e.replace(Bh,"");function $r(e,t,n="/"){let o,s={},r="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(o=t.slice(0,a),r=t.slice(a,l>0?l:t.length),s=e(r.slice(1))),l>=0&&(o=o||t.slice(0,l),i=t.slice(l,t.length)),o=qh(o??t,n),{fullPath:o+r+i,path:o,query:s,hash:Ko(i)}}function Nh(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function jl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Lh(e,t,n){const o=t.matched.length-1,s=n.matched.length-1;return o>-1&&o===s&&fo(t.matched[o],n.matched[s])&&uc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function fo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function uc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Fh(e[n],t[n]))return!1;return!0}function Fh(e,t){return Et(e)?Kl(e,t):Et(t)?Kl(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Kl(e,t){return Et(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function qh(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let r=n.length-1,i,l;for(i=0;i<o.length;i++)if(l=o[i],l!==".")if(l==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+o.slice(i).join("/")}const gn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ui=(function(e){return e.pop="pop",e.push="push",e})({}),Br=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function zh(e){if(!e)if(eo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Dh(e)}const Vh=/^[^#]+#/;function Uh(e,t){return e.replace(Vh,"#")+t}function Hh(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 ur=()=>({left:window.scrollX,top:window.scrollY});function jh(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Hh(s,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 Wl(e,t){return(history.state?history.state.position-t:-1)+e}const ci=new Map;function Kh(e,t){ci.set(e,t)}function Wh(e){const t=ci.get(e);return ci.delete(e),t}function Gh(e){return typeof e=="string"||e&&typeof e=="object"}function cc(e){return typeof e=="string"||typeof e=="symbol"}let De=(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 dc=Symbol("");De.MATCHER_NOT_FOUND+"",De.NAVIGATION_GUARD_REDIRECT+"",De.NAVIGATION_ABORTED+"",De.NAVIGATION_CANCELLED+"",De.NAVIGATION_DUPLICATED+"";function po(e,t){return Ae(new Error,{type:e,[dc]:!0},t)}function Gt(e,t){return e instanceof Error&&dc in e&&(t==null||!!(e.type&t))}const Jh=["params","query","hash"];function Yh(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Jh)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Xh(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 s=n[o].replace(rc," "),r=s.indexOf("="),i=Ko(r<0?s:s.slice(0,r)),l=r<0?null:Ko(s.slice(r+1));if(i in t){let a=t[i];Et(a)||(a=t[i]=[a]),a.push(l)}else t[i]=l}return t}function Gl(e){let t="";for(let n in e){const o=e[n];if(n=Rh(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(Et(o)?o.map(s=>s&&ai(s)):[o&&ai(o)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function Zh(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=Et(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const Qh=Symbol(""),Jl=Symbol(""),cr=Symbol(""),Fi=Symbol(""),di=Symbol("");function Co(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function wn(e,t,n,o,s,r=i=>i()){const i=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((l,a)=>{const c=f=>{f===!1?a(po(De.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?a(f):Gh(f)?a(po(De.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(i&&o.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),l())},u=r(()=>e.call(o&&o.instances[s],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>a(f))})}function Dr(e,t,n,o,s=r=>r()){const r=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(oc(a)){const c=(a.__vccOpts||a)[t];c&&r.push(wn(c,n,o,i,l,s))}else{let c=a();r.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const d=_h(u)?u.default:u;i.mods[l]=u,i.components[l]=d;const f=(d.__vccOpts||d)[t];return f&&wn(f,n,o,i,l,s)()}))}}return r}function em(e,t){const n=[],o=[],s=[],r=Math.max(t.matched.length,e.matched.length);for(let i=0;i<r;i++){const l=t.matched[i];l&&(e.matched.find(c=>fo(c,l))?o.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(c=>fo(c,a))||s.push(a))}return[n,o,s]}/*!
23
+ * vue-router v4.6.4
24
+ * (c) 2025 Eduardo San Martin Morote
25
+ * @license MIT
26
+ */let tm=()=>location.protocol+"//"+location.host;function fc(e,t){const{pathname:n,search:o,hash:s}=t,r=e.indexOf("#");if(r>-1){let i=s.includes(e.slice(r))?e.slice(r).length:1,l=s.slice(i);return l[0]!=="/"&&(l="/"+l),jl(l,"")}return jl(n,e)+o+s}function nm(e,t,n,o){let s=[],r=[],i=null;const l=({state:f})=>{const p=fc(e,location),g=n.value,m=t.value;let b=0;if(f){if(n.value=p,t.value=f,i&&i===g){i=null;return}b=m?f.position-m.position:0}else o(p);s.forEach(x=>{x(n.value,g,{delta:b,type:ui.pop,direction:b?b>0?Br.forward:Br.back:Br.unknown})})};function a(){i=n.value}function c(f){s.push(f);const p=()=>{const g=s.indexOf(f);g>-1&&s.splice(g,1)};return r.push(p),p}function u(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Ae({},f.state,{scroll:ur()}),"")}}function d(){for(const f of r)f();r=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:a,listen:c,destroy:d}}function Yl(e,t,n,o=!1,s=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:s?ur():null}}function om(e){const{history:t,location:n}=window,o={value:fc(e,n)},s={value:t.state};s.value||r(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(a,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+a:tm()+e+a;try{t[u?"replaceState":"pushState"](c,"",f),s.value=c}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function i(a,c){r(a,Ae({},t.state,Yl(s.value.back,a,s.value.forward,!0),c,{position:s.value.position}),!0),o.value=a}function l(a,c){const u=Ae({},s.value,t.state,{forward:a,scroll:ur()});r(u.current,u,!0),r(a,Ae({},Yl(o.value,a,null),{position:u.position+1},c),!1),o.value=a}return{location:o,state:s,push:l,replace:i}}function sm(e){e=zh(e);const t=om(e),n=nm(e,t.state,t.location,t.replace);function o(r,i=!0){i||n.pauseListeners(),history.go(r)}const s=Ae({location:"",base:e,go:o,createHref:Uh.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}let qn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var qe=(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})(qe||{});const rm={type:qn.Static,value:""},im=/[a-zA-Z0-9_]/;function lm(e){if(!e)return[[]];if(e==="/")return[[rm]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=qe.Static,o=n;const s=[];let r;function i(){r&&s.push(r),r=[]}let l=0,a,c="",u="";function d(){c&&(n===qe.Static?r.push({type:qn.Static,value:c}):n===qe.Param||n===qe.ParamRegExp||n===qe.ParamRegExpEnd?(r.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:qn.Param,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==qe.ParamRegExp){o=n,n=qe.EscapeNext;continue}switch(n){case qe.Static:a==="/"?(c&&d(),i()):a===":"?(d(),n=qe.Param):f();break;case qe.EscapeNext:f(),n=o;break;case qe.Param:a==="("?n=qe.ParamRegExp:im.test(a)?f():(d(),n=qe.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case qe.ParamRegExp:a===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+a:n=qe.ParamRegExpEnd:u+=a;break;case qe.ParamRegExpEnd:d(),n=qe.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--,u="";break;default:t("Unknown state");break}}return n===qe.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),d(),i(),s}const Xl="[^/]+?",am={sensitive:!1,strict:!1,start:!0,end:!0};var rt=(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})(rt||{});const um=/[.+*?^${}()[\]/\\]/g;function cm(e,t){const n=Ae({},am,t),o=[];let s=n.start?"^":"";const r=[];for(const c of e){const u=c.length?[]:[rt.Root];n.strict&&!c.length&&(s+="/");for(let d=0;d<c.length;d++){const f=c[d];let p=rt.Segment+(n.sensitive?rt.BonusCaseSensitive:0);if(f.type===qn.Static)d||(s+="/"),s+=f.value.replace(um,"\\$&"),p+=rt.Static;else if(f.type===qn.Param){const{value:g,repeatable:m,optional:b,regexp:x}=f;r.push({name:g,repeatable:m,optional:b});const v=x||Xl;if(v!==Xl){p+=rt.BonusCustomRegExp;try{`${v}`}catch(T){throw new Error(`Invalid custom RegExp for param "${g}" (${v}): `+T.message)}}let P=m?`((?:${v})(?:/(?:${v}))*)`:`(${v})`;d||(P=b&&c.length<2?`(?:/${P})`:"/"+P),b&&(P+="?"),s+=P,p+=rt.Dynamic,b&&(p+=rt.BonusOptional),m&&(p+=rt.BonusRepeatable),v===".*"&&(p+=rt.BonusWildcard)}u.push(p)}o.push(u)}if(n.strict&&n.end){const c=o.length-1;o[c][o[c].length-1]+=rt.BonusStrict}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const i=new RegExp(s,n.sensitive?"":"i");function l(c){const u=c.match(i),d={};if(!u)return null;for(let f=1;f<u.length;f++){const p=u[f]||"",g=r[f-1];d[g.name]=p&&g.repeatable?p.split("/"):p}return d}function a(c){let u="",d=!1;for(const f of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const p of f)if(p.type===qn.Static)u+=p.value;else if(p.type===qn.Param){const{value:g,repeatable:m,optional:b}=p,x=g in c?c[g]:"";if(Et(x)&&!m)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const v=Et(x)?x.join("/"):x;if(!v)if(b)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${g}"`);u+=v}}return u||"/"}return{re:i,score:o,keys:r,parse:l,stringify:a}}function dm(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]===rt.Static+rt.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===rt.Static+rt.Segment?1:-1:0}function pc(e,t){let n=0;const o=e.score,s=t.score;for(;n<o.length&&n<s.length;){const r=dm(o[n],s[n]);if(r)return r;n++}if(Math.abs(s.length-o.length)===1){if(Zl(o))return 1;if(Zl(s))return-1}return s.length-o.length}function Zl(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const fm={strict:!1,end:!0,sensitive:!1};function pm(e,t,n){const o=cm(lm(e.path),n),s=Ae(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function hm(e,t){const n=[],o=new Map;t=Hl(fm,t);function s(d){return o.get(d)}function r(d,f,p){const g=!p,m=ea(d);m.aliasOf=p&&p.record;const b=Hl(t,d),x=[m];if("alias"in d){const T=typeof d.alias=="string"?[d.alias]:d.alias;for(const K of T)x.push(ea(Ae({},m,{components:p?p.record.components:m.components,path:K,aliasOf:p?p.record:m})))}let v,P;for(const T of x){const{path:K}=T;if(f&&K[0]!=="/"){const H=f.record.path,R=H[H.length-1]==="/"?"":"/";T.path=f.record.path+(K&&R+K)}if(v=pm(T,f,b),p?p.alias.push(v):(P=P||v,P!==v&&P.alias.push(v),g&&d.name&&!ta(v)&&i(d.name)),hc(v)&&a(v),m.children){const H=m.children;for(let R=0;R<H.length;R++)r(H[R],v,p&&p.children[R])}p=p||v}return P?()=>{i(P)}:Bo}function i(d){if(cc(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=vm(d,n);n.splice(f,0,d),d.record.name&&!ta(d)&&o.set(d.record.name,d)}function c(d,f){let p,g={},m,b;if("name"in d&&d.name){if(p=o.get(d.name),!p)throw po(De.MATCHER_NOT_FOUND,{location:d});b=p.record.name,g=Ae(Ql(f.params,p.keys.filter(P=>!P.optional).concat(p.parent?p.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),d.params&&Ql(d.params,p.keys.map(P=>P.name))),m=p.stringify(g)}else if(d.path!=null)m=d.path,p=n.find(P=>P.re.test(m)),p&&(g=p.parse(m),b=p.record.name);else{if(p=f.name?o.get(f.name):n.find(P=>P.re.test(f.path)),!p)throw po(De.MATCHER_NOT_FOUND,{location:d,currentLocation:f});b=p.record.name,g=Ae({},f.params,d.params),m=p.stringify(g)}const x=[];let v=p;for(;v;)x.unshift(v.record),v=v.parent;return{name:b,path:m,params:g,matched:x,meta:gm(x)}}e.forEach(d=>r(d));function u(){n.length=0,o.clear()}return{addRoute:r,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:l,getRecordMatcher:s}}function Ql(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function ea(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:mm(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 mm(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 ta(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gm(e){return e.reduce((t,n)=>Ae(t,n.meta),{})}function vm(e,t){let n=0,o=t.length;for(;n!==o;){const r=n+o>>1;pc(e,t[r])<0?o=r:n=r+1}const s=ym(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function ym(e){let t=e;for(;t=t.parent;)if(hc(t)&&pc(e,t)===0)return t}function hc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function na(e){const t=pt(cr),n=pt(Fi),o=q(()=>{const a=h(e.to);return t.resolve(a)}),s=q(()=>{const{matched:a}=o.value,{length:c}=a,u=a[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(fo.bind(null,u));if(f>-1)return f;const p=oa(a[c-2]);return c>1&&oa(u)===p&&d[d.length-1].path!==p?d.findIndex(fo.bind(null,a[c-2])):f}),r=q(()=>s.value>-1&&Cm(n.params,o.value.params)),i=q(()=>s.value>-1&&s.value===n.matched.length-1&&uc(n.params,o.value.params));function l(a={}){if(wm(a)){const c=t[h(e.replace)?"replace":"push"](h(e.to)).catch(Bo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:o,href:q(()=>o.value.href),isActive:r,isExactActive:i,navigate:l}}function bm(e){return e.length===1?e[0]:e}const xm=te({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:na,setup(e,{slots:t}){const n=an(na(e)),{options:o}=pt(cr),s=q(()=>({[sa(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[sa(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&bm(t.default(n));return e.custom?r:wt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},r)}}}),_m=xm;function wm(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Cm(e,t){for(const n in t){const o=t[n],s=e[n];if(typeof o=="string"){if(o!==s)return!1}else if(!Et(s)||s.length!==o.length||o.some((r,i)=>r.valueOf()!==s[i].valueOf()))return!1}return!0}function oa(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const sa=(e,t,n)=>e??t??n,km=te({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=pt(di),s=q(()=>e.route||o.value),r=pt(Jl,0),i=q(()=>{let c=h(r);const{matched:u}=s.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),l=q(()=>s.value.matched[i.value]);Un(Jl,q(()=>i.value+1)),Un(Qh,l),Un(di,s);const a=D();return Oe(()=>[a.value,l.value,e.name],([c,u,d],[f,p,g])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!fo(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,d=l.value,f=d&&d.components[u];if(!f)return ra(n.default,{Component:f,route:c});const p=d.props[u],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,b=wt(f,Ae({},g,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(d.instances[u]=null)},ref:a}));return ra(n.default,{Component:b,route:c})||b}}});function ra(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Am=km;function Sm(e){const t=hm(e.routes,e),n=e.parseQuery||Xh,o=e.stringifyQuery||Gl,s=e.history,r=Co(),i=Co(),l=Co(),a=es(gn);let c=gn;eo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Mr.bind(null,E=>""+E),d=Mr.bind(null,$h),f=Mr.bind(null,Ko);function p(E,k){let U,ne;return cc(E)?(U=t.getRecordMatcher(E),ne=k):ne=E,t.addRoute(ne,U)}function g(E){const k=t.getRecordMatcher(E);k&&t.removeRoute(k)}function m(){return t.getRoutes().map(E=>E.record)}function b(E){return!!t.getRecordMatcher(E)}function x(E,k){if(k=Ae({},k||a.value),typeof E=="string"){const w=$r(n,E,k.path),B=t.resolve({path:w.path},k),F=s.createHref(w.fullPath);return Ae(w,B,{params:f(B.params),hash:Ko(w.hash),redirectedFrom:void 0,href:F})}let U;if(E.path!=null)U=Ae({},E,{path:$r(n,E.path,k.path).path});else{const w=Ae({},E.params);for(const B in w)w[B]==null&&delete w[B];U=Ae({},E,{params:d(w)}),k.params=d(k.params)}const ne=t.resolve(U,k),ye=E.hash||"";ne.params=u(f(ne.params));const y=Nh(o,Ae({},E,{hash:Ih(ye),path:ne.path})),_=s.createHref(y);return Ae({fullPath:y,hash:ye,query:o===Gl?Zh(E.query):E.query||{}},ne,{redirectedFrom:void 0,href:_})}function v(E){return typeof E=="string"?$r(n,E,a.value.path):Ae({},E)}function P(E,k){if(c!==E)return po(De.NAVIGATION_CANCELLED,{from:k,to:E})}function T(E){return R(E)}function K(E){return T(Ae(v(E),{replace:!0}))}function H(E,k){const U=E.matched[E.matched.length-1];if(U&&U.redirect){const{redirect:ne}=U;let ye=typeof ne=="function"?ne(E,k):ne;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=v(ye):{path:ye},ye.params={}),Ae({query:E.query,hash:E.hash,params:ye.path!=null?{}:E.params},ye)}}function R(E,k){const U=c=x(E),ne=a.value,ye=E.state,y=E.force,_=E.replace===!0,w=H(U,ne);if(w)return R(Ae(v(w),{state:typeof w=="object"?Ae({},ye,w.state):ye,force:y,replace:_}),k||U);const B=U;B.redirectedFrom=k;let F;return!y&&Lh(o,ne,U)&&(F=po(De.NAVIGATION_DUPLICATED,{to:B,from:ne}),Be(ne,ne,!0,!1)),(F?Promise.resolve(F):j(B,ne)).catch(N=>Gt(N)?Gt(N,De.NAVIGATION_GUARD_REDIRECT)?N:nt(N):ae(N,B,ne)).then(N=>{if(N){if(Gt(N,De.NAVIGATION_GUARD_REDIRECT))return R(Ae({replace:_},v(N.to),{state:typeof N.to=="object"?Ae({},ye,N.to.state):ye,force:y}),k||B)}else N=$(B,ne,!0,_,ye);return L(B,ne,N),N})}function J(E,k){const U=P(E,k);return U?Promise.reject(U):Promise.resolve()}function oe(E){const k=mn.values().next().value;return k&&typeof k.runWithContext=="function"?k.runWithContext(E):E()}function j(E,k){let U;const[ne,ye,y]=em(E,k);U=Dr(ne.reverse(),"beforeRouteLeave",E,k);for(const w of ne)w.leaveGuards.forEach(B=>{U.push(wn(B,E,k))});const _=J.bind(null,E,k);return U.push(_),ct(U).then(()=>{U=[];for(const w of r.list())U.push(wn(w,E,k));return U.push(_),ct(U)}).then(()=>{U=Dr(ye,"beforeRouteUpdate",E,k);for(const w of ye)w.updateGuards.forEach(B=>{U.push(wn(B,E,k))});return U.push(_),ct(U)}).then(()=>{U=[];for(const w of y)if(w.beforeEnter)if(Et(w.beforeEnter))for(const B of w.beforeEnter)U.push(wn(B,E,k));else U.push(wn(w.beforeEnter,E,k));return U.push(_),ct(U)}).then(()=>(E.matched.forEach(w=>w.enterCallbacks={}),U=Dr(y,"beforeRouteEnter",E,k,oe),U.push(_),ct(U))).then(()=>{U=[];for(const w of i.list())U.push(wn(w,E,k));return U.push(_),ct(U)}).catch(w=>Gt(w,De.NAVIGATION_CANCELLED)?w:Promise.reject(w))}function L(E,k,U){l.list().forEach(ne=>oe(()=>ne(E,k,U)))}function $(E,k,U,ne,ye){const y=P(E,k);if(y)return y;const _=k===gn,w=eo?history.state:{};U&&(ne||_?s.replace(E.fullPath,Ae({scroll:_&&w&&w.scroll},ye)):s.push(E.fullPath,ye)),a.value=E,Be(E,k,U,_),nt()}let I;function se(){I||(I=s.listen((E,k,U)=>{if(!Kt.listening)return;const ne=x(E),ye=H(ne,Kt.currentRoute.value);if(ye){R(Ae(ye,{replace:!0,force:!0}),ne).catch(Bo);return}c=ne;const y=a.value;eo&&Kh(Wl(y.fullPath,U.delta),ur()),j(ne,y).catch(_=>Gt(_,De.NAVIGATION_ABORTED|De.NAVIGATION_CANCELLED)?_:Gt(_,De.NAVIGATION_GUARD_REDIRECT)?(R(Ae(v(_.to),{force:!0}),ne).then(w=>{Gt(w,De.NAVIGATION_ABORTED|De.NAVIGATION_DUPLICATED)&&!U.delta&&U.type===ui.pop&&s.go(-1,!1)}).catch(Bo),Promise.reject()):(U.delta&&s.go(-U.delta,!1),ae(_,ne,y))).then(_=>{_=_||$(ne,y,!1),_&&(U.delta&&!Gt(_,De.NAVIGATION_CANCELLED)?s.go(-U.delta,!1):U.type===ui.pop&&Gt(_,De.NAVIGATION_ABORTED|De.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),L(ne,y,_)}).catch(Bo)}))}let me=Co(),W=Co(),de;function ae(E,k,U){nt(E);const ne=W.list();return ne.length?ne.forEach(ye=>ye(E,k,U)):console.error(E),Promise.reject(E)}function Ce(){return de&&a.value!==gn?Promise.resolve():new Promise((E,k)=>{me.add([E,k])})}function nt(E){return de||(de=!E,se(),me.list().forEach(([k,U])=>E?U(E):k()),me.reset()),E}function Be(E,k,U,ne){const{scrollBehavior:ye}=e;if(!eo||!ye)return Promise.resolve();const y=!U&&Wh(Wl(E.fullPath,0))||(ne||!U)&&history.state&&history.state.scroll||null;return et().then(()=>ye(E,k,y)).then(_=>_&&jh(_)).catch(_=>ae(_,E,k))}const Ue=E=>s.go(E);let jt;const mn=new Set,Kt={currentRoute:a,listening:!0,addRoute:p,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:m,resolve:x,options:e,push:T,replace:K,go:Ue,back:()=>Ue(-1),forward:()=>Ue(1),beforeEach:r.add,beforeResolve:i.add,afterEach:l.add,onError:W.add,isReady:Ce,install(E){E.component("RouterLink",_m),E.component("RouterView",Am),E.config.globalProperties.$router=Kt,Object.defineProperty(E.config.globalProperties,"$route",{enumerable:!0,get:()=>h(a)}),eo&&!jt&&a.value===gn&&(jt=!0,T(s.location).catch(ne=>{}));const k={};for(const ne in gn)Object.defineProperty(k,ne,{get:()=>a.value[ne],enumerable:!0});E.provide(cr,Kt),E.provide(Fi,hu(k)),E.provide(di,a);const U=E.unmount;mn.add(E),E.unmount=function(){mn.delete(E),mn.size<1&&(c=gn,I&&I(),I=null,a.value=gn,jt=!1,de=!1),U()}}};function ct(E){return E.reduce((k,U)=>k.then(()=>oe(U)),Promise.resolve())}return Kt}function Em(){return pt(cr)}function Pm(e){return pt(Fi)}/**
27
+ * @license lucide-vue-next v0.469.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const Om=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
32
+ * @license lucide-vue-next v0.469.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */var vs={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"};/**
37
+ * @license lucide-vue-next v0.469.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */const Tm=({size:e,strokeWidth:t=2,absoluteStrokeWidth:n,color:o,iconNode:s,name:r,class:i,...l},{slots:a})=>wt("svg",{...vs,width:e||vs.width,height:e||vs.height,stroke:o||vs.stroke,"stroke-width":n?Number(t)*24/Number(e):t,class:["lucide",`lucide-${Om(r??"icon")}`],...l},[...s.map(c=>wt(...c)),...a.default?[a.default()]:[]]);/**
42
+ * @license lucide-vue-next v0.469.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */const pe=(e,t)=>(n,{slots:o})=>wt(Tm,{...n,iconNode:t,name:e},o);/**
47
+ * @license lucide-vue-next v0.469.0 - ISC
48
+ *
49
+ * This source code is licensed under the ISC license.
50
+ * See the LICENSE file in the root directory of this source tree.
51
+ */const Im=pe("ActivityIcon",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
52
+ * @license lucide-vue-next v0.469.0 - ISC
53
+ *
54
+ * This source code is licensed under the ISC license.
55
+ * See the LICENSE file in the root directory of this source tree.
56
+ */const Rm=pe("ArrowUpIcon",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
57
+ * @license lucide-vue-next v0.469.0 - ISC
58
+ *
59
+ * This source code is licensed under the ISC license.
60
+ * See the LICENSE file in the root directory of this source tree.
61
+ */const Wo=pe("CheckIcon",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
62
+ * @license lucide-vue-next v0.469.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const mc=pe("ChevronDownIcon",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
67
+ * @license lucide-vue-next v0.469.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */const Mm=pe("ChevronRightIcon",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
72
+ * @license lucide-vue-next v0.469.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const $m=pe("CircleDashedIcon",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/**
77
+ * @license lucide-vue-next v0.469.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */const Bm=pe("CircleDotIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/**
82
+ * @license lucide-vue-next v0.469.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */const Dm=pe("CircleHelpIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
87
+ * @license lucide-vue-next v0.469.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */const Nm=pe("CropIcon",[["path",{d:"M6 2v14a2 2 0 0 0 2 2h14",key:"ron5a4"}],["path",{d:"M18 22V8a2 2 0 0 0-2-2H2",key:"7s9ehn"}]]);/**
92
+ * @license lucide-vue-next v0.469.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const Lm=pe("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"}]]);/**
97
+ * @license lucide-vue-next v0.469.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const ia=pe("EraserIcon",[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]]);/**
102
+ * @license lucide-vue-next v0.469.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const qi=pe("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"}]]);/**
107
+ * @license lucide-vue-next v0.469.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const Ss=pe("EyeIcon",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
112
+ * @license lucide-vue-next v0.469.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const ys=pe("FileImageIcon",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]);/**
117
+ * @license lucide-vue-next v0.469.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const Fm=pe("FlaskConicalIcon",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]);/**
122
+ * @license lucide-vue-next v0.469.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const qm=pe("GlobeIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
127
+ * @license lucide-vue-next v0.469.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const zm=pe("HistoryIcon",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
132
+ * @license lucide-vue-next v0.469.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const Vm=pe("ImageDownIcon",[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19 3 3v-5.5",key:"9ldu5r"}],["path",{d:"m17 22 3-3",key:"1nkfve"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);/**
137
+ * @license lucide-vue-next v0.469.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const Um=pe("ImageOffIcon",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]]);/**
142
+ * @license lucide-vue-next v0.469.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const Hm=pe("InfoIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
147
+ * @license lucide-vue-next v0.469.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const jm=pe("LayersIcon",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
152
+ * @license lucide-vue-next v0.469.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const Km=pe("LayoutGridIcon",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
157
+ * @license lucide-vue-next v0.469.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const gc=pe("ListChecksIcon",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
162
+ * @license lucide-vue-next v0.469.0 - ISC
163
+ *
164
+ * This source code is licensed under the ISC license.
165
+ * See the LICENSE file in the root directory of this source tree.
166
+ */const lt=pe("LoaderCircleIcon",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
167
+ * @license lucide-vue-next v0.469.0 - ISC
168
+ *
169
+ * This source code is licensed under the ISC license.
170
+ * See the LICENSE file in the root directory of this source tree.
171
+ */const la=pe("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"}]]);/**
172
+ * @license lucide-vue-next v0.469.0 - ISC
173
+ *
174
+ * This source code is licensed under the ISC license.
175
+ * See the LICENSE file in the root directory of this source tree.
176
+ */const vc=pe("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"}]]);/**
177
+ * @license lucide-vue-next v0.469.0 - ISC
178
+ *
179
+ * This source code is licensed under the ISC license.
180
+ * See the LICENSE file in the root directory of this source tree.
181
+ */const Wm=pe("MoonIcon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
182
+ * @license lucide-vue-next v0.469.0 - ISC
183
+ *
184
+ * This source code is licensed under the ISC license.
185
+ * See the LICENSE file in the root directory of this source tree.
186
+ */const Gm=pe("PaintBucketIcon",[["path",{d:"m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z",key:"irua1i"}],["path",{d:"m5 2 5 5",key:"1lls2c"}],["path",{d:"M2 13h15",key:"1hkzvu"}],["path",{d:"M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z",key:"xk76lq"}]]);/**
187
+ * @license lucide-vue-next v0.469.0 - ISC
188
+ *
189
+ * This source code is licensed under the ISC license.
190
+ * See the LICENSE file in the root directory of this source tree.
191
+ */const Jm=pe("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"}]]);/**
192
+ * @license lucide-vue-next v0.469.0 - ISC
193
+ *
194
+ * This source code is licensed under the ISC license.
195
+ * See the LICENSE file in the root directory of this source tree.
196
+ */const aa=pe("PlayIcon",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
197
+ * @license lucide-vue-next v0.469.0 - ISC
198
+ *
199
+ * This source code is licensed under the ISC license.
200
+ * See the LICENSE file in the root directory of this source tree.
201
+ */const Ym=pe("Redo2Icon",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]]);/**
202
+ * @license lucide-vue-next v0.469.0 - ISC
203
+ *
204
+ * This source code is licensed under the ISC license.
205
+ * See the LICENSE file in the root directory of this source tree.
206
+ */const Xm=pe("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"}]]);/**
207
+ * @license lucide-vue-next v0.469.0 - ISC
208
+ *
209
+ * This source code is licensed under the ISC license.
210
+ * See the LICENSE file in the root directory of this source tree.
211
+ */const Zm=pe("ShieldAlertIcon",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
212
+ * @license lucide-vue-next v0.469.0 - ISC
213
+ *
214
+ * This source code is licensed under the ISC license.
215
+ * See the LICENSE file in the root directory of this source tree.
216
+ */const Qm=pe("SlidersHorizontalIcon",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
217
+ * @license lucide-vue-next v0.469.0 - ISC
218
+ *
219
+ * This source code is licensed under the ISC license.
220
+ * See the LICENSE file in the root directory of this source tree.
221
+ */const Dt=pe("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"}]]);/**
222
+ * @license lucide-vue-next v0.469.0 - ISC
223
+ *
224
+ * This source code is licensed under the ISC license.
225
+ * See the LICENSE file in the root directory of this source tree.
226
+ */const Es=pe("SquareDashedIcon",[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]]);/**
227
+ * @license lucide-vue-next v0.469.0 - ISC
228
+ *
229
+ * This source code is licensed under the ISC license.
230
+ * See the LICENSE file in the root directory of this source tree.
231
+ */const eg=pe("SquareIcon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
232
+ * @license lucide-vue-next v0.469.0 - ISC
233
+ *
234
+ * This source code is licensed under the ISC license.
235
+ * See the LICENSE file in the root directory of this source tree.
236
+ */const tg=pe("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
237
+ * @license lucide-vue-next v0.469.0 - ISC
238
+ *
239
+ * This source code is licensed under the ISC license.
240
+ * See the LICENSE file in the root directory of this source tree.
241
+ */const ng=pe("TagIcon",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
242
+ * @license lucide-vue-next v0.469.0 - ISC
243
+ *
244
+ * This source code is licensed under the ISC license.
245
+ * See the LICENSE file in the root directory of this source tree.
246
+ */const Do=pe("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"}]]);/**
247
+ * @license lucide-vue-next v0.469.0 - ISC
248
+ *
249
+ * This source code is licensed under the ISC license.
250
+ * See the LICENSE file in the root directory of this source tree.
251
+ */const yc=pe("TypeIcon",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
252
+ * @license lucide-vue-next v0.469.0 - ISC
253
+ *
254
+ * This source code is licensed under the ISC license.
255
+ * See the LICENSE file in the root directory of this source tree.
256
+ */const og=pe("Undo2Icon",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
257
+ * @license lucide-vue-next v0.469.0 - ISC
258
+ *
259
+ * This source code is licensed under the ISC license.
260
+ * See the LICENSE file in the root directory of this source tree.
261
+ */const sg=pe("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"}]]);/**
262
+ * @license lucide-vue-next v0.469.0 - ISC
263
+ *
264
+ * This source code is licensed under the ISC license.
265
+ * See the LICENSE file in the root directory of this source tree.
266
+ */const rg=pe("WandSparklesIcon",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/**
267
+ * @license lucide-vue-next v0.469.0 - ISC
268
+ *
269
+ * This source code is licensed under the ISC license.
270
+ * See the LICENSE file in the root directory of this source tree.
271
+ */const ua=pe("WrenchIcon",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
272
+ * @license lucide-vue-next v0.469.0 - ISC
273
+ *
274
+ * This source code is licensed under the ISC license.
275
+ * See the LICENSE file in the root directory of this source tree.
276
+ */const dr=pe("XIcon",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
277
+ * @license lucide-vue-next v0.469.0 - ISC
278
+ *
279
+ * This source code is licensed under the ISC license.
280
+ * See the LICENSE file in the root directory of this source tree.
281
+ */const zi=pe("ZapIcon",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),ig={class:"flex min-h-screen flex-col items-center justify-center gap-3 text-sm text-muted-foreground"},lg=te({__name:"AppLoader",props:{message:{}},setup(e){return(t,n)=>(C(),M("div",ig,[A(h(lt),{class:"size-5 animate-spin text-foreground/70"}),S("p",null,Q(e.message),1)]))}});function Tn(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,o=Symbol(n);return[i=>{const l=pt(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=>(Un(o,i),i)]}function Nt(){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 bc(e,t,n){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),o.dispatchEvent(s)}function ag(e){return e==null}function is(e,t){return ki()?(Xa(e,t),!0):!1}function ug(){const e=new Set,t=r=>{e.delete(r)};return{on:r=>{e.add(r);const i=()=>t(r);return is(i),{off:i}},off:t,trigger:(...r)=>Promise.all(Array.from(e).map(i=>i(...r))),clear:()=>{e.clear()}}}function cg(e){let t=!1,n;const o=Ya(!0);return((...s)=>(t||(n=o.run(()=>e(...s)),t=!0),n))}const Pt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const dg=e=>typeof e<"u",fg=Object.prototype.toString,pg=e=>fg.call(e)==="[object Object]",ca=hg();function hg(){var e,t,n;return Pt&&!!(!((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 Nr(e){return Array.isArray(e)?e:[e]}function mg(e){return Ht()}function gg(e){if(!Pt)return e;let t=0,n,o;const s=()=>{t-=1,o&&t<=0&&(o.stop(),n=void 0,o=void 0)};return((...r)=>(t+=1,o||(o=Ya(!0),n=o.run(()=>e(...r))),is(s),n))}function vg(e){return an(Ne(e)?new Proxy({},{get(t,n,o){return h(Reflect.get(e.value,n,o))},set(t,n,o){return Ne(e.value[n])&&!Ne(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 yg(e){return vg(q(e))}function fr(e,...t){const n=t.flat(),o=n[0];return yg(()=>Object.fromEntries(typeof o=="function"?Object.entries(Sn(e)).filter(([s,r])=>!o(ut(r),s)):Object.entries(Sn(e)).filter(s=>!n.includes(s[0]))))}function bg(e,t=1e4){return yu((n,o)=>{let s=ut(e),r;const i=()=>setTimeout(()=>{s=ut(e),o()},ut(t));return is(()=>{clearTimeout(r)}),{get(){return n(),s},set(l){s=l,o(),clearTimeout(r),r=i()}}})}function xg(e,t){mg()&&Ri(e,t)}function xc(e,t,n={}){const{immediate:o=!0,immediateCallback:s=!1}=n,r=es(!1);let i;function l(){i&&(clearTimeout(i),i=void 0)}function a(){r.value=!1,l()}function c(...u){s&&e(),l(),r.value=!0,i=setTimeout(()=>{r.value=!1,i=void 0,e(...u)},ut(t))}return o&&(r.value=!0,Pt&&c()),is(a),{isPending:Dn(r),start:c,stop:a}}function _g(e,t,n){return Oe(e,t,{...n,immediate:!0})}const Vi=Pt?window:void 0;function vo(e){var t;const n=ut(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function Go(...e){const t=(o,s,r,i)=>(o.addEventListener(s,r,i),()=>o.removeEventListener(s,r,i)),n=q(()=>{const o=Nr(ut(e[0])).filter(s=>s!=null);return o.every(s=>typeof s!="string")?o:void 0});return _g(()=>{var o,s;return[(o=(s=n.value)===null||s===void 0?void 0:s.map(r=>vo(r)))!==null&&o!==void 0?o:[Vi].filter(r=>r!=null),Nr(ut(n.value?e[1]:e[0])),Nr(h(n.value?e[2]:e[1])),ut(n.value?e[3]:e[2])]},([o,s,r,i],l,a)=>{if(!(o!=null&&o.length)||!(s!=null&&s.length)||!(r!=null&&r.length))return;const c=pg(i)?{...i}:i,u=o.flatMap(d=>s.flatMap(f=>r.map(p=>t(d,f,p,c))));a(()=>{u.forEach(d=>d())})},{flush:"post"})}function wg(){const e=es(!1),t=Ht();return t&&tt(()=>{e.value=!0},t),e}function Cg(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function kg(...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:s=Vi,eventName:r="keydown",passive:i=!1,dedupe:l=!1}=o,a=Cg(t);return Go(s,r,u=>{u.repeat&&ut(l)||a(u)&&n(u)},i)}function Ag(e){return JSON.parse(JSON.stringify(e))}function pr(e,t,n,o={}){var s,r;const{clone:i=!1,passive:l=!1,eventName:a,deep:c=!1,defaultValue:u,shouldEmit:d}=o,f=Ht(),p=n||(f==null?void 0:f.emit)||(f==null||(s=f.$emit)===null||s===void 0?void 0:s.bind(f))||(f==null||(r=f.proxy)===null||r===void 0||(r=r.$emit)===null||r===void 0?void 0:r.bind(f==null?void 0:f.proxy));let g=a;t||(t="modelValue"),g=g||`update:${t.toString()}`;const m=v=>i?typeof i=="function"?i(v):Ag(v):v,b=()=>dg(e[t])?m(e[t]):u,x=v=>{d?d(v)&&p(g,v):p(g,v)};if(l){const v=D(b());let P=!1;return Oe(()=>e[t],T=>{P||(P=!0,v.value=m(T),et(()=>P=!1))}),Oe(v,T=>{!P&&(T!==e[t]||c)&&x(T)},{deep:c}),v}else return q({get(){return b()},set(v){x(v)}})}function Ui(e){return e?e.flatMap(t=>t.type===be?Ui(t.children):[t]):[]}const[hr]=Tn("ConfigProvider"),dt=an({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});function Lr(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function fi(e,t,n=".",o){if(!Lr(t))return fi(e,{},n,o);const s={...t};for(const r of Object.keys(e)){if(r==="__proto__"||r==="constructor")continue;const i=e[r];i!=null&&(o&&o(s,r,i,n)||(Array.isArray(i)&&Array.isArray(s[r])?s[r]=[...i,...s[r]]:Lr(i)&&Lr(s[r])?s[r]=fi(i,s[r],(n?`${n}.`:"")+r.toString(),o):s[r]=i))}return s}function Sg(e){return(...t)=>t.reduce((n,o)=>fi(n,o,"",e),{})}const _c=Sg(),Eg=gg(()=>{const e=D(new Map),t=D(),n=q(()=>{for(const i of e.value.values())if(i)return!0;return!1}),o=hr({scrollBody:D(!0)});let s=null;const r=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",dt.layersWithOutsidePointerEventsDisabled.size===0&&(document.body.style.pointerEvents=""),document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",ca&&(s==null||s()),t.value=void 0};return Oe(n,(i,l)=>{var d;if(!Pt)return;if(!i){l&&r();return}t.value===void 0&&(t.value=document.body.style.overflow);const a=window.innerWidth-document.documentElement.clientWidth,c={padding:a,margin:0},u=(d=o.scrollBody)!=null&&d.value?typeof o.scrollBody.value=="object"?_c({padding:o.scrollBody.value.padding===!0?a:o.scrollBody.value.padding,margin:o.scrollBody.value.margin===!0?a:o.scrollBody.value.margin},c):c:{padding:0,margin:0};a>0&&(document.body.style.paddingRight=typeof u.padding=="number"?`${u.padding}px`:String(u.padding),document.body.style.marginRight=typeof u.margin=="number"?`${u.margin}px`:String(u.margin),document.documentElement.style.setProperty("--scrollbar-width",`${a}px`),document.body.style.overflow="hidden"),ca&&(s=Go(document,"touchmove",f=>Og(f),{passive:!1})),et(()=>{n.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function Pg(e){const t=Math.random().toString(36).substring(2,7),n=Eg();n.value.set(t,e);const o=q({get:()=>n.value.get(t)??!1,set:s=>n.value.set(t,s)});return xg(()=>{n.value.delete(t)}),o}function wc(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:wc(n)}}function Og(e){const t=e||window.event,n=t.target;return n instanceof Element&&wc(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function Hi(e){const t=hr({dir:D("ltr")});return q(()=>{var n;return(e==null?void 0:e.value)||((n=t.dir)==null?void 0:n.value)||"ltr"})}function Tg(e){const t=Ht(),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(s=>{o[To(je(s))]=(...r)=>e(s,...r)}),o}let Fr=0;function Ig(){zt(e=>{if(!Pt)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??da()),document.body.insertAdjacentElement("beforeend",t[1]??da()),Fr++,e(()=>{Fr===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),Fr--})})}function da(){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 Ve(){const e=Ht(),t=D(),n=q(()=>o());Iu(()=>{n.value!==o()&&vf(t)});function o(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:vo(t)}const s=Object.assign({},e.exposed),r={};for(const l in e.props)Object.defineProperty(r,l,{enumerable:!0,configurable:!0,get:()=>e.props[l]});if(Object.keys(s).length>0)for(const l in s)Object.defineProperty(r,l,{enumerable:!0,configurable:!0,get:()=>s[l]});Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=r;function i(l){if(t.value=l,!!l&&(Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>l instanceof Element?l:l.$el}),!(l instanceof Element)&&!Object.hasOwn(l,"$el"))){const a=l.$.exposed,c=Object.assign({},r);for(const u in a)Object.defineProperty(c,u,{enumerable:!0,configurable:!0,get:()=>a[u]});e.exposed=c}}return{forwardRef:i,currentRef:t,currentElement:n}}function ls(e){const t=Ht(),n=Object.keys((t==null?void 0:t.type.props)??{}).reduce((s,r)=>{const i=(t==null?void 0:t.type.props[r]).default;return i!==void 0&&(s[r]=i),s},{}),o=wf(e);return q(()=>{const s={},r=(t==null?void 0:t.vnode.props)??{};return Object.keys(r).forEach(i=>{s[je(i)]=r[i]}),Object.keys({...n,...s}).reduce((i,l)=>(o.value[l]!==void 0&&(i[l]=o.value[l]),i),{})})}function In(e,t){const n=ls(e),o=t?Tg(t):{};return q(()=>({...n.value,...o}))}function Rg(e,t){const n=bg(!1,300);is(()=>{n.value=!1});const o=D(null),s=ug();function r(){o.value=null,n.value=!1}function i(l,a){if(!a)return;const c=l.currentTarget,u={x:l.clientX,y:l.clientY},d=Mg(u,c.getBoundingClientRect()),f=$g(u,d,1),p=Bg(a.getBoundingClientRect()),g=Ng([...f,...p]);o.value=g,n.value=!0}return zt(l=>{if(e.value&&t.value){const a=e.value,c=t.value,u=f=>i(f,c),d=f=>i(f,a);a.addEventListener("pointerleave",u),c.addEventListener("pointerleave",d),l(()=>{a.removeEventListener("pointerleave",u),c.removeEventListener("pointerleave",d)})}}),zt(l=>{var a;if(o.value){const c=d=>{var x,v;if(!o.value||!(d.target instanceof Element))return;const f=d.target,p={x:d.clientX,y:d.clientY},g=((x=e.value)==null?void 0:x.contains(f))||((v=t.value)==null?void 0:v.contains(f)),m=!Dg(p,o.value),b=!!f.closest("[data-grace-area-trigger]");g?r():(m||b)&&(r(),s.trigger())},u=(a=e.value)==null?void 0:a.ownerDocument;u==null||u.addEventListener("pointermove",c),l(()=>u==null?void 0:u.removeEventListener("pointermove",c))}}),{isPointerInTransit:n,onPointerExit:s.on}}function Mg(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),r=Math.abs(t.left-e.x);switch(Math.min(n,o,s,r)){case r:return"left";case s:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function $g(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 Bg(e){const{top:t,right:n,bottom:o,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:o},{x:s,y:o}]}function Dg(e,t){const{x:n,y:o}=e;let s=!1;for(let r=0,i=t.length-1;r<t.length;i=r++){const l=t[r].x,a=t[r].y,c=t[i].x,u=t[i].y;a>o!=u>o&&n<(c-l)*(o-a)/(u-a)+l&&(s=!s)}return s}function Ng(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),Lg(t)}function Lg(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const s=e[o];for(;t.length>=2;){const r=t.at(-1),i=t[t.length-2];if((r.x-i.x)*(s.y-i.y)>=(r.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const s=e[o];for(;n.length>=2;){const r=n.at(-1),i=n[n.length-2];if((r.x-i.x)*(s.y-i.y)>=(r.y-i.y)*(s.x-i.x))n.pop();else break}n.push(s)}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 Fg=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Zn=new WeakMap,bs=new WeakMap,xs={},qr=0,Cc=function(e){return e&&(e.host||Cc(e.parentNode))},qg=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Cc(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})},zg=function(e,t,n,o){var s=qg(t,Array.isArray(e)?e:[e]);xs[n]||(xs[n]=new WeakMap);var r=xs[n],i=[],l=new Set,a=new Set(s),c=function(d){!d||l.has(d)||(l.add(d),c(d.parentNode))};s.forEach(c);var u=function(d){!d||a.has(d)||Array.prototype.forEach.call(d.children,function(f){if(l.has(f))u(f);else try{var p=f.getAttribute(o),g=p!==null&&p!=="false",m=(Zn.get(f)||0)+1,b=(r.get(f)||0)+1;Zn.set(f,m),r.set(f,b),i.push(f),m===1&&g&&bs.set(f,!0),b===1&&f.setAttribute(n,"true"),g||f.setAttribute(o,"true")}catch(x){console.error("aria-hidden: cannot operate on ",f,x)}})};return u(t),l.clear(),qr++,function(){i.forEach(function(d){var f=Zn.get(d)-1,p=r.get(d)-1;Zn.set(d,f),r.set(d,p),f||(bs.has(d)||d.removeAttribute(o),bs.delete(d)),p||d.removeAttribute(n)}),qr--,qr||(Zn=new WeakMap,Zn=new WeakMap,bs=new WeakMap,xs={})}},Vg=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),s=Fg(e);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live], script"))),zg(o,s,n,"aria-hidden")):function(){return null}};function Ug(e){let t;Oe(()=>vo(e),n=>{let o=!1;try{o=!!(n!=null&&n.closest("[popover]:not(:popover-open)"))}catch{}n&&!o?t=Vg(n):t&&t()}),pn(()=>{t&&t()})}function ho(e,t="reka"){let n;const o=hr({useId:void 0});return o.useId?n=o.useId():n=Er==null?void 0:Er(),t?`${t}-${n}`:n}function Hg(e){const t=D(),n=q(()=>{var r;return((r=t.value)==null?void 0:r.width)??0}),o=q(()=>{var r;return((r=t.value)==null?void 0:r.height)??0});let s;return tt(()=>{const r=vo(e);r?(t.value={width:r.offsetWidth,height:r.offsetHeight},s=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let a,c;if("borderBoxSize"in l){const u=l.borderBoxSize,d=Array.isArray(u)?u[0]:u;a=d.inlineSize,c=d.blockSize}else a=r.offsetWidth,c=r.offsetHeight;t.value={width:a,height:c}}),s.observe(r,{box:"border-box"})):t.value=void 0}),pn(()=>{s==null||s.disconnect(),s=void 0}),{width:n,height:o}}function jg(e,t){const n=D(e);function o(r){return t[n.value][r]??n.value}return{state:n,dispatch:r=>{n.value=o(r)}}}function Kg(e,t){var b;const n=D({}),o=D("none"),s=D(e),r=e.value?"mounted":"unmounted";let i;const l=((b=t.value)==null?void 0:b.ownerDocument.defaultView)??Vi,{state:a,dispatch:c}=jg(r,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=x=>{var v;if(Pt){const P=new CustomEvent(x,{bubbles:!1,cancelable:!1});(v=t.value)==null||v.dispatchEvent(P)}};Oe(e,async(x,v)=>{var T;const P=v!==x;if(await et(),P){const K=o.value,H=_s(t.value);x?(c("MOUNT"),u("enter"),H==="none"&&u("after-enter")):H==="none"||H==="undefined"||((T=n.value)==null?void 0:T.display)==="none"?(c("UNMOUNT"),u("leave"),u("after-leave")):v&&K!==H?(c("ANIMATION_OUT"),u("leave")):(c("UNMOUNT"),u("after-leave"))}},{immediate:!0});const d=x=>{if(x.target!==t.value)return;const v=_s(t.value),P=v.includes(CSS.escape(x.animationName)),T=a.value==="mounted"?"enter":"leave";if(P&&(u(`after-${T}`),c("ANIMATION_END"),!s.value)){const K=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",i=l==null?void 0:l.setTimeout(()=>{var H;((H=t.value)==null?void 0:H.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=K)})}v==="none"&&c("ANIMATION_END")},f=x=>{x.target===t.value&&(o.value=_s(t.value))},p=Oe(t,(x,v)=>{x?(n.value=getComputedStyle(x),x.addEventListener("animationstart",f),x.addEventListener("animationcancel",d),x.addEventListener("animationend",d)):(c("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}),g=Oe(a,()=>{const x=_s(t.value);o.value=a.value==="mounted"?x:"none"});return pn(()=>{p(),g(),t.value&&(t.value.removeEventListener("animationstart",f),t.value.removeEventListener("animationcancel",d),t.value.removeEventListener("animationend",d)),i!==void 0&&(l==null||l.clearTimeout(i))}),{isPresent:q(()=>["mounted","unmountSuspended"].includes(a.value))}}function _s(e){return e&&getComputedStyle(e).animationName||"none"}var ji=te({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var c;const{present:o,forceMount:s}=Sn(e),r=D(),{isPresent:i}=Kg(o,r);n({present:i});let l=t.default({present:i.value});l=Ui(l||[]);const a=Ht();if(l&&(l==null?void 0:l.length)>1){const u=(c=a==null?void 0:a.parent)!=null&&c.type.name?`<${a.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` 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(`
282
+ `)].join(`
283
+ `))}return()=>s.value||o.value||i.value?wt(t.default({present:i.value})[0],{ref:u=>{const d=vo(u);return typeof(d==null?void 0:d.hasAttribute)>"u"||(d!=null&&d.hasAttribute("data-reka-popper-content-wrapper")?r.value=d.firstElementChild:r.value=d),d}}):null}});const pi=te({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var a;if(!n.default)return null;const o=Ui(n.default()),s=o.findIndex(c=>c.type!==St);if(s===-1)return o;const r=o[s];(a=r.props)==null||delete a.ref;const i=r.props?Le(t,r.props):t,l=Hn({...r,props:{}},i);return o.length===1?l:(o[s]=l,o)}}}),Wg=["area","img","input"],Ye=te({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"&&Wg.includes(o)?()=>wt(o,t):o!=="template"?()=>wt(e.as,t,{default:n.default}):()=>wt(pi,t,{default:n.default})}});function fa(){const e=D(),t=q(()=>{var n,o;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(o=e.value)==null?void 0:o.$el.nextElementSibling:vo(e)});return{primitiveElement:e,currentElement:t}}const Gg="dismissableLayer.pointerDownOutside",Jg="dismissableLayer.focusOutside";function kc(e,t){if(!(t instanceof Element))return!1;if(e.contains(t))return!0;const n=t.closest("[data-dismissable-layer]"),o=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),s=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(o===n||s.indexOf(o)<s.indexOf(n)))}function Yg(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),s=D(!1),r=D(()=>{});return zt(l=>{if(!Pt||!ut(n))return;const a=async u=>{const d=u.target;if(!(!(t!=null&&t.value)||!d)){if(kc(t.value,d)){o.removeEventListener("click",r.value),s.value=!1;return}if(u.target&&!s.value){let g=function(){bc(Gg,e,p)};var f=g;const p={originalEvent:u};u.pointerType==="touch"?(o.removeEventListener("click",r.value),r.value=g,o.addEventListener("click",r.value,{once:!0})):g()}else o.removeEventListener("click",r.value);s.value=!1}},c=window.setTimeout(()=>{o.addEventListener("pointerdown",a)},0);l(()=>{window.clearTimeout(c),o.removeEventListener("pointerdown",a),o.removeEventListener("click",r.value)})}),{onPointerDownCapture:()=>{ut(n)&&(s.value=!0)}}}function Xg(e,t,n=!0){var r;const o=((r=t==null?void 0:t.value)==null?void 0:r.ownerDocument)??(globalThis==null?void 0:globalThis.document),s=D(!1);return zt(i=>{if(!Pt||!ut(n))return;const l=async a=>{if(!(t!=null&&t.value))return;await et(),await et();const c=a.target;!t.value||!c||kc(t.value,c)||a.target&&!s.value&&bc(Jg,e,{originalEvent:a})};o.addEventListener("focusin",l),i(()=>o.removeEventListener("focusin",l))}),{onFocusCapture:()=>{ut(n)&&(s.value=!0)},onBlurCapture:()=>{ut(n)&&(s.value=!1)}}}var Zg=te({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,o=t,{forwardRef:s,currentElement:r}=Ve(),i=q(()=>{var p;return((p=r.value)==null?void 0:p.ownerDocument)??globalThis.document}),l=q(()=>dt.layersRoot),a=q(()=>r.value?Array.from(l.value).indexOf(r.value):-1),c=q(()=>dt.layersWithOutsidePointerEventsDisabled.size>0),u=q(()=>{const p=Array.from(l.value),[g]=[...dt.layersWithOutsidePointerEventsDisabled].slice(-1),m=p.indexOf(g);return a.value>=m}),d=Yg(async p=>{const g=[...dt.branches].some(m=>m==null?void 0:m.contains(p.target));!n.present||!u.value||g||(o("pointerDownOutside",p),o("interactOutside",p),await et(),p.defaultPrevented||o("dismiss"))},r,()=>n.present),f=Xg(p=>{const g=[...dt.branches].some(m=>m==null?void 0:m.contains(p.target));!n.present||g||(o("focusOutside",p),o("interactOutside",p),p.defaultPrevented||o("dismiss"))},r);return kg("Escape",p=>{!n.present||!(a.value===l.value.size-1)||(o("escapeKeyDown",p),p.defaultPrevented||o("dismiss"))}),Oe([r,()=>n.disableOutsidePointerEvents,()=>n.present],([p,g,m],b,x)=>{!p||!m||g&&(dt.layersWithOutsidePointerEventsDisabled.size===0&&(dt.originalBodyPointerEvents=i.value.body.style.pointerEvents,i.value.body.style.pointerEvents="none"),dt.layersWithOutsidePointerEventsDisabled.add(p),x(()=>{dt.layersWithOutsidePointerEventsDisabled.delete(p),dt.layersWithOutsidePointerEventsDisabled.size===0&&!ag(dt.originalBodyPointerEvents)&&(i.value.body.style.pointerEvents=dt.originalBodyPointerEvents)}))},{immediate:!0}),Oe([r,()=>n.present],([p,g],m,b)=>{!p||!g||(l.value.add(p),b(()=>{l.value.delete(p)}))},{immediate:!0}),zt(p=>{p(()=>{r.value&&(l.value.delete(r.value),dt.layersWithOutsidePointerEventsDisabled.delete(r.value))})}),(p,g)=>(C(),G(h(Ye),{ref:h(s),"as-child":p.asChild,as:p.as,"data-dismissable-layer":"",style:dn({pointerEvents:c.value?u.value?"auto":"none":void 0}),onFocusCapture:h(f).onFocusCapture,onBlurCapture:h(f).onBlurCapture,onPointerdownCapture:h(d).onPointerDownCapture},{default:O(()=>[ue(p.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Ac=Zg;const Qg=cg(()=>D([]));function ev(){const e=Qg();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=pa(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=pa(e.value,t),(n=e.value[0])==null||n.resume()}}}function pa(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}const zr="focusScope.autoFocusOnMount",Vr="focusScope.autoFocusOnUnmount",ha={bubbles:!1,cancelable:!0};function tv(e,{select:t=!1}={}){const n=Nt();for(const o of e)if(xn(o,{select:t}),Nt()!==n)return!0}function nv(e){const t=Sc(e),n=ma(t,e),o=ma(t.reverse(),e);return[n,o]}function Sc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ma(e,t){for(const n of e)if(!ov(n,{upTo:t}))return n}function ov(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 sv(e){return e instanceof HTMLInputElement&&"select"in e}function xn(e,{select:t=!1}={}){if(e&&e.focus){const n=Nt();e.focus({preventScroll:!0}),e!==n&&sv(e)&&t&&e.select()}}var rv=te({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},present:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,o=t,{currentRef:s,currentElement:r}=Ve(),i=D(null),l=ev(),a=an({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});zt(d=>{if(!Pt)return;const f=r.value;if(!n.trapped)return;function p(x){if(a.paused||!f)return;const v=x.target;f.contains(v)?i.value=v:xn(i.value,{select:!0})}function g(x){if(a.paused||!f)return;const v=x.relatedTarget;v!==null&&(f.contains(v)||xn(i.value,{select:!0}))}function m(x){const v=i.value;if(v===null||!x.some(H=>H.removedNodes.length>0))return;const T=Nt();if(T&&f.contains(T))return;f.contains(v)||xn(f)}document.addEventListener("focusin",p),document.addEventListener("focusout",g);const b=new MutationObserver(m);f&&b.observe(f,{childList:!0,subtree:!0}),d(()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),b.disconnect()})});function c(d,f){const p=new CustomEvent(zr,ha),g=m=>o("mountAutoFocus",m);d.addEventListener(zr,g),d.dispatchEvent(p),d.removeEventListener(zr,g),p.defaultPrevented||(tv(Sc(d),{select:!0}),Nt()===f&&xn(d))}zt(async d=>{const f=r.value;if(await et(),!f)return;n.present!==!1&&l.add(a);const p=Nt();!f.contains(p)&&n.present!==!1&&c(f,p),d(()=>{const m=new CustomEvent(Vr,ha),b=x=>{o("unmountAutoFocus",x)};f.addEventListener(Vr,b),f.dispatchEvent(m),f.setAttribute("data-focus-scope-unmounting",""),setTimeout(()=>{m.defaultPrevented||xn(p??document.body,{select:!0}),f.removeEventListener(Vr,b),l.remove(a),f.removeAttribute("data-focus-scope-unmounting")},0)})}),Oe(()=>n.present,async(d,f)=>{if(!Pt)return;if(d===!1&&f===!0){l.remove(a);return}if(d!==!0||f!==!1)return;l.add(a),await et();const p=r.value;if(!p)return;const g=Nt();p.contains(g)||c(p,g)});function u(d){if(!n.loop&&!n.trapped||a.paused)return;const f=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,p=Nt();if(f&&p){const g=d.currentTarget,[m,b]=nv(g);m&&b?!d.shiftKey&&p===b?(d.preventDefault(),n.loop&&xn(m,{select:!0})):d.shiftKey&&p===m&&(d.preventDefault(),n.loop&&xn(b,{select:!0})):p===g&&d.preventDefault()}}return(d,f)=>(C(),G(h(Ye),{ref_key:"currentRef",ref:s,tabindex:"-1","as-child":d.asChild,as:d.as,onKeydown:u},{default:O(()=>[ue(d.$slots,"default")]),_:3},8,["as-child","as"]))}}),iv=rv,lv=te({__name:"Teleport",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e,n=hr({}),o=q(()=>{var r;return t.to??((r=n.teleportTo)==null?void 0:r.value)??"body"}),s=wg();return(r,i)=>h(s)||r.forceMount?(C(),G(Oi,{key:0,to:o.value,disabled:r.disabled,defer:r.defer},[ue(r.$slots,"default")],8,["to","disabled","defer"])):X("v-if",!0)}}),Ec=lv;const ga="data-reka-collection-item";function Pc(e={}){const{key:t="",isProvider:n=!1}=e,o=`${t}CollectionProvider`;let s;n?(s={collectionRef:D(),itemMap:D(new Map)},Un(o,s)):s=pt(o);const r=(d,f=!1)=>{if(!s.collectionRef.value)return;const p=s.itemMap.value.get(d);return p&&(f||p.ref.dataset.disabled!=="")?p:void 0},i=(d=!1)=>{const f=s.collectionRef.value;if(!f)return[];const p=Array.from(f.querySelectorAll(`[${ga}]`)),g=new Map(p.map((x,v)=>[x,v])),b=Array.from(s.itemMap.value.values()).sort((x,v)=>(g.get(x.ref)??-1)-(g.get(v.ref)??-1));return d?b:b.filter(x=>x.ref.dataset.disabled!=="")},l=te({name:"CollectionSlot",inheritAttrs:!1,setup(d,{slots:f,attrs:p}){const{primitiveElement:g,currentElement:m}=fa();return Oe(m,()=>{s.collectionRef.value=m.value}),()=>wt(pi,{ref:g,...p},f)}}),a=te({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(d,{slots:f,attrs:p}){const{primitiveElement:g,currentElement:m}=fa();return zt(b=>{if(m.value){const x=mu(m.value);s.itemMap.value.set(x,{ref:m.value,value:d.value}),b(()=>s.itemMap.value.delete(x))}}),()=>wt(pi,{...p,[ga]:"",ref:g},f)}}),c=q(()=>Array.from(s.itemMap.value.values())),u=q(()=>s.itemMap.value.size);return{getItems:i,getItem:r,reactiveItems:c,itemMapSize:u,CollectionSlot:l,CollectionItem:a}}var av=te({__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)=>(C(),G(h(Ye),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"||t.feature==="fully-hidden"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:O(()=>[ue(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),uv=av;const cv="rovingFocusGroup.onEntryFocus",dv={bubbles:!1,cancelable:!0},fv={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function pv(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function hv(e,t,n){const o=pv(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return fv[o]}function Oc(e,t=!1){const n=Nt();for(const o of e)if(o===n||(o.focus({preventScroll:t}),Nt()!==n))return}function mv(e,t){return e.map((n,o)=>e[(t+o)%e.length])}const[Tc,gv]=Tn("PopperRoot");var vv=te({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=D();return gv({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>ue(n.$slots,"default")}}),Ic=vv,yv=te({__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}=Ve(),s=Tc();return Au(()=>{s.onAnchorChange(t.reference??o.value)}),(r,i)=>(C(),G(h(Ye),{ref:h(n),as:r.as,"as-child":r.asChild},{default:O(()=>[ue(r.$slots,"default")]),_:3},8,["as","as-child"]))}}),Rc=yv;function bv(e){return e!==null}function xv(e){return{name:"transformOrigin",options:e,fn(t){var x,v,P;const{placement:n,rects:o,middlewareData:s}=t,i=((x=s.arrow)==null?void 0:x.centerOffset)!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[c,u]=hi(n),d={start:e.dir==="rtl"?"100%":"0%",center:"50%",end:e.dir==="rtl"?"0%":"100%"}[u],f={start:"0%",center:"50%",end:"100%"}[u],p=(((v=s.arrow)==null?void 0:v.x)??0)+l/2,g=(((P=s.arrow)==null?void 0:P.y)??0)+a/2;let m="",b="";return c==="bottom"?(m=i?d:`${p}px`,b=`${-a}px`):c==="top"?(m=i?d:`${p}px`,b=`${o.floating.height+a}px`):c==="right"?(m=`${-a}px`,b=i?f:`${g}px`):c==="left"&&(m=`${o.floating.width+a}px`,b=i?f:`${g}px`),{data:{x:m,y:b}}}}}function hi(e){const[t,n="center"]=e.split("-");return[t,n]}const _v=["top","right","bottom","left"],Pn=Math.min,nn=Math.max,Fs=Math.round,ws=Math.floor,on=e=>({x:e,y:e}),wv={left:"right",right:"left",bottom:"top",top:"bottom"};function Mc(e,t,n){return nn(e,Pn(t,n))}function un(e,t){return typeof e=="function"?e(t):e}function On(e){return e.split("-")[0]}function yo(e){return e.split("-")[1]}function Ki(e){return e==="x"?"y":"x"}function Wi(e){return e==="y"?"height":"width"}function Lt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Gi(e){return Ki(Lt(e))}function Cv(e,t,n){n===void 0&&(n=!1);const o=yo(e),s=Gi(e),r=Wi(s);let i=s==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=qs(i)),[i,qs(i)]}function kv(e){const t=qs(e);return[mi(e),t,mi(t)]}function mi(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const va=["left","right"],ya=["right","left"],Av=["top","bottom"],Sv=["bottom","top"];function Ev(e,t,n){switch(e){case"top":case"bottom":return n?t?ya:va:t?va:ya;case"left":case"right":return t?Av:Sv;default:return[]}}function Pv(e,t,n,o){const s=yo(e);let r=Ev(On(e),n==="start",o);return s&&(r=r.map(i=>i+"-"+s),t&&(r=r.concat(r.map(mi)))),r}function qs(e){const t=On(e);return wv[t]+e.slice(t.length)}function Ov(e){var t,n,o,s;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(s=e.left)!=null?s:0}}function $c(e){return typeof e!="number"?Ov(e):{top:e,right:e,bottom:e,left:e}}function zs(e){const{x:t,y:n,width:o,height:s}=e;return{width:o,height:s,top:n,left:t,right:t+o,bottom:n+s,x:t,y:n}}function ba(e,t,n){let{reference:o,floating:s}=e;const r=Lt(t),i=Gi(t),l=Wi(i),a=On(t),c=r==="y",u=o.x+o.width/2-s.width/2,d=o.y+o.height/2-s.height/2,f=o[l]/2-s[l]/2;let p;switch(a){case"top":p={x:u,y:o.y-s.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-s.width,y:d};break;default:p={x:o.x,y:o.y}}const g=yo(t);return g&&(p[i]+=f*(g==="end"?1:-1)*(n&&c?-1:1)),p}async function Tv(e,t){var n;t===void 0&&(t={});const{x:o,y:s,platform:r,rects:i,elements:l,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=un(t,e),g=$c(p),b=l[f?d==="floating"?"reference":"floating":d],x=zs(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(b)))==null||n?b:b.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),v=d==="floating"?{x:o,y:s,width:i.floating.width,height:i.floating.height}:i.reference,P=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),T=await(r.isElement==null?void 0:r.isElement(P))&&await(r.getScale==null?void 0:r.getScale(P))||{x:1,y:1},K=zs(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:P,strategy:a}):v);return{top:(x.top-K.top+g.top)/T.y,bottom:(K.bottom-x.bottom+g.bottom)/T.y,left:(x.left-K.left+g.left)/T.x,right:(K.right-x.right+g.right)/T.x}}const Iv=50,Rv=async(e,t,n)=>{const{placement:o="bottom",strategy:s="absolute",middleware:r=[],platform:i}=n,l=i.detectOverflow?i:{...i,detectOverflow:Tv},a=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=ba(c,o,a),f=o,p=0;const g={};for(let m=0;m<r.length;m++){const b=r[m];if(!b)continue;const{name:x,fn:v}=b,{x:P,y:T,data:K,reset:H}=await v({x:u,y:d,initialPlacement:o,placement:f,strategy:s,middlewareData:g,rects:c,platform:l,elements:{reference:e,floating:t}});u=P??u,d=T??d,g[x]={...g[x],...K},H&&p<Iv&&(p++,typeof H=="object"&&(H.placement&&(f=H.placement),H.rects&&(c=H.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):H.rects),{x:u,y:d}=ba(c,f,a)),m=-1)}return{x:u,y:d,placement:f,strategy:s,middlewareData:g}},Mv=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:s,rects:r,platform:i,elements:l,middlewareData:a}=t,{element:c,padding:u=0}=un(e,t)||{};if(c==null)return{};const d=$c(u),f={x:n,y:o},p=Gi(s),g=Wi(p),m=await i.getDimensions(c),b=p==="y",x=b?"top":"left",v=b?"bottom":"right",P=b?"clientHeight":"clientWidth",T=r.reference[g]+r.reference[p]-f[p]-r.floating[g],K=f[p]-r.reference[p],H=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let R=H?H[P]:0;(!R||!await(i.isElement==null?void 0:i.isElement(H)))&&(R=l.floating[P]||r.floating[g]);const J=T/2-K/2,oe=R/2-m[g]/2-1,j=Pn(d[x],oe),L=Pn(d[v],oe),$=R-m[g]-L,I=R/2-m[g]/2+J,se=Mc(j,I,$),me=!a.arrow&&yo(s)!=null&&I!==se&&r.reference[g]/2-(I<j?j:L)-m[g]/2<0,W=me?I<j?I-j:I-$:0;return{[p]:f[p]+W,data:{[p]:se,centerOffset:I-se-W,...me&&{alignmentOffset:W}},reset:me}}}),$v=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:s,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...b}=un(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const x=On(s),v=Lt(l),P=On(l)===l,T=await(a.isRTL==null?void 0:a.isRTL(c.floating)),K=f||(P||!m?[qs(l)]:kv(l)),H=g!=="none";!f&&H&&K.push(...Pv(l,m,g,T));const R=[l,...K],J=await a.detectOverflow(t,b),oe=[];let j=((o=r.flip)==null?void 0:o.overflows)||[];if(u&&oe.push(J[x]),d){const se=Cv(s,i,T);oe.push(J[se[0]],J[se[1]])}if(j=[...j,{placement:s,overflows:oe}],!oe.every(se=>se<=0)){var L,$;const se=(((L=r.flip)==null?void 0:L.index)||0)+1,me=R[se];if(me&&(!(d==="alignment"?v!==Lt(me):!1)||j.every(ae=>Lt(ae.placement)===v?ae.overflows[0]>0:!0)))return{data:{index:se,overflows:j},reset:{placement:me}};let W=($=j.filter(de=>de.overflows[0]<=0).sort((de,ae)=>de.overflows[1]-ae.overflows[1])[0])==null?void 0:$.placement;if(!W)switch(p){case"bestFit":{var I;const de=(I=j.filter(ae=>{if(H){const Ce=Lt(ae.placement);return Ce===v||Ce==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(Ce=>Ce>0).reduce((Ce,nt)=>Ce+nt,0)]).sort((ae,Ce)=>ae[1]-Ce[1])[0])==null?void 0:I[0];de&&(W=de);break}case"initialPlacement":W=l;break}if(s!==W)return{reset:{placement:W}}}return{}}}};function xa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _a(e){return _v.some(t=>e[t]>=0)}const Bv=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:s="referenceHidden",...r}=un(e,t);switch(s){case"referenceHidden":{const i=await o.detectOverflow(t,{...r,elementContext:"reference"}),l=xa(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:_a(l)}}}case"escaped":{const i=await o.detectOverflow(t,{...r,altBoundary:!0}),l=xa(i,n.floating);return{data:{escapedOffsets:l,escaped:_a(l)}}}default:return{}}}}},Bc=new Set(["left","top"]);async function Dv(e,t){const{placement:n,platform:o,elements:s}=e,r=await(o.isRTL==null?void 0:o.isRTL(s.floating)),i=On(n),l=yo(n),a=Lt(n)==="y",c=Bc.has(i)?-1:1,u=r&&a?-1:1,d=un(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof g=="number"&&(p=l==="end"?g*-1:g),a?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const Nv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:s,y:r,placement:i,middlewareData:l}=t,a=await Dv(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:s+a.x,y:r+a.y,data:{...a,placement:i}}}}},Lv=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:s,platform:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:v=>{let{x:P,y:T}=v;return{x:P,y:T}}},...c}=un(e,t),u={x:n,y:o},d=await r.detectOverflow(t,c),f=Lt(s),p=Ki(f);let g=u[p],m=u[f];const b=(v,P)=>Mc(P+d[v==="y"?"top":"left"],P,P-d[v==="y"?"bottom":"right"]);i&&(g=b(p,g)),l&&(m=b(f,m));const x=a.fn({...t,[p]:g,[f]:m});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[p]:i,[f]:l}}}}}},Fv=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:s,y:r,placement:i,rects:l,middlewareData:a}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=un(e,t),f={x:s,y:r},p=Lt(i),g=Ki(p);let m=f[g],b=f[p];const x=un(c,t),v=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:(n=x.mainAxis)!=null?n:0,crossAxis:(o=x.crossAxis)!=null?o:0};if(u){const K=g==="y"?"height":"width",H=l.reference[g]-l.floating[K]+v.mainAxis,R=l.reference[g]+l.reference[K]-v.mainAxis;m<H?m=H:m>R&&(m=R)}if(d){var P,T;const K=g==="y"?"width":"height",H=Bc.has(On(i)),R=l.reference[p]-l.floating[K]+(H&&((P=a.offset)==null?void 0:P[p])||0)+(H?0:v.crossAxis),J=l.reference[p]+l.reference[K]+(H?0:((T=a.offset)==null?void 0:T[p])||0)-(H?v.crossAxis:0);b<R?b=R:b>J&&(b=J)}return{[g]:m,[p]:b}}}},qv=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:s,elements:r}=t,{apply:i=()=>{},...l}=un(e,t),a=await s.detectOverflow(t,l),c=On(n),u=yo(n),d=Lt(n)==="y",{width:f,height:p}=o.floating;let g,m;c==="top"||c==="bottom"?(g=c,m=u===(await(s.isRTL==null?void 0:s.isRTL(r.floating))?"start":"end")?"left":"right"):(m=c,g=u==="end"?"top":"bottom");const b=p-a.top-a.bottom,x=f-a.left-a.right,v=Pn(p-a[g],b),P=Pn(f-a[m],x),T=t.middlewareData.shift,K=!T;let H=v,R=P;T!=null&&T.enabled.x&&(R=x),T!=null&&T.enabled.y&&(H=b),K&&!u&&(d?R=f-2*nn(a.left,a.right):H=p-2*nn(a.top,a.bottom)),await i({...t,availableWidth:R,availableHeight:H});const J=await s.getDimensions(r.floating);return f!==J.width||p!==J.height?{reset:{rects:!0}}:{}}}};function mr(){return typeof window<"u"}function Yn(e){return Ji(e)?(e.nodeName||"").toLowerCase():"#document"}function ht(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function hn(e){var t;return(t=(Ji(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ji(e){return mr()?e instanceof Node||e instanceof ht(e).Node:!1}function Vt(e){return mr()?e instanceof Element||e instanceof ht(e).Element:!1}function Rn(e){return mr()?e instanceof HTMLElement||e instanceof ht(e).HTMLElement:!1}function wa(e){return!mr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ht(e).ShadowRoot}function gr(e){const{overflow:t,overflowX:n,overflowY:o,display:s}=Ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&s!=="inline"&&s!=="contents"}function zv(e){return/^(table|td|th)$/.test(Yn(e))}function vr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Vv=/transform|translate|scale|rotate|perspective|filter/,Uv=/paint|layout|strict|content/,Bn=e=>!!e&&e!=="none";let Ur;function Yi(e){const t=Vt(e)?Ut(e):e;return Bn(t.transform)||Bn(t.translate)||Bn(t.scale)||Bn(t.rotate)||Bn(t.perspective)||!Xi()&&(Bn(t.backdropFilter)||Bn(t.filter))||Vv.test(t.willChange||"")||Uv.test(t.contain||"")}function Hv(e){let t=jn(e);for(;Rn(t)&&!Jo(t);){if(Yi(t))return t;if(vr(t))return null;t=jn(t)}return null}function Xi(){return Ur==null&&(Ur=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ur}function Jo(e){return/^(html|body|#document)$/.test(Yn(e))}function Ut(e){return ht(e).getComputedStyle(e)}function yr(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jn(e){if(Yn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wa(e)&&e.host||hn(e);return wa(t)?t.host:t}function Dc(e){const t=jn(e);return Jo(t)?(e.ownerDocument||e).body:Rn(t)&&gr(t)?t:Dc(t)}function Yo(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Dc(e),r=s===((o=e.ownerDocument)==null?void 0:o.body),i=ht(s);if(r){const l=gi(i);return t.concat(i,i.visualViewport||[],gr(s)?s:[],l&&n?Yo(l):[])}else return t.concat(s,Yo(s,[],n))}function gi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nc(e){const t=Ut(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const s=Rn(e),r=s?e.offsetWidth:n,i=s?e.offsetHeight:o,l=Fs(n)!==r||Fs(o)!==i;return l&&(n=r,o=i),{width:n,height:o,$:l}}function Zi(e){return Vt(e)?e:e.contextElement}function lo(e){const t=Zi(e);if(!Rn(t))return on(1);const n=t.getBoundingClientRect(),{width:o,height:s,$:r}=Nc(t);let i=(r?Fs(n.width):n.width)/o,l=(r?Fs(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const jv=on(0);function Lc(e){const t=ht(e);return!Xi()||!t.visualViewport?jv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kv(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===ht(e)}function Kn(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),r=Zi(e);let i=on(1);t&&(o?Vt(o)&&(i=lo(o)):i=lo(e));const l=Kv(r,n,o)?Lc(r):on(0);let a=(s.left+l.x)/i.x,c=(s.top+l.y)/i.y,u=s.width/i.x,d=s.height/i.y;if(r&&o){const f=ht(r),p=Vt(o)?ht(o):o;let g=f,m=gi(g);for(;m&&p!==g;){const b=lo(m),x=m.getBoundingClientRect(),v=Ut(m),P=x.left+(m.clientLeft+parseFloat(v.paddingLeft))*b.x,T=x.top+(m.clientTop+parseFloat(v.paddingTop))*b.y;a*=b.x,c*=b.y,u*=b.x,d*=b.y,a+=P,c+=T,g=ht(m),m=gi(g)}}return zs({width:u,height:d,x:a,y:c})}function br(e,t){const n=yr(e).scrollLeft;return t?t.left+n:Kn(hn(e)).left+n}function Fc(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-br(e,n),s=n.top+t.scrollTop;return{x:o,y:s}}function Wv(e){let{elements:t,rect:n,offsetParent:o,strategy:s}=e;const r=s==="fixed",i=hn(o),l=t?vr(t.floating):!1;if(o===i||l&&r)return n;let a={scrollLeft:0,scrollTop:0},c=on(1);const u=on(0),d=Rn(o);if((d||!r)&&((Yn(o)!=="body"||gr(i))&&(a=yr(o)),d)){const p=Kn(o);c=lo(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}const f=i&&!d&&!r?Fc(i,a):on(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-a.scrollTop*c.y+u.y+f.y}}function Gv(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Jv(e){const t=yr(e),n=e.ownerDocument.body,o=nn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=nn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let r=-t.scrollLeft+br(e);const i=-t.scrollTop;return Ut(n).direction==="rtl"&&(r+=nn(e.clientWidth,n.clientWidth)-o),{width:o,height:s,x:r,y:i}}const Yv=25;function Xv(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",s=ht(e),r=hn(e),i=s.visualViewport;let l=r.clientWidth,a=r.clientHeight,c=0,u=0;if(i){const f=!Xi()||t==="fixed";o?f||(c=-i.offsetLeft,u=-i.offsetTop):(l=i.width,a=i.height,f&&(c=i.offsetLeft,u=i.offsetTop))}if(br(r)<=0){const f=r.ownerDocument,p=f.body,g=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,b=Math.abs(r.clientWidth-p.clientWidth-m),x=getComputedStyle(r).scrollbarGutter==="stable both-edges"?b/2:b;x<=Yv&&(l-=x)}return{width:l,height:a,x:c,y:u}}function Zv(e,t){const n=Kn(e,!0,t==="fixed"),o=n.top+e.clientTop,s=n.left+e.clientLeft,r=lo(e),i=e.clientWidth*r.x,l=e.clientHeight*r.y,a=s*r.x,c=o*r.y;return{width:i,height:l,x:a,y:c}}function Ca(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=Xv(e,n,t);else if(t==="document")o=Jv(hn(e));else if(Vt(t))o=Zv(t,n);else{const s=Lc(e);o={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return zs(o)}function Qv(e,t){const n=t.get(e);if(n)return n;let o=Yo(e,[],!1).filter(l=>Vt(l)&&Yn(l)!=="body"),s=null;const r=Ut(e).position==="fixed";let i=r?jn(e):e;for(;Vt(i)&&!Jo(i);){const l=Ut(i),a=Yi(i),c=s?s.position:r?"fixed":"";!a&&(c==="fixed"||c==="absolute"&&l.position==="static")?o=o.filter(d=>d!==i):s=l,i=jn(i)}return t.set(e,o),o}function ey(e){let{element:t,boundary:n,rootBoundary:o,strategy:s}=e;const i=[...n==="clippingAncestors"?vr(t)?[]:Qv(t,this._c):[].concat(n),o],l=Ca(t,i[0],s);let a=l.top,c=l.right,u=l.bottom,d=l.left;for(let f=1;f<i.length;f++){const p=Ca(t,i[f],s);a=nn(p.top,a),c=Pn(p.right,c),u=Pn(p.bottom,u),d=nn(p.left,d)}return{width:c-d,height:u-a,x:d,y:a}}function ty(e){const{width:t,height:n}=Nc(e);return{width:t,height:n}}function ny(e,t,n){const o=Rn(t),s=hn(t),r=n==="fixed",i=Kn(e,!0,r,t);let l={scrollLeft:0,scrollTop:0};const a=on(0);if((o||!r)&&((Yn(t)!=="body"||gr(s))&&(l=yr(t)),o)){const f=Kn(t,!0,r,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}!o&&s&&(a.x=br(s));const c=s&&!o&&!r?Fc(s,l):on(0),u=i.left+l.scrollLeft-a.x-c.x,d=i.top+l.scrollTop-a.y-c.y;return{x:u,y:d,width:i.width,height:i.height}}function Hr(e){return Ut(e).position==="static"}function ka(e,t){if(!Rn(e)||Ut(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return hn(e)===n&&(n=n.ownerDocument.body),n}function qc(e,t){const n=ht(e);if(vr(e))return n;if(!Rn(e)){let s=jn(e);for(;s&&!Jo(s);){if(Vt(s)&&!Hr(s))return s;s=jn(s)}return n}let o=ka(e,t);for(;o&&zv(o)&&Hr(o);)o=ka(o,t);return o&&Jo(o)&&Hr(o)&&!Yi(o)?n:o||Hv(e)||n}const oy=async function(e){const t=this.getOffsetParent||qc,n=this.getDimensions,o=await n(e.floating);return{reference:ny(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function sy(e){return Ut(e).direction==="rtl"}const ry={convertOffsetParentRelativeRectToViewportRelativeRect:Wv,getDocumentElement:hn,getClippingRect:ey,getOffsetParent:qc,getElementRects:oy,getClientRects:Gv,getDimensions:ty,getScale:lo,isElement:Vt,isRTL:sy};function zc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iy(e,t,n){let o=null,s;const r=hn(e);function i(){var u;clearTimeout(s),(u=o)==null||u.disconnect(),o=null}function l(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),i();const f=e.getBoundingClientRect(),{left:p,top:g,width:m,height:b}=f;if(u||t(),!m||!b)return;const x=ws(g),v=ws(r.clientWidth-(p+m)),P=ws(r.clientHeight-(g+b)),T=ws(p),H={rootMargin:-x+"px "+-v+"px "+-P+"px "+-T+"px",threshold:nn(0,Pn(1,d))||1};let R=!0;function J(oe){const j=oe[0].intersectionRatio;if(!zc(f,e.getBoundingClientRect()))return l();if(j!==d){if(!R)return l();j?l(!1,j):s=setTimeout(()=>{l(!1,1e-7)},1e3)}R=!1}try{o=new IntersectionObserver(J,{...H,root:r.ownerDocument})}catch{o=new IntersectionObserver(J,H)}o.observe(e)}const a=ht(e),c=()=>l(n);return a.addEventListener("resize",c),l(!0),()=>{a.removeEventListener("resize",c),i()}}function ly(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:r=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,c=Zi(e),u=s||r?[...c?Yo(c):[],...t?Yo(t):[]]:[];u.forEach(x=>{s&&x.addEventListener("scroll",n),r&&x.addEventListener("resize",n)});const d=c&&l?iy(c,n,r):null;let f=-1,p=null;i&&(p=new ResizeObserver(x=>{let[v]=x;v&&v.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var P;(P=p)==null||P.observe(t)})),n()}),c&&!a&&p.observe(c),t&&p.observe(t));let g,m=a?Kn(e):null;a&&b();function b(){const x=Kn(e);m&&!zc(m,x)&&n(),m=x,g=requestAnimationFrame(b)}return n(),()=>{var x;u.forEach(v=>{s&&v.removeEventListener("scroll",n),r&&v.removeEventListener("resize",n)}),d==null||d(),(x=p)==null||x.disconnect(),p=null,a&&cancelAnimationFrame(g)}}const ay=Nv,uy=Lv,Aa=$v,cy=qv,dy=Bv,fy=Mv,py=Fv,hy=(e,t,n)=>{const o=new Map,s=n??{},r={...ry,...s.platform,_c:o};return Rv(e,t,{...s,platform:r})};function my(e){return e!=null&&typeof e=="object"&&"$el"in e}function vi(e){if(my(e)){const t=e.$el;return Ji(t)&&Yn(t)==="#comment"?null:t}return e}function to(e){return typeof e=="function"?e():h(e)}function gy(e){return{name:"arrow",options:e,fn(t){const n=vi(to(e.element));return n==null?{}:fy({element:n,padding:e.padding}).fn(t)}}}function Vc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sa(e,t){const n=Vc(e);return Math.round(t*n)/n}function vy(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,s=q(()=>{var R;return(R=to(n.open))!=null?R:!0}),r=q(()=>to(n.middleware)),i=q(()=>{var R;return(R=to(n.placement))!=null?R:"bottom"}),l=q(()=>{var R;return(R=to(n.strategy))!=null?R:"absolute"}),a=q(()=>{var R;return(R=to(n.transform))!=null?R:!0}),c=q(()=>vi(e.value)),u=q(()=>vi(t.value)),d=D(0),f=D(0),p=D(l.value),g=D(i.value),m=es({}),b=D(!1),x=q(()=>{const R={position:p.value,left:"0",top:"0"};if(!u.value)return R;const J=Sa(u.value,d.value),oe=Sa(u.value,f.value);return a.value?{...R,transform:"translate("+J+"px, "+oe+"px)",...Vc(u.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:J+"px",top:oe+"px"}});let v;function P(){if(c.value==null||u.value==null)return;const R=s.value;hy(c.value,u.value,{middleware:r.value,placement:i.value,strategy:l.value}).then(J=>{d.value=J.x,f.value=J.y,p.value=J.strategy,g.value=J.placement,m.value=J.middlewareData,b.value=R!==!1})}function T(){typeof v=="function"&&(v(),v=void 0)}function K(){if(T(),o===void 0){P();return}if(c.value!=null&&u.value!=null){v=o(c.value,u.value,P);return}}function H(){s.value||(b.value=!1)}return Oe([r,i,l,s],P,{flush:"sync"}),Oe([c,u],K,{flush:"sync"}),Oe(s,H,{flush:"sync"}),ki()&&Xa(T),{x:Dn(d),y:Dn(f),strategy:Dn(p),placement:Dn(g),middlewareData:Dn(m),isPositioned:Dn(b),floatingStyles:x,update:P}}const yy=["dir"],by={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},[xw,xy]=Tn("PopperContent");var _y=te({inheritAttrs:!1,__name:"PopperContent",props:Xf({memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...by}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,s=Tc(),{forwardRef:r,currentElement:i}=Ve(),l=Hi(q(()=>n.dir)),a=D(),c=D(),{width:u,height:d}=Hg(c),f=q(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),p=q(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),g=q(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),m=q(()=>({padding:p.value,boundary:g.value.filter(bv),altBoundary:g.value.length>0})),b=q(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),x=q(()=>[ay({mainAxis:n.sideOffset+d.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Aa({...m.value,...b.value}),n.avoidCollisions&&uy({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?py():void 0,...m.value}),!n.prioritizePosition&&n.avoidCollisions&&Aa({...m.value,...b.value}),cy({...m.value,apply:({elements:I,rects:se,availableWidth:me,availableHeight:W})=>{const{width:de,height:ae}=se.reference,Ce=I.floating.style;Ce.setProperty("--reka-popper-available-width",`${me}px`),Ce.setProperty("--reka-popper-available-height",`${W}px`),Ce.setProperty("--reka-popper-anchor-width",`${de}px`),Ce.setProperty("--reka-popper-anchor-height",`${ae}px`)}}),c.value&&gy({element:c.value,padding:n.arrowPadding}),xv({arrowWidth:u.value,arrowHeight:d.value,dir:l.value}),n.hideWhenDetached&&dy({strategy:"referenceHidden",...m.value})]),v=q(()=>n.reference??s.anchor.value),{floatingStyles:P,placement:T,isPositioned:K,middlewareData:H}=vy(v,a,{strategy:n.positionStrategy,placement:f,whileElementsMounted:(...I)=>ly(...I,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:x}),R=q(()=>hi(T.value)[0]),J=q(()=>hi(T.value)[1]);Au(()=>{K.value&&o("placed")});const oe=q(()=>{var se;const I=((se=H.value.arrow)==null?void 0:se.centerOffset)!==0;return n.hideShiftedArrow&&I}),j=D("");zt(()=>{i.value&&(j.value=window.getComputedStyle(i.value).zIndex)});const L=q(()=>{var I;return((I=H.value.arrow)==null?void 0:I.x)??0}),$=q(()=>{var I;return((I=H.value.arrow)==null?void 0:I.y)??0});return xy({placedSide:R,onArrowChange:I=>c.value=I,arrowX:L,arrowY:$,shouldHideArrow:oe}),(I,se)=>{var me,W,de;return C(),M("div",{ref_key:"floatingRef",ref:a,"data-reka-popper-content-wrapper":"",dir:h(l),style:dn({...h(P),transform:h(K)?h(P).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j.value,"--reka-popper-transform-origin":[(me=h(H).transformOrigin)==null?void 0:me.x,(W=h(H).transformOrigin)==null?void 0:W.y].join(" "),...((de=h(H).hide)==null?void 0:de.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[n.memoDependencies?Bp([n.asChild,n.as,R.value,J.value,h(K),...Object.values(I.$attrs),...n.memoDependencies],()=>(C(),G(h(Ye),Le({key:0,ref:h(r)},I.$attrs,{"as-child":n.asChild,as:n.as,"data-side":R.value,"data-align":J.value,style:{animation:h(K)?void 0:"none"}}),{default:O(()=>[ue(I.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])),se,0):(C(),G(h(Ye),Le({key:1,ref:h(r)},I.$attrs,{"as-child":n.asChild,as:n.as,"data-side":R.value,"data-align":J.value,dir:h(l),style:{animation:h(K)?void 0:"none"}}),{default:O(()=>[ue(I.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","dir","style"]))],12,yy)}}}),Uc=_y;const[wy,Cy]=Tn("RovingFocusGroup");var ky=te({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){const o=e,s=n,{loop:r,orientation:i,dir:l}=Sn(o),a=Hi(l),c=pr(o,"currentTabStopId",s,{defaultValue:o.defaultCurrentTabStopId,passive:o.currentTabStopId===void 0}),u=D(!1),d=D(!1),f=D(0),{getItems:p,CollectionSlot:g}=Pc({isProvider:!0});function m(x){const v=!d.value;if(x.currentTarget&&x.target===x.currentTarget&&v&&!u.value){const P=new CustomEvent(cv,dv);if(x.currentTarget.dispatchEvent(P),s("entryFocus",P),!P.defaultPrevented){const T=p().map(oe=>oe.ref).filter(oe=>oe.dataset.disabled!==""),K=T.find(oe=>oe.getAttribute("data-active")===""),H=T.find(oe=>oe.getAttribute("data-highlighted")===""),R=T.find(oe=>oe.id===c.value),J=[K,H,R,...T].filter(Boolean);Oc(J,o.preventScrollOnEntryFocus)}}d.value=!1}function b(){setTimeout(()=>{d.value=!1},1)}return t({getItems:p}),Cy({loop:r,dir:a,orientation:i,currentTabStopId:c,onItemFocus:x=>{c.value=x},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{f.value++},onFocusableItemRemove:()=>{f.value--}}),(x,v)=>(C(),G(h(g),null,{default:O(()=>[A(h(Ye),{tabindex:u.value||f.value===0?-1:0,"data-orientation":h(i),as:x.as,"as-child":x.asChild,dir:h(a),style:{outline:"none"},onMousedown:v[0]||(v[0]=P=>d.value=!0),onMouseup:b,onFocus:m,onBlur:v[1]||(v[1]=P=>u.value=!1)},{default:O(()=>[ue(x.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),Ay=ky,Sy=te({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=wy(),o=ho(),s=q(()=>t.tabStopId||o),r=q(()=>n.currentTabStopId.value===s.value),{getItems:i,CollectionItem:l}=Pc();tt(()=>{t.focusable&&n.onFocusableItemAdd()}),pn(()=>{t.focusable&&n.onFocusableItemRemove()}),Oe(()=>t.focusable,(c,u)=>{c!==u&&(c?n.onFocusableItemAdd():n.onFocusableItemRemove())});function a(c){if(c.key==="Tab"&&c.shiftKey){n.onItemShiftTab();return}if(c.target!==c.currentTarget)return;const u=hv(c,n.orientation.value,n.dir.value);if(u!==void 0){if(c.metaKey||c.ctrlKey||c.altKey||!t.allowShiftKey&&c.shiftKey)return;c.preventDefault();let d=[...i().map(f=>f.ref).filter(f=>f.dataset.disabled!=="")];if(u==="last")d.reverse();else if(u==="prev"||u==="next"){u==="prev"&&d.reverse();const f=d.indexOf(c.currentTarget);d=n.loop.value?mv(d,f+1):d.slice(f+1)}et(()=>Oc(d))}}return(c,u)=>(C(),G(h(l),null,{default:O(()=>[A(h(Ye),{tabindex:r.value?0:-1,"data-orientation":h(n).orientation.value,"data-active":c.active?"":void 0,"data-disabled":c.focusable?void 0:"",as:c.as,"as-child":c.asChild,onMousedown:u[0]||(u[0]=d=>{c.focusable?h(n).onItemFocus(s.value):d.preventDefault()}),onFocus:u[1]||(u[1]=d=>h(n).onItemFocus(s.value)),onKeydown:a},{default:O(()=>[ue(c.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),Ey=Sy;const[as,Py]=Tn("PopoverRoot");var Oy=te({__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:s}=Sn(n),r=pr(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0});return Py({contentId:"",triggerId:"",modal:s,open:r,onOpenChange:a=>{r.value=a},onOpenToggle:()=>{r.value=!r.value},triggerElement:D(),hasCustomAnchor:D(!1)}),(a,c)=>(C(),G(h(Ic),null,{default:O(()=>[ue(a.$slots,"default",{open:h(r),close:()=>r.value=!1})]),_:3}))}}),Ty=Oy,Iy=te({__name:"PopoverContentImpl",props:{trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,s=ls(fr(n,"trapFocus","disableOutsidePointerEvents")),{forwardRef:r}=Ve(),i=as();return Ig(),(l,a)=>(C(),G(h(iv),{"as-child":"",loop:"",trapped:l.trapFocus,onMountAutoFocus:a[5]||(a[5]=c=>o("openAutoFocus",c)),onUnmountAutoFocus:a[6]||(a[6]=c=>o("closeAutoFocus",c))},{default:O(()=>[A(h(Ac),{"as-child":"","disable-outside-pointer-events":l.disableOutsidePointerEvents,onPointerDownOutside:a[0]||(a[0]=c=>o("pointerDownOutside",c)),onInteractOutside:a[1]||(a[1]=c=>o("interactOutside",c)),onEscapeKeyDown:a[2]||(a[2]=c=>o("escapeKeyDown",c)),onFocusOutside:a[3]||(a[3]=c=>o("focusOutside",c)),onDismiss:a[4]||(a[4]=c=>h(i).onOpenChange(!1))},{default:O(()=>[A(h(Uc),Le(h(s),{id:h(i).contentId,ref:h(r),"data-state":h(i).open.value?"open":"closed","aria-labelledby":h(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:O(()=>[ue(l.$slots,"default")]),_:3},16,["id","data-state","aria-labelledby"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),Hc=Iy,Ry=te({__name:"PopoverContentModal",props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,s=as(),r=D(!1);Pg(!0);const i=In(n,o),{forwardRef:l,currentElement:a}=Ve();return Ug(a),(c,u)=>(C(),G(Hc,Le(h(i),{ref:h(l),"trap-focus":h(s).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:u[0]||(u[0]=vt(d=>{var f;o("closeAutoFocus",d),r.value||(f=h(s).triggerElement.value)==null||f.focus()},["prevent"])),onPointerDownOutside:u[1]||(u[1]=d=>{o("pointerDownOutside",d);const f=d.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0,g=f.button===2||p;r.value=g}),onFocusOutside:u[2]||(u[2]=vt(()=>{},["prevent"]))}),{default:O(()=>[ue(c.$slots,"default")]),_:3},16,["trap-focus"]))}}),My=Ry,$y=te({__name:"PopoverContentNonModal",props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,s=as(),r=D(!1),i=D(!1),l=In(n,o);return(a,c)=>(C(),G(Hc,Le(h(l),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:c[0]||(c[0]=u=>{var d;o("closeAutoFocus",u),u.defaultPrevented||(r.value||(d=h(s).triggerElement.value)==null||d.focus(),u.preventDefault()),r.value=!1,i.value=!1}),onInteractOutside:c[1]||(c[1]=async u=>{var p;o("interactOutside",u),u.defaultPrevented||(r.value=!0,u.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const d=u.target;((p=h(s).triggerElement.value)==null?void 0:p.contains(d))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&i.value&&u.preventDefault()})}),{default:O(()=>[ue(a.$slots,"default")]),_:3},16))}}),By=$y,Dy=te({__name:"PopoverContent",props:{forceMount:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,s=as(),r=In(n,o),{forwardRef:i}=Ve();return s.contentId||(s.contentId=ho(void 0,"reka-popover-content")),(l,a)=>(C(),G(h(ji),{present:l.forceMount||h(s).open.value},{default:O(()=>[h(s).modal.value?(C(),G(My,Le({key:0},h(r),{ref:h(i)}),{default:O(()=>[ue(l.$slots,"default")]),_:3},16)):(C(),G(By,Le({key:1},h(r),{ref:h(i)}),{default:O(()=>[ue(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Ny=Dy,Ly=te({__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)=>(C(),G(h(Ec),go(Jn(t)),{default:O(()=>[ue(n.$slots,"default")]),_:3},16))}}),Fy=Ly,qy=te({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=as(),{forwardRef:o,currentElement:s}=Ve();return n.triggerId||(n.triggerId=ho(void 0,"reka-popover-trigger")),n.contentId||(n.contentId=ho(void 0,"reka-popover-content")),tt(()=>{n.triggerElement.value=s.value}),(r,i)=>(C(),G(ss(h(n).hasCustomAnchor.value?h(Ye):h(Rc)),{"as-child":""},{default:O(()=>[A(h(Ye),{id:h(n).triggerId,ref:h(o),type:r.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":h(n).open.value,"aria-controls":h(n).open.value?h(n).contentId:void 0,"data-state":h(n).open.value?"open":"closed",as:r.as,"as-child":t.asChild,onClick:h(n).onOpenToggle},{default:O(()=>[ue(r.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),zy=qy,Vy=te({__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 Ve(),(n,o)=>(C(),G(h(Ye),Le(t,{onMousedown:o[0]||(o[0]=s=>{!s.defaultPrevented&&s.detail>1&&s.preventDefault()})}),{default:O(()=>[ue(n.$slots,"default")]),_:3},16))}}),Uy=Vy;const[Qi,Hy]=Tn("TabsRoot");var jy=te({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,{orientation:s,unmountOnHide:r,dir:i}=Sn(n),l=Hi(i);Ve();const a=pr(n,"modelValue",o,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),c=D(),u=es(new Set);return Hy({modelValue:a,changeModelValue:d=>{a.value=d},orientation:s,dir:l,unmountOnHide:r,activationMode:n.activationMode,baseId:ho(void 0,"reka-tabs"),tabsList:c,contentIds:u,registerContent:d=>{u.value=new Set([...u.value,d])},unregisterContent:d=>{const f=new Set(u.value);f.delete(d),u.value=f}}),(d,f)=>(C(),G(h(Ye),{dir:h(l),"data-orientation":h(s),"as-child":d.asChild,as:d.as},{default:O(()=>[ue(d.$slots,"default",{modelValue:h(a)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),Ky=jy;function jc(e,t){return`${e}-trigger-${t}`}function Kc(e,t){return`${e}-content-${t}`}var Wy=te({__name:"TabsContent",props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n}=Ve(),o=Qi(),s=q(()=>jc(o.baseId,t.value)),r=q(()=>Kc(o.baseId,t.value)),i=q(()=>t.value===o.modelValue.value),l=D(i.value);return tt(()=>{o.registerContent(t.value),requestAnimationFrame(()=>{l.value=!1})}),Ri(()=>{o.unregisterContent(t.value)}),(a,c)=>(C(),G(h(ji),{present:a.forceMount||i.value,"force-mount":""},{default:O(({present:u})=>[A(h(Ye),{id:r.value,ref:h(n),"as-child":a.asChild,as:a.as,role:"tabpanel","data-state":i.value?"active":"inactive","data-orientation":h(o).orientation.value,"aria-labelledby":s.value,hidden:!u,tabindex:"0",style:dn({animationDuration:l.value?"0s":void 0})},{default:O(()=>[!h(o).unmountOnHide.value||u?ue(a.$slots,"default",{key:0}):X("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),Gy=Wy,Jy=te({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{loop:n}=Sn(t),{forwardRef:o,currentElement:s}=Ve(),r=Qi();return r.tabsList=s,(i,l)=>(C(),G(h(Ay),{"as-child":"",orientation:h(r).orientation.value,dir:h(r).dir.value,loop:h(n)},{default:O(()=>[A(h(Ye),{ref:h(o),role:"tablist","as-child":i.asChild,as:i.as,"aria-orientation":h(r).orientation.value},{default:O(()=>[ue(i.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),Yy=Jy,Xy=te({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,{forwardRef:n}=Ve(),o=Qi(),s=q(()=>jc(o.baseId,t.value)),r=q(()=>o.contentIds.value.has(t.value)?Kc(o.baseId,t.value):void 0),i=q(()=>t.value===o.modelValue.value);return(l,a)=>(C(),G(h(Ey),{"as-child":"",focusable:!l.disabled,active:i.value},{default:O(()=>[A(h(Ye),{id:s.value,ref:h(n),role:"tab",type:l.as==="button"?"button":void 0,as:l.as,"as-child":l.asChild,"aria-selected":i.value?"true":"false","aria-controls":r.value,"data-state":i.value?"active":"inactive",disabled:l.disabled,"data-disabled":l.disabled?"":void 0,"data-orientation":h(o).orientation.value,onMousedown:a[0]||(a[0]=vt(c=>{!l.disabled&&c.ctrlKey===!1?h(o).changeModelValue(l.value):c.preventDefault()},["left"])),onKeydown:a[1]||(a[1]=jo(c=>h(o).changeModelValue(l.value),["enter","space"])),onFocus:a[2]||(a[2]=()=>{const c=h(o).activationMode!=="manual";!i.value&&!l.disabled&&c&&h(o).changeModelValue(l.value)})},{default:O(()=>[ue(l.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),Zy=Xy;const[xr,Qy]=Tn("TooltipProvider");var e0=te({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:s,disableClosingTrigger:r,ignoreNonKeyboardFocus:i,disabled:l,content:a}=Sn(t);Ve();const c=D(!0),u=D(!1),{start:d,stop:f}=xc(()=>{c.value=!0},o,{immediate:!1});return Qy({isOpenDelayed:c,delayDuration:n,onOpen(){f(),c.value=!1},onClose(){d()},isPointerInTransitRef:u,disableHoverableContent:s,disableClosingTrigger:r,disabled:l,ignoreNonKeyboardFocus:i,content:a}),(p,g)=>ue(p.$slots,"default")}}),t0=e0;const Wc="tooltip.open",[_r,n0]=Tn("TooltipRoot");var o0=te({__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;Ve();const s=xr(),r=q(()=>n.disableHoverableContent??s.disableHoverableContent.value),i=q(()=>n.disableClosingTrigger??s.disableClosingTrigger.value),l=q(()=>n.disabled??s.disabled.value),a=q(()=>n.delayDuration??s.delayDuration.value),c=q(()=>n.ignoreNonKeyboardFocus??s.ignoreNonKeyboardFocus.value),u=pr(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0});Oe(u,P=>{s.onClose&&(P?(s.onOpen(),document.dispatchEvent(new CustomEvent(Wc))):s.onClose())});const d=D(!1),f=D(),p=q(()=>u.value?d.value?"delayed-open":"instant-open":"closed"),{start:g,stop:m}=xc(()=>{d.value=!0,u.value=!0},a,{immediate:!1});function b(){m(),d.value=!1,u.value=!0}function x(){m(),u.value=!1}function v(){g()}return n0({contentId:"",open:u,stateAttribute:p,trigger:f,onTriggerChange(P){f.value=P},onTriggerEnter(){s.isOpenDelayed.value?v():b()},onTriggerLeave(){r.value?x():m()},onOpen:b,onClose:x,disableHoverableContent:r,disableClosingTrigger:i,disabled:l,ignoreNonKeyboardFocus:c}),(P,T)=>(C(),G(h(Ic),null,{default:O(()=>[ue(P.$slots,"default",{open:h(u)})]),_:3}))}}),s0=o0,r0=te({__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,s=_r(),r=xr(),{forwardRef:i,currentElement:l}=Ve(),a=q(()=>{var u;return n.ariaLabel||((u=l.value)==null?void 0:u.textContent)}),c=q(()=>{const{ariaLabel:u,...d}=n;return _c(d,r.content.value??{},{side:"top",sideOffset:0,align:"center",avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:"partial",hideWhenDetached:!1})});return tt(()=>{Go(window,"scroll",u=>{const d=u.target;d!=null&&d.contains(s.trigger.value)&&s.onClose()},{capture:!0}),Go(document,Wc,s.onClose)}),(u,d)=>(C(),G(h(Ac),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:d[0]||(d[0]=f=>o("escapeKeyDown",f)),onPointerDownOutside:d[1]||(d[1]=f=>{var p;h(s).disableClosingTrigger.value&&((p=h(s).trigger.value)!=null&&p.contains(f.target))&&f.preventDefault(),o("pointerDownOutside",f)}),onFocusOutside:d[2]||(d[2]=vt(()=>{},["prevent"])),onDismiss:d[3]||(d[3]=f=>h(s).onClose())},{default:O(()=>[A(h(Uc),Le({ref:h(i),"data-state":h(s).stateAttribute.value},{...u.$attrs,...c.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:O(()=>[ue(u.$slots,"default"),A(h(uv),{id:h(s).contentId,role:"tooltip"},{default:O(()=>[V(Q(a.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),Gc=r0,i0=te({__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=ls(e),{forwardRef:o,currentElement:s}=Ve(),{trigger:r,onClose:i}=_r(),l=xr(),{isPointerInTransit:a,onPointerExit:c}=Rg(r,s);return l.isPointerInTransitRef=a,c(()=>{i()}),Go(s,"pointermove",u=>{var p,g;const d=s.value;if(!d||u.pointerType==="touch")return;((g=(p=d.ownerDocument).elementsFromPoint)==null?void 0:g.call(p,u.clientX,u.clientY).some(m=>{if(d.contains(m))return!1;const b=m.closest("[data-grace-area-trigger]");return!!b&&b!==r.value}))&&i()}),(u,d)=>(C(),G(Gc,Le({ref:h(o)},h(n)),{default:O(()=>[ue(u.$slots,"default")]),_:3},16))}}),l0=i0,a0=te({__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,s=_r(),r=In(n,o),{forwardRef:i}=Ve();return(l,a)=>(C(),G(h(ji),{present:l.forceMount||h(s).open.value},{default:O(()=>[(C(),G(ss(h(s).disableHoverableContent.value?Gc:l0),Le({ref:h(i)},h(r)),{default:O(()=>[ue(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),u0=a0,c0=te({__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)=>(C(),G(h(Ec),go(Jn(t)),{default:O(()=>[ue(n.$slots,"default")]),_:3},16))}}),d0=c0,f0=te({__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=_r(),o=xr();n.contentId||(n.contentId=ho(void 0,"reka-tooltip-content"));const{forwardRef:s,currentElement:r}=Ve(),i=D(!1),l=D(!1),a=q(()=>n.disabled.value?{}:{click:m,focus:p,pointermove:d,pointerleave:f,pointerdown:u,blur:g});Oe(r,b=>{n.onTriggerChange(b)},{immediate:!0});function c(){setTimeout(()=>{i.value=!1},1)}function u(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),i.value=!0,document.addEventListener("pointerup",c,{once:!0})}function d(b){b.pointerType!=="touch"&&!l.value&&!o.isPointerInTransitRef.value&&(n.onTriggerEnter(),l.value=!0)}function f(){n.onTriggerLeave(),l.value=!1}function p(b){var x,v;i.value||n.ignoreNonKeyboardFocus.value&&!((v=(x=b.target).matches)!=null&&v.call(x,":focus-visible"))||n.onOpen()}function g(){n.onClose()}function m(){n.disableClosingTrigger.value||n.onClose()}return(b,x)=>(C(),G(h(Rc),{"as-child":"",reference:b.reference??h(r)},{default:O(()=>[A(h(Ye),Le({ref:h(s),"aria-describedby":h(n).open.value?h(n).contentId:void 0,"data-state":h(n).stateAttribute.value,as:b.as,"as-child":t.asChild,"data-grace-area-trigger":""},Jf(a.value)),{default:O(()=>[ue(b.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),p0=f0;function Jc(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Jc(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Yc(){for(var e,t,n=0,o="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Jc(e))&&(o&&(o+=" "),o+=t);return o}const el="-",h0=e=>{const t=g0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const l=i.split(el);return l[0]===""&&l.length!==1&&l.shift(),Xc(l,t)||m0(i)},getConflictingClassGroupIds:(i,l)=>{const a=n[i]||[];return l&&o[i]?[...a,...o[i]]:a}}},Xc=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),s=o?Xc(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;const r=e.join(el);return(i=t.validators.find(({validator:l})=>l(r)))==null?void 0:i.classGroupId},Ea=/^\[(.+)\]$/,m0=e=>{if(Ea.test(e)){const t=Ea.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},g0=e=>{const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return y0(Object.entries(e.classGroups),n).forEach(([r,i])=>{yi(i,o,r,t)}),o},yi=(e,t,n,o)=>{e.forEach(s=>{if(typeof s=="string"){const r=s===""?t:Pa(t,s);r.classGroupId=n;return}if(typeof s=="function"){if(v0(s)){yi(s(o),t,n,o);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([r,i])=>{yi(i,Pa(t,r),n,o)})})},Pa=(e,t)=>{let n=e;return t.split(el).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},v0=e=>e.isThemeGetter,y0=(e,t)=>t?e.map(([n,o])=>{const s=o.map(r=>typeof r=="string"?t+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([i,l])=>[t+i,l])):r);return[n,s]}):e,b0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const s=(r,i)=>{n.set(r,i),t++,t>e&&(t=0,o=n,n=new Map)};return{get(r){let i=n.get(r);if(i!==void 0)return i;if((i=o.get(r))!==void 0)return s(r,i),i},set(r,i){n.has(r)?n.set(r,i):s(r,i)}}},Zc="!",x0=e=>{const{separator:t,experimentalParseClassName:n}=e,o=t.length===1,s=t[0],r=t.length,i=l=>{const a=[];let c=0,u=0,d;for(let b=0;b<l.length;b++){let x=l[b];if(c===0){if(x===s&&(o||l.slice(b,b+r)===t)){a.push(l.slice(u,b)),u=b+r;continue}if(x==="/"){d=b;continue}}x==="["?c++:x==="]"&&c--}const f=a.length===0?l:l.substring(u),p=f.startsWith(Zc),g=p?f.substring(1):f,m=d&&d>u?d-u:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:m}};return n?l=>n({className:l,parseClassName:i}):i},_0=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},w0=e=>({cache:b0(e.cacheSize),parseClassName:x0(e),...h0(e)}),C0=/\s+/,k0=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:s}=t,r=[],i=e.trim().split(C0);let l="";for(let a=i.length-1;a>=0;a-=1){const c=i[a],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(c);let g=!!p,m=o(g?f.substring(0,p):f);if(!m){if(!g){l=c+(l.length>0?" "+l:l);continue}if(m=o(f),!m){l=c+(l.length>0?" "+l:l);continue}g=!1}const b=_0(u).join(":"),x=d?b+Zc:b,v=x+m;if(r.includes(v))continue;r.push(v);const P=s(m,g);for(let T=0;T<P.length;++T){const K=P[T];r.push(x+K)}l=c+(l.length>0?" "+l:l)}return l};function A0(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Qc(t))&&(o&&(o+=" "),o+=n);return o}const Qc=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=Qc(e[o]))&&(n&&(n+=" "),n+=t);return n};function S0(e,...t){let n,o,s,r=i;function i(a){const c=t.reduce((u,d)=>d(u),e());return n=w0(c),o=n.cache.get,s=n.cache.set,r=l,l(a)}function l(a){const c=o(a);if(c)return c;const u=k0(a,n);return s(a,u),u}return function(){return r(A0.apply(null,arguments))}}const Me=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ed=/^\[(?:([a-z-]+):)?(.+)\]$/i,E0=/^\d+\/\d+$/,P0=new Set(["px","full","screen"]),O0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,T0=/\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$/,I0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,R0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,M0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jt=e=>ao(e)||P0.has(e)||E0.test(e),vn=e=>bo(e,"length",z0),ao=e=>!!e&&!Number.isNaN(Number(e)),jr=e=>bo(e,"number",ao),ko=e=>!!e&&Number.isInteger(Number(e)),$0=e=>e.endsWith("%")&&ao(e.slice(0,-1)),ge=e=>ed.test(e),yn=e=>O0.test(e),B0=new Set(["length","size","percentage"]),D0=e=>bo(e,B0,td),N0=e=>bo(e,"position",td),L0=new Set(["image","url"]),F0=e=>bo(e,L0,U0),q0=e=>bo(e,"",V0),Ao=()=>!0,bo=(e,t,n)=>{const o=ed.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):n(o[2]):!1},z0=e=>T0.test(e)&&!I0.test(e),td=()=>!1,V0=e=>R0.test(e),U0=e=>M0.test(e),H0=()=>{const e=Me("colors"),t=Me("spacing"),n=Me("blur"),o=Me("brightness"),s=Me("borderColor"),r=Me("borderRadius"),i=Me("borderSpacing"),l=Me("borderWidth"),a=Me("contrast"),c=Me("grayscale"),u=Me("hueRotate"),d=Me("invert"),f=Me("gap"),p=Me("gradientColorStops"),g=Me("gradientColorStopPositions"),m=Me("inset"),b=Me("margin"),x=Me("opacity"),v=Me("padding"),P=Me("saturate"),T=Me("scale"),K=Me("sepia"),H=Me("skew"),R=Me("space"),J=Me("translate"),oe=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",ge,t],$=()=>[ge,t],I=()=>["",Jt,vn],se=()=>["auto",ao,ge],me=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>["start","end","center","between","around","evenly","stretch"],Ce=()=>["","0",ge],nt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Be=()=>[ao,ge];return{cacheSize:500,separator:":",theme:{colors:[Ao],spacing:[Jt,vn],blur:["none","",yn,ge],brightness:Be(),borderColor:[e],borderRadius:["none","","full",yn,ge],borderSpacing:$(),borderWidth:I(),contrast:Be(),grayscale:Ce(),hueRotate:Be(),invert:Ce(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[$0,vn],inset:L(),margin:L(),opacity:Be(),padding:$(),saturate:Be(),scale:Be(),sepia:Ce(),skew:Be(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",ge]}],container:["container"],columns:[{columns:[yn]}],"break-after":[{"break-after":nt()}],"break-before":[{"break-before":nt()}],"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:[...me(),ge]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:oe()}],"overscroll-x":[{"overscroll-x":oe()}],"overscroll-y":[{"overscroll-y":oe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ko,ge]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ge]}],grow:[{grow:Ce()}],shrink:[{shrink:Ce()}],order:[{order:["first","last","none",ko,ge]}],"grid-cols":[{"grid-cols":[Ao]}],"col-start-end":[{col:["auto",{span:["full",ko,ge]},ge]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[Ao]}],"row-start-end":[{row:["auto",{span:[ko,ge]},ge]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ge]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...ae()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ae(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ae(),"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:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ge,t]}],"min-w":[{"min-w":[ge,t,"min","max","fit"]}],"max-w":[{"max-w":[ge,t,"none","full","min","max","fit","prose",{screen:[yn]},yn]}],h:[{h:[ge,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ge,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ge,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ge,t,"auto","min","max","fit"]}],"font-size":[{text:["base",yn,vn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",jr]}],"font-family":[{font:[Ao]}],"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",ge]}],"line-clamp":[{"line-clamp":["none",ao,jr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Jt,ge]}],"list-image":[{"list-image":["none",ge]}],"list-style-type":[{list:["none","disc","decimal",ge]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Jt,vn]}],"underline-offset":[{"underline-offset":["auto",Jt,ge]}],"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:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge]}],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",ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...me(),N0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",D0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},F0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-b":[{"rounded-b":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-se":[{"rounded-se":[r]}],"rounded-ee":[{"rounded-ee":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"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":[x]}],"border-style":[{border:[...W(),"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":[x]}],"divide-style":[{divide:W()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[Jt,ge]}],"outline-w":[{outline:[Jt,vn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Jt,vn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",yn,q0]}],"shadow-color":[{shadow:[Ao]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...de(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":de()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",yn,ge]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[P]}],sepia:[{sepia:[K]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[K]}],"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",ge]}],duration:[{duration:Be()}],ease:[{ease:["linear","in","out","in-out",ge]}],delay:[{delay:Be()}],animate:[{animate:["none","spin","ping","pulse","bounce",ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[ko,ge]}],"translate-x":[{"translate-x":[J]}],"translate-y":[{"translate-y":[J]}],"skew-x":[{"skew-x":[H]}],"skew-y":[{"skew-y":[H]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ge]}],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",ge]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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",ge]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Jt,vn,jr]}],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"]}}},j0=S0(H0);function Xe(...e){return j0(Yc(e))}const Oa=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ta=Yc,nd=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return Ta(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:r}=t,i=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=r==null?void 0:r[c];if(u===null)return null;const f=Oa(u)||Oa(d);return s[c][f]}),l=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),a=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((c,u)=>{let{class:d,className:f,...p}=u;return Object.entries(p).every(g=>{let[m,b]=g;return Array.isArray(b)?b.includes({...r,...l}[m]):{...r,...l}[m]===b})?[...c,d,f]:c},[]);return Ta(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)},K0=nd("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"}}),ve=te({__name:"Button",props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(n,o)=>(C(),G(h(Ye),{as:e.as,"as-child":e.asChild,class:we(h(Xe)(h(K0)({variant:e.variant,size:e.size}),t.class))},{default:O(()=>[ue(n.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),od=te({__name:"Card",props:{class:{}},setup(e){const t=e;return(n,o)=>(C(),M("div",{class:we(h(Xe)("rounded-xl border bg-card text-card-foreground shadow",t.class))},[ue(n.$slots,"default")],2))}}),sd=te({__name:"CardHeader",props:{class:{}},setup(e){const t=e;return(n,o)=>(C(),M("div",{class:we(h(Xe)("flex flex-col space-y-1.5 p-6",t.class))},[ue(n.$slots,"default")],2))}}),rd=te({__name:"CardTitle",props:{class:{}},setup(e){const t=e;return(n,o)=>(C(),M("h3",{class:we(h(Xe)("font-semibold leading-none tracking-tight",t.class))},[ue(n.$slots,"default")],2))}}),id=te({__name:"CardDescription",props:{class:{}},setup(e){const t=e;return(n,o)=>(C(),M("p",{class:we(h(Xe)("text-sm text-muted-foreground",t.class))},[ue(n.$slots,"default")],2))}}),ld=te({__name:"CardContent",props:{class:{}},setup(e){const t=e;return(n,o)=>(C(),M("div",{class:we(h(Xe)("p-6 pt-0",t.class))},[ue(n.$slots,"default")],2))}}),ad=te({__name:"CardFooter",props:{class:{}},setup(e){const t=e;return(n,o)=>(C(),M("div",{class:we(h(Xe)("flex items-center p-6 pt-0",t.class))},[ue(n.$slots,"default")],2))}});class Xo extends Error{constructor(t,n,o){super(n),this.status=t,this.data=o,this.name="ApiError"}get isUnauthorized(){return this.status===401}}const W0="x-psmcp-token",ud="Session token rejected. Reload this page from the URL printed by the Photoshop MCP UI.";function G0(){return typeof window>"u"?void 0:window.__PSMCP_TOKEN__}function tl(e){const t=new Headers(e),n=G0();return n&&t.set(W0,n),t}async function Pe(e,t={}){const n=tl(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 s=await o.json().catch(()=>({}));throw o.status===401?new Xo(401,ud,s):new Xo(o.status,s.error??o.statusText,s)}if(o.status!==204)return await o.json()}const J0=()=>Pe("/api/intent-router"),Ia=e=>Pe("/api/intent-router/validate",{method:"POST",body:JSON.stringify(e?{apiKey:e}:{})}),Y0=e=>Pe("/api/intent-router/key",{method:"POST",body:JSON.stringify({apiKey:e})}),X0=()=>Pe("/api/intent-router/key",{method:"DELETE"}),Ra=e=>Pe("/api/intent-router/settings",{method:"POST",body:JSON.stringify(e)}),Z0=(e,t)=>Pe("/api/intent",{method:"POST",body:JSON.stringify({prompt:e}),signal:t}),cd=()=>Pe("/api/status"),Ma=e=>Pe("/api/active",{method:"POST",body:JSON.stringify(e)}),Q0=e=>Pe("/api/config/action-plan",{method:"POST",body:JSON.stringify({enabled:e})}),us=()=>Pe("/api/analytics/config"),e1=e=>Pe("/api/analytics/opt-out",{method:"POST",body:JSON.stringify({optedOut:e})}),dd=e=>Pe("/api/analytics/beta-telemetry",{method:"POST",body:JSON.stringify({optedIn:e})}),nl=()=>Pe("/api/providers"),fd=(e,t)=>Pe(`/api/providers/${e}/validate-key`,{method:"POST",body:JSON.stringify({apiKey:t})}),pd=(e,t)=>Pe(`/api/providers/${e}/key`,{method:"POST",body:JSON.stringify({apiKey:t})}),t1=e=>Pe(`/api/providers/${e}/key`,{method:"DELETE"}),hd=(e,t)=>Pe(`/api/providers/${e}/auth-method`,{method:"POST",body:JSON.stringify({authMethod:t})}),md=e=>Pe(`/api/providers/${e}/validate-cli`,{method:"POST",body:"{}"}),gd=(e,t)=>Pe(`/api/providers/${e}/cli-path`,{method:"POST",body:JSON.stringify({cliPath:t})}),n1=()=>Pe("/api/custom-provider"),vd=e=>Pe("/api/custom-provider",{method:"PUT",body:JSON.stringify(e)}),o1=()=>Pe("/api/custom-provider",{method:"DELETE"}),yd=e=>Pe("/api/custom-provider/validate",{method:"POST",body:JSON.stringify(e)}),s1=()=>Pe("/api/chats"),r1=e=>Pe("/api/chats",{method:"POST",body:JSON.stringify(e)}),i1=e=>Pe(`/api/chats/${e}`),l1=(e,t)=>Pe(`/api/chats/${e}`,{method:"PATCH",body:JSON.stringify({title:t})}),$a=(e,t)=>Pe(`/api/chats/${e}`,{method:"PATCH",body:JSON.stringify(t)}),Ba=e=>Pe(`/api/chats/${e}`,{method:"DELETE"}),Kr=new Map;function a1(e,t){const n=`${e}/${t}`;let o=Kr.get(n);return o||(o=fetch(`/api/chats/${encodeURIComponent(e)}/previews/${encodeURIComponent(t)}`,{headers:tl(void 0)}).then(async s=>{if(!s.ok)throw new Xo(s.status,s.statusText);return URL.createObjectURL(await s.blob())}),o.catch(()=>Kr.delete(n)),Kr.set(n,o)),o}async function*u1(e,t){const n=await fetch("/api/chat",{method:"POST",headers:tl({"content-type":"application/json"}),body:JSON.stringify(e),signal:t});if(!n.ok||!n.body){if(n.status===401)throw new Xo(401,ud);const i=await n.text().catch(()=>"");throw new Xo(n.status,i||n.statusText)}const o=n.body.getReader(),s=new TextDecoder;let r="";for(;;){const{value:i,done:l}=await o.read();if(l)break;r+=s.decode(i,{stream:!0});const a=r.split(/\n\n/);r=a.pop()??"";for(const c of a){const u=d1(c);u&&(yield u)}}}const c1=e=>Pe(`/api/abort/${encodeURIComponent(e)}`,{method:"POST"});function d1(e){const t=e.split(/\n/);let n="message";const o=[];for(const r of t)r.startsWith("event:")?n=r.slice(6).trim():r.startsWith("data:")&&o.push(r.slice(5).trimStart());if(!o.length)return null;const s=o.join(`
284
+ `);try{return{event:n,data:JSON.parse(s)}}catch{return{event:n,data:s}}}const bd="photoshop-mcp-theme";function ol(){return localStorage.getItem(bd)==="light"?"light":"dark"}function xd(e){document.documentElement.classList.toggle("dark",e==="dark")}function f1(){const e=D(ol());function t(o){e.value=o,xd(o),localStorage.setItem(bd,o)}function n(){t(e.value==="dark"?"light":"dark")}return{theme:e,setTheme:t,toggleTheme:n}}function p1(e){var n;const t=e.trim().match(/-([A-Za-z]{2})\b/);return(n=t==null?void 0:t[1])==null?void 0:n.toUpperCase()}function _d(){const e=navigator.language,t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=p1(e);return{browser_language:e,browser_timezone:t,...n?{browser_locale_region:n}:{}}}const sl="disable-rybbit";let Zo=!1,Vs={},wd={},bi="",no=null;const Us=[];function h1(e){if(Zo||!e.enabled||!e.siteId||!e.analyticsHost||Cd())return;bi=e.distinctId;const t=_d();wd={...t,first_install_at:new Date().toISOString(),first_usage_surface:"web"},Vs={...t},x1(e),Zo=!0}function m1(e){Vs={...Vs,...e}}function g1(e,t){if(!Zo||Cd())return;const n={...Vs,...t,event_source:"ui"};w1(o=>o.event(e,n))}function v1(){var e,t;try{localStorage.setItem(sl,"true")}catch{}window.__RYBBIT_OPTOUT__=!0,(t=(e=window.rybbit)==null?void 0:e.clearUserId)==null||t.call(e),no==null||no.remove(),no=null,Us.length=0,Zo=!1}function y1(){try{localStorage.removeItem(sl)}catch{}window.__RYBBIT_OPTOUT__=!1}function b1(){return Zo}function Cd(){try{return localStorage.getItem(sl)==="true"}catch{return!!window.__RYBBIT_OPTOUT__}}function x1(e){if(no)return;const t=document.createElement("script");t.src=`${e.analyticsHost.replace(/\/$/,"")}/script.js`,t.dataset.siteId=e.siteId,t.defer=!0,t.addEventListener("load",_1),document.head.appendChild(t),no=t}function _1(){const e=n=>{bi&&n.identify(bi,wd);const o=Us.splice(0,Us.length);for(const s of o)s(n)},t=window.rybbit;if(t!=null&&t.onReady){t.onReady(e);return}t!=null&&t.event&&e(t)}function w1(e){const t=window.rybbit;if(t!=null&&t.event){e(t);return}Us.push(e)}function kd(e){h1(e)}function C1(e){m1(e)}function k1(e,t){g1(e,t)}function A1(){v1()}function S1(){y1()}function rl(){return b1()}async function E1(){const[e,t]=await Promise.all([us(),cd()]);return{privacy_mode:!e.enabled,beta_telemetry_opt_in:e.betaTelemetryOptIn,theme:ol(),action_plan_enabled:t.actionPlanBeta,..._d()}}async function Wn(){if(rl())try{const e=await E1();C1({...e})}catch{}}let Gn=!1;async function P1(){try{const e=await us();Gn=e.enabled,kd(e),e.enabled&&await Wn()}catch{Gn=!1}}function O1(){return Gn&&rl()}function Ps(e,t){O1()&&k1(e,t)}async function T1(e){if(await e1(e),e){Gn=!1,A1();return}S1(),Gn=await Ad()}async function Ad(){try{const e=await us();return Gn=e.enabled,e.enabled&&!rl()&&kd(e),e.enabled&&await Wn(),e.enabled}catch{return Gn=!1,!1}}const I1={class:"fixed inset-0 z-50 flex items-center justify-center bg-background/70 p-4 backdrop-blur"},R1={key:0,class:"mt-3 text-sm text-destructive"},M1=te({__name:"BetaTeamModal",emits:["answered"],setup(e,{emit:t}){const n=t,o=D(!1),s=D(null);async function r(i){if(!o.value){o.value=!0,s.value=null;try{await dd(i),await Wn(),n("answered")}catch(l){s.value=l.message}finally{o.value=!1}}}return(i,l)=>(C(),M("div",I1,[A(h(od),{class:"w-full max-w-md"},{default:O(()=>[A(h(sd),null,{default:O(()=>[A(h(rd),null,{default:O(()=>[...l[2]||(l[2]=[V("Join the beta team?",-1)])]),_:1}),A(h(id),null,{default:O(()=>[...l[3]||(l[3]=[V(" Help us improve Photoshop MCP by optionally sharing your prompts and AI responses with the product team. We collect tool names only — never API keys, file paths, or tool arguments and results. ",-1)])]),_:1})]),_:1}),A(h(ld),null,{default:O(()=>[l[4]||(l[4]=S("p",{class:"text-sm text-muted-foreground"}," You can change this anytime in Settings → Privacy. Anonymous usage analytics (app version, setup events) stay separate and remain enabled unless you turn them off. ",-1)),s.value?(C(),M("p",R1,Q(s.value),1)):X("",!0)]),_:1}),A(h(ad),{class:"flex gap-2"},{default:O(()=>[A(h(ve),{class:"flex-1",disabled:o.value,onClick:l[0]||(l[0]=a=>r(!0))},{default:O(()=>[o.value?(C(),G(h(lt),{key:0,class:"size-4 animate-spin"})):X("",!0),l[5]||(l[5]=V(" Join beta ",-1))]),_:1},8,["disabled"]),A(h(ve),{class:"flex-1",variant:"outline",disabled:o.value,onClick:l[1]||(l[1]=a=>r(!1))},{default:O(()=>[...l[6]||(l[6]=[V(" No thanks ",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1})]))}}),$1=["type","placeholder","disabled"],ft=te({__name:"Input",props:Zf({class:{},type:{default:"text"},placeholder:{},disabled:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=ip(e,"modelValue");return(o,s)=>ns((C(),M("input",{"onUpdate:modelValue":s[0]||(s[0]=r=>n.value=r),type:e.type,placeholder:e.placeholder,disabled:e.disabled,class:we(h(Xe)("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,$1)),[[ch,n.value]])}}),Ge=te({__name:"Label",props:{class:{},for:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(C(),G(h(Uy),{for:t.for,class:we(h(Xe)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t.class))},{default:O(()=>[ue(n.$slots,"default")]),_:3},8,["for","class"]))}}),B1=["aria-label"],D1={class:"adobe-app-icon__label"},N1=te({__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=q(()=>t[n.app]),s=q(()=>({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(r,i)=>(C(),M("div",{class:"adobe-app-icon",style:dn(s.value),"aria-label":o.value.label},[S("span",D1,Q(o.value.label),1)],12,B1))}}),L1=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},xi=L1(N1,[["__scopeId","data-v-ea369691"]]),F1="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",q1="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",z1="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='M18.654%203.87a5.087%205.087%200%20110%2010.174L23.7%2019.09c.64.641.187%201.737-.72%201.737H8.48a8.479%208.479%200%20010-16.958h10.175zM8.479%207.26a5.087%205.087%200%20100%2010.176%205.087%205.087%200%20000-10.175z'%3e%3c/path%3e%3c/svg%3e",V1="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",U1=["src","alt","width","height"],mo=te({__name:"ProviderIcon",props:{provider:{},size:{default:16}},setup(e){const t={anthropic:F1,openai:q1,openrouter:z1,google:V1},n={anthropic:"Anthropic",openai:"OpenAI",openrouter:"OpenRouter",google:"Google",custom:"Custom"},o={anthropic:!0,openai:!0,openrouter:!0,google:!1},s=e,r=q(()=>t[s.provider]),i=q(()=>n[s.provider]),l=q(()=>o[s.provider]??!1),a=q(()=>!!r.value);return(c,u)=>a.value?(C(),M("img",{key:0,src:r.value,alt:i.value,width:s.size,height:s.size,class:we(["provider-icon",{"provider-icon--mono":l.value}]),decoding:"async",loading:"lazy"},null,10,U1)):(C(),G(h(qm),{key:1,size:s.size,class:"provider-icon text-muted-foreground"},null,8,["size"]))}}),H1={anthropic:{install:"npm install -g @anthropic-ai/claude-code",login:"claude auth login",binary:"claude"},google:{install:"npm install -g @google/gemini-cli",login:"gemini auth login",binary:"gemini"}};function j1(e){if(!e)return"unknown";const t=e.indexOf(":");return t===-1?e:e.slice(0,t)}function Sd(e,t,n){const o=j1(e),s=t?H1[t]:void 0,r=n!=null&&n.trim()?`Details: ${n.trim()}`:"";switch(o){case"not_authenticated":return["CLI subscription login was not detected.",s?`Install: ${s.install}. Then run: ${s.login}`:"Install the provider CLI and run its login command in Terminal.",'Anthropic API keys and Agent SDK sessions do not satisfy "Uses your account" mode — choose API key auth instead, or log in with the CLI.',"If login works in Terminal but fails here, set an optional CLI path below (custom install location).",r].filter(Boolean).join(`
285
+ `);case"cli_not_found":return[s?`Could not find "${s.binary}" on PATH.`:"Could not find the provider CLI on PATH.",s?`Install: ${s.install}`:"Install the provider CLI globally.",s?`Then run: ${s.login}`:void 0,"Or enter the full path to the CLI binary below.",r].filter(Boolean).join(`
286
+ `);case"cli_probe_failed":return["The CLI probe failed.",s?`Try ${s.login} again, then re-check the connection.`:void 0,r||(e&&e!==o?e:void 0)].filter(Boolean).join(`
287
+ `);case"cli_account_not_supported":return"This provider does not support CLI account auth. Use an API key instead.";default:return[e||"CLI validation failed.",r].filter(Boolean).join(`
288
+ `)}}const K1={class:"flex min-h-screen items-center justify-center p-6"},W1={class:"space-y-2"},G1={class:"grid grid-cols-2 gap-2"},J1=["onClick"],Y1={key:0,class:"space-y-2"},X1={class:"flex gap-2"},Z1={class:"space-y-2"},Q1=["href"],eb={class:"rounded-md bg-muted/40 p-3 text-xs text-muted-foreground"},tb={class:"mt-2"},nb={class:"text-foreground"},ob={class:"mt-1"},sb={class:"text-foreground"},rb={class:"space-y-2"},ib={key:1,class:"space-y-3 rounded-lg border border-border p-3"},lb={class:"space-y-2"},ab={class:"space-y-2"},ub=["disabled"],cb={class:"space-y-2"},db={class:"space-y-2"},fb={class:"space-y-2"},pb={key:2,class:"whitespace-pre-line text-sm text-destructive"},hb=te({__name:"Onboarding",emits:["saved"],setup(e,{emit:t}){const n=t,o=D([]),s=D("anthropic"),r=D("api_key"),i=D(""),l=D(""),a=D(!1),c=D(null),u=D(""),d=D(""),f=D(""),p=D("openai"),g=D(""),m=q(()=>o.value.find(j=>j.id===s.value)),b=q(()=>s.value==="custom"),x=q(()=>{var j;return!b.value&&(((j=m.value)==null?void 0:j.supportedAuthMethods.includes("cli_account"))??!1)}),v={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"}};tt(async()=>{o.value=await nl()});async function P(j){s.value=j;const L=o.value.find($=>$.id===j);r.value=(L==null?void 0:L.authMethod)??"api_key",c.value=null,Ps("setup_provider_selected",{provider_id:j})}async function T(j){r.value=j,c.value=null,m.value&&await hd(m.value.id,j)}async function K(){c.value=null,a.value=!0;try{b.value?await R():await H()}catch(j){c.value=j.message}finally{a.value=!1}}async function H(){const j=m.value;if(j){if(r.value==="api_key"){const L=await fd(j.id,i.value);if(!L.ok){c.value=L.error||"Could not validate this key.";return}await pd(j.id,i.value)}else{const L=l.value.trim();L&&await gd(j.id,L);const $=await md(j.id);if(!$.ok){c.value=Sd($.error,j.id,$.detail);return}}await Ma({activeProvider:j.id,activeModel:j.defaultModel}),Ps("setup_completed",{provider_id:j.id,auth_method:r.value}),n("saved")}}async function R(){if(!u.value.trim()){c.value="Provider name is required.";return}if(!d.value.trim()){c.value="Base URL is required.";return}if(!f.value.trim()){c.value="API key is required.";return}const j=g.value.split(",").map($=>$.trim()).filter(Boolean).map($=>({id:$,label:$}));if(!j.length){c.value="At least one model ID is required (comma-separated).";return}const L=await yd({baseUrl:d.value.trim(),apiKey:f.value.trim(),apiFormat:p.value});if(!L.ok){c.value=L.error||"Could not validate this configuration.";return}await vd({name:u.value.trim(),websiteUrl:"",apiKey:f.value.trim(),baseUrl:d.value.trim(),apiFormat:p.value,models:j,defaultModel:j[0].id}),await Ma({activeProvider:"custom",activeModel:j[0].id}),Ps("setup_completed",{provider_id:"custom",auth_method:"api_key"}),n("saved")}const J=q(()=>m.value?b.value?!!(f.value.trim()&&d.value.trim()&&u.value.trim()&&g.value.trim()):r.value==="api_key"?!!i.value.trim():!0:!1);function oe(j){return j.cliBinaryName?`/usr/local/bin/${j.cliBinaryName}`:"Optional custom path"}return(j,L)=>(C(),M("div",K1,[A(h(od),{class:"w-full max-w-md"},{default:O(()=>[A(h(sd),null,{default:O(()=>[A(xi,{app:"ps",size:40,class:"mb-2"}),A(h(rd),null,{default:O(()=>[...L[9]||(L[9]=[V("Connect an AI provider",-1)])]),_:1}),A(h(id),null,{default:O(()=>[...L[10]||(L[10]=[V(" Use your own API key or sign in with a CLI subscription account. Credentials are stored locally at ",-1),S("code",{class:"text-xs"},"~/.photoshop-mcp/data.db",-1),V(" and never leave your machine. ",-1)])]),_:1})]),_:1}),A(h(ld),{class:"space-y-4"},{default:O(()=>{var $;return[S("div",W1,[A(h(Ge),null,{default:O(()=>[...L[11]||(L[11]=[V("Provider",-1)])]),_:1}),S("div",G1,[(C(!0),M(be,null,At(o.value,I=>(C(),M("button",{key:I.id,type:"button",class:we(["flex flex-col items-center gap-1.5 rounded-md border px-2 py-3 text-xs font-medium transition",s.value===I.id?"border-primary bg-primary/10 text-primary":"border-input text-muted-foreground hover:bg-accent"]),onClick:se=>P(I.id)},[A(mo,{provider:I.id,size:22},null,8,["provider"]),V(" "+Q(I.id==="custom"?"Custom":I.label),1)],10,J1))),128))])]),b.value?(C(),M("div",ib,[S("div",lb,[A(h(Ge),{for:"custom-name"},{default:O(()=>[...L[23]||(L[23]=[V("Provider name",-1)])]),_:1}),A(h(ft),{id:"custom-name",modelValue:u.value,"onUpdate:modelValue":L[4]||(L[4]=I=>u.value=I),placeholder:"e.g. DeepSeek, My Proxy",disabled:a.value},null,8,["modelValue","disabled"])]),S("div",ab,[A(h(Ge),{for:"custom-format"},{default:O(()=>[...L[24]||(L[24]=[V("API format",-1)])]),_:1}),ns(S("select",{id:"custom-format","onUpdate:modelValue":L[5]||(L[5]=I=>p.value=I),class:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",disabled:a.value},[...L[25]||(L[25]=[S("option",{value:"openai"},"OpenAI-compatible",-1),S("option",{value:"anthropic"},"Anthropic-compatible",-1)])],8,ub),[[Ni,p.value]])]),S("div",cb,[A(h(Ge),{for:"custom-base-url"},{default:O(()=>[...L[26]||(L[26]=[V("Base URL",-1)])]),_:1}),A(h(ft),{id:"custom-base-url",modelValue:d.value,"onUpdate:modelValue":L[6]||(L[6]=I=>d.value=I),placeholder:"https://api.example.com/v1",disabled:a.value},null,8,["modelValue","disabled"])]),S("div",db,[A(h(Ge),{for:"custom-api-key"},{default:O(()=>[...L[27]||(L[27]=[V("API key",-1)])]),_:1}),A(h(ft),{id:"custom-api-key",modelValue:f.value,"onUpdate:modelValue":L[7]||(L[7]=I=>f.value=I),type:"password",placeholder:"Your API key",disabled:a.value},null,8,["modelValue","disabled"])]),S("div",fb,[A(h(Ge),{for:"custom-models"},{default:O(()=>[...L[28]||(L[28]=[V("Models (comma-separated)",-1)])]),_:1}),A(h(ft),{id:"custom-models",modelValue:g.value,"onUpdate:modelValue":L[8]||(L[8]=I=>g.value=I),placeholder:"deepseek-chat, deepseek-reasoner",disabled:a.value},null,8,["modelValue","disabled"])])])):(C(),M(be,{key:0},[x.value?(C(),M("div",Y1,[A(h(Ge),null,{default:O(()=>[...L[12]||(L[12]=[V("Authentication",-1)])]),_:1}),S("div",X1,[A(h(ve),{size:"sm",class:"flex-1",variant:r.value==="api_key"?"default":"outline",onClick:L[0]||(L[0]=I=>T("api_key"))},{default:O(()=>[...L[13]||(L[13]=[V(" API key ",-1)])]),_:1},8,["variant"]),A(h(ve),{size:"sm",class:"flex-1",variant:r.value==="cli_account"?"default":"outline",onClick:L[1]||(L[1]=I=>T("cli_account"))},{default:O(()=>[...L[14]||(L[14]=[V(" Uses your account ",-1)])]),_:1},8,["variant"])])])):X("",!0),r.value==="api_key"?(C(),M(be,{key:1},[S("div",Z1,[A(h(Ge),{for:"api-key"},{default:O(()=>[...L[15]||(L[15]=[V("API key",-1)])]),_:1}),A(h(ft),{id:"api-key",modelValue:i.value,"onUpdate:modelValue":L[2]||(L[2]=I=>i.value=I),type:"password",placeholder:(($=m.value)==null?void 0:$.apiKeyHint)??"",disabled:a.value,onKeydown:jo(K,["enter"])},null,8,["modelValue","placeholder","disabled"])]),m.value?(C(),M("a",{key:0,href:m.value.apiKeyHelpUrl,target:"_blank",rel:"noreferrer",class:"inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground"},[L[16]||(L[16]=V(" Get an API key ",-1)),A(h(qi),{class:"size-3"})],8,Q1)):X("",!0)],64)):m.value&&v[m.value.id]?(C(),M(be,{key:2},[S("div",eb,[L[19]||(L[19]=S("p",{class:"font-medium text-foreground"},"Set up the CLI first",-1)),S("p",tb,[L[17]||(L[17]=V(" Install: ",-1)),S("code",nb,Q(v[m.value.id].install),1)]),S("p",ob,[L[18]||(L[18]=V(" Login: ",-1)),S("code",sb,Q(v[m.value.id].login),1)]),L[20]||(L[20]=S("p",{class:"mt-2"},[V(" Anthropic API keys and Agent SDK sessions do not apply here — use "),S("strong",null,"API key"),V(" auth if that is how you already connect. ")],-1)),L[21]||(L[21]=S("p",{class:"mt-2"}," Then click validate — usage counts against your subscription quota, not API billing. ",-1))]),S("div",rb,[A(h(Ge),{for:"cli-path"},{default:O(()=>[...L[22]||(L[22]=[V("CLI path (optional)",-1)])]),_:1}),A(h(ft),{id:"cli-path",modelValue:l.value,"onUpdate:modelValue":L[3]||(L[3]=I=>l.value=I),placeholder:oe(m.value),disabled:a.value},null,8,["modelValue","placeholder","disabled"])])],64)):X("",!0)],64)),c.value?(C(),M("p",pb,Q(c.value),1)):X("",!0)]}),_:1}),A(h(ad),null,{default:O(()=>[A(h(ve),{class:"w-full",disabled:a.value||!J.value,onClick:K},{default:O(()=>[a.value?(C(),G(h(lt),{key:0,class:"size-4 animate-spin"})):X("",!0),V(" "+Q(a.value?"Validating…":b.value||r.value==="api_key"?"Validate & save":"Check connection & continue"),1)]),_:1},8,["disabled"])]),_:1})]),_:1})]))}}),Ed=te({__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 s=In(e,t);return(r,i)=>(C(),G(h(s0),go(Jn(h(s))),{default:O(()=>[ue(r.$slots,"default")]),_:3},16))}}),Pd=te({__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,s=In(n,t);return(r,i)=>(C(),G(h(d0),null,{default:O(()=>[A(h(u0),Le(h(s),{class:h(Xe)("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:O(()=>[ue(r.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),Od=te({__name:"TooltipProvider",props:{delayDuration:{default:200},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean},content:{}},setup(e){const n=ls(e);return(o,s)=>(C(),G(h(t0),go(Jn(h(n))),{default:O(()=>[ue(o.$slots,"default")]),_:3},16))}}),Td=te({__name:"TooltipTrigger",props:{reference:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e;return(n,o)=>(C(),G(h(p0),Le(t,{class:h(Xe)(t.class)}),{default:O(()=>[ue(n.$slots,"default")]),_:3},16,["class"]))}}),mb={class:"flex h-14 shrink-0 items-center justify-between gap-3 border-b border-border bg-background/80 px-4 backdrop-blur"},gb={class:"min-w-0 flex-1 truncate text-sm font-medium"},vb={key:0,class:"rounded-md border border-border bg-muted/40 px-2 py-1 text-xs font-medium text-muted-foreground"},yb={class:"space-y-2"},bb={class:"grid grid-cols-2 gap-x-3 gap-y-1 text-xs"},xb={class:"text-right tabular-nums"},_b={class:"text-right tabular-nums"},wb={class:"text-right tabular-nums"},Cb={class:"text-right tabular-nums"},kb={class:"text-right tabular-nums"},Ab={class:"border-t border-border pt-2 text-xs"},Sb={class:"flex items-center justify-between font-medium"},Eb={class:"tabular-nums"},Pb={key:0,class:"text-[11px] leading-snug text-muted-foreground"},Ob=te({__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 s(a){return n.format(a)}const r=q(()=>{const a=t.totals;return!!(a&&a.assistantTurns>0)}),i=q(()=>{const a=t.totals;return!!(a&&a.assistantTurns>0&&a.pricedTurns<a.assistantTurns)}),l=q(()=>{const a=t.totals;return!a||a.assistantTurns===0||a.pricedTurns===0?null:o(a.totalUsd)});return(a,c)=>{var u;return C(),M("header",mb,[S("div",gb,Q(((u=e.chat)==null?void 0:u.title)??"New chat"),1),e.chat&&e.subscriptionMode?(C(),M("span",vb," Included in subscription ")):e.chat&&r.value?(C(),G(h(Od),{key:1},{default:O(()=>[A(h(Ed),null,{default:O(()=>[A(h(Td),{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:O(()=>[V(Q(l.value??"—"),1)]),_:1}),A(h(Pd),{align:"end",class:"w-64"},{default:O(()=>[S("div",yb,[c[6]||(c[6]=S("div",{class:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground"}," Conversation usage ",-1)),S("div",bb,[c[3]||(c[3]=S("span",{class:"text-muted-foreground"},"Input",-1)),S("span",xb,Q(s(e.totals.inputTokens))+" tok · "+Q(o(e.totals.inputUsd)),1),e.totals.cachedReadTokens>0?(C(),M(be,{key:0},[c[0]||(c[0]=S("span",{class:"text-muted-foreground"},"Cached read",-1)),S("span",_b,Q(s(e.totals.cachedReadTokens))+" tok · "+Q(o(e.totals.cachedReadUsd)),1)],64)):X("",!0),e.totals.cachedWriteTokens>0?(C(),M(be,{key:1},[c[1]||(c[1]=S("span",{class:"text-muted-foreground"},"Cached write",-1)),S("span",wb,Q(s(e.totals.cachedWriteTokens))+" tok · "+Q(o(e.totals.cachedWriteUsd)),1)],64)):X("",!0),c[4]||(c[4]=S("span",{class:"text-muted-foreground"},"Output",-1)),S("span",Cb,Q(s(e.totals.outputTokens))+" tok · "+Q(o(e.totals.outputUsd)),1),e.totals.reasoningTokens>0?(C(),M(be,{key:2},[c[2]||(c[2]=S("span",{class:"text-muted-foreground"},"Reasoning",-1)),S("span",kb,Q(s(e.totals.reasoningTokens))+" tok ",1)],64)):X("",!0)]),S("div",Ab,[S("div",Sb,[c[5]||(c[5]=S("span",null,"Total",-1)),S("span",Eb,Q(s(e.totals.totalTokens))+" tok · "+Q(o(e.totals.totalUsd)),1)])]),i.value?(C(),M("p",Pb," Some turns lack pricing data, so this total may underestimate cost. ")):X("",!0)])]),_:1})]),_:1})]),_:1})):X("",!0)])}}}),Tb={key:0,class:"flex h-7 items-center gap-1.5 rounded-md border border-border bg-card px-2 text-[11px] text-muted-foreground shadow-sm"},Ib=["title"],Rb={class:"font-semibold"},Mb={key:0,class:"truncate text-foreground"},$b={class:"ml-auto shrink-0 pl-2 font-mono text-[10px] text-muted-foreground"},Id=te({__name:"IntentChip",props:{route:{},loading:{type:Boolean}},setup(e){const t=e,n={instant:{icon:zi,name:"Instant",tone:"text-amber-500 border-amber-500/40"},plan:{icon:gc,name:"Plan",tone:"text-sky-500 border-sky-500/40"},agent:{icon:Ss,name:"Look & iterate",tone:"text-violet-500 border-violet-500/40"},clarify:{icon:Dm,name:"Ask first",tone:"text-orange-500 border-orange-500/40"}},o=q(()=>t.route?n[t.route.route]:null),s=q(()=>{const i=t.route;return i&&i.route==="instant"?i.label:""}),r=q(()=>{const i=t.route;if(!i)return"";const l=[`${Math.round(i.confidence*100)}%`,`${i.latencyMs} ms`];return i.route==="instant"&&l.push("no LLM call"),l.join(" · ")});return(i,l)=>e.loading&&!e.route?(C(),M("div",Tb,[A(h(lt),{class:"size-3 animate-spin"}),l[0]||(l[0]=V(" Jev is reading… ",-1))])):e.route&&o.value?(C(),M("div",{key:1,class:we(["flex h-7 min-w-0 items-center gap-1.5 rounded-md border bg-card px-2 text-[11px] shadow-sm",o.value.tone]),title:`${e.route.reason} (${e.route.model})`},[(C(),G(ss(o.value.icon),{class:"size-3 shrink-0"})),S("span",Rb,Q(o.value.name),1),s.value?(C(),M("span",Mb,Q(s.value),1)):X("",!0),S("span",$b,Q(r.value),1),e.loading?(C(),G(h(lt),{key:1,class:"size-3 shrink-0 animate-spin opacity-70"})):X("",!0)],10,Ib)):X("",!0)}}),Bb=nd("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"}}),Rd=te({__name:"Badge",props:{variant:{},class:{}},setup(e){const t=e;return(n,o)=>(C(),M("span",{class:we(h(Xe)(h(Bb)({variant:e.variant}),t.class))},[ue(n.$slots,"default")],2))}}),Da="mcp__photoshop__";function No(e){return!e||e==="…"?e:e.startsWith(Da)?e.slice(Da.length):e}function Db(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}const Nb={key:"text-sky-600 dark:text-sky-400",string:"text-emerald-600 dark:text-emerald-400",number:"text-amber-600 dark:text-amber-400",boolean:"text-purple-600 dark:text-purple-400",null:"text-muted-foreground",punctuation:"text-muted-foreground",whitespace:""};function Lb(e){return Nb[e]}function Fb(e,t){let n=t+1;for(;n<e.length;){if(e[n]==="\\"){n+=2;continue}if(e[n]==='"')return{end:n+1,text:e.slice(t,n+1)};n++}return{end:e.length,text:e.slice(t)}}function qb(e,t){let n=t;for(;n<e.length&&/\s/.test(e[n]);)n++;return e[n]===":"}function zb(e,t){let n=t;for(e[n]==="-"&&n++;n<e.length&&/\d/.test(e[n]);)n++;if(e[n]===".")for(n++;n<e.length&&/\d/.test(e[n]);)n++;if(e[n]==="e"||e[n]==="E")for(n++,(e[n]==="+"||e[n]==="-")&&n++;n<e.length&&/\d/.test(e[n]);)n++;return e.slice(t,n)}function Vb(e){const t=[];let n=0;function o(s,r){r&&t.push({type:s,text:r})}for(;n<e.length;){const s=e[n];if(/\s/.test(s)){const r=n;for(;n<e.length&&/\s/.test(e[n]);)n++;o("whitespace",e.slice(r,n));continue}if(s==='"'){const{end:r,text:i}=Fb(e,n);if(n=r,qb(e,n)){const l=n;for(;n<e.length&&/\s/.test(e[n]);)n++;e[n]===":"?(n++,o("key",i+e.slice(l,n))):o("string",i)}else o("string",i);continue}if(s==="-"||/\d/.test(s)){const r=zb(e,n);o("number",r),n+=r.length;continue}if(e.startsWith("true",n)){o("boolean","true"),n+=4;continue}if(e.startsWith("false",n)){o("boolean","false"),n+=5;continue}if(e.startsWith("null",n)){o("null","null"),n+=4;continue}if("{}[],:".includes(s)){o("punctuation",s),n++;continue}o("string",s),n++}return t}function Ub(e){return Vb(Db(e))}const Hb={class:"m-0 overflow-x-auto rounded-md bg-muted/40 p-2 font-mono text-[11px] leading-snug"},jb=te({__name:"JsonHighlight",props:{value:{}},setup(e){const t=e,n=q(()=>Ub(t.value));return(o,s)=>(C(),M("pre",Hb,[(C(!0),M(be,null,At(n.value,(r,i)=>(C(),M("span",{key:i,class:we(h(Lb)(r.type))},Q(r.text),3))),128))]))}}),Md=Symbol("preview-chat-id");function Kb(){return pt(Md,void 0)}const Wb=["aria-label","disabled"],Gb=["src","alt"],Jb={key:0},Yb=["aria-label"],Xb=["src","alt"],il=te({__name:"PreviewImage",props:{image:{},alt:{},size:{default:"hero"}},setup(e){const t=e,n=Kb(),o=D(null),s=D(!1),r=D(!1);async function i(){s.value=!1;const a=n==null?void 0:n.value;if(!a){s.value=!0;return}try{o.value=await a1(a,t.image.file)}catch{s.value=!0}}Oe(()=>[t.image.file,n==null?void 0:n.value],i),tt(i);function l(a){a.key==="Escape"&&r.value&&(r.value=!1)}return tt(()=>window.addEventListener("keydown",l)),pn(()=>window.removeEventListener("keydown",l)),(a,c)=>(C(),M(be,null,[S("button",{type:"button",class:we(["group relative block overflow-hidden rounded-md border border-border bg-muted/30 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--photoshop-blue)]",e.size==="thumb"?"h-10 w-14 shrink-0":"w-full"]),"aria-label":`Enlarge ${e.alt}`,disabled:!o.value,onClick:c[0]||(c[0]=vt(u=>r.value=!0,["stop"]))},[o.value?(C(),M("img",{key:0,src:o.value,alt:e.alt,class:we(["block",e.size==="thumb"?"h-full w-full object-cover":"max-h-[420px] w-full object-contain"])},null,10,Gb)):s.value?(C(),M("div",{key:1,class:we(["flex items-center justify-center gap-1.5 text-[11px] text-muted-foreground",e.size==="thumb"?"h-full w-full":"h-32 w-full"])},[A(h(Um),{class:"size-3.5"}),e.size==="hero"?(C(),M("span",Jb,"Preview unavailable")):X("",!0)],2)):(C(),M("div",{key:2,class:we(["animate-pulse bg-muted/60",e.size==="thumb"?"h-full w-full":"h-56 w-full"])},null,2))],10,Wb),(C(),G(Oi,{to:"body"},[r.value&&o.value?(C(),M("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 p-6 backdrop-blur-sm",role:"dialog","aria-modal":"true","aria-label":e.alt,onClick:c[2]||(c[2]=vt(u=>r.value=!1,["self"]))},[S("img",{src:o.value,alt:e.alt,class:"max-h-full max-w-full rounded-md shadow-2xl"},null,8,Xb),S("button",{type:"button",class:"absolute right-4 top-4 flex size-9 items-center justify-center rounded-full bg-white/10 text-white hover:bg-white/20","aria-label":"Close preview",onClick:c[1]||(c[1]=u=>r.value=!1)},[A(h(dr),{class:"size-4"})])],8,Yb)):X("",!0)]))],64))}}),Zb={get_preview:"Preview",get_state:"Read document state",get_document_info:"Read document info",get_layers:"Read layers",create_document:"Create document",fill_layer:"Fill layer",set_layer_blend_mode:"Blend mode",set_layer_opacity:"Opacity",merge_visible_layers:"Merge visible layers",flatten_image:"Flatten image",export_as:"Export",undo:"Undo",redo:"Redo"},Qb=new Set(["action","document_id","documentId","doc_id","layer_id","layerId","session_id","red","green","blue","width","height"]),Na=4;function zn(e){const t=e.replace(/[_-]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function Wr(e,t){return e.length>t?`${e.slice(0,t-1)}…`:e}function Gr(e){return typeof e=="number"&&Number.isFinite(e)?Math.max(0,Math.min(255,Math.round(e))):null}function La(e){if(typeof e=="string"&&/^#?[0-9a-f]{6}$/i.test(e)){const r=e.startsWith("#")?e:`#${e}`;return{css:r,label:r.toLowerCase()}}if(!e||typeof e!="object")return null;const t=e,n=Gr(t.red??t.r),o=Gr(t.green??t.g),s=Gr(t.blue??t.b);return n===null||o===null||s===null?null:{css:`rgb(${n} ${o} ${s})`,label:`rgb ${n},${o},${s}`}}function ex(e,t){const n=e.toLowerCase();return t==null||t===""?null:typeof t=="boolean"?t?zn(e).toLowerCase():null:typeof t=="number"?n.includes("opacity")||n.endsWith("percent")||n==="strength"?`${n.includes("opacity")?"opacity ":""}${t}%`:`${zn(e).toLowerCase()} ${t}`:typeof t=="string"?n.includes("blend")?zn(t.toLowerCase()):n==="prompt"||n==="text"||n==="contents"?`“${Wr(t,32)}”`:n.includes("name")?`“${Wr(t,24)}”`:n.includes("path")||n.includes("file")?Wr(t.split(/[\\/]/).pop()??t,28):t.length<=20?t:null:Array.isArray(t)&&t.length?`${t.length} ${zn(e).toLowerCase()}`:null}function tx(e,t){const n=No(e).replace(/^photoshop_/,""),o=t&&typeof t=="object"&&!Array.isArray(t)?t:{};let s;n.startsWith("recipe_")?s=`Recipe: ${zn(n.slice(7)).toLowerCase()}`:s=Zb[n]??zn(n),typeof o.action=="string"&&o.action&&(s=`${s} › ${zn(o.action).toLowerCase()}`);const r=[];let i;if(n==="get_preview"||n==="get_state")return{title:s,params:r};typeof o.width=="number"&&typeof o.height=="number"?r.push(`${o.width} × ${o.height}`):(typeof o.width=="number"&&r.push(`width ${o.width}`),typeof o.height=="number"&&r.push(`height ${o.height}`));const l=La(o);l&&(i=l.css,r.push(l.label));for(const[a,c]of Object.entries(o)){if(r.length>=Na)break;if(Qb.has(a))continue;const u=a.toLowerCase().includes("color")?La(c):null;if(u){i??(i=u.css),r.push(u.label);continue}const d=ex(a,c);d&&r.push(d)}return{title:s,params:r.slice(0,Na),...i?{swatch:i}:{}}}function Hs(e){return e===void 0||!Number.isFinite(e)?null:e<1e3?`${Math.round(e)} ms`:`${(e/1e3).toFixed(e<1e4?1:0)} s`}const nx=["aria-label"],ox={class:"mb-4 flex items-start justify-between gap-3"},sx={class:"min-w-0"},rx={class:"truncate font-mono text-sm font-semibold text-foreground"},ix={class:"mt-1.5 flex items-center gap-2"},lx={key:1,class:"font-mono text-[11px] text-muted-foreground"},ax={key:0,class:"mb-4 rounded-md border border-border/60 bg-muted/20 px-3 py-2 text-xs leading-relaxed text-muted-foreground"},ux={class:"space-y-3 text-xs"},cx={key:0},dx={key:1},fx={key:0,class:"mb-2 space-y-2"},px={class:"max-h-64 overflow-auto rounded-md bg-muted/40 p-2 text-[11px] leading-snug"},hx=te({__name:"ToolCallDetailDialog",props:{open:{type:Boolean},name:{},status:{},input:{},result:{},rationale:{},durationMs:{}},emits:["close"],setup(e,{emit:t}){const n=e,o=t;function s(l){l.key==="Escape"&&n.open&&o("close")}tt(()=>window.addEventListener("keydown",s)),pn(()=>window.removeEventListener("keydown",s));function r(){return n.status==="success"||n.status==="done"?"success":n.status==="error"?"destructive":"secondary"}function i(){return n.status==="success"?"success":n.status}return(l,a)=>{var c;return C(),G(Oi,{to:"body"},[e.open?(C(),M("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-background/70 p-4 backdrop-blur",onClick:a[1]||(a[1]=vt(u=>o("close"),["self"]))},[S("div",{class:"max-h-[90vh] w-full max-w-lg overflow-y-auto rounded-xl border border-border bg-card p-5 shadow-lg",role:"dialog","aria-modal":"true","aria-label":h(No)(e.name)},[S("div",ox,[S("div",sx,[S("h2",rx,Q(h(No)(e.name)),1),S("div",ix,[e.status==="pending"||e.status==="running"?(C(),G(h(lt),{key:0,class:"size-3.5 animate-spin text-muted-foreground"})):X("",!0),A(h(Rd),{variant:r(),class:"text-[10px] capitalize"},{default:O(()=>[V(Q(i()),1)]),_:1},8,["variant"]),h(Hs)(e.durationMs)?(C(),M("span",lx,Q(h(Hs)(e.durationMs)),1)):X("",!0)])]),A(h(ve),{variant:"ghost",size:"icon",onClick:a[0]||(a[0]=u=>o("close"))},{default:O(()=>[A(h(dr),{class:"size-4"})]),_:1})]),e.rationale?(C(),M("p",ax,Q(e.rationale),1)):X("",!0),S("div",ux,[e.input!==void 0?(C(),M("div",cx,[a[2]||(a[2]=S("div",{class:"mb-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground"}," Input ",-1)),A(jb,{value:e.input},null,8,["value"])])):X("",!0),e.result?(C(),M("div",dx,[a[3]||(a[3]=S("div",{class:"mb-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground"}," Result ",-1)),(c=e.result.images)!=null&&c.length?(C(),M("div",fx,[(C(!0),M(be,null,At(e.result.images,u=>(C(),G(il,{key:u.file,image:u,alt:`${h(No)(e.name)} result`},null,8,["image","alt"]))),128))])):X("",!0),S("pre",px,Q(e.result.content),1)])):X("",!0)])],8,nx)])):X("",!0)])}}}),Fa={photoshop_create_document:ys,photoshop_open_image:ys,photoshop_save_document:ys,photoshop_close_document:ys,photoshop_get_document_info:Hm,photoshop_get_version:ng,photoshop_ping:Im,photoshop_fill_layer:Gm,photoshop_flatten_image:Vm,photoshop_undo:og,photoshop_redo:Ym,photoshop_get_history:zm,photoshop_get_state:Ss,photoshop_get_preview:Ss,photoshop_get_capabilities:Ss,photoshop_play_action:aa,photoshop_execute_script:aa,photoshop_content_aware_fill:ia,photoshop_deselect:Es,photoshop_invert_selection:Es,photoshop_select_subject:Es,photoshop_list_fonts:yc,photoshop_generative_fill:Dt,photoshop_generative_remove:ia,photoshop_generative_expand:Dt,photoshop_generative_upscale:Dt,photoshop_sky_replacement:Dt,photoshop_generate_image:Dt,photoshop_neural_filter:Dt},mx=[{test:e=>e.includes("artboard"),icon:Km},{test:e=>e.startsWith("photoshop_recipe_"),icon:rg},{test:e=>e.startsWith("photoshop_generative_")||e==="photoshop_generate_image"||e==="photoshop_sky_replacement"||e==="photoshop_neural_filter",icon:Dt},{test:e=>e.startsWith("photoshop_select_"),icon:Es},{test:e=>e.includes("_mask"),icon:Bm},{test:e=>e.includes("_text"),icon:yc},{test:e=>e.includes("_layer"),icon:jm},{test:e=>e.includes("_blur")||e.includes("apply_noise")||e.includes("apply_sharpen"),icon:Dt},{test:e=>e.startsWith("photoshop_adjust_")||e.startsWith("photoshop_auto_")||e==="photoshop_desaturate"||e==="photoshop_invert",icon:Qm},{test:e=>e==="photoshop_resize_image"||e==="photoshop_crop_document"||e==="photoshop_place_image",icon:Nm}];function gx(e){const t=No(e);if(!t||t==="…")return ua;if(Fa[t])return Fa[t];for(const{test:n,icon:o}of mx)if(n(t))return o;return ua}const vx={key:0,class:"divide-y divide-border/60"},yx=["aria-label"],bx=["disabled","title","onClick"],xx={class:"flex min-w-0 items-center gap-1.5 text-[13px] leading-tight text-foreground"},_x={key:0,class:"shrink-0 font-mono text-[11px] text-muted-foreground"},wx={class:"truncate font-medium"},Cx={key:0,class:"flex flex-wrap items-center gap-1"},kx={key:1,class:"line-clamp-2 text-[11px] text-destructive"},Ax={key:0,class:"shrink-0 font-mono text-[11px] tabular-nums text-muted-foreground"},$d=te({__name:"StepTimeline",props:{items:{},showIndex:{type:Boolean}},setup(e){const t=e,n=q(()=>t.items.map((i,l)=>{var c,u;const a=tx(i.name,i.input);return{...i,index:l+1,summary:a,icon:gx(i.name),duration:Hs(i.durationMs),thumb:(u=(c=i.result)==null?void 0:c.images)==null?void 0:u[0]}})),o=D(null),s=q(()=>t.items.find(i=>i.id===o.value)??null);function r(i){i.clickable!==!1&&(o.value=i.id)}return(i,l)=>{var a,c,u,d,f,p;return C(),M(be,null,[n.value.length>0?(C(),M("ol",vx,[(C(!0),M(be,null,At(n.value,g=>{var m;return C(),M("li",{key:g.id,class:we(["flex items-center gap-3 px-3 py-2",g.status==="running"?"bg-[var(--photoshop-blue)]/5":""])},[S("span",{class:we(["flex size-5 shrink-0 items-center justify-center rounded-full",{"bg-emerald-500/15 text-emerald-500":g.status==="done"||g.status==="success","bg-destructive/15 text-destructive":g.status==="error","text-[var(--photoshop-blue)]":g.status==="running","text-muted-foreground":g.status==="pending"}]),"aria-label":g.status},[g.status==="done"||g.status==="success"?(C(),G(h(Wo),{key:0,class:"size-3","stroke-width":3})):g.status==="error"?(C(),G(h(dr),{key:1,class:"size-3","stroke-width":3})):g.status==="running"?(C(),G(h(lt),{key:2,class:"size-3.5 animate-spin"})):(C(),G(h($m),{key:3,class:"size-3.5"}))],10,yx),S("button",{type:"button",class:"flex min-w-0 flex-1 flex-col gap-1 rounded-sm text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--photoshop-blue)] disabled:cursor-default",disabled:g.clickable===!1,title:g.rationale||void 0,onClick:b=>r(g)},[S("span",xx,[e.showIndex?(C(),M("span",_x,Q(g.index),1)):X("",!0),(C(),G(ss(g.icon),{class:"size-3.5 shrink-0 text-muted-foreground"})),S("span",wx,Q(g.summary.title),1)]),g.summary.params.length||g.summary.swatch?(C(),M("span",Cx,[g.summary.swatch?(C(),M("span",{key:0,class:"size-3.5 rounded-[4px] ring-1 ring-inset ring-white/20",style:dn({background:g.summary.swatch})},null,4)):X("",!0),(C(!0),M(be,null,At(g.summary.params,b=>(C(),M("span",{key:b,class:"rounded bg-muted/60 px-1.5 py-px font-mono text-[11px] text-muted-foreground"},Q(b),1))),128))])):X("",!0),g.status==="error"&&((m=g.result)!=null&&m.content)?(C(),M("span",kx,Q(g.result.content),1)):X("",!0)],8,bx),g.duration?(C(),M("span",Ax,Q(g.duration),1)):X("",!0),g.thumb?(C(),G(il,{key:1,image:g.thumb,alt:`Preview after ${g.summary.title}`,size:"thumb"},null,8,["image","alt"])):X("",!0)],2)}),128))])):X("",!0),A(hx,{open:s.value!==null,name:((a=s.value)==null?void 0:a.name)??"",status:((c=s.value)==null?void 0:c.status)??"pending",input:(u=s.value)==null?void 0:u.input,result:(d=s.value)==null?void 0:d.result,rationale:(f=s.value)==null?void 0:f.rationale,"duration-ms":(p=s.value)==null?void 0:p.durationMs,onClose:l[0]||(l[0]=g=>o.value=null)},null,8,["open","name","status","input","result","rationale","duration-ms"])],64)}}});function Sx(e){try{const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))return;if("ok"in t&&typeof t.ok=="boolean")return t.ok}catch{}}function Bd(e,t){var o;return((o=e.result)!=null&&o.content?Sx(e.result.content):void 0)===!1||e.status==="error"||t==="error"?"error":e.status==="success"||t==="done"?"done":t==="running"?"running":e.status==="pending"?"pending":e.status}const Ex={class:"overflow-hidden rounded-lg border border-border bg-card/50"},Px={class:"space-y-1 border-b border-border px-3 py-2"},Ox={class:"flex items-center gap-2 text-xs"},Tx={class:"font-medium text-foreground"},Ix={key:0,class:"rounded bg-amber-500/15 px-1 text-[9px] font-semibold uppercase text-amber-600"},Rx={class:"ml-auto shrink-0 font-mono text-[10px] text-muted-foreground"},Mx={class:"text-[11px] leading-snug text-muted-foreground"},$x=te({__name:"PlanCard",props:{plan:{},toolCalls:{},partial:{type:Boolean}},setup(e){const t=e,n=q(()=>t.plan.steps.filter(r=>r.status==="done").length),o=q(()=>t.plan.steps.map((r,i)=>{var c;const l=(c=t.toolCalls)==null?void 0:c[i],a=r.tool||(l==null?void 0:l.name)||"…";return{id:r.id,name:a,status:l?Bd(l,r.status):r.status,input:l==null?void 0:l.input,result:l==null?void 0:l.result,rationale:r.rationale,durationMs:l==null?void 0:l.durationMs,clickable:!!(r.tool||l)}})),s=q(()=>{const r=(t.toolCalls??[]).reduce((i,l)=>i+(l.durationMs??0),0);return r>0?Hs(r):null});return(r,i)=>(C(),M("div",Ex,[S("div",Px,[S("div",Ox,[A(h(gc),{class:"size-3.5 shrink-0 text-muted-foreground"}),S("span",Tx,"Plan · "+Q(e.plan.steps.length||"…")+" steps",1),e.partial?(C(),M("span",Ix," Draft ")):X("",!0),S("span",Rx,[s.value?(C(),M(be,{key:0},[V(Q(s.value)+" · ",1)],64)):X("",!0),V(Q(n.value)+"/"+Q(e.plan.steps.length||"…"),1)])]),S("p",Mx,Q(e.plan.summary||"…"),1)]),A($d,{items:o.value,"show-index":""},null,8,["items"])]))}}),Bx={key:0,class:"flex flex-col gap-2"},Dx={key:0,class:"flex items-center gap-2 text-xs text-muted-foreground"},Nx={key:1,class:"rounded-md border border-border/60 bg-muted/20"},Lx={key:0,class:"animate-pulse"},Fx={key:0,class:"border-t border-border/60 px-2.5 py-2 text-xs leading-relaxed text-muted-foreground whitespace-pre-wrap"},qx={key:0,class:"ml-0.5 inline-block h-3.5 w-0.5 animate-pulse bg-muted-foreground align-middle"},zx={key:2,class:"flex"},Vx={key:4,class:"overflow-hidden rounded-lg border border-border bg-card/50"},Ux={key:5,class:"m-0 flex flex-col gap-1.5"},Hx={class:"text-[11px] text-muted-foreground"},jx={key:6,class:"whitespace-pre-wrap text-sm leading-relaxed text-foreground"},Kx={key:0,class:"ml-0.5 inline-block h-4 w-0.5 animate-pulse bg-foreground align-middle"},Wx=te({__name:"StreamingMessage",props:{message:{},standaloneToolCalls:{}},setup(e){const t=e,n=D(!1),o=q(()=>{var c;return!!((c=t.message.reasoning)!=null&&c.length)||t.message.isStreaming}),s=q(()=>{var u;const c=t.message.activity;return c?c.phase==="planning"?"Planning…":c.phase==="thinking"?"Thinking…":c.phase==="tool-running"?`Running ${((u=c.detail)==null?void 0:u.replace(/^mcp__photoshop__/,""))??"tool"}…`:null:null}),r=q(()=>!!s.value&&!t.message.text&&!t.message.reasoning&&!t.message.plan),i=q(()=>t.message.isStreaming||!!t.message.text||!!t.message.reasoning||!!t.message.plan||!!t.message.route||t.message.toolCalls.length>0||!!s.value),l=q(()=>t.standaloneToolCalls.map(c=>({id:c.id,name:c.name,status:Bd(c),input:c.input,result:c.result,durationMs:c.durationMs,clickable:!0}))),a=q(()=>{var u;const c=t.message.toolCalls;for(let d=c.length-1;d>=0;d--){const f=(u=c[d].result)==null?void 0:u.images;if(f!=null&&f.length)return{image:f[f.length-1],step:d+1}}return null});return(c,u)=>i.value?(C(),M("div",Bx,[r.value?(C(),M("div",Dx,[u[1]||(u[1]=S("span",{class:"inline-block size-1.5 animate-pulse rounded-full bg-muted-foreground"},null,-1)),V(" "+Q(s.value),1)])):X("",!0),o.value?(C(),M("div",Nx,[S("button",{type:"button",class:"flex w-full items-center gap-1.5 px-2.5 py-1.5 text-left text-xs text-muted-foreground hover:text-foreground",onClick:u[0]||(u[0]=d=>n.value=!n.value)},[(C(),G(ss(n.value?h(mc):h(Mm)),{class:"size-3.5 shrink-0"})),u[2]||(u[2]=S("span",{class:"font-medium"},"Reasoning",-1)),e.message.isStreaming&&!e.message.text?(C(),M("span",Lx,"…")):X("",!0)]),n.value&&e.message.reasoning?(C(),M("div",Fx,[V(Q(e.message.reasoning),1),e.message.isStreaming?(C(),M("span",qx)):X("",!0)])):X("",!0)])):X("",!0),e.message.route?(C(),M("div",zx,[A(Id,{route:e.message.route},null,8,["route"])])):X("",!0),e.message.plan?(C(),G($x,{key:3,plan:e.message.plan,"tool-calls":e.message.toolCalls,partial:e.message.planPartial},null,8,["plan","tool-calls","partial"])):X("",!0),l.value.length>0?(C(),M("div",Vx,[A($d,{items:l.value},null,8,["items"])])):X("",!0),a.value?(C(),M("figure",Ux,[A(il,{image:a.value.image,alt:`Document preview after step ${a.value.step}`},null,8,["image","alt"]),S("figcaption",Hx," Photoshop document after step "+Q(a.value.step)+" · click to enlarge ",1)])):X("",!0),e.message.text||e.message.isStreaming&&!r.value?(C(),M("div",jx,[V(Q(e.message.text),1),e.message.isStreaming?(C(),M("span",Kx)):X("",!0)])):X("",!0)])):X("",!0)}}),Gx={class:"mx-auto flex max-w-3xl flex-col gap-6 px-4 py-6 pb-52"},Jx={key:0,class:"flex items-start gap-2.5 rounded-lg border border-dashed border-border/60 bg-card/30 px-3 py-2.5"},Yx={key:0,class:"flex gap-3 rounded-lg border border-user-message-border bg-user-message-bg px-3 py-2.5 text-user-message-fg"},Xx={class:"flex size-7 shrink-0 items-center justify-center rounded-md border border-user-message-border bg-user-message-avatar-bg text-user-message-avatar-fg"},Zx={class:"flex min-w-0 flex-1 flex-col gap-1"},Qx={key:0,class:"whitespace-pre-wrap text-sm leading-relaxed"},e2={key:1,class:"flex gap-3"},t2={class:"flex size-7 shrink-0 cursor-default items-center justify-center rounded-md border border-border bg-card text-muted-foreground"},n2={class:"text-xs"},o2={key:1,class:"flex size-7 shrink-0 items-center justify-center rounded-md border border-border bg-card text-muted-foreground"},s2={class:"flex min-w-0 flex-1 flex-col gap-2"},r2=te({__name:"MessageList",props:{messages:{},busy:{type:Boolean},providers:{}},setup(e){const t=e,n=D(null);async function o(){await et(),n.value&&(n.value.scrollTop=n.value.scrollHeight)}Oe(()=>{var i,l,a,c,u;return[t.messages.length,t.busy,(i=t.messages[t.messages.length-1])==null?void 0:i.text,(l=t.messages[t.messages.length-1])==null?void 0:l.reasoning,(c=(a=t.messages[t.messages.length-1])==null?void 0:a.plan)==null?void 0:c.steps.length,(u=t.messages[t.messages.length-1])==null?void 0:u.isStreaming]},()=>{o()}),tt(o);function s(i){var u;if(!i.provider)return"Assistant";const l=t.providers.find(d=>d.id===i.provider),a=(l==null?void 0:l.label)??i.provider,c=((u=l==null?void 0:l.models.find(d=>d.id===i.model))==null?void 0:u.label)??i.model;return c?`${a} · ${c}`:a}function r(i){return i.plan?i.toolCalls.slice(i.plan.steps.length):i.toolCalls}return(i,l)=>(C(),M("div",{ref_key:"scroller",ref:n,class:"min-h-0 flex-1 overflow-y-auto"},[S("div",Gx,[e.messages.length===0?(C(),M("div",Jx,[A(h(Dt),{class:"mt-0.5 size-4 shrink-0 text-muted-foreground"}),l[0]||(l[0]=S("p",{class:"min-w-0 text-xs leading-relaxed text-muted-foreground"},[S("span",{class:"font-medium text-foreground"},"Describe a Photoshop task"),V(` — e.g. "Create a 1920×1080 doc, add 'Hello' text, save as hello.psd on Desktop." `)],-1))])):X("",!0),(C(!0),M(be,null,At(e.messages,a=>(C(),M(be,{key:a.id},[a.role==="user"?(C(),M("div",Yx,[S("div",Xx,[A(h(sg),{class:"size-4"})]),S("div",Zx,[l[1]||(l[1]=S("div",{class:"text-xs font-medium text-user-message-muted"},"You",-1)),a.text?(C(),M("div",Qx,Q(a.text),1)):X("",!0)])])):(C(),M("div",e2,[a.provider?(C(),G(h(Od),{key:0},{default:O(()=>[A(h(Ed),null,{default:O(()=>[A(h(Td),{"as-child":""},{default:O(()=>[S("div",t2,[A(mo,{provider:a.provider,size:16},null,8,["provider"])])]),_:2},1024),A(h(Pd),null,{default:O(()=>[S("p",n2,Q(s(a)),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)):(C(),M("div",o2,[A(h(Dt),{class:"size-4"})])),S("div",s2,[A(Wx,{message:a,"standalone-tool-calls":r(a)},null,8,["message","standalone-tool-calls"])])]))],64))),128))])],512))}});function oo(e){const t=Number.parseFloat(e);return Number.isFinite(t)?t:0}function i2(e){const t=getComputedStyle(e),n=oo(t.lineHeight);if(n>0)return n;const o=oo(t.fontSize);return o>0?o*1.5:20}function l2(e,t={}){const n=t.minLines??3,o=t.maxLines??50;function s(){const i=e.value;if(!i)return;const l=i2(i),a=getComputedStyle(i),c=oo(a.paddingTop)+oo(a.paddingBottom)+oo(a.borderTopWidth)+oo(a.borderBottomWidth),u=l*n+c,d=l*o+c;i.style.height="0px";const f=i.scrollHeight,p=Math.min(Math.max(f,u),d);i.style.height=`${p}px`,i.style.overflowY=f>d?"auto":"hidden"}function r(){s()}return tt(()=>{et(s)}),t.watch&&Oe(t.watch,()=>{et(s)}),{onInput:r,resize:s}}const a2={class:"mx-auto w-full max-w-3xl shrink-0 px-4 py-3"},u2={key:0,class:"mb-2 flex"},c2={class:"overflow-hidden rounded-2xl border border-white/10 bg-white/[0.06] shadow-lg backdrop-blur-2xl backdrop-saturate-150 transition-shadow focus-within:border-white/20 focus-within:ring-1 focus-within:ring-white/10"},d2=["disabled"],f2={class:"flex items-center justify-between gap-2 px-2 pb-2"},p2={class:"min-w-0 flex-1"},h2=300,m2=te({__name:"Composer",props:{busy:{type:Boolean},disabled:{type:Boolean},intentRouter:{type:Boolean}},emits:["send","abort"],setup(e,{emit:t}){const n=e,o=t,s=D(""),r=D(null),{onInput:i,resize:l}=l2(r,{minLines:3,maxLines:50,watch:s}),a=D(null),c=D(!1);let u=null,d=null;function f(){u&&clearTimeout(u),u=null,d==null||d.abort(),d=null}Oe(s,m=>{if(!n.intentRouter)return;f();const b=m.trim();if(b.length<3){a.value=null,c.value=!1;return}c.value=!0,u=setTimeout(async()=>{const x=new AbortController;d=x;try{const v=await Z0(b,x.signal);x.signal.aborted||(a.value=v.decision??null)}catch{x.signal.aborted||(a.value=null)}finally{x.signal.aborted||(c.value=!1)}},h2)}),pn(f);function p(m){m.key==="Enter"&&!m.shiftKey&&!m.isComposing&&(m.preventDefault(),g())}async function g(){const m=s.value.trim();!m||n.busy||n.disabled||(o("send",m),s.value="",f(),a.value=null,c.value=!1,await et(l))}return(m,b)=>(C(),M("div",a2,[e.intentRouter&&s.value.trim().length>=3&&(a.value||c.value)?(C(),M("div",u2,[A(Id,{route:a.value,loading:c.value,class:"max-w-full"},null,8,["route","loading"])])):X("",!0),S("div",c2,[ns(S("textarea",{ref_key:"textareaRef",ref:r,"onUpdate:modelValue":b[0]||(b[0]=x=>s.value=x),disabled:e.busy||e.disabled,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",onInput:b[1]||(b[1]=(...x)=>h(i)&&h(i)(...x)),onKeydown:p},null,40,d2),[[Ls,s.value]]),S("div",f2,[S("div",p2,[ue(m.$slots,"actions")]),e.busy?(C(),G(h(ve),{key:1,size:"icon",variant:"secondary",class:"size-8 rounded-full",onClick:b[2]||(b[2]=x=>o("abort"))},{default:O(()=>[A(h(eg),{class:"size-3.5"})]),_:1})):(C(),G(h(ve),{key:0,size:"icon",disabled:!s.value.trim()||e.disabled,class:"size-8 rounded-full disabled:opacity-40",onClick:g},{default:O(()=>[A(h(Rm),{class:"size-4"})]),_:1},8,["disabled"]))])]),b[3]||(b[3]=S("p",{class:"mt-2 text-center text-[11px] text-muted-foreground"},[V(" Press "),S("kbd",{class:"rounded border border-border px-1 py-px text-[10px]"},"Enter"),V(" to send · "),S("kbd",{class:"rounded border border-border px-1 py-px text-[10px]"},"Shift+Enter"),V(" for newline ")],-1))]))}}),Dd=te({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const s=In(e,t);return(r,i)=>(C(),G(h(Ty),go(Jn(h(s))),{default:O(()=>[ue(r.$slots,"default")]),_:3},16))}}),Nd=te({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e;return(n,o)=>(C(),G(h(zy),Le(t,{class:h(Xe)(t.class)}),{default:O(()=>[ue(n.$slots,"default")]),_:3},16,["class"]))}}),Ld=te({__name:"PopoverContent",props:{forceMount:{type:Boolean},memoDependencies:{},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:{},dir:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{}},setup(e){const t=e;return(n,o)=>(C(),G(h(Fy),null,{default:O(()=>[A(h(Ny),Le(t,{class:h(Xe)("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:O(()=>[ue(n.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),g2={class:"font-normal"},v2={class:"font-medium text-foreground"},y2={class:"max-h-96 overflow-y-auto"},b2={class:"flex items-center justify-between gap-2 bg-muted/50 px-3 py-1.5 text-xs font-medium text-muted-foreground"},x2={class:"inline-flex items-center gap-1.5"},_2={key:0,class:"inline-flex items-center gap-1 text-[10px] text-muted-foreground/80"},w2={class:"py-1"},C2=["onClick"],k2={class:"min-w-0 flex-1"},A2={class:"truncate font-medium"},S2=te({__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,s=D(!1),r=q(()=>n.providers.find(a=>a.id===n.currentProvider)),i=q(()=>{var a;return(a=r.value)==null?void 0:a.models.find(c=>c.id===n.currentModel)});function l(a,c){if(!a.isAuthenticated){s.value=!1,o("open-settings");return}a.id!==n.currentProvider&&o("update:provider",a.id),c.id!==n.currentModel&&o("update:model",c.id),s.value=!1}return(a,c)=>(C(),G(h(Dd),{open:s.value,"onUpdate:open":c[0]||(c[0]=u=>s.value=u)},{default:O(()=>[A(h(Nd),{"as-child":""},{default:O(()=>[A(h(ve),{variant:"ghost",size:"sm",disabled:e.disabled,class:"h-7 gap-1.5 px-2 text-xs text-muted-foreground hover:bg-transparent hover:text-foreground"},{default:O(()=>{var u;return[A(mo,{provider:e.currentProvider,size:14},null,8,["provider"]),S("span",g2,[c[1]||(c[1]=V(" Model: ",-1)),S("span",v2,Q(((u=i.value)==null?void 0:u.label)??"Select model"),1)]),A(h(mc),{class:"size-3.5 opacity-50"})]}),_:1},8,["disabled"])]),_:1}),A(h(Ld),{class:"w-80 p-0",align:"start",side:"top"},{default:O(()=>[S("div",y2,[(C(!0),M(be,null,At(e.providers,u=>(C(),M("div",{key:u.id,class:"border-b border-border/50 last:border-0"},[S("div",b2,[S("span",x2,[A(mo,{provider:u.id,size:14},null,8,["provider"]),V(" "+Q(u.label),1)]),u.isAuthenticated?X("",!0):(C(),M("span",_2,[A(h(la),{class:"size-3"}),V(" "+Q(u.authMethod==="cli_account"?"Connect account":"Add API key"),1)]))]),S("div",w2,[(C(!0),M(be,null,At(u.models,d=>(C(),M("button",{key:d.id,type:"button",class:we(["flex w-full items-center gap-2 px-3 py-2 text-left text-sm",[u.isAuthenticated?"hover:bg-accent":"opacity-50 hover:bg-muted/30",u.id===e.currentProvider&&d.id===e.currentModel?"bg-accent":""]]),onClick:f=>l(u,d)},[u.isAuthenticated?(C(),G(h(Wo),{key:0,class:we(["size-4 shrink-0",u.id===e.currentProvider&&d.id===e.currentModel?"opacity-100":"opacity-0"])},null,8,["class"])):(C(),G(h(la),{key:1,class:"size-3.5 shrink-0 text-muted-foreground"})),S("div",k2,[S("div",A2,Q(d.label),1)])],10,C2))),128))])]))),128))])]),_:1})]),_:1},8,["open"]))}}),E2={class:"flex h-screen flex-col"},P2={key:0,class:"flex flex-1 flex-col items-center justify-center gap-3 p-8 text-center"},O2={key:1,class:"relative flex min-h-0 flex-1 flex-col overflow-hidden"},T2={class:"pointer-events-none absolute inset-x-0 bottom-0 z-10"},I2={key:0,class:"pointer-events-auto border-t border-destructive/40 bg-destructive/10 px-4 py-2 text-center text-xs text-destructive backdrop-blur-sm"},R2={class:"flex items-center gap-1"},M2={key:0,class:"flex h-7 items-center gap-1.5 rounded-md px-2 text-xs text-foreground",title:"Jev picks the route for each message: run instantly, plan, look and iterate, or ask first. Action Plan is used when Jev chooses Plan."},$2=te({__name:"ChatView",props:{providers:{},store:{},settingsOpen:{type:Boolean},actionPlanBeta:{type:Boolean},intentRouter:{type:Boolean}},emits:["new-chat","open-settings"],setup(e,{emit:t}){const n=e,o=t,s=D(n.actionPlanBeta);Oe(()=>n.actionPlanBeta,d=>{s.value=d});async function r(){const d=!s.value;s.value=d;try{await Q0(d),await Wn()}catch{s.value=!d}}Un(Md,q(()=>n.store.activeChatId.value));const i=q(()=>{const d=n.store.activeChatId.value;return d?n.store.chats.value.find(f=>f.id===d)??null:null}),l=q(()=>{const d=i.value;return d?n.providers.find(f=>f.id===d.provider)??null:null}),a=q(()=>{var d;return((d=l.value)==null?void 0:d.authMethod)==="cli_account"});async function c(d){const f=i.value;f&&(await $a(f.id,{provider:d}),await n.store.loadChats())}async function u(d){const f=i.value;f&&(await $a(f.id,{model:d}),await n.store.loadChats())}return(d,f)=>(C(),M("div",E2,[A(Ob,{chat:i.value,totals:i.value?n.store.chatTotals.value:null,"subscription-mode":a.value},null,8,["chat","totals","subscription-mode"]),i.value?(C(),M("div",O2,[A(r2,{messages:n.store.messages,busy:n.store.sending.value,providers:n.providers},null,8,["messages","busy","providers"]),S("div",T2,[n.store.error.value?(C(),M("div",I2,Q(n.store.error.value),1)):X("",!0),A(m2,{class:"pointer-events-auto",busy:n.store.sending.value,"intent-router":n.intentRouter,onSend:f[2]||(f[2]=p=>n.store.send(p)),onAbort:n.store.abort},{actions:O(()=>[S("div",R2,[A(S2,{providers:n.providers,"current-provider":i.value.provider,"current-model":i.value.model,disabled:n.store.sending.value,"onUpdate:provider":c,"onUpdate:model":u,onOpenSettings:f[1]||(f[1]=p=>o("open-settings"))},null,8,["providers","current-provider","current-model","disabled"]),n.intentRouter?(C(),M("span",M2,[A(h(zi),{class:"size-3.5 text-amber-500"}),f[5]||(f[5]=V(" Auto route ",-1)),f[6]||(f[6]=S("span",{class:"rounded bg-amber-500/15 px-1 text-[9px] font-semibold uppercase text-amber-600"},"Jev",-1))])):(C(),G(h(ve),{key:1,variant:"ghost",size:"sm",disabled:n.store.sending.value,title:"Beta: plan all Photoshop steps in one call, then execute them in a single pass.",class:we(["h-7 gap-1.5 px-2 text-xs hover:bg-white/5",s.value?"text-foreground":"text-muted-foreground hover:text-foreground"]),onClick:r},{default:O(()=>[A(h(Fm),{class:we(["size-3.5",s.value?"text-amber-500":""])},null,8,["class"]),f[7]||(f[7]=V(" Action Plan ",-1)),S("span",{class:we(["rounded px-1 text-[9px] font-semibold uppercase",s.value?"bg-amber-500/15 text-amber-600":"bg-white/10 text-muted-foreground"])},Q(s.value?"On":"Beta"),3)]),_:1},8,["disabled","class"]))])]),_:1},8,["busy","intent-router","onAbort"])])])):(C(),M("div",P2,[f[4]||(f[4]=S("p",{class:"text-sm text-muted-foreground"},"Select a chat from the sidebar or start a new one.",-1)),A(h(ve),{onClick:f[0]||(f[0]=p=>o("new-chat"))},{default:O(()=>[A(h(vc),{class:"size-4"}),f[3]||(f[3]=V(" New chat ",-1))]),_:1})]))]))}}),B2={class:"flex h-14 shrink-0 items-center gap-2 border-b border-border px-3"},D2={class:"flex items-center gap-2 rounded-md transition-colors hover:bg-accent/50 p-1 -ml-1",title:"Adobe Creative Cloud Apps"},N2={class:"space-y-3"},L2={class:"grid grid-cols-3 gap-2"},F2=["disabled"],q2={class:"text-xs text-center"},z2={class:"px-3 pt-3"},V2={class:"scrollbar-none mt-3 min-h-0 flex-1 overflow-y-auto px-2"},U2={key:0,class:"px-2 py-6 text-center text-xs text-muted-foreground"},H2={key:1,class:"space-y-0.5"},j2=["onClick"],K2={class:"min-w-0 flex-1"},W2=["onBlur","onKeydown"],G2=["title"],J2={class:"text-[10px] text-muted-foreground"},Y2=["onClick"],X2=["onClick"],Z2=["onClick"],Q2={class:"border-t border-border p-2"},e_=te({__name:"Sidebar",props:{chats:{},activeChatId:{}},emits:["new-chat","select","rename","delete","open-settings"],setup(e,{emit:t}){const n=e,o=t,s=D(null),r=D(null),i=D(""),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(g,m){m.stopPropagation(),s.value=s.value===g?null:g}function c(g,m){m.stopPropagation(),r.value=g.id,i.value=g.title,s.value=null}function u(g){const m=i.value.trim();m&&o("rename",g,m),r.value=null}function d(){r.value=null}function f(g,m){m.stopPropagation(),s.value=null,o("delete",g)}function p(g){const m=new Date(g),b=new Date;return m.toDateString()===b.toDateString()?m.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"}):m.toLocaleDateString(void 0,{month:"short",day:"numeric"})}return(g,m)=>(C(),M("aside",{class:"flex h-screen w-[260px] shrink-0 flex-col border-r border-border bg-card/40",onClick:m[5]||(m[5]=b=>s.value=null)},[S("div",B2,[A(h(Dd),null,{default:O(()=>[A(h(Nd),{"as-child":""},{default:O(()=>[S("button",D2,[A(xi,{app:"ps",size:28}),m[6]||(m[6]=S("span",{class:"text-sm font-semibold"},"Photoshop MCP",-1))])]),_:1}),A(h(Ld),{align:"start",class:"w-80"},{default:O(()=>[S("div",N2,[m[8]||(m[8]=S("div",null,[S("h4",{class:"text-sm font-semibold mb-1"},"Adobe Creative Cloud"),S("p",{class:"text-xs text-muted-foreground"}," MCP integrations for Adobe applications ")],-1)),S("div",L2,[(C(),M(be,null,At(l,b=>S("button",{key:b.id,disabled:!b.active,class:we(["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":b.active}])},[A(xi,{app:b.id,size:32},null,8,["app"]),S("span",q2,Q(b.name),1),b.active?X("",!0):(C(),G(h(Rd),{key:0,variant:"secondary",class:"absolute -top-1 -right-1 text-[9px] px-1 py-0 h-4"},{default:O(()=>[...m[7]||(m[7]=[V(" Soon ",-1)])]),_:1}))],10,F2)),64))])])]),_:1})]),_:1})]),S("div",z2,[A(h(ve),{class:"w-full justify-start gap-2 border-dashed",variant:"outline",onClick:m[0]||(m[0]=b=>o("new-chat"))},{default:O(()=>[A(h(vc),{class:"size-4"}),m[9]||(m[9]=V(" New chat ",-1))]),_:1})]),S("div",V2,[n.chats.length===0?(C(),M("div",U2," No chats yet. ")):(C(),M("div",H2,[(C(!0),M(be,null,At(n.chats,b=>(C(),M("div",{key:b.id,class:we(["group relative flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-accent",{"bg-accent":b.id===n.activeChatId}]),onClick:x=>o("select",b.id)},[S("div",K2,[r.value===b.id?ns((C(),M("input",{key:0,"onUpdate:modelValue":m[1]||(m[1]=x=>i.value=x),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:m[2]||(m[2]=vt(()=>{},["stop"])),onBlur:x=>u(b.id),onKeydown:[jo(vt(x=>u(b.id),["prevent"]),["enter"]),jo(vt(d,["prevent"]),["escape"])]},null,40,W2)),[[Ls,i.value]]):(C(),M("div",{key:1,class:"truncate",title:b.title},Q(b.title),9,G2)),S("div",J2,Q(p(b.updatedAt))+" · "+Q(b.provider),1)]),S("button",{class:we(["invisible flex size-6 items-center justify-center rounded text-muted-foreground hover:bg-background group-hover:visible",{visible:s.value===b.id}]),onClick:x=>a(b.id,x)},[A(h(Lm),{class:"size-3.5"})],10,Y2),s.value===b.id?(C(),M("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:m[3]||(m[3]=vt(()=>{},["stop"]))},[S("button",{class:"flex w-full items-center gap-2 rounded px-2 py-1 text-left hover:bg-accent",onClick:x=>c(b,x)},[A(h(Jm),{class:"size-3.5"}),m[10]||(m[10]=V(" Rename ",-1))],8,X2),S("button",{class:"flex w-full items-center gap-2 rounded px-2 py-1 text-left text-destructive hover:bg-destructive/10",onClick:x=>f(b.id,x)},[A(h(Do),{class:"size-3.5"}),m[11]||(m[11]=V(" Delete ",-1))],8,Z2)])):X("",!0)],10,j2))),128))]))]),S("div",Q2,[A(h(ve),{variant:"ghost",size:"sm",class:"w-full justify-start gap-2",onClick:m[4]||(m[4]=b=>o("open-settings"))},{default:O(()=>[A(h(Xm),{class:"size-4"}),m[12]||(m[12]=V(" Settings ",-1))]),_:1}),m[13]||(m[13]=Ap('<div class="my-2 border-t border-border"></div><p class="text-center text-[11px] text-muted-foreground"><a href="https://alisait.com" target="_blank" rel="noopener noreferrer" class="transition-colors hover:text-foreground"> Ali Sait Teke </a> · <a href="https://github.com/alisaitteke/photoshop-mcp" target="_blank" rel="noopener noreferrer" class="transition-colors hover:text-foreground"> GitHub </a> · <a href="https://www.linkedin.com/in/alisait/" target="_blank" rel="noopener noreferrer" class="transition-colors hover:text-foreground"> LinkedIn </a></p>',2))])]))}}),t_=te({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=In(e,t);return(r,i)=>(C(),G(h(Ky),go(Jn(h(s))),{default:O(()=>[ue(r.$slots,"default")]),_:3},16))}}),Jr=te({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=fr(t,"class");return(o,s)=>(C(),G(h(Gy),Le({class:h(Xe)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t.class)},h(n)),{default:O(()=>[ue(o.$slots,"default")]),_:3},16,["class"]))}}),n_=te({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=fr(t,"class");return(o,s)=>(C(),G(h(Yy),Le(h(n),{class:h(Xe)("inline-flex items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t.class)}),{default:O(()=>[ue(o.$slots,"default")]),_:3},16,["class"]))}}),o_={class:"truncate"},Yr=te({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=fr(t,"class"),o=ls(n);return(s,r)=>(C(),G(h(Zy),Le(h(o),{class:h(Xe)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",t.class)}),{default:O(()=>[S("span",o_,[ue(s.$slots,"default")])]),_:3},16,["class"]))}}),s_={key:0,class:"flex items-center justify-center gap-2 rounded-lg border border-border py-10 text-sm text-muted-foreground"},r_={key:1,class:"space-y-5"},i_={class:"rounded-lg border border-border p-3"},l_={class:"mb-2 flex items-center justify-between gap-2"},a_={class:"flex min-w-0 items-center gap-2"},u_={key:0,class:"inline-flex items-center gap-1 truncate rounded-full bg-emerald-500/10 px-2 py-0.5 text-[10px] text-emerald-600 dark:text-emerald-400"},c_={href:"https://console.typesafe.ai/",target:"_blank",rel:"noreferrer",class:"inline-flex shrink-0 items-center gap-1 text-[11px] text-muted-foreground hover:text-foreground"},d_={class:"flex items-center gap-2"},f_={key:0,class:"mt-2 text-[11px] text-muted-foreground"},p_={key:1,class:"mt-3 flex items-center gap-3"},h_={key:0,class:"font-mono text-[11px] text-emerald-600 dark:text-emerald-400"},m_={key:2,class:"mt-2 text-xs text-destructive"},g_={key:0,class:"rounded-md border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs text-amber-700 dark:text-amber-400"},v_={class:"space-y-2"},y_={class:"flex gap-2"},b_={class:"space-y-2"},x_={class:"flex gap-2"},__={class:"flex gap-2 rounded-md bg-muted/40 p-3 text-xs leading-relaxed text-muted-foreground"},w_=te({__name:"RoutingSettings",emits:["saved"],setup(e,{emit:t}){const n=t,o=D(null),s=D(!0),r=D(!1),i=D(""),l=D(null),a=D(null),c=q(()=>{var x,v;return!!((x=o.value)!=null&&x.hasApiKey)&&!((v=o.value)!=null&&v.disabledByEnv)&&!r.value});async function u(){s.value=!0;try{o.value=await J0()}catch(x){l.value=x.message}finally{s.value=!1}}tt(u);async function d(x){r.value=!0,l.value=null;try{o.value=await x(),n("saved")}catch(v){l.value=v.message}finally{r.value=!1}}async function f(){const x=i.value.trim();if(x){r.value=!0,l.value=null,a.value=null;try{const v=await Ia(x);if(!v.ok){l.value=v.error??"Could not verify the key.";return}o.value=await Y0(x),a.value=v,i.value="",n("saved")}catch(v){l.value=v.message}finally{r.value=!1}}}async function p(){a.value=null,await d(X0)}async function g(){r.value=!0,l.value=null;try{const x=await Ia();a.value=x,x.ok||(l.value=x.error??"Could not verify the key.")}catch(x){l.value=x.message}finally{r.value=!1}}const m=x=>d(()=>Ra({enabled:x})),b=x=>d(()=>Ra({instant:x}));return(x,v)=>{var P;return s.value?(C(),M("div",s_,[A(h(lt),{class:"size-4 animate-spin"}),v[5]||(v[5]=V(" Loading… ",-1))])):o.value?(C(),M("div",r_,[S("div",i_,[S("div",l_,[S("div",a_,[A(h(zi),{class:"size-4 shrink-0 text-amber-500"}),v[6]||(v[6]=S("span",{class:"text-sm font-semibold"},"Jev by TypeSafe",-1)),v[7]||(v[7]=S("span",{class:"rounded bg-amber-500/15 px-1 text-[9px] font-semibold uppercase text-amber-600"}," Experimental ",-1)),o.value.hasApiKey?(C(),M("span",u_,[A(h(Wo),{class:"size-3 shrink-0"}),V(" "+Q(o.value.apiKeyMasked),1)])):X("",!0)]),S("a",c_,[v[8]||(v[8]=V(" Get key ",-1)),A(h(qi),{class:"size-3"})])]),v[11]||(v[11]=S("p",{class:"mb-3 text-xs leading-relaxed text-muted-foreground"}," Jev reads each message before your chat model does and picks a route: run one command instantly, plan several steps, look at the image and iterate, or ask you first. It does not replace the chat model. ",-1)),S("div",d_,[A(h(ft),{modelValue:i.value,"onUpdate:modelValue":v[0]||(v[0]=T=>i.value=T),type:"password",placeholder:o.value.source==="settings"?"Replace key…":"TypeSafe API key",disabled:r.value,"aria-label":"TypeSafe API key",onKeydown:jo(vt(f,["prevent"]),["enter"])},null,8,["modelValue","placeholder","disabled","onKeydown"]),A(h(ve),{size:"sm",disabled:r.value||!i.value.trim(),onClick:f},{default:O(()=>[r.value&&i.value?(C(),G(h(lt),{key:0,class:"size-4 animate-spin"})):X("",!0),V(" "+Q(r.value&&i.value?"Checking…":"Save"),1)]),_:1},8,["disabled"]),o.value.source==="settings"?(C(),G(h(ve),{key:0,size:"icon",variant:"ghost",disabled:r.value,"aria-label":"Remove key",onClick:p},{default:O(()=>[A(h(Do),{class:"size-4 text-muted-foreground"})]),_:1},8,["disabled"])):X("",!0)]),o.value.source==="env"?(C(),M("p",f_,[...v[9]||(v[9]=[V(" Using ",-1),S("code",{class:"text-foreground"},"TYPESAFE_API_KEY",-1),V(" from the environment. A key saved here takes its place. ",-1)])])):X("",!0),o.value.hasApiKey?(C(),M("div",p_,[A(h(ve),{size:"sm",variant:"outline",disabled:r.value,onClick:g},{default:O(()=>[r.value&&!i.value?(C(),G(h(lt),{key:0,class:"size-4 animate-spin"})):X("",!0),v[10]||(v[10]=V(" Check connection ",-1))]),_:1},8,["disabled"]),(P=a.value)!=null&&P.ok?(C(),M("span",h_," Connected · "+Q(a.value.model)+" · "+Q(a.value.latencyMs)+" ms ",1)):X("",!0)])):X("",!0),l.value?(C(),M("p",m_,Q(l.value),1)):X("",!0)]),o.value.disabledByEnv?(C(),M("p",g_,[...v[12]||(v[12]=[V(" Routing is switched off by ",-1),S("code",null,"PSMCP_INTENT_ROUTER=off",-1),V(" in the environment. ",-1)])])):X("",!0),S("div",v_,[A(h(Ge),null,{default:O(()=>[...v[13]||(v[13]=[V("Auto route",-1)])]),_:1}),v[16]||(v[16]=S("p",{class:"text-xs text-muted-foreground"}," Let Jev choose the route for every message. When off, the Action Plan switch in the composer decides, as before. ",-1)),S("div",y_,[A(h(ve),{size:"sm",variant:o.value.enabled&&o.value.hasApiKey?"default":"outline",disabled:!c.value,onClick:v[1]||(v[1]=T=>m(!0))},{default:O(()=>[...v[14]||(v[14]=[V(" On ",-1)])]),_:1},8,["variant","disabled"]),A(h(ve),{size:"sm",variant:!o.value.enabled||!o.value.hasApiKey?"default":"outline",disabled:!c.value,onClick:v[2]||(v[2]=T=>m(!1))},{default:O(()=>[...v[15]||(v[15]=[V(" Off ",-1)])]),_:1},8,["variant","disabled"])])]),S("div",b_,[A(h(Ge),null,{default:O(()=>[...v[17]||(v[17]=[V("Instant commands",-1)])]),_:1}),v[20]||(v[20]=S("p",{class:"text-xs text-muted-foreground"}," Run single, safe commands (undo, remove background, blend mode, opacity…) without calling the chat model. Merge and flatten always go through a plan. ",-1)),S("div",x_,[A(h(ve),{size:"sm",variant:o.value.instant?"default":"outline",disabled:!c.value||!o.value.enabled,onClick:v[3]||(v[3]=T=>b(!0))},{default:O(()=>[...v[18]||(v[18]=[V(" On ",-1)])]),_:1},8,["variant","disabled"]),A(h(ve),{size:"sm",variant:o.value.instant?"outline":"default",disabled:!c.value||!o.value.enabled,onClick:v[4]||(v[4]=T=>b(!1))},{default:O(()=>[...v[19]||(v[19]=[V(" Off ",-1)])]),_:1},8,["variant","disabled"])])]),S("div",__,[A(h(Zm),{class:"mt-0.5 size-4 shrink-0"}),v[21]||(v[21]=S("p",null,[V(" While Auto route is on, each message you send (and what you type in the composer) is also sent to "),S("span",{class:"text-foreground"},"api.typesafe.ai"),V(" to pick the route. The key is stored on this computer in "),S("code",null,"~/.photoshop-mcp/data.db"),V(". ")],-1))])])):X("",!0)}}}),C_={class:"max-h-[90vh] w-full max-w-lg overflow-y-auto rounded-xl border border-border bg-card p-5 shadow-lg"},k_={class:"mb-4 flex items-center justify-between"},A_={class:"space-y-2"},S_={class:"flex gap-2"},E_={class:"space-y-2"},P_={class:"flex gap-2"},O_={key:0,class:"space-y-2"},T_={class:"flex gap-2"},I_={class:"space-y-2"},R_={class:"text-sm"},M_={class:"flex gap-2"},$_={key:0,class:"text-xs text-muted-foreground"},B_={key:2,class:"text-xs text-destructive"},D_={key:0,class:"flex items-center justify-center gap-2 rounded-lg border border-border py-10 text-sm text-muted-foreground"},N_={class:"mb-2 flex items-center justify-between"},L_={class:"flex items-center gap-2"},F_={class:"text-sm font-semibold"},q_={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"},z_=["href"],V_={key:0,class:"mb-3 space-y-2"},U_={class:"flex gap-2"},H_={key:1,class:"flex items-center gap-2"},j_={key:2,class:"space-y-2"},K_={key:0,class:"rounded-md bg-muted/40 p-2 text-[11px] text-muted-foreground"},W_={class:"text-foreground"},G_={class:"mt-1"},J_={class:"text-foreground"},Y_={class:"space-y-1"},X_={key:3,class:"mt-2 whitespace-pre-line text-xs text-destructive"},Z_={class:"rounded-lg border border-border p-3"},Q_={class:"mb-2 flex items-center justify-between"},ew={class:"flex items-center gap-2"},tw={class:"text-sm font-semibold"},nw={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"},ow={class:"space-y-2"},sw={class:"flex items-center gap-2"},rw=["disabled"],iw={class:"flex justify-end"},lw={key:0,class:"text-xs text-destructive"},aw={class:"mt-6 flex justify-end"},uw=te({__name:"SettingsDialog",props:{chatCount:{},clearingHistory:{type:Boolean},clearHistoryError:{}},emits:["close","saved","clear-history"],setup(e,{emit:t}){const n=e,o=t,{theme:s,setTheme:r}=f1(),i=D([]),l=D(!0),a=D({}),c=D({}),u=D({}),d=D({}),f=D(!1),p=D(null),g=D(!1),m=D(!1),b=D(!1),x=D(!1),v={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"}},P=D(null),T=D(""),K=D(""),H=D(""),R=D("openai"),J=D(""),oe=D(""),j=D(!1),L=D(null);async function $(){l.value=!0;try{const[E,k]=await Promise.all([nl(),n1()]);i.value=E,P.value=k;for(const ne of i.value)ne.cliPath&&(c.value[ne.id]=ne.cliPath);k&&(T.value=k.name,K.value=k.baseUrl,R.value=k.apiFormat,J.value=k.models.map(ne=>ne.id).join(", "),oe.value=k.websiteUrl,H.value=""),g.value=await Ad();const U=await us();b.value=U.betaTelemetryOptIn}finally{l.value=!1}}tt($);async function I(E,k){if(E.authMethod!==k){d.value[E.id]=null,u.value[E.id]=!0;try{await hd(E.id,k),await $(),o("saved")}catch(U){d.value[E.id]=U.message}finally{u.value[E.id]=!1}}}async function se(E){var U;const k=(U=a.value[E.id])==null?void 0:U.trim();if(k){d.value[E.id]=null,u.value[E.id]=!0;try{const ne=await fd(E.id,k);if(!ne.ok){d.value[E.id]=ne.error||"Invalid key";return}await pd(E.id,k),a.value[E.id]="",await $(),o("saved")}catch(ne){d.value[E.id]=ne.message}finally{u.value[E.id]=!1}}}async function me(E){u.value[E.id]=!0;try{await t1(E.id),await $(),o("saved")}finally{u.value[E.id]=!1}}async function W(E){var k;d.value[E.id]=null,u.value[E.id]=!0;try{const U=(k=c.value[E.id])==null?void 0:k.trim();U&&await gd(E.id,U);const ne=await md(E.id);if(!ne.ok){d.value[E.id]=Sd(ne.error,E.id,ne.detail);return}await $(),o("saved")}catch(U){d.value[E.id]=U.message}finally{u.value[E.id]=!1}}function de(E){return E.supportedAuthMethods.includes("cli_account")}function ae(E){return E.cliBinaryName?`/usr/local/bin/${E.cliBinaryName}`:"Optional custom path"}function Ce(){n.chatCount===0||n.clearingHistory||(p.value=null,f.value=!0)}function nt(){f.value=!1}async function Be(E){if(!(g.value===E||m.value)){m.value=!0,p.value=null;try{await T1(!E),g.value=E,E||(b.value=!1)}catch(k){p.value=k.message}finally{m.value=!1}}}async function Ue(E){if(!(!g.value||b.value===E||x.value)){x.value=!0,p.value=null;try{await dd(E),b.value=E,await Wn()}catch(k){p.value=k.message}finally{x.value=!1}}}function jt(E){r(E),Wn()}function mn(){f.value=!1,o("clear-history")}async function Kt(){if(!T.value.trim()||!K.value.trim()||!H.value.trim()){L.value="Name, Base URL, and API Key are required.";return}const E=J.value.split(",").map(k=>k.trim()).filter(Boolean).map(k=>({id:k,label:k}));if(!E.length){L.value="At least one model is required.";return}L.value=null,j.value=!0;try{const k=await yd({baseUrl:K.value.trim(),apiKey:H.value.trim(),apiFormat:R.value});if(!k.ok){L.value=k.error||"Validation failed.";return}await vd({name:T.value.trim(),websiteUrl:oe.value.trim(),apiKey:H.value.trim(),baseUrl:K.value.trim(),apiFormat:R.value,models:E,defaultModel:E[0].id}),H.value="",await $(),o("saved")}catch(k){L.value=k.message}finally{j.value=!1}}async function ct(){j.value=!0;try{await o1(),P.value=null,T.value="",K.value="",H.value="",J.value="",oe.value="",await $(),o("saved")}finally{j.value=!1}}return Oe(()=>n.clearHistoryError,E=>{E&&(p.value=E)}),(E,k)=>(C(),M("div",{class:"fixed inset-0 z-50 flex items-center justify-center bg-background/70 p-4 backdrop-blur",onClick:k[15]||(k[15]=vt(U=>o("close"),["self"]))},[S("div",C_,[S("div",k_,[k[16]||(k[16]=S("h2",{class:"text-base font-semibold"},"Settings",-1)),A(h(ve),{variant:"ghost",size:"icon",onClick:k[0]||(k[0]=U=>o("close"))},{default:O(()=>[A(h(dr),{class:"size-4"})]),_:1})]),A(h(t_),{"default-value":"general"},{default:O(()=>[A(h(n_),{class:"mb-4 grid w-full grid-cols-3"},{default:O(()=>[A(h(Yr),{value:"general"},{default:O(()=>[...k[17]||(k[17]=[V("General",-1)])]),_:1}),A(h(Yr),{value:"providers"},{default:O(()=>[...k[18]||(k[18]=[V("Providers",-1)])]),_:1}),A(h(Yr),{value:"routing"},{default:O(()=>[...k[19]||(k[19]=[V("Routing",-1)])]),_:1})]),_:1}),A(h(Jr),{value:"general",class:"space-y-6"},{default:O(()=>[S("div",A_,[A(h(Ge),null,{default:O(()=>[...k[20]||(k[20]=[V("Theme",-1)])]),_:1}),S("div",S_,[A(h(ve),{size:"sm",variant:h(s)==="light"?"default":"outline",onClick:k[1]||(k[1]=U=>jt("light"))},{default:O(()=>[A(h(tg),{class:"size-4"}),k[21]||(k[21]=V(" Light ",-1))]),_:1},8,["variant"]),A(h(ve),{size:"sm",variant:h(s)==="dark"?"default":"outline",onClick:k[2]||(k[2]=U=>jt("dark"))},{default:O(()=>[A(h(Wm),{class:"size-4"}),k[22]||(k[22]=V(" Dark ",-1))]),_:1},8,["variant"])])]),S("div",E_,[A(h(Ge),null,{default:O(()=>[...k[23]||(k[23]=[V("Privacy mode",-1)])]),_:1}),k[26]||(k[26]=S("p",{class:"text-xs text-muted-foreground"}," When on, anonymous usage analytics are disabled. No API keys, chat content, or account identifiers are collected. ",-1)),S("div",P_,[A(h(ve),{size:"sm",variant:g.value?"outline":"default",disabled:m.value,onClick:k[3]||(k[3]=U=>Be(!1))},{default:O(()=>[...k[24]||(k[24]=[V(" On ",-1)])]),_:1},8,["variant","disabled"]),A(h(ve),{size:"sm",variant:g.value?"default":"outline",disabled:m.value,onClick:k[4]||(k[4]=U=>Be(!0))},{default:O(()=>[...k[25]||(k[25]=[V(" Off ",-1)])]),_:1},8,["variant","disabled"])])]),g.value?(C(),M("div",O_,[A(h(Ge),null,{default:O(()=>[...k[27]||(k[27]=[V("Beta team content sharing",-1)])]),_:1}),k[30]||(k[30]=S("p",{class:"text-xs text-muted-foreground"}," When enabled, prompts, AI responses, reasoning, and tool names are shared to help improve the product. Tool arguments, results, and file paths are never included. ",-1)),S("div",T_,[A(h(ve),{size:"sm",variant:b.value?"default":"outline",disabled:x.value,onClick:k[5]||(k[5]=U=>Ue(!0))},{default:O(()=>[...k[28]||(k[28]=[V(" On ",-1)])]),_:1},8,["variant","disabled"]),A(h(ve),{size:"sm",variant:b.value?"outline":"default",disabled:x.value,onClick:k[6]||(k[6]=U=>Ue(!1))},{default:O(()=>[...k[29]||(k[29]=[V(" Off ",-1)])]),_:1},8,["variant","disabled"])])])):X("",!0),S("div",I_,[A(h(Ge),null,{default:O(()=>[...k[31]||(k[31]=[V("Chat history",-1)])]),_:1}),k[34]||(k[34]=S("p",{class:"text-xs text-muted-foreground"}," Permanently delete all conversations. ",-1)),f.value?(C(),M(be,{key:0},[S("p",R_," Delete "+Q(e.chatCount)+" chat"+Q(e.chatCount===1?"":"s")+"? This cannot be undone. ",1),S("div",M_,[A(h(ve),{variant:"destructive",size:"sm",disabled:e.clearingHistory,onClick:mn},{default:O(()=>[e.clearingHistory?(C(),G(h(lt),{key:0,class:"size-4 animate-spin"})):X("",!0),V(" "+Q(e.clearingHistory?"Deleting…":"Confirm delete"),1)]),_:1},8,["disabled"]),A(h(ve),{variant:"outline",size:"sm",disabled:e.clearingHistory,onClick:nt},{default:O(()=>[...k[32]||(k[32]=[V(" Cancel ",-1)])]),_:1},8,["disabled"])])],64)):(C(),M(be,{key:1},[A(h(ve),{variant:"outline",size:"sm",class:"text-destructive hover:text-destructive",disabled:e.chatCount===0||e.clearingHistory,onClick:Ce},{default:O(()=>[A(h(Do),{class:"size-4"}),k[33]||(k[33]=V(" Clear all chats ",-1))]),_:1},8,["disabled"]),e.chatCount===0?(C(),M("p",$_," No chats to delete. ")):X("",!0)],64)),p.value?(C(),M("p",B_,Q(p.value),1)):X("",!0)])]),_:1}),A(h(Jr),{value:"providers",class:"space-y-4"},{default:O(()=>{var U,ne,ye,y,_;return[l.value?(C(),M("div",D_,[A(h(lt),{class:"size-4 animate-spin"}),k[35]||(k[35]=V(" Loading providers… ",-1))])):(C(),M(be,{key:1},[(C(!0),M(be,null,At(i.value.filter(w=>w.id!=="custom"),w=>(C(),M("div",{key:w.id,class:"rounded-lg border border-border p-3"},[S("div",N_,[S("div",L_,[A(mo,{provider:w.id,size:18},null,8,["provider"]),S("span",F_,Q(w.label),1),w.isAuthenticated?(C(),M("span",q_,[A(h(Wo),{class:"size-3"}),V(" "+Q(w.authMethod==="cli_account"?w.accountLabel||"Account connected":w.apiKeyMasked),1)])):X("",!0)]),w.authMethod==="api_key"?(C(),M("a",{key:0,href:w.apiKeyHelpUrl,target:"_blank",rel:"noreferrer",class:"inline-flex items-center gap-1 text-[11px] text-muted-foreground hover:text-foreground"},[k[36]||(k[36]=V(" Get key ",-1)),A(h(qi),{class:"size-3"})],8,z_)):X("",!0)]),de(w)?(C(),M("div",V_,[A(h(Ge),{class:"text-xs text-muted-foreground"},{default:O(()=>[...k[37]||(k[37]=[V("Authentication",-1)])]),_:1}),S("div",U_,[A(h(ve),{size:"sm",variant:w.authMethod==="api_key"?"default":"outline",disabled:u.value[w.id],onClick:B=>I(w,"api_key")},{default:O(()=>[...k[38]||(k[38]=[V(" API key ",-1)])]),_:1},8,["variant","disabled","onClick"]),A(h(ve),{size:"sm",variant:w.authMethod==="cli_account"?"default":"outline",disabled:u.value[w.id],onClick:B=>I(w,"cli_account")},{default:O(()=>[...k[39]||(k[39]=[V(" Uses your account ",-1)])]),_:1},8,["variant","disabled","onClick"])])])):X("",!0),w.authMethod==="api_key"?(C(),M("div",H_,[A(h(ft),{modelValue:a.value[w.id],"onUpdate:modelValue":B=>a.value[w.id]=B,type:"password",placeholder:w.hasApiKey?"Replace key…":w.apiKeyHint,disabled:u.value[w.id]},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled"]),A(h(ve),{size:"sm",disabled:u.value[w.id]||!a.value[w.id],onClick:B=>se(w)},{default:O(()=>[u.value[w.id]?(C(),G(h(lt),{key:0,class:"size-4 animate-spin"})):X("",!0),V(" "+Q(u.value[w.id]?"…":"Save"),1)]),_:2},1032,["disabled","onClick"]),w.hasApiKey?(C(),G(h(ve),{key:0,size:"icon",variant:"ghost",disabled:u.value[w.id],onClick:B=>me(w)},{default:O(()=>[A(h(Do),{class:"size-4 text-muted-foreground"})]),_:1},8,["disabled","onClick"])):X("",!0)])):(C(),M("div",j_,[v[w.id]?(C(),M("div",K_,[S("p",null,[k[40]||(k[40]=V(" Install: ",-1)),S("code",W_,Q(v[w.id].install),1)]),S("p",G_,[k[41]||(k[41]=V(" Login: ",-1)),S("code",J_,Q(v[w.id].login),1)])])):X("",!0),S("div",Y_,[A(h(Ge),{class:"text-xs text-muted-foreground"},{default:O(()=>[...k[42]||(k[42]=[V("CLI path (optional)",-1)])]),_:1}),A(h(ft),{modelValue:c.value[w.id],"onUpdate:modelValue":B=>c.value[w.id]=B,placeholder:ae(w),disabled:u.value[w.id]},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled"])]),A(h(ve),{size:"sm",disabled:u.value[w.id],onClick:B=>W(w)},{default:O(()=>[u.value[w.id]?(C(),G(h(lt),{key:0,class:"size-4 animate-spin"})):X("",!0),V(" "+Q(u.value[w.id]?"Checking…":"Check connection"),1)]),_:2},1032,["disabled","onClick"])])),d.value[w.id]?(C(),M("p",X_,Q(d.value[w.id]),1)):X("",!0)]))),128)),S("div",Z_,[S("div",Q_,[S("div",ew,[A(mo,{provider:"custom",size:18}),S("span",tw,Q(((U=P.value)==null?void 0:U.name)||"Custom"),1),(ne=P.value)!=null&&ne.apiKeyPresent?(C(),M("span",nw,[A(h(Wo),{class:"size-3"}),V(" "+Q((ye=P.value)==null?void 0:ye.apiKey),1)])):X("",!0)]),(y=P.value)!=null&&y.apiKeyPresent?(C(),G(h(ve),{key:0,size:"icon",variant:"ghost",disabled:j.value,onClick:ct},{default:O(()=>[A(h(Do),{class:"size-4 text-muted-foreground"})]),_:1},8,["disabled"])):X("",!0)]),S("div",ow,[S("div",sw,[A(h(ft),{modelValue:T.value,"onUpdate:modelValue":k[7]||(k[7]=w=>T.value=w),placeholder:"Provider name",disabled:j.value,class:"flex-1"},null,8,["modelValue","disabled"]),ns(S("select",{"onUpdate:modelValue":k[8]||(k[8]=w=>R.value=w),class:"flex h-9 rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm",disabled:j.value},[...k[43]||(k[43]=[S("option",{value:"openai"},"OpenAI",-1),S("option",{value:"anthropic"},"Anthropic",-1)])],8,rw),[[Ni,R.value]])]),A(h(ft),{modelValue:K.value,"onUpdate:modelValue":k[9]||(k[9]=w=>K.value=w),placeholder:"Base URL (e.g. https://api.example.com/v1)",disabled:j.value},null,8,["modelValue","disabled"]),A(h(ft),{modelValue:oe.value,"onUpdate:modelValue":k[10]||(k[10]=w=>oe.value=w),placeholder:"Website URL (optional)",disabled:j.value},null,8,["modelValue","disabled"]),A(h(ft),{modelValue:H.value,"onUpdate:modelValue":k[11]||(k[11]=w=>H.value=w),type:"password",placeholder:(_=P.value)!=null&&_.apiKeyPresent?"Replace key…":"API key",disabled:j.value},null,8,["modelValue","placeholder","disabled"]),A(h(ft),{modelValue:J.value,"onUpdate:modelValue":k[12]||(k[12]=w=>J.value=w),placeholder:"Models (comma-separated, e.g. deepseek-chat, deepseek-reasoner)",disabled:j.value},null,8,["modelValue","disabled"]),S("div",iw,[A(h(ve),{size:"sm",disabled:j.value||!T.value||!K.value||!H.value||!J.value,onClick:Kt},{default:O(()=>[j.value?(C(),G(h(lt),{key:0,class:"size-4 animate-spin"})):X("",!0),V(" "+Q(j.value?"…":"Save"),1)]),_:1},8,["disabled"])]),L.value?(C(),M("p",lw,Q(L.value),1)):X("",!0)])])],64))]}),_:1}),A(h(Jr),{value:"routing"},{default:O(()=>[A(w_,{onSaved:k[13]||(k[13]=U=>o("saved"))})]),_:1})]),_:1}),S("div",aw,[A(h(ve),{onClick:k[14]||(k[14]=U=>o("close"))},{default:O(()=>[...k[44]||(k[44]=[V("Done",-1)])]),_:1})])])]))}}),cw={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 dw(){const e=D([]),t=D(null),n=an([]),o=D(!1),s=D(null);let r=null,i=null;const l=q(()=>{var I,se,me;const $={...cw};for(const W of n)W.role==="assistant"&&(!W.usage&&!W.cost||($.assistantTurns+=1,W.cost&&($.pricedTurns+=1,$.totalUsd+=W.cost.totalUsd,$.inputUsd+=W.cost.inputUsd,$.outputUsd+=W.cost.outputUsd,$.cachedReadUsd+=W.cost.cachedReadUsd,$.cachedWriteUsd+=W.cost.cachedWriteUsd),W.usage&&($.totalTokens+=W.usage.totalTokens??0,$.inputTokens+=W.usage.inputTokens??0,$.outputTokens+=W.usage.outputTokens??0,$.cachedReadTokens+=((I=W.usage.inputTokenDetails)==null?void 0:I.cacheReadTokens)??0,$.cachedWriteTokens+=((se=W.usage.inputTokenDetails)==null?void 0:se.cacheWriteTokens)??0,$.reasoningTokens+=((me=W.usage.outputTokenDetails)==null?void 0:me.reasoningTokens)??0)));return $});async function a(){e.value=await s1()}async function c($){t.value=$,n.splice(0,n.length),s.value=null;const I=await i1($);for(const se of I.messages)n.push({id:se.id,role:se.role,text:se.content.text,reasoning:se.content.reasoning,toolCalls:se.content.toolCalls??[],plan:se.content.plan,route:se.content.route,usage:se.content.usage,cost:se.content.cost,provider:se.content.provider,model:se.content.model,createdAt:se.createdAt})}async function u($){const I=await r1($);return e.value=[I,...e.value],t.value=I.id,n.splice(0,n.length),s.value=null,I}async function d($){await Ba($),e.value=e.value.filter(I=>I.id!==$),t.value===$&&(t.value=null,n.splice(0,n.length))}async function f(){const $=e.value.map(I=>I.id);$.length!==0&&(await Promise.all($.map(Ba)),e.value=[],t.value=null,n.splice(0,n.length),s.value=null)}async function p($,I){await l1($,I);const se=e.value.findIndex(me=>me.id===$);se!==-1&&(e.value[se]={...e.value[se],title:I})}function g(){const $=n[n.length-1];if($&&$.role==="assistant")return $;const I=e.value.find(me=>me.id===t.value),se={id:crypto.randomUUID(),role:"assistant",text:"",toolCalls:[],isStreaming:!0,provider:I==null?void 0:I.provider,model:I==null?void 0:I.model,createdAt:Date.now()};return n.push(se),se}let m=null,b="",x="",v=!1;function P(){v=!1,m&&(b&&(m.text+=b,b=""),x&&(m.reasoning=(m.reasoning??"")+x,x=""))}function T(){v||(v=!0,requestAnimationFrame(P))}function K($){b+=$,T()}function H($){x+=$,T()}function R(){P(),m&&(m.isStreaming=!1,m.activity=void 0,m.planPartial=!1),m=null,b="",x=""}function J($){for(let I=n.length-1;I>=0;I--){const se=n[I].toolCalls.find(me=>me.id===$);if(se)return se}}function oe($,I){var se,me;if($==="text-delta"&&I.text)m=g(),K(I.text);else if($==="reasoning-delta"&&I.text)m=g(),H(I.text);else if($==="activity"&&I.phase){const W=g();m=W,W.activity={phase:I.phase,detail:I.detail}}else if($==="tool-call"&&I.id&&I.name){P();const W=g();m=W,W.toolCalls.push({id:I.id,name:I.name,input:I.input,status:"pending",startedAt:Date.now()})}else if($==="tool-result"&&I.id){P();const W=J(I.id);W&&(W.result={ok:!!I.ok,content:I.content??"",...(se=I.images)!=null&&se.length?{images:I.images}:{}},W.status=I.ok?"success":"error",W.durationMs=I.durationMs??(W.startedAt?Math.max(0,Date.now()-W.startedAt):void 0))}else if($==="route"){const W=g();m=W,W.route=I}else if($==="plan-partial"){const W=g();m=W,W.plan={summary:I.summary??"",steps:I.steps??[]},W.planPartial=!0}else if($==="plan"){P();const W=g();m=W,W.plan={summary:I.summary??"",steps:I.steps??[]},W.planPartial=!1}else if($==="plan-step"&&I.id&&I.status){P();const de=(me=g().plan)==null?void 0:me.steps.find(ae=>ae.id===I.id);de&&(de.status=I.status)}else if($!=="plan-repair")if($==="finish"){P();const W=g();I.usage&&(W.usage=I.usage),I.cost&&(W.cost=I.cost)}else $==="error"&&(R(),s.value=I.message??"Unknown error")}async function j($){const I=$.trim();if(!I||!t.value)return;o.value=!0,s.value=null,n.push({id:crypto.randomUUID(),role:"user",text:I,toolCalls:[],createdAt:Date.now()}),g();const se=crypto.randomUUID();r=se,i=new AbortController;try{for await(const me of u1({chatId:t.value,prompt:I,requestId:se},i.signal)){if(me.event==="done")break;oe(me.event,me.data)}a()}catch(me){me.name!=="AbortError"&&(s.value=me.message)}finally{R(),o.value=!1,r=null,i=null}}async function L(){if(r){try{await c1(r)}catch{}i==null||i.abort()}}return{chats:e,activeChatId:t,messages:n,sending:o,error:s,chatTotals:l,loadChats:a,selectChat:c,newChat:u,removeChat:d,clearAllChats:f,rename:p,send:j,abort:L}}const fw={key:1,class:"flex min-h-screen items-center justify-center p-6"},pw={class:"max-w-md rounded-lg border border-destructive/40 bg-destructive/10 p-4 text-sm text-destructive"},hw={key:4,class:"flex h-screen"},mw=te({__name:"App",setup(e){const t=D(null),n=D([]),o=D(!0),s=D("Starting…"),r=D(null),i=D(!1),l=D(!1),a=D(null),c=D(!1),u=dw(),d=Pm(),f=Em(),p=q(()=>n.value.some(R=>R.isAuthenticated));function g(){const R=d.params.id;return typeof R=="string"&&R?R:null}async function m(){const R=g();if(!R){u.activeChatId.value!==null&&(u.activeChatId.value=null,u.messages.splice(0,u.messages.length));return}if(u.activeChatId.value!==R){if(!u.chats.value.some(J=>J.id===R)){await f.replace({name:"home"});return}await u.selectChat(R)}}async function b(){try{s.value="Checking connection…";const[R,J,oe]=await Promise.all([cd(),nl(),us()]);t.value=R,n.value=J,c.value=!oe.betaTelemetryPromptAnswered,p.value&&(s.value="Loading chats…",await u.loadChats(),s.value="Preparing workspace…",await m()),await Wn(),Ps("app_loaded",{has_auth:p.value})}catch(R){r.value=R.message}finally{o.value=!1}}Oe(()=>d.params.id,()=>{p.value&&m()});function x(){c.value=!1}async function v(){if(!t.value)return;const R=await u.newChat({provider:t.value.activeProvider,model:t.value.activeModel});await f.push({name:"chat",params:{id:R.id}})}async function P(R){await f.push({name:"chat",params:{id:R}})}async function T(R){const J=u.activeChatId.value===R;await u.removeChat(R),J&&await f.replace({name:"home"})}async function K(){await b()}async function H(){if(u.chats.value.length!==0){l.value=!0,a.value=null;try{await u.clearAllChats(),await f.replace({name:"home"})}catch(R){a.value=R.message}finally{l.value=!1}}}return tt(b),(R,J)=>{var oe,j,L;return o.value?(C(),G(lg,{key:0,message:s.value},null,8,["message"])):r.value?(C(),M("div",fw,[S("div",pw,Q(r.value),1)])):c.value?(C(),G(M1,{key:2,onAnswered:x})):p.value?(C(),M("div",hw,[A(e_,{chats:h(u).chats.value,"active-chat-id":h(u).activeChatId.value,onNewChat:v,onSelect:P,onRename:J[0]||(J[0]=($,I)=>h(u).rename($,I)),onDelete:T,onOpenSettings:J[1]||(J[1]=$=>i.value=!0)},null,8,["chats","active-chat-id"]),A($2,{class:"flex-1",providers:n.value,store:h(u),"settings-open":i.value,"action-plan-beta":((oe=t.value)==null?void 0:oe.actionPlanBeta)??!0,"intent-router":((L=(j=t.value)==null?void 0:j.intentRouter)==null?void 0:L.enabled)??!1,onNewChat:v,onOpenSettings:J[2]||(J[2]=$=>i.value=!0)},null,8,["providers","store","settings-open","action-plan-beta","intent-router"]),i.value?(C(),G(uw,{key:0,"chat-count":h(u).chats.value.length,"clearing-history":l.value,"clear-history-error":a.value,onClose:J[3]||(J[3]=$=>i.value=!1),onSaved:K,onClearHistory:H},null,8,["chat-count","clearing-history","clear-history-error"])):X("",!0)])):(C(),G(hb,{key:3,onSaved:b}))}}}),qa={render:()=>null},gw=[{path:"/",name:"home",component:qa},{path:"/c/:id",name:"chat",component:qa}],vw=Sm({history:sm(),routes:gw});xd(ol());const yw=new FontFace("Source Sans 3 Variable",`url(${xh}) format('woff2-variations')`,{style:"normal",weight:"200 900",display:"swap"});yw.load().then(e=>document.fonts.add(e)).catch(()=>{});async function bw(){await P1(),vh(mw).use(vw).mount("#app")}bw();