sensorium-mcp 2.16.129 → 2.16.130
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
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 Xs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const X={},_t=[],Be=()=>{},
|
|
52
|
+
**/function Xs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const X={},_t=[],Be=()=>{},lo=()=>!1,vs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ys=e=>e.startsWith("onUpdate:"),me=Object.assign,en=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},gr=Object.prototype.hasOwnProperty,G=(e,t)=>gr.call(e,t),H=Array.isArray,wt=e=>Zt(e)==="[object Map]",At=e=>Zt(e)==="[object Set]",Tn=e=>Zt(e)==="[object Date]",K=e=>typeof e=="function",re=e=>typeof e=="string",We=e=>typeof e=="symbol",Z=e=>e!==null&&typeof e=="object",ao=e=>(Z(e)||K(e))&&K(e.then)&&K(e.catch),co=Object.prototype.toString,Zt=e=>co.call(e),xr=e=>Zt(e).slice(8,-1),uo=e=>Zt(e)==="[object Object]",tn=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Nt=Xs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),bs=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},vr=/-\w/g,_e=bs(e=>e.replace(vr,t=>t.slice(1).toUpperCase())),yr=/\B([A-Z])/g,ct=bs(e=>e.replace(yr,"-$1").toLowerCase()),_s=bs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ps=bs(e=>e?`on${_s(e)}`:""),Ue=(e,t)=>!Object.is(e,t),ls=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},fo=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},ws=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let $n;const Ss=()=>$n||($n=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Qt(e){if(H(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],o=re(n)?Sr(n):Qt(n);if(o)for(const r in o)t[r]=o[r]}return t}else if(re(e)||Z(e))return e}const br=/;(?![^(]*\))/g,_r=/:([^]+)/,wr=/\/\*[^]*?\*\//g;function Sr(e){const t={};return e.replace(wr,"").split(br).forEach(s=>{if(s){const n=s.split(_r);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function de(e){let t="";if(re(e))t=e;else if(H(e))for(let s=0;s<e.length;s++){const n=de(e[s]);n&&(t+=n+" ")}else if(Z(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Cr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Tr=Xs(Cr);function po(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=Mt(e[n],t[n]);return s}function Mt(e,t){if(e===t)return!0;let s=Tn(e),n=Tn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=We(e),n=We(t),s||n)return e===t;if(s=H(e),n=H(t),s||n)return s&&n?$r(e,t):!1;if(s=Z(e),n=Z(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||!Mt(e[i],t[i]))return!1}}return String(e)===String(t)}function sn(e,t){return e.findIndex(s=>Mt(s,t))}const ho=e=>!!(e&&e.__v_isRef===!0),O=e=>re(e)?e:e==null?"":H(e)||Z(e)&&(e.toString===co||!K(e.toString))?ho(e)?O(e.value):JSON.stringify(e,mo,2):String(e),mo=(e,t)=>ho(t)?mo(e,t.value):wt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,o],r)=>(s[Os(n,r)+" =>"]=o,s),{})}:At(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Os(s))}:We(t)?Os(t):Z(t)&&!H(t)&&!uo(t)?String(t):t,Os=(e,t="")=>{var s;return We(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 we;class Er{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=we,!t&&we&&(this.index=(we.scopes||(we.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=we;try{return we=this,t()}finally{we=s}}}on(){++this._on===1&&(this.prevScope=we,we=this)}off(){this._on>0&&--this._on===0&&(we=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 kr(){return we}let te;const Is=new WeakSet;class mo{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,we&&we.active&&we.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Is.has(this)&&(Is.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||xo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,$n(this),vo(this);const t=te,s=Me;te=this,Me=!0;try{return this.fn()}finally{yo(this),te=t,Me=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)rn(t);this.deps=this.depsTail=void 0,$n(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Is.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Vs(this)&&this.run()}get dirty(){return Vs(this)}}let go=0,Ft,Ht;function xo(e,t=!1){if(e.flags|=8,t){e.next=Ht,Ht=e;return}e.next=Ft,Ft=e}function nn(){go++}function on(){if(--go>0)return;if(Ht){let t=Ht;for(Ht=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ft;){let t=Ft;for(Ft=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 vo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function yo(e){let t,s=e.depsTail,n=s;for(;n;){const o=n.prevDep;n.version===-1?(n===s&&(s=o),rn(n),Pr(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=s}function Vs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(bo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function bo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wt)||(e.globalVersion=Wt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Vs(e))))return;e.flags|=2;const t=e.dep,s=te,n=Me;te=e,Me=!0;try{vo(e);const o=e.fn(e._value);(t.version===0||Ue(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{te=s,Me=n,yo(e),e.flags&=-3}}function rn(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)rn(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Pr(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Me=!0;const _o=[];function et(){_o.push(Me),Me=!1}function tt(){const e=_o.pop();Me=e===void 0?!0:e}function $n(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=te;te=void 0;try{t()}finally{te=s}}}let Wt=0;class Ar{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 ln{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(!te||!Me||te===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==te)s=this.activeLink=new Ar(te,this),te.deps?(s.prevDep=te.depsTail,te.depsTail.nextDep=s,te.depsTail=s):te.deps=te.depsTail=s,wo(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=te.depsTail,s.nextDep=void 0,te.depsTail.nextDep=s,te.depsTail=s,te.deps===s&&(te.deps=n)}return s}trigger(t){this.version++,Wt++,this.notify(t)}notify(t){nn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{on()}}}function wo(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)wo(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Us=new WeakMap,pt=Symbol(""),Bs=Symbol(""),zt=Symbol("");function he(e,t,s){if(Me&&te){let n=Us.get(e);n||Us.set(e,n=new Map);let o=n.get(s);o||(n.set(s,o=new ln),o.map=n,o.key=s),o.track()}}function Ze(e,t,s,n,o,r){const i=Us.get(e);if(!i){Wt++;return}const l=a=>{a&&a.trigger()};if(nn(),t==="clear")i.forEach(l);else{const a=F(e),h=a&&tn(s);if(a&&s==="length"){const u=Number(n);i.forEach((p,g)=>{(g==="length"||g===zt||!We(g)&&g>=u)&&l(p)})}else switch((s!==void 0||i.has(void 0))&&l(i.get(s)),h&&l(i.get(zt)),t){case"add":a?h&&l(i.get("length")):(l(i.get(pt)),wt(e)&&l(i.get(Bs)));break;case"delete":a||(l(i.get(pt)),wt(e)&&l(i.get(Bs)));break;case"set":wt(e)&&l(i.get(pt));break}}on()}function vt(e){const t=J(e);return t===e?t:(he(t,"iterate",zt),Pe(e)?t:t.map(Oe))}function Cs(e){return he(e=J(e),"iterate",zt),e}function He(e,t){return st(e)?Tt(ht(e)?Oe(t):t):Oe(t)}const Mr={__proto__:null,[Symbol.iterator](){return Rs(this,Symbol.iterator,e=>He(this,e))},concat(...e){return vt(this).concat(...e.map(t=>F(t)?vt(t):t))},entries(){return Rs(this,"entries",e=>(e[1]=He(this,e[1]),e))},every(e,t){return Je(this,"every",e,t,void 0,arguments)},filter(e,t){return Je(this,"filter",e,t,s=>s.map(n=>He(this,n)),arguments)},find(e,t){return Je(this,"find",e,t,s=>He(this,s),arguments)},findIndex(e,t){return Je(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Je(this,"findLast",e,t,s=>He(this,s),arguments)},findLastIndex(e,t){return Je(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Je(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ds(this,"includes",e)},indexOf(...e){return Ds(this,"indexOf",e)},join(e){return vt(this).join(e)},lastIndexOf(...e){return Ds(this,"lastIndexOf",e)},map(e,t){return Je(this,"map",e,t,void 0,arguments)},pop(){return Rt(this,"pop")},push(...e){return Rt(this,"push",e)},reduce(e,...t){return En(this,"reduce",e,t)},reduceRight(e,...t){return En(this,"reduceRight",e,t)},shift(){return Rt(this,"shift")},some(e,t){return Je(this,"some",e,t,void 0,arguments)},splice(...e){return Rt(this,"splice",e)},toReversed(){return vt(this).toReversed()},toSorted(e){return vt(this).toSorted(e)},toSpliced(...e){return vt(this).toSpliced(...e)},unshift(...e){return Rt(this,"unshift",e)},values(){return Rs(this,"values",e=>He(this,e))}};function Rs(e,t,s){const n=Cs(e),o=n[t]();return n!==e&&!Pe(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 Je(e,t,s,n,o,r){const i=Cs(e),l=i!==e&&!Pe(e),a=i[t];if(a!==Or[t]){const p=a.apply(e,r);return l?Oe(p):p}let h=s;i!==e&&(l?h=function(p,g){return s.call(this,He(e,p),g,e)}:s.length>2&&(h=function(p,g){return s.call(this,p,g,e)}));const u=a.call(i,h,n);return l&&o?o(u):u}function En(e,t,s,n){const o=Cs(e),r=o!==e&&!Pe(e);let i=s,l=!1;o!==e&&(r?(l=n.length===0,i=function(h,u,p){return l&&(l=!1,h=He(e,h)),s.call(this,h,He(e,u),p,e)}):s.length>3&&(i=function(h,u,p){return s.call(this,h,u,p,e)}));const a=o[t](i,...n);return l?He(e,a):a}function Ds(e,t,s){const n=J(e);he(n,"iterate",zt);const o=n[t](...s);return(o===-1||o===!1)&&fn(s[0])?(s[0]=J(s[0]),n[t](...s)):o}function Rt(e,t,s=[]){et(),nn();const n=J(e)[t].apply(e,s);return on(),tt(),n}const Ir=Xs("__proto__,__v_isRef,__isVue"),So=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(We));function Rr(e){We(e)||(e=String(e));const t=J(this);return he(t,"has",e),t.hasOwnProperty(e)}class Co{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:ko:r?Eo:$o).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=F(t);if(!o){let a;if(i&&(a=Mr[s]))return a;if(s==="hasOwnProperty")return Rr}const l=Reflect.get(t,s,xe(t)?t:n);if((We(s)?So.has(s):Ir(s))||(o||he(t,"get",s),r))return l;if(xe(l)){const a=i&&tn(s)?l:l.value;return o&&Z(a)?Ws(a):a}return Z(l)?o?Ws(l):cn(l):l}}class To extends Co{constructor(t=!1){super(!1,t)}set(t,s,n,o){let r=t[s];const i=F(t)&&tn(s);if(!this._isShallow){const h=st(r);if(!Pe(n)&&!st(n)&&(r=J(r),n=J(n)),!i&&xe(r)&&!xe(n))return h||(r.value=n),!0}const l=i?Number(s)<t.length:G(t,s),a=Reflect.set(t,s,n,xe(t)?t:o);return t===J(o)&&(l?Ue(n,r)&&Ze(t,"set",s,n):Ze(t,"add",s,n)),a}deleteProperty(t,s){const n=G(t,s);t[s];const o=Reflect.deleteProperty(t,s);return o&&n&&Ze(t,"delete",s,void 0),o}has(t,s){const n=Reflect.has(t,s);return(!We(s)||!So.has(s))&&he(t,"has",s),n}ownKeys(t){return he(t,"iterate",F(t)?"length":pt),Reflect.ownKeys(t)}}class Dr extends Co{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Lr=new To,Nr=new Dr,jr=new To(!0);const Ks=e=>e,ns=e=>Reflect.getPrototypeOf(e);function Fr(e,t,s){return function(...n){const o=this.__v_raw,r=J(o),i=wt(r),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,h=o[e](...n),u=s?Ks:t?Tt:Oe;return!t&&he(r,"iterate",a?Bs:pt),pe(Object.create(h),{next(){const{value:p,done:g}=h.next();return g?{value:p,done:g}:{value:l?[u(p[0]),u(p[1])]:u(p),done:g}}})}}function os(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=J(r),l=J(o);e||(Ue(o,l)&&he(i,"get",o),he(i,"get",l));const{has:a}=ns(i),h=t?Ks:e?Tt:Oe;if(a.call(i,o))return h(r.get(o));if(a.call(i,l))return h(r.get(l));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&he(J(o),"iterate",pt),o.size},has(o){const r=this.__v_raw,i=J(r),l=J(o);return e||(Ue(o,l)&&he(i,"has",o),he(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=J(l),h=t?Ks:e?Tt:Oe;return!e&&he(a,"iterate",pt),l.forEach((u,p)=>o.call(r,h(u),h(p),i))}};return pe(s,e?{add:os("add"),set:os("set"),delete:os("delete"),clear:os("clear")}:{add(o){const r=J(this),i=ns(r),l=J(o),a=!t&&!Pe(o)&&!st(o)?l:o;return i.has.call(r,a)||Ue(o,a)&&i.has.call(r,o)||Ue(l,a)&&i.has.call(r,l)||(r.add(a),Ze(r,"add",a,a)),this},set(o,r){!t&&!Pe(r)&&!st(r)&&(r=J(r));const i=J(this),{has:l,get:a}=ns(i);let h=l.call(i,o);h||(o=J(o),h=l.call(i,o));const u=a.call(i,o);return i.set(o,r),h?Ue(r,u)&&Ze(i,"set",o,r):Ze(i,"add",o,r),this},delete(o){const r=J(this),{has:i,get:l}=ns(r);let a=i.call(r,o);a||(o=J(o),a=i.call(r,o)),l&&l.call(r,o);const h=r.delete(o);return a&&Ze(r,"delete",o,void 0),h},clear(){const o=J(this),r=o.size!==0,i=o.clear();return r&&Ze(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Fr(o,e,t)}),s}function an(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(G(s,o)&&o in n?s:n,o,r)}const Vr={get:an(!1,!1)},Ur={get:an(!1,!0)},Br={get:an(!0,!1)};const $o=new WeakMap,Eo=new WeakMap,ko=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 cn(e){return st(e)?e:un(e,!1,Lr,Vr,$o)}function qr(e){return un(e,!1,jr,Ur,Eo)}function Ws(e){return un(e,!0,Nr,Br,ko)}function un(e,t,s,n,o){if(!Z(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 ht(e){return st(e)?ht(e.__v_raw):!!(e&&e.__v_isReactive)}function st(e){return!!(e&&e.__v_isReadonly)}function Pe(e){return!!(e&&e.__v_isShallow)}function fn(e){return e?!!e.__v_raw:!1}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function Jr(e){return!G(e,"__v_skip")&&Object.isExtensible(e)&&uo(e,"__v_skip",!0),e}const Oe=e=>Z(e)?cn(e):e,Tt=e=>Z(e)?Ws(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function V(e){return Gr(e,!1)}function Gr(e,t){return xe(e)?e:new Yr(e,t)}class Yr{constructor(t,s){this.dep=new ln,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:J(t),this._value=s?t:Oe(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Pe(t)||st(t);t=n?t:J(t),Ue(t,s)&&(this._rawValue=t,this._value=n?t:Oe(t),this.dep.trigger())}}function Zr(e){return xe(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 xe(o)&&!xe(s)?(o.value=s,!0):Reflect.set(e,t,s,n)}};function Po(e){return ht(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 ln(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&te!==this)return xo(this,!0),!0}get value(){const t=this.dep.track();return bo(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 rs={},ds=new WeakMap;let dt;function ti(e,t=!1,s=dt){if(s){let n=ds.get(s);n||ds.set(s,n=[]),n.push(e)}}function si(e,t,s=X){const{immediate:n,deep:o,once:r,scheduler:i,augmentJob:l,call:a}=s,h=R=>o?R:Pe(R)||o===!1||o===0?Qe(R,1):Qe(R);let u,p,g,C,U=!1,O=!1;if(xe(e)?(p=()=>e.value,U=Pe(e)):ht(e)?(p=()=>h(e),U=!0):F(e)?(O=!0,U=e.some(R=>ht(R)||Pe(R)),p=()=>e.map(R=>{if(xe(R))return R.value;if(ht(R))return h(R);if(K(R))return a?a(R,2):R()})):K(e)?t?p=a?()=>a(e,2):e:p=()=>{if(g){et();try{g()}finally{tt()}}const R=dt;dt=u;try{return a?a(e,3,[C]):e(C)}finally{dt=R}}:p=Be,t&&o){const R=p,D=o===!0?1/0:o;p=()=>Qe(R(),D)}const W=kr(),M=()=>{u.stop(),W&&W.active&&en(W.effects,u)};if(r&&t){const R=t;t=(...D)=>{R(...D),M()}}let H=O?new Array(e.length).fill(rs):rs;const z=R=>{if(!(!(u.flags&1)||!u.dirty&&!R))if(t){const D=u.run();if(o||U||(O?D.some((A,L)=>Ue(A,H[L])):Ue(D,H))){g&&g();const A=dt;dt=u;try{const L=[D,H===rs?void 0:O&&H[0]===rs?[]:H,C];H=D,a?a(t,3,L):t(...L)}finally{dt=A}}}else u.run()};return l&&l(z),u=new mo(p),u.scheduler=i?()=>i(z,!1):z,C=R=>ti(R,!1,u),g=u.onStop=()=>{const R=ds.get(u);if(R){if(a)a(R,4);else for(const D of R)D();ds.delete(u)}},t?n?z(!0):H=u.run():i?i(z.bind(null,!0),!0):u.run(),M.pause=u.pause.bind(u),M.resume=u.resume.bind(u),M.stop=M,M}function Qe(e,t=1/0,s){if(t<=0||!Z(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,xe(e))Qe(e.value,t,s);else if(F(e))for(let n=0;n<e.length;n++)Qe(e[n],t,s);else if(Pt(e)||wt(e))e.forEach(n=>{Qe(n,t,s)});else if(co(e)){for(const n in e)Qe(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Qe(e[n],t,s)}return e}/**
|
|
56
|
+
**/let Se;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=Se,!t&&Se&&(this.index=(Se.scopes||(Se.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=Se;try{return Se=this,t()}finally{Se=s}}}on(){++this._on===1&&(this.prevScope=Se,Se=this)}off(){this._on>0&&--this._on===0&&(Se=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 Er(){return Se}let te;const Is=new WeakSet;class go{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,Se&&Se.active&&Se.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Is.has(this)&&(Is.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||vo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,kn(this),yo(this);const t=te,s=Pe;te=this,Pe=!0;try{return this.fn()}finally{bo(this),te=t,Pe=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)rn(t);this.deps=this.depsTail=void 0,kn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Is.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Vs(this)&&this.run()}get dirty(){return Vs(this)}}let xo=0,Ft,Ht;function vo(e,t=!1){if(e.flags|=8,t){e.next=Ht,Ht=e;return}e.next=Ft,Ft=e}function nn(){xo++}function on(){if(--xo>0)return;if(Ht){let t=Ht;for(Ht=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ft;){let t=Ft;for(Ft=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 yo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function bo(e){let t,s=e.depsTail,n=s;for(;n;){const o=n.prevDep;n.version===-1?(n===s&&(s=o),rn(n),Ar(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=s}function Vs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(_o(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function _o(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wt)||(e.globalVersion=Wt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Vs(e))))return;e.flags|=2;const t=e.dep,s=te,n=Pe;te=e,Pe=!0;try{yo(e);const o=e.fn(e._value);(t.version===0||Ue(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{te=s,Pe=n,bo(e),e.flags&=-3}}function rn(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)rn(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Ar(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Pe=!0;const wo=[];function et(){wo.push(Pe),Pe=!1}function tt(){const e=wo.pop();Pe=e===void 0?!0:e}function kn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=te;te=void 0;try{t()}finally{te=s}}}let Wt=0;class Mr{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 ln{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(!te||!Pe||te===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==te)s=this.activeLink=new Mr(te,this),te.deps?(s.prevDep=te.depsTail,te.depsTail.nextDep=s,te.depsTail=s):te.deps=te.depsTail=s,So(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=te.depsTail,s.nextDep=void 0,te.depsTail.nextDep=s,te.depsTail=s,te.deps===s&&(te.deps=n)}return s}trigger(t){this.version++,Wt++,this.notify(t)}notify(t){nn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{on()}}}function So(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)So(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Us=new WeakMap,gt=Symbol(""),Bs=Symbol(""),zt=Symbol("");function ge(e,t,s){if(Pe&&te){let n=Us.get(e);n||Us.set(e,n=new Map);let o=n.get(s);o||(n.set(s,o=new ln),o.map=n,o.key=s),o.track()}}function Ze(e,t,s,n,o,r){const i=Us.get(e);if(!i){Wt++;return}const l=c=>{c&&c.trigger()};if(nn(),t==="clear")i.forEach(l);else{const c=H(e),d=c&&tn(s);if(c&&s==="length"){const a=Number(n);i.forEach((p,g)=>{(g==="length"||g===zt||!We(g)&&g>=a)&&l(p)})}else switch((s!==void 0||i.has(void 0))&&l(i.get(s)),d&&l(i.get(zt)),t){case"add":c?d&&l(i.get("length")):(l(i.get(gt)),wt(e)&&l(i.get(Bs)));break;case"delete":c||(l(i.get(gt)),wt(e)&&l(i.get(Bs)));break;case"set":wt(e)&&l(i.get(gt));break}}on()}function yt(e){const t=J(e);return t===e?t:(ge(t,"iterate",zt),Me(e)?t:t.map(Oe))}function Cs(e){return ge(e=J(e),"iterate",zt),e}function He(e,t){return st(e)?Tt(xt(e)?Oe(t):t):Oe(t)}const Pr={__proto__:null,[Symbol.iterator](){return Rs(this,Symbol.iterator,e=>He(this,e))},concat(...e){return yt(this).concat(...e.map(t=>H(t)?yt(t):t))},entries(){return Rs(this,"entries",e=>(e[1]=He(this,e[1]),e))},every(e,t){return Je(this,"every",e,t,void 0,arguments)},filter(e,t){return Je(this,"filter",e,t,s=>s.map(n=>He(this,n)),arguments)},find(e,t){return Je(this,"find",e,t,s=>He(this,s),arguments)},findIndex(e,t){return Je(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Je(this,"findLast",e,t,s=>He(this,s),arguments)},findLastIndex(e,t){return Je(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Je(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ds(this,"includes",e)},indexOf(...e){return Ds(this,"indexOf",e)},join(e){return yt(this).join(e)},lastIndexOf(...e){return Ds(this,"lastIndexOf",e)},map(e,t){return Je(this,"map",e,t,void 0,arguments)},pop(){return Rt(this,"pop")},push(...e){return Rt(this,"push",e)},reduce(e,...t){return En(this,"reduce",e,t)},reduceRight(e,...t){return En(this,"reduceRight",e,t)},shift(){return Rt(this,"shift")},some(e,t){return Je(this,"some",e,t,void 0,arguments)},splice(...e){return Rt(this,"splice",e)},toReversed(){return yt(this).toReversed()},toSorted(e){return yt(this).toSorted(e)},toSpliced(...e){return yt(this).toSpliced(...e)},unshift(...e){return Rt(this,"unshift",e)},values(){return Rs(this,"values",e=>He(this,e))}};function Rs(e,t,s){const n=Cs(e),o=n[t]();return n!==e&&!Me(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 Je(e,t,s,n,o,r){const i=Cs(e),l=i!==e&&!Me(e),c=i[t];if(c!==Or[t]){const p=c.apply(e,r);return l?Oe(p):p}let d=s;i!==e&&(l?d=function(p,g){return s.call(this,He(e,p),g,e)}:s.length>2&&(d=function(p,g){return s.call(this,p,g,e)}));const a=c.call(i,d,n);return l&&o?o(a):a}function En(e,t,s,n){const o=Cs(e),r=o!==e&&!Me(e);let i=s,l=!1;o!==e&&(r?(l=n.length===0,i=function(d,a,p){return l&&(l=!1,d=He(e,d)),s.call(this,d,He(e,a),p,e)}):s.length>3&&(i=function(d,a,p){return s.call(this,d,a,p,e)}));const c=o[t](i,...n);return l?He(e,c):c}function Ds(e,t,s){const n=J(e);ge(n,"iterate",zt);const o=n[t](...s);return(o===-1||o===!1)&&fn(s[0])?(s[0]=J(s[0]),n[t](...s)):o}function Rt(e,t,s=[]){et(),nn();const n=J(e)[t].apply(e,s);return on(),tt(),n}const Ir=Xs("__proto__,__v_isRef,__isVue"),Co=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(We));function Rr(e){We(e)||(e=String(e));const t=J(this);return ge(t,"has",e),t.hasOwnProperty(e)}class To{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:Ao:r?Eo:ko).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=H(t);if(!o){let c;if(i&&(c=Pr[s]))return c;if(s==="hasOwnProperty")return Rr}const l=Reflect.get(t,s,ve(t)?t:n);if((We(s)?Co.has(s):Ir(s))||(o||ge(t,"get",s),r))return l;if(ve(l)){const c=i&&tn(s)?l:l.value;return o&&Z(c)?Ws(c):c}return Z(l)?o?Ws(l):cn(l):l}}class $o extends To{constructor(t=!1){super(!1,t)}set(t,s,n,o){let r=t[s];const i=H(t)&&tn(s);if(!this._isShallow){const d=st(r);if(!Me(n)&&!st(n)&&(r=J(r),n=J(n)),!i&&ve(r)&&!ve(n))return d||(r.value=n),!0}const l=i?Number(s)<t.length:G(t,s),c=Reflect.set(t,s,n,ve(t)?t:o);return t===J(o)&&(l?Ue(n,r)&&Ze(t,"set",s,n):Ze(t,"add",s,n)),c}deleteProperty(t,s){const n=G(t,s);t[s];const o=Reflect.deleteProperty(t,s);return o&&n&&Ze(t,"delete",s,void 0),o}has(t,s){const n=Reflect.has(t,s);return(!We(s)||!Co.has(s))&&ge(t,"has",s),n}ownKeys(t){return ge(t,"iterate",H(t)?"length":gt),Reflect.ownKeys(t)}}class Dr extends To{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Lr=new $o,jr=new Dr,Nr=new $o(!0);const Ks=e=>e,ns=e=>Reflect.getPrototypeOf(e);function Fr(e,t,s){return function(...n){const o=this.__v_raw,r=J(o),i=wt(r),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,d=o[e](...n),a=s?Ks:t?Tt:Oe;return!t&&ge(r,"iterate",c?Bs:gt),me(Object.create(d),{next(){const{value:p,done:g}=d.next();return g?{value:p,done:g}:{value:l?[a(p[0]),a(p[1])]:a(p),done:g}}})}}function os(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=J(r),l=J(o);e||(Ue(o,l)&&ge(i,"get",o),ge(i,"get",l));const{has:c}=ns(i),d=t?Ks:e?Tt:Oe;if(c.call(i,o))return d(r.get(o));if(c.call(i,l))return d(r.get(l));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&ge(J(o),"iterate",gt),o.size},has(o){const r=this.__v_raw,i=J(r),l=J(o);return e||(Ue(o,l)&&ge(i,"has",o),ge(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=J(l),d=t?Ks:e?Tt:Oe;return!e&&ge(c,"iterate",gt),l.forEach((a,p)=>o.call(r,d(a),d(p),i))}};return me(s,e?{add:os("add"),set:os("set"),delete:os("delete"),clear:os("clear")}:{add(o){const r=J(this),i=ns(r),l=J(o),c=!t&&!Me(o)&&!st(o)?l:o;return i.has.call(r,c)||Ue(o,c)&&i.has.call(r,o)||Ue(l,c)&&i.has.call(r,l)||(r.add(c),Ze(r,"add",c,c)),this},set(o,r){!t&&!Me(r)&&!st(r)&&(r=J(r));const i=J(this),{has:l,get:c}=ns(i);let d=l.call(i,o);d||(o=J(o),d=l.call(i,o));const a=c.call(i,o);return i.set(o,r),d?Ue(r,a)&&Ze(i,"set",o,r):Ze(i,"add",o,r),this},delete(o){const r=J(this),{has:i,get:l}=ns(r);let c=i.call(r,o);c||(o=J(o),c=i.call(r,o)),l&&l.call(r,o);const d=r.delete(o);return c&&Ze(r,"delete",o,void 0),d},clear(){const o=J(this),r=o.size!==0,i=o.clear();return r&&Ze(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Fr(o,e,t)}),s}function an(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(G(s,o)&&o in n?s:n,o,r)}const Vr={get:an(!1,!1)},Ur={get:an(!1,!0)},Br={get:an(!0,!1)};const ko=new WeakMap,Eo=new WeakMap,Ao=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 cn(e){return st(e)?e:un(e,!1,Lr,Vr,ko)}function qr(e){return un(e,!1,Nr,Ur,Eo)}function Ws(e){return un(e,!0,jr,Br,Ao)}function un(e,t,s,n,o){if(!Z(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 xt(e){return st(e)?xt(e.__v_raw):!!(e&&e.__v_isReactive)}function st(e){return!!(e&&e.__v_isReadonly)}function Me(e){return!!(e&&e.__v_isShallow)}function fn(e){return e?!!e.__v_raw:!1}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function Jr(e){return!G(e,"__v_skip")&&Object.isExtensible(e)&&fo(e,"__v_skip",!0),e}const Oe=e=>Z(e)?cn(e):e,Tt=e=>Z(e)?Ws(e):e;function ve(e){return e?e.__v_isRef===!0:!1}function L(e){return Gr(e,!1)}function Gr(e,t){return ve(e)?e:new Yr(e,t)}class Yr{constructor(t,s){this.dep=new ln,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:J(t),this._value=s?t:Oe(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Me(t)||st(t);t=n?t:J(t),Ue(t,s)&&(this._rawValue=t,this._value=n?t:Oe(t),this.dep.trigger())}}function Zr(e){return ve(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 ve(o)&&!ve(s)?(o.value=s,!0):Reflect.set(e,t,s,n)}};function Mo(e){return xt(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 ln(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&te!==this)return vo(this,!0),!0}get value(){const t=this.dep.track();return _o(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 rs={},ds=new WeakMap;let ht;function ti(e,t=!1,s=ht){if(s){let n=ds.get(s);n||ds.set(s,n=[]),n.push(e)}}function si(e,t,s=X){const{immediate:n,deep:o,once:r,scheduler:i,augmentJob:l,call:c}=s,d=D=>o?D:Me(D)||o===!1||o===0?Qe(D,1):Qe(D);let a,p,g,C,U=!1,I=!1;if(ve(e)?(p=()=>e.value,U=Me(e)):xt(e)?(p=()=>d(e),U=!0):H(e)?(I=!0,U=e.some(D=>xt(D)||Me(D)),p=()=>e.map(D=>{if(ve(D))return D.value;if(xt(D))return d(D);if(K(D))return c?c(D,2):D()})):K(e)?t?p=c?()=>c(e,2):e:p=()=>{if(g){et();try{g()}finally{tt()}}const D=ht;ht=a;try{return c?c(e,3,[C]):e(C)}finally{ht=D}}:p=Be,t&&o){const D=p,j=o===!0?1/0:o;p=()=>Qe(D(),j)}const W=Er(),P=()=>{a.stop(),W&&W.active&&en(W.effects,a)};if(r&&t){const D=t;t=(...j)=>{D(...j),P()}}let V=I?new Array(e.length).fill(rs):rs;const z=D=>{if(!(!(a.flags&1)||!a.dirty&&!D))if(t){const j=a.run();if(o||U||(I?j.some((M,N)=>Ue(M,V[N])):Ue(j,V))){g&&g();const M=ht;ht=a;try{const N=[j,V===rs?void 0:I&&V[0]===rs?[]:V,C];V=j,c?c(t,3,N):t(...N)}finally{ht=M}}}else a.run()};return l&&l(z),a=new go(p),a.scheduler=i?()=>i(z,!1):z,C=D=>ti(D,!1,a),g=a.onStop=()=>{const D=ds.get(a);if(D){if(c)c(D,4);else for(const j of D)j();ds.delete(a)}},t?n?z(!0):V=a.run():i?i(z.bind(null,!0),!0):a.run(),P.pause=a.pause.bind(a),P.resume=a.resume.bind(a),P.stop=P,P}function Qe(e,t=1/0,s){if(t<=0||!Z(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ve(e))Qe(e.value,t,s);else if(H(e))for(let n=0;n<e.length;n++)Qe(e[n],t,s);else if(At(e)||wt(e))e.forEach(n=>{Qe(n,t,s)});else if(uo(e)){for(const n in e)Qe(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Qe(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 Xt(e,t,s,n){try{return n?e(...n):e()}catch(o){Ts(o,t,s)}}function ze(e,t,s,n){if(K(e)){const o=Xt(e,t,s,n);return o&&lo(o)&&o.catch(r=>{Ts(r,t,s)}),o}if(F(e)){const o=[];for(let r=0;r<e.length;r++)o.push(ze(e[r],t,s,n));return o}}function Ts(e,t,s,n=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||X;if(t){let l=t.parent;const a=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,a,h)===!1)return}l=l.parent}if(r){et(),Xt(r,null,10,[e,a,h]),tt();return}}ni(e,s,o,n,i)}function ni(e,t,s,n=!0,o=!1){if(o)throw e;console.error(e)}const ye=[];let je=-1;const St=[];let it=null,yt=0;const Ao=Promise.resolve();let ps=null;function Mo(e){const t=ps||Ao;return e?t.then(this?e.bind(this):e):t}function oi(e){let t=je+1,s=ye.length;for(;t<s;){const n=t+s>>>1,o=ye[n],r=qt(o);r<e||r===e&&o.flags&2?t=n+1:s=n}return t}function dn(e){if(!(e.flags&1)){const t=qt(e),s=ye[ye.length-1];!s||!(e.flags&2)&&t>=qt(s)?ye.push(e):ye.splice(oi(t),0,e),e.flags|=1,Oo()}}function Oo(){ps||(ps=Ao.then(Ro))}function ri(e){F(e)?St.push(...e):it&&e.id===-1?it.splice(yt+1,0,e):e.flags&1||(St.push(e),e.flags|=1),Oo()}function kn(e,t,s=je+1){for(;s<ye.length;s++){const n=ye[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ye.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Io(e){if(St.length){const t=[...new Set(St)].sort((s,n)=>qt(s)-qt(n));if(St.length=0,it){it.push(...t);return}for(it=t,yt=0;yt<it.length;yt++){const s=it[yt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}it=null,yt=0}}const qt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ro(e){try{for(je=0;je<ye.length;je++){const t=ye[je];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;je<ye.length;je++){const t=ye[je];t&&(t.flags&=-2)}je=-1,ye.length=0,Io(),ps=null,(ye.length||St.length)&&Ro()}}let $e=null,Do=null;function hs(e){const t=$e;return $e=e,Do=e&&e.type.__scopeId||null,t}function ii(e,t=$e,s){if(!t||e._n)return e;const n=(...o)=>{n._d&&Hn(-1);const r=hs(t);let i;try{i=e(...o)}finally{hs(r),n._d&&Hn(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function me(e,t){if($e===null)return e;const s=Ps($e),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,l,a=X]=t[o];r&&(K(r)&&(r={mounted:r,updated:r}),r.deep&&Qe(i),n.push({dir:r,instance:s,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function ut(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&&(et(),ze(a,s,8,[e.el,l,e,t]),tt())}}function li(e,t){if(ge){let s=ge.provides;const n=ge.parent&&ge.parent.provides;n===s&&(s=ge.provides=Object.create(n)),s[e]=t}}function as(e,t,s=!1){const n=ll();if(n||Ct){let o=Ct?Ct._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=()=>as(ai);function Ls(e,t,s){return Lo(e,t,s)}function Lo(e,t,s=X){const{immediate:n,deep:o,flush:r,once:i}=s,l=pe({},s),a=t&&n||!t&&r!=="post";let h;if(Gt){if(r==="sync"){const C=ci();h=C.__watcherHandles||(C.__watcherHandles=[])}else if(!a){const C=()=>{};return C.stop=Be,C.resume=Be,C.pause=Be,C}}const u=ge;l.call=(C,U,O)=>ze(C,u,U,O);let p=!1;r==="post"?l.scheduler=C=>{_e(C,u&&u.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(C,U)=>{U?C():dn(C)}),l.augmentJob=C=>{t&&(C.flags|=4),p&&(C.flags|=2,u&&(C.id=u.uid,C.i=u))};const g=si(e,t,l);return Gt&&(h?h.push(g):a&&g()),g}function ui(e,t,s){const n=this.proxy,o=re(e)?e.includes(".")?No(n,e):()=>n[e]:e.bind(n,n);let r;K(t)?r=t:(r=t.handler,s=t);const i=es(this),l=Lo(o,r.bind(n),s);return i(),l}function No(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 pn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,pn(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 mt(e,t){return K(e)?pe({name:e.name},t,{setup:e}):e}function jo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Pn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ms=new WeakMap;function Vt(e,t,s,n,o=!1){if(F(e)){e.forEach((O,W)=>Vt(O,t&&(F(t)?t[W]:t),s,n,o));return}if(Ut(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Vt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?Ps(n.component):n.el,i=o?null:r,{i:l,r:a}=e,h=t&&t.r,u=l.refs===X?l.refs={}:l.refs,p=l.setupState,g=J(p),C=p===X?io:O=>Pn(u,O)?!1:G(g,O),U=(O,W)=>!(W&&Pn(u,W));if(h!=null&&h!==a){if(An(t),re(h))u[h]=null,C(h)&&(p[h]=null);else if(xe(h)){const O=t;U(h,O.k)&&(h.value=null),O.k&&(u[O.k]=null)}}if(K(a))Xt(a,l,12,[i,u]);else{const O=re(a),W=xe(a);if(O||W){const M=()=>{if(e.f){const H=O?C(a)?p[a]:u[a]:U()||!e.k?a.value:u[e.k];if(o)F(H)&&en(H,r);else if(F(H))H.includes(r)||H.push(r);else if(O)u[a]=[r],C(a)&&(p[a]=u[a]);else{const z=[r];U(a,e.k)&&(a.value=z),e.k&&(u[e.k]=z)}}else O?(u[a]=i,C(a)&&(p[a]=i)):W&&(U(a,e.k)&&(a.value=i),e.k&&(u[e.k]=i))};if(i){const H=()=>{M(),ms.delete(e)};H.id=-1,ms.set(e,H),_e(H,s)}else An(e),M()}}}function An(e){const t=ms.get(e);t&&(t.flags|=8,ms.delete(e))}Ss().requestIdleCallback;Ss().cancelIdleCallback;const Ut=e=>!!e.type.__asyncLoader,Fo=e=>e.type.__isKeepAlive;function hi(e,t){Ho(e,"a",t)}function mi(e,t){Ho(e,"da",t)}function Ho(e,t,s=ge){const n=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if($s(t,n,s),s){let o=s.parent;for(;o&&o.parent;)Fo(o.parent.vnode)&&gi(n,t,s,o),o=o.parent}}function gi(e,t,s,n){const o=$s(t,e,n,!0);hn(()=>{en(n[t],o)},s)}function $s(e,t,s=ge,n=!1){if(s){const o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{et();const l=es(s),a=ze(t,s,e,i);return l(),tt(),a});return n?o.unshift(r):o.push(r),r}}const ot=e=>(t,s=ge)=>{(!Gt||e==="sp")&&$s(e,(...n)=>t(...n),s)},xi=ot("bm"),gt=ot("m"),vi=ot("bu"),yi=ot("u"),bi=ot("bum"),hn=ot("um"),_i=ot("sp"),wi=ot("rtg"),Si=ot("rtc");function Ci(e,t=ge){$s("ec",e,t)}const Ti="components",Vo=Symbol.for("v-ndc");function $i(e){return re(e)?Ei(Ti,e,!1)||e:e||Vo}function Ei(e,t,s=!0,n=!1){const o=$e||ge;if(o){const r=o.type;{const l=dl(r,!1);if(l&&(l===t||l===be(t)||l===_s(be(t))))return r}const i=Mn(o[e]||r[e],t)||Mn(o.appContext[e],t);return!i&&n?r:i}}function Mn(e,t){return e&&(e[t]||e[be(t)]||e[_s(be(t))])}function nt(e,t,s,n){let o;const r=s,i=F(e);if(i||re(e)){const l=i&&ht(e);let a=!1,h=!1;l&&(a=!Pe(e),h=st(e),e=Cs(e)),o=new Array(e.length);for(let u=0,p=e.length;u<p;u++)o[u]=t(a?h?Tt(Oe(e[u])):Oe(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(Z(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,h=l.length;a<h;a++){const u=l[a];o[a]=t(e[u],u,a,r)}}else o=[];return o}const zs=e=>e?ur(e)?Ps(e):zs(e.parent):null,Bt=pe(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=>Bo(e),$forceUpdate:e=>e.f||(e.f=()=>{dn(e.update)}),$nextTick:e=>e.n||(e.n=Mo.bind(e.proxy)),$watch:e=>ui.bind(e)}),Ns=(e,t)=>e!==X&&!e.__isScriptSetup&&G(e,t),ki={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 g=i[t];if(g!==void 0)switch(g){case 1:return n[t];case 2:return o[t];case 4:return s[t];case 3:return r[t]}else{if(Ns(n,t))return i[t]=1,n[t];if(o!==X&&G(o,t))return i[t]=2,o[t];if(G(r,t))return i[t]=3,r[t];if(s!==X&&G(s,t))return i[t]=4,s[t];qs&&(i[t]=0)}}const h=Bt[t];let u,p;if(h)return t==="$attrs"&&he(e.attrs,"get",""),h(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(s!==X&&G(s,t))return i[t]=4,s[t];if(p=a.config.globalProperties,G(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:o,ctx:r}=e;return Ns(o,t)?(o[t]=s,!0):n!==X&&G(n,t)?(n[t]=s,!0):G(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!==X&&l[0]!=="$"&&G(e,l)||Ns(t,l)||G(r,l)||G(n,l)||G(Bt,l)||G(o.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:G(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function On(e){return F(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let qs=!0;function Pi(e){const t=Bo(e),s=e.proxy,n=e.ctx;qs=!1,t.beforeCreate&&In(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:a,inject:h,created:u,beforeMount:p,mounted:g,beforeUpdate:C,updated:U,activated:O,deactivated:W,beforeDestroy:M,beforeUnmount:H,destroyed:z,unmounted:R,render:D,renderTracked:A,renderTriggered:L,errorCaptured:ne,serverPrefetch:Y,expose:ae,inheritAttrs:ke,components:qe,directives:Ce,filters:xt}=t;if(h&&Ai(h,n,null),i)for(const se in i){const $=i[se];K($)&&(n[se]=$.bind(s))}if(o){const se=o.call(s,s);Z(se)&&(e.data=cn(se))}if(qs=!0,r)for(const se in r){const $=r[se],S=K($)?$.bind(s,s):K($.get)?$.get.bind(s,s):Be,oe=!K($)&&K($.set)?$.set.bind(s):Be,rt=Et({get:S,set:oe});Object.defineProperty(n,se,{enumerable:!0,configurable:!0,get:()=>rt.value,set:Ie=>rt.value=Ie})}if(l)for(const se in l)Uo(l[se],n,s,se);if(a){const se=K(a)?a.call(s):a;Reflect.ownKeys(se).forEach($=>{li($,se[$])})}u&&In(u,e,"c");function ue(se,$){F($)?$.forEach(S=>se(S.bind(s))):$&&se($.bind(s))}if(ue(xi,p),ue(gt,g),ue(vi,C),ue(yi,U),ue(hi,O),ue(mi,W),ue(Ci,ne),ue(Si,A),ue(wi,L),ue(bi,H),ue(hn,R),ue(_i,Y),F(ae))if(ae.length){const se=e.exposed||(e.exposed={});ae.forEach($=>{Object.defineProperty(se,$,{get:()=>s[$],set:S=>s[$]=S,enumerable:!0})})}else e.exposed||(e.exposed={});D&&e.render===Be&&(e.render=D),ke!=null&&(e.inheritAttrs=ke),qe&&(e.components=qe),Ce&&(e.directives=Ce),Y&&jo(e)}function Ai(e,t,s=Be){F(e)&&(e=Js(e));for(const n in e){const o=e[n];let r;Z(o)?"default"in o?r=as(o.from||n,o.default,!0):r=as(o.from||n):r=as(o),xe(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function In(e,t,s){ze(F(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Uo(e,t,s,n){let o=n.includes(".")?No(s,n):()=>s[n];if(re(e)){const r=t[e];K(r)&&Ls(o,r)}else if(K(e))Ls(o,e.bind(s));else if(Z(e))if(F(e))e.forEach(r=>Uo(r,t,s,n));else{const r=K(e.handler)?e.handler.bind(s):t[e.handler];K(r)&&Ls(o,r,e)}}function Bo(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(h=>gs(a,h,i,!0)),gs(a,t,i)),Z(t)&&r.set(t,a),a}function gs(e,t,s,n=!1){const{mixins:o,extends:r}=t;r&&gs(e,r,s,!0),o&&o.forEach(i=>gs(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:Rn,props:Dn,emits:Dn,methods:Nt,computed:Nt,beforeCreate:ve,created:ve,beforeMount:ve,mounted:ve,beforeUpdate:ve,updated:ve,beforeDestroy:ve,beforeUnmount:ve,destroyed:ve,unmounted:ve,activated:ve,deactivated:ve,errorCaptured:ve,serverPrefetch:ve,components:Nt,directives:Nt,watch:Ii,provide:Rn,inject:Oi};function Rn(e,t){return t?e?function(){return pe(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Oi(e,t){return Nt(Js(e),Js(t))}function Js(e){if(F(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function ve(e,t){return e?[...new Set([].concat(e,t))]:t}function Nt(e,t){return e?pe(Object.create(null),e,t):t}function Dn(e,t){return e?F(e)&&F(t)?[...new Set([...e,...t])]:pe(Object.create(null),On(e),On(t??{})):t}function Ii(e,t){if(!e)return t;if(!t)return e;const s=pe(Object.create(null),e);for(const n in t)s[n]=ve(e[n],t[n]);return s}function Ko(){return{app:null,config:{isNativeTag:io,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=pe({},n)),o!=null&&!Z(o)&&(o=null);const r=Ko(),i=new WeakSet,l=[];let a=!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,g){if(!a){const C=h._ceVNode||Ke(n,o);return C.appContext=r,g===!0?g="svg":g===!1&&(g=void 0),e(C,u,g),a=!0,h._container=u,u.__vue_app__=h,Ps(C.component)}},onUnmount(u){l.push(u)},unmount(){a&&(ze(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=Ct;Ct=h;try{return u()}finally{Ct=p}}};return h}}let Ct=null;const Li=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${be(t)}Modifiers`]||e[`${ct(t)}Modifiers`];function Ni(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||X;let o=s;const r=t.startsWith("update:"),i=r&&Li(n,t.slice(7));i&&(i.trim&&(o=s.map(u=>re(u)?u.trim():u)),i.number&&(o=s.map(ws)));let l,a=n[l=Ms(t)]||n[l=Ms(be(t))];!a&&r&&(a=n[l=Ms(ct(t))]),a&&ze(a,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,ze(h,e,6,o)}}const ji=new WeakMap;function Wo(e,t,s=!1){const n=s?ji: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=h=>{const u=Wo(h,t,!0);u&&(l=!0,pe(i,u))};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(Z(e)&&n.set(e,null),null):(F(r)?r.forEach(a=>i[a]=null):pe(i,r),Z(e)&&n.set(e,i),i)}function Es(e,t){return!e||!vs(t)?!1:(t=t.slice(2).replace(/Once$/,""),G(e,t[0].toLowerCase()+t.slice(1))||G(e,ct(t))||G(e,t))}function Ln(e){const{type:t,vnode:s,proxy:n,withProxy:o,propsOptions:[r],slots:i,attrs:l,emit:a,render:h,renderCache:u,props:p,data:g,setupState:C,ctx:U,inheritAttrs:O}=e,W=hs(e);let M,H;try{if(s.shapeFlag&4){const R=o||n,D=R;M=Ve(h.call(D,R,u,p,C,g,U)),H=l}else{const R=t;M=Ve(R.length>1?R(p,{attrs:l,slots:i,emit:a}):R(p,null)),H=t.props?l:Fi(l)}}catch(R){Kt.length=0,Ts(R,e,1),M=Ke(at)}let z=M;if(H&&O!==!1){const R=Object.keys(H),{shapeFlag:D}=z;R.length&&D&7&&(r&&R.some(ys)&&(H=Hi(H,r)),z=$t(z,H,!1,!0))}return s.dirs&&(z=$t(z,null,!1,!0),z.dirs=z.dirs?z.dirs.concat(s.dirs):s.dirs),s.transition&&pn(z,s.transition),M=z,hs(W),M}const Fi=e=>{let t;for(const s in e)(s==="class"||s==="style"||vs(s))&&((t||(t={}))[s]=e[s]);return t},Hi=(e,t)=>{const s={};for(const n in e)(!ys(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,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&a>=0){if(a&1024)return!0;if(a&16)return n?Nn(n,i,h):!!i;if(a&8){const u=t.dynamicProps;for(let p=0;p<u.length;p++){const g=u[p];if(zo(i,n,g)&&!Es(h,g))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:n===i?!1:n?i?Nn(n,i,h):!0:!!i;return!1}function Nn(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(zo(t,e,r)&&!Es(s,r))return!0}return!1}function zo(e,t,s){const n=e[s],o=t[s];return s==="style"&&Z(n)&&Z(o)?!At(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 qo={},Jo=()=>Object.create(qo),Go=e=>Object.getPrototypeOf(e)===qo;function Bi(e,t,s,n=!1){const o={},r=Jo();e.propsDefaults=Object.create(null),Yo(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=J(o),[a]=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 g=u[p];if(Es(e.emitsOptions,g))continue;const C=t[g];if(a)if(G(r,g))C!==r[g]&&(r[g]=C,h=!0);else{const U=be(g);o[U]=Gs(a,l,U,C,e,!1)}else C!==r[g]&&(r[g]=C,h=!0)}}}else{Yo(e,t,o,r)&&(h=!0);let u;for(const p in l)(!t||!G(t,p)&&((u=ct(p))===p||!G(t,u)))&&(a?s&&(s[p]!==void 0||s[u]!==void 0)&&(o[p]=Gs(a,l,p,void 0,e,!0)):delete o[p]);if(r!==l)for(const p in r)(!t||!G(t,p))&&(delete r[p],h=!0)}h&&Ze(e.attrs,"set","")}function Yo(e,t,s,n){const[o,r]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(jt(a))continue;const h=t[a];let u;o&&G(o,u=be(a))?!r||!r.includes(u)?s[u]=h:(l||(l={}))[u]=h:Es(e.emitsOptions,a)||(!(a in n)||h!==n[a])&&(n[a]=h,i=!0)}if(r){const a=J(s),h=l||X;for(let u=0;u<r.length;u++){const p=r[u];s[p]=Gs(o,a,p,h[p],e,!G(h,p))}}return i}function Gs(e,t,s,n,o,r){const i=e[s];if(i!=null){const l=G(i,"default");if(l&&n===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&K(a)){const{propsDefaults:h}=o;if(s in h)n=h[s];else{const u=es(o);n=h[s]=a.call(null,t),u()}}else n=a;o.ce&&o.ce._setProp(s,n)}i[0]&&(r&&!l?n=!1:i[1]&&(n===""||n===ct(s))&&(n=!0))}return n}const Wi=new WeakMap;function Zo(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 u=p=>{a=!0;const[g,C]=Zo(p,t,!0);pe(i,g),C&&l.push(...C)};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!a)return Z(e)&&n.set(e,_t),_t;if(F(r))for(let u=0;u<r.length;u++){const p=be(r[u]);jn(p)&&(i[p]=X)}else if(r)for(const u in r){const p=be(u);if(jn(p)){const g=r[u],C=i[p]=F(g)||K(g)?{type:g}:pe({},g),U=C.type;let O=!1,W=!0;if(F(U))for(let M=0;M<U.length;++M){const H=U[M],z=K(H)&&H.name;if(z==="Boolean"){O=!0;break}else z==="String"&&(W=!1)}else O=K(U)&&U.name==="Boolean";C[0]=O,C[1]=W,(O||G(C,"default"))&&l.push(p)}}const h=[i,l];return Z(e)&&n.set(e,h),h}function jn(e){return e[0]!=="$"&&!jt(e)}const mn=e=>e==="_"||e==="_ctx"||e==="$stable",gn=e=>F(e)?e.map(Ve):[Ve(e)],zi=(e,t,s)=>{if(t._n)return t;const n=ii((...o)=>gn(t(...o)),s);return n._c=!1,n},Qo=(e,t,s)=>{const n=e._ctx;for(const o in e){if(mn(o))continue;const r=e[o];if(K(r))t[o]=zi(o,r,n);else if(r!=null){const i=gn(r);t[o]=()=>i}}},Xo=(e,t)=>{const s=gn(t);e.slots.default=()=>s},er=(e,t,s)=>{for(const n in t)(s||!mn(n))&&(e[n]=t[n])},qi=(e,t,s)=>{const n=e.slots=Jo();if(e.vnode.shapeFlag&32){const o=t._;o?(er(n,t,s),s&&uo(n,"_",o,!0)):Qo(t,n)}else t&&Xo(e,t)},Ji=(e,t,s)=>{const{vnode:n,slots:o}=e;let r=!0,i=X;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:er(o,t,s):(r=!t.$stable,Qo(t,o)),i=t}else t&&(Xo(e,t),i={default:1});if(r)for(const l in o)!mn(l)&&i[l]==null&&delete o[l]},_e=Xi;function Gi(e){return Yi(e)}function Yi(e,t){const s=Ss();s.__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:i,createText:l,createComment:a,setText:h,setElementText:u,parentNode:p,nextSibling:g,setScopeId:C=Be,insertStaticContent:U}=e,O=(c,f,m,b=null,x=null,v=null,T=void 0,w=null,_=!!f.dynamicChildren)=>{if(c===f)return;c&&!Dt(c,f)&&(b=ss(c),Ie(c,x,v,!0),c=null),f.patchFlag===-2&&(_=!1,f.dynamicChildren=null);const{type:y,ref:N,shapeFlag:E}=f;switch(y){case ks:W(c,f,m,b);break;case at:M(c,f,m,b);break;case cs:c==null&&H(f,m,b,T);break;case le:qe(c,f,m,b,x,v,T,w,_);break;default:E&1?D(c,f,m,b,x,v,T,w,_):E&6?Ce(c,f,m,b,x,v,T,w,_):(E&64||E&128)&&y.process(c,f,m,b,x,v,T,w,_,Ot)}N!=null&&x?Vt(N,c&&c.ref,v,f||c,!f):N==null&&c&&c.ref!=null&&Vt(c.ref,null,v,c,!0)},W=(c,f,m,b)=>{if(c==null)n(f.el=l(f.children),m,b);else{const x=f.el=c.el;f.children!==c.children&&h(x,f.children)}},M=(c,f,m,b)=>{c==null?n(f.el=a(f.children||""),m,b):f.el=c.el},H=(c,f,m,b)=>{[c.el,c.anchor]=U(c.children,f,m,b,c.el,c.anchor)},z=({el:c,anchor:f},m,b)=>{let x;for(;c&&c!==f;)x=g(c),n(c,m,b),c=x;n(f,m,b)},R=({el:c,anchor:f})=>{let m;for(;c&&c!==f;)m=g(c),o(c),c=m;o(f)},D=(c,f,m,b,x,v,T,w,_)=>{if(f.type==="svg"?T="svg":f.type==="math"&&(T="mathml"),c==null)A(f,m,b,x,v,T,w,_);else{const y=c.el&&c.el._isVueCE?c.el:null;try{y&&y._beginPatch(),Y(c,f,x,v,T,w,_)}finally{y&&y._endPatch()}}},A=(c,f,m,b,x,v,T,w)=>{let _,y;const{props:N,shapeFlag:E,transition:I,dirs:B}=c;if(_=c.el=i(c.type,v,N&&N.is,N),E&8?u(_,c.children):E&16&&ne(c.children,_,null,b,x,js(c,v),T,w),B&&ut(c,null,b,"created"),L(_,c,c.scopeId,T,b),N){for(const Q in N)Q!=="value"&&!jt(Q)&&r(_,Q,null,N[Q],v,b);"value"in N&&r(_,"value",null,N.value,v),(y=N.onVnodeBeforeMount)&&Ne(y,b,c)}B&&ut(c,null,b,"beforeMount");const q=Zi(x,I);q&&I.beforeEnter(_),n(_,f,m),((y=N&&N.onVnodeMounted)||q||B)&&_e(()=>{try{y&&Ne(y,b,c),q&&I.enter(_),B&&ut(c,null,b,"mounted")}finally{}},x)},L=(c,f,m,b,x)=>{if(m&&C(c,m),b)for(let v=0;v<b.length;v++)C(c,b[v]);if(x){let v=x.subTree;if(f===v||or(v.type)&&(v.ssContent===f||v.ssFallback===f)){const T=x.vnode;L(c,T,T.scopeId,T.slotScopeIds,x.parent)}}},ne=(c,f,m,b,x,v,T,w,_=0)=>{for(let y=_;y<c.length;y++){const N=c[y]=w?Ye(c[y]):Ve(c[y]);O(null,N,f,m,b,x,v,T,w)}},Y=(c,f,m,b,x,v,T)=>{const w=f.el=c.el;let{patchFlag:_,dynamicChildren:y,dirs:N}=f;_|=c.patchFlag&16;const E=c.props||X,I=f.props||X;let B;if(m&&ft(m,!1),(B=I.onVnodeBeforeUpdate)&&Ne(B,m,f,c),N&&ut(f,c,m,"beforeUpdate"),m&&ft(m,!0),(E.innerHTML&&I.innerHTML==null||E.textContent&&I.textContent==null)&&u(w,""),y?ae(c.dynamicChildren,y,w,m,b,js(f,x),v):T||$(c,f,w,null,m,b,js(f,x),v,!1),_>0){if(_&16)ke(w,E,I,m,x);else if(_&2&&E.class!==I.class&&r(w,"class",null,I.class,x),_&4&&r(w,"style",E.style,I.style,x),_&8){const q=f.dynamicProps;for(let Q=0;Q<q.length;Q++){const ee=q[Q],ie=E[ee],fe=I[ee];(fe!==ie||ee==="value")&&r(w,ee,ie,fe,x,m)}}_&1&&c.children!==f.children&&u(w,f.children)}else!T&&y==null&&ke(w,E,I,m,x);((B=I.onVnodeUpdated)||N)&&_e(()=>{B&&Ne(B,m,f,c),N&&ut(f,c,m,"updated")},b)},ae=(c,f,m,b,x,v,T)=>{for(let w=0;w<f.length;w++){const _=c[w],y=f[w],N=_.el&&(_.type===le||!Dt(_,y)||_.shapeFlag&198)?p(_.el):m;O(_,y,N,null,b,x,v,T,!0)}},ke=(c,f,m,b,x)=>{if(f!==m){if(f!==X)for(const v in f)!jt(v)&&!(v in m)&&r(c,v,f[v],null,x,b);for(const v in m){if(jt(v))continue;const T=m[v],w=f[v];T!==w&&v!=="value"&&r(c,v,w,T,x,b)}"value"in m&&r(c,"value",f.value,m.value,x)}},qe=(c,f,m,b,x,v,T,w,_)=>{const y=f.el=c?c.el:l(""),N=f.anchor=c?c.anchor:l("");let{patchFlag:E,dynamicChildren:I,slotScopeIds:B}=f;B&&(w=w?w.concat(B):B),c==null?(n(y,m,b),n(N,m,b),ne(f.children||[],m,N,x,v,T,w,_)):E>0&&E&64&&I&&c.dynamicChildren&&c.dynamicChildren.length===I.length?(ae(c.dynamicChildren,I,m,x,v,T,w),(f.key!=null||x&&f===x.subTree)&&tr(c,f,!0)):$(c,f,m,N,x,v,T,w,_)},Ce=(c,f,m,b,x,v,T,w,_)=>{f.slotScopeIds=w,c==null?f.shapeFlag&512?x.ctx.activate(f,m,b,T,_):xt(f,m,b,x,v,T,_):ts(c,f,_)},xt=(c,f,m,b,x,v,T)=>{const w=c.component=il(c,b,x);if(Fo(c)&&(w.ctx.renderer=Ot),al(w,!1,T),w.asyncDep){if(x&&x.registerDep(w,ue,T),!c.el){const _=w.subTree=Ke(at);M(null,_,f,m),c.placeholder=_.el}}else ue(w,c,f,m,x,v,T)},ts=(c,f,m)=>{const b=f.component=c.component;if(Vi(c,f,m))if(b.asyncDep&&!b.asyncResolved){se(b,f,m);return}else b.next=f,b.update();else f.el=c.el,b.vnode=f},ue=(c,f,m,b,x,v,T)=>{const w=()=>{if(c.isMounted){let{next:E,bu:I,u:B,parent:q,vnode:Q}=c;{const De=sr(c);if(De){E&&(E.el=Q.el,se(c,E,T)),De.asyncDep.then(()=>{_e(()=>{c.isUnmounted||y()},x)});return}}let ee=E,ie;ft(c,!1),E?(E.el=Q.el,se(c,E,T)):E=Q,I&&ls(I),(ie=E.props&&E.props.onVnodeBeforeUpdate)&&Ne(ie,q,E,Q),ft(c,!0);const fe=Ln(c),Re=c.subTree;c.subTree=fe,O(Re,fe,p(Re.el),ss(Re),c,x,v),E.el=fe.el,ee===null&&Ui(c,fe.el),B&&_e(B,x),(ie=E.props&&E.props.onVnodeUpdated)&&_e(()=>Ne(ie,q,E,Q),x)}else{let E;const{el:I,props:B}=f,{bm:q,m:Q,parent:ee,root:ie,type:fe}=c,Re=Ut(f);ft(c,!1),q&&ls(q),!Re&&(E=B&&B.onVnodeBeforeMount)&&Ne(E,ee,f),ft(c,!0);{ie.ce&&ie.ce._hasShadowRoot()&&ie.ce._injectChildStyle(fe,c.parent?c.parent.type:void 0);const De=c.subTree=Ln(c);O(null,De,m,b,c,x,v),f.el=De.el}if(Q&&_e(Q,x),!Re&&(E=B&&B.onVnodeMounted)){const De=f;_e(()=>Ne(E,ee,De),x)}(f.shapeFlag&256||ee&&Ut(ee.vnode)&&ee.vnode.shapeFlag&256)&&c.a&&_e(c.a,x),c.isMounted=!0,f=m=b=null}};c.scope.on();const _=c.effect=new mo(w);c.scope.off();const y=c.update=_.run.bind(_),N=c.job=_.runIfDirty.bind(_);N.i=c,N.id=c.uid,_.scheduler=()=>dn(N),ft(c,!0),y()},se=(c,f,m)=>{f.component=c;const b=c.vnode.props;c.vnode=f,c.next=null,Ki(c,f.props,b,m),Ji(c,f.children,m),et(),kn(c),tt()},$=(c,f,m,b,x,v,T,w,_=!1)=>{const y=c&&c.children,N=c?c.shapeFlag:0,E=f.children,{patchFlag:I,shapeFlag:B}=f;if(I>0){if(I&128){oe(y,E,m,b,x,v,T,w,_);return}else if(I&256){S(y,E,m,b,x,v,T,w,_);return}}B&8?(N&16&&Mt(y,x,v),E!==y&&u(m,E)):N&16?B&16?oe(y,E,m,b,x,v,T,w,_):Mt(y,x,v,!0):(N&8&&u(m,""),B&16&&ne(E,m,b,x,v,T,w,_))},S=(c,f,m,b,x,v,T,w,_)=>{c=c||_t,f=f||_t;const y=c.length,N=f.length,E=Math.min(y,N);let I;for(I=0;I<E;I++){const B=f[I]=_?Ye(f[I]):Ve(f[I]);O(c[I],B,m,null,x,v,T,w,_)}y>N?Mt(c,x,v,!0,!1,E):ne(f,m,b,x,v,T,w,_,E)},oe=(c,f,m,b,x,v,T,w,_)=>{let y=0;const N=f.length;let E=c.length-1,I=N-1;for(;y<=E&&y<=I;){const B=c[y],q=f[y]=_?Ye(f[y]):Ve(f[y]);if(Dt(B,q))O(B,q,m,null,x,v,T,w,_);else break;y++}for(;y<=E&&y<=I;){const B=c[E],q=f[I]=_?Ye(f[I]):Ve(f[I]);if(Dt(B,q))O(B,q,m,null,x,v,T,w,_);else break;E--,I--}if(y>E){if(y<=I){const B=I+1,q=B<N?f[B].el:b;for(;y<=I;)O(null,f[y]=_?Ye(f[y]):Ve(f[y]),m,q,x,v,T,w,_),y++}}else if(y>I)for(;y<=E;)Ie(c[y],x,v,!0),y++;else{const B=y,q=y,Q=new Map;for(y=q;y<=I;y++){const Te=f[y]=_?Ye(f[y]):Ve(f[y]);Te.key!=null&&Q.set(Te.key,y)}let ee,ie=0;const fe=I-q+1;let Re=!1,De=0;const It=new Array(fe);for(y=0;y<fe;y++)It[y]=0;for(y=B;y<=E;y++){const Te=c[y];if(ie>=fe){Ie(Te,x,v,!0);continue}let Le;if(Te.key!=null)Le=Q.get(Te.key);else for(ee=q;ee<=I;ee++)if(It[ee-q]===0&&Dt(Te,f[ee])){Le=ee;break}Le===void 0?Ie(Te,x,v,!0):(It[Le-q]=y+1,Le>=De?De=Le:Re=!0,O(Te,f[Le],m,null,x,v,T,w,_),ie++)}const _n=Re?Qi(It):_t;for(ee=_n.length-1,y=fe-1;y>=0;y--){const Te=q+y,Le=f[Te],wn=f[Te+1],Sn=Te+1<N?wn.el||nr(wn):b;It[y]===0?O(null,Le,m,Sn,x,v,T,w,_):Re&&(ee<0||y!==_n[ee]?rt(Le,m,Sn,2):ee--)}}},rt=(c,f,m,b,x=null)=>{const{el:v,type:T,transition:w,children:_,shapeFlag:y}=c;if(y&6){rt(c.component.subTree,f,m,b);return}if(y&128){c.suspense.move(f,m,b);return}if(y&64){T.move(c,f,m,Ot);return}if(T===le){n(v,f,m);for(let E=0;E<_.length;E++)rt(_[E],f,m,b);n(c.anchor,f,m);return}if(T===cs){z(c,f,m);return}if(b!==2&&y&1&&w)if(b===0)w.beforeEnter(v),n(v,f,m),_e(()=>w.enter(v),x);else{const{leave:E,delayLeave:I,afterLeave:B}=w,q=()=>{c.ctx.isUnmounted?o(v):n(v,f,m)},Q=()=>{v._isLeaving&&v[pi](!0),E(v,()=>{q(),B&&B()})};I?I(v,q,Q):Q()}else n(v,f,m)},Ie=(c,f,m,b=!1,x=!1)=>{const{type:v,props:T,ref:w,children:_,dynamicChildren:y,shapeFlag:N,patchFlag:E,dirs:I,cacheIndex:B,memo:q}=c;if(E===-2&&(x=!1),w!=null&&(et(),Vt(w,null,m,c,!0),tt()),B!=null&&(f.renderCache[B]=void 0),N&256){f.ctx.deactivate(c);return}const Q=N&1&&I,ee=!Ut(c);let ie;if(ee&&(ie=T&&T.onVnodeBeforeUnmount)&&Ne(ie,f,c),N&6)mr(c.component,m,b);else{if(N&128){c.suspense.unmount(m,b);return}Q&&ut(c,null,f,"beforeUnmount"),N&64?c.type.remove(c,f,m,Ot,b):y&&!y.hasOnce&&(v!==le||E>0&&E&64)?Mt(y,f,m,!1,!0):(v===le&&E&384||!x&&N&16)&&Mt(_,f,m),b&&yn(c)}const fe=q!=null&&B==null;(ee&&(ie=T&&T.onVnodeUnmounted)||Q||fe)&&_e(()=>{ie&&Ne(ie,f,c),Q&&ut(c,null,f,"unmounted"),fe&&(c.el=null)},m)},yn=c=>{const{type:f,el:m,anchor:b,transition:x}=c;if(f===le){hr(m,b);return}if(f===cs){R(c);return}const v=()=>{o(m),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(c.shapeFlag&1&&x&&!x.persisted){const{leave:T,delayLeave:w}=x,_=()=>T(m,v);w?w(c.el,v,_):_()}else v()},hr=(c,f)=>{let m;for(;c!==f;)m=g(c),o(c),c=m;o(f)},mr=(c,f,m)=>{const{bum:b,scope:x,job:v,subTree:T,um:w,m:_,a:y}=c;Fn(_),Fn(y),b&&ls(b),x.stop(),v&&(v.flags|=8,Ie(T,c,f,m)),w&&_e(w,f),_e(()=>{c.isUnmounted=!0},f)},Mt=(c,f,m,b=!1,x=!1,v=0)=>{for(let T=v;T<c.length;T++)Ie(c[T],f,m,b,x)},ss=c=>{if(c.shapeFlag&6)return ss(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const f=g(c.anchor||c.el),m=f&&f[fi];return m?g(m):f};let As=!1;const bn=(c,f,m)=>{let b;c==null?f._vnode&&(Ie(f._vnode,null,null,!0),b=f._vnode.component):O(f._vnode||null,c,f,null,null,null,m),f._vnode=c,As||(As=!0,kn(b),Io(),As=!1)},Ot={p:O,um:Ie,m:rt,r:yn,mt:xt,mc:ne,pc:$,pbc:ae,n:ss,o:e};return{render:bn,hydrate:void 0,createApp:Di(bn)}}function js({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 ft({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 tr(e,t,s=!1){const n=e.children,o=t.children;if(F(n)&&F(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]=Ye(o[r]),l.el=i.el),!s&&l.patchFlag!==-2&&tr(i,l)),l.type===ks&&(l.patchFlag===-1&&(l=o[r]=Ye(l)),l.el=i.el),l.type===at&&!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 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 sr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:sr(t)}function Fn(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function nr(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?nr(t.subTree):null}const or=e=>e.__isSuspense;function Xi(e,t){t&&t.pendingBranch?F(e)?t.effects.push(...e):t.effects.push(e):ri(e)}const le=Symbol.for("v-fgt"),ks=Symbol.for("v-txt"),at=Symbol.for("v-cmt"),cs=Symbol.for("v-stc"),Kt=[];let Ee=null;function k(e=!1){Kt.push(Ee=e?null:[])}function el(){Kt.pop(),Ee=Kt[Kt.length-1]||null}let Jt=1;function Hn(e,t=!1){Jt+=e,e<0&&Ee&&t&&(Ee.hasOnce=!0)}function rr(e){return e.dynamicChildren=Jt>0?Ee||_t:null,el(),Jt>0&&Ee&&Ee.push(e),e}function P(e,t,s,n,o,r){return rr(d(e,t,s,n,o,r,!0))}function ir(e,t,s,n,o){return rr(Ke(e,t,s,n,o,!0))}function lr(e){return e?e.__v_isVNode===!0:!1}function Dt(e,t){return e.type===t.type&&e.key===t.key}const ar=({key:e})=>e??null,us=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?re(e)||xe(e)||K(e)?{i:$e,r:e,k:t,f:!!s}:e:null);function d(e,t=null,s=null,n=0,o=null,r=e===le?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ar(t),ref:t&&us(t),scopeId:Do,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:$e};return l?(xn(a,s),r&128&&e.normalize(a)):s&&(a.shapeFlag|=re(s)?8:16),Jt>0&&!i&&Ee&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&Ee.push(a),a}const Ke=tl;function tl(e,t=null,s=null,n=0,o=null,r=!1){if((!e||e===Vo)&&(e=at),lr(e)){const l=$t(e,t,!0);return s&&xn(l,s),Jt>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&&!re(l)&&(t.class=Se(l)),Z(a)&&(fn(a)&&!F(a)&&(a=pe({},a)),t.style=Qt(a))}const i=re(e)?1:or(e)?128:di(e)?64:Z(e)?4:K(e)?2:0;return d(e,t,s,n,o,i,r,!0)}function sl(e){return e?fn(e)||Go(e)?pe({},e):e:null}function $t(e,t,s=!1,n=!1){const{props:o,ref:r,patchFlag:i,children:l,transition:a}=e,h=t?nl(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&ar(h),ref:t&&t.ref?s&&r?F(r)?r.concat(us(t)):[r,us(t)]:us(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!==le?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&&$t(e.ssContent),ssFallback:e.ssFallback&&$t(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&n&&pn(u,a.clone(u)),u}function cr(e=" ",t=0){return Ke(ks,null,e,t)}function Fe(e,t){const s=Ke(cs,null,e);return s.staticCount=t,s}function de(e="",t=!1){return t?(k(),ir(at,null,e)):Ke(at,null,e)}function Ve(e){return e==null||typeof e=="boolean"?Ke(at):F(e)?Ke(le,null,e.slice()):lr(e)?Ye(e):Ke(ks,null,String(e))}function Ye(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$t(e)}function xn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(F(t))s=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),xn(e,o()),o._c&&(o._d=!0));return}else{s=32;const o=t._;!o&&!Go(t)?t._ctx=$e:o===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:$e},s=32):(t=String(t),n&64?(s=16,t=[cr(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=Se([t.class,n.class]));else if(o==="style")t.style=Qt([t.style,n.style]);else if(vs(o)){const r=t[o],i=n[o];i&&r!==i&&!(F(r)&&r.includes(i))?t[o]=r?[].concat(r,i):i:i==null&&r==null&&!ys(o)&&(t[o]=i)}else o!==""&&(t[o]=n[o])}return t}function Ne(e,t,s,n=null){ze(e,t,7,[s,n])}const ol=Ko();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 Er(!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:Zo(n,o),emitsOptions:Wo(n,o),emit:null,emitted:null,propsDefaults:X,inheritAttrs:n.inheritAttrs,ctx:X,data:X,props:X,attrs:X,slots:X,refs:X,setupState:X,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=Ni.bind(null,r),e.ce&&e.ce(r),r}let ge=null;const ll=()=>ge||$e;let xs,Ys;{const e=Ss(),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)}};xs=t("__VUE_INSTANCE_SETTERS__",s=>ge=s),Ys=t("__VUE_SSR_SETTERS__",s=>Gt=s)}const es=e=>{const t=ge;return xs(e),e.scope.on(),()=>{e.scope.off(),xs(t)}},Vn=()=>{ge&&ge.scope.off(),xs(null)};function ur(e){return e.vnode.shapeFlag&4}let Gt=!1;function al(e,t=!1,s=!1){t&&Ys(t);const{props:n,children:o}=e.vnode,r=ur(e);Bi(e,n,r,t),qi(e,o,s||t);const i=r?cl(e,t):void 0;return t&&Ys(!1),i}function cl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ki);const{setup:n}=s;if(n){et();const o=e.setupContext=n.length>1?fl(e):null,r=es(e),i=Xt(n,e,0,[e.props,o]),l=lo(i);if(tt(),r(),(l||e.sp)&&!Ut(e)&&jo(e),l){if(i.then(Vn,Vn),t)return i.then(a=>{Un(e,a)}).catch(a=>{Ts(a,e,0)});e.asyncDep=i}else Un(e,i)}else fr(e)}function Un(e,t,s){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Z(t)&&(e.setupState=Po(t)),fr(e)}function fr(e,t,s){const n=e.type;e.render||(e.render=n.render||Be);{const o=es(e);et();try{Pi(e)}finally{tt(),o()}}}const ul={get(e,t){return he(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 Ps(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Po(Jr(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Bt)return Bt[s](e)},has(t,s){return s in t||s in Bt}})):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 Et=(e,t)=>ei(e,t,Gt),hl="3.5.31";/**
|
|
60
|
+
**/function Xt(e,t,s,n){try{return n?e(...n):e()}catch(o){Ts(o,t,s)}}function ze(e,t,s,n){if(K(e)){const o=Xt(e,t,s,n);return o&&ao(o)&&o.catch(r=>{Ts(r,t,s)}),o}if(H(e)){const o=[];for(let r=0;r<e.length;r++)o.push(ze(e[r],t,s,n));return o}}function Ts(e,t,s,n=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||X;if(t){let l=t.parent;const c=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const a=l.ec;if(a){for(let p=0;p<a.length;p++)if(a[p](e,c,d)===!1)return}l=l.parent}if(r){et(),Xt(r,null,10,[e,c,d]),tt();return}}ni(e,s,o,n,i)}function ni(e,t,s,n=!0,o=!1){if(o)throw e;console.error(e)}const be=[];let Ne=-1;const St=[];let it=null,bt=0;const Po=Promise.resolve();let ps=null;function Oo(e){const t=ps||Po;return e?t.then(this?e.bind(this):e):t}function oi(e){let t=Ne+1,s=be.length;for(;t<s;){const n=t+s>>>1,o=be[n],r=qt(o);r<e||r===e&&o.flags&2?t=n+1:s=n}return t}function dn(e){if(!(e.flags&1)){const t=qt(e),s=be[be.length-1];!s||!(e.flags&2)&&t>=qt(s)?be.push(e):be.splice(oi(t),0,e),e.flags|=1,Io()}}function Io(){ps||(ps=Po.then(Do))}function ri(e){H(e)?St.push(...e):it&&e.id===-1?it.splice(bt+1,0,e):e.flags&1||(St.push(e),e.flags|=1),Io()}function An(e,t,s=Ne+1){for(;s<be.length;s++){const n=be[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;be.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Ro(e){if(St.length){const t=[...new Set(St)].sort((s,n)=>qt(s)-qt(n));if(St.length=0,it){it.push(...t);return}for(it=t,bt=0;bt<it.length;bt++){const s=it[bt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}it=null,bt=0}}const qt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Do(e){try{for(Ne=0;Ne<be.length;Ne++){const t=be[Ne];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ne<be.length;Ne++){const t=be[Ne];t&&(t.flags&=-2)}Ne=-1,be.length=0,Ro(),ps=null,(be.length||St.length)&&Do()}}let ke=null,Lo=null;function hs(e){const t=ke;return ke=e,Lo=e&&e.type.__scopeId||null,t}function ii(e,t=ke,s){if(!t||e._n)return e;const n=(...o)=>{n._d&&Vn(-1);const r=hs(t);let i;try{i=e(...o)}finally{hs(r),n._d&&Vn(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function fe(e,t){if(ke===null)return e;const s=As(ke),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,l,c=X]=t[o];r&&(K(r)&&(r={mounted:r,updated:r}),r.deep&&Qe(i),n.push({dir:r,instance:s,value:i,oldValue:void 0,arg:l,modifiers:c}))}return e}function dt(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&&(et(),ze(c,s,8,[e.el,l,e,t]),tt())}}function li(e,t){if(xe){let s=xe.provides;const n=xe.parent&&xe.parent.provides;n===s&&(s=xe.provides=Object.create(n)),s[e]=t}}function as(e,t,s=!1){const n=ll();if(n||Ct){let o=Ct?Ct._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=()=>as(ai);function Ls(e,t,s){return jo(e,t,s)}function jo(e,t,s=X){const{immediate:n,deep:o,flush:r,once:i}=s,l=me({},s),c=t&&n||!t&&r!=="post";let d;if(Gt){if(r==="sync"){const C=ci();d=C.__watcherHandles||(C.__watcherHandles=[])}else if(!c){const C=()=>{};return C.stop=Be,C.resume=Be,C.pause=Be,C}}const a=xe;l.call=(C,U,I)=>ze(C,a,U,I);let p=!1;r==="post"?l.scheduler=C=>{we(C,a&&a.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(C,U)=>{U?C():dn(C)}),l.augmentJob=C=>{t&&(C.flags|=4),p&&(C.flags|=2,a&&(C.id=a.uid,C.i=a))};const g=si(e,t,l);return Gt&&(d?d.push(g):c&&g()),g}function ui(e,t,s){const n=this.proxy,o=re(e)?e.includes(".")?No(n,e):()=>n[e]:e.bind(n,n);let r;K(t)?r=t:(r=t.handler,s=t);const i=es(this),l=jo(o,r.bind(n),s);return i(),l}function No(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 pn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,pn(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 ut(e,t){return K(e)?me({name:e.name},t,{setup:e}):e}function Fo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Mn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ms=new WeakMap;function Vt(e,t,s,n,o=!1){if(H(e)){e.forEach((I,W)=>Vt(I,t&&(H(t)?t[W]:t),s,n,o));return}if(Ut(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Vt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?As(n.component):n.el,i=o?null:r,{i:l,r:c}=e,d=t&&t.r,a=l.refs===X?l.refs={}:l.refs,p=l.setupState,g=J(p),C=p===X?lo:I=>Mn(a,I)?!1:G(g,I),U=(I,W)=>!(W&&Mn(a,W));if(d!=null&&d!==c){if(Pn(t),re(d))a[d]=null,C(d)&&(p[d]=null);else if(ve(d)){const I=t;U(d,I.k)&&(d.value=null),I.k&&(a[I.k]=null)}}if(K(c))Xt(c,l,12,[i,a]);else{const I=re(c),W=ve(c);if(I||W){const P=()=>{if(e.f){const V=I?C(c)?p[c]:a[c]:U()||!e.k?c.value:a[e.k];if(o)H(V)&&en(V,r);else if(H(V))V.includes(r)||V.push(r);else if(I)a[c]=[r],C(c)&&(p[c]=a[c]);else{const z=[r];U(c,e.k)&&(c.value=z),e.k&&(a[e.k]=z)}}else I?(a[c]=i,C(c)&&(p[c]=i)):W&&(U(c,e.k)&&(c.value=i),e.k&&(a[e.k]=i))};if(i){const V=()=>{P(),ms.delete(e)};V.id=-1,ms.set(e,V),we(V,s)}else Pn(e),P()}}}function Pn(e){const t=ms.get(e);t&&(t.flags|=8,ms.delete(e))}Ss().requestIdleCallback;Ss().cancelIdleCallback;const Ut=e=>!!e.type.__asyncLoader,Ho=e=>e.type.__isKeepAlive;function hi(e,t){Vo(e,"a",t)}function mi(e,t){Vo(e,"da",t)}function Vo(e,t,s=xe){const n=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if($s(t,n,s),s){let o=s.parent;for(;o&&o.parent;)Ho(o.parent.vnode)&&gi(n,t,s,o),o=o.parent}}function gi(e,t,s,n){const o=$s(t,e,n,!0);hn(()=>{en(n[t],o)},s)}function $s(e,t,s=xe,n=!1){if(s){const o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{et();const l=es(s),c=ze(t,s,e,i);return l(),tt(),c});return n?o.unshift(r):o.push(r),r}}const ot=e=>(t,s=xe)=>{(!Gt||e==="sp")&&$s(e,(...n)=>t(...n),s)},xi=ot("bm"),ft=ot("m"),vi=ot("bu"),yi=ot("u"),bi=ot("bum"),hn=ot("um"),_i=ot("sp"),wi=ot("rtg"),Si=ot("rtc");function Ci(e,t=xe){$s("ec",e,t)}const Ti="components",Uo=Symbol.for("v-ndc");function $i(e){return re(e)?ki(Ti,e,!1)||e:e||Uo}function ki(e,t,s=!0,n=!1){const o=ke||xe;if(o){const r=o.type;{const l=dl(r,!1);if(l&&(l===t||l===_e(t)||l===_s(_e(t))))return r}const i=On(o[e]||r[e],t)||On(o.appContext[e],t);return!i&&n?r:i}}function On(e,t){return e&&(e[t]||e[_e(t)]||e[_s(_e(t))])}function nt(e,t,s,n){let o;const r=s,i=H(e);if(i||re(e)){const l=i&&xt(e);let c=!1,d=!1;l&&(c=!Me(e),d=st(e),e=Cs(e)),o=new Array(e.length);for(let a=0,p=e.length;a<p;a++)o[a]=t(c?d?Tt(Oe(e[a])):Oe(e[a]):e[a],a,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(Z(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,d=l.length;c<d;c++){const a=l[c];o[c]=t(e[a],a,c,r)}}else o=[];return o}const zs=e=>e?ur(e)?As(e):zs(e.parent):null,Bt=me(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=>Ko(e),$forceUpdate:e=>e.f||(e.f=()=>{dn(e.update)}),$nextTick:e=>e.n||(e.n=Oo.bind(e.proxy)),$watch:e=>ui.bind(e)}),js=(e,t)=>e!==X&&!e.__isScriptSetup&&G(e,t),Ei={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 g=i[t];if(g!==void 0)switch(g){case 1:return n[t];case 2:return o[t];case 4:return s[t];case 3:return r[t]}else{if(js(n,t))return i[t]=1,n[t];if(o!==X&&G(o,t))return i[t]=2,o[t];if(G(r,t))return i[t]=3,r[t];if(s!==X&&G(s,t))return i[t]=4,s[t];qs&&(i[t]=0)}}const d=Bt[t];let a,p;if(d)return t==="$attrs"&&ge(e.attrs,"get",""),d(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(s!==X&&G(s,t))return i[t]=4,s[t];if(p=c.config.globalProperties,G(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:o,ctx:r}=e;return js(o,t)?(o[t]=s,!0):n!==X&&G(n,t)?(n[t]=s,!0):G(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!==X&&l[0]!=="$"&&G(e,l)||js(t,l)||G(r,l)||G(n,l)||G(Bt,l)||G(o.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:G(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function In(e){return H(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let qs=!0;function Ai(e){const t=Ko(e),s=e.proxy,n=e.ctx;qs=!1,t.beforeCreate&&Rn(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:c,inject:d,created:a,beforeMount:p,mounted:g,beforeUpdate:C,updated:U,activated:I,deactivated:W,beforeDestroy:P,beforeUnmount:V,destroyed:z,unmounted:D,render:j,renderTracked:M,renderTriggered:N,errorCaptured:ne,serverPrefetch:Y,expose:ce,inheritAttrs:Ae,components:qe,directives:Te,filters:vt}=t;if(d&&Mi(d,n,null),i)for(const se in i){const k=i[se];K(k)&&(n[se]=k.bind(s))}if(o){const se=o.call(s,s);Z(se)&&(e.data=cn(se))}if(qs=!0,r)for(const se in r){const k=r[se],S=K(k)?k.bind(s,s):K(k.get)?k.get.bind(s,s):Be,oe=!K(k)&&K(k.set)?k.set.bind(s):Be,rt=kt({get:S,set:oe});Object.defineProperty(n,se,{enumerable:!0,configurable:!0,get:()=>rt.value,set:Ie=>rt.value=Ie})}if(l)for(const se in l)Bo(l[se],n,s,se);if(c){const se=K(c)?c.call(s):c;Reflect.ownKeys(se).forEach(k=>{li(k,se[k])})}a&&Rn(a,e,"c");function pe(se,k){H(k)?k.forEach(S=>se(S.bind(s))):k&&se(k.bind(s))}if(pe(xi,p),pe(ft,g),pe(vi,C),pe(yi,U),pe(hi,I),pe(mi,W),pe(Ci,ne),pe(Si,M),pe(wi,N),pe(bi,V),pe(hn,D),pe(_i,Y),H(ce))if(ce.length){const se=e.exposed||(e.exposed={});ce.forEach(k=>{Object.defineProperty(se,k,{get:()=>s[k],set:S=>s[k]=S,enumerable:!0})})}else e.exposed||(e.exposed={});j&&e.render===Be&&(e.render=j),Ae!=null&&(e.inheritAttrs=Ae),qe&&(e.components=qe),Te&&(e.directives=Te),Y&&Fo(e)}function Mi(e,t,s=Be){H(e)&&(e=Js(e));for(const n in e){const o=e[n];let r;Z(o)?"default"in o?r=as(o.from||n,o.default,!0):r=as(o.from||n):r=as(o),ve(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function Rn(e,t,s){ze(H(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Bo(e,t,s,n){let o=n.includes(".")?No(s,n):()=>s[n];if(re(e)){const r=t[e];K(r)&&Ls(o,r)}else if(K(e))Ls(o,e.bind(s));else if(Z(e))if(H(e))e.forEach(r=>Bo(r,t,s,n));else{const r=K(e.handler)?e.handler.bind(s):t[e.handler];K(r)&&Ls(o,r,e)}}function Ko(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(d=>gs(c,d,i,!0)),gs(c,t,i)),Z(t)&&r.set(t,c),c}function gs(e,t,s,n=!1){const{mixins:o,extends:r}=t;r&&gs(e,r,s,!0),o&&o.forEach(i=>gs(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const l=Pi[i]||s&&s[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Pi={data:Dn,props:Ln,emits:Ln,methods:jt,computed:jt,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:jt,directives:jt,watch:Ii,provide:Dn,inject:Oi};function Dn(e,t){return t?e?function(){return me(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Oi(e,t){return jt(Js(e),Js(t))}function Js(e){if(H(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 jt(e,t){return e?me(Object.create(null),e,t):t}function Ln(e,t){return e?H(e)&&H(t)?[...new Set([...e,...t])]:me(Object.create(null),In(e),In(t??{})):t}function Ii(e,t){if(!e)return t;if(!t)return e;const s=me(Object.create(null),e);for(const n in t)s[n]=ye(e[n],t[n]);return s}function Wo(){return{app:null,config:{isNativeTag:lo,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=me({},n)),o!=null&&!Z(o)&&(o=null);const r=Wo(),i=new WeakSet,l=[];let c=!1;const d=r.app={_uid:Ri++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:hl,get config(){return r.config},set config(a){},use(a,...p){return i.has(a)||(a&&K(a.install)?(i.add(a),a.install(d,...p)):K(a)&&(i.add(a),a(d,...p))),d},mixin(a){return r.mixins.includes(a)||r.mixins.push(a),d},component(a,p){return p?(r.components[a]=p,d):r.components[a]},directive(a,p){return p?(r.directives[a]=p,d):r.directives[a]},mount(a,p,g){if(!c){const C=d._ceVNode||Ke(n,o);return C.appContext=r,g===!0?g="svg":g===!1&&(g=void 0),e(C,a,g),c=!0,d._container=a,a.__vue_app__=d,As(C.component)}},onUnmount(a){l.push(a)},unmount(){c&&(ze(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(a,p){return r.provides[a]=p,d},runWithContext(a){const p=Ct;Ct=d;try{return a()}finally{Ct=p}}};return d}}let Ct=null;const Li=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${_e(t)}Modifiers`]||e[`${ct(t)}Modifiers`];function ji(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||X;let o=s;const r=t.startsWith("update:"),i=r&&Li(n,t.slice(7));i&&(i.trim&&(o=s.map(a=>re(a)?a.trim():a)),i.number&&(o=s.map(ws)));let l,c=n[l=Ps(t)]||n[l=Ps(_e(t))];!c&&r&&(c=n[l=Ps(ct(t))]),c&&ze(c,e,6,o);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ze(d,e,6,o)}}const Ni=new WeakMap;function zo(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=d=>{const a=zo(d,t,!0);a&&(l=!0,me(i,a))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!l?(Z(e)&&n.set(e,null),null):(H(r)?r.forEach(c=>i[c]=null):me(i,r),Z(e)&&n.set(e,i),i)}function ks(e,t){return!e||!vs(t)?!1:(t=t.slice(2).replace(/Once$/,""),G(e,t[0].toLowerCase()+t.slice(1))||G(e,ct(t))||G(e,t))}function jn(e){const{type:t,vnode:s,proxy:n,withProxy:o,propsOptions:[r],slots:i,attrs:l,emit:c,render:d,renderCache:a,props:p,data:g,setupState:C,ctx:U,inheritAttrs:I}=e,W=hs(e);let P,V;try{if(s.shapeFlag&4){const D=o||n,j=D;P=Ve(d.call(j,D,a,p,C,g,U)),V=l}else{const D=t;P=Ve(D.length>1?D(p,{attrs:l,slots:i,emit:c}):D(p,null)),V=t.props?l:Fi(l)}}catch(D){Kt.length=0,Ts(D,e,1),P=Ke(at)}let z=P;if(V&&I!==!1){const D=Object.keys(V),{shapeFlag:j}=z;D.length&&j&7&&(r&&D.some(ys)&&(V=Hi(V,r)),z=$t(z,V,!1,!0))}return s.dirs&&(z=$t(z,null,!1,!0),z.dirs=z.dirs?z.dirs.concat(s.dirs):s.dirs),s.transition&&pn(z,s.transition),P=z,hs(W),P}const Fi=e=>{let t;for(const s in e)(s==="class"||s==="style"||vs(s))&&((t||(t={}))[s]=e[s]);return t},Hi=(e,t)=>{const s={};for(const n in e)(!ys(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,d=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Nn(n,i,d):!!i;if(c&8){const a=t.dynamicProps;for(let p=0;p<a.length;p++){const g=a[p];if(qo(i,n,g)&&!ks(d,g))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:n===i?!1:n?i?Nn(n,i,d):!0:!!i;return!1}function Nn(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(qo(t,e,r)&&!ks(s,r))return!0}return!1}function qo(e,t,s){const n=e[s],o=t[s];return s==="style"&&Z(n)&&Z(o)?!Mt(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 Jo={},Go=()=>Object.create(Jo),Yo=e=>Object.getPrototypeOf(e)===Jo;function Bi(e,t,s,n=!1){const o={},r=Go();e.propsDefaults=Object.create(null),Zo(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=J(o),[c]=e.propsOptions;let d=!1;if((n||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let p=0;p<a.length;p++){let g=a[p];if(ks(e.emitsOptions,g))continue;const C=t[g];if(c)if(G(r,g))C!==r[g]&&(r[g]=C,d=!0);else{const U=_e(g);o[U]=Gs(c,l,U,C,e,!1)}else C!==r[g]&&(r[g]=C,d=!0)}}}else{Zo(e,t,o,r)&&(d=!0);let a;for(const p in l)(!t||!G(t,p)&&((a=ct(p))===p||!G(t,a)))&&(c?s&&(s[p]!==void 0||s[a]!==void 0)&&(o[p]=Gs(c,l,p,void 0,e,!0)):delete o[p]);if(r!==l)for(const p in r)(!t||!G(t,p))&&(delete r[p],d=!0)}d&&Ze(e.attrs,"set","")}function Zo(e,t,s,n){const[o,r]=e.propsOptions;let i=!1,l;if(t)for(let c in t){if(Nt(c))continue;const d=t[c];let a;o&&G(o,a=_e(c))?!r||!r.includes(a)?s[a]=d:(l||(l={}))[a]=d:ks(e.emitsOptions,c)||(!(c in n)||d!==n[c])&&(n[c]=d,i=!0)}if(r){const c=J(s),d=l||X;for(let a=0;a<r.length;a++){const p=r[a];s[p]=Gs(o,c,p,d[p],e,!G(d,p))}}return i}function Gs(e,t,s,n,o,r){const i=e[s];if(i!=null){const l=G(i,"default");if(l&&n===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&K(c)){const{propsDefaults:d}=o;if(s in d)n=d[s];else{const a=es(o);n=d[s]=c.call(null,t),a()}}else n=c;o.ce&&o.ce._setProp(s,n)}i[0]&&(r&&!l?n=!1:i[1]&&(n===""||n===ct(s))&&(n=!0))}return n}const Wi=new WeakMap;function Qo(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 a=p=>{c=!0;const[g,C]=Qo(p,t,!0);me(i,g),C&&l.push(...C)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!r&&!c)return Z(e)&&n.set(e,_t),_t;if(H(r))for(let a=0;a<r.length;a++){const p=_e(r[a]);Fn(p)&&(i[p]=X)}else if(r)for(const a in r){const p=_e(a);if(Fn(p)){const g=r[a],C=i[p]=H(g)||K(g)?{type:g}:me({},g),U=C.type;let I=!1,W=!0;if(H(U))for(let P=0;P<U.length;++P){const V=U[P],z=K(V)&&V.name;if(z==="Boolean"){I=!0;break}else z==="String"&&(W=!1)}else I=K(U)&&U.name==="Boolean";C[0]=I,C[1]=W,(I||G(C,"default"))&&l.push(p)}}const d=[i,l];return Z(e)&&n.set(e,d),d}function Fn(e){return e[0]!=="$"&&!Nt(e)}const mn=e=>e==="_"||e==="_ctx"||e==="$stable",gn=e=>H(e)?e.map(Ve):[Ve(e)],zi=(e,t,s)=>{if(t._n)return t;const n=ii((...o)=>gn(t(...o)),s);return n._c=!1,n},Xo=(e,t,s)=>{const n=e._ctx;for(const o in e){if(mn(o))continue;const r=e[o];if(K(r))t[o]=zi(o,r,n);else if(r!=null){const i=gn(r);t[o]=()=>i}}},er=(e,t)=>{const s=gn(t);e.slots.default=()=>s},tr=(e,t,s)=>{for(const n in t)(s||!mn(n))&&(e[n]=t[n])},qi=(e,t,s)=>{const n=e.slots=Go();if(e.vnode.shapeFlag&32){const o=t._;o?(tr(n,t,s),s&&fo(n,"_",o,!0)):Xo(t,n)}else t&&er(e,t)},Ji=(e,t,s)=>{const{vnode:n,slots:o}=e;let r=!0,i=X;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:tr(o,t,s):(r=!t.$stable,Xo(t,o)),i=t}else t&&(er(e,t),i={default:1});if(r)for(const l in o)!mn(l)&&i[l]==null&&delete o[l]},we=Xi;function Gi(e){return Yi(e)}function Yi(e,t){const s=Ss();s.__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:i,createText:l,createComment:c,setText:d,setElementText:a,parentNode:p,nextSibling:g,setScopeId:C=Be,insertStaticContent:U}=e,I=(u,h,m,b=null,x=null,v=null,T=void 0,w=null,_=!!h.dynamicChildren)=>{if(u===h)return;u&&!Dt(u,h)&&(b=ss(u),Ie(u,x,v,!0),u=null),h.patchFlag===-2&&(_=!1,h.dynamicChildren=null);const{type:y,ref:F,shapeFlag:E}=h;switch(y){case Es:W(u,h,m,b);break;case at:P(u,h,m,b);break;case cs:u==null&&V(h,m,b,T);break;case ae:qe(u,h,m,b,x,v,T,w,_);break;default:E&1?j(u,h,m,b,x,v,T,w,_):E&6?Te(u,h,m,b,x,v,T,w,_):(E&64||E&128)&&y.process(u,h,m,b,x,v,T,w,_,Ot)}F!=null&&x?Vt(F,u&&u.ref,v,h||u,!h):F==null&&u&&u.ref!=null&&Vt(u.ref,null,v,u,!0)},W=(u,h,m,b)=>{if(u==null)n(h.el=l(h.children),m,b);else{const x=h.el=u.el;h.children!==u.children&&d(x,h.children)}},P=(u,h,m,b)=>{u==null?n(h.el=c(h.children||""),m,b):h.el=u.el},V=(u,h,m,b)=>{[u.el,u.anchor]=U(u.children,h,m,b,u.el,u.anchor)},z=({el:u,anchor:h},m,b)=>{let x;for(;u&&u!==h;)x=g(u),n(u,m,b),u=x;n(h,m,b)},D=({el:u,anchor:h})=>{let m;for(;u&&u!==h;)m=g(u),o(u),u=m;o(h)},j=(u,h,m,b,x,v,T,w,_)=>{if(h.type==="svg"?T="svg":h.type==="math"&&(T="mathml"),u==null)M(h,m,b,x,v,T,w,_);else{const y=u.el&&u.el._isVueCE?u.el:null;try{y&&y._beginPatch(),Y(u,h,x,v,T,w,_)}finally{y&&y._endPatch()}}},M=(u,h,m,b,x,v,T,w)=>{let _,y;const{props:F,shapeFlag:E,transition:R,dirs:B}=u;if(_=u.el=i(u.type,v,F&&F.is,F),E&8?a(_,u.children):E&16&&ne(u.children,_,null,b,x,Ns(u,v),T,w),B&&dt(u,null,b,"created"),N(_,u,u.scopeId,T,b),F){for(const Q in F)Q!=="value"&&!Nt(Q)&&r(_,Q,null,F[Q],v,b);"value"in F&&r(_,"value",null,F.value,v),(y=F.onVnodeBeforeMount)&&je(y,b,u)}B&&dt(u,null,b,"beforeMount");const q=Zi(x,R);q&&R.beforeEnter(_),n(_,h,m),((y=F&&F.onVnodeMounted)||q||B)&&we(()=>{try{y&&je(y,b,u),q&&R.enter(_),B&&dt(u,null,b,"mounted")}finally{}},x)},N=(u,h,m,b,x)=>{if(m&&C(u,m),b)for(let v=0;v<b.length;v++)C(u,b[v]);if(x){let v=x.subTree;if(h===v||rr(v.type)&&(v.ssContent===h||v.ssFallback===h)){const T=x.vnode;N(u,T,T.scopeId,T.slotScopeIds,x.parent)}}},ne=(u,h,m,b,x,v,T,w,_=0)=>{for(let y=_;y<u.length;y++){const F=u[y]=w?Ye(u[y]):Ve(u[y]);I(null,F,h,m,b,x,v,T,w)}},Y=(u,h,m,b,x,v,T)=>{const w=h.el=u.el;let{patchFlag:_,dynamicChildren:y,dirs:F}=h;_|=u.patchFlag&16;const E=u.props||X,R=h.props||X;let B;if(m&&pt(m,!1),(B=R.onVnodeBeforeUpdate)&&je(B,m,h,u),F&&dt(h,u,m,"beforeUpdate"),m&&pt(m,!0),(E.innerHTML&&R.innerHTML==null||E.textContent&&R.textContent==null)&&a(w,""),y?ce(u.dynamicChildren,y,w,m,b,Ns(h,x),v):T||k(u,h,w,null,m,b,Ns(h,x),v,!1),_>0){if(_&16)Ae(w,E,R,m,x);else if(_&2&&E.class!==R.class&&r(w,"class",null,R.class,x),_&4&&r(w,"style",E.style,R.style,x),_&8){const q=h.dynamicProps;for(let Q=0;Q<q.length;Q++){const ee=q[Q],ie=E[ee],he=R[ee];(he!==ie||ee==="value")&&r(w,ee,ie,he,x,m)}}_&1&&u.children!==h.children&&a(w,h.children)}else!T&&y==null&&Ae(w,E,R,m,x);((B=R.onVnodeUpdated)||F)&&we(()=>{B&&je(B,m,h,u),F&&dt(h,u,m,"updated")},b)},ce=(u,h,m,b,x,v,T)=>{for(let w=0;w<h.length;w++){const _=u[w],y=h[w],F=_.el&&(_.type===ae||!Dt(_,y)||_.shapeFlag&198)?p(_.el):m;I(_,y,F,null,b,x,v,T,!0)}},Ae=(u,h,m,b,x)=>{if(h!==m){if(h!==X)for(const v in h)!Nt(v)&&!(v in m)&&r(u,v,h[v],null,x,b);for(const v in m){if(Nt(v))continue;const T=m[v],w=h[v];T!==w&&v!=="value"&&r(u,v,w,T,x,b)}"value"in m&&r(u,"value",h.value,m.value,x)}},qe=(u,h,m,b,x,v,T,w,_)=>{const y=h.el=u?u.el:l(""),F=h.anchor=u?u.anchor:l("");let{patchFlag:E,dynamicChildren:R,slotScopeIds:B}=h;B&&(w=w?w.concat(B):B),u==null?(n(y,m,b),n(F,m,b),ne(h.children||[],m,F,x,v,T,w,_)):E>0&&E&64&&R&&u.dynamicChildren&&u.dynamicChildren.length===R.length?(ce(u.dynamicChildren,R,m,x,v,T,w),(h.key!=null||x&&h===x.subTree)&&sr(u,h,!0)):k(u,h,m,F,x,v,T,w,_)},Te=(u,h,m,b,x,v,T,w,_)=>{h.slotScopeIds=w,u==null?h.shapeFlag&512?x.ctx.activate(h,m,b,T,_):vt(h,m,b,x,v,T,_):ts(u,h,_)},vt=(u,h,m,b,x,v,T)=>{const w=u.component=il(u,b,x);if(Ho(u)&&(w.ctx.renderer=Ot),al(w,!1,T),w.asyncDep){if(x&&x.registerDep(w,pe,T),!u.el){const _=w.subTree=Ke(at);P(null,_,h,m),u.placeholder=_.el}}else pe(w,u,h,m,x,v,T)},ts=(u,h,m)=>{const b=h.component=u.component;if(Vi(u,h,m))if(b.asyncDep&&!b.asyncResolved){se(b,h,m);return}else b.next=h,b.update();else h.el=u.el,b.vnode=h},pe=(u,h,m,b,x,v,T)=>{const w=()=>{if(u.isMounted){let{next:E,bu:R,u:B,parent:q,vnode:Q}=u;{const De=nr(u);if(De){E&&(E.el=Q.el,se(u,E,T)),De.asyncDep.then(()=>{we(()=>{u.isUnmounted||y()},x)});return}}let ee=E,ie;pt(u,!1),E?(E.el=Q.el,se(u,E,T)):E=Q,R&&ls(R),(ie=E.props&&E.props.onVnodeBeforeUpdate)&&je(ie,q,E,Q),pt(u,!0);const he=jn(u),Re=u.subTree;u.subTree=he,I(Re,he,p(Re.el),ss(Re),u,x,v),E.el=he.el,ee===null&&Ui(u,he.el),B&&we(B,x),(ie=E.props&&E.props.onVnodeUpdated)&&we(()=>je(ie,q,E,Q),x)}else{let E;const{el:R,props:B}=h,{bm:q,m:Q,parent:ee,root:ie,type:he}=u,Re=Ut(h);pt(u,!1),q&&ls(q),!Re&&(E=B&&B.onVnodeBeforeMount)&&je(E,ee,h),pt(u,!0);{ie.ce&&ie.ce._hasShadowRoot()&&ie.ce._injectChildStyle(he,u.parent?u.parent.type:void 0);const De=u.subTree=jn(u);I(null,De,m,b,u,x,v),h.el=De.el}if(Q&&we(Q,x),!Re&&(E=B&&B.onVnodeMounted)){const De=h;we(()=>je(E,ee,De),x)}(h.shapeFlag&256||ee&&Ut(ee.vnode)&&ee.vnode.shapeFlag&256)&&u.a&&we(u.a,x),u.isMounted=!0,h=m=b=null}};u.scope.on();const _=u.effect=new go(w);u.scope.off();const y=u.update=_.run.bind(_),F=u.job=_.runIfDirty.bind(_);F.i=u,F.id=u.uid,_.scheduler=()=>dn(F),pt(u,!0),y()},se=(u,h,m)=>{h.component=u;const b=u.vnode.props;u.vnode=h,u.next=null,Ki(u,h.props,b,m),Ji(u,h.children,m),et(),An(u),tt()},k=(u,h,m,b,x,v,T,w,_=!1)=>{const y=u&&u.children,F=u?u.shapeFlag:0,E=h.children,{patchFlag:R,shapeFlag:B}=h;if(R>0){if(R&128){oe(y,E,m,b,x,v,T,w,_);return}else if(R&256){S(y,E,m,b,x,v,T,w,_);return}}B&8?(F&16&&Pt(y,x,v),E!==y&&a(m,E)):F&16?B&16?oe(y,E,m,b,x,v,T,w,_):Pt(y,x,v,!0):(F&8&&a(m,""),B&16&&ne(E,m,b,x,v,T,w,_))},S=(u,h,m,b,x,v,T,w,_)=>{u=u||_t,h=h||_t;const y=u.length,F=h.length,E=Math.min(y,F);let R;for(R=0;R<E;R++){const B=h[R]=_?Ye(h[R]):Ve(h[R]);I(u[R],B,m,null,x,v,T,w,_)}y>F?Pt(u,x,v,!0,!1,E):ne(h,m,b,x,v,T,w,_,E)},oe=(u,h,m,b,x,v,T,w,_)=>{let y=0;const F=h.length;let E=u.length-1,R=F-1;for(;y<=E&&y<=R;){const B=u[y],q=h[y]=_?Ye(h[y]):Ve(h[y]);if(Dt(B,q))I(B,q,m,null,x,v,T,w,_);else break;y++}for(;y<=E&&y<=R;){const B=u[E],q=h[R]=_?Ye(h[R]):Ve(h[R]);if(Dt(B,q))I(B,q,m,null,x,v,T,w,_);else break;E--,R--}if(y>E){if(y<=R){const B=R+1,q=B<F?h[B].el:b;for(;y<=R;)I(null,h[y]=_?Ye(h[y]):Ve(h[y]),m,q,x,v,T,w,_),y++}}else if(y>R)for(;y<=E;)Ie(u[y],x,v,!0),y++;else{const B=y,q=y,Q=new Map;for(y=q;y<=R;y++){const $e=h[y]=_?Ye(h[y]):Ve(h[y]);$e.key!=null&&Q.set($e.key,y)}let ee,ie=0;const he=R-q+1;let Re=!1,De=0;const It=new Array(he);for(y=0;y<he;y++)It[y]=0;for(y=B;y<=E;y++){const $e=u[y];if(ie>=he){Ie($e,x,v,!0);continue}let Le;if($e.key!=null)Le=Q.get($e.key);else for(ee=q;ee<=R;ee++)if(It[ee-q]===0&&Dt($e,h[ee])){Le=ee;break}Le===void 0?Ie($e,x,v,!0):(It[Le-q]=y+1,Le>=De?De=Le:Re=!0,I($e,h[Le],m,null,x,v,T,w,_),ie++)}const wn=Re?Qi(It):_t;for(ee=wn.length-1,y=he-1;y>=0;y--){const $e=q+y,Le=h[$e],Sn=h[$e+1],Cn=$e+1<F?Sn.el||or(Sn):b;It[y]===0?I(null,Le,m,Cn,x,v,T,w,_):Re&&(ee<0||y!==wn[ee]?rt(Le,m,Cn,2):ee--)}}},rt=(u,h,m,b,x=null)=>{const{el:v,type:T,transition:w,children:_,shapeFlag:y}=u;if(y&6){rt(u.component.subTree,h,m,b);return}if(y&128){u.suspense.move(h,m,b);return}if(y&64){T.move(u,h,m,Ot);return}if(T===ae){n(v,h,m);for(let E=0;E<_.length;E++)rt(_[E],h,m,b);n(u.anchor,h,m);return}if(T===cs){z(u,h,m);return}if(b!==2&&y&1&&w)if(b===0)w.beforeEnter(v),n(v,h,m),we(()=>w.enter(v),x);else{const{leave:E,delayLeave:R,afterLeave:B}=w,q=()=>{u.ctx.isUnmounted?o(v):n(v,h,m)},Q=()=>{v._isLeaving&&v[pi](!0),E(v,()=>{q(),B&&B()})};R?R(v,q,Q):Q()}else n(v,h,m)},Ie=(u,h,m,b=!1,x=!1)=>{const{type:v,props:T,ref:w,children:_,dynamicChildren:y,shapeFlag:F,patchFlag:E,dirs:R,cacheIndex:B,memo:q}=u;if(E===-2&&(x=!1),w!=null&&(et(),Vt(w,null,m,u,!0),tt()),B!=null&&(h.renderCache[B]=void 0),F&256){h.ctx.deactivate(u);return}const Q=F&1&&R,ee=!Ut(u);let ie;if(ee&&(ie=T&&T.onVnodeBeforeUnmount)&&je(ie,h,u),F&6)mr(u.component,m,b);else{if(F&128){u.suspense.unmount(m,b);return}Q&&dt(u,null,h,"beforeUnmount"),F&64?u.type.remove(u,h,m,Ot,b):y&&!y.hasOnce&&(v!==ae||E>0&&E&64)?Pt(y,h,m,!1,!0):(v===ae&&E&384||!x&&F&16)&&Pt(_,h,m),b&&bn(u)}const he=q!=null&&B==null;(ee&&(ie=T&&T.onVnodeUnmounted)||Q||he)&&we(()=>{ie&&je(ie,h,u),Q&&dt(u,null,h,"unmounted"),he&&(u.el=null)},m)},bn=u=>{const{type:h,el:m,anchor:b,transition:x}=u;if(h===ae){hr(m,b);return}if(h===cs){D(u);return}const v=()=>{o(m),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(u.shapeFlag&1&&x&&!x.persisted){const{leave:T,delayLeave:w}=x,_=()=>T(m,v);w?w(u.el,v,_):_()}else v()},hr=(u,h)=>{let m;for(;u!==h;)m=g(u),o(u),u=m;o(h)},mr=(u,h,m)=>{const{bum:b,scope:x,job:v,subTree:T,um:w,m:_,a:y}=u;Hn(_),Hn(y),b&&ls(b),x.stop(),v&&(v.flags|=8,Ie(T,u,h,m)),w&&we(w,h),we(()=>{u.isUnmounted=!0},h)},Pt=(u,h,m,b=!1,x=!1,v=0)=>{for(let T=v;T<u.length;T++)Ie(u[T],h,m,b,x)},ss=u=>{if(u.shapeFlag&6)return ss(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const h=g(u.anchor||u.el),m=h&&h[fi];return m?g(m):h};let Ms=!1;const _n=(u,h,m)=>{let b;u==null?h._vnode&&(Ie(h._vnode,null,null,!0),b=h._vnode.component):I(h._vnode||null,u,h,null,null,null,m),h._vnode=u,Ms||(Ms=!0,An(b),Ro(),Ms=!1)},Ot={p:I,um:Ie,m:rt,r:bn,mt:vt,mc:ne,pc:k,pbc:ce,n:ss,o:e};return{render:_n,hydrate:void 0,createApp:Di(_n)}}function Ns({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 pt({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 sr(e,t,s=!1){const n=e.children,o=t.children;if(H(n)&&H(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]=Ye(o[r]),l.el=i.el),!s&&l.patchFlag!==-2&&sr(i,l)),l.type===Es&&(l.patchFlag===-1&&(l=o[r]=Ye(l)),l.el=i.el),l.type===at&&!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 d=e[n];if(d!==0){if(o=s[s.length-1],e[o]<d){t[n]=o,s.push(n);continue}for(r=0,i=s.length-1;r<i;)l=r+i>>1,e[s[l]]<d?r=l+1:i=l;d<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 nr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:nr(t)}function Hn(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function or(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?or(t.subTree):null}const rr=e=>e.__isSuspense;function Xi(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):ri(e)}const ae=Symbol.for("v-fgt"),Es=Symbol.for("v-txt"),at=Symbol.for("v-cmt"),cs=Symbol.for("v-stc"),Kt=[];let Ee=null;function $(e=!1){Kt.push(Ee=e?null:[])}function el(){Kt.pop(),Ee=Kt[Kt.length-1]||null}let Jt=1;function Vn(e,t=!1){Jt+=e,e<0&&Ee&&t&&(Ee.hasOnce=!0)}function ir(e){return e.dynamicChildren=Jt>0?Ee||_t:null,el(),Jt>0&&Ee&&Ee.push(e),e}function A(e,t,s,n,o,r){return ir(f(e,t,s,n,o,r,!0))}function lr(e,t,s,n,o){return ir(Ke(e,t,s,n,o,!0))}function ar(e){return e?e.__v_isVNode===!0:!1}function Dt(e,t){return e.type===t.type&&e.key===t.key}const cr=({key:e})=>e??null,us=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?re(e)||ve(e)||K(e)?{i:ke,r:e,k:t,f:!!s}:e:null);function f(e,t=null,s=null,n=0,o=null,r=e===ae?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cr(t),ref:t&&us(t),scopeId:Lo,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:ke};return l?(vn(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=re(s)?8:16),Jt>0&&!i&&Ee&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&Ee.push(c),c}const Ke=tl;function tl(e,t=null,s=null,n=0,o=null,r=!1){if((!e||e===Uo)&&(e=at),ar(e)){const l=$t(e,t,!0);return s&&vn(l,s),Jt>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:c}=t;l&&!re(l)&&(t.class=de(l)),Z(c)&&(fn(c)&&!H(c)&&(c=me({},c)),t.style=Qt(c))}const i=re(e)?1:rr(e)?128:di(e)?64:Z(e)?4:K(e)?2:0;return f(e,t,s,n,o,i,r,!0)}function sl(e){return e?fn(e)||Yo(e)?me({},e):e:null}function $t(e,t,s=!1,n=!1){const{props:o,ref:r,patchFlag:i,children:l,transition:c}=e,d=t?nl(o||{},t):o,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&cr(d),ref:t&&t.ref?s&&r?H(r)?r.concat(us(t)):[r,us(t)]:us(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!==ae?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&&$t(e.ssContent),ssFallback:e.ssFallback&&$t(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&pn(a,c.clone(a)),a}function xn(e=" ",t=0){return Ke(Es,null,e,t)}function Fe(e,t){const s=Ke(cs,null,e);return s.staticCount=t,s}function le(e="",t=!1){return t?($(),lr(at,null,e)):Ke(at,null,e)}function Ve(e){return e==null||typeof e=="boolean"?Ke(at):H(e)?Ke(ae,null,e.slice()):ar(e)?Ye(e):Ke(Es,null,String(e))}function Ye(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$t(e)}function vn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(H(t))s=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),vn(e,o()),o._c&&(o._d=!0));return}else{s=32;const o=t._;!o&&!Yo(t)?t._ctx=ke:o===3&&ke&&(ke.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:ke},s=32):(t=String(t),n&64?(s=16,t=[xn(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=de([t.class,n.class]));else if(o==="style")t.style=Qt([t.style,n.style]);else if(vs(o)){const r=t[o],i=n[o];i&&r!==i&&!(H(r)&&r.includes(i))?t[o]=r?[].concat(r,i):i:i==null&&r==null&&!ys(o)&&(t[o]=i)}else o!==""&&(t[o]=n[o])}return t}function je(e,t,s,n=null){ze(e,t,7,[s,n])}const ol=Wo();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:Qo(n,o),emitsOptions:zo(n,o),emit:null,emitted:null,propsDefaults:X,inheritAttrs:n.inheritAttrs,ctx:X,data:X,props:X,attrs:X,slots:X,refs:X,setupState:X,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=ji.bind(null,r),e.ce&&e.ce(r),r}let xe=null;const ll=()=>xe||ke;let xs,Ys;{const e=Ss(),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)}};xs=t("__VUE_INSTANCE_SETTERS__",s=>xe=s),Ys=t("__VUE_SSR_SETTERS__",s=>Gt=s)}const es=e=>{const t=xe;return xs(e),e.scope.on(),()=>{e.scope.off(),xs(t)}},Un=()=>{xe&&xe.scope.off(),xs(null)};function ur(e){return e.vnode.shapeFlag&4}let Gt=!1;function al(e,t=!1,s=!1){t&&Ys(t);const{props:n,children:o}=e.vnode,r=ur(e);Bi(e,n,r,t),qi(e,o,s||t);const i=r?cl(e,t):void 0;return t&&Ys(!1),i}function cl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ei);const{setup:n}=s;if(n){et();const o=e.setupContext=n.length>1?fl(e):null,r=es(e),i=Xt(n,e,0,[e.props,o]),l=ao(i);if(tt(),r(),(l||e.sp)&&!Ut(e)&&Fo(e),l){if(i.then(Un,Un),t)return i.then(c=>{Bn(e,c)}).catch(c=>{Ts(c,e,0)});e.asyncDep=i}else Bn(e,i)}else fr(e)}function Bn(e,t,s){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Z(t)&&(e.setupState=Mo(t)),fr(e)}function fr(e,t,s){const n=e.type;e.render||(e.render=n.render||Be);{const o=es(e);et();try{Ai(e)}finally{tt(),o()}}}const ul={get(e,t){return ge(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 As(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Mo(Jr(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Bt)return Bt[s](e)},has(t,s){return s in t||s in Bt}})):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 kt=(e,t)=>ei(e,t,Gt),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 Zs;const Bn=typeof window<"u"&&window.trustedTypes;if(Bn)try{Zs=Bn.createPolicy("vue",{createHTML:e=>e})}catch{}const dr=Zs?e=>Zs.createHTML(e):e=>e,ml="http://www.w3.org/2000/svg",gl="http://www.w3.org/1998/Math/MathML",Ge=typeof document<"u"?document:null,Kn=Ge&&Ge.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"?Ge.createElementNS(ml,e):t==="mathml"?Ge.createElementNS(gl,e):s?Ge.createElement(e,{is:s}):Ge.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>Ge.createTextNode(e),createComment:e=>Ge.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ge.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{Kn.innerHTML=dr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Kn.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 yl(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 Wn=Symbol("_vod"),bl=Symbol("_vsh"),_l=Symbol(""),wl=/(?:^|;)\s*display\s*:/;function Sl(e,t,s){const n=e.style,o=re(s);let r=!1;if(s&&!o){if(t)if(re(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();s[l]==null&&fs(n,l,"")}else for(const i in t)s[i]==null&&fs(n,i,"");for(const i in s)i==="display"&&(r=!0),fs(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");Wn in e&&(e[Wn]=r?n.display:"",e[bl]&&(n.display="none"))}const zn=/\s*!important$/;function fs(e,t,s){if(F(s))s.forEach(n=>fs(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Cl(e,t);zn.test(s)?e.setProperty(ct(n),s.replace(zn,""),"important"):e[n]=s}}const qn=["Webkit","Moz","ms"],Fs={};function Cl(e,t){const s=Fs[t];if(s)return s;let n=be(t);if(n!=="filter"&&n in e)return Fs[t]=n;n=_s(n);for(let o=0;o<qn.length;o++){const r=qn[o]+n;if(r in e)return Fs[t]=r}return t}const Jn="http://www.w3.org/1999/xlink";function Gn(e,t,s,n,o,r=Tr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Jn,t.slice(6,t.length)):e.setAttributeNS(Jn,t,s):s==null||r&&!fo(s)?e.removeAttribute(t):e.setAttribute(t,r?"":We(s)?String(s):s)}function Yn(e,t,s,n,o){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?dr(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=fo(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 lt(e,t,s,n){e.addEventListener(t,s,n)}function Tl(e,t,s,n){e.removeEventListener(t,s,n)}const Zn=Symbol("_vei");function $l(e,t,s,n,o=null){const r=e[Zn]||(e[Zn]={}),i=r[t];if(n&&i)i.value=n;else{const[l,a]=El(t);if(n){const h=r[t]=Al(n,o);lt(e,l,h,a)}else i&&(Tl(e,l,i,a),r[t]=void 0)}}const Qn=/(?:Once|Passive|Capture)$/;function El(e){let t;if(Qn.test(e)){t={};let n;for(;n=e.match(Qn);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ct(e.slice(2)),t]}let Hs=0;const kl=Promise.resolve(),Pl=()=>Hs||(kl.then(()=>Hs=0),Hs=Date.now());function Al(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;ze(Ml(n,s.value),t,5,[n])};return s.value=e,s.attached=Pl(),s}function Ml(e,t){if(F(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 Xn=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"?yl(e,n,i):t==="style"?Sl(e,s,n):vs(t)?ys(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))?(Yn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Gn(e,t,n,i,r,t!=="value")):e._isVueCE&&(Rl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!re(n)))?Yn(e,be(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Gn(e,t,n,i))};function Il(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Xn(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 Xn(t)&&re(s)?!1:t in e}function Rl(e,t){const s=e._def.props;if(!s)return!1;const n=be(t);return Array.isArray(s)?s.some(o=>be(o)===n):Object.keys(s).some(o=>be(o)===n)}const kt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return F(t)?s=>ls(t,s):t};function Dl(e){e.target.composing=!0}function eo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Xe=Symbol("_assign");function to(e,t,s){return t&&(e=e.trim()),s&&(e=ws(e)),e}const Ae={created(e,{modifiers:{lazy:t,trim:s,number:n}},o){e[Xe]=kt(o);const r=n||o.props&&o.props.type==="number";lt(e,t?"change":"input",i=>{i.target.composing||e[Xe](to(e.value,s,r))}),(s||r)&<(e,"change",()=>{e.value=to(e.value,s,r)}),t||(lt(e,"compositionstart",Dl),lt(e,"compositionend",eo),lt(e,"change",eo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:o,number:r}},i){if(e[Xe]=kt(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?ws(e.value):e.value,a=t??"";if(l===a)return;const h=e.getRootNode();(h instanceof Document||h instanceof ShadowRoot)&&h.activeElement===e&&e.type!=="range"&&(n&&t===s||o&&e.value.trim()===a)||(e.value=a)}},so={deep:!0,created(e,t,s){e[Xe]=kt(s),lt(e,"change",()=>{const n=e._modelValue,o=Yt(e),r=e.checked,i=e[Xe];if(F(n)){const l=sn(n,o),a=l!==-1;if(r&&!a)i(n.concat(o));else if(!r&&a){const h=[...n];h.splice(l,1),i(h)}}else if(Pt(n)){const l=new Set(n);r?l.add(o):l.delete(o),i(l)}else i(pr(e,r))})},mounted:no,beforeUpdate(e,t,s){e[Xe]=kt(s),no(e,t,s)}};function no(e,{value:t,oldValue:s},n){e._modelValue=t;let o;if(F(t))o=sn(t,n.props.value)>-1;else if(Pt(t))o=t.has(n.props.value);else{if(t===s)return;o=At(t,pr(e,!0))}e.checked!==o&&(e.checked=o)}const Qs={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const o=Pt(t);lt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?ws(Yt(i)):Yt(i));e[Xe](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,Mo(()=>{e._assigning=!1})}),e[Xe]=kt(n)},mounted(e,{value:t}){oo(e,t)},beforeUpdate(e,t,s){e[Xe]=kt(s)},updated(e,{value:t}){e._assigning||oo(e,t)}};function oo(e,t){const s=e.multiple,n=F(t);if(!(s&&!n&&!Pt(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],l=Yt(i);if(s)if(n){const a=typeof l;a==="string"||a==="number"?i.selected=t.some(h=>String(h)===String(l)):i.selected=sn(t,l)>-1}else i.selected=t.has(l);else if(At(Yt(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Yt(e){return"_value"in e?e._value:e.value}function pr(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const Ll={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Nl=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(o=>{if(!("key"in o))return;const r=ct(o.key);if(t.some(i=>i===r||Ll[i]===r))return e(o)}))},jl=pe({patchProp:Ol},xl);let ro;function Fl(){return ro||(ro=Gi(jl))}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 re(e)?document.querySelector(e):e}let vn="";function Lt(e){vn=e}function bt(){return vn}async function ce(e,t){const s=await fetch(e,{...t,headers:{Authorization:`Bearer ${vn}`,"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=mt({__name:"SessionsTab",props:{status:{}},setup(e){const t=e,s=V([]),n=V(!0);async function o(){n.value=!0;try{const h=await ce("/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=Et(()=>{var u;return(((u=t.status)==null?void 0:u.sessions)??s.value).slice().sort((p,g)=>p.status==="active"&&g.status!=="active"?-1:p.status!=="active"&&g.status==="active"?1:g.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 a(h){return h.lastWaitCallAt?Math.floor((Date.now()-h.lastWaitCallAt)/6e4)<5?"text-success":"text-warn":""}return gt(o),(h,u)=>(k(),P("div",Bl,[n.value&&r.value.length===0?(k(),P("div",Kl,"Loading sessions...")):r.value.length===0?(k(),P("div",Wl,"No sessions")):(k(),P("div",zl,[(k(!0),P(le,null,nt(r.value,p=>(k(),P("div",{key:p.mcpSessionId,class:Se(["glass rounded-xl p-4 animate-slide-up",p.status==="disconnected"?"opacity-60":""])},[d("div",ql,[d("div",Jl,[d("span",{class:Se(["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),d("div",null,[d("div",Gl,[p.topicName?(k(),P(le,{key:0},[d("span",Yl,j(p.topicName),1),d("span",Zl," (thread "+j(p.threadId)+")",1)],64)):p.threadId!=null?(k(),P(le,{key:1},[cr("Thread "+j(p.threadId),1)],64)):(k(),P("span",Ql,"Awaiting start_session…"))]),d("div",Xl,j(p.mcpSessionId.slice(0,12))+"...",1)])]),d("div",ea,[d("div",ta,[d("span",{class:Se(["text-sm font-medium",i(p).color])},j(i(p).label),3),l(p)?(k(),P("span",{key:0,class:Se(["text-xs ml-2",a(p)])},j(l(p)),3)):de("",!0)]),d("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"},ya={class:"text-xs text-muted"},ba={class:"text-xs text-muted"},_a=mt({__name:"MemoryNotesTab",setup(e){const t=V([]),s=V(!1),n=V(""),o=V("created_at"),r=V("");let i=null;async function l(){s.value=!0;try{const u=r.value.trim();let p;if(u)p=await ce(`/api/search?q=${encodeURIComponent(u)}&limit=50`);else{const g=new URLSearchParams({limit:"50",sort:o.value});n.value&&g.set("type",n.value),p=await ce(`/api/notes?${g}`)}t.value=p}finally{s.value=!1}}function a(){i&&clearTimeout(i),i=setTimeout(l,300)}function h(u){if(!u)return"never";const p=Date.now()-new Date(u).getTime(),g=Math.floor(p/6e4);if(g<1)return"just now";if(g<60)return`${g}m ago`;const C=Math.floor(g/60);return C<24?`${C}h ago`:`${Math.floor(C/24)}d ago`}return gt(l),(u,p)=>(k(),P("div",oa,[d("div",ra,[me(d("input",{"onUpdate:modelValue":p[0]||(p[0]=g=>r.value=g),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),[[Ae,r.value]]),me(d("select",{"onUpdate:modelValue":p[1]||(p[1]=g=>n.value=g),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]=[Fe('<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),[[Qs,n.value]]),me(d("select",{"onUpdate:modelValue":p[2]||(p[2]=g=>o.value=g),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]=[d("option",{value:"created_at"},"Newest",-1),d("option",{value:"confidence"},"Confidence",-1),d("option",{value:"access_count"},"Most accessed",-1)])],544),[[Qs,o.value]])]),s.value?(k(),P("div",ia,"Loading notes...")):t.value.length===0?(k(),P("div",la,"No notes found")):(k(),P("div",aa,[(k(!0),P(le,null,nt(t.value,g=>(k(),P("div",{key:g.noteId,class:Se(["glass rounded-xl p-4 animate-fade-in",`priority-${g.priority||0}`])},[d("div",ca,[d("div",ua,[d("div",fa,[d("span",{class:Se(["type-badge",`type-${g.type}`])},j(g.type),3),g.priority>=2?(k(),P("span",da,"HIGH IMPORTANCE")):g.priority===1?(k(),P("span",pa,"NOTABLE")):de("",!0),d("span",ha,j(g.noteId),1)]),d("p",ma,j(g.content),1),d("div",ga,[(k(!0),P(le,null,nt(g.keywords||[],C=>(k(),P("span",{key:C,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},j(C),1))),128))])]),d("div",xa,[d("div",va,j(((Number(g.confidence)||0)*100).toFixed(0))+"%",1),d("div",ya,j(h(g.createdAt)),1),d("div",ba,j(g.accessCount??0)+" hits",1)])])],2))),128))]))]))}}),wa={class:"animate-fade-in"},Sa={class:"flex items-center gap-3 mb-4"},Ca=["disabled"],Ta={key:0,class:"text-center py-12 text-textSecondary text-sm"},$a={key:1,class:"text-center py-12 text-textSecondary"},Ea={key:2,class:"space-y-2"},ka={class:"flex items-start gap-3"},Pa={class:"text-lg"},Aa={class:"flex-1 min-w-0"},Ma={class:"flex items-center gap-2 mb-1"},Oa={class:"type-badge type-fact"},Ia={class:"text-xs text-textSecondary font-mono"},Ra={class:"text-xs text-muted"},Da={class:"text-sm text-textSecondary leading-relaxed break-words"},La={class:"text-xs text-muted shrink-0"},Na=mt({__name:"EpisodesTab",setup(e){const t=V([]),s=V(!1),n=V(""),o=V(!1),r={text:"💬",voice:"🎤",image:"🖼️",file:"📎",system:"⚙️"};async function i(){s.value=!0;try{let h="/api/episodes?limit=30";n.value&&(h+=`&threadId=${n.value}`),t.value=await ce(h),o.value=!0}finally{s.value=!1}}function l(h){if(!h)return"never";const u=Date.now()-new Date(h).getTime(),p=Math.floor(u/6e4);if(p<1)return"just now";if(p<60)return`${p}m ago`;const g=Math.floor(p/60);return g<24?`${g}h ago`:`${Math.floor(g/24)}d ago`}function a(h){return h?typeof h=="object"?JSON.stringify(h).slice(0,300):String(h).slice(0,300):"(no content)"}return(h,u)=>(k(),P("div",wa,[d("div",Sa,[me(d("input",{"onUpdate:modelValue":u[0]||(u[0]=p=>n.value=p),type:"number",placeholder:"Thread ID (optional)",class:"w-48 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,512),[[Ae,n.value]]),d("button",{onClick:i,disabled:s.value,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-sm font-medium transition"},j(s.value?"Loading...":"Load"),9,Ca)]),o.value?t.value.length===0?(k(),P("div",$a,"No episodes")):(k(),P("div",Ea,[(k(!0),P(le,null,nt(t.value,p=>(k(),P("div",{key:p.episodeId,class:"glass rounded-xl p-4 animate-fade-in"},[d("div",ka,[d("span",Pa,j(r[p.modality]||"📝"),1),d("div",Aa,[d("div",Ma,[d("span",Oa,j(p.type||"unknown"),1),d("span",Ia,j(p.episodeId||"-"),1),d("span",Ra,j(l(p.createdAt)),1)]),d("p",Da,j(a(p.content)),1)]),d("div",La,"imp: "+j(((Number(p.importance)||0)*100).toFixed(0))+"%",1)])]))),128))])):(k(),P("div",Ta,'Click "Load" to fetch episodes'))]))}}),ja={class:"animate-fade-in"},Fa={key:0,class:"text-center py-12 text-textSecondary"},Ha={key:1,class:"text-center py-12 text-textSecondary"},Va={key:2,class:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3"},Ua={class:"font-medium text-sm"},Ba={class:"flex items-center justify-between mt-2"},Ka={class:"text-lg font-bold font-mono text-accent"},Wa={class:"text-xs text-muted"},za=mt({__name:"TopicsTab",setup(e){const t=V([]),s=V(!0);async function n(){s.value=!0;try{t.value=await ce("/api/topics")}finally{s.value=!1}}function o(a){return(a.semanticCount||0)+(a.proceduralCount||0)}function r(a){if(!a)return"never";const h=Date.now()-new Date(a).getTime(),u=Math.floor(h/6e4);if(u<1)return"just now";if(u<60)return`${u}m ago`;const p=Math.floor(u/60);return p<24?`${p}h ago`:`${Math.floor(p/24)}d ago`}const i=()=>t.value.slice().sort((a,h)=>o(h)-o(a)),l=()=>{const a=t.value.map(h=>o(h));return Math.max(...a,1)};return gt(n),(a,h)=>(k(),P("div",ja,[s.value?(k(),P("div",Fa,"Loading topics...")):t.value.length===0?(k(),P("div",Ha,"No topics yet")):(k(),P("div",Va,[(k(!0),P(le,null,nt(i(),u=>(k(),P("div",{key:u.topic,class:"glass rounded-xl p-4 animate-slide-up",style:Qt({borderLeft:`3px solid rgba(99,102,241,${Math.max(.15,o(u)/l())})`})},[d("div",Ua,j(u.topic||"Unknown"),1),d("div",Ba,[d("span",Ka,j(o(u)),1),d("span",Wa,j(r(u.lastUpdated)),1)])],4))),128))]))]))}}),qa={class:"animate-fade-in space-y-6"},Ja={class:"glass rounded-xl p-4"},Ga={class:"flex flex-wrap items-center gap-4 mb-4"},Ya={key:0,class:"text-sm text-success"},Za={class:"flex flex-wrap items-center gap-3"},Qa={key:0,class:"text-sm text-success"},Xa={class:"flex flex-wrap items-center gap-3 mb-4"},ec={key:0,class:"text-sm text-success"},tc={class:"glass rounded-xl p-6"},sc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},nc={class:"flex items-center gap-2"},oc={key:0,class:"text-sm text-success"},rc={key:0,class:"mb-3"},ic={class:"mt-4"},lc=["innerHTML"],ac={class:"glass rounded-xl p-6"},cc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},uc={class:"flex items-center gap-2"},fc={key:0,class:"text-sm text-success"},dc={class:"mb-4 flex flex-wrap items-center gap-3"},pc={class:"flex items-center gap-2"},hc={class:"font-mono text-sm text-textPrimary"},mc={key:0,class:"mb-3"},gc={class:"flex flex-wrap gap-2 mb-3"},xc=["onClick"],vc={class:"mt-4"},yc=["innerHTML"],bc=mt({__name:"TemplatesTab",setup(e){function t($){return $.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=V("copilot"),n=V(""),o=V(""),r=V(""),i=V(50),l=V(""),a=V(""),h=V(!0),u=V(""),p=V(!1),g=V(""),C=V(!0),U=V(""),O=V(!1),W=V([]),M=V("");async function H(){await Promise.all([z(),R(),D(),A(),L()])}async function z(){try{const $=await ce("/api/settings/agent-type");s.value=$.agentType||"copilot"}catch{}}async function R(){try{const $=await ce("/api/settings/claude-mcp-config");o.value=$.path||""}catch{}}async function D(){try{const $=await ce("/api/settings/bootstrap-message-count");i.value=$.count??50}catch{}}async function A(){try{const $=await ce("/api/templates");if($.templates&&$.templates.length>0){const S=$.templates[0];a.value=S.content||"",h.value=S.isDefault??!0}}catch{}}async function L(){try{const[$,S,oe]=await Promise.all([ce("/api/templates/drive"),ce("/api/templates/drive-presets"),ce("/api/settings/dmn-activation-hours")]);W.value=S.presets||[],M.value=String(oe.value??"not set"),$.custom?(g.value=$.custom,C.value=!1):(g.value=$.default||"",C.value=!0)}catch{}}async function ne(){try{await ce("/api/settings/agent-type",{method:"POST",body:JSON.stringify({agentType:s.value})}),await ce("/api/templates/reminders",{method:"DELETE"}),n.value="Saved ✓",setTimeout(()=>{n.value=""},3e3),await A()}catch($){n.value="Error: "+$.message}}async function Y(){try{await ce("/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($){l.value="Error: "+$.message}}async function ae(){const $=o.value.trim();if(!$){r.value="Path is empty",setTimeout(()=>{r.value=""},3e3);return}try{await ce("/api/settings/claude-mcp-config",{method:"POST",body:JSON.stringify({path:$})}),r.value="Saved ✓",setTimeout(()=>{r.value=""},3e3)}catch(S){r.value="Error: "+S.message}}async function ke(){try{const $=await fetch("/api/templates/reminders",{method:"POST",headers:{Authorization:`Bearer ${bt()}`,"Content-Type":"application/json"},body:JSON.stringify({content:a.value})});if(!$.ok)throw new Error($.statusText);h.value=!1,u.value="Saved ✓",setTimeout(()=>{u.value=""},3e3)}catch($){u.value="Error: "+$.message}}async function qe(){if(confirm("Reset to default template? Your customizations will be lost."))try{const $=await fetch("/api/templates/reminders",{method:"DELETE",headers:{Authorization:`Bearer ${bt()}`}});if(!$.ok)throw new Error($.statusText);await A(),u.value="Reset to default ✓",setTimeout(()=>{u.value=""},3e3)}catch($){u.value="Error: "+$.message}}async function Ce(){const $=g.value;if(!$.trim()){U.value="Template is empty — load a preset first",setTimeout(()=>{U.value=""},3e3);return}try{const S=await fetch("/api/templates/drive",{method:"POST",headers:{Authorization:`Bearer ${bt()}`,"Content-Type":"application/json"},body:JSON.stringify({content:$})});if(!S.ok)throw new Error(S.statusText);C.value=!1,U.value="Saved ✓",setTimeout(()=>{U.value=""},3e3)}catch(S){U.value="Error: "+S.message}}async function xt(){if(confirm("Reset drive template? The custom template will be removed."))try{const $=await fetch("/api/templates/drive",{method:"DELETE",headers:{Authorization:`Bearer ${bt()}`}});if(!$.ok)throw new Error($.statusText);await L(),U.value="Reset to default ✓",setTimeout(()=>{U.value=""},3e3)}catch($){U.value="Error: "+$.message}}function ts($){g.value=$.content,C.value=!1}const ue=Et(()=>t(a.value)),se=Et(()=>g.value?t(g.value):'<span style="color:#6b7280">(no template loaded)</span>');return gt(H),($,S)=>(k(),P("div",qa,[d("div",Ja,[d("div",Ga,[S[8]||(S[8]=d("label",{class:"text-sm font-medium text-textSecondary"},"Agent Type",-1)),me(d("select",{"onUpdate:modelValue":S[0]||(S[0]=oe=>s.value=oe),onChange:ne,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},[...S[7]||(S[7]=[d("option",{value:"copilot"},"Copilot",-1),d("option",{value:"claude"},"Claude",-1),d("option",{value:"cursor"},"Cursor",-1)])],544),[[Qs,s.value]]),n.value?(k(),P("span",Ya,j(n.value),1)):de("",!0),S[9]||(S[9]=d("span",{class:"text-xs text-muted"},"Changes which default reminders template is used",-1))]),d("div",Za,[S[10]||(S[10]=d("label",{class:"text-sm font-medium text-textSecondary"},"Claude MCP Config Path",-1)),me(d("input",{"onUpdate:modelValue":S[1]||(S[1]=oe=>o.value=oe),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),[[Ae,o.value]]),d("button",{onClick:ae,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save"),r.value?(k(),P("span",Qa,j(r.value),1)):de("",!0)]),d("div",Xa,[S[11]||(S[11]=d("label",{class:"text-sm font-medium text-textSecondary"},"Bootstrap Messages",-1)),me(d("input",{"onUpdate:modelValue":S[2]||(S[2]=oe=>i.value=oe),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),[[Ae,i.value,void 0,{number:!0}]]),d("button",{onClick:Y,class:"px-4 py-2 rounded-xl bg-accent text-white text-sm font-medium hover:bg-accent/80 transition-colors"},"Save"),l.value?(k(),P("span",ec,j(l.value),1)):de("",!0),S[12]||(S[12]=d("span",{class:"text-xs text-muted"},"Number of recent messages injected as warm context (0 = off)",-1))])]),d("div",tc,[d("div",sc,[S[13]||(S[13]=d("div",null,[d("h3",{class:"text-lg font-semibold"},"Reminders Template"),d("p",{class:"text-sm text-textSecondary mt-1"},"Edit the system prompt template sent with every reminder")],-1)),d("div",nc,[u.value?(k(),P("span",oc,j(u.value),1)):de("",!0),d("button",{onClick:qe,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"),d("button",{onClick:ke,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),h.value?(k(),P("div",rc,[...S[14]||(S[14]=[d("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"USING DEFAULT — edit and save to customize",-1)])])):de("",!0),me(d("textarea",{"onUpdate:modelValue":S[3]||(S[3]=oe=>a.value=oe),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),[[Ae,a.value]]),d("div",ic,[d("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:S[4]||(S[4]=oe=>p.value=!p.value)},[(k(),P("svg",{class:Se(["w-4 h-4 text-textSecondary transition-transform",p.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...S[15]||(S[15]=[d("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),S[16]||(S[16]=d("span",{class:"text-sm font-medium text-textSecondary"},"Preview with highlighted variables",-1))]),p.value?(k(),P("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:ue.value},null,8,lc)):de("",!0)]),S[17]||(S[17]=Fe('<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))]),d("div",ac,[d("div",cc,[S[18]||(S[18]=d("div",null,[d("h3",{class:"text-lg font-semibold"},"Drive Framing Template"),d("p",{class:"text-sm text-textSecondary mt-1"},"Customize the autonomous drive prompt sent when the operator is away")],-1)),d("div",uc,[U.value?(k(),P("span",fc,j(U.value),1)):de("",!0),d("button",{onClick:xt,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"),d("button",{onClick:Ce,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),d("div",dc,[S[20]||(S[20]=d("label",{class:"text-sm text-textSecondary"},"Drive Activation Period:",-1)),d("div",pc,[d("span",hc,j(M.value),1),S[19]||(S[19]=d("span",{class:"text-sm text-textSecondary"},"hours",-1))]),S[21]||(S[21]=d("span",{class:"text-xs text-muted"},"(informational — set via DMN_ACTIVATION_HOURS env var)",-1))]),C.value?(k(),P("div",mc,[...S[22]||(S[22]=[d("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"(Default — edit to override)",-1)])])):de("",!0),d("div",gc,[S[23]||(S[23]=d("span",{class:"text-sm text-textSecondary self-center"},"Presets:",-1)),(k(!0),P(le,null,nt(W.value,oe=>(k(),P("button",{key:oe.key,onClick:rt=>ts(oe),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(oe.label),9,xc))),128))]),me(d("textarea",{"onUpdate:modelValue":S[5]||(S[5]=oe=>g.value=oe),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),[[Ae,g.value]]),d("div",vc,[d("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:S[6]||(S[6]=oe=>O.value=!O.value)},[(k(),P("svg",{class:Se(["w-4 h-4 text-textSecondary transition-transform",O.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...S[24]||(S[24]=[d("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),S[25]||(S[25]=d("span",{class:"text-sm font-medium text-textSecondary"},"Preview with sample values",-1))]),O.value?(k(),P("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:se.value},null,8,yc)):de("",!0)]),S[26]||(S[26]=Fe('<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))])]))}}),_c={class:"animate-fade-in"},wc={class:"glass rounded-xl p-6 mb-6"},Sc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Cc={key:0,class:"glass rounded-xl p-4 mb-4 border border-accent/30"},Tc={class:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-3"},$c={class:"flex items-center gap-4 mb-3"},Ec={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer"},kc={class:"flex items-center gap-2"},Pc={key:0,class:"text-sm text-warn"},Ac={key:1,class:"text-center py-8 text-textSecondary text-sm"},Mc={key:2,class:"text-center text-textSecondary py-12"},Oc={key:3,class:"space-y-2"},Ic=["onClick"],Rc={class:"flex items-start justify-between gap-3"},Dc={class:"flex-1 min-w-0"},Lc={class:"flex items-center gap-2 mb-1"},Nc={class:"font-medium text-sm"},jc={key:0,class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},Fc={class:"flex flex-wrap gap-1.5 mt-1"},Hc=["title"],Vc={key:0,class:"glass rounded-xl p-6"},Uc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Bc={class:"text-lg font-semibold"},Kc={class:"text-sm text-textSecondary mt-1"},Wc={class:"flex items-center gap-2"},zc={key:0,class:"text-sm text-success"},qc={class:"grid grid-cols-1 sm:grid-cols-3 gap-3 mb-4"},Jc=["value"],Gc={class:"flex items-end"},Yc={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer pb-2"},Zc=mt({__name:"SkillsTab",setup(e){const t=V([]),s=V(!0),n=V(null),o=V(""),r=V(""),i=V(!1),l=V(""),a=V(!1),h=V(""),u=V(""),p=V(!1),g=V("");async function C(){s.value=!0;try{const D=await ce("/api/skills");t.value=D.skills||[]}finally{s.value=!1}}function U(D){return D?D.includes(".remote-copilot-mcp")&&D.includes("skills")?"user":D.endsWith(".default.md")?"default":D.endsWith(".skill.md")?"project":"unknown":"unknown"}function O(D){const A={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 A[D]||A.unknown}function W(D){n.value=D,o.value=D.content,r.value=(D.triggers||[]).join(", "),i.value=!!D.replacesOrchestrator,a.value=!1}function M(){n.value=null}function H(D,A,L,ne){let Y=`---
|
|
65
|
-
name: ${
|
|
64
|
+
**/let Zs;const Kn=typeof window<"u"&&window.trustedTypes;if(Kn)try{Zs=Kn.createPolicy("vue",{createHTML:e=>e})}catch{}const dr=Zs?e=>Zs.createHTML(e):e=>e,ml="http://www.w3.org/2000/svg",gl="http://www.w3.org/1998/Math/MathML",Ge=typeof document<"u"?document:null,Wn=Ge&&Ge.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"?Ge.createElementNS(ml,e):t==="mathml"?Ge.createElementNS(gl,e):s?Ge.createElement(e,{is:s}):Ge.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>Ge.createTextNode(e),createComment:e=>Ge.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ge.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{Wn.innerHTML=dr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Wn.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 yl(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 zn=Symbol("_vod"),bl=Symbol("_vsh"),_l=Symbol(""),wl=/(?:^|;)\s*display\s*:/;function Sl(e,t,s){const n=e.style,o=re(s);let r=!1;if(s&&!o){if(t)if(re(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();s[l]==null&&fs(n,l,"")}else for(const i in t)s[i]==null&&fs(n,i,"");for(const i in s)i==="display"&&(r=!0),fs(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");zn in e&&(e[zn]=r?n.display:"",e[bl]&&(n.display="none"))}const qn=/\s*!important$/;function fs(e,t,s){if(H(s))s.forEach(n=>fs(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Cl(e,t);qn.test(s)?e.setProperty(ct(n),s.replace(qn,""),"important"):e[n]=s}}const Jn=["Webkit","Moz","ms"],Fs={};function Cl(e,t){const s=Fs[t];if(s)return s;let n=_e(t);if(n!=="filter"&&n in e)return Fs[t]=n;n=_s(n);for(let o=0;o<Jn.length;o++){const r=Jn[o]+n;if(r in e)return Fs[t]=r}return t}const Gn="http://www.w3.org/1999/xlink";function Yn(e,t,s,n,o,r=Tr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Gn,t.slice(6,t.length)):e.setAttributeNS(Gn,t,s):s==null||r&&!po(s)?e.removeAttribute(t):e.setAttribute(t,r?"":We(s)?String(s):s)}function Zn(e,t,s,n,o){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?dr(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=po(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 lt(e,t,s,n){e.addEventListener(t,s,n)}function Tl(e,t,s,n){e.removeEventListener(t,s,n)}const Qn=Symbol("_vei");function $l(e,t,s,n,o=null){const r=e[Qn]||(e[Qn]={}),i=r[t];if(n&&i)i.value=n;else{const[l,c]=kl(t);if(n){const d=r[t]=Ml(n,o);lt(e,l,d,c)}else i&&(Tl(e,l,i,c),r[t]=void 0)}}const Xn=/(?:Once|Passive|Capture)$/;function kl(e){let t;if(Xn.test(e)){t={};let n;for(;n=e.match(Xn);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ct(e.slice(2)),t]}let Hs=0;const El=Promise.resolve(),Al=()=>Hs||(El.then(()=>Hs=0),Hs=Date.now());function Ml(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;ze(Pl(n,s.value),t,5,[n])};return s.value=e,s.attached=Al(),s}function Pl(e,t){if(H(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 eo=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"?yl(e,n,i):t==="style"?Sl(e,s,n):vs(t)?ys(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))?(Zn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Yn(e,t,n,i,r,t!=="value")):e._isVueCE&&(Rl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!re(n)))?Zn(e,_e(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Yn(e,t,n,i))};function Il(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&eo(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 eo(t)&&re(s)?!1:t in e}function Rl(e,t){const s=e._def.props;if(!s)return!1;const n=_e(t);return Array.isArray(s)?s.some(o=>_e(o)===n):Object.keys(s).some(o=>_e(o)===n)}const Et=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?s=>ls(t,s):t};function Dl(e){e.target.composing=!0}function to(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Xe=Symbol("_assign");function so(e,t,s){return t&&(e=e.trim()),s&&(e=ws(e)),e}const Ce={created(e,{modifiers:{lazy:t,trim:s,number:n}},o){e[Xe]=Et(o);const r=n||o.props&&o.props.type==="number";lt(e,t?"change":"input",i=>{i.target.composing||e[Xe](so(e.value,s,r))}),(s||r)&<(e,"change",()=>{e.value=so(e.value,s,r)}),t||(lt(e,"compositionstart",Dl),lt(e,"compositionend",to),lt(e,"change",to))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:o,number:r}},i){if(e[Xe]=Et(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?ws(e.value):e.value,c=t??"";if(l===c)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(n&&t===s||o&&e.value.trim()===c)||(e.value=c)}},no={deep:!0,created(e,t,s){e[Xe]=Et(s),lt(e,"change",()=>{const n=e._modelValue,o=Yt(e),r=e.checked,i=e[Xe];if(H(n)){const l=sn(n,o),c=l!==-1;if(r&&!c)i(n.concat(o));else if(!r&&c){const d=[...n];d.splice(l,1),i(d)}}else if(At(n)){const l=new Set(n);r?l.add(o):l.delete(o),i(l)}else i(pr(e,r))})},mounted:oo,beforeUpdate(e,t,s){e[Xe]=Et(s),oo(e,t,s)}};function oo(e,{value:t,oldValue:s},n){e._modelValue=t;let o;if(H(t))o=sn(t,n.props.value)>-1;else if(At(t))o=t.has(n.props.value);else{if(t===s)return;o=Mt(t,pr(e,!0))}e.checked!==o&&(e.checked=o)}const Qs={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const o=At(t);lt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?ws(Yt(i)):Yt(i));e[Xe](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,Oo(()=>{e._assigning=!1})}),e[Xe]=Et(n)},mounted(e,{value:t}){ro(e,t)},beforeUpdate(e,t,s){e[Xe]=Et(s)},updated(e,{value:t}){e._assigning||ro(e,t)}};function ro(e,t){const s=e.multiple,n=H(t);if(!(s&&!n&&!At(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],l=Yt(i);if(s)if(n){const c=typeof l;c==="string"||c==="number"?i.selected=t.some(d=>String(d)===String(l)):i.selected=sn(t,l)>-1}else i.selected=t.has(l);else if(Mt(Yt(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Yt(e){return"_value"in e?e._value:e.value}function pr(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const Ll={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},jl=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(o=>{if(!("key"in o))return;const r=ct(o.key);if(t.some(i=>i===r||Ll[i]===r))return e(o)}))},Nl=me({patchProp:Ol},xl);let io;function Fl(){return io||(io=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 re(e)?document.querySelector(e):e}let yn="";function Lt(e){yn=e}function mt(){return yn}async function ue(e,t){const s=await fetch(e,{...t,headers:{Authorization:`Bearer ${yn}`,"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=ut({__name:"SessionsTab",props:{status:{}},setup(e){const t=e,s=L([]),n=L(!0);async function o(){n.value=!0;try{const d=await ue("/api/status");s.value=(d.sessions||[]).slice().sort((a,p)=>a.status==="active"&&p.status!=="active"?-1:a.status!=="active"&&p.status==="active"?1:p.lastActivity-a.lastActivity)}finally{n.value=!1}}const r=kt(()=>{var a;return(((a=t.status)==null?void 0:a.sessions)??s.value).slice().sort((p,g)=>p.status==="active"&&g.status!=="active"?-1:p.status!=="active"&&g.status==="active"?1:g.lastActivity-p.lastActivity)});function i(d){const a=Math.floor((Date.now()-d.lastActivity)/6e4);return d.status==="disconnected"?{label:`Disconnected${a>0?` — ${a}m ago`:""}`,color:"text-muted"}:a<5?{label:"Active",color:"text-success"}:a<30?{label:`Idle ${a}m`,color:"text-warn"}:{label:`Dormant ${a}m`,color:"text-danger"}}function l(d){if(!d.lastWaitCallAt)return"";const a=Math.floor((Date.now()-d.lastWaitCallAt)/6e4);return a<5?`Polling — ${a===0?"just now":a+"m ago"}`:`Last poll — ${a}m ago`}function c(d){return d.lastWaitCallAt?Math.floor((Date.now()-d.lastWaitCallAt)/6e4)<5?"text-success":"text-warn":""}return ft(o),(d,a)=>($(),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(ae,null,nt(r.value,p=>($(),A("div",{key:p.mcpSessionId,class:de(["glass rounded-xl p-4 animate-slide-up",p.status==="disconnected"?"opacity-60":""])},[f("div",ql,[f("div",Jl,[f("span",{class:de(["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),f("div",null,[f("div",Gl,[p.topicName?($(),A(ae,{key:0},[f("span",Yl,O(p.topicName),1),f("span",Zl," (thread "+O(p.threadId)+")",1)],64)):p.threadId!=null?($(),A(ae,{key:1},[xn("Thread "+O(p.threadId),1)],64)):($(),A("span",Ql,"Awaiting start_session…"))]),f("div",Xl,O(p.mcpSessionId.slice(0,12))+"...",1)])]),f("div",ea,[f("div",ta,[f("span",{class:de(["text-sm font-medium",i(p).color])},O(i(p).label),3),l(p)?($(),A("span",{key:0,class:de(["text-xs ml-2",c(p)])},O(l(p)),3)):le("",!0)]),f("div",sa,O(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"},ya={class:"text-xs text-muted"},ba={class:"text-xs text-muted"},_a=ut({__name:"MemoryNotesTab",setup(e){const t=L([]),s=L(!1),n=L(""),o=L("created_at"),r=L("");let i=null;async function l(){s.value=!0;try{const a=r.value.trim();let p;if(a)p=await ue(`/api/search?q=${encodeURIComponent(a)}&limit=50`);else{const g=new URLSearchParams({limit:"50",sort:o.value});n.value&&g.set("type",n.value),p=await ue(`/api/notes?${g}`)}t.value=p}finally{s.value=!1}}function c(){i&&clearTimeout(i),i=setTimeout(l,300)}function d(a){if(!a)return"never";const p=Date.now()-new Date(a).getTime(),g=Math.floor(p/6e4);if(g<1)return"just now";if(g<60)return`${g}m ago`;const C=Math.floor(g/60);return C<24?`${C}h ago`:`${Math.floor(C/24)}d ago`}return ft(l),(a,p)=>($(),A("div",oa,[f("div",ra,[fe(f("input",{"onUpdate:modelValue":p[0]||(p[0]=g=>r.value=g),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),[[Ce,r.value]]),fe(f("select",{"onUpdate:modelValue":p[1]||(p[1]=g=>n.value=g),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]=[Fe('<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),[[Qs,n.value]]),fe(f("select",{"onUpdate:modelValue":p[2]||(p[2]=g=>o.value=g),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]=[f("option",{value:"created_at"},"Newest",-1),f("option",{value:"confidence"},"Confidence",-1),f("option",{value:"access_count"},"Most accessed",-1)])],544),[[Qs,o.value]])]),s.value?($(),A("div",ia,"Loading notes...")):t.value.length===0?($(),A("div",la,"No notes found")):($(),A("div",aa,[($(!0),A(ae,null,nt(t.value,g=>($(),A("div",{key:g.noteId,class:de(["glass rounded-xl p-4 animate-fade-in",`priority-${g.priority||0}`])},[f("div",ca,[f("div",ua,[f("div",fa,[f("span",{class:de(["type-badge",`type-${g.type}`])},O(g.type),3),g.priority>=2?($(),A("span",da,"HIGH IMPORTANCE")):g.priority===1?($(),A("span",pa,"NOTABLE")):le("",!0),f("span",ha,O(g.noteId),1)]),f("p",ma,O(g.content),1),f("div",ga,[($(!0),A(ae,null,nt(g.keywords||[],C=>($(),A("span",{key:C,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},O(C),1))),128))])]),f("div",xa,[f("div",va,O(((Number(g.confidence)||0)*100).toFixed(0))+"%",1),f("div",ya,O(d(g.createdAt)),1),f("div",ba,O(g.accessCount??0)+" hits",1)])])],2))),128))]))]))}}),wa={class:"animate-fade-in"},Sa={class:"flex items-center gap-3 mb-4"},Ca=["disabled"],Ta={key:0,class:"text-center py-12 text-textSecondary text-sm"},$a={key:1,class:"text-center py-12 text-textSecondary"},ka={key:2,class:"space-y-2"},Ea={class:"flex items-start gap-3"},Aa={class:"text-lg"},Ma={class:"flex-1 min-w-0"},Pa={class:"flex items-center gap-2 mb-1"},Oa={class:"type-badge type-fact"},Ia={class:"text-xs text-textSecondary font-mono"},Ra={class:"text-xs text-muted"},Da={class:"text-sm text-textSecondary leading-relaxed break-words"},La={class:"text-xs text-muted shrink-0"},ja=ut({__name:"EpisodesTab",setup(e){const t=L([]),s=L(!1),n=L(""),o=L(!1),r={text:"💬",voice:"🎤",image:"🖼️",file:"📎",system:"⚙️"};async function i(){s.value=!0;try{let d="/api/episodes?limit=30";n.value&&(d+=`&threadId=${n.value}`),t.value=await ue(d),o.value=!0}finally{s.value=!1}}function l(d){if(!d)return"never";const a=Date.now()-new Date(d).getTime(),p=Math.floor(a/6e4);if(p<1)return"just now";if(p<60)return`${p}m ago`;const g=Math.floor(p/60);return g<24?`${g}h ago`:`${Math.floor(g/24)}d ago`}function c(d){return d?typeof d=="object"?JSON.stringify(d).slice(0,300):String(d).slice(0,300):"(no content)"}return(d,a)=>($(),A("div",wa,[f("div",Sa,[fe(f("input",{"onUpdate:modelValue":a[0]||(a[0]=p=>n.value=p),type:"number",placeholder:"Thread ID (optional)",class:"w-48 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,512),[[Ce,n.value]]),f("button",{onClick:i,disabled:s.value,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-sm font-medium transition"},O(s.value?"Loading...":"Load"),9,Ca)]),o.value?t.value.length===0?($(),A("div",$a,"No episodes")):($(),A("div",ka,[($(!0),A(ae,null,nt(t.value,p=>($(),A("div",{key:p.episodeId,class:"glass rounded-xl p-4 animate-fade-in"},[f("div",Ea,[f("span",Aa,O(r[p.modality]||"📝"),1),f("div",Ma,[f("div",Pa,[f("span",Oa,O(p.type||"unknown"),1),f("span",Ia,O(p.episodeId||"-"),1),f("span",Ra,O(l(p.createdAt)),1)]),f("p",Da,O(c(p.content)),1)]),f("div",La,"imp: "+O(((Number(p.importance)||0)*100).toFixed(0))+"%",1)])]))),128))])):($(),A("div",Ta,'Click "Load" to fetch episodes'))]))}}),Na={class:"animate-fade-in"},Fa={key:0,class:"text-center py-12 text-textSecondary"},Ha={key:1,class:"text-center py-12 text-textSecondary"},Va={key:2,class:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3"},Ua={class:"font-medium text-sm"},Ba={class:"flex items-center justify-between mt-2"},Ka={class:"text-lg font-bold font-mono text-accent"},Wa={class:"text-xs text-muted"},za=ut({__name:"TopicsTab",setup(e){const t=L([]),s=L(!0);async function n(){s.value=!0;try{t.value=await ue("/api/topics")}finally{s.value=!1}}function o(c){return(c.semanticCount||0)+(c.proceduralCount||0)}function r(c){if(!c)return"never";const d=Date.now()-new Date(c).getTime(),a=Math.floor(d/6e4);if(a<1)return"just now";if(a<60)return`${a}m ago`;const p=Math.floor(a/60);return p<24?`${p}h ago`:`${Math.floor(p/24)}d ago`}const i=()=>t.value.slice().sort((c,d)=>o(d)-o(c)),l=()=>{const c=t.value.map(d=>o(d));return Math.max(...c,1)};return ft(n),(c,d)=>($(),A("div",Na,[s.value?($(),A("div",Fa,"Loading topics...")):t.value.length===0?($(),A("div",Ha,"No topics yet")):($(),A("div",Va,[($(!0),A(ae,null,nt(i(),a=>($(),A("div",{key:a.topic,class:"glass rounded-xl p-4 animate-slide-up",style:Qt({borderLeft:`3px solid rgba(99,102,241,${Math.max(.15,o(a)/l())})`})},[f("div",Ua,O(a.topic||"Unknown"),1),f("div",Ba,[f("span",Ka,O(o(a)),1),f("span",Wa,O(r(a.lastUpdated)),1)])],4))),128))]))]))}}),qa={class:"animate-fade-in space-y-6"},Ja={class:"glass rounded-xl p-4"},Ga={class:"flex flex-wrap items-center gap-4 mb-4"},Ya={key:0,class:"text-sm text-success"},Za={class:"flex flex-wrap items-center gap-3"},Qa={key:0,class:"text-sm text-success"},Xa={class:"flex flex-wrap items-center gap-3 mb-4"},ec={key:0,class:"text-sm text-success"},tc={class:"glass rounded-xl p-6"},sc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},nc={class:"flex items-center gap-2"},oc={key:0,class:"text-sm text-success"},rc={key:0,class:"mb-3"},ic={class:"mt-4"},lc=["innerHTML"],ac={class:"glass rounded-xl p-6"},cc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},uc={class:"flex items-center gap-2"},fc={key:0,class:"text-sm text-success"},dc={class:"mb-4 flex flex-wrap items-center gap-3"},pc={class:"flex items-center gap-2"},hc={class:"font-mono text-sm text-textPrimary"},mc={key:0,class:"mb-3"},gc={class:"flex flex-wrap gap-2 mb-3"},xc=["onClick"],vc={class:"mt-4"},yc=["innerHTML"],bc=ut({__name:"TemplatesTab",setup(e){function t(k){return k.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=L("copilot"),n=L(""),o=L(""),r=L(""),i=L(50),l=L(""),c=L(""),d=L(!0),a=L(""),p=L(!1),g=L(""),C=L(!0),U=L(""),I=L(!1),W=L([]),P=L("");async function V(){await Promise.all([z(),D(),j(),M(),N()])}async function z(){try{const k=await ue("/api/settings/agent-type");s.value=k.agentType||"copilot"}catch{}}async function D(){try{const k=await ue("/api/settings/claude-mcp-config");o.value=k.path||""}catch{}}async function j(){try{const k=await ue("/api/settings/bootstrap-message-count");i.value=k.count??50}catch{}}async function M(){try{const k=await ue("/api/templates");if(k.templates&&k.templates.length>0){const S=k.templates[0];c.value=S.content||"",d.value=S.isDefault??!0}}catch{}}async function N(){try{const[k,S,oe]=await Promise.all([ue("/api/templates/drive"),ue("/api/templates/drive-presets"),ue("/api/settings/dmn-activation-hours")]);W.value=S.presets||[],P.value=String(oe.value??"not set"),k.custom?(g.value=k.custom,C.value=!1):(g.value=k.default||"",C.value=!0)}catch{}}async function ne(){try{await ue("/api/settings/agent-type",{method:"POST",body:JSON.stringify({agentType:s.value})}),await ue("/api/templates/reminders",{method:"DELETE"}),n.value="Saved ✓",setTimeout(()=>{n.value=""},3e3),await M()}catch(k){n.value="Error: "+k.message}}async function Y(){try{await ue("/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(k){l.value="Error: "+k.message}}async function ce(){const k=o.value.trim();if(!k){r.value="Path is empty",setTimeout(()=>{r.value=""},3e3);return}try{await ue("/api/settings/claude-mcp-config",{method:"POST",body:JSON.stringify({path:k})}),r.value="Saved ✓",setTimeout(()=>{r.value=""},3e3)}catch(S){r.value="Error: "+S.message}}async function Ae(){try{const k=await fetch("/api/templates/reminders",{method:"POST",headers:{Authorization:`Bearer ${mt()}`,"Content-Type":"application/json"},body:JSON.stringify({content:c.value})});if(!k.ok)throw new Error(k.statusText);d.value=!1,a.value="Saved ✓",setTimeout(()=>{a.value=""},3e3)}catch(k){a.value="Error: "+k.message}}async function qe(){if(confirm("Reset to default template? Your customizations will be lost."))try{const k=await fetch("/api/templates/reminders",{method:"DELETE",headers:{Authorization:`Bearer ${mt()}`}});if(!k.ok)throw new Error(k.statusText);await M(),a.value="Reset to default ✓",setTimeout(()=>{a.value=""},3e3)}catch(k){a.value="Error: "+k.message}}async function Te(){const k=g.value;if(!k.trim()){U.value="Template is empty — load a preset first",setTimeout(()=>{U.value=""},3e3);return}try{const S=await fetch("/api/templates/drive",{method:"POST",headers:{Authorization:`Bearer ${mt()}`,"Content-Type":"application/json"},body:JSON.stringify({content:k})});if(!S.ok)throw new Error(S.statusText);C.value=!1,U.value="Saved ✓",setTimeout(()=>{U.value=""},3e3)}catch(S){U.value="Error: "+S.message}}async function vt(){if(confirm("Reset drive template? The custom template will be removed."))try{const k=await fetch("/api/templates/drive",{method:"DELETE",headers:{Authorization:`Bearer ${mt()}`}});if(!k.ok)throw new Error(k.statusText);await N(),U.value="Reset to default ✓",setTimeout(()=>{U.value=""},3e3)}catch(k){U.value="Error: "+k.message}}function ts(k){g.value=k.content,C.value=!1}const pe=kt(()=>t(c.value)),se=kt(()=>g.value?t(g.value):'<span style="color:#6b7280">(no template loaded)</span>');return ft(V),(k,S)=>($(),A("div",qa,[f("div",Ja,[f("div",Ga,[S[8]||(S[8]=f("label",{class:"text-sm font-medium text-textSecondary"},"Agent Type",-1)),fe(f("select",{"onUpdate:modelValue":S[0]||(S[0]=oe=>s.value=oe),onChange:ne,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},[...S[7]||(S[7]=[f("option",{value:"copilot"},"Copilot",-1),f("option",{value:"claude"},"Claude",-1),f("option",{value:"cursor"},"Cursor",-1)])],544),[[Qs,s.value]]),n.value?($(),A("span",Ya,O(n.value),1)):le("",!0),S[9]||(S[9]=f("span",{class:"text-xs text-muted"},"Changes which default reminders template is used",-1))]),f("div",Za,[S[10]||(S[10]=f("label",{class:"text-sm font-medium text-textSecondary"},"Claude MCP Config Path",-1)),fe(f("input",{"onUpdate:modelValue":S[1]||(S[1]=oe=>o.value=oe),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),[[Ce,o.value]]),f("button",{onClick:ce,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save"),r.value?($(),A("span",Qa,O(r.value),1)):le("",!0)]),f("div",Xa,[S[11]||(S[11]=f("label",{class:"text-sm font-medium text-textSecondary"},"Bootstrap Messages",-1)),fe(f("input",{"onUpdate:modelValue":S[2]||(S[2]=oe=>i.value=oe),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),[[Ce,i.value,void 0,{number:!0}]]),f("button",{onClick:Y,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",ec,O(l.value),1)):le("",!0),S[12]||(S[12]=f("span",{class:"text-xs text-muted"},"Number of recent messages injected as warm context (0 = off)",-1))])]),f("div",tc,[f("div",sc,[S[13]||(S[13]=f("div",null,[f("h3",{class:"text-lg font-semibold"},"Reminders Template"),f("p",{class:"text-sm text-textSecondary mt-1"},"Edit the system prompt template sent with every reminder")],-1)),f("div",nc,[a.value?($(),A("span",oc,O(a.value),1)):le("",!0),f("button",{onClick:qe,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"),f("button",{onClick:Ae,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),d.value?($(),A("div",rc,[...S[14]||(S[14]=[f("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"USING DEFAULT — edit and save to customize",-1)])])):le("",!0),fe(f("textarea",{"onUpdate:modelValue":S[3]||(S[3]=oe=>c.value=oe),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),[[Ce,c.value]]),f("div",ic,[f("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:S[4]||(S[4]=oe=>p.value=!p.value)},[($(),A("svg",{class:de(["w-4 h-4 text-textSecondary transition-transform",p.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...S[15]||(S[15]=[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),S[16]||(S[16]=f("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:pe.value},null,8,lc)):le("",!0)]),S[17]||(S[17]=Fe('<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))]),f("div",ac,[f("div",cc,[S[18]||(S[18]=f("div",null,[f("h3",{class:"text-lg font-semibold"},"Drive Framing Template"),f("p",{class:"text-sm text-textSecondary mt-1"},"Customize the autonomous drive prompt sent when the operator is away")],-1)),f("div",uc,[U.value?($(),A("span",fc,O(U.value),1)):le("",!0),f("button",{onClick:vt,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"),f("button",{onClick:Te,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),f("div",dc,[S[20]||(S[20]=f("label",{class:"text-sm text-textSecondary"},"Drive Activation Period:",-1)),f("div",pc,[f("span",hc,O(P.value),1),S[19]||(S[19]=f("span",{class:"text-sm text-textSecondary"},"hours",-1))]),S[21]||(S[21]=f("span",{class:"text-xs text-muted"},"(informational — set via DMN_ACTIVATION_HOURS env var)",-1))]),C.value?($(),A("div",mc,[...S[22]||(S[22]=[f("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"(Default — edit to override)",-1)])])):le("",!0),f("div",gc,[S[23]||(S[23]=f("span",{class:"text-sm text-textSecondary self-center"},"Presets:",-1)),($(!0),A(ae,null,nt(W.value,oe=>($(),A("button",{key:oe.key,onClick:rt=>ts(oe),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"},O(oe.label),9,xc))),128))]),fe(f("textarea",{"onUpdate:modelValue":S[5]||(S[5]=oe=>g.value=oe),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),[[Ce,g.value]]),f("div",vc,[f("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:S[6]||(S[6]=oe=>I.value=!I.value)},[($(),A("svg",{class:de(["w-4 h-4 text-textSecondary transition-transform",I.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...S[24]||(S[24]=[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),S[25]||(S[25]=f("span",{class:"text-sm font-medium text-textSecondary"},"Preview with sample values",-1))]),I.value?($(),A("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:se.value},null,8,yc)):le("",!0)]),S[26]||(S[26]=Fe('<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))])]))}}),_c={class:"animate-fade-in"},wc={class:"glass rounded-xl p-6 mb-6"},Sc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Cc={key:0,class:"glass rounded-xl p-4 mb-4 border border-accent/30"},Tc={class:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-3"},$c={class:"flex items-center gap-4 mb-3"},kc={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer"},Ec={class:"flex items-center gap-2"},Ac={key:0,class:"text-sm text-warn"},Mc={key:1,class:"text-center py-8 text-textSecondary text-sm"},Pc={key:2,class:"text-center text-textSecondary py-12"},Oc={key:3,class:"space-y-2"},Ic=["onClick"],Rc={class:"flex items-start justify-between gap-3"},Dc={class:"flex-1 min-w-0"},Lc={class:"flex items-center gap-2 mb-1"},jc={class:"font-medium text-sm"},Nc={key:0,class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},Fc={class:"flex flex-wrap gap-1.5 mt-1"},Hc=["title"],Vc={key:0,class:"glass rounded-xl p-6"},Uc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Bc={class:"text-lg font-semibold"},Kc={class:"text-sm text-textSecondary mt-1"},Wc={class:"flex items-center gap-2"},zc={key:0,class:"text-sm text-success"},qc={class:"grid grid-cols-1 sm:grid-cols-3 gap-3 mb-4"},Jc=["value"],Gc={class:"flex items-end"},Yc={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer pb-2"},Zc=ut({__name:"SkillsTab",setup(e){const t=L([]),s=L(!0),n=L(null),o=L(""),r=L(""),i=L(!1),l=L(""),c=L(!1),d=L(""),a=L(""),p=L(!1),g=L("");async function C(){s.value=!0;try{const j=await ue("/api/skills");t.value=j.skills||[]}finally{s.value=!1}}function U(j){return j?j.includes(".remote-copilot-mcp")&&j.includes("skills")?"user":j.endsWith(".default.md")?"default":j.endsWith(".skill.md")?"project":"unknown":"unknown"}function I(j){const M={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 M[j]||M.unknown}function W(j){n.value=j,o.value=j.content,r.value=(j.triggers||[]).join(", "),i.value=!!j.replacesOrchestrator,c.value=!1}function P(){n.value=null}function V(j,M,N,ne){let Y=`---
|
|
65
|
+
name: ${j}
|
|
66
66
|
triggers:
|
|
67
|
-
`;return
|
|
68
|
-
`}),
|
|
67
|
+
`;return M.forEach(ce=>{Y+=` - ${ce.trim()}
|
|
68
|
+
`}),N&&(Y+=`replaces_orchestrator: true
|
|
69
69
|
`),Y+=`---
|
|
70
70
|
|
|
71
|
-
`,Y+ne}async function z(){if(!n.value)return;const
|
|
72
|
-
`);try{const Y=await fetch(`/api/skills/${encodeURIComponent(D)}`,{method:"PUT",headers:{Authorization:`Bearer ${bt()}`,"Content-Type":"application/json"},body:JSON.stringify({content:ne})});if(!Y.ok)throw new Error(Y.statusText);g.value="Created ✓",a.value=!1,await C();const ae=t.value.find(ke=>ke.name===D);ae&&W(ae)}catch(Y){g.value="Error: "+Y.message}}return gt(C),(D,A)=>(k(),P("div",_c,[d("div",wc,[d("div",Sc,[A[8]||(A[8]=d("div",null,[d("h3",{class:"text-lg font-semibold"},"Skill Library"),d("p",{class:"text-sm text-textSecondary mt-1"},"Manage intent-routing skills — user overrides, defaults, and project skills")],-1)),d("button",{onClick:A[0]||(A[0]=L=>{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?(k(),P("div",Cc,[A[12]||(A[12]=d("h4",{class:"text-sm font-semibold mb-3"},"Create New Skill",-1)),d("div",Tc,[d("div",null,[A[9]||(A[9]=d("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),me(d("input",{"onUpdate:modelValue":A[1]||(A[1]=L=>h.value=L),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),[[Ae,h.value]])]),d("div",null,[A[10]||(A[10]=d("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),me(d("input",{"onUpdate:modelValue":A[2]||(A[2]=L=>u.value=L),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),[[Ae,u.value]])])]),d("div",$c,[d("label",Ec,[me(d("input",{"onUpdate:modelValue":A[3]||(A[3]=L=>p.value=L),type:"checkbox",class:"rounded"},null,512),[[so,p.value]]),A[11]||(A[11]=d("span",null,"Replaces orchestrator",-1))])]),d("div",kc,[d("button",{onClick:R,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Create"),d("button",{onClick:A[4]||(A[4]=L=>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"),g.value?(k(),P("span",Pc,j(g.value),1)):de("",!0)])])):de("",!0),s.value?(k(),P("div",Ac,"Loading...")):t.value.length===0?(k(),P("div",Mc,"No skills loaded")):(k(),P("div",Oc,[(k(!0),P(le,null,nt(t.value,L=>{var ne;return k(),P("div",{key:L.name,onClick:Y=>W(L),class:Se(["glass rounded-xl p-4 cursor-pointer hover:bg-cardHover transition border",((ne=n.value)==null?void 0:ne.name)===L.name?"border-accent":"border-transparent"])},[d("div",Rc,[d("div",Dc,[d("div",Lc,[d("span",Nc,j(L.name),1),d("span",{class:"type-badge",style:Qt(O(U(L.source)))},j(U(L.source)),5),L.replacesOrchestrator?(k(),P("span",jc,"REPLACES ORCH")):de("",!0)]),d("div",Fc,[(k(!0),P(le,null,nt(L.triggers||[],Y=>(k(),P("span",{key:Y,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},j(Y),1))),128))])]),d("div",{class:"text-xs text-muted font-mono shrink-0 max-w-[200px] truncate",title:L.source||""},j((L.source||"").split(/[\\/]/).pop()||""),9,Hc)])],10,Ic)}),128))]))]),n.value?(k(),P("div",Vc,[d("div",Uc,[d("div",null,[d("h3",Bc,"Edit: "+j(n.value.name),1),d("p",Kc,j(n.value.source||"(unknown source)"),1)]),d("div",Wc,[l.value?(k(),P("span",zc,j(l.value),1)):de("",!0),d("button",{onClick:M,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"),d("button",{onClick:z,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),d("div",qc,[d("div",null,[A[13]||(A[13]=d("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),d("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,Jc)]),d("div",null,[A[14]||(A[14]=d("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),me(d("input",{"onUpdate:modelValue":A[5]||(A[5]=L=>r.value=L),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),[[Ae,r.value]])]),d("div",Gc,[d("label",Yc,[me(d("input",{"onUpdate:modelValue":A[6]||(A[6]=L=>i.value=L),type:"checkbox",class:"rounded"},null,512),[[so,i.value]]),A[15]||(A[15]=d("span",null,"Replaces orchestrator",-1))])])]),me(d("textarea",{"onUpdate:modelValue":A[7]||(A[7]=L=>o.value=L),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),[[Ae,o.value]])])):de("",!0)]))}}),Qc={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-surface/95 backdrop-blur-sm"},Xc={class:"glass rounded-2xl p-8 max-w-md w-full mx-4 animate-slide-up"},eu=["disabled"],tu={key:0,class:"mt-3 text-sm text-danger"},su={key:1,class:"min-h-screen font-sans text-textPrimary animate-fade-in"},nu={class:"glass sticky top-0 z-40 border-b border-gray-800/50"},ou={class:"max-w-7xl mx-auto px-4 sm:px-6 py-4 flex items-center justify-between"},ru={class:"flex items-center gap-4"},iu={class:"text-sm text-textSecondary font-mono"},lu={class:"max-w-7xl mx-auto px-4 sm:px-6 py-6"},au={class:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3"},cu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},uu={class:"text-2xl font-bold font-mono"},fu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},du={class:"text-2xl font-bold font-mono"},pu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},hu={class:"text-2xl font-bold font-mono"},mu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},gu={class:"flex items-center gap-2 mb-2"},xu={class:"text-2xl font-bold font-mono"},vu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},yu={class:"text-2xl font-bold font-mono"},bu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},_u={class:"text-2xl font-bold font-mono"},wu={class:"max-w-7xl mx-auto px-4 sm:px-6"},Su={class:"flex gap-6 border-b border-gray-800/50 mb-6"},Cu=["onClick"],Tu={class:"max-w-7xl mx-auto px-4 sm:px-6 pb-12"},is="sensorium_token",$u=mt({__name:"App",setup(e){const t=V(!1),s=V(""),n=V(""),o=V(!1),r=V(null),i=V("sessions");let l=null;const a=[{id:"sessions",label:"Sessions"},{id:"notes",label:"Memory Notes"},{id:"episodes",label:"Episodes"},{id:"topics",label:"Topics"},{id:"templates",label:"Templates"},{id:"skills",label:"Skills"}],h={sessions:na,notes:_a,episodes:Na,topics:za,templates:bc,skills:Zc},u=Et(()=>h[i.value]),p=Et(()=>{if(!r.value)return"—";const W=Math.floor(r.value.uptime),M=Math.floor(W/86400),H=Math.floor(W%86400/3600),z=Math.floor(W%3600/60);return M>0?`${M}d ${H}h`:H>0?`${H}h ${z}m`:`${z}m`});async function g(){const W=s.value.trim()||"no-auth";o.value=!0,n.value="";try{Lt(W),await U(),localStorage.setItem(is,W),t.value=!0,O()}catch(M){const H=M;H.status===401?n.value="Invalid token":n.value=H.message??"Connection failed",Lt("")}finally{o.value=!1}}function C(){localStorage.removeItem(is),t.value=!1,s.value="",r.value=null,l&&clearInterval(l),Lt("")}async function U(){r.value=await ce("/api/status")}function O(){l&&clearInterval(l),l=setInterval(U,3e4)}return gt(async()=>{const W=localStorage.getItem(is);if(W){s.value=W;try{Lt(W),await U(),t.value=!0,O()}catch{localStorage.removeItem(is),Lt("")}}}),hn(()=>{l&&clearInterval(l)}),(W,M)=>{var H,z,R,D,A,L,ne,Y,ae,ke,qe;return t.value?(k(),P("div",su,[d("header",nu,[d("div",ou,[M[3]||(M[3]=Fe('<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)),d("div",ru,[M[2]||(M[2]=d("div",{class:"flex items-center gap-2 text-sm"},[d("span",{class:"w-2 h-2 rounded-full bg-success animate-pulse-slow"}),d("span",{class:"text-textSecondary"},"Connected")],-1)),d("div",iu,j(p.value),1),d("button",{onClick:C,class:"text-sm text-muted hover:text-textSecondary transition"},"Disconnect")])])]),d("div",lu,[d("div",au,[d("div",cu,[M[4]||(M[4]=Fe('<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)),d("div",uu,j(((H=r.value)==null?void 0:H.activeSessions)??0),1)]),d("div",fu,[M[5]||(M[5]=Fe('<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)),d("div",du,j(((R=(z=r.value)==null?void 0:z.memory)==null?void 0:R.totalSemanticNotes)??0),1)]),d("div",pu,[M[6]||(M[6]=Fe('<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)),d("div",hu,j(((A=(D=r.value)==null?void 0:D.memory)==null?void 0:A.totalEpisodes)??0),1)]),d("div",mu,[d("div",gu,[d("span",{class:Se((((ne=(L=r.value)==null?void 0:L.memory)==null?void 0:ne.unconsolidatedEpisodes)??0)>10?"text-danger":"text-success")},[...M[7]||(M[7]=[d("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[d("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),M[8]||(M[8]=d("span",{class:"text-xs text-textSecondary font-medium uppercase tracking-wider"},"Unconsolidated",-1))]),d("div",xu,j(((ae=(Y=r.value)==null?void 0:Y.memory)==null?void 0:ae.unconsolidatedEpisodes)??0),1)]),d("div",vu,[M[9]||(M[9]=Fe('<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)),d("div",yu,j(((qe=(ke=r.value)==null?void 0:ke.memory)==null?void 0:qe.totalProcedures)??0),1)]),d("div",bu,[M[10]||(M[10]=Fe('<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)),d("div",_u,j(p.value),1)])])]),d("div",wu,[d("nav",Su,[(k(),P(le,null,nt(a,Ce=>d("button",{key:Ce.id,onClick:xt=>i.value=Ce.id,class:Se(["pb-3 text-sm font-medium transition",i.value===Ce.id?"tab-active":"tab-inactive"])},j(Ce.label),11,Cu)),64))])]),d("div",Tu,[(k(),ir($i(u.value),{status:r.value},null,8,["status"]))])])):(k(),P("div",Qc,[d("div",Xc,[M[1]||(M[1]=Fe('<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)),me(d("input",{"onUpdate:modelValue":M[0]||(M[0]=Ce=>s.value=Ce),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:Nl(g,["enter"])},null,544),[[Ae,s.value]]),d("button",{onClick:g,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,eu),n.value?(k(),P("p",tu,j(n.value),1)):de("",!0)])]))}}});Hl($u).mount("#app");</script>
|
|
71
|
+
`,Y+ne}async function z(){if(!n.value)return;const j=n.value.name;try{const M=r.value.split(",").map(ce=>ce.trim()).filter(Boolean),N=o.value;let ne;N.trimStart().startsWith("---")?ne=N:ne=V(j,M,i.value,N);const Y=await fetch(`/api/skills/${encodeURIComponent(j)}`,{method:"PUT",headers:{Authorization:`Bearer ${mt()}`,"Content-Type":"application/json"},body:JSON.stringify({content:ne})});if(!Y.ok)throw new Error(Y.statusText);l.value="Saved ✓",setTimeout(()=>{l.value=""},3e3),await C()}catch(M){l.value="Error: "+M.message}}async function D(){const j=d.value.trim(),M=a.value;if(!j){g.value="Name is required";return}const N=M.split(",").map(Y=>Y.trim()).filter(Boolean);if(!N.length){g.value="At least one trigger is required";return}const ne=V(j,N,p.value,`\x3C!-- Write your skill instructions here -->
|
|
72
|
+
`);try{const Y=await fetch(`/api/skills/${encodeURIComponent(j)}`,{method:"PUT",headers:{Authorization:`Bearer ${mt()}`,"Content-Type":"application/json"},body:JSON.stringify({content:ne})});if(!Y.ok)throw new Error(Y.statusText);g.value="Created ✓",c.value=!1,await C();const ce=t.value.find(Ae=>Ae.name===j);ce&&W(ce)}catch(Y){g.value="Error: "+Y.message}}return ft(C),(j,M)=>($(),A("div",_c,[f("div",wc,[f("div",Sc,[M[8]||(M[8]=f("div",null,[f("h3",{class:"text-lg font-semibold"},"Skill Library"),f("p",{class:"text-sm text-textSecondary mt-1"},"Manage intent-routing skills — user overrides, defaults, and project skills")],-1)),f("button",{onClick:M[0]||(M[0]=N=>{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",Cc,[M[12]||(M[12]=f("h4",{class:"text-sm font-semibold mb-3"},"Create New Skill",-1)),f("div",Tc,[f("div",null,[M[9]||(M[9]=f("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),fe(f("input",{"onUpdate:modelValue":M[1]||(M[1]=N=>d.value=N),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),[[Ce,d.value]])]),f("div",null,[M[10]||(M[10]=f("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),fe(f("input",{"onUpdate:modelValue":M[2]||(M[2]=N=>a.value=N),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),[[Ce,a.value]])])]),f("div",$c,[f("label",kc,[fe(f("input",{"onUpdate:modelValue":M[3]||(M[3]=N=>p.value=N),type:"checkbox",class:"rounded"},null,512),[[no,p.value]]),M[11]||(M[11]=f("span",null,"Replaces orchestrator",-1))])]),f("div",Ec,[f("button",{onClick:D,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Create"),f("button",{onClick:M[4]||(M[4]=N=>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"),g.value?($(),A("span",Ac,O(g.value),1)):le("",!0)])])):le("",!0),s.value?($(),A("div",Mc,"Loading...")):t.value.length===0?($(),A("div",Pc,"No skills loaded")):($(),A("div",Oc,[($(!0),A(ae,null,nt(t.value,N=>{var ne;return $(),A("div",{key:N.name,onClick:Y=>W(N),class:de(["glass rounded-xl p-4 cursor-pointer hover:bg-cardHover transition border",((ne=n.value)==null?void 0:ne.name)===N.name?"border-accent":"border-transparent"])},[f("div",Rc,[f("div",Dc,[f("div",Lc,[f("span",jc,O(N.name),1),f("span",{class:"type-badge",style:Qt(I(U(N.source)))},O(U(N.source)),5),N.replacesOrchestrator?($(),A("span",Nc,"REPLACES ORCH")):le("",!0)]),f("div",Fc,[($(!0),A(ae,null,nt(N.triggers||[],Y=>($(),A("span",{key:Y,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},O(Y),1))),128))])]),f("div",{class:"text-xs text-muted font-mono shrink-0 max-w-[200px] truncate",title:N.source||""},O((N.source||"").split(/[\\/]/).pop()||""),9,Hc)])],10,Ic)}),128))]))]),n.value?($(),A("div",Vc,[f("div",Uc,[f("div",null,[f("h3",Bc,"Edit: "+O(n.value.name),1),f("p",Kc,O(n.value.source||"(unknown source)"),1)]),f("div",Wc,[l.value?($(),A("span",zc,O(l.value),1)):le("",!0),f("button",{onClick:P,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"),f("button",{onClick:z,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),f("div",qc,[f("div",null,[M[13]||(M[13]=f("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),f("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,Jc)]),f("div",null,[M[14]||(M[14]=f("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),fe(f("input",{"onUpdate:modelValue":M[5]||(M[5]=N=>r.value=N),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),[[Ce,r.value]])]),f("div",Gc,[f("label",Yc,[fe(f("input",{"onUpdate:modelValue":M[6]||(M[6]=N=>i.value=N),type:"checkbox",class:"rounded"},null,512),[[no,i.value]]),M[15]||(M[15]=f("span",null,"Replaces orchestrator",-1))])])]),fe(f("textarea",{"onUpdate:modelValue":M[7]||(M[7]=N=>o.value=N),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),[[Ce,o.value]])])):le("",!0)]))}}),Qc={class:"animate-fade-in"},Xc={class:"glass rounded-xl p-6 mb-6"},eu={class:"flex flex-wrap items-center justify-between gap-4 mb-6"},tu={class:"flex items-center gap-3"},su=["disabled"],nu={key:0,class:"text-center py-8 text-textSecondary text-sm"},ou={key:1,class:"space-y-6"},ru={class:"glass rounded-xl p-4 border border-gray-700/50"},iu={class:"flex items-center justify-between"},lu={class:"glass rounded-xl p-4 border border-gray-700/50"},au={class:"glass rounded-xl p-4 border border-gray-700/50"},cu={class:"glass rounded-xl p-4 border border-gray-700/50"},uu={class:"text-xs text-textSecondary mb-3"},fu={key:0,class:"ml-1 text-accentLight font-mono"},du={class:"flex items-center gap-2"},pu={key:0,class:"glass rounded-xl p-4 border border-gray-700/30 bg-surface/30"},hu={class:"grid grid-cols-2 sm:grid-cols-4 gap-4"},mu={class:"text-sm font-mono"},gu={class:"text-sm font-mono"},xu={class:"text-sm font-mono"},vu=ut({__name:"KeepAliveTab",setup(e){const t=L(null),s=L(!0),n=L(!1),o=L(""),r=L({keepAliveEnabled:!1,keepAliveThreadId:0,keepAliveMaxRetries:5,keepAliveCooldownMs:3e5});async function i(){s.value=!0;try{t.value=await ue("/api/settings/keep-alive"),r.value={...t.value}}finally{s.value=!1}}async function l(){n.value=!0,o.value="";try{const d=await fetch("/api/settings/keep-alive",{method:"POST",headers:{Authorization:`Bearer ${mt()}`,"Content-Type":"application/json"},body:JSON.stringify(r.value)});if(!d.ok){const a=await d.json().catch(()=>({error:d.statusText}));throw new Error(a.error??d.statusText)}t.value={...r.value},o.value="Saved ✓",setTimeout(()=>{o.value=""},3e3)}catch(d){o.value="Error: "+d.message}finally{n.value=!1}}function c(d){const a=Math.floor(d/6e4);return a>=60?`${Math.floor(a/60)}h ${a%60}m`:`${a}m`}return ft(i),(d,a)=>($(),A("div",Qc,[f("div",Xc,[f("div",eu,[a[4]||(a[4]=f("div",null,[f("h3",{class:"text-lg font-semibold"},"Keep-Alive Settings"),f("p",{class:"text-sm text-textSecondary mt-1"},"Configure the headless agent auto-restart and monitoring behavior")],-1)),f("div",tu,[o.value?($(),A("span",{key:0,class:de([o.value.startsWith("Error")?"text-danger":"text-success","text-sm"])},O(o.value),3)):le("",!0),f("button",{onClick:l,disabled:n.value||s.value,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-sm font-medium transition"},O(n.value?"Saving…":"Save"),9,su)])]),s.value?($(),A("div",nu,"Loading…")):($(),A("div",ou,[f("div",ru,[f("div",iu,[a[5]||(a[5]=f("div",null,[f("div",{class:"text-sm font-medium"},"Enable Keep-Alive"),f("div",{class:"text-xs text-textSecondary mt-0.5"},"Automatically restart the agent when it goes offline")],-1)),f("button",{onClick:a[0]||(a[0]=p=>r.value.keepAliveEnabled=!r.value.keepAliveEnabled),class:de(["relative inline-flex h-6 w-11 items-center rounded-full transition-colors",r.value.keepAliveEnabled?"bg-accent":"bg-gray-700"])},[f("span",{class:de(["inline-block h-4 w-4 transform rounded-full bg-white shadow transition-transform",r.value.keepAliveEnabled?"translate-x-6":"translate-x-1"])},null,2)],2)])]),f("div",lu,[a[6]||(a[6]=f("label",{class:"block text-sm font-medium mb-1"},"Thread ID",-1)),a[7]||(a[7]=f("p",{class:"text-xs text-textSecondary mb-3"},"The Telegram thread to monitor and keep alive",-1)),fe(f("input",{"onUpdate:modelValue":a[1]||(a[1]=p=>r.value.keepAliveThreadId=p),type:"number",min:"0",class:"w-full sm:w-48 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),[[Ce,r.value.keepAliveThreadId,void 0,{number:!0}]]),a[8]||(a[8]=f("p",{class:"text-xs text-muted mt-2"},"0 = disabled",-1))]),f("div",au,[a[9]||(a[9]=f("label",{class:"block text-sm font-medium mb-1"},"Max Retries",-1)),a[10]||(a[10]=f("p",{class:"text-xs text-textSecondary mb-3"},"Number of restart attempts before entering cooldown mode",-1)),fe(f("input",{"onUpdate:modelValue":a[2]||(a[2]=p=>r.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),[[Ce,r.value.keepAliveMaxRetries,void 0,{number:!0}]])]),f("div",cu,[a[13]||(a[13]=f("label",{class:"block text-sm font-medium mb-1"},"Cooldown Duration",-1)),f("p",uu,[a[11]||(a[11]=xn(" Wait time after max retries exceeded before resuming restarts ",-1)),r.value.keepAliveCooldownMs?($(),A("span",fu,"("+O(c(r.value.keepAliveCooldownMs))+")",1)):le("",!0)]),f("div",du,[fe(f("input",{"onUpdate:modelValue":a[3]||(a[3]=p=>r.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),[[Ce,r.value.keepAliveCooldownMs,void 0,{number:!0}]]),a[12]||(a[12]=f("span",{class:"text-xs text-textSecondary"},"ms",-1))])]),t.value?($(),A("div",pu,[a[18]||(a[18]=f("div",{class:"text-xs font-medium text-textSecondary uppercase tracking-wider mb-3"},"Current State",-1)),f("div",hu,[f("div",null,[a[14]||(a[14]=f("div",{class:"text-xs text-muted mb-1"},"Status",-1)),f("span",{class:de(["text-sm font-medium",t.value.keepAliveEnabled?"text-success":"text-textSecondary"])},O(t.value.keepAliveEnabled?"Enabled":"Disabled"),3)]),f("div",null,[a[15]||(a[15]=f("div",{class:"text-xs text-muted mb-1"},"Thread",-1)),f("span",mu,O(t.value.keepAliveThreadId||"—"),1)]),f("div",null,[a[16]||(a[16]=f("div",{class:"text-xs text-muted mb-1"},"Max Retries",-1)),f("span",gu,O(t.value.keepAliveMaxRetries),1)]),f("div",null,[a[17]||(a[17]=f("div",{class:"text-xs text-muted mb-1"},"Cooldown",-1)),f("span",xu,O(c(t.value.keepAliveCooldownMs)),1)])])])):le("",!0)]))])]))}}),yu={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-surface/95 backdrop-blur-sm"},bu={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"},Eu={class:"max-w-7xl mx-auto px-4 sm:px-6 py-6"},Au={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"},Pu={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"},Lu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},ju={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"},is="sensorium_token",qu=ut({__name:"App",setup(e){const t=L(!1),s=L(""),n=L(""),o=L(!1),r=L(null),i=L("sessions");let l=null;const c=[{id:"sessions",label:"Sessions"},{id:"notes",label:"Memory Notes"},{id:"episodes",label:"Episodes"},{id:"topics",label:"Topics"},{id:"templates",label:"Templates"},{id:"skills",label:"Skills"},{id:"keepalive",label:"Keep-Alive"}],d={sessions:na,notes:_a,episodes:ja,topics:za,templates:bc,skills:Zc,keepalive:vu},a=kt(()=>d[i.value]),p=kt(()=>{if(!r.value)return"—";const W=Math.floor(r.value.uptime),P=Math.floor(W/86400),V=Math.floor(W%86400/3600),z=Math.floor(W%3600/60);return P>0?`${P}d ${V}h`:V>0?`${V}h ${z}m`:`${z}m`});async function g(){const W=s.value.trim()||"no-auth";o.value=!0,n.value="";try{Lt(W),await U(),localStorage.setItem(is,W),t.value=!0,I()}catch(P){const V=P;V.status===401?n.value="Invalid token":n.value=V.message??"Connection failed",Lt("")}finally{o.value=!1}}function C(){localStorage.removeItem(is),t.value=!1,s.value="",r.value=null,l&&clearInterval(l),Lt("")}async function U(){r.value=await ue("/api/status")}function I(){l&&clearInterval(l),l=setInterval(U,3e4)}return ft(async()=>{const W=localStorage.getItem(is);if(W){s.value=W;try{Lt(W),await U(),t.value=!0,I()}catch{localStorage.removeItem(is),Lt("")}}}),hn(()=>{l&&clearInterval(l)}),(W,P)=>{var V,z,D,j,M,N,ne,Y,ce,Ae,qe;return t.value?($(),A("div",Su,[f("header",Cu,[f("div",Tu,[P[3]||(P[3]=Fe('<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)),f("div",$u,[P[2]||(P[2]=f("div",{class:"flex items-center gap-2 text-sm"},[f("span",{class:"w-2 h-2 rounded-full bg-success animate-pulse-slow"}),f("span",{class:"text-textSecondary"},"Connected")],-1)),f("div",ku,O(p.value),1),f("button",{onClick:C,class:"text-sm text-muted hover:text-textSecondary transition"},"Disconnect")])])]),f("div",Eu,[f("div",Au,[f("div",Mu,[P[4]||(P[4]=Fe('<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)),f("div",Pu,O(((V=r.value)==null?void 0:V.activeSessions)??0),1)]),f("div",Ou,[P[5]||(P[5]=Fe('<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)),f("div",Iu,O(((D=(z=r.value)==null?void 0:z.memory)==null?void 0:D.totalSemanticNotes)??0),1)]),f("div",Ru,[P[6]||(P[6]=Fe('<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)),f("div",Du,O(((M=(j=r.value)==null?void 0:j.memory)==null?void 0:M.totalEpisodes)??0),1)]),f("div",Lu,[f("div",ju,[f("span",{class:de((((ne=(N=r.value)==null?void 0:N.memory)==null?void 0:ne.unconsolidatedEpisodes)??0)>10?"text-danger":"text-success")},[...P[7]||(P[7]=[f("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[f("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),P[8]||(P[8]=f("span",{class:"text-xs text-textSecondary font-medium uppercase tracking-wider"},"Unconsolidated",-1))]),f("div",Nu,O(((ce=(Y=r.value)==null?void 0:Y.memory)==null?void 0:ce.unconsolidatedEpisodes)??0),1)]),f("div",Fu,[P[9]||(P[9]=Fe('<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)),f("div",Hu,O(((qe=(Ae=r.value)==null?void 0:Ae.memory)==null?void 0:qe.totalProcedures)??0),1)]),f("div",Vu,[P[10]||(P[10]=Fe('<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)),f("div",Uu,O(p.value),1)])])]),f("div",Bu,[f("nav",Ku,[($(),A(ae,null,nt(c,Te=>f("button",{key:Te.id,onClick:vt=>i.value=Te.id,class:de(["pb-3 text-sm font-medium transition",i.value===Te.id?"tab-active":"tab-inactive"])},O(Te.label),11,Wu)),64))])]),f("div",zu,[($(),lr($i(a.value),{status:r.value},null,8,["status"]))])])):($(),A("div",yu,[f("div",bu,[P[1]||(P[1]=Fe('<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(f("input",{"onUpdate:modelValue":P[0]||(P[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:jl(g,["enter"])},null,544),[[Ce,s.value]]),f("button",{onClick:g,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"},O(o.value?"Connecting...":"Connect"),9,_u),n.value?($(),A("p",wu,O(n.value),1)):le("",!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">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../src/data/memory/bootstrap.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../src/data/memory/bootstrap.ts"],"names":[],"mappings":"A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getBootstrapMessageCount } from "../../config.js";
|
|
17
17
|
/** Maximum characters for the Recent Conversation section before truncation. */
|
|
18
18
|
const MAX_BOOTSTRAP_CONVERSATION_CHARS = 100_000;
|
|
19
|
+
/** Maximum characters per individual message in the Recent Conversation section. */
|
|
20
|
+
const MAX_MESSAGE_CONTENT_CHARS = 200;
|
|
19
21
|
// ─── Helpers ─────────────────────────────────────────────────────────────────
|
|
20
22
|
function rowToTopicEntry(row) {
|
|
21
23
|
return {
|
|
@@ -114,7 +116,10 @@ export function assembleBootstrap(db, threadId, memorySourceThreadId) {
|
|
|
114
116
|
const raw = typeof ep.content === "object" && ep.content !== null
|
|
115
117
|
? (ep.content.text ?? ep.content.caption ?? null)
|
|
116
118
|
: null;
|
|
117
|
-
const
|
|
119
|
+
const fullText = typeof raw === "string" ? raw : JSON.stringify(ep.content);
|
|
120
|
+
const textContent = fullText.length > MAX_MESSAGE_CONTENT_CHARS
|
|
121
|
+
? fullText.slice(0, MAX_MESSAGE_CONTENT_CHARS) + "…"
|
|
122
|
+
: fullText;
|
|
118
123
|
let line;
|
|
119
124
|
if (ep.type === "operator_message") {
|
|
120
125
|
line = `**Operator** (${ep.timestamp}): ${textContent}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../../../src/data/memory/bootstrap.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,8BAA8B,GAC/B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,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