(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/** * @vue/shared v3.5.41 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Fr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const fe={},Bt=[],ut=()=>{},ro=()=>!1,qn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Wn=e=>e.startsWith("onUpdate:"),Ee=Object.assign,Hr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ai=Object.prototype.hasOwnProperty,ae=(e,t)=>Ai.call(e,t),W=Array.isArray,Kt=e=>Cn(e)==="[object Map]",en=e=>Cn(e)==="[object Set]",us=e=>Cn(e)==="[object Date]",z=e=>typeof e=="function",ye=e=>typeof e=="string",ct=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",so=e=>(ce(e)||z(e))&&z(e.then)&&z(e.catch),oo=Object.prototype.toString,Cn=e=>oo.call(e),Si=e=>Cn(e).slice(8,-1),io=e=>Cn(e)==="[object Object]",Br=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,un=Fr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Ri=/-\w/g,De=zn(e=>e.replace(Ri,t=>t.slice(1).toUpperCase())),Ii=/\B([A-Z])/g,Ut=zn(e=>e.replace(Ii,"-$1").toLowerCase()),Jn=zn(e=>e.charAt(0).toUpperCase()+e.slice(1)),dr=zn(e=>e?`on${Jn(e)}`:""),at=(e,t)=>!Object.is(e,t),Nn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Yn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let cs;const Qn=()=>cs||(cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xn(e){if(W(e)){const t={};for(let n=0;n{if(n){const r=n.split(Ti);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ae(e){let t="";if(ye(e))t=e;else if(W(e))for(let n=0;ntn(n,t))}const uo=e=>!!(e&&e.__v_isRef===!0),q=e=>ye(e)?e:e==null?"":W(e)||ce(e)&&(e.toString===oo||!z(e.toString))?uo(e)?q(e.value):JSON.stringify(e,co,2):String(e),co=(e,t)=>uo(t)?co(e,t.value):Kt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[fr(r,o)+" =>"]=s,n),{})}:en(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>fr(n))}:ct(t)?fr(t):ce(t)&&!W(t)&&!io(t)?String(t):t,fr=(e,t="")=>{var n;return ct(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.41 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let ke;class $i{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ke&&(ke.active?(this.parent=ke,this.index=(ke.scopes||(ke.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const r=this.scopes.slice();for(t=0,n=r.length;t0&&--this._on===0){if(ke===this)ke=this.prevScope;else{let t=ke;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(dn){let t=dn;for(dn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;cn;){let t=cn;for(cn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function ho(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function mo(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Wr(r),Ui(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Sr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(yo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function yo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===mn)||(e.globalVersion=mn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Sr(e))))return;e.flags|=2;const t=e.dep,n=pe,r=We;pe=e,We=!0;try{ho(e);const s=e.fn(e._value);(t.version===0||at(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{pe=n,We=r,mo(e),e.flags&=-3}}function Wr(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Wr(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ui(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let We=!0;const xo=[];function bt(){xo.push(We),We=!1}function _t(){const e=xo.pop();We=e===void 0?!0:e}function ds(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=pe;pe=void 0;try{t()}finally{pe=n}}}let mn=0;class Li{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 zr{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(!pe||!We||pe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==pe)n=this.activeLink=new Li(pe,this),pe.deps?(n.prevDep=pe.depsTail,pe.depsTail.nextDep=n,pe.depsTail=n):pe.deps=pe.depsTail=n,vo(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=pe.depsTail,n.nextDep=void 0,pe.depsTail.nextDep=n,pe.depsTail=n,pe.deps===n&&(pe.deps=r)}return n}trigger(t){this.version++,mn++,this.notify(t)}notify(t){Gr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{qr()}}}function vo(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)vo(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Rr=new WeakMap,Vt=Symbol(""),Ir=Symbol(""),yn=Symbol("");function Se(e,t,n){if(We&&pe){let r=Rr.get(e);r||Rr.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new zr),s.map=r,s.key=n),s.track()}}function xt(e,t,n,r,s,o){const i=Rr.get(e);if(!i){mn++;return}const a=l=>{l&&l.trigger()};if(Gr(),t==="clear")i.forEach(a);else{const l=W(e),d=l&&Br(n);if(l&&n==="length"){const u=Number(r);i.forEach((g,y)=>{(y==="length"||y===yn||!ct(y)&&y>=u)&&a(g)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),d&&a(i.get(yn)),t){case"add":l?d&&a(i.get("length")):(a(i.get(Vt)),Kt(e)&&a(i.get(Ir)));break;case"delete":l||(a(i.get(Vt)),Kt(e)&&a(i.get(Ir)));break;case"set":Kt(e)&&a(i.get(Vt));break}}qr()}function Lt(e){const t=ie(e);return t===e?t:(Se(t,"iterate",yn),Ge(e)?t:t.map(Je))}function Zn(e){return Se(e=ie(e),"iterate",yn),e}function st(e,t){return kt(e)?zt($t(e)?Je(t):t):Je(t)}const Fi={__proto__:null,[Symbol.iterator](){return gr(this,Symbol.iterator,e=>st(this,e))},concat(...e){return Lt(this).concat(...e.map(t=>W(t)?Lt(t):t))},entries(){return gr(this,"entries",e=>(e[1]=st(this,e[1]),e))},every(e,t){return gt(this,"every",e,t,void 0,arguments)},filter(e,t){return gt(this,"filter",e,t,n=>n.map(r=>st(this,r)),arguments)},find(e,t){return gt(this,"find",e,t,n=>st(this,n),arguments)},findIndex(e,t){return gt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return gt(this,"findLast",e,t,n=>st(this,n),arguments)},findLastIndex(e,t){return gt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return gt(this,"forEach",e,t,void 0,arguments)},includes(...e){return hr(this,"includes",e)},indexOf(...e){return hr(this,"indexOf",e)},join(e){return Lt(this).join(e)},lastIndexOf(...e){return hr(this,"lastIndexOf",e)},map(e,t){return gt(this,"map",e,t,void 0,arguments)},pop(){return rn(this,"pop")},push(...e){return rn(this,"push",e)},reduce(e,...t){return fs(this,"reduce",e,t)},reduceRight(e,...t){return fs(this,"reduceRight",e,t)},shift(){return rn(this,"shift")},some(e,t){return gt(this,"some",e,t,void 0,arguments)},splice(...e){return rn(this,"splice",e)},toReversed(){return Lt(this).toReversed()},toSorted(e){return Lt(this).toSorted(e)},toSpliced(...e){return Lt(this).toSpliced(...e)},unshift(...e){return rn(this,"unshift",e)},values(){return gr(this,"values",e=>st(this,e))}};function gr(e,t,n){const r=Zn(e),s=r[t]();return r!==e&&!Ge(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const Hi=Array.prototype;function gt(e,t,n,r,s,o){const i=Zn(e),a=i!==e&&!Ge(e),l=i[t];if(l!==Hi[t]){const g=l.apply(e,o);return a?Je(g):g}let d=n;i!==e&&(a?d=function(g,y){return n.call(this,st(e,g),y,e)}:n.length>2&&(d=function(g,y){return n.call(this,g,y,e)}));const u=l.call(i,d,r);return a&&s?s(u):u}function fs(e,t,n,r){const s=Zn(e),o=s!==e&&!Ge(e);let i=n,a=!1;s!==e&&(o?(a=r.length===0,i=function(d,u,g){return a&&(a=!1,d=st(e,d)),n.call(this,d,st(e,u),g,e)}):n.length>3&&(i=function(d,u,g){return n.call(this,d,u,g,e)}));const l=s[t](i,...r);return a?st(e,l):l}function hr(e,t,n){const r=ie(e);Se(r,"iterate",yn);const s=r[t](...n);return(s===-1||s===!1)&&Qr(n[0])?(n[0]=ie(n[0]),r[t](...n)):s}function rn(e,t,n=[]){bt(),Gr();const r=ie(e)[t].apply(e,n);return qr(),_t(),r}const Bi=Fr("__proto__,__v_isRef,__isVue"),bo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ct));function Ki(e){ct(e)||(e=String(e));const t=ie(this);return Se(t,"has",e),t.hasOwnProperty(e)}class _o{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?ea:Co:o?Eo:wo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=W(t);if(!s){let l;if(i&&(l=Fi[n]))return l;if(n==="hasOwnProperty")return Ki}const a=Reflect.get(t,n,Ie(t)?t:r);if((ct(n)?bo.has(n):Bi(n))||(s||Se(t,"get",n),o))return a;if(Ie(a)){const l=i&&Br(n)?a:a.value;return s&&ce(l)?Tr(l):l}return ce(a)?s?Tr(a):er(a):a}}class ko extends _o{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];const i=W(t)&&Br(n);if(!this._isShallow){const d=kt(o);if(!Ge(r)&&!kt(r)&&(o=ie(o),r=ie(r)),!i&&Ie(o)&&!Ie(r))return d||(o.value=r),!0}const a=i?Number(n)e,Rn=e=>Reflect.getPrototypeOf(e);function Ji(e,t,n){return function(...r){const s=this.__v_raw,o=ie(s),i=Kt(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,d=s[e](...r),u=n?Or:t?zt:Je;return!t&&Se(o,"iterate",l?Ir:Vt),Ee(Object.create(d),{next(){const{value:g,done:y}=d.next();return y?{value:g,done:y}:{value:a?[u(g[0]),u(g[1])]:u(g),done:y}}})}}function In(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Yi(e,t){const n={get(s){const o=this.__v_raw,i=ie(o),a=ie(s);e||(at(s,a)&&Se(i,"get",s),Se(i,"get",a));const{has:l}=Rn(i),d=t?Or:e?zt:Je;if(l.call(i,s))return d(o.get(s));if(l.call(i,a))return d(o.get(a));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&Se(ie(s),"iterate",Vt),s.size},has(s){const o=this.__v_raw,i=ie(o),a=ie(s);return e||(at(s,a)&&Se(i,"has",s),Se(i,"has",a)),s===a?o.has(s):o.has(s)||o.has(a)},forEach(s,o){const i=this,a=i.__v_raw,l=ie(a),d=t?Or:e?zt:Je;return!e&&Se(l,"iterate",Vt),a.forEach((u,g)=>s.call(o,d(u),d(g),i))}};return Ee(n,e?{add:In("add"),set:In("set"),delete:In("delete"),clear:In("clear")}:{add(s){const o=ie(this),i=Rn(o),a=ie(s),l=!t&&!Ge(s)&&!kt(s)?a:s;return i.has.call(o,l)||at(s,l)&&i.has.call(o,s)||at(a,l)&&i.has.call(o,a)||(o.add(l),xt(o,"add",l,l)),this},set(s,o){!t&&!Ge(o)&&!kt(o)&&(o=ie(o));const i=ie(this),{has:a,get:l}=Rn(i);let d=a.call(i,s);d||(s=ie(s),d=a.call(i,s));const u=l.call(i,s);return i.set(s,o),d?at(o,u)&&xt(i,"set",s,o):xt(i,"add",s,o),this},delete(s){const o=ie(this),{has:i,get:a}=Rn(o);let l=i.call(o,s);l||(s=ie(s),l=i.call(o,s)),a&&a.call(o,s);const d=o.delete(s);return l&&xt(o,"delete",s,void 0),d},clear(){const s=ie(this),o=s.size!==0,i=s.clear();return o&&xt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Ji(s,e,t)}),n}function Jr(e,t){const n=Yi(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ae(n,s)&&s in r?n:r,s,o)}const Qi={get:Jr(!1,!1)},Xi={get:Jr(!1,!0)},Zi={get:Jr(!0,!1)};const wo=new WeakMap,Eo=new WeakMap,Co=new WeakMap,ea=new WeakMap;function ta(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function er(e){return kt(e)?e:Yr(e,!1,qi,Qi,wo)}function Ao(e){return Yr(e,!1,zi,Xi,Eo)}function Tr(e){return Yr(e,!0,Wi,Zi,Co)}function Yr(e,t,n,r,s){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=s.get(e);if(o)return o;const i=ta(Si(e));if(i===0)return e;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function $t(e){return kt(e)?$t(e.__v_raw):!!(e&&e.__v_isReactive)}function kt(e){return!!(e&&e.__v_isReadonly)}function Ge(e){return!!(e&&e.__v_isShallow)}function Qr(e){return e?!!e.__v_raw:!1}function ie(e){const t=e&&e.__v_raw;return t?ie(t):e}function na(e){return!ae(e,"__v_skip")&&Object.isExtensible(e)&&ao(e,"__v_skip",!0),e}const Je=e=>ce(e)?er(e):e,zt=e=>ce(e)?Tr(e):e;function Ie(e){return e?e.__v_isRef===!0:!1}function Y(e){return So(e,!1)}function ra(e){return So(e,!0)}function So(e,t){return Ie(e)?e:new sa(e,t)}class sa{constructor(t,n){this.dep=new zr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ie(t),this._value=n?t:Je(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ge(t)||kt(t);t=r?t:ie(t),at(t,n)&&(this._rawValue=t,this._value=r?t:Je(t),this.dep.trigger())}}function Gt(e){return Ie(e)?e.value:e}const oa={get:(e,t,n)=>t==="__v_raw"?e:Gt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Ie(s)&&!Ie(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Ro(e){return $t(e)?e:new Proxy(e,oa)}class ia{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new zr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=mn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&pe!==this)return go(this,!0),!0}get value(){const t=this.dep.track();return yo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function aa(e,t,n=!1){let r,s;return z(e)?r=e:(r=e.get,s=e.set),new ia(r,s,n)}const On={},$n=new WeakMap;let Nt;function la(e,t=!1,n=Nt){if(n){let r=$n.get(n);r||$n.set(n,r=[]),r.push(e)}}function ua(e,t,n=fe){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,d=k=>s?k:Ge(k)||s===!1||s===0?vt(k,1):vt(k);let u,g,y,v,j=!1,P=!1;if(Ie(e)?(g=()=>e.value,j=Ge(e)):$t(e)?(g=()=>d(e),j=!0):W(e)?(P=!0,j=e.some(k=>$t(k)||Ge(k)),g=()=>e.map(k=>{if(Ie(k))return k.value;if($t(k))return d(k);if(z(k))return l?l(k,2):k()})):z(e)?t?g=l?()=>l(e,2):e:g=()=>{if(y){bt();try{y()}finally{_t()}}const k=Nt;Nt=u;try{return l?l(e,3,[v]):e(v)}finally{Nt=k}}:g=ut,t&&s){const k=g,O=s===!0?1/0:s;g=()=>vt(k(),O)}const K=ji(),V=()=>{u.stop(),K&&K.active&&Hr(K.effects,u)};if(o&&t){const k=t;t=(...O)=>{const le=k(...O);return V(),le}}let A=P?new Array(e.length).fill(On):On;const L=k=>{if(!(!(u.flags&1)||!u.dirty&&!k))if(t){const O=u.run();if(k||s||j||(P?O.some((le,F)=>at(le,A[F])):at(O,A))){y&&y();const le=Nt;Nt=u;try{const F=[O,A===On?void 0:P&&A[0]===On?[]:A,v];A=O,l?l(t,3,F):t(...F)}finally{Nt=le}}}else u.run()};return a&&a(L),u=new fo(g),u.scheduler=i?()=>i(L,!1):L,v=k=>la(k,!1,u),y=u.onStop=()=>{const k=$n.get(u);if(k){if(l)l(k,4);else for(const O of k)O();$n.delete(u)}},t?r?L(!0):A=u.run():i?i(L.bind(null,!0),!0):u.run(),V.pause=u.pause.bind(u),V.resume=u.resume.bind(u),V.stop=V,V}function vt(e,t=1/0,n){if(t<=0||!ce(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ie(e))vt(e.value,t,n);else if(W(e))for(let r=0;r{vt(r,t,n)});else if(io(e)){for(const r in e)vt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&vt(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.41 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function An(e,t,n,r){try{return r?e(...r):e()}catch(s){tr(s,t,n)}}function Ye(e,t,n,r){if(z(e)){const s=An(e,t,n,r);return s&&so(s)&&s.catch(o=>{tr(o,t,n)}),s}if(W(e)){const s=[];for(let o=0;o>>1,s=Ne[r],o=xn(s);o=xn(n)?Ne.push(e):Ne.splice(da(t),0,e),e.flags|=1,Oo()}}function Oo(){jn||(jn=Io.then(Po))}function fa(e){if(!W(e))St&&e.id===-1?St.splice(Ft+1,0,e):e.flags&1||(qt.push(e),e.flags|=1);else for(let t=0;txn(n)-xn(r));if(qt.length=0,St){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function Po(e){try{for(rt=0;rt{r._d&&Hn(-1);const o=Un(t),i=jt.length;let a;try{a=e(...s)}finally{for(let l=jt.length;l>i;l--)si();Un(o),r._d&&Hn(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function te(e,t){if(He===null)return e;const n=lr(He),r=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&z(t)?t.call(r&&r.proxy):t}}const pa=Symbol.for("v-scx"),ga=()=>ze(pa);function Mn(e,t,n){return Do(e,t,n)}function Do(e,t,n=fe){const{immediate:r,deep:s,flush:o,once:i}=n,a=Ee({},n),l=t&&r||!t&&o!=="post";let d;if(_n){if(o==="sync"){const v=ga();d=v.__watcherHandles||(v.__watcherHandles=[])}else if(!l){const v=()=>{};return v.stop=ut,v.resume=ut,v.pause=ut,v}}const u=Re;a.call=(v,j,P)=>Ye(v,u,j,P);let g=!1;o==="post"?a.scheduler=v=>{$e(v,u&&u.suspense)}:o!=="sync"&&(g=!0,a.scheduler=(v,j)=>{j?v():Zr(v)}),a.augmentJob=v=>{t&&(v.flags|=4),g&&(v.flags|=2,u&&(v.id=u.uid,v.i=u))};const y=ua(e,t,a);return _n&&(d?d.push(y):l&&y()),y}function ha(e,t,n){const r=this.proxy,s=ye(e)?e.includes(".")?Mo(r,e):()=>r[e]:e.bind(r,r);let o;z(t)?o=t:(o=t.handler,n=t);const i=Sn(this),a=Do(s,o.bind(r),n);return i(),a}function Mo(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;se.__isTeleport,mr=Symbol("_leaveCb");function ya(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==wt){t=n;break}}return t}function Vo(e){if(!ts(e))return nr(e.type)&&e.children?ya(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&z(n.default))return n.default()}}function es(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;es(nr(n.type)&&Vo(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function $o(e,t){return z(e)?Ee({name:e.name},t,{setup:e}):e}function jo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function gs(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Ln=new WeakMap;function fn(e,t,n,r,s=!1){if(W(e)){e.forEach((P,K)=>fn(P,t&&(W(t)?t[K]:t),n,r,s));return}if(pn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&fn(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?lr(r.component):r.el,i=s?null:o,{i:a,r:l}=e,d=t&&t.r,u=a.refs===fe?a.refs={}:a.refs,g=a.setupState,y=ie(g),v=g===fe?ro:P=>gs(u,P)?!1:ae(y,P),j=(P,K)=>!(K&&gs(u,K));if(d!=null&&d!==l){if(hs(t),ye(d))u[d]=null,v(d)&&(g[d]=null);else if(Ie(d)){const P=t;j(d,P.k)&&(d.value=null),P.k&&(u[P.k]=null)}}if(z(l))An(l,a,12,[i,u]);else{const P=ye(l),K=Ie(l);if(P||K){const V=()=>{if(e.f){const A=P?v(l)?g[l]:u[l]:j()||!e.k?l.value:u[e.k];if(s)W(A)&&Hr(A,o);else if(W(A))A.includes(o)||A.push(o);else if(P)u[l]=[o],v(l)&&(g[l]=u[l]);else{const L=[o];j(l,e.k)&&(l.value=L),e.k&&(u[e.k]=L)}}else P?(u[l]=i,v(l)&&(g[l]=i)):K&&(j(l,e.k)&&(l.value=i),e.k&&(u[e.k]=i))};if(i){const A=()=>{V(),Ln.delete(e)};A.id=-1,Ln.set(e,A),$e(A,n)}else hs(e),V()}}}function hs(e){const t=Ln.get(e);t&&(t.flags|=8,Ln.delete(e))}Qn().requestIdleCallback;Qn().cancelIdleCallback;const pn=e=>!!e.type.__asyncLoader,ts=e=>e.type.__isKeepAlive;function xa(e,t){Uo(e,"a",t)}function va(e,t){Uo(e,"da",t)}function Uo(e,t,n=Re){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(rr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)ts(s.parent.vnode)&&ba(r,t,n,s),s=s.parent}}function ba(e,t,n,r){const s=rr(t,e,r,!0);Lo(()=>{Hr(r[t],s)},n)}function rr(e,t,n=Re,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{bt();const a=Sn(n),l=Ye(t,n,e,i);return a(),_t(),l});return r?s.unshift(o):s.push(o),o}}const Et=e=>(t,n=Re)=>{(!_n||e==="sp")&&rr(e,(...r)=>t(...r),n)},_a=Et("bm"),sr=Et("m"),ka=Et("bu"),wa=Et("u"),Ea=Et("bum"),Lo=Et("um"),Ca=Et("sp"),Aa=Et("rtg"),Sa=Et("rtc");function Ra(e,t=Re){rr("ec",e,t)}const Ia="components";function or(e,t){return Ta(Ia,e,!0,t)||e}const Oa=Symbol.for("v-ndc");function Ta(e,t,n=!0,r=!1){const s=He||Re;if(s){const o=s.type;{const a=ml(o,!1);if(a&&(a===t||a===De(t)||a===Jn(De(t))))return o}const i=ms(s[e]||o[e],t)||ms(s.appContext[e],t);return!i&&r?o:i}}function ms(e,t){return e&&(e[t]||e[De(t)]||e[Jn(De(t))])}function Te(e,t,n,r){let s;const o=n,i=W(e);if(i||ye(e)){const a=i&&$t(e);let l=!1,d=!1;a&&(l=!Ge(e),d=kt(e),e=Zn(e)),s=new Array(e.length);for(let u=0,g=e.length;ut(a,l,void 0,o));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,d=a.length;le?ai(e)?lr(e):Pr(e.parent):null,gn=Ee(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=>Pr(e.parent),$root:e=>Pr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ho(e),$forceUpdate:e=>e.f||(e.f=()=>{Zr(e.update)}),$nextTick:e=>e.n||(e.n=Xr.bind(e.proxy)),$watch:e=>ha.bind(e)}),yr=(e,t)=>e!==fe&&!e.__isScriptSetup&&ae(e,t),Pa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:l}=e;if(t[0]!=="$"){const y=i[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(yr(r,t))return i[t]=1,r[t];if(s!==fe&&ae(s,t))return i[t]=2,s[t];if(ae(o,t))return i[t]=3,o[t];if(n!==fe&&ae(n,t))return i[t]=4,n[t];Nr&&(i[t]=0)}}const d=gn[t];let u,g;if(d)return t==="$attrs"&&Se(e.attrs,"get",""),d(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==fe&&ae(n,t))return i[t]=4,n[t];if(g=l.config.globalProperties,ae(g,t))return g[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return yr(s,t)?(s[t]=n,!0):r!==fe&&ae(r,t)?(r[t]=n,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:o,type:i}},a){let l;return!!(n[a]||e!==fe&&a[0]!=="$"&&ae(e,a)||yr(t,a)||ae(o,a)||ae(r,a)||ae(gn,a)||ae(s.config.globalProperties,a)||(l=i.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ys(e){return W(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Nr=!0;function Na(e){const t=Ho(e),n=e.proxy,r=e.ctx;Nr=!1,t.beforeCreate&&xs(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:d,created:u,beforeMount:g,mounted:y,beforeUpdate:v,updated:j,activated:P,deactivated:K,beforeDestroy:V,beforeUnmount:A,destroyed:L,unmounted:k,render:O,renderTracked:le,renderTriggered:F,errorCaptured:J,serverPrefetch:qe,expose:Me,inheritAttrs:Xe,components:dt,directives:Ke,filters:Ot}=t;if(d&&Da(d,r,null),i)for(const ne in i){const Z=i[ne];z(Z)&&(r[ne]=Z.bind(n))}if(s){const ne=s.call(n,n);ce(ne)&&(e.data=er(ne))}if(Nr=!0,o)for(const ne in o){const Z=o[ne],X=z(Z)?Z.bind(n,n):z(Z.get)?Z.get.bind(n,n):ut,je=!z(Z)&&z(Z.set)?Z.set.bind(n):ut,Ue=we({get:X,set:je});Object.defineProperty(r,ne,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:Ce=>Ue.value=Ce})}if(a)for(const ne in a)Fo(a[ne],r,n,ne);if(l){const ne=z(l)?l.call(n):l;Reflect.ownKeys(ne).forEach(Z=>{Dn(Z,ne[Z])})}u&&xs(u,e,"c");function xe(ne,Z){W(Z)?Z.forEach(X=>ne(X.bind(n))):Z&&ne(Z.bind(n))}if(xe(_a,g),xe(sr,y),xe(ka,v),xe(wa,j),xe(xa,P),xe(va,K),xe(Ra,J),xe(Sa,le),xe(Aa,F),xe(Ea,A),xe(Lo,k),xe(Ca,qe),W(Me))if(Me.length){const ne=e.exposed||(e.exposed={});Me.forEach(Z=>{Object.defineProperty(ne,Z,{get:()=>n[Z],set:X=>n[Z]=X,enumerable:!0})})}else e.exposed||(e.exposed={});O&&e.render===ut&&(e.render=O),Xe!=null&&(e.inheritAttrs=Xe),dt&&(e.components=dt),Ke&&(e.directives=Ke),qe&&jo(e)}function Da(e,t,n=ut){W(e)&&(e=Dr(e));for(const r in e){const s=e[r];let o;ce(s)?"default"in s?o=ze(s.from||r,s.default,!0):o=ze(s.from||r):o=ze(s),Ie(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function xs(e,t,n){Ye(W(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Fo(e,t,n,r){let s=r.includes(".")?Mo(n,r):()=>n[r];if(ye(e)){const o=t[e];z(o)&&Mn(s,o)}else if(z(e))Mn(s,e.bind(n));else if(ce(e))if(W(e))e.forEach(o=>Fo(o,t,n,r));else{const o=z(e.handler)?e.handler.bind(n):t[e.handler];z(o)&&Mn(s,o,e)}}function Ho(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(d=>Fn(l,d,i,!0)),Fn(l,t,i)),ce(t)&&o.set(t,l),l}function Fn(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Fn(e,o,n,!0),s&&s.forEach(i=>Fn(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=Ma[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Ma={data:vs,props:bs,emits:bs,methods:an,computed:an,beforeCreate:Oe,created:Oe,beforeMount:Oe,mounted:Oe,beforeUpdate:Oe,updated:Oe,beforeDestroy:Oe,beforeUnmount:Oe,destroyed:Oe,unmounted:Oe,activated:Oe,deactivated:Oe,errorCaptured:Oe,serverPrefetch:Oe,components:an,directives:an,watch:$a,provide:vs,inject:Va};function vs(e,t){return t?e?function(){return Ee(z(e)?e.call(this,this):e,z(t)?t.call(this,this):t)}:t:e}function Va(e,t){return an(Dr(e),Dr(t))}function Dr(e){if(W(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${De(t)}Modifiers`]||e[`${Ut(t)}Modifiers`];function Fa(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||fe;let s=n;const o=t.startsWith("update:"),i=o&&La(r,t.slice(7));i&&(i.trim&&(s=n.map(u=>ye(u)?u.trim():u)),i.number&&(s=n.map(Yn)));let a,l=r[a=dr(t)]||r[a=dr(De(t))];!l&&o&&(l=r[a=dr(Ut(t))]),l&&Ye(l,e,6,s);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ye(d,e,6,s)}}const Ha=new WeakMap;function Ko(e,t,n=!1){const r=n?Ha:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!z(e)){const l=d=>{const u=Ko(d,t,!0);u&&(a=!0,Ee(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(ce(e)&&r.set(e,null),null):(W(o)?o.forEach(l=>i[l]=null):Ee(i,o),ce(e)&&r.set(e,i),i)}function ir(e,t){return!e||!qn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,Ut(t))||ae(e,t))}function _s(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:l,render:d,renderCache:u,props:g,data:y,setupState:v,ctx:j,inheritAttrs:P}=e,K=Un(e);let V,A;try{if(n.shapeFlag&4){const k=s||r,O=k;V=ot(d.call(O,k,u,g,v,y,j)),A=a}else{const k=t;V=ot(k.length>1?k(g,{attrs:a,slots:i,emit:l}):k(g,null)),A=t.props?a:Ba(a)}}catch(k){jt.length=0,tr(k,e,1),V=ve(wt)}let L=V;if(A&&P!==!1){const k=Object.keys(A),{shapeFlag:O}=L;k.length&&O&7&&(o&&k.some(Wn)&&(A=Ka(A,o)),L=Yt(L,A,!1,!0))}if(n.dirs&&(L=Yt(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition){const k=nr(L.type)&&Vo(L)||L;es(k,n.transition)}return V=L,Un(K),V}const Ba=e=>{let t;for(const n in e)(n==="class"||n==="style"||qn(n))&&((t||(t={}))[n]=e[n]);return t},Ka=(e,t)=>{const n={};for(const r in e)(!Wn(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ga(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:a,patchFlag:l}=t,d=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?ks(r,i,d):!!i;if(l&8){const u=t.dynamicProps;for(let g=0;gObject.create(qo),zo=e=>Object.getPrototypeOf(e)===qo;function Wa(e,t,n,r=!1){const s={},o=Wo();e.propsDefaults=Object.create(null),Jo(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Ao(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function za(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=ie(s),[l]=e.propsOptions;let d=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let g=0;g{l=!0;const[y,v]=Yo(g,t,!0);Ee(i,y),v&&a.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return ce(e)&&r.set(e,Bt),Bt;if(W(o))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",rs=e=>W(e)?e.map(ot):[ot(e)],Ya=(e,t,n)=>{if(t._n)return t;const r=Jt((...s)=>rs(t(...s)),n);return r._c=!1,r},Qo=(e,t,n)=>{const r=e._ctx;for(const s in e){if(ns(s))continue;const o=e[s];if(z(o))t[s]=Ya(s,o,r);else if(o!=null){const i=rs(o);t[s]=()=>i}}},Xo=(e,t)=>{const n=rs(t);e.slots.default=()=>n},Zo=(e,t,n)=>{for(const r in t)(n||!ns(r))&&(e[r]=t[r])},Qa=(e,t,n)=>{const r=e.slots=Wo();if(e.vnode.shapeFlag&32){const s=t._;s?(Zo(r,t,n),n&&ao(r,"_",s,!0)):Qo(t,r)}else t&&Xo(e,t)},Xa=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=fe;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:Zo(s,t,n):(o=!t.$stable,Qo(t,s)),i=t}else t&&(Xo(e,t),i={default:1});if(o)for(const a in s)!ns(a)&&i[a]==null&&delete s[a]},$e=rl;function Za(e){return el(e)}function el(e,t){const n=Qn();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:d,setElementText:u,parentNode:g,nextSibling:y,setScopeId:v=ut,insertStaticContent:j}=e,P=(c,p,h,w=null,C=null,_=null,T=void 0,I=null,R=!!p.dynamicChildren)=>{if(c===p)return;c&&!sn(c,p)&&(w=E(c),Ce(c,C,_,!0),c=null),p.patchFlag===-2&&(R=!1,p.dynamicChildren=null);const{type:S,ref:G,shapeFlag:$}=p;switch(S){case ar:K(c,p,h,w);break;case wt:V(c,p,h,w);break;case vr:c==null&&A(p,h,w,T);break;case ge:dt(c,p,h,w,C,_,T,I,R);break;default:$&1?O(c,p,h,w,C,_,T,I,R):$&6?Ke(c,p,h,w,C,_,T,I,R):($&64||$&128)&&S.process(c,p,h,w,C,_,T,I,R,H)}G!=null&&C?fn(G,c&&c.ref,_,p||c,!p):G==null&&c&&c.ref!=null&&fn(c.ref,null,_,c,!0)},K=(c,p,h,w)=>{if(c==null)r(p.el=a(p.children),h,w);else{const C=p.el=c.el;p.children!==c.children&&d(C,p.children)}},V=(c,p,h,w)=>{c==null?r(p.el=l(p.children||""),h,w):p.el=c.el},A=(c,p,h,w)=>{[c.el,c.anchor]=j(c.children,p,h,w,c.el,c.anchor)},L=({el:c,anchor:p},h,w)=>{let C;for(;c&&c!==p;)C=y(c),r(c,h,w),c=C;r(p,h,w)},k=({el:c,anchor:p})=>{let h;for(;c&&c!==p;)h=y(c),s(c),c=h;s(p)},O=(c,p,h,w,C,_,T,I,R)=>{if(p.type==="svg"?T="svg":p.type==="math"&&(T="mathml"),c==null)le(p,h,w,C,_,T,I,R);else{const S=c.el&&c.el._isVueCE?c.el:null;try{S&&S._beginPatch(),qe(c,p,C,_,T,I,R)}finally{S&&S._endPatch()}}},le=(c,p,h,w,C,_,T,I)=>{let R,S;const{props:G,shapeFlag:$,transition:B,dirs:b}=c;if(R=c.el=i(c.type,_,G&&G.is,G),$&8?u(R,c.children):$&16&&J(c.children,R,null,w,C,xr(c,_),T,I),b&&Tt(c,null,w,"created"),F(R,c,c.scopeId,T,w),G){for(const ue in G)ue!=="value"&&!un(ue)&&o(R,ue,null,G[ue],_,w);"value"in G&&o(R,"value",null,G.value,_),(S=G.onVnodeBeforeMount)&&nt(S,w,c)}b&&Tt(c,null,w,"beforeMount");const m=tl(C,B);m&&B.beforeEnter(R),r(R,p,h),((S=G&&G.onVnodeMounted)||m||b)&&$e(()=>{try{S&&nt(S,w,c),m&&B.enter(R),b&&Tt(c,null,w,"mounted")}finally{}},C)},F=(c,p,h,w,C)=>{if(h&&v(c,h),w)for(let _=0;_{for(let S=R;S{const I=p.el=c.el;let{patchFlag:R,dynamicChildren:S,dirs:G}=p;R|=c.patchFlag&16;const $=c.props||fe,B=p.props||fe;let b;if(h&&Pt(h,!1),(b=B.onVnodeBeforeUpdate)&&nt(b,h,p,c),G&&Tt(p,c,h,"beforeUpdate"),h&&Pt(h,!0),S&&(!c.dynamicChildren||c.dynamicChildren.length!==S.length)&&(R=0,T=!1,S=null),($.innerHTML&&B.innerHTML==null||$.textContent&&B.textContent==null)&&u(I,""),S?Me(c.dynamicChildren,S,I,h,w,xr(p,C),_):T||Z(c,p,I,null,h,w,xr(p,C),_,!1),R>0){if(R&16)Xe(I,$,B,h,C);else if(R&2&&$.class!==B.class&&o(I,"class",null,B.class,C),R&4&&o(I,"style",$.style,B.style,C),R&8){const m=p.dynamicProps;for(let ue=0;ue{b&&nt(b,h,p,c),G&&Tt(p,c,h,"updated")},w)},Me=(c,p,h,w,C,_,T)=>{for(let I=0;I{if(p!==h){if(p!==fe)for(const _ in p)!un(_)&&!(_ in h)&&o(c,_,p[_],null,C,w);for(const _ in h){if(un(_))continue;const T=h[_],I=p[_];T!==I&&_!=="value"&&o(c,_,I,T,C,w)}"value"in h&&o(c,"value",p.value,h.value,C)}},dt=(c,p,h,w,C,_,T,I,R)=>{const S=p.el=c?c.el:a(""),G=p.anchor=c?c.anchor:a("");let{patchFlag:$,dynamicChildren:B,slotScopeIds:b}=p;b&&(I=I?I.concat(b):b),c==null?(r(S,h,w),r(G,h,w),J(p.children||[],h,G,C,_,T,I,R)):$>0&&$&64&&B&&c.dynamicChildren&&c.dynamicChildren.length===B.length?(Me(c.dynamicChildren,B,h,C,_,T,I),(p.key!=null||C&&p===C.subTree)&&ei(c,p,!0)):Z(c,p,h,G,C,_,T,I,R)},Ke=(c,p,h,w,C,_,T,I,R)=>{p.slotScopeIds=I,c==null?p.shapeFlag&512?C.ctx.activate(p,h,w,T,R):Ot(p,h,w,C,_,T,R):Ct(c,p,R)},Ot=(c,p,h,w,C,_,T)=>{const I=c.component=cl(c,w,C);if(ts(c)&&(I.ctx.renderer=H),fl(I,!1,T),I.asyncDep){if(C&&C.registerDep(I,xe,T),!c.el){const R=I.subTree=ve(wt);V(null,R,p,h),c.placeholder=R.el}}else xe(I,c,p,h,C,_,T)},Ct=(c,p,h)=>{const w=p.component=c.component;if(Ga(c,p,h))if(w.asyncDep&&!w.asyncResolved){ne(w,p,h);return}else w.next=p,w.update();else p.el=c.el,w.vnode=p},xe=(c,p,h,w,C,_,T)=>{const I=()=>{if(c.isMounted){let{next:$,bu:B,u:b,parent:m,vnode:ue}=c;{const et=ti(c);if(et){$&&($.el=ue.el,ne(c,$,T)),et.asyncDep.then(()=>{$e(()=>{c.isUnmounted||S()},C)});return}}let x=$,ee;Pt(c,!1),$?($.el=ue.el,ne(c,$,T)):$=ue,B&&Nn(B),(ee=$.props&&$.props.onVnodeBeforeUpdate)&&nt(ee,m,$,ue),Pt(c,!0);const de=_s(c),Ze=c.subTree;c.subTree=de,P(Ze,de,g(Ze.el),E(Ze),c,C,_),$.el=de.el,x===null&&qa(c,de.el),b&&$e(b,C),(ee=$.props&&$.props.onVnodeUpdated)&&$e(()=>nt(ee,m,$,ue),C)}else{let $;const{el:B,props:b}=p,{bm:m,m:ue,parent:x,root:ee,type:de}=c,Ze=pn(p);Pt(c,!1),m&&Nn(m),!Ze&&($=b&&b.onVnodeBeforeMount)&&nt($,x,p),Pt(c,!0);{ee.ce&&ee.ce._hasShadowRoot()&&ee.ce._injectChildStyle(de,c.parent?c.parent.type:void 0);const et=c.subTree=_s(c);P(null,et,h,w,c,C,_),p.el=et.el}if(ue&&$e(ue,C),!Ze&&($=b&&b.onVnodeMounted)){const et=p;$e(()=>nt($,x,et),C)}(p.shapeFlag&256||x&&pn(x.vnode)&&x.vnode.shapeFlag&256)&&c.a&&$e(c.a,C),c.isMounted=!0,p=h=w=null}};c.scope.on();const R=c.effect=new fo(I);c.scope.off();const S=c.update=R.run.bind(R),G=c.job=R.runIfDirty.bind(R);G.i=c,G.id=c.uid,R.scheduler=()=>Zr(G),Pt(c,!0),S()},ne=(c,p,h)=>{p.component=c;const w=c.vnode.props;c.vnode=p,c.next=null,za(c,p.props,w,h),Xa(c,p.children,h),bt(),ps(c),_t()},Z=(c,p,h,w,C,_,T,I,R=!1)=>{const S=c&&c.children,G=c?c.shapeFlag:0,$=p.children,{patchFlag:B,shapeFlag:b}=p;if(B>0){if(B&128){je(S,$,h,w,C,_,T,I,R);return}else if(B&256){X(S,$,h,w,C,_,T,I,R);return}}b&8?(G&16&&Ve(S,C,_),$!==S&&u(h,$)):G&16?b&16?je(S,$,h,w,C,_,T,I,R):Ve(S,C,_,!0):(G&8&&u(h,""),b&16&&J($,h,w,C,_,T,I,R))},X=(c,p,h,w,C,_,T,I,R)=>{c=c||Bt,p=p||Bt;const S=c.length,G=p.length,$=Math.min(S,G);let B;for(B=0;B<$;B++){const b=p[B]=R?yt(p[B]):ot(p[B]);P(c[B],b,h,null,C,_,T,I,R)}S>G?Ve(c,C,_,!0,!1,$):J(p,h,w,C,_,T,I,R,$)},je=(c,p,h,w,C,_,T,I,R)=>{let S=0;const G=p.length;let $=c.length-1,B=G-1;for(;S<=$&&S<=B;){const b=c[S],m=p[S]=R?yt(p[S]):ot(p[S]);if(sn(b,m))P(b,m,h,null,C,_,T,I,R);else break;S++}for(;S<=$&&S<=B;){const b=c[$],m=p[B]=R?yt(p[B]):ot(p[B]);if(sn(b,m))P(b,m,h,null,C,_,T,I,R);else break;$--,B--}if(S>$){if(S<=B){const b=B+1,m=bB)for(;S<=$;)Ce(c[S],C,_,!0),S++;else{const b=S,m=S,ue=new Map;for(S=m;S<=B;S++){const Fe=p[S]=R?yt(p[S]):ot(p[S]);Fe.key!=null&&ue.set(Fe.key,S)}let x,ee=0;const de=B-m+1;let Ze=!1,et=0;const nn=new Array(de);for(S=0;S=de){Ce(Fe,C,_,!0);continue}let tt;if(Fe.key!=null)tt=ue.get(Fe.key);else for(x=m;x<=B;x++)if(nn[x-m]===0&&sn(Fe,p[x])){tt=x;break}tt===void 0?Ce(Fe,C,_,!0):(nn[tt-m]=S+1,tt>=et?et=tt:Ze=!0,P(Fe,p[tt],h,null,C,_,T,I,R),ee++)}const is=Ze?nl(nn):Bt;for(x=is.length-1,S=de-1;S>=0;S--){const Fe=m+S,tt=p[Fe],as=p[Fe+1],ls=Fe+1{const{el:_,type:T,transition:I,children:R,shapeFlag:S}=c;if(S&6){Ue(c.component.subTree,p,h,w);return}if(S&128){c.suspense.move(p,h,w);return}if(S&64){T.move(c,p,h,H);return}if(T===ge){r(_,p,h);for(let $=0;$I.enter(_),C));else{const{leave:$,delayLeave:B,afterLeave:b}=I,m=()=>{c.ctx.isUnmounted?s(_):r(_,p,h)},ue=()=>{const x=_._isLeaving||!!_[mr];_._isLeaving&&_[mr](!0),I.persisted&&!x?m():$(_,()=>{m(),b&&b()})};B?B(_,m,ue):ue()}else r(_,p,h)},Ce=(c,p,h,w=!1,C=!1)=>{const{type:_,props:T,ref:I,children:R,dynamicChildren:S,shapeFlag:G,patchFlag:$,dirs:B,cacheIndex:b,memo:m}=c;if($===-2&&(C=!1),I!=null&&(bt(),fn(I,null,h,c,!0),_t()),b!=null&&(p.renderCache[b]=void 0),G&256){p.ctx.deactivate(c);return}const ue=G&1&&B,x=!pn(c);let ee;if(x&&(ee=T&&T.onVnodeBeforeUnmount)&&nt(ee,p,c),G&6)pt(c.component,h,w);else{if(G&128){c.suspense.unmount(h,w);return}ue&&Tt(c,null,p,"beforeUnmount"),G&64?c.type.remove(c,p,h,H,w):S&&!S.hasOnce&&(_!==ge||$>0&&$&64)?Ve(S,p,h,!1,!0):(_===ge&&$&384||!C&&G&16)&&Ve(R,p,h),w&&ft(c)}const de=m!=null&&b==null;(x&&(ee=T&&T.onVnodeUnmounted)||ue||de)&&$e(()=>{ee&&nt(ee,p,c),ue&&Tt(c,null,p,"unmounted"),de&&(c.el=null)},h)},ft=c=>{const{type:p,el:h,anchor:w,transition:C}=c;if(p===ge){Le(h,w);return}if(p===vr){k(c);return}const _=()=>{s(h),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(c.shapeFlag&1&&C&&!C.persisted){const{leave:T,delayLeave:I}=C,R=()=>T(h,_);I?I(c.el,_,R):R()}else _()},Le=(c,p)=>{let h;for(;c!==p;)h=y(c),s(c),c=h;s(p)},pt=(c,p,h)=>{const{bum:w,scope:C,job:_,subTree:T,um:I,m:R,a:S}=c;Es(R),Es(S),w&&Nn(w),C.stop(),_&&(_.flags|=8,Ce(T,c,p,h)),I&&$e(I,p),$e(()=>{c.isUnmounted=!0},p)},Ve=(c,p,h,w=!1,C=!1,_=0)=>{for(let T=_;T{if(c.shapeFlag&6)return E(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const p=y(c.anchor||c.el),h=p&&p[ma];return h?y(h):p};let U=!1;const M=(c,p,h)=>{let w;c==null?p._vnode&&(Ce(p._vnode,null,null,!0),w=p._vnode.component):P(p._vnode||null,c,p,null,null,null,h),p._vnode=c,U||(U=!0,ps(w),To(),U=!1)},H={p:P,um:Ce,m:Ue,r:ft,mt:Ot,mc:J,pc:Z,pbc:Me,n:E,o:e};return{render:M,hydrate:void 0,createApp:Ua(M)}}function xr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Pt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function tl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ei(e,t,n=!1){const r=e.children,s=t.children;if(W(r)&&W(s))for(let o=0;o>1,e[n[a]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function ti(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ti(t)}function Es(e){if(e)for(let t=0;te.__isSuspense;function rl(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):fa(e)}const ge=Symbol.for("v-fgt"),ar=Symbol.for("v-txt"),wt=Symbol.for("v-cmt"),vr=Symbol.for("v-stc"),jt=[];let Be=null;function N(e=!1){jt.push(Be=e?null:[])}function si(){jt.pop(),Be=jt[jt.length-1]||null}let vn=1;function Hn(e,t=!1){vn+=e,e<0&&Be&&t&&(Be.hasOnce=!0)}function oi(e){return e.dynamicChildren=vn>0?Be||Bt:null,si(),vn>0&&Be&&Be.push(e),e}function D(e,t,n,r,s,o){return oi(f(e,t,n,r,s,o,!0))}function sl(e,t,n,r,s){return oi(ve(e,t,n,r,s,!0))}function Bn(e){return e?e.__v_isVNode===!0:!1}function sn(e,t){return e.type===t.type&&e.key===t.key}const ii=({key:e})=>e??null,Vn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||Ie(e)||z(e)?{i:He,r:e,k:t,f:!!n}:e:null);function f(e,t=null,n=null,r=0,s=null,o=e===ge?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ii(t),ref:t&&Vn(t),scopeId:No,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:He};return a?(Kn(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=ye(n)?8:16),vn>0&&!i&&Be&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Be.push(l),l}const ve=ol;function ol(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Oa)&&(e=wt),Bn(e)){const a=Yt(e,t,!0);return n&&Kn(a,n),vn>0&&!o&&Be&&(a.shapeFlag&6?Be[Be.indexOf(e)]=a:Be.push(a)),a.patchFlag=-2,a}if(yl(e)&&(e=e.__vccOpts),t){t=il(t);let{class:a,style:l}=t;a&&!ye(a)&&(t.class=Ae(a)),ce(l)&&(Qr(l)&&!W(l)&&(l=Ee({},l)),t.style=Xn(l))}const i=ye(e)?1:ri(e)?128:nr(e)?64:ce(e)?4:z(e)?2:0;return f(e,t,n,r,s,i,o,!0)}function il(e){return e?Qr(e)||zo(e)?Ee({},e):e:null}function Yt(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,d=t?al(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&ii(d),ref:t&&t.ref?n&&o?W(o)?o.concat(Vn(t)):[o,Vn(t)]:Vn(t):o,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!==ge?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yt(e.ssContent),ssFallback:e.ssFallback&&Yt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&es(u,l.clone(u)),u}function _e(e=" ",t=0){return ve(ar,null,e,t)}function se(e="",t=!1){return t?(N(),sl(wt,null,e)):ve(wt,null,e)}function ot(e){return e==null||typeof e=="boolean"?ve(wt):W(e)?ve(ge,null,e.slice()):Bn(e)?yt(e):ve(ar,null,String(e))}function yt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yt(e)}function Kn(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Kn(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!zo(t)?t._ctx=He:s===3&&He&&(He.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(z(t)){if(r&65){Kn(e,{default:t});return}t={default:t,_ctx:He},n=32}else t=String(t),r&64?(n=16,t=[_e(t)]):n=8;e.children=t,e.shapeFlag|=n}function al(...e){const t={};for(let n=0;nRe||He;let Gn,bn;{const e=Qn(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Gn=t("__VUE_INSTANCE_SETTERS__",n=>Re=n),bn=t("__VUE_SSR_SETTERS__",n=>_n=n)}const Sn=e=>{const t=Re;return Gn(e),e.scope.on(),()=>{e.scope.off(),Gn(t)}},Cs=()=>{Re&&Re.scope.off(),Gn(null)};function ai(e){return e.vnode.shapeFlag&4}let _n=!1;function fl(e,t=!1,n=!1){t&&bn(t);const{props:r,children:s}=e.vnode,o=ai(e);Wa(e,r,o,t),Qa(e,s,n||t);const i=o?pl(e,t):void 0;return t&&bn(!1),i}function pl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Pa);const{setup:r}=n;if(r){bt();const s=e.setupContext=r.length>1?hl(e):null,o=Sn(e),i=An(r,e,0,[e.props,s]),a=so(i);if(_t(),o(),(a||e.sp)&&!pn(e)&&jo(e),a){if(i.then(Cs,Cs),t)return i.then(l=>{bn(!0);try{As(e,l,t)}finally{bn(!1)}}).catch(l=>{tr(l,e,0)});e.asyncDep=i}else As(e,i)}else li(e)}function As(e,t,n){z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=Ro(t)),li(e)}function li(e,t,n){const r=e.type;e.render||(e.render=r.render||ut);{const s=Sn(e);bt();try{Na(e)}finally{_t(),s()}}}const gl={get(e,t){return Se(e,"get",""),e[t]}};function hl(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,gl),slots:e.slots,emit:e.emit,expose:t}}function lr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ro(na(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in gn)return gn[n](e)},has(t,n){return n in t||n in gn}})):e.proxy}function ml(e,t=!0){return z(e)?e.displayName||e.name:e.name||t&&e.__name}function yl(e){return z(e)&&"__vccOpts"in e}const we=(e,t)=>aa(e,t,_n);function ui(e,t,n){try{Hn(-1);const r=arguments.length;return r===2?ce(t)&&!W(t)?Bn(t)?ve(e,null,[t]):ve(e,t):ve(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Bn(n)&&(n=[n]),ve(e,t,n))}finally{Hn(1)}}const xl="3.5.41";/** * @vue/runtime-dom v3.5.41 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Vr;const Ss=typeof window<"u"&&window.trustedTypes;if(Ss)try{Vr=Ss.createPolicy("vue",{createHTML:e=>e})}catch{}const ci=Vr?e=>Vr.createHTML(e):e=>e,vl="http://www.w3.org/2000/svg",bl="http://www.w3.org/1998/Math/MathML",mt=typeof document<"u"?document:null,Rs=mt&&mt.createElement("template"),_l={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?mt.createElementNS(vl,e):t==="mathml"?mt.createElementNS(bl,e):n?mt.createElement(e,{is:n}):mt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>mt.createTextNode(e),createComment:e=>mt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>mt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Rs.innerHTML=ci(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=Rs.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},kl=Symbol("_vtc");function wl(e,t,n){const r=e[kl];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Is=Symbol("_vod"),El=Symbol("_vsh"),Cl=Symbol(""),Al=/(?:^|;)\s*display\s*:/;function Sl(e,t,n){const r=e.style,s=ye(n);let o=!1;if(n&&!s){if(t)if(ye(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&ln(r,a,"")}else for(const i in t)n[i]==null&&ln(r,i,"");for(const i in n){i==="display"&&(o=!0);const a=n[i];a!=null?Il(e,i,!ye(t)&&t?t[i]:void 0,a)||ln(r,i,a):ln(r,i,"")}}else if(s){if(t!==n){const i=r[Cl];i&&(n+=";"+i),r.cssText=n,o=Al.test(n)}}else t&&e.removeAttribute("style");Is in e&&(e[Is]=o?r.display:"",e[El]&&(r.display="none"))}const Os=/\s*!important$/;function ln(e,t,n){if(W(n))n.forEach(r=>ln(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Rl(e,t);Os.test(n)?e.setProperty(Ut(r),n.replace(Os,""),"important"):e[r]=n}}const Ts=["Webkit","Moz","ms"],br={};function Rl(e,t){const n=br[t];if(n)return n;let r=De(t);if(r!=="filter"&&r in e)return br[t]=r;r=Jn(r);for(let s=0;s_r||(Ml.then(()=>_r=0),_r=Date.now());function $l(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const s=n.value;if(W(s)){const o=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{o.call(r),r._stopped=!0};const i=s.slice(),a=[r];for(let l=0;le.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,jl=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?wl(e,r,i):t==="style"?Sl(e,n,r):qn(t)?Wn(t)||Tl(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ul(e,t,r,i))?(Ds(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ns(e,t,r,i,o,t!=="value")):e._isVueCE&&(Ll(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ye(r)))?Ds(e,De(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Ns(e,t,r,i))};function Ul(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Vs(t)&&z(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 Vs(t)&&ye(n)?!1:t in e}function Ll(e,t){const n=e._def.props;if(!n)return!1;const r=De(t);return Array.isArray(n)?n.some(s=>De(s)===r):Object.keys(n).some(s=>De(s)===r)}const Qt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>Nn(t,n):t};function Fl(e){e.target.composing=!0}function $s(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const lt=Symbol("_assign"),Tn=Symbol("_initialValue");function kr(e,t,n){return t&&(e=e.trim()),n&&(e=Yn(e)),e}const he={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e.parentNode&&(e.type==="text"?e[Tn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Tn]=e.defaultValue.replace(/\r\n?/g,` `))),e[lt]=Qt(s);const o=r||s.props&&s.props.type==="number";It(e,t?"change":"input",i=>{i.target.composing||e[lt](kr(e.value,n,o))}),(n||o)&&It(e,"change",()=>{e.value=kr(e.value,n,o)}),t||(It(e,"compositionstart",Fl),It(e,"compositionend",$s),It(e,"change",$s))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){const s=t??"",o=e[Tn];delete e[Tn],o!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==o?e[lt](kr(e.value,n,r)):e.value=s},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:o}},i){if(e[lt]=Qt(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?Yn(e.value):e.value,l=t??"";if(a===l)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l)}},Dt={deep:!0,created(e,t,n){e[lt]=Qt(n),It(e,"change",()=>{const r=e._modelValue,s=wn(e),o=e.checked,i=e[lt];if(W(r)){const a=Kr(r,s),l=a!==-1;if(o&&!l)i(r.concat(s));else if(!o&&l){const d=[...r];d.splice(a,1),i(d)}}else if(en(r)){const a=new Set(r);o?a.add(s):a.delete(s),i(a)}else i(di(e,o))})},mounted:js,beforeUpdate(e,t,n){e[lt]=Qt(n),js(e,t,n)}};function js(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(W(t))s=Kr(t,r.props.value)>-1;else if(en(t))s=t.has(r.props.value);else{if(t===n)return;s=tn(t,di(e,!0))}e.checked!==s&&(e.checked=s)}const kn={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,It(e,"change",()=>{const s=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?Yn(wn(o)):wn(o));e[lt](e.multiple?en(e._modelValue)?new Set(s):s:s[0]),e._assigning=!0,Xr(()=>{e._assigning=!1})}),e[lt]=Qt(r)},mounted(e,{value:t}){Us(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[lt]=Qt(n)},updated(e,{value:t}){e._assigning||Us(e,t)}};function Us(e,t){const n=e.multiple,r=W(t);if(!(n&&!r&&!en(t))){for(let s=0,o=e.options.length;sString(d)===String(a)):i.selected=Kr(t,a)>-1}else i.selected=t.has(a);else if(tn(wn(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function wn(e){return"_value"in e?e._value:e.value}function di(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Hl=["ctrl","shift","alt","meta"],Bl={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Hl.some(n=>e[`${n}Key`]&&!t.includes(n))},it=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...o)=>{for(let i=0;i{const t=Gl().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=zl(r);if(!s)return;const o=t._component;!z(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,Wl(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t});function Wl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function zl(e){return ye(e)?document.querySelector(e):e}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */const Ht=typeof document<"u";function fi(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Jl(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&fi(e.default)}const oe=Object.assign;function wr(e,t){const n={};for(const r in t){const s=t[r];n[r]=Qe(s)?s.map(e):e(s)}return n}const hn=()=>{},Qe=Array.isArray;function Fs(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const pi=/#/g,Yl=/&/g,Ql=/\//g,Xl=/=/g,Zl=/\?/g,gi=/\+/g,eu=/%5B/g,tu=/%5D/g,hi=/%5E/g,nu=/%60/g,mi=/%7B/g,ru=/%7C/g,yi=/%7D/g,su=/%20/g;function ss(e){return e==null?"":encodeURI(""+e).replace(ru,"|").replace(eu,"[").replace(tu,"]")}function ou(e){return ss(e).replace(mi,"{").replace(yi,"}").replace(hi,"^")}function $r(e){return ss(e).replace(gi,"%2B").replace(su,"+").replace(pi,"%23").replace(Yl,"%26").replace(nu,"`").replace(mi,"{").replace(yi,"}").replace(hi,"^")}function iu(e){return $r(e).replace(Xl,"%3D")}function au(e){return ss(e).replace(pi,"%23").replace(Zl,"%3F")}function lu(e){return au(e).replace(Ql,"%2F")}function En(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const uu=/\/$/,cu=e=>e.replace(uu,"");function Er(e,t,n="/"){let r,s={},o="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(r=t.slice(0,l),o=t.slice(l,a>0?a:t.length),s=e(o.slice(1))),a>=0&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=gu(r??t,n),{fullPath:r+o+i,path:r,query:s,hash:En(i)}}function du(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Hs(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function fu(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Xt(t.matched[r],n.matched[s])&&xi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Xt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function xi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!pu(e[n],t[n]))return!1;return!0}function pu(e,t){return Qe(e)?Bs(e,t):Qe(t)?Bs(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Bs(e,t){return Qe(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function gu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,a;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const At={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let jr=(function(e){return e.pop="pop",e.push="push",e})({}),Cr=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function hu(e){if(!e)if(Ht){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),cu(e)}const mu=/^[^#]+#/;function yu(e,t){return e.replace(mu,"#")+t}function xu(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ur=()=>({left:window.scrollX,top:window.scrollY});function vu(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=xu(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ks(e,t){return(history.state?history.state.position-t:-1)+e}const Ur=new Map;function bu(e,t){Ur.set(e,t)}function _u(e){const t=Ur.get(e);return Ur.delete(e),t}function ku(e){return typeof e=="string"||e&&typeof e=="object"}function vi(e){return typeof e=="string"||typeof e=="symbol"}let me=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const bi=Symbol("");me.MATCHER_NOT_FOUND+"",me.NAVIGATION_GUARD_REDIRECT+"",me.NAVIGATION_ABORTED+"",me.NAVIGATION_CANCELLED+"",me.NAVIGATION_DUPLICATED+"";function Zt(e,t){return oe(new Error,{type:e,[bi]:!0},t)}function ht(e,t){return e instanceof Error&&bi in e&&(t==null||!!(e.type&t))}const wu=["params","query","hash"];function Eu(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of wu)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Cu(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rs&&$r(s)):[r&&$r(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function Au(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Qe(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Su=Symbol(""),qs=Symbol(""),cr=Symbol(""),os=Symbol(""),Lr=Symbol("");function on(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Rt(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const d=y=>{y===!1?l(Zt(me.NAVIGATION_ABORTED,{from:n,to:t})):y instanceof Error?l(y):ku(y)?l(Zt(me.NAVIGATION_GUARD_REDIRECT,{from:t,to:y})):(i&&r.enterCallbacks[s]===i&&typeof y=="function"&&i.push(y),a())},u=o(()=>e.call(r&&r.instances[s],t,n,d));let g=Promise.resolve(u);e.length<3&&(g=g.then(d)),g.catch(y=>l(y))})}function Ar(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(fi(l)){const d=(l.__vccOpts||l)[t];d&&o.push(Rt(d,n,r,i,a,s))}else{let d=l();o.push(()=>d.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const g=Jl(u)?u.default:u;i.mods[a]=u,i.components[a]=g;const y=(g.__vccOpts||g)[t];return y&&Rt(y,n,r,i,a,s)()}))}}return o}function Ru(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iXt(d,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(d=>Xt(d,l))||s.push(l))}return[n,r,s]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Iu=()=>location.protocol+"//"+location.host;function _i(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let i=s.includes(e.slice(o))?e.slice(o).length:1,a=s.slice(i);return a[0]!=="/"&&(a="/"+a),Hs(a,"")}return Hs(n,e)+r+s}function Ou(e,t,n,r){let s=[],o=[],i=null;const a=({state:y})=>{const v=_i(e,location),j=n.value,P=t.value;let K=0;if(y){if(n.value=v,t.value=y,i&&i===j){i=null;return}K=P?y.position-P.position:0}else r(v);s.forEach(V=>{V(n.value,j,{delta:K,type:jr.pop,direction:K?K>0?Cr.forward:Cr.back:Cr.unknown})})};function l(){i=n.value}function d(y){s.push(y);const v=()=>{const j=s.indexOf(y);j>-1&&s.splice(j,1)};return o.push(v),v}function u(){if(document.visibilityState==="hidden"){const{history:y}=window;if(!y.state)return;y.replaceState(oe({},y.state,{scroll:ur()}),"")}}function g(){for(const y of o)y();o=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:l,listen:d,destroy:g}}function Ws(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?ur():null}}function Tu(e){const{history:t,location:n}=window,r={value:_i(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,d,u){const g=e.indexOf("#"),y=g>-1?(n.host&&document.querySelector("base")?e:e.slice(g))+l:Iu()+e+l;try{t[u?"replaceState":"pushState"](d,"",y),s.value=d}catch(v){console.error(v),n[u?"replace":"assign"](y)}}function i(l,d){o(l,oe({},t.state,Ws(s.value.back,l,s.value.forward,!0),d,{position:s.value.position}),!0),r.value=l}function a(l,d){const u=oe({},s.value,t.state,{forward:l,scroll:ur()});o(u.current,u,!0),o(l,oe({},Ws(r.value,l,null),{position:u.position+1},d),!1),r.value=l}return{location:r,state:s,push:a,replace:i}}function Pu(e){e=hu(e);const t=Tu(e),n=Ou(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=oe({location:"",base:e,go:r,createHref:yu.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}let Mt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var be=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(be||{});const Nu={type:Mt.Static,value:""},Du=/[a-zA-Z0-9_]/;function Mu(e){if(!e)return[[]];if(e==="/")return[[Nu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${d}": ${v}`)}let n=be.Static,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let a=0,l,d="",u="";function g(){d&&(n===be.Static?o.push({type:Mt.Static,value:d}):n===be.Param||n===be.ParamRegExp||n===be.ParamRegExpEnd?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Mt.Param,value:d,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),d="")}function y(){d+=l}for(;at.length?t.length===1&&t[0]===Pe.Static+Pe.Segment?1:-1:0}function ki(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Lu={strict:!1,end:!0,sensitive:!1};function Fu(e,t,n){const r=ju(Mu(e.path),n),s=oe(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Hu(e,t){const n=[],r=new Map;t=Fs(Lu,t);function s(g){return r.get(g)}function o(g,y,v){const j=!v,P=Qs(g);P.aliasOf=v&&v.record;const K=Fs(t,g),V=[P];if("alias"in g){const k=typeof g.alias=="string"?[g.alias]:g.alias;for(const O of k)V.push(Qs(oe({},P,{components:v?v.record.components:P.components,path:O,aliasOf:v?v.record:P})))}let A,L;for(const k of V){const{path:O}=k;if(y&&O[0]!=="/"){const le=y.record.path,F=le[le.length-1]==="/"?"":"/";k.path=y.record.path+(O&&F+O)}if(A=Fu(k,y,K),v?v.alias.push(A):(L=L||A,L!==A&&L.alias.push(A),j&&g.name&&!Xs(A)&&i(g.name)),wi(A)&&l(A),P.children){const le=P.children;for(let F=0;F{i(L)}:hn}function i(g){if(vi(g)){const y=r.get(g);y&&(r.delete(g),n.splice(n.indexOf(y),1),y.children.forEach(i),y.alias.forEach(i))}else{const y=n.indexOf(g);y>-1&&(n.splice(y,1),g.record.name&&r.delete(g.record.name),g.children.forEach(i),g.alias.forEach(i))}}function a(){return n}function l(g){const y=Gu(g,n);n.splice(y,0,g),g.record.name&&!Xs(g)&&r.set(g.record.name,g)}function d(g,y){let v,j={},P,K;if("name"in g&&g.name){if(v=r.get(g.name),!v)throw Zt(me.MATCHER_NOT_FOUND,{location:g});K=v.record.name,j=oe(Ys(y.params,v.keys.filter(L=>!L.optional).concat(v.parent?v.parent.keys.filter(L=>L.optional):[]).map(L=>L.name)),g.params&&Ys(g.params,v.keys.map(L=>L.name))),P=v.stringify(j)}else if(g.path!=null)P=g.path,v=n.find(L=>L.re.test(P)),v&&(j=v.parse(P),K=v.record.name);else{if(v=y.name?r.get(y.name):n.find(L=>L.re.test(y.path)),!v)throw Zt(me.MATCHER_NOT_FOUND,{location:g,currentLocation:y});K=v.record.name,j=oe({},y.params,g.params),P=v.stringify(j)}const V=[];let A=v;for(;A;)V.unshift(A.record),A=A.parent;return{name:K,path:P,params:j,matched:V,meta:Ku(V)}}e.forEach(g=>o(g));function u(){n.length=0,r.clear()}return{addRoute:o,resolve:d,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:s}}function Ys(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Qs(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Bu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Bu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Xs(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ku(e){return e.reduce((t,n)=>oe(t,n.meta),{})}function Gu(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;ki(e,t[o])<0?r=o:n=o+1}const s=qu(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function qu(e){let t=e;for(;t=t.parent;)if(wi(t)&&ki(e,t)===0)return t}function wi({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Zs(e){const t=ze(cr),n=ze(os),r=we(()=>{const l=Gt(e.to);return t.resolve(l)}),s=we(()=>{const{matched:l}=r.value,{length:d}=l,u=l[d-1],g=n.matched;if(!u||!g.length)return-1;const y=g.findIndex(Xt.bind(null,u));if(y>-1)return y;const v=eo(l[d-2]);return d>1&&eo(u)===v&&g[g.length-1].path!==v?g.findIndex(Xt.bind(null,l[d-2])):y}),o=we(()=>s.value>-1&&Qu(n.params,r.value.params)),i=we(()=>s.value>-1&&s.value===n.matched.length-1&&xi(n.params,r.value.params));function a(l={}){if(Yu(l)){const d=t[Gt(e.replace)?"replace":"push"](Gt(e.to)).catch(hn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:we(()=>r.value.href),isActive:o,isExactActive:i,navigate:a}}function Wu(e){return e.length===1?e[0]:e}const zu=$o({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Zs,setup(e,{slots:t}){const n=er(Zs(e)),{options:r}=ze(cr),s=we(()=>({[to(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[to(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Wu(t.default(n));return e.custom?o:ui("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Ju=zu;function Yu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Qu(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Qe(s)||s.length!==r.length||r.some((o,i)=>o.valueOf()!==s[i].valueOf()))return!1}return!0}function eo(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const to=(e,t,n)=>e??t??n,Xu=$o({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ze(Lr),s=we(()=>e.route||r.value),o=ze(qs,0),i=we(()=>{let d=Gt(o);const{matched:u}=s.value;let g;for(;(g=u[d])&&!g.components;)d++;return d}),a=we(()=>s.value.matched[i.value]);Dn(qs,we(()=>i.value+1)),Dn(Su,a),Dn(Lr,s);const l=Y();return Mn(()=>[l.value,a.value,e.name],([d,u,g],[y,v,j])=>{u&&(u.instances[g]=d,v&&v!==u&&d&&d===y&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),d&&u&&(!v||!Xt(u,v)||!y)&&(u.enterCallbacks[g]||[]).forEach(P=>P(d))},{flush:"post"}),()=>{const d=s.value,u=e.name,g=a.value,y=g&&g.components[u];if(!y)return no(n.default,{Component:y,route:d});const v=g.props[u],j=v?v===!0?d.params:typeof v=="function"?v(d):v:null,K=ui(y,oe({},j,t,{onVnodeUnmounted:V=>{V.component.isUnmounted&&(g.instances[u]=null)},ref:l}));return no(n.default,{Component:K,route:d})||K}}});function no(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Zu=Xu;function ec(e){const t=Hu(e.routes,e),n=e.parseQuery||Cu,r=e.stringifyQuery||Gs,s=e.history,o=on(),i=on(),a=on(),l=ra(At);let d=At;Ht&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=wr.bind(null,E=>""+E),g=wr.bind(null,lu),y=wr.bind(null,En);function v(E,U){let M,H;return vi(E)?(M=t.getRecordMatcher(E),H=U):H=E,t.addRoute(H,M)}function j(E){const U=t.getRecordMatcher(E);U&&t.removeRoute(U)}function P(){return t.getRoutes().map(E=>E.record)}function K(E){return!!t.getRecordMatcher(E)}function V(E,U){if(U=oe({},U||l.value),typeof E=="string"){const h=Er(n,E,U.path),w=t.resolve({path:h.path},U),C=s.createHref(h.fullPath);return oe(h,w,{params:y(w.params),hash:En(h.hash),redirectedFrom:void 0,href:C})}let M;if(E.path!=null)M=oe({},E,{path:Er(n,E.path,U.path).path});else{const h=oe({},E.params);for(const w in h)h[w]==null&&delete h[w];M=oe({},E,{params:g(h)}),U.params=g(U.params)}const H=t.resolve(M,U),Q=E.hash||"";H.params=u(y(H.params));const c=du(r,oe({},E,{hash:ou(Q),path:H.path})),p=s.createHref(c);return oe({fullPath:c,hash:Q,query:r===Gs?Au(E.query):E.query||{}},H,{redirectedFrom:void 0,href:p})}function A(E){return typeof E=="string"?Er(n,E,l.value.path):oe({},E)}function L(E,U){if(d!==E)return Zt(me.NAVIGATION_CANCELLED,{from:U,to:E})}function k(E){return F(E)}function O(E){return k(oe(A(E),{replace:!0}))}function le(E,U){const M=E.matched[E.matched.length-1];if(M&&M.redirect){const{redirect:H}=M;let Q=typeof H=="function"?H(E,U):H;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=A(Q):{path:Q},Q.params={}),oe({query:E.query,hash:E.hash,params:Q.path!=null?{}:E.params},Q)}}function F(E,U){const M=d=V(E),H=l.value,Q=E.state,c=E.force,p=E.replace===!0,h=le(M,H);if(h)return F(oe(A(h),{state:typeof h=="object"?oe({},Q,h.state):Q,force:c,replace:p}),U||M);const w=M;w.redirectedFrom=U;let C;return!c&&fu(r,H,M)&&(C=Zt(me.NAVIGATION_DUPLICATED,{to:w,from:H}),Ue(H,H,!0,!1)),(C?Promise.resolve(C):Me(w,H)).catch(_=>ht(_)?ht(_,me.NAVIGATION_GUARD_REDIRECT)?_:je(_):Z(_,w,H)).then(_=>{if(_){if(ht(_,me.NAVIGATION_GUARD_REDIRECT))return F(oe({replace:p},A(_.to),{state:typeof _.to=="object"?oe({},Q,_.to.state):Q,force:c}),U||w)}else _=dt(w,H,!0,p,Q);return Xe(w,H,_),_})}function J(E,U){const M=L(E,U);return M?Promise.reject(M):Promise.resolve()}function qe(E){const U=Le.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(E):E()}function Me(E,U){let M;const[H,Q,c]=Ru(E,U);M=Ar(H.reverse(),"beforeRouteLeave",E,U);for(const h of H)h.leaveGuards.forEach(w=>{M.push(Rt(w,E,U))});const p=J.bind(null,E,U);return M.push(p),Ve(M).then(()=>{M=[];for(const h of o.list())M.push(Rt(h,E,U));return M.push(p),Ve(M)}).then(()=>{M=Ar(Q,"beforeRouteUpdate",E,U);for(const h of Q)h.updateGuards.forEach(w=>{M.push(Rt(w,E,U))});return M.push(p),Ve(M)}).then(()=>{M=[];for(const h of c)if(h.beforeEnter)if(Qe(h.beforeEnter))for(const w of h.beforeEnter)M.push(Rt(w,E,U));else M.push(Rt(h.beforeEnter,E,U));return M.push(p),Ve(M)}).then(()=>(E.matched.forEach(h=>h.enterCallbacks={}),M=Ar(c,"beforeRouteEnter",E,U,qe),M.push(p),Ve(M))).then(()=>{M=[];for(const h of i.list())M.push(Rt(h,E,U));return M.push(p),Ve(M)}).catch(h=>ht(h,me.NAVIGATION_CANCELLED)?h:Promise.reject(h))}function Xe(E,U,M){a.list().forEach(H=>qe(()=>H(E,U,M)))}function dt(E,U,M,H,Q){const c=L(E,U);if(c)return c;const p=U===At,h=Ht?history.state:{};M&&(H||p?s.replace(E.fullPath,oe({scroll:p&&h&&h.scroll},Q)):s.push(E.fullPath,Q)),l.value=E,Ue(E,U,M,p),je()}let Ke;function Ot(){Ke||(Ke=s.listen((E,U,M)=>{if(!pt.listening)return;const H=V(E),Q=le(H,pt.currentRoute.value);if(Q){F(oe(Q,{replace:!0,force:!0}),H).catch(hn);return}d=H;const c=l.value;Ht&&bu(Ks(c.fullPath,M.delta),ur()),Me(H,c).catch(p=>ht(p,me.NAVIGATION_ABORTED|me.NAVIGATION_CANCELLED)?p:ht(p,me.NAVIGATION_GUARD_REDIRECT)?(F(oe(A(p.to),{force:!0}),H).then(h=>{ht(h,me.NAVIGATION_ABORTED|me.NAVIGATION_DUPLICATED)&&!M.delta&&M.type===jr.pop&&s.go(-1,!1)}).catch(hn),Promise.reject()):(M.delta&&s.go(-M.delta,!1),Z(p,H,c))).then(p=>{p=p||dt(H,c,!1),p&&(M.delta&&!ht(p,me.NAVIGATION_CANCELLED)?s.go(-M.delta,!1):M.type===jr.pop&&ht(p,me.NAVIGATION_ABORTED|me.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),Xe(H,c,p)}).catch(hn)}))}let Ct=on(),xe=on(),ne;function Z(E,U,M){je(E);const H=xe.list();return H.length?H.forEach(Q=>Q(E,U,M)):console.error(E),Promise.reject(E)}function X(){return ne&&l.value!==At?Promise.resolve():new Promise((E,U)=>{Ct.add([E,U])})}function je(E){return ne||(ne=!E,Ot(),Ct.list().forEach(([U,M])=>E?M(E):U()),Ct.reset()),E}function Ue(E,U,M,H){const{scrollBehavior:Q}=e;if(!Ht||!Q)return Promise.resolve();const c=!M&&_u(Ks(E.fullPath,0))||(H||!M)&&history.state&&history.state.scroll||null;return Xr().then(()=>Q(E,U,c)).then(p=>p&&vu(p)).catch(p=>Z(p,E,U))}const Ce=E=>s.go(E);let ft;const Le=new Set,pt={currentRoute:l,listening:!0,addRoute:v,removeRoute:j,clearRoutes:t.clearRoutes,hasRoute:K,getRoutes:P,resolve:V,options:e,push:k,replace:O,go:Ce,back:()=>Ce(-1),forward:()=>Ce(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:xe.add,isReady:X,install(E){E.component("RouterLink",Ju),E.component("RouterView",Zu),E.config.globalProperties.$router=pt,Object.defineProperty(E.config.globalProperties,"$route",{enumerable:!0,get:()=>Gt(l)}),Ht&&!ft&&l.value===At&&(ft=!0,k(s.location).catch(H=>{}));const U={};for(const H in At)Object.defineProperty(U,H,{get:()=>l.value[H],enumerable:!0});E.provide(cr,pt),E.provide(os,Ao(U)),E.provide(Lr,l);const M=E.unmount;Le.add(E),E.unmount=function(){Le.delete(E),Le.size<1&&(d=At,Ke&&Ke(),Ke=null,l.value=At,ft=!1,ne=!1),M()}}};function Ve(E){return E.reduce((U,M)=>U.then(()=>qe(M)),Promise.resolve())}return pt}function Ei(){return ze(cr)}function Ci(e){return ze(os)}async function Pn(e,t={}){const n=await fetch(e,{...t,headers:{"Content-Type":"application/json",...t.headers}}),r=n.headers.get("content-type")||"";if(n.redirected||!r.includes("application/json"))throw window.location.href="/login",new Error("Sesión expirada");const s=await n.json();if(!n.ok)throw new Error((s==null?void 0:s.error)||(s==null?void 0:s.message)||"Error de servidor");return s}const re={get:e=>Pn(e),post:(e,t)=>Pn(e,{method:"POST",body:JSON.stringify(t)}),put:(e,t)=>Pn(e,{method:"PUT",body:JSON.stringify(t)}),del:e=>Pn(e,{method:"DELETE"})},tc={class:"w-64 shrink-0 h-screen sticky top-0 flex flex-col border-r border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900"},nc={class:"px-4 py-4 border-b border-gray-200 dark:border-gray-800"},rc={key:0,class:"px-3 pt-2 text-xs text-red-600 dark:text-red-400"},sc={class:"flex-1 overflow-y-auto px-2 py-3 space-y-0.5"},oc={key:0,class:"px-2 text-xs text-gray-400"},ic={key:1,class:"px-2 text-xs text-gray-400"},ac={class:"truncate"},lc={class:"flex items-center gap-1 mt-0.5"},uc={class:"text-[11px] text-gray-400 dark:text-gray-500"},cc={class:"flex opacity-0 group-hover:opacity-100 transition-opacity pr-1.5 gap-0.5"},dc=["onClick"],fc=["onClick"],pc={class:"bg-white dark:bg-gray-900 rounded-xl p-6 w-full max-w-lg border border-gray-200 dark:border-gray-800"},gc={class:"font-semibold text-gray-800 dark:text-gray-100 mb-4"},hc={key:0,class:"grid grid-cols-2 gap-3"},mc=["value"],yc=["value"],xc={class:"flex items-center gap-2 text-sm text-gray-600 dark:text-gray-300"},vc={class:"flex justify-end gap-2 pt-2"},bc={__name:"Sidebar",setup(e,{expose:t}){const n=Ci(),r=Ei(),s=Y([]),o=Y([]),i=Y([]),a=Y(!0),l=Y(""),d=Y(!1),u=Y(null),g=Y(v()),y=we(()=>n.params.tenantId||n.params.id);function v(){return{nombre:"",dominios_permitidos:"",activo:!0,cliente_id:null,plan_id:null}}async function j(){a.value=!0,l.value="";try{const k=await re.get("/app/umind/tenants");s.value=k.items||[]}catch(k){l.value=k.message}finally{a.value=!1}}async function P(){try{const[k,O]=await Promise.all([re.get("/app/api/clientes/select"),re.get("/app/umind-planes/list")]);o.value=k.registros||k.items||[],i.value=O.items||[]}catch{o.value=[],i.value=[]}}function K(){u.value=null,g.value=v(),d.value=!0}function V(k){u.value=k,g.value={nombre:k.nombre,dominios_permitidos:k.dominios_permitidos,activo:k.activo,cliente_id:k.cliente_id??null,plan_id:k.plan_id??null},d.value=!0}async function A(){const k={...g.value,dominios_permitidos:g.value.dominios_permitidos.split(",").map(O=>O.trim()).filter(Boolean)};try{if(u.value)await re.put(`/app/umind/tenants/${u.value.ID}`,k),d.value=!1,await j();else{const O=await re.post("/app/umind/tenants",k);d.value=!1,await j(),r.push(`/tenants/${O.id}`)}}catch(O){l.value=O.message}}async function L(k){confirm(`¿Eliminar el tenant "${k.nombre}"? Esto borra también sus agentes. No se puede deshacer.`)&&(await re.del(`/app/umind/tenants/${k.ID}`),y.value===String(k.ID)&&r.push("/"),await j())}return t({recargar:j}),sr(()=>{j(),P()}),(k,O)=>{const le=or("router-link");return N(),D(ge,null,[f("aside",tc,[f("div",nc,[ve(le,{to:"/",class:"text-base font-semibold text-gray-800 dark:text-gray-100"},{default:Jt(()=>[...O[7]||(O[7]=[_e(" uMind ",-1),f("span",{class:"text-brand"},"Orquestador",-1)])]),_:1})]),f("div",{class:"px-3 pt-3"},[f("button",{class:"w-full bg-brand hover:bg-brand-dark text-white text-sm font-medium px-3 py-2 rounded-lg transition-colors",onClick:K}," + Nuevo tenant ")]),l.value?(N(),D("p",rc,q(l.value),1)):se("",!0),f("nav",sc,[a.value?(N(),D("p",oc,"Cargando...")):s.value.length===0?(N(),D("p",ic,"Sin tenants todavía.")):se("",!0),(N(!0),D(ge,null,Te(s.value,F=>(N(),D("div",{key:F.ID,class:Ae(["group flex items-center rounded-lg transition-colors",y.value===String(F.ID)?"bg-brand/10 dark:bg-brand/20":"hover:bg-gray-100 dark:hover:bg-gray-800"])},[ve(le,{to:`/tenants/${F.ID}`,class:Ae(["flex-1 min-w-0 px-2.5 py-2 text-sm",y.value===String(F.ID)?"text-brand-dark dark:text-brand font-medium":"text-gray-700 dark:text-gray-300"])},{default:Jt(()=>[f("div",ac,q(F.nombre),1),f("div",lc,[f("span",{class:Ae(["w-1.5 h-1.5 rounded-full",F.activo?"bg-green-500":"bg-gray-300 dark:bg-gray-600"])},null,2),f("span",uc,q(F.activo?"activo":"inactivo"),1)])]),_:2},1032,["to","class"]),f("div",cc,[f("button",{class:"p-1 text-gray-400 hover:text-gray-700 dark:hover:text-gray-200",title:"Editar",onClick:J=>V(F)}," ✎ ",8,dc),f("button",{class:"p-1 text-gray-400 hover:text-red-600",title:"Eliminar",onClick:J=>L(F)}," ✕ ",8,fc)])],2))),128))])]),d.value?(N(),D("div",{key:0,class:"fixed inset-0 bg-black/40 flex items-center justify-center p-4 z-50",onClick:O[6]||(O[6]=it(F=>d.value=!1,["self"]))},[f("div",pc,[f("h2",gc,q(u.value?"Editar tenant":"Nuevo tenant"),1),O[18]||(O[18]=f("p",{class:"text-xs text-gray-500 dark:text-gray-400 mb-3"}," Un tenant es el negocio/sitio dueño de los dominios permitidos. La config de IA, tono y demás se configuran por agente, dentro del tenant. ",-1)),f("form",{class:"space-y-3",onSubmit:it(A,["prevent"])},[f("div",null,[O[8]||(O[8]=f("label",{class:"text-xs text-gray-500 dark:text-gray-400"},"Nombre",-1)),te(f("input",{"onUpdate:modelValue":O[0]||(O[0]=F=>g.value.nombre=F),required:"",class:"w-full border border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-100 rounded-lg px-3 py-2 text-sm"},null,512),[[he,g.value.nombre]])]),f("div",null,[O[9]||(O[9]=f("label",{class:"text-xs text-gray-500 dark:text-gray-400"},"Dominios permitidos (separados por coma)",-1)),te(f("input",{"onUpdate:modelValue":O[1]||(O[1]=F=>g.value.dominios_permitidos=F),placeholder:"ejemplo.com, www.ejemplo.com",required:"",class:"w-full border border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-100 rounded-lg px-3 py-2 text-sm"},null,512),[[he,g.value.dominios_permitidos]])]),o.value.length?(N(),D("div",hc,[f("div",null,[O[11]||(O[11]=f("label",{class:"text-xs text-gray-500 dark:text-gray-400"},"Cliente",-1)),te(f("select",{"onUpdate:modelValue":O[2]||(O[2]=F=>g.value.cliente_id=F),class:"w-full border border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-100 rounded-lg px-3 py-2 text-sm"},[O[10]||(O[10]=f("option",{value:null},"— sin asignar —",-1)),(N(!0),D(ge,null,Te(o.value,F=>(N(),D("option",{key:F.ID,value:F.ID},q(F.nombre),9,mc))),128))],512),[[kn,g.value.cliente_id]]),O[12]||(O[12]=f("p",{class:"text-[11px] text-gray-400 mt-1"},"Define quién ve este tenant desde el portal.",-1))]),f("div",null,[O[14]||(O[14]=f("label",{class:"text-xs text-gray-500 dark:text-gray-400"},"Plan",-1)),te(f("select",{"onUpdate:modelValue":O[3]||(O[3]=F=>g.value.plan_id=F),class:"w-full border border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-100 rounded-lg px-3 py-2 text-sm"},[O[13]||(O[13]=f("option",{value:null},"— sin plan —",-1)),(N(!0),D(ge,null,Te(i.value,F=>(N(),D("option",{key:F.ID,value:F.ID},q(F.nombre)+" ("+q(F.max_agentes===0?"∞":F.max_agentes)+" agentes) ",9,yc))),128))],512),[[kn,g.value.plan_id]]),O[15]||(O[15]=f("p",{class:"text-[11px] text-gray-400 mt-1"},"Límite de agentes y precios de consumo.",-1))])])):se("",!0),f("label",xc,[te(f("input",{"onUpdate:modelValue":O[4]||(O[4]=F=>g.value.activo=F),type:"checkbox"},null,512),[[Dt,g.value.activo]]),O[16]||(O[16]=_e(" Activo ",-1))]),f("div",vc,[f("button",{type:"button",class:"px-4 py-2 text-sm text-gray-500 dark:text-gray-400",onClick:O[5]||(O[5]=F=>d.value=!1)}," Cancelar "),O[17]||(O[17]=f("button",{type:"submit",class:"bg-brand hover:bg-brand-dark text-white text-sm font-medium px-4 py-2 rounded-lg"}," Guardar ",-1))])],32)])])):se("",!0)],64)}}},_c={class:"min-h-screen flex bg-gray-50 dark:bg-gray-950"},kc={class:"flex-1 min-w-0"},wc={class:"max-w-4xl mx-auto px-8 py-10"},Ec={__name:"App",setup(e){return(t,n)=>{const r=or("router-view");return N(),D("div",_c,[ve(bc),f("main",kc,[f("div",wc,[ve(r)])])])}}},Cc=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Ac={},Sc={class:"flex flex-col items-center justify-center text-center py-24"};function Rc(e,t){return N(),D("div",Sc,[...t[0]||(t[0]=[f("div",{class:"text-4xl mb-4"},"💬",-1),f("h1",{class:"text-lg font-medium text-gray-700 dark:text-gray-200"},"Elegí un tenant de la izquierda",-1),f("p",{class:"text-sm text-gray-400 dark:text-gray-500 mt-1"},"o creá uno nuevo para empezar a configurar su agente.",-1)])])}const Ic=Cc(Ac,[["render",Rc]]),Oc={key:0,class:"mb-6"},Tc={class:"text-xl font-semibold text-gray-800 dark:text-gray-100"},Pc={class:"text-xs text-gray-500 dark:text-gray-500 mt-1"},Nc={key:1,class:"text-sm text-red-600 dark:text-red-400 mb-4"},Dc={class:"bg-white dark:bg-gray-900 rounded-xl border border-gray-200 dark:border-gray-800 divide-y divide-gray-100 dark:divide-gray-800"},Mc={key:0,class:"p-6 text-sm text-gray-500 dark:text-gray-400"},Vc={class:"font-medium text-gray-800 dark:text-gray-200"},$c={class:"flex items-center gap-1 mt-0.5"},jc={class:"text-xs text-gray-400 dark:text-gray-500"},Uc={class:"flex items-center gap-3 pr-4 text-sm"},Lc=["onClick"],Fc=["onClick"],Hc={class:"bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-xl p-6 w-full max-w-lg"},Bc={class:"font-semibold text-gray-800 dark:text-gray-100 mb-4"},Kc=["value"],Gc={class:"flex items-center gap-2"},qc={class:"flex items-center gap-2 text-sm text-gray-600 dark:text-gray-300"},Wc={class:"flex justify-end gap-2 pt-2"},zc={type:"submit",class:"bg-brand hover:bg-brand-dark text-white text-sm font-medium px-4 py-2 rounded-lg"},Jc={__name:"TenantAgentes",props:{id:{type:String,required:!0}},setup(e){const t=e,n=we(()=>Number(t.id)),r=Ei(),s=Y(null),o=Y([]),i=Y([]),a=Y(""),l=Y(!1),d=Y(null),u=Y(g());function g(){return{nombre:"",ai_config_id:null,tono:"",mensaje_bienvenida:"",color:"#8eb02f",activo:!0}}async function y(){a.value="";try{const[V,A,L]=await Promise.all([re.get("/app/umind/tenants"),re.get(`/app/umind/agentes?tenant_id=${t.id}`),re.get("/app/api/ai-config/select")]);s.value=(V.items||[]).find(k=>String(k.ID)===t.id)||null,o.value=A.items||[],i.value=L.registros||[]}catch(V){a.value=V.message}}function v(){d.value=null,u.value=g(),l.value=!0}function j(V){d.value=V,u.value={nombre:V.nombre,ai_config_id:V.ai_config_id,tono:V.tono,mensaje_bienvenida:V.mensaje_bienvenida,color:V.color||"#8eb02f",activo:V.activo},l.value=!0}async function P(){try{if(d.value)await re.put(`/app/umind/agentes/${d.value.ID}`,{tenant_id:n.value,...u.value}),l.value=!1,await y();else{const V=await re.post("/app/umind/agentes",{tenant_id:n.value,...u.value});l.value=!1,r.push(`/tenants/${n.value}/agentes/${V.id}`)}}catch(V){a.value=V.message}}async function K(V){confirm(`¿Eliminar el agente "${V.nombre}"? Esto no se puede deshacer.`)&&(await re.del(`/app/umind/agentes/${V.ID}`),await y())}return sr(y),(V,A)=>{const L=or("router-link");return N(),D("div",null,[s.value?(N(),D("div",Oc,[f("h1",Tc,q(s.value.nombre),1),f("p",Pc,q(s.value.dominios_permitidos||"sin dominios configurados"),1)])):se("",!0),a.value?(N(),D("p",Nc,q(a.value),1)):se("",!0),f("div",{class:"flex items-center justify-between mb-4"},[A[9]||(A[9]=f("h2",{class:"text-sm font-medium text-gray-600 dark:text-gray-300"},"Agentes",-1)),f("button",{class:"bg-brand hover:bg-brand-dark text-white text-sm font-medium px-4 py-2 rounded-lg transition-colors",onClick:v}," + Nuevo agente ")]),f("div",Dc,[o.value.length===0?(N(),D("div",Mc," Todavía no hay agentes. Creá el primero. ")):se("",!0),(N(!0),D(ge,null,Te(o.value,k=>(N(),D("div",{key:k.ID,class:"group flex items-center justify-between hover:bg-gray-50 dark:hover:bg-gray-800"},[ve(L,{to:`/tenants/${n.value}/agentes/${k.ID}`,class:"flex-1 min-w-0 p-4"},{default:Jt(()=>[f("div",Vc,q(k.nombre),1),f("div",$c,[f("span",{class:Ae(["w-1.5 h-1.5 rounded-full",!k.activo&&"bg-gray-300 dark:bg-gray-600"]),style:Xn({background:k.activo?k.color||"#22c55e":void 0})},null,6),f("span",jc,q(k.activo?"activo":"inactivo"),1)])]),_:2},1032,["to"]),f("div",Uc,[ve(L,{to:`/tenants/${n.value}/agentes/${k.ID}`,class:"text-brand font-medium opacity-0 group-hover:opacity-100 transition-opacity"},{default:Jt(()=>[...A[10]||(A[10]=[_e(" Configurar → ",-1)])]),_:1},8,["to"]),f("button",{class:"text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 opacity-0 group-hover:opacity-100 transition-opacity",title:"Editar",onClick:O=>j(k)},"✎",8,Lc),f("button",{class:"text-gray-400 hover:text-red-600 opacity-0 group-hover:opacity-100 transition-opacity",title:"Eliminar",onClick:O=>K(k)},"✕",8,Fc)])]))),128))]),l.value?(N(),D("div",{key:2,class:"fixed inset-0 bg-black/40 flex items-center justify-center p-4 z-50",onClick:A[8]||(A[8]=it(k=>l.value=!1,["self"]))},[f("div",Hc,[f("h2",Bc,q(d.value?"Editar agente":"Nuevo agente"),1),f("form",{class:"space-y-3",onSubmit:it(P,["prevent"])},[f("div",null,[A[11]||(A[11]=f("label",{class:"text-xs text-gray-500 dark:text-gray-400"},"Nombre",-1)),te(f("input",{"onUpdate:modelValue":A[0]||(A[0]=k=>u.value.nombre=k),required:"",placeholder:"ej: Ventas, Soporte",class:"w-full border border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-100 rounded-lg px-3 py-2 text-sm"},null,512),[[he,u.value.nombre]])]),f("div",null,[A[13]||(A[13]=f("label",{class:"text-xs text-gray-500 dark:text-gray-400"},"Config de IA",-1)),te(f("select",{"onUpdate:modelValue":A[1]||(A[1]=k=>u.value.ai_config_id=k),class:"w-full border border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-100 rounded-lg px-3 py-2 text-sm"},[A[12]||(A[12]=f("option",{value:null},"— sin asignar —",-1)),(N(!0),D(ge,null,Te(i.value,k=>(N(),D("option",{key:k.ID,value:k.ID},q(k.nombre)+" ("+q(k.provider)+")",9,Kc))),128))],512),[[kn,u.value.ai_config_id]])]),f("div",null,[A[14]||(A[14]=f("label",{class:"text-xs text-gray-500 dark:text-gray-400"},"Tono / personalidad",-1)),te(f("textarea",{"onUpdate:modelValue":A[2]||(A[2]=k=>u.value.tono=k),rows:"2",class:"w-full border border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-100 rounded-lg px-3 py-2 text-sm"},null,512),[[he,u.value.tono]])]),f("div",null,[A[15]||(A[15]=f("label",{class:"text-xs text-gray-500 dark:text-gray-400"},"Mensaje de bienvenida",-1)),te(f("input",{"onUpdate:modelValue":A[3]||(A[3]=k=>u.value.mensaje_bienvenida=k),class:"w-full border border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-100 rounded-lg px-3 py-2 text-sm"},null,512),[[he,u.value.mensaje_bienvenida]])]),f("div",null,[A[16]||(A[16]=f("label",{class:"text-xs text-gray-500 dark:text-gray-400"},"Color del widget",-1)),f("div",Gc,[te(f("input",{"onUpdate:modelValue":A[4]||(A[4]=k=>u.value.color=k),type:"color",class:"w-10 h-9 border border-gray-300 dark:border-gray-700 rounded cursor-pointer bg-white dark:bg-gray-800"},null,512),[[he,u.value.color]]),te(f("input",{"onUpdate:modelValue":A[5]||(A[5]=k=>u.value.color=k),type:"text",pattern:"#[0-9a-fA-F]{6}",class:"flex-1 border border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-100 rounded-lg px-3 py-2 text-sm font-mono"},null,512),[[he,u.value.color]])])]),f("label",qc,[te(f("input",{"onUpdate:modelValue":A[6]||(A[6]=k=>u.value.activo=k),type:"checkbox"},null,512),[[Dt,u.value.activo]]),A[17]||(A[17]=_e(" Activo ",-1))]),f("div",Wc,[f("button",{type:"button",class:"px-4 py-2 text-sm text-gray-500 dark:text-gray-400",onClick:A[7]||(A[7]=k=>l.value=!1)},"Cancelar"),f("button",zc,q(d.value?"Guardar":"Crear"),1)])],32)])])):se("",!0)])}}},Yc={key:0,class:"mb-6 mt-1"},Qc={class:"text-xl font-semibold text-gray-800 dark:text-gray-100"},Xc={class:"text-xs text-gray-500 dark:text-gray-500 mt-1"},Zc={class:"bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded"},ed={key:1,class:"text-sm text-red-600 dark:text-red-400 mb-4"},td={class:"flex gap-1.5 mb-6 overflow-x-auto pb-1"},nd=["onClick"],rd={key:2},sd=["disabled"],od={class:"bg-white dark:bg-gray-900 rounded-xl border border-gray-200 dark:border-gray-800 divide-y divide-gray-100 dark:divide-gray-800"},id={key:0,class:"p-6 text-sm text-gray-500 dark:text-gray-400"},ad={class:"text-sm text-gray-800 dark:text-gray-200"},ld={class:"text-xs text-gray-500 dark:text-gray-500 mt-0.5"},ud={key:0},cd={key:1,class:"text-red-600 dark:text-red-400"},dd=["onClick"],fd={key:3},pd={class:"bg-white dark:bg-gray-900 rounded-xl border border-gray-200 dark:border-gray-800 divide-y divide-gray-100 dark:divide-gray-800"},gd={key:0,class:"p-6 text-sm text-gray-500 dark:text-gray-400"},hd={class:"text-sm text-gray-800 dark:text-gray-200 font-mono"},md={class:"text-xs text-gray-500 dark:text-gray-400 mt-0.5"},yd={class:"text-xs text-gray-400 dark:text-gray-500 mt-0.5"},xd={key:0,class:"ml-1 text-green-600 dark:text-green-400"},vd={key:1,class:"ml-1 text-gray-400"},bd={class:"flex gap-3 text-sm shrink-0"},_d=["onClick"],kd=["onClick"],wd={class:"bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-xl p-6 w-full max-w-xl max-h-[85vh] overflow-y-auto"},Ed={class:"font-semibold text-gray-800 dark:text-gray-100 mb-4"},Cd={class:"border border-gray-200 dark:border-gray-800 rounded-lg p-3 space-y-2"},Ad=["onUpdate:modelValue"],Sd=["onUpdate:modelValue"],Rd=["onUpdate:modelValue"],Id={class:"text-xs text-gray-500 dark:text-gray-400 flex items-center gap-1"},Od=["onUpdate:modelValue"],Td=["onClick"],Pd={key:0,class:"text-xs text-gray-400"},Nd={class:"border border-gray-200 dark:border-gray-800 rounded-lg p-3 space-y-2"},Dd={class:"flex items-center gap-2 text-xs text-gray-500 dark:text-gray-400"},Md={class:"flex items-center gap-2 text-sm text-gray-600 dark:text-gray-300"},Vd={class:"flex justify-end gap-2 pt-2"},$d={key:4},jd={class:"bg-white dark:bg-gray-900 rounded-xl border border-gray-200 dark:border-gray-800 p-4 mb-4"},Ud={class:"flex items-center justify-between mb-2"},Ld={class:"bg-gray-50 dark:bg-gray-950 border border-gray-200 dark:border-gray-800 rounded-lg p-2.5 text-xs text-gray-700 dark:text-gray-300 overflow-x-auto"},Fd={class:"bg-white dark:bg-gray-900 rounded-xl border border-gray-200 dark:border-gray-800 divide-y divide-gray-100 dark:divide-gray-800"},Hd={key:0,class:"p-6 text-sm text-gray-500 dark:text-gray-400"},Bd={class:"flex items-center justify-between"},Kd={class:"font-medium text-gray-800 dark:text-gray-200 capitalize"},Gd={class:"flex gap-3 text-sm"},qd=["onClick"],Wd=["onClick"],zd={class:"flex gap-4 mt-2 text-xs"},Jd={class:"flex items-center gap-1.5 text-gray-600 dark:text-gray-300 cursor-pointer"},Yd=["checked","onChange"],Qd={class:"flex items-center gap-1.5 text-gray-600 dark:text-gray-300 cursor-pointer"},Xd=["checked","onChange"],Zd={class:"text-xs text-gray-500 dark:text-gray-400 mt-1 break-all"},ef={class:"bg-gray-100 dark:bg-gray-800 px-1 rounded"},tf={key:0,class:"text-xs text-gray-400 dark:text-gray-500 mt-1"},nf={key:1,class:"text-xs text-red-600 dark:text-red-400 mt-1"},rf={class:"bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-xl p-6 w-full max-w-md"},sf={key:0},of={class:"flex flex-col gap-2 pt-1"},af={class:"flex items-center gap-2 text-sm text-gray-600 dark:text-gray-300 cursor-pointer"},lf={class:"flex items-center gap-2 text-sm text-gray-600 dark:text-gray-300 cursor-pointer"},uf={class:"flex justify-end gap-2 pt-2"},cf={key:5},df={class:"flex gap-2 mb-4"},ff={class:"bg-white dark:bg-gray-900 rounded-xl border border-gray-200 dark:border-gray-800 divide-y divide-gray-100 dark:divide-gray-800"},pf={key:0,class:"p-6 text-sm text-gray-500 dark:text-gray-400"},gf={class:"font-medium text-gray-800 dark:text-gray-200 capitalize"},hf={class:"ml-2 text-sm text-gray-500 dark:text-gray-400"},mf=["onClick"],yf={key:6,class:"bg-white dark:bg-gray-900 rounded-xl border border-gray-200 dark:border-gray-800 p-4 flex flex-col h-[28rem]"},xf={class:"flex-1 overflow-y-auto space-y-2 mb-3"},vf={key:0,class:"text-sm text-gray-500 dark:text-gray-400"},bf={key:1,class:"text-xs text-gray-400 dark:text-gray-500"},_f=["disabled"],kf={key:7,class:"grid grid-cols-3 gap-4"},wf={class:"col-span-1 bg-white dark:bg-gray-900 rounded-xl border border-gray-200 dark:border-gray-800 divide-y divide-gray-100 dark:divide-gray-800 max-h-[28rem] overflow-y-auto"},Ef={key:0,class:"p-4 text-sm text-gray-500 dark:text-gray-400"},Cf=["onClick"],Af={class:"text-gray-800 dark:text-gray-200 truncate"},Sf={class:"text-xs text-gray-400 dark:text-gray-500 mt-0.5"},Rf={class:"col-span-2 bg-white dark:bg-gray-900 rounded-xl border border-gray-200 dark:border-gray-800 p-4 max-h-[28rem] overflow-y-auto space-y-2"},If={key:0,class:"text-sm text-gray-500 dark:text-gray-400"},Of={key:8},Tf={class:"bg-white dark:bg-gray-900 rounded-xl border border-gray-200 dark:border-gray-800 divide-y divide-gray-100 dark:divide-gray-800 max-h-[32rem] overflow-y-auto"},Pf={key:0,class:"p-6 text-sm text-gray-500 dark:text-gray-400"},Nf={class:"cursor-pointer flex items-center gap-2 text-sm"},Df={class:"text-gray-400 dark:text-gray-500 text-xs shrink-0"},Mf={class:"text-gray-800 dark:text-gray-200 truncate"},Vf={class:"text-gray-400 dark:text-gray-500 text-xs ml-auto shrink-0"},$f={key:0,class:"mt-2 bg-gray-50 dark:bg-gray-950 border border-gray-200 dark:border-gray-800 rounded-lg p-2 text-xs text-gray-600 dark:text-gray-400 overflow-x-auto whitespace-pre-wrap"},jf={__name:"AgenteDetail",props:{tenantId:{type:String,required:!0},agenteId:{type:String,required:!0}},setup(e){const t=e,n=we(()=>Number(t.agenteId)),r=Ci(),s=Y(null),o=Y(""),i=Y(typeof r.query.tab=="string"?r.query.tab:"conocimiento"),a=Y([]),l=Y(""),d=Y(30),u=Y(!1);async function g(){const b=await re.get(`/app/umind/agentes?tenant_id=${t.tenantId}`);s.value=(b.items||[]).find(m=>String(m.ID)===t.agenteId)||null}async function y(){const b=await re.get(`/app/umind/documentos?agente_id=${t.agenteId}`);a.value=b.items||[]}async function v(){if(l.value.trim()){u.value=!0,o.value="";try{await re.post("/app/umind/documentos",{agente_id:n.value,url:l.value.trim(),max_paginas:Number(d.value)||30}),l.value="",await y()}catch(b){o.value=b.message}finally{u.value=!1}}}async function j(b){confirm("¿Eliminar esta fuente y sus fragmentos indexados?")&&(await re.del(`/app/umind/documentos/${b}`),await y())}const P=we(()=>b=>({listo:"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-400",procesando:"bg-amber-100 text-amber-700 dark:bg-amber-900/40 dark:text-amber-400",pendiente:"bg-gray-100 text-gray-500 dark:bg-gray-800 dark:text-gray-400",error:"bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-400"})[b]||"bg-gray-100 text-gray-500 dark:bg-gray-800 dark:text-gray-400"),K=Y([]),V=Y([]),A=Y(null);async function L(){const b=await re.get(`/app/umind/sesiones?agente_id=${t.agenteId}`);K.value=b.items||[]}async function k(b){A.value=b;const m=await re.get(`/app/umind/historial?agente_id=${t.agenteId}&session_id=${b}`);V.value=m.items||[]}const O=Y([]),le=Y(!1),F=Y(null),J=Y(qe());function qe(){return{nombre:"",descripcion:"",url:"",auth_header_nombre:"",auth_header_valor:"",tocarAuth:!1,parametros:[],activa:!0}}async function Me(){const b=await re.get(`/app/umind/tools?agente_id=${t.agenteId}`);O.value=b.items||[]}function Xe(){F.value=null,J.value=qe(),le.value=!0}function dt(b){F.value=b;let m=[];try{m=JSON.parse(b.parametros_json||"[]")||[]}catch{m=[]}J.value={nombre:b.nombre,descripcion:b.descripcion,url:b.url,auth_header_nombre:b.auth_header_nombre,auth_header_valor:"",tocarAuth:!1,parametros:m,activa:b.activa},le.value=!0}function Ke(){J.value.parametros.push({nombre:"",tipo:"string",descripcion:"",requerido:!1})}function Ot(b){J.value.parametros.splice(b,1)}async function Ct(){const b={agente_id:n.value,nombre:J.value.nombre.trim(),descripcion:J.value.descripcion,url:J.value.url.trim(),auth_header_nombre:J.value.auth_header_nombre,parametros:J.value.parametros,activa:J.value.activa};J.value.tocarAuth&&(b.auth_header_valor=J.value.auth_header_valor);try{F.value?await re.put(`/app/umind/tools/${F.value.ID}`,b):await re.post("/app/umind/tools",b),le.value=!1,await Me()}catch(m){o.value=m.message}}async function xe(b){confirm(`¿Eliminar la tool "${b.nombre}"?`)&&(await re.del(`/app/umind/tools/${b.ID}`),await Me())}const ne=Y([]),Z=Y(!1),X=Y(ft()),je=Y(!1),Ue=we(()=>{var m;const b=((m=s.value)==null?void 0:m.site_key)||"TU_SITE_KEY";return`