@modelcontextprotocol/server-basic-vue 1.2.2 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mcp-app.html CHANGED
@@ -9,21 +9,21 @@
9
9
  * @vue/shared v3.5.27
10
10
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
11
11
  * @license MIT
12
- **/function is(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const te={},qt=[],nt=()=>{},ci=()=>!1,ao=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),as=e=>e.startsWith("onUpdate:"),ye=Object.assign,cs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yc=Object.prototype.hasOwnProperty,G=(e,t)=>yc.call(e,t),F=Array.isArray,Lt=e=>co(e)==="[object Map]",li=e=>co(e)==="[object Set]",D=e=>typeof e=="function",_e=e=>typeof e=="string",wt=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",ui=e=>(de(e)||D(e))&&D(e.then)&&D(e.catch),fi=Object.prototype.toString,co=e=>fi.call(e),wc=e=>co(e).slice(8,-1),di=e=>co(e)==="[object Object]",ls=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ln=is(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),lo=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Sc=/-\w/g,_t=lo(e=>e.replace(Sc,t=>t.slice(1).toUpperCase())),kc=/\B([A-Z])/g,Ot=lo(e=>e.replace(kc,"-$1").toLowerCase()),hi=lo(e=>e.charAt(0).toUpperCase()+e.slice(1)),Io=lo(e=>e?`on${hi(e)}`:""),gt=(e,t)=>!Object.is(e,t),Jn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},pi=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},us=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let cr;const uo=()=>cr||(cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function fo(e){if(F(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],s=_e(o)?Rc(o):fo(o);if(s)for(const r in s)t[r]=s[r]}return t}else if(_e(e)||de(e))return e}const Tc=/;(?![^(]*\))/g,xc=/:([^]+)/,zc=/\/\*[^]*?\*\//g;function Rc(e){const t={};return e.replace(zc,"").split(Tc).forEach(n=>{if(n){const o=n.split(xc);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function fs(e){let t="";if(_e(e))t=e;else if(F(e))for(let n=0;n<e.length;n++){const o=fs(e[n]);o&&(t+=o+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ic="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Pc=is(Ic);function mi(e){return!!e||e===""}const gi=e=>!!(e&&e.__v_isRef===!0),_i=e=>_e(e)?e:e==null?"":F(e)||de(e)&&(e.toString===fi||!D(e.toString))?gi(e)?_i(e.value):JSON.stringify(e,bi,2):String(e),bi=(e,t)=>gi(t)?bi(e,t.value):Lt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s],r)=>(n[Po(o,r)+" =>"]=s,n),{})}:li(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Po(n))}:wt(t)?Po(t):de(t)&&!F(t)&&!di(t)?String(t):t,Po=(e,t="")=>{var n;return wt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
12
+ **/function is(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const te={},Ft=[],nt=()=>{},ci=()=>!1,ao=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),as=e=>e.startsWith("onUpdate:"),ye=Object.assign,cs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yc=Object.prototype.hasOwnProperty,G=(e,t)=>yc.call(e,t),q=Array.isArray,Lt=e=>co(e)==="[object Map]",li=e=>co(e)==="[object Set]",D=e=>typeof e=="function",_e=e=>typeof e=="string",wt=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",ui=e=>(de(e)||D(e))&&D(e.then)&&D(e.catch),fi=Object.prototype.toString,co=e=>fi.call(e),wc=e=>co(e).slice(8,-1),di=e=>co(e)==="[object Object]",ls=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ln=is(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),lo=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Sc=/-\w/g,_t=lo(e=>e.replace(Sc,t=>t.slice(1).toUpperCase())),kc=/\B([A-Z])/g,Ot=lo(e=>e.replace(kc,"-$1").toLowerCase()),hi=lo(e=>e.charAt(0).toUpperCase()+e.slice(1)),Io=lo(e=>e?`on${hi(e)}`:""),gt=(e,t)=>!Object.is(e,t),Jn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},pi=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},us=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let cr;const uo=()=>cr||(cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function fo(e){if(q(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],s=_e(o)?Rc(o):fo(o);if(s)for(const r in s)t[r]=s[r]}return t}else if(_e(e)||de(e))return e}const Tc=/;(?![^(]*\))/g,xc=/:([^]+)/,zc=/\/\*[^]*?\*\//g;function Rc(e){const t={};return e.replace(zc,"").split(Tc).forEach(n=>{if(n){const o=n.split(xc);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function fs(e){let t="";if(_e(e))t=e;else if(q(e))for(let n=0;n<e.length;n++){const o=fs(e[n]);o&&(t+=o+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ic="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Pc=is(Ic);function mi(e){return!!e||e===""}const gi=e=>!!(e&&e.__v_isRef===!0),_i=e=>_e(e)?e:e==null?"":q(e)||de(e)&&(e.toString===fi||!D(e.toString))?gi(e)?_i(e.value):JSON.stringify(e,bi,2):String(e),bi=(e,t)=>gi(t)?bi(e,t.value):Lt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s],r)=>(n[Po(o,r)+" =>"]=s,n),{})}:li(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Po(n))}:wt(t)?Po(t):de(t)&&!q(t)&&!di(t)?String(t):t,Po=(e,t="")=>{var n;return wt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
13
13
  * @vue/reactivity v3.5.27
14
14
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
15
15
  * @license MIT
16
- **/let Ne;class Ec{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ne,!t&&Ne&&(this.index=(Ne.scopes||(Ne.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ne;try{return Ne=this,t()}finally{Ne=n}}}on(){++this._on===1&&(this.prevScope=Ne,Ne=this)}off(){this._on>0&&--this._on===0&&(Ne=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(this.effects.length=0,n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function $c(){return Ne}let re;const Eo=new WeakSet;class vi{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,Ne&&Ne.active&&Ne.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Eo.has(this)&&(Eo.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||wi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,lr(this),Si(this);const t=re,n=Je;re=this,Je=!0;try{return this.fn()}finally{ki(this),re=t,Je=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ps(t);this.deps=this.depsTail=void 0,lr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Eo.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ho(this)&&this.run()}get dirty(){return Ho(this)}}let yi=0,un,fn;function wi(e,t=!1){if(e.flags|=8,t){e.next=fn,fn=e;return}e.next=un,un=e}function ds(){yi++}function hs(){if(--yi>0)return;if(fn){let t=fn;for(fn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;un;){let t=un;for(un=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 Si(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ki(e){let t,n=e.depsTail,o=n;for(;o;){const s=o.prevDep;o.version===-1?(o===n&&(n=s),ps(o),Cc(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=n}function Ho(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ti(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ti(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===gn)||(e.globalVersion=gn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ho(e))))return;e.flags|=2;const t=e.dep,n=re,o=Je;re=e,Je=!0;try{Si(e);const s=e.fn(e._value);(t.version===0||gt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{re=n,Je=o,ki(e),e.flags&=-3}}function ps(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)ps(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Cc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Je=!0;const xi=[];function lt(){xi.push(Je),Je=!1}function ut(){const e=xi.pop();Je=e===void 0?!0:e}function lr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=re;re=void 0;try{t()}finally{re=n}}}let gn=0;class Oc{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 ms{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||!Je||re===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==re)n=this.activeLink=new Oc(re,this),re.deps?(n.prevDep=re.depsTail,re.depsTail.nextDep=n,re.depsTail=n):re.deps=re.depsTail=n,zi(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++,gn++,this.notify(t)}notify(t){ds();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{hs()}}}function zi(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)zi(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Vo=new WeakMap,$t=Symbol(""),Jo=Symbol(""),_n=Symbol("");function xe(e,t,n){if(Je&&re){let o=Vo.get(e);o||Vo.set(e,o=new Map);let s=o.get(n);s||(o.set(n,s=new ms),s.map=o,s.key=n),s.track()}}function at(e,t,n,o,s,r){const i=Vo.get(e);if(!i){gn++;return}const a=c=>{c&&c.trigger()};if(ds(),t==="clear")i.forEach(a);else{const c=F(e),u=c&&ls(n);if(c&&n==="length"){const l=Number(o);i.forEach((d,p)=>{(p==="length"||p===_n||!wt(p)&&p>=l)&&a(d)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(_n)),t){case"add":c?u&&a(i.get("length")):(a(i.get($t)),Lt(e)&&a(i.get(Jo)));break;case"delete":c||(a(i.get($t)),Lt(e)&&a(i.get(Jo)));break;case"set":Lt(e)&&a(i.get($t));break}}hs()}function At(e){const t=K(e);return t===e?t:(xe(t,"iterate",_n),Be(e)?t:t.map(ft))}function gs(e){return xe(e=K(e),"iterate",_n),e}function ht(e,t){return bt(e)?bn(Ut(e)?ft(t):t):ft(t)}const Nc={__proto__:null,[Symbol.iterator](){return $o(this,Symbol.iterator,e=>ht(this,e))},concat(...e){return At(this).concat(...e.map(t=>F(t)?At(t):t))},entries(){return $o(this,"entries",e=>(e[1]=ht(this,e[1]),e))},every(e,t){return rt(this,"every",e,t,void 0,arguments)},filter(e,t){return rt(this,"filter",e,t,n=>n.map(o=>ht(this,o)),arguments)},find(e,t){return rt(this,"find",e,t,n=>ht(this,n),arguments)},findIndex(e,t){return rt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return rt(this,"findLast",e,t,n=>ht(this,n),arguments)},findLastIndex(e,t){return rt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return rt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Co(this,"includes",e)},indexOf(...e){return Co(this,"indexOf",e)},join(e){return At(this).join(e)},lastIndexOf(...e){return Co(this,"lastIndexOf",e)},map(e,t){return rt(this,"map",e,t,void 0,arguments)},pop(){return sn(this,"pop")},push(...e){return sn(this,"push",e)},reduce(e,...t){return ur(this,"reduce",e,t)},reduceRight(e,...t){return ur(this,"reduceRight",e,t)},shift(){return sn(this,"shift")},some(e,t){return rt(this,"some",e,t,void 0,arguments)},splice(...e){return sn(this,"splice",e)},toReversed(){return At(this).toReversed()},toSorted(e){return At(this).toSorted(e)},toSpliced(...e){return At(this).toSpliced(...e)},unshift(...e){return sn(this,"unshift",e)},values(){return $o(this,"values",e=>ht(this,e))}};function $o(e,t,n){const o=gs(e),s=o[t]();return o!==e&&!Be(e)&&(s._next=s.next,s.next=()=>{const r=s._next();return r.done||(r.value=n(r.value)),r}),s}const Ac=Array.prototype;function rt(e,t,n,o,s,r){const i=gs(e),a=i!==e&&!Be(e),c=i[t];if(c!==Ac[t]){const d=c.apply(e,r);return a?ft(d):d}let u=n;i!==e&&(a?u=function(d,p){return n.call(this,ht(e,d),p,e)}:n.length>2&&(u=function(d,p){return n.call(this,d,p,e)}));const l=c.call(i,u,o);return a&&s?s(l):l}function ur(e,t,n,o){const s=gs(e);let r=n;return s!==e&&(Be(e)?n.length>3&&(r=function(i,a,c){return n.call(this,i,a,c,e)}):r=function(i,a,c){return n.call(this,i,ht(e,a),c,e)}),s[t](r,...o)}function Co(e,t,n){const o=K(e);xe(o,"iterate",_n);const s=o[t](...n);return(s===-1||s===!1)&&ys(n[0])?(n[0]=K(n[0]),o[t](...n)):s}function sn(e,t,n=[]){lt(),ds();const o=K(e)[t].apply(e,n);return hs(),ut(),o}const Zc=is("__proto__,__v_isRef,__isVue"),Ri=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(wt));function Mc(e){wt(e)||(e=String(e));const t=K(this);return xe(t,"has",e),t.hasOwnProperty(e)}class Ii{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?Bc:Ci:r?$i:Ei).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const i=F(t);if(!s){let c;if(i&&(c=Nc[n]))return c;if(n==="hasOwnProperty")return Mc}const a=Reflect.get(t,n,ze(t)?t:o);if((wt(n)?Ri.has(n):Zc(n))||(s||xe(t,"get",n),r))return a;if(ze(a)){const c=i&&ls(n)?a:a.value;return s&&de(c)?Wo(c):c}return de(a)?s?Wo(a):bs(a):a}}class Pi extends Ii{constructor(t=!1){super(!1,t)}set(t,n,o,s){let r=t[n];const i=F(t)&&ls(n);if(!this._isShallow){const u=bt(r);if(!Be(o)&&!bt(o)&&(r=K(r),o=K(o)),!i&&ze(r)&&!ze(o))return u||(r.value=o),!0}const a=i?Number(n)<t.length:G(t,n),c=Reflect.set(t,n,o,ze(t)?t:s);return t===K(s)&&(a?gt(o,r)&&at(t,"set",n,o):at(t,"add",n,o)),c}deleteProperty(t,n){const o=G(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&o&&at(t,"delete",n,void 0),s}has(t,n){const o=Reflect.has(t,n);return(!wt(n)||!Ri.has(n))&&xe(t,"has",n),o}ownKeys(t){return xe(t,"iterate",F(t)?"length":$t),Reflect.ownKeys(t)}}class jc extends Ii{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Dc=new Pi,Fc=new jc,qc=new Pi(!0);const Bo=e=>e,Dn=e=>Reflect.getPrototypeOf(e);function Lc(e,t,n){return function(...o){const s=this.__v_raw,r=K(s),i=Lt(r),a=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=s[e](...o),l=n?Bo:t?bn:ft;return!t&&xe(r,"iterate",c?Jo:$t),ye(Object.create(u),{next(){const{value:d,done:p}=u.next();return p?{value:d,done:p}:{value:a?[l(d[0]),l(d[1])]:l(d),done:p}}})}}function Fn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Uc(e,t){const n={get(s){const r=this.__v_raw,i=K(r),a=K(s);e||(gt(s,a)&&xe(i,"get",s),xe(i,"get",a));const{has:c}=Dn(i),u=t?Bo:e?bn:ft;if(c.call(i,s))return u(r.get(s));if(c.call(i,a))return u(r.get(a));r!==i&&r.get(s)},get size(){const s=this.__v_raw;return!e&&xe(K(s),"iterate",$t),s.size},has(s){const r=this.__v_raw,i=K(r),a=K(s);return e||(gt(s,a)&&xe(i,"has",s),xe(i,"has",a)),s===a?r.has(s):r.has(s)||r.has(a)},forEach(s,r){const i=this,a=i.__v_raw,c=K(a),u=t?Bo:e?bn:ft;return!e&&xe(c,"iterate",$t),a.forEach((l,d)=>s.call(r,u(l),u(d),i))}};return ye(n,e?{add:Fn("add"),set:Fn("set"),delete:Fn("delete"),clear:Fn("clear")}:{add(s){!t&&!Be(s)&&!bt(s)&&(s=K(s));const r=K(this);return Dn(r).has.call(r,s)||(r.add(s),at(r,"add",s,s)),this},set(s,r){!t&&!Be(r)&&!bt(r)&&(r=K(r));const i=K(this),{has:a,get:c}=Dn(i);let u=a.call(i,s);u||(s=K(s),u=a.call(i,s));const l=c.call(i,s);return i.set(s,r),u?gt(r,l)&&at(i,"set",s,r):at(i,"add",s,r),this},delete(s){const r=K(this),{has:i,get:a}=Dn(r);let c=i.call(r,s);c||(s=K(s),c=i.call(r,s)),a&&a.call(r,s);const u=r.delete(s);return c&&at(r,"delete",s,void 0),u},clear(){const s=K(this),r=s.size!==0,i=s.clear();return r&&at(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Lc(s,e,t)}),n}function _s(e,t){const n=Uc(e,t);return(o,s,r)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(G(n,s)&&s in o?n:o,s,r)}const Hc={get:_s(!1,!1)},Vc={get:_s(!1,!0)},Jc={get:_s(!0,!1)};const Ei=new WeakMap,$i=new WeakMap,Ci=new WeakMap,Bc=new WeakMap;function Wc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Kc(e){return e.__v_skip||!Object.isExtensible(e)?0:Wc(wc(e))}function bs(e){return bt(e)?e:vs(e,!1,Dc,Hc,Ei)}function Gc(e){return vs(e,!1,qc,Vc,$i)}function Wo(e){return vs(e,!0,Fc,Jc,Ci)}function vs(e,t,n,o,s){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=Kc(e);if(r===0)return e;const i=s.get(e);if(i)return i;const a=new Proxy(e,r===2?o:n);return s.set(e,a),a}function Ut(e){return bt(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function bt(e){return!!(e&&e.__v_isReadonly)}function Be(e){return!!(e&&e.__v_isShallow)}function ys(e){return e?!!e.__v_raw:!1}function K(e){const t=e&&e.__v_raw;return t?K(t):e}function Qc(e){return!G(e,"__v_skip")&&Object.isExtensible(e)&&pi(e,"__v_skip",!0),e}const ft=e=>de(e)?bs(e):e,bn=e=>de(e)?Wo(e):e;function ze(e){return e?e.__v_isRef===!0:!1}function Zt(e){return Yc(e,!1)}function Yc(e,t){return ze(e)?e:new Xc(e,t)}class Xc{constructor(t,n){this.dep=new ms,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:K(t),this._value=n?t:ft(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||Be(t)||bt(t);t=o?t:K(t),gt(t,n)&&(this._rawValue=t,this._value=o?t:ft(t),this.dep.trigger())}}function el(e){return ze(e)?e.value:e}const tl={get:(e,t,n)=>t==="__v_raw"?e:el(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return ze(s)&&!ze(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function Oi(e){return Ut(e)?e:new Proxy(e,tl)}class nl{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ms(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gn-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 wi(this,!0),!0}get value(){const t=this.dep.track();return Ti(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ol(e,t,n=!1){let o,s;return D(e)?o=e:(o=e.get,s=e.set),new nl(o,s,n)}const qn={},Gn=new WeakMap;let Pt;function sl(e,t=!1,n=Pt){if(n){let o=Gn.get(n);o||Gn.set(n,o=[]),o.push(e)}}function rl(e,t,n=te){const{immediate:o,deep:s,once:r,scheduler:i,augmentJob:a,call:c}=n,u=C=>s?C:Be(C)||s===!1||s===0?ct(C,1):ct(C);let l,d,p,_,x=!1,z=!1;if(ze(e)?(d=()=>e.value,x=Be(e)):Ut(e)?(d=()=>u(e),x=!0):F(e)?(z=!0,x=e.some(C=>Ut(C)||Be(C)),d=()=>e.map(C=>{if(ze(C))return C.value;if(Ut(C))return u(C);if(D(C))return c?c(C,2):C()})):D(e)?t?d=c?()=>c(e,2):e:d=()=>{if(p){lt();try{p()}finally{ut()}}const C=Pt;Pt=l;try{return c?c(e,3,[_]):e(_)}finally{Pt=C}}:d=nt,t&&s){const C=d,U=s===!0?1/0:s;d=()=>ct(C(),U)}const q=$c(),Z=()=>{l.stop(),q&&q.active&&cs(q.effects,l)};if(r&&t){const C=t;t=(...U)=>{C(...U),Z()}}let A=z?new Array(e.length).fill(qn):qn;const B=C=>{if(!(!(l.flags&1)||!l.dirty&&!C))if(t){const U=l.run();if(s||x||(z?U.some((ue,V)=>gt(ue,A[V])):gt(U,A))){p&&p();const ue=Pt;Pt=l;try{const V=[U,A===qn?void 0:z&&A[0]===qn?[]:A,_];A=U,c?c(t,3,V):t(...V)}finally{Pt=ue}}}else l.run()};return a&&a(B),l=new vi(d),l.scheduler=i?()=>i(B,!1):B,_=C=>sl(C,!1,l),p=l.onStop=()=>{const C=Gn.get(l);if(C){if(c)c(C,4);else for(const U of C)U();Gn.delete(l)}},t?o?B(!0):A=l.run():i?i(B.bind(null,!0),!0):l.run(),Z.pause=l.pause.bind(l),Z.resume=l.resume.bind(l),Z.stop=Z,Z}function ct(e,t=1/0,n){if(t<=0||!de(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ze(e))ct(e.value,t,n);else if(F(e))for(let o=0;o<e.length;o++)ct(e[o],t,n);else if(li(e)||Lt(e))e.forEach(o=>{ct(o,t,n)});else if(di(e)){for(const o in e)ct(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&ct(e[o],t,n)}return e}/**
16
+ **/let Ne;class Ec{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ne,!t&&Ne&&(this.index=(Ne.scopes||(Ne.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ne;try{return Ne=this,t()}finally{Ne=n}}}on(){++this._on===1&&(this.prevScope=Ne,Ne=this)}off(){this._on>0&&--this._on===0&&(Ne=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(this.effects.length=0,n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function $c(){return Ne}let re;const Eo=new WeakSet;class vi{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,Ne&&Ne.active&&Ne.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Eo.has(this)&&(Eo.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||wi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,lr(this),Si(this);const t=re,n=Je;re=this,Je=!0;try{return this.fn()}finally{ki(this),re=t,Je=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ps(t);this.deps=this.depsTail=void 0,lr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Eo.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ho(this)&&this.run()}get dirty(){return Ho(this)}}let yi=0,un,fn;function wi(e,t=!1){if(e.flags|=8,t){e.next=fn,fn=e;return}e.next=un,un=e}function ds(){yi++}function hs(){if(--yi>0)return;if(fn){let t=fn;for(fn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;un;){let t=un;for(un=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 Si(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ki(e){let t,n=e.depsTail,o=n;for(;o;){const s=o.prevDep;o.version===-1?(o===n&&(n=s),ps(o),Cc(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=n}function Ho(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ti(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ti(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===gn)||(e.globalVersion=gn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ho(e))))return;e.flags|=2;const t=e.dep,n=re,o=Je;re=e,Je=!0;try{Si(e);const s=e.fn(e._value);(t.version===0||gt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{re=n,Je=o,ki(e),e.flags&=-3}}function ps(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)ps(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Cc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Je=!0;const xi=[];function lt(){xi.push(Je),Je=!1}function ut(){const e=xi.pop();Je=e===void 0?!0:e}function lr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=re;re=void 0;try{t()}finally{re=n}}}let gn=0;class Oc{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 ms{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||!Je||re===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==re)n=this.activeLink=new Oc(re,this),re.deps?(n.prevDep=re.depsTail,re.depsTail.nextDep=n,re.depsTail=n):re.deps=re.depsTail=n,zi(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++,gn++,this.notify(t)}notify(t){ds();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{hs()}}}function zi(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)zi(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Vo=new WeakMap,$t=Symbol(""),Jo=Symbol(""),_n=Symbol("");function xe(e,t,n){if(Je&&re){let o=Vo.get(e);o||Vo.set(e,o=new Map);let s=o.get(n);s||(o.set(n,s=new ms),s.map=o,s.key=n),s.track()}}function at(e,t,n,o,s,r){const i=Vo.get(e);if(!i){gn++;return}const a=c=>{c&&c.trigger()};if(ds(),t==="clear")i.forEach(a);else{const c=q(e),u=c&&ls(n);if(c&&n==="length"){const l=Number(o);i.forEach((d,p)=>{(p==="length"||p===_n||!wt(p)&&p>=l)&&a(d)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(_n)),t){case"add":c?u&&a(i.get("length")):(a(i.get($t)),Lt(e)&&a(i.get(Jo)));break;case"delete":c||(a(i.get($t)),Lt(e)&&a(i.get(Jo)));break;case"set":Lt(e)&&a(i.get($t));break}}hs()}function At(e){const t=K(e);return t===e?t:(xe(t,"iterate",_n),Be(e)?t:t.map(ft))}function gs(e){return xe(e=K(e),"iterate",_n),e}function ht(e,t){return bt(e)?bn(Ut(e)?ft(t):t):ft(t)}const Nc={__proto__:null,[Symbol.iterator](){return $o(this,Symbol.iterator,e=>ht(this,e))},concat(...e){return At(this).concat(...e.map(t=>q(t)?At(t):t))},entries(){return $o(this,"entries",e=>(e[1]=ht(this,e[1]),e))},every(e,t){return rt(this,"every",e,t,void 0,arguments)},filter(e,t){return rt(this,"filter",e,t,n=>n.map(o=>ht(this,o)),arguments)},find(e,t){return rt(this,"find",e,t,n=>ht(this,n),arguments)},findIndex(e,t){return rt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return rt(this,"findLast",e,t,n=>ht(this,n),arguments)},findLastIndex(e,t){return rt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return rt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Co(this,"includes",e)},indexOf(...e){return Co(this,"indexOf",e)},join(e){return At(this).join(e)},lastIndexOf(...e){return Co(this,"lastIndexOf",e)},map(e,t){return rt(this,"map",e,t,void 0,arguments)},pop(){return sn(this,"pop")},push(...e){return sn(this,"push",e)},reduce(e,...t){return ur(this,"reduce",e,t)},reduceRight(e,...t){return ur(this,"reduceRight",e,t)},shift(){return sn(this,"shift")},some(e,t){return rt(this,"some",e,t,void 0,arguments)},splice(...e){return sn(this,"splice",e)},toReversed(){return At(this).toReversed()},toSorted(e){return At(this).toSorted(e)},toSpliced(...e){return At(this).toSpliced(...e)},unshift(...e){return sn(this,"unshift",e)},values(){return $o(this,"values",e=>ht(this,e))}};function $o(e,t,n){const o=gs(e),s=o[t]();return o!==e&&!Be(e)&&(s._next=s.next,s.next=()=>{const r=s._next();return r.done||(r.value=n(r.value)),r}),s}const Ac=Array.prototype;function rt(e,t,n,o,s,r){const i=gs(e),a=i!==e&&!Be(e),c=i[t];if(c!==Ac[t]){const d=c.apply(e,r);return a?ft(d):d}let u=n;i!==e&&(a?u=function(d,p){return n.call(this,ht(e,d),p,e)}:n.length>2&&(u=function(d,p){return n.call(this,d,p,e)}));const l=c.call(i,u,o);return a&&s?s(l):l}function ur(e,t,n,o){const s=gs(e);let r=n;return s!==e&&(Be(e)?n.length>3&&(r=function(i,a,c){return n.call(this,i,a,c,e)}):r=function(i,a,c){return n.call(this,i,ht(e,a),c,e)}),s[t](r,...o)}function Co(e,t,n){const o=K(e);xe(o,"iterate",_n);const s=o[t](...n);return(s===-1||s===!1)&&ys(n[0])?(n[0]=K(n[0]),o[t](...n)):s}function sn(e,t,n=[]){lt(),ds();const o=K(e)[t].apply(e,n);return hs(),ut(),o}const Zc=is("__proto__,__v_isRef,__isVue"),Ri=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(wt));function Mc(e){wt(e)||(e=String(e));const t=K(this);return xe(t,"has",e),t.hasOwnProperty(e)}class Ii{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?Bc:Ci:r?$i:Ei).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const i=q(t);if(!s){let c;if(i&&(c=Nc[n]))return c;if(n==="hasOwnProperty")return Mc}const a=Reflect.get(t,n,ze(t)?t:o);if((wt(n)?Ri.has(n):Zc(n))||(s||xe(t,"get",n),r))return a;if(ze(a)){const c=i&&ls(n)?a:a.value;return s&&de(c)?Wo(c):c}return de(a)?s?Wo(a):bs(a):a}}class Pi extends Ii{constructor(t=!1){super(!1,t)}set(t,n,o,s){let r=t[n];const i=q(t)&&ls(n);if(!this._isShallow){const u=bt(r);if(!Be(o)&&!bt(o)&&(r=K(r),o=K(o)),!i&&ze(r)&&!ze(o))return u||(r.value=o),!0}const a=i?Number(n)<t.length:G(t,n),c=Reflect.set(t,n,o,ze(t)?t:s);return t===K(s)&&(a?gt(o,r)&&at(t,"set",n,o):at(t,"add",n,o)),c}deleteProperty(t,n){const o=G(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&o&&at(t,"delete",n,void 0),s}has(t,n){const o=Reflect.has(t,n);return(!wt(n)||!Ri.has(n))&&xe(t,"has",n),o}ownKeys(t){return xe(t,"iterate",q(t)?"length":$t),Reflect.ownKeys(t)}}class jc extends Ii{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Dc=new Pi,qc=new jc,Fc=new Pi(!0);const Bo=e=>e,Dn=e=>Reflect.getPrototypeOf(e);function Lc(e,t,n){return function(...o){const s=this.__v_raw,r=K(s),i=Lt(r),a=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=s[e](...o),l=n?Bo:t?bn:ft;return!t&&xe(r,"iterate",c?Jo:$t),ye(Object.create(u),{next(){const{value:d,done:p}=u.next();return p?{value:d,done:p}:{value:a?[l(d[0]),l(d[1])]:l(d),done:p}}})}}function qn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Uc(e,t){const n={get(s){const r=this.__v_raw,i=K(r),a=K(s);e||(gt(s,a)&&xe(i,"get",s),xe(i,"get",a));const{has:c}=Dn(i),u=t?Bo:e?bn:ft;if(c.call(i,s))return u(r.get(s));if(c.call(i,a))return u(r.get(a));r!==i&&r.get(s)},get size(){const s=this.__v_raw;return!e&&xe(K(s),"iterate",$t),s.size},has(s){const r=this.__v_raw,i=K(r),a=K(s);return e||(gt(s,a)&&xe(i,"has",s),xe(i,"has",a)),s===a?r.has(s):r.has(s)||r.has(a)},forEach(s,r){const i=this,a=i.__v_raw,c=K(a),u=t?Bo:e?bn:ft;return!e&&xe(c,"iterate",$t),a.forEach((l,d)=>s.call(r,u(l),u(d),i))}};return ye(n,e?{add:qn("add"),set:qn("set"),delete:qn("delete"),clear:qn("clear")}:{add(s){!t&&!Be(s)&&!bt(s)&&(s=K(s));const r=K(this);return Dn(r).has.call(r,s)||(r.add(s),at(r,"add",s,s)),this},set(s,r){!t&&!Be(r)&&!bt(r)&&(r=K(r));const i=K(this),{has:a,get:c}=Dn(i);let u=a.call(i,s);u||(s=K(s),u=a.call(i,s));const l=c.call(i,s);return i.set(s,r),u?gt(r,l)&&at(i,"set",s,r):at(i,"add",s,r),this},delete(s){const r=K(this),{has:i,get:a}=Dn(r);let c=i.call(r,s);c||(s=K(s),c=i.call(r,s)),a&&a.call(r,s);const u=r.delete(s);return c&&at(r,"delete",s,void 0),u},clear(){const s=K(this),r=s.size!==0,i=s.clear();return r&&at(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Lc(s,e,t)}),n}function _s(e,t){const n=Uc(e,t);return(o,s,r)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(G(n,s)&&s in o?n:o,s,r)}const Hc={get:_s(!1,!1)},Vc={get:_s(!1,!0)},Jc={get:_s(!0,!1)};const Ei=new WeakMap,$i=new WeakMap,Ci=new WeakMap,Bc=new WeakMap;function Wc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Kc(e){return e.__v_skip||!Object.isExtensible(e)?0:Wc(wc(e))}function bs(e){return bt(e)?e:vs(e,!1,Dc,Hc,Ei)}function Gc(e){return vs(e,!1,Fc,Vc,$i)}function Wo(e){return vs(e,!0,qc,Jc,Ci)}function vs(e,t,n,o,s){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=Kc(e);if(r===0)return e;const i=s.get(e);if(i)return i;const a=new Proxy(e,r===2?o:n);return s.set(e,a),a}function Ut(e){return bt(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function bt(e){return!!(e&&e.__v_isReadonly)}function Be(e){return!!(e&&e.__v_isShallow)}function ys(e){return e?!!e.__v_raw:!1}function K(e){const t=e&&e.__v_raw;return t?K(t):e}function Qc(e){return!G(e,"__v_skip")&&Object.isExtensible(e)&&pi(e,"__v_skip",!0),e}const ft=e=>de(e)?bs(e):e,bn=e=>de(e)?Wo(e):e;function ze(e){return e?e.__v_isRef===!0:!1}function Zt(e){return Yc(e,!1)}function Yc(e,t){return ze(e)?e:new Xc(e,t)}class Xc{constructor(t,n){this.dep=new ms,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:K(t),this._value=n?t:ft(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||Be(t)||bt(t);t=o?t:K(t),gt(t,n)&&(this._rawValue=t,this._value=o?t:ft(t),this.dep.trigger())}}function el(e){return ze(e)?e.value:e}const tl={get:(e,t,n)=>t==="__v_raw"?e:el(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return ze(s)&&!ze(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function Oi(e){return Ut(e)?e:new Proxy(e,tl)}class nl{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ms(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gn-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 wi(this,!0),!0}get value(){const t=this.dep.track();return Ti(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ol(e,t,n=!1){let o,s;return D(e)?o=e:(o=e.get,s=e.set),new nl(o,s,n)}const Fn={},Gn=new WeakMap;let Pt;function sl(e,t=!1,n=Pt){if(n){let o=Gn.get(n);o||Gn.set(n,o=[]),o.push(e)}}function rl(e,t,n=te){const{immediate:o,deep:s,once:r,scheduler:i,augmentJob:a,call:c}=n,u=C=>s?C:Be(C)||s===!1||s===0?ct(C,1):ct(C);let l,d,p,_,x=!1,z=!1;if(ze(e)?(d=()=>e.value,x=Be(e)):Ut(e)?(d=()=>u(e),x=!0):q(e)?(z=!0,x=e.some(C=>Ut(C)||Be(C)),d=()=>e.map(C=>{if(ze(C))return C.value;if(Ut(C))return u(C);if(D(C))return c?c(C,2):C()})):D(e)?t?d=c?()=>c(e,2):e:d=()=>{if(p){lt();try{p()}finally{ut()}}const C=Pt;Pt=l;try{return c?c(e,3,[_]):e(_)}finally{Pt=C}}:d=nt,t&&s){const C=d,U=s===!0?1/0:s;d=()=>ct(C(),U)}const F=$c(),Z=()=>{l.stop(),F&&F.active&&cs(F.effects,l)};if(r&&t){const C=t;t=(...U)=>{C(...U),Z()}}let A=z?new Array(e.length).fill(Fn):Fn;const B=C=>{if(!(!(l.flags&1)||!l.dirty&&!C))if(t){const U=l.run();if(s||x||(z?U.some((ue,V)=>gt(ue,A[V])):gt(U,A))){p&&p();const ue=Pt;Pt=l;try{const V=[U,A===Fn?void 0:z&&A[0]===Fn?[]:A,_];A=U,c?c(t,3,V):t(...V)}finally{Pt=ue}}}else l.run()};return a&&a(B),l=new vi(d),l.scheduler=i?()=>i(B,!1):B,_=C=>sl(C,!1,l),p=l.onStop=()=>{const C=Gn.get(l);if(C){if(c)c(C,4);else for(const U of C)U();Gn.delete(l)}},t?o?B(!0):A=l.run():i?i(B.bind(null,!0),!0):l.run(),Z.pause=l.pause.bind(l),Z.resume=l.resume.bind(l),Z.stop=Z,Z}function ct(e,t=1/0,n){if(t<=0||!de(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ze(e))ct(e.value,t,n);else if(q(e))for(let o=0;o<e.length;o++)ct(e[o],t,n);else if(li(e)||Lt(e))e.forEach(o=>{ct(o,t,n)});else if(di(e)){for(const o in e)ct(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&ct(e[o],t,n)}return e}/**
17
17
  * @vue/runtime-core v3.5.27
18
18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
19
  * @license MIT
20
- **/function xn(e,t,n,o){try{return o?e(...o):e()}catch(s){ho(s,t,n)}}function ot(e,t,n,o){if(D(e)){const s=xn(e,t,n,o);return s&&ui(s)&&s.catch(r=>{ho(r,t,n)}),s}if(F(e)){const s=[];for(let r=0;r<e.length;r++)s.push(ot(e[r],t,n,o));return s}}function ho(e,t,n,o=!0){const s=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||te;if(t){let a=t.parent;const c=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const l=a.ec;if(l){for(let d=0;d<l.length;d++)if(l[d](e,c,u)===!1)return}a=a.parent}if(r){lt(),xn(r,null,10,[e,c,u]),ut();return}}il(e,n,s,o,i)}function il(e,t,n,o=!0,s=!1){if(s)throw e;console.error(e)}const Ee=[];let Xe=-1;const Ht=[];let pt=null,Mt=0;const Ni=Promise.resolve();let Qn=null;function al(e){const t=Qn||Ni;return e?t.then(this?e.bind(this):e):t}function cl(e){let t=Xe+1,n=Ee.length;for(;t<n;){const o=t+n>>>1,s=Ee[o],r=vn(s);r<e||r===e&&s.flags&2?t=o+1:n=o}return t}function ws(e){if(!(e.flags&1)){const t=vn(e),n=Ee[Ee.length-1];!n||!(e.flags&2)&&t>=vn(n)?Ee.push(e):Ee.splice(cl(t),0,e),e.flags|=1,Ai()}}function Ai(){Qn||(Qn=Ni.then(Mi))}function ll(e){F(e)?Ht.push(...e):pt&&e.id===-1?pt.splice(Mt+1,0,e):e.flags&1||(Ht.push(e),e.flags|=1),Ai()}function fr(e,t,n=Xe+1){for(;n<Ee.length;n++){const o=Ee[n];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Ee.splice(n,1),n--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function Zi(e){if(Ht.length){const t=[...new Set(Ht)].sort((n,o)=>vn(n)-vn(o));if(Ht.length=0,pt){pt.push(...t);return}for(pt=t,Mt=0;Mt<pt.length;Mt++){const n=pt[Mt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}pt=null,Mt=0}}const vn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Mi(e){try{for(Xe=0;Xe<Ee.length;Xe++){const t=Ee[Xe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),xn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Xe<Ee.length;Xe++){const t=Ee[Xe];t&&(t.flags&=-2)}Xe=-1,Ee.length=0,Zi(),Qn=null,(Ee.length||Ht.length)&&Mi()}}let Le=null,ji=null;function Yn(e){const t=Le;return Le=e,ji=e&&e.type.__scopeId||null,t}function ul(e,t=Le,n){if(!t||e._n)return e;const o=(...s)=>{o._d&&wr(-1);const r=Yn(t);let i;try{i=e(...s)}finally{Yn(r),o._d&&wr(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Oo(e,t){if(Le===null)return e;const n=_o(Le),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[r,i,a,c=te]=t[s];r&&(D(r)&&(r={mounted:r,updated:r}),r.deep&&ct(i),o.push({dir:r,instance:n,value:i,oldValue:void 0,arg:a,modifiers:c}))}return e}function zt(e,t,n,o){const s=e.dirs,r=t&&t.dirs;for(let i=0;i<s.length;i++){const a=s[i];r&&(a.oldValue=r[i].value);let c=a.dir[o];c&&(lt(),ot(c,n,8,[e.el,a,e,t]),ut())}}function fl(e,t){if($e){let n=$e.provides;const o=$e.parent&&$e.parent.provides;o===n&&(n=$e.provides=Object.create(o)),n[e]=t}}function Bn(e,t,n=!1){const o=pu();if(o||Vt){let s=Vt?Vt._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&&D(t)?t.call(o&&o.proxy):t}}const dl=Symbol.for("v-scx"),hl=()=>Bn(dl);function pl(e,t){return Ss(e,null,t)}function No(e,t,n){return Ss(e,t,n)}function Ss(e,t,n=te){const{immediate:o,deep:s,flush:r,once:i}=n,a=ye({},n),c=t&&o||!t&&r!=="post";let u;if(wn){if(r==="sync"){const _=hl();u=_.__watcherHandles||(_.__watcherHandles=[])}else if(!c){const _=()=>{};return _.stop=nt,_.resume=nt,_.pause=nt,_}}const l=$e;a.call=(_,x,z)=>ot(_,l,x,z);let d=!1;r==="post"?a.scheduler=_=>{je(_,l&&l.suspense)}:r!=="sync"&&(d=!0,a.scheduler=(_,x)=>{x?_():ws(_)}),a.augmentJob=_=>{t&&(_.flags|=4),d&&(_.flags|=2,l&&(_.id=l.uid,_.i=l))};const p=rl(e,t,a);return wn&&(u?u.push(p):c&&p()),p}function ml(e,t,n){const o=this.proxy,s=_e(e)?e.includes(".")?Di(o,e):()=>o[e]:e.bind(o,o);let r;D(t)?r=t:(r=t.handler,n=t);const i=zn(this),a=Ss(s,r.bind(o),n);return i(),a}function Di(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 gl=Symbol("_vte"),_l=e=>e.__isTeleport,bl=Symbol("_leaveCb");function ks(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ks(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function vl(e,t){return D(e)?ye({name:e.name},t,{setup:e}):e}function Fi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Xn=new WeakMap;function dn(e,t,n,o,s=!1){if(F(e)){e.forEach((x,z)=>dn(x,t&&(F(t)?t[z]:t),n,o,s));return}if(hn(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&dn(e,t,n,o.component.subTree);return}const r=o.shapeFlag&4?_o(o.component):o.el,i=s?null:r,{i:a,r:c}=e,u=t&&t.r,l=a.refs===te?a.refs={}:a.refs,d=a.setupState,p=K(d),_=d===te?ci:x=>G(p,x);if(u!=null&&u!==c){if(dr(t),_e(u))l[u]=null,_(u)&&(d[u]=null);else if(ze(u)){u.value=null;const x=t;x.k&&(l[x.k]=null)}}if(D(c))xn(c,a,12,[i,l]);else{const x=_e(c),z=ze(c);if(x||z){const q=()=>{if(e.f){const Z=x?_(c)?d[c]:l[c]:c.value;if(s)F(Z)&&cs(Z,r);else if(F(Z))Z.includes(r)||Z.push(r);else if(x)l[c]=[r],_(c)&&(d[c]=l[c]);else{const A=[r];c.value=A,e.k&&(l[e.k]=A)}}else x?(l[c]=i,_(c)&&(d[c]=i)):z&&(c.value=i,e.k&&(l[e.k]=i))};if(i){const Z=()=>{q(),Xn.delete(e)};Z.id=-1,Xn.set(e,Z),je(Z,n)}else dr(e),q()}}}function dr(e){const t=Xn.get(e);t&&(t.flags|=8,Xn.delete(e))}uo().requestIdleCallback;uo().cancelIdleCallback;const hn=e=>!!e.type.__asyncLoader,qi=e=>e.type.__isKeepAlive;function yl(e,t){Li(e,"a",t)}function wl(e,t){Li(e,"da",t)}function Li(e,t,n=$e){const o=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(po(t,o,n),n){let s=n.parent;for(;s&&s.parent;)qi(s.parent.vnode)&&Sl(o,t,n,s),s=s.parent}}function Sl(e,t,n,o){const s=po(t,e,o,!0);Hi(()=>{cs(o[t],s)},n)}function po(e,t,n=$e,o=!1){if(n){const s=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{lt();const a=zn(n),c=ot(t,n,e,i);return a(),ut(),c});return o?s.unshift(r):s.push(r),r}}const dt=e=>(t,n=$e)=>{(!wn||e==="sp")&&po(e,(...o)=>t(...o),n)},kl=dt("bm"),Ui=dt("m"),Tl=dt("bu"),xl=dt("u"),zl=dt("bum"),Hi=dt("um"),Rl=dt("sp"),Il=dt("rtg"),Pl=dt("rtc");function El(e,t=$e){po("ec",e,t)}const $l=Symbol.for("v-ndc"),Ko=e=>e?ua(e)?_o(e):Ko(e.parent):null,pn=ye(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=>Ko(e.parent),$root:e=>Ko(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ji(e),$forceUpdate:e=>e.f||(e.f=()=>{ws(e.update)}),$nextTick:e=>e.n||(e.n=al.bind(e.proxy)),$watch:e=>ml.bind(e)}),Ao=(e,t)=>e!==te&&!e.__isScriptSetup&&G(e,t),Cl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:s,props:r,accessCache:i,type:a,appContext:c}=e;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return r[t]}else{if(Ao(o,t))return i[t]=1,o[t];if(s!==te&&G(s,t))return i[t]=2,s[t];if(G(r,t))return i[t]=3,r[t];if(n!==te&&G(n,t))return i[t]=4,n[t];Go&&(i[t]=0)}}const u=pn[t];let l,d;if(u)return t==="$attrs"&&xe(e.attrs,"get",""),u(e);if((l=a.__cssModules)&&(l=l[t]))return l;if(n!==te&&G(n,t))return i[t]=4,n[t];if(d=c.config.globalProperties,G(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:s,ctx:r}=e;return Ao(s,t)?(s[t]=n,!0):o!==te&&G(o,t)?(o[t]=n,!0):G(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}},a){let c;return!!(n[a]||e!==te&&a[0]!=="$"&&G(e,a)||Ao(t,a)||G(r,a)||G(o,a)||G(pn,a)||G(s.config.globalProperties,a)||(c=i.__cssModules)&&c[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:G(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hr(e){return F(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Go=!0;function Ol(e){const t=Ji(e),n=e.proxy,o=e.ctx;Go=!1,t.beforeCreate&&pr(t.beforeCreate,e,"bc");const{data:s,computed:r,methods:i,watch:a,provide:c,inject:u,created:l,beforeMount:d,mounted:p,beforeUpdate:_,updated:x,activated:z,deactivated:q,beforeDestroy:Z,beforeUnmount:A,destroyed:B,unmounted:C,render:U,renderTracked:ue,renderTriggered:V,errorCaptured:ge,serverPrefetch:ke,expose:st,inheritAttrs:en,components:An,directives:Zn,filters:zo}=t;if(u&&Nl(u,o,null),i)for(const fe in i){const oe=i[fe];D(oe)&&(o[fe]=oe.bind(n))}if(s){const fe=s.call(n,n);de(fe)&&(e.data=bs(fe))}if(Go=!0,r)for(const fe in r){const oe=r[fe],Tt=D(oe)?oe.bind(n,n):D(oe.get)?oe.get.bind(n,n):nt,Mn=!D(oe)&&D(oe.set)?oe.set.bind(n):nt,xt=yu({get:Tt,set:Mn});Object.defineProperty(o,fe,{enumerable:!0,configurable:!0,get:()=>xt.value,set:We=>xt.value=We})}if(a)for(const fe in a)Vi(a[fe],o,n,fe);if(c){const fe=D(c)?c.call(n):c;Reflect.ownKeys(fe).forEach(oe=>{fl(oe,fe[oe])})}l&&pr(l,e,"c");function Re(fe,oe){F(oe)?oe.forEach(Tt=>fe(Tt.bind(n))):oe&&fe(oe.bind(n))}if(Re(kl,d),Re(Ui,p),Re(Tl,_),Re(xl,x),Re(yl,z),Re(wl,q),Re(El,ge),Re(Pl,ue),Re(Il,V),Re(zl,A),Re(Hi,C),Re(Rl,ke),F(st))if(st.length){const fe=e.exposed||(e.exposed={});st.forEach(oe=>{Object.defineProperty(fe,oe,{get:()=>n[oe],set:Tt=>n[oe]=Tt,enumerable:!0})})}else e.exposed||(e.exposed={});U&&e.render===nt&&(e.render=U),en!=null&&(e.inheritAttrs=en),An&&(e.components=An),Zn&&(e.directives=Zn),ke&&Fi(e)}function Nl(e,t,n=nt){F(e)&&(e=Qo(e));for(const o in e){const s=e[o];let r;de(s)?"default"in s?r=Bn(s.from||o,s.default,!0):r=Bn(s.from||o):r=Bn(s),ze(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[o]=r}}function pr(e,t,n){ot(F(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Vi(e,t,n,o){let s=o.includes(".")?Di(n,o):()=>n[o];if(_e(e)){const r=t[e];D(r)&&No(s,r)}else if(D(e))No(s,e.bind(n));else if(de(e))if(F(e))e.forEach(r=>Vi(r,t,n,o));else{const r=D(e.handler)?e.handler.bind(n):t[e.handler];D(r)&&No(s,r,e)}}function Ji(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let c;return a?c=a:!s.length&&!n&&!o?c=t:(c={},s.length&&s.forEach(u=>eo(c,u,i,!0)),eo(c,t,i)),de(t)&&r.set(t,c),c}function eo(e,t,n,o=!1){const{mixins:s,extends:r}=t;r&&eo(e,r,n,!0),s&&s.forEach(i=>eo(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const a=Al[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Al={data:mr,props:gr,emits:gr,methods:an,computed:an,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:an,directives:an,watch:Ml,provide:mr,inject:Zl};function mr(e,t){return t?e?function(){return ye(D(e)?e.call(this,this):e,D(t)?t.call(this,this):t)}:t:e}function Zl(e,t){return an(Qo(e),Qo(t))}function Qo(e){if(F(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ie(e,t){return e?[...new Set([].concat(e,t))]:t}function an(e,t){return e?ye(Object.create(null),e,t):t}function gr(e,t){return e?F(e)&&F(t)?[...new Set([...e,...t])]:ye(Object.create(null),hr(e),hr(t??{})):t}function Ml(e,t){if(!e)return t;if(!t)return e;const n=ye(Object.create(null),e);for(const o in t)n[o]=Ie(e[o],t[o]);return n}function Bi(){return{app:null,config:{isNativeTag:ci,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 jl=0;function Dl(e,t){return function(o,s=null){D(o)||(o=ye({},o)),s!=null&&!de(s)&&(s=null);const r=Bi(),i=new WeakSet,a=[];let c=!1;const u=r.app={_uid:jl++,_component:o,_props:s,_container:null,_context:r,_instance:null,version:wu,get config(){return r.config},set config(l){},use(l,...d){return i.has(l)||(l&&D(l.install)?(i.add(l),l.install(u,...d)):D(l)&&(i.add(l),l(u,...d))),u},mixin(l){return r.mixins.includes(l)||r.mixins.push(l),u},component(l,d){return d?(r.components[l]=d,u):r.components[l]},directive(l,d){return d?(r.directives[l]=d,u):r.directives[l]},mount(l,d,p){if(!c){const _=u._ceVNode||Ct(o,s);return _.appContext=r,p===!0?p="svg":p===!1&&(p=void 0),e(_,l,p),c=!0,u._container=l,l.__vue_app__=u,_o(_.component)}},onUnmount(l){a.push(l)},unmount(){c&&(ot(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(l,d){return r.provides[l]=d,u},runWithContext(l){const d=Vt;Vt=u;try{return l()}finally{Vt=d}}};return u}}let Vt=null;const Fl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${_t(t)}Modifiers`]||e[`${Ot(t)}Modifiers`];function ql(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||te;let s=n;const r=t.startsWith("update:"),i=r&&Fl(o,t.slice(7));i&&(i.trim&&(s=n.map(l=>_e(l)?l.trim():l)),i.number&&(s=n.map(us)));let a,c=o[a=Io(t)]||o[a=Io(_t(t))];!c&&r&&(c=o[a=Io(Ot(t))]),c&&ot(c,e,6,s);const u=o[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ot(u,e,6,s)}}const Ll=new WeakMap;function Wi(e,t,n=!1){const o=n?Ll:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const r=e.emits;let i={},a=!1;if(!D(e)){const c=u=>{const l=Wi(u,t,!0);l&&(a=!0,ye(i,l))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!a?(de(e)&&o.set(e,null),null):(F(r)?r.forEach(c=>i[c]=null):ye(i,r),de(e)&&o.set(e,i),i)}function mo(e,t){return!e||!ao(t)?!1:(t=t.slice(2).replace(/Once$/,""),G(e,t[0].toLowerCase()+t.slice(1))||G(e,Ot(t))||G(e,t))}function _r(e){const{type:t,vnode:n,proxy:o,withProxy:s,propsOptions:[r],slots:i,attrs:a,emit:c,render:u,renderCache:l,props:d,data:p,setupState:_,ctx:x,inheritAttrs:z}=e,q=Yn(e);let Z,A;try{if(n.shapeFlag&4){const C=s||o,U=C;Z=tt(u.call(U,C,l,d,_,p,x)),A=a}else{const C=t;Z=tt(C.length>1?C(d,{attrs:a,slots:i,emit:c}):C(d,null)),A=t.props?a:Ul(a)}}catch(C){mn.length=0,ho(C,e,1),Z=Ct(Bt)}let B=Z;if(A&&z!==!1){const C=Object.keys(A),{shapeFlag:U}=B;C.length&&U&7&&(r&&C.some(as)&&(A=Hl(A,r)),B=Wt(B,A,!1,!0))}return n.dirs&&(B=Wt(B,null,!1,!0),B.dirs=B.dirs?B.dirs.concat(n.dirs):n.dirs),n.transition&&ks(B,n.transition),Z=B,Yn(q),Z}const Ul=e=>{let t;for(const n in e)(n==="class"||n==="style"||ao(n))&&((t||(t={}))[n]=e[n]);return t},Hl=(e,t)=>{const n={};for(const o in e)(!as(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Vl(e,t,n){const{props:o,children:s,component:r}=e,{props:i,children:a,patchFlag:c}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return o?br(o,i,u):!!i;if(c&8){const l=t.dynamicProps;for(let d=0;d<l.length;d++){const p=l[d];if(i[p]!==o[p]&&!mo(u,p))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:o===i?!1:o?i?br(o,i,u):!0:!!i;return!1}function br(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(t[r]!==e[r]&&!mo(n,r))return!0}return!1}function Jl({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const Ki={},Gi=()=>Object.create(Ki),Qi=e=>Object.getPrototypeOf(e)===Ki;function Bl(e,t,n,o=!1){const s={},r=Gi();e.propsDefaults=Object.create(null),Yi(e,t,s,r);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=o?s:Gc(s):e.type.props?e.props=s:e.props=r,e.attrs=r}function Wl(e,t,n,o){const{props:s,attrs:r,vnode:{patchFlag:i}}=e,a=K(s),[c]=e.propsOptions;let u=!1;if((o||i>0)&&!(i&16)){if(i&8){const l=e.vnode.dynamicProps;for(let d=0;d<l.length;d++){let p=l[d];if(mo(e.emitsOptions,p))continue;const _=t[p];if(c)if(G(r,p))_!==r[p]&&(r[p]=_,u=!0);else{const x=_t(p);s[x]=Yo(c,a,x,_,e,!1)}else _!==r[p]&&(r[p]=_,u=!0)}}}else{Yi(e,t,s,r)&&(u=!0);let l;for(const d in a)(!t||!G(t,d)&&((l=Ot(d))===d||!G(t,l)))&&(c?n&&(n[d]!==void 0||n[l]!==void 0)&&(s[d]=Yo(c,a,d,void 0,e,!0)):delete s[d]);if(r!==a)for(const d in r)(!t||!G(t,d))&&(delete r[d],u=!0)}u&&at(e.attrs,"set","")}function Yi(e,t,n,o){const[s,r]=e.propsOptions;let i=!1,a;if(t)for(let c in t){if(ln(c))continue;const u=t[c];let l;s&&G(s,l=_t(c))?!r||!r.includes(l)?n[l]=u:(a||(a={}))[l]=u:mo(e.emitsOptions,c)||(!(c in o)||u!==o[c])&&(o[c]=u,i=!0)}if(r){const c=K(n),u=a||te;for(let l=0;l<r.length;l++){const d=r[l];n[d]=Yo(s,c,d,u[d],e,!G(u,d))}}return i}function Yo(e,t,n,o,s,r){const i=e[n];if(i!=null){const a=G(i,"default");if(a&&o===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&D(c)){const{propsDefaults:u}=s;if(n in u)o=u[n];else{const l=zn(s);o=u[n]=c.call(null,t),l()}}else o=c;s.ce&&s.ce._setProp(n,o)}i[0]&&(r&&!a?o=!1:i[1]&&(o===""||o===Ot(n))&&(o=!0))}return o}const Kl=new WeakMap;function Xi(e,t,n=!1){const o=n?Kl:t.propsCache,s=o.get(e);if(s)return s;const r=e.props,i={},a=[];let c=!1;if(!D(e)){const l=d=>{c=!0;const[p,_]=Xi(d,t,!0);ye(i,p),_&&a.push(..._)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!r&&!c)return de(e)&&o.set(e,qt),qt;if(F(r))for(let l=0;l<r.length;l++){const d=_t(r[l]);vr(d)&&(i[d]=te)}else if(r)for(const l in r){const d=_t(l);if(vr(d)){const p=r[l],_=i[d]=F(p)||D(p)?{type:p}:ye({},p),x=_.type;let z=!1,q=!0;if(F(x))for(let Z=0;Z<x.length;++Z){const A=x[Z],B=D(A)&&A.name;if(B==="Boolean"){z=!0;break}else B==="String"&&(q=!1)}else z=D(x)&&x.name==="Boolean";_[0]=z,_[1]=q,(z||G(_,"default"))&&a.push(d)}}const u=[i,a];return de(e)&&o.set(e,u),u}function vr(e){return e[0]!=="$"&&!ln(e)}const Ts=e=>e==="_"||e==="_ctx"||e==="$stable",xs=e=>F(e)?e.map(tt):[tt(e)],Gl=(e,t,n)=>{if(t._n)return t;const o=ul((...s)=>xs(t(...s)),n);return o._c=!1,o},ea=(e,t,n)=>{const o=e._ctx;for(const s in e){if(Ts(s))continue;const r=e[s];if(D(r))t[s]=Gl(s,r,o);else if(r!=null){const i=xs(r);t[s]=()=>i}}},ta=(e,t)=>{const n=xs(t);e.slots.default=()=>n},na=(e,t,n)=>{for(const o in t)(n||!Ts(o))&&(e[o]=t[o])},Ql=(e,t,n)=>{const o=e.slots=Gi();if(e.vnode.shapeFlag&32){const s=t._;s?(na(o,t,n),n&&pi(o,"_",s,!0)):ea(t,o)}else t&&ta(e,t)},Yl=(e,t,n)=>{const{vnode:o,slots:s}=e;let r=!0,i=te;if(o.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:na(s,t,n):(r=!t.$stable,ea(t,s)),i=t}else t&&(ta(e,t),i={default:1});if(r)for(const a in s)!Ts(a)&&i[a]==null&&delete s[a]},je=ou;function Xl(e){return eu(e)}function eu(e,t){const n=uo();n.__VUE__=!0;const{insert:o,remove:s,patchProp:r,createElement:i,createText:a,createComment:c,setText:u,setElementText:l,parentNode:d,nextSibling:p,setScopeId:_=nt,insertStaticContent:x}=e,z=(f,h,v,T=null,w=null,S=null,P=void 0,I=null,R=!!h.dynamicChildren)=>{if(f===h)return;f&&!rn(f,h)&&(T=jn(f),We(f,w,S,!0),f=null),h.patchFlag===-2&&(R=!1,h.dynamicChildren=null);const{type:k,ref:N,shapeFlag:E}=h;switch(k){case go:q(f,h,v,T);break;case Bt:Z(f,h,v,T);break;case Mo:f==null&&A(h,v,T,P);break;case et:An(f,h,v,T,w,S,P,I,R);break;default:E&1?U(f,h,v,T,w,S,P,I,R):E&6?Zn(f,h,v,T,w,S,P,I,R):(E&64||E&128)&&k.process(f,h,v,T,w,S,P,I,R,nn)}N!=null&&w?dn(N,f&&f.ref,S,h||f,!h):N==null&&f&&f.ref!=null&&dn(f.ref,null,S,f,!0)},q=(f,h,v,T)=>{if(f==null)o(h.el=a(h.children),v,T);else{const w=h.el=f.el;h.children!==f.children&&u(w,h.children)}},Z=(f,h,v,T)=>{f==null?o(h.el=c(h.children||""),v,T):h.el=f.el},A=(f,h,v,T)=>{[f.el,f.anchor]=x(f.children,h,v,T,f.el,f.anchor)},B=({el:f,anchor:h},v,T)=>{let w;for(;f&&f!==h;)w=p(f),o(f,v,T),f=w;o(h,v,T)},C=({el:f,anchor:h})=>{let v;for(;f&&f!==h;)v=p(f),s(f),f=v;s(h)},U=(f,h,v,T,w,S,P,I,R)=>{if(h.type==="svg"?P="svg":h.type==="math"&&(P="mathml"),f==null)ue(h,v,T,w,S,P,I,R);else{const k=f.el&&f.el._isVueCE?f.el:null;try{k&&k._beginPatch(),ke(f,h,w,S,P,I,R)}finally{k&&k._endPatch()}}},ue=(f,h,v,T,w,S,P,I)=>{let R,k;const{props:N,shapeFlag:E,transition:O,dirs:M}=f;if(R=f.el=i(f.type,S,N&&N.is,N),E&8?l(R,f.children):E&16&&ge(f.children,R,null,T,w,Zo(f,S),P,I),M&&zt(f,null,T,"created"),V(R,f,f.scopeId,P,T),N){for(const se in N)se!=="value"&&!ln(se)&&r(R,se,null,N[se],S,T);"value"in N&&r(R,"value",null,N.value,S),(k=N.onVnodeBeforeMount)&&Ye(k,T,f)}M&&zt(f,null,T,"beforeMount");const J=tu(w,O);J&&O.beforeEnter(R),o(R,h,v),((k=N&&N.onVnodeMounted)||J||M)&&je(()=>{k&&Ye(k,T,f),J&&O.enter(R),M&&zt(f,null,T,"mounted")},w)},V=(f,h,v,T,w)=>{if(v&&_(f,v),T)for(let S=0;S<T.length;S++)_(f,T[S]);if(w){let S=w.subTree;if(h===S||ia(S.type)&&(S.ssContent===h||S.ssFallback===h)){const P=w.vnode;V(f,P,P.scopeId,P.slotScopeIds,w.parent)}}},ge=(f,h,v,T,w,S,P,I,R=0)=>{for(let k=R;k<f.length;k++){const N=f[k]=I?mt(f[k]):tt(f[k]);z(null,N,h,v,T,w,S,P,I)}},ke=(f,h,v,T,w,S,P)=>{const I=h.el=f.el;let{patchFlag:R,dynamicChildren:k,dirs:N}=h;R|=f.patchFlag&16;const E=f.props||te,O=h.props||te;let M;if(v&&Rt(v,!1),(M=O.onVnodeBeforeUpdate)&&Ye(M,v,h,f),N&&zt(h,f,v,"beforeUpdate"),v&&Rt(v,!0),(E.innerHTML&&O.innerHTML==null||E.textContent&&O.textContent==null)&&l(I,""),k?st(f.dynamicChildren,k,I,v,T,Zo(h,w),S):P||oe(f,h,I,null,v,T,Zo(h,w),S,!1),R>0){if(R&16)en(I,E,O,v,w);else if(R&2&&E.class!==O.class&&r(I,"class",null,O.class,w),R&4&&r(I,"style",E.style,O.style,w),R&8){const J=h.dynamicProps;for(let se=0;se<J.length;se++){const Y=J[se],Ce=E[Y],Oe=O[Y];(Oe!==Ce||Y==="value")&&r(I,Y,Ce,Oe,w,v)}}R&1&&f.children!==h.children&&l(I,h.children)}else!P&&k==null&&en(I,E,O,v,w);((M=O.onVnodeUpdated)||N)&&je(()=>{M&&Ye(M,v,h,f),N&&zt(h,f,v,"updated")},T)},st=(f,h,v,T,w,S,P)=>{for(let I=0;I<h.length;I++){const R=f[I],k=h[I],N=R.el&&(R.type===et||!rn(R,k)||R.shapeFlag&198)?d(R.el):v;z(R,k,N,null,T,w,S,P,!0)}},en=(f,h,v,T,w)=>{if(h!==v){if(h!==te)for(const S in h)!ln(S)&&!(S in v)&&r(f,S,h[S],null,w,T);for(const S in v){if(ln(S))continue;const P=v[S],I=h[S];P!==I&&S!=="value"&&r(f,S,I,P,w,T)}"value"in v&&r(f,"value",h.value,v.value,w)}},An=(f,h,v,T,w,S,P,I,R)=>{const k=h.el=f?f.el:a(""),N=h.anchor=f?f.anchor:a("");let{patchFlag:E,dynamicChildren:O,slotScopeIds:M}=h;M&&(I=I?I.concat(M):M),f==null?(o(k,v,T),o(N,v,T),ge(h.children||[],v,N,w,S,P,I,R)):E>0&&E&64&&O&&f.dynamicChildren&&f.dynamicChildren.length===O.length?(st(f.dynamicChildren,O,v,w,S,P,I),(h.key!=null||w&&h===w.subTree)&&oa(f,h,!0)):oe(f,h,v,N,w,S,P,I,R)},Zn=(f,h,v,T,w,S,P,I,R)=>{h.slotScopeIds=I,f==null?h.shapeFlag&512?w.ctx.activate(h,v,T,P,R):zo(h,v,T,w,S,P,R):nr(f,h,R)},zo=(f,h,v,T,w,S,P)=>{const I=f.component=hu(f,T,w);if(qi(f)&&(I.ctx.renderer=nn),mu(I,!1,P),I.asyncDep){if(w&&w.registerDep(I,Re,P),!f.el){const R=I.subTree=Ct(Bt);Z(null,R,h,v),f.placeholder=R.el}}else Re(I,f,h,v,w,S,P)},nr=(f,h,v)=>{const T=h.component=f.component;if(Vl(f,h,v))if(T.asyncDep&&!T.asyncResolved){fe(T,h,v);return}else T.next=h,T.update();else h.el=f.el,T.vnode=h},Re=(f,h,v,T,w,S,P)=>{const I=()=>{if(f.isMounted){let{next:E,bu:O,u:M,parent:J,vnode:se}=f;{const Ge=sa(f);if(Ge){E&&(E.el=se.el,fe(f,E,P)),Ge.asyncDep.then(()=>{f.isUnmounted||I()});return}}let Y=E,Ce;Rt(f,!1),E?(E.el=se.el,fe(f,E,P)):E=se,O&&Jn(O),(Ce=E.props&&E.props.onVnodeBeforeUpdate)&&Ye(Ce,J,E,se),Rt(f,!0);const Oe=_r(f),Ke=f.subTree;f.subTree=Oe,z(Ke,Oe,d(Ke.el),jn(Ke),f,w,S),E.el=Oe.el,Y===null&&Jl(f,Oe.el),M&&je(M,w),(Ce=E.props&&E.props.onVnodeUpdated)&&je(()=>Ye(Ce,J,E,se),w)}else{let E;const{el:O,props:M}=h,{bm:J,m:se,parent:Y,root:Ce,type:Oe}=f,Ke=hn(h);Rt(f,!1),J&&Jn(J),!Ke&&(E=M&&M.onVnodeBeforeMount)&&Ye(E,Y,h),Rt(f,!0);{Ce.ce&&Ce.ce._def.shadowRoot!==!1&&Ce.ce._injectChildStyle(Oe);const Ge=f.subTree=_r(f);z(null,Ge,v,T,f,w,S),h.el=Ge.el}if(se&&je(se,w),!Ke&&(E=M&&M.onVnodeMounted)){const Ge=h;je(()=>Ye(E,Y,Ge),w)}(h.shapeFlag&256||Y&&hn(Y.vnode)&&Y.vnode.shapeFlag&256)&&f.a&&je(f.a,w),f.isMounted=!0,h=v=T=null}};f.scope.on();const R=f.effect=new vi(I);f.scope.off();const k=f.update=R.run.bind(R),N=f.job=R.runIfDirty.bind(R);N.i=f,N.id=f.uid,R.scheduler=()=>ws(N),Rt(f,!0),k()},fe=(f,h,v)=>{h.component=f;const T=f.vnode.props;f.vnode=h,f.next=null,Wl(f,h.props,T,v),Yl(f,h.children,v),lt(),fr(f),ut()},oe=(f,h,v,T,w,S,P,I,R=!1)=>{const k=f&&f.children,N=f?f.shapeFlag:0,E=h.children,{patchFlag:O,shapeFlag:M}=h;if(O>0){if(O&128){Mn(k,E,v,T,w,S,P,I,R);return}else if(O&256){Tt(k,E,v,T,w,S,P,I,R);return}}M&8?(N&16&&tn(k,w,S),E!==k&&l(v,E)):N&16?M&16?Mn(k,E,v,T,w,S,P,I,R):tn(k,w,S,!0):(N&8&&l(v,""),M&16&&ge(E,v,T,w,S,P,I,R))},Tt=(f,h,v,T,w,S,P,I,R)=>{f=f||qt,h=h||qt;const k=f.length,N=h.length,E=Math.min(k,N);let O;for(O=0;O<E;O++){const M=h[O]=R?mt(h[O]):tt(h[O]);z(f[O],M,v,null,w,S,P,I,R)}k>N?tn(f,w,S,!0,!1,E):ge(h,v,T,w,S,P,I,R,E)},Mn=(f,h,v,T,w,S,P,I,R)=>{let k=0;const N=h.length;let E=f.length-1,O=N-1;for(;k<=E&&k<=O;){const M=f[k],J=h[k]=R?mt(h[k]):tt(h[k]);if(rn(M,J))z(M,J,v,null,w,S,P,I,R);else break;k++}for(;k<=E&&k<=O;){const M=f[E],J=h[O]=R?mt(h[O]):tt(h[O]);if(rn(M,J))z(M,J,v,null,w,S,P,I,R);else break;E--,O--}if(k>E){if(k<=O){const M=O+1,J=M<N?h[M].el:T;for(;k<=O;)z(null,h[k]=R?mt(h[k]):tt(h[k]),v,J,w,S,P,I,R),k++}}else if(k>O)for(;k<=E;)We(f[k],w,S,!0),k++;else{const M=k,J=k,se=new Map;for(k=J;k<=O;k++){const Me=h[k]=R?mt(h[k]):tt(h[k]);Me.key!=null&&se.set(Me.key,k)}let Y,Ce=0;const Oe=O-J+1;let Ke=!1,Ge=0;const on=new Array(Oe);for(k=0;k<Oe;k++)on[k]=0;for(k=M;k<=E;k++){const Me=f[k];if(Ce>=Oe){We(Me,w,S,!0);continue}let Qe;if(Me.key!=null)Qe=se.get(Me.key);else for(Y=J;Y<=O;Y++)if(on[Y-J]===0&&rn(Me,h[Y])){Qe=Y;break}Qe===void 0?We(Me,w,S,!0):(on[Qe-J]=k+1,Qe>=Ge?Ge=Qe:Ke=!0,z(Me,h[Qe],v,null,w,S,P,I,R),Ce++)}const rr=Ke?nu(on):qt;for(Y=rr.length-1,k=Oe-1;k>=0;k--){const Me=J+k,Qe=h[Me],ir=h[Me+1],ar=Me+1<N?ir.el||ra(ir):T;on[k]===0?z(null,Qe,v,ar,w,S,P,I,R):Ke&&(Y<0||k!==rr[Y]?xt(Qe,v,ar,2):Y--)}}},xt=(f,h,v,T,w=null)=>{const{el:S,type:P,transition:I,children:R,shapeFlag:k}=f;if(k&6){xt(f.component.subTree,h,v,T);return}if(k&128){f.suspense.move(h,v,T);return}if(k&64){P.move(f,h,v,nn);return}if(P===et){o(S,h,v);for(let E=0;E<R.length;E++)xt(R[E],h,v,T);o(f.anchor,h,v);return}if(P===Mo){B(f,h,v);return}if(T!==2&&k&1&&I)if(T===0)I.beforeEnter(S),o(S,h,v),je(()=>I.enter(S),w);else{const{leave:E,delayLeave:O,afterLeave:M}=I,J=()=>{f.ctx.isUnmounted?s(S):o(S,h,v)},se=()=>{S._isLeaving&&S[bl](!0),E(S,()=>{J(),M&&M()})};O?O(S,J,se):se()}else o(S,h,v)},We=(f,h,v,T=!1,w=!1)=>{const{type:S,props:P,ref:I,children:R,dynamicChildren:k,shapeFlag:N,patchFlag:E,dirs:O,cacheIndex:M}=f;if(E===-2&&(w=!1),I!=null&&(lt(),dn(I,null,v,f,!0),ut()),M!=null&&(h.renderCache[M]=void 0),N&256){h.ctx.deactivate(f);return}const J=N&1&&O,se=!hn(f);let Y;if(se&&(Y=P&&P.onVnodeBeforeUnmount)&&Ye(Y,h,f),N&6)_c(f.component,v,T);else{if(N&128){f.suspense.unmount(v,T);return}J&&zt(f,null,h,"beforeUnmount"),N&64?f.type.remove(f,h,v,nn,T):k&&!k.hasOnce&&(S!==et||E>0&&E&64)?tn(k,h,v,!1,!0):(S===et&&E&384||!w&&N&16)&&tn(R,h,v),T&&or(f)}(se&&(Y=P&&P.onVnodeUnmounted)||J)&&je(()=>{Y&&Ye(Y,h,f),J&&zt(f,null,h,"unmounted")},v)},or=f=>{const{type:h,el:v,anchor:T,transition:w}=f;if(h===et){gc(v,T);return}if(h===Mo){C(f);return}const S=()=>{s(v),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(f.shapeFlag&1&&w&&!w.persisted){const{leave:P,delayLeave:I}=w,R=()=>P(v,S);I?I(f.el,S,R):R()}else S()},gc=(f,h)=>{let v;for(;f!==h;)v=p(f),s(f),f=v;s(h)},_c=(f,h,v)=>{const{bum:T,scope:w,job:S,subTree:P,um:I,m:R,a:k}=f;yr(R),yr(k),T&&Jn(T),w.stop(),S&&(S.flags|=8,We(P,f,h,v)),I&&je(I,h),je(()=>{f.isUnmounted=!0},h)},tn=(f,h,v,T=!1,w=!1,S=0)=>{for(let P=S;P<f.length;P++)We(f[P],h,v,T,w)},jn=f=>{if(f.shapeFlag&6)return jn(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=p(f.anchor||f.el),v=h&&h[gl];return v?p(v):h};let Ro=!1;const sr=(f,h,v)=>{let T;f==null?h._vnode&&(We(h._vnode,null,null,!0),T=h._vnode.component):z(h._vnode||null,f,h,null,null,null,v),h._vnode=f,Ro||(Ro=!0,fr(T),Zi(),Ro=!1)},nn={p:z,um:We,m:xt,r:or,mt:zo,mc:ge,pc:oe,pbc:st,n:jn,o:e};return{render:sr,hydrate:void 0,createApp:Dl(sr)}}function Zo({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 Rt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function tu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function oa(e,t,n=!1){const o=e.children,s=t.children;if(F(o)&&F(s))for(let r=0;r<o.length;r++){const i=o[r];let a=s[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[r]=mt(s[r]),a.el=i.el),!n&&a.patchFlag!==-2&&oa(i,a)),a.type===go&&(a.patchFlag!==-1?a.el=i.el:a.__elIndex=r+(e.type===et?1:0)),a.type===Bt&&!a.el&&(a.el=i.el)}}function nu(e){const t=e.slice(),n=[0];let o,s,r,i,a;const c=e.length;for(o=0;o<c;o++){const u=e[o];if(u!==0){if(s=n[n.length-1],e[s]<u){t[o]=s,n.push(o);continue}for(r=0,i=n.length-1;r<i;)a=r+i>>1,e[n[a]]<u?r=a+1:i=a;u<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 sa(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:sa(t)}function yr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ra(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ra(t.subTree):null}const ia=e=>e.__isSuspense;function ou(e,t){t&&t.pendingBranch?F(e)?t.effects.push(...e):t.effects.push(e):ll(e)}const et=Symbol.for("v-fgt"),go=Symbol.for("v-txt"),Bt=Symbol.for("v-cmt"),Mo=Symbol.for("v-stc"),mn=[];let De=null;function su(e=!1){mn.push(De=e?null:[])}function ru(){mn.pop(),De=mn[mn.length-1]||null}let yn=1;function wr(e,t=!1){yn+=e,e<0&&De&&t&&(De.hasOnce=!0)}function iu(e){return e.dynamicChildren=yn>0?De||qt:null,ru(),yn>0&&De&&De.push(e),e}function au(e,t,n,o,s,r){return iu(be(e,t,n,o,s,r,!0))}function aa(e){return e?e.__v_isVNode===!0:!1}function rn(e,t){return e.type===t.type&&e.key===t.key}const ca=({key:e})=>e??null,Wn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||ze(e)||D(e)?{i:Le,r:e,k:t,f:!!n}:e:null);function be(e,t=null,n=null,o=0,s=null,r=e===et?0:1,i=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ca(t),ref:t&&Wn(t),scopeId:ji,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:Le};return a?(zs(c,n),r&128&&e.normalize(c)):n&&(c.shapeFlag|=_e(n)?8:16),yn>0&&!i&&De&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&De.push(c),c}const Ct=cu;function cu(e,t=null,n=null,o=0,s=null,r=!1){if((!e||e===$l)&&(e=Bt),aa(e)){const a=Wt(e,t,!0);return n&&zs(a,n),yn>0&&!r&&De&&(a.shapeFlag&6?De[De.indexOf(e)]=a:De.push(a)),a.patchFlag=-2,a}if(vu(e)&&(e=e.__vccOpts),t){t=lu(t);let{class:a,style:c}=t;a&&!_e(a)&&(t.class=fs(a)),de(c)&&(ys(c)&&!F(c)&&(c=ye({},c)),t.style=fo(c))}const i=_e(e)?1:ia(e)?128:_l(e)?64:de(e)?4:D(e)?2:0;return be(e,t,n,o,s,i,r,!0)}function lu(e){return e?ys(e)||Qi(e)?ye({},e):e:null}function Wt(e,t,n=!1,o=!1){const{props:s,ref:r,patchFlag:i,children:a,transition:c}=e,u=t?uu(s||{},t):s,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&ca(u),ref:t&&t.ref?n&&r?F(r)?r.concat(Wn(t)):[r,Wn(t)]:Wn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==et?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Wt(e.ssContent),ssFallback:e.ssFallback&&Wt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&ks(l,c.clone(l)),l}function la(e=" ",t=0){return Ct(go,null,e,t)}function tt(e){return e==null||typeof e=="boolean"?Ct(Bt):F(e)?Ct(et,null,e.slice()):aa(e)?mt(e):Ct(go,null,String(e))}function mt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Wt(e)}function zs(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(F(t))n=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),zs(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Qi(t)?t._ctx=Le:s===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else D(t)?(t={default:t,_ctx:Le},n=32):(t=String(t),o&64?(n=16,t=[la(t)]):n=8);e.children=t,e.shapeFlag|=n}function uu(...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=fs([t.class,o.class]));else if(s==="style")t.style=fo([t.style,o.style]);else if(ao(s)){const r=t[s],i=o[s];i&&r!==i&&!(F(r)&&r.includes(i))&&(t[s]=r?[].concat(r,i):i)}else s!==""&&(t[s]=o[s])}return t}function Ye(e,t,n,o=null){ot(e,t,7,[n,o])}const fu=Bi();let du=0;function hu(e,t,n){const o=e.type,s=(t?t.appContext:e.appContext)||fu,r={uid:du++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ec(!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:Xi(o,s),emitsOptions:Wi(o,s),emit:null,emitted:null,propsDefaults:te,inheritAttrs:o.inheritAttrs,ctx:te,data:te,props:te,attrs:te,slots:te,refs:te,setupState:te,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=ql.bind(null,r),e.ce&&e.ce(r),r}let $e=null;const pu=()=>$e||Le;let to,Xo;{const e=uo(),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)}};to=t("__VUE_INSTANCE_SETTERS__",n=>$e=n),Xo=t("__VUE_SSR_SETTERS__",n=>wn=n)}const zn=e=>{const t=$e;return to(e),e.scope.on(),()=>{e.scope.off(),to(t)}},Sr=()=>{$e&&$e.scope.off(),to(null)};function ua(e){return e.vnode.shapeFlag&4}let wn=!1;function mu(e,t=!1,n=!1){t&&Xo(t);const{props:o,children:s}=e.vnode,r=ua(e);Bl(e,o,r,t),Ql(e,s,n||t);const i=r?gu(e,t):void 0;return t&&Xo(!1),i}function gu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Cl);const{setup:o}=n;if(o){lt();const s=e.setupContext=o.length>1?bu(e):null,r=zn(e),i=xn(o,e,0,[e.props,s]),a=ui(i);if(ut(),r(),(a||e.sp)&&!hn(e)&&Fi(e),a){if(i.then(Sr,Sr),t)return i.then(c=>{kr(e,c)}).catch(c=>{ho(c,e,0)});e.asyncDep=i}else kr(e,i)}else fa(e)}function kr(e,t,n){D(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=Oi(t)),fa(e)}function fa(e,t,n){const o=e.type;e.render||(e.render=o.render||nt);{const s=zn(e);lt();try{Ol(e)}finally{ut(),s()}}}const _u={get(e,t){return xe(e,"get",""),e[t]}};function bu(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,_u),slots:e.slots,emit:e.emit,expose:t}}function _o(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Oi(Qc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in pn)return pn[n](e)},has(t,n){return n in t||n in pn}})):e.proxy}function vu(e){return D(e)&&"__vccOpts"in e}const yu=(e,t)=>ol(e,t,wn),wu="3.5.27";/**
20
+ **/function xn(e,t,n,o){try{return o?e(...o):e()}catch(s){ho(s,t,n)}}function ot(e,t,n,o){if(D(e)){const s=xn(e,t,n,o);return s&&ui(s)&&s.catch(r=>{ho(r,t,n)}),s}if(q(e)){const s=[];for(let r=0;r<e.length;r++)s.push(ot(e[r],t,n,o));return s}}function ho(e,t,n,o=!0){const s=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||te;if(t){let a=t.parent;const c=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const l=a.ec;if(l){for(let d=0;d<l.length;d++)if(l[d](e,c,u)===!1)return}a=a.parent}if(r){lt(),xn(r,null,10,[e,c,u]),ut();return}}il(e,n,s,o,i)}function il(e,t,n,o=!0,s=!1){if(s)throw e;console.error(e)}const Ee=[];let Xe=-1;const Ht=[];let pt=null,Mt=0;const Ni=Promise.resolve();let Qn=null;function al(e){const t=Qn||Ni;return e?t.then(this?e.bind(this):e):t}function cl(e){let t=Xe+1,n=Ee.length;for(;t<n;){const o=t+n>>>1,s=Ee[o],r=vn(s);r<e||r===e&&s.flags&2?t=o+1:n=o}return t}function ws(e){if(!(e.flags&1)){const t=vn(e),n=Ee[Ee.length-1];!n||!(e.flags&2)&&t>=vn(n)?Ee.push(e):Ee.splice(cl(t),0,e),e.flags|=1,Ai()}}function Ai(){Qn||(Qn=Ni.then(Mi))}function ll(e){q(e)?Ht.push(...e):pt&&e.id===-1?pt.splice(Mt+1,0,e):e.flags&1||(Ht.push(e),e.flags|=1),Ai()}function fr(e,t,n=Xe+1){for(;n<Ee.length;n++){const o=Ee[n];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Ee.splice(n,1),n--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function Zi(e){if(Ht.length){const t=[...new Set(Ht)].sort((n,o)=>vn(n)-vn(o));if(Ht.length=0,pt){pt.push(...t);return}for(pt=t,Mt=0;Mt<pt.length;Mt++){const n=pt[Mt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}pt=null,Mt=0}}const vn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Mi(e){try{for(Xe=0;Xe<Ee.length;Xe++){const t=Ee[Xe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),xn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Xe<Ee.length;Xe++){const t=Ee[Xe];t&&(t.flags&=-2)}Xe=-1,Ee.length=0,Zi(),Qn=null,(Ee.length||Ht.length)&&Mi()}}let Le=null,ji=null;function Yn(e){const t=Le;return Le=e,ji=e&&e.type.__scopeId||null,t}function ul(e,t=Le,n){if(!t||e._n)return e;const o=(...s)=>{o._d&&wr(-1);const r=Yn(t);let i;try{i=e(...s)}finally{Yn(r),o._d&&wr(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Oo(e,t){if(Le===null)return e;const n=_o(Le),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[r,i,a,c=te]=t[s];r&&(D(r)&&(r={mounted:r,updated:r}),r.deep&&ct(i),o.push({dir:r,instance:n,value:i,oldValue:void 0,arg:a,modifiers:c}))}return e}function zt(e,t,n,o){const s=e.dirs,r=t&&t.dirs;for(let i=0;i<s.length;i++){const a=s[i];r&&(a.oldValue=r[i].value);let c=a.dir[o];c&&(lt(),ot(c,n,8,[e.el,a,e,t]),ut())}}function fl(e,t){if($e){let n=$e.provides;const o=$e.parent&&$e.parent.provides;o===n&&(n=$e.provides=Object.create(o)),n[e]=t}}function Bn(e,t,n=!1){const o=pu();if(o||Vt){let s=Vt?Vt._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&&D(t)?t.call(o&&o.proxy):t}}const dl=Symbol.for("v-scx"),hl=()=>Bn(dl);function pl(e,t){return Ss(e,null,t)}function No(e,t,n){return Ss(e,t,n)}function Ss(e,t,n=te){const{immediate:o,deep:s,flush:r,once:i}=n,a=ye({},n),c=t&&o||!t&&r!=="post";let u;if(wn){if(r==="sync"){const _=hl();u=_.__watcherHandles||(_.__watcherHandles=[])}else if(!c){const _=()=>{};return _.stop=nt,_.resume=nt,_.pause=nt,_}}const l=$e;a.call=(_,x,z)=>ot(_,l,x,z);let d=!1;r==="post"?a.scheduler=_=>{je(_,l&&l.suspense)}:r!=="sync"&&(d=!0,a.scheduler=(_,x)=>{x?_():ws(_)}),a.augmentJob=_=>{t&&(_.flags|=4),d&&(_.flags|=2,l&&(_.id=l.uid,_.i=l))};const p=rl(e,t,a);return wn&&(u?u.push(p):c&&p()),p}function ml(e,t,n){const o=this.proxy,s=_e(e)?e.includes(".")?Di(o,e):()=>o[e]:e.bind(o,o);let r;D(t)?r=t:(r=t.handler,n=t);const i=zn(this),a=Ss(s,r.bind(o),n);return i(),a}function Di(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 gl=Symbol("_vte"),_l=e=>e.__isTeleport,bl=Symbol("_leaveCb");function ks(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ks(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function vl(e,t){return D(e)?ye({name:e.name},t,{setup:e}):e}function qi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Xn=new WeakMap;function dn(e,t,n,o,s=!1){if(q(e)){e.forEach((x,z)=>dn(x,t&&(q(t)?t[z]:t),n,o,s));return}if(hn(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&dn(e,t,n,o.component.subTree);return}const r=o.shapeFlag&4?_o(o.component):o.el,i=s?null:r,{i:a,r:c}=e,u=t&&t.r,l=a.refs===te?a.refs={}:a.refs,d=a.setupState,p=K(d),_=d===te?ci:x=>G(p,x);if(u!=null&&u!==c){if(dr(t),_e(u))l[u]=null,_(u)&&(d[u]=null);else if(ze(u)){u.value=null;const x=t;x.k&&(l[x.k]=null)}}if(D(c))xn(c,a,12,[i,l]);else{const x=_e(c),z=ze(c);if(x||z){const F=()=>{if(e.f){const Z=x?_(c)?d[c]:l[c]:c.value;if(s)q(Z)&&cs(Z,r);else if(q(Z))Z.includes(r)||Z.push(r);else if(x)l[c]=[r],_(c)&&(d[c]=l[c]);else{const A=[r];c.value=A,e.k&&(l[e.k]=A)}}else x?(l[c]=i,_(c)&&(d[c]=i)):z&&(c.value=i,e.k&&(l[e.k]=i))};if(i){const Z=()=>{F(),Xn.delete(e)};Z.id=-1,Xn.set(e,Z),je(Z,n)}else dr(e),F()}}}function dr(e){const t=Xn.get(e);t&&(t.flags|=8,Xn.delete(e))}uo().requestIdleCallback;uo().cancelIdleCallback;const hn=e=>!!e.type.__asyncLoader,Fi=e=>e.type.__isKeepAlive;function yl(e,t){Li(e,"a",t)}function wl(e,t){Li(e,"da",t)}function Li(e,t,n=$e){const o=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(po(t,o,n),n){let s=n.parent;for(;s&&s.parent;)Fi(s.parent.vnode)&&Sl(o,t,n,s),s=s.parent}}function Sl(e,t,n,o){const s=po(t,e,o,!0);Hi(()=>{cs(o[t],s)},n)}function po(e,t,n=$e,o=!1){if(n){const s=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{lt();const a=zn(n),c=ot(t,n,e,i);return a(),ut(),c});return o?s.unshift(r):s.push(r),r}}const dt=e=>(t,n=$e)=>{(!wn||e==="sp")&&po(e,(...o)=>t(...o),n)},kl=dt("bm"),Ui=dt("m"),Tl=dt("bu"),xl=dt("u"),zl=dt("bum"),Hi=dt("um"),Rl=dt("sp"),Il=dt("rtg"),Pl=dt("rtc");function El(e,t=$e){po("ec",e,t)}const $l=Symbol.for("v-ndc"),Ko=e=>e?ua(e)?_o(e):Ko(e.parent):null,pn=ye(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=>Ko(e.parent),$root:e=>Ko(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ji(e),$forceUpdate:e=>e.f||(e.f=()=>{ws(e.update)}),$nextTick:e=>e.n||(e.n=al.bind(e.proxy)),$watch:e=>ml.bind(e)}),Ao=(e,t)=>e!==te&&!e.__isScriptSetup&&G(e,t),Cl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:s,props:r,accessCache:i,type:a,appContext:c}=e;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return r[t]}else{if(Ao(o,t))return i[t]=1,o[t];if(s!==te&&G(s,t))return i[t]=2,s[t];if(G(r,t))return i[t]=3,r[t];if(n!==te&&G(n,t))return i[t]=4,n[t];Go&&(i[t]=0)}}const u=pn[t];let l,d;if(u)return t==="$attrs"&&xe(e.attrs,"get",""),u(e);if((l=a.__cssModules)&&(l=l[t]))return l;if(n!==te&&G(n,t))return i[t]=4,n[t];if(d=c.config.globalProperties,G(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:s,ctx:r}=e;return Ao(s,t)?(s[t]=n,!0):o!==te&&G(o,t)?(o[t]=n,!0):G(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}},a){let c;return!!(n[a]||e!==te&&a[0]!=="$"&&G(e,a)||Ao(t,a)||G(r,a)||G(o,a)||G(pn,a)||G(s.config.globalProperties,a)||(c=i.__cssModules)&&c[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:G(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hr(e){return q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Go=!0;function Ol(e){const t=Ji(e),n=e.proxy,o=e.ctx;Go=!1,t.beforeCreate&&pr(t.beforeCreate,e,"bc");const{data:s,computed:r,methods:i,watch:a,provide:c,inject:u,created:l,beforeMount:d,mounted:p,beforeUpdate:_,updated:x,activated:z,deactivated:F,beforeDestroy:Z,beforeUnmount:A,destroyed:B,unmounted:C,render:U,renderTracked:ue,renderTriggered:V,errorCaptured:ge,serverPrefetch:ke,expose:st,inheritAttrs:en,components:An,directives:Zn,filters:zo}=t;if(u&&Nl(u,o,null),i)for(const fe in i){const oe=i[fe];D(oe)&&(o[fe]=oe.bind(n))}if(s){const fe=s.call(n,n);de(fe)&&(e.data=bs(fe))}if(Go=!0,r)for(const fe in r){const oe=r[fe],Tt=D(oe)?oe.bind(n,n):D(oe.get)?oe.get.bind(n,n):nt,Mn=!D(oe)&&D(oe.set)?oe.set.bind(n):nt,xt=yu({get:Tt,set:Mn});Object.defineProperty(o,fe,{enumerable:!0,configurable:!0,get:()=>xt.value,set:We=>xt.value=We})}if(a)for(const fe in a)Vi(a[fe],o,n,fe);if(c){const fe=D(c)?c.call(n):c;Reflect.ownKeys(fe).forEach(oe=>{fl(oe,fe[oe])})}l&&pr(l,e,"c");function Re(fe,oe){q(oe)?oe.forEach(Tt=>fe(Tt.bind(n))):oe&&fe(oe.bind(n))}if(Re(kl,d),Re(Ui,p),Re(Tl,_),Re(xl,x),Re(yl,z),Re(wl,F),Re(El,ge),Re(Pl,ue),Re(Il,V),Re(zl,A),Re(Hi,C),Re(Rl,ke),q(st))if(st.length){const fe=e.exposed||(e.exposed={});st.forEach(oe=>{Object.defineProperty(fe,oe,{get:()=>n[oe],set:Tt=>n[oe]=Tt,enumerable:!0})})}else e.exposed||(e.exposed={});U&&e.render===nt&&(e.render=U),en!=null&&(e.inheritAttrs=en),An&&(e.components=An),Zn&&(e.directives=Zn),ke&&qi(e)}function Nl(e,t,n=nt){q(e)&&(e=Qo(e));for(const o in e){const s=e[o];let r;de(s)?"default"in s?r=Bn(s.from||o,s.default,!0):r=Bn(s.from||o):r=Bn(s),ze(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[o]=r}}function pr(e,t,n){ot(q(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Vi(e,t,n,o){let s=o.includes(".")?Di(n,o):()=>n[o];if(_e(e)){const r=t[e];D(r)&&No(s,r)}else if(D(e))No(s,e.bind(n));else if(de(e))if(q(e))e.forEach(r=>Vi(r,t,n,o));else{const r=D(e.handler)?e.handler.bind(n):t[e.handler];D(r)&&No(s,r,e)}}function Ji(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let c;return a?c=a:!s.length&&!n&&!o?c=t:(c={},s.length&&s.forEach(u=>eo(c,u,i,!0)),eo(c,t,i)),de(t)&&r.set(t,c),c}function eo(e,t,n,o=!1){const{mixins:s,extends:r}=t;r&&eo(e,r,n,!0),s&&s.forEach(i=>eo(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const a=Al[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Al={data:mr,props:gr,emits:gr,methods:an,computed:an,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:an,directives:an,watch:Ml,provide:mr,inject:Zl};function mr(e,t){return t?e?function(){return ye(D(e)?e.call(this,this):e,D(t)?t.call(this,this):t)}:t:e}function Zl(e,t){return an(Qo(e),Qo(t))}function Qo(e){if(q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ie(e,t){return e?[...new Set([].concat(e,t))]:t}function an(e,t){return e?ye(Object.create(null),e,t):t}function gr(e,t){return e?q(e)&&q(t)?[...new Set([...e,...t])]:ye(Object.create(null),hr(e),hr(t??{})):t}function Ml(e,t){if(!e)return t;if(!t)return e;const n=ye(Object.create(null),e);for(const o in t)n[o]=Ie(e[o],t[o]);return n}function Bi(){return{app:null,config:{isNativeTag:ci,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 jl=0;function Dl(e,t){return function(o,s=null){D(o)||(o=ye({},o)),s!=null&&!de(s)&&(s=null);const r=Bi(),i=new WeakSet,a=[];let c=!1;const u=r.app={_uid:jl++,_component:o,_props:s,_container:null,_context:r,_instance:null,version:wu,get config(){return r.config},set config(l){},use(l,...d){return i.has(l)||(l&&D(l.install)?(i.add(l),l.install(u,...d)):D(l)&&(i.add(l),l(u,...d))),u},mixin(l){return r.mixins.includes(l)||r.mixins.push(l),u},component(l,d){return d?(r.components[l]=d,u):r.components[l]},directive(l,d){return d?(r.directives[l]=d,u):r.directives[l]},mount(l,d,p){if(!c){const _=u._ceVNode||Ct(o,s);return _.appContext=r,p===!0?p="svg":p===!1&&(p=void 0),e(_,l,p),c=!0,u._container=l,l.__vue_app__=u,_o(_.component)}},onUnmount(l){a.push(l)},unmount(){c&&(ot(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(l,d){return r.provides[l]=d,u},runWithContext(l){const d=Vt;Vt=u;try{return l()}finally{Vt=d}}};return u}}let Vt=null;const ql=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${_t(t)}Modifiers`]||e[`${Ot(t)}Modifiers`];function Fl(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||te;let s=n;const r=t.startsWith("update:"),i=r&&ql(o,t.slice(7));i&&(i.trim&&(s=n.map(l=>_e(l)?l.trim():l)),i.number&&(s=n.map(us)));let a,c=o[a=Io(t)]||o[a=Io(_t(t))];!c&&r&&(c=o[a=Io(Ot(t))]),c&&ot(c,e,6,s);const u=o[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ot(u,e,6,s)}}const Ll=new WeakMap;function Wi(e,t,n=!1){const o=n?Ll:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const r=e.emits;let i={},a=!1;if(!D(e)){const c=u=>{const l=Wi(u,t,!0);l&&(a=!0,ye(i,l))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!a?(de(e)&&o.set(e,null),null):(q(r)?r.forEach(c=>i[c]=null):ye(i,r),de(e)&&o.set(e,i),i)}function mo(e,t){return!e||!ao(t)?!1:(t=t.slice(2).replace(/Once$/,""),G(e,t[0].toLowerCase()+t.slice(1))||G(e,Ot(t))||G(e,t))}function _r(e){const{type:t,vnode:n,proxy:o,withProxy:s,propsOptions:[r],slots:i,attrs:a,emit:c,render:u,renderCache:l,props:d,data:p,setupState:_,ctx:x,inheritAttrs:z}=e,F=Yn(e);let Z,A;try{if(n.shapeFlag&4){const C=s||o,U=C;Z=tt(u.call(U,C,l,d,_,p,x)),A=a}else{const C=t;Z=tt(C.length>1?C(d,{attrs:a,slots:i,emit:c}):C(d,null)),A=t.props?a:Ul(a)}}catch(C){mn.length=0,ho(C,e,1),Z=Ct(Bt)}let B=Z;if(A&&z!==!1){const C=Object.keys(A),{shapeFlag:U}=B;C.length&&U&7&&(r&&C.some(as)&&(A=Hl(A,r)),B=Wt(B,A,!1,!0))}return n.dirs&&(B=Wt(B,null,!1,!0),B.dirs=B.dirs?B.dirs.concat(n.dirs):n.dirs),n.transition&&ks(B,n.transition),Z=B,Yn(F),Z}const Ul=e=>{let t;for(const n in e)(n==="class"||n==="style"||ao(n))&&((t||(t={}))[n]=e[n]);return t},Hl=(e,t)=>{const n={};for(const o in e)(!as(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Vl(e,t,n){const{props:o,children:s,component:r}=e,{props:i,children:a,patchFlag:c}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return o?br(o,i,u):!!i;if(c&8){const l=t.dynamicProps;for(let d=0;d<l.length;d++){const p=l[d];if(i[p]!==o[p]&&!mo(u,p))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:o===i?!1:o?i?br(o,i,u):!0:!!i;return!1}function br(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(t[r]!==e[r]&&!mo(n,r))return!0}return!1}function Jl({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const Ki={},Gi=()=>Object.create(Ki),Qi=e=>Object.getPrototypeOf(e)===Ki;function Bl(e,t,n,o=!1){const s={},r=Gi();e.propsDefaults=Object.create(null),Yi(e,t,s,r);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=o?s:Gc(s):e.type.props?e.props=s:e.props=r,e.attrs=r}function Wl(e,t,n,o){const{props:s,attrs:r,vnode:{patchFlag:i}}=e,a=K(s),[c]=e.propsOptions;let u=!1;if((o||i>0)&&!(i&16)){if(i&8){const l=e.vnode.dynamicProps;for(let d=0;d<l.length;d++){let p=l[d];if(mo(e.emitsOptions,p))continue;const _=t[p];if(c)if(G(r,p))_!==r[p]&&(r[p]=_,u=!0);else{const x=_t(p);s[x]=Yo(c,a,x,_,e,!1)}else _!==r[p]&&(r[p]=_,u=!0)}}}else{Yi(e,t,s,r)&&(u=!0);let l;for(const d in a)(!t||!G(t,d)&&((l=Ot(d))===d||!G(t,l)))&&(c?n&&(n[d]!==void 0||n[l]!==void 0)&&(s[d]=Yo(c,a,d,void 0,e,!0)):delete s[d]);if(r!==a)for(const d in r)(!t||!G(t,d))&&(delete r[d],u=!0)}u&&at(e.attrs,"set","")}function Yi(e,t,n,o){const[s,r]=e.propsOptions;let i=!1,a;if(t)for(let c in t){if(ln(c))continue;const u=t[c];let l;s&&G(s,l=_t(c))?!r||!r.includes(l)?n[l]=u:(a||(a={}))[l]=u:mo(e.emitsOptions,c)||(!(c in o)||u!==o[c])&&(o[c]=u,i=!0)}if(r){const c=K(n),u=a||te;for(let l=0;l<r.length;l++){const d=r[l];n[d]=Yo(s,c,d,u[d],e,!G(u,d))}}return i}function Yo(e,t,n,o,s,r){const i=e[n];if(i!=null){const a=G(i,"default");if(a&&o===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&D(c)){const{propsDefaults:u}=s;if(n in u)o=u[n];else{const l=zn(s);o=u[n]=c.call(null,t),l()}}else o=c;s.ce&&s.ce._setProp(n,o)}i[0]&&(r&&!a?o=!1:i[1]&&(o===""||o===Ot(n))&&(o=!0))}return o}const Kl=new WeakMap;function Xi(e,t,n=!1){const o=n?Kl:t.propsCache,s=o.get(e);if(s)return s;const r=e.props,i={},a=[];let c=!1;if(!D(e)){const l=d=>{c=!0;const[p,_]=Xi(d,t,!0);ye(i,p),_&&a.push(..._)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!r&&!c)return de(e)&&o.set(e,Ft),Ft;if(q(r))for(let l=0;l<r.length;l++){const d=_t(r[l]);vr(d)&&(i[d]=te)}else if(r)for(const l in r){const d=_t(l);if(vr(d)){const p=r[l],_=i[d]=q(p)||D(p)?{type:p}:ye({},p),x=_.type;let z=!1,F=!0;if(q(x))for(let Z=0;Z<x.length;++Z){const A=x[Z],B=D(A)&&A.name;if(B==="Boolean"){z=!0;break}else B==="String"&&(F=!1)}else z=D(x)&&x.name==="Boolean";_[0]=z,_[1]=F,(z||G(_,"default"))&&a.push(d)}}const u=[i,a];return de(e)&&o.set(e,u),u}function vr(e){return e[0]!=="$"&&!ln(e)}const Ts=e=>e==="_"||e==="_ctx"||e==="$stable",xs=e=>q(e)?e.map(tt):[tt(e)],Gl=(e,t,n)=>{if(t._n)return t;const o=ul((...s)=>xs(t(...s)),n);return o._c=!1,o},ea=(e,t,n)=>{const o=e._ctx;for(const s in e){if(Ts(s))continue;const r=e[s];if(D(r))t[s]=Gl(s,r,o);else if(r!=null){const i=xs(r);t[s]=()=>i}}},ta=(e,t)=>{const n=xs(t);e.slots.default=()=>n},na=(e,t,n)=>{for(const o in t)(n||!Ts(o))&&(e[o]=t[o])},Ql=(e,t,n)=>{const o=e.slots=Gi();if(e.vnode.shapeFlag&32){const s=t._;s?(na(o,t,n),n&&pi(o,"_",s,!0)):ea(t,o)}else t&&ta(e,t)},Yl=(e,t,n)=>{const{vnode:o,slots:s}=e;let r=!0,i=te;if(o.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:na(s,t,n):(r=!t.$stable,ea(t,s)),i=t}else t&&(ta(e,t),i={default:1});if(r)for(const a in s)!Ts(a)&&i[a]==null&&delete s[a]},je=ou;function Xl(e){return eu(e)}function eu(e,t){const n=uo();n.__VUE__=!0;const{insert:o,remove:s,patchProp:r,createElement:i,createText:a,createComment:c,setText:u,setElementText:l,parentNode:d,nextSibling:p,setScopeId:_=nt,insertStaticContent:x}=e,z=(f,h,v,T=null,w=null,S=null,P=void 0,I=null,R=!!h.dynamicChildren)=>{if(f===h)return;f&&!rn(f,h)&&(T=jn(f),We(f,w,S,!0),f=null),h.patchFlag===-2&&(R=!1,h.dynamicChildren=null);const{type:k,ref:N,shapeFlag:E}=h;switch(k){case go:F(f,h,v,T);break;case Bt:Z(f,h,v,T);break;case Mo:f==null&&A(h,v,T,P);break;case et:An(f,h,v,T,w,S,P,I,R);break;default:E&1?U(f,h,v,T,w,S,P,I,R):E&6?Zn(f,h,v,T,w,S,P,I,R):(E&64||E&128)&&k.process(f,h,v,T,w,S,P,I,R,nn)}N!=null&&w?dn(N,f&&f.ref,S,h||f,!h):N==null&&f&&f.ref!=null&&dn(f.ref,null,S,f,!0)},F=(f,h,v,T)=>{if(f==null)o(h.el=a(h.children),v,T);else{const w=h.el=f.el;h.children!==f.children&&u(w,h.children)}},Z=(f,h,v,T)=>{f==null?o(h.el=c(h.children||""),v,T):h.el=f.el},A=(f,h,v,T)=>{[f.el,f.anchor]=x(f.children,h,v,T,f.el,f.anchor)},B=({el:f,anchor:h},v,T)=>{let w;for(;f&&f!==h;)w=p(f),o(f,v,T),f=w;o(h,v,T)},C=({el:f,anchor:h})=>{let v;for(;f&&f!==h;)v=p(f),s(f),f=v;s(h)},U=(f,h,v,T,w,S,P,I,R)=>{if(h.type==="svg"?P="svg":h.type==="math"&&(P="mathml"),f==null)ue(h,v,T,w,S,P,I,R);else{const k=f.el&&f.el._isVueCE?f.el:null;try{k&&k._beginPatch(),ke(f,h,w,S,P,I,R)}finally{k&&k._endPatch()}}},ue=(f,h,v,T,w,S,P,I)=>{let R,k;const{props:N,shapeFlag:E,transition:O,dirs:M}=f;if(R=f.el=i(f.type,S,N&&N.is,N),E&8?l(R,f.children):E&16&&ge(f.children,R,null,T,w,Zo(f,S),P,I),M&&zt(f,null,T,"created"),V(R,f,f.scopeId,P,T),N){for(const se in N)se!=="value"&&!ln(se)&&r(R,se,null,N[se],S,T);"value"in N&&r(R,"value",null,N.value,S),(k=N.onVnodeBeforeMount)&&Ye(k,T,f)}M&&zt(f,null,T,"beforeMount");const J=tu(w,O);J&&O.beforeEnter(R),o(R,h,v),((k=N&&N.onVnodeMounted)||J||M)&&je(()=>{k&&Ye(k,T,f),J&&O.enter(R),M&&zt(f,null,T,"mounted")},w)},V=(f,h,v,T,w)=>{if(v&&_(f,v),T)for(let S=0;S<T.length;S++)_(f,T[S]);if(w){let S=w.subTree;if(h===S||ia(S.type)&&(S.ssContent===h||S.ssFallback===h)){const P=w.vnode;V(f,P,P.scopeId,P.slotScopeIds,w.parent)}}},ge=(f,h,v,T,w,S,P,I,R=0)=>{for(let k=R;k<f.length;k++){const N=f[k]=I?mt(f[k]):tt(f[k]);z(null,N,h,v,T,w,S,P,I)}},ke=(f,h,v,T,w,S,P)=>{const I=h.el=f.el;let{patchFlag:R,dynamicChildren:k,dirs:N}=h;R|=f.patchFlag&16;const E=f.props||te,O=h.props||te;let M;if(v&&Rt(v,!1),(M=O.onVnodeBeforeUpdate)&&Ye(M,v,h,f),N&&zt(h,f,v,"beforeUpdate"),v&&Rt(v,!0),(E.innerHTML&&O.innerHTML==null||E.textContent&&O.textContent==null)&&l(I,""),k?st(f.dynamicChildren,k,I,v,T,Zo(h,w),S):P||oe(f,h,I,null,v,T,Zo(h,w),S,!1),R>0){if(R&16)en(I,E,O,v,w);else if(R&2&&E.class!==O.class&&r(I,"class",null,O.class,w),R&4&&r(I,"style",E.style,O.style,w),R&8){const J=h.dynamicProps;for(let se=0;se<J.length;se++){const Y=J[se],Ce=E[Y],Oe=O[Y];(Oe!==Ce||Y==="value")&&r(I,Y,Ce,Oe,w,v)}}R&1&&f.children!==h.children&&l(I,h.children)}else!P&&k==null&&en(I,E,O,v,w);((M=O.onVnodeUpdated)||N)&&je(()=>{M&&Ye(M,v,h,f),N&&zt(h,f,v,"updated")},T)},st=(f,h,v,T,w,S,P)=>{for(let I=0;I<h.length;I++){const R=f[I],k=h[I],N=R.el&&(R.type===et||!rn(R,k)||R.shapeFlag&198)?d(R.el):v;z(R,k,N,null,T,w,S,P,!0)}},en=(f,h,v,T,w)=>{if(h!==v){if(h!==te)for(const S in h)!ln(S)&&!(S in v)&&r(f,S,h[S],null,w,T);for(const S in v){if(ln(S))continue;const P=v[S],I=h[S];P!==I&&S!=="value"&&r(f,S,I,P,w,T)}"value"in v&&r(f,"value",h.value,v.value,w)}},An=(f,h,v,T,w,S,P,I,R)=>{const k=h.el=f?f.el:a(""),N=h.anchor=f?f.anchor:a("");let{patchFlag:E,dynamicChildren:O,slotScopeIds:M}=h;M&&(I=I?I.concat(M):M),f==null?(o(k,v,T),o(N,v,T),ge(h.children||[],v,N,w,S,P,I,R)):E>0&&E&64&&O&&f.dynamicChildren&&f.dynamicChildren.length===O.length?(st(f.dynamicChildren,O,v,w,S,P,I),(h.key!=null||w&&h===w.subTree)&&oa(f,h,!0)):oe(f,h,v,N,w,S,P,I,R)},Zn=(f,h,v,T,w,S,P,I,R)=>{h.slotScopeIds=I,f==null?h.shapeFlag&512?w.ctx.activate(h,v,T,P,R):zo(h,v,T,w,S,P,R):nr(f,h,R)},zo=(f,h,v,T,w,S,P)=>{const I=f.component=hu(f,T,w);if(Fi(f)&&(I.ctx.renderer=nn),mu(I,!1,P),I.asyncDep){if(w&&w.registerDep(I,Re,P),!f.el){const R=I.subTree=Ct(Bt);Z(null,R,h,v),f.placeholder=R.el}}else Re(I,f,h,v,w,S,P)},nr=(f,h,v)=>{const T=h.component=f.component;if(Vl(f,h,v))if(T.asyncDep&&!T.asyncResolved){fe(T,h,v);return}else T.next=h,T.update();else h.el=f.el,T.vnode=h},Re=(f,h,v,T,w,S,P)=>{const I=()=>{if(f.isMounted){let{next:E,bu:O,u:M,parent:J,vnode:se}=f;{const Ge=sa(f);if(Ge){E&&(E.el=se.el,fe(f,E,P)),Ge.asyncDep.then(()=>{f.isUnmounted||I()});return}}let Y=E,Ce;Rt(f,!1),E?(E.el=se.el,fe(f,E,P)):E=se,O&&Jn(O),(Ce=E.props&&E.props.onVnodeBeforeUpdate)&&Ye(Ce,J,E,se),Rt(f,!0);const Oe=_r(f),Ke=f.subTree;f.subTree=Oe,z(Ke,Oe,d(Ke.el),jn(Ke),f,w,S),E.el=Oe.el,Y===null&&Jl(f,Oe.el),M&&je(M,w),(Ce=E.props&&E.props.onVnodeUpdated)&&je(()=>Ye(Ce,J,E,se),w)}else{let E;const{el:O,props:M}=h,{bm:J,m:se,parent:Y,root:Ce,type:Oe}=f,Ke=hn(h);Rt(f,!1),J&&Jn(J),!Ke&&(E=M&&M.onVnodeBeforeMount)&&Ye(E,Y,h),Rt(f,!0);{Ce.ce&&Ce.ce._def.shadowRoot!==!1&&Ce.ce._injectChildStyle(Oe);const Ge=f.subTree=_r(f);z(null,Ge,v,T,f,w,S),h.el=Ge.el}if(se&&je(se,w),!Ke&&(E=M&&M.onVnodeMounted)){const Ge=h;je(()=>Ye(E,Y,Ge),w)}(h.shapeFlag&256||Y&&hn(Y.vnode)&&Y.vnode.shapeFlag&256)&&f.a&&je(f.a,w),f.isMounted=!0,h=v=T=null}};f.scope.on();const R=f.effect=new vi(I);f.scope.off();const k=f.update=R.run.bind(R),N=f.job=R.runIfDirty.bind(R);N.i=f,N.id=f.uid,R.scheduler=()=>ws(N),Rt(f,!0),k()},fe=(f,h,v)=>{h.component=f;const T=f.vnode.props;f.vnode=h,f.next=null,Wl(f,h.props,T,v),Yl(f,h.children,v),lt(),fr(f),ut()},oe=(f,h,v,T,w,S,P,I,R=!1)=>{const k=f&&f.children,N=f?f.shapeFlag:0,E=h.children,{patchFlag:O,shapeFlag:M}=h;if(O>0){if(O&128){Mn(k,E,v,T,w,S,P,I,R);return}else if(O&256){Tt(k,E,v,T,w,S,P,I,R);return}}M&8?(N&16&&tn(k,w,S),E!==k&&l(v,E)):N&16?M&16?Mn(k,E,v,T,w,S,P,I,R):tn(k,w,S,!0):(N&8&&l(v,""),M&16&&ge(E,v,T,w,S,P,I,R))},Tt=(f,h,v,T,w,S,P,I,R)=>{f=f||Ft,h=h||Ft;const k=f.length,N=h.length,E=Math.min(k,N);let O;for(O=0;O<E;O++){const M=h[O]=R?mt(h[O]):tt(h[O]);z(f[O],M,v,null,w,S,P,I,R)}k>N?tn(f,w,S,!0,!1,E):ge(h,v,T,w,S,P,I,R,E)},Mn=(f,h,v,T,w,S,P,I,R)=>{let k=0;const N=h.length;let E=f.length-1,O=N-1;for(;k<=E&&k<=O;){const M=f[k],J=h[k]=R?mt(h[k]):tt(h[k]);if(rn(M,J))z(M,J,v,null,w,S,P,I,R);else break;k++}for(;k<=E&&k<=O;){const M=f[E],J=h[O]=R?mt(h[O]):tt(h[O]);if(rn(M,J))z(M,J,v,null,w,S,P,I,R);else break;E--,O--}if(k>E){if(k<=O){const M=O+1,J=M<N?h[M].el:T;for(;k<=O;)z(null,h[k]=R?mt(h[k]):tt(h[k]),v,J,w,S,P,I,R),k++}}else if(k>O)for(;k<=E;)We(f[k],w,S,!0),k++;else{const M=k,J=k,se=new Map;for(k=J;k<=O;k++){const Me=h[k]=R?mt(h[k]):tt(h[k]);Me.key!=null&&se.set(Me.key,k)}let Y,Ce=0;const Oe=O-J+1;let Ke=!1,Ge=0;const on=new Array(Oe);for(k=0;k<Oe;k++)on[k]=0;for(k=M;k<=E;k++){const Me=f[k];if(Ce>=Oe){We(Me,w,S,!0);continue}let Qe;if(Me.key!=null)Qe=se.get(Me.key);else for(Y=J;Y<=O;Y++)if(on[Y-J]===0&&rn(Me,h[Y])){Qe=Y;break}Qe===void 0?We(Me,w,S,!0):(on[Qe-J]=k+1,Qe>=Ge?Ge=Qe:Ke=!0,z(Me,h[Qe],v,null,w,S,P,I,R),Ce++)}const rr=Ke?nu(on):Ft;for(Y=rr.length-1,k=Oe-1;k>=0;k--){const Me=J+k,Qe=h[Me],ir=h[Me+1],ar=Me+1<N?ir.el||ra(ir):T;on[k]===0?z(null,Qe,v,ar,w,S,P,I,R):Ke&&(Y<0||k!==rr[Y]?xt(Qe,v,ar,2):Y--)}}},xt=(f,h,v,T,w=null)=>{const{el:S,type:P,transition:I,children:R,shapeFlag:k}=f;if(k&6){xt(f.component.subTree,h,v,T);return}if(k&128){f.suspense.move(h,v,T);return}if(k&64){P.move(f,h,v,nn);return}if(P===et){o(S,h,v);for(let E=0;E<R.length;E++)xt(R[E],h,v,T);o(f.anchor,h,v);return}if(P===Mo){B(f,h,v);return}if(T!==2&&k&1&&I)if(T===0)I.beforeEnter(S),o(S,h,v),je(()=>I.enter(S),w);else{const{leave:E,delayLeave:O,afterLeave:M}=I,J=()=>{f.ctx.isUnmounted?s(S):o(S,h,v)},se=()=>{S._isLeaving&&S[bl](!0),E(S,()=>{J(),M&&M()})};O?O(S,J,se):se()}else o(S,h,v)},We=(f,h,v,T=!1,w=!1)=>{const{type:S,props:P,ref:I,children:R,dynamicChildren:k,shapeFlag:N,patchFlag:E,dirs:O,cacheIndex:M}=f;if(E===-2&&(w=!1),I!=null&&(lt(),dn(I,null,v,f,!0),ut()),M!=null&&(h.renderCache[M]=void 0),N&256){h.ctx.deactivate(f);return}const J=N&1&&O,se=!hn(f);let Y;if(se&&(Y=P&&P.onVnodeBeforeUnmount)&&Ye(Y,h,f),N&6)_c(f.component,v,T);else{if(N&128){f.suspense.unmount(v,T);return}J&&zt(f,null,h,"beforeUnmount"),N&64?f.type.remove(f,h,v,nn,T):k&&!k.hasOnce&&(S!==et||E>0&&E&64)?tn(k,h,v,!1,!0):(S===et&&E&384||!w&&N&16)&&tn(R,h,v),T&&or(f)}(se&&(Y=P&&P.onVnodeUnmounted)||J)&&je(()=>{Y&&Ye(Y,h,f),J&&zt(f,null,h,"unmounted")},v)},or=f=>{const{type:h,el:v,anchor:T,transition:w}=f;if(h===et){gc(v,T);return}if(h===Mo){C(f);return}const S=()=>{s(v),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(f.shapeFlag&1&&w&&!w.persisted){const{leave:P,delayLeave:I}=w,R=()=>P(v,S);I?I(f.el,S,R):R()}else S()},gc=(f,h)=>{let v;for(;f!==h;)v=p(f),s(f),f=v;s(h)},_c=(f,h,v)=>{const{bum:T,scope:w,job:S,subTree:P,um:I,m:R,a:k}=f;yr(R),yr(k),T&&Jn(T),w.stop(),S&&(S.flags|=8,We(P,f,h,v)),I&&je(I,h),je(()=>{f.isUnmounted=!0},h)},tn=(f,h,v,T=!1,w=!1,S=0)=>{for(let P=S;P<f.length;P++)We(f[P],h,v,T,w)},jn=f=>{if(f.shapeFlag&6)return jn(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=p(f.anchor||f.el),v=h&&h[gl];return v?p(v):h};let Ro=!1;const sr=(f,h,v)=>{let T;f==null?h._vnode&&(We(h._vnode,null,null,!0),T=h._vnode.component):z(h._vnode||null,f,h,null,null,null,v),h._vnode=f,Ro||(Ro=!0,fr(T),Zi(),Ro=!1)},nn={p:z,um:We,m:xt,r:or,mt:zo,mc:ge,pc:oe,pbc:st,n:jn,o:e};return{render:sr,hydrate:void 0,createApp:Dl(sr)}}function Zo({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 Rt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function tu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function oa(e,t,n=!1){const o=e.children,s=t.children;if(q(o)&&q(s))for(let r=0;r<o.length;r++){const i=o[r];let a=s[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[r]=mt(s[r]),a.el=i.el),!n&&a.patchFlag!==-2&&oa(i,a)),a.type===go&&(a.patchFlag!==-1?a.el=i.el:a.__elIndex=r+(e.type===et?1:0)),a.type===Bt&&!a.el&&(a.el=i.el)}}function nu(e){const t=e.slice(),n=[0];let o,s,r,i,a;const c=e.length;for(o=0;o<c;o++){const u=e[o];if(u!==0){if(s=n[n.length-1],e[s]<u){t[o]=s,n.push(o);continue}for(r=0,i=n.length-1;r<i;)a=r+i>>1,e[n[a]]<u?r=a+1:i=a;u<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 sa(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:sa(t)}function yr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ra(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ra(t.subTree):null}const ia=e=>e.__isSuspense;function ou(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):ll(e)}const et=Symbol.for("v-fgt"),go=Symbol.for("v-txt"),Bt=Symbol.for("v-cmt"),Mo=Symbol.for("v-stc"),mn=[];let De=null;function su(e=!1){mn.push(De=e?null:[])}function ru(){mn.pop(),De=mn[mn.length-1]||null}let yn=1;function wr(e,t=!1){yn+=e,e<0&&De&&t&&(De.hasOnce=!0)}function iu(e){return e.dynamicChildren=yn>0?De||Ft:null,ru(),yn>0&&De&&De.push(e),e}function au(e,t,n,o,s,r){return iu(be(e,t,n,o,s,r,!0))}function aa(e){return e?e.__v_isVNode===!0:!1}function rn(e,t){return e.type===t.type&&e.key===t.key}const ca=({key:e})=>e??null,Wn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||ze(e)||D(e)?{i:Le,r:e,k:t,f:!!n}:e:null);function be(e,t=null,n=null,o=0,s=null,r=e===et?0:1,i=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ca(t),ref:t&&Wn(t),scopeId:ji,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:Le};return a?(zs(c,n),r&128&&e.normalize(c)):n&&(c.shapeFlag|=_e(n)?8:16),yn>0&&!i&&De&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&De.push(c),c}const Ct=cu;function cu(e,t=null,n=null,o=0,s=null,r=!1){if((!e||e===$l)&&(e=Bt),aa(e)){const a=Wt(e,t,!0);return n&&zs(a,n),yn>0&&!r&&De&&(a.shapeFlag&6?De[De.indexOf(e)]=a:De.push(a)),a.patchFlag=-2,a}if(vu(e)&&(e=e.__vccOpts),t){t=lu(t);let{class:a,style:c}=t;a&&!_e(a)&&(t.class=fs(a)),de(c)&&(ys(c)&&!q(c)&&(c=ye({},c)),t.style=fo(c))}const i=_e(e)?1:ia(e)?128:_l(e)?64:de(e)?4:D(e)?2:0;return be(e,t,n,o,s,i,r,!0)}function lu(e){return e?ys(e)||Qi(e)?ye({},e):e:null}function Wt(e,t,n=!1,o=!1){const{props:s,ref:r,patchFlag:i,children:a,transition:c}=e,u=t?uu(s||{},t):s,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&ca(u),ref:t&&t.ref?n&&r?q(r)?r.concat(Wn(t)):[r,Wn(t)]:Wn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==et?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Wt(e.ssContent),ssFallback:e.ssFallback&&Wt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&ks(l,c.clone(l)),l}function la(e=" ",t=0){return Ct(go,null,e,t)}function tt(e){return e==null||typeof e=="boolean"?Ct(Bt):q(e)?Ct(et,null,e.slice()):aa(e)?mt(e):Ct(go,null,String(e))}function mt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Wt(e)}function zs(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(q(t))n=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),zs(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Qi(t)?t._ctx=Le:s===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else D(t)?(t={default:t,_ctx:Le},n=32):(t=String(t),o&64?(n=16,t=[la(t)]):n=8);e.children=t,e.shapeFlag|=n}function uu(...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=fs([t.class,o.class]));else if(s==="style")t.style=fo([t.style,o.style]);else if(ao(s)){const r=t[s],i=o[s];i&&r!==i&&!(q(r)&&r.includes(i))&&(t[s]=r?[].concat(r,i):i)}else s!==""&&(t[s]=o[s])}return t}function Ye(e,t,n,o=null){ot(e,t,7,[n,o])}const fu=Bi();let du=0;function hu(e,t,n){const o=e.type,s=(t?t.appContext:e.appContext)||fu,r={uid:du++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ec(!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:Xi(o,s),emitsOptions:Wi(o,s),emit:null,emitted:null,propsDefaults:te,inheritAttrs:o.inheritAttrs,ctx:te,data:te,props:te,attrs:te,slots:te,refs:te,setupState:te,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=Fl.bind(null,r),e.ce&&e.ce(r),r}let $e=null;const pu=()=>$e||Le;let to,Xo;{const e=uo(),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)}};to=t("__VUE_INSTANCE_SETTERS__",n=>$e=n),Xo=t("__VUE_SSR_SETTERS__",n=>wn=n)}const zn=e=>{const t=$e;return to(e),e.scope.on(),()=>{e.scope.off(),to(t)}},Sr=()=>{$e&&$e.scope.off(),to(null)};function ua(e){return e.vnode.shapeFlag&4}let wn=!1;function mu(e,t=!1,n=!1){t&&Xo(t);const{props:o,children:s}=e.vnode,r=ua(e);Bl(e,o,r,t),Ql(e,s,n||t);const i=r?gu(e,t):void 0;return t&&Xo(!1),i}function gu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Cl);const{setup:o}=n;if(o){lt();const s=e.setupContext=o.length>1?bu(e):null,r=zn(e),i=xn(o,e,0,[e.props,s]),a=ui(i);if(ut(),r(),(a||e.sp)&&!hn(e)&&qi(e),a){if(i.then(Sr,Sr),t)return i.then(c=>{kr(e,c)}).catch(c=>{ho(c,e,0)});e.asyncDep=i}else kr(e,i)}else fa(e)}function kr(e,t,n){D(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=Oi(t)),fa(e)}function fa(e,t,n){const o=e.type;e.render||(e.render=o.render||nt);{const s=zn(e);lt();try{Ol(e)}finally{ut(),s()}}}const _u={get(e,t){return xe(e,"get",""),e[t]}};function bu(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,_u),slots:e.slots,emit:e.emit,expose:t}}function _o(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Oi(Qc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in pn)return pn[n](e)},has(t,n){return n in t||n in pn}})):e.proxy}function vu(e){return D(e)&&"__vccOpts"in e}const yu=(e,t)=>ol(e,t,wn),wu="3.5.27";/**
21
21
  * @vue/runtime-dom v3.5.27
22
22
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
23
23
  * @license MIT
24
- **/let es;const Tr=typeof window<"u"&&window.trustedTypes;if(Tr)try{es=Tr.createPolicy("vue",{createHTML:e=>e})}catch{}const da=es?e=>es.createHTML(e):e=>e,Su="http://www.w3.org/2000/svg",ku="http://www.w3.org/1998/Math/MathML",it=typeof document<"u"?document:null,xr=it&&it.createElement("template"),Tu={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"?it.createElementNS(Su,e):t==="mathml"?it.createElementNS(ku,e):n?it.createElement(e,{is:n}):it.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>it.createTextNode(e),createComment:e=>it.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>it.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{xr.innerHTML=da(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const a=xr.content;if(o==="svg"||o==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},xu=Symbol("_vtc");function zu(e,t,n){const o=e[xu];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const zr=Symbol("_vod"),Ru=Symbol("_vsh"),Iu=Symbol(""),Pu=/(?:^|;)\s*display\s*:/;function Eu(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 a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Kn(o,a,"")}else for(const i in t)n[i]==null&&Kn(o,i,"");for(const i in n)i==="display"&&(r=!0),Kn(o,i,n[i])}else if(s){if(t!==n){const i=o[Iu];i&&(n+=";"+i),o.cssText=n,r=Pu.test(n)}}else t&&e.removeAttribute("style");zr in e&&(e[zr]=r?o.display:"",e[Ru]&&(o.display="none"))}const Rr=/\s*!important$/;function Kn(e,t,n){if(F(n))n.forEach(o=>Kn(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=$u(e,t);Rr.test(n)?e.setProperty(Ot(o),n.replace(Rr,""),"important"):e[o]=n}}const Ir=["Webkit","Moz","ms"],jo={};function $u(e,t){const n=jo[t];if(n)return n;let o=_t(t);if(o!=="filter"&&o in e)return jo[t]=o;o=hi(o);for(let s=0;s<Ir.length;s++){const r=Ir[s]+o;if(r in e)return jo[t]=r}return t}const Pr="http://www.w3.org/1999/xlink";function Er(e,t,n,o,s,r=Pc(t)){o&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Pr,t.slice(6,t.length)):e.setAttributeNS(Pr,t,n):n==null||r&&!mi(n)?e.removeAttribute(t):e.setAttribute(t,r?"":wt(n)?String(n):n)}function $r(e,t,n,o,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?da(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(a!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=mi(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(s||t)}function jt(e,t,n,o){e.addEventListener(t,n,o)}function Cu(e,t,n,o){e.removeEventListener(t,n,o)}const Cr=Symbol("_vei");function Ou(e,t,n,o,s=null){const r=e[Cr]||(e[Cr]={}),i=r[t];if(o&&i)i.value=o;else{const[a,c]=Nu(t);if(o){const u=r[t]=Mu(o,s);jt(e,a,u,c)}else i&&(Cu(e,a,i,c),r[t]=void 0)}}const Or=/(?:Once|Passive|Capture)$/;function Nu(e){let t;if(Or.test(e)){t={};let o;for(;o=e.match(Or);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ot(e.slice(2)),t]}let Do=0;const Au=Promise.resolve(),Zu=()=>Do||(Au.then(()=>Do=0),Do=Date.now());function Mu(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;ot(ju(o,n.value),t,5,[o])};return n.value=e,n.attached=Zu(),n}function ju(e,t){if(F(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Nr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Du=(e,t,n,o,s,r)=>{const i=s==="svg";t==="class"?zu(e,o,i):t==="style"?Eu(e,n,o):ao(t)?as(t)||Ou(e,t,n,o,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Fu(e,t,o,i))?($r(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Er(e,t,o,i,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!_e(o))?$r(e,_t(t),o,r,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Er(e,t,o,i))};function Fu(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Nr(t)&&D(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 Nr(t)&&_e(n)?!1:t in e}const Ar=e=>{const t=e.props["onUpdate:modelValue"]||!1;return F(t)?n=>Jn(t,n):t};function qu(e){e.target.composing=!0}function Zr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fo=Symbol("_assign");function Mr(e,t,n){return t&&(e=e.trim()),n&&(e=us(e)),e}const qo={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e[Fo]=Ar(s);const r=o||s.props&&s.props.type==="number";jt(e,t?"change":"input",i=>{i.target.composing||e[Fo](Mr(e.value,n,r))}),(n||r)&&jt(e,"change",()=>{e.value=Mr(e.value,n,r)}),t||(jt(e,"compositionstart",qu),jt(e,"compositionend",Zr),jt(e,"change",Zr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:s,number:r}},i){if(e[Fo]=Ar(i),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?us(e.value):e.value,c=t??"";a!==c&&(document.activeElement===e&&e.type!=="range"&&(o&&t===n||s&&e.value.trim()===c)||(e.value=c))}},Lu=ye({patchProp:Du},Tu);let jr;function Uu(){return jr||(jr=Xl(Lu))}const Hu=((...e)=>{const t=Uu().createApp(...e),{mount:n}=t;return t.mount=o=>{const s=Ju(o);if(!s)return;const r=t._component;!D(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,Vu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t});function Vu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ju(e){return _e(e)?document.querySelector(e):e}function y(e,t,n){function o(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:i,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,c);const u=i.prototype,l=Object.keys(u);for(let d=0;d<l.length;d++){const p=l[d];p in a||(a[p]=u[p].bind(a))}}const s=(n==null?void 0:n.Parent)??Object;class r extends s{}Object.defineProperty(r,"name",{value:e});function i(a){var c;const u=n!=null&&n.Parent?new r:this;o(u,a),(c=u._zod).deferred??(c.deferred=[]);for(const l of u._zod.deferred)l();return u}return Object.defineProperty(i,"init",{value:o}),Object.defineProperty(i,Symbol.hasInstance,{value:a=>{var c,u;return n!=null&&n.Parent&&a instanceof n.Parent?!0:(u=(c=a==null?void 0:a._zod)==null?void 0:c.traits)==null?void 0:u.has(e)}}),Object.defineProperty(i,"name",{value:e}),i}class Jt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ha extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const pa={};function vt(e){return pa}function ma(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,s])=>t.indexOf(+o)===-1).map(([o,s])=>s)}function ts(e,t){return typeof t=="bigint"?t.toString():t}function bo(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Rs(e){return e==null}function Is(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Bu(e,t){const n=(e.toString().split(".")[1]||"").length,o=t.toString();let s=(o.split(".")[1]||"").length;if(s===0&&/\d?e-\d?/.test(o)){const c=o.match(/\d?e-(\d?)/);c!=null&&c[1]&&(s=Number.parseInt(c[1]))}const r=n>s?n:s,i=Number.parseInt(e.toFixed(r).replace(".","")),a=Number.parseInt(t.toFixed(r).replace(".",""));return i%a/10**r}const Dr=Symbol("evaluating");function Q(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Dr)return o===void 0&&(o=Dr,o=n()),o},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function Nt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function St(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function Fr(e){return JSON.stringify(e)}function Wu(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const ga="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Sn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Ku=bo(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Kt(e){if(Sn(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Sn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function _a(e){return Kt(e)?{...e}:Array.isArray(e)?[...e]:e}const Gu=new Set(["string","number","symbol"]);function Gt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function kt(e,t,n){const o=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(o._zod.parent=e),o}function $(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Qu(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Yu={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Xu(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const r=St(e._zod.def,{get shape(){const i={};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=n.shape[a])}return Nt(this,"shape",i),i},checks:[]});return kt(e,r)}function ef(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const r=St(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete i[a]}return Nt(this,"shape",i),i},checks:[]});return kt(e,r)}function tf(e,t){if(!Kt(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const r=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(r,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const s=St(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Nt(this,"shape",r),r}});return kt(e,s)}function nf(e,t){if(!Kt(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=St(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return Nt(this,"shape",o),o}});return kt(e,n)}function of(e,t){const n=St(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t._zod.def.shape};return Nt(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return kt(e,n)}function sf(e,t,n){const s=t._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=St(t._zod.def,{get shape(){const a=t._zod.def.shape,c={...a};if(n)for(const u in n){if(!(u in a))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(c[u]=e?new e({type:"optional",innerType:a[u]}):a[u])}else for(const u in a)c[u]=e?new e({type:"optional",innerType:a[u]}):a[u];return Nt(this,"shape",c),c},checks:[]});return kt(t,i)}function rf(e,t,n){const o=St(t._zod.def,{get shape(){const s=t._zod.def.shape,r={...s};if(n)for(const i in n){if(!(i in r))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(r[i]=new e({type:"nonoptional",innerType:s[i]}))}else for(const i in s)r[i]=new e({type:"nonoptional",innerType:s[i]});return Nt(this,"shape",r),r}});return kt(t,o)}function Dt(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)!==!0)return!0;return!1}function Ft(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Ln(e){return typeof e=="string"?e:e==null?void 0:e.message}function yt(e,t,n){var s,r,i,a,c,u;const o={...e,path:e.path??[]};if(!e.message){const l=Ln((i=(r=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:r.error)==null?void 0:i.call(r,e))??Ln((a=t==null?void 0:t.error)==null?void 0:a.call(t,e))??Ln((c=n.customError)==null?void 0:c.call(n,e))??Ln((u=n.localeError)==null?void 0:u.call(n,e))??"Invalid input";o.message=l}return delete o.inst,delete o.continue,t!=null&&t.reportInput||delete o.input,o}function Ps(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function kn(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}const ba=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ts,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},va=y("$ZodError",ba),ya=y("$ZodError",ba,{Parent:Error});function af(e,t=n=>n.message){const n={},o=[];for(const s of e.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):o.push(t(s));return{formErrors:o,fieldErrors:n}}function cf(e,t=n=>n.message){const n={_errors:[]},o=s=>{for(const r of s.issues)if(r.code==="invalid_union"&&r.errors.length)r.errors.map(i=>o({issues:i}));else if(r.code==="invalid_key")o({issues:r.issues});else if(r.code==="invalid_element")o({issues:r.issues});else if(r.path.length===0)n._errors.push(t(r));else{let i=n,a=0;for(;a<r.path.length;){const c=r.path[a];a===r.path.length-1?(i[c]=i[c]||{_errors:[]},i[c]._errors.push(t(r))):i[c]=i[c]||{_errors:[]},i=i[c],a++}}};return o(e),n}const Es=e=>(t,n,o,s)=>{const r=o?Object.assign(o,{async:!1}):{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new Jt;if(i.issues.length){const a=new((s==null?void 0:s.Err)??e)(i.issues.map(c=>yt(c,r,vt())));throw ga(a,s==null?void 0:s.callee),a}return i.value},$s=e=>async(t,n,o,s)=>{const r=o?Object.assign(o,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise&&(i=await i),i.issues.length){const a=new((s==null?void 0:s.Err)??e)(i.issues.map(c=>yt(c,r,vt())));throw ga(a,s==null?void 0:s.callee),a}return i.value},vo=e=>(t,n,o)=>{const s=o?{...o,async:!1}:{async:!1},r=t._zod.run({value:n,issues:[]},s);if(r instanceof Promise)throw new Jt;return r.issues.length?{success:!1,error:new(e??va)(r.issues.map(i=>yt(i,s,vt())))}:{success:!0,data:r.value}},wa=vo(ya),yo=e=>async(t,n,o)=>{const s=o?Object.assign(o,{async:!0}):{async:!0};let r=t._zod.run({value:n,issues:[]},s);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new e(r.issues.map(i=>yt(i,s,vt())))}:{success:!0,data:r.value}},lf=yo(ya),uf=e=>(t,n,o)=>{const s=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Es(e)(t,n,s)},ff=e=>(t,n,o)=>Es(e)(t,n,o),df=e=>async(t,n,o)=>{const s=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return $s(e)(t,n,s)},hf=e=>async(t,n,o)=>$s(e)(t,n,o),pf=e=>(t,n,o)=>{const s=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return vo(e)(t,n,s)},mf=e=>(t,n,o)=>vo(e)(t,n,o),gf=e=>async(t,n,o)=>{const s=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return yo(e)(t,n,s)},_f=e=>async(t,n,o)=>yo(e)(t,n,o),bf=/^[cC][^\s-]{8,}$/,vf=/^[0-9a-z]+$/,yf=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,wf=/^[0-9a-vA-V]{20}$/,Sf=/^[A-Za-z0-9]{27}$/,kf=/^[a-zA-Z0-9_-]{21}$/,Tf=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,xf=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,qr=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,zf=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Rf="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function If(){return new RegExp(Rf,"u")}const Pf=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ef=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,$f=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Cf=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Of=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Sa=/^[A-Za-z0-9_-]*$/,Nf=/^\+[1-9]\d{6,14}$/,ka="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Af=new RegExp(`^${ka}$`);function Ta(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Zf(e){return new RegExp(`^${Ta(e)}$`)}function Mf(e){const t=Ta({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${t}(?:${n.join("|")})`;return new RegExp(`^${ka}T(?:${o})$`)}const jf=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Df=/^-?\d+$/,xa=/^-?\d+(?:\.\d+)?$/,Ff=/^(?:true|false)$/i,qf=/^null$/i,Lf=/^undefined$/i,Uf=/^[^A-Z]*$/,Hf=/^[^a-z]*$/,Ze=y("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),za={number:"number",bigint:"bigint",object:"date"},Ra=y("$ZodCheckLessThan",(e,t)=>{Ze.init(e,t);const n=za[typeof t.value];e._zod.onattach.push(o=>{const s=o._zod.bag,r=(t.inclusive?s.maximum:s.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<r&&(t.inclusive?s.maximum=t.value:s.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ia=y("$ZodCheckGreaterThan",(e,t)=>{Ze.init(e,t);const n=za[typeof t.value];e._zod.onattach.push(o=>{const s=o._zod.bag,r=(t.inclusive?s.minimum:s.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>r&&(t.inclusive?s.minimum=t.value:s.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Vf=y("$ZodCheckMultipleOf",(e,t)=>{Ze.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Bu(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Jf=y("$ZodCheckNumberFormat",(e,t)=>{var i;Ze.init(e,t),t.format=t.format||"float64";const n=(i=t.format)==null?void 0:i.includes("int"),o=n?"int":"number",[s,r]=Yu[t.format];e._zod.onattach.push(a=>{const c=a._zod.bag;c.format=t.format,c.minimum=s,c.maximum=r,n&&(c.pattern=Df)}),e._zod.check=a=>{const c=a.value;if(n){if(!Number.isInteger(c)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?a.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}c<s&&a.issues.push({origin:"number",input:c,code:"too_small",minimum:s,inclusive:!0,inst:e,continue:!t.abort}),c>r&&a.issues.push({origin:"number",input:c,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),Bf=y("$ZodCheckMaxLength",(e,t)=>{var n;Ze.init(e,t),(n=e._zod.def).when??(n.when=o=>{const s=o.value;return!Rs(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const s=o.value;if(s.length<=t.maximum)return;const i=Ps(s);o.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Wf=y("$ZodCheckMinLength",(e,t)=>{var n;Ze.init(e,t),(n=e._zod.def).when??(n.when=o=>{const s=o.value;return!Rs(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const s=o.value;if(s.length>=t.minimum)return;const i=Ps(s);o.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Kf=y("$ZodCheckLengthEquals",(e,t)=>{var n;Ze.init(e,t),(n=e._zod.def).when??(n.when=o=>{const s=o.value;return!Rs(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=o=>{const s=o.value,r=s.length;if(r===t.length)return;const i=Ps(s),a=r>t.length;o.issues.push({origin:i,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),wo=y("$ZodCheckStringFormat",(e,t)=>{var n,o;Ze.init(e,t),e._zod.onattach.push(s=>{const r=s._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=s=>{t.pattern.lastIndex=0,!t.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Gf=y("$ZodCheckRegex",(e,t)=>{wo.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Qf=y("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Uf),wo.init(e,t)}),Yf=y("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Hf),wo.init(e,t)}),Xf=y("$ZodCheckIncludes",(e,t)=>{Ze.init(e,t);const n=Gt(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(s=>{const r=s._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(o)}),e._zod.check=s=>{s.value.includes(t.includes,t.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:s.value,inst:e,continue:!t.abort})}}),ed=y("$ZodCheckStartsWith",(e,t)=>{Ze.init(e,t);const n=new RegExp(`^${Gt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),td=y("$ZodCheckEndsWith",(e,t)=>{Ze.init(e,t);const n=new RegExp(`.*${Gt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),nd=y("$ZodCheckOverwrite",(e,t)=>{Ze.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class od{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const o=t.split(`
24
+ **/let es;const Tr=typeof window<"u"&&window.trustedTypes;if(Tr)try{es=Tr.createPolicy("vue",{createHTML:e=>e})}catch{}const da=es?e=>es.createHTML(e):e=>e,Su="http://www.w3.org/2000/svg",ku="http://www.w3.org/1998/Math/MathML",it=typeof document<"u"?document:null,xr=it&&it.createElement("template"),Tu={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"?it.createElementNS(Su,e):t==="mathml"?it.createElementNS(ku,e):n?it.createElement(e,{is:n}):it.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>it.createTextNode(e),createComment:e=>it.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>it.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{xr.innerHTML=da(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const a=xr.content;if(o==="svg"||o==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},xu=Symbol("_vtc");function zu(e,t,n){const o=e[xu];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const zr=Symbol("_vod"),Ru=Symbol("_vsh"),Iu=Symbol(""),Pu=/(?:^|;)\s*display\s*:/;function Eu(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 a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Kn(o,a,"")}else for(const i in t)n[i]==null&&Kn(o,i,"");for(const i in n)i==="display"&&(r=!0),Kn(o,i,n[i])}else if(s){if(t!==n){const i=o[Iu];i&&(n+=";"+i),o.cssText=n,r=Pu.test(n)}}else t&&e.removeAttribute("style");zr in e&&(e[zr]=r?o.display:"",e[Ru]&&(o.display="none"))}const Rr=/\s*!important$/;function Kn(e,t,n){if(q(n))n.forEach(o=>Kn(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=$u(e,t);Rr.test(n)?e.setProperty(Ot(o),n.replace(Rr,""),"important"):e[o]=n}}const Ir=["Webkit","Moz","ms"],jo={};function $u(e,t){const n=jo[t];if(n)return n;let o=_t(t);if(o!=="filter"&&o in e)return jo[t]=o;o=hi(o);for(let s=0;s<Ir.length;s++){const r=Ir[s]+o;if(r in e)return jo[t]=r}return t}const Pr="http://www.w3.org/1999/xlink";function Er(e,t,n,o,s,r=Pc(t)){o&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Pr,t.slice(6,t.length)):e.setAttributeNS(Pr,t,n):n==null||r&&!mi(n)?e.removeAttribute(t):e.setAttribute(t,r?"":wt(n)?String(n):n)}function $r(e,t,n,o,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?da(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(a!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=mi(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(s||t)}function jt(e,t,n,o){e.addEventListener(t,n,o)}function Cu(e,t,n,o){e.removeEventListener(t,n,o)}const Cr=Symbol("_vei");function Ou(e,t,n,o,s=null){const r=e[Cr]||(e[Cr]={}),i=r[t];if(o&&i)i.value=o;else{const[a,c]=Nu(t);if(o){const u=r[t]=Mu(o,s);jt(e,a,u,c)}else i&&(Cu(e,a,i,c),r[t]=void 0)}}const Or=/(?:Once|Passive|Capture)$/;function Nu(e){let t;if(Or.test(e)){t={};let o;for(;o=e.match(Or);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ot(e.slice(2)),t]}let Do=0;const Au=Promise.resolve(),Zu=()=>Do||(Au.then(()=>Do=0),Do=Date.now());function Mu(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;ot(ju(o,n.value),t,5,[o])};return n.value=e,n.attached=Zu(),n}function ju(e,t){if(q(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Nr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Du=(e,t,n,o,s,r)=>{const i=s==="svg";t==="class"?zu(e,o,i):t==="style"?Eu(e,n,o):ao(t)?as(t)||Ou(e,t,n,o,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qu(e,t,o,i))?($r(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Er(e,t,o,i,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!_e(o))?$r(e,_t(t),o,r,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Er(e,t,o,i))};function qu(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Nr(t)&&D(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 Nr(t)&&_e(n)?!1:t in e}const Ar=e=>{const t=e.props["onUpdate:modelValue"]||!1;return q(t)?n=>Jn(t,n):t};function Fu(e){e.target.composing=!0}function Zr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const qo=Symbol("_assign");function Mr(e,t,n){return t&&(e=e.trim()),n&&(e=us(e)),e}const Fo={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e[qo]=Ar(s);const r=o||s.props&&s.props.type==="number";jt(e,t?"change":"input",i=>{i.target.composing||e[qo](Mr(e.value,n,r))}),(n||r)&&jt(e,"change",()=>{e.value=Mr(e.value,n,r)}),t||(jt(e,"compositionstart",Fu),jt(e,"compositionend",Zr),jt(e,"change",Zr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:s,number:r}},i){if(e[qo]=Ar(i),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?us(e.value):e.value,c=t??"";a!==c&&(document.activeElement===e&&e.type!=="range"&&(o&&t===n||s&&e.value.trim()===c)||(e.value=c))}},Lu=ye({patchProp:Du},Tu);let jr;function Uu(){return jr||(jr=Xl(Lu))}const Hu=((...e)=>{const t=Uu().createApp(...e),{mount:n}=t;return t.mount=o=>{const s=Ju(o);if(!s)return;const r=t._component;!D(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,Vu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t});function Vu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ju(e){return _e(e)?document.querySelector(e):e}function y(e,t,n){function o(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:i,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,c);const u=i.prototype,l=Object.keys(u);for(let d=0;d<l.length;d++){const p=l[d];p in a||(a[p]=u[p].bind(a))}}const s=(n==null?void 0:n.Parent)??Object;class r extends s{}Object.defineProperty(r,"name",{value:e});function i(a){var c;const u=n!=null&&n.Parent?new r:this;o(u,a),(c=u._zod).deferred??(c.deferred=[]);for(const l of u._zod.deferred)l();return u}return Object.defineProperty(i,"init",{value:o}),Object.defineProperty(i,Symbol.hasInstance,{value:a=>{var c,u;return n!=null&&n.Parent&&a instanceof n.Parent?!0:(u=(c=a==null?void 0:a._zod)==null?void 0:c.traits)==null?void 0:u.has(e)}}),Object.defineProperty(i,"name",{value:e}),i}class Jt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ha extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const pa={};function vt(e){return pa}function ma(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,s])=>t.indexOf(+o)===-1).map(([o,s])=>s)}function ts(e,t){return typeof t=="bigint"?t.toString():t}function bo(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Rs(e){return e==null}function Is(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Bu(e,t){const n=(e.toString().split(".")[1]||"").length,o=t.toString();let s=(o.split(".")[1]||"").length;if(s===0&&/\d?e-\d?/.test(o)){const c=o.match(/\d?e-(\d?)/);c!=null&&c[1]&&(s=Number.parseInt(c[1]))}const r=n>s?n:s,i=Number.parseInt(e.toFixed(r).replace(".","")),a=Number.parseInt(t.toFixed(r).replace(".",""));return i%a/10**r}const Dr=Symbol("evaluating");function Q(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Dr)return o===void 0&&(o=Dr,o=n()),o},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function Nt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function St(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function qr(e){return JSON.stringify(e)}function Wu(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const ga="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Sn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Ku=bo(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Kt(e){if(Sn(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Sn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function _a(e){return Kt(e)?{...e}:Array.isArray(e)?[...e]:e}const Gu=new Set(["string","number","symbol"]);function Gt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function kt(e,t,n){const o=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(o._zod.parent=e),o}function $(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Qu(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Yu={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Xu(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const r=St(e._zod.def,{get shape(){const i={};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=n.shape[a])}return Nt(this,"shape",i),i},checks:[]});return kt(e,r)}function ef(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const r=St(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete i[a]}return Nt(this,"shape",i),i},checks:[]});return kt(e,r)}function tf(e,t){if(!Kt(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const r=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(r,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const s=St(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Nt(this,"shape",r),r}});return kt(e,s)}function nf(e,t){if(!Kt(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=St(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return Nt(this,"shape",o),o}});return kt(e,n)}function of(e,t){const n=St(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t._zod.def.shape};return Nt(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return kt(e,n)}function sf(e,t,n){const s=t._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=St(t._zod.def,{get shape(){const a=t._zod.def.shape,c={...a};if(n)for(const u in n){if(!(u in a))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(c[u]=e?new e({type:"optional",innerType:a[u]}):a[u])}else for(const u in a)c[u]=e?new e({type:"optional",innerType:a[u]}):a[u];return Nt(this,"shape",c),c},checks:[]});return kt(t,i)}function rf(e,t,n){const o=St(t._zod.def,{get shape(){const s=t._zod.def.shape,r={...s};if(n)for(const i in n){if(!(i in r))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(r[i]=new e({type:"nonoptional",innerType:s[i]}))}else for(const i in s)r[i]=new e({type:"nonoptional",innerType:s[i]});return Nt(this,"shape",r),r}});return kt(t,o)}function Dt(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)!==!0)return!0;return!1}function qt(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Ln(e){return typeof e=="string"?e:e==null?void 0:e.message}function yt(e,t,n){var s,r,i,a,c,u;const o={...e,path:e.path??[]};if(!e.message){const l=Ln((i=(r=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:r.error)==null?void 0:i.call(r,e))??Ln((a=t==null?void 0:t.error)==null?void 0:a.call(t,e))??Ln((c=n.customError)==null?void 0:c.call(n,e))??Ln((u=n.localeError)==null?void 0:u.call(n,e))??"Invalid input";o.message=l}return delete o.inst,delete o.continue,t!=null&&t.reportInput||delete o.input,o}function Ps(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function kn(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}const ba=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ts,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},va=y("$ZodError",ba),ya=y("$ZodError",ba,{Parent:Error});function af(e,t=n=>n.message){const n={},o=[];for(const s of e.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):o.push(t(s));return{formErrors:o,fieldErrors:n}}function cf(e,t=n=>n.message){const n={_errors:[]},o=s=>{for(const r of s.issues)if(r.code==="invalid_union"&&r.errors.length)r.errors.map(i=>o({issues:i}));else if(r.code==="invalid_key")o({issues:r.issues});else if(r.code==="invalid_element")o({issues:r.issues});else if(r.path.length===0)n._errors.push(t(r));else{let i=n,a=0;for(;a<r.path.length;){const c=r.path[a];a===r.path.length-1?(i[c]=i[c]||{_errors:[]},i[c]._errors.push(t(r))):i[c]=i[c]||{_errors:[]},i=i[c],a++}}};return o(e),n}const Es=e=>(t,n,o,s)=>{const r=o?Object.assign(o,{async:!1}):{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new Jt;if(i.issues.length){const a=new((s==null?void 0:s.Err)??e)(i.issues.map(c=>yt(c,r,vt())));throw ga(a,s==null?void 0:s.callee),a}return i.value},$s=e=>async(t,n,o,s)=>{const r=o?Object.assign(o,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise&&(i=await i),i.issues.length){const a=new((s==null?void 0:s.Err)??e)(i.issues.map(c=>yt(c,r,vt())));throw ga(a,s==null?void 0:s.callee),a}return i.value},vo=e=>(t,n,o)=>{const s=o?{...o,async:!1}:{async:!1},r=t._zod.run({value:n,issues:[]},s);if(r instanceof Promise)throw new Jt;return r.issues.length?{success:!1,error:new(e??va)(r.issues.map(i=>yt(i,s,vt())))}:{success:!0,data:r.value}},wa=vo(ya),yo=e=>async(t,n,o)=>{const s=o?Object.assign(o,{async:!0}):{async:!0};let r=t._zod.run({value:n,issues:[]},s);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new e(r.issues.map(i=>yt(i,s,vt())))}:{success:!0,data:r.value}},lf=yo(ya),uf=e=>(t,n,o)=>{const s=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Es(e)(t,n,s)},ff=e=>(t,n,o)=>Es(e)(t,n,o),df=e=>async(t,n,o)=>{const s=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return $s(e)(t,n,s)},hf=e=>async(t,n,o)=>$s(e)(t,n,o),pf=e=>(t,n,o)=>{const s=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return vo(e)(t,n,s)},mf=e=>(t,n,o)=>vo(e)(t,n,o),gf=e=>async(t,n,o)=>{const s=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return yo(e)(t,n,s)},_f=e=>async(t,n,o)=>yo(e)(t,n,o),bf=/^[cC][^\s-]{8,}$/,vf=/^[0-9a-z]+$/,yf=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,wf=/^[0-9a-vA-V]{20}$/,Sf=/^[A-Za-z0-9]{27}$/,kf=/^[a-zA-Z0-9_-]{21}$/,Tf=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,xf=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Fr=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,zf=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Rf="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function If(){return new RegExp(Rf,"u")}const Pf=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ef=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,$f=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Cf=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Of=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Sa=/^[A-Za-z0-9_-]*$/,Nf=/^\+[1-9]\d{6,14}$/,ka="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Af=new RegExp(`^${ka}$`);function Ta(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Zf(e){return new RegExp(`^${Ta(e)}$`)}function Mf(e){const t=Ta({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${t}(?:${n.join("|")})`;return new RegExp(`^${ka}T(?:${o})$`)}const jf=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Df=/^-?\d+$/,xa=/^-?\d+(?:\.\d+)?$/,qf=/^(?:true|false)$/i,Ff=/^null$/i,Lf=/^undefined$/i,Uf=/^[^A-Z]*$/,Hf=/^[^a-z]*$/,Ze=y("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),za={number:"number",bigint:"bigint",object:"date"},Ra=y("$ZodCheckLessThan",(e,t)=>{Ze.init(e,t);const n=za[typeof t.value];e._zod.onattach.push(o=>{const s=o._zod.bag,r=(t.inclusive?s.maximum:s.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<r&&(t.inclusive?s.maximum=t.value:s.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ia=y("$ZodCheckGreaterThan",(e,t)=>{Ze.init(e,t);const n=za[typeof t.value];e._zod.onattach.push(o=>{const s=o._zod.bag,r=(t.inclusive?s.minimum:s.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>r&&(t.inclusive?s.minimum=t.value:s.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Vf=y("$ZodCheckMultipleOf",(e,t)=>{Ze.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Bu(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Jf=y("$ZodCheckNumberFormat",(e,t)=>{var i;Ze.init(e,t),t.format=t.format||"float64";const n=(i=t.format)==null?void 0:i.includes("int"),o=n?"int":"number",[s,r]=Yu[t.format];e._zod.onattach.push(a=>{const c=a._zod.bag;c.format=t.format,c.minimum=s,c.maximum=r,n&&(c.pattern=Df)}),e._zod.check=a=>{const c=a.value;if(n){if(!Number.isInteger(c)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?a.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}c<s&&a.issues.push({origin:"number",input:c,code:"too_small",minimum:s,inclusive:!0,inst:e,continue:!t.abort}),c>r&&a.issues.push({origin:"number",input:c,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),Bf=y("$ZodCheckMaxLength",(e,t)=>{var n;Ze.init(e,t),(n=e._zod.def).when??(n.when=o=>{const s=o.value;return!Rs(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const s=o.value;if(s.length<=t.maximum)return;const i=Ps(s);o.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Wf=y("$ZodCheckMinLength",(e,t)=>{var n;Ze.init(e,t),(n=e._zod.def).when??(n.when=o=>{const s=o.value;return!Rs(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const s=o.value;if(s.length>=t.minimum)return;const i=Ps(s);o.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Kf=y("$ZodCheckLengthEquals",(e,t)=>{var n;Ze.init(e,t),(n=e._zod.def).when??(n.when=o=>{const s=o.value;return!Rs(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=o=>{const s=o.value,r=s.length;if(r===t.length)return;const i=Ps(s),a=r>t.length;o.issues.push({origin:i,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),wo=y("$ZodCheckStringFormat",(e,t)=>{var n,o;Ze.init(e,t),e._zod.onattach.push(s=>{const r=s._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=s=>{t.pattern.lastIndex=0,!t.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Gf=y("$ZodCheckRegex",(e,t)=>{wo.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Qf=y("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Uf),wo.init(e,t)}),Yf=y("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Hf),wo.init(e,t)}),Xf=y("$ZodCheckIncludes",(e,t)=>{Ze.init(e,t);const n=Gt(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(s=>{const r=s._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(o)}),e._zod.check=s=>{s.value.includes(t.includes,t.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:s.value,inst:e,continue:!t.abort})}}),ed=y("$ZodCheckStartsWith",(e,t)=>{Ze.init(e,t);const n=new RegExp(`^${Gt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),td=y("$ZodCheckEndsWith",(e,t)=>{Ze.init(e,t);const n=new RegExp(`.*${Gt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),nd=y("$ZodCheckOverwrite",(e,t)=>{Ze.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class od{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const o=t.split(`
25
25
  `).filter(i=>i),s=Math.min(...o.map(i=>i.length-i.trimStart().length)),r=o.map(i=>i.slice(s)).map(i=>" ".repeat(this.indent*2)+i);for(const i of r)this.content.push(i)}compile(){const t=Function,n=this==null?void 0:this.args,s=[...((this==null?void 0:this.content)??[""]).map(r=>` ${r}`)];return new t(...n,s.join(`
26
- `))}}const sd={major:4,minor:3,patch:5},ae=y("$ZodType",(e,t)=>{var s;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=sd;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const r of o)for(const i of r._zod.onattach)i(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),(s=e._zod.deferred)==null||s.push(()=>{e._zod.run=e._zod.parse});else{const r=(a,c,u)=>{let l=Dt(a),d;for(const p of c){if(p._zod.def.when){if(!p._zod.def.when(a))continue}else if(l)continue;const _=a.issues.length,x=p._zod.check(a);if(x instanceof Promise&&(u==null?void 0:u.async)===!1)throw new Jt;if(d||x instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await x,a.issues.length!==_&&(l||(l=Dt(a,_)))});else{if(a.issues.length===_)continue;l||(l=Dt(a,_))}}return d?d.then(()=>a):a},i=(a,c,u)=>{if(Dt(a))return a.aborted=!0,a;const l=r(c,o,u);if(l instanceof Promise){if(u.async===!1)throw new Jt;return l.then(d=>e._zod.parse(d,u))}return e._zod.parse(l,u)};e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){const l=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return l instanceof Promise?l.then(d=>i(d,a,c)):i(l,a,c)}const u=e._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new Jt;return u.then(l=>r(l,o,c))}return r(u,o,c)}}Q(e,"~standard",()=>({validate:r=>{var i;try{const a=wa(e,r);return a.success?{value:a.data}:{issues:(i=a.error)==null?void 0:i.issues}}catch{return lf(e,r).then(c=>{var u;return c.success?{value:c.data}:{issues:(u=c.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}))}),Cs=y("$ZodString",(e,t)=>{var n;ae.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??jf(e._zod.bag),e._zod.parse=(o,s)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),le=y("$ZodStringFormat",(e,t)=>{wo.init(e,t),Cs.init(e,t)}),rd=y("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=xf),le.init(e,t)}),id=y("$ZodUUID",(e,t)=>{if(t.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=qr(o))}else t.pattern??(t.pattern=qr());le.init(e,t)}),ad=y("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=zf),le.init(e,t)}),cd=y("$ZodURL",(e,t)=>{le.init(e,t),e._zod.check=n=>{try{const o=n.value.trim(),s=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(s.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=s.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),ld=y("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=If()),le.init(e,t)}),ud=y("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=kf),le.init(e,t)}),fd=y("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=bf),le.init(e,t)}),dd=y("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=vf),le.init(e,t)}),hd=y("$ZodULID",(e,t)=>{t.pattern??(t.pattern=yf),le.init(e,t)}),pd=y("$ZodXID",(e,t)=>{t.pattern??(t.pattern=wf),le.init(e,t)}),md=y("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Sf),le.init(e,t)}),gd=y("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Mf(t)),le.init(e,t)}),_d=y("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Af),le.init(e,t)}),bd=y("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Zf(t)),le.init(e,t)}),vd=y("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Tf),le.init(e,t)}),yd=y("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Pf),le.init(e,t),e._zod.bag.format="ipv4"}),wd=y("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ef),le.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Sd=y("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=$f),le.init(e,t)}),kd=y("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Cf),le.init(e,t),e._zod.check=n=>{const o=n.value.split("/");try{if(o.length!==2)throw new Error;const[s,r]=o;if(!r)throw new Error;const i=Number(r);if(`${i}`!==r)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${s}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Pa(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Td=y("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Of),le.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Pa(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function xd(e){if(!Sa.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Pa(n)}const zd=y("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Sa),le.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{xd(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Rd=y("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Nf),le.init(e,t)});function Id(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const s=JSON.parse(atob(o));return!("typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&(!("alg"in s)||s.alg!==t))}catch{return!1}}const Pd=y("$ZodJWT",(e,t)=>{le.init(e,t),e._zod.check=n=>{Id(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Ea=y("$ZodNumber",(e,t)=>{ae.init(e,t),e._zod.pattern=e._zod.bag.pattern??xa,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const s=n.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return n;const r=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:s,inst:e,...r?{received:r}:{}}),n}}),Ed=y("$ZodNumberFormat",(e,t)=>{Jf.init(e,t),Ea.init(e,t)}),$d=y("$ZodBoolean",(e,t)=>{ae.init(e,t),e._zod.pattern=Ff,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}const s=n.value;return typeof s=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:s,inst:e}),n}}),Cd=y("$ZodUndefined",(e,t)=>{ae.init(e,t),e._zod.pattern=Lf,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,o)=>{const s=n.value;return typeof s>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:s,inst:e}),n}}),Od=y("$ZodNull",(e,t)=>{ae.init(e,t),e._zod.pattern=qf,e._zod.values=new Set([null]),e._zod.parse=(n,o)=>{const s=n.value;return s===null||n.issues.push({expected:"null",code:"invalid_type",input:s,inst:e}),n}}),Nd=y("$ZodUnknown",(e,t)=>{ae.init(e,t),e._zod.parse=n=>n}),Ad=y("$ZodNever",(e,t)=>{ae.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Lr(e,t,n){e.issues.length&&t.issues.push(...Ft(n,e.issues)),t.value[n]=e.value}const Zd=y("$ZodArray",(e,t)=>{ae.init(e,t),e._zod.parse=(n,o)=>{const s=n.value;if(!Array.isArray(s))return n.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),n;n.value=Array(s.length);const r=[];for(let i=0;i<s.length;i++){const a=s[i],c=t.element._zod.run({value:a,issues:[]},o);c instanceof Promise?r.push(c.then(u=>Lr(u,n,i))):Lr(c,n,i)}return r.length?Promise.all(r).then(()=>n):n}});function no(e,t,n,o,s){if(e.issues.length){if(s&&!(n in o))return;t.issues.push(...Ft(n,e.issues))}e.value===void 0?n in o&&(t.value[n]=void 0):t.value[n]=e.value}function $a(e){var o,s,r,i;const t=Object.keys(e.shape);for(const a of t)if(!((i=(r=(s=(o=e.shape)==null?void 0:o[a])==null?void 0:s._zod)==null?void 0:r.traits)!=null&&i.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const n=Qu(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Ca(e,t,n,o,s,r){const i=[],a=s.keySet,c=s.catchall._zod,u=c.def.type,l=c.optout==="optional";for(const d in t){if(a.has(d))continue;if(u==="never"){i.push(d);continue}const p=c.run({value:t[d],issues:[]},o);p instanceof Promise?e.push(p.then(_=>no(_,n,d,t,l))):no(p,n,d,t,l)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:r}),e.length?Promise.all(e).then(()=>n):n}const Md=y("$ZodObject",(e,t)=>{ae.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...a};return Object.defineProperty(t,"shape",{value:c}),c}})}const o=bo(()=>$a(t));Q(e._zod,"propValues",()=>{const a=t.shape,c={};for(const u in a){const l=a[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(const d of l.values)c[u].add(d)}}return c});const s=Sn,r=t.catchall;let i;e._zod.parse=(a,c)=>{i??(i=o.value);const u=a.value;if(!s(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),a;a.value={};const l=[],d=i.shape;for(const p of i.keys){const _=d[p],x=_._zod.optout==="optional",z=_._zod.run({value:u[p],issues:[]},c);z instanceof Promise?l.push(z.then(q=>no(q,a,p,u,x))):no(z,a,p,u,x)}return r?Ca(l,u,a,c,o.value,e):l.length?Promise.all(l).then(()=>a):a}}),jd=y("$ZodObjectJIT",(e,t)=>{Md.init(e,t);const n=e._zod.parse,o=bo(()=>$a(t)),s=p=>{var B;const _=new od(["shape","payload","ctx"]),x=o.value,z=C=>{const U=Fr(C);return`shape[${U}]._zod.run({ value: input[${U}], issues: [] }, ctx)`};_.write("const input = payload.value;");const q=Object.create(null);let Z=0;for(const C of x.keys)q[C]=`key_${Z++}`;_.write("const newResult = {};");for(const C of x.keys){const U=q[C],ue=Fr(C),V=p[C],ge=((B=V==null?void 0:V._zod)==null?void 0:B.optout)==="optional";_.write(`const ${U} = ${z(C)};`),ge?_.write(`
26
+ `))}}const sd={major:4,minor:3,patch:5},ae=y("$ZodType",(e,t)=>{var s;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=sd;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const r of o)for(const i of r._zod.onattach)i(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),(s=e._zod.deferred)==null||s.push(()=>{e._zod.run=e._zod.parse});else{const r=(a,c,u)=>{let l=Dt(a),d;for(const p of c){if(p._zod.def.when){if(!p._zod.def.when(a))continue}else if(l)continue;const _=a.issues.length,x=p._zod.check(a);if(x instanceof Promise&&(u==null?void 0:u.async)===!1)throw new Jt;if(d||x instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await x,a.issues.length!==_&&(l||(l=Dt(a,_)))});else{if(a.issues.length===_)continue;l||(l=Dt(a,_))}}return d?d.then(()=>a):a},i=(a,c,u)=>{if(Dt(a))return a.aborted=!0,a;const l=r(c,o,u);if(l instanceof Promise){if(u.async===!1)throw new Jt;return l.then(d=>e._zod.parse(d,u))}return e._zod.parse(l,u)};e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){const l=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return l instanceof Promise?l.then(d=>i(d,a,c)):i(l,a,c)}const u=e._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new Jt;return u.then(l=>r(l,o,c))}return r(u,o,c)}}Q(e,"~standard",()=>({validate:r=>{var i;try{const a=wa(e,r);return a.success?{value:a.data}:{issues:(i=a.error)==null?void 0:i.issues}}catch{return lf(e,r).then(c=>{var u;return c.success?{value:c.data}:{issues:(u=c.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}))}),Cs=y("$ZodString",(e,t)=>{var n;ae.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??jf(e._zod.bag),e._zod.parse=(o,s)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),le=y("$ZodStringFormat",(e,t)=>{wo.init(e,t),Cs.init(e,t)}),rd=y("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=xf),le.init(e,t)}),id=y("$ZodUUID",(e,t)=>{if(t.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Fr(o))}else t.pattern??(t.pattern=Fr());le.init(e,t)}),ad=y("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=zf),le.init(e,t)}),cd=y("$ZodURL",(e,t)=>{le.init(e,t),e._zod.check=n=>{try{const o=n.value.trim(),s=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(s.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=s.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),ld=y("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=If()),le.init(e,t)}),ud=y("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=kf),le.init(e,t)}),fd=y("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=bf),le.init(e,t)}),dd=y("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=vf),le.init(e,t)}),hd=y("$ZodULID",(e,t)=>{t.pattern??(t.pattern=yf),le.init(e,t)}),pd=y("$ZodXID",(e,t)=>{t.pattern??(t.pattern=wf),le.init(e,t)}),md=y("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Sf),le.init(e,t)}),gd=y("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Mf(t)),le.init(e,t)}),_d=y("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Af),le.init(e,t)}),bd=y("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Zf(t)),le.init(e,t)}),vd=y("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Tf),le.init(e,t)}),yd=y("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Pf),le.init(e,t),e._zod.bag.format="ipv4"}),wd=y("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ef),le.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Sd=y("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=$f),le.init(e,t)}),kd=y("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Cf),le.init(e,t),e._zod.check=n=>{const o=n.value.split("/");try{if(o.length!==2)throw new Error;const[s,r]=o;if(!r)throw new Error;const i=Number(r);if(`${i}`!==r)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${s}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Pa(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Td=y("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Of),le.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Pa(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function xd(e){if(!Sa.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Pa(n)}const zd=y("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Sa),le.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{xd(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Rd=y("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Nf),le.init(e,t)});function Id(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const s=JSON.parse(atob(o));return!("typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&(!("alg"in s)||s.alg!==t))}catch{return!1}}const Pd=y("$ZodJWT",(e,t)=>{le.init(e,t),e._zod.check=n=>{Id(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Ea=y("$ZodNumber",(e,t)=>{ae.init(e,t),e._zod.pattern=e._zod.bag.pattern??xa,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const s=n.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return n;const r=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:s,inst:e,...r?{received:r}:{}}),n}}),Ed=y("$ZodNumberFormat",(e,t)=>{Jf.init(e,t),Ea.init(e,t)}),$d=y("$ZodBoolean",(e,t)=>{ae.init(e,t),e._zod.pattern=qf,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}const s=n.value;return typeof s=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:s,inst:e}),n}}),Cd=y("$ZodUndefined",(e,t)=>{ae.init(e,t),e._zod.pattern=Lf,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,o)=>{const s=n.value;return typeof s>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:s,inst:e}),n}}),Od=y("$ZodNull",(e,t)=>{ae.init(e,t),e._zod.pattern=Ff,e._zod.values=new Set([null]),e._zod.parse=(n,o)=>{const s=n.value;return s===null||n.issues.push({expected:"null",code:"invalid_type",input:s,inst:e}),n}}),Nd=y("$ZodUnknown",(e,t)=>{ae.init(e,t),e._zod.parse=n=>n}),Ad=y("$ZodNever",(e,t)=>{ae.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Lr(e,t,n){e.issues.length&&t.issues.push(...qt(n,e.issues)),t.value[n]=e.value}const Zd=y("$ZodArray",(e,t)=>{ae.init(e,t),e._zod.parse=(n,o)=>{const s=n.value;if(!Array.isArray(s))return n.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),n;n.value=Array(s.length);const r=[];for(let i=0;i<s.length;i++){const a=s[i],c=t.element._zod.run({value:a,issues:[]},o);c instanceof Promise?r.push(c.then(u=>Lr(u,n,i))):Lr(c,n,i)}return r.length?Promise.all(r).then(()=>n):n}});function no(e,t,n,o,s){if(e.issues.length){if(s&&!(n in o))return;t.issues.push(...qt(n,e.issues))}e.value===void 0?n in o&&(t.value[n]=void 0):t.value[n]=e.value}function $a(e){var o,s,r,i;const t=Object.keys(e.shape);for(const a of t)if(!((i=(r=(s=(o=e.shape)==null?void 0:o[a])==null?void 0:s._zod)==null?void 0:r.traits)!=null&&i.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const n=Qu(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Ca(e,t,n,o,s,r){const i=[],a=s.keySet,c=s.catchall._zod,u=c.def.type,l=c.optout==="optional";for(const d in t){if(a.has(d))continue;if(u==="never"){i.push(d);continue}const p=c.run({value:t[d],issues:[]},o);p instanceof Promise?e.push(p.then(_=>no(_,n,d,t,l))):no(p,n,d,t,l)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:r}),e.length?Promise.all(e).then(()=>n):n}const Md=y("$ZodObject",(e,t)=>{ae.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...a};return Object.defineProperty(t,"shape",{value:c}),c}})}const o=bo(()=>$a(t));Q(e._zod,"propValues",()=>{const a=t.shape,c={};for(const u in a){const l=a[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(const d of l.values)c[u].add(d)}}return c});const s=Sn,r=t.catchall;let i;e._zod.parse=(a,c)=>{i??(i=o.value);const u=a.value;if(!s(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),a;a.value={};const l=[],d=i.shape;for(const p of i.keys){const _=d[p],x=_._zod.optout==="optional",z=_._zod.run({value:u[p],issues:[]},c);z instanceof Promise?l.push(z.then(F=>no(F,a,p,u,x))):no(z,a,p,u,x)}return r?Ca(l,u,a,c,o.value,e):l.length?Promise.all(l).then(()=>a):a}}),jd=y("$ZodObjectJIT",(e,t)=>{Md.init(e,t);const n=e._zod.parse,o=bo(()=>$a(t)),s=p=>{var B;const _=new od(["shape","payload","ctx"]),x=o.value,z=C=>{const U=qr(C);return`shape[${U}]._zod.run({ value: input[${U}], issues: [] }, ctx)`};_.write("const input = payload.value;");const F=Object.create(null);let Z=0;for(const C of x.keys)F[C]=`key_${Z++}`;_.write("const newResult = {};");for(const C of x.keys){const U=F[C],ue=qr(C),V=p[C],ge=((B=V==null?void 0:V._zod)==null?void 0:B.optout)==="optional";_.write(`const ${U} = ${z(C)};`),ge?_.write(`
27
27
  if (${U}.issues.length) {
28
28
  if (${ue} in input) {
29
29
  payload.issues = payload.issues.concat(${U}.issues.map(iss => ({
@@ -57,9 +57,9 @@
57
57
  newResult[${ue}] = ${U}.value;
58
58
  }
59
59
 
60
- `)}_.write("payload.value = newResult;"),_.write("return payload;");const A=_.compile();return(C,U)=>A(p,C,U)};let r;const i=Sn,a=!pa.jitless,u=a&&Ku.value,l=t.catchall;let d;e._zod.parse=(p,_)=>{d??(d=o.value);const x=p.value;return i(x)?a&&u&&(_==null?void 0:_.async)===!1&&_.jitless!==!0?(r||(r=s(t.shape)),p=r(p,_),l?Ca([],x,p,_,d,e):p):n(p,_):(p.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),p)}});function Ur(e,t,n,o){for(const r of e)if(r.issues.length===0)return t.value=r.value,t;const s=e.filter(r=>!Dt(r));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(i=>yt(i,o,vt())))}),t)}const Oa=y("$ZodUnion",(e,t)=>{ae.init(e,t),Q(e._zod,"optin",()=>t.options.some(s=>s._zod.optin==="optional")?"optional":void 0),Q(e._zod,"optout",()=>t.options.some(s=>s._zod.optout==="optional")?"optional":void 0),Q(e._zod,"values",()=>{if(t.options.every(s=>s._zod.values))return new Set(t.options.flatMap(s=>Array.from(s._zod.values)))}),Q(e._zod,"pattern",()=>{if(t.options.every(s=>s._zod.pattern)){const s=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${s.map(r=>Is(r.source)).join("|")})$`)}});const n=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(s,r)=>{if(n)return o(s,r);let i=!1;const a=[];for(const c of t.options){const u=c._zod.run({value:s.value,issues:[]},r);if(u instanceof Promise)a.push(u),i=!0;else{if(u.issues.length===0)return u;a.push(u)}}return i?Promise.all(a).then(c=>Ur(c,s,e,r)):Ur(a,s,e,r)}}),Dd=y("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Oa.init(e,t);const n=e._zod.parse;Q(e._zod,"propValues",()=>{const s={};for(const r of t.options){const i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(const[a,c]of Object.entries(i)){s[a]||(s[a]=new Set);for(const u of c)s[a].add(u)}}return s});const o=bo(()=>{var i;const s=t.options,r=new Map;for(const a of s){const c=(i=a._zod.propValues)==null?void 0:i[t.discriminator];if(!c||c.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const u of c){if(r.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);r.set(u,a)}}return r});e._zod.parse=(s,r)=>{const i=s.value;if(!Sn(i))return s.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),s;const a=o.value.get(i==null?void 0:i[t.discriminator]);return a?a._zod.run(s,r):t.unionFallback?n(s,r):(s.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),s)}}),Fd=y("$ZodIntersection",(e,t)=>{ae.init(e,t),e._zod.parse=(n,o)=>{const s=n.value,r=t.left._zod.run({value:s,issues:[]},o),i=t.right._zod.run({value:s,issues:[]},o);return r instanceof Promise||i instanceof Promise?Promise.all([r,i]).then(([c,u])=>Hr(n,c,u)):Hr(n,r,i)}});function ns(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Kt(e)&&Kt(t)){const n=Object.keys(t),o=Object.keys(e).filter(r=>n.indexOf(r)!==-1),s={...e,...t};for(const r of o){const i=ns(e[r],t[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};s[r]=i.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const s=e[o],r=t[o],i=ns(s,r);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Hr(e,t,n){const o=new Map;let s;for(const a of t.issues)if(a.code==="unrecognized_keys"){s??(s=a);for(const c of a.keys)o.has(c)||o.set(c,{}),o.get(c).l=!0}else e.issues.push(a);for(const a of n.issues)if(a.code==="unrecognized_keys")for(const c of a.keys)o.has(c)||o.set(c,{}),o.get(c).r=!0;else e.issues.push(a);const r=[...o].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(r.length&&s&&e.issues.push({...s,keys:r}),Dt(e))return e;const i=ns(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const qd=y("$ZodRecord",(e,t)=>{ae.init(e,t),e._zod.parse=(n,o)=>{const s=n.value;if(!Kt(s))return n.issues.push({expected:"record",code:"invalid_type",input:s,inst:e}),n;const r=[],i=t.keyType._zod.values;if(i){n.value={};const a=new Set;for(const u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);const l=t.valueType._zod.run({value:s[u],issues:[]},o);l instanceof Promise?r.push(l.then(d=>{d.issues.length&&n.issues.push(...Ft(u,d.issues)),n.value[u]=d.value})):(l.issues.length&&n.issues.push(...Ft(u,l.issues)),n.value[u]=l.value)}let c;for(const u in s)a.has(u)||(c=c??[],c.push(u));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:s,inst:e,keys:c})}else{n.value={};for(const a of Reflect.ownKeys(s)){if(a==="__proto__")continue;let c=t.keyType._zod.run({value:a,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&xa.test(a)&&c.issues.length&&c.issues.some(d=>d.code==="invalid_type"&&d.expected==="number")){const d=t.keyType._zod.run({value:Number(a),issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(c=d)}if(c.issues.length){t.mode==="loose"?n.value[a]=s[a]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>yt(d,o,vt())),input:a,path:[a],inst:e});continue}const l=t.valueType._zod.run({value:s[a],issues:[]},o);l instanceof Promise?r.push(l.then(d=>{d.issues.length&&n.issues.push(...Ft(a,d.issues)),n.value[c.value]=d.value})):(l.issues.length&&n.issues.push(...Ft(a,l.issues)),n.value[c.value]=l.value)}}return r.length?Promise.all(r).then(()=>n):n}}),Ld=y("$ZodEnum",(e,t)=>{ae.init(e,t);const n=ma(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(s=>Gu.has(typeof s)).map(s=>typeof s=="string"?Gt(s):s.toString()).join("|")})$`),e._zod.parse=(s,r)=>{const i=s.value;return o.has(i)||s.issues.push({code:"invalid_value",values:n,input:i,inst:e}),s}}),Ud=y("$ZodLiteral",(e,t)=>{if(ae.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?Gt(o):o?Gt(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,s)=>{const r=o.value;return n.has(r)||o.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),o}}),Hd=y("$ZodTransform",(e,t)=>{ae.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ha(e.constructor.name);const s=t.transform(n.value,n);if(o.async)return(s instanceof Promise?s:Promise.resolve(s)).then(i=>(n.value=i,n));if(s instanceof Promise)throw new Jt;return n.value=s,n}});function Vr(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Na=y("$ZodOptional",(e,t)=>{ae.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Q(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Is(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){const s=t.innerType._zod.run(n,o);return s instanceof Promise?s.then(r=>Vr(r,n.value)):Vr(s,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),Vd=y("$ZodExactOptional",(e,t)=>{Na.init(e,t),Q(e._zod,"values",()=>t.innerType._zod.values),Q(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),Jd=y("$ZodNullable",(e,t)=>{ae.init(e,t),Q(e._zod,"optin",()=>t.innerType._zod.optin),Q(e._zod,"optout",()=>t.innerType._zod.optout),Q(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Is(n.source)}|null)$`):void 0}),Q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),Bd=y("$ZodDefault",(e,t)=>{ae.init(e,t),e._zod.optin="optional",Q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;const s=t.innerType._zod.run(n,o);return s instanceof Promise?s.then(r=>Jr(r,t)):Jr(s,t)}});function Jr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Wd=y("$ZodPrefault",(e,t)=>{ae.init(e,t),e._zod.optin="optional",Q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),Kd=y("$ZodNonOptional",(e,t)=>{ae.init(e,t),Q(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{const s=t.innerType._zod.run(n,o);return s instanceof Promise?s.then(r=>Br(r,e)):Br(s,e)}});function Br(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Gd=y("$ZodCatch",(e,t)=>{ae.init(e,t),Q(e._zod,"optin",()=>t.innerType._zod.optin),Q(e._zod,"optout",()=>t.innerType._zod.optout),Q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const s=t.innerType._zod.run(n,o);return s instanceof Promise?s.then(r=>(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>yt(i,o,vt()))},input:n.value}),n.issues=[]),n)):(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(r=>yt(r,o,vt()))},input:n.value}),n.issues=[]),n)}}),Qd=y("$ZodPipe",(e,t)=>{ae.init(e,t),Q(e._zod,"values",()=>t.in._zod.values),Q(e._zod,"optin",()=>t.in._zod.optin),Q(e._zod,"optout",()=>t.out._zod.optout),Q(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){const r=t.out._zod.run(n,o);return r instanceof Promise?r.then(i=>Un(i,t.in,o)):Un(r,t.in,o)}const s=t.in._zod.run(n,o);return s instanceof Promise?s.then(r=>Un(r,t.out,o)):Un(s,t.out,o)}});function Un(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Yd=y("$ZodReadonly",(e,t)=>{ae.init(e,t),Q(e._zod,"propValues",()=>t.innerType._zod.propValues),Q(e._zod,"values",()=>t.innerType._zod.values),Q(e._zod,"optin",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optin}),Q(e._zod,"optout",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optout}),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const s=t.innerType._zod.run(n,o);return s instanceof Promise?s.then(Wr):Wr(s)}});function Wr(e){return e.value=Object.freeze(e.value),e}const Xd=y("$ZodCustom",(e,t)=>{Ze.init(e,t),ae.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,s=t.fn(o);if(s instanceof Promise)return s.then(r=>Kr(r,n,o,e));Kr(s,n,o,e)}});function Kr(e,t,n,o){if(!e){const s={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(s.params=o._zod.def.params),t.issues.push(kn(s))}}var Gr;class eh{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const o={...this.get(n)??{}};delete o.id;const s={...o,...this._map.get(t)};return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function th(){return new eh}(Gr=globalThis).__zod_globalRegistry??(Gr.__zod_globalRegistry=th());const cn=globalThis.__zod_globalRegistry;function nh(e,t){return new e({type:"string",...$(t)})}function oh(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...$(t)})}function Qr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...$(t)})}function sh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...$(t)})}function rh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...$(t)})}function ih(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...$(t)})}function ah(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...$(t)})}function ch(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...$(t)})}function lh(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...$(t)})}function uh(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...$(t)})}function fh(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...$(t)})}function dh(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...$(t)})}function hh(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...$(t)})}function ph(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...$(t)})}function mh(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...$(t)})}function gh(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...$(t)})}function _h(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...$(t)})}function bh(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...$(t)})}function vh(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...$(t)})}function yh(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...$(t)})}function wh(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...$(t)})}function Sh(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...$(t)})}function kh(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...$(t)})}function Th(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...$(t)})}function xh(e,t){return new e({type:"string",format:"date",check:"string_format",...$(t)})}function zh(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...$(t)})}function Rh(e,t){return new e({type:"string",format:"duration",check:"string_format",...$(t)})}function Ih(e,t){return new e({type:"number",checks:[],...$(t)})}function Ph(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...$(t)})}function Eh(e,t){return new e({type:"boolean",...$(t)})}function $h(e,t){return new e({type:"undefined",...$(t)})}function Ch(e,t){return new e({type:"null",...$(t)})}function Oh(e){return new e({type:"unknown"})}function Nh(e,t){return new e({type:"never",...$(t)})}function Yr(e,t){return new Ra({check:"less_than",...$(t),value:e,inclusive:!1})}function Lo(e,t){return new Ra({check:"less_than",...$(t),value:e,inclusive:!0})}function Xr(e,t){return new Ia({check:"greater_than",...$(t),value:e,inclusive:!1})}function Uo(e,t){return new Ia({check:"greater_than",...$(t),value:e,inclusive:!0})}function ei(e,t){return new Vf({check:"multiple_of",...$(t),value:e})}function Aa(e,t){return new Bf({check:"max_length",...$(t),maximum:e})}function oo(e,t){return new Wf({check:"min_length",...$(t),minimum:e})}function Za(e,t){return new Kf({check:"length_equals",...$(t),length:e})}function Ah(e,t){return new Gf({check:"string_format",format:"regex",...$(t),pattern:e})}function Zh(e){return new Qf({check:"string_format",format:"lowercase",...$(e)})}function Mh(e){return new Yf({check:"string_format",format:"uppercase",...$(e)})}function jh(e,t){return new Xf({check:"string_format",format:"includes",...$(t),includes:e})}function Dh(e,t){return new ed({check:"string_format",format:"starts_with",...$(t),prefix:e})}function Fh(e,t){return new td({check:"string_format",format:"ends_with",...$(t),suffix:e})}function Yt(e){return new nd({check:"overwrite",tx:e})}function qh(e){return Yt(t=>t.normalize(e))}function Lh(){return Yt(e=>e.trim())}function Uh(){return Yt(e=>e.toLowerCase())}function Hh(){return Yt(e=>e.toUpperCase())}function Vh(){return Yt(e=>Wu(e))}function Jh(e,t,n){return new e({type:"array",element:t,...$(n)})}function Bh(e,t,n){const o=$(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Wh(e,t,n){return new e({type:"custom",check:"custom",fn:t,...$(n)})}function Kh(e){const t=Gh(n=>(n.addIssue=o=>{if(typeof o=="string")n.issues.push(kn(o,n.value,t._zod.def));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=t),s.continue??(s.continue=!t._zod.def.abort),n.issues.push(kn(s))}},e(n.value,n)));return t}function Gh(e,t){const n=new Ze({check:"custom",...$(t)});return n._zod.check=e,n}function Ma(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??cn,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function me(e,t,n={path:[],schemaPath:[]}){var l,d;var o;const s=e._zod.def,r=t.seen.get(e);if(r)return r.count++,n.schemaPath.includes(e)&&(r.cycle=n.path),r.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const a=(d=(l=e._zod).toJSONSchema)==null?void 0:d.call(l);if(a)i.schema=a;else{const p={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,p);else{const x=i.schema,z=t.processors[s.type];if(!z)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);z(e,t,x,p)}const _=e._zod.parent;_&&(i.ref||(i.ref=_),me(_,t,p),t.seen.get(_).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Object.assign(i.schema,c),t.io==="input"&&Pe(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&i.schema._prefault&&((o=i.schema).default??(o.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function ja(e,t){var i,a,c,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const l of e.seen.entries()){const d=(i=e.metadataRegistry.get(l[0]))==null?void 0:i.id;if(d){const p=o.get(d);if(p&&p!==l[0])throw new Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(d,l[0])}}const s=l=>{var z;const d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const q=(z=e.external.registry.get(l[0]))==null?void 0:z.id,Z=e.external.uri??(B=>B);if(q)return{ref:Z(q)};const A=l[1].defId??l[1].schema.id??`schema${e.counter++}`;return l[1].defId=A,{defId:A,ref:`${Z("__shared")}#/${d}/${A}`}}if(l[1]===n)return{ref:"#"};const _=`#/${d}/`,x=l[1].schema.id??`__schema${e.counter++}`;return{defId:x,ref:_+x}},r=l=>{if(l[1].schema.$ref)return;const d=l[1],{ref:p,defId:_}=s(l);d.def={...d.schema},_&&(d.defId=_);const x=d.schema;for(const z in x)delete x[z];x.$ref=p};if(e.cycles==="throw")for(const l of e.seen.entries()){const d=l[1];if(d.cycle)throw new Error(`Cycle detected: #/${(a=d.cycle)==null?void 0:a.join("/")}/<root>
60
+ `)}_.write("payload.value = newResult;"),_.write("return payload;");const A=_.compile();return(C,U)=>A(p,C,U)};let r;const i=Sn,a=!pa.jitless,u=a&&Ku.value,l=t.catchall;let d;e._zod.parse=(p,_)=>{d??(d=o.value);const x=p.value;return i(x)?a&&u&&(_==null?void 0:_.async)===!1&&_.jitless!==!0?(r||(r=s(t.shape)),p=r(p,_),l?Ca([],x,p,_,d,e):p):n(p,_):(p.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),p)}});function Ur(e,t,n,o){for(const r of e)if(r.issues.length===0)return t.value=r.value,t;const s=e.filter(r=>!Dt(r));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(i=>yt(i,o,vt())))}),t)}const Oa=y("$ZodUnion",(e,t)=>{ae.init(e,t),Q(e._zod,"optin",()=>t.options.some(s=>s._zod.optin==="optional")?"optional":void 0),Q(e._zod,"optout",()=>t.options.some(s=>s._zod.optout==="optional")?"optional":void 0),Q(e._zod,"values",()=>{if(t.options.every(s=>s._zod.values))return new Set(t.options.flatMap(s=>Array.from(s._zod.values)))}),Q(e._zod,"pattern",()=>{if(t.options.every(s=>s._zod.pattern)){const s=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${s.map(r=>Is(r.source)).join("|")})$`)}});const n=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(s,r)=>{if(n)return o(s,r);let i=!1;const a=[];for(const c of t.options){const u=c._zod.run({value:s.value,issues:[]},r);if(u instanceof Promise)a.push(u),i=!0;else{if(u.issues.length===0)return u;a.push(u)}}return i?Promise.all(a).then(c=>Ur(c,s,e,r)):Ur(a,s,e,r)}}),Dd=y("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Oa.init(e,t);const n=e._zod.parse;Q(e._zod,"propValues",()=>{const s={};for(const r of t.options){const i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(const[a,c]of Object.entries(i)){s[a]||(s[a]=new Set);for(const u of c)s[a].add(u)}}return s});const o=bo(()=>{var i;const s=t.options,r=new Map;for(const a of s){const c=(i=a._zod.propValues)==null?void 0:i[t.discriminator];if(!c||c.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const u of c){if(r.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);r.set(u,a)}}return r});e._zod.parse=(s,r)=>{const i=s.value;if(!Sn(i))return s.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),s;const a=o.value.get(i==null?void 0:i[t.discriminator]);return a?a._zod.run(s,r):t.unionFallback?n(s,r):(s.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),s)}}),qd=y("$ZodIntersection",(e,t)=>{ae.init(e,t),e._zod.parse=(n,o)=>{const s=n.value,r=t.left._zod.run({value:s,issues:[]},o),i=t.right._zod.run({value:s,issues:[]},o);return r instanceof Promise||i instanceof Promise?Promise.all([r,i]).then(([c,u])=>Hr(n,c,u)):Hr(n,r,i)}});function ns(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Kt(e)&&Kt(t)){const n=Object.keys(t),o=Object.keys(e).filter(r=>n.indexOf(r)!==-1),s={...e,...t};for(const r of o){const i=ns(e[r],t[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};s[r]=i.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const s=e[o],r=t[o],i=ns(s,r);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Hr(e,t,n){const o=new Map;let s;for(const a of t.issues)if(a.code==="unrecognized_keys"){s??(s=a);for(const c of a.keys)o.has(c)||o.set(c,{}),o.get(c).l=!0}else e.issues.push(a);for(const a of n.issues)if(a.code==="unrecognized_keys")for(const c of a.keys)o.has(c)||o.set(c,{}),o.get(c).r=!0;else e.issues.push(a);const r=[...o].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(r.length&&s&&e.issues.push({...s,keys:r}),Dt(e))return e;const i=ns(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const Fd=y("$ZodRecord",(e,t)=>{ae.init(e,t),e._zod.parse=(n,o)=>{const s=n.value;if(!Kt(s))return n.issues.push({expected:"record",code:"invalid_type",input:s,inst:e}),n;const r=[],i=t.keyType._zod.values;if(i){n.value={};const a=new Set;for(const u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);const l=t.valueType._zod.run({value:s[u],issues:[]},o);l instanceof Promise?r.push(l.then(d=>{d.issues.length&&n.issues.push(...qt(u,d.issues)),n.value[u]=d.value})):(l.issues.length&&n.issues.push(...qt(u,l.issues)),n.value[u]=l.value)}let c;for(const u in s)a.has(u)||(c=c??[],c.push(u));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:s,inst:e,keys:c})}else{n.value={};for(const a of Reflect.ownKeys(s)){if(a==="__proto__")continue;let c=t.keyType._zod.run({value:a,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&xa.test(a)&&c.issues.length&&c.issues.some(d=>d.code==="invalid_type"&&d.expected==="number")){const d=t.keyType._zod.run({value:Number(a),issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(c=d)}if(c.issues.length){t.mode==="loose"?n.value[a]=s[a]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>yt(d,o,vt())),input:a,path:[a],inst:e});continue}const l=t.valueType._zod.run({value:s[a],issues:[]},o);l instanceof Promise?r.push(l.then(d=>{d.issues.length&&n.issues.push(...qt(a,d.issues)),n.value[c.value]=d.value})):(l.issues.length&&n.issues.push(...qt(a,l.issues)),n.value[c.value]=l.value)}}return r.length?Promise.all(r).then(()=>n):n}}),Ld=y("$ZodEnum",(e,t)=>{ae.init(e,t);const n=ma(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(s=>Gu.has(typeof s)).map(s=>typeof s=="string"?Gt(s):s.toString()).join("|")})$`),e._zod.parse=(s,r)=>{const i=s.value;return o.has(i)||s.issues.push({code:"invalid_value",values:n,input:i,inst:e}),s}}),Ud=y("$ZodLiteral",(e,t)=>{if(ae.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?Gt(o):o?Gt(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,s)=>{const r=o.value;return n.has(r)||o.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),o}}),Hd=y("$ZodTransform",(e,t)=>{ae.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ha(e.constructor.name);const s=t.transform(n.value,n);if(o.async)return(s instanceof Promise?s:Promise.resolve(s)).then(i=>(n.value=i,n));if(s instanceof Promise)throw new Jt;return n.value=s,n}});function Vr(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Na=y("$ZodOptional",(e,t)=>{ae.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Q(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Is(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){const s=t.innerType._zod.run(n,o);return s instanceof Promise?s.then(r=>Vr(r,n.value)):Vr(s,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),Vd=y("$ZodExactOptional",(e,t)=>{Na.init(e,t),Q(e._zod,"values",()=>t.innerType._zod.values),Q(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),Jd=y("$ZodNullable",(e,t)=>{ae.init(e,t),Q(e._zod,"optin",()=>t.innerType._zod.optin),Q(e._zod,"optout",()=>t.innerType._zod.optout),Q(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Is(n.source)}|null)$`):void 0}),Q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),Bd=y("$ZodDefault",(e,t)=>{ae.init(e,t),e._zod.optin="optional",Q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;const s=t.innerType._zod.run(n,o);return s instanceof Promise?s.then(r=>Jr(r,t)):Jr(s,t)}});function Jr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Wd=y("$ZodPrefault",(e,t)=>{ae.init(e,t),e._zod.optin="optional",Q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),Kd=y("$ZodNonOptional",(e,t)=>{ae.init(e,t),Q(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{const s=t.innerType._zod.run(n,o);return s instanceof Promise?s.then(r=>Br(r,e)):Br(s,e)}});function Br(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Gd=y("$ZodCatch",(e,t)=>{ae.init(e,t),Q(e._zod,"optin",()=>t.innerType._zod.optin),Q(e._zod,"optout",()=>t.innerType._zod.optout),Q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const s=t.innerType._zod.run(n,o);return s instanceof Promise?s.then(r=>(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>yt(i,o,vt()))},input:n.value}),n.issues=[]),n)):(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(r=>yt(r,o,vt()))},input:n.value}),n.issues=[]),n)}}),Qd=y("$ZodPipe",(e,t)=>{ae.init(e,t),Q(e._zod,"values",()=>t.in._zod.values),Q(e._zod,"optin",()=>t.in._zod.optin),Q(e._zod,"optout",()=>t.out._zod.optout),Q(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){const r=t.out._zod.run(n,o);return r instanceof Promise?r.then(i=>Un(i,t.in,o)):Un(r,t.in,o)}const s=t.in._zod.run(n,o);return s instanceof Promise?s.then(r=>Un(r,t.out,o)):Un(s,t.out,o)}});function Un(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Yd=y("$ZodReadonly",(e,t)=>{ae.init(e,t),Q(e._zod,"propValues",()=>t.innerType._zod.propValues),Q(e._zod,"values",()=>t.innerType._zod.values),Q(e._zod,"optin",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optin}),Q(e._zod,"optout",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optout}),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const s=t.innerType._zod.run(n,o);return s instanceof Promise?s.then(Wr):Wr(s)}});function Wr(e){return e.value=Object.freeze(e.value),e}const Xd=y("$ZodCustom",(e,t)=>{Ze.init(e,t),ae.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,s=t.fn(o);if(s instanceof Promise)return s.then(r=>Kr(r,n,o,e));Kr(s,n,o,e)}});function Kr(e,t,n,o){if(!e){const s={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(s.params=o._zod.def.params),t.issues.push(kn(s))}}var Gr;class eh{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const o={...this.get(n)??{}};delete o.id;const s={...o,...this._map.get(t)};return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function th(){return new eh}(Gr=globalThis).__zod_globalRegistry??(Gr.__zod_globalRegistry=th());const cn=globalThis.__zod_globalRegistry;function nh(e,t){return new e({type:"string",...$(t)})}function oh(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...$(t)})}function Qr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...$(t)})}function sh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...$(t)})}function rh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...$(t)})}function ih(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...$(t)})}function ah(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...$(t)})}function ch(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...$(t)})}function lh(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...$(t)})}function uh(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...$(t)})}function fh(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...$(t)})}function dh(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...$(t)})}function hh(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...$(t)})}function ph(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...$(t)})}function mh(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...$(t)})}function gh(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...$(t)})}function _h(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...$(t)})}function bh(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...$(t)})}function vh(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...$(t)})}function yh(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...$(t)})}function wh(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...$(t)})}function Sh(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...$(t)})}function kh(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...$(t)})}function Th(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...$(t)})}function xh(e,t){return new e({type:"string",format:"date",check:"string_format",...$(t)})}function zh(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...$(t)})}function Rh(e,t){return new e({type:"string",format:"duration",check:"string_format",...$(t)})}function Ih(e,t){return new e({type:"number",checks:[],...$(t)})}function Ph(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...$(t)})}function Eh(e,t){return new e({type:"boolean",...$(t)})}function $h(e,t){return new e({type:"undefined",...$(t)})}function Ch(e,t){return new e({type:"null",...$(t)})}function Oh(e){return new e({type:"unknown"})}function Nh(e,t){return new e({type:"never",...$(t)})}function Yr(e,t){return new Ra({check:"less_than",...$(t),value:e,inclusive:!1})}function Lo(e,t){return new Ra({check:"less_than",...$(t),value:e,inclusive:!0})}function Xr(e,t){return new Ia({check:"greater_than",...$(t),value:e,inclusive:!1})}function Uo(e,t){return new Ia({check:"greater_than",...$(t),value:e,inclusive:!0})}function ei(e,t){return new Vf({check:"multiple_of",...$(t),value:e})}function Aa(e,t){return new Bf({check:"max_length",...$(t),maximum:e})}function oo(e,t){return new Wf({check:"min_length",...$(t),minimum:e})}function Za(e,t){return new Kf({check:"length_equals",...$(t),length:e})}function Ah(e,t){return new Gf({check:"string_format",format:"regex",...$(t),pattern:e})}function Zh(e){return new Qf({check:"string_format",format:"lowercase",...$(e)})}function Mh(e){return new Yf({check:"string_format",format:"uppercase",...$(e)})}function jh(e,t){return new Xf({check:"string_format",format:"includes",...$(t),includes:e})}function Dh(e,t){return new ed({check:"string_format",format:"starts_with",...$(t),prefix:e})}function qh(e,t){return new td({check:"string_format",format:"ends_with",...$(t),suffix:e})}function Yt(e){return new nd({check:"overwrite",tx:e})}function Fh(e){return Yt(t=>t.normalize(e))}function Lh(){return Yt(e=>e.trim())}function Uh(){return Yt(e=>e.toLowerCase())}function Hh(){return Yt(e=>e.toUpperCase())}function Vh(){return Yt(e=>Wu(e))}function Jh(e,t,n){return new e({type:"array",element:t,...$(n)})}function Bh(e,t,n){const o=$(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Wh(e,t,n){return new e({type:"custom",check:"custom",fn:t,...$(n)})}function Kh(e){const t=Gh(n=>(n.addIssue=o=>{if(typeof o=="string")n.issues.push(kn(o,n.value,t._zod.def));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=t),s.continue??(s.continue=!t._zod.def.abort),n.issues.push(kn(s))}},e(n.value,n)));return t}function Gh(e,t){const n=new Ze({check:"custom",...$(t)});return n._zod.check=e,n}function Ma(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??cn,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function me(e,t,n={path:[],schemaPath:[]}){var l,d;var o;const s=e._zod.def,r=t.seen.get(e);if(r)return r.count++,n.schemaPath.includes(e)&&(r.cycle=n.path),r.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const a=(d=(l=e._zod).toJSONSchema)==null?void 0:d.call(l);if(a)i.schema=a;else{const p={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,p);else{const x=i.schema,z=t.processors[s.type];if(!z)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);z(e,t,x,p)}const _=e._zod.parent;_&&(i.ref||(i.ref=_),me(_,t,p),t.seen.get(_).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Object.assign(i.schema,c),t.io==="input"&&Pe(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&i.schema._prefault&&((o=i.schema).default??(o.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function ja(e,t){var i,a,c,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const l of e.seen.entries()){const d=(i=e.metadataRegistry.get(l[0]))==null?void 0:i.id;if(d){const p=o.get(d);if(p&&p!==l[0])throw new Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(d,l[0])}}const s=l=>{var z;const d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const F=(z=e.external.registry.get(l[0]))==null?void 0:z.id,Z=e.external.uri??(B=>B);if(F)return{ref:Z(F)};const A=l[1].defId??l[1].schema.id??`schema${e.counter++}`;return l[1].defId=A,{defId:A,ref:`${Z("__shared")}#/${d}/${A}`}}if(l[1]===n)return{ref:"#"};const _=`#/${d}/`,x=l[1].schema.id??`__schema${e.counter++}`;return{defId:x,ref:_+x}},r=l=>{if(l[1].schema.$ref)return;const d=l[1],{ref:p,defId:_}=s(l);d.def={...d.schema},_&&(d.defId=_);const x=d.schema;for(const z in x)delete x[z];x.$ref=p};if(e.cycles==="throw")for(const l of e.seen.entries()){const d=l[1];if(d.cycle)throw new Error(`Cycle detected: #/${(a=d.cycle)==null?void 0:a.join("/")}/<root>
61
61
 
62
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of e.seen.entries()){const d=l[1];if(t===l[0]){r(l);continue}if(e.external){const _=(c=e.external.registry.get(l[0]))==null?void 0:c.id;if(t!==l[0]&&_){r(l);continue}}if((u=e.metadataRegistry.get(l[0]))==null?void 0:u.id){r(l);continue}if(d.cycle){r(l);continue}if(d.count>1&&e.reused==="ref"){r(l);continue}}}function Da(e,t){var i,a,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=u=>{const l=e.seen.get(u);if(l.ref===null)return;const d=l.def??l.schema,p={...d},_=l.ref;if(l.ref=null,_){o(_);const z=e.seen.get(_),q=z.schema;if(q.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(q)):Object.assign(d,q),Object.assign(d,p),u._zod.parent===_)for(const A in d)A==="$ref"||A==="allOf"||A in p||delete d[A];if(q.$ref)for(const A in d)A==="$ref"||A==="allOf"||A in z.def&&JSON.stringify(d[A])===JSON.stringify(z.def[A])&&delete d[A]}const x=u._zod.parent;if(x&&x!==_){o(x);const z=e.seen.get(x);if(z!=null&&z.schema.$ref&&(d.$ref=z.schema.$ref,z.def))for(const q in d)q==="$ref"||q==="allOf"||q in z.def&&JSON.stringify(d[q])===JSON.stringify(z.def[q])&&delete d[q]}e.override({zodSchema:u,jsonSchema:d,path:l.path??[]})};for(const u of[...e.seen.entries()].reverse())o(u[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,(i=e.external)!=null&&i.uri){const u=(a=e.external.registry.get(t))==null?void 0:a.id;if(!u)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(u)}Object.assign(s,n.def??n.schema);const r=((c=e.external)==null?void 0:c.defs)??{};for(const u of e.seen.entries()){const l=u[1];l.def&&l.defId&&(r[l.defId]=l.def)}e.external||Object.keys(r).length>0&&(e.target==="draft-2020-12"?s.$defs=r:s.definitions=r);try{const u=JSON.parse(JSON.stringify(s));return Object.defineProperty(u,"~standard",{value:{...t["~standard"],jsonSchema:{input:so(t,"input",e.processors),output:so(t,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function Pe(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Pe(o.element,n);if(o.type==="set")return Pe(o.valueType,n);if(o.type==="lazy")return Pe(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Pe(o.innerType,n);if(o.type==="intersection")return Pe(o.left,n)||Pe(o.right,n);if(o.type==="record"||o.type==="map")return Pe(o.keyType,n)||Pe(o.valueType,n);if(o.type==="pipe")return Pe(o.in,n)||Pe(o.out,n);if(o.type==="object"){for(const s in o.shape)if(Pe(o.shape[s],n))return!0;return!1}if(o.type==="union"){for(const s of o.options)if(Pe(s,n))return!0;return!1}if(o.type==="tuple"){for(const s of o.items)if(Pe(s,n))return!0;return!!(o.rest&&Pe(o.rest,n))}return!1}const Qh=(e,t={})=>n=>{const o=Ma({...n,processors:t});return me(e,o),ja(o,e),Da(o,e)},so=(e,t,n={})=>o=>{const{libraryOptions:s,target:r}=o??{},i=Ma({...s??{},target:r,io:t,processors:n});return me(e,i),ja(i,e),Da(i,e)},Yh={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Xh=(e,t,n,o)=>{const s=n;s.type="string";const{minimum:r,maximum:i,format:a,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof r=="number"&&(s.minLength=r),typeof i=="number"&&(s.maxLength=i),a&&(s.format=Yh[a]??a,s.format===""&&delete s.format,a==="time"&&delete s.format),u&&(s.contentEncoding=u),c&&c.size>0){const l=[...c];l.length===1?s.pattern=l[0].source:l.length>1&&(s.allOf=[...l.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},ep=(e,t,n,o)=>{const s=n,{minimum:r,maximum:i,format:a,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;typeof a=="string"&&a.includes("int")?s.type="integer":s.type="number",typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(s.minimum=l,s.exclusiveMinimum=!0):s.exclusiveMinimum=l),typeof r=="number"&&(s.minimum=r,typeof l=="number"&&t.target!=="draft-04"&&(l>=r?delete s.minimum:delete s.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(s.maximum=u,s.exclusiveMaximum=!0):s.exclusiveMaximum=u),typeof i=="number"&&(s.maximum=i,typeof u=="number"&&t.target!=="draft-04"&&(u<=i?delete s.maximum:delete s.exclusiveMaximum)),typeof c=="number"&&(s.multipleOf=c)},tp=(e,t,n,o)=>{n.type="boolean"},np=(e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},op=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},sp=(e,t,n,o)=>{n.not={}},rp=(e,t,n,o)=>{},ip=(e,t,n,o)=>{const s=e._zod.def,r=ma(s.entries);r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),n.enum=r},ap=(e,t,n,o)=>{const s=e._zod.def,r=[];for(const i of s.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(i))}else r.push(i);if(r.length!==0)if(r.length===1){const i=r[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),r.every(i=>typeof i=="boolean")&&(n.type="boolean"),r.every(i=>i===null)&&(n.type="null"),n.enum=r},cp=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},lp=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},up=(e,t,n,o)=>{const s=n,r=e._zod.def,{minimum:i,maximum:a}=e._zod.bag;typeof i=="number"&&(s.minItems=i),typeof a=="number"&&(s.maxItems=a),s.type="array",s.items=me(r.element,t,{...o,path:[...o.path,"items"]})},fp=(e,t,n,o)=>{var u;const s=n,r=e._zod.def;s.type="object",s.properties={};const i=r.shape;for(const l in i)s.properties[l]=me(i[l],t,{...o,path:[...o.path,"properties",l]});const a=new Set(Object.keys(i)),c=new Set([...a].filter(l=>{const d=r.shape[l]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));c.size>0&&(s.required=Array.from(c)),((u=r.catchall)==null?void 0:u._zod.def.type)==="never"?s.additionalProperties=!1:r.catchall?r.catchall&&(s.additionalProperties=me(r.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(s.additionalProperties=!1)},dp=(e,t,n,o)=>{const s=e._zod.def,r=s.inclusive===!1,i=s.options.map((a,c)=>me(a,t,{...o,path:[...o.path,r?"oneOf":"anyOf",c]}));r?n.oneOf=i:n.anyOf=i},hp=(e,t,n,o)=>{const s=e._zod.def,r=me(s.left,t,{...o,path:[...o.path,"allOf",0]}),i=me(s.right,t,{...o,path:[...o.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(r)?r.allOf:[r],...a(i)?i.allOf:[i]];n.allOf=c},pp=(e,t,n,o)=>{const s=n,r=e._zod.def;s.type="object";const i=r.keyType,a=i._zod.bag,c=a==null?void 0:a.patterns;if(r.mode==="loose"&&c&&c.size>0){const l=me(r.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});s.patternProperties={};for(const d of c)s.patternProperties[d.source]=l}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(s.propertyNames=me(r.keyType,t,{...o,path:[...o.path,"propertyNames"]})),s.additionalProperties=me(r.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const u=i._zod.values;if(u){const l=[...u].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(s.required=l)}},mp=(e,t,n,o)=>{const s=e._zod.def,r=me(s.innerType,t,o),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=s.innerType,n.nullable=!0):n.anyOf=[r,{type:"null"}]},gp=(e,t,n,o)=>{const s=e._zod.def;me(s.innerType,t,o);const r=t.seen.get(e);r.ref=s.innerType},_p=(e,t,n,o)=>{const s=e._zod.def;me(s.innerType,t,o);const r=t.seen.get(e);r.ref=s.innerType,n.default=JSON.parse(JSON.stringify(s.defaultValue))},bp=(e,t,n,o)=>{const s=e._zod.def;me(s.innerType,t,o);const r=t.seen.get(e);r.ref=s.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},vp=(e,t,n,o)=>{const s=e._zod.def;me(s.innerType,t,o);const r=t.seen.get(e);r.ref=s.innerType;let i;try{i=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},yp=(e,t,n,o)=>{const s=e._zod.def,r=t.io==="input"?s.in._zod.def.type==="transform"?s.out:s.in:s.out;me(r,t,o);const i=t.seen.get(e);i.ref=r},wp=(e,t,n,o)=>{const s=e._zod.def;me(s.innerType,t,o);const r=t.seen.get(e);r.ref=s.innerType,n.readOnly=!0},Fa=(e,t,n,o)=>{const s=e._zod.def;me(s.innerType,t,o);const r=t.seen.get(e);r.ref=s.innerType};function Os(e){return!!e._zod}function qa(e,t){return Os(e)?wa(e,t):e.safeParse(t)}function Sp(e){var n,o;if(!e)return;let t;if(Os(e)?t=(o=(n=e._zod)==null?void 0:n.def)==null?void 0:o.shape:t=e.shape,!!t){if(typeof t=="function")try{return t()}catch{return}return t}}function kp(e){var s;if(Os(e)){const i=(s=e._zod)==null?void 0:s.def;if(i){if(i.value!==void 0)return i.value;if(Array.isArray(i.values)&&i.values.length>0)return i.values[0]}}const n=e._def;if(n){if(n.value!==void 0)return n.value;if(Array.isArray(n.values)&&n.values.length>0)return n.values[0]}const o=e.value;if(o!==void 0)return o}const Tp=y("ZodISODateTime",(e,t)=>{gd.init(e,t),he.init(e,t)});function La(e){return Th(Tp,e)}const xp=y("ZodISODate",(e,t)=>{_d.init(e,t),he.init(e,t)});function zp(e){return xh(xp,e)}const Rp=y("ZodISOTime",(e,t)=>{bd.init(e,t),he.init(e,t)});function Ip(e){return zh(Rp,e)}const Pp=y("ZodISODuration",(e,t)=>{vd.init(e,t),he.init(e,t)});function Ep(e){return Rh(Pp,e)}const $p=(e,t)=>{va.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>cf(e,n)},flatten:{value:n=>af(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,ts,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,ts,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ue=y("ZodError",$p,{Parent:Error}),Cp=Es(Ue),Op=$s(Ue),Np=vo(Ue),Ap=yo(Ue),Zp=uf(Ue),Mp=ff(Ue),jp=df(Ue),Dp=hf(Ue),Fp=pf(Ue),qp=mf(Ue),Lp=gf(Ue),Up=_f(Ue),ce=y("ZodType",(e,t)=>(ae.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:so(e,"input"),output:so(e,"output")}}),e.toJSONSchema=Qh(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(St(t,{checks:[...t.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(n,o)=>kt(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.parse=(n,o)=>Cp(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Np(e,n,o),e.parseAsync=async(n,o)=>Op(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Ap(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Zp(e,n,o),e.decode=(n,o)=>Mp(e,n,o),e.encodeAsync=async(n,o)=>jp(e,n,o),e.decodeAsync=async(n,o)=>Dp(e,n,o),e.safeEncode=(n,o)=>Fp(e,n,o),e.safeDecode=(n,o)=>qp(e,n,o),e.safeEncodeAsync=async(n,o)=>Lp(e,n,o),e.safeDecodeAsync=async(n,o)=>Up(e,n,o),e.refine=(n,o)=>e.check(Am(n,o)),e.superRefine=n=>e.check(Zm(n)),e.overwrite=n=>e.check(Yt(n)),e.optional=()=>pe(e),e.exactOptional=()=>Sm(e),e.nullable=()=>oi(e),e.nullish=()=>pe(oi(e)),e.nonoptional=n=>Im(e,n),e.array=()=>j(e),e.or=n=>H([e,n]),e.and=n=>Ns(e,n),e.transform=n=>rs(e,Ka(n)),e.default=n=>xm(e,n),e.prefault=n=>Rm(e,n),e.catch=n=>Em(e,n),e.pipe=n=>rs(e,n),e.readonly=()=>Om(e),e.describe=n=>{const o=e.clone();return cn.add(o,{description:n}),o},Object.defineProperty(e,"description",{get(){var n;return(n=cn.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return cn.get(e);const o=e.clone();return cn.add(o,n[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Ua=y("_ZodString",(e,t)=>{Cs.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,s,r)=>Xh(e,o,s);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...o)=>e.check(Ah(...o)),e.includes=(...o)=>e.check(jh(...o)),e.startsWith=(...o)=>e.check(Dh(...o)),e.endsWith=(...o)=>e.check(Fh(...o)),e.min=(...o)=>e.check(oo(...o)),e.max=(...o)=>e.check(Aa(...o)),e.length=(...o)=>e.check(Za(...o)),e.nonempty=(...o)=>e.check(oo(1,...o)),e.lowercase=o=>e.check(Zh(o)),e.uppercase=o=>e.check(Mh(o)),e.trim=()=>e.check(Lh()),e.normalize=(...o)=>e.check(qh(...o)),e.toLowerCase=()=>e.check(Uh()),e.toUpperCase=()=>e.check(Hh()),e.slugify=()=>e.check(Vh())}),Hp=y("ZodString",(e,t)=>{Cs.init(e,t),Ua.init(e,t),e.email=n=>e.check(oh(Vp,n)),e.url=n=>e.check(ch(Jp,n)),e.jwt=n=>e.check(kh(am,n)),e.emoji=n=>e.check(lh(Bp,n)),e.guid=n=>e.check(Qr(ti,n)),e.uuid=n=>e.check(sh(Hn,n)),e.uuidv4=n=>e.check(rh(Hn,n)),e.uuidv6=n=>e.check(ih(Hn,n)),e.uuidv7=n=>e.check(ah(Hn,n)),e.nanoid=n=>e.check(uh(Wp,n)),e.guid=n=>e.check(Qr(ti,n)),e.cuid=n=>e.check(fh(Kp,n)),e.cuid2=n=>e.check(dh(Gp,n)),e.ulid=n=>e.check(hh(Qp,n)),e.base64=n=>e.check(yh(sm,n)),e.base64url=n=>e.check(wh(rm,n)),e.xid=n=>e.check(ph(Yp,n)),e.ksuid=n=>e.check(mh(Xp,n)),e.ipv4=n=>e.check(gh(em,n)),e.ipv6=n=>e.check(_h(tm,n)),e.cidrv4=n=>e.check(bh(nm,n)),e.cidrv6=n=>e.check(vh(om,n)),e.e164=n=>e.check(Sh(im,n)),e.datetime=n=>e.check(La(n)),e.date=n=>e.check(zp(n)),e.time=n=>e.check(Ip(n)),e.duration=n=>e.check(Ep(n))});function g(e){return nh(Hp,e)}const he=y("ZodStringFormat",(e,t)=>{le.init(e,t),Ua.init(e,t)}),Vp=y("ZodEmail",(e,t)=>{ad.init(e,t),he.init(e,t)}),ti=y("ZodGUID",(e,t)=>{rd.init(e,t),he.init(e,t)}),Hn=y("ZodUUID",(e,t)=>{id.init(e,t),he.init(e,t)}),Jp=y("ZodURL",(e,t)=>{cd.init(e,t),he.init(e,t)}),Bp=y("ZodEmoji",(e,t)=>{ld.init(e,t),he.init(e,t)}),Wp=y("ZodNanoID",(e,t)=>{ud.init(e,t),he.init(e,t)}),Kp=y("ZodCUID",(e,t)=>{fd.init(e,t),he.init(e,t)}),Gp=y("ZodCUID2",(e,t)=>{dd.init(e,t),he.init(e,t)}),Qp=y("ZodULID",(e,t)=>{hd.init(e,t),he.init(e,t)}),Yp=y("ZodXID",(e,t)=>{pd.init(e,t),he.init(e,t)}),Xp=y("ZodKSUID",(e,t)=>{md.init(e,t),he.init(e,t)}),em=y("ZodIPv4",(e,t)=>{yd.init(e,t),he.init(e,t)}),tm=y("ZodIPv6",(e,t)=>{wd.init(e,t),he.init(e,t)}),nm=y("ZodCIDRv4",(e,t)=>{Sd.init(e,t),he.init(e,t)}),om=y("ZodCIDRv6",(e,t)=>{kd.init(e,t),he.init(e,t)}),sm=y("ZodBase64",(e,t)=>{Td.init(e,t),he.init(e,t)}),rm=y("ZodBase64URL",(e,t)=>{zd.init(e,t),he.init(e,t)}),im=y("ZodE164",(e,t)=>{Rd.init(e,t),he.init(e,t)}),am=y("ZodJWT",(e,t)=>{Pd.init(e,t),he.init(e,t)}),Ha=y("ZodNumber",(e,t)=>{Ea.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,s,r)=>ep(e,o,s),e.gt=(o,s)=>e.check(Xr(o,s)),e.gte=(o,s)=>e.check(Uo(o,s)),e.min=(o,s)=>e.check(Uo(o,s)),e.lt=(o,s)=>e.check(Yr(o,s)),e.lte=(o,s)=>e.check(Lo(o,s)),e.max=(o,s)=>e.check(Lo(o,s)),e.int=o=>e.check(ni(o)),e.safe=o=>e.check(ni(o)),e.positive=o=>e.check(Xr(0,o)),e.nonnegative=o=>e.check(Uo(0,o)),e.negative=o=>e.check(Yr(0,o)),e.nonpositive=o=>e.check(Lo(0,o)),e.multipleOf=(o,s)=>e.check(ei(o,s)),e.step=(o,s)=>e.check(ei(o,s)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function L(e){return Ih(Ha,e)}const cm=y("ZodNumberFormat",(e,t)=>{Ed.init(e,t),Ha.init(e,t)});function ni(e){return Ph(cm,e)}const lm=y("ZodBoolean",(e,t)=>{$d.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>tp(e,n,o)});function ie(e){return Eh(lm,e)}const um=y("ZodUndefined",(e,t)=>{Cd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>op(e,n)});function os(e){return $h(um,e)}const fm=y("ZodNull",(e,t)=>{Od.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>np(e,n,o)});function Va(e){return Ch(fm,e)}const dm=y("ZodUnknown",(e,t)=>{Nd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>rp()});function ne(){return Oh(dm)}const hm=y("ZodNever",(e,t)=>{Ad.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>sp(e,n,o)});function pm(e){return Nh(hm,e)}const mm=y("ZodArray",(e,t)=>{Zd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>up(e,n,o,s),e.element=t.element,e.min=(n,o)=>e.check(oo(n,o)),e.nonempty=n=>e.check(oo(1,n)),e.max=(n,o)=>e.check(Aa(n,o)),e.length=(n,o)=>e.check(Za(n,o)),e.unwrap=()=>e.element});function j(e,t){return Jh(mm,e,t)}const Ja=y("ZodObject",(e,t)=>{jd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>fp(e,n,o,s),Q(e,"shape",()=>t.shape),e.keyof=()=>Fe(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ne()}),e.loose=()=>e.clone({...e._zod.def,catchall:ne()}),e.strict=()=>e.clone({...e._zod.def,catchall:pm()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>tf(e,n),e.safeExtend=n=>nf(e,n),e.merge=n=>of(e,n),e.pick=n=>Xu(e,n),e.omit=n=>ef(e,n),e.partial=(...n)=>sf(Ga,e,n[0]),e.required=(...n)=>rf(Qa,e,n[0])});function b(e,t){const n={type:"object",shape:e??{},...$(t)};return new Ja(n)}function Ae(e,t){return new Ja({type:"object",shape:e,catchall:ne(),...$(t)})}const Ba=y("ZodUnion",(e,t)=>{Oa.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>dp(e,n,o,s),e.options=t.options});function H(e,t){return new Ba({type:"union",options:e,...$(t)})}const gm=y("ZodDiscriminatedUnion",(e,t)=>{Ba.init(e,t),Dd.init(e,t)});function Wa(e,t,n){return new gm({type:"union",options:t,discriminator:e,...$(n)})}const _m=y("ZodIntersection",(e,t)=>{Fd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>hp(e,n,o,s)});function Ns(e,t){return new _m({type:"intersection",left:e,right:t})}const bm=y("ZodRecord",(e,t)=>{qd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>pp(e,n,o,s),e.keyType=t.keyType,e.valueType=t.valueType});function ee(e,t,n){return new bm({type:"record",keyType:e,valueType:t,...$(n)})}const ss=y("ZodEnum",(e,t)=>{Ld.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,s,r)=>ip(e,o,s),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(o,s)=>{const r={};for(const i of o)if(n.has(i))r[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new ss({...t,checks:[],...$(s),entries:r})},e.exclude=(o,s)=>{const r={...t.entries};for(const i of o)if(n.has(i))delete r[i];else throw new Error(`Key ${i} not found in enum`);return new ss({...t,checks:[],...$(s),entries:r})}});function Fe(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new ss({type:"enum",entries:n,...$(t)})}const vm=y("ZodLiteral",(e,t)=>{Ud.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>ap(e,n,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function m(e,t){return new vm({type:"literal",values:Array.isArray(e)?e:[e],...$(t)})}const ym=y("ZodTransform",(e,t)=>{Hd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>lp(e,n),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ha(e.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push(kn(r,n.value,t));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(kn(i))}};const s=t.transform(n.value,n);return s instanceof Promise?s.then(r=>(n.value=r,n)):(n.value=s,n)}});function Ka(e){return new ym({type:"transform",transform:e})}const Ga=y("ZodOptional",(e,t)=>{Na.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>Fa(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function pe(e){return new Ga({type:"optional",innerType:e})}const wm=y("ZodExactOptional",(e,t)=>{Vd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>Fa(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function Sm(e){return new wm({type:"optional",innerType:e})}const km=y("ZodNullable",(e,t)=>{Jd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>mp(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function oi(e){return new km({type:"nullable",innerType:e})}const Tm=y("ZodDefault",(e,t)=>{Bd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>_p(e,n,o,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function xm(e,t){return new Tm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():_a(t)}})}const zm=y("ZodPrefault",(e,t)=>{Wd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>bp(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function Rm(e,t){return new zm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():_a(t)}})}const Qa=y("ZodNonOptional",(e,t)=>{Kd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>gp(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function Im(e,t){return new Qa({type:"nonoptional",innerType:e,...$(t)})}const Pm=y("ZodCatch",(e,t)=>{Gd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>vp(e,n,o,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Em(e,t){return new Pm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const $m=y("ZodPipe",(e,t)=>{Qd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>yp(e,n,o,s),e.in=t.in,e.out=t.out});function rs(e,t){return new $m({type:"pipe",in:e,out:t})}const Cm=y("ZodReadonly",(e,t)=>{Yd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>wp(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function Om(e){return new Cm({type:"readonly",innerType:e})}const Ya=y("ZodCustom",(e,t)=>{Xd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>cp(e,n)});function Nm(e,t){return Bh(Ya,e??(()=>!0),t)}function Am(e,t={}){return Wh(Ya,e,t)}function Zm(e){return Kh(e)}function Xa(e,t){return rs(Ka(e),t)}const Et="io.modelcontextprotocol/related-task",So="2.0",ve=Nm(e=>e!==null&&(typeof e=="object"||typeof e=="function")),ec=H([g(),L().int()]),tc=g();Ae({ttl:H([L(),Va()]).optional(),pollInterval:L().optional()});const Mm=b({ttl:L().optional()}),jm=b({taskId:g()}),As=Ae({progressToken:ec.optional(),[Et]:jm.optional()}),qe=b({_meta:As.optional()}),Rn=qe.extend({task:Mm.optional()}),Dm=e=>Rn.safeParse(e).success,we=b({method:g(),params:qe.loose().optional()}),He=b({_meta:As.optional()}),Ve=b({method:g(),params:He.loose().optional()}),Se=Ae({_meta:As.optional()}),In=H([g(),L().int()]),nc=b({jsonrpc:m(So),id:In,...we.shape}).strict(),si=e=>nc.safeParse(e).success,oc=b({jsonrpc:m(So),...Ve.shape}).strict(),Fm=e=>oc.safeParse(e).success,Zs=b({jsonrpc:m(So),id:In,result:Se}).strict(),Vn=e=>Zs.safeParse(e).success;var X;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(X||(X={}));const Ms=b({jsonrpc:m(So),id:In.optional(),error:b({code:L().int(),message:g(),data:ne().optional()})}).strict(),qm=e=>Ms.safeParse(e).success,Lm=H([nc,oc,Zs,Ms]);H([Zs,Ms]);const js=Se.strict(),Um=He.extend({requestId:In.optional(),reason:g().optional()}),Ds=Ve.extend({method:m("notifications/cancelled"),params:Um}),Hm=b({src:g(),mimeType:g().optional(),sizes:j(g()).optional(),theme:Fe(["light","dark"]).optional()}),Pn=b({icons:j(Hm).optional()}),Qt=b({name:g(),title:g().optional()}),ko=Qt.extend({...Qt.shape,...Pn.shape,version:g(),websiteUrl:g().optional(),description:g().optional()}),Vm=Ns(b({applyDefaults:ie().optional()}),ee(g(),ne())),Jm=Xa(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Ns(b({form:Vm.optional(),url:ve.optional()}),ee(g(),ne()).optional())),Bm=Ae({list:ve.optional(),cancel:ve.optional(),requests:Ae({sampling:Ae({createMessage:ve.optional()}).optional(),elicitation:Ae({create:ve.optional()}).optional()}).optional()}),Wm=Ae({list:ve.optional(),cancel:ve.optional(),requests:Ae({tools:Ae({call:ve.optional()}).optional()}).optional()}),Km=b({experimental:ee(g(),ve).optional(),sampling:b({context:ve.optional(),tools:ve.optional()}).optional(),elicitation:Jm.optional(),roots:b({listChanged:ie().optional()}).optional(),tasks:Bm.optional()}),Gm=qe.extend({protocolVersion:g(),capabilities:Km,clientInfo:ko}),Qm=we.extend({method:m("initialize"),params:Gm}),Ym=b({experimental:ee(g(),ve).optional(),logging:ve.optional(),completions:ve.optional(),prompts:b({listChanged:ie().optional()}).optional(),resources:b({subscribe:ie().optional(),listChanged:ie().optional()}).optional(),tools:b({listChanged:ie().optional()}).optional(),tasks:Wm.optional()}),Xm=Se.extend({protocolVersion:g(),capabilities:Ym,serverInfo:ko,instructions:g().optional()}),eg=Ve.extend({method:m("notifications/initialized"),params:He.optional()}),To=we.extend({method:m("ping"),params:qe.optional()}),tg=b({progress:L(),total:pe(L()),message:pe(g())}),ng=b({...He.shape,...tg.shape,progressToken:ec}),Fs=Ve.extend({method:m("notifications/progress"),params:ng}),og=qe.extend({cursor:tc.optional()}),En=we.extend({params:og.optional()}),$n=Se.extend({nextCursor:tc.optional()}),sg=Fe(["working","input_required","completed","failed","cancelled"]),Cn=b({taskId:g(),status:sg,ttl:H([L(),Va()]),createdAt:g(),lastUpdatedAt:g(),pollInterval:pe(L()),statusMessage:pe(g())}),qs=Se.extend({task:Cn}),rg=He.merge(Cn),ro=Ve.extend({method:m("notifications/tasks/status"),params:rg}),Ls=we.extend({method:m("tasks/get"),params:qe.extend({taskId:g()})}),Us=Se.merge(Cn),Hs=we.extend({method:m("tasks/result"),params:qe.extend({taskId:g()})});Se.loose();const Vs=En.extend({method:m("tasks/list")}),Js=$n.extend({tasks:j(Cn)}),Bs=we.extend({method:m("tasks/cancel"),params:qe.extend({taskId:g()})}),ig=Se.merge(Cn),sc=b({uri:g(),mimeType:pe(g()),_meta:ee(g(),ne()).optional()}),rc=sc.extend({text:g()}),Ws=g().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),ic=sc.extend({blob:Ws}),On=Fe(["user","assistant"]),Xt=b({audience:j(On).optional(),priority:L().min(0).max(1).optional(),lastModified:La({offset:!0}).optional()}),ac=b({...Qt.shape,...Pn.shape,uri:g(),description:pe(g()),mimeType:pe(g()),annotations:Xt.optional(),_meta:pe(Ae({}))}),ag=b({...Qt.shape,...Pn.shape,uriTemplate:g(),description:pe(g()),mimeType:pe(g()),annotations:Xt.optional(),_meta:pe(Ae({}))}),cg=En.extend({method:m("resources/list")}),cc=$n.extend({resources:j(ac)}),lg=En.extend({method:m("resources/templates/list")}),ug=$n.extend({resourceTemplates:j(ag)}),Ks=qe.extend({uri:g()}),fg=Ks,dg=we.extend({method:m("resources/read"),params:fg}),lc=Se.extend({contents:j(H([rc,ic]))}),hg=Ve.extend({method:m("notifications/resources/list_changed"),params:He.optional()}),pg=Ks,mg=we.extend({method:m("resources/subscribe"),params:pg}),gg=Ks,_g=we.extend({method:m("resources/unsubscribe"),params:gg}),bg=He.extend({uri:g()}),vg=Ve.extend({method:m("notifications/resources/updated"),params:bg}),yg=b({name:g(),description:pe(g()),required:pe(ie())}),wg=b({...Qt.shape,...Pn.shape,description:pe(g()),arguments:pe(j(yg)),_meta:pe(Ae({}))}),Sg=En.extend({method:m("prompts/list")}),kg=$n.extend({prompts:j(wg)}),Tg=qe.extend({name:g(),arguments:ee(g(),g()).optional()}),xg=we.extend({method:m("prompts/get"),params:Tg}),Gs=b({type:m("text"),text:g(),annotations:Xt.optional(),_meta:ee(g(),ne()).optional()}),Qs=b({type:m("image"),data:Ws,mimeType:g(),annotations:Xt.optional(),_meta:ee(g(),ne()).optional()}),Ys=b({type:m("audio"),data:Ws,mimeType:g(),annotations:Xt.optional(),_meta:ee(g(),ne()).optional()}),zg=b({type:m("tool_use"),name:g(),id:g(),input:ee(g(),ne()),_meta:ee(g(),ne()).optional()}),uc=b({type:m("resource"),resource:H([rc,ic]),annotations:Xt.optional(),_meta:ee(g(),ne()).optional()}),fc=ac.extend({type:m("resource_link")}),Nn=H([Gs,Qs,Ys,fc,uc]),Rg=b({role:On,content:Nn}),Ig=Se.extend({description:g().optional(),messages:j(Rg)}),Pg=Ve.extend({method:m("notifications/prompts/list_changed"),params:He.optional()}),Eg=b({title:g().optional(),readOnlyHint:ie().optional(),destructiveHint:ie().optional(),idempotentHint:ie().optional(),openWorldHint:ie().optional()}),$g=b({taskSupport:Fe(["required","optional","forbidden"]).optional()}),Xs=b({...Qt.shape,...Pn.shape,description:g().optional(),inputSchema:b({type:m("object"),properties:ee(g(),ve).optional(),required:j(g()).optional()}).catchall(ne()),outputSchema:b({type:m("object"),properties:ee(g(),ve).optional(),required:j(g()).optional()}).catchall(ne()).optional(),annotations:Eg.optional(),execution:$g.optional(),_meta:ee(g(),ne()).optional()}),dc=En.extend({method:m("tools/list")}),Cg=$n.extend({tools:j(Xs)}),xo=Se.extend({content:j(Nn).default([]),structuredContent:ee(g(),ne()).optional(),isError:ie().optional()});xo.or(Se.extend({toolResult:ne()}));const Og=Rn.extend({name:g(),arguments:ee(g(),ne()).optional()}),hc=we.extend({method:m("tools/call"),params:Og}),Ng=Ve.extend({method:m("notifications/tools/list_changed"),params:He.optional()});b({autoRefresh:ie().default(!0),debounceMs:L().int().nonnegative().default(300)});const pc=Fe(["debug","info","notice","warning","error","critical","alert","emergency"]),Ag=qe.extend({level:pc}),Zg=we.extend({method:m("logging/setLevel"),params:Ag}),Mg=He.extend({level:pc,logger:g().optional(),data:ne()}),jg=Ve.extend({method:m("notifications/message"),params:Mg}),Dg=b({name:g().optional()}),Fg=b({hints:j(Dg).optional(),costPriority:L().min(0).max(1).optional(),speedPriority:L().min(0).max(1).optional(),intelligencePriority:L().min(0).max(1).optional()}),qg=b({mode:Fe(["auto","required","none"]).optional()}),Lg=b({type:m("tool_result"),toolUseId:g().describe("The unique identifier for the corresponding tool call."),content:j(Nn).default([]),structuredContent:b({}).loose().optional(),isError:ie().optional(),_meta:ee(g(),ne()).optional()}),Ug=Wa("type",[Gs,Qs,Ys]),io=Wa("type",[Gs,Qs,Ys,zg,Lg]),Hg=b({role:On,content:H([io,j(io)]),_meta:ee(g(),ne()).optional()}),Vg=Rn.extend({messages:j(Hg),modelPreferences:Fg.optional(),systemPrompt:g().optional(),includeContext:Fe(["none","thisServer","allServers"]).optional(),temperature:L().optional(),maxTokens:L().int(),stopSequences:j(g()).optional(),metadata:ve.optional(),tools:j(Xs).optional(),toolChoice:qg.optional()}),Jg=we.extend({method:m("sampling/createMessage"),params:Vg}),Bg=Se.extend({model:g(),stopReason:pe(Fe(["endTurn","stopSequence","maxTokens"]).or(g())),role:On,content:Ug}),Wg=Se.extend({model:g(),stopReason:pe(Fe(["endTurn","stopSequence","maxTokens","toolUse"]).or(g())),role:On,content:H([io,j(io)])}),Kg=b({type:m("boolean"),title:g().optional(),description:g().optional(),default:ie().optional()}),Gg=b({type:m("string"),title:g().optional(),description:g().optional(),minLength:L().optional(),maxLength:L().optional(),format:Fe(["email","uri","date","date-time"]).optional(),default:g().optional()}),Qg=b({type:Fe(["number","integer"]),title:g().optional(),description:g().optional(),minimum:L().optional(),maximum:L().optional(),default:L().optional()}),Yg=b({type:m("string"),title:g().optional(),description:g().optional(),enum:j(g()),default:g().optional()}),Xg=b({type:m("string"),title:g().optional(),description:g().optional(),oneOf:j(b({const:g(),title:g()})),default:g().optional()}),e_=b({type:m("string"),title:g().optional(),description:g().optional(),enum:j(g()),enumNames:j(g()).optional(),default:g().optional()}),t_=H([Yg,Xg]),n_=b({type:m("array"),title:g().optional(),description:g().optional(),minItems:L().optional(),maxItems:L().optional(),items:b({type:m("string"),enum:j(g())}),default:j(g()).optional()}),o_=b({type:m("array"),title:g().optional(),description:g().optional(),minItems:L().optional(),maxItems:L().optional(),items:b({anyOf:j(b({const:g(),title:g()}))}),default:j(g()).optional()}),s_=H([n_,o_]),r_=H([e_,t_,s_]),i_=H([r_,Kg,Gg,Qg]),a_=Rn.extend({mode:m("form").optional(),message:g(),requestedSchema:b({type:m("object"),properties:ee(g(),i_),required:j(g()).optional()})}),c_=Rn.extend({mode:m("url"),message:g(),elicitationId:g(),url:g().url()}),l_=H([a_,c_]),u_=we.extend({method:m("elicitation/create"),params:l_}),f_=He.extend({elicitationId:g()}),d_=Ve.extend({method:m("notifications/elicitation/complete"),params:f_}),h_=Se.extend({action:Fe(["accept","decline","cancel"]),content:Xa(e=>e===null?void 0:e,ee(g(),H([g(),L(),ie(),j(g())])).optional())}),p_=b({type:m("ref/resource"),uri:g()}),m_=b({type:m("ref/prompt"),name:g()}),g_=qe.extend({ref:H([m_,p_]),argument:b({name:g(),value:g()}),context:b({arguments:ee(g(),g()).optional()}).optional()}),__=we.extend({method:m("completion/complete"),params:g_}),b_=Se.extend({completion:Ae({values:j(g()).max(100),total:pe(L().int()),hasMore:pe(ie())})}),v_=b({uri:g().startsWith("file://"),name:g().optional(),_meta:ee(g(),ne()).optional()}),y_=we.extend({method:m("roots/list"),params:qe.optional()}),w_=Se.extend({roots:j(v_)}),S_=Ve.extend({method:m("notifications/roots/list_changed"),params:He.optional()});H([To,Qm,__,Zg,xg,Sg,cg,lg,dg,mg,_g,hc,dc,Ls,Hs,Vs,Bs]);H([Ds,Fs,eg,S_,ro]);H([js,Bg,Wg,h_,w_,Us,Js,qs]);H([To,Jg,u_,y_,Ls,Hs,Vs,Bs]);H([Ds,Fs,jg,vg,hg,Ng,Pg,ro,d_]);H([js,Xm,b_,Ig,kg,cc,ug,lc,xo,Cg,Us,Js,qs]);class W extends Error{constructor(t,n,o){super(`MCP error ${t}: ${n}`),this.code=t,this.data=o,this.name="McpError"}static fromError(t,n,o){if(t===X.UrlElicitationRequired&&o){const s=o;if(s.elicitations)return new k_(s.elicitations,n)}return new W(t,n,o)}}class k_ extends W{constructor(t,n=`URL elicitation${t.length>1?"s":""} required`){super(X.UrlElicitationRequired,n,{elicitations:t})}get elicitations(){var t;return((t=this.data)==null?void 0:t.elicitations)??[]}}function It(e){return e==="completed"||e==="failed"||e==="cancelled"}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function ri(e){const t=Sp(e),n=t==null?void 0:t.method;if(!n)throw new Error("Schema is missing a method literal");const o=kp(n);if(typeof o!="string")throw new Error("Schema method literal must be a string");return o}function ii(e,t){const n=qa(e,t);if(!n.success)throw n.error;return n.data}const T_=6e4;class x_{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(Ds,n=>{this._oncancel(n)}),this.setNotificationHandler(Fs,n=>{this._onprogress(n)}),this.setRequestHandler(To,n=>({})),this._taskStore=t==null?void 0:t.taskStore,this._taskMessageQueue=t==null?void 0:t.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Ls,async(n,o)=>{const s=await this._taskStore.getTask(n.params.taskId,o.sessionId);if(!s)throw new W(X.InvalidParams,"Failed to retrieve task: Task not found");return{...s}}),this.setRequestHandler(Hs,async(n,o)=>{const s=async()=>{var a;const r=n.params.taskId;if(this._taskMessageQueue){let c;for(;c=await this._taskMessageQueue.dequeue(r,o.sessionId);){if(c.type==="response"||c.type==="error"){const u=c.message,l=u.id,d=this._requestResolvers.get(l);if(d)if(this._requestResolvers.delete(l),c.type==="response")d(u);else{const p=u,_=new W(p.error.code,p.error.message,p.error.data);d(_)}else{const p=c.type==="response"?"Response":"Error";this._onerror(new Error(`${p} handler missing for request ${l}`))}continue}await((a=this._transport)==null?void 0:a.send(c.message,{relatedRequestId:o.requestId}))}}const i=await this._taskStore.getTask(r,o.sessionId);if(!i)throw new W(X.InvalidParams,`Task not found: ${r}`);if(!It(i.status))return await this._waitForTaskUpdate(r,o.signal),await s();if(It(i.status)){const c=await this._taskStore.getTaskResult(r,o.sessionId);return this._clearTaskQueue(r),{...c,_meta:{...c._meta,[Et]:{taskId:r}}}}return await s()};return await s()}),this.setRequestHandler(Vs,async(n,o)=>{var s;try{const{tasks:r,nextCursor:i}=await this._taskStore.listTasks((s=n.params)==null?void 0:s.cursor,o.sessionId);return{tasks:r,nextCursor:i,_meta:{}}}catch(r){throw new W(X.InvalidParams,`Failed to list tasks: ${r instanceof Error?r.message:String(r)}`)}}),this.setRequestHandler(Bs,async(n,o)=>{try{const s=await this._taskStore.getTask(n.params.taskId,o.sessionId);if(!s)throw new W(X.InvalidParams,`Task not found: ${n.params.taskId}`);if(It(s.status))throw new W(X.InvalidParams,`Cannot cancel task in terminal status: ${s.status}`);await this._taskStore.updateTaskStatus(n.params.taskId,"cancelled","Client cancelled task execution.",o.sessionId),this._clearTaskQueue(n.params.taskId);const r=await this._taskStore.getTask(n.params.taskId,o.sessionId);if(!r)throw new W(X.InvalidParams,`Task not found after cancellation: ${n.params.taskId}`);return{_meta:{},...r}}catch(s){throw s instanceof W?s:new W(X.InvalidRequest,`Failed to cancel task: ${s instanceof Error?s.message:String(s)}`)}}))}async _oncancel(t){if(!t.params.requestId)return;const n=this._requestHandlerAbortControllers.get(t.params.requestId);n==null||n.abort(t.params.reason)}_setupTimeout(t,n,o,s,r=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(s,n),startTime:Date.now(),timeout:n,maxTotalTimeout:o,resetTimeoutOnProgress:r,onTimeout:s})}_resetTimeout(t){const n=this._timeoutInfo.get(t);if(!n)return!1;const o=Date.now()-n.startTime;if(n.maxTotalTimeout&&o>=n.maxTotalTimeout)throw this._timeoutInfo.delete(t),W.fromError(X.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:n.maxTotalTimeout,totalElapsed:o});return clearTimeout(n.timeoutId),n.timeoutId=setTimeout(n.onTimeout,n.timeout),!0}_cleanupTimeout(t){const n=this._timeoutInfo.get(t);n&&(clearTimeout(n.timeoutId),this._timeoutInfo.delete(t))}async connect(t){var r,i,a;this._transport=t;const n=(r=this.transport)==null?void 0:r.onclose;this._transport.onclose=()=>{n==null||n(),this._onclose()};const o=(i=this.transport)==null?void 0:i.onerror;this._transport.onerror=c=>{o==null||o(c),this._onerror(c)};const s=(a=this._transport)==null?void 0:a.onmessage;this._transport.onmessage=(c,u)=>{s==null||s(c,u),Vn(c)||qm(c)?this._onresponse(c):si(c)?this._onrequest(c,u):Fm(c)?this._onnotification(c):this._onerror(new Error(`Unknown message type: ${JSON.stringify(c)}`))},await this._transport.start()}_onclose(){var o;const t=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();const n=W.fromError(X.ConnectionClosed,"Connection closed");this._transport=void 0,(o=this.onclose)==null||o.call(this);for(const s of t.values())s(n)}_onerror(t){var n;(n=this.onerror)==null||n.call(this,t)}_onnotification(t){const n=this._notificationHandlers.get(t.method)??this.fallbackNotificationHandler;n!==void 0&&Promise.resolve().then(()=>n(t)).catch(o=>this._onerror(new Error(`Uncaught error in notification handler: ${o}`)))}_onrequest(t,n){var l,d,p,_;const o=this._requestHandlers.get(t.method)??this.fallbackRequestHandler,s=this._transport,r=(p=(d=(l=t.params)==null?void 0:l._meta)==null?void 0:d[Et])==null?void 0:p.taskId;if(o===void 0){const x={jsonrpc:"2.0",id:t.id,error:{code:X.MethodNotFound,message:"Method not found"}};r&&this._taskMessageQueue?this._enqueueTaskMessage(r,{type:"error",message:x,timestamp:Date.now()},s==null?void 0:s.sessionId).catch(z=>this._onerror(new Error(`Failed to enqueue error response: ${z}`))):s==null||s.send(x).catch(z=>this._onerror(new Error(`Failed to send an error response: ${z}`)));return}const i=new AbortController;this._requestHandlerAbortControllers.set(t.id,i);const a=Dm(t.params)?t.params.task:void 0,c=this._taskStore?this.requestTaskStore(t,s==null?void 0:s.sessionId):void 0,u={signal:i.signal,sessionId:s==null?void 0:s.sessionId,_meta:(_=t.params)==null?void 0:_._meta,sendNotification:async x=>{const z={relatedRequestId:t.id};r&&(z.relatedTask={taskId:r}),await this.notification(x,z)},sendRequest:async(x,z,q)=>{var B;const Z={...q,relatedRequestId:t.id};r&&!Z.relatedTask&&(Z.relatedTask={taskId:r});const A=((B=Z.relatedTask)==null?void 0:B.taskId)??r;return A&&c&&await c.updateTaskStatus(A,"input_required"),await this.request(x,z,Z)},authInfo:n==null?void 0:n.authInfo,requestId:t.id,requestInfo:n==null?void 0:n.requestInfo,taskId:r,taskStore:c,taskRequestedTtl:a==null?void 0:a.ttl,closeSSEStream:n==null?void 0:n.closeSSEStream,closeStandaloneSSEStream:n==null?void 0:n.closeStandaloneSSEStream};Promise.resolve().then(()=>{a&&this.assertTaskHandlerCapability(t.method)}).then(()=>o(t,u)).then(async x=>{if(i.signal.aborted)return;const z={result:x,jsonrpc:"2.0",id:t.id};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"response",message:z,timestamp:Date.now()},s==null?void 0:s.sessionId):await(s==null?void 0:s.send(z))},async x=>{if(i.signal.aborted)return;const z={jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(x.code)?x.code:X.InternalError,message:x.message??"Internal error",...x.data!==void 0&&{data:x.data}}};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"error",message:z,timestamp:Date.now()},s==null?void 0:s.sessionId):await(s==null?void 0:s.send(z))}).catch(x=>this._onerror(new Error(`Failed to send response: ${x}`))).finally(()=>{this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){const{progressToken:n,...o}=t.params,s=Number(n),r=this._progressHandlers.get(s);if(!r){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}const i=this._responseHandlers.get(s),a=this._timeoutInfo.get(s);if(a&&i&&a.resetTimeoutOnProgress)try{this._resetTimeout(s)}catch(c){this._responseHandlers.delete(s),this._progressHandlers.delete(s),this._cleanupTimeout(s),i(c);return}r(o)}_onresponse(t){const n=Number(t.id),o=this._requestResolvers.get(n);if(o){if(this._requestResolvers.delete(n),Vn(t))o(t);else{const i=new W(t.error.code,t.error.message,t.error.data);o(i)}return}const s=this._responseHandlers.get(n);if(s===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}this._responseHandlers.delete(n),this._cleanupTimeout(n);let r=!1;if(Vn(t)&&t.result&&typeof t.result=="object"){const i=t.result;if(i.task&&typeof i.task=="object"){const a=i.task;typeof a.taskId=="string"&&(r=!0,this._taskProgressTokens.set(a.taskId,n))}}if(r||this._progressHandlers.delete(n),Vn(t))s(t);else{const i=W.fromError(t.error.code,t.error.message,t.error.data);s(i)}}get transport(){return this._transport}async close(){var t;await((t=this._transport)==null?void 0:t.close())}async*requestStream(t,n,o){var i,a;const{task:s}=o??{};if(!s){try{yield{type:"result",result:await this.request(t,n,o)}}catch(c){yield{type:"error",error:c instanceof W?c:new W(X.InternalError,String(c))}}return}let r;try{const c=await this.request(t,qs,o);if(c.task)r=c.task.taskId,yield{type:"taskCreated",task:c.task};else throw new W(X.InternalError,"Task creation did not return a task");for(;;){const u=await this.getTask({taskId:r},o);if(yield{type:"taskStatus",task:u},It(u.status)){u.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:r},n,o)}:u.status==="failed"?yield{type:"error",error:new W(X.InternalError,`Task ${r} failed`)}:u.status==="cancelled"&&(yield{type:"error",error:new W(X.InternalError,`Task ${r} was cancelled`)});return}if(u.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:r},n,o)};return}const l=u.pollInterval??((i=this._options)==null?void 0:i.defaultTaskPollInterval)??1e3;await new Promise(d=>setTimeout(d,l)),(a=o==null?void 0:o.signal)==null||a.throwIfAborted()}}catch(c){yield{type:"error",error:c instanceof W?c:new W(X.InternalError,String(c))}}}request(t,n,o){const{relatedRequestId:s,resumptionToken:r,onresumptiontoken:i,task:a,relatedTask:c}=o??{};return new Promise((u,l)=>{var A,B,C,U,ue;const d=V=>{l(V)};if(!this._transport){d(new Error("Not connected"));return}if(((A=this._options)==null?void 0:A.enforceStrictCapabilities)===!0)try{this.assertCapabilityForMethod(t.method),a&&this.assertTaskCapability(t.method)}catch(V){d(V);return}(B=o==null?void 0:o.signal)==null||B.throwIfAborted();const p=this._requestMessageId++,_={...t,jsonrpc:"2.0",id:p};o!=null&&o.onprogress&&(this._progressHandlers.set(p,o.onprogress),_.params={...t.params,_meta:{...((C=t.params)==null?void 0:C._meta)||{},progressToken:p}}),a&&(_.params={..._.params,task:a}),c&&(_.params={..._.params,_meta:{...((U=_.params)==null?void 0:U._meta)||{},[Et]:c}});const x=V=>{var ke;this._responseHandlers.delete(p),this._progressHandlers.delete(p),this._cleanupTimeout(p),(ke=this._transport)==null||ke.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:p,reason:String(V)}},{relatedRequestId:s,resumptionToken:r,onresumptiontoken:i}).catch(st=>this._onerror(new Error(`Failed to send cancellation: ${st}`)));const ge=V instanceof W?V:new W(X.RequestTimeout,String(V));l(ge)};this._responseHandlers.set(p,V=>{var ge;if(!((ge=o==null?void 0:o.signal)!=null&&ge.aborted)){if(V instanceof Error)return l(V);try{const ke=qa(n,V.result);ke.success?u(ke.data):l(ke.error)}catch(ke){l(ke)}}}),(ue=o==null?void 0:o.signal)==null||ue.addEventListener("abort",()=>{var V;x((V=o==null?void 0:o.signal)==null?void 0:V.reason)});const z=(o==null?void 0:o.timeout)??T_,q=()=>x(W.fromError(X.RequestTimeout,"Request timed out",{timeout:z}));this._setupTimeout(p,z,o==null?void 0:o.maxTotalTimeout,q,(o==null?void 0:o.resetTimeoutOnProgress)??!1);const Z=c==null?void 0:c.taskId;if(Z){const V=ge=>{const ke=this._responseHandlers.get(p);ke?ke(ge):this._onerror(new Error(`Response handler missing for side-channeled request ${p}`))};this._requestResolvers.set(p,V),this._enqueueTaskMessage(Z,{type:"request",message:_,timestamp:Date.now()}).catch(ge=>{this._cleanupTimeout(p),l(ge)})}else this._transport.send(_,{relatedRequestId:s,resumptionToken:r,onresumptiontoken:i}).catch(V=>{this._cleanupTimeout(p),l(V)})})}async getTask(t,n){return this.request({method:"tasks/get",params:t},Us,n)}async getTaskResult(t,n,o){return this.request({method:"tasks/result",params:t},n,o)}async listTasks(t,n){return this.request({method:"tasks/list",params:t},Js,n)}async cancelTask(t,n){return this.request({method:"tasks/cancel",params:t},ig,n)}async notification(t,n){var a,c,u,l;if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);const o=(a=n==null?void 0:n.relatedTask)==null?void 0:a.taskId;if(o){const d={...t,jsonrpc:"2.0",params:{...t.params,_meta:{...((c=t.params)==null?void 0:c._meta)||{},[Et]:n.relatedTask}}};await this._enqueueTaskMessage(o,{type:"notification",message:d,timestamp:Date.now()});return}if((((u=this._options)==null?void 0:u.debouncedNotificationMethods)??[]).includes(t.method)&&!t.params&&!(n!=null&&n.relatedRequestId)&&!(n!=null&&n.relatedTask)){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{var p,_;if(this._pendingDebouncedNotifications.delete(t.method),!this._transport)return;let d={...t,jsonrpc:"2.0"};n!=null&&n.relatedTask&&(d={...d,params:{...d.params,_meta:{...((p=d.params)==null?void 0:p._meta)||{},[Et]:n.relatedTask}}}),(_=this._transport)==null||_.send(d,n).catch(x=>this._onerror(x))});return}let i={...t,jsonrpc:"2.0"};n!=null&&n.relatedTask&&(i={...i,params:{...i.params,_meta:{...((l=i.params)==null?void 0:l._meta)||{},[Et]:n.relatedTask}}}),await this._transport.send(i,n)}setRequestHandler(t,n){const o=ri(t);this.assertRequestHandlerCapability(o),this._requestHandlers.set(o,(s,r)=>{const i=ii(t,s);return Promise.resolve(n(i,r))})}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,n){const o=ri(t);this._notificationHandlers.set(o,s=>{const r=ii(t,s);return Promise.resolve(n(r))})}removeNotificationHandler(t){this._notificationHandlers.delete(t)}_cleanupTaskProgressHandler(t){const n=this._taskProgressTokens.get(t);n!==void 0&&(this._progressHandlers.delete(n),this._taskProgressTokens.delete(t))}async _enqueueTaskMessage(t,n,o){var r;if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const s=(r=this._options)==null?void 0:r.maxTaskQueueSize;await this._taskMessageQueue.enqueue(t,n,o,s)}async _clearTaskQueue(t,n){if(this._taskMessageQueue){const o=await this._taskMessageQueue.dequeueAll(t,n);for(const s of o)if(s.type==="request"&&si(s.message)){const r=s.message.id,i=this._requestResolvers.get(r);i?(i(new W(X.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(r)):this._onerror(new Error(`Resolver missing for request ${r} during task ${t} cleanup`))}}}async _waitForTaskUpdate(t,n){var s,r;let o=((s=this._options)==null?void 0:s.defaultTaskPollInterval)??1e3;try{const i=await((r=this._taskStore)==null?void 0:r.getTask(t));i!=null&&i.pollInterval&&(o=i.pollInterval)}catch{}return new Promise((i,a)=>{if(n.aborted){a(new W(X.InvalidRequest,"Request cancelled"));return}const c=setTimeout(i,o);n.addEventListener("abort",()=>{clearTimeout(c),a(new W(X.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(t,n){const o=this._taskStore;if(!o)throw new Error("No task store configured");return{createTask:async s=>{if(!t)throw new Error("No request provided");return await o.createTask(s,t.id,{method:t.method,params:t.params},n)},getTask:async s=>{const r=await o.getTask(s,n);if(!r)throw new W(X.InvalidParams,"Failed to retrieve task: Task not found");return r},storeTaskResult:async(s,r,i)=>{await o.storeTaskResult(s,r,i,n);const a=await o.getTask(s,n);if(a){const c=ro.parse({method:"notifications/tasks/status",params:a});await this.notification(c),It(a.status)&&this._cleanupTaskProgressHandler(s)}},getTaskResult:s=>o.getTaskResult(s,n),updateTaskStatus:async(s,r,i)=>{const a=await o.getTask(s,n);if(!a)throw new W(X.InvalidParams,`Task "${s}" not found - it may have been cleaned up`);if(It(a.status))throw new W(X.InvalidParams,`Cannot update task "${s}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await o.updateTaskStatus(s,r,i,n);const c=await o.getTask(s,n);if(c){const u=ro.parse({method:"notifications/tasks/status",params:c});await this.notification(u),It(c.status)&&this._cleanupTaskProgressHandler(s)}},listTasks:s=>o.listTasks(s,n)}}}var z_="2026-01-26",R_="ui/notifications/tool-input-partial";class I_{constructor(t=window.parent,n){Te(this,"eventTarget");Te(this,"eventSource");Te(this,"messageListener");Te(this,"onclose");Te(this,"onerror");Te(this,"onmessage");Te(this,"sessionId");Te(this,"setProtocolVersion");this.eventTarget=t,this.eventSource=n,this.messageListener=o=>{var r,i,a;if(n&&o.source!==this.eventSource){console.debug("Ignoring message from unknown source",o);return}let s=Lm.safeParse(o.data);s.success?(console.debug("Parsed message",s.data),(r=this.onmessage)==null||r.call(this,s.data)):((i=o.data)==null?void 0:i.jsonrpc)!=="2.0"?console.debug("Ignoring non-JSON-RPC message",s.error.message,o):(console.error("Failed to parse message",s.error.message,o),(a=this.onerror)==null||a.call(this,Error("Invalid JSON-RPC message received: "+s.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(t,n){t.method!==R_&&console.debug("Sending message",t),this.eventTarget.postMessage(t,"*")}async close(){var t;window.removeEventListener("message",this.messageListener),(t=this.onclose)==null||t.call(this)}}var P_=H([m("light"),m("dark")]).describe("Color theme preference for the host environment."),Tn=H([m("inline"),m("fullscreen"),m("pip")]).describe("Display mode for UI presentation."),E_=H([m("--color-background-primary"),m("--color-background-secondary"),m("--color-background-tertiary"),m("--color-background-inverse"),m("--color-background-ghost"),m("--color-background-info"),m("--color-background-danger"),m("--color-background-success"),m("--color-background-warning"),m("--color-background-disabled"),m("--color-text-primary"),m("--color-text-secondary"),m("--color-text-tertiary"),m("--color-text-inverse"),m("--color-text-ghost"),m("--color-text-info"),m("--color-text-danger"),m("--color-text-success"),m("--color-text-warning"),m("--color-text-disabled"),m("--color-border-primary"),m("--color-border-secondary"),m("--color-border-tertiary"),m("--color-border-inverse"),m("--color-border-ghost"),m("--color-border-info"),m("--color-border-danger"),m("--color-border-success"),m("--color-border-warning"),m("--color-border-disabled"),m("--color-ring-primary"),m("--color-ring-secondary"),m("--color-ring-inverse"),m("--color-ring-info"),m("--color-ring-danger"),m("--color-ring-success"),m("--color-ring-warning"),m("--font-sans"),m("--font-mono"),m("--font-weight-normal"),m("--font-weight-medium"),m("--font-weight-semibold"),m("--font-weight-bold"),m("--font-text-xs-size"),m("--font-text-sm-size"),m("--font-text-md-size"),m("--font-text-lg-size"),m("--font-heading-xs-size"),m("--font-heading-sm-size"),m("--font-heading-md-size"),m("--font-heading-lg-size"),m("--font-heading-xl-size"),m("--font-heading-2xl-size"),m("--font-heading-3xl-size"),m("--font-text-xs-line-height"),m("--font-text-sm-line-height"),m("--font-text-md-line-height"),m("--font-text-lg-line-height"),m("--font-heading-xs-line-height"),m("--font-heading-sm-line-height"),m("--font-heading-md-line-height"),m("--font-heading-lg-line-height"),m("--font-heading-xl-line-height"),m("--font-heading-2xl-line-height"),m("--font-heading-3xl-line-height"),m("--border-radius-xs"),m("--border-radius-sm"),m("--border-radius-md"),m("--border-radius-lg"),m("--border-radius-xl"),m("--border-radius-full"),m("--border-width-regular"),m("--shadow-hairline"),m("--shadow-sm"),m("--shadow-md"),m("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),$_=ee(E_.describe(`Style variables for theming MCP apps.
62
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of e.seen.entries()){const d=l[1];if(t===l[0]){r(l);continue}if(e.external){const _=(c=e.external.registry.get(l[0]))==null?void 0:c.id;if(t!==l[0]&&_){r(l);continue}}if((u=e.metadataRegistry.get(l[0]))==null?void 0:u.id){r(l);continue}if(d.cycle){r(l);continue}if(d.count>1&&e.reused==="ref"){r(l);continue}}}function Da(e,t){var i,a,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=u=>{const l=e.seen.get(u);if(l.ref===null)return;const d=l.def??l.schema,p={...d},_=l.ref;if(l.ref=null,_){o(_);const z=e.seen.get(_),F=z.schema;if(F.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(F)):Object.assign(d,F),Object.assign(d,p),u._zod.parent===_)for(const A in d)A==="$ref"||A==="allOf"||A in p||delete d[A];if(F.$ref)for(const A in d)A==="$ref"||A==="allOf"||A in z.def&&JSON.stringify(d[A])===JSON.stringify(z.def[A])&&delete d[A]}const x=u._zod.parent;if(x&&x!==_){o(x);const z=e.seen.get(x);if(z!=null&&z.schema.$ref&&(d.$ref=z.schema.$ref,z.def))for(const F in d)F==="$ref"||F==="allOf"||F in z.def&&JSON.stringify(d[F])===JSON.stringify(z.def[F])&&delete d[F]}e.override({zodSchema:u,jsonSchema:d,path:l.path??[]})};for(const u of[...e.seen.entries()].reverse())o(u[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,(i=e.external)!=null&&i.uri){const u=(a=e.external.registry.get(t))==null?void 0:a.id;if(!u)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(u)}Object.assign(s,n.def??n.schema);const r=((c=e.external)==null?void 0:c.defs)??{};for(const u of e.seen.entries()){const l=u[1];l.def&&l.defId&&(r[l.defId]=l.def)}e.external||Object.keys(r).length>0&&(e.target==="draft-2020-12"?s.$defs=r:s.definitions=r);try{const u=JSON.parse(JSON.stringify(s));return Object.defineProperty(u,"~standard",{value:{...t["~standard"],jsonSchema:{input:so(t,"input",e.processors),output:so(t,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function Pe(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Pe(o.element,n);if(o.type==="set")return Pe(o.valueType,n);if(o.type==="lazy")return Pe(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Pe(o.innerType,n);if(o.type==="intersection")return Pe(o.left,n)||Pe(o.right,n);if(o.type==="record"||o.type==="map")return Pe(o.keyType,n)||Pe(o.valueType,n);if(o.type==="pipe")return Pe(o.in,n)||Pe(o.out,n);if(o.type==="object"){for(const s in o.shape)if(Pe(o.shape[s],n))return!0;return!1}if(o.type==="union"){for(const s of o.options)if(Pe(s,n))return!0;return!1}if(o.type==="tuple"){for(const s of o.items)if(Pe(s,n))return!0;return!!(o.rest&&Pe(o.rest,n))}return!1}const Qh=(e,t={})=>n=>{const o=Ma({...n,processors:t});return me(e,o),ja(o,e),Da(o,e)},so=(e,t,n={})=>o=>{const{libraryOptions:s,target:r}=o??{},i=Ma({...s??{},target:r,io:t,processors:n});return me(e,i),ja(i,e),Da(i,e)},Yh={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Xh=(e,t,n,o)=>{const s=n;s.type="string";const{minimum:r,maximum:i,format:a,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof r=="number"&&(s.minLength=r),typeof i=="number"&&(s.maxLength=i),a&&(s.format=Yh[a]??a,s.format===""&&delete s.format,a==="time"&&delete s.format),u&&(s.contentEncoding=u),c&&c.size>0){const l=[...c];l.length===1?s.pattern=l[0].source:l.length>1&&(s.allOf=[...l.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},ep=(e,t,n,o)=>{const s=n,{minimum:r,maximum:i,format:a,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;typeof a=="string"&&a.includes("int")?s.type="integer":s.type="number",typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(s.minimum=l,s.exclusiveMinimum=!0):s.exclusiveMinimum=l),typeof r=="number"&&(s.minimum=r,typeof l=="number"&&t.target!=="draft-04"&&(l>=r?delete s.minimum:delete s.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(s.maximum=u,s.exclusiveMaximum=!0):s.exclusiveMaximum=u),typeof i=="number"&&(s.maximum=i,typeof u=="number"&&t.target!=="draft-04"&&(u<=i?delete s.maximum:delete s.exclusiveMaximum)),typeof c=="number"&&(s.multipleOf=c)},tp=(e,t,n,o)=>{n.type="boolean"},np=(e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},op=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},sp=(e,t,n,o)=>{n.not={}},rp=(e,t,n,o)=>{},ip=(e,t,n,o)=>{const s=e._zod.def,r=ma(s.entries);r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),n.enum=r},ap=(e,t,n,o)=>{const s=e._zod.def,r=[];for(const i of s.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(i))}else r.push(i);if(r.length!==0)if(r.length===1){const i=r[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),r.every(i=>typeof i=="boolean")&&(n.type="boolean"),r.every(i=>i===null)&&(n.type="null"),n.enum=r},cp=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},lp=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},up=(e,t,n,o)=>{const s=n,r=e._zod.def,{minimum:i,maximum:a}=e._zod.bag;typeof i=="number"&&(s.minItems=i),typeof a=="number"&&(s.maxItems=a),s.type="array",s.items=me(r.element,t,{...o,path:[...o.path,"items"]})},fp=(e,t,n,o)=>{var u;const s=n,r=e._zod.def;s.type="object",s.properties={};const i=r.shape;for(const l in i)s.properties[l]=me(i[l],t,{...o,path:[...o.path,"properties",l]});const a=new Set(Object.keys(i)),c=new Set([...a].filter(l=>{const d=r.shape[l]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));c.size>0&&(s.required=Array.from(c)),((u=r.catchall)==null?void 0:u._zod.def.type)==="never"?s.additionalProperties=!1:r.catchall?r.catchall&&(s.additionalProperties=me(r.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(s.additionalProperties=!1)},dp=(e,t,n,o)=>{const s=e._zod.def,r=s.inclusive===!1,i=s.options.map((a,c)=>me(a,t,{...o,path:[...o.path,r?"oneOf":"anyOf",c]}));r?n.oneOf=i:n.anyOf=i},hp=(e,t,n,o)=>{const s=e._zod.def,r=me(s.left,t,{...o,path:[...o.path,"allOf",0]}),i=me(s.right,t,{...o,path:[...o.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(r)?r.allOf:[r],...a(i)?i.allOf:[i]];n.allOf=c},pp=(e,t,n,o)=>{const s=n,r=e._zod.def;s.type="object";const i=r.keyType,a=i._zod.bag,c=a==null?void 0:a.patterns;if(r.mode==="loose"&&c&&c.size>0){const l=me(r.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});s.patternProperties={};for(const d of c)s.patternProperties[d.source]=l}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(s.propertyNames=me(r.keyType,t,{...o,path:[...o.path,"propertyNames"]})),s.additionalProperties=me(r.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const u=i._zod.values;if(u){const l=[...u].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(s.required=l)}},mp=(e,t,n,o)=>{const s=e._zod.def,r=me(s.innerType,t,o),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=s.innerType,n.nullable=!0):n.anyOf=[r,{type:"null"}]},gp=(e,t,n,o)=>{const s=e._zod.def;me(s.innerType,t,o);const r=t.seen.get(e);r.ref=s.innerType},_p=(e,t,n,o)=>{const s=e._zod.def;me(s.innerType,t,o);const r=t.seen.get(e);r.ref=s.innerType,n.default=JSON.parse(JSON.stringify(s.defaultValue))},bp=(e,t,n,o)=>{const s=e._zod.def;me(s.innerType,t,o);const r=t.seen.get(e);r.ref=s.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},vp=(e,t,n,o)=>{const s=e._zod.def;me(s.innerType,t,o);const r=t.seen.get(e);r.ref=s.innerType;let i;try{i=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},yp=(e,t,n,o)=>{const s=e._zod.def,r=t.io==="input"?s.in._zod.def.type==="transform"?s.out:s.in:s.out;me(r,t,o);const i=t.seen.get(e);i.ref=r},wp=(e,t,n,o)=>{const s=e._zod.def;me(s.innerType,t,o);const r=t.seen.get(e);r.ref=s.innerType,n.readOnly=!0},qa=(e,t,n,o)=>{const s=e._zod.def;me(s.innerType,t,o);const r=t.seen.get(e);r.ref=s.innerType};function Os(e){return!!e._zod}function Fa(e,t){return Os(e)?wa(e,t):e.safeParse(t)}function Sp(e){var n,o;if(!e)return;let t;if(Os(e)?t=(o=(n=e._zod)==null?void 0:n.def)==null?void 0:o.shape:t=e.shape,!!t){if(typeof t=="function")try{return t()}catch{return}return t}}function kp(e){var s;if(Os(e)){const i=(s=e._zod)==null?void 0:s.def;if(i){if(i.value!==void 0)return i.value;if(Array.isArray(i.values)&&i.values.length>0)return i.values[0]}}const n=e._def;if(n){if(n.value!==void 0)return n.value;if(Array.isArray(n.values)&&n.values.length>0)return n.values[0]}const o=e.value;if(o!==void 0)return o}const Tp=y("ZodISODateTime",(e,t)=>{gd.init(e,t),he.init(e,t)});function La(e){return Th(Tp,e)}const xp=y("ZodISODate",(e,t)=>{_d.init(e,t),he.init(e,t)});function zp(e){return xh(xp,e)}const Rp=y("ZodISOTime",(e,t)=>{bd.init(e,t),he.init(e,t)});function Ip(e){return zh(Rp,e)}const Pp=y("ZodISODuration",(e,t)=>{vd.init(e,t),he.init(e,t)});function Ep(e){return Rh(Pp,e)}const $p=(e,t)=>{va.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>cf(e,n)},flatten:{value:n=>af(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,ts,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,ts,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ue=y("ZodError",$p,{Parent:Error}),Cp=Es(Ue),Op=$s(Ue),Np=vo(Ue),Ap=yo(Ue),Zp=uf(Ue),Mp=ff(Ue),jp=df(Ue),Dp=hf(Ue),qp=pf(Ue),Fp=mf(Ue),Lp=gf(Ue),Up=_f(Ue),ce=y("ZodType",(e,t)=>(ae.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:so(e,"input"),output:so(e,"output")}}),e.toJSONSchema=Qh(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(St(t,{checks:[...t.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(n,o)=>kt(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.parse=(n,o)=>Cp(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Np(e,n,o),e.parseAsync=async(n,o)=>Op(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Ap(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Zp(e,n,o),e.decode=(n,o)=>Mp(e,n,o),e.encodeAsync=async(n,o)=>jp(e,n,o),e.decodeAsync=async(n,o)=>Dp(e,n,o),e.safeEncode=(n,o)=>qp(e,n,o),e.safeDecode=(n,o)=>Fp(e,n,o),e.safeEncodeAsync=async(n,o)=>Lp(e,n,o),e.safeDecodeAsync=async(n,o)=>Up(e,n,o),e.refine=(n,o)=>e.check(Am(n,o)),e.superRefine=n=>e.check(Zm(n)),e.overwrite=n=>e.check(Yt(n)),e.optional=()=>pe(e),e.exactOptional=()=>Sm(e),e.nullable=()=>oi(e),e.nullish=()=>pe(oi(e)),e.nonoptional=n=>Im(e,n),e.array=()=>j(e),e.or=n=>H([e,n]),e.and=n=>Ns(e,n),e.transform=n=>rs(e,Ka(n)),e.default=n=>xm(e,n),e.prefault=n=>Rm(e,n),e.catch=n=>Em(e,n),e.pipe=n=>rs(e,n),e.readonly=()=>Om(e),e.describe=n=>{const o=e.clone();return cn.add(o,{description:n}),o},Object.defineProperty(e,"description",{get(){var n;return(n=cn.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return cn.get(e);const o=e.clone();return cn.add(o,n[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Ua=y("_ZodString",(e,t)=>{Cs.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,s,r)=>Xh(e,o,s);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...o)=>e.check(Ah(...o)),e.includes=(...o)=>e.check(jh(...o)),e.startsWith=(...o)=>e.check(Dh(...o)),e.endsWith=(...o)=>e.check(qh(...o)),e.min=(...o)=>e.check(oo(...o)),e.max=(...o)=>e.check(Aa(...o)),e.length=(...o)=>e.check(Za(...o)),e.nonempty=(...o)=>e.check(oo(1,...o)),e.lowercase=o=>e.check(Zh(o)),e.uppercase=o=>e.check(Mh(o)),e.trim=()=>e.check(Lh()),e.normalize=(...o)=>e.check(Fh(...o)),e.toLowerCase=()=>e.check(Uh()),e.toUpperCase=()=>e.check(Hh()),e.slugify=()=>e.check(Vh())}),Hp=y("ZodString",(e,t)=>{Cs.init(e,t),Ua.init(e,t),e.email=n=>e.check(oh(Vp,n)),e.url=n=>e.check(ch(Jp,n)),e.jwt=n=>e.check(kh(am,n)),e.emoji=n=>e.check(lh(Bp,n)),e.guid=n=>e.check(Qr(ti,n)),e.uuid=n=>e.check(sh(Hn,n)),e.uuidv4=n=>e.check(rh(Hn,n)),e.uuidv6=n=>e.check(ih(Hn,n)),e.uuidv7=n=>e.check(ah(Hn,n)),e.nanoid=n=>e.check(uh(Wp,n)),e.guid=n=>e.check(Qr(ti,n)),e.cuid=n=>e.check(fh(Kp,n)),e.cuid2=n=>e.check(dh(Gp,n)),e.ulid=n=>e.check(hh(Qp,n)),e.base64=n=>e.check(yh(sm,n)),e.base64url=n=>e.check(wh(rm,n)),e.xid=n=>e.check(ph(Yp,n)),e.ksuid=n=>e.check(mh(Xp,n)),e.ipv4=n=>e.check(gh(em,n)),e.ipv6=n=>e.check(_h(tm,n)),e.cidrv4=n=>e.check(bh(nm,n)),e.cidrv6=n=>e.check(vh(om,n)),e.e164=n=>e.check(Sh(im,n)),e.datetime=n=>e.check(La(n)),e.date=n=>e.check(zp(n)),e.time=n=>e.check(Ip(n)),e.duration=n=>e.check(Ep(n))});function g(e){return nh(Hp,e)}const he=y("ZodStringFormat",(e,t)=>{le.init(e,t),Ua.init(e,t)}),Vp=y("ZodEmail",(e,t)=>{ad.init(e,t),he.init(e,t)}),ti=y("ZodGUID",(e,t)=>{rd.init(e,t),he.init(e,t)}),Hn=y("ZodUUID",(e,t)=>{id.init(e,t),he.init(e,t)}),Jp=y("ZodURL",(e,t)=>{cd.init(e,t),he.init(e,t)}),Bp=y("ZodEmoji",(e,t)=>{ld.init(e,t),he.init(e,t)}),Wp=y("ZodNanoID",(e,t)=>{ud.init(e,t),he.init(e,t)}),Kp=y("ZodCUID",(e,t)=>{fd.init(e,t),he.init(e,t)}),Gp=y("ZodCUID2",(e,t)=>{dd.init(e,t),he.init(e,t)}),Qp=y("ZodULID",(e,t)=>{hd.init(e,t),he.init(e,t)}),Yp=y("ZodXID",(e,t)=>{pd.init(e,t),he.init(e,t)}),Xp=y("ZodKSUID",(e,t)=>{md.init(e,t),he.init(e,t)}),em=y("ZodIPv4",(e,t)=>{yd.init(e,t),he.init(e,t)}),tm=y("ZodIPv6",(e,t)=>{wd.init(e,t),he.init(e,t)}),nm=y("ZodCIDRv4",(e,t)=>{Sd.init(e,t),he.init(e,t)}),om=y("ZodCIDRv6",(e,t)=>{kd.init(e,t),he.init(e,t)}),sm=y("ZodBase64",(e,t)=>{Td.init(e,t),he.init(e,t)}),rm=y("ZodBase64URL",(e,t)=>{zd.init(e,t),he.init(e,t)}),im=y("ZodE164",(e,t)=>{Rd.init(e,t),he.init(e,t)}),am=y("ZodJWT",(e,t)=>{Pd.init(e,t),he.init(e,t)}),Ha=y("ZodNumber",(e,t)=>{Ea.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,s,r)=>ep(e,o,s),e.gt=(o,s)=>e.check(Xr(o,s)),e.gte=(o,s)=>e.check(Uo(o,s)),e.min=(o,s)=>e.check(Uo(o,s)),e.lt=(o,s)=>e.check(Yr(o,s)),e.lte=(o,s)=>e.check(Lo(o,s)),e.max=(o,s)=>e.check(Lo(o,s)),e.int=o=>e.check(ni(o)),e.safe=o=>e.check(ni(o)),e.positive=o=>e.check(Xr(0,o)),e.nonnegative=o=>e.check(Uo(0,o)),e.negative=o=>e.check(Yr(0,o)),e.nonpositive=o=>e.check(Lo(0,o)),e.multipleOf=(o,s)=>e.check(ei(o,s)),e.step=(o,s)=>e.check(ei(o,s)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function L(e){return Ih(Ha,e)}const cm=y("ZodNumberFormat",(e,t)=>{Ed.init(e,t),Ha.init(e,t)});function ni(e){return Ph(cm,e)}const lm=y("ZodBoolean",(e,t)=>{$d.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>tp(e,n,o)});function ie(e){return Eh(lm,e)}const um=y("ZodUndefined",(e,t)=>{Cd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>op(e,n)});function os(e){return $h(um,e)}const fm=y("ZodNull",(e,t)=>{Od.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>np(e,n,o)});function Va(e){return Ch(fm,e)}const dm=y("ZodUnknown",(e,t)=>{Nd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>rp()});function ne(){return Oh(dm)}const hm=y("ZodNever",(e,t)=>{Ad.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>sp(e,n,o)});function pm(e){return Nh(hm,e)}const mm=y("ZodArray",(e,t)=>{Zd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>up(e,n,o,s),e.element=t.element,e.min=(n,o)=>e.check(oo(n,o)),e.nonempty=n=>e.check(oo(1,n)),e.max=(n,o)=>e.check(Aa(n,o)),e.length=(n,o)=>e.check(Za(n,o)),e.unwrap=()=>e.element});function j(e,t){return Jh(mm,e,t)}const Ja=y("ZodObject",(e,t)=>{jd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>fp(e,n,o,s),Q(e,"shape",()=>t.shape),e.keyof=()=>qe(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ne()}),e.loose=()=>e.clone({...e._zod.def,catchall:ne()}),e.strict=()=>e.clone({...e._zod.def,catchall:pm()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>tf(e,n),e.safeExtend=n=>nf(e,n),e.merge=n=>of(e,n),e.pick=n=>Xu(e,n),e.omit=n=>ef(e,n),e.partial=(...n)=>sf(Ga,e,n[0]),e.required=(...n)=>rf(Qa,e,n[0])});function b(e,t){const n={type:"object",shape:e??{},...$(t)};return new Ja(n)}function Ae(e,t){return new Ja({type:"object",shape:e,catchall:ne(),...$(t)})}const Ba=y("ZodUnion",(e,t)=>{Oa.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>dp(e,n,o,s),e.options=t.options});function H(e,t){return new Ba({type:"union",options:e,...$(t)})}const gm=y("ZodDiscriminatedUnion",(e,t)=>{Ba.init(e,t),Dd.init(e,t)});function Wa(e,t,n){return new gm({type:"union",options:t,discriminator:e,...$(n)})}const _m=y("ZodIntersection",(e,t)=>{qd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>hp(e,n,o,s)});function Ns(e,t){return new _m({type:"intersection",left:e,right:t})}const bm=y("ZodRecord",(e,t)=>{Fd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>pp(e,n,o,s),e.keyType=t.keyType,e.valueType=t.valueType});function ee(e,t,n){return new bm({type:"record",keyType:e,valueType:t,...$(n)})}const ss=y("ZodEnum",(e,t)=>{Ld.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,s,r)=>ip(e,o,s),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(o,s)=>{const r={};for(const i of o)if(n.has(i))r[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new ss({...t,checks:[],...$(s),entries:r})},e.exclude=(o,s)=>{const r={...t.entries};for(const i of o)if(n.has(i))delete r[i];else throw new Error(`Key ${i} not found in enum`);return new ss({...t,checks:[],...$(s),entries:r})}});function qe(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new ss({type:"enum",entries:n,...$(t)})}const vm=y("ZodLiteral",(e,t)=>{Ud.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>ap(e,n,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function m(e,t){return new vm({type:"literal",values:Array.isArray(e)?e:[e],...$(t)})}const ym=y("ZodTransform",(e,t)=>{Hd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>lp(e,n),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ha(e.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push(kn(r,n.value,t));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(kn(i))}};const s=t.transform(n.value,n);return s instanceof Promise?s.then(r=>(n.value=r,n)):(n.value=s,n)}});function Ka(e){return new ym({type:"transform",transform:e})}const Ga=y("ZodOptional",(e,t)=>{Na.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>qa(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function pe(e){return new Ga({type:"optional",innerType:e})}const wm=y("ZodExactOptional",(e,t)=>{Vd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>qa(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function Sm(e){return new wm({type:"optional",innerType:e})}const km=y("ZodNullable",(e,t)=>{Jd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>mp(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function oi(e){return new km({type:"nullable",innerType:e})}const Tm=y("ZodDefault",(e,t)=>{Bd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>_p(e,n,o,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function xm(e,t){return new Tm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():_a(t)}})}const zm=y("ZodPrefault",(e,t)=>{Wd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>bp(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function Rm(e,t){return new zm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():_a(t)}})}const Qa=y("ZodNonOptional",(e,t)=>{Kd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>gp(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function Im(e,t){return new Qa({type:"nonoptional",innerType:e,...$(t)})}const Pm=y("ZodCatch",(e,t)=>{Gd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>vp(e,n,o,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Em(e,t){return new Pm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const $m=y("ZodPipe",(e,t)=>{Qd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>yp(e,n,o,s),e.in=t.in,e.out=t.out});function rs(e,t){return new $m({type:"pipe",in:e,out:t})}const Cm=y("ZodReadonly",(e,t)=>{Yd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>wp(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function Om(e){return new Cm({type:"readonly",innerType:e})}const Ya=y("ZodCustom",(e,t)=>{Xd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,s)=>cp(e,n)});function Nm(e,t){return Bh(Ya,e??(()=>!0),t)}function Am(e,t={}){return Wh(Ya,e,t)}function Zm(e){return Kh(e)}function Xa(e,t){return rs(Ka(e),t)}const Et="io.modelcontextprotocol/related-task",So="2.0",ve=Nm(e=>e!==null&&(typeof e=="object"||typeof e=="function")),ec=H([g(),L().int()]),tc=g();Ae({ttl:H([L(),Va()]).optional(),pollInterval:L().optional()});const Mm=b({ttl:L().optional()}),jm=b({taskId:g()}),As=Ae({progressToken:ec.optional(),[Et]:jm.optional()}),Fe=b({_meta:As.optional()}),Rn=Fe.extend({task:Mm.optional()}),Dm=e=>Rn.safeParse(e).success,we=b({method:g(),params:Fe.loose().optional()}),He=b({_meta:As.optional()}),Ve=b({method:g(),params:He.loose().optional()}),Se=Ae({_meta:As.optional()}),In=H([g(),L().int()]),nc=b({jsonrpc:m(So),id:In,...we.shape}).strict(),si=e=>nc.safeParse(e).success,oc=b({jsonrpc:m(So),...Ve.shape}).strict(),qm=e=>oc.safeParse(e).success,Zs=b({jsonrpc:m(So),id:In,result:Se}).strict(),Vn=e=>Zs.safeParse(e).success;var X;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(X||(X={}));const Ms=b({jsonrpc:m(So),id:In.optional(),error:b({code:L().int(),message:g(),data:ne().optional()})}).strict(),Fm=e=>Ms.safeParse(e).success,Lm=H([nc,oc,Zs,Ms]);H([Zs,Ms]);const js=Se.strict(),Um=He.extend({requestId:In.optional(),reason:g().optional()}),Ds=Ve.extend({method:m("notifications/cancelled"),params:Um}),Hm=b({src:g(),mimeType:g().optional(),sizes:j(g()).optional(),theme:qe(["light","dark"]).optional()}),Pn=b({icons:j(Hm).optional()}),Qt=b({name:g(),title:g().optional()}),ko=Qt.extend({...Qt.shape,...Pn.shape,version:g(),websiteUrl:g().optional(),description:g().optional()}),Vm=Ns(b({applyDefaults:ie().optional()}),ee(g(),ne())),Jm=Xa(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Ns(b({form:Vm.optional(),url:ve.optional()}),ee(g(),ne()).optional())),Bm=Ae({list:ve.optional(),cancel:ve.optional(),requests:Ae({sampling:Ae({createMessage:ve.optional()}).optional(),elicitation:Ae({create:ve.optional()}).optional()}).optional()}),Wm=Ae({list:ve.optional(),cancel:ve.optional(),requests:Ae({tools:Ae({call:ve.optional()}).optional()}).optional()}),Km=b({experimental:ee(g(),ve).optional(),sampling:b({context:ve.optional(),tools:ve.optional()}).optional(),elicitation:Jm.optional(),roots:b({listChanged:ie().optional()}).optional(),tasks:Bm.optional()}),Gm=Fe.extend({protocolVersion:g(),capabilities:Km,clientInfo:ko}),Qm=we.extend({method:m("initialize"),params:Gm}),Ym=b({experimental:ee(g(),ve).optional(),logging:ve.optional(),completions:ve.optional(),prompts:b({listChanged:ie().optional()}).optional(),resources:b({subscribe:ie().optional(),listChanged:ie().optional()}).optional(),tools:b({listChanged:ie().optional()}).optional(),tasks:Wm.optional()}),Xm=Se.extend({protocolVersion:g(),capabilities:Ym,serverInfo:ko,instructions:g().optional()}),eg=Ve.extend({method:m("notifications/initialized"),params:He.optional()}),To=we.extend({method:m("ping"),params:Fe.optional()}),tg=b({progress:L(),total:pe(L()),message:pe(g())}),ng=b({...He.shape,...tg.shape,progressToken:ec}),qs=Ve.extend({method:m("notifications/progress"),params:ng}),og=Fe.extend({cursor:tc.optional()}),En=we.extend({params:og.optional()}),$n=Se.extend({nextCursor:tc.optional()}),sg=qe(["working","input_required","completed","failed","cancelled"]),Cn=b({taskId:g(),status:sg,ttl:H([L(),Va()]),createdAt:g(),lastUpdatedAt:g(),pollInterval:pe(L()),statusMessage:pe(g())}),Fs=Se.extend({task:Cn}),rg=He.merge(Cn),ro=Ve.extend({method:m("notifications/tasks/status"),params:rg}),Ls=we.extend({method:m("tasks/get"),params:Fe.extend({taskId:g()})}),Us=Se.merge(Cn),Hs=we.extend({method:m("tasks/result"),params:Fe.extend({taskId:g()})});Se.loose();const Vs=En.extend({method:m("tasks/list")}),Js=$n.extend({tasks:j(Cn)}),Bs=we.extend({method:m("tasks/cancel"),params:Fe.extend({taskId:g()})}),ig=Se.merge(Cn),sc=b({uri:g(),mimeType:pe(g()),_meta:ee(g(),ne()).optional()}),rc=sc.extend({text:g()}),Ws=g().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),ic=sc.extend({blob:Ws}),On=qe(["user","assistant"]),Xt=b({audience:j(On).optional(),priority:L().min(0).max(1).optional(),lastModified:La({offset:!0}).optional()}),ac=b({...Qt.shape,...Pn.shape,uri:g(),description:pe(g()),mimeType:pe(g()),annotations:Xt.optional(),_meta:pe(Ae({}))}),ag=b({...Qt.shape,...Pn.shape,uriTemplate:g(),description:pe(g()),mimeType:pe(g()),annotations:Xt.optional(),_meta:pe(Ae({}))}),cg=En.extend({method:m("resources/list")}),cc=$n.extend({resources:j(ac)}),lg=En.extend({method:m("resources/templates/list")}),ug=$n.extend({resourceTemplates:j(ag)}),Ks=Fe.extend({uri:g()}),fg=Ks,dg=we.extend({method:m("resources/read"),params:fg}),lc=Se.extend({contents:j(H([rc,ic]))}),hg=Ve.extend({method:m("notifications/resources/list_changed"),params:He.optional()}),pg=Ks,mg=we.extend({method:m("resources/subscribe"),params:pg}),gg=Ks,_g=we.extend({method:m("resources/unsubscribe"),params:gg}),bg=He.extend({uri:g()}),vg=Ve.extend({method:m("notifications/resources/updated"),params:bg}),yg=b({name:g(),description:pe(g()),required:pe(ie())}),wg=b({...Qt.shape,...Pn.shape,description:pe(g()),arguments:pe(j(yg)),_meta:pe(Ae({}))}),Sg=En.extend({method:m("prompts/list")}),kg=$n.extend({prompts:j(wg)}),Tg=Fe.extend({name:g(),arguments:ee(g(),g()).optional()}),xg=we.extend({method:m("prompts/get"),params:Tg}),Gs=b({type:m("text"),text:g(),annotations:Xt.optional(),_meta:ee(g(),ne()).optional()}),Qs=b({type:m("image"),data:Ws,mimeType:g(),annotations:Xt.optional(),_meta:ee(g(),ne()).optional()}),Ys=b({type:m("audio"),data:Ws,mimeType:g(),annotations:Xt.optional(),_meta:ee(g(),ne()).optional()}),zg=b({type:m("tool_use"),name:g(),id:g(),input:ee(g(),ne()),_meta:ee(g(),ne()).optional()}),uc=b({type:m("resource"),resource:H([rc,ic]),annotations:Xt.optional(),_meta:ee(g(),ne()).optional()}),fc=ac.extend({type:m("resource_link")}),Nn=H([Gs,Qs,Ys,fc,uc]),Rg=b({role:On,content:Nn}),Ig=Se.extend({description:g().optional(),messages:j(Rg)}),Pg=Ve.extend({method:m("notifications/prompts/list_changed"),params:He.optional()}),Eg=b({title:g().optional(),readOnlyHint:ie().optional(),destructiveHint:ie().optional(),idempotentHint:ie().optional(),openWorldHint:ie().optional()}),$g=b({taskSupport:qe(["required","optional","forbidden"]).optional()}),Xs=b({...Qt.shape,...Pn.shape,description:g().optional(),inputSchema:b({type:m("object"),properties:ee(g(),ve).optional(),required:j(g()).optional()}).catchall(ne()),outputSchema:b({type:m("object"),properties:ee(g(),ve).optional(),required:j(g()).optional()}).catchall(ne()).optional(),annotations:Eg.optional(),execution:$g.optional(),_meta:ee(g(),ne()).optional()}),dc=En.extend({method:m("tools/list")}),Cg=$n.extend({tools:j(Xs)}),xo=Se.extend({content:j(Nn).default([]),structuredContent:ee(g(),ne()).optional(),isError:ie().optional()});xo.or(Se.extend({toolResult:ne()}));const Og=Rn.extend({name:g(),arguments:ee(g(),ne()).optional()}),hc=we.extend({method:m("tools/call"),params:Og}),Ng=Ve.extend({method:m("notifications/tools/list_changed"),params:He.optional()});b({autoRefresh:ie().default(!0),debounceMs:L().int().nonnegative().default(300)});const pc=qe(["debug","info","notice","warning","error","critical","alert","emergency"]),Ag=Fe.extend({level:pc}),Zg=we.extend({method:m("logging/setLevel"),params:Ag}),Mg=He.extend({level:pc,logger:g().optional(),data:ne()}),jg=Ve.extend({method:m("notifications/message"),params:Mg}),Dg=b({name:g().optional()}),qg=b({hints:j(Dg).optional(),costPriority:L().min(0).max(1).optional(),speedPriority:L().min(0).max(1).optional(),intelligencePriority:L().min(0).max(1).optional()}),Fg=b({mode:qe(["auto","required","none"]).optional()}),Lg=b({type:m("tool_result"),toolUseId:g().describe("The unique identifier for the corresponding tool call."),content:j(Nn).default([]),structuredContent:b({}).loose().optional(),isError:ie().optional(),_meta:ee(g(),ne()).optional()}),Ug=Wa("type",[Gs,Qs,Ys]),io=Wa("type",[Gs,Qs,Ys,zg,Lg]),Hg=b({role:On,content:H([io,j(io)]),_meta:ee(g(),ne()).optional()}),Vg=Rn.extend({messages:j(Hg),modelPreferences:qg.optional(),systemPrompt:g().optional(),includeContext:qe(["none","thisServer","allServers"]).optional(),temperature:L().optional(),maxTokens:L().int(),stopSequences:j(g()).optional(),metadata:ve.optional(),tools:j(Xs).optional(),toolChoice:Fg.optional()}),Jg=we.extend({method:m("sampling/createMessage"),params:Vg}),Bg=Se.extend({model:g(),stopReason:pe(qe(["endTurn","stopSequence","maxTokens"]).or(g())),role:On,content:Ug}),Wg=Se.extend({model:g(),stopReason:pe(qe(["endTurn","stopSequence","maxTokens","toolUse"]).or(g())),role:On,content:H([io,j(io)])}),Kg=b({type:m("boolean"),title:g().optional(),description:g().optional(),default:ie().optional()}),Gg=b({type:m("string"),title:g().optional(),description:g().optional(),minLength:L().optional(),maxLength:L().optional(),format:qe(["email","uri","date","date-time"]).optional(),default:g().optional()}),Qg=b({type:qe(["number","integer"]),title:g().optional(),description:g().optional(),minimum:L().optional(),maximum:L().optional(),default:L().optional()}),Yg=b({type:m("string"),title:g().optional(),description:g().optional(),enum:j(g()),default:g().optional()}),Xg=b({type:m("string"),title:g().optional(),description:g().optional(),oneOf:j(b({const:g(),title:g()})),default:g().optional()}),e_=b({type:m("string"),title:g().optional(),description:g().optional(),enum:j(g()),enumNames:j(g()).optional(),default:g().optional()}),t_=H([Yg,Xg]),n_=b({type:m("array"),title:g().optional(),description:g().optional(),minItems:L().optional(),maxItems:L().optional(),items:b({type:m("string"),enum:j(g())}),default:j(g()).optional()}),o_=b({type:m("array"),title:g().optional(),description:g().optional(),minItems:L().optional(),maxItems:L().optional(),items:b({anyOf:j(b({const:g(),title:g()}))}),default:j(g()).optional()}),s_=H([n_,o_]),r_=H([e_,t_,s_]),i_=H([r_,Kg,Gg,Qg]),a_=Rn.extend({mode:m("form").optional(),message:g(),requestedSchema:b({type:m("object"),properties:ee(g(),i_),required:j(g()).optional()})}),c_=Rn.extend({mode:m("url"),message:g(),elicitationId:g(),url:g().url()}),l_=H([a_,c_]),u_=we.extend({method:m("elicitation/create"),params:l_}),f_=He.extend({elicitationId:g()}),d_=Ve.extend({method:m("notifications/elicitation/complete"),params:f_}),h_=Se.extend({action:qe(["accept","decline","cancel"]),content:Xa(e=>e===null?void 0:e,ee(g(),H([g(),L(),ie(),j(g())])).optional())}),p_=b({type:m("ref/resource"),uri:g()}),m_=b({type:m("ref/prompt"),name:g()}),g_=Fe.extend({ref:H([m_,p_]),argument:b({name:g(),value:g()}),context:b({arguments:ee(g(),g()).optional()}).optional()}),__=we.extend({method:m("completion/complete"),params:g_}),b_=Se.extend({completion:Ae({values:j(g()).max(100),total:pe(L().int()),hasMore:pe(ie())})}),v_=b({uri:g().startsWith("file://"),name:g().optional(),_meta:ee(g(),ne()).optional()}),y_=we.extend({method:m("roots/list"),params:Fe.optional()}),w_=Se.extend({roots:j(v_)}),S_=Ve.extend({method:m("notifications/roots/list_changed"),params:He.optional()});H([To,Qm,__,Zg,xg,Sg,cg,lg,dg,mg,_g,hc,dc,Ls,Hs,Vs,Bs]);H([Ds,qs,eg,S_,ro]);H([js,Bg,Wg,h_,w_,Us,Js,Fs]);H([To,Jg,u_,y_,Ls,Hs,Vs,Bs]);H([Ds,qs,jg,vg,hg,Ng,Pg,ro,d_]);H([js,Xm,b_,Ig,kg,cc,ug,lc,xo,Cg,Us,Js,Fs]);class W extends Error{constructor(t,n,o){super(`MCP error ${t}: ${n}`),this.code=t,this.data=o,this.name="McpError"}static fromError(t,n,o){if(t===X.UrlElicitationRequired&&o){const s=o;if(s.elicitations)return new k_(s.elicitations,n)}return new W(t,n,o)}}class k_ extends W{constructor(t,n=`URL elicitation${t.length>1?"s":""} required`){super(X.UrlElicitationRequired,n,{elicitations:t})}get elicitations(){var t;return((t=this.data)==null?void 0:t.elicitations)??[]}}function It(e){return e==="completed"||e==="failed"||e==="cancelled"}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function ri(e){const t=Sp(e),n=t==null?void 0:t.method;if(!n)throw new Error("Schema is missing a method literal");const o=kp(n);if(typeof o!="string")throw new Error("Schema method literal must be a string");return o}function ii(e,t){const n=Fa(e,t);if(!n.success)throw n.error;return n.data}const T_=6e4;class x_{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(Ds,n=>{this._oncancel(n)}),this.setNotificationHandler(qs,n=>{this._onprogress(n)}),this.setRequestHandler(To,n=>({})),this._taskStore=t==null?void 0:t.taskStore,this._taskMessageQueue=t==null?void 0:t.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Ls,async(n,o)=>{const s=await this._taskStore.getTask(n.params.taskId,o.sessionId);if(!s)throw new W(X.InvalidParams,"Failed to retrieve task: Task not found");return{...s}}),this.setRequestHandler(Hs,async(n,o)=>{const s=async()=>{var a;const r=n.params.taskId;if(this._taskMessageQueue){let c;for(;c=await this._taskMessageQueue.dequeue(r,o.sessionId);){if(c.type==="response"||c.type==="error"){const u=c.message,l=u.id,d=this._requestResolvers.get(l);if(d)if(this._requestResolvers.delete(l),c.type==="response")d(u);else{const p=u,_=new W(p.error.code,p.error.message,p.error.data);d(_)}else{const p=c.type==="response"?"Response":"Error";this._onerror(new Error(`${p} handler missing for request ${l}`))}continue}await((a=this._transport)==null?void 0:a.send(c.message,{relatedRequestId:o.requestId}))}}const i=await this._taskStore.getTask(r,o.sessionId);if(!i)throw new W(X.InvalidParams,`Task not found: ${r}`);if(!It(i.status))return await this._waitForTaskUpdate(r,o.signal),await s();if(It(i.status)){const c=await this._taskStore.getTaskResult(r,o.sessionId);return this._clearTaskQueue(r),{...c,_meta:{...c._meta,[Et]:{taskId:r}}}}return await s()};return await s()}),this.setRequestHandler(Vs,async(n,o)=>{var s;try{const{tasks:r,nextCursor:i}=await this._taskStore.listTasks((s=n.params)==null?void 0:s.cursor,o.sessionId);return{tasks:r,nextCursor:i,_meta:{}}}catch(r){throw new W(X.InvalidParams,`Failed to list tasks: ${r instanceof Error?r.message:String(r)}`)}}),this.setRequestHandler(Bs,async(n,o)=>{try{const s=await this._taskStore.getTask(n.params.taskId,o.sessionId);if(!s)throw new W(X.InvalidParams,`Task not found: ${n.params.taskId}`);if(It(s.status))throw new W(X.InvalidParams,`Cannot cancel task in terminal status: ${s.status}`);await this._taskStore.updateTaskStatus(n.params.taskId,"cancelled","Client cancelled task execution.",o.sessionId),this._clearTaskQueue(n.params.taskId);const r=await this._taskStore.getTask(n.params.taskId,o.sessionId);if(!r)throw new W(X.InvalidParams,`Task not found after cancellation: ${n.params.taskId}`);return{_meta:{},...r}}catch(s){throw s instanceof W?s:new W(X.InvalidRequest,`Failed to cancel task: ${s instanceof Error?s.message:String(s)}`)}}))}async _oncancel(t){if(!t.params.requestId)return;const n=this._requestHandlerAbortControllers.get(t.params.requestId);n==null||n.abort(t.params.reason)}_setupTimeout(t,n,o,s,r=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(s,n),startTime:Date.now(),timeout:n,maxTotalTimeout:o,resetTimeoutOnProgress:r,onTimeout:s})}_resetTimeout(t){const n=this._timeoutInfo.get(t);if(!n)return!1;const o=Date.now()-n.startTime;if(n.maxTotalTimeout&&o>=n.maxTotalTimeout)throw this._timeoutInfo.delete(t),W.fromError(X.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:n.maxTotalTimeout,totalElapsed:o});return clearTimeout(n.timeoutId),n.timeoutId=setTimeout(n.onTimeout,n.timeout),!0}_cleanupTimeout(t){const n=this._timeoutInfo.get(t);n&&(clearTimeout(n.timeoutId),this._timeoutInfo.delete(t))}async connect(t){var r,i,a;this._transport=t;const n=(r=this.transport)==null?void 0:r.onclose;this._transport.onclose=()=>{n==null||n(),this._onclose()};const o=(i=this.transport)==null?void 0:i.onerror;this._transport.onerror=c=>{o==null||o(c),this._onerror(c)};const s=(a=this._transport)==null?void 0:a.onmessage;this._transport.onmessage=(c,u)=>{s==null||s(c,u),Vn(c)||Fm(c)?this._onresponse(c):si(c)?this._onrequest(c,u):qm(c)?this._onnotification(c):this._onerror(new Error(`Unknown message type: ${JSON.stringify(c)}`))},await this._transport.start()}_onclose(){var o;const t=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();const n=W.fromError(X.ConnectionClosed,"Connection closed");this._transport=void 0,(o=this.onclose)==null||o.call(this);for(const s of t.values())s(n)}_onerror(t){var n;(n=this.onerror)==null||n.call(this,t)}_onnotification(t){const n=this._notificationHandlers.get(t.method)??this.fallbackNotificationHandler;n!==void 0&&Promise.resolve().then(()=>n(t)).catch(o=>this._onerror(new Error(`Uncaught error in notification handler: ${o}`)))}_onrequest(t,n){var l,d,p,_;const o=this._requestHandlers.get(t.method)??this.fallbackRequestHandler,s=this._transport,r=(p=(d=(l=t.params)==null?void 0:l._meta)==null?void 0:d[Et])==null?void 0:p.taskId;if(o===void 0){const x={jsonrpc:"2.0",id:t.id,error:{code:X.MethodNotFound,message:"Method not found"}};r&&this._taskMessageQueue?this._enqueueTaskMessage(r,{type:"error",message:x,timestamp:Date.now()},s==null?void 0:s.sessionId).catch(z=>this._onerror(new Error(`Failed to enqueue error response: ${z}`))):s==null||s.send(x).catch(z=>this._onerror(new Error(`Failed to send an error response: ${z}`)));return}const i=new AbortController;this._requestHandlerAbortControllers.set(t.id,i);const a=Dm(t.params)?t.params.task:void 0,c=this._taskStore?this.requestTaskStore(t,s==null?void 0:s.sessionId):void 0,u={signal:i.signal,sessionId:s==null?void 0:s.sessionId,_meta:(_=t.params)==null?void 0:_._meta,sendNotification:async x=>{const z={relatedRequestId:t.id};r&&(z.relatedTask={taskId:r}),await this.notification(x,z)},sendRequest:async(x,z,F)=>{var B;const Z={...F,relatedRequestId:t.id};r&&!Z.relatedTask&&(Z.relatedTask={taskId:r});const A=((B=Z.relatedTask)==null?void 0:B.taskId)??r;return A&&c&&await c.updateTaskStatus(A,"input_required"),await this.request(x,z,Z)},authInfo:n==null?void 0:n.authInfo,requestId:t.id,requestInfo:n==null?void 0:n.requestInfo,taskId:r,taskStore:c,taskRequestedTtl:a==null?void 0:a.ttl,closeSSEStream:n==null?void 0:n.closeSSEStream,closeStandaloneSSEStream:n==null?void 0:n.closeStandaloneSSEStream};Promise.resolve().then(()=>{a&&this.assertTaskHandlerCapability(t.method)}).then(()=>o(t,u)).then(async x=>{if(i.signal.aborted)return;const z={result:x,jsonrpc:"2.0",id:t.id};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"response",message:z,timestamp:Date.now()},s==null?void 0:s.sessionId):await(s==null?void 0:s.send(z))},async x=>{if(i.signal.aborted)return;const z={jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(x.code)?x.code:X.InternalError,message:x.message??"Internal error",...x.data!==void 0&&{data:x.data}}};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"error",message:z,timestamp:Date.now()},s==null?void 0:s.sessionId):await(s==null?void 0:s.send(z))}).catch(x=>this._onerror(new Error(`Failed to send response: ${x}`))).finally(()=>{this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){const{progressToken:n,...o}=t.params,s=Number(n),r=this._progressHandlers.get(s);if(!r){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}const i=this._responseHandlers.get(s),a=this._timeoutInfo.get(s);if(a&&i&&a.resetTimeoutOnProgress)try{this._resetTimeout(s)}catch(c){this._responseHandlers.delete(s),this._progressHandlers.delete(s),this._cleanupTimeout(s),i(c);return}r(o)}_onresponse(t){const n=Number(t.id),o=this._requestResolvers.get(n);if(o){if(this._requestResolvers.delete(n),Vn(t))o(t);else{const i=new W(t.error.code,t.error.message,t.error.data);o(i)}return}const s=this._responseHandlers.get(n);if(s===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}this._responseHandlers.delete(n),this._cleanupTimeout(n);let r=!1;if(Vn(t)&&t.result&&typeof t.result=="object"){const i=t.result;if(i.task&&typeof i.task=="object"){const a=i.task;typeof a.taskId=="string"&&(r=!0,this._taskProgressTokens.set(a.taskId,n))}}if(r||this._progressHandlers.delete(n),Vn(t))s(t);else{const i=W.fromError(t.error.code,t.error.message,t.error.data);s(i)}}get transport(){return this._transport}async close(){var t;await((t=this._transport)==null?void 0:t.close())}async*requestStream(t,n,o){var i,a;const{task:s}=o??{};if(!s){try{yield{type:"result",result:await this.request(t,n,o)}}catch(c){yield{type:"error",error:c instanceof W?c:new W(X.InternalError,String(c))}}return}let r;try{const c=await this.request(t,Fs,o);if(c.task)r=c.task.taskId,yield{type:"taskCreated",task:c.task};else throw new W(X.InternalError,"Task creation did not return a task");for(;;){const u=await this.getTask({taskId:r},o);if(yield{type:"taskStatus",task:u},It(u.status)){u.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:r},n,o)}:u.status==="failed"?yield{type:"error",error:new W(X.InternalError,`Task ${r} failed`)}:u.status==="cancelled"&&(yield{type:"error",error:new W(X.InternalError,`Task ${r} was cancelled`)});return}if(u.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:r},n,o)};return}const l=u.pollInterval??((i=this._options)==null?void 0:i.defaultTaskPollInterval)??1e3;await new Promise(d=>setTimeout(d,l)),(a=o==null?void 0:o.signal)==null||a.throwIfAborted()}}catch(c){yield{type:"error",error:c instanceof W?c:new W(X.InternalError,String(c))}}}request(t,n,o){const{relatedRequestId:s,resumptionToken:r,onresumptiontoken:i,task:a,relatedTask:c}=o??{};return new Promise((u,l)=>{var A,B,C,U,ue;const d=V=>{l(V)};if(!this._transport){d(new Error("Not connected"));return}if(((A=this._options)==null?void 0:A.enforceStrictCapabilities)===!0)try{this.assertCapabilityForMethod(t.method),a&&this.assertTaskCapability(t.method)}catch(V){d(V);return}(B=o==null?void 0:o.signal)==null||B.throwIfAborted();const p=this._requestMessageId++,_={...t,jsonrpc:"2.0",id:p};o!=null&&o.onprogress&&(this._progressHandlers.set(p,o.onprogress),_.params={...t.params,_meta:{...((C=t.params)==null?void 0:C._meta)||{},progressToken:p}}),a&&(_.params={..._.params,task:a}),c&&(_.params={..._.params,_meta:{...((U=_.params)==null?void 0:U._meta)||{},[Et]:c}});const x=V=>{var ke;this._responseHandlers.delete(p),this._progressHandlers.delete(p),this._cleanupTimeout(p),(ke=this._transport)==null||ke.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:p,reason:String(V)}},{relatedRequestId:s,resumptionToken:r,onresumptiontoken:i}).catch(st=>this._onerror(new Error(`Failed to send cancellation: ${st}`)));const ge=V instanceof W?V:new W(X.RequestTimeout,String(V));l(ge)};this._responseHandlers.set(p,V=>{var ge;if(!((ge=o==null?void 0:o.signal)!=null&&ge.aborted)){if(V instanceof Error)return l(V);try{const ke=Fa(n,V.result);ke.success?u(ke.data):l(ke.error)}catch(ke){l(ke)}}}),(ue=o==null?void 0:o.signal)==null||ue.addEventListener("abort",()=>{var V;x((V=o==null?void 0:o.signal)==null?void 0:V.reason)});const z=(o==null?void 0:o.timeout)??T_,F=()=>x(W.fromError(X.RequestTimeout,"Request timed out",{timeout:z}));this._setupTimeout(p,z,o==null?void 0:o.maxTotalTimeout,F,(o==null?void 0:o.resetTimeoutOnProgress)??!1);const Z=c==null?void 0:c.taskId;if(Z){const V=ge=>{const ke=this._responseHandlers.get(p);ke?ke(ge):this._onerror(new Error(`Response handler missing for side-channeled request ${p}`))};this._requestResolvers.set(p,V),this._enqueueTaskMessage(Z,{type:"request",message:_,timestamp:Date.now()}).catch(ge=>{this._cleanupTimeout(p),l(ge)})}else this._transport.send(_,{relatedRequestId:s,resumptionToken:r,onresumptiontoken:i}).catch(V=>{this._cleanupTimeout(p),l(V)})})}async getTask(t,n){return this.request({method:"tasks/get",params:t},Us,n)}async getTaskResult(t,n,o){return this.request({method:"tasks/result",params:t},n,o)}async listTasks(t,n){return this.request({method:"tasks/list",params:t},Js,n)}async cancelTask(t,n){return this.request({method:"tasks/cancel",params:t},ig,n)}async notification(t,n){var a,c,u,l;if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);const o=(a=n==null?void 0:n.relatedTask)==null?void 0:a.taskId;if(o){const d={...t,jsonrpc:"2.0",params:{...t.params,_meta:{...((c=t.params)==null?void 0:c._meta)||{},[Et]:n.relatedTask}}};await this._enqueueTaskMessage(o,{type:"notification",message:d,timestamp:Date.now()});return}if((((u=this._options)==null?void 0:u.debouncedNotificationMethods)??[]).includes(t.method)&&!t.params&&!(n!=null&&n.relatedRequestId)&&!(n!=null&&n.relatedTask)){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{var p,_;if(this._pendingDebouncedNotifications.delete(t.method),!this._transport)return;let d={...t,jsonrpc:"2.0"};n!=null&&n.relatedTask&&(d={...d,params:{...d.params,_meta:{...((p=d.params)==null?void 0:p._meta)||{},[Et]:n.relatedTask}}}),(_=this._transport)==null||_.send(d,n).catch(x=>this._onerror(x))});return}let i={...t,jsonrpc:"2.0"};n!=null&&n.relatedTask&&(i={...i,params:{...i.params,_meta:{...((l=i.params)==null?void 0:l._meta)||{},[Et]:n.relatedTask}}}),await this._transport.send(i,n)}setRequestHandler(t,n){const o=ri(t);this.assertRequestHandlerCapability(o),this._requestHandlers.set(o,(s,r)=>{const i=ii(t,s);return Promise.resolve(n(i,r))})}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,n){const o=ri(t);this._notificationHandlers.set(o,s=>{const r=ii(t,s);return Promise.resolve(n(r))})}removeNotificationHandler(t){this._notificationHandlers.delete(t)}_cleanupTaskProgressHandler(t){const n=this._taskProgressTokens.get(t);n!==void 0&&(this._progressHandlers.delete(n),this._taskProgressTokens.delete(t))}async _enqueueTaskMessage(t,n,o){var r;if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const s=(r=this._options)==null?void 0:r.maxTaskQueueSize;await this._taskMessageQueue.enqueue(t,n,o,s)}async _clearTaskQueue(t,n){if(this._taskMessageQueue){const o=await this._taskMessageQueue.dequeueAll(t,n);for(const s of o)if(s.type==="request"&&si(s.message)){const r=s.message.id,i=this._requestResolvers.get(r);i?(i(new W(X.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(r)):this._onerror(new Error(`Resolver missing for request ${r} during task ${t} cleanup`))}}}async _waitForTaskUpdate(t,n){var s,r;let o=((s=this._options)==null?void 0:s.defaultTaskPollInterval)??1e3;try{const i=await((r=this._taskStore)==null?void 0:r.getTask(t));i!=null&&i.pollInterval&&(o=i.pollInterval)}catch{}return new Promise((i,a)=>{if(n.aborted){a(new W(X.InvalidRequest,"Request cancelled"));return}const c=setTimeout(i,o);n.addEventListener("abort",()=>{clearTimeout(c),a(new W(X.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(t,n){const o=this._taskStore;if(!o)throw new Error("No task store configured");return{createTask:async s=>{if(!t)throw new Error("No request provided");return await o.createTask(s,t.id,{method:t.method,params:t.params},n)},getTask:async s=>{const r=await o.getTask(s,n);if(!r)throw new W(X.InvalidParams,"Failed to retrieve task: Task not found");return r},storeTaskResult:async(s,r,i)=>{await o.storeTaskResult(s,r,i,n);const a=await o.getTask(s,n);if(a){const c=ro.parse({method:"notifications/tasks/status",params:a});await this.notification(c),It(a.status)&&this._cleanupTaskProgressHandler(s)}},getTaskResult:s=>o.getTaskResult(s,n),updateTaskStatus:async(s,r,i)=>{const a=await o.getTask(s,n);if(!a)throw new W(X.InvalidParams,`Task "${s}" not found - it may have been cleaned up`);if(It(a.status))throw new W(X.InvalidParams,`Cannot update task "${s}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await o.updateTaskStatus(s,r,i,n);const c=await o.getTask(s,n);if(c){const u=ro.parse({method:"notifications/tasks/status",params:c});await this.notification(u),It(c.status)&&this._cleanupTaskProgressHandler(s)}},listTasks:s=>o.listTasks(s,n)}}}var z_="2026-01-26",R_="ui/notifications/tool-input-partial";class I_{constructor(t=window.parent,n){Te(this,"eventTarget");Te(this,"eventSource");Te(this,"messageListener");Te(this,"onclose");Te(this,"onerror");Te(this,"onmessage");Te(this,"sessionId");Te(this,"setProtocolVersion");this.eventTarget=t,this.eventSource=n,this.messageListener=o=>{var r,i,a;if(n&&o.source!==this.eventSource){console.debug("Ignoring message from unknown source",o);return}let s=Lm.safeParse(o.data);s.success?(console.debug("Parsed message",s.data),(r=this.onmessage)==null||r.call(this,s.data)):((i=o.data)==null?void 0:i.jsonrpc)!=="2.0"?console.debug("Ignoring non-JSON-RPC message",s.error.message,o):(console.error("Failed to parse message",s.error.message,o),(a=this.onerror)==null||a.call(this,Error("Invalid JSON-RPC message received: "+s.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(t,n){t.method!==R_&&console.debug("Sending message",t),this.eventTarget.postMessage(t,"*")}async close(){var t;window.removeEventListener("message",this.messageListener),(t=this.onclose)==null||t.call(this)}}var P_=H([m("light"),m("dark")]).describe("Color theme preference for the host environment."),Tn=H([m("inline"),m("fullscreen"),m("pip")]).describe("Display mode for UI presentation."),E_=H([m("--color-background-primary"),m("--color-background-secondary"),m("--color-background-tertiary"),m("--color-background-inverse"),m("--color-background-ghost"),m("--color-background-info"),m("--color-background-danger"),m("--color-background-success"),m("--color-background-warning"),m("--color-background-disabled"),m("--color-text-primary"),m("--color-text-secondary"),m("--color-text-tertiary"),m("--color-text-inverse"),m("--color-text-ghost"),m("--color-text-info"),m("--color-text-danger"),m("--color-text-success"),m("--color-text-warning"),m("--color-text-disabled"),m("--color-border-primary"),m("--color-border-secondary"),m("--color-border-tertiary"),m("--color-border-inverse"),m("--color-border-ghost"),m("--color-border-info"),m("--color-border-danger"),m("--color-border-success"),m("--color-border-warning"),m("--color-border-disabled"),m("--color-ring-primary"),m("--color-ring-secondary"),m("--color-ring-inverse"),m("--color-ring-info"),m("--color-ring-danger"),m("--color-ring-success"),m("--color-ring-warning"),m("--font-sans"),m("--font-mono"),m("--font-weight-normal"),m("--font-weight-medium"),m("--font-weight-semibold"),m("--font-weight-bold"),m("--font-text-xs-size"),m("--font-text-sm-size"),m("--font-text-md-size"),m("--font-text-lg-size"),m("--font-heading-xs-size"),m("--font-heading-sm-size"),m("--font-heading-md-size"),m("--font-heading-lg-size"),m("--font-heading-xl-size"),m("--font-heading-2xl-size"),m("--font-heading-3xl-size"),m("--font-text-xs-line-height"),m("--font-text-sm-line-height"),m("--font-text-md-line-height"),m("--font-text-lg-line-height"),m("--font-heading-xs-line-height"),m("--font-heading-sm-line-height"),m("--font-heading-md-line-height"),m("--font-heading-lg-line-height"),m("--font-heading-xl-line-height"),m("--font-heading-2xl-line-height"),m("--font-heading-3xl-line-height"),m("--border-radius-xs"),m("--border-radius-sm"),m("--border-radius-md"),m("--border-radius-lg"),m("--border-radius-xl"),m("--border-radius-full"),m("--border-width-regular"),m("--shadow-hairline"),m("--shadow-sm"),m("--shadow-md"),m("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),$_=ee(E_.describe(`Style variables for theming MCP apps.
63
63
 
64
64
  Individual style keys are optional - hosts may provide any subset of these values.
65
65
  Values are strings containing CSS values (colors, sizes, font stacks, etc.).
@@ -80,7 +80,7 @@ Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Rec
80
80
  for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);b({method:m("ui/open-link"),params:b({url:g().describe("URL to open in the host's browser")})});var C_=b({isError:ie().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough(),O_=b({isError:ie().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough(),N_=b({isError:ie().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough();b({method:m("ui/notifications/sandbox-proxy-ready"),params:b({})});var er=b({connectDomains:j(g()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
81
81
 
82
82
  - Maps to CSP \`connect-src\` directive
83
- - Empty or omitted → no network connections (secure default)`),resourceDomains:j(g()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:j(g()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:j(g()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),tr=b({camera:b({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:b({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:b({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:b({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")});b({method:m("ui/notifications/size-changed"),params:b({width:L().optional().describe("New width in pixels."),height:L().optional().describe("New height in pixels.")})});var A_=b({method:m("ui/notifications/tool-input"),params:b({arguments:ee(g(),ne().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),Z_=b({method:m("ui/notifications/tool-input-partial"),params:b({arguments:ee(g(),ne().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),M_=b({method:m("ui/notifications/tool-cancelled"),params:b({reason:g().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})}),j_=b({fonts:g().optional()}),D_=b({variables:$_.optional().describe("CSS variables for theming the app."),css:j_.optional().describe("CSS blocks that apps can inject.")}),F_=b({method:m("ui/resource-teardown"),params:b({})});ee(g(),ne());var ai=b({text:b({}).optional().describe("Host supports text content blocks."),image:b({}).optional().describe("Host supports image content blocks."),audio:b({}).optional().describe("Host supports audio content blocks."),resource:b({}).optional().describe("Host supports resource content blocks."),resourceLink:b({}).optional().describe("Host supports resource link content blocks."),structuredContent:b({}).optional().describe("Host supports structured content.")}),q_=b({experimental:b({}).optional().describe("Experimental features (structure TBD)."),openLinks:b({}).optional().describe("Host supports opening external URLs."),downloadFile:b({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:b({listChanged:ie().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:b({listChanged:ie().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:b({}).optional().describe("Host accepts log messages."),sandbox:b({permissions:tr.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:er.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:ai.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:ai.optional().describe("Host supports receiving content messages (ui/message) from the view.")}),L_=b({experimental:b({}).optional().describe("Experimental features (structure TBD)."),tools:b({listChanged:ie().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:j(Tn).optional().describe("Display modes the app supports.")});b({method:m("ui/notifications/initialized"),params:b({}).optional()});b({csp:er.optional().describe("Content Security Policy configuration for UI resources."),permissions:tr.optional().describe("Sandbox permissions requested by the UI resource."),domain:g().optional().describe(`Dedicated origin for view sandbox.
83
+ - Empty or omitted → no network connections (secure default)`),resourceDomains:j(g()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:j(g()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:j(g()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),tr=b({camera:b({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:b({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:b({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:b({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")});b({method:m("ui/notifications/size-changed"),params:b({width:L().optional().describe("New width in pixels."),height:L().optional().describe("New height in pixels.")})});var A_=b({method:m("ui/notifications/tool-input"),params:b({arguments:ee(g(),ne().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),Z_=b({method:m("ui/notifications/tool-input-partial"),params:b({arguments:ee(g(),ne().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),M_=b({method:m("ui/notifications/tool-cancelled"),params:b({reason:g().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})}),j_=b({fonts:g().optional()}),D_=b({variables:$_.optional().describe("CSS variables for theming the app."),css:j_.optional().describe("CSS blocks that apps can inject.")}),q_=b({method:m("ui/resource-teardown"),params:b({})});ee(g(),ne());var ai=b({text:b({}).optional().describe("Host supports text content blocks."),image:b({}).optional().describe("Host supports image content blocks."),audio:b({}).optional().describe("Host supports audio content blocks."),resource:b({}).optional().describe("Host supports resource content blocks."),resourceLink:b({}).optional().describe("Host supports resource link content blocks."),structuredContent:b({}).optional().describe("Host supports structured content.")});b({method:m("ui/notifications/request-teardown"),params:b({}).optional()});var F_=b({experimental:b({}).optional().describe("Experimental features (structure TBD)."),openLinks:b({}).optional().describe("Host supports opening external URLs."),downloadFile:b({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:b({listChanged:ie().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:b({listChanged:ie().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:b({}).optional().describe("Host accepts log messages."),sandbox:b({permissions:tr.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:er.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:ai.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:ai.optional().describe("Host supports receiving content messages (ui/message) from the view.")}),L_=b({experimental:b({}).optional().describe("Experimental features (structure TBD)."),tools:b({listChanged:ie().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:j(Tn).optional().describe("Display modes the app supports.")});b({method:m("ui/notifications/initialized"),params:b({}).optional()});b({csp:er.optional().describe("Content Security Policy configuration for UI resources."),permissions:tr.optional().describe("Sandbox permissions requested by the UI resource."),domain:g().optional().describe(`Dedicated origin for view sandbox.
84
84
 
85
85
  Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
86
86
 
@@ -97,7 +97,7 @@ Boolean requesting whether a visible border and background is provided by the ho
97
97
  - omitted: host decides border`)});b({method:m("ui/request-display-mode"),params:b({mode:Tn.describe("The display mode being requested.")})});var U_=b({mode:Tn.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),H_=H([m("model"),m("app")]).describe("Tool visibility scope - who can access the tool.");b({resourceUri:g().optional(),visibility:j(H_).optional().describe(`Who can access this tool. Default: ["model", "app"]
98
98
  - "model": Tool visible to and callable by the agent
99
99
  - "app": Tool callable by the app from this server only`)});b({mimeTypes:j(g()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});b({method:m("ui/download-file"),params:b({contents:j(H([uc,fc])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})});b({method:m("ui/message"),params:b({role:m("user").describe('Message role, currently only "user" is supported.'),content:j(Nn).describe("Message content blocks (text, image, etc.).")})});b({method:m("ui/notifications/sandbox-resource-ready"),params:b({html:g().describe("HTML content to load into the inner iframe."),sandbox:g().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:er.optional().describe("CSP configuration from resource metadata."),permissions:tr.optional().describe("Sandbox permissions from resource metadata.")})});var V_=b({method:m("ui/notifications/tool-result"),params:xo.describe("Standard MCP tool execution result.")}),mc=b({toolInfo:b({id:In.optional().describe("JSON-RPC id of the tools/call request."),tool:Xs.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:P_.optional().describe("Current color theme preference."),styles:D_.optional().describe("Style configuration for theming the app."),displayMode:Tn.optional().describe("How the UI is currently displayed."),availableDisplayModes:j(Tn).optional().describe("Display modes the host supports."),containerDimensions:H([b({height:L().describe("Fixed container height in pixels.")}),b({maxHeight:H([L(),os()]).optional().describe("Maximum container height in pixels.")})]).and(H([b({width:L().describe("Fixed container width in pixels.")}),b({maxWidth:H([L(),os()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
100
- container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:g().optional().describe("User's language and region preference in BCP 47 format."),timeZone:g().optional().describe("User's timezone in IANA format."),userAgent:g().optional().describe("Host application identifier."),platform:H([m("web"),m("desktop"),m("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:b({touch:ie().optional().describe("Whether the device supports touch input."),hover:ie().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:b({top:L().describe("Top safe area inset in pixels."),right:L().describe("Right safe area inset in pixels."),bottom:L().describe("Bottom safe area inset in pixels."),left:L().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),J_=b({method:m("ui/notifications/host-context-changed"),params:mc.describe("Partial context update containing only changed fields.")});b({method:m("ui/update-model-context"),params:b({content:j(Nn).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:ee(g(),ne().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});b({method:m("ui/initialize"),params:b({appInfo:ko.describe("App identification (name and version)."),appCapabilities:L_.describe("Features and capabilities this app provides."),protocolVersion:g().describe("Protocol version this app supports.")})});var B_=b({protocolVersion:g().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:ko.describe("Host application identification and version."),hostCapabilities:q_.describe("Features and capabilities provided by the host."),hostContext:mc.describe("Rich context about the host environment.")}).passthrough();function W_(e){let t=document.documentElement;t.setAttribute("data-theme",e),t.style.colorScheme=e}function K_(e,t=document.documentElement){for(let[n,o]of Object.entries(e))o!==void 0&&t.style.setProperty(n,o)}function G_(e){if(document.getElementById("__mcp-host-fonts"))return;let t=document.createElement("style");t.id="__mcp-host-fonts",t.textContent=e,document.head.appendChild(t)}class Q_ extends x_{constructor(n,o={},s={autoResize:!0}){super(s);Te(this,"_appInfo");Te(this,"_capabilities");Te(this,"options");Te(this,"_hostCapabilities");Te(this,"_hostInfo");Te(this,"_hostContext");Te(this,"sendOpenLink",this.openLink);this._appInfo=n,this._capabilities=o,this.options=s,this.setRequestHandler(To,r=>(console.log("Received ping:",r.params),{})),this.onhostcontextchanged=()=>{}}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}set ontoolinput(n){this.setNotificationHandler(A_,o=>n(o.params))}set ontoolinputpartial(n){this.setNotificationHandler(Z_,o=>n(o.params))}set ontoolresult(n){this.setNotificationHandler(V_,o=>n(o.params))}set ontoolcancelled(n){this.setNotificationHandler(M_,o=>n(o.params))}set onhostcontextchanged(n){this.setNotificationHandler(J_,o=>{this._hostContext={...this._hostContext,...o.params},n(o.params)})}set onteardown(n){this.setRequestHandler(F_,(o,s)=>n(o.params,s))}set oncalltool(n){this.setRequestHandler(hc,(o,s)=>n(o.params,s))}set onlisttools(n){this.setRequestHandler(dc,(o,s)=>n(o.params,s))}assertCapabilityForMethod(n){}assertRequestHandlerCapability(n){switch(n){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${n})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${n} registered`)}}assertNotificationCapability(n){}assertTaskCapability(n){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(n){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(n,o){if(typeof n=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${n}"). Did you mean: callServerTool({ name: "${n}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:n},xo,o)}async readServerResource(n,o){return await this.request({method:"resources/read",params:n},lc,o)}async listServerResources(n,o){return await this.request({method:"resources/list",params:n},cc,o)}sendMessage(n,o){return this.request({method:"ui/message",params:n},N_,o)}sendLog(n){return this.notification({method:"notifications/message",params:n})}updateModelContext(n,o){return this.request({method:"ui/update-model-context",params:n},js,o)}openLink(n,o){return this.request({method:"ui/open-link",params:n},C_,o)}downloadFile(n,o){return this.request({method:"ui/download-file",params:n},O_,o)}requestDisplayMode(n,o){return this.request({method:"ui/request-display-mode",params:n},U_,o)}sendSizeChanged(n){return this.notification({method:"ui/notifications/size-changed",params:n})}setupSizeChangedNotifications(){let n=!1,o=0,s=0,r=()=>{n||(n=!0,requestAnimationFrame(()=>{n=!1;let a=document.documentElement,c=a.style.width,u=a.style.height;a.style.width="fit-content",a.style.height="max-content";let l=a.getBoundingClientRect();a.style.width=c,a.style.height=u;let d=window.innerWidth-a.clientWidth,p=Math.ceil(l.width+d),_=Math.ceil(l.height);(p!==o||_!==s)&&(o=p,s=_,this.sendSizeChanged({width:p,height:_}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(n=new I_(window.parent,window.parent),o){var s;if(this.transport)throw Error("App is already connected. Call close() before connecting again.");await super.connect(n);try{let r=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:z_}},B_,o);if(r===void 0)throw Error(`Server sent invalid initialize result: ${r}`);this._hostCapabilities=r.hostCapabilities,this._hostInfo=r.hostInfo,this._hostContext=r.hostContext,await this.notification({method:"ui/notifications/initialized"}),(s=this.options)!=null&&s.autoResize&&this.setupSizeChangedNotifications()}catch(r){throw this.close(),r}}}const Y_={class:"action"},X_={class:"server-time"},eb={class:"action"},tb={class:"action"},nb={class:"action"},ob=vl({__name:"App",setup(e){function t(p){var x;const{text:_}=(x=p.content)==null?void 0:x.find(z=>z.type==="text");return _}const n=Zt(null),o=Zt(),s=Zt("Loading..."),r=Zt("This is message text."),i=Zt("This is log text."),a=Zt("https://modelcontextprotocol.io/");pl(()=>{var _,x,z;const p=o.value;p!=null&&p.theme&&W_(p.theme),(_=p==null?void 0:p.styles)!=null&&_.variables&&K_(p.styles.variables),(z=(x=p==null?void 0:p.styles)==null?void 0:x.css)!=null&&z.fonts&&G_(p.styles.css.fonts)}),Ui(async()=>{const p=new Q_({name:"Get Time App",version:"1.0.0"});p.ontoolinput=_=>{console.info("Received tool call input:",_)},p.ontoolresult=_=>{console.info("Received tool call result:",_),s.value=t(_)},p.ontoolcancelled=_=>{console.info("Tool call cancelled:",_.reason)},p.onerror=console.error,p.onhostcontextchanged=_=>{o.value={...o.value,..._}},await p.connect(),n.value=p,o.value=p.getHostContext()});async function c(){if(n.value)try{console.info("Calling get-time tool...");const p=await n.value.callServerTool({name:"get-time",arguments:{}});console.info("get-time result:",p),s.value=t(p)}catch(p){console.error(p),s.value="[ERROR]"}}async function u(){if(!n.value)return;const p=AbortSignal.timeout(5e3);try{console.info("Sending message text to Host:",r.value);const{isError:_}=await n.value.sendMessage({role:"user",content:[{type:"text",text:r.value}]},{signal:p});console.info("Message",_?"rejected":"accepted")}catch(_){console.error("Message send error:",p.aborted?"timed out":_)}}async function l(){n.value&&(console.info("Sending log text to Host:",i.value),await n.value.sendLog({level:"info",data:i.value}))}async function d(){if(!n.value)return;console.info("Sending open link request to Host:",a.value);const{isError:p}=await n.value.openLink({url:a.value});console.info("Open link request",p?"rejected":"accepted")}return(p,_)=>{var x;return su(),au("main",{class:"main",style:fo(((x=o.value)==null?void 0:x.safeAreaInsets)&&{paddingTop:o.value.safeAreaInsets.top+"px",paddingRight:o.value.safeAreaInsets.right+"px",paddingBottom:o.value.safeAreaInsets.bottom+"px",paddingLeft:o.value.safeAreaInsets.left+"px"})},[_[5]||(_[5]=be("p",{class:"notice"},"Watch activity in the DevTools console!",-1)),be("div",Y_,[be("p",null,[_[3]||(_[3]=be("strong",null,"Server Time:",-1)),_[4]||(_[4]=la()),be("code",X_,_i(s.value),1)]),be("button",{onClick:c},"Get Server Time")]),be("div",eb,[Oo(be("textarea",{"onUpdate:modelValue":_[0]||(_[0]=z=>r.value=z)},null,512),[[qo,r.value]]),be("button",{onClick:u},"Send Message")]),be("div",tb,[Oo(be("input",{type:"text","onUpdate:modelValue":_[1]||(_[1]=z=>i.value=z)},null,512),[[qo,i.value]]),be("button",{onClick:l},"Send Log")]),be("div",nb,[Oo(be("input",{type:"url","onUpdate:modelValue":_[2]||(_[2]=z=>a.value=z)},null,512),[[qo,a.value]]),be("button",{onClick:d},"Open Link")])],4)}}}),sb=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},rb=sb(ob,[["__scopeId","data-v-36e0b893"]]);Hu(rb).mount("#app");</script>
100
+ container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:g().optional().describe("User's language and region preference in BCP 47 format."),timeZone:g().optional().describe("User's timezone in IANA format."),userAgent:g().optional().describe("Host application identifier."),platform:H([m("web"),m("desktop"),m("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:b({touch:ie().optional().describe("Whether the device supports touch input."),hover:ie().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:b({top:L().describe("Top safe area inset in pixels."),right:L().describe("Right safe area inset in pixels."),bottom:L().describe("Bottom safe area inset in pixels."),left:L().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),J_=b({method:m("ui/notifications/host-context-changed"),params:mc.describe("Partial context update containing only changed fields.")});b({method:m("ui/update-model-context"),params:b({content:j(Nn).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:ee(g(),ne().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});b({method:m("ui/initialize"),params:b({appInfo:ko.describe("App identification (name and version)."),appCapabilities:L_.describe("Features and capabilities this app provides."),protocolVersion:g().describe("Protocol version this app supports.")})});var B_=b({protocolVersion:g().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:ko.describe("Host application identification and version."),hostCapabilities:F_.describe("Features and capabilities provided by the host."),hostContext:mc.describe("Rich context about the host environment.")}).passthrough();function W_(e){let t=document.documentElement;t.setAttribute("data-theme",e),t.style.colorScheme=e}function K_(e,t=document.documentElement){for(let[n,o]of Object.entries(e))o!==void 0&&t.style.setProperty(n,o)}function G_(e){if(document.getElementById("__mcp-host-fonts"))return;let t=document.createElement("style");t.id="__mcp-host-fonts",t.textContent=e,document.head.appendChild(t)}class Q_ extends x_{constructor(n,o={},s={autoResize:!0}){super(s);Te(this,"_appInfo");Te(this,"_capabilities");Te(this,"options");Te(this,"_hostCapabilities");Te(this,"_hostInfo");Te(this,"_hostContext");Te(this,"sendOpenLink",this.openLink);this._appInfo=n,this._capabilities=o,this.options=s,this.setRequestHandler(To,r=>(console.log("Received ping:",r.params),{})),this.onhostcontextchanged=()=>{}}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}set ontoolinput(n){this.setNotificationHandler(A_,o=>n(o.params))}set ontoolinputpartial(n){this.setNotificationHandler(Z_,o=>n(o.params))}set ontoolresult(n){this.setNotificationHandler(V_,o=>n(o.params))}set ontoolcancelled(n){this.setNotificationHandler(M_,o=>n(o.params))}set onhostcontextchanged(n){this.setNotificationHandler(J_,o=>{this._hostContext={...this._hostContext,...o.params},n(o.params)})}set onteardown(n){this.setRequestHandler(q_,(o,s)=>n(o.params,s))}set oncalltool(n){this.setRequestHandler(hc,(o,s)=>n(o.params,s))}set onlisttools(n){this.setRequestHandler(dc,(o,s)=>n(o.params,s))}assertCapabilityForMethod(n){}assertRequestHandlerCapability(n){switch(n){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${n})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${n} registered`)}}assertNotificationCapability(n){}assertTaskCapability(n){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(n){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(n,o){if(typeof n=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${n}"). Did you mean: callServerTool({ name: "${n}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:n},xo,o)}async readServerResource(n,o){return await this.request({method:"resources/read",params:n},lc,o)}async listServerResources(n,o){return await this.request({method:"resources/list",params:n},cc,o)}sendMessage(n,o){return this.request({method:"ui/message",params:n},N_,o)}sendLog(n){return this.notification({method:"notifications/message",params:n})}updateModelContext(n,o){return this.request({method:"ui/update-model-context",params:n},js,o)}openLink(n,o){return this.request({method:"ui/open-link",params:n},C_,o)}downloadFile(n,o){return this.request({method:"ui/download-file",params:n},O_,o)}requestTeardown(n={}){return this.notification({method:"ui/notifications/request-teardown",params:n})}requestDisplayMode(n,o){return this.request({method:"ui/request-display-mode",params:n},U_,o)}sendSizeChanged(n){return this.notification({method:"ui/notifications/size-changed",params:n})}setupSizeChangedNotifications(){let n=!1,o=0,s=0,r=()=>{n||(n=!0,requestAnimationFrame(()=>{n=!1;let a=document.documentElement,c=a.style.width,u=a.style.height;a.style.width="fit-content",a.style.height="max-content";let l=a.getBoundingClientRect();a.style.width=c,a.style.height=u;let d=window.innerWidth-a.clientWidth,p=Math.ceil(l.width+d),_=Math.ceil(l.height);(p!==o||_!==s)&&(o=p,s=_,this.sendSizeChanged({width:p,height:_}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(n=new I_(window.parent,window.parent),o){var s;if(this.transport)throw Error("App is already connected. Call close() before connecting again.");await super.connect(n);try{let r=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:z_}},B_,o);if(r===void 0)throw Error(`Server sent invalid initialize result: ${r}`);this._hostCapabilities=r.hostCapabilities,this._hostInfo=r.hostInfo,this._hostContext=r.hostContext,await this.notification({method:"ui/notifications/initialized"}),(s=this.options)!=null&&s.autoResize&&this.setupSizeChangedNotifications()}catch(r){throw this.close(),r}}}const Y_={class:"action"},X_={class:"server-time"},eb={class:"action"},tb={class:"action"},nb={class:"action"},ob=vl({__name:"App",setup(e){function t(p){var x;const{text:_}=(x=p.content)==null?void 0:x.find(z=>z.type==="text");return _}const n=Zt(null),o=Zt(),s=Zt("Loading..."),r=Zt("This is message text."),i=Zt("This is log text."),a=Zt("https://modelcontextprotocol.io/");pl(()=>{var _,x,z;const p=o.value;p!=null&&p.theme&&W_(p.theme),(_=p==null?void 0:p.styles)!=null&&_.variables&&K_(p.styles.variables),(z=(x=p==null?void 0:p.styles)==null?void 0:x.css)!=null&&z.fonts&&G_(p.styles.css.fonts)}),Ui(async()=>{const p=new Q_({name:"Get Time App",version:"1.0.0"});p.ontoolinput=_=>{console.info("Received tool call input:",_)},p.ontoolresult=_=>{console.info("Received tool call result:",_),s.value=t(_)},p.ontoolcancelled=_=>{console.info("Tool call cancelled:",_.reason)},p.onerror=console.error,p.onhostcontextchanged=_=>{o.value={...o.value,..._}},await p.connect(),n.value=p,o.value=p.getHostContext()});async function c(){if(n.value)try{console.info("Calling get-time tool...");const p=await n.value.callServerTool({name:"get-time",arguments:{}});console.info("get-time result:",p),s.value=t(p)}catch(p){console.error(p),s.value="[ERROR]"}}async function u(){if(!n.value)return;const p=AbortSignal.timeout(5e3);try{console.info("Sending message text to Host:",r.value);const{isError:_}=await n.value.sendMessage({role:"user",content:[{type:"text",text:r.value}]},{signal:p});console.info("Message",_?"rejected":"accepted")}catch(_){console.error("Message send error:",p.aborted?"timed out":_)}}async function l(){n.value&&(console.info("Sending log text to Host:",i.value),await n.value.sendLog({level:"info",data:i.value}))}async function d(){if(!n.value)return;console.info("Sending open link request to Host:",a.value);const{isError:p}=await n.value.openLink({url:a.value});console.info("Open link request",p?"rejected":"accepted")}return(p,_)=>{var x;return su(),au("main",{class:"main",style:fo(((x=o.value)==null?void 0:x.safeAreaInsets)&&{paddingTop:o.value.safeAreaInsets.top+"px",paddingRight:o.value.safeAreaInsets.right+"px",paddingBottom:o.value.safeAreaInsets.bottom+"px",paddingLeft:o.value.safeAreaInsets.left+"px"})},[_[5]||(_[5]=be("p",{class:"notice"},"Watch activity in the DevTools console!",-1)),be("div",Y_,[be("p",null,[_[3]||(_[3]=be("strong",null,"Server Time:",-1)),_[4]||(_[4]=la()),be("code",X_,_i(s.value),1)]),be("button",{onClick:c},"Get Server Time")]),be("div",eb,[Oo(be("textarea",{"onUpdate:modelValue":_[0]||(_[0]=z=>r.value=z)},null,512),[[Fo,r.value]]),be("button",{onClick:u},"Send Message")]),be("div",tb,[Oo(be("input",{type:"text","onUpdate:modelValue":_[1]||(_[1]=z=>i.value=z)},null,512),[[Fo,i.value]]),be("button",{onClick:l},"Send Log")]),be("div",nb,[Oo(be("input",{type:"url","onUpdate:modelValue":_[2]||(_[2]=z=>a.value=z)},null,512),[[Fo,a.value]]),be("button",{onClick:d},"Open Link")])],4)}}}),sb=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},rb=sb(ob,[["__scopeId","data-v-36e0b893"]]);Hu(rb).mount("#app");</script>
101
101
  <style rel="stylesheet" crossorigin>:root{color-scheme:light dark;--color-text-primary: light-dark(#1f2937, #f3f4f6);--color-text-inverse: light-dark(#f3f4f6, #1f2937);--color-text-info: light-dark(#1d4ed8, #60a5fa);--color-background-primary: light-dark(#ffffff, #1a1a1a);--color-background-inverse: light-dark(#1a1a1a, #ffffff);--color-background-info: light-dark(#eff6ff, #1e3a5f);--color-ring-primary: light-dark(#3b82f6, #60a5fa);--border-radius-md: 6px;--border-width-regular: 1px;--font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--font-weight-normal: 400;--font-weight-bold: 700;--font-text-md-size: 1rem;--font-text-md-line-height: 1.5;--font-heading-3xl-size: 2.25rem;--font-heading-3xl-line-height: 1.1;--font-heading-2xl-size: 1.875rem;--font-heading-2xl-line-height: 1.2;--font-heading-xl-size: 1.5rem;--font-heading-xl-line-height: 1.25;--font-heading-lg-size: 1.25rem;--font-heading-lg-line-height: 1.3;--font-heading-md-size: 1rem;--font-heading-md-line-height: 1.4;--font-heading-sm-size: .875rem;--font-heading-sm-line-height: 1.4;--spacing-unit: var(--font-text-md-size);--spacing-xs: calc(var(--spacing-unit) * .25);--spacing-sm: calc(var(--spacing-unit) * .5);--spacing-md: var(--spacing-unit);--spacing-lg: calc(var(--spacing-unit) * 1.5);--color-accent: #2563eb;--color-text-on-accent: #ffffff}*{box-sizing:border-box}html,body{font-family:var(--font-sans);font-size:var(--font-text-md-size);font-weight:var(--font-weight-normal);line-height:var(--font-text-md-line-height);color:var(--color-text-primary)}h1{font-size:var(--font-heading-3xl-size);line-height:var(--font-heading-3xl-line-height)}h2{font-size:var(--font-heading-2xl-size);line-height:var(--font-heading-2xl-line-height)}h3{font-size:var(--font-heading-xl-size);line-height:var(--font-heading-xl-line-height)}h4{font-size:var(--font-heading-lg-size);line-height:var(--font-heading-lg-line-height)}h5{font-size:var(--font-heading-md-size);line-height:var(--font-heading-md-line-height)}h6{font-size:var(--font-heading-sm-size);line-height:var(--font-heading-sm-line-height)}code,pre,kbd{font-family:var(--font-mono);font-size:1em}b,strong{font-weight:var(--font-weight-bold)}.main[data-v-36e0b893]{width:100%;max-width:425px;box-sizing:border-box}.main>*[data-v-36e0b893]{margin-top:0;margin-bottom:0}.main>*[data-v-36e0b893]+*{margin-top:var(--spacing-lg)}.action>*[data-v-36e0b893]{margin-top:0;margin-bottom:0;width:100%}.action>*[data-v-36e0b893]+*{margin-top:var(--spacing-sm)}.action>p[data-v-36e0b893]{display:flex;align-items:baseline;gap:var(--spacing-xs)}.action textarea[data-v-36e0b893],.action input[data-v-36e0b893]{display:block;font-family:inherit;font-size:inherit}.action button[data-v-36e0b893]{padding:var(--spacing-sm) var(--spacing-md);border:none;border-radius:var(--border-radius-md);color:var(--color-text-on-accent);font-weight:var(--font-weight-bold);background-color:var(--color-accent);cursor:pointer}.action button[data-v-36e0b893]:hover{background-color:color-mix(in srgb,var(--color-accent) 85%,var(--color-background-inverse))}.action button[data-v-36e0b893]:focus-visible{outline:calc(var(--border-width-regular) * 2) solid var(--color-ring-primary);outline-offset:var(--border-width-regular)}.notice[data-v-36e0b893]{padding:var(--spacing-sm) var(--spacing-md);color:var(--color-text-info);text-align:center;font-style:italic;background-color:var(--color-background-info)}.notice[data-v-36e0b893]:before{content:"ℹ️ ";font-style:normal}.server-time[data-v-36e0b893]{flex:1;min-width:0}</style>
102
102
  </head>
103
103
  <body>