(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/** * @vue/shared v3.5.41 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function io(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const _e={},un=[],At=()=>{},Ar=()=>!1,ms=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),hs=e=>e.startsWith("onUpdate:"),Fe=Object.assign,lo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ol=Object.prototype.hasOwnProperty,be=(e,t)=>ol.call(e,t),X=Array.isArray,cn=e=>Hn(e)==="[object Map]",_n=e=>Hn(e)==="[object Set]",Io=e=>Hn(e)==="[object Date]",re=e=>typeof e=="function",$e=e=>typeof e=="string",mt=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",Er=e=>(ye(e)||re(e))&&re(e.then)&&re(e.catch),Sr=Object.prototype.toString,Hn=e=>Sr.call(e),rl=e=>Hn(e).slice(8,-1),Ir=e=>Hn(e)==="[object Object]",ao=e=>$e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$n=io(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),vs=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},il=/-\w/g,et=vs(e=>e.replace(il,t=>t.slice(1).toUpperCase())),ll=/\B([A-Z])/g,on=vs(e=>e.replace(ll,"-$1").toLowerCase()),gs=vs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ps=vs(e=>e?`on${gs(e)}`:""),kt=(e,t)=>!Object.is(e,t),ts=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},bs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let $o;const xs=()=>$o||($o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function sn(e){if(X(e)){const t={};for(let n=0;n{if(n){const s=n.split(ul);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ee(e){let t="";if($e(e))t=e;else if(X(e))for(let n=0;nzt(n,t))}const Pr=e=>!!(e&&e.__v_isRef===!0),R=e=>$e(e)?e:e==null?"":X(e)||ye(e)&&(e.toString===Sr||!re(e.toString))?Pr(e)?R(e.value):JSON.stringify(e,Or,2):String(e),Or=(e,t)=>Pr(t)?Or(e,t.value):cn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[Os(s,r)+" =>"]=o,n),{})}:_n(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Os(n))}:mt(t)?Os(t):ye(t)&&!X(t)&&!Ir(t)?String(t):t,Os=(e,t="")=>{var n;return mt(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 Ue;class hl{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Ue&&(Ue.active?(this.parent=Ue,this.index=(Ue.scopes||(Ue.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t0&&--this._on===0){if(Ue===this)Ue=this.prevScope;else{let t=Ue;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n0)return;if(Pn){let t=Pn;for(Pn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Rn;){let t=Rn;for(Rn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Nr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Vr(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),po(s),gl(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function Ks(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(jr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function jr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Dn)||(e.globalVersion=Dn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ks(e))))return;e.flags|=2;const t=e.dep,n=we,s=ft;we=e,ft=!0;try{Nr(e);const o=e.fn(e._value);(t.version===0||kt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{we=n,ft=s,Vr(e),e.flags&=-3}}function po(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)po(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function gl(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ft=!0;const Ur=[];function Ut(){Ur.push(ft),ft=!1}function Lt(){const e=Ur.pop();ft=e===void 0?!0:e}function Ro(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=we;we=void 0;try{t()}finally{we=n}}}let Dn=0;class bl{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 mo{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(!we||!ft||we===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==we)n=this.activeLink=new bl(we,this),we.deps?(n.prevDep=we.depsTail,we.depsTail.nextDep=n,we.depsTail=n):we.deps=we.depsTail=n,Lr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=we.depsTail,n.nextDep=void 0,we.depsTail.nextDep=n,we.depsTail=n,we.deps===n&&(we.deps=s)}return n}trigger(t){this.version++,Dn++,this.notify(t)}notify(t){co();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{fo()}}}function Lr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Lr(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ws=new WeakMap,tn=Symbol(""),zs=Symbol(""),Nn=Symbol("");function Be(e,t,n){if(ft&&we){let s=Ws.get(e);s||Ws.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new mo),o.map=s,o.key=n),o.track()}}function Mt(e,t,n,s,o,r){const i=Ws.get(e);if(!i){Dn++;return}const a=u=>{u&&u.trigger()};if(co(),t==="clear")i.forEach(a);else{const u=X(e),d=u&&ao(n);if(u&&n==="length"){const c=Number(s);i.forEach((p,h)=>{(h==="length"||h===Nn||!mt(h)&&h>=c)&&a(p)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),d&&a(i.get(Nn)),t){case"add":u?d&&a(i.get("length")):(a(i.get(tn)),cn(e)&&a(i.get(zs)));break;case"delete":u||(a(i.get(tn)),cn(e)&&a(i.get(zs)));break;case"set":cn(e)&&a(i.get(tn));break}}fo()}function rn(e){const t=ge(e);return t===e?t:(Be(t,"iterate",Nn),ut(e)?t:t.map(ht))}function ys(e){return Be(e=ge(e),"iterate",Nn),e}function wt(e,t){return Ft(e)?hn(nn(e)?ht(t):t):ht(t)}const xl={__proto__:null,[Symbol.iterator](){return Ms(this,Symbol.iterator,e=>wt(this,e))},concat(...e){return rn(this).concat(...e.map(t=>X(t)?rn(t):t))},entries(){return Ms(this,"entries",e=>(e[1]=wt(this,e[1]),e))},every(e,t){return It(this,"every",e,t,void 0,arguments)},filter(e,t){return It(this,"filter",e,t,n=>n.map(s=>wt(this,s)),arguments)},find(e,t){return It(this,"find",e,t,n=>wt(this,n),arguments)},findIndex(e,t){return It(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return It(this,"findLast",e,t,n=>wt(this,n),arguments)},findLastIndex(e,t){return It(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return It(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ds(this,"includes",e)},indexOf(...e){return Ds(this,"indexOf",e)},join(e){return rn(this).join(e)},lastIndexOf(...e){return Ds(this,"lastIndexOf",e)},map(e,t){return It(this,"map",e,t,void 0,arguments)},pop(){return Cn(this,"pop")},push(...e){return Cn(this,"push",e)},reduce(e,...t){return Po(this,"reduce",e,t)},reduceRight(e,...t){return Po(this,"reduceRight",e,t)},shift(){return Cn(this,"shift")},some(e,t){return It(this,"some",e,t,void 0,arguments)},splice(...e){return Cn(this,"splice",e)},toReversed(){return rn(this).toReversed()},toSorted(e){return rn(this).toSorted(e)},toSpliced(...e){return rn(this).toSpliced(...e)},unshift(...e){return Cn(this,"unshift",e)},values(){return Ms(this,"values",e=>wt(this,e))}};function Ms(e,t,n){const s=ys(e),o=s[t]();return s!==e&&!ut(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const yl=Array.prototype;function It(e,t,n,s,o,r){const i=ys(e),a=i!==e&&!ut(e),u=i[t];if(u!==yl[t]){const p=u.apply(e,r);return a?ht(p):p}let d=n;i!==e&&(a?d=function(p,h){return n.call(this,wt(e,p),h,e)}:n.length>2&&(d=function(p,h){return n.call(this,p,h,e)}));const c=u.call(i,d,s);return a&&o?o(c):c}function Po(e,t,n,s){const o=ys(e),r=o!==e&&!ut(e);let i=n,a=!1;o!==e&&(r?(a=s.length===0,i=function(d,c,p){return a&&(a=!1,d=wt(e,d)),n.call(this,d,wt(e,c),p,e)}):n.length>3&&(i=function(d,c,p){return n.call(this,d,c,p,e)}));const u=o[t](i,...s);return a?wt(e,u):u}function Ds(e,t,n){const s=ge(e);Be(s,"iterate",Nn);const o=s[t](...n);return(o===-1||o===!1)&&go(n[0])?(n[0]=ge(n[0]),s[t](...n)):o}function Cn(e,t,n=[]){Ut(),co();const s=ge(e)[t].apply(e,n);return fo(),Lt(),s}const _l=io("__proto__,__v_isRef,__isVue"),Fr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(mt));function wl(e){mt(e)||(e=String(e));const t=ge(this);return Be(t,"has",e),t.hasOwnProperty(e)}class qr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?Ol:Kr:r?Gr:Br).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=X(t);if(!o){let u;if(i&&(u=xl[n]))return u;if(n==="hasOwnProperty")return wl}const a=Reflect.get(t,n,Ke(t)?t:s);if((mt(n)?Fr.has(n):_l(n))||(o||Be(t,"get",n),r))return a;if(Ke(a)){const u=i&&ao(n)?a:a.value;return o&&ye(u)?Qs(u):u}return ye(a)?o?Qs(a):_s(a):a}}class Hr extends qr{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];const i=X(t)&&ao(n);if(!this._isShallow){const d=Ft(r);if(!ut(s)&&!Ft(s)&&(r=ge(r),s=ge(s)),!i&&Ke(r)&&!Ke(s))return d||(r.value=s),!0}const a=i?Number(n)e,Jn=e=>Reflect.getPrototypeOf(e);function Sl(e,t,n){return function(...s){const o=this.__v_raw,r=ge(o),i=cn(r),a=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,d=o[e](...s),c=n?Js:t?hn:ht;return!t&&Be(r,"iterate",u?zs:tn),Fe(Object.create(d),{next(){const{value:p,done:h}=d.next();return h?{value:p,done:h}:{value:a?[c(p[0]),c(p[1])]:c(p),done:h}}})}}function Qn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Il(e,t){const n={get(o){const r=this.__v_raw,i=ge(r),a=ge(o);e||(kt(o,a)&&Be(i,"get",o),Be(i,"get",a));const{has:u}=Jn(i),d=t?Js:e?hn:ht;if(u.call(i,o))return d(r.get(o));if(u.call(i,a))return d(r.get(a));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&Be(ge(o),"iterate",tn),o.size},has(o){const r=this.__v_raw,i=ge(r),a=ge(o);return e||(kt(o,a)&&Be(i,"has",o),Be(i,"has",a)),o===a?r.has(o):r.has(o)||r.has(a)},forEach(o,r){const i=this,a=i.__v_raw,u=ge(a),d=t?Js:e?hn:ht;return!e&&Be(u,"iterate",tn),a.forEach((c,p)=>o.call(r,d(c),d(p),i))}};return Fe(n,e?{add:Qn("add"),set:Qn("set"),delete:Qn("delete"),clear:Qn("clear")}:{add(o){const r=ge(this),i=Jn(r),a=ge(o),u=!t&&!ut(o)&&!Ft(o)?a:o;return i.has.call(r,u)||kt(o,u)&&i.has.call(r,o)||kt(a,u)&&i.has.call(r,a)||(r.add(u),Mt(r,"add",u,u)),this},set(o,r){!t&&!ut(r)&&!Ft(r)&&(r=ge(r));const i=ge(this),{has:a,get:u}=Jn(i);let d=a.call(i,o);d||(o=ge(o),d=a.call(i,o));const c=u.call(i,o);return i.set(o,r),d?kt(r,c)&&Mt(i,"set",o,r):Mt(i,"add",o,r),this},delete(o){const r=ge(this),{has:i,get:a}=Jn(r);let u=i.call(r,o);u||(o=ge(o),u=i.call(r,o)),a&&a.call(r,o);const d=r.delete(o);return u&&Mt(r,"delete",o,void 0),d},clear(){const o=ge(this),r=o.size!==0,i=o.clear();return r&&Mt(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=Sl(o,e,t)}),n}function ho(e,t){const n=Il(e,t);return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(be(n,o)&&o in s?n:s,o,r)}const $l={get:ho(!1,!1)},Rl={get:ho(!1,!0)},Pl={get:ho(!0,!1)};const Br=new WeakMap,Gr=new WeakMap,Kr=new WeakMap,Ol=new WeakMap;function Tl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _s(e){return Ft(e)?e:vo(e,!1,kl,$l,Br)}function Wr(e){return vo(e,!1,El,Rl,Gr)}function Qs(e){return vo(e,!0,Al,Pl,Kr)}function vo(e,t,n,s,o){if(!ye(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=o.get(e);if(r)return r;const i=Tl(rl(e));if(i===0)return e;const a=new Proxy(e,i===2?s:n);return o.set(e,a),a}function nn(e){return Ft(e)?nn(e.__v_raw):!!(e&&e.__v_isReactive)}function Ft(e){return!!(e&&e.__v_isReadonly)}function ut(e){return!!(e&&e.__v_isShallow)}function go(e){return e?!!e.__v_raw:!1}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function Ml(e){return!be(e,"__v_skip")&&Object.isExtensible(e)&&$r(e,"__v_skip",!0),e}const ht=e=>ye(e)?_s(e):e,hn=e=>ye(e)?Qs(e):e;function Ke(e){return e?e.__v_isRef===!0:!1}function G(e){return zr(e,!1)}function Dl(e){return zr(e,!0)}function zr(e,t){return Ke(e)?e:new Nl(e,t)}class Nl{constructor(t,n){this.dep=new mo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ge(t),this._value=n?t:ht(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||ut(t)||Ft(t);t=s?t:ge(t),kt(t,n)&&(this._rawValue=t,this._value=s?t:ht(t),this.dep.trigger())}}function je(e){return Ke(e)?e.value:e}const Vl={get:(e,t,n)=>t==="__v_raw"?e:je(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Ke(o)&&!Ke(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Jr(e){return nn(e)?e:new Proxy(e,Vl)}class jl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new mo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Dn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&we!==this)return Dr(this,!0),!0}get value(){const t=this.dep.track();return jr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ul(e,t,n=!1){let s,o;return re(e)?s=e:(s=e.get,o=e.set),new jl(s,o,n)}const Yn={},rs=new WeakMap;let Xt;function Ll(e,t=!1,n=Xt){if(n){let s=rs.get(n);s||rs.set(n,s=[]),s.push(e)}}function Fl(e,t,n=_e){const{immediate:s,deep:o,once:r,scheduler:i,augmentJob:a,call:u}=n,d=k=>o?k:ut(k)||o===!1||o===0?Dt(k,1):Dt(k);let c,p,h,y,D=!1,P=!1;if(Ke(e)?(p=()=>e.value,D=ut(e)):nn(e)?(p=()=>d(e),D=!0):X(e)?(P=!0,D=e.some(k=>nn(k)||ut(k)),p=()=>e.map(k=>{if(Ke(k))return k.value;if(nn(k))return d(k);if(re(k))return u?u(k,2):k()})):re(e)?t?p=u?()=>u(e,2):e:p=()=>{if(h){Ut();try{h()}finally{Lt()}}const k=Xt;Xt=c;try{return u?u(e,3,[y]):e(y)}finally{Xt=k}}:p=At,t&&o){const k=p,b=o===!0?1/0:o;p=()=>Dt(k(),b)}const K=vl(),q=()=>{c.stop(),K&&K.active&&lo(K.effects,c)};if(r&&t){const k=t;t=(...b)=>{const O=k(...b);return q(),O}}let T=P?new Array(e.length).fill(Yn):Yn;const V=k=>{if(!(!(c.flags&1)||!c.dirty&&!k))if(t){const b=c.run();if(k||o||D||(P?b.some((O,j)=>kt(O,T[j])):kt(b,T))){h&&h();const O=Xt;Xt=c;try{const j=[b,T===Yn?void 0:P&&T[0]===Yn?[]:T,y];T=b,u?u(t,3,j):t(...j)}finally{Xt=O}}}else c.run()};return a&&a(V),c=new Tr(p),c.scheduler=i?()=>i(V,!1):V,y=k=>Ll(k,!1,c),h=c.onStop=()=>{const k=rs.get(c);if(k){if(u)u(k,4);else for(const b of k)b();rs.delete(c)}},t?s?V(!0):T=c.run():i?i(V.bind(null,!0),!0):c.run(),q.pause=c.pause.bind(c),q.resume=c.resume.bind(c),q.stop=q,q}function Dt(e,t=1/0,n){if(t<=0||!ye(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ke(e))Dt(e.value,t,n);else if(X(e))for(let s=0;s{Dt(s,t,n)});else if(Ir(e)){for(const s in e)Dt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Dt(e[s],t,n)}return e}/** * @vue/runtime-core v3.5.41 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Bn(e,t,n,s){try{return s?e(...s):e()}catch(o){ws(o,t,n)}}function vt(e,t,n,s){if(re(e)){const o=Bn(e,t,n,s);return o&&Er(o)&&o.catch(r=>{ws(r,t,n)}),o}if(X(e)){const o=[];for(let r=0;r>>1,o=Ye[s],r=Vn(o);r=Vn(n)?Ye.push(e):Ye.splice(Hl(t),0,e),e.flags|=1,Yr()}}function Yr(){is||(is=Qr.then(Xr))}function Bl(e){if(!X(e))Kt&&e.id===-1?Kt.splice(ln+1,0,e):e.flags&1||(dn.push(e),e.flags|=1);else for(let t=0;tVn(n)-Vn(s));if(dn.length=0,Kt){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function Xr(e){try{for(_t=0;_t{s._d&&cs(-1);const r=ls(t),i=jt.length;let a;try{a=e(...o)}finally{for(let u=jt.length;u>i;u--)ko();ls(r),s._d&&cs(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function ne(e,t){if(Le===null)return e;const n=Is(Le),s=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&re(t)?t.call(s&&s.proxy):t}}const Gl=Symbol.for("v-scx"),Kl=()=>pt(Gl);function Vt(e,t,n){return ti(e,t,n)}function ti(e,t,n=_e){const{immediate:s,deep:o,flush:r,once:i}=n,a=Fe({},n),u=t&&s||!t&&r!=="post";let d;if(Fn){if(r==="sync"){const y=Kl();d=y.__watcherHandles||(y.__watcherHandles=[])}else if(!u){const y=()=>{};return y.stop=At,y.resume=At,y.pause=At,y}}const c=Ge;a.call=(y,D,P)=>vt(y,c,D,P);let p=!1;r==="post"?a.scheduler=y=>{nt(y,c&&c.suspense)}:r!=="sync"&&(p=!0,a.scheduler=(y,D)=>{D?y():xo(y)}),a.augmentJob=y=>{t&&(y.flags|=4),p&&(y.flags|=2,c&&(y.id=c.uid,y.i=c))};const h=Fl(e,t,a);return Fn&&(d?d.push(h):u&&h()),h}function Wl(e,t,n){const s=this.proxy,o=$e(e)?e.includes(".")?ni(s,e):()=>s[e]:e.bind(s,s);let r;re(t)?r=t:(r=t.handler,n=t);const i=Gn(this),a=ti(o,r.bind(s),n);return i(),a}function ni(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;oe.__isTeleport,Ns=Symbol("_leaveCb");function Jl(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Et){t=n;break}}return t}function si(e){if(!_o(e))return Cs(e.type)&&e.children?Jl(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&&re(n.default))return n.default()}}function yo(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;yo(Cs(n.type)&&si(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 oi(e,t){return re(e)?Fe({name:e.name},t,{setup:e}):e}function ri(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function To(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const as=new WeakMap;function On(e,t,n,s,o=!1){if(X(e)){e.forEach((P,K)=>On(P,t&&(X(t)?t[K]:t),n,s,o));return}if(fn(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&On(e,t,n,s.component.subTree);return}const r=s.shapeFlag&4?Is(s.component):s.el,i=o?null:r,{i:a,r:u}=e,d=t&&t.r,c=a.refs===_e?a.refs={}:a.refs,p=a.setupState,h=ge(p),y=p===_e?Ar:P=>To(c,P)?!1:be(h,P),D=(P,K)=>!(K&&To(c,K));if(d!=null&&d!==u){if(Mo(t),$e(d))c[d]=null,y(d)&&(p[d]=null);else if(Ke(d)){const P=t;D(d,P.k)&&(d.value=null),P.k&&(c[P.k]=null)}}if(re(u))Bn(u,a,12,[i,c]);else{const P=$e(u),K=Ke(u);if(P||K){const q=()=>{if(e.f){const T=P?y(u)?p[u]:c[u]:D()||!e.k?u.value:c[e.k];if(o)X(T)&&lo(T,r);else if(X(T))T.includes(r)||T.push(r);else if(P)c[u]=[r],y(u)&&(p[u]=c[u]);else{const V=[r];D(u,e.k)&&(u.value=V),e.k&&(c[e.k]=V)}}else P?(c[u]=i,y(u)&&(p[u]=i)):K&&(D(u,e.k)&&(u.value=i),e.k&&(c[e.k]=i))};if(i){const T=()=>{q(),as.delete(e)};T.id=-1,as.set(e,T),nt(T,n)}else Mo(e),q()}}}function Mo(e){const t=as.get(e);t&&(t.flags|=8,as.delete(e))}xs().requestIdleCallback;xs().cancelIdleCallback;const fn=e=>!!e.type.__asyncLoader,_o=e=>e.type.__isKeepAlive;function Ql(e,t){ii(e,"a",t)}function Yl(e,t){ii(e,"da",t)}function ii(e,t,n=Ge){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ks(t,s,n),n){let o=n.parent;for(;o&&o.parent;)_o(o.parent.vnode)&&Zl(s,t,n,o),o=o.parent}}function Zl(e,t,n,s){const o=ks(t,e,s,!0);ai(()=>{lo(s[t],o)},n)}function ks(e,t,n=Ge,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Ut();const a=Gn(n),u=vt(t,n,e,i);return a(),Lt(),u});return s?o.unshift(r):o.push(r),r}}const qt=e=>(t,n=Ge)=>{(!Fn||e==="sp")&&ks(e,(...s)=>t(...s),n)},Xl=qt("bm"),As=qt("m"),ea=qt("bu"),ta=qt("u"),li=qt("bum"),ai=qt("um"),na=qt("sp"),sa=qt("rtg"),oa=qt("rtc");function ra(e,t=Ge){ks("ec",e,t)}const ui="components";function wn(e,t){return di(ui,e,!0,t)||e}const ci=Symbol.for("v-ndc");function ia(e){return $e(e)?di(ui,e,!1)||e:e||ci}function di(e,t,n=!0,s=!1){const o=Le||Ge;if(o){const r=o.type;{const a=Ba(r,!1);if(a&&(a===t||a===et(t)||a===gs(et(t))))return r}const i=Do(o[e]||r[e],t)||Do(o.appContext[e],t);return!i&&s?r:i}}function Do(e,t){return e&&(e[t]||e[et(t)]||e[gs(et(t))])}function Ie(e,t,n,s){let o;const r=n,i=X(e);if(i||$e(e)){const a=i&&nn(e);let u=!1,d=!1;a&&(u=!ut(e),d=Ft(e),e=ys(e)),o=new Array(e.length);for(let c=0,p=e.length;ct(a,u,void 0,r));else{const a=Object.keys(e);o=new Array(a.length);for(let u=0,d=a.length;u0;return _(),He(le,null,[ie("slot",d,s)],c?-2:64)}let i=e[t];i&&i._c&&(i._d=!1);const a=jt.length;_();let u;try{const d=i&&fi(i(n)),c=n.key||r||d&&d.key;u=He(le,{key:(c&&!mt(c)?c:`_${t}`)+(!d&&s?"_fb":"")},d||(s?s():[]),d&&e._===1?64:-2)}catch(d){for(let c=jt.length;c>a;c--)ko();throw d}finally{i&&i._c&&(i._d=!0)}return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),u}function fi(e){return e.some(t=>Un(t)?!(t.type===Et||t.type===le&&!fi(t.children)):!0)?e:null}const Ys=e=>e?Mi(e)?Is(e):Ys(e.parent):null,Tn=Fe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ys(e.parent),$root:e=>Ys(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>mi(e),$forceUpdate:e=>e.f||(e.f=()=>{xo(e.update)}),$nextTick:e=>e.n||(e.n=bo.bind(e.proxy)),$watch:e=>Wl.bind(e)}),Vs=(e,t)=>e!==_e&&!e.__isScriptSetup&&be(e,t),aa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:a,appContext:u}=e;if(t[0]!=="$"){const h=i[t];if(h!==void 0)switch(h){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Vs(s,t))return i[t]=1,s[t];if(o!==_e&&be(o,t))return i[t]=2,o[t];if(be(r,t))return i[t]=3,r[t];if(n!==_e&&be(n,t))return i[t]=4,n[t];Zs&&(i[t]=0)}}const d=Tn[t];let c,p;if(d)return t==="$attrs"&&Be(e.attrs,"get",""),d(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==_e&&be(n,t))return i[t]=4,n[t];if(p=u.config.globalProperties,be(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return Vs(o,t)?(o[t]=n,!0):s!==_e&&be(s,t)?(s[t]=n,!0):be(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,props:r,type:i}},a){let u;return!!(n[a]||e!==_e&&a[0]!=="$"&&be(e,a)||Vs(t,a)||be(r,a)||be(s,a)||be(Tn,a)||be(o.config.globalProperties,a)||(u=i.__cssModules)&&u[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:be(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function No(e){return X(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Zs=!0;function ua(e){const t=mi(e),n=e.proxy,s=e.ctx;Zs=!1,t.beforeCreate&&Vo(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:a,provide:u,inject:d,created:c,beforeMount:p,mounted:h,beforeUpdate:y,updated:D,activated:P,deactivated:K,beforeDestroy:q,beforeUnmount:T,destroyed:V,unmounted:k,render:b,renderTracked:O,renderTriggered:j,errorCaptured:U,serverPrefetch:ke,expose:ee,inheritAttrs:L,components:Me,directives:z,filters:tt}=t;if(d&&ca(d,s,null),i)for(const pe in i){const de=i[pe];re(de)&&(s[pe]=de.bind(n))}if(o){const pe=o.call(n,n);ye(pe)&&(e.data=_s(pe))}if(Zs=!0,r)for(const pe in r){const de=r[pe],ct=re(de)?de.bind(n,n):re(de.get)?de.get.bind(n,n):At,bt=!re(de)&&re(de.set)?de.set.bind(n):At,We=Ce({get:ct,set:bt});Object.defineProperty(s,pe,{enumerable:!0,configurable:!0,get:()=>We.value,set:Te=>We.value=Te})}if(a)for(const pe in a)pi(a[pe],s,n,pe);if(u){const pe=re(u)?u.call(n):u;Reflect.ownKeys(pe).forEach(de=>{ns(de,pe[de])})}c&&Vo(c,e,"c");function Se(pe,de){X(de)?de.forEach(ct=>pe(ct.bind(n))):de&&pe(de.bind(n))}if(Se(Xl,p),Se(As,h),Se(ea,y),Se(ta,D),Se(Ql,P),Se(Yl,K),Se(ra,U),Se(oa,O),Se(sa,j),Se(li,T),Se(ai,k),Se(na,ke),X(ee))if(ee.length){const pe=e.exposed||(e.exposed={});ee.forEach(de=>{Object.defineProperty(pe,de,{get:()=>n[de],set:ct=>n[de]=ct,enumerable:!0})})}else e.exposed||(e.exposed={});b&&e.render===At&&(e.render=b),L!=null&&(e.inheritAttrs=L),Me&&(e.components=Me),z&&(e.directives=z),ke&&ri(e)}function ca(e,t,n=At){X(e)&&(e=Xs(e));for(const s in e){const o=e[s];let r;ye(o)?"default"in o?r=pt(o.from||s,o.default,!0):r=pt(o.from||s):r=pt(o),Ke(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Vo(e,t,n){vt(X(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function pi(e,t,n,s){let o=s.includes(".")?ni(n,s):()=>n[s];if($e(e)){const r=t[e];re(r)&&Vt(o,r)}else if(re(e))Vt(o,e.bind(n));else if(ye(e))if(X(e))e.forEach(r=>pi(r,t,n,s));else{const r=re(e.handler)?e.handler.bind(n):t[e.handler];re(r)&&Vt(o,r,e)}}function mi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let u;return a?u=a:!o.length&&!n&&!s?u=t:(u={},o.length&&o.forEach(d=>us(u,d,i,!0)),us(u,t,i)),ye(t)&&r.set(t,u),u}function us(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&us(e,r,n,!0),o&&o.forEach(i=>us(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=da[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const da={data:jo,props:Uo,emits:Uo,methods:En,computed:En,beforeCreate:Je,created:Je,beforeMount:Je,mounted:Je,beforeUpdate:Je,updated:Je,beforeDestroy:Je,beforeUnmount:Je,destroyed:Je,unmounted:Je,activated:Je,deactivated:Je,errorCaptured:Je,serverPrefetch:Je,components:En,directives:En,watch:pa,provide:jo,inject:fa};function jo(e,t){return t?e?function(){return Fe(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function fa(e,t){return En(Xs(e),Xs(t))}function Xs(e){if(X(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${et(t)}Modifiers`]||e[`${on(t)}Modifiers`];function ga(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||_e;let o=n;const r=t.startsWith("update:"),i=r&&va(s,t.slice(7));i&&(i.trim&&(o=n.map(c=>$e(c)?c.trim():c)),i.number&&(o=n.map(bs)));let a,u=s[a=Ps(t)]||s[a=Ps(et(t))];!u&&r&&(u=s[a=Ps(on(t))]),u&&vt(u,e,6,o);const d=s[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,vt(d,e,6,o)}}const ba=new WeakMap;function vi(e,t,n=!1){const s=n?ba:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},a=!1;if(!re(e)){const u=d=>{const c=vi(d,t,!0);c&&(a=!0,Fe(i,c))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!a?(ye(e)&&s.set(e,null),null):(X(r)?r.forEach(u=>i[u]=null):Fe(i,r),ye(e)&&s.set(e,i),i)}function Es(e,t){return!e||!ms(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),be(e,t[0].toLowerCase()+t.slice(1))||be(e,on(t))||be(e,t))}function Lo(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[r],slots:i,attrs:a,emit:u,render:d,renderCache:c,props:p,data:h,setupState:y,ctx:D,inheritAttrs:P}=e,K=ls(e);let q,T;try{if(n.shapeFlag&4){const k=o||s,b=k;q=Ct(d.call(b,k,c,p,y,h,D)),T=a}else{const k=t;q=Ct(k.length>1?k(p,{attrs:a,slots:i,emit:u}):k(p,null)),T=t.props?a:xa(a)}}catch(k){jt.length=0,ws(k,e,1),q=ie(Et)}let V=q;if(T&&P!==!1){const k=Object.keys(T),{shapeFlag:b}=V;k.length&&b&7&&(r&&k.some(hs)&&(T=ya(T,r)),V=vn(V,T,!1,!0))}if(n.dirs&&(V=vn(V,null,!1,!0),V.dirs=V.dirs?V.dirs.concat(n.dirs):n.dirs),n.transition){const k=Cs(V.type)&&si(V)||V;yo(k,n.transition)}return q=V,ls(K),q}const xa=e=>{let t;for(const n in e)(n==="class"||n==="style"||ms(n))&&((t||(t={}))[n]=e[n]);return t},ya=(e,t)=>{const n={};for(const s in e)(!hs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function _a(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:a,patchFlag:u}=t,d=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return s?Fo(s,i,d):!!i;if(u&8){const c=t.dynamicProps;for(let p=0;pObject.create(bi),yi=e=>Object.getPrototypeOf(e)===bi;function Ca(e,t,n,s=!1){const o={},r=xi();e.propsDefaults=Object.create(null),_i(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Wr(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function ka(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,a=ge(o),[u]=e.propsOptions;let d=!1;if((s||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let p=0;p{u=!0;const[h,y]=wi(p,t,!0);Fe(i,h),y&&a.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!u)return ye(e)&&s.set(e,un),un;if(X(r))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",Co=e=>X(e)?e.map(Ct):[Ct(e)],Ea=(e,t,n)=>{if(t._n)return t;const s=dt((...o)=>Co(t(...o)),n);return s._c=!1,s},Ci=(e,t,n)=>{const s=e._ctx;for(const o in e){if(wo(o))continue;const r=e[o];if(re(r))t[o]=Ea(o,r,s);else if(r!=null){const i=Co(r);t[o]=()=>i}}},ki=(e,t)=>{const n=Co(t);e.slots.default=()=>n},Ai=(e,t,n)=>{for(const s in t)(n||!wo(s))&&(e[s]=t[s])},Sa=(e,t,n)=>{const s=e.slots=xi();if(e.vnode.shapeFlag&32){const o=t._;o?(Ai(s,t,n),n&&$r(s,"_",o,!0)):Ci(t,s)}else t&&ki(e,t)},Ia=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=_e;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:Ai(o,t,n):(r=!t.$stable,Ci(t,o)),i=t}else t&&(ki(e,t),i={default:1});if(r)for(const a in o)!wo(a)&&i[a]==null&&delete o[a]},nt=Ta;function $a(e){return Ra(e)}function Ra(e,t){const n=xs();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:a,createComment:u,setText:d,setElementText:c,parentNode:p,nextSibling:h,setScopeId:y=At,insertStaticContent:D}=e,P=(f,m,g,w=null,S=null,A=null,F=void 0,N=null,M=!!m.dynamicChildren)=>{if(f===m)return;f&&!kn(f,m)&&(w=E(f),Te(f,S,A,!0),f=null),m.patchFlag===-2&&(M=!1,m.dynamicChildren=null);const{type:$,ref:Z,shapeFlag:B}=m;switch($){case Ss:K(f,m,g,w);break;case Et:q(f,m,g,w);break;case ss:f==null&&T(m,g,w,F);break;case le:Me(f,m,g,w,S,A,F,N,M);break;default:B&1?b(f,m,g,w,S,A,F,N,M):B&6?z(f,m,g,w,S,A,F,N,M):(B&64||B&128)&&$.process(f,m,g,w,S,A,F,N,M,Y)}Z!=null&&S?On(Z,f&&f.ref,A,m||f,!m):Z==null&&f&&f.ref!=null&&On(f.ref,null,A,f,!0)},K=(f,m,g,w)=>{if(f==null)s(m.el=a(m.children),g,w);else{const S=m.el=f.el;m.children!==f.children&&d(S,m.children)}},q=(f,m,g,w)=>{f==null?s(m.el=u(m.children||""),g,w):m.el=f.el},T=(f,m,g,w)=>{[f.el,f.anchor]=D(f.children,m,g,w,f.el,f.anchor)},V=({el:f,anchor:m},g,w)=>{let S;for(;f&&f!==m;)S=h(f),s(f,g,w),f=S;s(m,g,w)},k=({el:f,anchor:m})=>{let g;for(;f&&f!==m;)g=h(f),o(f),f=g;o(m)},b=(f,m,g,w,S,A,F,N,M)=>{if(m.type==="svg"?F="svg":m.type==="math"&&(F="mathml"),f==null)O(m,g,w,S,A,F,N,M);else{const $=f.el&&f.el._isVueCE?f.el:null;try{$&&$._beginPatch(),ke(f,m,S,A,F,N,M)}finally{$&&$._endPatch()}}},O=(f,m,g,w,S,A,F,N)=>{let M,$;const{props:Z,shapeFlag:B,transition:Q,dirs:te}=f;if(M=f.el=i(f.type,A,Z&&Z.is,Z),B&8?c(M,f.children):B&16&&U(f.children,M,null,w,S,js(f,A),F,N),te&&Yt(f,null,w,"created"),j(M,f,f.scopeId,F,w),Z){for(const xe in Z)xe!=="value"&&!$n(xe)&&r(M,xe,null,Z[xe],A,w);"value"in Z&&r(M,"value",null,Z.value,A),($=Z.onVnodeBeforeMount)&&yt($,w,f)}te&&Yt(f,null,w,"beforeMount");const fe=Pa(S,Q);fe&&Q.beforeEnter(M),s(M,m,g),(($=Z&&Z.onVnodeMounted)||fe||te)&&nt(()=>{try{$&&yt($,w,f),fe&&Q.enter(M),te&&Yt(f,null,w,"mounted")}finally{}},S)},j=(f,m,g,w,S)=>{if(g&&y(f,g),w)for(let A=0;A{for(let $=M;${const N=m.el=f.el;let{patchFlag:M,dynamicChildren:$,dirs:Z}=m;M|=f.patchFlag&16;const B=f.props||_e,Q=m.props||_e;let te;if(g&&Zt(g,!1),(te=Q.onVnodeBeforeUpdate)&&yt(te,g,m,f),Z&&Yt(m,f,g,"beforeUpdate"),g&&Zt(g,!0),$&&(!f.dynamicChildren||f.dynamicChildren.length!==$.length)&&(M=0,F=!1,$=null),(B.innerHTML&&Q.innerHTML==null||B.textContent&&Q.textContent==null)&&c(N,""),$?ee(f.dynamicChildren,$,N,g,w,js(m,S),A):F||de(f,m,N,null,g,w,js(m,S),A,!1),M>0){if(M&16)L(N,B,Q,g,S);else if(M&2&&B.class!==Q.class&&r(N,"class",null,Q.class,S),M&4&&r(N,"style",B.style,Q.style,S),M&8){const fe=m.dynamicProps;for(let xe=0;xe{te&&yt(te,g,m,f),Z&&Yt(m,f,g,"updated")},w)},ee=(f,m,g,w,S,A,F)=>{for(let N=0;N{if(m!==g){if(m!==_e)for(const A in m)!$n(A)&&!(A in g)&&r(f,A,m[A],null,S,w);for(const A in g){if($n(A))continue;const F=g[A],N=m[A];F!==N&&A!=="value"&&r(f,A,N,F,S,w)}"value"in g&&r(f,"value",m.value,g.value,S)}},Me=(f,m,g,w,S,A,F,N,M)=>{const $=m.el=f?f.el:a(""),Z=m.anchor=f?f.anchor:a("");let{patchFlag:B,dynamicChildren:Q,slotScopeIds:te}=m;te&&(N=N?N.concat(te):te),f==null?(s($,g,w),s(Z,g,w),U(m.children||[],g,Z,S,A,F,N,M)):B>0&&B&64&&Q&&f.dynamicChildren&&f.dynamicChildren.length===Q.length?(ee(f.dynamicChildren,Q,g,S,A,F,N),(m.key!=null||S&&m===S.subTree)&&Ei(f,m,!0)):de(f,m,g,Z,S,A,F,N,M)},z=(f,m,g,w,S,A,F,N,M)=>{m.slotScopeIds=N,f==null?m.shapeFlag&512?S.ctx.activate(m,g,w,F,M):tt(m,g,w,S,A,F,M):Ht(f,m,M)},tt=(f,m,g,w,S,A,F)=>{const N=f.component=ja(f,w,S);if(_o(f)&&(N.ctx.renderer=Y),La(N,!1,F),N.asyncDep){if(S&&S.registerDep(N,Se,F),!f.el){const M=N.subTree=ie(Et);q(null,M,m,g),f.placeholder=M.el}}else Se(N,f,m,g,S,A,F)},Ht=(f,m,g)=>{const w=m.component=f.component;if(_a(f,m,g))if(w.asyncDep&&!w.asyncResolved){pe(w,m,g);return}else w.next=m,w.update();else m.el=f.el,w.vnode=m},Se=(f,m,g,w,S,A,F)=>{const N=()=>{if(f.isMounted){let{next:B,bu:Q,u:te,parent:fe,vnode:xe}=f;{const rt=Si(f);if(rt){B&&(B.el=xe.el,pe(f,B,F)),rt.asyncDep.then(()=>{nt(()=>{f.isUnmounted||$()},S)});return}}let he=B,Re;Zt(f,!1),B?(B.el=xe.el,pe(f,B,F)):B=xe,Q&&ts(Q),(Re=B.props&&B.props.onVnodeBeforeUpdate)&&yt(Re,fe,B,xe),Zt(f,!0);const Pe=Lo(f),ot=f.subTree;f.subTree=Pe,P(ot,Pe,p(ot.el),E(ot),f,S,A),B.el=Pe.el,he===null&&wa(f,Pe.el),te&&nt(te,S),(Re=B.props&&B.props.onVnodeUpdated)&&nt(()=>yt(Re,fe,B,xe),S)}else{let B;const{el:Q,props:te}=m,{bm:fe,m:xe,parent:he,root:Re,type:Pe}=f,ot=fn(m);Zt(f,!1),fe&&ts(fe),!ot&&(B=te&&te.onVnodeBeforeMount)&&yt(B,he,m),Zt(f,!0);{Re.ce&&Re.ce._hasShadowRoot()&&Re.ce._injectChildStyle(Pe,f.parent?f.parent.type:void 0);const rt=f.subTree=Lo(f);P(null,rt,g,w,f,S,A),m.el=rt.el}if(xe&&nt(xe,S),!ot&&(B=te&&te.onVnodeMounted)){const rt=m;nt(()=>yt(B,he,rt),S)}(m.shapeFlag&256||he&&fn(he.vnode)&&he.vnode.shapeFlag&256)&&f.a&&nt(f.a,S),f.isMounted=!0,m=g=w=null}};f.scope.on();const M=f.effect=new Tr(N);f.scope.off();const $=f.update=M.run.bind(M),Z=f.job=M.runIfDirty.bind(M);Z.i=f,Z.id=f.uid,M.scheduler=()=>xo(Z),Zt(f,!0),$()},pe=(f,m,g)=>{m.component=f;const w=f.vnode.props;f.vnode=m,f.next=null,ka(f,m.props,w,g),Ia(f,m.children,g),Ut(),Oo(f),Lt()},de=(f,m,g,w,S,A,F,N,M=!1)=>{const $=f&&f.children,Z=f?f.shapeFlag:0,B=m.children,{patchFlag:Q,shapeFlag:te}=m;if(Q>0){if(Q&128){bt($,B,g,w,S,A,F,N,M);return}else if(Q&256){ct($,B,g,w,S,A,F,N,M);return}}te&8?(Z&16&&qe($,S,A),B!==$&&c(g,B)):Z&16?te&16?bt($,B,g,w,S,A,F,N,M):qe($,S,A,!0):(Z&8&&c(g,""),te&16&&U(B,g,w,S,A,F,N,M))},ct=(f,m,g,w,S,A,F,N,M)=>{f=f||un,m=m||un;const $=f.length,Z=m.length,B=Math.min($,Z);let Q;for(Q=0;QZ?qe(f,S,A,!0,!1,B):U(m,g,w,S,A,F,N,M,B)},bt=(f,m,g,w,S,A,F,N,M)=>{let $=0;const Z=m.length;let B=f.length-1,Q=Z-1;for(;$<=B&&$<=Q;){const te=f[$],fe=m[$]=M?Ot(m[$]):Ct(m[$]);if(kn(te,fe))P(te,fe,g,null,S,A,F,N,M);else break;$++}for(;$<=B&&$<=Q;){const te=f[B],fe=m[Q]=M?Ot(m[Q]):Ct(m[Q]);if(kn(te,fe))P(te,fe,g,null,S,A,F,N,M);else break;B--,Q--}if($>B){if($<=Q){const te=Q+1,fe=teQ)for(;$<=B;)Te(f[$],S,A,!0),$++;else{const te=$,fe=$,xe=new Map;for($=fe;$<=Q;$++){const De=m[$]=M?Ot(m[$]):Ct(m[$]);De.key!=null&&xe.set(De.key,$)}let he,Re=0;const Pe=Q-fe+1;let ot=!1,rt=0;const Qt=new Array(Pe);for($=0;$=Pe){Te(De,S,A,!0);continue}let ze;if(De.key!=null)ze=xe.get(De.key);else for(he=fe;he<=Q;he++)if(Qt[he-fe]===0&&kn(De,m[he])){ze=he;break}ze===void 0?Te(De,S,A,!0):(Qt[ze-fe]=$+1,ze>=rt?rt=ze:ot=!0,P(De,m[ze],g,null,S,A,F,N,M),Re++)}const Kn=ot?Oa(Qt):un;for(he=Kn.length-1,$=Pe-1;$>=0;$--){const De=fe+$,ze=m[De],Bt=m[De+1],Wn=De+1{const{el:A,type:F,transition:N,children:M,shapeFlag:$}=f;if($&6){We(f.component.subTree,m,g,w);return}if($&128){f.suspense.move(m,g,w);return}if($&64){F.move(f,m,g,Y);return}if(F===le){s(A,m,g);for(let B=0;BN.enter(A),S));else{const{leave:B,delayLeave:Q,afterLeave:te}=N,fe=()=>{f.ctx.isUnmounted?o(A):s(A,m,g)},xe=()=>{const he=A._isLeaving||!!A[Ns];A._isLeaving&&A[Ns](!0),N.persisted&&!he?fe():B(A,()=>{fe(),te&&te()})};Q?Q(A,fe,xe):xe()}else s(A,m,g)},Te=(f,m,g,w=!1,S=!1)=>{const{type:A,props:F,ref:N,children:M,dynamicChildren:$,shapeFlag:Z,patchFlag:B,dirs:Q,cacheIndex:te,memo:fe}=f;if(B===-2&&(S=!1),N!=null&&(Ut(),On(N,null,g,f,!0),Lt()),te!=null&&(m.renderCache[te]=void 0),Z&256){m.ctx.deactivate(f);return}const xe=Z&1&&Q,he=!fn(f);let Re;if(he&&(Re=F&&F.onVnodeBeforeUnmount)&&yt(Re,m,f),Z&6)xt(f.component,g,w);else{if(Z&128){f.suspense.unmount(g,w);return}xe&&Yt(f,null,m,"beforeUnmount"),Z&64?f.type.remove(f,m,g,Y,w):$&&!$.hasOnce&&(A!==le||B>0&&B&64)?qe($,m,g,!1,!0):(A===le&&B&384||!S&&Z&16)&&qe(M,m,g),w&&st(f)}const Pe=fe!=null&&te==null;(he&&(Re=F&&F.onVnodeUnmounted)||xe||Pe)&&nt(()=>{Re&&yt(Re,m,f),xe&&Yt(f,null,m,"unmounted"),Pe&&(f.el=null)},g)},st=f=>{const{type:m,el:g,anchor:w,transition:S}=f;if(m===le){ue(g,w);return}if(m===ss){k(f);return}const A=()=>{o(g),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(f.shapeFlag&1&&S&&!S.persisted){const{leave:F,delayLeave:N}=S,M=()=>F(g,A);N?N(f.el,A,M):M()}else A()},ue=(f,m)=>{let g;for(;f!==m;)g=h(f),o(f),f=g;o(m)},xt=(f,m,g)=>{const{bum:w,scope:S,job:A,subTree:F,um:N,m:M,a:$}=f;Ho(M),Ho($),w&&ts(w),S.stop(),A&&(A.flags|=8,Te(F,f,m,g)),N&&nt(N,m),nt(()=>{f.isUnmounted=!0},m)},qe=(f,m,g,w=!1,S=!1,A=0)=>{for(let F=A;F{if(f.shapeFlag&6)return E(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const m=h(f.anchor||f.el),g=m&&m[zl];return g?h(g):m};let W=!1;const H=(f,m,g)=>{let w;f==null?m._vnode&&(Te(m._vnode,null,null,!0),w=m._vnode.component):P(m._vnode||null,f,m,null,null,null,g),m._vnode=f,W||(W=!0,Oo(w),Zr(),W=!1)},Y={p:P,um:Te,m:We,r:st,mt:tt,mc:U,pc:de,pbc:ee,n:E,o:e};return{render:H,hydrate:void 0,createApp:ha(H)}}function js({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 Zt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Pa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ei(e,t,n=!1){const s=e.children,o=t.children;if(X(s)&&X(o))for(let r=0;r>1,e[n[a]]0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function Si(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Si(t)}function Ho(e){if(e)for(let t=0;te.__isSuspense;function Ta(e,t){t&&t.pendingBranch?X(e)?t.effects.push(...e):t.effects.push(e):Bl(e)}const le=Symbol.for("v-fgt"),Ss=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),ss=Symbol.for("v-stc"),jt=[];let lt=null;function _(e=!1){jt.push(lt=e?null:[])}function ko(){jt.pop(),lt=jt[jt.length-1]||null}let jn=1;function cs(e,t=!1){jn+=e,e<0&<&&t&&(lt.hasOnce=!0)}function Ri(e){return e.dynamicChildren=jn>0?lt||un:null,ko(),jn>0&<&<.push(e),e}function C(e,t,n,s,o,r){return Ri(l(e,t,n,s,o,r,!0))}function He(e,t,n,s,o){return Ri(ie(e,t,n,s,o,!0))}function Un(e){return e?e.__v_isVNode===!0:!1}function kn(e,t){return e.type===t.type&&e.key===t.key}const Pi=({key:e})=>e??null,os=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?$e(e)||Ke(e)||re(e)?{i:Le,r:e,k:t,f:!!n}:e:null);function l(e,t=null,n=null,s=0,o=null,r=e===le?0:1,i=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Pi(t),ref:t&&os(t),scopeId:ei,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Le};return a?(ds(u,n),r&128&&e.normalize(u)):n&&(u.shapeFlag|=$e(n)?8:16),jn>0&&!i&<&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&<.push(u),u}const ie=Ma;function Ma(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===ci)&&(e=Et),Un(e)){const a=vn(e,t,!0);return n&&ds(a,n),jn>0&&!r&<&&(a.shapeFlag&6?lt[lt.indexOf(e)]=a:lt.push(a)),a.patchFlag=-2,a}if(Ga(e)&&(e=e.__vccOpts),t){t=Da(t);let{class:a,style:u}=t;a&&!$e(a)&&(t.class=Ee(a)),ye(u)&&(go(u)&&!X(u)&&(u=Fe({},u)),t.style=sn(u))}const i=$e(e)?1:$i(e)?128:Cs(e)?64:ye(e)?4:re(e)?2:0;return l(e,t,n,s,o,i,r,!0)}function Da(e){return e?go(e)||yi(e)?Fe({},e):e:null}function vn(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:i,children:a,transition:u}=e,d=t?Ti(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Pi(d),ref:t&&t.ref?n&&r?X(r)?r.concat(os(t)):[r,os(t)]:os(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==le?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vn(e.ssContent),ssFallback:e.ssFallback&&vn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&s&&yo(c,u.clone(c)),c}function ae(e=" ",t=0){return ie(Ss,null,e,t)}function Oi(e,t){const n=ie(ss,null,e);return n.staticCount=t,n}function J(e="",t=!1){return t?(_(),He(Et,null,e)):ie(Et,null,e)}function Ct(e){return e==null||typeof e=="boolean"?ie(Et):X(e)?ie(le,null,e.slice()):Un(e)?Ot(e):ie(Ss,null,String(e))}function Ot(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vn(e)}function ds(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(X(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),ds(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!yi(t)?t._ctx=Le:o===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(re(t)){if(s&65){ds(e,{default:t});return}t={default:t,_ctx:Le},n=32}else t=String(t),s&64?(n=16,t=[ae(t)]):n=8;e.children=t,e.shapeFlag|=n}function Ti(...e){const t={};for(let n=0;nGe||Le;let fs,Ln;{const e=xs(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};fs=t("__VUE_INSTANCE_SETTERS__",n=>Ge=n),Ln=t("__VUE_SSR_SETTERS__",n=>Fn=n)}const Gn=e=>{const t=Ge;return fs(e),e.scope.on(),()=>{e.scope.off(),fs(t)}},Bo=()=>{Ge&&Ge.scope.off(),fs(null)};function Mi(e){return e.vnode.shapeFlag&4}let Fn=!1;function La(e,t=!1,n=!1){t&&Ln(t);const{props:s,children:o}=e.vnode,r=Mi(e);Ca(e,s,r,t),Sa(e,o,n||t);const i=r?Fa(e,t):void 0;return t&&Ln(!1),i}function Fa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,aa);const{setup:s}=n;if(s){Ut();const o=e.setupContext=s.length>1?Ha(e):null,r=Gn(e),i=Bn(s,e,0,[e.props,o]),a=Er(i);if(Lt(),r(),(a||e.sp)&&!fn(e)&&ri(e),a){if(i.then(Bo,Bo),t)return i.then(u=>{Ln(!0);try{Go(e,u,t)}finally{Ln(!1)}}).catch(u=>{ws(u,e,0)});e.asyncDep=i}else Go(e,i)}else Di(e)}function Go(e,t,n){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ye(t)&&(e.setupState=Jr(t)),Di(e)}function Di(e,t,n){const s=e.type;e.render||(e.render=s.render||At);{const o=Gn(e);Ut();try{ua(e)}finally{Lt(),o()}}}const qa={get(e,t){return Be(e,"get",""),e[t]}};function Ha(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,qa),slots:e.slots,emit:e.emit,expose:t}}function Is(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Jr(Ml(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Tn)return Tn[n](e)},has(t,n){return n in t||n in Tn}})):e.proxy}function Ba(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function Ga(e){return re(e)&&"__vccOpts"in e}const Ce=(e,t)=>Ul(e,t,Fn);function Ni(e,t,n){try{cs(-1);const s=arguments.length;return s===2?ye(t)&&!X(t)?Un(t)?ie(e,null,[t]):ie(e,t):ie(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Un(n)&&(n=[n]),ie(e,t,n))}finally{cs(1)}}const Ka="3.5.41";/** * @vue/runtime-dom v3.5.41 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let to;const Ko=typeof window<"u"&&window.trustedTypes;if(Ko)try{to=Ko.createPolicy("vue",{createHTML:e=>e})}catch{}const Vi=to?e=>to.createHTML(e):e=>e,Wa="http://www.w3.org/2000/svg",za="http://www.w3.org/1998/Math/MathML",Rt=typeof document<"u"?document:null,Wo=Rt&&Rt.createElement("template"),Ja={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?Rt.createElementNS(Wa,e):t==="mathml"?Rt.createElementNS(za,e):n?Rt.createElement(e,{is:n}):Rt.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>Rt.createTextNode(e),createComment:e=>Rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{Wo.innerHTML=Vi(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const a=Wo.content;if(s==="svg"||s==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Qa=Symbol("_vtc");function Ya(e,t,n){const s=e[Qa];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const zo=Symbol("_vod"),Za=Symbol("_vsh"),Xa=Symbol(""),eu=/(?:^|;)\s*display\s*:/;function tu(e,t,n){const s=e.style,o=$e(n);let r=!1;if(n&&!o){if(t)if($e(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Sn(s,a,"")}else for(const i in t)n[i]==null&&Sn(s,i,"");for(const i in n){i==="display"&&(r=!0);const a=n[i];a!=null?su(e,i,!$e(t)&&t?t[i]:void 0,a)||Sn(s,i,a):Sn(s,i,"")}}else if(o){if(t!==n){const i=s[Xa];i&&(n+=";"+i),s.cssText=n,r=eu.test(n)}}else t&&e.removeAttribute("style");zo in e&&(e[zo]=r?s.display:"",e[Za]&&(s.display="none"))}const Jo=/\s*!important$/;function Sn(e,t,n){if(X(n))n.forEach(s=>Sn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=nu(e,t);Jo.test(n)?e.setProperty(on(s),n.replace(Jo,""),"important"):e[s]=n}}const Qo=["Webkit","Moz","ms"],Us={};function nu(e,t){const n=Us[t];if(n)return n;let s=et(t);if(s!=="filter"&&s in e)return Us[t]=s;s=gs(s);for(let o=0;oLs||(uu.then(()=>Ls=0),Ls=Date.now());function du(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const o=n.value;if(X(o)){const r=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{r.call(s),s._stopped=!0};const i=o.slice(),a=[s];for(let u=0;ue.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,fu=(e,t,n,s,o,r)=>{const i=o==="svg";t==="class"?Ya(e,s,i):t==="style"?tu(e,n,s):ms(t)?hs(t)||ru(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pu(e,t,s,i))?(Xo(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Zo(e,t,s,i,r,t!=="value")):e._isVueCE&&(mu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!$e(s)))?Xo(e,et(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Zo(e,t,s,i))};function pu(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&tr(t)&&re(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return tr(t)&&$e(n)?!1:t in e}function mu(e,t){const n=e._def.props;if(!n)return!1;const s=et(t);return Array.isArray(n)?n.some(o=>et(o)===s):Object.keys(n).some(o=>et(o)===s)}const Jt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return X(t)?n=>ts(t,n):t};function hu(e){e.target.composing=!0}function nr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const at=Symbol("_assign"),Zn=Symbol("_initialValue");function Fs(e,t,n){return t&&(e=e.trim()),n&&(e=bs(e)),e}const me={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e.parentNode&&(e.type==="text"?e[Zn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Zn]=e.defaultValue.replace(/\r\n?/g,` `))),e[at]=Jt(o);const r=s||o.props&&o.props.type==="number";Nt(e,t?"change":"input",i=>{i.target.composing||e[at](Fs(e.value,n,r))}),(n||r)&&Nt(e,"change",()=>{e.value=Fs(e.value,n,r)}),t||(Nt(e,"compositionstart",hu),Nt(e,"compositionend",nr),Nt(e,"change",nr))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const o=t??"",r=e[Zn];delete e[Zn],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[at](Fs(e.value,n,s)):e.value=o},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:r}},i){if(e[at]=Jt(i),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?bs(e.value):e.value,u=t??"";if(a===u)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(s&&t===n||o&&e.value.trim()===u)||(e.value=u)}},Pt={deep:!0,created(e,t,n){e[at]=Jt(n),Nt(e,"change",()=>{const s=e._modelValue,o=bn(e),r=e.checked,i=e[at];if(X(s)){const a=uo(s,o),u=a!==-1;if(r&&!u)i(s.concat(o));else if(!r&&u){const d=[...s];d.splice(a,1),i(d)}}else if(_n(s)){const a=new Set(s);r?a.add(o):a.delete(o),i(a)}else i(ji(e,r))})},mounted:sr,beforeUpdate(e,t,n){e[at]=Jt(n),sr(e,t,n)}};function sr(e,{value:t,oldValue:n},s){e._modelValue=t;let o;if(X(t))o=uo(t,s.props.value)>-1;else if(_n(t))o=t.has(s.props.value);else{if(t===n)return;o=zt(t,ji(e,!0))}e.checked!==o&&(e.checked=o)}const vu={created(e,{value:t},n){e.checked=zt(t,n.props.value),e[at]=Jt(n),Nt(e,"change",()=>{e[at](bn(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[at]=Jt(s),t!==n&&(e.checked=zt(t,s.props.value))}},gn={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,Nt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?bs(bn(r)):bn(r));e[at](e.multiple?_n(e._modelValue)?new Set(o):o:o[0]),e._assigning=!0,bo(()=>{e._assigning=!1})}),e[at]=Jt(s)},mounted(e,{value:t}){or(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[at]=Jt(n)},updated(e,{value:t}){e._assigning||or(e,t)}};function or(e,t){const n=e.multiple,s=X(t);if(!(n&&!s&&!_n(t))){for(let o=0,r=e.options.length;oString(d)===String(a)):i.selected=uo(t,a)>-1}else i.selected=t.has(a);else if(zt(bn(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function bn(e){return"_value"in e?e._value:e.value}function ji(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gu=["ctrl","shift","alt","meta"],bu={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)=>gu.some(n=>e[`${n}Key`]&&!t.includes(n))},Ve=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((o,...r)=>{for(let i=0;i{const t=yu().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Cu(s);if(!o)return;const r=t._component;!re(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,wu(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function wu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Cu(e){return $e(e)?document.querySelector(e):e}const ku=["width","height"],Ze={__name:"UiIcono",props:{nombre:{type:String,required:!0},tam:{type:[Number,String],default:16}},setup(e){const t={luna:[["path",{d:"M20 14.5A8.5 8.5 0 0 1 9.5 4a8.5 8.5 0 1 0 10.5 10.5Z"}]],sol:[["circle",{cx:12,cy:12,r:4}],["path",{d:"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"}]],lapiz:[["path",{d:"M12 20h9"}],["path",{d:"M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z"}]],cerrar:[["path",{d:"M18 6 6 18M6 6l12 12"}]],atras:[["path",{d:"M19 12H5M12 19l-7-7 7-7"}]],grafico:[["path",{d:"M3 3v18h18"}],["path",{d:"M7 15v3M12 10v8M17 6v12"}]],cerebro:[["path",{d:"M9.5 3A2.5 2.5 0 0 0 7 5.5v.2A2.7 2.7 0 0 0 5 8.3c0 .8.3 1.5.9 2A2.8 2.8 0 0 0 5 12.5c0 1 .5 1.9 1.3 2.4-.2.4-.3.8-.3 1.2A2.9 2.9 0 0 0 9 19a2.5 2.5 0 0 0 3 2V3.8A2.5 2.5 0 0 0 9.5 3Z"}],["path",{d:"M14.5 3A2.5 2.5 0 0 1 17 5.5v.2a2.7 2.7 0 0 1 2 2.6c0 .8-.3 1.5-.9 2A2.8 2.8 0 0 1 19 12.5c0 1-.5 1.9-1.3 2.4.2.4.3.8.3 1.2A2.9 2.9 0 0 1 15 19a2.5 2.5 0 0 1-3 2"}]],imagen:[["rect",{x:3,y:3,width:18,height:18,rx:2}],["circle",{cx:8.5,cy:8.5,r:1.5}],["path",{d:"m21 15-5-5L5 21"}]],microfono:[["rect",{x:9,y:2,width:6,height:12,rx:3}],["path",{d:"M5 10a7 7 0 0 0 14 0M12 17v5"}]],escribir:[["path",{d:"M3 21h18"}],["path",{d:"M5 17 17.5 4.5a2.1 2.1 0 0 1 3 3L8 20l-4 1Z"}]],archivo:[["path",{d:"M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z"}],["path",{d:"M14 2v5h5"}]],sitio:[["circle",{cx:12,cy:12,r:9}],["path",{d:"M3 12h18M12 3a15 15 0 0 1 0 18 15 15 0 0 1 0-18Z"}]],refrescar:[["path",{d:"M21 12a9 9 0 1 1-3-6.7"}],["path",{d:"M21 4v5h-5"}]],descargar:[["path",{d:"M12 3v12"}],["path",{d:"m7 11 5 5 5-5"}],["path",{d:"M4 21h16"}]],alerta:[["path",{d:"M12 9v4M12 17h.01"}],["path",{d:"M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z"}]],ok:[["path",{d:"M20 6 9 17l-5-5"}]],copiar:[["rect",{x:9,y:9,width:12,height:12,rx:2}],["path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"}]],mensaje:[["path",{d:"M21 11.5a8.4 8.4 0 0 1-9 8.4 8.5 8.5 0 0 1-3.9-.9L3 21l1.9-5.1A8.4 8.4 0 0 1 4 11.5a8.5 8.5 0 0 1 8.5-8.5A8.4 8.4 0 0 1 21 11.5Z"}]],auto:[["path",{d:"M17 2.1 21 6l-4 3.9"}],["path",{d:"M3 11V9a4 4 0 0 1 4-4h14"}],["path",{d:"M7 21.9 3 18l4-3.9"}],["path",{d:"M21 13v2a4 4 0 0 1-4 4H3"}]]};return(n,s)=>(_(),C("svg",{width:e.tam,height:e.tam,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.75","stroke-linecap":"round","stroke-linejoin":"round",class:"inline-block shrink-0 align-[-0.15em]","aria-hidden":"true"},[(_(!0),C(le,null,Ie(t[e.nombre]||[],(o,r)=>(_(),He(ia(o[0]),Ti({key:r},{ref_for:!0},o[1]),null,16))),128))],8,ku))}};/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */const an=typeof document<"u";function Ui(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Au(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ui(e.default)}const ve=Object.assign;function qs(e,t){const n={};for(const s in t){const o=t[s];n[s]=gt(o)?o.map(e):e(o)}return n}const Mn=()=>{},gt=Array.isArray;function ir(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const Li=/#/g,Eu=/&/g,Su=/\//g,Iu=/=/g,$u=/\?/g,Fi=/\+/g,Ru=/%5B/g,Pu=/%5D/g,qi=/%5E/g,Ou=/%60/g,Hi=/%7B/g,Tu=/%7C/g,Bi=/%7D/g,Mu=/%20/g;function Ao(e){return e==null?"":encodeURI(""+e).replace(Tu,"|").replace(Ru,"[").replace(Pu,"]")}function Du(e){return Ao(e).replace(Hi,"{").replace(Bi,"}").replace(qi,"^")}function no(e){return Ao(e).replace(Fi,"%2B").replace(Mu,"+").replace(Li,"%23").replace(Eu,"%26").replace(Ou,"`").replace(Hi,"{").replace(Bi,"}").replace(qi,"^")}function Nu(e){return no(e).replace(Iu,"%3D")}function Vu(e){return Ao(e).replace(Li,"%23").replace($u,"%3F")}function ju(e){return Vu(e).replace(Su,"%2F")}function qn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Uu=/\/$/,Lu=e=>e.replace(Uu,"");function Hs(e,t,n="/"){let s,o={},r="",i="";const a=t.indexOf("#");let u=t.indexOf("?");return u=a>=0&&u>a?-1:u,u>=0&&(s=t.slice(0,u),r=t.slice(u,a>0?a:t.length),o=e(r.slice(1))),a>=0&&(s=s||t.slice(0,a),i=t.slice(a,t.length)),s=Bu(s??t,n),{fullPath:s+r+i,path:s,query:o,hash:qn(i)}}function Fu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function lr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function qu(e,t,n){const s=t.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&xn(t.matched[s],n.matched[o])&&Gi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function xn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Gi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Hu(e[n],t[n]))return!1;return!0}function Hu(e,t){return gt(e)?ar(e,t):gt(t)?ar(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function ar(e,t){return gt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Bu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),o=s[s.length-1];(o===".."||o===".")&&s.push("");let r=n.length-1,i,a;for(i=0;i1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(i).join("/")}const Gt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let so=(function(e){return e.pop="pop",e.push="push",e})({}),Bs=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Gu(e){if(!e)if(an){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Lu(e)}const Ku=/^[^#]+#/;function Wu(e,t){return e.replace(Ku,"#")+t}function zu(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const $s=()=>({left:window.scrollX,top:window.scrollY});function Ju(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=zu(o,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 ur(e,t){return(history.state?history.state.position-t:-1)+e}const oo=new Map;function Qu(e,t){oo.set(e,t)}function Yu(e){const t=oo.get(e);return oo.delete(e),t}function Zu(e){return typeof e=="string"||e&&typeof e=="object"}function Ki(e){return typeof e=="string"||typeof e=="symbol"}let Oe=(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 Wi=Symbol("");Oe.MATCHER_NOT_FOUND+"",Oe.NAVIGATION_GUARD_REDIRECT+"",Oe.NAVIGATION_ABORTED+"",Oe.NAVIGATION_CANCELLED+"",Oe.NAVIGATION_DUPLICATED+"";function yn(e,t){return ve(new Error,{type:e,[Wi]:!0},t)}function $t(e,t){return e instanceof Error&&Wi in e&&(t==null||!!(e.type&t))}const Xu=["params","query","hash"];function ec(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Xu)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function tc(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&no(o)):[s&&no(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function nc(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=gt(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const sc=Symbol(""),dr=Symbol(""),Rs=Symbol(""),Eo=Symbol(""),ro=Symbol("");function An(){let e=[];function t(s){return e.push(s),()=>{const o=e.indexOf(s);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Wt(e,t,n,s,o,r=i=>i()){const i=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((a,u)=>{const d=h=>{h===!1?u(yn(Oe.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?u(h):Zu(h)?u(yn(Oe.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(i&&s.enterCallbacks[o]===i&&typeof h=="function"&&i.push(h),a())},c=r(()=>e.call(s&&s.instances[o],t,n,d));let p=Promise.resolve(c);e.length<3&&(p=p.then(d)),p.catch(h=>u(h))})}function Gs(e,t,n,s,o=r=>r()){const r=[];for(const i of e)for(const a in i.components){let u=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(Ui(u)){const d=(u.__vccOpts||u)[t];d&&r.push(Wt(d,n,s,i,a,o))}else{let d=u();r.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const p=Au(c)?c.default:c;i.mods[a]=c,i.components[a]=p;const h=(p.__vccOpts||p)[t];return h&&Wt(h,n,s,i,a,o)()}))}}return r}function oc(e,t){const n=[],s=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let i=0;ixn(d,a))?s.push(a):n.push(a));const u=e.matched[i];u&&(t.matched.find(d=>xn(d,u))||o.push(u))}return[n,s,o]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */let rc=()=>location.protocol+"//"+location.host;function zi(e,t){const{pathname:n,search:s,hash:o}=t,r=e.indexOf("#");if(r>-1){let i=o.includes(e.slice(r))?e.slice(r).length:1,a=o.slice(i);return a[0]!=="/"&&(a="/"+a),lr(a,"")}return lr(n,e)+s+o}function ic(e,t,n,s){let o=[],r=[],i=null;const a=({state:h})=>{const y=zi(e,location),D=n.value,P=t.value;let K=0;if(h){if(n.value=y,t.value=h,i&&i===D){i=null;return}K=P?h.position-P.position:0}else s(y);o.forEach(q=>{q(n.value,D,{delta:K,type:so.pop,direction:K?K>0?Bs.forward:Bs.back:Bs.unknown})})};function u(){i=n.value}function d(h){o.push(h);const y=()=>{const D=o.indexOf(h);D>-1&&o.splice(D,1)};return r.push(y),y}function c(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(ve({},h.state,{scroll:$s()}),"")}}function p(){for(const h of r)h();r=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:u,listen:d,destroy:p}}function fr(e,t,n,s=!1,o=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:o?$s():null}}function lc(e){const{history:t,location:n}=window,s={value:zi(e,n)},o={value:t.state};o.value||r(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(u,d,c){const p=e.indexOf("#"),h=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+u:rc()+e+u;try{t[c?"replaceState":"pushState"](d,"",h),o.value=d}catch(y){console.error(y),n[c?"replace":"assign"](h)}}function i(u,d){r(u,ve({},t.state,fr(o.value.back,u,o.value.forward,!0),d,{position:o.value.position}),!0),s.value=u}function a(u,d){const c=ve({},o.value,t.state,{forward:u,scroll:$s()});r(c.current,c,!0),r(u,ve({},fr(s.value,u,null),{position:c.position+1},d),!1),s.value=u}return{location:s,state:o,push:a,replace:i}}function ac(e){e=Gu(e);const t=lc(e),n=ic(e,t.state,t.location,t.replace);function s(r,i=!0){i||n.pauseListeners(),history.go(r)}const o=ve({location:"",base:e,go:s,createHref:Wu.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let en=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Ne=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Ne||{});const uc={type:en.Static,value:""},cc=/[a-zA-Z0-9_]/;function dc(e){if(!e)return[[]];if(e==="/")return[[uc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(y){throw new Error(`ERR (${n})/"${d}": ${y}`)}let n=Ne.Static,s=n;const o=[];let r;function i(){r&&o.push(r),r=[]}let a=0,u,d="",c="";function p(){d&&(n===Ne.Static?r.push({type:en.Static,value:d}):n===Ne.Param||n===Ne.ParamRegExp||n===Ne.ParamRegExpEnd?(r.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),r.push({type:en.Param,value:d,regexp:c,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),d="")}function h(){d+=u}for(;at.length?t.length===1&&t[0]===Qe.Static+Qe.Segment?1:-1:0}function Ji(e,t){let n=0;const s=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const vc={strict:!1,end:!0,sensitive:!1};function gc(e,t,n){const s=mc(dc(e.path),n),o=ve(s,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function bc(e,t){const n=[],s=new Map;t=ir(vc,t);function o(p){return s.get(p)}function r(p,h,y){const D=!y,P=vr(p);P.aliasOf=y&&y.record;const K=ir(t,p),q=[P];if("alias"in p){const k=typeof p.alias=="string"?[p.alias]:p.alias;for(const b of k)q.push(vr(ve({},P,{components:y?y.record.components:P.components,path:b,aliasOf:y?y.record:P})))}let T,V;for(const k of q){const{path:b}=k;if(h&&b[0]!=="/"){const O=h.record.path,j=O[O.length-1]==="/"?"":"/";k.path=h.record.path+(b&&j+b)}if(T=gc(k,h,K),y?y.alias.push(T):(V=V||T,V!==T&&V.alias.push(T),D&&p.name&&!gr(T)&&i(p.name)),Qi(T)&&u(T),P.children){const O=P.children;for(let j=0;j{i(V)}:Mn}function i(p){if(Ki(p)){const h=s.get(p);h&&(s.delete(p),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(p);h>-1&&(n.splice(h,1),p.record.name&&s.delete(p.record.name),p.children.forEach(i),p.alias.forEach(i))}}function a(){return n}function u(p){const h=_c(p,n);n.splice(h,0,p),p.record.name&&!gr(p)&&s.set(p.record.name,p)}function d(p,h){let y,D={},P,K;if("name"in p&&p.name){if(y=s.get(p.name),!y)throw yn(Oe.MATCHER_NOT_FOUND,{location:p});K=y.record.name,D=ve(hr(h.params,y.keys.filter(V=>!V.optional).concat(y.parent?y.parent.keys.filter(V=>V.optional):[]).map(V=>V.name)),p.params&&hr(p.params,y.keys.map(V=>V.name))),P=y.stringify(D)}else if(p.path!=null)P=p.path,y=n.find(V=>V.re.test(P)),y&&(D=y.parse(P),K=y.record.name);else{if(y=h.name?s.get(h.name):n.find(V=>V.re.test(h.path)),!y)throw yn(Oe.MATCHER_NOT_FOUND,{location:p,currentLocation:h});K=y.record.name,D=ve({},h.params,p.params),P=y.stringify(D)}const q=[];let T=y;for(;T;)q.unshift(T.record),T=T.parent;return{name:K,path:P,params:D,matched:q,meta:yc(q)}}e.forEach(p=>r(p));function c(){n.length=0,s.clear()}return{addRoute:r,resolve:d,removeRoute:i,clearRoutes:c,getRoutes:a,getRecordMatcher:o}}function hr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function vr(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:xc(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 xc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function gr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yc(e){return e.reduce((t,n)=>ve(t,n.meta),{})}function _c(e,t){let n=0,s=t.length;for(;n!==s;){const r=n+s>>1;Ji(e,t[r])<0?s=r:n=r+1}const o=wc(e);return o&&(s=t.lastIndexOf(o,s-1)),s}function wc(e){let t=e;for(;t=t.parent;)if(Qi(t)&&Ji(e,t)===0)return t}function Qi({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function br(e){const t=pt(Rs),n=pt(Eo),s=Ce(()=>{const u=je(e.to);return t.resolve(u)}),o=Ce(()=>{const{matched:u}=s.value,{length:d}=u,c=u[d-1],p=n.matched;if(!c||!p.length)return-1;const h=p.findIndex(xn.bind(null,c));if(h>-1)return h;const y=xr(u[d-2]);return d>1&&xr(c)===y&&p[p.length-1].path!==y?p.findIndex(xn.bind(null,u[d-2])):h}),r=Ce(()=>o.value>-1&&Sc(n.params,s.value.params)),i=Ce(()=>o.value>-1&&o.value===n.matched.length-1&&Gi(n.params,s.value.params));function a(u={}){if(Ec(u)){const d=t[je(e.replace)?"replace":"push"](je(e.to)).catch(Mn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:s,href:Ce(()=>s.value.href),isActive:r,isExactActive:i,navigate:a}}function Cc(e){return e.length===1?e[0]:e}const kc=oi({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:br,setup(e,{slots:t}){const n=_s(br(e)),{options:s}=pt(Rs),o=Ce(()=>({[yr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[yr(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&Cc(t.default(n));return e.custom?r:Ni("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),Ac=kc;function Ec(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 Sc(e,t){for(const n in t){const s=t[n],o=e[n];if(typeof s=="string"){if(s!==o)return!1}else if(!gt(o)||o.length!==s.length||s.some((r,i)=>r.valueOf()!==o[i].valueOf()))return!1}return!0}function xr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const yr=(e,t,n)=>e??t??n,Ic=oi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=pt(ro),o=Ce(()=>e.route||s.value),r=pt(dr,0),i=Ce(()=>{let d=je(r);const{matched:c}=o.value;let p;for(;(p=c[d])&&!p.components;)d++;return d}),a=Ce(()=>o.value.matched[i.value]);ns(dr,Ce(()=>i.value+1)),ns(sc,a),ns(ro,o);const u=G();return Vt(()=>[u.value,a.value,e.name],([d,c,p],[h,y,D])=>{c&&(c.instances[p]=d,y&&y!==c&&d&&d===h&&(c.leaveGuards.size||(c.leaveGuards=y.leaveGuards),c.updateGuards.size||(c.updateGuards=y.updateGuards))),d&&c&&(!y||!xn(c,y)||!h)&&(c.enterCallbacks[p]||[]).forEach(P=>P(d))},{flush:"post"}),()=>{const d=o.value,c=e.name,p=a.value,h=p&&p.components[c];if(!h)return _r(n.default,{Component:h,route:d});const y=p.props[c],D=y?y===!0?d.params:typeof y=="function"?y(d):y:null,K=Ni(h,ve({},D,t,{onVnodeUnmounted:q=>{q.component.isUnmounted&&(p.instances[c]=null)},ref:u}));return _r(n.default,{Component:K,route:d})||K}}});function _r(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const $c=Ic;function Rc(e){const t=bc(e.routes,e),n=e.parseQuery||tc,s=e.stringifyQuery||cr,o=e.history,r=An(),i=An(),a=An(),u=Dl(Gt);let d=Gt;an&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=qs.bind(null,E=>""+E),p=qs.bind(null,ju),h=qs.bind(null,qn);function y(E,W){let H,Y;return Ki(E)?(H=t.getRecordMatcher(E),Y=W):Y=E,t.addRoute(Y,H)}function D(E){const W=t.getRecordMatcher(E);W&&t.removeRoute(W)}function P(){return t.getRoutes().map(E=>E.record)}function K(E){return!!t.getRecordMatcher(E)}function q(E,W){if(W=ve({},W||u.value),typeof E=="string"){const g=Hs(n,E,W.path),w=t.resolve({path:g.path},W),S=o.createHref(g.fullPath);return ve(g,w,{params:h(w.params),hash:qn(g.hash),redirectedFrom:void 0,href:S})}let H;if(E.path!=null)H=ve({},E,{path:Hs(n,E.path,W.path).path});else{const g=ve({},E.params);for(const w in g)g[w]==null&&delete g[w];H=ve({},E,{params:p(g)}),W.params=p(W.params)}const Y=t.resolve(H,W),ce=E.hash||"";Y.params=c(h(Y.params));const f=Fu(s,ve({},E,{hash:Du(ce),path:Y.path})),m=o.createHref(f);return ve({fullPath:f,hash:ce,query:s===cr?nc(E.query):E.query||{}},Y,{redirectedFrom:void 0,href:m})}function T(E){return typeof E=="string"?Hs(n,E,u.value.path):ve({},E)}function V(E,W){if(d!==E)return yn(Oe.NAVIGATION_CANCELLED,{from:W,to:E})}function k(E){return j(E)}function b(E){return k(ve(T(E),{replace:!0}))}function O(E,W){const H=E.matched[E.matched.length-1];if(H&&H.redirect){const{redirect:Y}=H;let ce=typeof Y=="function"?Y(E,W):Y;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=T(ce):{path:ce},ce.params={}),ve({query:E.query,hash:E.hash,params:ce.path!=null?{}:E.params},ce)}}function j(E,W){const H=d=q(E),Y=u.value,ce=E.state,f=E.force,m=E.replace===!0,g=O(H,Y);if(g)return j(ve(T(g),{state:typeof g=="object"?ve({},ce,g.state):ce,force:f,replace:m}),W||H);const w=H;w.redirectedFrom=W;let S;return!f&&qu(s,Y,H)&&(S=yn(Oe.NAVIGATION_DUPLICATED,{to:w,from:Y}),We(Y,Y,!0,!1)),(S?Promise.resolve(S):ee(w,Y)).catch(A=>$t(A)?$t(A,Oe.NAVIGATION_GUARD_REDIRECT)?A:bt(A):de(A,w,Y)).then(A=>{if(A){if($t(A,Oe.NAVIGATION_GUARD_REDIRECT))return j(ve({replace:m},T(A.to),{state:typeof A.to=="object"?ve({},ce,A.to.state):ce,force:f}),W||w)}else A=Me(w,Y,!0,m,ce);return L(w,Y,A),A})}function U(E,W){const H=V(E,W);return H?Promise.reject(H):Promise.resolve()}function ke(E){const W=ue.values().next().value;return W&&typeof W.runWithContext=="function"?W.runWithContext(E):E()}function ee(E,W){let H;const[Y,ce,f]=oc(E,W);H=Gs(Y.reverse(),"beforeRouteLeave",E,W);for(const g of Y)g.leaveGuards.forEach(w=>{H.push(Wt(w,E,W))});const m=U.bind(null,E,W);return H.push(m),qe(H).then(()=>{H=[];for(const g of r.list())H.push(Wt(g,E,W));return H.push(m),qe(H)}).then(()=>{H=Gs(ce,"beforeRouteUpdate",E,W);for(const g of ce)g.updateGuards.forEach(w=>{H.push(Wt(w,E,W))});return H.push(m),qe(H)}).then(()=>{H=[];for(const g of f)if(g.beforeEnter)if(gt(g.beforeEnter))for(const w of g.beforeEnter)H.push(Wt(w,E,W));else H.push(Wt(g.beforeEnter,E,W));return H.push(m),qe(H)}).then(()=>(E.matched.forEach(g=>g.enterCallbacks={}),H=Gs(f,"beforeRouteEnter",E,W,ke),H.push(m),qe(H))).then(()=>{H=[];for(const g of i.list())H.push(Wt(g,E,W));return H.push(m),qe(H)}).catch(g=>$t(g,Oe.NAVIGATION_CANCELLED)?g:Promise.reject(g))}function L(E,W,H){a.list().forEach(Y=>ke(()=>Y(E,W,H)))}function Me(E,W,H,Y,ce){const f=V(E,W);if(f)return f;const m=W===Gt,g=an?history.state:{};H&&(Y||m?o.replace(E.fullPath,ve({scroll:m&&g&&g.scroll},ce)):o.push(E.fullPath,ce)),u.value=E,We(E,W,H,m),bt()}let z;function tt(){z||(z=o.listen((E,W,H)=>{if(!xt.listening)return;const Y=q(E),ce=O(Y,xt.currentRoute.value);if(ce){j(ve(ce,{replace:!0,force:!0}),Y).catch(Mn);return}d=Y;const f=u.value;an&&Qu(ur(f.fullPath,H.delta),$s()),ee(Y,f).catch(m=>$t(m,Oe.NAVIGATION_ABORTED|Oe.NAVIGATION_CANCELLED)?m:$t(m,Oe.NAVIGATION_GUARD_REDIRECT)?(j(ve(T(m.to),{force:!0}),Y).then(g=>{$t(g,Oe.NAVIGATION_ABORTED|Oe.NAVIGATION_DUPLICATED)&&!H.delta&&H.type===so.pop&&o.go(-1,!1)}).catch(Mn),Promise.reject()):(H.delta&&o.go(-H.delta,!1),de(m,Y,f))).then(m=>{m=m||Me(Y,f,!1),m&&(H.delta&&!$t(m,Oe.NAVIGATION_CANCELLED)?o.go(-H.delta,!1):H.type===so.pop&&$t(m,Oe.NAVIGATION_ABORTED|Oe.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),L(Y,f,m)}).catch(Mn)}))}let Ht=An(),Se=An(),pe;function de(E,W,H){bt(E);const Y=Se.list();return Y.length?Y.forEach(ce=>ce(E,W,H)):console.error(E),Promise.reject(E)}function ct(){return pe&&u.value!==Gt?Promise.resolve():new Promise((E,W)=>{Ht.add([E,W])})}function bt(E){return pe||(pe=!E,tt(),Ht.list().forEach(([W,H])=>E?H(E):W()),Ht.reset()),E}function We(E,W,H,Y){const{scrollBehavior:ce}=e;if(!an||!ce)return Promise.resolve();const f=!H&&Yu(ur(E.fullPath,0))||(Y||!H)&&history.state&&history.state.scroll||null;return bo().then(()=>ce(E,W,f)).then(m=>m&&Ju(m)).catch(m=>de(m,E,W))}const Te=E=>o.go(E);let st;const ue=new Set,xt={currentRoute:u,listening:!0,addRoute:y,removeRoute:D,clearRoutes:t.clearRoutes,hasRoute:K,getRoutes:P,resolve:q,options:e,push:k,replace:b,go:Te,back:()=>Te(-1),forward:()=>Te(1),beforeEach:r.add,beforeResolve:i.add,afterEach:a.add,onError:Se.add,isReady:ct,install(E){E.component("RouterLink",Ac),E.component("RouterView",$c),E.config.globalProperties.$router=xt,Object.defineProperty(E.config.globalProperties,"$route",{enumerable:!0,get:()=>je(u)}),an&&!st&&u.value===Gt&&(st=!0,k(o.location).catch(Y=>{}));const W={};for(const Y in Gt)Object.defineProperty(W,Y,{get:()=>u.value[Y],enumerable:!0});E.provide(Rs,xt),E.provide(Eo,Wr(W)),E.provide(ro,u);const H=E.unmount;ue.add(E),E.unmount=function(){ue.delete(E),ue.size<1&&(d=Gt,z&&z(),z=null,u.value=Gt,st=!1,pe=!1),H()}}};function qe(E){return E.reduce((W,H)=>W.then(()=>ke(H)),Promise.resolve())}return xt}function So(){return pt(Rs)}function Yi(e){return pt(Eo)}const Xn=window.location.pathname.startsWith("/portal/"),Xe={esPortal:Xn,baseRuta:Xn?"/portal/studio/":"/studio/",apiBase:Xn?"/portal":"/app",urlLogin:Xn?"/portal/login":"/login"};function se(e){return Xe.apiBase+e}async function es(e,t={}){const n=await fetch(e,{...t,headers:{"Content-Type":"application/json",...t.headers}}),s=n.headers.get("content-type")||"";if(n.redirected||!s.includes("application/json"))throw window.location.href=Xe.urlLogin,new Error("Sesión expirada");const o=await n.json();if(!n.ok){const r=typeof(o==null?void 0:o.error)=="string"?o.error:o==null?void 0:o.message;throw new Error(r||"Error de servidor")}return o}const oe={get:e=>es(e),post:(e,t)=>es(e,{method:"POST",body:JSON.stringify(t)}),put:(e,t)=>es(e,{method:"PUT",body:JSON.stringify(t)}),del:e=>es(e,{method:"DELETE"})},In=G(!1),Pc={class:"h-14 px-4 flex items-center gap-2 border-b border-borde"},Oc={key:0,class:"px-3 pt-3"},Tc={key:1,class:"px-3 pt-2 text-xs text-red-600 dark:text-red-400"},Mc={class:"flex-1 overflow-y-auto px-2 py-3 space-y-0.5"},Dc={key:0,class:"px-2 text-xs text-tenue"},Nc={key:1,class:"px-2 text-xs text-tenue"},Vc={class:"truncate"},jc={class:"flex items-center gap-1 mt-0.5"},Uc={class:"text-[11px] text-tenue"},Lc={key:0,class:"flex opacity-0 group-hover:opacity-100 transition-opacity pr-1.5 gap-0.5"},Fc=["onClick"],qc=["onClick"],Hc={class:"card w-full max-w-lg p-6 animate-escalar shadow-2xl"},Bc={class:"font-semibold text-texto mb-4"},Gc={key:0,class:"grid grid-cols-2 gap-3"},Kc=["value"],Wc={class:"text-[11px] text-tenue mt-1"},zc=["value"],Jc={class:"text-[11px] text-tenue mt-1"},Qc={class:"flex items-center gap-2 text-sm text-texto"},Yc={class:"flex justify-end gap-2 pt-2"},Zc={__name:"Sidebar",setup(e,{expose:t}){const n=Yi(),s=So(),o=G([]),r=G([]),i=G([]),a=G(!0),u=G(""),d=G(!1),c=G(null),p=G(y()),h=Ce(()=>n.params.tenantId||n.params.id);Vt(()=>n.fullPath,()=>{In.value=!1});function y(){return{nombre:"",dominios_permitidos:"",activo:!0,cliente_id:null,plan_id:null}}async function D(){a.value=!0,u.value="";try{const b=await oe.get(se("/umind/tenants"));o.value=b.items||[]}catch(b){u.value=b.message}finally{a.value=!1}}function P(b){return Array.isArray(b)?b:(b==null?void 0:b.items)||(b==null?void 0:b.registros)||[]}async function K(){if(Xe.esPortal)return;const[b,O]=await Promise.allSettled([oe.get("/app/api/clientes/select"),oe.get("/app/umind-planes/list")]);r.value=b.status==="fulfilled"?P(b.value):[],i.value=O.status==="fulfilled"?P(O.value):[];const j=[];b.status==="rejected"&&j.push("clientes"),O.status==="rejected"&&j.push("planes"),j.length&&(u.value=`No se pudo cargar la lista de ${j.join(" ni ")}.`)}function q(){c.value=null,p.value=y(),d.value=!0}function T(b){c.value=b,p.value={nombre:b.nombre,dominios_permitidos:b.dominios_permitidos,activo:b.activo,cliente_id:b.cliente_id??null,plan_id:b.plan_id??null},d.value=!0}async function V(){const b={...p.value,dominios_permitidos:p.value.dominios_permitidos.split(",").map(O=>O.trim()).filter(Boolean)};try{if(c.value)await oe.put(se(`/umind/tenants/${c.value.ID}`),b),d.value=!1,await D();else{const O=await oe.post(se("/umind/tenants"),b);d.value=!1,await D(),s.push(`/tenants/${O.id}`)}}catch(O){u.value=O.message}}async function k(b){confirm(`¿Eliminar el espacio "${b.nombre}"? Esto borra también sus agentes. No se puede deshacer.`)&&(await oe.del(se(`/umind/tenants/${b.ID}`)),h.value===String(b.ID)&&s.push("/"),await D())}return t({recargar:D}),As(()=>{D(),K()}),(b,O)=>{const j=wn("router-link");return _(),C(le,null,[je(In)?(_(),C("div",{key:0,class:"fixed inset-0 bg-black/50 z-30 md:hidden",onClick:O[0]||(O[0]=U=>In.value=!1)})):J("",!0),l("aside",{class:Ee(["w-64 shrink-0 flex flex-col border-r border-borde bg-superficie fixed inset-y-0 left-0 z-40 transition-transform duration-200 md:static md:h-screen md:sticky md:top-0 md:translate-x-0",je(In)?"translate-x-0":"-translate-x-full"])},[l("div",Pc,[ie(j,{to:"/",class:"flex items-center gap-2 text-base font-semibold text-texto"},{default:dt(()=>[...O[8]||(O[8]=[l("svg",{viewBox:"0 0 96 96",class:"w-6 h-6 shrink-0","aria-hidden":"true"},[l("rect",{width:"96",height:"96",rx:"22",fill:"#8eb02f"}),l("path",{d:"M32,42 V58 A14,14 0 0 0 60,58 V42",fill:"none",stroke:"#fff","stroke-width":"10","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M60,58 V64",fill:"none",stroke:"#fff","stroke-width":"10","stroke-linecap":"round"}),l("circle",{cx:"60",cy:"28",r:"7",fill:"#fff"})],-1),l("span",null,[ae("uMind "),l("span",{class:"text-brand"},"Studio")],-1)])]),_:1})]),je(Xe).esPortal?J("",!0):(_(),C("div",Oc,[l("button",{class:"btn-primary w-full",onClick:q}," + Nuevo espacio ")])),u.value?(_(),C("p",Tc,R(u.value),1)):J("",!0),l("nav",Mc,[a.value?(_(),C("p",Dc,"Cargando...")):o.value.length===0?(_(),C("p",Nc,R(je(Xe).esPortal?"Todavía no tenés ningún espacio asignado. Escribinos y lo activamos.":"Sin espacios todavía."),1)):J("",!0),(_(!0),C(le,null,Ie(o.value,U=>(_(),C("div",{key:U.ID,class:Ee(["group flex items-center rounded-lg transition-colors",h.value===String(U.ID)?"bg-brand/10":"hover:bg-elevado"])},[ie(j,{to:`/tenants/${U.ID}`,class:Ee(["flex-1 min-w-0 px-2.5 py-2 text-sm",h.value===String(U.ID)?"text-brand font-medium":"text-texto"])},{default:dt(()=>[l("div",Vc,R(U.nombre),1),l("div",jc,[l("span",{class:Ee(["w-1.5 h-1.5 rounded-full",U.activo?"bg-green-500":"bg-tenue/40"])},null,2),l("span",Uc,R(U.activo?"activo":"inactivo"),1)])]),_:2},1032,["to","class"]),je(Xe).esPortal?J("",!0):(_(),C("div",Lc,[l("button",{class:"p-1 text-tenue hover:text-texto",title:"Editar",onClick:ke=>T(U)},[ie(Ze,{nombre:"lapiz",tam:14})],8,Fc),l("button",{class:"p-1 text-tenue hover:text-red-600",title:"Eliminar",onClick:ke=>k(U)},[ie(Ze,{nombre:"cerrar",tam:14})],8,qc)]))],2))),128))])],2),d.value?(_(),C("div",{key:1,class:"fixed inset-0 bg-black/40 flex items-center justify-center p-4 z-50",onClick:O[7]||(O[7]=Ve(U=>d.value=!1,["self"]))},[l("div",Hc,[l("h2",Bc,R(c.value?"Editar espacio":"Nuevo espacio"),1),O[17]||(O[17]=l("p",{class:"text-xs text-tenue mb-3"}," Un espacio es el negocio o sitio dueño de los dominios permitidos. La config de IA, tono y demás se configuran por agente, dentro del tenant. ",-1)),l("form",{class:"space-y-3",onSubmit:Ve(V,["prevent"])},[l("div",null,[O[9]||(O[9]=l("label",{class:"label"},"Nombre",-1)),ne(l("input",{"onUpdate:modelValue":O[1]||(O[1]=U=>p.value.nombre=U),required:"",class:"input"},null,512),[[me,p.value.nombre]])]),l("div",null,[O[10]||(O[10]=l("label",{class:"label"},"Dominios permitidos (separados por coma)",-1)),ne(l("input",{"onUpdate:modelValue":O[2]||(O[2]=U=>p.value.dominios_permitidos=U),placeholder:"ejemplo.com, www.ejemplo.com",required:"",class:"input"},null,512),[[me,p.value.dominios_permitidos]])]),je(Xe).esPortal?J("",!0):(_(),C("div",Gc,[l("div",null,[O[12]||(O[12]=l("label",{class:"label"},"Cliente",-1)),ne(l("select",{"onUpdate:modelValue":O[3]||(O[3]=U=>p.value.cliente_id=U),class:"input"},[O[11]||(O[11]=l("option",{value:null},"— sin asignar —",-1)),(_(!0),C(le,null,Ie(r.value,U=>(_(),C("option",{key:U.ID,value:U.ID},R(U.nombre),9,Kc))),128))],512),[[gn,p.value.cliente_id]]),l("p",Wc,R(r.value.length?"Define quién ve este espacio desde el portal.":"No hay clientes activos — creá uno en Clientes."),1)]),l("div",null,[O[14]||(O[14]=l("label",{class:"label"},"Plan",-1)),ne(l("select",{"onUpdate:modelValue":O[4]||(O[4]=U=>p.value.plan_id=U),class:"input"},[O[13]||(O[13]=l("option",{value:null},"— sin plan —",-1)),(_(!0),C(le,null,Ie(i.value,U=>(_(),C("option",{key:U.ID,value:U.ID},R(U.nombre)+" ("+R(U.max_agentes===0?"∞":U.max_agentes)+" agentes) ",9,zc))),128))],512),[[gn,p.value.plan_id]]),l("p",Jc,R(i.value.length?"Límite de agentes y precios de consumo.":"No hay planes — creá uno en uMind Planes."),1)])])),l("label",Qc,[ne(l("input",{"onUpdate:modelValue":O[5]||(O[5]=U=>p.value.activo=U),type:"checkbox"},null,512),[[Pt,p.value.activo]]),O[15]||(O[15]=ae(" Activo ",-1))]),l("div",Yc,[l("button",{type:"button",class:"btn-ghost",onClick:O[6]||(O[6]=U=>d.value=!1)}," Cancelar "),O[16]||(O[16]=l("button",{type:"submit",class:"btn-primary"}," Guardar ",-1))])],32)])])):J("",!0)],64)}}},Zi="umind-tema";function Xc(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"oscuro":"claro"}const mn=G(localStorage.getItem(Zi)||Xc());function Xi(){document.documentElement.classList.toggle("dark",mn.value==="oscuro")}function wr(){mn.value=mn.value==="oscuro"?"claro":"oscuro",localStorage.setItem(Zi,mn.value),Xi()}Xi();const Cr="umind_despertar_visto",kr=1250,ed={__name:"DespertarUmind",setup(e){const t=G(null),n=G(!1);let s=null,o=null;function r(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}return As(()=>{r()||sessionStorage.getItem(Cr)||(sessionStorage.setItem(Cr,"1"),n.value=!0,o=setTimeout(()=>n.value=!1,kr),requestAnimationFrame(()=>{const i=t.value;if(!i)return;const a=i.getContext("2d"),u=Math.min(window.devicePixelRatio||1,2),d=window.innerWidth,c=window.innerHeight;i.width=Math.round(d*u),i.height=Math.round(c*u),a.setTransform(u,0,0,u,0,0);const p=d<640?22:46,h=Array.from({length:p},()=>({x:Math.random()*d,y:Math.random()*c,r:1+Math.random()*1.6,demora:Math.random()*.45})),y=performance.now(),D=P=>{const K=Math.min(1,(P-y)/kr);a.clearRect(0,0,d,c);const q=K<.75?1:1-(K-.75)/.25;for(let T=0;T170||(a.strokeStyle=`rgba(142, 176, 47, ${.16*(1-ke/170)*k*q})`,a.lineWidth=1,a.beginPath(),a.moveTo(V.x,V.y),a.lineTo(O.x,O.y),a.stroke())}a.beginPath(),a.arc(V.x,V.y,V.r*k,0,Math.PI*2),a.fillStyle=`rgba(142, 176, 47, ${.5*k*q})`,a.fill()}}K<1&&(s=requestAnimationFrame(D))};s=requestAnimationFrame(D)}))}),li(()=>{s&&cancelAnimationFrame(s),o&&clearTimeout(o)}),(i,a)=>n.value?(_(),C("canvas",{key:0,ref_key:"lienzo",ref:t,class:"fixed inset-0 w-full h-full pointer-events-none z-50","aria-hidden":"true"},null,512)):J("",!0)}},td={class:"min-h-screen flex"},nd={class:"flex-1 min-w-0 flex flex-col"},sd={class:"h-14 shrink-0 flex items-center gap-1 px-4 sm:px-6 border-b border-borde"},od=["title"],rd={class:"flex-1 max-w-5xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6 sm:py-8 animate-aparecer"},id={__name:"App",setup(e){return(t,n)=>{const s=wn("router-view");return _(),C("div",td,[ie(ed),ie(Zc),l("main",nd,[l("header",sd,[l("button",{class:"btn-ghost !px-2 !py-1.5 md:hidden","aria-label":"Abrir menú",onClick:n[0]||(n[0]=o=>In.value=!0)},[...n[2]||(n[2]=[l("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 6h16M4 12h16M4 18h16"})],-1)])]),n[3]||(n[3]=l("span",{class:"flex-1"},null,-1)),l("button",{class:"btn-ghost !px-2.5 !py-1.5",title:je(mn)==="oscuro"?"Cambiar a claro":"Cambiar a oscuro",onClick:n[1]||(n[1]=(...o)=>je(wr)&&je(wr)(...o))},[ie(Ze,{nombre:je(mn)==="oscuro"?"sol":"luna",tam:17},null,8,["nombre"])],8,od)]),l("div",rd,[ie(s)])])])}}},ld=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},ad=["width","height","aria-label"],ud=["fill"],cd=["stroke"],dd=["cy"],fd=["cy"],pd=["cy"],md=["cy"],hd={key:1,d:"M41,66 h12 M67,66 h12",class:"umi-linea","stroke-width":"5","stroke-linecap":"round",fill:"none"},vd={key:4,d:"M50,78 q10,8 20,0",class:"umi-linea","stroke-width":"4",fill:"none","stroke-linecap":"round"},gd={__name:"UiMascota",props:{estado:{type:String,default:"normal"},tam:{type:[Number,String],default:72}},setup(e){return(t,n)=>(_(),C("svg",{width:e.tam,height:e.tam,viewBox:"0 0 120 120",class:"shrink-0",role:"img","aria-label":`Umi, la mascota de uMind (${e.estado})`},[l("circle",{cx:"60",cy:"26",r:"6",fill:e.estado==="alerta"?"#dc2626":"currentColor",class:Ee(e.estado==="pensando"?"umi-late":"")},null,10,ud),l("line",{x1:"60",y1:"32",x2:"60",y2:"44",stroke:e.estado==="alerta"?"#dc2626":"currentColor","stroke-width":"4","stroke-linecap":"round"},null,8,cd),n[7]||(n[7]=l("path",{d:"M30,46 V76 A30,30 0 0 0 90,76 V46 Z",fill:"currentColor"},null,-1)),e.estado==="normal"||e.estado==="contenta"||e.estado==="alerta"?(_(),C(le,{key:0},[l("circle",{cx:"47",cy:e.estado==="contenta"?64:66,r:"6",class:"umi-ojo"},null,8,dd),l("circle",{cx:"73",cy:e.estado==="contenta"?64:66,r:"6",class:"umi-ojo"},null,8,fd),l("circle",{cx:"48",cy:e.estado==="contenta"?65:67,r:"3",class:"umi-pupila"},null,8,pd),l("circle",{cx:"74",cy:e.estado==="contenta"?65:67,r:"3",class:"umi-pupila"},null,8,md)],64)):e.estado==="durmiendo"?(_(),C("path",hd)):e.estado==="pensando"?(_(),C(le,{key:2},[n[0]||(n[0]=l("circle",{cx:"45",cy:"66",r:"4.5",class:"umi-ojo umi-p1"},null,-1)),n[1]||(n[1]=l("circle",{cx:"60",cy:"66",r:"4.5",class:"umi-ojo umi-p2"},null,-1)),n[2]||(n[2]=l("circle",{cx:"75",cy:"66",r:"4.5",class:"umi-ojo umi-p3"},null,-1))],64)):e.estado==="buscando"?(_(),C(le,{key:3},[n[3]||(n[3]=l("circle",{cx:"47",cy:"66",r:"6",class:"umi-ojo"},null,-1)),n[4]||(n[4]=l("circle",{cx:"73",cy:"66",r:"6",class:"umi-ojo"},null,-1)),n[5]||(n[5]=l("circle",{cx:"50",cy:"66",r:"3",class:"umi-pupila"},null,-1)),n[6]||(n[6]=l("circle",{cx:"76",cy:"66",r:"3",class:"umi-pupila"},null,-1))],64)):J("",!0),e.estado==="contenta"?(_(),C("path",vd)):J("",!0)],8,ad))}},ps=ld(gd,[["__scopeId","data-v-551897a0"]]),bd={key:0,class:"flex flex-col items-center justify-center py-24 text-sm text-tenue"},xd={key:1,class:"max-w-md mx-auto text-center py-20"},yd={key:2,class:"flex flex-col items-center justify-center text-center py-24"},_d={class:"text-lg font-medium text-texto"},wd={class:"text-sm text-tenue mt-1"},Cd={__name:"Home",setup(e){const t=So(),n=G(Xe.esPortal),s=G(!1);async function o(){if(Xe.esPortal)try{const i=(await oe.get(se("/umind/tenants"))).items||[];if(i.length===0){s.value=!0;return}if(i.length!==1)return;const a=i[0].ID,d=(await oe.get(se(`/umind/agentes?tenant_id=${a}`))).items||[];if(d.length===1){t.replace(`/tenants/${a}/agentes/${d[0].ID}`);return}t.replace(`/tenants/${a}`)}catch{}finally{n.value=!1}}return As(o),(r,i)=>n.value?(_(),C("div",bd," Abriendo tu asistente… ")):s.value?(_(),C("div",xd,[ie(ps,{estado:"durmiendo",tam:80,class:"mx-auto mb-4 text-brand"}),i[0]||(i[0]=Oi('

Todavía no tenés un asistente activo

uMind contesta por vos en WhatsApp y en tu sitio, con la información de tu negocio. Entiende las notas de voz y lee las fotos y archivos que te mandan tus clientes.

Quiero activarlo

Volver al portal

',4))])):(_(),C("div",yd,[ie(ps,{estado:"normal",tam:64,class:"mx-auto mb-4 text-brand"}),l("h1",_d,R(je(Xe).esPortal?"Elegí tu espacio de la izquierda":"Elegí un espacio de la izquierda"),1),l("p",wd,R(je(Xe).esPortal?"Adentro vas a poder crear y configurar tus agentes.":"o creá uno nuevo para empezar a configurar su agente."),1)]))}},kd={class:"flex flex-col items-center justify-center text-center py-12 px-6"},Ad={key:0,class:"text-3xl mb-3 opacity-70"},Ed={class:"text-sm font-medium text-texto"},Sd={key:2,class:"text-xs text-tenue mt-1.5 max-w-sm leading-relaxed"},Id={key:3,class:"mt-4"},Tt={__name:"UiEmptyState",props:{estado:{type:String,default:"durmiendo"},titulo:String,detalle:String,icono:{type:String,default:""}},setup(e){return(t,n)=>(_(),C("div",kd,[e.icono?(_(),C("div",Ad,R(e.icono),1)):(_(),He(ps,{key:1,estado:e.estado,tam:64,class:"mb-3 text-brand"},null,8,["estado"])),l("p",Ed,R(e.titulo),1),e.detalle?(_(),C("p",Sd,R(e.detalle),1)):J("",!0),t.$slots.default?(_(),C("div",Id,[la(t.$slots,"default")])):J("",!0)]))}},$d={key:0,class:"mb-6"},Rd={class:"flex items-start justify-between gap-4"},Pd={class:"text-xl font-semibold text-texto"},Od={class:"text-xs text-tenue mt-1"},Td={key:1,class:"text-sm text-red-600 dark:text-red-400 mb-4"},Md={class:"flex items-center justify-between mb-4"},Dd={class:"flex items-center gap-2"},Nd={key:0,class:"badge-alerta"},Vd={key:1,class:"badge-neutro"},jd=["disabled"],Ud={key:2,class:"text-xs text-tenue -mt-2 mb-4"},Ld={key:3,class:"text-xs text-tenue -mt-2 mb-4"},Fd={key:4,class:"grid gap-3 sm:grid-cols-2"},qd=["disabled"],Hd={key:6,class:"grid gap-3 sm:grid-cols-2"},Bd={class:"flex items-start gap-3"},Gd={class:"min-w-0 flex-1"},Kd={class:"flex items-center gap-2"},Wd={class:"font-medium text-texto truncate"},zd={class:"text-xs text-tenue mt-0.5 truncate"},Jd={class:"flex gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity shrink-0"},Qd=["onClick"],Yd=["onClick"],Zd=["onClick"],Xd={class:"flex items-center gap-4 mt-3.5 pt-3 border-t border-borde text-xs text-tenue"},ef={class:"tabular-nums"},tf={class:"text-texto font-medium"},nf={class:"tabular-nums"},sf={class:"text-texto font-medium"},of={class:"tabular-nums"},rf={class:"text-texto font-medium"},lf={class:"bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-xl p-6 w-full max-w-lg max-h-[calc(100vh-2rem)] overflow-y-auto"},af={class:"font-semibold text-gray-800 dark:text-gray-100 mb-4"},uf={key:0},cf={class:"grid gap-1.5"},df=["value"],ff={class:"min-w-0"},pf={class:"block text-sm text-texto"},mf={class:"block text-xs text-tenue"},hf={key:0,class:"block text-xs text-tenue mt-0.5"},vf=["value"],gf={class:"flex items-center gap-2"},bf={class:"flex items-center gap-2 text-sm text-gray-600 dark:text-gray-300"},xf={class:"flex justify-end gap-2 pt-2"},yf={type:"submit",class:"bg-brand hover:bg-brand-dark text-white text-sm font-medium px-4 py-2 rounded-lg"},_f={__name:"TenantAgentes",props:{id:{type:String,required:!0}},setup(e){const t=e,n=Ce(()=>Number(t.id)),s=So(),o=G(null),r=G([]),i=G([]),a=G(""),u=G(!1),d=G(null),c=G(T()),p=G(null),h=G({}),y=G(!0);function D(ee){const L=h.value[ee.ID]||{};return ee.activo?L.documentos>0?{tipo:"ok",texto:"listo"}:{tipo:"alerta",texto:"sin conocimiento"}:{tipo:"neutro",texto:"inactivo"}}function P(ee){const L=h.value[ee.ID]||{};return{documentos:L.documentos||0,canales:L.canales||0,conversaciones:L.conversaciones_7d||0}}function K(ee){return String(ee||"?").trim().split(/\s+/).slice(0,2).map(L=>L[0]).join("").toUpperCase()}const q=Ce(()=>{if(!p.value)return{sinPlan:!0};const ee=p.value.max_agentes||0;return{sinPlan:!1,nombre:p.value.nombre,ilimitado:ee<=0,max:ee,usados:r.value.length,lleno:ee>0&&r.value.length>=ee}});function T(){return{nombre:"",ai_config_id:null,tono:"",mensaje_bienvenida:"",color:"#8eb02f",activo:!0,plantilla_rubro:""}}const V=G([]);async function k(){a.value="",y.value=!0;try{const[ee,L,Me,z]=await Promise.all([oe.get(se("/umind/tenants")),oe.get(se(`/umind/agentes?tenant_id=${t.id}`)),oe.get(se("/umind/ai-configs")),oe.get(se("/umind/plantillas-rubro"))]);o.value=(ee.items||[]).find(tt=>String(tt.ID)===t.id)||null,r.value=L.items||[],p.value=L.plan||null,h.value=L.resumen||{},i.value=Me.items||[],V.value=z.items||[]}catch(ee){a.value=ee.message}finally{y.value=!1}}async function b(ee){const L=prompt(`Nombre de la copia de "${ee.nombre}":`,`${ee.nombre} (copia)`);if(L!==null){a.value="";try{const Me=await oe.post(se(`/umind/agentes/${ee.ID}/duplicar`),{tenant_id:Number(n.value),nombre:L.trim()});await k(),Me.aviso&&alert(Me.aviso)}catch(Me){a.value=Me.message}}}function O(){d.value=null,c.value=T(),u.value=!0}function j(ee){d.value=ee,c.value={nombre:ee.nombre,ai_config_id:ee.ai_config_id,tono:ee.tono,mensaje_bienvenida:ee.mensaje_bienvenida,color:ee.color||"#8eb02f",activo:ee.activo},u.value=!0}async function U(){try{if(d.value)await oe.put(se(`/umind/agentes/${d.value.ID}`),{tenant_id:n.value,...c.value}),u.value=!1,await k();else{const ee=await oe.post(se("/umind/agentes"),{tenant_id:n.value,...c.value});u.value=!1,s.push(`/tenants/${n.value}/agentes/${ee.id}`)}}catch(ee){a.value=ee.message}}async function ke(ee){confirm(`¿Eliminar el agente "${ee.nombre}"? Esto no se puede deshacer.`)&&(await oe.del(se(`/umind/agentes/${ee.ID}`)),await k())}return Vt(()=>t.id,k,{immediate:!0}),(ee,L)=>{const Me=wn("router-link");return _(),C("div",null,[o.value?(_(),C("div",$d,[l("div",Rd,[l("div",null,[l("h1",Pd,R(o.value.nombre),1),l("p",Od,R(o.value.dominios_permitidos||"sin dominios configurados"),1)]),ie(Me,{to:`/tenants/${n.value??e.id}/ia`,class:"btn-ghost"},{default:dt(()=>[...L[10]||(L[10]=[ae("Tu IA",-1)])]),_:1},8,["to"]),ie(Me,{to:`/tenants/${n.value??e.id}/uso`,class:"btn-ghost inline-flex items-center gap-1.5"},{default:dt(()=>[ie(Ze,{nombre:"grafico"}),L[11]||(L[11]=ae(" Consumo",-1))]),_:1},8,["to"])])])):J("",!0),a.value?(_(),C("p",Td,R(a.value),1)):J("",!0),l("div",Md,[l("div",Dd,[L[12]||(L[12]=l("h2",{class:"text-sm font-medium text-tenue"},"Agentes",-1)),q.value.sinPlan?(_(),C("span",Nd,"sin plan · sin límite")):q.value.ilimitado?(_(),C("span",Vd,R(q.value.nombre)+" · ilimitado",1)):(_(),C("span",{key:2,class:Ee(q.value.lleno?"badge-alerta":"badge-neutro")},R(q.value.nombre)+" · "+R(q.value.usados)+" de "+R(q.value.max),3))]),l("button",{class:"btn-primary",disabled:q.value.lleno,onClick:O},"+ Nuevo agente",8,jd)]),q.value.sinPlan&&!je(Xe).esPortal?(_(),C("p",Ud," Este espacio no tiene plan asignado, así que no se le aplica ningún límite de agentes. Asignale uno desde el lápiz del espacio, en la barra izquierda. ")):q.value.lleno?(_(),C("p",Ld," Alcanzaste el máximo de agentes de tu plan. ")):J("",!0),y.value?(_(),C("div",Fd,[(_(),C(le,null,Ie(2,z=>l("div",{key:z,class:"card p-4 animate-pulse"},[...L[13]||(L[13]=[Oi('
',2)])])),64))])):r.value.length===0?(_(),He(Tt,{key:5,class:"card",estado:"durmiendo",titulo:"Todavía no hay agentes",detalle:"Creá el primero y cargale su base de conocimiento para que empiece a responder."},{default:dt(()=>[l("button",{class:"btn-primary",disabled:q.value.lleno,onClick:O},"+ Crear el primer agente",8,qd)]),_:1})):(_(),C("div",Hd,[(_(!0),C(le,null,Ie(r.value,z=>(_(),He(Me,{key:z.ID,to:`/tenants/${n.value}/agentes/${z.ID}`,class:"card p-4 relative group hover:shadow-lg hover:-translate-y-0.5 transition-all overflow-hidden"},{default:dt(()=>[l("span",{class:"absolute inset-x-0 top-0 h-1",style:sn({background:z.color||"#8eb02f"})},null,4),l("div",Bd,[l("span",{class:"w-10 h-10 rounded-xl flex items-center justify-center text-white text-sm font-semibold shrink-0",style:sn({background:z.color||"#8eb02f",opacity:z.activo?1:.4})},R(K(z.nombre)),5),l("div",Gd,[l("div",Kd,[l("span",Wd,R(z.nombre),1),l("span",{class:Ee(`badge-${D(z).tipo}`)},R(D(z).texto),3)]),l("p",zd,R(z.tono||"sin tono definido"),1)]),l("div",Jd,[l("button",{class:"p-1 text-tenue hover:text-texto",title:"Editar",onClick:Ve(tt=>j(z),["prevent","stop"])},[ie(Ze,{nombre:"lapiz",tam:14})],8,Qd),l("button",{class:"p-1 text-tenue hover:text-texto",title:"Duplicar: copia el conocimiento y las herramientas a un agente nuevo",onClick:Ve(tt=>b(z),["prevent","stop"])},[ie(Ze,{nombre:"copiar",tam:14})],8,Yd),l("button",{class:"p-1 text-tenue hover:text-red-600",title:"Eliminar",onClick:Ve(tt=>ke(z),["prevent","stop"])},[ie(Ze,{nombre:"cerrar",tam:14})],8,Zd)])]),l("div",Xd,[l("span",ef,[l("b",tf,R(P(z).conversaciones),1),L[14]||(L[14]=ae(" conversaciones · 7d",-1))]),l("span",nf,[l("b",sf,R(P(z).documentos),1),L[15]||(L[15]=ae(" fuentes",-1))]),l("span",of,[l("b",rf,R(P(z).canales),1),L[16]||(L[16]=ae(" canales",-1))])])]),_:2},1032,["to"]))),128))])),u.value?(_(),C("div",{key:7,class:"fixed inset-0 bg-black/40 flex items-center justify-center p-4 z-50",onClick:L[9]||(L[9]=Ve(z=>u.value=!1,["self"]))},[l("div",lf,[l("h2",af,R(d.value?"Editar agente":"Nuevo agente"),1),l("form",{class:"space-y-3",onSubmit:Ve(U,["prevent"])},[l("div",null,[L[17]||(L[17]=l("label",{class:"label"},"Nombre",-1)),ne(l("input",{"onUpdate:modelValue":L[0]||(L[0]=z=>c.value.nombre=z),required:"",placeholder:"ej: Ventas, Soporte",class:"input"},null,512),[[me,c.value.nombre]])]),!d.value&&V.value.length?(_(),C("div",uf,[L[18]||(L[18]=l("label",{class:"label"},"Arrancar con",-1)),l("div",cf,[(_(!0),C(le,null,Ie([{clave:"",nombre:"Agente en blanco",descripcion:"Sin conocimiento cargado. Lo escribís vos desde cero."},...V.value],z=>(_(),C("label",{key:z.clave,class:Ee(["flex gap-2.5 p-2.5 rounded-lg border cursor-pointer transition-colors",c.value.plantilla_rubro===z.clave?"border-brand bg-brand/5":"border-borde hover:border-brand/40"])},[ne(l("input",{"onUpdate:modelValue":L[1]||(L[1]=tt=>c.value.plantilla_rubro=tt),type:"radio",value:z.clave,class:"mt-1 text-brand focus:ring-brand"},null,8,df),[[vu,c.value.plantilla_rubro]]),l("span",ff,[l("span",pf,R(z.nombre),1),l("span",mf,R(z.descripcion),1),z.notas?(_(),C("span",hf,R(z.notas)+" notas listas para editar · "+R(z.resumen),1)):J("",!0)])],2))),128))]),L[19]||(L[19]=l("p",{class:"text-xs text-tenue mt-1.5"}," Las notas vienen con ejemplos entre corchetes — abrilas y reemplazalas por tus datos reales. ",-1))])):J("",!0),l("div",null,[L[21]||(L[21]=l("label",{class:"label"},"Config de IA",-1)),ne(l("select",{"onUpdate:modelValue":L[2]||(L[2]=z=>c.value.ai_config_id=z),class:"input"},[L[20]||(L[20]=l("option",{value:null},"— sin asignar —",-1)),(_(!0),C(le,null,Ie(i.value,z=>(_(),C("option",{key:z.ID,value:z.ID},R(z.nombre)+" ("+R(z.provider)+")",9,vf))),128))],512),[[gn,c.value.ai_config_id]])]),l("div",null,[L[22]||(L[22]=l("label",{class:"label"},"Tono / personalidad",-1)),ne(l("textarea",{"onUpdate:modelValue":L[3]||(L[3]=z=>c.value.tono=z),rows:"2",class:"input"},null,512),[[me,c.value.tono]])]),l("div",null,[L[23]||(L[23]=l("label",{class:"label"},"Mensaje de bienvenida",-1)),ne(l("input",{"onUpdate:modelValue":L[4]||(L[4]=z=>c.value.mensaje_bienvenida=z),class:"input"},null,512),[[me,c.value.mensaje_bienvenida]])]),l("div",null,[L[24]||(L[24]=l("label",{class:"label"},"Color del widget",-1)),l("div",gf,[ne(l("input",{"onUpdate:modelValue":L[5]||(L[5]=z=>c.value.color=z),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),[[me,c.value.color]]),ne(l("input",{"onUpdate:modelValue":L[6]||(L[6]=z=>c.value.color=z),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),[[me,c.value.color]])])]),l("label",bf,[ne(l("input",{"onUpdate:modelValue":L[7]||(L[7]=z=>c.value.activo=z),type:"checkbox"},null,512),[[Pt,c.value.activo]]),L[25]||(L[25]=ae(" Activo ",-1))]),l("div",xf,[l("button",{type:"button",class:"px-4 py-2 text-sm text-gray-500 dark:text-gray-400",onClick:L[8]||(L[8]=z=>u.value=!1)},"Cancelar"),l("button",yf,R(d.value?"Guardar":"Crear"),1)])],32)])])):J("",!0)])}}},wf={key:0,class:"mb-6 mt-1 flex items-start justify-between gap-4"},Cf={class:"min-w-0"},kf={class:"text-xl font-semibold text-texto"},Af={class:"text-xs text-tenue mt-1"},Ef={class:"bg-elevado px-1.5 py-0.5 rounded"},Sf=["href"],If={key:1,class:"text-sm text-red-600 dark:text-red-400 mb-4"},$f={class:"flex gap-1.5 mb-6 overflow-x-auto sin-barra pb-1"},Rf=["onClick"],Pf={key:2},Of={class:"card p-4 mb-4"},Tf={class:"flex gap-1 mb-3"},Mf=["onClick"],Df={class:"flex items-center justify-between"},Nf=["disabled"],Vf={class:"flex items-center justify-between"},jf=["disabled"],Uf={class:"flex gap-2"},Lf={class:"flex items-center justify-between"},Ff={class:"flex items-center gap-2 text-xs text-tenue cursor-pointer"},qf=["disabled"],Hf={class:"card divide-y divide-borde"},Bf={class:"text-sm text-texto"},Gf={class:"text-xs text-tenue mt-0.5"},Kf={key:0,class:"latido"},Wf={key:0},zf={key:1},Jf={key:3},Qf={key:4,class:"text-red-600 dark:text-red-400"},Yf={class:"flex items-center gap-3 shrink-0"},Zf=["title","onClick"],Xf=["onClick"],ep=["disabled","title","onClick"],tp=["onClick"],np={class:"card w-full max-w-2xl p-6 max-h-[calc(100vh-2rem)] overflow-y-auto"},sp={class:"flex justify-end gap-2 pt-1"},op=["disabled"],rp={key:3},ip={class:"card divide-y divide-borde"},lp={class:"text-sm text-texto font-mono"},ap={class:"label mt-0.5"},up={class:"text-xs text-tenue mt-0.5"},cp={key:0,class:"ml-1 text-green-600 dark:text-green-400"},dp={key:1,class:"ml-1 text-gray-400"},fp={class:"flex gap-3 text-sm shrink-0"},pp=["onClick"],mp=["onClick"],hp={class:"card p-6 w-full max-w-xl max-h-[85vh] overflow-y-auto"},vp={class:"font-semibold text-texto mb-4"},gp={class:"border border-borde rounded-lg p-3 space-y-2"},bp=["onUpdate:modelValue"],xp=["onUpdate:modelValue"],yp=["onUpdate:modelValue"],_p={class:"label flex items-center gap-1"},wp=["onUpdate:modelValue"],Cp=["onClick"],kp={key:0,class:"text-xs text-gray-400"},Ap={class:"border border-borde rounded-lg p-3 space-y-2"},Ep={class:"flex items-center gap-2 label"},Sp={class:"flex items-center gap-2 text-sm text-texto"},Ip={class:"flex justify-end gap-2 pt-2"},$p={key:4},Rp={class:"card p-4 mb-4"},Pp={class:"flex items-center justify-between mb-2"},Op={class:"bg-elevado border border-borde rounded-lg p-2.5 text-xs text-texto overflow-x-auto"},Tp={class:"card divide-y divide-borde"},Mp={class:"flex items-center justify-between"},Dp={class:"font-medium text-texto capitalize"},Np={class:"flex gap-3 text-sm"},Vp=["onClick"],jp=["onClick"],Up={class:"flex gap-4 mt-2 text-xs"},Lp={class:"flex items-center gap-1.5 text-texto cursor-pointer"},Fp=["checked","onChange"],qp={class:"flex items-center gap-1.5 text-texto cursor-pointer"},Hp=["checked","onChange"],Bp={class:"flex items-center gap-1.5 text-texto cursor-pointer"},Gp=["checked","onChange"],Kp={class:"label mt-1 break-all"},Wp={class:"bg-elevado px-1 rounded"},zp={key:0,class:"text-xs text-tenue mt-1"},Jp={key:1,class:"text-xs text-red-600 dark:text-red-400 mt-1"},Qp={class:"card p-6 w-full max-w-md"},Yp={key:0},Zp={class:"flex flex-col gap-2 pt-1"},Xp={class:"flex items-center gap-2 text-sm text-texto cursor-pointer"},em={class:"flex items-center gap-2 text-sm text-texto cursor-pointer"},tm={class:"flex items-center gap-2 text-sm text-texto cursor-pointer"},nm={class:"flex justify-end gap-2 pt-2"},sm={key:5},om={class:"flex gap-2 mb-4"},rm={class:"card divide-y divide-borde"},im={class:"font-medium text-texto capitalize"},lm={class:"ml-2 text-sm text-tenue"},am=["onClick"],um={key:6,class:"card p-4 flex flex-col h-[28rem]"},cm={class:"flex-1 overflow-y-auto space-y-2 mb-3"},dm={key:0,class:"text-sm text-tenue"},fm={key:1,class:"flex items-center gap-2"},pm=["disabled"],mm={key:7,class:"grid grid-cols-3 gap-4"},hm={class:"col-span-1 card divide-y divide-borde max-h-[28rem] overflow-y-auto"},vm=["onClick"],gm={class:"text-texto truncate"},bm={class:"text-xs text-tenue mt-0.5"},xm={class:"col-span-2 card p-4 max-h-[28rem] overflow-y-auto space-y-2"},ym={key:0,class:"text-sm text-tenue"},_m={key:8},wm={class:"card divide-y divide-borde max-h-[32rem] overflow-y-auto"},Cm={class:"cursor-pointer flex items-center gap-2 text-sm"},km={class:"text-tenue text-xs shrink-0"},Am={class:"text-texto truncate"},Em={class:"text-tenue text-xs ml-auto shrink-0"},Sm={key:0,class:"mt-2 bg-elevado border border-borde rounded-lg p-2 text-xs text-gray-600 dark:text-gray-400 overflow-x-auto whitespace-pre-wrap"},Im={__name:"AgenteDetail",props:{tenantId:{type:String,required:!0},agenteId:{type:String,required:!0}},setup(e){const t=e,n=Ce(()=>Number(t.agenteId)),s=Yi(),o=G(null),r=G(""),i=G(typeof s.query.tab=="string"?s.query.tab:Xe.esPortal?"conversaciones":"conocimiento"),a=G([]),u=G(""),d=G(30),c=G(!1);async function p(){const I=await oe.get(se(`/umind/agentes?tenant_id=${t.tenantId}`));o.value=(I.items||[]).find(v=>String(v.ID)===t.agenteId)||null}async function h(){const I=await oe.get(se(`/umind/documentos?agente_id=${t.agenteId}`));a.value=I.items||[]}const y=G("texto"),D=G(!0),P=G(""),K=G(""),q=G(null);async function T(){if(u.value.trim()){c.value=!0,r.value="";try{await oe.post(se("/umind/documentos"),{agente_id:n.value,url:u.value.trim(),max_paginas:Number(d.value)||30,auto_actualizar:D.value}),u.value="",await h()}catch(I){r.value=I.message}finally{c.value=!1}}}async function V(){if(K.value.trim()){c.value=!0,r.value="";try{await oe.post(se("/umind/documentos/texto"),{agente_id:n.value,titulo:P.value.trim(),contenido:K.value}),P.value="",K.value="",await h()}catch(I){r.value=I.message}finally{c.value=!1}}}async function k(){var v,St;const I=(St=(v=q.value)==null?void 0:v.files)==null?void 0:St[0];if(I){c.value=!0,r.value="";try{const x=new FormData;x.append("agente_id",String(n.value)),x.append("archivo",I);const Ae=await fetch(se("/umind/documentos/archivo"),{method:"POST",body:x}),it=await Ae.json();if(!Ae.ok)throw new Error(it.error||"No se pudo subir");q.value.value="",await h()}catch(x){r.value=x.message}finally{c.value=!1}}}const b=G(null),O=G({titulo:"",contenido:""}),j=G(!1);function U(I){b.value=I,O.value={titulo:I.origen,contenido:I.contenido||""}}async function ke(){if(b.value){j.value=!0,r.value="";try{await oe.put(se(`/umind/documentos/${b.value.ID}`),{titulo:O.value.titulo,contenido:O.value.contenido}),b.value=null,await h()}catch(I){r.value=I.message}finally{j.value=!1}}}async function ee(I){r.value="";try{await oe.post(se(`/umind/documentos/${I.ID}/reprocesar`),{}),await h()}catch(v){r.value=v.message}}async function L(I){try{await oe.put(se(`/umind/documentos/${I.ID}`),{auto_actualizar:!I.auto_actualizar}),await h()}catch(v){r.value=v.message}}function Me(I){if(!I)return"sin procesar";const v=Math.floor((Date.now()-new Date(I))/864e5);if(v<=0)return"hoy";if(v===1)return"ayer";if(v<30)return`hace ${v} días`;const St=Math.floor(v/30);return St===1?"hace un mes":`hace ${St} meses`}function z(I){return I.procesado_at?Date.now()-new Date(I.procesado_at)>60*864e5:!1}async function tt(I){confirm("¿Eliminar esta fuente y sus fragmentos indexados?")&&(await oe.del(se(`/umind/documentos/${I}`)),await h())}const Ht=Ce(()=>I=>({listo:"badge-ok",procesando:"badge-alerta",pendiente:"badge-neutro",error:"badge-error"})[I]||"badge-neutro"),Se=G([]),pe=G([]),de=G(null);async function ct(){const I=await oe.get(se(`/umind/sesiones?agente_id=${t.agenteId}`));Se.value=I.items||[]}async function bt(I){de.value=I;const v=await oe.get(se(`/umind/historial?agente_id=${t.agenteId}&session_id=${I}`));pe.value=v.items||[]}const We=G([]),Te=G(!1),st=G(null),ue=G(xt());function xt(){return{nombre:"",descripcion:"",url:"",auth_header_nombre:"",auth_header_valor:"",tocarAuth:!1,parametros:[],activa:!0}}async function qe(){const I=await oe.get(se(`/umind/tools?agente_id=${t.agenteId}`));We.value=I.items||[]}function E(){st.value=null,ue.value=xt(),Te.value=!0}function W(I){st.value=I;let v=[];try{v=JSON.parse(I.parametros_json||"[]")||[]}catch{v=[]}ue.value={nombre:I.nombre,descripcion:I.descripcion,url:I.url,auth_header_nombre:I.auth_header_nombre,auth_header_valor:"",tocarAuth:!1,parametros:v,activa:I.activa},Te.value=!0}function H(){ue.value.parametros.push({nombre:"",tipo:"string",descripcion:"",requerido:!1})}function Y(I){ue.value.parametros.splice(I,1)}async function ce(){const I={agente_id:n.value,nombre:ue.value.nombre.trim(),descripcion:ue.value.descripcion,url:ue.value.url.trim(),auth_header_nombre:ue.value.auth_header_nombre,parametros:ue.value.parametros,activa:ue.value.activa};ue.value.tocarAuth&&(I.auth_header_valor=ue.value.auth_header_valor);try{st.value?await oe.put(se(`/umind/tools/${st.value.ID}`),I):await oe.post(se("/umind/tools"),I),Te.value=!1,await qe()}catch(v){r.value=v.message}}async function f(I){confirm(`¿Eliminar la herramienta "${I.nombre}"?`)&&(await oe.del(se(`/umind/tools/${I.ID}`)),await qe())}const m=G([]),g=G(!1),w=G(M()),S=G(!1),A=Ce(()=>{const I=new Date,v=new Date(I.getFullYear(),I.getMonth(),1).toISOString().slice(0,10),St=I.toISOString().slice(0,10);return se(`/umind/reporte.xlsx?agente_id=${t.agenteId}&desde=${v}&hasta=${St}`)}),F=Ce(()=>{var v;const I=((v=o.value)==null?void 0:v.site_key)||"TU_SITE_KEY";return`