sensorium-mcp 2.16.148 → 2.16.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard/spa.html +8 -8
- package/package.json +1 -1
package/dist/dashboard/spa.html
CHANGED
|
@@ -49,27 +49,27 @@
|
|
|
49
49
|
* @vue/shared v3.5.31
|
|
50
50
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
51
51
|
* @license MIT
|
|
52
|
-
**/function
|
|
52
|
+
**/function nn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const te={},Et=[],ze=()=>{},co=()=>!1,Ss=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Cs=e=>e.startsWith("onUpdate:"),ge=Object.assign,on=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},gr=Object.prototype.hasOwnProperty,Y=(e,t)=>gr.call(e,t),U=Array.isArray,Pt=e=>ns(e)==="[object Map]",jt=e=>ns(e)==="[object Set]",kn=e=>ns(e)==="[object Date]",K=e=>typeof e=="function",ae=e=>typeof e=="string",Je=e=>typeof e=="symbol",X=e=>e!==null&&typeof e=="object",uo=e=>(X(e)||K(e))&&K(e.then)&&K(e.catch),fo=Object.prototype.toString,ns=e=>fo.call(e),xr=e=>ns(e).slice(8,-1),po=e=>ns(e)==="[object Object]",rn=e=>ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Kt=nn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ts=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},vr=/-\w/g,we=Ts(e=>e.replace(vr,t=>t.slice(1).toUpperCase())),br=/\B([A-Z])/g,mt=Ts(e=>e.replace(br,"-$1").toLowerCase()),$s=Ts(e=>e.charAt(0).toUpperCase()+e.slice(1)),js=Ts(e=>e?`on${$s(e)}`:""),We=(e,t)=>!Object.is(e,t),fs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},ho=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},ks=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let An;const As=()=>An||(An=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Es(e){if(U(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],o=ae(n)?Sr(n):Es(n);if(o)for(const r in o)t[r]=o[r]}return t}else if(ae(e)||X(e))return e}const yr=/;(?![^(]*\))/g,_r=/:([^]+)/,wr=/\/\*[^]*?\*\//g;function Sr(e){const t={};return e.replace(wr,"").split(yr).forEach(s=>{if(s){const n=s.split(_r);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function le(e){let t="";if(ae(e))t=e;else if(U(e))for(let s=0;s<e.length;s++){const n=le(e[s]);n&&(t+=n+" ")}else if(X(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Cr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Tr=nn(Cr);function mo(e){return!!e||e===""}function $r(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Lt(e[n],t[n]);return s}function Lt(e,t){if(e===t)return!0;let s=kn(e),n=kn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Je(e),n=Je(t),s||n)return e===t;if(s=U(e),n=U(t),s||n)return s&&n?$r(e,t):!1;if(s=X(e),n=X(t),s||n){if(!s||!n)return!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const i in e){const l=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(l&&!c||!l&&c||!Lt(e[i],t[i]))return!1}}return String(e)===String(t)}function ln(e,t){return e.findIndex(s=>Lt(s,t))}const go=e=>!!(e&&e.__v_isRef===!0),R=e=>ae(e)?e:e==null?"":U(e)||X(e)&&(e.toString===fo||!K(e.toString))?go(e)?R(e.value):JSON.stringify(e,xo,2):String(e),xo=(e,t)=>go(t)?xo(e,t.value):Pt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,o],r)=>(s[Ls(n,r)+" =>"]=o,s),{})}:jt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Ls(s))}:Je(t)?Ls(t):X(t)&&!U(t)&&!po(t)?String(t):t,Ls=(e,t="")=>{var s;return Je(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
|
|
53
53
|
* @vue/reactivity v3.5.31
|
|
54
54
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
55
55
|
* @license MIT
|
|
56
|
-
**/let Ce;class kr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Ce,!t&&Ce&&(this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Ce;try{return Ce=this,t()}finally{Ce=s}}}on(){++this._on===1&&(this.prevScope=Ce,Ce=this)}off(){this._on>0&&--this._on===0&&(Ce=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Ar(){return Ce}let ne;const Ls=new WeakSet;class vo{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ce&&Ce.active&&Ce.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ls.has(this)&&(Ls.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||yo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,En(this),_o(this);const t=ne,s=Re;ne=this,Re=!0;try{return this.fn()}finally{wo(this),ne=t,Re=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)cn(t);this.deps=this.depsTail=void 0,En(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ls.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ws(this)&&this.run()}get dirty(){return Ws(this)}}let bo=0,Kt,Wt;function yo(e,t=!1){if(e.flags|=8,t){e.next=Wt,Wt=e;return}e.next=Kt,Kt=e}function ln(){bo++}function an(){if(--bo>0)return;if(Wt){let t=Wt;for(Wt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Kt;){let t=Kt;for(Kt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function _o(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function wo(e){let t,s=e.depsTail,n=s;for(;n;){const o=n.prevDep;n.version===-1?(n===s&&(s=o),cn(n),Er(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=s}function Ws(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(So(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function So(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Yt)||(e.globalVersion=Yt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ws(e))))return;e.flags|=2;const t=e.dep,s=ne,n=Re;ne=e,Re=!0;try{_o(e);const o=e.fn(e._value);(t.version===0||Ke(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ne=s,Re=n,wo(e),e.flags&=-3}}function cn(e,t=!1){const{dep:s,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)cn(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Er(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Re=!0;const Co=[];function it(){Co.push(Re),Re=!1}function lt(){const e=Co.pop();Re=e===void 0?!0:e}function En(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=ne;ne=void 0;try{t()}finally{ne=s}}}let Yt=0;class Pr{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class un{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(!ne||!Re||ne===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ne)s=this.activeLink=new Pr(ne,this),ne.deps?(s.prevDep=ne.depsTail,ne.depsTail.nextDep=s,ne.depsTail=s):ne.deps=ne.depsTail=s,To(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=ne.depsTail,s.nextDep=void 0,ne.depsTail.nextDep=s,ne.depsTail=s,ne.deps===s&&(ne.deps=n)}return s}trigger(t){this.version++,Yt++,this.notify(t)}notify(t){ln();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{an()}}}function To(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)To(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const zs=new WeakMap,bt=Symbol(""),qs=Symbol(""),Zt=Symbol("");function xe(e,t,s){if(Re&&ne){let n=zs.get(e);n||zs.set(e,n=new Map);let o=n.get(s);o||(n.set(s,o=new un),o.map=n,o.key=s),o.track()}}function nt(e,t,s,n,o,r){const i=zs.get(e);if(!i){Yt++;return}const l=a=>{a&&a.trigger()};if(ln(),t==="clear")i.forEach(l);else{const a=U(e),m=a&&on(s);if(a&&s==="length"){const f=Number(n);i.forEach((p,h)=>{(h==="length"||h===Zt||!qe(h)&&h>=f)&&l(p)})}else switch((s!==void 0||i.has(void 0))&&l(i.get(s)),m&&l(i.get(Zt)),t){case"add":a?m&&l(i.get("length")):(l(i.get(bt)),At(e)&&l(i.get(qs)));break;case"delete":a||(l(i.get(bt)),At(e)&&l(i.get(qs)));break;case"set":At(e)&&l(i.get(bt));break}}an()}function Tt(e){const t=G(e);return t===e?t:(xe(t,"iterate",Zt),Ie(e)?t:t.map(De))}function Es(e){return xe(e=G(e),"iterate",Zt),e}function Ue(e,t){return at(e)?Mt(yt(e)?De(t):t):De(t)}const Mr={__proto__:null,[Symbol.iterator](){return Ns(this,Symbol.iterator,e=>Ue(this,e))},concat(...e){return Tt(this).concat(...e.map(t=>U(t)?Tt(t):t))},entries(){return Ns(this,"entries",e=>(e[1]=Ue(this,e[1]),e))},every(e,t){return Xe(this,"every",e,t,void 0,arguments)},filter(e,t){return Xe(this,"filter",e,t,s=>s.map(n=>Ue(this,n)),arguments)},find(e,t){return Xe(this,"find",e,t,s=>Ue(this,s),arguments)},findIndex(e,t){return Xe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xe(this,"findLast",e,t,s=>Ue(this,s),arguments)},findLastIndex(e,t){return Xe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Fs(this,"includes",e)},indexOf(...e){return Fs(this,"indexOf",e)},join(e){return Tt(this).join(e)},lastIndexOf(...e){return Fs(this,"lastIndexOf",e)},map(e,t){return Xe(this,"map",e,t,void 0,arguments)},pop(){return Ft(this,"pop")},push(...e){return Ft(this,"push",e)},reduce(e,...t){return Pn(this,"reduce",e,t)},reduceRight(e,...t){return Pn(this,"reduceRight",e,t)},shift(){return Ft(this,"shift")},some(e,t){return Xe(this,"some",e,t,void 0,arguments)},splice(...e){return Ft(this,"splice",e)},toReversed(){return Tt(this).toReversed()},toSorted(e){return Tt(this).toSorted(e)},toSpliced(...e){return Tt(this).toSpliced(...e)},unshift(...e){return Ft(this,"unshift",e)},values(){return Ns(this,"values",e=>Ue(this,e))}};function Ns(e,t,s){const n=Es(e),o=n[t]();return n!==e&&!Ie(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=s(r.value)),r}),o}const Or=Array.prototype;function Xe(e,t,s,n,o,r){const i=Es(e),l=i!==e&&!Ie(e),a=i[t];if(a!==Or[t]){const p=a.apply(e,r);return l?De(p):p}let m=s;i!==e&&(l?m=function(p,h){return s.call(this,Ue(e,p),h,e)}:s.length>2&&(m=function(p,h){return s.call(this,p,h,e)}));const f=a.call(i,m,n);return l&&o?o(f):f}function Pn(e,t,s,n){const o=Es(e),r=o!==e&&!Ie(e);let i=s,l=!1;o!==e&&(r?(l=n.length===0,i=function(m,f,p){return l&&(l=!1,m=Ue(e,m)),s.call(this,m,Ue(e,f),p,e)}):s.length>3&&(i=function(m,f,p){return s.call(this,m,f,p,e)}));const a=o[t](i,...n);return l?Ue(e,a):a}function Fs(e,t,s){const n=G(e);xe(n,"iterate",Zt);const o=n[t](...s);return(o===-1||o===!1)&&hn(s[0])?(s[0]=G(s[0]),n[t](...s)):o}function Ft(e,t,s=[]){it(),ln();const n=G(e)[t].apply(e,s);return an(),lt(),n}const Ir=sn("__proto__,__v_isRef,__isVue"),$o=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(qe));function Rr(e){qe(e)||(e=String(e));const t=G(this);return xe(t,"has",e),t.hasOwnProperty(e)}class ko{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(o?r?Kr:Mo:r?Po:Eo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=U(t);if(!o){let a;if(i&&(a=Mr[s]))return a;if(s==="hasOwnProperty")return Rr}const l=Reflect.get(t,s,be(t)?t:n);if((qe(s)?$o.has(s):Ir(s))||(o||xe(t,"get",s),r))return l;if(be(l)){const a=i&&on(s)?l:l.value;return o&&X(a)?Gs(a):a}return X(l)?o?Gs(l):dn(l):l}}class Ao extends ko{constructor(t=!1){super(!1,t)}set(t,s,n,o){let r=t[s];const i=U(t)&&on(s);if(!this._isShallow){const m=at(r);if(!Ie(n)&&!at(n)&&(r=G(r),n=G(n)),!i&&be(r)&&!be(n))return m||(r.value=n),!0}const l=i?Number(s)<t.length:Y(t,s),a=Reflect.set(t,s,n,be(t)?t:o);return t===G(o)&&(l?Ke(n,r)&&nt(t,"set",s,n):nt(t,"add",s,n)),a}deleteProperty(t,s){const n=Y(t,s);t[s];const o=Reflect.deleteProperty(t,s);return o&&n&&nt(t,"delete",s,void 0),o}has(t,s){const n=Reflect.has(t,s);return(!qe(s)||!$o.has(s))&&xe(t,"has",s),n}ownKeys(t){return xe(t,"iterate",U(t)?"length":bt),Reflect.ownKeys(t)}}class Dr extends ko{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const jr=new Ao,Lr=new Dr,Nr=new Ao(!0);const Js=e=>e,is=e=>Reflect.getPrototypeOf(e);function Fr(e,t,s){return function(...n){const o=this.__v_raw,r=G(o),i=At(r),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,m=o[e](...n),f=s?Js:t?Mt:De;return!t&&xe(r,"iterate",a?qs:bt),ge(Object.create(m),{next(){const{value:p,done:h}=m.next();return h?{value:p,done:h}:{value:l?[f(p[0]),f(p[1])]:f(p),done:h}}})}}function ls(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Hr(e,t){const s={get(o){const r=this.__v_raw,i=G(r),l=G(o);e||(Ke(o,l)&&xe(i,"get",o),xe(i,"get",l));const{has:a}=is(i),m=t?Js:e?Mt:De;if(a.call(i,o))return m(r.get(o));if(a.call(i,l))return m(r.get(l));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&xe(G(o),"iterate",bt),o.size},has(o){const r=this.__v_raw,i=G(r),l=G(o);return e||(Ke(o,l)&&xe(i,"has",o),xe(i,"has",l)),o===l?r.has(o):r.has(o)||r.has(l)},forEach(o,r){const i=this,l=i.__v_raw,a=G(l),m=t?Js:e?Mt:De;return!e&&xe(a,"iterate",bt),l.forEach((f,p)=>o.call(r,m(f),m(p),i))}};return ge(s,e?{add:ls("add"),set:ls("set"),delete:ls("delete"),clear:ls("clear")}:{add(o){const r=G(this),i=is(r),l=G(o),a=!t&&!Ie(o)&&!at(o)?l:o;return i.has.call(r,a)||Ke(o,a)&&i.has.call(r,o)||Ke(l,a)&&i.has.call(r,l)||(r.add(a),nt(r,"add",a,a)),this},set(o,r){!t&&!Ie(r)&&!at(r)&&(r=G(r));const i=G(this),{has:l,get:a}=is(i);let m=l.call(i,o);m||(o=G(o),m=l.call(i,o));const f=a.call(i,o);return i.set(o,r),m?Ke(r,f)&&nt(i,"set",o,r):nt(i,"add",o,r),this},delete(o){const r=G(this),{has:i,get:l}=is(r);let a=i.call(r,o);a||(o=G(o),a=i.call(r,o)),l&&l.call(r,o);const m=r.delete(o);return a&&nt(r,"delete",o,void 0),m},clear(){const o=G(this),r=o.size!==0,i=o.clear();return r&&nt(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Fr(o,e,t)}),s}function fn(e,t){const s=Hr(e,t);return(n,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(Y(s,o)&&o in n?s:n,o,r)}const Vr={get:fn(!1,!1)},Ur={get:fn(!1,!0)},Br={get:fn(!0,!1)};const Eo=new WeakMap,Po=new WeakMap,Mo=new WeakMap,Kr=new WeakMap;function Wr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zr(e){return e.__v_skip||!Object.isExtensible(e)?0:Wr(xr(e))}function dn(e){return at(e)?e:pn(e,!1,jr,Vr,Eo)}function qr(e){return pn(e,!1,Nr,Ur,Po)}function Gs(e){return pn(e,!0,Lr,Br,Mo)}function pn(e,t,s,n,o){if(!X(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=zr(e);if(r===0)return e;const i=o.get(e);if(i)return i;const l=new Proxy(e,r===2?n:s);return o.set(e,l),l}function yt(e){return at(e)?yt(e.__v_raw):!!(e&&e.__v_isReactive)}function at(e){return!!(e&&e.__v_isReadonly)}function Ie(e){return!!(e&&e.__v_isShallow)}function hn(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Jr(e){return!Y(e,"__v_skip")&&Object.isExtensible(e)&&ho(e,"__v_skip",!0),e}const De=e=>X(e)?dn(e):e,Mt=e=>X(e)?Gs(e):e;function be(e){return e?e.__v_isRef===!0:!1}function H(e){return Gr(e,!1)}function Gr(e,t){return be(e)?e:new Yr(e,t)}class Yr{constructor(t,s){this.dep=new un,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:G(t),this._value=s?t:De(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Ie(t)||at(t);t=n?t:G(t),Ke(t,s)&&(this._rawValue=t,this._value=n?t:De(t),this.dep.trigger())}}function Zr(e){return be(e)?e.value:e}const Qr={get:(e,t,s)=>t==="__v_raw"?e:Zr(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const o=e[t];return be(o)&&!be(s)?(o.value=s,!0):Reflect.set(e,t,s,n)}};function Oo(e){return yt(e)?e:new Proxy(e,Qr)}class Xr{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new un(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Yt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ne!==this)return yo(this,!0),!0}get value(){const t=this.dep.track();return So(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ei(e,t,s=!1){let n,o;return K(e)?n=e:(n=e.get,o=e.set),new Xr(n,o,s)}const as={},ms=new WeakMap;let vt;function ti(e,t=!1,s=vt){if(s){let n=ms.get(s);n||ms.set(s,n=[]),n.push(e)}}function si(e,t,s=te){const{immediate:n,deep:o,once:r,scheduler:i,augmentJob:l,call:a}=s,m=R=>o?R:Ie(R)||o===!1||o===0?ot(R,1):ot(R);let f,p,h,S,P=!1,M=!1;if(be(e)?(p=()=>e.value,P=Ie(e)):yt(e)?(p=()=>m(e),P=!0):U(e)?(M=!0,P=e.some(R=>yt(R)||Ie(R)),p=()=>e.map(R=>{if(be(R))return R.value;if(yt(R))return m(R);if(K(R))return a?a(R,2):R()})):K(e)?t?p=a?()=>a(e,2):e:p=()=>{if(h){it();try{h()}finally{lt()}}const R=vt;vt=f;try{return a?a(e,3,[S]):e(S)}finally{vt=R}}:p=We,t&&o){const R=p,N=o===!0?1/0:o;p=()=>ot(R(),N)}const W=Ar(),k=()=>{f.stop(),W&&W.active&&nn(W.effects,f)};if(r&&t){const R=t;t=(...N)=>{R(...N),k()}}let L=M?new Array(e.length).fill(as):as;const z=R=>{if(!(!(f.flags&1)||!f.dirty&&!R))if(t){const N=f.run();if(o||P||(M?N.some((O,V)=>Ke(O,L[V])):Ke(N,L))){h&&h();const O=vt;vt=f;try{const V=[N,L===as?void 0:M&&L[0]===as?[]:L,S];L=N,a?a(t,3,V):t(...V)}finally{vt=O}}}else f.run()};return l&&l(z),f=new vo(p),f.scheduler=i?()=>i(z,!1):z,S=R=>ti(R,!1,f),h=f.onStop=()=>{const R=ms.get(f);if(R){if(a)a(R,4);else for(const N of R)N();ms.delete(f)}},t?n?z(!0):L=f.run():i?i(z.bind(null,!0),!0):f.run(),k.pause=f.pause.bind(f),k.resume=f.resume.bind(f),k.stop=k,k}function ot(e,t=1/0,s){if(t<=0||!X(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,be(e))ot(e.value,t,s);else if(U(e))for(let n=0;n<e.length;n++)ot(e[n],t,s);else if(Rt(e)||At(e))e.forEach(n=>{ot(n,t,s)});else if(po(e)){for(const n in e)ot(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&ot(e[n],t,s)}return e}/**
|
|
56
|
+
**/let Ce;class kr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Ce,!t&&Ce&&(this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Ce;try{return Ce=this,t()}finally{Ce=s}}}on(){++this._on===1&&(this.prevScope=Ce,Ce=this)}off(){this._on>0&&--this._on===0&&(Ce=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Ar(){return Ce}let ne;const Ns=new WeakSet;class vo{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ce&&Ce.active&&Ce.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ns.has(this)&&(Ns.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||yo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,En(this),_o(this);const t=ne,s=Re;ne=this,Re=!0;try{return this.fn()}finally{wo(this),ne=t,Re=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)un(t);this.deps=this.depsTail=void 0,En(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ns.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){zs(this)&&this.run()}get dirty(){return zs(this)}}let bo=0,Wt,zt;function yo(e,t=!1){if(e.flags|=8,t){e.next=zt,zt=e;return}e.next=Wt,Wt=e}function an(){bo++}function cn(){if(--bo>0)return;if(zt){let t=zt;for(zt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Wt;){let t=Wt;for(Wt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function _o(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function wo(e){let t,s=e.depsTail,n=s;for(;n;){const o=n.prevDep;n.version===-1?(n===s&&(s=o),un(n),Er(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=s}function zs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(So(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function So(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Zt)||(e.globalVersion=Zt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!zs(e))))return;e.flags|=2;const t=e.dep,s=ne,n=Re;ne=e,Re=!0;try{_o(e);const o=e.fn(e._value);(t.version===0||We(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ne=s,Re=n,wo(e),e.flags&=-3}}function un(e,t=!1){const{dep:s,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)un(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Er(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Re=!0;const Co=[];function it(){Co.push(Re),Re=!1}function lt(){const e=Co.pop();Re=e===void 0?!0:e}function En(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=ne;ne=void 0;try{t()}finally{ne=s}}}let Zt=0;class Pr{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class fn{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(!ne||!Re||ne===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ne)s=this.activeLink=new Pr(ne,this),ne.deps?(s.prevDep=ne.depsTail,ne.depsTail.nextDep=s,ne.depsTail=s):ne.deps=ne.depsTail=s,To(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=ne.depsTail,s.nextDep=void 0,ne.depsTail.nextDep=s,ne.depsTail=s,ne.deps===s&&(ne.deps=n)}return s}trigger(t){this.version++,Zt++,this.notify(t)}notify(t){an();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{cn()}}}function To(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)To(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const qs=new WeakMap,wt=Symbol(""),Js=Symbol(""),Qt=Symbol("");function xe(e,t,s){if(Re&&ne){let n=qs.get(e);n||qs.set(e,n=new Map);let o=n.get(s);o||(n.set(s,o=new fn),o.map=n,o.key=s),o.track()}}function nt(e,t,s,n,o,r){const i=qs.get(e);if(!i){Zt++;return}const l=c=>{c&&c.trigger()};if(an(),t==="clear")i.forEach(l);else{const c=U(e),h=c&&rn(s);if(c&&s==="length"){const u=Number(n);i.forEach((p,m)=>{(m==="length"||m===Qt||!Je(m)&&m>=u)&&l(p)})}else switch((s!==void 0||i.has(void 0))&&l(i.get(s)),h&&l(i.get(Qt)),t){case"add":c?h&&l(i.get("length")):(l(i.get(wt)),Pt(e)&&l(i.get(Js)));break;case"delete":c||(l(i.get(wt)),Pt(e)&&l(i.get(Js)));break;case"set":Pt(e)&&l(i.get(wt));break}}cn()}function kt(e){const t=G(e);return t===e?t:(xe(t,"iterate",Qt),Ie(e)?t:t.map(De))}function Ps(e){return xe(e=G(e),"iterate",Qt),e}function Ue(e,t){return at(e)?It(St(e)?De(t):t):De(t)}const Mr={__proto__:null,[Symbol.iterator](){return Fs(this,Symbol.iterator,e=>Ue(this,e))},concat(...e){return kt(this).concat(...e.map(t=>U(t)?kt(t):t))},entries(){return Fs(this,"entries",e=>(e[1]=Ue(this,e[1]),e))},every(e,t){return et(this,"every",e,t,void 0,arguments)},filter(e,t){return et(this,"filter",e,t,s=>s.map(n=>Ue(this,n)),arguments)},find(e,t){return et(this,"find",e,t,s=>Ue(this,s),arguments)},findIndex(e,t){return et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return et(this,"findLast",e,t,s=>Ue(this,s),arguments)},findLastIndex(e,t){return et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return et(this,"forEach",e,t,void 0,arguments)},includes(...e){return Hs(this,"includes",e)},indexOf(...e){return Hs(this,"indexOf",e)},join(e){return kt(this).join(e)},lastIndexOf(...e){return Hs(this,"lastIndexOf",e)},map(e,t){return et(this,"map",e,t,void 0,arguments)},pop(){return Ht(this,"pop")},push(...e){return Ht(this,"push",e)},reduce(e,...t){return Pn(this,"reduce",e,t)},reduceRight(e,...t){return Pn(this,"reduceRight",e,t)},shift(){return Ht(this,"shift")},some(e,t){return et(this,"some",e,t,void 0,arguments)},splice(...e){return Ht(this,"splice",e)},toReversed(){return kt(this).toReversed()},toSorted(e){return kt(this).toSorted(e)},toSpliced(...e){return kt(this).toSpliced(...e)},unshift(...e){return Ht(this,"unshift",e)},values(){return Fs(this,"values",e=>Ue(this,e))}};function Fs(e,t,s){const n=Ps(e),o=n[t]();return n!==e&&!Ie(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=s(r.value)),r}),o}const Or=Array.prototype;function et(e,t,s,n,o,r){const i=Ps(e),l=i!==e&&!Ie(e),c=i[t];if(c!==Or[t]){const p=c.apply(e,r);return l?De(p):p}let h=s;i!==e&&(l?h=function(p,m){return s.call(this,Ue(e,p),m,e)}:s.length>2&&(h=function(p,m){return s.call(this,p,m,e)}));const u=c.call(i,h,n);return l&&o?o(u):u}function Pn(e,t,s,n){const o=Ps(e),r=o!==e&&!Ie(e);let i=s,l=!1;o!==e&&(r?(l=n.length===0,i=function(h,u,p){return l&&(l=!1,h=Ue(e,h)),s.call(this,h,Ue(e,u),p,e)}):s.length>3&&(i=function(h,u,p){return s.call(this,h,u,p,e)}));const c=o[t](i,...n);return l?Ue(e,c):c}function Hs(e,t,s){const n=G(e);xe(n,"iterate",Qt);const o=n[t](...s);return(o===-1||o===!1)&&mn(s[0])?(s[0]=G(s[0]),n[t](...s)):o}function Ht(e,t,s=[]){it(),an();const n=G(e)[t].apply(e,s);return cn(),lt(),n}const Ir=nn("__proto__,__v_isRef,__isVue"),$o=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Je));function Rr(e){Je(e)||(e=String(e));const t=G(this);return xe(t,"has",e),t.hasOwnProperty(e)}class ko{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(o?r?Kr:Mo:r?Po:Eo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=U(t);if(!o){let c;if(i&&(c=Mr[s]))return c;if(s==="hasOwnProperty")return Rr}const l=Reflect.get(t,s,be(t)?t:n);if((Je(s)?$o.has(s):Ir(s))||(o||xe(t,"get",s),r))return l;if(be(l)){const c=i&&rn(s)?l:l.value;return o&&X(c)?Ys(c):c}return X(l)?o?Ys(l):pn(l):l}}class Ao extends ko{constructor(t=!1){super(!1,t)}set(t,s,n,o){let r=t[s];const i=U(t)&&rn(s);if(!this._isShallow){const h=at(r);if(!Ie(n)&&!at(n)&&(r=G(r),n=G(n)),!i&&be(r)&&!be(n))return h||(r.value=n),!0}const l=i?Number(s)<t.length:Y(t,s),c=Reflect.set(t,s,n,be(t)?t:o);return t===G(o)&&(l?We(n,r)&&nt(t,"set",s,n):nt(t,"add",s,n)),c}deleteProperty(t,s){const n=Y(t,s);t[s];const o=Reflect.deleteProperty(t,s);return o&&n&&nt(t,"delete",s,void 0),o}has(t,s){const n=Reflect.has(t,s);return(!Je(s)||!$o.has(s))&&xe(t,"has",s),n}ownKeys(t){return xe(t,"iterate",U(t)?"length":wt),Reflect.ownKeys(t)}}class Dr extends ko{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const jr=new Ao,Lr=new Dr,Nr=new Ao(!0);const Gs=e=>e,ls=e=>Reflect.getPrototypeOf(e);function Fr(e,t,s){return function(...n){const o=this.__v_raw,r=G(o),i=Pt(r),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,h=o[e](...n),u=s?Gs:t?It:De;return!t&&xe(r,"iterate",c?Js:wt),ge(Object.create(h),{next(){const{value:p,done:m}=h.next();return m?{value:p,done:m}:{value:l?[u(p[0]),u(p[1])]:u(p),done:m}}})}}function as(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Hr(e,t){const s={get(o){const r=this.__v_raw,i=G(r),l=G(o);e||(We(o,l)&&xe(i,"get",o),xe(i,"get",l));const{has:c}=ls(i),h=t?Gs:e?It:De;if(c.call(i,o))return h(r.get(o));if(c.call(i,l))return h(r.get(l));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&xe(G(o),"iterate",wt),o.size},has(o){const r=this.__v_raw,i=G(r),l=G(o);return e||(We(o,l)&&xe(i,"has",o),xe(i,"has",l)),o===l?r.has(o):r.has(o)||r.has(l)},forEach(o,r){const i=this,l=i.__v_raw,c=G(l),h=t?Gs:e?It:De;return!e&&xe(c,"iterate",wt),l.forEach((u,p)=>o.call(r,h(u),h(p),i))}};return ge(s,e?{add:as("add"),set:as("set"),delete:as("delete"),clear:as("clear")}:{add(o){const r=G(this),i=ls(r),l=G(o),c=!t&&!Ie(o)&&!at(o)?l:o;return i.has.call(r,c)||We(o,c)&&i.has.call(r,o)||We(l,c)&&i.has.call(r,l)||(r.add(c),nt(r,"add",c,c)),this},set(o,r){!t&&!Ie(r)&&!at(r)&&(r=G(r));const i=G(this),{has:l,get:c}=ls(i);let h=l.call(i,o);h||(o=G(o),h=l.call(i,o));const u=c.call(i,o);return i.set(o,r),h?We(r,u)&&nt(i,"set",o,r):nt(i,"add",o,r),this},delete(o){const r=G(this),{has:i,get:l}=ls(r);let c=i.call(r,o);c||(o=G(o),c=i.call(r,o)),l&&l.call(r,o);const h=r.delete(o);return c&&nt(r,"delete",o,void 0),h},clear(){const o=G(this),r=o.size!==0,i=o.clear();return r&&nt(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Fr(o,e,t)}),s}function dn(e,t){const s=Hr(e,t);return(n,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(Y(s,o)&&o in n?s:n,o,r)}const Vr={get:dn(!1,!1)},Ur={get:dn(!1,!0)},Br={get:dn(!0,!1)};const Eo=new WeakMap,Po=new WeakMap,Mo=new WeakMap,Kr=new WeakMap;function Wr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zr(e){return e.__v_skip||!Object.isExtensible(e)?0:Wr(xr(e))}function pn(e){return at(e)?e:hn(e,!1,jr,Vr,Eo)}function qr(e){return hn(e,!1,Nr,Ur,Po)}function Ys(e){return hn(e,!0,Lr,Br,Mo)}function hn(e,t,s,n,o){if(!X(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=zr(e);if(r===0)return e;const i=o.get(e);if(i)return i;const l=new Proxy(e,r===2?n:s);return o.set(e,l),l}function St(e){return at(e)?St(e.__v_raw):!!(e&&e.__v_isReactive)}function at(e){return!!(e&&e.__v_isReadonly)}function Ie(e){return!!(e&&e.__v_isShallow)}function mn(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Jr(e){return!Y(e,"__v_skip")&&Object.isExtensible(e)&&ho(e,"__v_skip",!0),e}const De=e=>X(e)?pn(e):e,It=e=>X(e)?Ys(e):e;function be(e){return e?e.__v_isRef===!0:!1}function D(e){return Gr(e,!1)}function Gr(e,t){return be(e)?e:new Yr(e,t)}class Yr{constructor(t,s){this.dep=new fn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:G(t),this._value=s?t:De(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Ie(t)||at(t);t=n?t:G(t),We(t,s)&&(this._rawValue=t,this._value=n?t:De(t),this.dep.trigger())}}function Zr(e){return be(e)?e.value:e}const Qr={get:(e,t,s)=>t==="__v_raw"?e:Zr(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const o=e[t];return be(o)&&!be(s)?(o.value=s,!0):Reflect.set(e,t,s,n)}};function Oo(e){return St(e)?e:new Proxy(e,Qr)}class Xr{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new fn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Zt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ne!==this)return yo(this,!0),!0}get value(){const t=this.dep.track();return So(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ei(e,t,s=!1){let n,o;return K(e)?n=e:(n=e.get,o=e.set),new Xr(n,o,s)}const cs={},gs=new WeakMap;let yt;function ti(e,t=!1,s=yt){if(s){let n=gs.get(s);n||gs.set(s,n=[]),n.push(e)}}function si(e,t,s=te){const{immediate:n,deep:o,once:r,scheduler:i,augmentJob:l,call:c}=s,h=j=>o?j:Ie(j)||o===!1||o===0?ot(j,1):ot(j);let u,p,m,S,P=!1,M=!1;if(be(e)?(p=()=>e.value,P=Ie(e)):St(e)?(p=()=>h(e),P=!0):U(e)?(M=!0,P=e.some(j=>St(j)||Ie(j)),p=()=>e.map(j=>{if(be(j))return j.value;if(St(j))return h(j);if(K(j))return c?c(j,2):j()})):K(e)?t?p=c?()=>c(e,2):e:p=()=>{if(m){it();try{m()}finally{lt()}}const j=yt;yt=u;try{return c?c(e,3,[S]):e(S)}finally{yt=j}}:p=ze,t&&o){const j=p,F=o===!0?1/0:o;p=()=>ot(j(),F)}const W=Ar(),E=()=>{u.stop(),W&&W.active&&on(W.effects,u)};if(r&&t){const j=t;t=(...F)=>{j(...F),E()}}let N=M?new Array(e.length).fill(cs):cs;const z=j=>{if(!(!(u.flags&1)||!u.dirty&&!j))if(t){const F=u.run();if(o||P||(M?F.some((O,V)=>We(O,N[V])):We(F,N))){m&&m();const O=yt;yt=u;try{const V=[F,N===cs?void 0:M&&N[0]===cs?[]:N,S];N=F,c?c(t,3,V):t(...V)}finally{yt=O}}}else u.run()};return l&&l(z),u=new vo(p),u.scheduler=i?()=>i(z,!1):z,S=j=>ti(j,!1,u),m=u.onStop=()=>{const j=gs.get(u);if(j){if(c)c(j,4);else for(const F of j)F();gs.delete(u)}},t?n?z(!0):N=u.run():i?i(z.bind(null,!0),!0):u.run(),E.pause=u.pause.bind(u),E.resume=u.resume.bind(u),E.stop=E,E}function ot(e,t=1/0,s){if(t<=0||!X(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,be(e))ot(e.value,t,s);else if(U(e))for(let n=0;n<e.length;n++)ot(e[n],t,s);else if(jt(e)||Pt(e))e.forEach(n=>{ot(n,t,s)});else if(po(e)){for(const n in e)ot(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&ot(e[n],t,s)}return e}/**
|
|
57
57
|
* @vue/runtime-core v3.5.31
|
|
58
58
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
59
59
|
* @license MIT
|
|
60
|
-
**/function ns(e,t,s,n){try{return n?e(...n):e()}catch(o){Ps(o,t,s)}}function Je(e,t,s,n){if(K(e)){const o=ns(e,t,s,n);return o&&uo(o)&&o.catch(r=>{Ps(r,t,s)}),o}if(U(e)){const o=[];for(let r=0;r<e.length;r++)o.push(Je(e[r],t,s,n));return o}}function Ps(e,t,s,n=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||te;if(t){let l=t.parent;const a=t.proxy,m=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const f=l.ec;if(f){for(let p=0;p<f.length;p++)if(f[p](e,a,m)===!1)return}l=l.parent}if(r){it(),ns(r,null,10,[e,a,m]),lt();return}}ni(e,s,o,n,i)}function ni(e,t,s,n=!0,o=!1){if(o)throw e;console.error(e)}const _e=[];let He=-1;const Et=[];let ft=null,$t=0;const Io=Promise.resolve();let gs=null;function Ro(e){const t=gs||Io;return e?t.then(this?e.bind(this):e):t}function oi(e){let t=He+1,s=_e.length;for(;t<s;){const n=t+s>>>1,o=_e[n],r=Qt(o);r<e||r===e&&o.flags&2?t=n+1:s=n}return t}function mn(e){if(!(e.flags&1)){const t=Qt(e),s=_e[_e.length-1];!s||!(e.flags&2)&&t>=Qt(s)?_e.push(e):_e.splice(oi(t),0,e),e.flags|=1,Do()}}function Do(){gs||(gs=Io.then(Lo))}function ri(e){U(e)?Et.push(...e):ft&&e.id===-1?ft.splice($t+1,0,e):e.flags&1||(Et.push(e),e.flags|=1),Do()}function Mn(e,t,s=He+1){for(;s<_e.length;s++){const n=_e[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;_e.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function jo(e){if(Et.length){const t=[...new Set(Et)].sort((s,n)=>Qt(s)-Qt(n));if(Et.length=0,ft){ft.push(...t);return}for(ft=t,$t=0;$t<ft.length;$t++){const s=ft[$t];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}ft=null,$t=0}}const Qt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Lo(e){try{for(He=0;He<_e.length;He++){const t=_e[He];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ns(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;He<_e.length;He++){const t=_e[He];t&&(t.flags&=-2)}He=-1,_e.length=0,jo(),gs=null,(_e.length||Et.length)&&Lo()}}let Ae=null,No=null;function xs(e){const t=Ae;return Ae=e,No=e&&e.type.__scopeId||null,t}function ii(e,t=Ae,s){if(!t||e._n)return e;const n=(...o)=>{n._d&&Bn(-1);const r=xs(t);let i;try{i=e(...o)}finally{xs(r),n._d&&Bn(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function pe(e,t){if(Ae===null)return e;const s=Rs(Ae),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,l,a=te]=t[o];r&&(K(r)&&(r={mounted:r,updated:r}),r.deep&&ot(i),n.push({dir:r,instance:s,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function gt(e,t,s,n){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const l=o[i];r&&(l.oldValue=r[i].value);let a=l.dir[n];a&&(it(),Je(a,s,8,[e.el,l,e,t]),lt())}}function li(e,t){if(ve){let s=ve.provides;const n=ve.parent&&ve.parent.provides;n===s&&(s=ve.provides=Object.create(n)),s[e]=t}}function fs(e,t,s=!1){const n=ll();if(n||Pt){let o=Pt?Pt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return s&&K(t)?t.call(n&&n.proxy):t}}const ai=Symbol.for("v-scx"),ci=()=>fs(ai);function Hs(e,t,s){return Fo(e,t,s)}function Fo(e,t,s=te){const{immediate:n,deep:o,flush:r,once:i}=s,l=ge({},s),a=t&&n||!t&&r!=="post";let m;if(es){if(r==="sync"){const S=ci();m=S.__watcherHandles||(S.__watcherHandles=[])}else if(!a){const S=()=>{};return S.stop=We,S.resume=We,S.pause=We,S}}const f=ve;l.call=(S,P,M)=>Je(S,f,P,M);let p=!1;r==="post"?l.scheduler=S=>{Se(S,f&&f.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(S,P)=>{P?S():mn(S)}),l.augmentJob=S=>{t&&(S.flags|=4),p&&(S.flags|=2,f&&(S.id=f.uid,S.i=f))};const h=si(e,t,l);return es&&(m?m.push(h):a&&h()),h}function ui(e,t,s){const n=this.proxy,o=le(e)?e.includes(".")?Ho(n,e):()=>n[e]:e.bind(n,n);let r;K(t)?r=t:(r=t.handler,s=t);const i=os(this),l=Fo(o,r.bind(n),s);return i(),l}function Ho(e,t){const s=t.split(".");return()=>{let n=e;for(let o=0;o<s.length&&n;o++)n=n[s[o]];return n}}const fi=Symbol("_vte"),di=e=>e.__isTeleport,pi=Symbol("_leaveCb");function gn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,gn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function jt(e,t){return K(e)?ge({name:e.name},t,{setup:e}):e}function Vo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function On(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const vs=new WeakMap;function zt(e,t,s,n,o=!1){if(U(e)){e.forEach((M,W)=>zt(M,t&&(U(t)?t[W]:t),s,n,o));return}if(qt(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&zt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?Rs(n.component):n.el,i=o?null:r,{i:l,r:a}=e,m=t&&t.r,f=l.refs===te?l.refs={}:l.refs,p=l.setupState,h=G(p),S=p===te?co:M=>On(f,M)?!1:Y(h,M),P=(M,W)=>!(W&&On(f,W));if(m!=null&&m!==a){if(In(t),le(m))f[m]=null,S(m)&&(p[m]=null);else if(be(m)){const M=t;P(m,M.k)&&(m.value=null),M.k&&(f[M.k]=null)}}if(K(a))ns(a,l,12,[i,f]);else{const M=le(a),W=be(a);if(M||W){const k=()=>{if(e.f){const L=M?S(a)?p[a]:f[a]:P()||!e.k?a.value:f[e.k];if(o)U(L)&&nn(L,r);else if(U(L))L.includes(r)||L.push(r);else if(M)f[a]=[r],S(a)&&(p[a]=f[a]);else{const z=[r];P(a,e.k)&&(a.value=z),e.k&&(f[e.k]=z)}}else M?(f[a]=i,S(a)&&(p[a]=i)):W&&(P(a,e.k)&&(a.value=i),e.k&&(f[e.k]=i))};if(i){const L=()=>{k(),vs.delete(e)};L.id=-1,vs.set(e,L),Se(L,s)}else In(e),k()}}}function In(e){const t=vs.get(e);t&&(t.flags|=8,vs.delete(e))}ks().requestIdleCallback;ks().cancelIdleCallback;const qt=e=>!!e.type.__asyncLoader,Uo=e=>e.type.__isKeepAlive;function hi(e,t){Bo(e,"a",t)}function mi(e,t){Bo(e,"da",t)}function Bo(e,t,s=ve){const n=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ms(t,n,s),s){let o=s.parent;for(;o&&o.parent;)Uo(o.parent.vnode)&&gi(n,t,s,o),o=o.parent}}function gi(e,t,s,n){const o=Ms(t,e,n,!0);xn(()=>{nn(n[t],o)},s)}function Ms(e,t,s=ve,n=!1){if(s){const o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{it();const l=os(s),a=Je(t,s,e,i);return l(),lt(),a});return n?o.unshift(r):o.push(r),r}}const ut=e=>(t,s=ve)=>{(!es||e==="sp")&&Ms(e,(...n)=>t(...n),s)},xi=ut("bm"),wt=ut("m"),vi=ut("bu"),bi=ut("u"),yi=ut("bum"),xn=ut("um"),_i=ut("sp"),wi=ut("rtg"),Si=ut("rtc");function Ci(e,t=ve){Ms("ec",e,t)}const Ti="components",Ko=Symbol.for("v-ndc");function $i(e){return le(e)?ki(Ti,e,!1)||e:e||Ko}function ki(e,t,s=!0,n=!1){const o=Ae||ve;if(o){const r=o.type;{const l=dl(r,!1);if(l&&(l===t||l===we(t)||l===Ts(we(t))))return r}const i=Rn(o[e]||r[e],t)||Rn(o.appContext[e],t);return!i&&n?r:i}}function Rn(e,t){return e&&(e[t]||e[we(t)]||e[Ts(we(t))])}function ct(e,t,s,n){let o;const r=s,i=U(e);if(i||le(e)){const l=i&&yt(e);let a=!1,m=!1;l&&(a=!Ie(e),m=at(e),e=Es(e)),o=new Array(e.length);for(let f=0,p=e.length;f<p;f++)o[f]=t(a?m?Mt(De(e[f])):De(e[f]):e[f],f,void 0,r)}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,r)}else if(X(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,r));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,m=l.length;a<m;a++){const f=l[a];o[a]=t(e[f],f,a,r)}}else o=[];return o}const Ys=e=>e?dr(e)?Rs(e):Ys(e.parent):null,Jt=ge(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=>zo(e),$forceUpdate:e=>e.f||(e.f=()=>{mn(e.update)}),$nextTick:e=>e.n||(e.n=Ro.bind(e.proxy)),$watch:e=>ui.bind(e)}),Vs=(e,t)=>e!==te&&!e.__isScriptSetup&&Y(e,t),Ai={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:o,props:r,accessCache:i,type:l,appContext:a}=e;if(t[0]!=="$"){const h=i[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return o[t];case 4:return s[t];case 3:return r[t]}else{if(Vs(n,t))return i[t]=1,n[t];if(o!==te&&Y(o,t))return i[t]=2,o[t];if(Y(r,t))return i[t]=3,r[t];if(s!==te&&Y(s,t))return i[t]=4,s[t];Zs&&(i[t]=0)}}const m=Jt[t];let f,p;if(m)return t==="$attrs"&&xe(e.attrs,"get",""),m(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(s!==te&&Y(s,t))return i[t]=4,s[t];if(p=a.config.globalProperties,Y(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:o,ctx:r}=e;return Vs(o,t)?(o[t]=s,!0):n!==te&&Y(n,t)?(n[t]=s,!0):Y(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:o,props:r,type:i}},l){let a;return!!(s[l]||e!==te&&l[0]!=="$"&&Y(e,l)||Vs(t,l)||Y(r,l)||Y(n,l)||Y(Jt,l)||Y(o.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Y(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Dn(e){return U(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Zs=!0;function Ei(e){const t=zo(e),s=e.proxy,n=e.ctx;Zs=!1,t.beforeCreate&&jn(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:a,inject:m,created:f,beforeMount:p,mounted:h,beforeUpdate:S,updated:P,activated:M,deactivated:W,beforeDestroy:k,beforeUnmount:L,destroyed:z,unmounted:R,render:N,renderTracked:O,renderTriggered:V,errorCaptured:re,serverPrefetch:J,expose:ae,inheritAttrs:Pe,components:Ge,directives:Te,filters:St}=t;if(m&&Pi(m,n,null),i)for(const oe in i){const Z=i[oe];K(Z)&&(n[oe]=Z.bind(s))}if(o){const oe=o.call(s,s);X(oe)&&(e.data=dn(oe))}if(Zs=!0,r)for(const oe in r){const Z=r[oe],Ye=K(Z)?Z.bind(s,s):K(Z.get)?Z.get.bind(s,s):We,Ct=!K(Z)&&K(Z.set)?Z.set.bind(s):We,Ze=_t({get:Ye,set:Ct});Object.defineProperty(n,oe,{enumerable:!0,configurable:!0,get:()=>Ze.value,set:Me=>Ze.value=Me})}if(l)for(const oe in l)Wo(l[oe],n,s,oe);if(a){const oe=K(a)?a.call(s):a;Reflect.ownKeys(oe).forEach(Z=>{li(Z,oe[Z])})}f&&jn(f,e,"c");function he(oe,Z){U(Z)?Z.forEach(Ye=>oe(Ye.bind(s))):Z&&oe(Z.bind(s))}if(he(xi,p),he(wt,h),he(vi,S),he(bi,P),he(hi,M),he(mi,W),he(Ci,re),he(Si,O),he(wi,V),he(yi,L),he(xn,R),he(_i,J),U(ae))if(ae.length){const oe=e.exposed||(e.exposed={});ae.forEach(Z=>{Object.defineProperty(oe,Z,{get:()=>s[Z],set:Ye=>s[Z]=Ye,enumerable:!0})})}else e.exposed||(e.exposed={});N&&e.render===We&&(e.render=N),Pe!=null&&(e.inheritAttrs=Pe),Ge&&(e.components=Ge),Te&&(e.directives=Te),J&&Vo(e)}function Pi(e,t,s=We){U(e)&&(e=Qs(e));for(const n in e){const o=e[n];let r;X(o)?"default"in o?r=fs(o.from||n,o.default,!0):r=fs(o.from||n):r=fs(o),be(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function jn(e,t,s){Je(U(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Wo(e,t,s,n){let o=n.includes(".")?Ho(s,n):()=>s[n];if(le(e)){const r=t[e];K(r)&&Hs(o,r)}else if(K(e))Hs(o,e.bind(s));else if(X(e))if(U(e))e.forEach(r=>Wo(r,t,s,n));else{const r=K(e.handler)?e.handler.bind(s):t[e.handler];K(r)&&Hs(o,r,e)}}function zo(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let a;return l?a=l:!o.length&&!s&&!n?a=t:(a={},o.length&&o.forEach(m=>bs(a,m,i,!0)),bs(a,t,i)),X(t)&&r.set(t,a),a}function bs(e,t,s,n=!1){const{mixins:o,extends:r}=t;r&&bs(e,r,s,!0),o&&o.forEach(i=>bs(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const l=Mi[i]||s&&s[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Mi={data:Ln,props:Nn,emits:Nn,methods:Ut,computed:Ut,beforeCreate:ye,created:ye,beforeMount:ye,mounted:ye,beforeUpdate:ye,updated:ye,beforeDestroy:ye,beforeUnmount:ye,destroyed:ye,unmounted:ye,activated:ye,deactivated:ye,errorCaptured:ye,serverPrefetch:ye,components:Ut,directives:Ut,watch:Ii,provide:Ln,inject:Oi};function Ln(e,t){return t?e?function(){return ge(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Oi(e,t){return Ut(Qs(e),Qs(t))}function Qs(e){if(U(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function ye(e,t){return e?[...new Set([].concat(e,t))]:t}function Ut(e,t){return e?ge(Object.create(null),e,t):t}function Nn(e,t){return e?U(e)&&U(t)?[...new Set([...e,...t])]:ge(Object.create(null),Dn(e),Dn(t??{})):t}function Ii(e,t){if(!e)return t;if(!t)return e;const s=ge(Object.create(null),e);for(const n in t)s[n]=ye(e[n],t[n]);return s}function qo(){return{app:null,config:{isNativeTag:co,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ri=0;function Di(e,t){return function(n,o=null){K(n)||(n=ge({},n)),o!=null&&!X(o)&&(o=null);const r=qo(),i=new WeakSet,l=[];let a=!1;const m=r.app={_uid:Ri++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:hl,get config(){return r.config},set config(f){},use(f,...p){return i.has(f)||(f&&K(f.install)?(i.add(f),f.install(m,...p)):K(f)&&(i.add(f),f(m,...p))),m},mixin(f){return r.mixins.includes(f)||r.mixins.push(f),m},component(f,p){return p?(r.components[f]=p,m):r.components[f]},directive(f,p){return p?(r.directives[f]=p,m):r.directives[f]},mount(f,p,h){if(!a){const S=m._ceVNode||ze(n,o);return S.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),e(S,f,h),a=!0,m._container=f,f.__vue_app__=m,Rs(S.component)}},onUnmount(f){l.push(f)},unmount(){a&&(Je(l,m._instance,16),e(null,m._container),delete m._container.__vue_app__)},provide(f,p){return r.provides[f]=p,m},runWithContext(f){const p=Pt;Pt=m;try{return f()}finally{Pt=p}}};return m}}let Pt=null;const ji=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${we(t)}Modifiers`]||e[`${ht(t)}Modifiers`];function Li(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||te;let o=s;const r=t.startsWith("update:"),i=r&&ji(n,t.slice(7));i&&(i.trim&&(o=s.map(f=>le(f)?f.trim():f)),i.number&&(o=s.map($s)));let l,a=n[l=Ds(t)]||n[l=Ds(we(t))];!a&&r&&(a=n[l=Ds(ht(t))]),a&&Je(a,e,6,o);const m=n[l+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Je(m,e,6,o)}}const Ni=new WeakMap;function Jo(e,t,s=!1){const n=s?Ni:t.emitsCache,o=n.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!K(e)){const a=m=>{const f=Jo(m,t,!0);f&&(l=!0,ge(i,f))};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(X(e)&&n.set(e,null),null):(U(r)?r.forEach(a=>i[a]=null):ge(i,r),X(e)&&n.set(e,i),i)}function Os(e,t){return!e||!ws(t)?!1:(t=t.slice(2).replace(/Once$/,""),Y(e,t[0].toLowerCase()+t.slice(1))||Y(e,ht(t))||Y(e,t))}function Fn(e){const{type:t,vnode:s,proxy:n,withProxy:o,propsOptions:[r],slots:i,attrs:l,emit:a,render:m,renderCache:f,props:p,data:h,setupState:S,ctx:P,inheritAttrs:M}=e,W=xs(e);let k,L;try{if(s.shapeFlag&4){const R=o||n,N=R;k=Be(m.call(N,R,f,p,S,h,P)),L=l}else{const R=t;k=Be(R.length>1?R(p,{attrs:l,slots:i,emit:a}):R(p,null)),L=t.props?l:Fi(l)}}catch(R){Gt.length=0,Ps(R,e,1),k=ze(pt)}let z=k;if(L&&M!==!1){const R=Object.keys(L),{shapeFlag:N}=z;R.length&&N&7&&(r&&R.some(Ss)&&(L=Hi(L,r)),z=Ot(z,L,!1,!0))}return s.dirs&&(z=Ot(z,null,!1,!0),z.dirs=z.dirs?z.dirs.concat(s.dirs):s.dirs),s.transition&&gn(z,s.transition),k=z,xs(W),k}const Fi=e=>{let t;for(const s in e)(s==="class"||s==="style"||ws(s))&&((t||(t={}))[s]=e[s]);return t},Hi=(e,t)=>{const s={};for(const n in e)(!Ss(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Vi(e,t,s){const{props:n,children:o,component:r}=e,{props:i,children:l,patchFlag:a}=t,m=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&a>=0){if(a&1024)return!0;if(a&16)return n?Hn(n,i,m):!!i;if(a&8){const f=t.dynamicProps;for(let p=0;p<f.length;p++){const h=f[p];if(Go(i,n,h)&&!Os(m,h))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:n===i?!1:n?i?Hn(n,i,m):!0:!!i;return!1}function Hn(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const r=n[o];if(Go(t,e,r)&&!Os(s,r))return!0}return!1}function Go(e,t,s){const n=e[s],o=t[s];return s==="style"&&X(n)&&X(o)?!Dt(n,o):n!==o}function Ui({vnode:e,parent:t,suspense:s},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=n,e=o),o===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const Yo={},Zo=()=>Object.create(Yo),Qo=e=>Object.getPrototypeOf(e)===Yo;function Bi(e,t,s,n=!1){const o={},r=Zo();e.propsDefaults=Object.create(null),Xo(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);s?e.props=n?o:qr(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Ki(e,t,s,n){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=G(o),[a]=e.propsOptions;let m=!1;if((n||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let p=0;p<f.length;p++){let h=f[p];if(Os(e.emitsOptions,h))continue;const S=t[h];if(a)if(Y(r,h))S!==r[h]&&(r[h]=S,m=!0);else{const P=we(h);o[P]=Xs(a,l,P,S,e,!1)}else S!==r[h]&&(r[h]=S,m=!0)}}}else{Xo(e,t,o,r)&&(m=!0);let f;for(const p in l)(!t||!Y(t,p)&&((f=ht(p))===p||!Y(t,f)))&&(a?s&&(s[p]!==void 0||s[f]!==void 0)&&(o[p]=Xs(a,l,p,void 0,e,!0)):delete o[p]);if(r!==l)for(const p in r)(!t||!Y(t,p))&&(delete r[p],m=!0)}m&&nt(e.attrs,"set","")}function Xo(e,t,s,n){const[o,r]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(Bt(a))continue;const m=t[a];let f;o&&Y(o,f=we(a))?!r||!r.includes(f)?s[f]=m:(l||(l={}))[f]=m:Os(e.emitsOptions,a)||(!(a in n)||m!==n[a])&&(n[a]=m,i=!0)}if(r){const a=G(s),m=l||te;for(let f=0;f<r.length;f++){const p=r[f];s[p]=Xs(o,a,p,m[p],e,!Y(m,p))}}return i}function Xs(e,t,s,n,o,r){const i=e[s];if(i!=null){const l=Y(i,"default");if(l&&n===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&K(a)){const{propsDefaults:m}=o;if(s in m)n=m[s];else{const f=os(o);n=m[s]=a.call(null,t),f()}}else n=a;o.ce&&o.ce._setProp(s,n)}i[0]&&(r&&!l?n=!1:i[1]&&(n===""||n===ht(s))&&(n=!0))}return n}const Wi=new WeakMap;function er(e,t,s=!1){const n=s?Wi:t.propsCache,o=n.get(e);if(o)return o;const r=e.props,i={},l=[];let a=!1;if(!K(e)){const f=p=>{a=!0;const[h,S]=er(p,t,!0);ge(i,h),S&&l.push(...S)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!a)return X(e)&&n.set(e,kt),kt;if(U(r))for(let f=0;f<r.length;f++){const p=we(r[f]);Vn(p)&&(i[p]=te)}else if(r)for(const f in r){const p=we(f);if(Vn(p)){const h=r[f],S=i[p]=U(h)||K(h)?{type:h}:ge({},h),P=S.type;let M=!1,W=!0;if(U(P))for(let k=0;k<P.length;++k){const L=P[k],z=K(L)&&L.name;if(z==="Boolean"){M=!0;break}else z==="String"&&(W=!1)}else M=K(P)&&P.name==="Boolean";S[0]=M,S[1]=W,(M||Y(S,"default"))&&l.push(p)}}const m=[i,l];return X(e)&&n.set(e,m),m}function Vn(e){return e[0]!=="$"&&!Bt(e)}const vn=e=>e==="_"||e==="_ctx"||e==="$stable",bn=e=>U(e)?e.map(Be):[Be(e)],zi=(e,t,s)=>{if(t._n)return t;const n=ii((...o)=>bn(t(...o)),s);return n._c=!1,n},tr=(e,t,s)=>{const n=e._ctx;for(const o in e){if(vn(o))continue;const r=e[o];if(K(r))t[o]=zi(o,r,n);else if(r!=null){const i=bn(r);t[o]=()=>i}}},sr=(e,t)=>{const s=bn(t);e.slots.default=()=>s},nr=(e,t,s)=>{for(const n in t)(s||!vn(n))&&(e[n]=t[n])},qi=(e,t,s)=>{const n=e.slots=Zo();if(e.vnode.shapeFlag&32){const o=t._;o?(nr(n,t,s),s&&ho(n,"_",o,!0)):tr(t,n)}else t&&sr(e,t)},Ji=(e,t,s)=>{const{vnode:n,slots:o}=e;let r=!0,i=te;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:nr(o,t,s):(r=!t.$stable,tr(t,o)),i=t}else t&&(sr(e,t),i={default:1});if(r)for(const l in o)!vn(l)&&i[l]==null&&delete o[l]},Se=Xi;function Gi(e){return Yi(e)}function Yi(e,t){const s=ks();s.__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:i,createText:l,createComment:a,setText:m,setElementText:f,parentNode:p,nextSibling:h,setScopeId:S=We,insertStaticContent:P}=e,M=(c,d,g,y=null,x=null,v=null,T=void 0,C=null,w=!!d.dynamicChildren)=>{if(c===d)return;c&&!Ht(c,d)&&(y=Q(c),Me(c,x,v,!0),c=null),d.patchFlag===-2&&(w=!1,d.dynamicChildren=null);const{type:b,ref:F,shapeFlag:$}=d;switch(b){case Is:W(c,d,g,y);break;case pt:k(c,d,g,y);break;case ds:c==null&&L(d,g,y,T);break;case ue:Ge(c,d,g,y,x,v,T,C,w);break;default:$&1?N(c,d,g,y,x,v,T,C,w):$&6?Te(c,d,g,y,x,v,T,C,w):($&64||$&128)&&b.process(c,d,g,y,x,v,T,C,w,Lt)}F!=null&&x?zt(F,c&&c.ref,v,d||c,!d):F==null&&c&&c.ref!=null&&zt(c.ref,null,v,c,!0)},W=(c,d,g,y)=>{if(c==null)n(d.el=l(d.children),g,y);else{const x=d.el=c.el;d.children!==c.children&&m(x,d.children)}},k=(c,d,g,y)=>{c==null?n(d.el=a(d.children||""),g,y):d.el=c.el},L=(c,d,g,y)=>{[c.el,c.anchor]=P(c.children,d,g,y,c.el,c.anchor)},z=({el:c,anchor:d},g,y)=>{let x;for(;c&&c!==d;)x=h(c),n(c,g,y),c=x;n(d,g,y)},R=({el:c,anchor:d})=>{let g;for(;c&&c!==d;)g=h(c),o(c),c=g;o(d)},N=(c,d,g,y,x,v,T,C,w)=>{if(d.type==="svg"?T="svg":d.type==="math"&&(T="mathml"),c==null)O(d,g,y,x,v,T,C,w);else{const b=c.el&&c.el._isVueCE?c.el:null;try{b&&b._beginPatch(),J(c,d,x,v,T,C,w)}finally{b&&b._endPatch()}}},O=(c,d,g,y,x,v,T,C)=>{let w,b;const{props:F,shapeFlag:$,transition:D,dirs:B}=c;if(w=c.el=i(c.type,v,F&&F.is,F),$&8?f(w,c.children):$&16&&re(c.children,w,null,y,x,Us(c,v),T,C),B&>(c,null,y,"created"),V(w,c,c.scopeId,T,y),F){for(const ee in F)ee!=="value"&&!Bt(ee)&&r(w,ee,null,F[ee],v,y);"value"in F&&r(w,"value",null,F.value,v),(b=F.onVnodeBeforeMount)&&Fe(b,y,c)}B&>(c,null,y,"beforeMount");const q=Zi(x,D);q&&D.beforeEnter(w),n(w,d,g),((b=F&&F.onVnodeMounted)||q||B)&&Se(()=>{try{b&&Fe(b,y,c),q&&D.enter(w),B&>(c,null,y,"mounted")}finally{}},x)},V=(c,d,g,y,x)=>{if(g&&S(c,g),y)for(let v=0;v<y.length;v++)S(c,y[v]);if(x){let v=x.subTree;if(d===v||lr(v.type)&&(v.ssContent===d||v.ssFallback===d)){const T=x.vnode;V(c,T,T.scopeId,T.slotScopeIds,x.parent)}}},re=(c,d,g,y,x,v,T,C,w=0)=>{for(let b=w;b<c.length;b++){const F=c[b]=C?tt(c[b]):Be(c[b]);M(null,F,d,g,y,x,v,T,C)}},J=(c,d,g,y,x,v,T)=>{const C=d.el=c.el;let{patchFlag:w,dynamicChildren:b,dirs:F}=d;w|=c.patchFlag&16;const $=c.props||te,D=d.props||te;let B;if(g&&xt(g,!1),(B=D.onVnodeBeforeUpdate)&&Fe(B,g,d,c),F&>(d,c,g,"beforeUpdate"),g&&xt(g,!0),($.innerHTML&&D.innerHTML==null||$.textContent&&D.textContent==null)&&f(C,""),b?ae(c.dynamicChildren,b,C,g,y,Us(d,x),v):T||Z(c,d,C,null,g,y,Us(d,x),v,!1),w>0){if(w&16)Pe(C,$,D,g,x);else if(w&2&&$.class!==D.class&&r(C,"class",null,D.class,x),w&4&&r(C,"style",$.style,D.style,x),w&8){const q=d.dynamicProps;for(let ee=0;ee<q.length;ee++){const se=q[ee],ce=$[se],me=D[se];(me!==ce||se==="value")&&r(C,se,ce,me,x,g)}}w&1&&c.children!==d.children&&f(C,d.children)}else!T&&b==null&&Pe(C,$,D,g,x);((B=D.onVnodeUpdated)||F)&&Se(()=>{B&&Fe(B,g,d,c),F&>(d,c,g,"updated")},y)},ae=(c,d,g,y,x,v,T)=>{for(let C=0;C<d.length;C++){const w=c[C],b=d[C],F=w.el&&(w.type===ue||!Ht(w,b)||w.shapeFlag&198)?p(w.el):g;M(w,b,F,null,y,x,v,T,!0)}},Pe=(c,d,g,y,x)=>{if(d!==g){if(d!==te)for(const v in d)!Bt(v)&&!(v in g)&&r(c,v,d[v],null,x,y);for(const v in g){if(Bt(v))continue;const T=g[v],C=d[v];T!==C&&v!=="value"&&r(c,v,C,T,x,y)}"value"in g&&r(c,"value",d.value,g.value,x)}},Ge=(c,d,g,y,x,v,T,C,w)=>{const b=d.el=c?c.el:l(""),F=d.anchor=c?c.anchor:l("");let{patchFlag:$,dynamicChildren:D,slotScopeIds:B}=d;B&&(C=C?C.concat(B):B),c==null?(n(b,g,y),n(F,g,y),re(d.children||[],g,F,x,v,T,C,w)):$>0&&$&64&&D&&c.dynamicChildren&&c.dynamicChildren.length===D.length?(ae(c.dynamicChildren,D,g,x,v,T,C),(d.key!=null||x&&d===x.subTree)&&or(c,d,!0)):Z(c,d,g,F,x,v,T,C,w)},Te=(c,d,g,y,x,v,T,C,w)=>{d.slotScopeIds=C,c==null?d.shapeFlag&512?x.ctx.activate(d,g,y,T,w):St(d,g,y,x,v,T,w):rs(c,d,w)},St=(c,d,g,y,x,v,T)=>{const C=c.component=il(c,y,x);if(Uo(c)&&(C.ctx.renderer=Lt),al(C,!1,T),C.asyncDep){if(x&&x.registerDep(C,he,T),!c.el){const w=C.subTree=ze(pt);k(null,w,d,g),c.placeholder=w.el}}else he(C,c,d,g,x,v,T)},rs=(c,d,g)=>{const y=d.component=c.component;if(Vi(c,d,g))if(y.asyncDep&&!y.asyncResolved){oe(y,d,g);return}else y.next=d,y.update();else d.el=c.el,y.vnode=d},he=(c,d,g,y,x,v,T)=>{const C=()=>{if(c.isMounted){let{next:$,bu:D,u:B,parent:q,vnode:ee}=c;{const Le=rr(c);if(Le){$&&($.el=ee.el,oe(c,$,T)),Le.asyncDep.then(()=>{Se(()=>{c.isUnmounted||b()},x)});return}}let se=$,ce;xt(c,!1),$?($.el=ee.el,oe(c,$,T)):$=ee,D&&us(D),(ce=$.props&&$.props.onVnodeBeforeUpdate)&&Fe(ce,q,$,ee),xt(c,!0);const me=Fn(c),je=c.subTree;c.subTree=me,M(je,me,p(je.el),Q(je),c,x,v),$.el=me.el,se===null&&Ui(c,me.el),B&&Se(B,x),(ce=$.props&&$.props.onVnodeUpdated)&&Se(()=>Fe(ce,q,$,ee),x)}else{let $;const{el:D,props:B}=d,{bm:q,m:ee,parent:se,root:ce,type:me}=c,je=qt(d);xt(c,!1),q&&us(q),!je&&($=B&&B.onVnodeBeforeMount)&&Fe($,se,d),xt(c,!0);{ce.ce&&ce.ce._hasShadowRoot()&&ce.ce._injectChildStyle(me,c.parent?c.parent.type:void 0);const Le=c.subTree=Fn(c);M(null,Le,g,y,c,x,v),d.el=Le.el}if(ee&&Se(ee,x),!je&&($=B&&B.onVnodeMounted)){const Le=d;Se(()=>Fe($,se,Le),x)}(d.shapeFlag&256||se&&qt(se.vnode)&&se.vnode.shapeFlag&256)&&c.a&&Se(c.a,x),c.isMounted=!0,d=g=y=null}};c.scope.on();const w=c.effect=new vo(C);c.scope.off();const b=c.update=w.run.bind(w),F=c.job=w.runIfDirty.bind(w);F.i=c,F.id=c.uid,w.scheduler=()=>mn(F),xt(c,!0),b()},oe=(c,d,g)=>{d.component=c;const y=c.vnode.props;c.vnode=d,c.next=null,Ki(c,d.props,y,g),Ji(c,d.children,g),it(),Mn(c),lt()},Z=(c,d,g,y,x,v,T,C,w=!1)=>{const b=c&&c.children,F=c?c.shapeFlag:0,$=d.children,{patchFlag:D,shapeFlag:B}=d;if(D>0){if(D&128){Ct(b,$,g,y,x,v,T,C,w);return}else if(D&256){Ye(b,$,g,y,x,v,T,C,w);return}}B&8?(F&16&&$e(b,x,v),$!==b&&f(g,$)):F&16?B&16?Ct(b,$,g,y,x,v,T,C,w):$e(b,x,v,!0):(F&8&&f(g,""),B&16&&re($,g,y,x,v,T,C,w))},Ye=(c,d,g,y,x,v,T,C,w)=>{c=c||kt,d=d||kt;const b=c.length,F=d.length,$=Math.min(b,F);let D;for(D=0;D<$;D++){const B=d[D]=w?tt(d[D]):Be(d[D]);M(c[D],B,g,null,x,v,T,C,w)}b>F?$e(c,x,v,!0,!1,$):re(d,g,y,x,v,T,C,w,$)},Ct=(c,d,g,y,x,v,T,C,w)=>{let b=0;const F=d.length;let $=c.length-1,D=F-1;for(;b<=$&&b<=D;){const B=c[b],q=d[b]=w?tt(d[b]):Be(d[b]);if(Ht(B,q))M(B,q,g,null,x,v,T,C,w);else break;b++}for(;b<=$&&b<=D;){const B=c[$],q=d[D]=w?tt(d[D]):Be(d[D]);if(Ht(B,q))M(B,q,g,null,x,v,T,C,w);else break;$--,D--}if(b>$){if(b<=D){const B=D+1,q=B<F?d[B].el:y;for(;b<=D;)M(null,d[b]=w?tt(d[b]):Be(d[b]),g,q,x,v,T,C,w),b++}}else if(b>D)for(;b<=$;)Me(c[b],x,v,!0),b++;else{const B=b,q=b,ee=new Map;for(b=q;b<=D;b++){const ke=d[b]=w?tt(d[b]):Be(d[b]);ke.key!=null&&ee.set(ke.key,b)}let se,ce=0;const me=D-q+1;let je=!1,Le=0;const Nt=new Array(me);for(b=0;b<me;b++)Nt[b]=0;for(b=B;b<=$;b++){const ke=c[b];if(ce>=me){Me(ke,x,v,!0);continue}let Ne;if(ke.key!=null)Ne=ee.get(ke.key);else for(se=q;se<=D;se++)if(Nt[se-q]===0&&Ht(ke,d[se])){Ne=se;break}Ne===void 0?Me(ke,x,v,!0):(Nt[Ne-q]=b+1,Ne>=Le?Le=Ne:je=!0,M(ke,d[Ne],g,null,x,v,T,C,w),ce++)}const Cn=je?Qi(Nt):kt;for(se=Cn.length-1,b=me-1;b>=0;b--){const ke=q+b,Ne=d[ke],Tn=d[ke+1],$n=ke+1<F?Tn.el||ir(Tn):y;Nt[b]===0?M(null,Ne,g,$n,x,v,T,C,w):je&&(se<0||b!==Cn[se]?Ze(Ne,g,$n,2):se--)}}},Ze=(c,d,g,y,x=null)=>{const{el:v,type:T,transition:C,children:w,shapeFlag:b}=c;if(b&6){Ze(c.component.subTree,d,g,y);return}if(b&128){c.suspense.move(d,g,y);return}if(b&64){T.move(c,d,g,Lt);return}if(T===ue){n(v,d,g);for(let $=0;$<w.length;$++)Ze(w[$],d,g,y);n(c.anchor,d,g);return}if(T===ds){z(c,d,g);return}if(y!==2&&b&1&&C)if(y===0)C.beforeEnter(v),n(v,d,g),Se(()=>C.enter(v),x);else{const{leave:$,delayLeave:D,afterLeave:B}=C,q=()=>{c.ctx.isUnmounted?o(v):n(v,d,g)},ee=()=>{v._isLeaving&&v[pi](!0),$(v,()=>{q(),B&&B()})};D?D(v,q,ee):ee()}else n(v,d,g)},Me=(c,d,g,y=!1,x=!1)=>{const{type:v,props:T,ref:C,children:w,dynamicChildren:b,shapeFlag:F,patchFlag:$,dirs:D,cacheIndex:B,memo:q}=c;if($===-2&&(x=!1),C!=null&&(it(),zt(C,null,g,c,!0),lt()),B!=null&&(d.renderCache[B]=void 0),F&256){d.ctx.deactivate(c);return}const ee=F&1&&D,se=!qt(c);let ce;if(se&&(ce=T&&T.onVnodeBeforeUnmount)&&Fe(ce,d,c),F&6)Qe(c.component,g,y);else{if(F&128){c.suspense.unmount(g,y);return}ee&>(c,null,d,"beforeUnmount"),F&64?c.type.remove(c,d,g,Lt,y):b&&!b.hasOnce&&(v!==ue||$>0&&$&64)?$e(b,d,g,!1,!0):(v===ue&&$&384||!x&&F&16)&&$e(w,d,g),y&&I(c)}const me=q!=null&&B==null;(se&&(ce=T&&T.onVnodeUnmounted)||ee||me)&&Se(()=>{ce&&Fe(ce,d,c),ee&>(c,null,d,"unmounted"),me&&(c.el=null)},g)},I=c=>{const{type:d,el:g,anchor:y,transition:x}=c;if(d===ue){_(g,y);return}if(d===ds){R(c);return}const v=()=>{o(g),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(c.shapeFlag&1&&x&&!x.persisted){const{leave:T,delayLeave:C}=x,w=()=>T(g,v);C?C(c.el,v,w):w()}else v()},_=(c,d)=>{let g;for(;c!==d;)g=h(c),o(c),c=g;o(d)},Qe=(c,d,g)=>{const{bum:y,scope:x,job:v,subTree:T,um:C,m:w,a:b}=c;Un(w),Un(b),y&&us(y),x.stop(),v&&(v.flags|=8,Me(T,c,d,g)),C&&Se(C,d),Se(()=>{c.isUnmounted=!0},d)},$e=(c,d,g,y=!1,x=!1,v=0)=>{for(let T=v;T<c.length;T++)Me(c[T],d,g,y,x)},Q=c=>{if(c.shapeFlag&6)return Q(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const d=h(c.anchor||c.el),g=d&&d[fi];return g?h(g):d};let mt=!1;const Sn=(c,d,g)=>{let y;c==null?d._vnode&&(Me(d._vnode,null,null,!0),y=d._vnode.component):M(d._vnode||null,c,d,null,null,null,g),d._vnode=c,mt||(mt=!0,Mn(y),jo(),mt=!1)},Lt={p:M,um:Me,m:Ze,r:I,mt:St,mc:re,pc:Z,pbc:ae,n:Q,o:e};return{render:Sn,hydrate:void 0,createApp:Di(Sn)}}function Us({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function xt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function or(e,t,s=!1){const n=e.children,o=t.children;if(U(n)&&U(o))for(let r=0;r<n.length;r++){const i=n[r];let l=o[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[r]=tt(o[r]),l.el=i.el),!s&&l.patchFlag!==-2&&or(i,l)),l.type===Is&&(l.patchFlag===-1&&(l=o[r]=tt(l)),l.el=i.el),l.type===pt&&!l.el&&(l.el=i.el)}}function Qi(e){const t=e.slice(),s=[0];let n,o,r,i,l;const a=e.length;for(n=0;n<a;n++){const m=e[n];if(m!==0){if(o=s[s.length-1],e[o]<m){t[n]=o,s.push(n);continue}for(r=0,i=s.length-1;r<i;)l=r+i>>1,e[s[l]]<m?r=l+1:i=l;m<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function rr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:rr(t)}function Un(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ir(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ir(t.subTree):null}const lr=e=>e.__isSuspense;function Xi(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):ri(e)}const ue=Symbol.for("v-fgt"),Is=Symbol.for("v-txt"),pt=Symbol.for("v-cmt"),ds=Symbol.for("v-stc"),Gt=[];let Ee=null;function A(e=!1){Gt.push(Ee=e?null:[])}function el(){Gt.pop(),Ee=Gt[Gt.length-1]||null}let Xt=1;function Bn(e,t=!1){Xt+=e,e<0&&Ee&&t&&(Ee.hasOnce=!0)}function ar(e){return e.dynamicChildren=Xt>0?Ee||kt:null,el(),Xt>0&&Ee&&Ee.push(e),e}function E(e,t,s,n,o,r){return ar(u(e,t,s,n,o,r,!0))}function cr(e,t,s,n,o){return ar(ze(e,t,s,n,o,!0))}function ur(e){return e?e.__v_isVNode===!0:!1}function Ht(e,t){return e.type===t.type&&e.key===t.key}const fr=({key:e})=>e??null,ps=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?le(e)||be(e)||K(e)?{i:Ae,r:e,k:t,f:!!s}:e:null);function u(e,t=null,s=null,n=0,o=null,r=e===ue?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fr(t),ref:t&&ps(t),scopeId:No,slotScopeIds:null,children:s,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:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ae};return l?(_n(a,s),r&128&&e.normalize(a)):s&&(a.shapeFlag|=le(s)?8:16),Xt>0&&!i&&Ee&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&Ee.push(a),a}const ze=tl;function tl(e,t=null,s=null,n=0,o=null,r=!1){if((!e||e===Ko)&&(e=pt),ur(e)){const l=Ot(e,t,!0);return s&&_n(l,s),Xt>0&&!r&&Ee&&(l.shapeFlag&6?Ee[Ee.indexOf(e)]=l:Ee.push(l)),l.patchFlag=-2,l}if(pl(e)&&(e=e.__vccOpts),t){t=sl(t);let{class:l,style:a}=t;l&&!le(l)&&(t.class=fe(l)),X(a)&&(hn(a)&&!U(a)&&(a=ge({},a)),t.style=As(a))}const i=le(e)?1:lr(e)?128:di(e)?64:X(e)?4:K(e)?2:0;return u(e,t,s,n,o,i,r,!0)}function sl(e){return e?hn(e)||Qo(e)?ge({},e):e:null}function Ot(e,t,s=!1,n=!1){const{props:o,ref:r,patchFlag:i,children:l,transition:a}=e,m=t?nl(o||{},t):o,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:m,key:m&&fr(m),ref:t&&t.ref?s&&r?U(r)?r.concat(ps(t)):[r,ps(t)]:ps(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ue?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ot(e.ssContent),ssFallback:e.ssFallback&&Ot(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&n&&gn(f,a.clone(f)),f}function yn(e=" ",t=0){return ze(Is,null,e,t)}function Ve(e,t){const s=ze(ds,null,e);return s.staticCount=t,s}function ie(e="",t=!1){return t?(A(),cr(pt,null,e)):ze(pt,null,e)}function Be(e){return e==null||typeof e=="boolean"?ze(pt):U(e)?ze(ue,null,e.slice()):ur(e)?tt(e):ze(Is,null,String(e))}function tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ot(e)}function _n(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(U(t))s=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),_n(e,o()),o._c&&(o._d=!0));return}else{s=32;const o=t._;!o&&!Qo(t)?t._ctx=Ae:o===3&&Ae&&(Ae.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:Ae},s=32):(t=String(t),n&64?(s=16,t=[yn(t)]):s=8);e.children=t,e.shapeFlag|=s}function nl(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=fe([t.class,n.class]));else if(o==="style")t.style=As([t.style,n.style]);else if(ws(o)){const r=t[o],i=n[o];i&&r!==i&&!(U(r)&&r.includes(i))?t[o]=r?[].concat(r,i):i:i==null&&r==null&&!Ss(o)&&(t[o]=i)}else o!==""&&(t[o]=n[o])}return t}function Fe(e,t,s,n=null){Je(e,t,7,[s,n])}const ol=qo();let rl=0;function il(e,t,s){const n=e.type,o=(t?t.appContext:e.appContext)||ol,r={uid:rl++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new kr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:er(n,o),emitsOptions:Jo(n,o),emit:null,emitted:null,propsDefaults:te,inheritAttrs:n.inheritAttrs,ctx:te,data:te,props:te,attrs:te,slots:te,refs:te,setupState:te,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Li.bind(null,r),e.ce&&e.ce(r),r}let ve=null;const ll=()=>ve||Ae;let ys,en;{const e=ks(),t=(s,n)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(n),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};ys=t("__VUE_INSTANCE_SETTERS__",s=>ve=s),en=t("__VUE_SSR_SETTERS__",s=>es=s)}const os=e=>{const t=ve;return ys(e),e.scope.on(),()=>{e.scope.off(),ys(t)}},Kn=()=>{ve&&ve.scope.off(),ys(null)};function dr(e){return e.vnode.shapeFlag&4}let es=!1;function al(e,t=!1,s=!1){t&&en(t);const{props:n,children:o}=e.vnode,r=dr(e);Bi(e,n,r,t),qi(e,o,s||t);const i=r?cl(e,t):void 0;return t&&en(!1),i}function cl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ai);const{setup:n}=s;if(n){it();const o=e.setupContext=n.length>1?fl(e):null,r=os(e),i=ns(n,e,0,[e.props,o]),l=uo(i);if(lt(),r(),(l||e.sp)&&!qt(e)&&Vo(e),l){if(i.then(Kn,Kn),t)return i.then(a=>{Wn(e,a)}).catch(a=>{Ps(a,e,0)});e.asyncDep=i}else Wn(e,i)}else pr(e)}function Wn(e,t,s){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:X(t)&&(e.setupState=Oo(t)),pr(e)}function pr(e,t,s){const n=e.type;e.render||(e.render=n.render||We);{const o=os(e);it();try{Ei(e)}finally{lt(),o()}}}const ul={get(e,t){return xe(e,"get",""),e[t]}};function fl(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ul),slots:e.slots,emit:e.emit,expose:t}}function Rs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Oo(Jr(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Jt)return Jt[s](e)},has(t,s){return s in t||s in Jt}})):e.proxy}function dl(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function pl(e){return K(e)&&"__vccOpts"in e}const _t=(e,t)=>ei(e,t,es),hl="3.5.31";/**
|
|
60
|
+
**/function os(e,t,s,n){try{return n?e(...n):e()}catch(o){Ms(o,t,s)}}function Ge(e,t,s,n){if(K(e)){const o=os(e,t,s,n);return o&&uo(o)&&o.catch(r=>{Ms(r,t,s)}),o}if(U(e)){const o=[];for(let r=0;r<e.length;r++)o.push(Ge(e[r],t,s,n));return o}}function Ms(e,t,s,n=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||te;if(t){let l=t.parent;const c=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const u=l.ec;if(u){for(let p=0;p<u.length;p++)if(u[p](e,c,h)===!1)return}l=l.parent}if(r){it(),os(r,null,10,[e,c,h]),lt();return}}ni(e,s,o,n,i)}function ni(e,t,s,n=!0,o=!1){if(o)throw e;console.error(e)}const _e=[];let He=-1;const Mt=[];let ft=null,At=0;const Io=Promise.resolve();let xs=null;function Ro(e){const t=xs||Io;return e?t.then(this?e.bind(this):e):t}function oi(e){let t=He+1,s=_e.length;for(;t<s;){const n=t+s>>>1,o=_e[n],r=Xt(o);r<e||r===e&&o.flags&2?t=n+1:s=n}return t}function gn(e){if(!(e.flags&1)){const t=Xt(e),s=_e[_e.length-1];!s||!(e.flags&2)&&t>=Xt(s)?_e.push(e):_e.splice(oi(t),0,e),e.flags|=1,Do()}}function Do(){xs||(xs=Io.then(Lo))}function ri(e){U(e)?Mt.push(...e):ft&&e.id===-1?ft.splice(At+1,0,e):e.flags&1||(Mt.push(e),e.flags|=1),Do()}function Mn(e,t,s=He+1){for(;s<_e.length;s++){const n=_e[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;_e.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function jo(e){if(Mt.length){const t=[...new Set(Mt)].sort((s,n)=>Xt(s)-Xt(n));if(Mt.length=0,ft){ft.push(...t);return}for(ft=t,At=0;At<ft.length;At++){const s=ft[At];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}ft=null,At=0}}const Xt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Lo(e){try{for(He=0;He<_e.length;He++){const t=_e[He];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),os(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;He<_e.length;He++){const t=_e[He];t&&(t.flags&=-2)}He=-1,_e.length=0,jo(),xs=null,(_e.length||Mt.length)&&Lo()}}let Ee=null,No=null;function vs(e){const t=Ee;return Ee=e,No=e&&e.type.__scopeId||null,t}function ii(e,t=Ee,s){if(!t||e._n)return e;const n=(...o)=>{n._d&&Bn(-1);const r=vs(t);let i;try{i=e(...o)}finally{vs(r),n._d&&Bn(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function fe(e,t){if(Ee===null)return e;const s=Ds(Ee),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,l,c=te]=t[o];r&&(K(r)&&(r={mounted:r,updated:r}),r.deep&&ot(i),n.push({dir:r,instance:s,value:i,oldValue:void 0,arg:l,modifiers:c}))}return e}function vt(e,t,s,n){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const l=o[i];r&&(l.oldValue=r[i].value);let c=l.dir[n];c&&(it(),Ge(c,s,8,[e.el,l,e,t]),lt())}}function li(e,t){if(ve){let s=ve.provides;const n=ve.parent&&ve.parent.provides;n===s&&(s=ve.provides=Object.create(n)),s[e]=t}}function ds(e,t,s=!1){const n=ll();if(n||Ot){let o=Ot?Ot._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return s&&K(t)?t.call(n&&n.proxy):t}}const ai=Symbol.for("v-scx"),ci=()=>ds(ai);function Vs(e,t,s){return Fo(e,t,s)}function Fo(e,t,s=te){const{immediate:n,deep:o,flush:r,once:i}=s,l=ge({},s),c=t&&n||!t&&r!=="post";let h;if(ts){if(r==="sync"){const S=ci();h=S.__watcherHandles||(S.__watcherHandles=[])}else if(!c){const S=()=>{};return S.stop=ze,S.resume=ze,S.pause=ze,S}}const u=ve;l.call=(S,P,M)=>Ge(S,u,P,M);let p=!1;r==="post"?l.scheduler=S=>{Se(S,u&&u.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(S,P)=>{P?S():gn(S)}),l.augmentJob=S=>{t&&(S.flags|=4),p&&(S.flags|=2,u&&(S.id=u.uid,S.i=u))};const m=si(e,t,l);return ts&&(h?h.push(m):c&&m()),m}function ui(e,t,s){const n=this.proxy,o=ae(e)?e.includes(".")?Ho(n,e):()=>n[e]:e.bind(n,n);let r;K(t)?r=t:(r=t.handler,s=t);const i=rs(this),l=Fo(o,r.bind(n),s);return i(),l}function Ho(e,t){const s=t.split(".");return()=>{let n=e;for(let o=0;o<s.length&&n;o++)n=n[s[o]];return n}}const fi=Symbol("_vte"),di=e=>e.__isTeleport,pi=Symbol("_leaveCb");function xn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,xn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ct(e,t){return K(e)?ge({name:e.name},t,{setup:e}):e}function Vo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function On(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const bs=new WeakMap;function qt(e,t,s,n,o=!1){if(U(e)){e.forEach((M,W)=>qt(M,t&&(U(t)?t[W]:t),s,n,o));return}if(Jt(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&qt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?Ds(n.component):n.el,i=o?null:r,{i:l,r:c}=e,h=t&&t.r,u=l.refs===te?l.refs={}:l.refs,p=l.setupState,m=G(p),S=p===te?co:M=>On(u,M)?!1:Y(m,M),P=(M,W)=>!(W&&On(u,W));if(h!=null&&h!==c){if(In(t),ae(h))u[h]=null,S(h)&&(p[h]=null);else if(be(h)){const M=t;P(h,M.k)&&(h.value=null),M.k&&(u[M.k]=null)}}if(K(c))os(c,l,12,[i,u]);else{const M=ae(c),W=be(c);if(M||W){const E=()=>{if(e.f){const N=M?S(c)?p[c]:u[c]:P()||!e.k?c.value:u[e.k];if(o)U(N)&&on(N,r);else if(U(N))N.includes(r)||N.push(r);else if(M)u[c]=[r],S(c)&&(p[c]=u[c]);else{const z=[r];P(c,e.k)&&(c.value=z),e.k&&(u[e.k]=z)}}else M?(u[c]=i,S(c)&&(p[c]=i)):W&&(P(c,e.k)&&(c.value=i),e.k&&(u[e.k]=i))};if(i){const N=()=>{E(),bs.delete(e)};N.id=-1,bs.set(e,N),Se(N,s)}else In(e),E()}}}function In(e){const t=bs.get(e);t&&(t.flags|=8,bs.delete(e))}As().requestIdleCallback;As().cancelIdleCallback;const Jt=e=>!!e.type.__asyncLoader,Uo=e=>e.type.__isKeepAlive;function hi(e,t){Bo(e,"a",t)}function mi(e,t){Bo(e,"da",t)}function Bo(e,t,s=ve){const n=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Os(t,n,s),s){let o=s.parent;for(;o&&o.parent;)Uo(o.parent.vnode)&&gi(n,t,s,o),o=o.parent}}function gi(e,t,s,n){const o=Os(t,e,n,!0);vn(()=>{on(n[t],o)},s)}function Os(e,t,s=ve,n=!1){if(s){const o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{it();const l=rs(s),c=Ge(t,s,e,i);return l(),lt(),c});return n?o.unshift(r):o.push(r),r}}const ut=e=>(t,s=ve)=>{(!ts||e==="sp")&&Os(e,(...n)=>t(...n),s)},xi=ut("bm"),gt=ut("m"),vi=ut("bu"),bi=ut("u"),yi=ut("bum"),vn=ut("um"),_i=ut("sp"),wi=ut("rtg"),Si=ut("rtc");function Ci(e,t=ve){Os("ec",e,t)}const Ti="components",Ko=Symbol.for("v-ndc");function $i(e){return ae(e)?ki(Ti,e,!1)||e:e||Ko}function ki(e,t,s=!0,n=!1){const o=Ee||ve;if(o){const r=o.type;{const l=dl(r,!1);if(l&&(l===t||l===we(t)||l===$s(we(t))))return r}const i=Rn(o[e]||r[e],t)||Rn(o.appContext[e],t);return!i&&n?r:i}}function Rn(e,t){return e&&(e[t]||e[we(t)]||e[$s(we(t))])}function ct(e,t,s,n){let o;const r=s,i=U(e);if(i||ae(e)){const l=i&&St(e);let c=!1,h=!1;l&&(c=!Ie(e),h=at(e),e=Ps(e)),o=new Array(e.length);for(let u=0,p=e.length;u<p;u++)o[u]=t(c?h?It(De(e[u])):De(e[u]):e[u],u,void 0,r)}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,r)}else if(X(e))if(e[Symbol.iterator])o=Array.from(e,(l,c)=>t(l,c,void 0,r));else{const l=Object.keys(e);o=new Array(l.length);for(let c=0,h=l.length;c<h;c++){const u=l[c];o[c]=t(e[u],u,c,r)}}else o=[];return o}const Zs=e=>e?dr(e)?Ds(e):Zs(e.parent):null,Gt=ge(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=>Zs(e.parent),$root:e=>Zs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zo(e),$forceUpdate:e=>e.f||(e.f=()=>{gn(e.update)}),$nextTick:e=>e.n||(e.n=Ro.bind(e.proxy)),$watch:e=>ui.bind(e)}),Us=(e,t)=>e!==te&&!e.__isScriptSetup&&Y(e,t),Ai={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:o,props:r,accessCache:i,type:l,appContext:c}=e;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return n[t];case 2:return o[t];case 4:return s[t];case 3:return r[t]}else{if(Us(n,t))return i[t]=1,n[t];if(o!==te&&Y(o,t))return i[t]=2,o[t];if(Y(r,t))return i[t]=3,r[t];if(s!==te&&Y(s,t))return i[t]=4,s[t];Qs&&(i[t]=0)}}const h=Gt[t];let u,p;if(h)return t==="$attrs"&&xe(e.attrs,"get",""),h(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(s!==te&&Y(s,t))return i[t]=4,s[t];if(p=c.config.globalProperties,Y(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:o,ctx:r}=e;return Us(o,t)?(o[t]=s,!0):n!==te&&Y(n,t)?(n[t]=s,!0):Y(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:o,props:r,type:i}},l){let c;return!!(s[l]||e!==te&&l[0]!=="$"&&Y(e,l)||Us(t,l)||Y(r,l)||Y(n,l)||Y(Gt,l)||Y(o.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Y(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Dn(e){return U(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Qs=!0;function Ei(e){const t=zo(e),s=e.proxy,n=e.ctx;Qs=!1,t.beforeCreate&&jn(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:c,inject:h,created:u,beforeMount:p,mounted:m,beforeUpdate:S,updated:P,activated:M,deactivated:W,beforeDestroy:E,beforeUnmount:N,destroyed:z,unmounted:j,render:F,renderTracked:O,renderTriggered:V,errorCaptured:ie,serverPrefetch:J,expose:ce,inheritAttrs:Me,components:Ye,directives:$e,filters:Tt}=t;if(h&&Pi(h,n,null),i)for(const oe in i){const Z=i[oe];K(Z)&&(n[oe]=Z.bind(s))}if(o){const oe=o.call(s,s);X(oe)&&(e.data=pn(oe))}if(Qs=!0,r)for(const oe in r){const Z=r[oe],Ze=K(Z)?Z.bind(s,s):K(Z.get)?Z.get.bind(s,s):ze,$t=!K(Z)&&K(Z.set)?Z.set.bind(s):ze,Qe=ht({get:Ze,set:$t});Object.defineProperty(n,oe,{enumerable:!0,configurable:!0,get:()=>Qe.value,set:Oe=>Qe.value=Oe})}if(l)for(const oe in l)Wo(l[oe],n,s,oe);if(c){const oe=K(c)?c.call(s):c;Reflect.ownKeys(oe).forEach(Z=>{li(Z,oe[Z])})}u&&jn(u,e,"c");function he(oe,Z){U(Z)?Z.forEach(Ze=>oe(Ze.bind(s))):Z&&oe(Z.bind(s))}if(he(xi,p),he(gt,m),he(vi,S),he(bi,P),he(hi,M),he(mi,W),he(Ci,ie),he(Si,O),he(wi,V),he(yi,N),he(vn,j),he(_i,J),U(ce))if(ce.length){const oe=e.exposed||(e.exposed={});ce.forEach(Z=>{Object.defineProperty(oe,Z,{get:()=>s[Z],set:Ze=>s[Z]=Ze,enumerable:!0})})}else e.exposed||(e.exposed={});F&&e.render===ze&&(e.render=F),Me!=null&&(e.inheritAttrs=Me),Ye&&(e.components=Ye),$e&&(e.directives=$e),J&&Vo(e)}function Pi(e,t,s=ze){U(e)&&(e=Xs(e));for(const n in e){const o=e[n];let r;X(o)?"default"in o?r=ds(o.from||n,o.default,!0):r=ds(o.from||n):r=ds(o),be(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function jn(e,t,s){Ge(U(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Wo(e,t,s,n){let o=n.includes(".")?Ho(s,n):()=>s[n];if(ae(e)){const r=t[e];K(r)&&Vs(o,r)}else if(K(e))Vs(o,e.bind(s));else if(X(e))if(U(e))e.forEach(r=>Wo(r,t,s,n));else{const r=K(e.handler)?e.handler.bind(s):t[e.handler];K(r)&&Vs(o,r,e)}}function zo(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let c;return l?c=l:!o.length&&!s&&!n?c=t:(c={},o.length&&o.forEach(h=>ys(c,h,i,!0)),ys(c,t,i)),X(t)&&r.set(t,c),c}function ys(e,t,s,n=!1){const{mixins:o,extends:r}=t;r&&ys(e,r,s,!0),o&&o.forEach(i=>ys(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const l=Mi[i]||s&&s[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Mi={data:Ln,props:Nn,emits:Nn,methods:Bt,computed:Bt,beforeCreate:ye,created:ye,beforeMount:ye,mounted:ye,beforeUpdate:ye,updated:ye,beforeDestroy:ye,beforeUnmount:ye,destroyed:ye,unmounted:ye,activated:ye,deactivated:ye,errorCaptured:ye,serverPrefetch:ye,components:Bt,directives:Bt,watch:Ii,provide:Ln,inject:Oi};function Ln(e,t){return t?e?function(){return ge(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Oi(e,t){return Bt(Xs(e),Xs(t))}function Xs(e){if(U(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function ye(e,t){return e?[...new Set([].concat(e,t))]:t}function Bt(e,t){return e?ge(Object.create(null),e,t):t}function Nn(e,t){return e?U(e)&&U(t)?[...new Set([...e,...t])]:ge(Object.create(null),Dn(e),Dn(t??{})):t}function Ii(e,t){if(!e)return t;if(!t)return e;const s=ge(Object.create(null),e);for(const n in t)s[n]=ye(e[n],t[n]);return s}function qo(){return{app:null,config:{isNativeTag:co,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ri=0;function Di(e,t){return function(n,o=null){K(n)||(n=ge({},n)),o!=null&&!X(o)&&(o=null);const r=qo(),i=new WeakSet,l=[];let c=!1;const h=r.app={_uid:Ri++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:hl,get config(){return r.config},set config(u){},use(u,...p){return i.has(u)||(u&&K(u.install)?(i.add(u),u.install(h,...p)):K(u)&&(i.add(u),u(h,...p))),h},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),h},component(u,p){return p?(r.components[u]=p,h):r.components[u]},directive(u,p){return p?(r.directives[u]=p,h):r.directives[u]},mount(u,p,m){if(!c){const S=h._ceVNode||qe(n,o);return S.appContext=r,m===!0?m="svg":m===!1&&(m=void 0),e(S,u,m),c=!0,h._container=u,u.__vue_app__=h,Ds(S.component)}},onUnmount(u){l.push(u)},unmount(){c&&(Ge(l,h._instance,16),e(null,h._container),delete h._container.__vue_app__)},provide(u,p){return r.provides[u]=p,h},runWithContext(u){const p=Ot;Ot=h;try{return u()}finally{Ot=p}}};return h}}let Ot=null;const ji=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${we(t)}Modifiers`]||e[`${mt(t)}Modifiers`];function Li(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||te;let o=s;const r=t.startsWith("update:"),i=r&&ji(n,t.slice(7));i&&(i.trim&&(o=s.map(u=>ae(u)?u.trim():u)),i.number&&(o=s.map(ks)));let l,c=n[l=js(t)]||n[l=js(we(t))];!c&&r&&(c=n[l=js(mt(t))]),c&&Ge(c,e,6,o);const h=n[l+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ge(h,e,6,o)}}const Ni=new WeakMap;function Jo(e,t,s=!1){const n=s?Ni:t.emitsCache,o=n.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!K(e)){const c=h=>{const u=Jo(h,t,!0);u&&(l=!0,ge(i,u))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!l?(X(e)&&n.set(e,null),null):(U(r)?r.forEach(c=>i[c]=null):ge(i,r),X(e)&&n.set(e,i),i)}function Is(e,t){return!e||!Ss(t)?!1:(t=t.slice(2).replace(/Once$/,""),Y(e,t[0].toLowerCase()+t.slice(1))||Y(e,mt(t))||Y(e,t))}function Fn(e){const{type:t,vnode:s,proxy:n,withProxy:o,propsOptions:[r],slots:i,attrs:l,emit:c,render:h,renderCache:u,props:p,data:m,setupState:S,ctx:P,inheritAttrs:M}=e,W=vs(e);let E,N;try{if(s.shapeFlag&4){const j=o||n,F=j;E=Be(h.call(F,j,u,p,S,m,P)),N=l}else{const j=t;E=Be(j.length>1?j(p,{attrs:l,slots:i,emit:c}):j(p,null)),N=t.props?l:Fi(l)}}catch(j){Yt.length=0,Ms(j,e,1),E=qe(pt)}let z=E;if(N&&M!==!1){const j=Object.keys(N),{shapeFlag:F}=z;j.length&&F&7&&(r&&j.some(Cs)&&(N=Hi(N,r)),z=Rt(z,N,!1,!0))}return s.dirs&&(z=Rt(z,null,!1,!0),z.dirs=z.dirs?z.dirs.concat(s.dirs):s.dirs),s.transition&&xn(z,s.transition),E=z,vs(W),E}const Fi=e=>{let t;for(const s in e)(s==="class"||s==="style"||Ss(s))&&((t||(t={}))[s]=e[s]);return t},Hi=(e,t)=>{const s={};for(const n in e)(!Cs(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Vi(e,t,s){const{props:n,children:o,component:r}=e,{props:i,children:l,patchFlag:c}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Hn(n,i,h):!!i;if(c&8){const u=t.dynamicProps;for(let p=0;p<u.length;p++){const m=u[p];if(Go(i,n,m)&&!Is(h,m))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:n===i?!1:n?i?Hn(n,i,h):!0:!!i;return!1}function Hn(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const r=n[o];if(Go(t,e,r)&&!Is(s,r))return!0}return!1}function Go(e,t,s){const n=e[s],o=t[s];return s==="style"&&X(n)&&X(o)?!Lt(n,o):n!==o}function Ui({vnode:e,parent:t,suspense:s},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=n,e=o),o===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const Yo={},Zo=()=>Object.create(Yo),Qo=e=>Object.getPrototypeOf(e)===Yo;function Bi(e,t,s,n=!1){const o={},r=Zo();e.propsDefaults=Object.create(null),Xo(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);s?e.props=n?o:qr(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Ki(e,t,s,n){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=G(o),[c]=e.propsOptions;let h=!1;if((n||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let p=0;p<u.length;p++){let m=u[p];if(Is(e.emitsOptions,m))continue;const S=t[m];if(c)if(Y(r,m))S!==r[m]&&(r[m]=S,h=!0);else{const P=we(m);o[P]=en(c,l,P,S,e,!1)}else S!==r[m]&&(r[m]=S,h=!0)}}}else{Xo(e,t,o,r)&&(h=!0);let u;for(const p in l)(!t||!Y(t,p)&&((u=mt(p))===p||!Y(t,u)))&&(c?s&&(s[p]!==void 0||s[u]!==void 0)&&(o[p]=en(c,l,p,void 0,e,!0)):delete o[p]);if(r!==l)for(const p in r)(!t||!Y(t,p))&&(delete r[p],h=!0)}h&&nt(e.attrs,"set","")}function Xo(e,t,s,n){const[o,r]=e.propsOptions;let i=!1,l;if(t)for(let c in t){if(Kt(c))continue;const h=t[c];let u;o&&Y(o,u=we(c))?!r||!r.includes(u)?s[u]=h:(l||(l={}))[u]=h:Is(e.emitsOptions,c)||(!(c in n)||h!==n[c])&&(n[c]=h,i=!0)}if(r){const c=G(s),h=l||te;for(let u=0;u<r.length;u++){const p=r[u];s[p]=en(o,c,p,h[p],e,!Y(h,p))}}return i}function en(e,t,s,n,o,r){const i=e[s];if(i!=null){const l=Y(i,"default");if(l&&n===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&K(c)){const{propsDefaults:h}=o;if(s in h)n=h[s];else{const u=rs(o);n=h[s]=c.call(null,t),u()}}else n=c;o.ce&&o.ce._setProp(s,n)}i[0]&&(r&&!l?n=!1:i[1]&&(n===""||n===mt(s))&&(n=!0))}return n}const Wi=new WeakMap;function er(e,t,s=!1){const n=s?Wi:t.propsCache,o=n.get(e);if(o)return o;const r=e.props,i={},l=[];let c=!1;if(!K(e)){const u=p=>{c=!0;const[m,S]=er(p,t,!0);ge(i,m),S&&l.push(...S)};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!c)return X(e)&&n.set(e,Et),Et;if(U(r))for(let u=0;u<r.length;u++){const p=we(r[u]);Vn(p)&&(i[p]=te)}else if(r)for(const u in r){const p=we(u);if(Vn(p)){const m=r[u],S=i[p]=U(m)||K(m)?{type:m}:ge({},m),P=S.type;let M=!1,W=!0;if(U(P))for(let E=0;E<P.length;++E){const N=P[E],z=K(N)&&N.name;if(z==="Boolean"){M=!0;break}else z==="String"&&(W=!1)}else M=K(P)&&P.name==="Boolean";S[0]=M,S[1]=W,(M||Y(S,"default"))&&l.push(p)}}const h=[i,l];return X(e)&&n.set(e,h),h}function Vn(e){return e[0]!=="$"&&!Kt(e)}const bn=e=>e==="_"||e==="_ctx"||e==="$stable",yn=e=>U(e)?e.map(Be):[Be(e)],zi=(e,t,s)=>{if(t._n)return t;const n=ii((...o)=>yn(t(...o)),s);return n._c=!1,n},tr=(e,t,s)=>{const n=e._ctx;for(const o in e){if(bn(o))continue;const r=e[o];if(K(r))t[o]=zi(o,r,n);else if(r!=null){const i=yn(r);t[o]=()=>i}}},sr=(e,t)=>{const s=yn(t);e.slots.default=()=>s},nr=(e,t,s)=>{for(const n in t)(s||!bn(n))&&(e[n]=t[n])},qi=(e,t,s)=>{const n=e.slots=Zo();if(e.vnode.shapeFlag&32){const o=t._;o?(nr(n,t,s),s&&ho(n,"_",o,!0)):tr(t,n)}else t&&sr(e,t)},Ji=(e,t,s)=>{const{vnode:n,slots:o}=e;let r=!0,i=te;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:nr(o,t,s):(r=!t.$stable,tr(t,o)),i=t}else t&&(sr(e,t),i={default:1});if(r)for(const l in o)!bn(l)&&i[l]==null&&delete o[l]},Se=Xi;function Gi(e){return Yi(e)}function Yi(e,t){const s=As();s.__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:i,createText:l,createComment:c,setText:h,setElementText:u,parentNode:p,nextSibling:m,setScopeId:S=ze,insertStaticContent:P}=e,M=(f,d,g,y=null,x=null,v=null,T=void 0,C=null,w=!!d.dynamicChildren)=>{if(f===d)return;f&&!Vt(f,d)&&(y=Q(f),Oe(f,x,v,!0),f=null),d.patchFlag===-2&&(w=!1,d.dynamicChildren=null);const{type:b,ref:H,shapeFlag:k}=d;switch(b){case Rs:W(f,d,g,y);break;case pt:E(f,d,g,y);break;case ps:f==null&&N(d,g,y,T);break;case de:Ye(f,d,g,y,x,v,T,C,w);break;default:k&1?F(f,d,g,y,x,v,T,C,w):k&6?$e(f,d,g,y,x,v,T,C,w):(k&64||k&128)&&b.process(f,d,g,y,x,v,T,C,w,Nt)}H!=null&&x?qt(H,f&&f.ref,v,d||f,!d):H==null&&f&&f.ref!=null&&qt(f.ref,null,v,f,!0)},W=(f,d,g,y)=>{if(f==null)n(d.el=l(d.children),g,y);else{const x=d.el=f.el;d.children!==f.children&&h(x,d.children)}},E=(f,d,g,y)=>{f==null?n(d.el=c(d.children||""),g,y):d.el=f.el},N=(f,d,g,y)=>{[f.el,f.anchor]=P(f.children,d,g,y,f.el,f.anchor)},z=({el:f,anchor:d},g,y)=>{let x;for(;f&&f!==d;)x=m(f),n(f,g,y),f=x;n(d,g,y)},j=({el:f,anchor:d})=>{let g;for(;f&&f!==d;)g=m(f),o(f),f=g;o(d)},F=(f,d,g,y,x,v,T,C,w)=>{if(d.type==="svg"?T="svg":d.type==="math"&&(T="mathml"),f==null)O(d,g,y,x,v,T,C,w);else{const b=f.el&&f.el._isVueCE?f.el:null;try{b&&b._beginPatch(),J(f,d,x,v,T,C,w)}finally{b&&b._endPatch()}}},O=(f,d,g,y,x,v,T,C)=>{let w,b;const{props:H,shapeFlag:k,transition:L,dirs:B}=f;if(w=f.el=i(f.type,v,H&&H.is,H),k&8?u(w,f.children):k&16&&ie(f.children,w,null,y,x,Bs(f,v),T,C),B&&vt(f,null,y,"created"),V(w,f,f.scopeId,T,y),H){for(const ee in H)ee!=="value"&&!Kt(ee)&&r(w,ee,null,H[ee],v,y);"value"in H&&r(w,"value",null,H.value,v),(b=H.onVnodeBeforeMount)&&Fe(b,y,f)}B&&vt(f,null,y,"beforeMount");const q=Zi(x,L);q&&L.beforeEnter(w),n(w,d,g),((b=H&&H.onVnodeMounted)||q||B)&&Se(()=>{try{b&&Fe(b,y,f),q&&L.enter(w),B&&vt(f,null,y,"mounted")}finally{}},x)},V=(f,d,g,y,x)=>{if(g&&S(f,g),y)for(let v=0;v<y.length;v++)S(f,y[v]);if(x){let v=x.subTree;if(d===v||lr(v.type)&&(v.ssContent===d||v.ssFallback===d)){const T=x.vnode;V(f,T,T.scopeId,T.slotScopeIds,x.parent)}}},ie=(f,d,g,y,x,v,T,C,w=0)=>{for(let b=w;b<f.length;b++){const H=f[b]=C?st(f[b]):Be(f[b]);M(null,H,d,g,y,x,v,T,C)}},J=(f,d,g,y,x,v,T)=>{const C=d.el=f.el;let{patchFlag:w,dynamicChildren:b,dirs:H}=d;w|=f.patchFlag&16;const k=f.props||te,L=d.props||te;let B;if(g&&bt(g,!1),(B=L.onVnodeBeforeUpdate)&&Fe(B,g,d,f),H&&vt(d,f,g,"beforeUpdate"),g&&bt(g,!0),(k.innerHTML&&L.innerHTML==null||k.textContent&&L.textContent==null)&&u(C,""),b?ce(f.dynamicChildren,b,C,g,y,Bs(d,x),v):T||Z(f,d,C,null,g,y,Bs(d,x),v,!1),w>0){if(w&16)Me(C,k,L,g,x);else if(w&2&&k.class!==L.class&&r(C,"class",null,L.class,x),w&4&&r(C,"style",k.style,L.style,x),w&8){const q=d.dynamicProps;for(let ee=0;ee<q.length;ee++){const se=q[ee],ue=k[se],me=L[se];(me!==ue||se==="value")&&r(C,se,ue,me,x,g)}}w&1&&f.children!==d.children&&u(C,d.children)}else!T&&b==null&&Me(C,k,L,g,x);((B=L.onVnodeUpdated)||H)&&Se(()=>{B&&Fe(B,g,d,f),H&&vt(d,f,g,"updated")},y)},ce=(f,d,g,y,x,v,T)=>{for(let C=0;C<d.length;C++){const w=f[C],b=d[C],H=w.el&&(w.type===de||!Vt(w,b)||w.shapeFlag&198)?p(w.el):g;M(w,b,H,null,y,x,v,T,!0)}},Me=(f,d,g,y,x)=>{if(d!==g){if(d!==te)for(const v in d)!Kt(v)&&!(v in g)&&r(f,v,d[v],null,x,y);for(const v in g){if(Kt(v))continue;const T=g[v],C=d[v];T!==C&&v!=="value"&&r(f,v,C,T,x,y)}"value"in g&&r(f,"value",d.value,g.value,x)}},Ye=(f,d,g,y,x,v,T,C,w)=>{const b=d.el=f?f.el:l(""),H=d.anchor=f?f.anchor:l("");let{patchFlag:k,dynamicChildren:L,slotScopeIds:B}=d;B&&(C=C?C.concat(B):B),f==null?(n(b,g,y),n(H,g,y),ie(d.children||[],g,H,x,v,T,C,w)):k>0&&k&64&&L&&f.dynamicChildren&&f.dynamicChildren.length===L.length?(ce(f.dynamicChildren,L,g,x,v,T,C),(d.key!=null||x&&d===x.subTree)&&or(f,d,!0)):Z(f,d,g,H,x,v,T,C,w)},$e=(f,d,g,y,x,v,T,C,w)=>{d.slotScopeIds=C,f==null?d.shapeFlag&512?x.ctx.activate(d,g,y,T,w):Tt(d,g,y,x,v,T,w):is(f,d,w)},Tt=(f,d,g,y,x,v,T)=>{const C=f.component=il(f,y,x);if(Uo(f)&&(C.ctx.renderer=Nt),al(C,!1,T),C.asyncDep){if(x&&x.registerDep(C,he,T),!f.el){const w=C.subTree=qe(pt);E(null,w,d,g),f.placeholder=w.el}}else he(C,f,d,g,x,v,T)},is=(f,d,g)=>{const y=d.component=f.component;if(Vi(f,d,g))if(y.asyncDep&&!y.asyncResolved){oe(y,d,g);return}else y.next=d,y.update();else d.el=f.el,y.vnode=d},he=(f,d,g,y,x,v,T)=>{const C=()=>{if(f.isMounted){let{next:k,bu:L,u:B,parent:q,vnode:ee}=f;{const Le=rr(f);if(Le){k&&(k.el=ee.el,oe(f,k,T)),Le.asyncDep.then(()=>{Se(()=>{f.isUnmounted||b()},x)});return}}let se=k,ue;bt(f,!1),k?(k.el=ee.el,oe(f,k,T)):k=ee,L&&fs(L),(ue=k.props&&k.props.onVnodeBeforeUpdate)&&Fe(ue,q,k,ee),bt(f,!0);const me=Fn(f),je=f.subTree;f.subTree=me,M(je,me,p(je.el),Q(je),f,x,v),k.el=me.el,se===null&&Ui(f,me.el),B&&Se(B,x),(ue=k.props&&k.props.onVnodeUpdated)&&Se(()=>Fe(ue,q,k,ee),x)}else{let k;const{el:L,props:B}=d,{bm:q,m:ee,parent:se,root:ue,type:me}=f,je=Jt(d);bt(f,!1),q&&fs(q),!je&&(k=B&&B.onVnodeBeforeMount)&&Fe(k,se,d),bt(f,!0);{ue.ce&&ue.ce._hasShadowRoot()&&ue.ce._injectChildStyle(me,f.parent?f.parent.type:void 0);const Le=f.subTree=Fn(f);M(null,Le,g,y,f,x,v),d.el=Le.el}if(ee&&Se(ee,x),!je&&(k=B&&B.onVnodeMounted)){const Le=d;Se(()=>Fe(k,se,Le),x)}(d.shapeFlag&256||se&&Jt(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&Se(f.a,x),f.isMounted=!0,d=g=y=null}};f.scope.on();const w=f.effect=new vo(C);f.scope.off();const b=f.update=w.run.bind(w),H=f.job=w.runIfDirty.bind(w);H.i=f,H.id=f.uid,w.scheduler=()=>gn(H),bt(f,!0),b()},oe=(f,d,g)=>{d.component=f;const y=f.vnode.props;f.vnode=d,f.next=null,Ki(f,d.props,y,g),Ji(f,d.children,g),it(),Mn(f),lt()},Z=(f,d,g,y,x,v,T,C,w=!1)=>{const b=f&&f.children,H=f?f.shapeFlag:0,k=d.children,{patchFlag:L,shapeFlag:B}=d;if(L>0){if(L&128){$t(b,k,g,y,x,v,T,C,w);return}else if(L&256){Ze(b,k,g,y,x,v,T,C,w);return}}B&8?(H&16&&ke(b,x,v),k!==b&&u(g,k)):H&16?B&16?$t(b,k,g,y,x,v,T,C,w):ke(b,x,v,!0):(H&8&&u(g,""),B&16&&ie(k,g,y,x,v,T,C,w))},Ze=(f,d,g,y,x,v,T,C,w)=>{f=f||Et,d=d||Et;const b=f.length,H=d.length,k=Math.min(b,H);let L;for(L=0;L<k;L++){const B=d[L]=w?st(d[L]):Be(d[L]);M(f[L],B,g,null,x,v,T,C,w)}b>H?ke(f,x,v,!0,!1,k):ie(d,g,y,x,v,T,C,w,k)},$t=(f,d,g,y,x,v,T,C,w)=>{let b=0;const H=d.length;let k=f.length-1,L=H-1;for(;b<=k&&b<=L;){const B=f[b],q=d[b]=w?st(d[b]):Be(d[b]);if(Vt(B,q))M(B,q,g,null,x,v,T,C,w);else break;b++}for(;b<=k&&b<=L;){const B=f[k],q=d[L]=w?st(d[L]):Be(d[L]);if(Vt(B,q))M(B,q,g,null,x,v,T,C,w);else break;k--,L--}if(b>k){if(b<=L){const B=L+1,q=B<H?d[B].el:y;for(;b<=L;)M(null,d[b]=w?st(d[b]):Be(d[b]),g,q,x,v,T,C,w),b++}}else if(b>L)for(;b<=k;)Oe(f[b],x,v,!0),b++;else{const B=b,q=b,ee=new Map;for(b=q;b<=L;b++){const Ae=d[b]=w?st(d[b]):Be(d[b]);Ae.key!=null&&ee.set(Ae.key,b)}let se,ue=0;const me=L-q+1;let je=!1,Le=0;const Ft=new Array(me);for(b=0;b<me;b++)Ft[b]=0;for(b=B;b<=k;b++){const Ae=f[b];if(ue>=me){Oe(Ae,x,v,!0);continue}let Ne;if(Ae.key!=null)Ne=ee.get(Ae.key);else for(se=q;se<=L;se++)if(Ft[se-q]===0&&Vt(Ae,d[se])){Ne=se;break}Ne===void 0?Oe(Ae,x,v,!0):(Ft[Ne-q]=b+1,Ne>=Le?Le=Ne:je=!0,M(Ae,d[Ne],g,null,x,v,T,C,w),ue++)}const Cn=je?Qi(Ft):Et;for(se=Cn.length-1,b=me-1;b>=0;b--){const Ae=q+b,Ne=d[Ae],Tn=d[Ae+1],$n=Ae+1<H?Tn.el||ir(Tn):y;Ft[b]===0?M(null,Ne,g,$n,x,v,T,C,w):je&&(se<0||b!==Cn[se]?Qe(Ne,g,$n,2):se--)}}},Qe=(f,d,g,y,x=null)=>{const{el:v,type:T,transition:C,children:w,shapeFlag:b}=f;if(b&6){Qe(f.component.subTree,d,g,y);return}if(b&128){f.suspense.move(d,g,y);return}if(b&64){T.move(f,d,g,Nt);return}if(T===de){n(v,d,g);for(let k=0;k<w.length;k++)Qe(w[k],d,g,y);n(f.anchor,d,g);return}if(T===ps){z(f,d,g);return}if(y!==2&&b&1&&C)if(y===0)C.beforeEnter(v),n(v,d,g),Se(()=>C.enter(v),x);else{const{leave:k,delayLeave:L,afterLeave:B}=C,q=()=>{f.ctx.isUnmounted?o(v):n(v,d,g)},ee=()=>{v._isLeaving&&v[pi](!0),k(v,()=>{q(),B&&B()})};L?L(v,q,ee):ee()}else n(v,d,g)},Oe=(f,d,g,y=!1,x=!1)=>{const{type:v,props:T,ref:C,children:w,dynamicChildren:b,shapeFlag:H,patchFlag:k,dirs:L,cacheIndex:B,memo:q}=f;if(k===-2&&(x=!1),C!=null&&(it(),qt(C,null,g,f,!0),lt()),B!=null&&(d.renderCache[B]=void 0),H&256){d.ctx.deactivate(f);return}const ee=H&1&&L,se=!Jt(f);let ue;if(se&&(ue=T&&T.onVnodeBeforeUnmount)&&Fe(ue,d,f),H&6)Xe(f.component,g,y);else{if(H&128){f.suspense.unmount(g,y);return}ee&&vt(f,null,d,"beforeUnmount"),H&64?f.type.remove(f,d,g,Nt,y):b&&!b.hasOnce&&(v!==de||k>0&&k&64)?ke(b,d,g,!1,!0):(v===de&&k&384||!x&&H&16)&&ke(w,d,g),y&&I(f)}const me=q!=null&&B==null;(se&&(ue=T&&T.onVnodeUnmounted)||ee||me)&&Se(()=>{ue&&Fe(ue,d,f),ee&&vt(f,null,d,"unmounted"),me&&(f.el=null)},g)},I=f=>{const{type:d,el:g,anchor:y,transition:x}=f;if(d===de){_(g,y);return}if(d===ps){j(f);return}const v=()=>{o(g),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(f.shapeFlag&1&&x&&!x.persisted){const{leave:T,delayLeave:C}=x,w=()=>T(g,v);C?C(f.el,v,w):w()}else v()},_=(f,d)=>{let g;for(;f!==d;)g=m(f),o(f),f=g;o(d)},Xe=(f,d,g)=>{const{bum:y,scope:x,job:v,subTree:T,um:C,m:w,a:b}=f;Un(w),Un(b),y&&fs(y),x.stop(),v&&(v.flags|=8,Oe(T,f,d,g)),C&&Se(C,d),Se(()=>{f.isUnmounted=!0},d)},ke=(f,d,g,y=!1,x=!1,v=0)=>{for(let T=v;T<f.length;T++)Oe(f[T],d,g,y,x)},Q=f=>{if(f.shapeFlag&6)return Q(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const d=m(f.anchor||f.el),g=d&&d[fi];return g?m(g):d};let xt=!1;const Sn=(f,d,g)=>{let y;f==null?d._vnode&&(Oe(d._vnode,null,null,!0),y=d._vnode.component):M(d._vnode||null,f,d,null,null,null,g),d._vnode=f,xt||(xt=!0,Mn(y),jo(),xt=!1)},Nt={p:M,um:Oe,m:Qe,r:I,mt:Tt,mc:ie,pc:Z,pbc:ce,n:Q,o:e};return{render:Sn,hydrate:void 0,createApp:Di(Sn)}}function Bs({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function bt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function or(e,t,s=!1){const n=e.children,o=t.children;if(U(n)&&U(o))for(let r=0;r<n.length;r++){const i=n[r];let l=o[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[r]=st(o[r]),l.el=i.el),!s&&l.patchFlag!==-2&&or(i,l)),l.type===Rs&&(l.patchFlag===-1&&(l=o[r]=st(l)),l.el=i.el),l.type===pt&&!l.el&&(l.el=i.el)}}function Qi(e){const t=e.slice(),s=[0];let n,o,r,i,l;const c=e.length;for(n=0;n<c;n++){const h=e[n];if(h!==0){if(o=s[s.length-1],e[o]<h){t[n]=o,s.push(n);continue}for(r=0,i=s.length-1;r<i;)l=r+i>>1,e[s[l]]<h?r=l+1:i=l;h<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function rr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:rr(t)}function Un(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ir(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ir(t.subTree):null}const lr=e=>e.__isSuspense;function Xi(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):ri(e)}const de=Symbol.for("v-fgt"),Rs=Symbol.for("v-txt"),pt=Symbol.for("v-cmt"),ps=Symbol.for("v-stc"),Yt=[];let Pe=null;function $(e=!1){Yt.push(Pe=e?null:[])}function el(){Yt.pop(),Pe=Yt[Yt.length-1]||null}let es=1;function Bn(e,t=!1){es+=e,e<0&&Pe&&t&&(Pe.hasOnce=!0)}function ar(e){return e.dynamicChildren=es>0?Pe||Et:null,el(),es>0&&Pe&&Pe.push(e),e}function A(e,t,s,n,o,r){return ar(a(e,t,s,n,o,r,!0))}function cr(e,t,s,n,o){return ar(qe(e,t,s,n,o,!0))}function ur(e){return e?e.__v_isVNode===!0:!1}function Vt(e,t){return e.type===t.type&&e.key===t.key}const fr=({key:e})=>e??null,hs=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ae(e)||be(e)||K(e)?{i:Ee,r:e,k:t,f:!!s}:e:null);function a(e,t=null,s=null,n=0,o=null,r=e===de?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fr(t),ref:t&&hs(t),scopeId:No,slotScopeIds:null,children:s,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:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ee};return l?(_n(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=ae(s)?8:16),es>0&&!i&&Pe&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&Pe.push(c),c}const qe=tl;function tl(e,t=null,s=null,n=0,o=null,r=!1){if((!e||e===Ko)&&(e=pt),ur(e)){const l=Rt(e,t,!0);return s&&_n(l,s),es>0&&!r&&Pe&&(l.shapeFlag&6?Pe[Pe.indexOf(e)]=l:Pe.push(l)),l.patchFlag=-2,l}if(pl(e)&&(e=e.__vccOpts),t){t=sl(t);let{class:l,style:c}=t;l&&!ae(l)&&(t.class=le(l)),X(c)&&(mn(c)&&!U(c)&&(c=ge({},c)),t.style=Es(c))}const i=ae(e)?1:lr(e)?128:di(e)?64:X(e)?4:K(e)?2:0;return a(e,t,s,n,o,i,r,!0)}function sl(e){return e?mn(e)||Qo(e)?ge({},e):e:null}function Rt(e,t,s=!1,n=!1){const{props:o,ref:r,patchFlag:i,children:l,transition:c}=e,h=t?nl(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&fr(h),ref:t&&t.ref?s&&r?U(r)?r.concat(hs(t)):[r,hs(t)]:hs(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==de?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Rt(e.ssContent),ssFallback:e.ssFallback&&Rt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&xn(u,c.clone(u)),u}function _t(e=" ",t=0){return qe(Rs,null,e,t)}function Ve(e,t){const s=qe(ps,null,e);return s.staticCount=t,s}function re(e="",t=!1){return t?($(),cr(pt,null,e)):qe(pt,null,e)}function Be(e){return e==null||typeof e=="boolean"?qe(pt):U(e)?qe(de,null,e.slice()):ur(e)?st(e):qe(Rs,null,String(e))}function st(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Rt(e)}function _n(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(U(t))s=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),_n(e,o()),o._c&&(o._d=!0));return}else{s=32;const o=t._;!o&&!Qo(t)?t._ctx=Ee:o===3&&Ee&&(Ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:Ee},s=32):(t=String(t),n&64?(s=16,t=[_t(t)]):s=8);e.children=t,e.shapeFlag|=s}function nl(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=le([t.class,n.class]));else if(o==="style")t.style=Es([t.style,n.style]);else if(Ss(o)){const r=t[o],i=n[o];i&&r!==i&&!(U(r)&&r.includes(i))?t[o]=r?[].concat(r,i):i:i==null&&r==null&&!Cs(o)&&(t[o]=i)}else o!==""&&(t[o]=n[o])}return t}function Fe(e,t,s,n=null){Ge(e,t,7,[s,n])}const ol=qo();let rl=0;function il(e,t,s){const n=e.type,o=(t?t.appContext:e.appContext)||ol,r={uid:rl++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new kr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:er(n,o),emitsOptions:Jo(n,o),emit:null,emitted:null,propsDefaults:te,inheritAttrs:n.inheritAttrs,ctx:te,data:te,props:te,attrs:te,slots:te,refs:te,setupState:te,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Li.bind(null,r),e.ce&&e.ce(r),r}let ve=null;const ll=()=>ve||Ee;let _s,tn;{const e=As(),t=(s,n)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(n),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};_s=t("__VUE_INSTANCE_SETTERS__",s=>ve=s),tn=t("__VUE_SSR_SETTERS__",s=>ts=s)}const rs=e=>{const t=ve;return _s(e),e.scope.on(),()=>{e.scope.off(),_s(t)}},Kn=()=>{ve&&ve.scope.off(),_s(null)};function dr(e){return e.vnode.shapeFlag&4}let ts=!1;function al(e,t=!1,s=!1){t&&tn(t);const{props:n,children:o}=e.vnode,r=dr(e);Bi(e,n,r,t),qi(e,o,s||t);const i=r?cl(e,t):void 0;return t&&tn(!1),i}function cl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ai);const{setup:n}=s;if(n){it();const o=e.setupContext=n.length>1?fl(e):null,r=rs(e),i=os(n,e,0,[e.props,o]),l=uo(i);if(lt(),r(),(l||e.sp)&&!Jt(e)&&Vo(e),l){if(i.then(Kn,Kn),t)return i.then(c=>{Wn(e,c)}).catch(c=>{Ms(c,e,0)});e.asyncDep=i}else Wn(e,i)}else pr(e)}function Wn(e,t,s){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:X(t)&&(e.setupState=Oo(t)),pr(e)}function pr(e,t,s){const n=e.type;e.render||(e.render=n.render||ze);{const o=rs(e);it();try{Ei(e)}finally{lt(),o()}}}const ul={get(e,t){return xe(e,"get",""),e[t]}};function fl(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ul),slots:e.slots,emit:e.emit,expose:t}}function Ds(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Oo(Jr(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Gt)return Gt[s](e)},has(t,s){return s in t||s in Gt}})):e.proxy}function dl(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function pl(e){return K(e)&&"__vccOpts"in e}const ht=(e,t)=>ei(e,t,ts),hl="3.5.31";/**
|
|
61
61
|
* @vue/runtime-dom v3.5.31
|
|
62
62
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
63
63
|
* @license MIT
|
|
64
|
-
**/let tn;const zn=typeof window<"u"&&window.trustedTypes;if(zn)try{tn=zn.createPolicy("vue",{createHTML:e=>e})}catch{}const hr=tn?e=>tn.createHTML(e):e=>e,ml="http://www.w3.org/2000/svg",gl="http://www.w3.org/1998/Math/MathML",et=typeof document<"u"?document:null,qn=et&&et.createElement("template"),xl={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const o=t==="svg"?et.createElementNS(ml,e):t==="mathml"?et.createElementNS(gl,e):s?et.createElement(e,{is:s}):et.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>et.createTextNode(e),createComment:e=>et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,o,r){const i=s?s.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===r||!(o=o.nextSibling)););else{qn.innerHTML=hr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=qn.content;if(n==="svg"||n==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},vl=Symbol("_vtc");function bl(e,t,s){const n=e[vl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Jn=Symbol("_vod"),yl=Symbol("_vsh"),_l=Symbol(""),wl=/(?:^|;)\s*display\s*:/;function Sl(e,t,s){const n=e.style,o=le(s);let r=!1;if(s&&!o){if(t)if(le(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();s[l]==null&&hs(n,l,"")}else for(const i in t)s[i]==null&&hs(n,i,"");for(const i in s)i==="display"&&(r=!0),hs(n,i,s[i])}else if(o){if(t!==s){const i=n[_l];i&&(s+=";"+i),n.cssText=s,r=wl.test(s)}}else t&&e.removeAttribute("style");Jn in e&&(e[Jn]=r?n.display:"",e[yl]&&(n.display="none"))}const Gn=/\s*!important$/;function hs(e,t,s){if(U(s))s.forEach(n=>hs(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Cl(e,t);Gn.test(s)?e.setProperty(ht(n),s.replace(Gn,""),"important"):e[n]=s}}const Yn=["Webkit","Moz","ms"],Bs={};function Cl(e,t){const s=Bs[t];if(s)return s;let n=we(t);if(n!=="filter"&&n in e)return Bs[t]=n;n=Ts(n);for(let o=0;o<Yn.length;o++){const r=Yn[o]+n;if(r in e)return Bs[t]=r}return t}const Zn="http://www.w3.org/1999/xlink";function Qn(e,t,s,n,o,r=Tr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Zn,t.slice(6,t.length)):e.setAttributeNS(Zn,t,s):s==null||r&&!mo(s)?e.removeAttribute(t):e.setAttribute(t,r?"":qe(s)?String(s):s)}function Xn(e,t,s,n,o){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?hr(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,a=s==null?e.type==="checkbox"?"on":"":String(s);(l!==a||!("_value"in e))&&(e.value=a),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=mo(s):s==null&&l==="string"?(s="",i=!0):l==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(o||t)}function dt(e,t,s,n){e.addEventListener(t,s,n)}function Tl(e,t,s,n){e.removeEventListener(t,s,n)}const eo=Symbol("_vei");function $l(e,t,s,n,o=null){const r=e[eo]||(e[eo]={}),i=r[t];if(n&&i)i.value=n;else{const[l,a]=kl(t);if(n){const m=r[t]=Pl(n,o);dt(e,l,m,a)}else i&&(Tl(e,l,i,a),r[t]=void 0)}}const to=/(?:Once|Passive|Capture)$/;function kl(e){let t;if(to.test(e)){t={};let n;for(;n=e.match(to);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ht(e.slice(2)),t]}let Ks=0;const Al=Promise.resolve(),El=()=>Ks||(Al.then(()=>Ks=0),Ks=Date.now());function Pl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Je(Ml(n,s.value),t,5,[n])};return s.value=e,s.attached=El(),s}function Ml(e,t){if(U(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const so=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ol=(e,t,s,n,o,r)=>{const i=o==="svg";t==="class"?bl(e,n,i):t==="style"?Sl(e,s,n):ws(t)?Ss(t)||$l(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Il(e,t,n,i))?(Xn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qn(e,t,n,i,r,t!=="value")):e._isVueCE&&(Rl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!le(n)))?Xn(e,we(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Qn(e,t,n,i))};function Il(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&so(t)&&K(s));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 so(t)&&le(s)?!1:t in e}function Rl(e,t){const s=e._def.props;if(!s)return!1;const n=we(t);return Array.isArray(s)?s.some(o=>we(o)===n):Object.keys(s).some(o=>we(o)===n)}const It=e=>{const t=e.props["onUpdate:modelValue"]||!1;return U(t)?s=>us(t,s):t};function Dl(e){e.target.composing=!0}function no(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const rt=Symbol("_assign");function oo(e,t,s){return t&&(e=e.trim()),s&&(e=$s(e)),e}const Oe={created(e,{modifiers:{lazy:t,trim:s,number:n}},o){e[rt]=It(o);const r=n||o.props&&o.props.type==="number";dt(e,t?"change":"input",i=>{i.target.composing||e[rt](oo(e.value,s,r))}),(s||r)&&dt(e,"change",()=>{e.value=oo(e.value,s,r)}),t||(dt(e,"compositionstart",Dl),dt(e,"compositionend",no),dt(e,"change",no))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:o,number:r}},i){if(e[rt]=It(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?$s(e.value):e.value,a=t??"";if(l===a)return;const m=e.getRootNode();(m instanceof Document||m instanceof ShadowRoot)&&m.activeElement===e&&e.type!=="range"&&(n&&t===s||o&&e.value.trim()===a)||(e.value=a)}},ro={deep:!0,created(e,t,s){e[rt]=It(s),dt(e,"change",()=>{const n=e._modelValue,o=ts(e),r=e.checked,i=e[rt];if(U(n)){const l=rn(n,o),a=l!==-1;if(r&&!a)i(n.concat(o));else if(!r&&a){const m=[...n];m.splice(l,1),i(m)}}else if(Rt(n)){const l=new Set(n);r?l.add(o):l.delete(o),i(l)}else i(mr(e,r))})},mounted:io,beforeUpdate(e,t,s){e[rt]=It(s),io(e,t,s)}};function io(e,{value:t,oldValue:s},n){e._modelValue=t;let o;if(U(t))o=rn(t,n.props.value)>-1;else if(Rt(t))o=t.has(n.props.value);else{if(t===s)return;o=Dt(t,mr(e,!0))}e.checked!==o&&(e.checked=o)}const _s={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const o=Rt(t);dt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?$s(ts(i)):ts(i));e[rt](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,Ro(()=>{e._assigning=!1})}),e[rt]=It(n)},mounted(e,{value:t}){lo(e,t)},beforeUpdate(e,t,s){e[rt]=It(s)},updated(e,{value:t}){e._assigning||lo(e,t)}};function lo(e,t){const s=e.multiple,n=U(t);if(!(s&&!n&&!Rt(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],l=ts(i);if(s)if(n){const a=typeof l;a==="string"||a==="number"?i.selected=t.some(m=>String(m)===String(l)):i.selected=rn(t,l)>-1}else i.selected=t.has(l);else if(Dt(ts(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ts(e){return"_value"in e?e._value:e.value}function mr(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const jl={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ll=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(o=>{if(!("key"in o))return;const r=ht(o.key);if(t.some(i=>i===r||jl[i]===r))return e(o)}))},Nl=ge({patchProp:Ol},xl);let ao;function Fl(){return ao||(ao=Gi(Nl))}const Hl=((...e)=>{const t=Fl().createApp(...e),{mount:s}=t;return t.mount=n=>{const o=Ul(n);if(!o)return;const r=t._component;!K(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=s(o,!1,Vl(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function Vl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ul(e){return le(e)?document.querySelector(e):e}let wn="";function Vt(e){wn=e}function st(){return wn}async function de(e,t){const s=await fetch(e,{...t,headers:{Authorization:`Bearer ${wn}`,"Content-Type":"application/json",...(t==null?void 0:t.headers)??{}}});if(!s.ok){const n=new Error(s.statusText);throw n.status=s.status,n}return s.json()}const Bl={class:"animate-fade-in"},Kl={key:0,class:"text-center py-12 text-textSecondary"},Wl={key:1,class:"text-center text-textSecondary py-12"},zl={key:2,class:"space-y-3"},ql={class:"flex items-center justify-between"},Jl={class:"flex items-center gap-3"},Gl={class:"font-medium"},Yl={class:"text-accentLight"},Zl={class:"text-textSecondary text-xs"},Ql={key:2,class:"text-muted italic"},Xl={class:"text-xs text-textSecondary font-mono"},ea={class:"text-right"},ta={class:"flex items-center gap-2 justify-end"},sa={class:"text-xs text-textSecondary"},na=jt({__name:"SessionsTab",props:{status:{}},setup(e){const t=e,s=H([]),n=H(!0);async function o(){n.value=!0;try{const m=await de("/api/status");s.value=(m.sessions||[]).slice().sort((f,p)=>f.status==="active"&&p.status!=="active"?-1:f.status!=="active"&&p.status==="active"?1:p.lastActivity-f.lastActivity)}finally{n.value=!1}}const r=_t(()=>{var f;return(((f=t.status)==null?void 0:f.sessions)??s.value).slice().sort((p,h)=>p.status==="active"&&h.status!=="active"?-1:p.status!=="active"&&h.status==="active"?1:h.lastActivity-p.lastActivity)});function i(m){const f=Math.floor((Date.now()-m.lastActivity)/6e4);return m.status==="disconnected"?{label:`Disconnected${f>0?` — ${f}m ago`:""}`,color:"text-muted"}:f<5?{label:"Active",color:"text-success"}:f<30?{label:`Idle ${f}m`,color:"text-warn"}:{label:`Dormant ${f}m`,color:"text-danger"}}function l(m){if(!m.lastWaitCallAt)return"";const f=Math.floor((Date.now()-m.lastWaitCallAt)/6e4);return f<5?`Polling — ${f===0?"just now":f+"m ago"}`:`Last poll — ${f}m ago`}function a(m){return m.lastWaitCallAt?Math.floor((Date.now()-m.lastWaitCallAt)/6e4)<5?"text-success":"text-warn":""}return wt(o),(m,f)=>(A(),E("div",Bl,[n.value&&r.value.length===0?(A(),E("div",Kl,"Loading sessions...")):r.value.length===0?(A(),E("div",Wl,"No sessions")):(A(),E("div",zl,[(A(!0),E(ue,null,ct(r.value,p=>(A(),E("div",{key:p.mcpSessionId,class:fe(["glass rounded-xl p-4 animate-slide-up",p.status==="disconnected"?"opacity-60":""])},[u("div",ql,[u("div",Jl,[u("span",{class:fe(["w-2.5 h-2.5 rounded-full",p.status==="disconnected"?"bg-muted":Math.floor((Date.now()-p.lastActivity)/6e4)<5?"bg-success":Math.floor((Date.now()-p.lastActivity)/6e4)<30?"bg-warn":"bg-danger"])},null,2),u("div",null,[u("div",Gl,[p.topicName?(A(),E(ue,{key:0},[u("span",Yl,j(p.topicName),1),u("span",Zl," (thread "+j(p.threadId)+")",1)],64)):p.threadId!=null?(A(),E(ue,{key:1},[yn("Thread "+j(p.threadId),1)],64)):(A(),E("span",Ql,"Awaiting start_session…"))]),u("div",Xl,j(p.mcpSessionId.slice(0,12))+"...",1)])]),u("div",ea,[u("div",ta,[u("span",{class:fe(["text-sm font-medium",i(p).color])},j(i(p).label),3),l(p)?(A(),E("span",{key:0,class:fe(["text-xs ml-2",a(p)])},j(l(p)),3)):ie("",!0)]),u("div",sa,j(p.transportType),1)])])],2))),128))]))]))}}),oa={class:"animate-fade-in"},ra={class:"flex flex-wrap items-center gap-3 mb-4"},ia={key:0,class:"text-center py-12 text-textSecondary"},la={key:1,class:"text-center py-12 text-textSecondary"},aa={key:2,class:"space-y-2"},ca={class:"flex items-start justify-between gap-3"},ua={class:"flex-1 min-w-0"},fa={class:"flex items-center gap-2 mb-1"},da={key:0,class:"type-badge",style:{background:"rgba(239,68,68,0.15)",color:"#f87171"}},pa={key:1,class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},ha={class:"text-xs text-textSecondary"},ma={class:"text-sm text-textPrimary leading-relaxed"},ga={class:"flex flex-wrap gap-1.5 mt-2"},xa={class:"text-right shrink-0"},va={class:"text-sm font-mono text-textSecondary"},ba={class:"text-xs text-muted"},ya={class:"text-xs text-muted"},_a=jt({__name:"MemoryNotesTab",setup(e){const t=H([]),s=H(!1),n=H(""),o=H("created_at"),r=H("");let i=null;async function l(){s.value=!0;try{const f=r.value.trim();let p;if(f)p=await de(`/api/search?q=${encodeURIComponent(f)}&limit=50`);else{const h=new URLSearchParams({limit:"50",sort:o.value});n.value&&h.set("type",n.value),p=await de(`/api/notes?${h}`)}t.value=p}finally{s.value=!1}}function a(){i&&clearTimeout(i),i=setTimeout(l,300)}function m(f){if(!f)return"never";const p=Date.now()-new Date(f).getTime(),h=Math.floor(p/6e4);if(h<1)return"just now";if(h<60)return`${h}m ago`;const S=Math.floor(h/60);return S<24?`${S}h ago`:`${Math.floor(S/24)}d ago`}return wt(l),(f,p)=>(A(),E("div",oa,[u("div",ra,[pe(u("input",{"onUpdate:modelValue":p[0]||(p[0]=h=>r.value=h),onInput:a,type:"text",placeholder:"Search notes...",class:"flex-1 min-w-[200px] px-4 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted focus:outline-none focus:border-accent transition"},null,544),[[Oe,r.value]]),pe(u("select",{"onUpdate:modelValue":p[1]||(p[1]=h=>n.value=h),onChange:l,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none"},[...p[3]||(p[3]=[Ve('<option value="">All types</option><option value="fact">Facts</option><option value="preference">Preferences</option><option value="pattern">Patterns</option><option value="entity">Entities</option><option value="relationship">Relationships</option>',6)])],544),[[_s,n.value]]),pe(u("select",{"onUpdate:modelValue":p[2]||(p[2]=h=>o.value=h),onChange:l,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none"},[...p[4]||(p[4]=[u("option",{value:"created_at"},"Newest",-1),u("option",{value:"confidence"},"Confidence",-1),u("option",{value:"access_count"},"Most accessed",-1)])],544),[[_s,o.value]])]),s.value?(A(),E("div",ia,"Loading notes...")):t.value.length===0?(A(),E("div",la,"No notes found")):(A(),E("div",aa,[(A(!0),E(ue,null,ct(t.value,h=>(A(),E("div",{key:h.noteId,class:fe(["glass rounded-xl p-4 animate-fade-in",`priority-${h.priority||0}`])},[u("div",ca,[u("div",ua,[u("div",fa,[u("span",{class:fe(["type-badge",`type-${h.type}`])},j(h.type),3),h.priority>=2?(A(),E("span",da,"HIGH IMPORTANCE")):h.priority===1?(A(),E("span",pa,"NOTABLE")):ie("",!0),u("span",ha,j(h.noteId),1)]),u("p",ma,j(h.content),1),u("div",ga,[(A(!0),E(ue,null,ct(h.keywords||[],S=>(A(),E("span",{key:S,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},j(S),1))),128))])]),u("div",xa,[u("div",va,j(((Number(h.confidence)||0)*100).toFixed(0))+"%",1),u("div",ba,j(m(h.createdAt)),1),u("div",ya,j(h.accessCount??0)+" hits",1)])])],2))),128))]))]))}}),wa={class:"animate-fade-in space-y-6"},Sa={class:"glass rounded-xl p-4"},Ca={class:"flex flex-wrap items-center gap-4 mb-4"},Ta={key:0,class:"text-sm text-success"},$a={class:"flex flex-wrap items-center gap-3"},ka={key:0,class:"text-sm text-success"},Aa={class:"flex flex-wrap items-center gap-3 mb-4"},Ea={key:0,class:"text-sm text-success"},Pa={class:"glass rounded-xl p-6"},Ma={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Oa={class:"flex items-center gap-2"},Ia={key:0,class:"text-sm text-success"},Ra={key:0,class:"mb-3"},Da={class:"mt-4"},ja=["innerHTML"],La={class:"glass rounded-xl p-6"},Na={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Fa={class:"flex items-center gap-2"},Ha={key:0,class:"text-sm text-success"},Va={class:"flex gap-2 mb-4"},Ua=["onClick"],Ba={key:0,class:"mb-3"},Ka=["value","placeholder"],Wa={class:"glass rounded-xl p-6"},za={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},qa={class:"flex items-center gap-2"},Ja={key:0,class:"text-sm text-success"},Ga={class:"mb-4 flex flex-wrap items-center gap-3"},Ya={class:"flex items-center gap-2"},Za={class:"font-mono text-sm text-textPrimary"},Qa={key:0,class:"mb-3"},Xa={class:"flex flex-wrap gap-2 mb-3"},ec=["onClick"],tc={class:"mt-4"},sc=["innerHTML"],nc=jt({__name:"TemplatesTab",setup(e){function t(I){return I.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\{\{([A-Z_]+)\}\}/g,'<span class="text-accentLight" style="background:rgba(99,102,241,0.1);padding:0 2px;border-radius:3px">{{$1}}</span>')}const s=H("copilot"),n=H(""),o=H(""),r=H(""),i=H(50),l=H(""),a=H(""),m=H(!0),f=H(""),p=H(!1),h=H({}),S=H("copilot"),P=H(""),M=H(""),W=H(!0),k=H(""),L=H(!1),z=H([]),R=H("");async function N(){await Promise.all([O(),V(),re(),J(),ae()])}async function O(){try{const I=await de("/api/settings/agent-type");s.value=I.agentType||"copilot"}catch{}}async function V(){try{const I=await de("/api/settings/claude-mcp-config");o.value=I.path||""}catch{}}async function re(){try{const I=await de("/api/settings/bootstrap-message-count");i.value=I.count??50}catch{}}async function J(){try{const I=await de("/api/templates");if(I.templates&&I.templates.length>0){const _=I.templates[0];a.value=_.content||"",m.value=_.isDefault??!0}I.agentReminders&&(h.value=I.agentReminders)}catch{}}async function ae(){try{const[I,_,Qe]=await Promise.all([de("/api/templates/drive"),de("/api/templates/drive-presets"),de("/api/settings/dmn-activation-hours")]);z.value=_.presets||[],R.value=String(Qe.value??"not set"),I.custom?(M.value=I.custom,W.value=!1):(M.value=I.default||"",W.value=!0)}catch{}}async function Pe(){try{await de("/api/settings/agent-type",{method:"POST",body:JSON.stringify({agentType:s.value})}),await de("/api/templates/reminders",{method:"DELETE"}),n.value="Saved ✓",setTimeout(()=>{n.value=""},3e3),await J()}catch(I){n.value="Error: "+I.message}}async function Ge(){try{await de("/api/settings/bootstrap-message-count",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:i.value})}),l.value="Saved ✓",setTimeout(()=>{l.value=""},3e3)}catch(I){l.value="Error: "+I.message}}async function Te(){const I=o.value.trim();if(!I){r.value="Path is empty",setTimeout(()=>{r.value=""},3e3);return}try{await de("/api/settings/claude-mcp-config",{method:"POST",body:JSON.stringify({path:I})}),r.value="Saved ✓",setTimeout(()=>{r.value=""},3e3)}catch(_){r.value="Error: "+_.message}}async function St(){try{const I=await fetch("/api/templates/reminders",{method:"POST",headers:{Authorization:`Bearer ${st()}`,"Content-Type":"application/json"},body:JSON.stringify({content:a.value})});if(!I.ok)throw new Error(I.statusText);m.value=!1,f.value="Saved ✓",setTimeout(()=>{f.value=""},3e3)}catch(I){f.value="Error: "+I.message}}async function rs(){if(confirm("Reset to default template? Your customizations will be lost."))try{const I=await fetch("/api/templates/reminders",{method:"DELETE",headers:{Authorization:`Bearer ${st()}`}});if(!I.ok)throw new Error(I.statusText);await J(),f.value="Reset to default ✓",setTimeout(()=>{f.value=""},3e3)}catch(I){f.value="Error: "+I.message}}async function he(){var Qe;const I=S.value,_=((Qe=h.value[I])==null?void 0:Qe.content)??"";try{const $e=await fetch(`/api/templates/reminders-${I}`,{method:"POST",headers:{Authorization:`Bearer ${st()}`,"Content-Type":"application/json"},body:JSON.stringify({content:_})});if(!$e.ok)throw new Error($e.statusText);h.value[I]={content:_,isDefault:!1},P.value=`Saved ${I} ✓`,setTimeout(()=>{P.value=""},3e3)}catch($e){P.value="Error: "+$e.message}}async function oe(){const I=S.value;if(confirm(`Reset ${I} agent reminder? The custom template will be removed.`))try{const _=await fetch(`/api/templates/reminders-${I}`,{method:"DELETE",headers:{Authorization:`Bearer ${st()}`}});if(!_.ok)throw new Error(_.statusText);await J(),P.value=`Reset ${I} ✓`,setTimeout(()=>{P.value=""},3e3)}catch(_){P.value="Error: "+_.message}}async function Z(){const I=M.value;if(!I.trim()){k.value="Template is empty — load a preset first",setTimeout(()=>{k.value=""},3e3);return}try{const _=await fetch("/api/templates/drive",{method:"POST",headers:{Authorization:`Bearer ${st()}`,"Content-Type":"application/json"},body:JSON.stringify({content:I})});if(!_.ok)throw new Error(_.statusText);W.value=!1,k.value="Saved ✓",setTimeout(()=>{k.value=""},3e3)}catch(_){k.value="Error: "+_.message}}async function Ye(){if(confirm("Reset drive template? The custom template will be removed."))try{const I=await fetch("/api/templates/drive",{method:"DELETE",headers:{Authorization:`Bearer ${st()}`}});if(!I.ok)throw new Error(I.statusText);await ae(),k.value="Reset to default ✓",setTimeout(()=>{k.value=""},3e3)}catch(I){k.value="Error: "+I.message}}function Ct(I){M.value=I.content,W.value=!1}const Ze=_t(()=>t(a.value)),Me=_t(()=>M.value?t(M.value):'<span style="color:#6b7280">(no template loaded)</span>');return wt(N),(I,_)=>{var Qe,$e;return A(),E("div",wa,[u("div",Sa,[u("div",Ca,[_[9]||(_[9]=u("label",{class:"text-sm font-medium text-textSecondary"},"Agent Type",-1)),pe(u("select",{"onUpdate:modelValue":_[0]||(_[0]=Q=>s.value=Q),onChange:Pe,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},[..._[8]||(_[8]=[u("option",{value:"copilot"},"Copilot",-1),u("option",{value:"claude"},"Claude",-1),u("option",{value:"cursor"},"Cursor",-1)])],544),[[_s,s.value]]),n.value?(A(),E("span",Ta,j(n.value),1)):ie("",!0),_[10]||(_[10]=u("span",{class:"text-xs text-muted"},"Changes which default reminders template is used",-1))]),u("div",$a,[_[11]||(_[11]=u("label",{class:"text-sm font-medium text-textSecondary"},"Claude MCP Config Path",-1)),pe(u("input",{"onUpdate:modelValue":_[1]||(_[1]=Q=>o.value=Q),type:"text",placeholder:"~/.claude/settings.json",class:"flex-1 min-w-[260px] px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted font-mono focus:outline-none focus:border-accent transition"},null,512),[[Oe,o.value]]),u("button",{onClick:Te,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save"),r.value?(A(),E("span",ka,j(r.value),1)):ie("",!0)]),u("div",Aa,[_[12]||(_[12]=u("label",{class:"text-sm font-medium text-textSecondary"},"Bootstrap Messages",-1)),pe(u("input",{"onUpdate:modelValue":_[2]||(_[2]=Q=>i.value=Q),type:"number",min:"0",max:"500",class:"w-24 px-3 py-2 rounded-xl bg-card border border-gray-700 text-text text-sm focus:border-accent focus:outline-none"},null,512),[[Oe,i.value,void 0,{number:!0}]]),u("button",{onClick:Ge,class:"px-4 py-2 rounded-xl bg-accent text-white text-sm font-medium hover:bg-accent/80 transition-colors"},"Save"),l.value?(A(),E("span",Ea,j(l.value),1)):ie("",!0),_[13]||(_[13]=u("span",{class:"text-xs text-muted"},"Number of recent messages injected as warm context (0 = off)",-1))])]),u("div",Pa,[u("div",Ma,[_[14]||(_[14]=u("div",null,[u("h3",{class:"text-lg font-semibold"},"Reminders Template"),u("p",{class:"text-sm text-textSecondary mt-1"},"Edit the system prompt template sent with every reminder")],-1)),u("div",Oa,[f.value?(A(),E("span",Ia,j(f.value),1)):ie("",!0),u("button",{onClick:rs,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset to Default"),u("button",{onClick:St,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),m.value?(A(),E("div",Ra,[..._[15]||(_[15]=[u("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"USING DEFAULT — edit and save to customize",-1)])])):ie("",!0),pe(u("textarea",{"onUpdate:modelValue":_[3]||(_[3]=Q=>a.value=Q),rows:"20",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Loading..."},null,512),[[Oe,a.value]]),u("div",Da,[u("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:_[4]||(_[4]=Q=>p.value=!p.value)},[(A(),E("svg",{class:fe(["w-4 h-4 text-textSecondary transition-transform",p.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[..._[16]||(_[16]=[u("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),_[17]||(_[17]=u("span",{class:"text-sm font-medium text-textSecondary"},"Preview with highlighted variables",-1))]),p.value?(A(),E("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:Ze.value},null,8,ja)):ie("",!0)]),_[18]||(_[18]=Ve('<details class="mt-4"><summary class="text-sm font-medium text-textSecondary cursor-pointer hover:text-textPrimary transition">Available Variables</summary><div class="mt-2 glass rounded-xl p-4 grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm"><div><code class="text-accentLight">{{OPERATOR_MESSAGE}}</code> <span class="text-textSecondary">— latest operator message</span></div><div><code class="text-accentLight">{{THREAD_ID}}</code> <span class="text-textSecondary">— Telegram thread ID</span></div><div><code class="text-accentLight">{{TIME}}</code> <span class="text-textSecondary">— formatted timestamp</span></div><div><code class="text-accentLight">{{UPTIME}}</code> <span class="text-textSecondary">— session uptime</span></div><div><code class="text-accentLight">{{VERSION}}</code> <span class="text-textSecondary">— package version</span></div><div><code class="text-accentLight">{{MODE}}</code> <span class="text-textSecondary">— "autonomous" or "standard"</span></div></div></details>',1))]),u("div",La,[u("div",Na,[_[19]||(_[19]=u("div",null,[u("h3",{class:"text-lg font-semibold"},"Agent-Specific Reminders"),u("p",{class:"text-sm text-textSecondary mt-1"},"Appended after the base reminders template — per agent type")],-1)),u("div",Fa,[P.value?(A(),E("span",Ha,j(P.value),1)):ie("",!0),u("button",{onClick:oe,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset"),u("button",{onClick:he,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),u("div",Va,[(A(),E(ue,null,ct(["copilot","claude","cursor"],Q=>u("button",{key:Q,onClick:mt=>S.value=Q,class:fe(["px-4 py-2 rounded-xl text-sm font-medium transition",S.value===Q?"bg-accent text-white":"bg-card hover:bg-cardHover border border-gray-700 text-textSecondary hover:text-textPrimary"])},j(Q.charAt(0).toUpperCase()+Q.slice(1)),11,Ua)),64))]),((Qe=h.value[S.value])==null?void 0:Qe.isDefault)!==!1?(A(),E("div",Ba,[..._[20]||(_[20]=[u("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"NO CUSTOM OVERRIDE — this agent uses only the base reminders",-1)])])):ie("",!0),u("textarea",{value:(($e=h.value[S.value])==null?void 0:$e.content)??"",onInput:_[5]||(_[5]=Q=>{const mt=Q.target;h.value[S.value]={content:mt.value,isDefault:!1}}),rows:"8",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:`Add ${S.value}-specific reminders (e.g. orchestrator hints, subagent policies)...`},null,40,Ka)]),u("div",Wa,[u("div",za,[_[21]||(_[21]=u("div",null,[u("h3",{class:"text-lg font-semibold"},"Drive Framing Template"),u("p",{class:"text-sm text-textSecondary mt-1"},"Customize the autonomous drive prompt sent when the operator is away")],-1)),u("div",qa,[k.value?(A(),E("span",Ja,j(k.value),1)):ie("",!0),u("button",{onClick:Ye,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset to Default"),u("button",{onClick:Z,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),u("div",Ga,[_[23]||(_[23]=u("label",{class:"text-sm text-textSecondary"},"Drive Activation Period:",-1)),u("div",Ya,[u("span",Za,j(R.value),1),_[22]||(_[22]=u("span",{class:"text-sm text-textSecondary"},"hours",-1))]),_[24]||(_[24]=u("span",{class:"text-xs text-muted"},"(informational — set via DMN_ACTIVATION_HOURS env var)",-1))]),W.value?(A(),E("div",Qa,[..._[25]||(_[25]=[u("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"(Default — edit to override)",-1)])])):ie("",!0),u("div",Xa,[_[26]||(_[26]=u("span",{class:"text-sm text-textSecondary self-center"},"Presets:",-1)),(A(!0),E(ue,null,ct(z.value,Q=>(A(),E("button",{key:Q.key,onClick:mt=>Ct(Q),class:"px-3 py-1.5 rounded-lg bg-card hover:bg-cardHover border border-gray-700 text-xs text-textSecondary hover:text-textPrimary transition"},j(Q.label),9,ec))),128))]),pe(u("textarea",{"onUpdate:modelValue":_[6]||(_[6]=Q=>M.value=Q),rows:"15",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Load a preset or type a custom drive template..."},null,512),[[Oe,M.value]]),u("div",tc,[u("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:_[7]||(_[7]=Q=>L.value=!L.value)},[(A(),E("svg",{class:fe(["w-4 h-4 text-textSecondary transition-transform",L.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[..._[27]||(_[27]=[u("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),_[28]||(_[28]=u("span",{class:"text-sm font-medium text-textSecondary"},"Preview with sample values",-1))]),L.value?(A(),E("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:Me.value},null,8,sc)):ie("",!0)]),_[29]||(_[29]=Ve('<details class="mt-4"><summary class="text-sm font-medium text-textSecondary cursor-pointer hover:text-textPrimary transition">Available Variables</summary><div class="mt-2 glass rounded-xl p-4 grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm"><div><code class="text-accentLight">{{IDLE_HOURS}}</code> <span class="text-textSecondary">— hours since last operator interaction</span></div><div><code class="text-accentLight">{{TIME}}</code> <span class="text-textSecondary">— ISO timestamp</span></div><div><code class="text-accentLight">{{PROBABILITY}}</code> <span class="text-textSecondary">— drive activation probability (0.2–1.0)</span></div></div></details>',1))])])}}}),oc={class:"animate-fade-in"},rc={class:"glass rounded-xl p-6 mb-6"},ic={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},lc={key:0,class:"glass rounded-xl p-4 mb-4 border border-accent/30"},ac={class:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-3"},cc={class:"flex items-center gap-4 mb-3"},uc={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer"},fc={class:"flex items-center gap-2"},dc={key:0,class:"text-sm text-warn"},pc={key:1,class:"text-center py-8 text-textSecondary text-sm"},hc={key:2,class:"text-center text-textSecondary py-12"},mc={key:3,class:"space-y-2"},gc=["onClick"],xc={class:"flex items-start justify-between gap-3"},vc={class:"flex-1 min-w-0"},bc={class:"flex items-center gap-2 mb-1"},yc={class:"font-medium text-sm"},_c={key:0,class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},wc={class:"flex flex-wrap gap-1.5 mt-1"},Sc=["title"],Cc={key:0,class:"glass rounded-xl p-6"},Tc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},$c={class:"text-lg font-semibold"},kc={class:"text-sm text-textSecondary mt-1"},Ac={class:"flex items-center gap-2"},Ec={key:0,class:"text-sm text-success"},Pc={class:"grid grid-cols-1 sm:grid-cols-3 gap-3 mb-4"},Mc=["value"],Oc={class:"flex items-end"},Ic={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer pb-2"},Rc=jt({__name:"SkillsTab",setup(e){const t=H([]),s=H(!0),n=H(null),o=H(""),r=H(""),i=H(!1),l=H(""),a=H(!1),m=H(""),f=H(""),p=H(!1),h=H("");async function S(){s.value=!0;try{const N=await de("/api/skills");t.value=N.skills||[]}finally{s.value=!1}}function P(N){return N?N.includes(".remote-copilot-mcp")&&N.includes("skills")?"user":N.endsWith(".default.md")?"default":N.endsWith(".skill.md")?"project":"unknown":"unknown"}function M(N){const O={user:"background:rgba(99,102,241,0.15);color:#818cf8",default:"background:rgba(107,114,128,0.15);color:#9ca3af",project:"background:rgba(34,197,94,0.15);color:#4ade80",unknown:"background:rgba(107,114,128,0.15);color:#9ca3af"};return O[N]||O.unknown}function W(N){n.value=N,o.value=N.content,r.value=(N.triggers||[]).join(", "),i.value=!!N.replacesOrchestrator,a.value=!1}function k(){n.value=null}function L(N,O,V,re){let J=`---
|
|
65
|
-
name: ${
|
|
64
|
+
**/let sn;const zn=typeof window<"u"&&window.trustedTypes;if(zn)try{sn=zn.createPolicy("vue",{createHTML:e=>e})}catch{}const hr=sn?e=>sn.createHTML(e):e=>e,ml="http://www.w3.org/2000/svg",gl="http://www.w3.org/1998/Math/MathML",tt=typeof document<"u"?document:null,qn=tt&&tt.createElement("template"),xl={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const o=t==="svg"?tt.createElementNS(ml,e):t==="mathml"?tt.createElementNS(gl,e):s?tt.createElement(e,{is:s}):tt.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>tt.createTextNode(e),createComment:e=>tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,o,r){const i=s?s.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===r||!(o=o.nextSibling)););else{qn.innerHTML=hr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=qn.content;if(n==="svg"||n==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},vl=Symbol("_vtc");function bl(e,t,s){const n=e[vl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Jn=Symbol("_vod"),yl=Symbol("_vsh"),_l=Symbol(""),wl=/(?:^|;)\s*display\s*:/;function Sl(e,t,s){const n=e.style,o=ae(s);let r=!1;if(s&&!o){if(t)if(ae(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();s[l]==null&&ms(n,l,"")}else for(const i in t)s[i]==null&&ms(n,i,"");for(const i in s)i==="display"&&(r=!0),ms(n,i,s[i])}else if(o){if(t!==s){const i=n[_l];i&&(s+=";"+i),n.cssText=s,r=wl.test(s)}}else t&&e.removeAttribute("style");Jn in e&&(e[Jn]=r?n.display:"",e[yl]&&(n.display="none"))}const Gn=/\s*!important$/;function ms(e,t,s){if(U(s))s.forEach(n=>ms(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Cl(e,t);Gn.test(s)?e.setProperty(mt(n),s.replace(Gn,""),"important"):e[n]=s}}const Yn=["Webkit","Moz","ms"],Ks={};function Cl(e,t){const s=Ks[t];if(s)return s;let n=we(t);if(n!=="filter"&&n in e)return Ks[t]=n;n=$s(n);for(let o=0;o<Yn.length;o++){const r=Yn[o]+n;if(r in e)return Ks[t]=r}return t}const Zn="http://www.w3.org/1999/xlink";function Qn(e,t,s,n,o,r=Tr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Zn,t.slice(6,t.length)):e.setAttributeNS(Zn,t,s):s==null||r&&!mo(s)?e.removeAttribute(t):e.setAttribute(t,r?"":Je(s)?String(s):s)}function Xn(e,t,s,n,o){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?hr(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(l!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=mo(s):s==null&&l==="string"?(s="",i=!0):l==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(o||t)}function dt(e,t,s,n){e.addEventListener(t,s,n)}function Tl(e,t,s,n){e.removeEventListener(t,s,n)}const eo=Symbol("_vei");function $l(e,t,s,n,o=null){const r=e[eo]||(e[eo]={}),i=r[t];if(n&&i)i.value=n;else{const[l,c]=kl(t);if(n){const h=r[t]=Pl(n,o);dt(e,l,h,c)}else i&&(Tl(e,l,i,c),r[t]=void 0)}}const to=/(?:Once|Passive|Capture)$/;function kl(e){let t;if(to.test(e)){t={};let n;for(;n=e.match(to);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):mt(e.slice(2)),t]}let Ws=0;const Al=Promise.resolve(),El=()=>Ws||(Al.then(()=>Ws=0),Ws=Date.now());function Pl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Ge(Ml(n,s.value),t,5,[n])};return s.value=e,s.attached=El(),s}function Ml(e,t){if(U(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const so=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ol=(e,t,s,n,o,r)=>{const i=o==="svg";t==="class"?bl(e,n,i):t==="style"?Sl(e,s,n):Ss(t)?Cs(t)||$l(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Il(e,t,n,i))?(Xn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qn(e,t,n,i,r,t!=="value")):e._isVueCE&&(Rl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ae(n)))?Xn(e,we(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Qn(e,t,n,i))};function Il(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&so(t)&&K(s));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 so(t)&&ae(s)?!1:t in e}function Rl(e,t){const s=e._def.props;if(!s)return!1;const n=we(t);return Array.isArray(s)?s.some(o=>we(o)===n):Object.keys(s).some(o=>we(o)===n)}const Dt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return U(t)?s=>fs(t,s):t};function Dl(e){e.target.composing=!0}function no(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const rt=Symbol("_assign");function oo(e,t,s){return t&&(e=e.trim()),s&&(e=ks(e)),e}const Te={created(e,{modifiers:{lazy:t,trim:s,number:n}},o){e[rt]=Dt(o);const r=n||o.props&&o.props.type==="number";dt(e,t?"change":"input",i=>{i.target.composing||e[rt](oo(e.value,s,r))}),(s||r)&&dt(e,"change",()=>{e.value=oo(e.value,s,r)}),t||(dt(e,"compositionstart",Dl),dt(e,"compositionend",no),dt(e,"change",no))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:o,number:r}},i){if(e[rt]=Dt(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?ks(e.value):e.value,c=t??"";if(l===c)return;const h=e.getRootNode();(h instanceof Document||h instanceof ShadowRoot)&&h.activeElement===e&&e.type!=="range"&&(n&&t===s||o&&e.value.trim()===c)||(e.value=c)}},ro={deep:!0,created(e,t,s){e[rt]=Dt(s),dt(e,"change",()=>{const n=e._modelValue,o=ss(e),r=e.checked,i=e[rt];if(U(n)){const l=ln(n,o),c=l!==-1;if(r&&!c)i(n.concat(o));else if(!r&&c){const h=[...n];h.splice(l,1),i(h)}}else if(jt(n)){const l=new Set(n);r?l.add(o):l.delete(o),i(l)}else i(mr(e,r))})},mounted:io,beforeUpdate(e,t,s){e[rt]=Dt(s),io(e,t,s)}};function io(e,{value:t,oldValue:s},n){e._modelValue=t;let o;if(U(t))o=ln(t,n.props.value)>-1;else if(jt(t))o=t.has(n.props.value);else{if(t===s)return;o=Lt(t,mr(e,!0))}e.checked!==o&&(e.checked=o)}const ws={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const o=jt(t);dt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?ks(ss(i)):ss(i));e[rt](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,Ro(()=>{e._assigning=!1})}),e[rt]=Dt(n)},mounted(e,{value:t}){lo(e,t)},beforeUpdate(e,t,s){e[rt]=Dt(s)},updated(e,{value:t}){e._assigning||lo(e,t)}};function lo(e,t){const s=e.multiple,n=U(t);if(!(s&&!n&&!jt(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],l=ss(i);if(s)if(n){const c=typeof l;c==="string"||c==="number"?i.selected=t.some(h=>String(h)===String(l)):i.selected=ln(t,l)>-1}else i.selected=t.has(l);else if(Lt(ss(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ss(e){return"_value"in e?e._value:e.value}function mr(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const jl={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ll=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(o=>{if(!("key"in o))return;const r=mt(o.key);if(t.some(i=>i===r||jl[i]===r))return e(o)}))},Nl=ge({patchProp:Ol},xl);let ao;function Fl(){return ao||(ao=Gi(Nl))}const Hl=((...e)=>{const t=Fl().createApp(...e),{mount:s}=t;return t.mount=n=>{const o=Ul(n);if(!o)return;const r=t._component;!K(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=s(o,!1,Vl(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function Vl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ul(e){return ae(e)?document.querySelector(e):e}let wn="";function Ut(e){wn=e}function Ke(){return wn}async function pe(e,t){const s=await fetch(e,{...t,headers:{Authorization:`Bearer ${wn}`,"Content-Type":"application/json",...(t==null?void 0:t.headers)??{}}});if(!s.ok){const n=new Error(s.statusText);throw n.status=s.status,n}return s.json()}const Bl={class:"animate-fade-in"},Kl={key:0,class:"text-center py-12 text-textSecondary"},Wl={key:1,class:"text-center text-textSecondary py-12"},zl={key:2,class:"space-y-3"},ql={class:"flex items-center justify-between"},Jl={class:"flex items-center gap-3"},Gl={class:"font-medium"},Yl={class:"text-accentLight"},Zl={class:"text-textSecondary text-xs"},Ql={key:2,class:"text-muted italic"},Xl={class:"text-xs text-textSecondary font-mono"},ea={class:"text-right"},ta={class:"flex items-center gap-2 justify-end"},sa={class:"text-xs text-textSecondary"},na=Ct({__name:"SessionsTab",props:{status:{}},setup(e){const t=e,s=D([]),n=D(!0);async function o(){n.value=!0;try{const h=await pe("/api/status");s.value=(h.sessions||[]).slice().sort((u,p)=>u.status==="active"&&p.status!=="active"?-1:u.status!=="active"&&p.status==="active"?1:p.lastActivity-u.lastActivity)}finally{n.value=!1}}const r=ht(()=>{var u;return(((u=t.status)==null?void 0:u.sessions)??s.value).slice().sort((p,m)=>p.status==="active"&&m.status!=="active"?-1:p.status!=="active"&&m.status==="active"?1:m.lastActivity-p.lastActivity)});function i(h){const u=Math.floor((Date.now()-h.lastActivity)/6e4);return h.status==="disconnected"?{label:`Disconnected${u>0?` — ${u}m ago`:""}`,color:"text-muted"}:u<5?{label:"Active",color:"text-success"}:u<30?{label:`Idle ${u}m`,color:"text-warn"}:{label:`Dormant ${u}m`,color:"text-danger"}}function l(h){if(!h.lastWaitCallAt)return"";const u=Math.floor((Date.now()-h.lastWaitCallAt)/6e4);return u<5?`Polling — ${u===0?"just now":u+"m ago"}`:`Last poll — ${u}m ago`}function c(h){return h.lastWaitCallAt?Math.floor((Date.now()-h.lastWaitCallAt)/6e4)<5?"text-success":"text-warn":""}return gt(o),(h,u)=>($(),A("div",Bl,[n.value&&r.value.length===0?($(),A("div",Kl,"Loading sessions...")):r.value.length===0?($(),A("div",Wl,"No sessions")):($(),A("div",zl,[($(!0),A(de,null,ct(r.value,p=>($(),A("div",{key:p.mcpSessionId,class:le(["glass rounded-xl p-4 animate-slide-up",p.status==="disconnected"?"opacity-60":""])},[a("div",ql,[a("div",Jl,[a("span",{class:le(["w-2.5 h-2.5 rounded-full",p.status==="disconnected"?"bg-muted":Math.floor((Date.now()-p.lastActivity)/6e4)<5?"bg-success":Math.floor((Date.now()-p.lastActivity)/6e4)<30?"bg-warn":"bg-danger"])},null,2),a("div",null,[a("div",Gl,[p.topicName?($(),A(de,{key:0},[a("span",Yl,R(p.topicName),1),a("span",Zl," (thread "+R(p.threadId)+")",1)],64)):p.threadId!=null?($(),A(de,{key:1},[_t("Thread "+R(p.threadId),1)],64)):($(),A("span",Ql,"Awaiting start_session…"))]),a("div",Xl,R(p.mcpSessionId.slice(0,12))+"...",1)])]),a("div",ea,[a("div",ta,[a("span",{class:le(["text-sm font-medium",i(p).color])},R(i(p).label),3),l(p)?($(),A("span",{key:0,class:le(["text-xs ml-2",c(p)])},R(l(p)),3)):re("",!0)]),a("div",sa,R(p.transportType),1)])])],2))),128))]))]))}}),oa={class:"animate-fade-in"},ra={class:"flex flex-wrap items-center gap-3 mb-4"},ia={key:0,class:"text-center py-12 text-textSecondary"},la={key:1,class:"text-center py-12 text-textSecondary"},aa={key:2,class:"space-y-2"},ca={class:"flex items-start justify-between gap-3"},ua={class:"flex-1 min-w-0"},fa={class:"flex items-center gap-2 mb-1"},da={key:0,class:"type-badge",style:{background:"rgba(239,68,68,0.15)",color:"#f87171"}},pa={key:1,class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},ha={class:"text-xs text-textSecondary"},ma={class:"text-sm text-textPrimary leading-relaxed"},ga={class:"flex flex-wrap gap-1.5 mt-2"},xa={class:"text-right shrink-0"},va={class:"text-sm font-mono text-textSecondary"},ba={class:"text-xs text-muted"},ya={class:"text-xs text-muted"},_a=Ct({__name:"MemoryNotesTab",setup(e){const t=D([]),s=D(!1),n=D(""),o=D("created_at"),r=D("");let i=null;async function l(){s.value=!0;try{const u=r.value.trim();let p;if(u)p=await pe(`/api/search?q=${encodeURIComponent(u)}&limit=50`);else{const m=new URLSearchParams({limit:"50",sort:o.value});n.value&&m.set("type",n.value),p=await pe(`/api/notes?${m}`)}t.value=p}finally{s.value=!1}}function c(){i&&clearTimeout(i),i=setTimeout(l,300)}function h(u){if(!u)return"never";const p=Date.now()-new Date(u).getTime(),m=Math.floor(p/6e4);if(m<1)return"just now";if(m<60)return`${m}m ago`;const S=Math.floor(m/60);return S<24?`${S}h ago`:`${Math.floor(S/24)}d ago`}return gt(l),(u,p)=>($(),A("div",oa,[a("div",ra,[fe(a("input",{"onUpdate:modelValue":p[0]||(p[0]=m=>r.value=m),onInput:c,type:"text",placeholder:"Search notes...",class:"flex-1 min-w-[200px] px-4 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted focus:outline-none focus:border-accent transition"},null,544),[[Te,r.value]]),fe(a("select",{"onUpdate:modelValue":p[1]||(p[1]=m=>n.value=m),onChange:l,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none"},[...p[3]||(p[3]=[Ve('<option value="">All types</option><option value="fact">Facts</option><option value="preference">Preferences</option><option value="pattern">Patterns</option><option value="entity">Entities</option><option value="relationship">Relationships</option>',6)])],544),[[ws,n.value]]),fe(a("select",{"onUpdate:modelValue":p[2]||(p[2]=m=>o.value=m),onChange:l,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none"},[...p[4]||(p[4]=[a("option",{value:"created_at"},"Newest",-1),a("option",{value:"confidence"},"Confidence",-1),a("option",{value:"access_count"},"Most accessed",-1)])],544),[[ws,o.value]])]),s.value?($(),A("div",ia,"Loading notes...")):t.value.length===0?($(),A("div",la,"No notes found")):($(),A("div",aa,[($(!0),A(de,null,ct(t.value,m=>($(),A("div",{key:m.noteId,class:le(["glass rounded-xl p-4 animate-fade-in",`priority-${m.priority||0}`])},[a("div",ca,[a("div",ua,[a("div",fa,[a("span",{class:le(["type-badge",`type-${m.type}`])},R(m.type),3),m.priority>=2?($(),A("span",da,"HIGH IMPORTANCE")):m.priority===1?($(),A("span",pa,"NOTABLE")):re("",!0),a("span",ha,R(m.noteId),1)]),a("p",ma,R(m.content),1),a("div",ga,[($(!0),A(de,null,ct(m.keywords||[],S=>($(),A("span",{key:S,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},R(S),1))),128))])]),a("div",xa,[a("div",va,R(((Number(m.confidence)||0)*100).toFixed(0))+"%",1),a("div",ba,R(h(m.createdAt)),1),a("div",ya,R(m.accessCount??0)+" hits",1)])])],2))),128))]))]))}}),wa={class:"animate-fade-in space-y-6"},Sa={class:"glass rounded-xl p-4"},Ca={class:"flex flex-wrap items-center gap-4 mb-4"},Ta={key:0,class:"text-sm text-success"},$a={class:"flex flex-wrap items-center gap-3"},ka={key:0,class:"text-sm text-success"},Aa={class:"flex flex-wrap items-center gap-3 mb-4"},Ea={key:0,class:"text-sm text-success"},Pa={class:"glass rounded-xl p-6"},Ma={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Oa={class:"flex items-center gap-2"},Ia={key:0,class:"text-sm text-success"},Ra={key:0,class:"mb-3"},Da={class:"mt-4"},ja=["innerHTML"],La={class:"glass rounded-xl p-6"},Na={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Fa={class:"flex items-center gap-2"},Ha={key:0,class:"text-sm text-success"},Va={class:"flex gap-2 mb-4"},Ua=["onClick"],Ba={key:0,class:"mb-3"},Ka=["value","placeholder"],Wa={class:"glass rounded-xl p-6"},za={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},qa={class:"flex items-center gap-2"},Ja={key:0,class:"text-sm text-success"},Ga={class:"mb-4 flex flex-wrap items-center gap-3"},Ya={class:"flex items-center gap-2"},Za={class:"font-mono text-sm text-textPrimary"},Qa={key:0,class:"mb-3"},Xa={class:"flex flex-wrap gap-2 mb-3"},ec=["onClick"],tc={class:"mt-4"},sc=["innerHTML"],nc=Ct({__name:"TemplatesTab",setup(e){function t(I){return I.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\{\{([A-Z_]+)\}\}/g,'<span class="text-accentLight" style="background:rgba(99,102,241,0.1);padding:0 2px;border-radius:3px">{{$1}}</span>')}const s=D("copilot"),n=D(""),o=D(""),r=D(""),i=D(50),l=D(""),c=D(""),h=D(!0),u=D(""),p=D(!1),m=D({}),S=D("copilot"),P=D(""),M=D(""),W=D(!0),E=D(""),N=D(!1),z=D([]),j=D("");async function F(){await Promise.all([O(),V(),ie(),J(),ce()])}async function O(){try{const I=await pe("/api/settings/agent-type");s.value=I.agentType||"copilot"}catch{}}async function V(){try{const I=await pe("/api/settings/claude-mcp-config");o.value=I.path||""}catch{}}async function ie(){try{const I=await pe("/api/settings/bootstrap-message-count");i.value=I.count??50}catch{}}async function J(){try{const I=await pe("/api/templates");if(I.templates&&I.templates.length>0){const _=I.templates[0];c.value=_.content||"",h.value=_.isDefault??!0}I.agentReminders&&(m.value=I.agentReminders)}catch{}}async function ce(){try{const[I,_,Xe]=await Promise.all([pe("/api/templates/drive"),pe("/api/templates/drive-presets"),pe("/api/settings/dmn-activation-hours")]);z.value=_.presets||[],j.value=String(Xe.value??"not set"),I.custom?(M.value=I.custom,W.value=!1):(M.value=I.default||"",W.value=!0)}catch{}}async function Me(){try{await pe("/api/settings/agent-type",{method:"POST",body:JSON.stringify({agentType:s.value})}),await pe("/api/templates/reminders",{method:"DELETE"}),n.value="Saved ✓",setTimeout(()=>{n.value=""},3e3),await J()}catch(I){n.value="Error: "+I.message}}async function Ye(){try{await pe("/api/settings/bootstrap-message-count",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:i.value})}),l.value="Saved ✓",setTimeout(()=>{l.value=""},3e3)}catch(I){l.value="Error: "+I.message}}async function $e(){const I=o.value.trim();if(!I){r.value="Path is empty",setTimeout(()=>{r.value=""},3e3);return}try{await pe("/api/settings/claude-mcp-config",{method:"POST",body:JSON.stringify({path:I})}),r.value="Saved ✓",setTimeout(()=>{r.value=""},3e3)}catch(_){r.value="Error: "+_.message}}async function Tt(){try{const I=await fetch("/api/templates/reminders",{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:c.value})});if(!I.ok)throw new Error(I.statusText);h.value=!1,u.value="Saved ✓",setTimeout(()=>{u.value=""},3e3)}catch(I){u.value="Error: "+I.message}}async function is(){if(confirm("Reset to default template? Your customizations will be lost."))try{const I=await fetch("/api/templates/reminders",{method:"DELETE",headers:{Authorization:`Bearer ${Ke()}`}});if(!I.ok)throw new Error(I.statusText);await J(),u.value="Reset to default ✓",setTimeout(()=>{u.value=""},3e3)}catch(I){u.value="Error: "+I.message}}async function he(){var Xe;const I=S.value,_=((Xe=m.value[I])==null?void 0:Xe.content)??"";try{const ke=await fetch(`/api/templates/reminders-${I}`,{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:_})});if(!ke.ok)throw new Error(ke.statusText);m.value[I]={content:_,isDefault:!1},P.value=`Saved ${I} ✓`,setTimeout(()=>{P.value=""},3e3)}catch(ke){P.value="Error: "+ke.message}}async function oe(){const I=S.value;if(confirm(`Reset ${I} agent reminder? The custom template will be removed.`))try{const _=await fetch(`/api/templates/reminders-${I}`,{method:"DELETE",headers:{Authorization:`Bearer ${Ke()}`}});if(!_.ok)throw new Error(_.statusText);await J(),P.value=`Reset ${I} ✓`,setTimeout(()=>{P.value=""},3e3)}catch(_){P.value="Error: "+_.message}}async function Z(){const I=M.value;if(!I.trim()){E.value="Template is empty — load a preset first",setTimeout(()=>{E.value=""},3e3);return}try{const _=await fetch("/api/templates/drive",{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:I})});if(!_.ok)throw new Error(_.statusText);W.value=!1,E.value="Saved ✓",setTimeout(()=>{E.value=""},3e3)}catch(_){E.value="Error: "+_.message}}async function Ze(){if(confirm("Reset drive template? The custom template will be removed."))try{const I=await fetch("/api/templates/drive",{method:"DELETE",headers:{Authorization:`Bearer ${Ke()}`}});if(!I.ok)throw new Error(I.statusText);await ce(),E.value="Reset to default ✓",setTimeout(()=>{E.value=""},3e3)}catch(I){E.value="Error: "+I.message}}function $t(I){M.value=I.content,W.value=!1}const Qe=ht(()=>t(c.value)),Oe=ht(()=>M.value?t(M.value):'<span style="color:#6b7280">(no template loaded)</span>');return gt(F),(I,_)=>{var Xe,ke;return $(),A("div",wa,[a("div",Sa,[a("div",Ca,[_[9]||(_[9]=a("label",{class:"text-sm font-medium text-textSecondary"},"Agent Type",-1)),fe(a("select",{"onUpdate:modelValue":_[0]||(_[0]=Q=>s.value=Q),onChange:Me,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},[..._[8]||(_[8]=[a("option",{value:"copilot"},"Copilot",-1),a("option",{value:"claude"},"Claude",-1),a("option",{value:"cursor"},"Cursor",-1)])],544),[[ws,s.value]]),n.value?($(),A("span",Ta,R(n.value),1)):re("",!0),_[10]||(_[10]=a("span",{class:"text-xs text-muted"},"Changes which default reminders template is used",-1))]),a("div",$a,[_[11]||(_[11]=a("label",{class:"text-sm font-medium text-textSecondary"},"Claude MCP Config Path",-1)),fe(a("input",{"onUpdate:modelValue":_[1]||(_[1]=Q=>o.value=Q),type:"text",placeholder:"~/.claude/settings.json",class:"flex-1 min-w-[260px] px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted font-mono focus:outline-none focus:border-accent transition"},null,512),[[Te,o.value]]),a("button",{onClick:$e,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save"),r.value?($(),A("span",ka,R(r.value),1)):re("",!0)]),a("div",Aa,[_[12]||(_[12]=a("label",{class:"text-sm font-medium text-textSecondary"},"Bootstrap Messages",-1)),fe(a("input",{"onUpdate:modelValue":_[2]||(_[2]=Q=>i.value=Q),type:"number",min:"0",max:"500",class:"w-24 px-3 py-2 rounded-xl bg-card border border-gray-700 text-text text-sm focus:border-accent focus:outline-none"},null,512),[[Te,i.value,void 0,{number:!0}]]),a("button",{onClick:Ye,class:"px-4 py-2 rounded-xl bg-accent text-white text-sm font-medium hover:bg-accent/80 transition-colors"},"Save"),l.value?($(),A("span",Ea,R(l.value),1)):re("",!0),_[13]||(_[13]=a("span",{class:"text-xs text-muted"},"Number of recent messages injected as warm context (0 = off)",-1))])]),a("div",Pa,[a("div",Ma,[_[14]||(_[14]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Reminders Template"),a("p",{class:"text-sm text-textSecondary mt-1"},"Edit the system prompt template sent with every reminder")],-1)),a("div",Oa,[u.value?($(),A("span",Ia,R(u.value),1)):re("",!0),a("button",{onClick:is,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset to Default"),a("button",{onClick:Tt,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),h.value?($(),A("div",Ra,[..._[15]||(_[15]=[a("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"USING DEFAULT — edit and save to customize",-1)])])):re("",!0),fe(a("textarea",{"onUpdate:modelValue":_[3]||(_[3]=Q=>c.value=Q),rows:"20",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Loading..."},null,512),[[Te,c.value]]),a("div",Da,[a("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:_[4]||(_[4]=Q=>p.value=!p.value)},[($(),A("svg",{class:le(["w-4 h-4 text-textSecondary transition-transform",p.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[..._[16]||(_[16]=[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),_[17]||(_[17]=a("span",{class:"text-sm font-medium text-textSecondary"},"Preview with highlighted variables",-1))]),p.value?($(),A("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:Qe.value},null,8,ja)):re("",!0)]),_[18]||(_[18]=Ve('<details class="mt-4"><summary class="text-sm font-medium text-textSecondary cursor-pointer hover:text-textPrimary transition">Available Variables</summary><div class="mt-2 glass rounded-xl p-4 grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm"><div><code class="text-accentLight">{{OPERATOR_MESSAGE}}</code> <span class="text-textSecondary">— latest operator message</span></div><div><code class="text-accentLight">{{THREAD_ID}}</code> <span class="text-textSecondary">— Telegram thread ID</span></div><div><code class="text-accentLight">{{TIME}}</code> <span class="text-textSecondary">— formatted timestamp</span></div><div><code class="text-accentLight">{{UPTIME}}</code> <span class="text-textSecondary">— session uptime</span></div><div><code class="text-accentLight">{{VERSION}}</code> <span class="text-textSecondary">— package version</span></div><div><code class="text-accentLight">{{MODE}}</code> <span class="text-textSecondary">— "autonomous" or "standard"</span></div></div></details>',1))]),a("div",La,[a("div",Na,[_[19]||(_[19]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Agent-Specific Reminders"),a("p",{class:"text-sm text-textSecondary mt-1"},"Appended after the base reminders template — per agent type")],-1)),a("div",Fa,[P.value?($(),A("span",Ha,R(P.value),1)):re("",!0),a("button",{onClick:oe,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset"),a("button",{onClick:he,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),a("div",Va,[($(),A(de,null,ct(["copilot","claude","cursor"],Q=>a("button",{key:Q,onClick:xt=>S.value=Q,class:le(["px-4 py-2 rounded-xl text-sm font-medium transition",S.value===Q?"bg-accent text-white":"bg-card hover:bg-cardHover border border-gray-700 text-textSecondary hover:text-textPrimary"])},R(Q.charAt(0).toUpperCase()+Q.slice(1)),11,Ua)),64))]),((Xe=m.value[S.value])==null?void 0:Xe.isDefault)!==!1?($(),A("div",Ba,[..._[20]||(_[20]=[a("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"NO CUSTOM OVERRIDE — this agent uses only the base reminders",-1)])])):re("",!0),a("textarea",{value:((ke=m.value[S.value])==null?void 0:ke.content)??"",onInput:_[5]||(_[5]=Q=>{const xt=Q.target;m.value[S.value]={content:xt.value,isDefault:!1}}),rows:"8",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:`Add ${S.value}-specific reminders (e.g. orchestrator hints, subagent policies)...`},null,40,Ka)]),a("div",Wa,[a("div",za,[_[21]||(_[21]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Drive Framing Template"),a("p",{class:"text-sm text-textSecondary mt-1"},"Customize the autonomous drive prompt sent when the operator is away")],-1)),a("div",qa,[E.value?($(),A("span",Ja,R(E.value),1)):re("",!0),a("button",{onClick:Ze,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset to Default"),a("button",{onClick:Z,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),a("div",Ga,[_[23]||(_[23]=a("label",{class:"text-sm text-textSecondary"},"Drive Activation Period:",-1)),a("div",Ya,[a("span",Za,R(j.value),1),_[22]||(_[22]=a("span",{class:"text-sm text-textSecondary"},"hours",-1))]),_[24]||(_[24]=a("span",{class:"text-xs text-muted"},"(informational — set via DMN_ACTIVATION_HOURS env var)",-1))]),W.value?($(),A("div",Qa,[..._[25]||(_[25]=[a("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"(Default — edit to override)",-1)])])):re("",!0),a("div",Xa,[_[26]||(_[26]=a("span",{class:"text-sm text-textSecondary self-center"},"Presets:",-1)),($(!0),A(de,null,ct(z.value,Q=>($(),A("button",{key:Q.key,onClick:xt=>$t(Q),class:"px-3 py-1.5 rounded-lg bg-card hover:bg-cardHover border border-gray-700 text-xs text-textSecondary hover:text-textPrimary transition"},R(Q.label),9,ec))),128))]),fe(a("textarea",{"onUpdate:modelValue":_[6]||(_[6]=Q=>M.value=Q),rows:"15",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Load a preset or type a custom drive template..."},null,512),[[Te,M.value]]),a("div",tc,[a("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:_[7]||(_[7]=Q=>N.value=!N.value)},[($(),A("svg",{class:le(["w-4 h-4 text-textSecondary transition-transform",N.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[..._[27]||(_[27]=[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),_[28]||(_[28]=a("span",{class:"text-sm font-medium text-textSecondary"},"Preview with sample values",-1))]),N.value?($(),A("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:Oe.value},null,8,sc)):re("",!0)]),_[29]||(_[29]=Ve('<details class="mt-4"><summary class="text-sm font-medium text-textSecondary cursor-pointer hover:text-textPrimary transition">Available Variables</summary><div class="mt-2 glass rounded-xl p-4 grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm"><div><code class="text-accentLight">{{IDLE_HOURS}}</code> <span class="text-textSecondary">— hours since last operator interaction</span></div><div><code class="text-accentLight">{{TIME}}</code> <span class="text-textSecondary">— ISO timestamp</span></div><div><code class="text-accentLight">{{PROBABILITY}}</code> <span class="text-textSecondary">— drive activation probability (0.2–1.0)</span></div></div></details>',1))])])}}}),oc={class:"animate-fade-in"},rc={class:"glass rounded-xl p-6 mb-6"},ic={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},lc={key:0,class:"glass rounded-xl p-4 mb-4 border border-accent/30"},ac={class:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-3"},cc={class:"flex items-center gap-4 mb-3"},uc={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer"},fc={class:"flex items-center gap-2"},dc={key:0,class:"text-sm text-warn"},pc={key:1,class:"text-center py-8 text-textSecondary text-sm"},hc={key:2,class:"text-center text-textSecondary py-12"},mc={key:3,class:"space-y-2"},gc=["onClick"],xc={class:"flex items-start justify-between gap-3"},vc={class:"flex-1 min-w-0"},bc={class:"flex items-center gap-2 mb-1"},yc={class:"font-medium text-sm"},_c={key:0,class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},wc={class:"flex flex-wrap gap-1.5 mt-1"},Sc=["title"],Cc={key:0,class:"glass rounded-xl p-6"},Tc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},$c={class:"text-lg font-semibold"},kc={class:"text-sm text-textSecondary mt-1"},Ac={class:"flex items-center gap-2"},Ec={key:0,class:"text-sm text-success"},Pc={class:"grid grid-cols-1 sm:grid-cols-3 gap-3 mb-4"},Mc=["value"],Oc={class:"flex items-end"},Ic={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer pb-2"},Rc=Ct({__name:"SkillsTab",setup(e){const t=D([]),s=D(!0),n=D(null),o=D(""),r=D(""),i=D(!1),l=D(""),c=D(!1),h=D(""),u=D(""),p=D(!1),m=D("");async function S(){s.value=!0;try{const F=await pe("/api/skills");t.value=F.skills||[]}finally{s.value=!1}}function P(F){return F?F.includes(".remote-copilot-mcp")&&F.includes("skills")?"user":F.endsWith(".default.md")?"default":F.endsWith(".skill.md")?"project":"unknown":"unknown"}function M(F){const O={user:"background:rgba(99,102,241,0.15);color:#818cf8",default:"background:rgba(107,114,128,0.15);color:#9ca3af",project:"background:rgba(34,197,94,0.15);color:#4ade80",unknown:"background:rgba(107,114,128,0.15);color:#9ca3af"};return O[F]||O.unknown}function W(F){n.value=F,o.value=F.content,r.value=(F.triggers||[]).join(", "),i.value=!!F.replacesOrchestrator,c.value=!1}function E(){n.value=null}function N(F,O,V,ie){let J=`---
|
|
65
|
+
name: ${F}
|
|
66
66
|
triggers:
|
|
67
|
-
`;return O.forEach(
|
|
67
|
+
`;return O.forEach(ce=>{J+=` - ${ce.trim()}
|
|
68
68
|
`}),V&&(J+=`replaces_orchestrator: true
|
|
69
69
|
`),J+=`---
|
|
70
70
|
|
|
71
|
-
`,J+
|
|
72
|
-
`);try{const J=await fetch(`/api/skills/${encodeURIComponent(N)}`,{method:"PUT",headers:{Authorization:`Bearer ${st()}`,"Content-Type":"application/json"},body:JSON.stringify({content:re})});if(!J.ok)throw new Error(J.statusText);h.value="Created ✓",a.value=!1,await S();const ae=t.value.find(Pe=>Pe.name===N);ae&&W(ae)}catch(J){h.value="Error: "+J.message}}return wt(S),(N,O)=>(A(),E("div",oc,[u("div",rc,[u("div",ic,[O[8]||(O[8]=u("div",null,[u("h3",{class:"text-lg font-semibold"},"Skill Library"),u("p",{class:"text-sm text-textSecondary mt-1"},"Manage intent-routing skills — user overrides, defaults, and project skills")],-1)),u("button",{onClick:O[0]||(O[0]=V=>{a.value=!a.value,n.value=null}),class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"}," + New Skill ")]),a.value?(A(),E("div",lc,[O[12]||(O[12]=u("h4",{class:"text-sm font-semibold mb-3"},"Create New Skill",-1)),u("div",ac,[u("div",null,[O[9]||(O[9]=u("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),pe(u("input",{"onUpdate:modelValue":O[1]||(O[1]=V=>m.value=V),type:"text",placeholder:"my-skill",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Oe,m.value]])]),u("div",null,[O[10]||(O[10]=u("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),pe(u("input",{"onUpdate:modelValue":O[2]||(O[2]=V=>f.value=V),type:"text",placeholder:"trigger1, trigger2",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},null,512),[[Oe,f.value]])])]),u("div",cc,[u("label",uc,[pe(u("input",{"onUpdate:modelValue":O[3]||(O[3]=V=>p.value=V),type:"checkbox",class:"rounded"},null,512),[[ro,p.value]]),O[11]||(O[11]=u("span",null,"Replaces orchestrator",-1))])]),u("div",fc,[u("button",{onClick:R,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Create"),u("button",{onClick:O[4]||(O[4]=V=>a.value=!1),class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Cancel"),h.value?(A(),E("span",dc,j(h.value),1)):ie("",!0)])])):ie("",!0),s.value?(A(),E("div",pc,"Loading...")):t.value.length===0?(A(),E("div",hc,"No skills loaded")):(A(),E("div",mc,[(A(!0),E(ue,null,ct(t.value,V=>{var re;return A(),E("div",{key:V.name,onClick:J=>W(V),class:fe(["glass rounded-xl p-4 cursor-pointer hover:bg-cardHover transition border",((re=n.value)==null?void 0:re.name)===V.name?"border-accent":"border-transparent"])},[u("div",xc,[u("div",vc,[u("div",bc,[u("span",yc,j(V.name),1),u("span",{class:"type-badge",style:As(M(P(V.source)))},j(P(V.source)),5),V.replacesOrchestrator?(A(),E("span",_c,"REPLACES ORCH")):ie("",!0)]),u("div",wc,[(A(!0),E(ue,null,ct(V.triggers||[],J=>(A(),E("span",{key:J,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},j(J),1))),128))])]),u("div",{class:"text-xs text-muted font-mono shrink-0 max-w-[200px] truncate",title:V.source||""},j((V.source||"").split(/[\\/]/).pop()||""),9,Sc)])],10,gc)}),128))]))]),n.value?(A(),E("div",Cc,[u("div",Tc,[u("div",null,[u("h3",$c,"Edit: "+j(n.value.name),1),u("p",kc,j(n.value.source||"(unknown source)"),1)]),u("div",Ac,[l.value?(A(),E("span",Ec,j(l.value),1)):ie("",!0),u("button",{onClick:k,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Close"),u("button",{onClick:z,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),u("div",Pc,[u("div",null,[O[13]||(O[13]=u("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),u("input",{value:n.value.name,type:"text",readonly:"",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono opacity-60 cursor-not-allowed"},null,8,Mc)]),u("div",null,[O[14]||(O[14]=u("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),pe(u("input",{"onUpdate:modelValue":O[5]||(O[5]=V=>r.value=V),type:"text",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},null,512),[[Oe,r.value]])]),u("div",Oc,[u("label",Ic,[pe(u("input",{"onUpdate:modelValue":O[6]||(O[6]=V=>i.value=V),type:"checkbox",class:"rounded"},null,512),[[ro,i.value]]),O[15]||(O[15]=u("span",null,"Replaces orchestrator",-1))])])]),pe(u("textarea",{"onUpdate:modelValue":O[7]||(O[7]=V=>o.value=V),rows:"20",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Skill body (markdown)..."},null,512),[[Oe,o.value]])])):ie("",!0)]))}}),Dc={class:"animate-fade-in"},jc={class:"glass rounded-xl p-6 mb-6"},Lc={class:"flex flex-wrap items-center justify-between gap-4 mb-6"},Nc={class:"flex items-center gap-3"},Fc=["disabled"],Hc={key:0,class:"text-center py-8 text-textSecondary text-sm"},Vc={key:1,class:"space-y-6"},Uc={class:"glass rounded-xl p-4 border border-gray-700/50"},Bc={class:"flex items-center justify-between"},Kc={class:"glass rounded-xl p-4 border border-gray-700/50"},Wc=["value"],zc={key:0,class:"text-xs text-warn mt-2"},qc={class:"glass rounded-xl p-4 border border-gray-700/50"},Jc={class:"glass rounded-xl p-4 border border-gray-700/50"},Gc={class:"text-xs text-textSecondary mb-3"},Yc={key:0,class:"ml-1 text-accentLight font-mono"},Zc={class:"flex items-center gap-2"},Qc={key:0,class:"glass rounded-xl p-4 border border-gray-700/30 bg-surface/30"},Xc={class:"grid grid-cols-2 sm:grid-cols-4 gap-4"},eu={class:"text-sm font-mono"},tu={class:"text-sm font-mono"},su={class:"text-sm font-mono"},nu=jt({__name:"KeepAliveTab",setup(e){const t=H(null),s=H([]),n=H(!0),o=H(!1),r=H(""),i=H({keepAliveEnabled:!1,keepAliveThreadId:0,keepAliveMaxRetries:5,keepAliveCooldownMs:3e5}),l=_t(()=>{const p=new Set;return s.value.filter(h=>h.threadId!=null&&!p.has(h.threadId)&&p.add(h.threadId)).map(h=>({threadId:h.threadId,label:h.topicName??`Thread ${h.threadId}`}))});async function a(){n.value=!0;try{const[p,h]=await Promise.all([de("/api/settings/keep-alive"),de("/api/sessions")]);t.value=p,s.value=h,i.value={...p}}finally{n.value=!1}}async function m(){o.value=!0,r.value="";try{const p=await fetch("/api/settings/keep-alive",{method:"POST",headers:{Authorization:`Bearer ${st()}`,"Content-Type":"application/json"},body:JSON.stringify(i.value)});if(!p.ok){const h=await p.json().catch(()=>({error:p.statusText}));throw new Error(h.error??p.statusText)}t.value={...i.value},r.value="Saved ✓",setTimeout(()=>{r.value=""},3e3)}catch(p){r.value="Error: "+p.message}finally{o.value=!1}}function f(p){const h=Math.floor(p/6e4);return h>=60?`${Math.floor(h/60)}h ${h%60}m`:`${h}m`}return wt(a),(p,h)=>{var S;return A(),E("div",Dc,[u("div",jc,[u("div",Lc,[h[4]||(h[4]=u("div",null,[u("h3",{class:"text-lg font-semibold"},"Keep-Alive Settings"),u("p",{class:"text-sm text-textSecondary mt-1"},"Configure the headless agent auto-restart and monitoring behavior")],-1)),u("div",Nc,[r.value?(A(),E("span",{key:0,class:fe([r.value.startsWith("Error")?"text-danger":"text-success","text-sm"])},j(r.value),3)):ie("",!0),u("button",{onClick:m,disabled:o.value||n.value,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-sm font-medium transition"},j(o.value?"Saving…":"Save"),9,Fc)])]),n.value?(A(),E("div",Hc,"Loading…")):(A(),E("div",Vc,[u("div",Uc,[u("div",Bc,[h[5]||(h[5]=u("div",null,[u("div",{class:"text-sm font-medium"},"Enable Keep-Alive"),u("div",{class:"text-xs text-textSecondary mt-0.5"},"Automatically restart the agent when it goes offline")],-1)),u("button",{onClick:h[0]||(h[0]=P=>i.value.keepAliveEnabled=!i.value.keepAliveEnabled),class:fe(["relative inline-flex h-6 w-11 items-center rounded-full transition-colors",i.value.keepAliveEnabled?"bg-accent":"bg-gray-700"])},[u("span",{class:fe(["inline-block h-4 w-4 transform rounded-full bg-white shadow transition-transform",i.value.keepAliveEnabled?"translate-x-6":"translate-x-1"])},null,2)],2)])]),u("div",Kc,[h[7]||(h[7]=u("label",{class:"block text-sm font-medium mb-1"},"Session to Keep Alive",-1)),h[8]||(h[8]=u("p",{class:"text-xs text-textSecondary mb-3"},"Select the Telegram thread to monitor and keep alive",-1)),pe(u("select",{"onUpdate:modelValue":h[1]||(h[1]=P=>i.value.keepAliveThreadId=P),class:"w-full sm:w-72 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition appearance-none"},[h[6]||(h[6]=u("option",{value:0},"Disabled",-1)),(A(!0),E(ue,null,ct(l.value,P=>(A(),E("option",{key:P.threadId,value:P.threadId},j(P.label)+" ("+j(P.threadId)+") ",9,Wc))),128))],512),[[_s,i.value.keepAliveThreadId,void 0,{number:!0}]]),i.value.keepAliveThreadId&&!l.value.find(P=>P.threadId===i.value.keepAliveThreadId)?(A(),E("p",zc," Thread "+j(i.value.keepAliveThreadId)+" is configured but not in active sessions ",1)):ie("",!0)]),u("div",qc,[h[9]||(h[9]=u("label",{class:"block text-sm font-medium mb-1"},"Max Retries",-1)),h[10]||(h[10]=u("p",{class:"text-xs text-textSecondary mb-3"},"Number of restart attempts before entering cooldown mode",-1)),pe(u("input",{"onUpdate:modelValue":h[2]||(h[2]=P=>i.value.keepAliveMaxRetries=P),type:"number",min:"1",max:"20",class:"w-full sm:w-32 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Oe,i.value.keepAliveMaxRetries,void 0,{number:!0}]])]),u("div",Jc,[h[13]||(h[13]=u("label",{class:"block text-sm font-medium mb-1"},"Cooldown Duration",-1)),u("p",Gc,[h[11]||(h[11]=yn(" Wait time after max retries exceeded before resuming restarts ",-1)),i.value.keepAliveCooldownMs?(A(),E("span",Yc,"("+j(f(i.value.keepAliveCooldownMs))+")",1)):ie("",!0)]),u("div",Zc,[pe(u("input",{"onUpdate:modelValue":h[3]||(h[3]=P=>i.value.keepAliveCooldownMs=P),type:"number",min:"1000",step:"60000",class:"w-full sm:w-40 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Oe,i.value.keepAliveCooldownMs,void 0,{number:!0}]]),h[12]||(h[12]=u("span",{class:"text-xs text-textSecondary"},"ms",-1))])]),t.value?(A(),E("div",Qc,[h[18]||(h[18]=u("div",{class:"text-xs font-medium text-textSecondary uppercase tracking-wider mb-3"},"Current State",-1)),u("div",Xc,[u("div",null,[h[14]||(h[14]=u("div",{class:"text-xs text-muted mb-1"},"Status",-1)),u("span",{class:fe(["text-sm font-medium",t.value.keepAliveEnabled?"text-success":"text-textSecondary"])},j(t.value.keepAliveEnabled?"Enabled":"Disabled"),3)]),u("div",null,[h[15]||(h[15]=u("div",{class:"text-xs text-muted mb-1"},"Thread",-1)),u("span",eu,j(((S=l.value.find(P=>P.threadId===t.value.keepAliveThreadId))==null?void 0:S.label)??(t.value.keepAliveThreadId||"—")),1)]),u("div",null,[h[16]||(h[16]=u("div",{class:"text-xs text-muted mb-1"},"Max Retries",-1)),u("span",tu,j(t.value.keepAliveMaxRetries),1)]),u("div",null,[h[17]||(h[17]=u("div",{class:"text-xs text-muted mb-1"},"Cooldown",-1)),u("span",su,j(f(t.value.keepAliveCooldownMs)),1)])])])):ie("",!0)]))])])}}}),ou={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-surface/95 backdrop-blur-sm"},ru={class:"glass rounded-2xl p-8 max-w-md w-full mx-4 animate-slide-up"},iu=["disabled"],lu={key:0,class:"mt-3 text-sm text-danger"},au={key:1,class:"min-h-screen font-sans text-textPrimary animate-fade-in"},cu={class:"glass sticky top-0 z-40 border-b border-gray-800/50"},uu={class:"max-w-7xl mx-auto px-4 sm:px-6 py-4 flex items-center justify-between"},fu={class:"flex items-center gap-4"},du={class:"text-sm text-textSecondary font-mono"},pu={class:"max-w-7xl mx-auto px-4 sm:px-6 py-6"},hu={class:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3"},mu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},gu={class:"text-2xl font-bold font-mono"},xu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},vu={class:"text-2xl font-bold font-mono"},bu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},yu={class:"text-2xl font-bold font-mono"},_u={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},wu={class:"flex items-center gap-2 mb-2"},Su={class:"text-2xl font-bold font-mono"},Cu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Tu={class:"text-2xl font-bold font-mono"},$u={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},ku={class:"text-2xl font-bold font-mono"},Au={class:"max-w-7xl mx-auto px-4 sm:px-6"},Eu={class:"flex gap-6 border-b border-gray-800/50 mb-6"},Pu=["onClick"],Mu={class:"max-w-7xl mx-auto px-4 sm:px-6 pb-12"},cs="sensorium_token",Ou=jt({__name:"App",setup(e){const t=H(!1),s=H(""),n=H(""),o=H(!1),r=H(null),i=H("sessions");let l=null;const a=[{id:"sessions",label:"Sessions"},{id:"notes",label:"Memory Notes"},{id:"templates",label:"Templates"},{id:"skills",label:"Skills"},{id:"keepalive",label:"Keep-Alive"}],m={sessions:na,notes:_a,templates:nc,skills:Rc,keepalive:nu},f=_t(()=>m[i.value]),p=_t(()=>{if(!r.value)return"—";const W=Math.floor(r.value.uptime),k=Math.floor(W/86400),L=Math.floor(W%86400/3600),z=Math.floor(W%3600/60);return k>0?`${k}d ${L}h`:L>0?`${L}h ${z}m`:`${z}m`});async function h(){const W=s.value.trim()||"no-auth";o.value=!0,n.value="";try{Vt(W),await P(),localStorage.setItem(cs,W),t.value=!0,M()}catch(k){const L=k;L.status===401?n.value="Invalid token":n.value=L.message??"Connection failed",Vt("")}finally{o.value=!1}}function S(){localStorage.removeItem(cs),t.value=!1,s.value="",r.value=null,l&&clearInterval(l),Vt("")}async function P(){r.value=await de("/api/status")}function M(){l&&clearInterval(l),l=setInterval(P,3e4)}return wt(async()=>{const W=localStorage.getItem(cs);if(W){s.value=W;try{Vt(W),await P(),t.value=!0,M()}catch{localStorage.removeItem(cs),Vt("")}}}),xn(()=>{l&&clearInterval(l)}),(W,k)=>{var L,z,R,N,O,V,re,J,ae,Pe,Ge;return t.value?(A(),E("div",au,[u("header",cu,[u("div",uu,[k[3]||(k[3]=Ve('<div class="flex items-center gap-3"><div class="w-8 h-8 rounded-lg bg-gradient-to-br from-accent to-purple-500 flex items-center justify-center"><span class="text-white text-sm font-bold">S</span></div><div><h1 class="text-lg font-semibold tracking-tight">Sensorium MCP</h1><p class="text-xs text-textSecondary">Agent Dashboard</p></div></div>',1)),u("div",fu,[k[2]||(k[2]=u("div",{class:"flex items-center gap-2 text-sm"},[u("span",{class:"w-2 h-2 rounded-full bg-success animate-pulse-slow"}),u("span",{class:"text-textSecondary"},"Connected")],-1)),u("div",du,j(p.value),1),u("button",{onClick:S,class:"text-sm text-muted hover:text-textSecondary transition"},"Disconnect")])])]),u("div",pu,[u("div",hu,[u("div",mu,[k[4]||(k[4]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-success"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Sessions</span></div>',1)),u("div",gu,j(((L=r.value)==null?void 0:L.activeSessions)??0),1)]),u("div",xu,[k[5]||(k[5]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-accentLight"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Notes</span></div>',1)),u("div",vu,j(((R=(z=r.value)==null?void 0:z.memory)==null?void 0:R.totalSemanticNotes)??0),1)]),u("div",bu,[k[6]||(k[6]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-warn"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Episodes</span></div>',1)),u("div",yu,j(((O=(N=r.value)==null?void 0:N.memory)==null?void 0:O.totalEpisodes)??0),1)]),u("div",_u,[u("div",wu,[u("span",{class:fe((((re=(V=r.value)==null?void 0:V.memory)==null?void 0:re.unconsolidatedEpisodes)??0)>10?"text-danger":"text-success")},[...k[7]||(k[7]=[u("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[u("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)])],2),k[8]||(k[8]=u("span",{class:"text-xs text-textSecondary font-medium uppercase tracking-wider"},"Unconsolidated",-1))]),u("div",Su,j(((ae=(J=r.value)==null?void 0:J.memory)==null?void 0:ae.unconsolidatedEpisodes)??0),1)]),u("div",Cu,[k[9]||(k[9]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-accent"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Procedures</span></div>',1)),u("div",Tu,j(((Ge=(Pe=r.value)==null?void 0:Pe.memory)==null?void 0:Ge.totalProcedures)??0),1)]),u("div",$u,[k[10]||(k[10]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-success"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M12 5l7 7-7 7"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Uptime</span></div>',1)),u("div",ku,j(p.value),1)])])]),u("div",Au,[u("nav",Eu,[(A(),E(ue,null,ct(a,Te=>u("button",{key:Te.id,onClick:St=>i.value=Te.id,class:fe(["pb-3 text-sm font-medium transition",i.value===Te.id?"tab-active":"tab-inactive"])},j(Te.label),11,Pu)),64))])]),u("div",Mu,[(A(),cr($i(f.value),{status:r.value},null,8,["status"]))])])):(A(),E("div",ou,[u("div",ru,[k[1]||(k[1]=Ve('<div class="flex items-center gap-3 mb-6"><div class="w-10 h-10 rounded-xl bg-accent/20 flex items-center justify-center"><svg class="w-5 h-5 text-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path></svg></div><div><h2 class="text-lg font-semibold">Sensorium MCP</h2><p class="text-sm text-textSecondary">Enter your API token</p></div></div>',1)),pe(u("input",{"onUpdate:modelValue":k[0]||(k[0]=Te=>s.value=Te),type:"password",placeholder:"MCP_HTTP_SECRET",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary placeholder-muted focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition font-mono text-sm",onKeydown:Ll(h,["enter"])},null,544),[[Oe,s.value]]),u("button",{onClick:h,disabled:o.value,class:"w-full mt-4 px-4 py-3 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white font-medium transition"},j(o.value?"Connecting...":"Connect"),9,iu),n.value?(A(),E("p",lu,j(n.value),1)):ie("",!0)])]))}}});Hl(Ou).mount("#app");</script>
|
|
71
|
+
`,J+ie}async function z(){if(!n.value)return;const F=n.value.name;try{const O=r.value.split(",").map(ce=>ce.trim()).filter(Boolean),V=o.value;let ie;V.trimStart().startsWith("---")?ie=V:ie=N(F,O,i.value,V);const J=await fetch(`/api/skills/${encodeURIComponent(F)}`,{method:"PUT",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:ie})});if(!J.ok)throw new Error(J.statusText);l.value="Saved ✓",setTimeout(()=>{l.value=""},3e3),await S()}catch(O){l.value="Error: "+O.message}}async function j(){const F=h.value.trim(),O=u.value;if(!F){m.value="Name is required";return}const V=O.split(",").map(J=>J.trim()).filter(Boolean);if(!V.length){m.value="At least one trigger is required";return}const ie=N(F,V,p.value,`\x3C!-- Write your skill instructions here -->
|
|
72
|
+
`);try{const J=await fetch(`/api/skills/${encodeURIComponent(F)}`,{method:"PUT",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:ie})});if(!J.ok)throw new Error(J.statusText);m.value="Created ✓",c.value=!1,await S();const ce=t.value.find(Me=>Me.name===F);ce&&W(ce)}catch(J){m.value="Error: "+J.message}}return gt(S),(F,O)=>($(),A("div",oc,[a("div",rc,[a("div",ic,[O[8]||(O[8]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Skill Library"),a("p",{class:"text-sm text-textSecondary mt-1"},"Manage intent-routing skills — user overrides, defaults, and project skills")],-1)),a("button",{onClick:O[0]||(O[0]=V=>{c.value=!c.value,n.value=null}),class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"}," + New Skill ")]),c.value?($(),A("div",lc,[O[12]||(O[12]=a("h4",{class:"text-sm font-semibold mb-3"},"Create New Skill",-1)),a("div",ac,[a("div",null,[O[9]||(O[9]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),fe(a("input",{"onUpdate:modelValue":O[1]||(O[1]=V=>h.value=V),type:"text",placeholder:"my-skill",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Te,h.value]])]),a("div",null,[O[10]||(O[10]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),fe(a("input",{"onUpdate:modelValue":O[2]||(O[2]=V=>u.value=V),type:"text",placeholder:"trigger1, trigger2",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},null,512),[[Te,u.value]])])]),a("div",cc,[a("label",uc,[fe(a("input",{"onUpdate:modelValue":O[3]||(O[3]=V=>p.value=V),type:"checkbox",class:"rounded"},null,512),[[ro,p.value]]),O[11]||(O[11]=a("span",null,"Replaces orchestrator",-1))])]),a("div",fc,[a("button",{onClick:j,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Create"),a("button",{onClick:O[4]||(O[4]=V=>c.value=!1),class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Cancel"),m.value?($(),A("span",dc,R(m.value),1)):re("",!0)])])):re("",!0),s.value?($(),A("div",pc,"Loading...")):t.value.length===0?($(),A("div",hc,"No skills loaded")):($(),A("div",mc,[($(!0),A(de,null,ct(t.value,V=>{var ie;return $(),A("div",{key:V.name,onClick:J=>W(V),class:le(["glass rounded-xl p-4 cursor-pointer hover:bg-cardHover transition border",((ie=n.value)==null?void 0:ie.name)===V.name?"border-accent":"border-transparent"])},[a("div",xc,[a("div",vc,[a("div",bc,[a("span",yc,R(V.name),1),a("span",{class:"type-badge",style:Es(M(P(V.source)))},R(P(V.source)),5),V.replacesOrchestrator?($(),A("span",_c,"REPLACES ORCH")):re("",!0)]),a("div",wc,[($(!0),A(de,null,ct(V.triggers||[],J=>($(),A("span",{key:J,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},R(J),1))),128))])]),a("div",{class:"text-xs text-muted font-mono shrink-0 max-w-[200px] truncate",title:V.source||""},R((V.source||"").split(/[\\/]/).pop()||""),9,Sc)])],10,gc)}),128))]))]),n.value?($(),A("div",Cc,[a("div",Tc,[a("div",null,[a("h3",$c,"Edit: "+R(n.value.name),1),a("p",kc,R(n.value.source||"(unknown source)"),1)]),a("div",Ac,[l.value?($(),A("span",Ec,R(l.value),1)):re("",!0),a("button",{onClick:E,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Close"),a("button",{onClick:z,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),a("div",Pc,[a("div",null,[O[13]||(O[13]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),a("input",{value:n.value.name,type:"text",readonly:"",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono opacity-60 cursor-not-allowed"},null,8,Mc)]),a("div",null,[O[14]||(O[14]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),fe(a("input",{"onUpdate:modelValue":O[5]||(O[5]=V=>r.value=V),type:"text",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},null,512),[[Te,r.value]])]),a("div",Oc,[a("label",Ic,[fe(a("input",{"onUpdate:modelValue":O[6]||(O[6]=V=>i.value=V),type:"checkbox",class:"rounded"},null,512),[[ro,i.value]]),O[15]||(O[15]=a("span",null,"Replaces orchestrator",-1))])])]),fe(a("textarea",{"onUpdate:modelValue":O[7]||(O[7]=V=>o.value=V),rows:"20",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Skill body (markdown)..."},null,512),[[Te,o.value]])])):re("",!0)]))}}),Dc={class:"animate-fade-in"},jc={class:"glass rounded-xl p-6 mb-6"},Lc={class:"flex flex-wrap items-center justify-between gap-4 mb-6"},Nc={class:"flex items-center gap-3"},Fc=["disabled"],Hc={key:0,class:"text-center py-8 text-textSecondary text-sm"},Vc={key:1,class:"space-y-6"},Uc={class:"glass rounded-xl p-4 border border-gray-700/50"},Bc={class:"flex items-center justify-between"},Kc={class:"glass rounded-xl p-4 border border-gray-700/50"},Wc=["value"],zc={key:0,class:"text-xs text-warn mt-2"},qc={class:"glass rounded-xl p-4 border border-gray-700/50"},Jc={class:"glass rounded-xl p-4 border border-gray-700/50"},Gc={class:"text-xs text-textSecondary mb-3"},Yc={key:0,class:"ml-1 text-accentLight font-mono"},Zc={class:"flex items-center gap-2"},Qc={key:0,class:"glass rounded-xl p-4 border border-gray-700/30 bg-surface/30"},Xc={class:"grid grid-cols-2 sm:grid-cols-4 gap-4"},eu={class:"text-sm font-mono"},tu={class:"text-sm font-mono"},su={class:"text-sm font-mono"},nu=Ct({__name:"KeepAliveTab",setup(e){const t=D(null),s=D([]),n=D(!0),o=D(!1),r=D(""),i=D({keepAliveEnabled:!1,keepAliveThreadId:0,keepAliveMaxRetries:5,keepAliveCooldownMs:3e5}),l=ht(()=>{const p=new Set;return s.value.filter(m=>m.threadId!=null&&!p.has(m.threadId)&&p.add(m.threadId)).map(m=>({threadId:m.threadId,label:m.topicName??`Thread ${m.threadId}`}))});async function c(){n.value=!0;try{const[p,m]=await Promise.all([pe("/api/settings/keep-alive"),pe("/api/sessions")]);t.value=p,s.value=m,i.value={...p}}finally{n.value=!1}}async function h(){o.value=!0,r.value="";try{const p=await fetch("/api/settings/keep-alive",{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify(i.value)});if(!p.ok){const m=await p.json().catch(()=>({error:p.statusText}));throw new Error(m.error??p.statusText)}t.value={...i.value},r.value="Saved ✓",setTimeout(()=>{r.value=""},3e3)}catch(p){r.value="Error: "+p.message}finally{o.value=!1}}function u(p){const m=Math.floor(p/6e4);return m>=60?`${Math.floor(m/60)}h ${m%60}m`:`${m}m`}return gt(c),(p,m)=>{var S;return $(),A("div",Dc,[a("div",jc,[a("div",Lc,[m[4]||(m[4]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Keep-Alive Settings"),a("p",{class:"text-sm text-textSecondary mt-1"},"Configure the headless agent auto-restart and monitoring behavior")],-1)),a("div",Nc,[r.value?($(),A("span",{key:0,class:le([r.value.startsWith("Error")?"text-danger":"text-success","text-sm"])},R(r.value),3)):re("",!0),a("button",{onClick:h,disabled:o.value||n.value,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-sm font-medium transition"},R(o.value?"Saving…":"Save"),9,Fc)])]),n.value?($(),A("div",Hc,"Loading…")):($(),A("div",Vc,[a("div",Uc,[a("div",Bc,[m[5]||(m[5]=a("div",null,[a("div",{class:"text-sm font-medium"},"Enable Keep-Alive"),a("div",{class:"text-xs text-textSecondary mt-0.5"},"Automatically restart the agent when it goes offline")],-1)),a("button",{onClick:m[0]||(m[0]=P=>i.value.keepAliveEnabled=!i.value.keepAliveEnabled),class:le(["relative inline-flex h-6 w-11 items-center rounded-full transition-colors",i.value.keepAliveEnabled?"bg-accent":"bg-gray-700"])},[a("span",{class:le(["inline-block h-4 w-4 transform rounded-full bg-white shadow transition-transform",i.value.keepAliveEnabled?"translate-x-6":"translate-x-1"])},null,2)],2)])]),a("div",Kc,[m[7]||(m[7]=a("label",{class:"block text-sm font-medium mb-1"},"Session to Keep Alive",-1)),m[8]||(m[8]=a("p",{class:"text-xs text-textSecondary mb-3"},"Select the Telegram thread to monitor and keep alive",-1)),fe(a("select",{"onUpdate:modelValue":m[1]||(m[1]=P=>i.value.keepAliveThreadId=P),class:"w-full sm:w-72 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition appearance-none"},[m[6]||(m[6]=a("option",{value:0},"Disabled",-1)),($(!0),A(de,null,ct(l.value,P=>($(),A("option",{key:P.threadId,value:P.threadId},R(P.label)+" ("+R(P.threadId)+") ",9,Wc))),128))],512),[[ws,i.value.keepAliveThreadId,void 0,{number:!0}]]),i.value.keepAliveThreadId&&!l.value.find(P=>P.threadId===i.value.keepAliveThreadId)?($(),A("p",zc," Thread "+R(i.value.keepAliveThreadId)+" is configured but not in active sessions ",1)):re("",!0)]),a("div",qc,[m[9]||(m[9]=a("label",{class:"block text-sm font-medium mb-1"},"Max Retries",-1)),m[10]||(m[10]=a("p",{class:"text-xs text-textSecondary mb-3"},"Number of restart attempts before entering cooldown mode",-1)),fe(a("input",{"onUpdate:modelValue":m[2]||(m[2]=P=>i.value.keepAliveMaxRetries=P),type:"number",min:"1",max:"20",class:"w-full sm:w-32 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Te,i.value.keepAliveMaxRetries,void 0,{number:!0}]])]),a("div",Jc,[m[13]||(m[13]=a("label",{class:"block text-sm font-medium mb-1"},"Cooldown Duration",-1)),a("p",Gc,[m[11]||(m[11]=_t(" Wait time after max retries exceeded before resuming restarts ",-1)),i.value.keepAliveCooldownMs?($(),A("span",Yc,"("+R(u(i.value.keepAliveCooldownMs))+")",1)):re("",!0)]),a("div",Zc,[fe(a("input",{"onUpdate:modelValue":m[3]||(m[3]=P=>i.value.keepAliveCooldownMs=P),type:"number",min:"1000",step:"60000",class:"w-full sm:w-40 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Te,i.value.keepAliveCooldownMs,void 0,{number:!0}]]),m[12]||(m[12]=a("span",{class:"text-xs text-textSecondary"},"ms",-1))])]),t.value?($(),A("div",Qc,[m[18]||(m[18]=a("div",{class:"text-xs font-medium text-textSecondary uppercase tracking-wider mb-3"},"Current State",-1)),a("div",Xc,[a("div",null,[m[14]||(m[14]=a("div",{class:"text-xs text-muted mb-1"},"Status",-1)),a("span",{class:le(["text-sm font-medium",t.value.keepAliveEnabled?"text-success":"text-textSecondary"])},R(t.value.keepAliveEnabled?"Enabled":"Disabled"),3)]),a("div",null,[m[15]||(m[15]=a("div",{class:"text-xs text-muted mb-1"},"Thread",-1)),a("span",eu,R(((S=l.value.find(P=>P.threadId===t.value.keepAliveThreadId))==null?void 0:S.label)??(t.value.keepAliveThreadId||"—")),1)]),a("div",null,[m[16]||(m[16]=a("div",{class:"text-xs text-muted mb-1"},"Max Retries",-1)),a("span",tu,R(t.value.keepAliveMaxRetries),1)]),a("div",null,[m[17]||(m[17]=a("div",{class:"text-xs text-muted mb-1"},"Cooldown",-1)),a("span",su,R(u(t.value.keepAliveCooldownMs)),1)])])])):re("",!0)]))])])}}}),ou={class:"animate-fade-in"},ru={class:"glass rounded-xl p-6 mb-6"},iu={class:"flex flex-wrap items-center justify-between gap-4 mb-6"},lu={class:"flex items-center gap-3"},au=["disabled"],cu={key:0,class:"text-center py-8 text-textSecondary text-sm"},uu={key:1,class:"space-y-6"},fu={class:"glass rounded-xl p-4 border border-gray-700/50"},du={class:"flex items-center gap-4"},pu={class:"flex justify-between text-xs text-muted mt-2"},hu={class:"font-mono"},mu={key:0,class:"mt-3 px-3 py-2 rounded-lg bg-warn/10 border border-warn/20 text-xs text-warn"},gu={class:"glass rounded-xl p-4 border border-gray-700/30 bg-surface/30"},xu={class:"grid grid-cols-2 gap-4"},vu=Ct({__name:"SettingsTab",setup(e){const t=D(!0),s=D(!1),n=D(""),o=D(50),r=D(50),i=ht(()=>o.value!==r.value);async function l(){t.value=!0;try{const h=await pe("/api/settings/bootstrap-message-count");o.value=h.count,r.value=h.count}finally{t.value=!1}}async function c(){s.value=!0,n.value="";try{const h=await fetch("/api/settings/bootstrap-message-count",{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({count:o.value})});if(!h.ok){const p=await h.json().catch(()=>({error:h.statusText}));throw new Error(p.error??h.statusText)}const u=await h.json();r.value=u.count,o.value=u.count,n.value="Saved ✓",setTimeout(()=>{n.value=""},3e3)}catch(h){n.value="Error: "+h.message}finally{s.value=!1}}return gt(l),(h,u)=>($(),A("div",ou,[a("div",ru,[a("div",iu,[u[2]||(u[2]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Settings"),a("p",{class:"text-sm text-textSecondary mt-1"},"Configure agent behavior and context injection")],-1)),a("div",lu,[n.value?($(),A("span",{key:0,class:le([n.value.startsWith("Error")?"text-danger":"text-success","text-sm"])},R(n.value),3)):re("",!0),a("button",{onClick:c,disabled:s.value||t.value||!i.value,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-sm font-medium transition"},R(s.value?"Saving…":"Save"),9,au)])]),t.value?($(),A("div",cu,"Loading…")):($(),A("div",uu,[a("div",fu,[u[6]||(u[6]=a("label",{class:"block text-sm font-medium mb-1"},"Recent Conversation Buffer",-1)),u[7]||(u[7]=a("p",{class:"text-xs text-textSecondary mb-3"},[_t(" Number of recent messages injected into the agent's bootstrap context. Set to "),a("span",{class:"font-mono text-accentLight"},"0"),_t(" to disable (useful when using VS Code, which maintains its own conversation history). ")],-1)),a("div",du,[fe(a("input",{"onUpdate:modelValue":u[0]||(u[0]=p=>o.value=p),type:"range",min:"0",max:"100",step:"5",class:"flex-1 accent-accent"},null,512),[[Te,o.value,void 0,{number:!0}]]),fe(a("input",{"onUpdate:modelValue":u[1]||(u[1]=p=>o.value=p),type:"number",min:"0",max:"200",class:"w-20 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono text-center focus:outline-none focus:border-accent transition"},null,512),[[Te,o.value,void 0,{number:!0}]])]),a("div",pu,[u[3]||(u[3]=a("span",null,"Off",-1)),a("span",hu,R(o.value)+" messages",1),u[4]||(u[4]=a("span",null,"Max",-1))]),o.value===0?($(),A("div",mu,[...u[5]||(u[5]=[_t(" Message buffer injection is ",-1),a("strong",null,"disabled",-1),_t(". The agent will not see recent conversation history in its bootstrap context. Use this when VS Code (or another IDE) already provides conversation history. ",-1)])])):re("",!0)]),a("div",gu,[u[10]||(u[10]=a("div",{class:"text-xs font-medium text-textSecondary uppercase tracking-wider mb-3"},"Current State",-1)),a("div",xu,[a("div",null,[u[8]||(u[8]=a("div",{class:"text-xs text-muted mb-1"},"Message Buffer",-1)),a("span",{class:le(["text-sm font-medium",r.value>0?"text-success":"text-textSecondary"])},R(r.value>0?`${r.value} messages`:"Disabled"),3)]),a("div",null,[u[9]||(u[9]=a("div",{class:"text-xs text-muted mb-1"},"Status",-1)),a("span",{class:le(["text-sm font-medium",i.value?"text-warn":"text-textSecondary"])},R(i.value?"Unsaved changes":"Saved"),3)])])])]))])]))}}),bu={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-surface/95 backdrop-blur-sm"},yu={class:"glass rounded-2xl p-8 max-w-md w-full mx-4 animate-slide-up"},_u=["disabled"],wu={key:0,class:"mt-3 text-sm text-danger"},Su={key:1,class:"min-h-screen font-sans text-textPrimary animate-fade-in"},Cu={class:"glass sticky top-0 z-40 border-b border-gray-800/50"},Tu={class:"max-w-7xl mx-auto px-4 sm:px-6 py-4 flex items-center justify-between"},$u={class:"flex items-center gap-4"},ku={class:"text-sm text-textSecondary font-mono"},Au={class:"max-w-7xl mx-auto px-4 sm:px-6 py-6"},Eu={class:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3"},Pu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Mu={class:"text-2xl font-bold font-mono"},Ou={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Iu={class:"text-2xl font-bold font-mono"},Ru={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Du={class:"text-2xl font-bold font-mono"},ju={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Lu={class:"flex items-center gap-2 mb-2"},Nu={class:"text-2xl font-bold font-mono"},Fu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Hu={class:"text-2xl font-bold font-mono"},Vu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Uu={class:"text-2xl font-bold font-mono"},Bu={class:"max-w-7xl mx-auto px-4 sm:px-6"},Ku={class:"flex gap-6 border-b border-gray-800/50 mb-6"},Wu=["onClick"],zu={class:"max-w-7xl mx-auto px-4 sm:px-6 pb-12"},us="sensorium_token",qu=Ct({__name:"App",setup(e){const t=D(!1),s=D(""),n=D(""),o=D(!1),r=D(null),i=D("sessions");let l=null;const c=[{id:"sessions",label:"Sessions"},{id:"notes",label:"Memory Notes"},{id:"templates",label:"Templates"},{id:"skills",label:"Skills"},{id:"keepalive",label:"Keep-Alive"},{id:"settings",label:"Settings"}],h={sessions:na,notes:_a,templates:nc,skills:Rc,keepalive:nu,settings:vu},u=ht(()=>h[i.value]),p=ht(()=>{if(!r.value)return"—";const W=Math.floor(r.value.uptime),E=Math.floor(W/86400),N=Math.floor(W%86400/3600),z=Math.floor(W%3600/60);return E>0?`${E}d ${N}h`:N>0?`${N}h ${z}m`:`${z}m`});async function m(){const W=s.value.trim()||"no-auth";o.value=!0,n.value="";try{Ut(W),await P(),localStorage.setItem(us,W),t.value=!0,M()}catch(E){const N=E;N.status===401?n.value="Invalid token":n.value=N.message??"Connection failed",Ut("")}finally{o.value=!1}}function S(){localStorage.removeItem(us),t.value=!1,s.value="",r.value=null,l&&clearInterval(l),Ut("")}async function P(){r.value=await pe("/api/status")}function M(){l&&clearInterval(l),l=setInterval(P,3e4)}return gt(async()=>{const W=localStorage.getItem(us);if(W){s.value=W;try{Ut(W),await P(),t.value=!0,M()}catch{localStorage.removeItem(us),Ut("")}}}),vn(()=>{l&&clearInterval(l)}),(W,E)=>{var N,z,j,F,O,V,ie,J,ce,Me,Ye;return t.value?($(),A("div",Su,[a("header",Cu,[a("div",Tu,[E[3]||(E[3]=Ve('<div class="flex items-center gap-3"><div class="w-8 h-8 rounded-lg bg-gradient-to-br from-accent to-purple-500 flex items-center justify-center"><span class="text-white text-sm font-bold">S</span></div><div><h1 class="text-lg font-semibold tracking-tight">Sensorium MCP</h1><p class="text-xs text-textSecondary">Agent Dashboard</p></div></div>',1)),a("div",$u,[E[2]||(E[2]=a("div",{class:"flex items-center gap-2 text-sm"},[a("span",{class:"w-2 h-2 rounded-full bg-success animate-pulse-slow"}),a("span",{class:"text-textSecondary"},"Connected")],-1)),a("div",ku,R(p.value),1),a("button",{onClick:S,class:"text-sm text-muted hover:text-textSecondary transition"},"Disconnect")])])]),a("div",Au,[a("div",Eu,[a("div",Pu,[E[4]||(E[4]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-success"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Sessions</span></div>',1)),a("div",Mu,R(((N=r.value)==null?void 0:N.activeSessions)??0),1)]),a("div",Ou,[E[5]||(E[5]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-accentLight"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Notes</span></div>',1)),a("div",Iu,R(((j=(z=r.value)==null?void 0:z.memory)==null?void 0:j.totalSemanticNotes)??0),1)]),a("div",Ru,[E[6]||(E[6]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-warn"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Episodes</span></div>',1)),a("div",Du,R(((O=(F=r.value)==null?void 0:F.memory)==null?void 0:O.totalEpisodes)??0),1)]),a("div",ju,[a("div",Lu,[a("span",{class:le((((ie=(V=r.value)==null?void 0:V.memory)==null?void 0:ie.unconsolidatedEpisodes)??0)>10?"text-danger":"text-success")},[...E[7]||(E[7]=[a("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)])],2),E[8]||(E[8]=a("span",{class:"text-xs text-textSecondary font-medium uppercase tracking-wider"},"Unconsolidated",-1))]),a("div",Nu,R(((ce=(J=r.value)==null?void 0:J.memory)==null?void 0:ce.unconsolidatedEpisodes)??0),1)]),a("div",Fu,[E[9]||(E[9]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-accent"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Procedures</span></div>',1)),a("div",Hu,R(((Ye=(Me=r.value)==null?void 0:Me.memory)==null?void 0:Ye.totalProcedures)??0),1)]),a("div",Vu,[E[10]||(E[10]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-success"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M12 5l7 7-7 7"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Uptime</span></div>',1)),a("div",Uu,R(p.value),1)])])]),a("div",Bu,[a("nav",Ku,[($(),A(de,null,ct(c,$e=>a("button",{key:$e.id,onClick:Tt=>i.value=$e.id,class:le(["pb-3 text-sm font-medium transition",i.value===$e.id?"tab-active":"tab-inactive"])},R($e.label),11,Wu)),64))])]),a("div",zu,[($(),cr($i(u.value),{status:r.value},null,8,["status"]))])])):($(),A("div",bu,[a("div",yu,[E[1]||(E[1]=Ve('<div class="flex items-center gap-3 mb-6"><div class="w-10 h-10 rounded-xl bg-accent/20 flex items-center justify-center"><svg class="w-5 h-5 text-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path></svg></div><div><h2 class="text-lg font-semibold">Sensorium MCP</h2><p class="text-sm text-textSecondary">Enter your API token</p></div></div>',1)),fe(a("input",{"onUpdate:modelValue":E[0]||(E[0]=$e=>s.value=$e),type:"password",placeholder:"MCP_HTTP_SECRET",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary placeholder-muted focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition font-mono text-sm",onKeydown:Ll(m,["enter"])},null,544),[[Te,s.value]]),a("button",{onClick:m,disabled:o.value,class:"w-full mt-4 px-4 py-3 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white font-medium transition"},R(o.value?"Connecting...":"Connect"),9,_u),n.value?($(),A("p",wu,R(n.value),1)):re("",!0)])]))}}});Hl(qu).mount("#app");</script>
|
|
73
73
|
<style rel="stylesheet" crossorigin>body{background:#0f1419}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:#1a1f2e}::-webkit-scrollbar-thumb{background:#374151;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#4b5563}.glass{background:#1a1f2ecc;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(99,102,241,.1)}.stat-glow{box-shadow:0 0 20px #6366f114}.priority-2{border-left:3px solid #ef4444}.priority-1{border-left:3px solid #f59e0b}.priority-0{border-left:3px solid transparent}.type-badge{font-size:.65rem;padding:2px 6px;border-radius:9999px;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.type-fact{background:#3b82f626;color:#60a5fa}.type-preference{background:#a855f726;color:#c084fc}.type-pattern{background:#22c55e26;color:#4ade80}.type-entity{background:#fbbf2426;color:#fbbf24}.type-relationship{background:#f472b626;color:#f472b6}.tab-active{border-bottom:2px solid #6366f1;color:#e5e7eb}.tab-inactive{border-bottom:2px solid transparent;color:#6b7280}.tab-inactive:hover{color:#9ca3af}</style>
|
|
74
74
|
</head>
|
|
75
75
|
<body class="font-sans text-textPrimary min-h-screen">
|