sensorium-mcp 2.16.165 → 2.16.167
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/claude-keeper.d.ts.map +1 -1
- package/dist/claude-keeper.js +10 -4
- package/dist/claude-keeper.js.map +1 -1
- package/dist/daily-session.d.ts.map +1 -1
- package/dist/daily-session.js +50 -25
- package/dist/daily-session.js.map +1 -1
- package/dist/dashboard/routes/threads.d.ts.map +1 -1
- package/dist/dashboard/routes/threads.js +66 -6
- package/dist/dashboard/routes/threads.js.map +1 -1
- package/dist/dashboard/spa.html +10 -10
- package/dist/data/memory/schema.d.ts.map +1 -1
- package/dist/data/memory/schema.js +49 -4
- package/dist/data/memory/schema.js.map +1 -1
- package/dist/data/memory/thread-registry.d.ts +1 -0
- package/dist/data/memory/thread-registry.d.ts.map +1 -1
- package/dist/data/memory/thread-registry.js +10 -2
- package/dist/data/memory/thread-registry.js.map +1 -1
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -1
- package/dist/tools/delegate-tool.d.ts.map +1 -1
- package/dist/tools/delegate-tool.js +1 -0
- package/dist/tools/delegate-tool.js.map +1 -1
- package/dist/tools/start-session-tool.d.ts.map +1 -1
- package/dist/tools/start-session-tool.js +6 -0
- package/dist/tools/start-session-tool.js.map +1 -1
- package/dist/tools/thread-lifecycle.d.ts.map +1 -1
- package/dist/tools/thread-lifecycle.js +34 -3
- package/dist/tools/thread-lifecycle.js.map +1 -1
- package/dist/watcher-service.d.ts.map +1 -1
- package/dist/watcher-service.js +46 -179
- package/dist/watcher-service.js.map +1 -1
- package/package.json +1 -1
package/dist/dashboard/spa.html
CHANGED
|
@@ -49,27 +49,27 @@
|
|
|
49
49
|
* @vue/shared v3.5.31
|
|
50
50
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
51
51
|
* @license MIT
|
|
52
|
-
**/function nn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const
|
|
52
|
+
**/function nn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const ae={},Pt=[],Qe=()=>{},co=()=>!1,Ss=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Cs=e=>e.startsWith("onUpdate:"),_e=Object.assign,on=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},gr=Object.prototype.hasOwnProperty,ne=(e,t)=>gr.call(e,t),z=Array.isArray,It=e=>os(e)==="[object Map]",Lt=e=>os(e)==="[object Set]",kn=e=>os(e)==="[object Date]",Y=e=>typeof e=="function",ge=e=>typeof e=="string",et=e=>typeof e=="symbol",ie=e=>e!==null&&typeof e=="object",uo=e=>(ie(e)||Y(e))&&Y(e.then)&&Y(e.catch),fo=Object.prototype.toString,os=e=>fo.call(e),xr=e=>os(e).slice(8,-1),po=e=>os(e)==="[object Object]",rn=e=>ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Wt=nn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ts=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},vr=/-\w/g,Ee=Ts(e=>e.replace(vr,t=>t.slice(1).toUpperCase())),yr=/\B([A-Z])/g,xt=Ts(e=>e.replace(yr,"-$1").toLowerCase()),$s=Ts(e=>e.charAt(0).toUpperCase()+e.slice(1)),js=Ts(e=>e?`on${$s(e)}`:""),Ze=(e,t)=>!Object.is(e,t),ds=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},ho=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},ks=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let En;const Es=()=>En||(En=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function As(e){if(z(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],o=ge(n)?Sr(n):As(n);if(o)for(const r in o)t[r]=o[r]}return t}else if(ge(e)||ie(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 ee(e){let t="";if(ge(e))t=e;else if(z(e))for(let s=0;s<e.length;s++){const n=ee(e[s]);n&&(t+=n+" ")}else if(ie(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Cr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Tr=nn(Cr);function mo(e){return!!e||e===""}function $r(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Nt(e[n],t[n]);return s}function Nt(e,t){if(e===t)return!0;let s=kn(e),n=kn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=et(e),n=et(t),s||n)return e===t;if(s=z(e),n=z(t),s||n)return s&&n?$r(e,t):!1;if(s=ie(e),n=ie(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||!Nt(e[i],t[i]))return!1}}return String(e)===String(t)}function ln(e,t){return e.findIndex(s=>Nt(s,t))}const go=e=>!!(e&&e.__v_isRef===!0),_=e=>ge(e)?e:e==null?"":z(e)||ie(e)&&(e.toString===fo||!Y(e.toString))?go(e)?_(e.value):JSON.stringify(e,xo,2):String(e),xo=(e,t)=>go(t)?xo(e,t.value):It(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,o],r)=>(s[Ls(n,r)+" =>"]=o,s),{})}:Lt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Ls(s))}:et(t)?Ls(t):ie(t)&&!z(t)&&!po(t)?String(t):t,Ls=(e,t="")=>{var s;return et(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
|
|
53
53
|
* @vue/reactivity v3.5.31
|
|
54
54
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
55
55
|
* @license MIT
|
|
56
|
-
**/let Ce;class kr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Ce,!t&&Ce&&(this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Ce;try{return Ce=this,t()}finally{Ce=s}}}on(){++this._on===1&&(this.prevScope=Ce,Ce=this)}off(){this._on>0&&--this._on===0&&(Ce=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Ar(){return Ce}let ne;const Ns=new WeakSet;class vo{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ce&&Ce.active&&Ce.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ns.has(this)&&(Ns.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||yo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,En(this),_o(this);const t=ne,s=De;ne=this,De=!0;try{return this.fn()}finally{wo(this),ne=t,De=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)un(t);this.deps=this.depsTail=void 0,En(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ns.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){zs(this)&&this.run()}get dirty(){return zs(this)}}let bo=0,Wt,zt;function yo(e,t=!1){if(e.flags|=8,t){e.next=zt,zt=e;return}e.next=Wt,Wt=e}function an(){bo++}function cn(){if(--bo>0)return;if(zt){let t=zt;for(zt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Wt;){let t=Wt;for(Wt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function _o(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function wo(e){let t,s=e.depsTail,n=s;for(;n;){const o=n.prevDep;n.version===-1?(n===s&&(s=o),un(n),Er(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=s}function zs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(So(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function So(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Zt)||(e.globalVersion=Zt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!zs(e))))return;e.flags|=2;const t=e.dep,s=ne,n=De;ne=e,De=!0;try{_o(e);const o=e.fn(e._value);(t.version===0||We(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ne=s,De=n,wo(e),e.flags&=-3}}function un(e,t=!1){const{dep:s,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)un(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Er(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let De=!0;const Co=[];function it(){Co.push(De),De=!1}function lt(){const e=Co.pop();De=e===void 0?!0:e}function En(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=ne;ne=void 0;try{t()}finally{ne=s}}}let Zt=0;class Pr{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class fn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ne||!De||ne===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ne)s=this.activeLink=new Pr(ne,this),ne.deps?(s.prevDep=ne.depsTail,ne.depsTail.nextDep=s,ne.depsTail=s):ne.deps=ne.depsTail=s,To(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=ne.depsTail,s.nextDep=void 0,ne.depsTail.nextDep=s,ne.depsTail=s,ne.deps===s&&(ne.deps=n)}return s}trigger(t){this.version++,Zt++,this.notify(t)}notify(t){an();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{cn()}}}function To(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)To(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const qs=new WeakMap,wt=Symbol(""),Js=Symbol(""),Qt=Symbol("");function xe(e,t,s){if(De&&ne){let n=qs.get(e);n||qs.set(e,n=new Map);let o=n.get(s);o||(n.set(s,o=new fn),o.map=n,o.key=s),o.track()}}function nt(e,t,s,n,o,r){const i=qs.get(e);if(!i){Zt++;return}const l=c=>{c&&c.trigger()};if(an(),t==="clear")i.forEach(l);else{const c=U(e),h=c&&rn(s);if(c&&s==="length"){const u=Number(n);i.forEach((p,m)=>{(m==="length"||m===Qt||!Je(m)&&m>=u)&&l(p)})}else switch((s!==void 0||i.has(void 0))&&l(i.get(s)),h&&l(i.get(Qt)),t){case"add":c?h&&l(i.get("length")):(l(i.get(wt)),Pt(e)&&l(i.get(Js)));break;case"delete":c||(l(i.get(wt)),Pt(e)&&l(i.get(Js)));break;case"set":Pt(e)&&l(i.get(wt));break}}cn()}function kt(e){const t=G(e);return t===e?t:(xe(t,"iterate",Qt),Ie(e)?t:t.map(je))}function Ps(e){return xe(e=G(e),"iterate",Qt),e}function Ue(e,t){return at(e)?It(St(e)?je(t):t):je(t)}const Mr={__proto__:null,[Symbol.iterator](){return Fs(this,Symbol.iterator,e=>Ue(this,e))},concat(...e){return kt(this).concat(...e.map(t=>U(t)?kt(t):t))},entries(){return Fs(this,"entries",e=>(e[1]=Ue(this,e[1]),e))},every(e,t){return et(this,"every",e,t,void 0,arguments)},filter(e,t){return et(this,"filter",e,t,s=>s.map(n=>Ue(this,n)),arguments)},find(e,t){return et(this,"find",e,t,s=>Ue(this,s),arguments)},findIndex(e,t){return et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return et(this,"findLast",e,t,s=>Ue(this,s),arguments)},findLastIndex(e,t){return et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return et(this,"forEach",e,t,void 0,arguments)},includes(...e){return Hs(this,"includes",e)},indexOf(...e){return Hs(this,"indexOf",e)},join(e){return kt(this).join(e)},lastIndexOf(...e){return Hs(this,"lastIndexOf",e)},map(e,t){return et(this,"map",e,t,void 0,arguments)},pop(){return Ht(this,"pop")},push(...e){return Ht(this,"push",e)},reduce(e,...t){return Pn(this,"reduce",e,t)},reduceRight(e,...t){return Pn(this,"reduceRight",e,t)},shift(){return Ht(this,"shift")},some(e,t){return et(this,"some",e,t,void 0,arguments)},splice(...e){return Ht(this,"splice",e)},toReversed(){return kt(this).toReversed()},toSorted(e){return kt(this).toSorted(e)},toSpliced(...e){return kt(this).toSpliced(...e)},unshift(...e){return Ht(this,"unshift",e)},values(){return Fs(this,"values",e=>Ue(this,e))}};function Fs(e,t,s){const n=Ps(e),o=n[t]();return n!==e&&!Ie(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=s(r.value)),r}),o}const Or=Array.prototype;function et(e,t,s,n,o,r){const i=Ps(e),l=i!==e&&!Ie(e),c=i[t];if(c!==Or[t]){const p=c.apply(e,r);return l?je(p):p}let h=s;i!==e&&(l?h=function(p,m){return s.call(this,Ue(e,p),m,e)}:s.length>2&&(h=function(p,m){return s.call(this,p,m,e)}));const u=c.call(i,h,n);return l&&o?o(u):u}function Pn(e,t,s,n){const o=Ps(e),r=o!==e&&!Ie(e);let i=s,l=!1;o!==e&&(r?(l=n.length===0,i=function(h,u,p){return l&&(l=!1,h=Ue(e,h)),s.call(this,h,Ue(e,u),p,e)}):s.length>3&&(i=function(h,u,p){return s.call(this,h,u,p,e)}));const c=o[t](i,...n);return l?Ue(e,c):c}function Hs(e,t,s){const n=G(e);xe(n,"iterate",Qt);const o=n[t](...s);return(o===-1||o===!1)&&mn(s[0])?(s[0]=G(s[0]),n[t](...s)):o}function Ht(e,t,s=[]){it(),an();const n=G(e)[t].apply(e,s);return cn(),lt(),n}const Ir=nn("__proto__,__v_isRef,__isVue"),$o=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Je));function Rr(e){Je(e)||(e=String(e));const t=G(this);return xe(t,"has",e),t.hasOwnProperty(e)}class ko{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(o?r?Kr:Mo:r?Po:Eo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=U(t);if(!o){let c;if(i&&(c=Mr[s]))return c;if(s==="hasOwnProperty")return Rr}const l=Reflect.get(t,s,be(t)?t:n);if((Je(s)?$o.has(s):Ir(s))||(o||xe(t,"get",s),r))return l;if(be(l)){const c=i&&rn(s)?l:l.value;return o&&X(c)?Ys(c):c}return X(l)?o?Ys(l):pn(l):l}}class Ao extends ko{constructor(t=!1){super(!1,t)}set(t,s,n,o){let r=t[s];const i=U(t)&&rn(s);if(!this._isShallow){const h=at(r);if(!Ie(n)&&!at(n)&&(r=G(r),n=G(n)),!i&&be(r)&&!be(n))return h||(r.value=n),!0}const l=i?Number(s)<t.length:Y(t,s),c=Reflect.set(t,s,n,be(t)?t:o);return t===G(o)&&(l?We(n,r)&&nt(t,"set",s,n):nt(t,"add",s,n)),c}deleteProperty(t,s){const n=Y(t,s);t[s];const o=Reflect.deleteProperty(t,s);return o&&n&&nt(t,"delete",s,void 0),o}has(t,s){const n=Reflect.has(t,s);return(!Je(s)||!$o.has(s))&&xe(t,"has",s),n}ownKeys(t){return xe(t,"iterate",U(t)?"length":wt),Reflect.ownKeys(t)}}class Dr extends ko{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const jr=new Ao,Lr=new Dr,Nr=new Ao(!0);const Gs=e=>e,ls=e=>Reflect.getPrototypeOf(e);function Fr(e,t,s){return function(...n){const o=this.__v_raw,r=G(o),i=Pt(r),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,h=o[e](...n),u=s?Gs:t?It:je;return!t&&xe(r,"iterate",c?Js:wt),ge(Object.create(h),{next(){const{value:p,done:m}=h.next();return m?{value:p,done:m}:{value:l?[u(p[0]),u(p[1])]:u(p),done:m}}})}}function as(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Hr(e,t){const s={get(o){const r=this.__v_raw,i=G(r),l=G(o);e||(We(o,l)&&xe(i,"get",o),xe(i,"get",l));const{has:c}=ls(i),h=t?Gs:e?It:je;if(c.call(i,o))return h(r.get(o));if(c.call(i,l))return h(r.get(l));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&xe(G(o),"iterate",wt),o.size},has(o){const r=this.__v_raw,i=G(r),l=G(o);return e||(We(o,l)&&xe(i,"has",o),xe(i,"has",l)),o===l?r.has(o):r.has(o)||r.has(l)},forEach(o,r){const i=this,l=i.__v_raw,c=G(l),h=t?Gs:e?It:je;return!e&&xe(c,"iterate",wt),l.forEach((u,p)=>o.call(r,h(u),h(p),i))}};return ge(s,e?{add:as("add"),set:as("set"),delete:as("delete"),clear:as("clear")}:{add(o){const r=G(this),i=ls(r),l=G(o),c=!t&&!Ie(o)&&!at(o)?l:o;return i.has.call(r,c)||We(o,c)&&i.has.call(r,o)||We(l,c)&&i.has.call(r,l)||(r.add(c),nt(r,"add",c,c)),this},set(o,r){!t&&!Ie(r)&&!at(r)&&(r=G(r));const i=G(this),{has:l,get:c}=ls(i);let h=l.call(i,o);h||(o=G(o),h=l.call(i,o));const u=c.call(i,o);return i.set(o,r),h?We(r,u)&&nt(i,"set",o,r):nt(i,"add",o,r),this},delete(o){const r=G(this),{has:i,get:l}=ls(r);let c=i.call(r,o);c||(o=G(o),c=i.call(r,o)),l&&l.call(r,o);const h=r.delete(o);return c&&nt(r,"delete",o,void 0),h},clear(){const o=G(this),r=o.size!==0,i=o.clear();return r&&nt(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Fr(o,e,t)}),s}function dn(e,t){const s=Hr(e,t);return(n,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(Y(s,o)&&o in n?s:n,o,r)}const Vr={get:dn(!1,!1)},Ur={get:dn(!1,!0)},Br={get:dn(!0,!1)};const Eo=new WeakMap,Po=new WeakMap,Mo=new WeakMap,Kr=new WeakMap;function Wr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zr(e){return e.__v_skip||!Object.isExtensible(e)?0:Wr(xr(e))}function pn(e){return at(e)?e:hn(e,!1,jr,Vr,Eo)}function qr(e){return hn(e,!1,Nr,Ur,Po)}function Ys(e){return hn(e,!0,Lr,Br,Mo)}function hn(e,t,s,n,o){if(!X(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=zr(e);if(r===0)return e;const i=o.get(e);if(i)return i;const l=new Proxy(e,r===2?n:s);return o.set(e,l),l}function St(e){return at(e)?St(e.__v_raw):!!(e&&e.__v_isReactive)}function at(e){return!!(e&&e.__v_isReadonly)}function Ie(e){return!!(e&&e.__v_isShallow)}function mn(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Jr(e){return!Y(e,"__v_skip")&&Object.isExtensible(e)&&ho(e,"__v_skip",!0),e}const je=e=>X(e)?pn(e):e,It=e=>X(e)?Ys(e):e;function be(e){return e?e.__v_isRef===!0:!1}function D(e){return Gr(e,!1)}function Gr(e,t){return be(e)?e:new Yr(e,t)}class Yr{constructor(t,s){this.dep=new fn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:G(t),this._value=s?t:je(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Ie(t)||at(t);t=n?t:G(t),We(t,s)&&(this._rawValue=t,this._value=n?t:je(t),this.dep.trigger())}}function Zr(e){return be(e)?e.value:e}const Qr={get:(e,t,s)=>t==="__v_raw"?e:Zr(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const o=e[t];return be(o)&&!be(s)?(o.value=s,!0):Reflect.set(e,t,s,n)}};function Oo(e){return St(e)?e:new Proxy(e,Qr)}class Xr{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new fn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Zt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ne!==this)return yo(this,!0),!0}get value(){const t=this.dep.track();return So(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ei(e,t,s=!1){let n,o;return K(e)?n=e:(n=e.get,o=e.set),new Xr(n,o,s)}const cs={},gs=new WeakMap;let yt;function ti(e,t=!1,s=yt){if(s){let n=gs.get(s);n||gs.set(s,n=[]),n.push(e)}}function si(e,t,s=te){const{immediate:n,deep:o,once:r,scheduler:i,augmentJob:l,call:c}=s,h=j=>o?j:Ie(j)||o===!1||o===0?ot(j,1):ot(j);let u,p,m,S,P=!1,M=!1;if(be(e)?(p=()=>e.value,P=Ie(e)):St(e)?(p=()=>h(e),P=!0):U(e)?(M=!0,P=e.some(j=>St(j)||Ie(j)),p=()=>e.map(j=>{if(be(j))return j.value;if(St(j))return h(j);if(K(j))return c?c(j,2):j()})):K(e)?t?p=c?()=>c(e,2):e:p=()=>{if(m){it();try{m()}finally{lt()}}const j=yt;yt=u;try{return c?c(e,3,[S]):e(S)}finally{yt=j}}:p=ze,t&&o){const j=p,F=o===!0?1/0:o;p=()=>ot(j(),F)}const W=Ar(),E=()=>{u.stop(),W&&W.active&&on(W.effects,u)};if(r&&t){const j=t;t=(...F)=>{j(...F),E()}}let N=M?new Array(e.length).fill(cs):cs;const z=j=>{if(!(!(u.flags&1)||!u.dirty&&!j))if(t){const F=u.run();if(o||P||(M?F.some((O,V)=>We(O,N[V])):We(F,N))){m&&m();const O=yt;yt=u;try{const V=[F,N===cs?void 0:M&&N[0]===cs?[]:N,S];N=F,c?c(t,3,V):t(...V)}finally{yt=O}}}else u.run()};return l&&l(z),u=new vo(p),u.scheduler=i?()=>i(z,!1):z,S=j=>ti(j,!1,u),m=u.onStop=()=>{const j=gs.get(u);if(j){if(c)c(j,4);else for(const F of j)F();gs.delete(u)}},t?n?z(!0):N=u.run():i?i(z.bind(null,!0),!0):u.run(),E.pause=u.pause.bind(u),E.resume=u.resume.bind(u),E.stop=E,E}function ot(e,t=1/0,s){if(t<=0||!X(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,be(e))ot(e.value,t,s);else if(U(e))for(let n=0;n<e.length;n++)ot(e[n],t,s);else if(jt(e)||Pt(e))e.forEach(n=>{ot(n,t,s)});else if(po(e)){for(const n in e)ot(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&ot(e[n],t,s)}return e}/**
|
|
56
|
+
**/let Pe;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=Pe,!t&&Pe&&(this.index=(Pe.scopes||(Pe.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=Pe;try{return Pe=this,t()}finally{Pe=s}}}on(){++this._on===1&&(this.prevScope=Pe,Pe=this)}off(){this._on>0&&--this._on===0&&(Pe=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 Pe}let fe;const Ns=new WeakSet;class vo{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Pe&&Pe.active&&Pe.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ns.has(this)&&(Ns.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||bo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,An(this),_o(this);const t=fe,s=Ue;fe=this,Ue=!0;try{return this.fn()}finally{wo(this),fe=t,Ue=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)un(t);this.deps=this.depsTail=void 0,An(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ns.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){zs(this)&&this.run()}get dirty(){return zs(this)}}let yo=0,zt,qt;function bo(e,t=!1){if(e.flags|=8,t){e.next=qt,qt=e;return}e.next=zt,zt=e}function an(){yo++}function cn(){if(--yo>0)return;if(qt){let t=qt;for(qt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;zt;){let t=zt;for(zt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function _o(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function wo(e){let t,s=e.depsTail,n=s;for(;n;){const o=n.prevDep;n.version===-1?(n===s&&(s=o),un(n),Ar(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=s}function zs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(So(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function So(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Qt)||(e.globalVersion=Qt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!zs(e))))return;e.flags|=2;const t=e.dep,s=fe,n=Ue;fe=e,Ue=!0;try{_o(e);const o=e.fn(e._value);(t.version===0||Ze(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{fe=s,Ue=n,wo(e),e.flags&=-3}}function un(e,t=!1){const{dep:s,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)un(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function 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 Ue=!0;const Co=[];function ut(){Co.push(Ue),Ue=!1}function dt(){const e=Co.pop();Ue=e===void 0?!0:e}function An(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=fe;fe=void 0;try{t()}finally{fe=s}}}let Qt=0;class Pr{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class dn{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(!fe||!Ue||fe===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==fe)s=this.activeLink=new Pr(fe,this),fe.deps?(s.prevDep=fe.depsTail,fe.depsTail.nextDep=s,fe.depsTail=s):fe.deps=fe.depsTail=s,To(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=fe.depsTail,s.nextDep=void 0,fe.depsTail.nextDep=s,fe.depsTail=s,fe.deps===s&&(fe.deps=n)}return s}trigger(t){this.version++,Qt++,this.notify(t)}notify(t){an();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{cn()}}}function To(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)To(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const qs=new WeakMap,Ct=Symbol(""),Js=Symbol(""),Xt=Symbol("");function we(e,t,s){if(Ue&&fe){let n=qs.get(e);n||qs.set(e,n=new Map);let o=n.get(s);o||(n.set(s,o=new dn),o.map=n,o.key=s),o.track()}}function lt(e,t,s,n,o,r){const i=qs.get(e);if(!i){Qt++;return}const l=c=>{c&&c.trigger()};if(an(),t==="clear")i.forEach(l);else{const c=z(e),h=c&&rn(s);if(c&&s==="length"){const u=Number(n);i.forEach((p,g)=>{(g==="length"||g===Xt||!et(g)&&g>=u)&&l(p)})}else switch((s!==void 0||i.has(void 0))&&l(i.get(s)),h&&l(i.get(Xt)),t){case"add":c?h&&l(i.get("length")):(l(i.get(Ct)),It(e)&&l(i.get(Js)));break;case"delete":c||(l(i.get(Ct)),It(e)&&l(i.get(Js)));break;case"set":It(e)&&l(i.get(Ct));break}}cn()}function kt(e){const t=se(e);return t===e?t:(we(t,"iterate",Xt),Fe(e)?t:t.map(Be))}function Ps(e){return we(e=se(e),"iterate",Xt),e}function Ge(e,t){return ft(e)?Rt(Tt(e)?Be(t):t):Be(t)}const Ir={__proto__:null,[Symbol.iterator](){return Fs(this,Symbol.iterator,e=>Ge(this,e))},concat(...e){return kt(this).concat(...e.map(t=>z(t)?kt(t):t))},entries(){return Fs(this,"entries",e=>(e[1]=Ge(this,e[1]),e))},every(e,t){return ot(this,"every",e,t,void 0,arguments)},filter(e,t){return ot(this,"filter",e,t,s=>s.map(n=>Ge(this,n)),arguments)},find(e,t){return ot(this,"find",e,t,s=>Ge(this,s),arguments)},findIndex(e,t){return ot(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ot(this,"findLast",e,t,s=>Ge(this,s),arguments)},findLastIndex(e,t){return ot(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ot(this,"forEach",e,t,void 0,arguments)},includes(...e){return Hs(this,"includes",e)},indexOf(...e){return Hs(this,"indexOf",e)},join(e){return kt(this).join(e)},lastIndexOf(...e){return Hs(this,"lastIndexOf",e)},map(e,t){return ot(this,"map",e,t,void 0,arguments)},pop(){return Vt(this,"pop")},push(...e){return Vt(this,"push",e)},reduce(e,...t){return Pn(this,"reduce",e,t)},reduceRight(e,...t){return Pn(this,"reduceRight",e,t)},shift(){return Vt(this,"shift")},some(e,t){return ot(this,"some",e,t,void 0,arguments)},splice(...e){return Vt(this,"splice",e)},toReversed(){return kt(this).toReversed()},toSorted(e){return kt(this).toSorted(e)},toSpliced(...e){return kt(this).toSpliced(...e)},unshift(...e){return Vt(this,"unshift",e)},values(){return Fs(this,"values",e=>Ge(this,e))}};function Fs(e,t,s){const n=Ps(e),o=n[t]();return n!==e&&!Fe(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 ot(e,t,s,n,o,r){const i=Ps(e),l=i!==e&&!Fe(e),c=i[t];if(c!==Or[t]){const p=c.apply(e,r);return l?Be(p):p}let h=s;i!==e&&(l?h=function(p,g){return s.call(this,Ge(e,p),g,e)}:s.length>2&&(h=function(p,g){return s.call(this,p,g,e)}));const u=c.call(i,h,n);return l&&o?o(u):u}function Pn(e,t,s,n){const o=Ps(e),r=o!==e&&!Fe(e);let i=s,l=!1;o!==e&&(r?(l=n.length===0,i=function(h,u,p){return l&&(l=!1,h=Ge(e,h)),s.call(this,h,Ge(e,u),p,e)}):s.length>3&&(i=function(h,u,p){return s.call(this,h,u,p,e)}));const c=o[t](i,...n);return l?Ge(e,c):c}function Hs(e,t,s){const n=se(e);we(n,"iterate",Xt);const o=n[t](...s);return(o===-1||o===!1)&&mn(s[0])?(s[0]=se(s[0]),n[t](...s)):o}function Vt(e,t,s=[]){ut(),an();const n=se(e)[t].apply(e,s);return cn(),dt(),n}const Mr=nn("__proto__,__v_isRef,__isVue"),$o=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(et));function Rr(e){et(e)||(e=String(e));const t=se(this);return we(t,"has",e),t.hasOwnProperty(e)}class ko{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(o?r?Kr:Io:r?Po:Ao).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=z(t);if(!o){let c;if(i&&(c=Ir[s]))return c;if(s==="hasOwnProperty")return Rr}const l=Reflect.get(t,s,Te(t)?t:n);if((et(s)?$o.has(s):Mr(s))||(o||we(t,"get",s),r))return l;if(Te(l)){const c=i&&rn(s)?l:l.value;return o&&ie(c)?Ys(c):c}return ie(l)?o?Ys(l):pn(l):l}}class Eo extends ko{constructor(t=!1){super(!1,t)}set(t,s,n,o){let r=t[s];const i=z(t)&&rn(s);if(!this._isShallow){const h=ft(r);if(!Fe(n)&&!ft(n)&&(r=se(r),n=se(n)),!i&&Te(r)&&!Te(n))return h||(r.value=n),!0}const l=i?Number(s)<t.length:ne(t,s),c=Reflect.set(t,s,n,Te(t)?t:o);return t===se(o)&&(l?Ze(n,r)&<(t,"set",s,n):lt(t,"add",s,n)),c}deleteProperty(t,s){const n=ne(t,s);t[s];const o=Reflect.deleteProperty(t,s);return o&&n&<(t,"delete",s,void 0),o}has(t,s){const n=Reflect.has(t,s);return(!et(s)||!$o.has(s))&&we(t,"has",s),n}ownKeys(t){return we(t,"iterate",z(t)?"length":Ct),Reflect.ownKeys(t)}}class Dr extends ko{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const jr=new Eo,Lr=new Dr,Nr=new Eo(!0);const Gs=e=>e,ls=e=>Reflect.getPrototypeOf(e);function Fr(e,t,s){return function(...n){const o=this.__v_raw,r=se(o),i=It(r),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,h=o[e](...n),u=s?Gs:t?Rt:Be;return!t&&we(r,"iterate",c?Js:Ct),_e(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 as(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Hr(e,t){const s={get(o){const r=this.__v_raw,i=se(r),l=se(o);e||(Ze(o,l)&&we(i,"get",o),we(i,"get",l));const{has:c}=ls(i),h=t?Gs:e?Rt:Be;if(c.call(i,o))return h(r.get(o));if(c.call(i,l))return h(r.get(l));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&we(se(o),"iterate",Ct),o.size},has(o){const r=this.__v_raw,i=se(r),l=se(o);return e||(Ze(o,l)&&we(i,"has",o),we(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=se(l),h=t?Gs:e?Rt:Be;return!e&&we(c,"iterate",Ct),l.forEach((u,p)=>o.call(r,h(u),h(p),i))}};return _e(s,e?{add:as("add"),set:as("set"),delete:as("delete"),clear:as("clear")}:{add(o){const r=se(this),i=ls(r),l=se(o),c=!t&&!Fe(o)&&!ft(o)?l:o;return i.has.call(r,c)||Ze(o,c)&&i.has.call(r,o)||Ze(l,c)&&i.has.call(r,l)||(r.add(c),lt(r,"add",c,c)),this},set(o,r){!t&&!Fe(r)&&!ft(r)&&(r=se(r));const i=se(this),{has:l,get:c}=ls(i);let h=l.call(i,o);h||(o=se(o),h=l.call(i,o));const u=c.call(i,o);return i.set(o,r),h?Ze(r,u)&<(i,"set",o,r):lt(i,"add",o,r),this},delete(o){const r=se(this),{has:i,get:l}=ls(r);let c=i.call(r,o);c||(o=se(o),c=i.call(r,o)),l&&l.call(r,o);const h=r.delete(o);return c&<(r,"delete",o,void 0),h},clear(){const o=se(this),r=o.size!==0,i=o.clear();return r&<(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Fr(o,e,t)}),s}function fn(e,t){const s=Hr(e,t);return(n,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(ne(s,o)&&o in n?s:n,o,r)}const Vr={get:fn(!1,!1)},Ur={get:fn(!1,!0)},Br={get:fn(!0,!1)};const Ao=new WeakMap,Po=new WeakMap,Io=new WeakMap,Kr=new WeakMap;function Wr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zr(e){return e.__v_skip||!Object.isExtensible(e)?0:Wr(xr(e))}function pn(e){return ft(e)?e:hn(e,!1,jr,Vr,Ao)}function qr(e){return hn(e,!1,Nr,Ur,Po)}function Ys(e){return hn(e,!0,Lr,Br,Io)}function hn(e,t,s,n,o){if(!ie(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 Tt(e){return ft(e)?Tt(e.__v_raw):!!(e&&e.__v_isReactive)}function ft(e){return!!(e&&e.__v_isReadonly)}function Fe(e){return!!(e&&e.__v_isShallow)}function mn(e){return e?!!e.__v_raw:!1}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function Jr(e){return!ne(e,"__v_skip")&&Object.isExtensible(e)&&ho(e,"__v_skip",!0),e}const Be=e=>ie(e)?pn(e):e,Rt=e=>ie(e)?Ys(e):e;function Te(e){return e?e.__v_isRef===!0:!1}function M(e){return Gr(e,!1)}function Gr(e,t){return Te(e)?e:new Yr(e,t)}class Yr{constructor(t,s){this.dep=new dn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:se(t),this._value=s?t:Be(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Fe(t)||ft(t);t=n?t:se(t),Ze(t,s)&&(this._rawValue=t,this._value=n?t:Be(t),this.dep.trigger())}}function Zr(e){return Te(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 Te(o)&&!Te(s)?(o.value=s,!0):Reflect.set(e,t,s,n)}};function Oo(e){return Tt(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 dn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Qt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&fe!==this)return bo(this,!0),!0}get value(){const t=this.dep.track();return So(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ei(e,t,s=!1){let n,o;return Y(e)?n=e:(n=e.get,o=e.set),new Xr(n,o,s)}const cs={},gs=new WeakMap;let St;function ti(e,t=!1,s=St){if(s){let n=gs.get(s);n||gs.set(s,n=[]),n.push(e)}}function si(e,t,s=ae){const{immediate:n,deep:o,once:r,scheduler:i,augmentJob:l,call:c}=s,h=L=>o?L:Fe(L)||o===!1||o===0?at(L,1):at(L);let u,p,g,T,N=!1,R=!1;if(Te(e)?(p=()=>e.value,N=Fe(e)):Tt(e)?(p=()=>h(e),N=!0):z(e)?(R=!0,N=e.some(L=>Tt(L)||Fe(L)),p=()=>e.map(L=>{if(Te(L))return L.value;if(Tt(L))return h(L);if(Y(L))return c?c(L,2):L()})):Y(e)?t?p=c?()=>c(e,2):e:p=()=>{if(g){ut();try{g()}finally{dt()}}const L=St;St=u;try{return c?c(e,3,[T]):e(T)}finally{St=L}}:p=Qe,t&&o){const L=p,U=o===!0?1/0:o;p=()=>at(L(),U)}const J=Er(),O=()=>{u.stop(),J&&J.active&&on(J.effects,u)};if(r&&t){const L=t;t=(...U)=>{L(...U),O()}}let H=R?new Array(e.length).fill(cs):cs;const G=L=>{if(!(!(u.flags&1)||!u.dirty&&!L))if(t){const U=u.run();if(o||N||(R?U.some((D,B)=>Ze(D,H[B])):Ze(U,H))){g&&g();const D=St;St=u;try{const B=[U,H===cs?void 0:R&&H[0]===cs?[]:H,T];H=U,c?c(t,3,B):t(...B)}finally{St=D}}}else u.run()};return l&&l(G),u=new vo(p),u.scheduler=i?()=>i(G,!1):G,T=L=>ti(L,!1,u),g=u.onStop=()=>{const L=gs.get(u);if(L){if(c)c(L,4);else for(const U of L)U();gs.delete(u)}},t?n?G(!0):H=u.run():i?i(G.bind(null,!0),!0):u.run(),O.pause=u.pause.bind(u),O.resume=u.resume.bind(u),O.stop=O,O}function at(e,t=1/0,s){if(t<=0||!ie(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,Te(e))at(e.value,t,s);else if(z(e))for(let n=0;n<e.length;n++)at(e[n],t,s);else if(Lt(e)||It(e))e.forEach(n=>{at(n,t,s)});else if(po(e)){for(const n in e)at(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&at(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 os(e,t,s,n){try{return n?e(...n):e()}catch(o){Ms(o,t,s)}}function Ge(e,t,s,n){if(K(e)){const o=os(e,t,s,n);return o&&uo(o)&&o.catch(r=>{Ms(r,t,s)}),o}if(U(e)){const o=[];for(let r=0;r<e.length;r++)o.push(Ge(e[r],t,s,n));return o}}function Ms(e,t,s,n=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||te;if(t){let l=t.parent;const c=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const u=l.ec;if(u){for(let p=0;p<u.length;p++)if(u[p](e,c,h)===!1)return}l=l.parent}if(r){it(),os(r,null,10,[e,c,h]),lt();return}}ni(e,s,o,n,i)}function ni(e,t,s,n=!0,o=!1){if(o)throw e;console.error(e)}const _e=[];let Ve=-1;const Mt=[];let ft=null,At=0;const Io=Promise.resolve();let xs=null;function Ro(e){const t=xs||Io;return e?t.then(this?e.bind(this):e):t}function oi(e){let t=Ve+1,s=_e.length;for(;t<s;){const n=t+s>>>1,o=_e[n],r=Xt(o);r<e||r===e&&o.flags&2?t=n+1:s=n}return t}function gn(e){if(!(e.flags&1)){const t=Xt(e),s=_e[_e.length-1];!s||!(e.flags&2)&&t>=Xt(s)?_e.push(e):_e.splice(oi(t),0,e),e.flags|=1,Do()}}function Do(){xs||(xs=Io.then(Lo))}function ri(e){U(e)?Mt.push(...e):ft&&e.id===-1?ft.splice(At+1,0,e):e.flags&1||(Mt.push(e),e.flags|=1),Do()}function Mn(e,t,s=Ve+1){for(;s<_e.length;s++){const n=_e[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;_e.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function jo(e){if(Mt.length){const t=[...new Set(Mt)].sort((s,n)=>Xt(s)-Xt(n));if(Mt.length=0,ft){ft.push(...t);return}for(ft=t,At=0;At<ft.length;At++){const s=ft[At];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}ft=null,At=0}}const Xt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Lo(e){try{for(Ve=0;Ve<_e.length;Ve++){const t=_e[Ve];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),os(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ve<_e.length;Ve++){const t=_e[Ve];t&&(t.flags&=-2)}Ve=-1,_e.length=0,jo(),xs=null,(_e.length||Mt.length)&&Lo()}}let Ee=null,No=null;function vs(e){const t=Ee;return Ee=e,No=e&&e.type.__scopeId||null,t}function ii(e,t=Ee,s){if(!t||e._n)return e;const n=(...o)=>{n._d&&Bn(-1);const r=vs(t);let i;try{i=e(...o)}finally{vs(r),n._d&&Bn(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function fe(e,t){if(Ee===null)return e;const s=Ds(Ee),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,l,c=te]=t[o];r&&(K(r)&&(r={mounted:r,updated:r}),r.deep&&ot(i),n.push({dir:r,instance:s,value:i,oldValue:void 0,arg:l,modifiers:c}))}return e}function vt(e,t,s,n){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const l=o[i];r&&(l.oldValue=r[i].value);let c=l.dir[n];c&&(it(),Ge(c,s,8,[e.el,l,e,t]),lt())}}function li(e,t){if(ve){let s=ve.provides;const n=ve.parent&&ve.parent.provides;n===s&&(s=ve.provides=Object.create(n)),s[e]=t}}function ds(e,t,s=!1){const n=ll();if(n||Ot){let o=Ot?Ot._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return s&&K(t)?t.call(n&&n.proxy):t}}const ai=Symbol.for("v-scx"),ci=()=>ds(ai);function Vs(e,t,s){return Fo(e,t,s)}function Fo(e,t,s=te){const{immediate:n,deep:o,flush:r,once:i}=s,l=ge({},s),c=t&&n||!t&&r!=="post";let h;if(ts){if(r==="sync"){const S=ci();h=S.__watcherHandles||(S.__watcherHandles=[])}else if(!c){const S=()=>{};return S.stop=ze,S.resume=ze,S.pause=ze,S}}const u=ve;l.call=(S,P,M)=>Ge(S,u,P,M);let p=!1;r==="post"?l.scheduler=S=>{Se(S,u&&u.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(S,P)=>{P?S():gn(S)}),l.augmentJob=S=>{t&&(S.flags|=4),p&&(S.flags|=2,u&&(S.id=u.uid,S.i=u))};const m=si(e,t,l);return ts&&(h?h.push(m):c&&m()),m}function ui(e,t,s){const n=this.proxy,o=ae(e)?e.includes(".")?Ho(n,e):()=>n[e]:e.bind(n,n);let r;K(t)?r=t:(r=t.handler,s=t);const i=rs(this),l=Fo(o,r.bind(n),s);return i(),l}function Ho(e,t){const s=t.split(".");return()=>{let n=e;for(let o=0;o<s.length&&n;o++)n=n[s[o]];return n}}const fi=Symbol("_vte"),di=e=>e.__isTeleport,pi=Symbol("_leaveCb");function xn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,xn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ct(e,t){return K(e)?ge({name:e.name},t,{setup:e}):e}function Vo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function On(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const bs=new WeakMap;function qt(e,t,s,n,o=!1){if(U(e)){e.forEach((M,W)=>qt(M,t&&(U(t)?t[W]:t),s,n,o));return}if(Jt(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&qt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?Ds(n.component):n.el,i=o?null:r,{i:l,r:c}=e,h=t&&t.r,u=l.refs===te?l.refs={}:l.refs,p=l.setupState,m=G(p),S=p===te?co:M=>On(u,M)?!1:Y(m,M),P=(M,W)=>!(W&&On(u,W));if(h!=null&&h!==c){if(In(t),ae(h))u[h]=null,S(h)&&(p[h]=null);else if(be(h)){const M=t;P(h,M.k)&&(h.value=null),M.k&&(u[M.k]=null)}}if(K(c))os(c,l,12,[i,u]);else{const M=ae(c),W=be(c);if(M||W){const E=()=>{if(e.f){const N=M?S(c)?p[c]:u[c]:P()||!e.k?c.value:u[e.k];if(o)U(N)&&on(N,r);else if(U(N))N.includes(r)||N.push(r);else if(M)u[c]=[r],S(c)&&(p[c]=u[c]);else{const z=[r];P(c,e.k)&&(c.value=z),e.k&&(u[e.k]=z)}}else M?(u[c]=i,S(c)&&(p[c]=i)):W&&(P(c,e.k)&&(c.value=i),e.k&&(u[e.k]=i))};if(i){const N=()=>{E(),bs.delete(e)};N.id=-1,bs.set(e,N),Se(N,s)}else In(e),E()}}}function In(e){const t=bs.get(e);t&&(t.flags|=8,bs.delete(e))}As().requestIdleCallback;As().cancelIdleCallback;const Jt=e=>!!e.type.__asyncLoader,Uo=e=>e.type.__isKeepAlive;function hi(e,t){Bo(e,"a",t)}function mi(e,t){Bo(e,"da",t)}function Bo(e,t,s=ve){const n=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Os(t,n,s),s){let o=s.parent;for(;o&&o.parent;)Uo(o.parent.vnode)&&gi(n,t,s,o),o=o.parent}}function gi(e,t,s,n){const o=Os(t,e,n,!0);vn(()=>{on(n[t],o)},s)}function Os(e,t,s=ve,n=!1){if(s){const o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{it();const l=rs(s),c=Ge(t,s,e,i);return l(),lt(),c});return n?o.unshift(r):o.push(r),r}}const ut=e=>(t,s=ve)=>{(!ts||e==="sp")&&Os(e,(...n)=>t(...n),s)},xi=ut("bm"),gt=ut("m"),vi=ut("bu"),bi=ut("u"),yi=ut("bum"),vn=ut("um"),_i=ut("sp"),wi=ut("rtg"),Si=ut("rtc");function Ci(e,t=ve){Os("ec",e,t)}const Ti="components",Ko=Symbol.for("v-ndc");function $i(e){return ae(e)?ki(Ti,e,!1)||e:e||Ko}function ki(e,t,s=!0,n=!1){const o=Ee||ve;if(o){const r=o.type;{const l=dl(r,!1);if(l&&(l===t||l===we(t)||l===$s(we(t))))return r}const i=Rn(o[e]||r[e],t)||Rn(o.appContext[e],t);return!i&&n?r:i}}function Rn(e,t){return e&&(e[t]||e[we(t)]||e[$s(we(t))])}function ct(e,t,s,n){let o;const r=s,i=U(e);if(i||ae(e)){const l=i&&St(e);let c=!1,h=!1;l&&(c=!Ie(e),h=at(e),e=Ps(e)),o=new Array(e.length);for(let u=0,p=e.length;u<p;u++)o[u]=t(c?h?It(je(e[u])):je(e[u]):e[u],u,void 0,r)}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,r)}else if(X(e))if(e[Symbol.iterator])o=Array.from(e,(l,c)=>t(l,c,void 0,r));else{const l=Object.keys(e);o=new Array(l.length);for(let c=0,h=l.length;c<h;c++){const u=l[c];o[c]=t(e[u],u,c,r)}}else o=[];return o}const Zs=e=>e?dr(e)?Ds(e):Zs(e.parent):null,Gt=ge(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Zs(e.parent),$root:e=>Zs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zo(e),$forceUpdate:e=>e.f||(e.f=()=>{gn(e.update)}),$nextTick:e=>e.n||(e.n=Ro.bind(e.proxy)),$watch:e=>ui.bind(e)}),Us=(e,t)=>e!==te&&!e.__isScriptSetup&&Y(e,t),Ai={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:o,props:r,accessCache:i,type:l,appContext:c}=e;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return n[t];case 2:return o[t];case 4:return s[t];case 3:return r[t]}else{if(Us(n,t))return i[t]=1,n[t];if(o!==te&&Y(o,t))return i[t]=2,o[t];if(Y(r,t))return i[t]=3,r[t];if(s!==te&&Y(s,t))return i[t]=4,s[t];Qs&&(i[t]=0)}}const h=Gt[t];let u,p;if(h)return t==="$attrs"&&xe(e.attrs,"get",""),h(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(s!==te&&Y(s,t))return i[t]=4,s[t];if(p=c.config.globalProperties,Y(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:o,ctx:r}=e;return Us(o,t)?(o[t]=s,!0):n!==te&&Y(n,t)?(n[t]=s,!0):Y(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:o,props:r,type:i}},l){let c;return!!(s[l]||e!==te&&l[0]!=="$"&&Y(e,l)||Us(t,l)||Y(r,l)||Y(n,l)||Y(Gt,l)||Y(o.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Y(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Dn(e){return U(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Qs=!0;function Ei(e){const t=zo(e),s=e.proxy,n=e.ctx;Qs=!1,t.beforeCreate&&jn(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:c,inject:h,created:u,beforeMount:p,mounted:m,beforeUpdate:S,updated:P,activated:M,deactivated:W,beforeDestroy:E,beforeUnmount:N,destroyed:z,unmounted:j,render:F,renderTracked:O,renderTriggered:V,errorCaptured:ie,serverPrefetch:J,expose:ce,inheritAttrs:Me,components:Ye,directives:$e,filters:Tt}=t;if(h&&Pi(h,n,null),i)for(const oe in i){const Z=i[oe];K(Z)&&(n[oe]=Z.bind(s))}if(o){const oe=o.call(s,s);X(oe)&&(e.data=pn(oe))}if(Qs=!0,r)for(const oe in r){const Z=r[oe],Ze=K(Z)?Z.bind(s,s):K(Z.get)?Z.get.bind(s,s):ze,$t=!K(Z)&&K(Z.set)?Z.set.bind(s):ze,Qe=ht({get:Ze,set:$t});Object.defineProperty(n,oe,{enumerable:!0,configurable:!0,get:()=>Qe.value,set:Oe=>Qe.value=Oe})}if(l)for(const oe in l)Wo(l[oe],n,s,oe);if(c){const oe=K(c)?c.call(s):c;Reflect.ownKeys(oe).forEach(Z=>{li(Z,oe[Z])})}u&&jn(u,e,"c");function he(oe,Z){U(Z)?Z.forEach(Ze=>oe(Ze.bind(s))):Z&&oe(Z.bind(s))}if(he(xi,p),he(gt,m),he(vi,S),he(bi,P),he(hi,M),he(mi,W),he(Ci,ie),he(Si,O),he(wi,V),he(yi,N),he(vn,j),he(_i,J),U(ce))if(ce.length){const oe=e.exposed||(e.exposed={});ce.forEach(Z=>{Object.defineProperty(oe,Z,{get:()=>s[Z],set:Ze=>s[Z]=Ze,enumerable:!0})})}else e.exposed||(e.exposed={});F&&e.render===ze&&(e.render=F),Me!=null&&(e.inheritAttrs=Me),Ye&&(e.components=Ye),$e&&(e.directives=$e),J&&Vo(e)}function Pi(e,t,s=ze){U(e)&&(e=Xs(e));for(const n in e){const o=e[n];let r;X(o)?"default"in o?r=ds(o.from||n,o.default,!0):r=ds(o.from||n):r=ds(o),be(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function jn(e,t,s){Ge(U(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Wo(e,t,s,n){let o=n.includes(".")?Ho(s,n):()=>s[n];if(ae(e)){const r=t[e];K(r)&&Vs(o,r)}else if(K(e))Vs(o,e.bind(s));else if(X(e))if(U(e))e.forEach(r=>Wo(r,t,s,n));else{const r=K(e.handler)?e.handler.bind(s):t[e.handler];K(r)&&Vs(o,r,e)}}function zo(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let c;return l?c=l:!o.length&&!s&&!n?c=t:(c={},o.length&&o.forEach(h=>ys(c,h,i,!0)),ys(c,t,i)),X(t)&&r.set(t,c),c}function ys(e,t,s,n=!1){const{mixins:o,extends:r}=t;r&&ys(e,r,s,!0),o&&o.forEach(i=>ys(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const l=Mi[i]||s&&s[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Mi={data:Ln,props:Nn,emits:Nn,methods:Bt,computed:Bt,beforeCreate:ye,created:ye,beforeMount:ye,mounted:ye,beforeUpdate:ye,updated:ye,beforeDestroy:ye,beforeUnmount:ye,destroyed:ye,unmounted:ye,activated:ye,deactivated:ye,errorCaptured:ye,serverPrefetch:ye,components:Bt,directives:Bt,watch:Ii,provide:Ln,inject:Oi};function Ln(e,t){return t?e?function(){return ge(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Oi(e,t){return Bt(Xs(e),Xs(t))}function Xs(e){if(U(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function ye(e,t){return e?[...new Set([].concat(e,t))]:t}function Bt(e,t){return e?ge(Object.create(null),e,t):t}function Nn(e,t){return e?U(e)&&U(t)?[...new Set([...e,...t])]:ge(Object.create(null),Dn(e),Dn(t??{})):t}function Ii(e,t){if(!e)return t;if(!t)return e;const s=ge(Object.create(null),e);for(const n in t)s[n]=ye(e[n],t[n]);return s}function qo(){return{app:null,config:{isNativeTag:co,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ri=0;function Di(e,t){return function(n,o=null){K(n)||(n=ge({},n)),o!=null&&!X(o)&&(o=null);const r=qo(),i=new WeakSet,l=[];let c=!1;const h=r.app={_uid:Ri++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:hl,get config(){return r.config},set config(u){},use(u,...p){return i.has(u)||(u&&K(u.install)?(i.add(u),u.install(h,...p)):K(u)&&(i.add(u),u(h,...p))),h},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),h},component(u,p){return p?(r.components[u]=p,h):r.components[u]},directive(u,p){return p?(r.directives[u]=p,h):r.directives[u]},mount(u,p,m){if(!c){const S=h._ceVNode||qe(n,o);return S.appContext=r,m===!0?m="svg":m===!1&&(m=void 0),e(S,u,m),c=!0,h._container=u,u.__vue_app__=h,Ds(S.component)}},onUnmount(u){l.push(u)},unmount(){c&&(Ge(l,h._instance,16),e(null,h._container),delete h._container.__vue_app__)},provide(u,p){return r.provides[u]=p,h},runWithContext(u){const p=Ot;Ot=h;try{return u()}finally{Ot=p}}};return h}}let Ot=null;const ji=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${we(t)}Modifiers`]||e[`${mt(t)}Modifiers`];function Li(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||te;let o=s;const r=t.startsWith("update:"),i=r&&ji(n,t.slice(7));i&&(i.trim&&(o=s.map(u=>ae(u)?u.trim():u)),i.number&&(o=s.map(ks)));let l,c=n[l=js(t)]||n[l=js(we(t))];!c&&r&&(c=n[l=js(mt(t))]),c&&Ge(c,e,6,o);const h=n[l+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ge(h,e,6,o)}}const Ni=new WeakMap;function Jo(e,t,s=!1){const n=s?Ni:t.emitsCache,o=n.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!K(e)){const c=h=>{const u=Jo(h,t,!0);u&&(l=!0,ge(i,u))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!l?(X(e)&&n.set(e,null),null):(U(r)?r.forEach(c=>i[c]=null):ge(i,r),X(e)&&n.set(e,i),i)}function Is(e,t){return!e||!Ss(t)?!1:(t=t.slice(2).replace(/Once$/,""),Y(e,t[0].toLowerCase()+t.slice(1))||Y(e,mt(t))||Y(e,t))}function Fn(e){const{type:t,vnode:s,proxy:n,withProxy:o,propsOptions:[r],slots:i,attrs:l,emit:c,render:h,renderCache:u,props:p,data:m,setupState:S,ctx:P,inheritAttrs:M}=e,W=vs(e);let E,N;try{if(s.shapeFlag&4){const j=o||n,F=j;E=Be(h.call(F,j,u,p,S,m,P)),N=l}else{const j=t;E=Be(j.length>1?j(p,{attrs:l,slots:i,emit:c}):j(p,null)),N=t.props?l:Fi(l)}}catch(j){Yt.length=0,Ms(j,e,1),E=qe(pt)}let z=E;if(N&&M!==!1){const j=Object.keys(N),{shapeFlag:F}=z;j.length&&F&7&&(r&&j.some(Cs)&&(N=Hi(N,r)),z=Rt(z,N,!1,!0))}return s.dirs&&(z=Rt(z,null,!1,!0),z.dirs=z.dirs?z.dirs.concat(s.dirs):s.dirs),s.transition&&xn(z,s.transition),E=z,vs(W),E}const Fi=e=>{let t;for(const s in e)(s==="class"||s==="style"||Ss(s))&&((t||(t={}))[s]=e[s]);return t},Hi=(e,t)=>{const s={};for(const n in e)(!Cs(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Vi(e,t,s){const{props:n,children:o,component:r}=e,{props:i,children:l,patchFlag:c}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Hn(n,i,h):!!i;if(c&8){const u=t.dynamicProps;for(let p=0;p<u.length;p++){const m=u[p];if(Go(i,n,m)&&!Is(h,m))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:n===i?!1:n?i?Hn(n,i,h):!0:!!i;return!1}function Hn(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const r=n[o];if(Go(t,e,r)&&!Is(s,r))return!0}return!1}function Go(e,t,s){const n=e[s],o=t[s];return s==="style"&&X(n)&&X(o)?!Lt(n,o):n!==o}function Ui({vnode:e,parent:t,suspense:s},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=n,e=o),o===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const Yo={},Zo=()=>Object.create(Yo),Qo=e=>Object.getPrototypeOf(e)===Yo;function Bi(e,t,s,n=!1){const o={},r=Zo();e.propsDefaults=Object.create(null),Xo(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);s?e.props=n?o:qr(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Ki(e,t,s,n){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=G(o),[c]=e.propsOptions;let h=!1;if((n||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let p=0;p<u.length;p++){let m=u[p];if(Is(e.emitsOptions,m))continue;const S=t[m];if(c)if(Y(r,m))S!==r[m]&&(r[m]=S,h=!0);else{const P=we(m);o[P]=en(c,l,P,S,e,!1)}else S!==r[m]&&(r[m]=S,h=!0)}}}else{Xo(e,t,o,r)&&(h=!0);let u;for(const p in l)(!t||!Y(t,p)&&((u=mt(p))===p||!Y(t,u)))&&(c?s&&(s[p]!==void 0||s[u]!==void 0)&&(o[p]=en(c,l,p,void 0,e,!0)):delete o[p]);if(r!==l)for(const p in r)(!t||!Y(t,p))&&(delete r[p],h=!0)}h&&nt(e.attrs,"set","")}function Xo(e,t,s,n){const[o,r]=e.propsOptions;let i=!1,l;if(t)for(let c in t){if(Kt(c))continue;const h=t[c];let u;o&&Y(o,u=we(c))?!r||!r.includes(u)?s[u]=h:(l||(l={}))[u]=h:Is(e.emitsOptions,c)||(!(c in n)||h!==n[c])&&(n[c]=h,i=!0)}if(r){const c=G(s),h=l||te;for(let u=0;u<r.length;u++){const p=r[u];s[p]=en(o,c,p,h[p],e,!Y(h,p))}}return i}function en(e,t,s,n,o,r){const i=e[s];if(i!=null){const l=Y(i,"default");if(l&&n===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&K(c)){const{propsDefaults:h}=o;if(s in h)n=h[s];else{const u=rs(o);n=h[s]=c.call(null,t),u()}}else n=c;o.ce&&o.ce._setProp(s,n)}i[0]&&(r&&!l?n=!1:i[1]&&(n===""||n===mt(s))&&(n=!0))}return n}const Wi=new WeakMap;function er(e,t,s=!1){const n=s?Wi:t.propsCache,o=n.get(e);if(o)return o;const r=e.props,i={},l=[];let c=!1;if(!K(e)){const u=p=>{c=!0;const[m,S]=er(p,t,!0);ge(i,m),S&&l.push(...S)};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!c)return X(e)&&n.set(e,Et),Et;if(U(r))for(let u=0;u<r.length;u++){const p=we(r[u]);Vn(p)&&(i[p]=te)}else if(r)for(const u in r){const p=we(u);if(Vn(p)){const m=r[u],S=i[p]=U(m)||K(m)?{type:m}:ge({},m),P=S.type;let M=!1,W=!0;if(U(P))for(let E=0;E<P.length;++E){const N=P[E],z=K(N)&&N.name;if(z==="Boolean"){M=!0;break}else z==="String"&&(W=!1)}else M=K(P)&&P.name==="Boolean";S[0]=M,S[1]=W,(M||Y(S,"default"))&&l.push(p)}}const h=[i,l];return X(e)&&n.set(e,h),h}function Vn(e){return e[0]!=="$"&&!Kt(e)}const bn=e=>e==="_"||e==="_ctx"||e==="$stable",yn=e=>U(e)?e.map(Be):[Be(e)],zi=(e,t,s)=>{if(t._n)return t;const n=ii((...o)=>yn(t(...o)),s);return n._c=!1,n},tr=(e,t,s)=>{const n=e._ctx;for(const o in e){if(bn(o))continue;const r=e[o];if(K(r))t[o]=zi(o,r,n);else if(r!=null){const i=yn(r);t[o]=()=>i}}},sr=(e,t)=>{const s=yn(t);e.slots.default=()=>s},nr=(e,t,s)=>{for(const n in t)(s||!bn(n))&&(e[n]=t[n])},qi=(e,t,s)=>{const n=e.slots=Zo();if(e.vnode.shapeFlag&32){const o=t._;o?(nr(n,t,s),s&&ho(n,"_",o,!0)):tr(t,n)}else t&&sr(e,t)},Ji=(e,t,s)=>{const{vnode:n,slots:o}=e;let r=!0,i=te;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:nr(o,t,s):(r=!t.$stable,tr(t,o)),i=t}else t&&(sr(e,t),i={default:1});if(r)for(const l in o)!bn(l)&&i[l]==null&&delete o[l]},Se=Xi;function Gi(e){return Yi(e)}function Yi(e,t){const s=As();s.__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:i,createText:l,createComment:c,setText:h,setElementText:u,parentNode:p,nextSibling:m,setScopeId:S=ze,insertStaticContent:P}=e,M=(f,d,g,y=null,x=null,v=null,T=void 0,C=null,w=!!d.dynamicChildren)=>{if(f===d)return;f&&!Vt(f,d)&&(y=Q(f),Oe(f,x,v,!0),f=null),d.patchFlag===-2&&(w=!1,d.dynamicChildren=null);const{type:b,ref:H,shapeFlag:k}=d;switch(b){case Rs:W(f,d,g,y);break;case pt:E(f,d,g,y);break;case ps:f==null&&N(d,g,y,T);break;case de:Ye(f,d,g,y,x,v,T,C,w);break;default:k&1?F(f,d,g,y,x,v,T,C,w):k&6?$e(f,d,g,y,x,v,T,C,w):(k&64||k&128)&&b.process(f,d,g,y,x,v,T,C,w,Nt)}H!=null&&x?qt(H,f&&f.ref,v,d||f,!d):H==null&&f&&f.ref!=null&&qt(f.ref,null,v,f,!0)},W=(f,d,g,y)=>{if(f==null)n(d.el=l(d.children),g,y);else{const x=d.el=f.el;d.children!==f.children&&h(x,d.children)}},E=(f,d,g,y)=>{f==null?n(d.el=c(d.children||""),g,y):d.el=f.el},N=(f,d,g,y)=>{[f.el,f.anchor]=P(f.children,d,g,y,f.el,f.anchor)},z=({el:f,anchor:d},g,y)=>{let x;for(;f&&f!==d;)x=m(f),n(f,g,y),f=x;n(d,g,y)},j=({el:f,anchor:d})=>{let g;for(;f&&f!==d;)g=m(f),o(f),f=g;o(d)},F=(f,d,g,y,x,v,T,C,w)=>{if(d.type==="svg"?T="svg":d.type==="math"&&(T="mathml"),f==null)O(d,g,y,x,v,T,C,w);else{const b=f.el&&f.el._isVueCE?f.el:null;try{b&&b._beginPatch(),J(f,d,x,v,T,C,w)}finally{b&&b._endPatch()}}},O=(f,d,g,y,x,v,T,C)=>{let w,b;const{props:H,shapeFlag:k,transition:L,dirs:B}=f;if(w=f.el=i(f.type,v,H&&H.is,H),k&8?u(w,f.children):k&16&&ie(f.children,w,null,y,x,Bs(f,v),T,C),B&&vt(f,null,y,"created"),V(w,f,f.scopeId,T,y),H){for(const ee in H)ee!=="value"&&!Kt(ee)&&r(w,ee,null,H[ee],v,y);"value"in H&&r(w,"value",null,H.value,v),(b=H.onVnodeBeforeMount)&&He(b,y,f)}B&&vt(f,null,y,"beforeMount");const q=Zi(x,L);q&&L.beforeEnter(w),n(w,d,g),((b=H&&H.onVnodeMounted)||q||B)&&Se(()=>{try{b&&He(b,y,f),q&&L.enter(w),B&&vt(f,null,y,"mounted")}finally{}},x)},V=(f,d,g,y,x)=>{if(g&&S(f,g),y)for(let v=0;v<y.length;v++)S(f,y[v]);if(x){let v=x.subTree;if(d===v||lr(v.type)&&(v.ssContent===d||v.ssFallback===d)){const T=x.vnode;V(f,T,T.scopeId,T.slotScopeIds,x.parent)}}},ie=(f,d,g,y,x,v,T,C,w=0)=>{for(let b=w;b<f.length;b++){const H=f[b]=C?st(f[b]):Be(f[b]);M(null,H,d,g,y,x,v,T,C)}},J=(f,d,g,y,x,v,T)=>{const C=d.el=f.el;let{patchFlag:w,dynamicChildren:b,dirs:H}=d;w|=f.patchFlag&16;const k=f.props||te,L=d.props||te;let B;if(g&&bt(g,!1),(B=L.onVnodeBeforeUpdate)&&He(B,g,d,f),H&&vt(d,f,g,"beforeUpdate"),g&&bt(g,!0),(k.innerHTML&&L.innerHTML==null||k.textContent&&L.textContent==null)&&u(C,""),b?ce(f.dynamicChildren,b,C,g,y,Bs(d,x),v):T||Z(f,d,C,null,g,y,Bs(d,x),v,!1),w>0){if(w&16)Me(C,k,L,g,x);else if(w&2&&k.class!==L.class&&r(C,"class",null,L.class,x),w&4&&r(C,"style",k.style,L.style,x),w&8){const q=d.dynamicProps;for(let ee=0;ee<q.length;ee++){const se=q[ee],ue=k[se],me=L[se];(me!==ue||se==="value")&&r(C,se,ue,me,x,g)}}w&1&&f.children!==d.children&&u(C,d.children)}else!T&&b==null&&Me(C,k,L,g,x);((B=L.onVnodeUpdated)||H)&&Se(()=>{B&&He(B,g,d,f),H&&vt(d,f,g,"updated")},y)},ce=(f,d,g,y,x,v,T)=>{for(let C=0;C<d.length;C++){const w=f[C],b=d[C],H=w.el&&(w.type===de||!Vt(w,b)||w.shapeFlag&198)?p(w.el):g;M(w,b,H,null,y,x,v,T,!0)}},Me=(f,d,g,y,x)=>{if(d!==g){if(d!==te)for(const v in d)!Kt(v)&&!(v in g)&&r(f,v,d[v],null,x,y);for(const v in g){if(Kt(v))continue;const T=g[v],C=d[v];T!==C&&v!=="value"&&r(f,v,C,T,x,y)}"value"in g&&r(f,"value",d.value,g.value,x)}},Ye=(f,d,g,y,x,v,T,C,w)=>{const b=d.el=f?f.el:l(""),H=d.anchor=f?f.anchor:l("");let{patchFlag:k,dynamicChildren:L,slotScopeIds:B}=d;B&&(C=C?C.concat(B):B),f==null?(n(b,g,y),n(H,g,y),ie(d.children||[],g,H,x,v,T,C,w)):k>0&&k&64&&L&&f.dynamicChildren&&f.dynamicChildren.length===L.length?(ce(f.dynamicChildren,L,g,x,v,T,C),(d.key!=null||x&&d===x.subTree)&&or(f,d,!0)):Z(f,d,g,H,x,v,T,C,w)},$e=(f,d,g,y,x,v,T,C,w)=>{d.slotScopeIds=C,f==null?d.shapeFlag&512?x.ctx.activate(d,g,y,T,w):Tt(d,g,y,x,v,T,w):is(f,d,w)},Tt=(f,d,g,y,x,v,T)=>{const C=f.component=il(f,y,x);if(Uo(f)&&(C.ctx.renderer=Nt),al(C,!1,T),C.asyncDep){if(x&&x.registerDep(C,he,T),!f.el){const w=C.subTree=qe(pt);E(null,w,d,g),f.placeholder=w.el}}else he(C,f,d,g,x,v,T)},is=(f,d,g)=>{const y=d.component=f.component;if(Vi(f,d,g))if(y.asyncDep&&!y.asyncResolved){oe(y,d,g);return}else y.next=d,y.update();else d.el=f.el,y.vnode=d},he=(f,d,g,y,x,v,T)=>{const C=()=>{if(f.isMounted){let{next:k,bu:L,u:B,parent:q,vnode:ee}=f;{const Ne=rr(f);if(Ne){k&&(k.el=ee.el,oe(f,k,T)),Ne.asyncDep.then(()=>{Se(()=>{f.isUnmounted||b()},x)});return}}let se=k,ue;bt(f,!1),k?(k.el=ee.el,oe(f,k,T)):k=ee,L&&fs(L),(ue=k.props&&k.props.onVnodeBeforeUpdate)&&He(ue,q,k,ee),bt(f,!0);const me=Fn(f),Le=f.subTree;f.subTree=me,M(Le,me,p(Le.el),Q(Le),f,x,v),k.el=me.el,se===null&&Ui(f,me.el),B&&Se(B,x),(ue=k.props&&k.props.onVnodeUpdated)&&Se(()=>He(ue,q,k,ee),x)}else{let k;const{el:L,props:B}=d,{bm:q,m:ee,parent:se,root:ue,type:me}=f,Le=Jt(d);bt(f,!1),q&&fs(q),!Le&&(k=B&&B.onVnodeBeforeMount)&&He(k,se,d),bt(f,!0);{ue.ce&&ue.ce._hasShadowRoot()&&ue.ce._injectChildStyle(me,f.parent?f.parent.type:void 0);const Ne=f.subTree=Fn(f);M(null,Ne,g,y,f,x,v),d.el=Ne.el}if(ee&&Se(ee,x),!Le&&(k=B&&B.onVnodeMounted)){const Ne=d;Se(()=>He(k,se,Ne),x)}(d.shapeFlag&256||se&&Jt(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&Se(f.a,x),f.isMounted=!0,d=g=y=null}};f.scope.on();const w=f.effect=new vo(C);f.scope.off();const b=f.update=w.run.bind(w),H=f.job=w.runIfDirty.bind(w);H.i=f,H.id=f.uid,w.scheduler=()=>gn(H),bt(f,!0),b()},oe=(f,d,g)=>{d.component=f;const y=f.vnode.props;f.vnode=d,f.next=null,Ki(f,d.props,y,g),Ji(f,d.children,g),it(),Mn(f),lt()},Z=(f,d,g,y,x,v,T,C,w=!1)=>{const b=f&&f.children,H=f?f.shapeFlag:0,k=d.children,{patchFlag:L,shapeFlag:B}=d;if(L>0){if(L&128){$t(b,k,g,y,x,v,T,C,w);return}else if(L&256){Ze(b,k,g,y,x,v,T,C,w);return}}B&8?(H&16&&ke(b,x,v),k!==b&&u(g,k)):H&16?B&16?$t(b,k,g,y,x,v,T,C,w):ke(b,x,v,!0):(H&8&&u(g,""),B&16&&ie(k,g,y,x,v,T,C,w))},Ze=(f,d,g,y,x,v,T,C,w)=>{f=f||Et,d=d||Et;const b=f.length,H=d.length,k=Math.min(b,H);let L;for(L=0;L<k;L++){const B=d[L]=w?st(d[L]):Be(d[L]);M(f[L],B,g,null,x,v,T,C,w)}b>H?ke(f,x,v,!0,!1,k):ie(d,g,y,x,v,T,C,w,k)},$t=(f,d,g,y,x,v,T,C,w)=>{let b=0;const H=d.length;let k=f.length-1,L=H-1;for(;b<=k&&b<=L;){const B=f[b],q=d[b]=w?st(d[b]):Be(d[b]);if(Vt(B,q))M(B,q,g,null,x,v,T,C,w);else break;b++}for(;b<=k&&b<=L;){const B=f[k],q=d[L]=w?st(d[L]):Be(d[L]);if(Vt(B,q))M(B,q,g,null,x,v,T,C,w);else break;k--,L--}if(b>k){if(b<=L){const B=L+1,q=B<H?d[B].el:y;for(;b<=L;)M(null,d[b]=w?st(d[b]):Be(d[b]),g,q,x,v,T,C,w),b++}}else if(b>L)for(;b<=k;)Oe(f[b],x,v,!0),b++;else{const B=b,q=b,ee=new Map;for(b=q;b<=L;b++){const Ae=d[b]=w?st(d[b]):Be(d[b]);Ae.key!=null&&ee.set(Ae.key,b)}let se,ue=0;const me=L-q+1;let Le=!1,Ne=0;const Ft=new Array(me);for(b=0;b<me;b++)Ft[b]=0;for(b=B;b<=k;b++){const Ae=f[b];if(ue>=me){Oe(Ae,x,v,!0);continue}let Fe;if(Ae.key!=null)Fe=ee.get(Ae.key);else for(se=q;se<=L;se++)if(Ft[se-q]===0&&Vt(Ae,d[se])){Fe=se;break}Fe===void 0?Oe(Ae,x,v,!0):(Ft[Fe-q]=b+1,Fe>=Ne?Ne=Fe:Le=!0,M(Ae,d[Fe],g,null,x,v,T,C,w),ue++)}const Cn=Le?Qi(Ft):Et;for(se=Cn.length-1,b=me-1;b>=0;b--){const Ae=q+b,Fe=d[Ae],Tn=d[Ae+1],$n=Ae+1<H?Tn.el||ir(Tn):y;Ft[b]===0?M(null,Fe,g,$n,x,v,T,C,w):Le&&(se<0||b!==Cn[se]?Qe(Fe,g,$n,2):se--)}}},Qe=(f,d,g,y,x=null)=>{const{el:v,type:T,transition:C,children:w,shapeFlag:b}=f;if(b&6){Qe(f.component.subTree,d,g,y);return}if(b&128){f.suspense.move(d,g,y);return}if(b&64){T.move(f,d,g,Nt);return}if(T===de){n(v,d,g);for(let k=0;k<w.length;k++)Qe(w[k],d,g,y);n(f.anchor,d,g);return}if(T===ps){z(f,d,g);return}if(y!==2&&b&1&&C)if(y===0)C.beforeEnter(v),n(v,d,g),Se(()=>C.enter(v),x);else{const{leave:k,delayLeave:L,afterLeave:B}=C,q=()=>{f.ctx.isUnmounted?o(v):n(v,d,g)},ee=()=>{v._isLeaving&&v[pi](!0),k(v,()=>{q(),B&&B()})};L?L(v,q,ee):ee()}else n(v,d,g)},Oe=(f,d,g,y=!1,x=!1)=>{const{type:v,props:T,ref:C,children:w,dynamicChildren:b,shapeFlag:H,patchFlag:k,dirs:L,cacheIndex:B,memo:q}=f;if(k===-2&&(x=!1),C!=null&&(it(),qt(C,null,g,f,!0),lt()),B!=null&&(d.renderCache[B]=void 0),H&256){d.ctx.deactivate(f);return}const ee=H&1&&L,se=!Jt(f);let ue;if(se&&(ue=T&&T.onVnodeBeforeUnmount)&&He(ue,d,f),H&6)Xe(f.component,g,y);else{if(H&128){f.suspense.unmount(g,y);return}ee&&vt(f,null,d,"beforeUnmount"),H&64?f.type.remove(f,d,g,Nt,y):b&&!b.hasOnce&&(v!==de||k>0&&k&64)?ke(b,d,g,!1,!0):(v===de&&k&384||!x&&H&16)&&ke(w,d,g),y&&I(f)}const me=q!=null&&B==null;(se&&(ue=T&&T.onVnodeUnmounted)||ee||me)&&Se(()=>{ue&&He(ue,d,f),ee&&vt(f,null,d,"unmounted"),me&&(f.el=null)},g)},I=f=>{const{type:d,el:g,anchor:y,transition:x}=f;if(d===de){_(g,y);return}if(d===ps){j(f);return}const v=()=>{o(g),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(f.shapeFlag&1&&x&&!x.persisted){const{leave:T,delayLeave:C}=x,w=()=>T(g,v);C?C(f.el,v,w):w()}else v()},_=(f,d)=>{let g;for(;f!==d;)g=m(f),o(f),f=g;o(d)},Xe=(f,d,g)=>{const{bum:y,scope:x,job:v,subTree:T,um:C,m:w,a:b}=f;Un(w),Un(b),y&&fs(y),x.stop(),v&&(v.flags|=8,Oe(T,f,d,g)),C&&Se(C,d),Se(()=>{f.isUnmounted=!0},d)},ke=(f,d,g,y=!1,x=!1,v=0)=>{for(let T=v;T<f.length;T++)Oe(f[T],d,g,y,x)},Q=f=>{if(f.shapeFlag&6)return Q(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const d=m(f.anchor||f.el),g=d&&d[fi];return g?m(g):d};let xt=!1;const Sn=(f,d,g)=>{let y;f==null?d._vnode&&(Oe(d._vnode,null,null,!0),y=d._vnode.component):M(d._vnode||null,f,d,null,null,null,g),d._vnode=f,xt||(xt=!0,Mn(y),jo(),xt=!1)},Nt={p:M,um:Oe,m:Qe,r:I,mt:Tt,mc:ie,pc:Z,pbc:ce,n:Q,o:e};return{render:Sn,hydrate:void 0,createApp:Di(Sn)}}function Bs({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function bt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function or(e,t,s=!1){const n=e.children,o=t.children;if(U(n)&&U(o))for(let r=0;r<n.length;r++){const i=n[r];let l=o[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[r]=st(o[r]),l.el=i.el),!s&&l.patchFlag!==-2&&or(i,l)),l.type===Rs&&(l.patchFlag===-1&&(l=o[r]=st(l)),l.el=i.el),l.type===pt&&!l.el&&(l.el=i.el)}}function Qi(e){const t=e.slice(),s=[0];let n,o,r,i,l;const c=e.length;for(n=0;n<c;n++){const h=e[n];if(h!==0){if(o=s[s.length-1],e[o]<h){t[n]=o,s.push(n);continue}for(r=0,i=s.length-1;r<i;)l=r+i>>1,e[s[l]]<h?r=l+1:i=l;h<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function rr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:rr(t)}function Un(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ir(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ir(t.subTree):null}const lr=e=>e.__isSuspense;function Xi(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):ri(e)}const de=Symbol.for("v-fgt"),Rs=Symbol.for("v-txt"),pt=Symbol.for("v-cmt"),ps=Symbol.for("v-stc"),Yt=[];let Pe=null;function $(e=!1){Yt.push(Pe=e?null:[])}function el(){Yt.pop(),Pe=Yt[Yt.length-1]||null}let es=1;function Bn(e,t=!1){es+=e,e<0&&Pe&&t&&(Pe.hasOnce=!0)}function ar(e){return e.dynamicChildren=es>0?Pe||Et:null,el(),es>0&&Pe&&Pe.push(e),e}function A(e,t,s,n,o,r){return ar(a(e,t,s,n,o,r,!0))}function cr(e,t,s,n,o){return ar(qe(e,t,s,n,o,!0))}function ur(e){return e?e.__v_isVNode===!0:!1}function Vt(e,t){return e.type===t.type&&e.key===t.key}const fr=({key:e})=>e??null,hs=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ae(e)||be(e)||K(e)?{i:Ee,r:e,k:t,f:!!s}:e:null);function a(e,t=null,s=null,n=0,o=null,r=e===de?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fr(t),ref:t&&hs(t),scopeId:No,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ee};return l?(_n(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=ae(s)?8:16),es>0&&!i&&Pe&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&Pe.push(c),c}const qe=tl;function tl(e,t=null,s=null,n=0,o=null,r=!1){if((!e||e===Ko)&&(e=pt),ur(e)){const l=Rt(e,t,!0);return s&&_n(l,s),es>0&&!r&&Pe&&(l.shapeFlag&6?Pe[Pe.indexOf(e)]=l:Pe.push(l)),l.patchFlag=-2,l}if(pl(e)&&(e=e.__vccOpts),t){t=sl(t);let{class:l,style:c}=t;l&&!ae(l)&&(t.class=le(l)),X(c)&&(mn(c)&&!U(c)&&(c=ge({},c)),t.style=Es(c))}const i=ae(e)?1:lr(e)?128:di(e)?64:X(e)?4:K(e)?2:0;return a(e,t,s,n,o,i,r,!0)}function sl(e){return e?mn(e)||Qo(e)?ge({},e):e:null}function Rt(e,t,s=!1,n=!1){const{props:o,ref:r,patchFlag:i,children:l,transition:c}=e,h=t?nl(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&fr(h),ref:t&&t.ref?s&&r?U(r)?r.concat(hs(t)):[r,hs(t)]:hs(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==de?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Rt(e.ssContent),ssFallback:e.ssFallback&&Rt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&xn(u,c.clone(u)),u}function _t(e=" ",t=0){return qe(Rs,null,e,t)}function Re(e,t){const s=qe(ps,null,e);return s.staticCount=t,s}function re(e="",t=!1){return t?($(),cr(pt,null,e)):qe(pt,null,e)}function Be(e){return e==null||typeof e=="boolean"?qe(pt):U(e)?qe(de,null,e.slice()):ur(e)?st(e):qe(Rs,null,String(e))}function st(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Rt(e)}function _n(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(U(t))s=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),_n(e,o()),o._c&&(o._d=!0));return}else{s=32;const o=t._;!o&&!Qo(t)?t._ctx=Ee:o===3&&Ee&&(Ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:Ee},s=32):(t=String(t),n&64?(s=16,t=[_t(t)]):s=8);e.children=t,e.shapeFlag|=s}function nl(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=le([t.class,n.class]));else if(o==="style")t.style=Es([t.style,n.style]);else if(Ss(o)){const r=t[o],i=n[o];i&&r!==i&&!(U(r)&&r.includes(i))?t[o]=r?[].concat(r,i):i:i==null&&r==null&&!Cs(o)&&(t[o]=i)}else o!==""&&(t[o]=n[o])}return t}function He(e,t,s,n=null){Ge(e,t,7,[s,n])}const ol=qo();let rl=0;function il(e,t,s){const n=e.type,o=(t?t.appContext:e.appContext)||ol,r={uid:rl++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new kr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:er(n,o),emitsOptions:Jo(n,o),emit:null,emitted:null,propsDefaults:te,inheritAttrs:n.inheritAttrs,ctx:te,data:te,props:te,attrs:te,slots:te,refs:te,setupState:te,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Li.bind(null,r),e.ce&&e.ce(r),r}let ve=null;const ll=()=>ve||Ee;let _s,tn;{const e=As(),t=(s,n)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(n),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};_s=t("__VUE_INSTANCE_SETTERS__",s=>ve=s),tn=t("__VUE_SSR_SETTERS__",s=>ts=s)}const rs=e=>{const t=ve;return _s(e),e.scope.on(),()=>{e.scope.off(),_s(t)}},Kn=()=>{ve&&ve.scope.off(),_s(null)};function dr(e){return e.vnode.shapeFlag&4}let ts=!1;function al(e,t=!1,s=!1){t&&tn(t);const{props:n,children:o}=e.vnode,r=dr(e);Bi(e,n,r,t),qi(e,o,s||t);const i=r?cl(e,t):void 0;return t&&tn(!1),i}function cl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ai);const{setup:n}=s;if(n){it();const o=e.setupContext=n.length>1?fl(e):null,r=rs(e),i=os(n,e,0,[e.props,o]),l=uo(i);if(lt(),r(),(l||e.sp)&&!Jt(e)&&Vo(e),l){if(i.then(Kn,Kn),t)return i.then(c=>{Wn(e,c)}).catch(c=>{Ms(c,e,0)});e.asyncDep=i}else Wn(e,i)}else pr(e)}function Wn(e,t,s){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:X(t)&&(e.setupState=Oo(t)),pr(e)}function pr(e,t,s){const n=e.type;e.render||(e.render=n.render||ze);{const o=rs(e);it();try{Ei(e)}finally{lt(),o()}}}const ul={get(e,t){return xe(e,"get",""),e[t]}};function fl(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ul),slots:e.slots,emit:e.emit,expose:t}}function Ds(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Oo(Jr(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Gt)return Gt[s](e)},has(t,s){return s in t||s in Gt}})):e.proxy}function dl(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function pl(e){return K(e)&&"__vccOpts"in e}const ht=(e,t)=>ei(e,t,ts),hl="3.5.31";/**
|
|
60
|
+
**/function rs(e,t,s,n){try{return n?e(...n):e()}catch(o){Is(o,t,s)}}function tt(e,t,s,n){if(Y(e)){const o=rs(e,t,s,n);return o&&uo(o)&&o.catch(r=>{Is(r,t,s)}),o}if(z(e)){const o=[];for(let r=0;r<e.length;r++)o.push(tt(e[r],t,s,n));return o}}function Is(e,t,s,n=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||ae;if(t){let l=t.parent;const c=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const u=l.ec;if(u){for(let p=0;p<u.length;p++)if(u[p](e,c,h)===!1)return}l=l.parent}if(r){ut(),rs(r,null,10,[e,c,h]),dt();return}}ni(e,s,o,n,i)}function ni(e,t,s,n=!0,o=!1){if(o)throw e;console.error(e)}const ke=[];let Je=-1;const Ot=[];let ht=null,Et=0;const Mo=Promise.resolve();let xs=null;function Ro(e){const t=xs||Mo;return e?t.then(this?e.bind(this):e):t}function oi(e){let t=Je+1,s=ke.length;for(;t<s;){const n=t+s>>>1,o=ke[n],r=es(o);r<e||r===e&&o.flags&2?t=n+1:s=n}return t}function gn(e){if(!(e.flags&1)){const t=es(e),s=ke[ke.length-1];!s||!(e.flags&2)&&t>=es(s)?ke.push(e):ke.splice(oi(t),0,e),e.flags|=1,Do()}}function Do(){xs||(xs=Mo.then(Lo))}function ri(e){z(e)?Ot.push(...e):ht&&e.id===-1?ht.splice(Et+1,0,e):e.flags&1||(Ot.push(e),e.flags|=1),Do()}function In(e,t,s=Je+1){for(;s<ke.length;s++){const n=ke[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ke.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function jo(e){if(Ot.length){const t=[...new Set(Ot)].sort((s,n)=>es(s)-es(n));if(Ot.length=0,ht){ht.push(...t);return}for(ht=t,Et=0;Et<ht.length;Et++){const s=ht[Et];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}ht=null,Et=0}}const es=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Lo(e){try{for(Je=0;Je<ke.length;Je++){const t=ke[Je];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),rs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Je<ke.length;Je++){const t=ke[Je];t&&(t.flags&=-2)}Je=-1,ke.length=0,jo(),xs=null,(ke.length||Ot.length)&&Lo()}}let De=null,No=null;function vs(e){const t=De;return De=e,No=e&&e.type.__scopeId||null,t}function ii(e,t=De,s){if(!t||e._n)return e;const n=(...o)=>{n._d&&Bn(-1);const r=vs(t);let i;try{i=e(...o)}finally{vs(r),n._d&&Bn(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function me(e,t){if(De===null)return e;const s=Ds(De),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,l,c=ae]=t[o];r&&(Y(r)&&(r={mounted:r,updated:r}),r.deep&&at(i),n.push({dir:r,instance:s,value:i,oldValue:void 0,arg:l,modifiers:c}))}return e}function _t(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&&(ut(),tt(c,s,8,[e.el,l,e,t]),dt())}}function li(e,t){if(Se){let s=Se.provides;const n=Se.parent&&Se.parent.provides;n===s&&(s=Se.provides=Object.create(n)),s[e]=t}}function fs(e,t,s=!1){const n=ll();if(n||Mt){let o=Mt?Mt._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&&Y(t)?t.call(n&&n.proxy):t}}const ai=Symbol.for("v-scx"),ci=()=>fs(ai);function Vs(e,t,s){return Fo(e,t,s)}function Fo(e,t,s=ae){const{immediate:n,deep:o,flush:r,once:i}=s,l=_e({},s),c=t&&n||!t&&r!=="post";let h;if(ss){if(r==="sync"){const T=ci();h=T.__watcherHandles||(T.__watcherHandles=[])}else if(!c){const T=()=>{};return T.stop=Qe,T.resume=Qe,T.pause=Qe,T}}const u=Se;l.call=(T,N,R)=>tt(T,u,N,R);let p=!1;r==="post"?l.scheduler=T=>{Ae(T,u&&u.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(T,N)=>{N?T():gn(T)}),l.augmentJob=T=>{t&&(T.flags|=4),p&&(T.flags|=2,u&&(T.id=u.uid,T.i=u))};const g=si(e,t,l);return ss&&(h?h.push(g):c&&g()),g}function ui(e,t,s){const n=this.proxy,o=ge(e)?e.includes(".")?Ho(n,e):()=>n[e]:e.bind(n,n);let r;Y(t)?r=t:(r=t.handler,s=t);const i=is(this),l=Fo(o,r.bind(n),s);return i(),l}function Ho(e,t){const s=t.split(".");return()=>{let n=e;for(let o=0;o<s.length&&n;o++)n=n[s[o]];return n}}const di=Symbol("_vte"),fi=e=>e.__isTeleport,pi=Symbol("_leaveCb");function xn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,xn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function $t(e,t){return Y(e)?_e({name:e.name},t,{setup:e}):e}function Vo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function On(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ys=new WeakMap;function Jt(e,t,s,n,o=!1){if(z(e)){e.forEach((R,J)=>Jt(R,t&&(z(t)?t[J]:t),s,n,o));return}if(Gt(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Jt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?Ds(n.component):n.el,i=o?null:r,{i:l,r:c}=e,h=t&&t.r,u=l.refs===ae?l.refs={}:l.refs,p=l.setupState,g=se(p),T=p===ae?co:R=>On(u,R)?!1:ne(g,R),N=(R,J)=>!(J&&On(u,J));if(h!=null&&h!==c){if(Mn(t),ge(h))u[h]=null,T(h)&&(p[h]=null);else if(Te(h)){const R=t;N(h,R.k)&&(h.value=null),R.k&&(u[R.k]=null)}}if(Y(c))rs(c,l,12,[i,u]);else{const R=ge(c),J=Te(c);if(R||J){const O=()=>{if(e.f){const H=R?T(c)?p[c]:u[c]:N()||!e.k?c.value:u[e.k];if(o)z(H)&&on(H,r);else if(z(H))H.includes(r)||H.push(r);else if(R)u[c]=[r],T(c)&&(p[c]=u[c]);else{const G=[r];N(c,e.k)&&(c.value=G),e.k&&(u[e.k]=G)}}else R?(u[c]=i,T(c)&&(p[c]=i)):J&&(N(c,e.k)&&(c.value=i),e.k&&(u[e.k]=i))};if(i){const H=()=>{O(),ys.delete(e)};H.id=-1,ys.set(e,H),Ae(H,s)}else Mn(e),O()}}}function Mn(e){const t=ys.get(e);t&&(t.flags|=8,ys.delete(e))}Es().requestIdleCallback;Es().cancelIdleCallback;const Gt=e=>!!e.type.__asyncLoader,Uo=e=>e.type.__isKeepAlive;function hi(e,t){Bo(e,"a",t)}function mi(e,t){Bo(e,"da",t)}function Bo(e,t,s=Se){const n=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Os(t,n,s),s){let o=s.parent;for(;o&&o.parent;)Uo(o.parent.vnode)&&gi(n,t,s,o),o=o.parent}}function gi(e,t,s,n){const o=Os(t,e,n,!0);vn(()=>{on(n[t],o)},s)}function Os(e,t,s=Se,n=!1){if(s){const o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{ut();const l=is(s),c=tt(t,s,e,i);return l(),dt(),c});return n?o.unshift(r):o.push(r),r}}const pt=e=>(t,s=Se)=>{(!ss||e==="sp")&&Os(e,(...n)=>t(...n),s)},xi=pt("bm"),vt=pt("m"),vi=pt("bu"),yi=pt("u"),bi=pt("bum"),vn=pt("um"),_i=pt("sp"),wi=pt("rtg"),Si=pt("rtc");function Ci(e,t=Se){Os("ec",e,t)}const Ti="components",Ko=Symbol.for("v-ndc");function $i(e){return ge(e)?ki(Ti,e,!1)||e:e||Ko}function ki(e,t,s=!0,n=!1){const o=De||Se;if(o){const r=o.type;{const l=fl(r,!1);if(l&&(l===t||l===Ee(t)||l===$s(Ee(t))))return r}const i=Rn(o[e]||r[e],t)||Rn(o.appContext[e],t);return!i&&n?r:i}}function Rn(e,t){return e&&(e[t]||e[Ee(t)]||e[$s(Ee(t))])}function Re(e,t,s,n){let o;const r=s,i=z(e);if(i||ge(e)){const l=i&&Tt(e);let c=!1,h=!1;l&&(c=!Fe(e),h=ft(e),e=Ps(e)),o=new Array(e.length);for(let u=0,p=e.length;u<p;u++)o[u]=t(c?h?Rt(Be(e[u])):Be(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(ie(e))if(e[Symbol.iterator])o=Array.from(e,(l,c)=>t(l,c,void 0,r));else{const l=Object.keys(e);o=new Array(l.length);for(let c=0,h=l.length;c<h;c++){const u=l[c];o[c]=t(e[u],u,c,r)}}else o=[];return o}const Zs=e=>e?fr(e)?Ds(e):Zs(e.parent):null,Yt=_e(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Zs(e.parent),$root:e=>Zs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zo(e),$forceUpdate:e=>e.f||(e.f=()=>{gn(e.update)}),$nextTick:e=>e.n||(e.n=Ro.bind(e.proxy)),$watch:e=>ui.bind(e)}),Us=(e,t)=>e!==ae&&!e.__isScriptSetup&&ne(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(Us(n,t))return i[t]=1,n[t];if(o!==ae&&ne(o,t))return i[t]=2,o[t];if(ne(r,t))return i[t]=3,r[t];if(s!==ae&&ne(s,t))return i[t]=4,s[t];Qs&&(i[t]=0)}}const h=Yt[t];let u,p;if(h)return t==="$attrs"&&we(e.attrs,"get",""),h(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(s!==ae&&ne(s,t))return i[t]=4,s[t];if(p=c.config.globalProperties,ne(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:o,ctx:r}=e;return Us(o,t)?(o[t]=s,!0):n!==ae&&ne(n,t)?(n[t]=s,!0):ne(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!==ae&&l[0]!=="$"&&ne(e,l)||Us(t,l)||ne(r,l)||ne(n,l)||ne(Yt,l)||ne(o.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:ne(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Dn(e){return z(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Qs=!0;function Ai(e){const t=zo(e),s=e.proxy,n=e.ctx;Qs=!1,t.beforeCreate&&jn(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:c,inject:h,created:u,beforeMount:p,mounted:g,beforeUpdate:T,updated:N,activated:R,deactivated:J,beforeDestroy:O,beforeUnmount:H,destroyed:G,unmounted:L,render:U,renderTracked:D,renderTriggered:B,errorCaptured:ce,serverPrefetch:Z,expose:ue,inheritAttrs:ye,components:F,directives:P,filters:E}=t;if(h&&Pi(h,n,null),i)for(const W in i){const te=i[W];Y(te)&&(n[W]=te.bind(s))}if(o){const W=o.call(s,s);ie(W)&&(e.data=pn(W))}if(Qs=!0,r)for(const W in r){const te=r[W],Le=Y(te)?te.bind(s,s):Y(te.get)?te.get.bind(s,s):Qe,yt=!Y(te)&&Y(te.set)?te.set.bind(s):Qe,st=Ve({get:Le,set:yt});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>st.value,set:Ne=>st.value=Ne})}if(l)for(const W in l)Wo(l[W],n,s,W);if(c){const W=Y(c)?c.call(s):c;Reflect.ownKeys(W).forEach(te=>{li(te,W[te])})}u&&jn(u,e,"c");function oe(W,te){z(te)?te.forEach(Le=>W(Le.bind(s))):te&&W(te.bind(s))}if(oe(xi,p),oe(vt,g),oe(vi,T),oe(yi,N),oe(hi,R),oe(mi,J),oe(Ci,ce),oe(Si,D),oe(wi,B),oe(bi,H),oe(vn,L),oe(_i,Z),z(ue))if(ue.length){const W=e.exposed||(e.exposed={});ue.forEach(te=>{Object.defineProperty(W,te,{get:()=>s[te],set:Le=>s[te]=Le,enumerable:!0})})}else e.exposed||(e.exposed={});U&&e.render===Qe&&(e.render=U),ye!=null&&(e.inheritAttrs=ye),F&&(e.components=F),P&&(e.directives=P),Z&&Vo(e)}function Pi(e,t,s=Qe){z(e)&&(e=Xs(e));for(const n in e){const o=e[n];let r;ie(o)?"default"in o?r=fs(o.from||n,o.default,!0):r=fs(o.from||n):r=fs(o),Te(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function jn(e,t,s){tt(z(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Wo(e,t,s,n){let o=n.includes(".")?Ho(s,n):()=>s[n];if(ge(e)){const r=t[e];Y(r)&&Vs(o,r)}else if(Y(e))Vs(o,e.bind(s));else if(ie(e))if(z(e))e.forEach(r=>Wo(r,t,s,n));else{const r=Y(e.handler)?e.handler.bind(s):t[e.handler];Y(r)&&Vs(o,r,e)}}function zo(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let c;return l?c=l:!o.length&&!s&&!n?c=t:(c={},o.length&&o.forEach(h=>bs(c,h,i,!0)),bs(c,t,i)),ie(t)&&r.set(t,c),c}function bs(e,t,s,n=!1){const{mixins:o,extends:r}=t;r&&bs(e,r,s,!0),o&&o.forEach(i=>bs(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const l=Ii[i]||s&&s[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Ii={data:Ln,props:Nn,emits:Nn,methods:Kt,computed:Kt,beforeCreate:$e,created:$e,beforeMount:$e,mounted:$e,beforeUpdate:$e,updated:$e,beforeDestroy:$e,beforeUnmount:$e,destroyed:$e,unmounted:$e,activated:$e,deactivated:$e,errorCaptured:$e,serverPrefetch:$e,components:Kt,directives:Kt,watch:Mi,provide:Ln,inject:Oi};function Ln(e,t){return t?e?function(){return _e(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:t:e}function Oi(e,t){return Kt(Xs(e),Xs(t))}function Xs(e){if(z(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function $e(e,t){return e?[...new Set([].concat(e,t))]:t}function Kt(e,t){return e?_e(Object.create(null),e,t):t}function Nn(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:_e(Object.create(null),Dn(e),Dn(t??{})):t}function Mi(e,t){if(!e)return t;if(!t)return e;const s=_e(Object.create(null),e);for(const n in t)s[n]=$e(e[n],t[n]);return s}function qo(){return{app:null,config:{isNativeTag:co,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ri=0;function Di(e,t){return function(n,o=null){Y(n)||(n=_e({},n)),o!=null&&!ie(o)&&(o=null);const r=qo(),i=new WeakSet,l=[];let c=!1;const h=r.app={_uid:Ri++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:hl,get config(){return r.config},set config(u){},use(u,...p){return i.has(u)||(u&&Y(u.install)?(i.add(u),u.install(h,...p)):Y(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(!c){const T=h._ceVNode||Xe(n,o);return T.appContext=r,g===!0?g="svg":g===!1&&(g=void 0),e(T,u,g),c=!0,h._container=u,u.__vue_app__=h,Ds(T.component)}},onUnmount(u){l.push(u)},unmount(){c&&(tt(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=Mt;Mt=h;try{return u()}finally{Mt=p}}};return h}}let Mt=null;const ji=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ee(t)}Modifiers`]||e[`${xt(t)}Modifiers`];function Li(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||ae;let o=s;const r=t.startsWith("update:"),i=r&&ji(n,t.slice(7));i&&(i.trim&&(o=s.map(u=>ge(u)?u.trim():u)),i.number&&(o=s.map(ks)));let l,c=n[l=js(t)]||n[l=js(Ee(t))];!c&&r&&(c=n[l=js(xt(t))]),c&&tt(c,e,6,o);const h=n[l+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,tt(h,e,6,o)}}const Ni=new WeakMap;function Jo(e,t,s=!1){const n=s?Ni:t.emitsCache,o=n.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!Y(e)){const c=h=>{const u=Jo(h,t,!0);u&&(l=!0,_e(i,u))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!l?(ie(e)&&n.set(e,null),null):(z(r)?r.forEach(c=>i[c]=null):_e(i,r),ie(e)&&n.set(e,i),i)}function Ms(e,t){return!e||!Ss(t)?!1:(t=t.slice(2).replace(/Once$/,""),ne(e,t[0].toLowerCase()+t.slice(1))||ne(e,xt(t))||ne(e,t))}function Fn(e){const{type:t,vnode:s,proxy:n,withProxy:o,propsOptions:[r],slots:i,attrs:l,emit:c,render:h,renderCache:u,props:p,data:g,setupState:T,ctx:N,inheritAttrs:R}=e,J=vs(e);let O,H;try{if(s.shapeFlag&4){const L=o||n,U=L;O=Ye(h.call(U,L,u,p,T,g,N)),H=l}else{const L=t;O=Ye(L.length>1?L(p,{attrs:l,slots:i,emit:c}):L(p,null)),H=t.props?l:Fi(l)}}catch(L){Zt.length=0,Is(L,e,1),O=Xe(gt)}let G=O;if(H&&R!==!1){const L=Object.keys(H),{shapeFlag:U}=G;L.length&&U&7&&(r&&L.some(Cs)&&(H=Hi(H,r)),G=Dt(G,H,!1,!0))}return s.dirs&&(G=Dt(G,null,!1,!0),G.dirs=G.dirs?G.dirs.concat(s.dirs):s.dirs),s.transition&&xn(G,s.transition),O=G,vs(J),O}const Fi=e=>{let t;for(const s in e)(s==="class"||s==="style"||Ss(s))&&((t||(t={}))[s]=e[s]);return t},Hi=(e,t)=>{const s={};for(const n in e)(!Cs(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Vi(e,t,s){const{props:n,children:o,component:r}=e,{props:i,children:l,patchFlag:c}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Hn(n,i,h):!!i;if(c&8){const u=t.dynamicProps;for(let p=0;p<u.length;p++){const g=u[p];if(Go(i,n,g)&&!Ms(h,g))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:n===i?!1:n?i?Hn(n,i,h):!0:!!i;return!1}function Hn(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const r=n[o];if(Go(t,e,r)&&!Ms(s,r))return!0}return!1}function Go(e,t,s){const n=e[s],o=t[s];return s==="style"&&ie(n)&&ie(o)?!Nt(n,o):n!==o}function Ui({vnode:e,parent:t,suspense:s},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=n,e=o),o===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const Yo={},Zo=()=>Object.create(Yo),Qo=e=>Object.getPrototypeOf(e)===Yo;function Bi(e,t,s,n=!1){const o={},r=Zo();e.propsDefaults=Object.create(null),Xo(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);s?e.props=n?o:qr(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Ki(e,t,s,n){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=se(o),[c]=e.propsOptions;let h=!1;if((n||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let p=0;p<u.length;p++){let g=u[p];if(Ms(e.emitsOptions,g))continue;const T=t[g];if(c)if(ne(r,g))T!==r[g]&&(r[g]=T,h=!0);else{const N=Ee(g);o[N]=en(c,l,N,T,e,!1)}else T!==r[g]&&(r[g]=T,h=!0)}}}else{Xo(e,t,o,r)&&(h=!0);let u;for(const p in l)(!t||!ne(t,p)&&((u=xt(p))===p||!ne(t,u)))&&(c?s&&(s[p]!==void 0||s[u]!==void 0)&&(o[p]=en(c,l,p,void 0,e,!0)):delete o[p]);if(r!==l)for(const p in r)(!t||!ne(t,p))&&(delete r[p],h=!0)}h&<(e.attrs,"set","")}function Xo(e,t,s,n){const[o,r]=e.propsOptions;let i=!1,l;if(t)for(let c in t){if(Wt(c))continue;const h=t[c];let u;o&&ne(o,u=Ee(c))?!r||!r.includes(u)?s[u]=h:(l||(l={}))[u]=h:Ms(e.emitsOptions,c)||(!(c in n)||h!==n[c])&&(n[c]=h,i=!0)}if(r){const c=se(s),h=l||ae;for(let u=0;u<r.length;u++){const p=r[u];s[p]=en(o,c,p,h[p],e,!ne(h,p))}}return i}function en(e,t,s,n,o,r){const i=e[s];if(i!=null){const l=ne(i,"default");if(l&&n===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&Y(c)){const{propsDefaults:h}=o;if(s in h)n=h[s];else{const u=is(o);n=h[s]=c.call(null,t),u()}}else n=c;o.ce&&o.ce._setProp(s,n)}i[0]&&(r&&!l?n=!1:i[1]&&(n===""||n===xt(s))&&(n=!0))}return n}const Wi=new WeakMap;function er(e,t,s=!1){const n=s?Wi:t.propsCache,o=n.get(e);if(o)return o;const r=e.props,i={},l=[];let c=!1;if(!Y(e)){const u=p=>{c=!0;const[g,T]=er(p,t,!0);_e(i,g),T&&l.push(...T)};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!c)return ie(e)&&n.set(e,Pt),Pt;if(z(r))for(let u=0;u<r.length;u++){const p=Ee(r[u]);Vn(p)&&(i[p]=ae)}else if(r)for(const u in r){const p=Ee(u);if(Vn(p)){const g=r[u],T=i[p]=z(g)||Y(g)?{type:g}:_e({},g),N=T.type;let R=!1,J=!0;if(z(N))for(let O=0;O<N.length;++O){const H=N[O],G=Y(H)&&H.name;if(G==="Boolean"){R=!0;break}else G==="String"&&(J=!1)}else R=Y(N)&&N.name==="Boolean";T[0]=R,T[1]=J,(R||ne(T,"default"))&&l.push(p)}}const h=[i,l];return ie(e)&&n.set(e,h),h}function Vn(e){return e[0]!=="$"&&!Wt(e)}const yn=e=>e==="_"||e==="_ctx"||e==="$stable",bn=e=>z(e)?e.map(Ye):[Ye(e)],zi=(e,t,s)=>{if(t._n)return t;const n=ii((...o)=>bn(t(...o)),s);return n._c=!1,n},tr=(e,t,s)=>{const n=e._ctx;for(const o in e){if(yn(o))continue;const r=e[o];if(Y(r))t[o]=zi(o,r,n);else if(r!=null){const i=bn(r);t[o]=()=>i}}},sr=(e,t)=>{const s=bn(t);e.slots.default=()=>s},nr=(e,t,s)=>{for(const n in t)(s||!yn(n))&&(e[n]=t[n])},qi=(e,t,s)=>{const n=e.slots=Zo();if(e.vnode.shapeFlag&32){const o=t._;o?(nr(n,t,s),s&&ho(n,"_",o,!0)):tr(t,n)}else t&&sr(e,t)},Ji=(e,t,s)=>{const{vnode:n,slots:o}=e;let r=!0,i=ae;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:nr(o,t,s):(r=!t.$stable,tr(t,o)),i=t}else t&&(sr(e,t),i={default:1});if(r)for(const l in o)!yn(l)&&i[l]==null&&delete o[l]},Ae=Xi;function Gi(e){return Yi(e)}function Yi(e,t){const s=Es();s.__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:i,createText:l,createComment:c,setText:h,setElementText:u,parentNode:p,nextSibling:g,setScopeId:T=Qe,insertStaticContent:N}=e,R=(d,f,m,b=null,x=null,v=null,A=void 0,k=null,$=!!f.dynamicChildren)=>{if(d===f)return;d&&!Ut(d,f)&&(b=re(d),Ne(d,x,v,!0),d=null),f.patchFlag===-2&&($=!1,f.dynamicChildren=null);const{type:y,ref:K,shapeFlag:I}=f;switch(y){case Rs:J(d,f,m,b);break;case gt:O(d,f,m,b);break;case ps:d==null&&H(f,m,b,A);break;case pe:F(d,f,m,b,x,v,A,k,$);break;default:I&1?U(d,f,m,b,x,v,A,k,$):I&6?P(d,f,m,b,x,v,A,k,$):(I&64||I&128)&&y.process(d,f,m,b,x,v,A,k,$,Ft)}K!=null&&x?Jt(K,d&&d.ref,v,f||d,!f):K==null&&d&&d.ref!=null&&Jt(d.ref,null,v,d,!0)},J=(d,f,m,b)=>{if(d==null)n(f.el=l(f.children),m,b);else{const x=f.el=d.el;f.children!==d.children&&h(x,f.children)}},O=(d,f,m,b)=>{d==null?n(f.el=c(f.children||""),m,b):f.el=d.el},H=(d,f,m,b)=>{[d.el,d.anchor]=N(d.children,f,m,b,d.el,d.anchor)},G=({el:d,anchor:f},m,b)=>{let x;for(;d&&d!==f;)x=g(d),n(d,m,b),d=x;n(f,m,b)},L=({el:d,anchor:f})=>{let m;for(;d&&d!==f;)m=g(d),o(d),d=m;o(f)},U=(d,f,m,b,x,v,A,k,$)=>{if(f.type==="svg"?A="svg":f.type==="math"&&(A="mathml"),d==null)D(f,m,b,x,v,A,k,$);else{const y=d.el&&d.el._isVueCE?d.el:null;try{y&&y._beginPatch(),Z(d,f,x,v,A,k,$)}finally{y&&y._endPatch()}}},D=(d,f,m,b,x,v,A,k)=>{let $,y;const{props:K,shapeFlag:I,transition:V,dirs:q}=d;if($=d.el=i(d.type,v,K&&K.is,K),I&8?u($,d.children):I&16&&ce(d.children,$,null,b,x,Bs(d,v),A,k),q&&_t(d,null,b,"created"),B($,d,d.scopeId,A,b),K){for(const le in K)le!=="value"&&!Wt(le)&&r($,le,null,K[le],v,b);"value"in K&&r($,"value",null,K.value,v),(y=K.onVnodeBeforeMount)&&qe(y,b,d)}q&&_t(d,null,b,"beforeMount");const X=Zi(x,V);X&&V.beforeEnter($),n($,f,m),((y=K&&K.onVnodeMounted)||X||q)&&Ae(()=>{try{y&&qe(y,b,d),X&&V.enter($),q&&_t(d,null,b,"mounted")}finally{}},x)},B=(d,f,m,b,x)=>{if(m&&T(d,m),b)for(let v=0;v<b.length;v++)T(d,b[v]);if(x){let v=x.subTree;if(f===v||lr(v.type)&&(v.ssContent===f||v.ssFallback===f)){const A=x.vnode;B(d,A,A.scopeId,A.slotScopeIds,x.parent)}}},ce=(d,f,m,b,x,v,A,k,$=0)=>{for(let y=$;y<d.length;y++){const K=d[y]=k?it(d[y]):Ye(d[y]);R(null,K,f,m,b,x,v,A,k)}},Z=(d,f,m,b,x,v,A)=>{const k=f.el=d.el;let{patchFlag:$,dynamicChildren:y,dirs:K}=f;$|=d.patchFlag&16;const I=d.props||ae,V=f.props||ae;let q;if(m&&wt(m,!1),(q=V.onVnodeBeforeUpdate)&&qe(q,m,f,d),K&&_t(f,d,m,"beforeUpdate"),m&&wt(m,!0),(I.innerHTML&&V.innerHTML==null||I.textContent&&V.textContent==null)&&u(k,""),y?ue(d.dynamicChildren,y,k,m,b,Bs(f,x),v):A||te(d,f,k,null,m,b,Bs(f,x),v,!1),$>0){if($&16)ye(k,I,V,m,x);else if($&2&&I.class!==V.class&&r(k,"class",null,V.class,x),$&4&&r(k,"style",I.style,V.style,x),$&8){const X=f.dynamicProps;for(let le=0;le<X.length;le++){const de=X[le],xe=I[de],be=V[de];(be!==xe||de==="value")&&r(k,de,xe,be,x,m)}}$&1&&d.children!==f.children&&u(k,f.children)}else!A&&y==null&&ye(k,I,V,m,x);((q=V.onVnodeUpdated)||K)&&Ae(()=>{q&&qe(q,m,f,d),K&&_t(f,d,m,"updated")},b)},ue=(d,f,m,b,x,v,A)=>{for(let k=0;k<f.length;k++){const $=d[k],y=f[k],K=$.el&&($.type===pe||!Ut($,y)||$.shapeFlag&198)?p($.el):m;R($,y,K,null,b,x,v,A,!0)}},ye=(d,f,m,b,x)=>{if(f!==m){if(f!==ae)for(const v in f)!Wt(v)&&!(v in m)&&r(d,v,f[v],null,x,b);for(const v in m){if(Wt(v))continue;const A=m[v],k=f[v];A!==k&&v!=="value"&&r(d,v,k,A,x,b)}"value"in m&&r(d,"value",f.value,m.value,x)}},F=(d,f,m,b,x,v,A,k,$)=>{const y=f.el=d?d.el:l(""),K=f.anchor=d?d.anchor:l("");let{patchFlag:I,dynamicChildren:V,slotScopeIds:q}=f;q&&(k=k?k.concat(q):q),d==null?(n(y,m,b),n(K,m,b),ce(f.children||[],m,K,x,v,A,k,$)):I>0&&I&64&&V&&d.dynamicChildren&&d.dynamicChildren.length===V.length?(ue(d.dynamicChildren,V,m,x,v,A,k),(f.key!=null||x&&f===x.subTree)&&or(d,f,!0)):te(d,f,m,K,x,v,A,k,$)},P=(d,f,m,b,x,v,A,k,$)=>{f.slotScopeIds=k,d==null?f.shapeFlag&512?x.ctx.activate(f,m,b,A,$):E(f,m,b,x,v,A,$):he(d,f,$)},E=(d,f,m,b,x,v,A)=>{const k=d.component=il(d,b,x);if(Uo(d)&&(k.ctx.renderer=Ft),al(k,!1,A),k.asyncDep){if(x&&x.registerDep(k,oe,A),!d.el){const $=k.subTree=Xe(gt);O(null,$,f,m),d.placeholder=$.el}}else oe(k,d,f,m,x,v,A)},he=(d,f,m)=>{const b=f.component=d.component;if(Vi(d,f,m))if(b.asyncDep&&!b.asyncResolved){W(b,f,m);return}else b.next=f,b.update();else f.el=d.el,b.vnode=f},oe=(d,f,m,b,x,v,A)=>{const k=()=>{if(d.isMounted){let{next:I,bu:V,u:q,parent:X,vnode:le}=d;{const We=rr(d);if(We){I&&(I.el=le.el,W(d,I,A)),We.asyncDep.then(()=>{Ae(()=>{d.isUnmounted||y()},x)});return}}let de=I,xe;wt(d,!1),I?(I.el=le.el,W(d,I,A)):I=le,V&&ds(V),(xe=I.props&&I.props.onVnodeBeforeUpdate)&&qe(xe,X,I,le),wt(d,!0);const be=Fn(d),Ke=d.subTree;d.subTree=be,R(Ke,be,p(Ke.el),re(Ke),d,x,v),I.el=be.el,de===null&&Ui(d,be.el),q&&Ae(q,x),(xe=I.props&&I.props.onVnodeUpdated)&&Ae(()=>qe(xe,X,I,le),x)}else{let I;const{el:V,props:q}=f,{bm:X,m:le,parent:de,root:xe,type:be}=d,Ke=Gt(f);wt(d,!1),X&&ds(X),!Ke&&(I=q&&q.onVnodeBeforeMount)&&qe(I,de,f),wt(d,!0);{xe.ce&&xe.ce._hasShadowRoot()&&xe.ce._injectChildStyle(be,d.parent?d.parent.type:void 0);const We=d.subTree=Fn(d);R(null,We,m,b,d,x,v),f.el=We.el}if(le&&Ae(le,x),!Ke&&(I=q&&q.onVnodeMounted)){const We=f;Ae(()=>qe(I,de,We),x)}(f.shapeFlag&256||de&&Gt(de.vnode)&&de.vnode.shapeFlag&256)&&d.a&&Ae(d.a,x),d.isMounted=!0,f=m=b=null}};d.scope.on();const $=d.effect=new vo(k);d.scope.off();const y=d.update=$.run.bind($),K=d.job=$.runIfDirty.bind($);K.i=d,K.id=d.uid,$.scheduler=()=>gn(K),wt(d,!0),y()},W=(d,f,m)=>{f.component=d;const b=d.vnode.props;d.vnode=f,d.next=null,Ki(d,f.props,b,m),Ji(d,f.children,m),ut(),In(d),dt()},te=(d,f,m,b,x,v,A,k,$=!1)=>{const y=d&&d.children,K=d?d.shapeFlag:0,I=f.children,{patchFlag:V,shapeFlag:q}=f;if(V>0){if(V&128){yt(y,I,m,b,x,v,A,k,$);return}else if(V&256){Le(y,I,m,b,x,v,A,k,$);return}}q&8?(K&16&&Ie(y,x,v),I!==y&&u(m,I)):K&16?q&16?yt(y,I,m,b,x,v,A,k,$):Ie(y,x,v,!0):(K&8&&u(m,""),q&16&&ce(I,m,b,x,v,A,k,$))},Le=(d,f,m,b,x,v,A,k,$)=>{d=d||Pt,f=f||Pt;const y=d.length,K=f.length,I=Math.min(y,K);let V;for(V=0;V<I;V++){const q=f[V]=$?it(f[V]):Ye(f[V]);R(d[V],q,m,null,x,v,A,k,$)}y>K?Ie(d,x,v,!0,!1,I):ce(f,m,b,x,v,A,k,$,I)},yt=(d,f,m,b,x,v,A,k,$)=>{let y=0;const K=f.length;let I=d.length-1,V=K-1;for(;y<=I&&y<=V;){const q=d[y],X=f[y]=$?it(f[y]):Ye(f[y]);if(Ut(q,X))R(q,X,m,null,x,v,A,k,$);else break;y++}for(;y<=I&&y<=V;){const q=d[I],X=f[V]=$?it(f[V]):Ye(f[V]);if(Ut(q,X))R(q,X,m,null,x,v,A,k,$);else break;I--,V--}if(y>I){if(y<=V){const q=V+1,X=q<K?f[q].el:b;for(;y<=V;)R(null,f[y]=$?it(f[y]):Ye(f[y]),m,X,x,v,A,k,$),y++}}else if(y>V)for(;y<=I;)Ne(d[y],x,v,!0),y++;else{const q=y,X=y,le=new Map;for(y=X;y<=V;y++){const Oe=f[y]=$?it(f[y]):Ye(f[y]);Oe.key!=null&&le.set(Oe.key,y)}let de,xe=0;const be=V-X+1;let Ke=!1,We=0;const Ht=new Array(be);for(y=0;y<be;y++)Ht[y]=0;for(y=q;y<=I;y++){const Oe=d[y];if(xe>=be){Ne(Oe,x,v,!0);continue}let ze;if(Oe.key!=null)ze=le.get(Oe.key);else for(de=X;de<=V;de++)if(Ht[de-X]===0&&Ut(Oe,f[de])){ze=de;break}ze===void 0?Ne(Oe,x,v,!0):(Ht[ze-X]=y+1,ze>=We?We=ze:Ke=!0,R(Oe,f[ze],m,null,x,v,A,k,$),xe++)}const Cn=Ke?Qi(Ht):Pt;for(de=Cn.length-1,y=be-1;y>=0;y--){const Oe=X+y,ze=f[Oe],Tn=f[Oe+1],$n=Oe+1<K?Tn.el||ir(Tn):b;Ht[y]===0?R(null,ze,m,$n,x,v,A,k,$):Ke&&(de<0||y!==Cn[de]?st(ze,m,$n,2):de--)}}},st=(d,f,m,b,x=null)=>{const{el:v,type:A,transition:k,children:$,shapeFlag:y}=d;if(y&6){st(d.component.subTree,f,m,b);return}if(y&128){d.suspense.move(f,m,b);return}if(y&64){A.move(d,f,m,Ft);return}if(A===pe){n(v,f,m);for(let I=0;I<$.length;I++)st($[I],f,m,b);n(d.anchor,f,m);return}if(A===ps){G(d,f,m);return}if(b!==2&&y&1&&k)if(b===0)k.beforeEnter(v),n(v,f,m),Ae(()=>k.enter(v),x);else{const{leave:I,delayLeave:V,afterLeave:q}=k,X=()=>{d.ctx.isUnmounted?o(v):n(v,f,m)},le=()=>{v._isLeaving&&v[pi](!0),I(v,()=>{X(),q&&q()})};V?V(v,X,le):le()}else n(v,f,m)},Ne=(d,f,m,b=!1,x=!1)=>{const{type:v,props:A,ref:k,children:$,dynamicChildren:y,shapeFlag:K,patchFlag:I,dirs:V,cacheIndex:q,memo:X}=d;if(I===-2&&(x=!1),k!=null&&(ut(),Jt(k,null,m,d,!0),dt()),q!=null&&(f.renderCache[q]=void 0),K&256){f.ctx.deactivate(d);return}const le=K&1&&V,de=!Gt(d);let xe;if(de&&(xe=A&&A.onVnodeBeforeUnmount)&&qe(xe,f,d),K&6)nt(d.component,m,b);else{if(K&128){d.suspense.unmount(m,b);return}le&&_t(d,null,f,"beforeUnmount"),K&64?d.type.remove(d,f,m,Ft,b):y&&!y.hasOnce&&(v!==pe||I>0&&I&64)?Ie(y,f,m,!1,!0):(v===pe&&I&384||!x&&K&16)&&Ie($,f,m),b&&j(d)}const be=X!=null&&q==null;(de&&(xe=A&&A.onVnodeUnmounted)||le||be)&&Ae(()=>{xe&&qe(xe,f,d),le&&_t(d,null,f,"unmounted"),be&&(d.el=null)},m)},j=d=>{const{type:f,el:m,anchor:b,transition:x}=d;if(f===pe){C(m,b);return}if(f===ps){L(d);return}const v=()=>{o(m),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(d.shapeFlag&1&&x&&!x.persisted){const{leave:A,delayLeave:k}=x,$=()=>A(m,v);k?k(d.el,v,$):$()}else v()},C=(d,f)=>{let m;for(;d!==f;)m=g(d),o(d),d=m;o(f)},nt=(d,f,m)=>{const{bum:b,scope:x,job:v,subTree:A,um:k,m:$,a:y}=d;Un($),Un(y),b&&ds(b),x.stop(),v&&(v.flags|=8,Ne(A,d,f,m)),k&&Ae(k,f),Ae(()=>{d.isUnmounted=!0},f)},Ie=(d,f,m,b=!1,x=!1,v=0)=>{for(let A=v;A<d.length;A++)Ne(d[A],f,m,b,x)},re=d=>{if(d.shapeFlag&6)return re(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const f=g(d.anchor||d.el),m=f&&f[di];return m?g(m):f};let bt=!1;const Sn=(d,f,m)=>{let b;d==null?f._vnode&&(Ne(f._vnode,null,null,!0),b=f._vnode.component):R(f._vnode||null,d,f,null,null,null,m),f._vnode=d,bt||(bt=!0,In(b),jo(),bt=!1)},Ft={p:R,um:Ne,m:st,r:j,mt:E,mc:ce,pc:te,pbc:ue,n:re,o:e};return{render:Sn,hydrate:void 0,createApp:Di(Sn)}}function Bs({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function wt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function or(e,t,s=!1){const n=e.children,o=t.children;if(z(n)&&z(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]=it(o[r]),l.el=i.el),!s&&l.patchFlag!==-2&&or(i,l)),l.type===Rs&&(l.patchFlag===-1&&(l=o[r]=it(l)),l.el=i.el),l.type===gt&&!l.el&&(l.el=i.el)}}function Qi(e){const t=e.slice(),s=[0];let n,o,r,i,l;const c=e.length;for(n=0;n<c;n++){const h=e[n];if(h!==0){if(o=s[s.length-1],e[o]<h){t[n]=o,s.push(n);continue}for(r=0,i=s.length-1;r<i;)l=r+i>>1,e[s[l]]<h?r=l+1:i=l;h<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function rr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:rr(t)}function Un(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ir(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ir(t.subTree):null}const lr=e=>e.__isSuspense;function Xi(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):ri(e)}const pe=Symbol.for("v-fgt"),Rs=Symbol.for("v-txt"),gt=Symbol.for("v-cmt"),ps=Symbol.for("v-stc"),Zt=[];let je=null;function w(e=!1){Zt.push(je=e?null:[])}function el(){Zt.pop(),je=Zt[Zt.length-1]||null}let ts=1;function Bn(e,t=!1){ts+=e,e<0&&je&&t&&(je.hasOnce=!0)}function ar(e){return e.dynamicChildren=ts>0?je||Pt:null,el(),ts>0&&je&&je.push(e),e}function S(e,t,s,n,o,r){return ar(a(e,t,s,n,o,r,!0))}function cr(e,t,s,n,o){return ar(Xe(e,t,s,n,o,!0))}function ur(e){return e?e.__v_isVNode===!0:!1}function Ut(e,t){return e.type===t.type&&e.key===t.key}const dr=({key:e})=>e??null,hs=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ge(e)||Te(e)||Y(e)?{i:De,r:e,k:t,f:!!s}:e:null);function a(e,t=null,s=null,n=0,o=null,r=e===pe?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dr(t),ref:t&&hs(t),scopeId:No,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:De};return l?(_n(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=ge(s)?8:16),ts>0&&!i&&je&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&je.push(c),c}const Xe=tl;function tl(e,t=null,s=null,n=0,o=null,r=!1){if((!e||e===Ko)&&(e=gt),ur(e)){const l=Dt(e,t,!0);return s&&_n(l,s),ts>0&&!r&&je&&(l.shapeFlag&6?je[je.indexOf(e)]=l:je.push(l)),l.patchFlag=-2,l}if(pl(e)&&(e=e.__vccOpts),t){t=sl(t);let{class:l,style:c}=t;l&&!ge(l)&&(t.class=ee(l)),ie(c)&&(mn(c)&&!z(c)&&(c=_e({},c)),t.style=As(c))}const i=ge(e)?1:lr(e)?128:fi(e)?64:ie(e)?4:Y(e)?2:0;return a(e,t,s,n,o,i,r,!0)}function sl(e){return e?mn(e)||Qo(e)?_e({},e):e:null}function Dt(e,t,s=!1,n=!1){const{props:o,ref:r,patchFlag:i,children:l,transition:c}=e,h=t?nl(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&dr(h),ref:t&&t.ref?s&&r?z(r)?r.concat(hs(t)):[r,hs(t)]:hs(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==pe?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&&Dt(e.ssContent),ssFallback:e.ssFallback&&Dt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&xn(u,c.clone(u)),u}function At(e=" ",t=0){return Xe(Rs,null,e,t)}function He(e,t){const s=Xe(ps,null,e);return s.staticCount=t,s}function Q(e="",t=!1){return t?(w(),cr(gt,null,e)):Xe(gt,null,e)}function Ye(e){return e==null||typeof e=="boolean"?Xe(gt):z(e)?Xe(pe,null,e.slice()):ur(e)?it(e):Xe(Rs,null,String(e))}function it(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Dt(e)}function _n(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(z(t))s=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),_n(e,o()),o._c&&(o._d=!0));return}else{s=32;const o=t._;!o&&!Qo(t)?t._ctx=De:o===3&&De&&(De.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Y(t)?(t={default:t,_ctx:De},s=32):(t=String(t),n&64?(s=16,t=[At(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=ee([t.class,n.class]));else if(o==="style")t.style=As([t.style,n.style]);else if(Ss(o)){const r=t[o],i=n[o];i&&r!==i&&!(z(r)&&r.includes(i))?t[o]=r?[].concat(r,i):i:i==null&&r==null&&!Cs(o)&&(t[o]=i)}else o!==""&&(t[o]=n[o])}return t}function qe(e,t,s,n=null){tt(e,t,7,[s,n])}const ol=qo();let rl=0;function il(e,t,s){const n=e.type,o=(t?t.appContext:e.appContext)||ol,r={uid:rl++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new kr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:er(n,o),emitsOptions:Jo(n,o),emit:null,emitted:null,propsDefaults:ae,inheritAttrs:n.inheritAttrs,ctx:ae,data:ae,props:ae,attrs:ae,slots:ae,refs:ae,setupState:ae,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Li.bind(null,r),e.ce&&e.ce(r),r}let Se=null;const ll=()=>Se||De;let _s,tn;{const e=Es(),t=(s,n)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(n),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};_s=t("__VUE_INSTANCE_SETTERS__",s=>Se=s),tn=t("__VUE_SSR_SETTERS__",s=>ss=s)}const is=e=>{const t=Se;return _s(e),e.scope.on(),()=>{e.scope.off(),_s(t)}},Kn=()=>{Se&&Se.scope.off(),_s(null)};function fr(e){return e.vnode.shapeFlag&4}let ss=!1;function al(e,t=!1,s=!1){t&&tn(t);const{props:n,children:o}=e.vnode,r=fr(e);Bi(e,n,r,t),qi(e,o,s||t);const i=r?cl(e,t):void 0;return t&&tn(!1),i}function cl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ei);const{setup:n}=s;if(n){ut();const o=e.setupContext=n.length>1?dl(e):null,r=is(e),i=rs(n,e,0,[e.props,o]),l=uo(i);if(dt(),r(),(l||e.sp)&&!Gt(e)&&Vo(e),l){if(i.then(Kn,Kn),t)return i.then(c=>{Wn(e,c)}).catch(c=>{Is(c,e,0)});e.asyncDep=i}else Wn(e,i)}else pr(e)}function Wn(e,t,s){Y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ie(t)&&(e.setupState=Oo(t)),pr(e)}function pr(e,t,s){const n=e.type;e.render||(e.render=n.render||Qe);{const o=is(e);ut();try{Ai(e)}finally{dt(),o()}}}const ul={get(e,t){return we(e,"get",""),e[t]}};function dl(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ul),slots:e.slots,emit:e.emit,expose:t}}function Ds(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Oo(Jr(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Yt)return Yt[s](e)},has(t,s){return s in t||s in Yt}})):e.proxy}function fl(e,t=!0){return Y(e)?e.displayName||e.name:e.name||t&&e.__name}function pl(e){return Y(e)&&"__vccOpts"in e}const Ve=(e,t)=>ei(e,t,ss),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 sn;const zn=typeof window<"u"&&window.trustedTypes;if(zn)try{sn=zn.createPolicy("vue",{createHTML:e=>e})}catch{}const hr=sn?e=>sn.createHTML(e):e=>e,ml="http://www.w3.org/2000/svg",gl="http://www.w3.org/1998/Math/MathML",tt=typeof document<"u"?document:null,qn=tt&&tt.createElement("template"),xl={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const o=t==="svg"?tt.createElementNS(ml,e):t==="mathml"?tt.createElementNS(gl,e):s?tt.createElement(e,{is:s}):tt.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>tt.createTextNode(e),createComment:e=>tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,o,r){const i=s?s.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===r||!(o=o.nextSibling)););else{qn.innerHTML=hr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=qn.content;if(n==="svg"||n==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},vl=Symbol("_vtc");function bl(e,t,s){const n=e[vl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Jn=Symbol("_vod"),yl=Symbol("_vsh"),_l=Symbol(""),wl=/(?:^|;)\s*display\s*:/;function Sl(e,t,s){const n=e.style,o=ae(s);let r=!1;if(s&&!o){if(t)if(ae(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();s[l]==null&&ms(n,l,"")}else for(const i in t)s[i]==null&&ms(n,i,"");for(const i in s)i==="display"&&(r=!0),ms(n,i,s[i])}else if(o){if(t!==s){const i=n[_l];i&&(s+=";"+i),n.cssText=s,r=wl.test(s)}}else t&&e.removeAttribute("style");Jn in e&&(e[Jn]=r?n.display:"",e[yl]&&(n.display="none"))}const Gn=/\s*!important$/;function ms(e,t,s){if(U(s))s.forEach(n=>ms(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Cl(e,t);Gn.test(s)?e.setProperty(mt(n),s.replace(Gn,""),"important"):e[n]=s}}const Yn=["Webkit","Moz","ms"],Ks={};function Cl(e,t){const s=Ks[t];if(s)return s;let n=we(t);if(n!=="filter"&&n in e)return Ks[t]=n;n=$s(n);for(let o=0;o<Yn.length;o++){const r=Yn[o]+n;if(r in e)return Ks[t]=r}return t}const Zn="http://www.w3.org/1999/xlink";function Qn(e,t,s,n,o,r=Tr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Zn,t.slice(6,t.length)):e.setAttributeNS(Zn,t,s):s==null||r&&!mo(s)?e.removeAttribute(t):e.setAttribute(t,r?"":Je(s)?String(s):s)}function Xn(e,t,s,n,o){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?hr(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(l!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=mo(s):s==null&&l==="string"?(s="",i=!0):l==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(o||t)}function dt(e,t,s,n){e.addEventListener(t,s,n)}function Tl(e,t,s,n){e.removeEventListener(t,s,n)}const eo=Symbol("_vei");function $l(e,t,s,n,o=null){const r=e[eo]||(e[eo]={}),i=r[t];if(n&&i)i.value=n;else{const[l,c]=kl(t);if(n){const h=r[t]=Pl(n,o);dt(e,l,h,c)}else i&&(Tl(e,l,i,c),r[t]=void 0)}}const to=/(?:Once|Passive|Capture)$/;function kl(e){let t;if(to.test(e)){t={};let n;for(;n=e.match(to);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):mt(e.slice(2)),t]}let Ws=0;const Al=Promise.resolve(),El=()=>Ws||(Al.then(()=>Ws=0),Ws=Date.now());function Pl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Ge(Ml(n,s.value),t,5,[n])};return s.value=e,s.attached=El(),s}function Ml(e,t){if(U(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const so=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ol=(e,t,s,n,o,r)=>{const i=o==="svg";t==="class"?bl(e,n,i):t==="style"?Sl(e,s,n):Ss(t)?Cs(t)||$l(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Il(e,t,n,i))?(Xn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qn(e,t,n,i,r,t!=="value")):e._isVueCE&&(Rl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ae(n)))?Xn(e,we(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Qn(e,t,n,i))};function Il(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&so(t)&&K(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return so(t)&&ae(s)?!1:t in e}function Rl(e,t){const s=e._def.props;if(!s)return!1;const n=we(t);return Array.isArray(s)?s.some(o=>we(o)===n):Object.keys(s).some(o=>we(o)===n)}const Dt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return U(t)?s=>fs(t,s):t};function Dl(e){e.target.composing=!0}function no(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const rt=Symbol("_assign");function oo(e,t,s){return t&&(e=e.trim()),s&&(e=ks(e)),e}const Te={created(e,{modifiers:{lazy:t,trim:s,number:n}},o){e[rt]=Dt(o);const r=n||o.props&&o.props.type==="number";dt(e,t?"change":"input",i=>{i.target.composing||e[rt](oo(e.value,s,r))}),(s||r)&&dt(e,"change",()=>{e.value=oo(e.value,s,r)}),t||(dt(e,"compositionstart",Dl),dt(e,"compositionend",no),dt(e,"change",no))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:o,number:r}},i){if(e[rt]=Dt(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?ks(e.value):e.value,c=t??"";if(l===c)return;const h=e.getRootNode();(h instanceof Document||h instanceof ShadowRoot)&&h.activeElement===e&&e.type!=="range"&&(n&&t===s||o&&e.value.trim()===c)||(e.value=c)}},ro={deep:!0,created(e,t,s){e[rt]=Dt(s),dt(e,"change",()=>{const n=e._modelValue,o=ss(e),r=e.checked,i=e[rt];if(U(n)){const l=ln(n,o),c=l!==-1;if(r&&!c)i(n.concat(o));else if(!r&&c){const h=[...n];h.splice(l,1),i(h)}}else if(jt(n)){const l=new Set(n);r?l.add(o):l.delete(o),i(l)}else i(mr(e,r))})},mounted:io,beforeUpdate(e,t,s){e[rt]=Dt(s),io(e,t,s)}};function io(e,{value:t,oldValue:s},n){e._modelValue=t;let o;if(U(t))o=ln(t,n.props.value)>-1;else if(jt(t))o=t.has(n.props.value);else{if(t===s)return;o=Lt(t,mr(e,!0))}e.checked!==o&&(e.checked=o)}const ws={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const o=jt(t);dt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?ks(ss(i)):ss(i));e[rt](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,Ro(()=>{e._assigning=!1})}),e[rt]=Dt(n)},mounted(e,{value:t}){lo(e,t)},beforeUpdate(e,t,s){e[rt]=Dt(s)},updated(e,{value:t}){e._assigning||lo(e,t)}};function lo(e,t){const s=e.multiple,n=U(t);if(!(s&&!n&&!jt(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],l=ss(i);if(s)if(n){const c=typeof l;c==="string"||c==="number"?i.selected=t.some(h=>String(h)===String(l)):i.selected=ln(t,l)>-1}else i.selected=t.has(l);else if(Lt(ss(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ss(e){return"_value"in e?e._value:e.value}function mr(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const jl={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ll=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(o=>{if(!("key"in o))return;const r=mt(o.key);if(t.some(i=>i===r||jl[i]===r))return e(o)}))},Nl=ge({patchProp:Ol},xl);let ao;function Fl(){return ao||(ao=Gi(Nl))}const Hl=((...e)=>{const t=Fl().createApp(...e),{mount:s}=t;return t.mount=n=>{const o=Ul(n);if(!o)return;const r=t._component;!K(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=s(o,!1,Vl(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function Vl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ul(e){return ae(e)?document.querySelector(e):e}let wn="";function Ut(e){wn=e}function Ke(){return wn}async function pe(e,t){const s=await fetch(e,{...t,headers:{Authorization:`Bearer ${wn}`,"Content-Type":"application/json",...(t==null?void 0:t.headers)??{}}});if(!s.ok){const n=new Error(s.statusText);throw n.status=s.status,n}return s.json()}const Bl={class:"animate-fade-in"},Kl={key:0,class:"text-center py-12 text-textSecondary"},Wl={key:1,class:"text-center text-textSecondary py-12"},zl={key:2,class:"space-y-3"},ql={class:"flex items-center justify-between"},Jl={class:"flex items-center gap-3"},Gl={class:"font-medium"},Yl={class:"text-accentLight"},Zl={class:"text-textSecondary text-xs"},Ql={key:2,class:"text-muted italic"},Xl={class:"text-xs text-textSecondary font-mono"},ea={class:"text-right"},ta={class:"flex items-center gap-2 justify-end"},sa={class:"text-xs text-textSecondary"},na=Ct({__name:"SessionsTab",props:{status:{}},setup(e){const t=e,s=D([]),n=D(!0);async function o(){n.value=!0;try{const h=await pe("/api/status");s.value=(h.sessions||[]).slice().sort((u,p)=>u.status==="active"&&p.status!=="active"?-1:u.status!=="active"&&p.status==="active"?1:p.lastActivity-u.lastActivity)}finally{n.value=!1}}const r=ht(()=>{var u;return(((u=t.status)==null?void 0:u.sessions)??s.value).slice().sort((p,m)=>p.status==="active"&&m.status!=="active"?-1:p.status!=="active"&&m.status==="active"?1:m.lastActivity-p.lastActivity)});function i(h){const u=Math.floor((Date.now()-h.lastActivity)/6e4);return h.status==="disconnected"?{label:`Disconnected${u>0?` — ${u}m ago`:""}`,color:"text-muted"}:u<5?{label:"Active",color:"text-success"}:u<30?{label:`Idle ${u}m`,color:"text-warn"}:{label:`Dormant ${u}m`,color:"text-danger"}}function l(h){if(!h.lastWaitCallAt)return"";const u=Math.floor((Date.now()-h.lastWaitCallAt)/6e4);return u<5?`Polling — ${u===0?"just now":u+"m ago"}`:`Last poll — ${u}m ago`}function c(h){return h.lastWaitCallAt?Math.floor((Date.now()-h.lastWaitCallAt)/6e4)<5?"text-success":"text-warn":""}return gt(o),(h,u)=>($(),A("div",Bl,[n.value&&r.value.length===0?($(),A("div",Kl,"Loading sessions...")):r.value.length===0?($(),A("div",Wl,"No sessions")):($(),A("div",zl,[($(!0),A(de,null,ct(r.value,p=>($(),A("div",{key:p.mcpSessionId,class:le(["glass rounded-xl p-4 animate-slide-up",p.status==="disconnected"?"opacity-60":""])},[a("div",ql,[a("div",Jl,[a("span",{class:le(["w-2.5 h-2.5 rounded-full",p.status==="disconnected"?"bg-muted":Math.floor((Date.now()-p.lastActivity)/6e4)<5?"bg-success":Math.floor((Date.now()-p.lastActivity)/6e4)<30?"bg-warn":"bg-danger"])},null,2),a("div",null,[a("div",Gl,[p.topicName?($(),A(de,{key:0},[a("span",Yl,R(p.topicName),1),a("span",Zl," (thread "+R(p.threadId)+")",1)],64)):p.threadId!=null?($(),A(de,{key:1},[_t("Thread "+R(p.threadId),1)],64)):($(),A("span",Ql,"Awaiting start_session…"))]),a("div",Xl,R(p.mcpSessionId.slice(0,12))+"...",1)])]),a("div",ea,[a("div",ta,[a("span",{class:le(["text-sm font-medium",i(p).color])},R(i(p).label),3),l(p)?($(),A("span",{key:0,class:le(["text-xs ml-2",c(p)])},R(l(p)),3)):re("",!0)]),a("div",sa,R(p.transportType),1)])])],2))),128))]))]))}}),oa={class:"animate-fade-in"},ra={class:"flex flex-wrap items-center gap-3 mb-4"},ia={key:0,class:"text-center py-12 text-textSecondary"},la={key:1,class:"text-center py-12 text-textSecondary"},aa={key:2,class:"space-y-2"},ca={class:"flex items-start justify-between gap-3"},ua={class:"flex-1 min-w-0"},fa={class:"flex items-center gap-2 mb-1"},da={key:0,class:"type-badge",style:{background:"rgba(239,68,68,0.15)",color:"#f87171"}},pa={key:1,class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},ha={class:"text-xs text-textSecondary"},ma={class:"text-sm text-textPrimary leading-relaxed"},ga={class:"flex flex-wrap gap-1.5 mt-2"},xa={class:"text-right shrink-0"},va={class:"text-sm font-mono text-textSecondary"},ba={class:"text-xs text-muted"},ya={class:"text-xs text-muted"},_a=Ct({__name:"MemoryNotesTab",setup(e){const t=D([]),s=D(!1),n=D(""),o=D("created_at"),r=D("");let i=null;async function l(){s.value=!0;try{const u=r.value.trim();let p;if(u)p=await pe(`/api/search?q=${encodeURIComponent(u)}&limit=50`);else{const m=new URLSearchParams({limit:"50",sort:o.value});n.value&&m.set("type",n.value),p=await pe(`/api/notes?${m}`)}t.value=p}finally{s.value=!1}}function c(){i&&clearTimeout(i),i=setTimeout(l,300)}function h(u){if(!u)return"never";const p=Date.now()-new Date(u).getTime(),m=Math.floor(p/6e4);if(m<1)return"just now";if(m<60)return`${m}m ago`;const S=Math.floor(m/60);return S<24?`${S}h ago`:`${Math.floor(S/24)}d ago`}return gt(l),(u,p)=>($(),A("div",oa,[a("div",ra,[fe(a("input",{"onUpdate:modelValue":p[0]||(p[0]=m=>r.value=m),onInput:c,type:"text",placeholder:"Search notes...",class:"flex-1 min-w-[200px] px-4 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted focus:outline-none focus:border-accent transition"},null,544),[[Te,r.value]]),fe(a("select",{"onUpdate:modelValue":p[1]||(p[1]=m=>n.value=m),onChange:l,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none"},[...p[3]||(p[3]=[Re('<option value="">All types</option><option value="fact">Facts</option><option value="preference">Preferences</option><option value="pattern">Patterns</option><option value="entity">Entities</option><option value="relationship">Relationships</option>',6)])],544),[[ws,n.value]]),fe(a("select",{"onUpdate:modelValue":p[2]||(p[2]=m=>o.value=m),onChange:l,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none"},[...p[4]||(p[4]=[a("option",{value:"created_at"},"Newest",-1),a("option",{value:"confidence"},"Confidence",-1),a("option",{value:"access_count"},"Most accessed",-1)])],544),[[ws,o.value]])]),s.value?($(),A("div",ia,"Loading notes...")):t.value.length===0?($(),A("div",la,"No notes found")):($(),A("div",aa,[($(!0),A(de,null,ct(t.value,m=>($(),A("div",{key:m.noteId,class:le(["glass rounded-xl p-4 animate-fade-in",`priority-${m.priority||0}`])},[a("div",ca,[a("div",ua,[a("div",fa,[a("span",{class:le(["type-badge",`type-${m.type}`])},R(m.type),3),m.priority>=2?($(),A("span",da,"HIGH IMPORTANCE")):m.priority===1?($(),A("span",pa,"NOTABLE")):re("",!0),a("span",ha,R(m.noteId),1)]),a("p",ma,R(m.content),1),a("div",ga,[($(!0),A(de,null,ct(m.keywords||[],S=>($(),A("span",{key:S,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},R(S),1))),128))])]),a("div",xa,[a("div",va,R(((Number(m.confidence)||0)*100).toFixed(0))+"%",1),a("div",ba,R(h(m.createdAt)),1),a("div",ya,R(m.accessCount??0)+" hits",1)])])],2))),128))]))]))}}),wa={class:"animate-fade-in space-y-6"},Sa={class:"glass rounded-xl p-4"},Ca={class:"flex flex-wrap items-center gap-4 mb-4"},Ta={key:0,class:"text-sm text-success"},$a={class:"flex flex-wrap items-center gap-3"},ka={key:0,class:"text-sm text-success"},Aa={class:"flex flex-wrap items-center gap-3 mb-4"},Ea={key:0,class:"text-sm text-success"},Pa={class:"glass rounded-xl p-6"},Ma={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Oa={class:"flex items-center gap-2"},Ia={key:0,class:"text-sm text-success"},Ra={key:0,class:"mb-3"},Da={class:"mt-4"},ja=["innerHTML"],La={class:"glass rounded-xl p-6"},Na={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Fa={class:"flex items-center gap-2"},Ha={key:0,class:"text-sm text-success"},Va={class:"flex gap-2 mb-4"},Ua=["onClick"],Ba={key:0,class:"mb-3"},Ka=["value","placeholder"],Wa={class:"glass rounded-xl p-6"},za={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},qa={class:"flex items-center gap-2"},Ja={key:0,class:"text-sm text-success"},Ga={class:"mb-4 flex flex-wrap items-center gap-3"},Ya={class:"flex items-center gap-2"},Za={class:"font-mono text-sm text-textPrimary"},Qa={key:0,class:"mb-3"},Xa={class:"flex flex-wrap gap-2 mb-3"},ec=["onClick"],tc={class:"mt-4"},sc=["innerHTML"],nc=Ct({__name:"TemplatesTab",setup(e){function t(I){return I.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\{\{([A-Z_]+)\}\}/g,'<span class="text-accentLight" style="background:rgba(99,102,241,0.1);padding:0 2px;border-radius:3px">{{$1}}</span>')}const s=D("copilot"),n=D(""),o=D(""),r=D(""),i=D(50),l=D(""),c=D(""),h=D(!0),u=D(""),p=D(!1),m=D({}),S=D("copilot"),P=D(""),M=D(""),W=D(!0),E=D(""),N=D(!1),z=D([]),j=D("");async function F(){await Promise.all([O(),V(),ie(),J(),ce()])}async function O(){try{const I=await pe("/api/settings/agent-type");s.value=I.agentType||"copilot"}catch{}}async function V(){try{const I=await pe("/api/settings/claude-mcp-config");o.value=I.path||""}catch{}}async function ie(){try{const I=await pe("/api/settings/bootstrap-message-count");i.value=I.count??50}catch{}}async function J(){try{const I=await pe("/api/templates");if(I.templates&&I.templates.length>0){const _=I.templates[0];c.value=_.content||"",h.value=_.isDefault??!0}I.agentReminders&&(m.value=I.agentReminders)}catch{}}async function ce(){try{const[I,_,Xe]=await Promise.all([pe("/api/templates/drive"),pe("/api/templates/drive-presets"),pe("/api/settings/dmn-activation-hours")]);z.value=_.presets||[],j.value=String(Xe.value??"not set"),I.custom?(M.value=I.custom,W.value=!1):(M.value=I.default||"",W.value=!0)}catch{}}async function Me(){try{await pe("/api/settings/agent-type",{method:"POST",body:JSON.stringify({agentType:s.value})}),await pe("/api/templates/reminders",{method:"DELETE"}),n.value="Saved ✓",setTimeout(()=>{n.value=""},3e3),await J()}catch(I){n.value="Error: "+I.message}}async function Ye(){try{await pe("/api/settings/bootstrap-message-count",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:i.value})}),l.value="Saved ✓",setTimeout(()=>{l.value=""},3e3)}catch(I){l.value="Error: "+I.message}}async function $e(){const I=o.value.trim();if(!I){r.value="Path is empty",setTimeout(()=>{r.value=""},3e3);return}try{await pe("/api/settings/claude-mcp-config",{method:"POST",body:JSON.stringify({path:I})}),r.value="Saved ✓",setTimeout(()=>{r.value=""},3e3)}catch(_){r.value="Error: "+_.message}}async function Tt(){try{const I=await fetch("/api/templates/reminders",{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:c.value})});if(!I.ok)throw new Error(I.statusText);h.value=!1,u.value="Saved ✓",setTimeout(()=>{u.value=""},3e3)}catch(I){u.value="Error: "+I.message}}async function is(){if(confirm("Reset to default template? Your customizations will be lost."))try{const I=await fetch("/api/templates/reminders",{method:"DELETE",headers:{Authorization:`Bearer ${Ke()}`}});if(!I.ok)throw new Error(I.statusText);await J(),u.value="Reset to default ✓",setTimeout(()=>{u.value=""},3e3)}catch(I){u.value="Error: "+I.message}}async function he(){var Xe;const I=S.value,_=((Xe=m.value[I])==null?void 0:Xe.content)??"";try{const ke=await fetch(`/api/templates/reminders-${I}`,{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:_})});if(!ke.ok)throw new Error(ke.statusText);m.value[I]={content:_,isDefault:!1},P.value=`Saved ${I} ✓`,setTimeout(()=>{P.value=""},3e3)}catch(ke){P.value="Error: "+ke.message}}async function oe(){const I=S.value;if(confirm(`Reset ${I} agent reminder? The custom template will be removed.`))try{const _=await fetch(`/api/templates/reminders-${I}`,{method:"DELETE",headers:{Authorization:`Bearer ${Ke()}`}});if(!_.ok)throw new Error(_.statusText);await J(),P.value=`Reset ${I} ✓`,setTimeout(()=>{P.value=""},3e3)}catch(_){P.value="Error: "+_.message}}async function Z(){const I=M.value;if(!I.trim()){E.value="Template is empty — load a preset first",setTimeout(()=>{E.value=""},3e3);return}try{const _=await fetch("/api/templates/drive",{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:I})});if(!_.ok)throw new Error(_.statusText);W.value=!1,E.value="Saved ✓",setTimeout(()=>{E.value=""},3e3)}catch(_){E.value="Error: "+_.message}}async function Ze(){if(confirm("Reset drive template? The custom template will be removed."))try{const I=await fetch("/api/templates/drive",{method:"DELETE",headers:{Authorization:`Bearer ${Ke()}`}});if(!I.ok)throw new Error(I.statusText);await ce(),E.value="Reset to default ✓",setTimeout(()=>{E.value=""},3e3)}catch(I){E.value="Error: "+I.message}}function $t(I){M.value=I.content,W.value=!1}const Qe=ht(()=>t(c.value)),Oe=ht(()=>M.value?t(M.value):'<span style="color:#6b7280">(no template loaded)</span>');return gt(F),(I,_)=>{var Xe,ke;return $(),A("div",wa,[a("div",Sa,[a("div",Ca,[_[9]||(_[9]=a("label",{class:"text-sm font-medium text-textSecondary"},"Agent Type",-1)),fe(a("select",{"onUpdate:modelValue":_[0]||(_[0]=Q=>s.value=Q),onChange:Me,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},[..._[8]||(_[8]=[Re('<option value="copilot">Copilot</option><option value="copilot_claude">Copilot (Claude)</option><option value="copilot_codex">Copilot (Codex)</option><option value="claude">Claude</option><option value="cursor">Cursor</option><option value="codex">Codex</option><option value="openai_codex">OpenAI Codex</option>',7)])],544),[[ws,s.value]]),n.value?($(),A("span",Ta,R(n.value),1)):re("",!0),_[10]||(_[10]=a("span",{class:"text-xs text-muted"},"Changes which default reminders template is used",-1))]),a("div",$a,[_[11]||(_[11]=a("label",{class:"text-sm font-medium text-textSecondary"},"Claude MCP Config Path",-1)),fe(a("input",{"onUpdate:modelValue":_[1]||(_[1]=Q=>o.value=Q),type:"text",placeholder:"~/.claude/settings.json",class:"flex-1 min-w-[260px] px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted font-mono focus:outline-none focus:border-accent transition"},null,512),[[Te,o.value]]),a("button",{onClick:$e,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save"),r.value?($(),A("span",ka,R(r.value),1)):re("",!0)]),a("div",Aa,[_[12]||(_[12]=a("label",{class:"text-sm font-medium text-textSecondary"},"Bootstrap Messages",-1)),fe(a("input",{"onUpdate:modelValue":_[2]||(_[2]=Q=>i.value=Q),type:"number",min:"0",max:"500",class:"w-24 px-3 py-2 rounded-xl bg-card border border-gray-700 text-text text-sm focus:border-accent focus:outline-none"},null,512),[[Te,i.value,void 0,{number:!0}]]),a("button",{onClick:Ye,class:"px-4 py-2 rounded-xl bg-accent text-white text-sm font-medium hover:bg-accent/80 transition-colors"},"Save"),l.value?($(),A("span",Ea,R(l.value),1)):re("",!0),_[13]||(_[13]=a("span",{class:"text-xs text-muted"},"Number of recent messages injected as warm context (0 = off)",-1))])]),a("div",Pa,[a("div",Ma,[_[14]||(_[14]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Reminders Template"),a("p",{class:"text-sm text-textSecondary mt-1"},"Edit the system prompt template sent with every reminder")],-1)),a("div",Oa,[u.value?($(),A("span",Ia,R(u.value),1)):re("",!0),a("button",{onClick:is,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset to Default"),a("button",{onClick:Tt,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),h.value?($(),A("div",Ra,[..._[15]||(_[15]=[a("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"USING DEFAULT — edit and save to customize",-1)])])):re("",!0),fe(a("textarea",{"onUpdate:modelValue":_[3]||(_[3]=Q=>c.value=Q),rows:"20",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Loading..."},null,512),[[Te,c.value]]),a("div",Da,[a("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:_[4]||(_[4]=Q=>p.value=!p.value)},[($(),A("svg",{class:le(["w-4 h-4 text-textSecondary transition-transform",p.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[..._[16]||(_[16]=[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),_[17]||(_[17]=a("span",{class:"text-sm font-medium text-textSecondary"},"Preview with highlighted variables",-1))]),p.value?($(),A("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:Qe.value},null,8,ja)):re("",!0)]),_[18]||(_[18]=Re('<details class="mt-4"><summary class="text-sm font-medium text-textSecondary cursor-pointer hover:text-textPrimary transition">Available Variables</summary><div class="mt-2 glass rounded-xl p-4 grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm"><div><code class="text-accentLight">{{OPERATOR_MESSAGE}}</code> <span class="text-textSecondary">— latest operator message</span></div><div><code class="text-accentLight">{{THREAD_ID}}</code> <span class="text-textSecondary">— Telegram thread ID</span></div><div><code class="text-accentLight">{{TIME}}</code> <span class="text-textSecondary">— formatted timestamp</span></div><div><code class="text-accentLight">{{UPTIME}}</code> <span class="text-textSecondary">— session uptime</span></div><div><code class="text-accentLight">{{VERSION}}</code> <span class="text-textSecondary">— package version</span></div><div><code class="text-accentLight">{{MODE}}</code> <span class="text-textSecondary">— "autonomous" or "standard"</span></div></div></details>',1))]),a("div",La,[a("div",Na,[_[19]||(_[19]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Agent-Specific Reminders"),a("p",{class:"text-sm text-textSecondary mt-1"},"Appended after the base reminders template — per agent type")],-1)),a("div",Fa,[P.value?($(),A("span",Ha,R(P.value),1)):re("",!0),a("button",{onClick:oe,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset"),a("button",{onClick:he,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),a("div",Va,[($(),A(de,null,ct(["copilot","claude","cursor","codex"],Q=>a("button",{key:Q,onClick:xt=>S.value=Q,class:le(["px-4 py-2 rounded-xl text-sm font-medium transition",S.value===Q?"bg-accent text-white":"bg-card hover:bg-cardHover border border-gray-700 text-textSecondary hover:text-textPrimary"])},R(Q.charAt(0).toUpperCase()+Q.slice(1)),11,Ua)),64))]),((Xe=m.value[S.value])==null?void 0:Xe.isDefault)!==!1?($(),A("div",Ba,[..._[20]||(_[20]=[a("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"NO CUSTOM OVERRIDE — this agent uses only the base reminders",-1)])])):re("",!0),a("textarea",{value:((ke=m.value[S.value])==null?void 0:ke.content)??"",onInput:_[5]||(_[5]=Q=>{const xt=Q.target;m.value[S.value]={content:xt.value,isDefault:!1}}),rows:"8",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:`Add ${S.value}-specific reminders (e.g. orchestrator hints, subagent policies)...`},null,40,Ka)]),a("div",Wa,[a("div",za,[_[21]||(_[21]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Drive Framing Template"),a("p",{class:"text-sm text-textSecondary mt-1"},"Customize the autonomous drive prompt sent when the operator is away")],-1)),a("div",qa,[E.value?($(),A("span",Ja,R(E.value),1)):re("",!0),a("button",{onClick:Ze,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset to Default"),a("button",{onClick:Z,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),a("div",Ga,[_[23]||(_[23]=a("label",{class:"text-sm text-textSecondary"},"Drive Activation Period:",-1)),a("div",Ya,[a("span",Za,R(j.value),1),_[22]||(_[22]=a("span",{class:"text-sm text-textSecondary"},"hours",-1))]),_[24]||(_[24]=a("span",{class:"text-xs text-muted"},"(informational — set via DMN_ACTIVATION_HOURS env var)",-1))]),W.value?($(),A("div",Qa,[..._[25]||(_[25]=[a("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"(Default — edit to override)",-1)])])):re("",!0),a("div",Xa,[_[26]||(_[26]=a("span",{class:"text-sm text-textSecondary self-center"},"Presets:",-1)),($(!0),A(de,null,ct(z.value,Q=>($(),A("button",{key:Q.key,onClick:xt=>$t(Q),class:"px-3 py-1.5 rounded-lg bg-card hover:bg-cardHover border border-gray-700 text-xs text-textSecondary hover:text-textPrimary transition"},R(Q.label),9,ec))),128))]),fe(a("textarea",{"onUpdate:modelValue":_[6]||(_[6]=Q=>M.value=Q),rows:"15",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Load a preset or type a custom drive template..."},null,512),[[Te,M.value]]),a("div",tc,[a("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:_[7]||(_[7]=Q=>N.value=!N.value)},[($(),A("svg",{class:le(["w-4 h-4 text-textSecondary transition-transform",N.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[..._[27]||(_[27]=[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),_[28]||(_[28]=a("span",{class:"text-sm font-medium text-textSecondary"},"Preview with sample values",-1))]),N.value?($(),A("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:Oe.value},null,8,sc)):re("",!0)]),_[29]||(_[29]=Re('<details class="mt-4"><summary class="text-sm font-medium text-textSecondary cursor-pointer hover:text-textPrimary transition">Available Variables</summary><div class="mt-2 glass rounded-xl p-4 grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm"><div><code class="text-accentLight">{{IDLE_HOURS}}</code> <span class="text-textSecondary">— hours since last operator interaction</span></div><div><code class="text-accentLight">{{TIME}}</code> <span class="text-textSecondary">— ISO timestamp</span></div><div><code class="text-accentLight">{{PROBABILITY}}</code> <span class="text-textSecondary">— drive activation probability (0.2–1.0)</span></div></div></details>',1))])])}}}),oc={class:"animate-fade-in"},rc={class:"glass rounded-xl p-6 mb-6"},ic={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},lc={key:0,class:"glass rounded-xl p-4 mb-4 border border-accent/30"},ac={class:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-3"},cc={class:"flex items-center gap-4 mb-3"},uc={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer"},fc={class:"flex items-center gap-2"},dc={key:0,class:"text-sm text-warn"},pc={key:1,class:"text-center py-8 text-textSecondary text-sm"},hc={key:2,class:"text-center text-textSecondary py-12"},mc={key:3,class:"space-y-2"},gc=["onClick"],xc={class:"flex items-start justify-between gap-3"},vc={class:"flex-1 min-w-0"},bc={class:"flex items-center gap-2 mb-1"},yc={class:"font-medium text-sm"},_c={key:0,class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},wc={class:"flex flex-wrap gap-1.5 mt-1"},Sc=["title"],Cc={key:0,class:"glass rounded-xl p-6"},Tc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},$c={class:"text-lg font-semibold"},kc={class:"text-sm text-textSecondary mt-1"},Ac={class:"flex items-center gap-2"},Ec={key:0,class:"text-sm text-success"},Pc={class:"grid grid-cols-1 sm:grid-cols-3 gap-3 mb-4"},Mc=["value"],Oc={class:"flex items-end"},Ic={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer pb-2"},Rc=Ct({__name:"SkillsTab",setup(e){const t=D([]),s=D(!0),n=D(null),o=D(""),r=D(""),i=D(!1),l=D(""),c=D(!1),h=D(""),u=D(""),p=D(!1),m=D("");async function S(){s.value=!0;try{const F=await pe("/api/skills");t.value=F.skills||[]}finally{s.value=!1}}function P(F){return F?F.includes(".remote-copilot-mcp")&&F.includes("skills")?"user":F.endsWith(".default.md")?"default":F.endsWith(".skill.md")?"project":"unknown":"unknown"}function M(F){const O={user:"background:rgba(99,102,241,0.15);color:#818cf8",default:"background:rgba(107,114,128,0.15);color:#9ca3af",project:"background:rgba(34,197,94,0.15);color:#4ade80",unknown:"background:rgba(107,114,128,0.15);color:#9ca3af"};return O[F]||O.unknown}function W(F){n.value=F,o.value=F.content,r.value=(F.triggers||[]).join(", "),i.value=!!F.replacesOrchestrator,c.value=!1}function E(){n.value=null}function N(F,O,V,ie){let J=`---
|
|
65
|
-
name: ${
|
|
64
|
+
**/let sn;const zn=typeof window<"u"&&window.trustedTypes;if(zn)try{sn=zn.createPolicy("vue",{createHTML:e=>e})}catch{}const hr=sn?e=>sn.createHTML(e):e=>e,ml="http://www.w3.org/2000/svg",gl="http://www.w3.org/1998/Math/MathML",rt=typeof document<"u"?document:null,qn=rt&&rt.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"?rt.createElementNS(ml,e):t==="mathml"?rt.createElementNS(gl,e):s?rt.createElement(e,{is:s}):rt.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>rt.createTextNode(e),createComment:e=>rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,o,r){const i=s?s.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===r||!(o=o.nextSibling)););else{qn.innerHTML=hr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=qn.content;if(n==="svg"||n==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},vl=Symbol("_vtc");function 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 Jn=Symbol("_vod"),bl=Symbol("_vsh"),_l=Symbol(""),wl=/(?:^|;)\s*display\s*:/;function Sl(e,t,s){const n=e.style,o=ge(s);let r=!1;if(s&&!o){if(t)if(ge(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();s[l]==null&&ms(n,l,"")}else for(const i in t)s[i]==null&&ms(n,i,"");for(const i in s)i==="display"&&(r=!0),ms(n,i,s[i])}else if(o){if(t!==s){const i=n[_l];i&&(s+=";"+i),n.cssText=s,r=wl.test(s)}}else t&&e.removeAttribute("style");Jn in e&&(e[Jn]=r?n.display:"",e[bl]&&(n.display="none"))}const Gn=/\s*!important$/;function ms(e,t,s){if(z(s))s.forEach(n=>ms(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Cl(e,t);Gn.test(s)?e.setProperty(xt(n),s.replace(Gn,""),"important"):e[n]=s}}const Yn=["Webkit","Moz","ms"],Ks={};function Cl(e,t){const s=Ks[t];if(s)return s;let n=Ee(t);if(n!=="filter"&&n in e)return Ks[t]=n;n=$s(n);for(let o=0;o<Yn.length;o++){const r=Yn[o]+n;if(r in e)return Ks[t]=r}return t}const Zn="http://www.w3.org/1999/xlink";function Qn(e,t,s,n,o,r=Tr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Zn,t.slice(6,t.length)):e.setAttributeNS(Zn,t,s):s==null||r&&!mo(s)?e.removeAttribute(t):e.setAttribute(t,r?"":et(s)?String(s):s)}function Xn(e,t,s,n,o){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?hr(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(l!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=mo(s):s==null&&l==="string"?(s="",i=!0):l==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(o||t)}function mt(e,t,s,n){e.addEventListener(t,s,n)}function Tl(e,t,s,n){e.removeEventListener(t,s,n)}const eo=Symbol("_vei");function $l(e,t,s,n,o=null){const r=e[eo]||(e[eo]={}),i=r[t];if(n&&i)i.value=n;else{const[l,c]=kl(t);if(n){const h=r[t]=Pl(n,o);mt(e,l,h,c)}else i&&(Tl(e,l,i,c),r[t]=void 0)}}const to=/(?:Once|Passive|Capture)$/;function kl(e){let t;if(to.test(e)){t={};let n;for(;n=e.match(to);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):xt(e.slice(2)),t]}let Ws=0;const El=Promise.resolve(),Al=()=>Ws||(El.then(()=>Ws=0),Ws=Date.now());function Pl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;tt(Il(n,s.value),t,5,[n])};return s.value=e,s.attached=Al(),s}function Il(e,t){if(z(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const so=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ol=(e,t,s,n,o,r)=>{const i=o==="svg";t==="class"?yl(e,n,i):t==="style"?Sl(e,s,n):Ss(t)?Cs(t)||$l(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ml(e,t,n,i))?(Xn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qn(e,t,n,i,r,t!=="value")):e._isVueCE&&(Rl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ge(n)))?Xn(e,Ee(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Qn(e,t,n,i))};function Ml(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&so(t)&&Y(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return so(t)&&ge(s)?!1:t in e}function Rl(e,t){const s=e._def.props;if(!s)return!1;const n=Ee(t);return Array.isArray(s)?s.some(o=>Ee(o)===n):Object.keys(s).some(o=>Ee(o)===n)}const jt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return z(t)?s=>ds(t,s):t};function Dl(e){e.target.composing=!0}function no(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ct=Symbol("_assign");function oo(e,t,s){return t&&(e=e.trim()),s&&(e=ks(e)),e}const Ce={created(e,{modifiers:{lazy:t,trim:s,number:n}},o){e[ct]=jt(o);const r=n||o.props&&o.props.type==="number";mt(e,t?"change":"input",i=>{i.target.composing||e[ct](oo(e.value,s,r))}),(s||r)&&mt(e,"change",()=>{e.value=oo(e.value,s,r)}),t||(mt(e,"compositionstart",Dl),mt(e,"compositionend",no),mt(e,"change",no))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:o,number:r}},i){if(e[ct]=jt(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?ks(e.value):e.value,c=t??"";if(l===c)return;const h=e.getRootNode();(h instanceof Document||h instanceof ShadowRoot)&&h.activeElement===e&&e.type!=="range"&&(n&&t===s||o&&e.value.trim()===c)||(e.value=c)}},ro={deep:!0,created(e,t,s){e[ct]=jt(s),mt(e,"change",()=>{const n=e._modelValue,o=ns(e),r=e.checked,i=e[ct];if(z(n)){const l=ln(n,o),c=l!==-1;if(r&&!c)i(n.concat(o));else if(!r&&c){const h=[...n];h.splice(l,1),i(h)}}else if(Lt(n)){const l=new Set(n);r?l.add(o):l.delete(o),i(l)}else i(mr(e,r))})},mounted:io,beforeUpdate(e,t,s){e[ct]=jt(s),io(e,t,s)}};function io(e,{value:t,oldValue:s},n){e._modelValue=t;let o;if(z(t))o=ln(t,n.props.value)>-1;else if(Lt(t))o=t.has(n.props.value);else{if(t===s)return;o=Nt(t,mr(e,!0))}e.checked!==o&&(e.checked=o)}const ws={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const o=Lt(t);mt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?ks(ns(i)):ns(i));e[ct](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,Ro(()=>{e._assigning=!1})}),e[ct]=jt(n)},mounted(e,{value:t}){lo(e,t)},beforeUpdate(e,t,s){e[ct]=jt(s)},updated(e,{value:t}){e._assigning||lo(e,t)}};function lo(e,t){const s=e.multiple,n=z(t);if(!(s&&!n&&!Lt(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],l=ns(i);if(s)if(n){const c=typeof l;c==="string"||c==="number"?i.selected=t.some(h=>String(h)===String(l)):i.selected=ln(t,l)>-1}else i.selected=t.has(l);else if(Nt(ns(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ns(e){return"_value"in e?e._value:e.value}function mr(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const jl={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ll=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(o=>{if(!("key"in o))return;const r=xt(o.key);if(t.some(i=>i===r||jl[i]===r))return e(o)}))},Nl=_e({patchProp:Ol},xl);let ao;function Fl(){return ao||(ao=Gi(Nl))}const Hl=((...e)=>{const t=Fl().createApp(...e),{mount:s}=t;return t.mount=n=>{const o=Ul(n);if(!o)return;const r=t._component;!Y(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 ge(e)?document.querySelector(e):e}let wn="";function Bt(e){wn=e}function Me(){return wn}async function ve(e,t){const s=await fetch(e,{...t,headers:{Authorization:`Bearer ${wn}`,"Content-Type":"application/json",...(t==null?void 0:t.headers)??{}}});if(!s.ok){const n=new Error(s.statusText);throw n.status=s.status,n}return s.json()}const Bl={class:"animate-fade-in"},Kl={key:0,class:"text-center py-12 text-textSecondary"},Wl={key:1,class:"text-center text-textSecondary py-12"},zl={key:2,class:"space-y-3"},ql={class:"flex items-center justify-between"},Jl={class:"flex items-center gap-3"},Gl={class:"font-medium"},Yl={class:"text-accentLight"},Zl={class:"text-textSecondary text-xs"},Ql={key:2,class:"text-muted italic"},Xl={class:"text-xs text-textSecondary font-mono"},ea={class:"text-right"},ta={class:"flex items-center gap-2 justify-end"},sa={class:"text-xs text-textSecondary"},na=$t({__name:"SessionsTab",props:{status:{}},setup(e){const t=e,s=M([]),n=M(!0);async function o(){n.value=!0;try{const h=await ve("/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=Ve(()=>{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 c(h){return h.lastWaitCallAt?Math.floor((Date.now()-h.lastWaitCallAt)/6e4)<5?"text-success":"text-warn":""}return vt(o),(h,u)=>(w(),S("div",Bl,[n.value&&r.value.length===0?(w(),S("div",Kl,"Loading sessions...")):r.value.length===0?(w(),S("div",Wl,"No sessions")):(w(),S("div",zl,[(w(!0),S(pe,null,Re(r.value,p=>(w(),S("div",{key:p.mcpSessionId,class:ee(["glass rounded-xl p-4 animate-slide-up",p.status==="disconnected"?"opacity-60":""])},[a("div",ql,[a("div",Jl,[a("span",{class:ee(["w-2.5 h-2.5 rounded-full",p.status==="disconnected"?"bg-muted":Math.floor((Date.now()-p.lastActivity)/6e4)<5?"bg-success":Math.floor((Date.now()-p.lastActivity)/6e4)<30?"bg-warn":"bg-danger"])},null,2),a("div",null,[a("div",Gl,[p.topicName?(w(),S(pe,{key:0},[a("span",Yl,_(p.topicName),1),a("span",Zl," (thread "+_(p.threadId)+")",1)],64)):p.threadId!=null?(w(),S(pe,{key:1},[At("Thread "+_(p.threadId),1)],64)):(w(),S("span",Ql,"Awaiting start_session…"))]),a("div",Xl,_(p.mcpSessionId.slice(0,12))+"...",1)])]),a("div",ea,[a("div",ta,[a("span",{class:ee(["text-sm font-medium",i(p).color])},_(i(p).label),3),l(p)?(w(),S("span",{key:0,class:ee(["text-xs ml-2",c(p)])},_(l(p)),3)):Q("",!0)]),a("div",sa,_(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"},da={class:"flex items-center gap-2 mb-1"},fa={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=$t({__name:"MemoryNotesTab",setup(e){const t=M([]),s=M(!1),n=M(""),o=M("created_at"),r=M("");let i=null;async function l(){s.value=!0;try{const u=r.value.trim();let p;if(u)p=await ve(`/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 ve(`/api/notes?${g}`)}t.value=p}finally{s.value=!1}}function c(){i&&clearTimeout(i),i=setTimeout(l,300)}function h(u){if(!u)return"never";const p=Date.now()-new Date(u).getTime(),g=Math.floor(p/6e4);if(g<1)return"just now";if(g<60)return`${g}m ago`;const T=Math.floor(g/60);return T<24?`${T}h ago`:`${Math.floor(T/24)}d ago`}return vt(l),(u,p)=>(w(),S("div",oa,[a("div",ra,[me(a("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]]),me(a("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]=[He('<option value="">All types</option><option value="fact">Facts</option><option value="preference">Preferences</option><option value="pattern">Patterns</option><option value="entity">Entities</option><option value="relationship">Relationships</option>',6)])],544),[[ws,n.value]]),me(a("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]=[a("option",{value:"created_at"},"Newest",-1),a("option",{value:"confidence"},"Confidence",-1),a("option",{value:"access_count"},"Most accessed",-1)])],544),[[ws,o.value]])]),s.value?(w(),S("div",ia,"Loading notes...")):t.value.length===0?(w(),S("div",la,"No notes found")):(w(),S("div",aa,[(w(!0),S(pe,null,Re(t.value,g=>(w(),S("div",{key:g.noteId,class:ee(["glass rounded-xl p-4 animate-fade-in",`priority-${g.priority||0}`])},[a("div",ca,[a("div",ua,[a("div",da,[a("span",{class:ee(["type-badge",`type-${g.type}`])},_(g.type),3),g.priority>=2?(w(),S("span",fa,"HIGH IMPORTANCE")):g.priority===1?(w(),S("span",pa,"NOTABLE")):Q("",!0),a("span",ha,_(g.noteId),1)]),a("p",ma,_(g.content),1),a("div",ga,[(w(!0),S(pe,null,Re(g.keywords||[],T=>(w(),S("span",{key:T,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},_(T),1))),128))])]),a("div",xa,[a("div",va,_(((Number(g.confidence)||0)*100).toFixed(0))+"%",1),a("div",ya,_(h(g.createdAt)),1),a("div",ba,_(g.accessCount??0)+" hits",1)])])],2))),128))]))]))}}),wa={class:"animate-fade-in space-y-6"},Sa={class:"glass rounded-xl p-4"},Ca={class:"flex flex-wrap items-center gap-4 mb-4"},Ta={key:0,class:"text-sm text-success"},$a={class:"flex flex-wrap items-center gap-3"},ka={key:0,class:"text-sm text-success"},Ea={class:"flex flex-wrap items-center gap-3 mb-4"},Aa={key:0,class:"text-sm text-success"},Pa={class:"glass rounded-xl p-6"},Ia={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Oa={class:"flex items-center gap-2"},Ma={key:0,class:"text-sm text-success"},Ra={key:0,class:"mb-3"},Da={class:"mt-4"},ja=["innerHTML"],La={class:"glass rounded-xl p-6"},Na={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Fa={class:"flex items-center gap-2"},Ha={key:0,class:"text-sm text-success"},Va={class:"flex gap-2 mb-4"},Ua=["onClick"],Ba={key:0,class:"mb-3"},Ka=["value","placeholder"],Wa={class:"glass rounded-xl p-6"},za={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},qa={class:"flex items-center gap-2"},Ja={key:0,class:"text-sm text-success"},Ga={class:"mb-4 flex flex-wrap items-center gap-3"},Ya={class:"flex items-center gap-2"},Za={class:"font-mono text-sm text-textPrimary"},Qa={key:0,class:"mb-3"},Xa={class:"flex flex-wrap gap-2 mb-3"},ec=["onClick"],tc={class:"mt-4"},sc=["innerHTML"],nc=$t({__name:"TemplatesTab",setup(e){function t(j){return j.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=M("copilot"),n=M(""),o=M(""),r=M(""),i=M(50),l=M(""),c=M(""),h=M(!0),u=M(""),p=M(!1),g=M({}),T=M("copilot"),N=M(""),R=M(""),J=M(!0),O=M(""),H=M(!1),G=M([]),L=M("");async function U(){await Promise.all([D(),B(),ce(),Z(),ue()])}async function D(){try{const j=await ve("/api/settings/agent-type");s.value=j.agentType||"copilot"}catch{}}async function B(){try{const j=await ve("/api/settings/claude-mcp-config");o.value=j.path||""}catch{}}async function ce(){try{const j=await ve("/api/settings/bootstrap-message-count");i.value=j.count??50}catch{}}async function Z(){try{const j=await ve("/api/templates");if(j.templates&&j.templates.length>0){const C=j.templates[0];c.value=C.content||"",h.value=C.isDefault??!0}j.agentReminders&&(g.value=j.agentReminders)}catch{}}async function ue(){try{const[j,C,nt]=await Promise.all([ve("/api/templates/drive"),ve("/api/templates/drive-presets"),ve("/api/settings/dmn-activation-hours")]);G.value=C.presets||[],L.value=String(nt.value??"not set"),j.custom?(R.value=j.custom,J.value=!1):(R.value=j.default||"",J.value=!0)}catch{}}async function ye(){try{await ve("/api/settings/agent-type",{method:"POST",body:JSON.stringify({agentType:s.value})}),await ve("/api/templates/reminders",{method:"DELETE"}),n.value="Saved ✓",setTimeout(()=>{n.value=""},3e3),await Z()}catch(j){n.value="Error: "+j.message}}async function F(){try{await ve("/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(j){l.value="Error: "+j.message}}async function P(){const j=o.value.trim();if(!j){r.value="Path is empty",setTimeout(()=>{r.value=""},3e3);return}try{await ve("/api/settings/claude-mcp-config",{method:"POST",body:JSON.stringify({path:j})}),r.value="Saved ✓",setTimeout(()=>{r.value=""},3e3)}catch(C){r.value="Error: "+C.message}}async function E(){try{const j=await fetch("/api/templates/reminders",{method:"POST",headers:{Authorization:`Bearer ${Me()}`,"Content-Type":"application/json"},body:JSON.stringify({content:c.value})});if(!j.ok)throw new Error(j.statusText);h.value=!1,u.value="Saved ✓",setTimeout(()=>{u.value=""},3e3)}catch(j){u.value="Error: "+j.message}}async function he(){if(confirm("Reset to default template? Your customizations will be lost."))try{const j=await fetch("/api/templates/reminders",{method:"DELETE",headers:{Authorization:`Bearer ${Me()}`}});if(!j.ok)throw new Error(j.statusText);await Z(),u.value="Reset to default ✓",setTimeout(()=>{u.value=""},3e3)}catch(j){u.value="Error: "+j.message}}async function oe(){var nt;const j=T.value,C=((nt=g.value[j])==null?void 0:nt.content)??"";try{const Ie=await fetch(`/api/templates/reminders-${j}`,{method:"POST",headers:{Authorization:`Bearer ${Me()}`,"Content-Type":"application/json"},body:JSON.stringify({content:C})});if(!Ie.ok)throw new Error(Ie.statusText);g.value[j]={content:C,isDefault:!1},N.value=`Saved ${j} ✓`,setTimeout(()=>{N.value=""},3e3)}catch(Ie){N.value="Error: "+Ie.message}}async function W(){const j=T.value;if(confirm(`Reset ${j} agent reminder? The custom template will be removed.`))try{const C=await fetch(`/api/templates/reminders-${j}`,{method:"DELETE",headers:{Authorization:`Bearer ${Me()}`}});if(!C.ok)throw new Error(C.statusText);await Z(),N.value=`Reset ${j} ✓`,setTimeout(()=>{N.value=""},3e3)}catch(C){N.value="Error: "+C.message}}async function te(){const j=R.value;if(!j.trim()){O.value="Template is empty — load a preset first",setTimeout(()=>{O.value=""},3e3);return}try{const C=await fetch("/api/templates/drive",{method:"POST",headers:{Authorization:`Bearer ${Me()}`,"Content-Type":"application/json"},body:JSON.stringify({content:j})});if(!C.ok)throw new Error(C.statusText);J.value=!1,O.value="Saved ✓",setTimeout(()=>{O.value=""},3e3)}catch(C){O.value="Error: "+C.message}}async function Le(){if(confirm("Reset drive template? The custom template will be removed."))try{const j=await fetch("/api/templates/drive",{method:"DELETE",headers:{Authorization:`Bearer ${Me()}`}});if(!j.ok)throw new Error(j.statusText);await ue(),O.value="Reset to default ✓",setTimeout(()=>{O.value=""},3e3)}catch(j){O.value="Error: "+j.message}}function yt(j){R.value=j.content,J.value=!1}const st=Ve(()=>t(c.value)),Ne=Ve(()=>R.value?t(R.value):'<span style="color:#6b7280">(no template loaded)</span>');return vt(U),(j,C)=>{var nt,Ie;return w(),S("div",wa,[a("div",Sa,[a("div",Ca,[C[9]||(C[9]=a("label",{class:"text-sm font-medium text-textSecondary"},"Agent Type",-1)),me(a("select",{"onUpdate:modelValue":C[0]||(C[0]=re=>s.value=re),onChange:ye,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},[...C[8]||(C[8]=[He('<option value="copilot">Copilot</option><option value="copilot_claude">Copilot (Claude)</option><option value="copilot_codex">Copilot (Codex)</option><option value="claude">Claude</option><option value="cursor">Cursor</option><option value="codex">Codex</option><option value="openai_codex">OpenAI Codex</option>',7)])],544),[[ws,s.value]]),n.value?(w(),S("span",Ta,_(n.value),1)):Q("",!0),C[10]||(C[10]=a("span",{class:"text-xs text-muted"},"Changes which default reminders template is used",-1))]),a("div",$a,[C[11]||(C[11]=a("label",{class:"text-sm font-medium text-textSecondary"},"Claude MCP Config Path",-1)),me(a("input",{"onUpdate:modelValue":C[1]||(C[1]=re=>o.value=re),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]]),a("button",{onClick:P,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save"),r.value?(w(),S("span",ka,_(r.value),1)):Q("",!0)]),a("div",Ea,[C[12]||(C[12]=a("label",{class:"text-sm font-medium text-textSecondary"},"Bootstrap Messages",-1)),me(a("input",{"onUpdate:modelValue":C[2]||(C[2]=re=>i.value=re),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}]]),a("button",{onClick:F,class:"px-4 py-2 rounded-xl bg-accent text-white text-sm font-medium hover:bg-accent/80 transition-colors"},"Save"),l.value?(w(),S("span",Aa,_(l.value),1)):Q("",!0),C[13]||(C[13]=a("span",{class:"text-xs text-muted"},"Number of recent messages injected as warm context (0 = off)",-1))])]),a("div",Pa,[a("div",Ia,[C[14]||(C[14]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Reminders Template"),a("p",{class:"text-sm text-textSecondary mt-1"},"Edit the system prompt template sent with every reminder")],-1)),a("div",Oa,[u.value?(w(),S("span",Ma,_(u.value),1)):Q("",!0),a("button",{onClick:he,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset to Default"),a("button",{onClick:E,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),h.value?(w(),S("div",Ra,[...C[15]||(C[15]=[a("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"USING DEFAULT — edit and save to customize",-1)])])):Q("",!0),me(a("textarea",{"onUpdate:modelValue":C[3]||(C[3]=re=>c.value=re),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]]),a("div",Da,[a("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:C[4]||(C[4]=re=>p.value=!p.value)},[(w(),S("svg",{class:ee(["w-4 h-4 text-textSecondary transition-transform",p.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...C[16]||(C[16]=[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),C[17]||(C[17]=a("span",{class:"text-sm font-medium text-textSecondary"},"Preview with highlighted variables",-1))]),p.value?(w(),S("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:st.value},null,8,ja)):Q("",!0)]),C[18]||(C[18]=He('<details class="mt-4"><summary class="text-sm font-medium text-textSecondary cursor-pointer hover:text-textPrimary transition">Available Variables</summary><div class="mt-2 glass rounded-xl p-4 grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm"><div><code class="text-accentLight">{{OPERATOR_MESSAGE}}</code> <span class="text-textSecondary">— latest operator message</span></div><div><code class="text-accentLight">{{THREAD_ID}}</code> <span class="text-textSecondary">— Telegram thread ID</span></div><div><code class="text-accentLight">{{TIME}}</code> <span class="text-textSecondary">— formatted timestamp</span></div><div><code class="text-accentLight">{{UPTIME}}</code> <span class="text-textSecondary">— session uptime</span></div><div><code class="text-accentLight">{{VERSION}}</code> <span class="text-textSecondary">— package version</span></div><div><code class="text-accentLight">{{MODE}}</code> <span class="text-textSecondary">— "autonomous" or "standard"</span></div></div></details>',1))]),a("div",La,[a("div",Na,[C[19]||(C[19]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Agent-Specific Reminders"),a("p",{class:"text-sm text-textSecondary mt-1"},"Appended after the base reminders template — per agent type")],-1)),a("div",Fa,[N.value?(w(),S("span",Ha,_(N.value),1)):Q("",!0),a("button",{onClick:W,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset"),a("button",{onClick:oe,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),a("div",Va,[(w(),S(pe,null,Re(["copilot","claude","cursor","codex"],re=>a("button",{key:re,onClick:bt=>T.value=re,class:ee(["px-4 py-2 rounded-xl text-sm font-medium transition",T.value===re?"bg-accent text-white":"bg-card hover:bg-cardHover border border-gray-700 text-textSecondary hover:text-textPrimary"])},_(re.charAt(0).toUpperCase()+re.slice(1)),11,Ua)),64))]),((nt=g.value[T.value])==null?void 0:nt.isDefault)!==!1?(w(),S("div",Ba,[...C[20]||(C[20]=[a("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"NO CUSTOM OVERRIDE — this agent uses only the base reminders",-1)])])):Q("",!0),a("textarea",{value:((Ie=g.value[T.value])==null?void 0:Ie.content)??"",onInput:C[5]||(C[5]=re=>{const bt=re.target;g.value[T.value]={content:bt.value,isDefault:!1}}),rows:"8",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:`Add ${T.value}-specific reminders (e.g. orchestrator hints, subagent policies)...`},null,40,Ka)]),a("div",Wa,[a("div",za,[C[21]||(C[21]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Drive Framing Template"),a("p",{class:"text-sm text-textSecondary mt-1"},"Customize the autonomous drive prompt sent when the operator is away")],-1)),a("div",qa,[O.value?(w(),S("span",Ja,_(O.value),1)):Q("",!0),a("button",{onClick:Le,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset to Default"),a("button",{onClick:te,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),a("div",Ga,[C[23]||(C[23]=a("label",{class:"text-sm text-textSecondary"},"Drive Activation Period:",-1)),a("div",Ya,[a("span",Za,_(L.value),1),C[22]||(C[22]=a("span",{class:"text-sm text-textSecondary"},"hours",-1))]),C[24]||(C[24]=a("span",{class:"text-xs text-muted"},"(informational — set via DMN_ACTIVATION_HOURS env var)",-1))]),J.value?(w(),S("div",Qa,[...C[25]||(C[25]=[a("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"(Default — edit to override)",-1)])])):Q("",!0),a("div",Xa,[C[26]||(C[26]=a("span",{class:"text-sm text-textSecondary self-center"},"Presets:",-1)),(w(!0),S(pe,null,Re(G.value,re=>(w(),S("button",{key:re.key,onClick:bt=>yt(re),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"},_(re.label),9,ec))),128))]),me(a("textarea",{"onUpdate:modelValue":C[6]||(C[6]=re=>R.value=re),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,R.value]]),a("div",tc,[a("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:C[7]||(C[7]=re=>H.value=!H.value)},[(w(),S("svg",{class:ee(["w-4 h-4 text-textSecondary transition-transform",H.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...C[27]||(C[27]=[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),C[28]||(C[28]=a("span",{class:"text-sm font-medium text-textSecondary"},"Preview with sample values",-1))]),H.value?(w(),S("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:Ne.value},null,8,sc)):Q("",!0)]),C[29]||(C[29]=He('<details class="mt-4"><summary class="text-sm font-medium text-textSecondary cursor-pointer hover:text-textPrimary transition">Available Variables</summary><div class="mt-2 glass rounded-xl p-4 grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm"><div><code class="text-accentLight">{{IDLE_HOURS}}</code> <span class="text-textSecondary">— hours since last operator interaction</span></div><div><code class="text-accentLight">{{TIME}}</code> <span class="text-textSecondary">— ISO timestamp</span></div><div><code class="text-accentLight">{{PROBABILITY}}</code> <span class="text-textSecondary">— drive activation probability (0.2–1.0)</span></div></div></details>',1))])])}}}),oc={class:"animate-fade-in"},rc={class:"glass rounded-xl p-6 mb-6"},ic={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},lc={key:0,class:"glass rounded-xl p-4 mb-4 border border-accent/30"},ac={class:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-3"},cc={class:"flex items-center gap-4 mb-3"},uc={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer"},dc={class:"flex items-center gap-2"},fc={key:0,class:"text-sm text-warn"},pc={key:1,class:"text-center py-8 text-textSecondary text-sm"},hc={key:2,class:"text-center text-textSecondary py-12"},mc={key:3,class:"space-y-2"},gc=["onClick"],xc={class:"flex items-start justify-between gap-3"},vc={class:"flex-1 min-w-0"},yc={class:"flex items-center gap-2 mb-1"},bc={class:"font-medium text-sm"},_c={key:0,class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},wc={class:"flex flex-wrap gap-1.5 mt-1"},Sc=["title"],Cc={key:0,class:"glass rounded-xl p-6"},Tc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},$c={class:"text-lg font-semibold"},kc={class:"text-sm text-textSecondary mt-1"},Ec={class:"flex items-center gap-2"},Ac={key:0,class:"text-sm text-success"},Pc={class:"grid grid-cols-1 sm:grid-cols-3 gap-3 mb-4"},Ic=["value"],Oc={class:"flex items-end"},Mc={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer pb-2"},Rc=$t({__name:"SkillsTab",setup(e){const t=M([]),s=M(!0),n=M(null),o=M(""),r=M(""),i=M(!1),l=M(""),c=M(!1),h=M(""),u=M(""),p=M(!1),g=M("");async function T(){s.value=!0;try{const U=await ve("/api/skills");t.value=U.skills||[]}finally{s.value=!1}}function N(U){return U?U.includes(".remote-copilot-mcp")&&U.includes("skills")?"user":U.endsWith(".default.md")?"default":U.endsWith(".skill.md")?"project":"unknown":"unknown"}function R(U){const D={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 D[U]||D.unknown}function J(U){n.value=U,o.value=U.content,r.value=(U.triggers||[]).join(", "),i.value=!!U.replacesOrchestrator,c.value=!1}function O(){n.value=null}function H(U,D,B,ce){let Z=`---
|
|
65
|
+
name: ${U}
|
|
66
66
|
triggers:
|
|
67
|
-
`;return
|
|
68
|
-
`}),
|
|
69
|
-
`),
|
|
67
|
+
`;return D.forEach(ue=>{Z+=` - ${ue.trim()}
|
|
68
|
+
`}),B&&(Z+=`replaces_orchestrator: true
|
|
69
|
+
`),Z+=`---
|
|
70
70
|
|
|
71
|
-
`,
|
|
72
|
-
`);try{const J=await fetch(`/api/skills/${encodeURIComponent(F)}`,{method:"PUT",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({content:ie})});if(!J.ok)throw new Error(J.statusText);m.value="Created ✓",c.value=!1,await S();const ce=t.value.find(Me=>Me.name===F);ce&&W(ce)}catch(J){m.value="Error: "+J.message}}return gt(S),(F,O)=>($(),A("div",oc,[a("div",rc,[a("div",ic,[O[8]||(O[8]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Skill Library"),a("p",{class:"text-sm text-textSecondary mt-1"},"Manage intent-routing skills — user overrides, defaults, and project skills")],-1)),a("button",{onClick:O[0]||(O[0]=V=>{c.value=!c.value,n.value=null}),class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"}," + New Skill ")]),c.value?($(),A("div",lc,[O[12]||(O[12]=a("h4",{class:"text-sm font-semibold mb-3"},"Create New Skill",-1)),a("div",ac,[a("div",null,[O[9]||(O[9]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),fe(a("input",{"onUpdate:modelValue":O[1]||(O[1]=V=>h.value=V),type:"text",placeholder:"my-skill",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Te,h.value]])]),a("div",null,[O[10]||(O[10]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),fe(a("input",{"onUpdate:modelValue":O[2]||(O[2]=V=>u.value=V),type:"text",placeholder:"trigger1, trigger2",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},null,512),[[Te,u.value]])])]),a("div",cc,[a("label",uc,[fe(a("input",{"onUpdate:modelValue":O[3]||(O[3]=V=>p.value=V),type:"checkbox",class:"rounded"},null,512),[[ro,p.value]]),O[11]||(O[11]=a("span",null,"Replaces orchestrator",-1))])]),a("div",fc,[a("button",{onClick:j,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Create"),a("button",{onClick:O[4]||(O[4]=V=>c.value=!1),class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Cancel"),m.value?($(),A("span",dc,R(m.value),1)):re("",!0)])])):re("",!0),s.value?($(),A("div",pc,"Loading...")):t.value.length===0?($(),A("div",hc,"No skills loaded")):($(),A("div",mc,[($(!0),A(de,null,ct(t.value,V=>{var ie;return $(),A("div",{key:V.name,onClick:J=>W(V),class:le(["glass rounded-xl p-4 cursor-pointer hover:bg-cardHover transition border",((ie=n.value)==null?void 0:ie.name)===V.name?"border-accent":"border-transparent"])},[a("div",xc,[a("div",vc,[a("div",bc,[a("span",yc,R(V.name),1),a("span",{class:"type-badge",style:Es(M(P(V.source)))},R(P(V.source)),5),V.replacesOrchestrator?($(),A("span",_c,"REPLACES ORCH")):re("",!0)]),a("div",wc,[($(!0),A(de,null,ct(V.triggers||[],J=>($(),A("span",{key:J,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},R(J),1))),128))])]),a("div",{class:"text-xs text-muted font-mono shrink-0 max-w-[200px] truncate",title:V.source||""},R((V.source||"").split(/[\\/]/).pop()||""),9,Sc)])],10,gc)}),128))]))]),n.value?($(),A("div",Cc,[a("div",Tc,[a("div",null,[a("h3",$c,"Edit: "+R(n.value.name),1),a("p",kc,R(n.value.source||"(unknown source)"),1)]),a("div",Ac,[l.value?($(),A("span",Ec,R(l.value),1)):re("",!0),a("button",{onClick:E,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Close"),a("button",{onClick:z,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),a("div",Pc,[a("div",null,[O[13]||(O[13]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),a("input",{value:n.value.name,type:"text",readonly:"",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono opacity-60 cursor-not-allowed"},null,8,Mc)]),a("div",null,[O[14]||(O[14]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),fe(a("input",{"onUpdate:modelValue":O[5]||(O[5]=V=>r.value=V),type:"text",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},null,512),[[Te,r.value]])]),a("div",Oc,[a("label",Ic,[fe(a("input",{"onUpdate:modelValue":O[6]||(O[6]=V=>i.value=V),type:"checkbox",class:"rounded"},null,512),[[ro,i.value]]),O[15]||(O[15]=a("span",null,"Replaces orchestrator",-1))])])]),fe(a("textarea",{"onUpdate:modelValue":O[7]||(O[7]=V=>o.value=V),rows:"20",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Skill body (markdown)..."},null,512),[[Te,o.value]])])):re("",!0)]))}}),Dc={class:"animate-fade-in"},jc={class:"glass rounded-xl p-6 mb-6"},Lc={class:"flex flex-wrap items-center justify-between gap-4 mb-6"},Nc={class:"flex items-center gap-3"},Fc=["disabled"],Hc={key:0,class:"text-center py-8 text-textSecondary text-sm"},Vc={key:1,class:"space-y-6"},Uc={class:"glass rounded-xl p-4 border border-gray-700/50"},Bc={class:"flex items-center justify-between"},Kc={class:"glass rounded-xl p-4 border border-gray-700/50"},Wc=["value"],zc={key:0,class:"text-xs text-warn mt-2"},qc={class:"glass rounded-xl p-4 border border-gray-700/50"},Jc={class:"glass rounded-xl p-4 border border-gray-700/50"},Gc={class:"text-xs text-textSecondary mb-3"},Yc={key:0,class:"ml-1 text-accentLight font-mono"},Zc={class:"flex items-center gap-2"},Qc={key:0,class:"glass rounded-xl p-4 border border-gray-700/30 bg-surface/30"},Xc={class:"grid grid-cols-2 sm:grid-cols-4 gap-4"},eu={class:"text-sm font-mono"},tu={class:"text-sm font-mono"},su={class:"text-sm font-mono"},nu=Ct({__name:"KeepAliveTab",setup(e){const t=D(null),s=D([]),n=D(!0),o=D(!1),r=D(""),i=D({keepAliveEnabled:!1,keepAliveThreadId:0,keepAliveMaxRetries:5,keepAliveCooldownMs:3e5}),l=ht(()=>{const p=new Set;return s.value.filter(m=>m.threadId!=null&&!p.has(m.threadId)&&p.add(m.threadId)).map(m=>({threadId:m.threadId,label:m.topicName??`Thread ${m.threadId}`}))});async function c(){n.value=!0;try{const[p,m]=await Promise.all([pe("/api/settings/keep-alive"),pe("/api/sessions")]);t.value=p,s.value=m,i.value={...p}}finally{n.value=!1}}async function h(){o.value=!0,r.value="";try{const p=await fetch("/api/settings/keep-alive",{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify(i.value)});if(!p.ok){const m=await p.json().catch(()=>({error:p.statusText}));throw new Error(m.error??p.statusText)}t.value={...i.value},r.value="Saved ✓",setTimeout(()=>{r.value=""},3e3)}catch(p){r.value="Error: "+p.message}finally{o.value=!1}}function u(p){const m=Math.floor(p/6e4);return m>=60?`${Math.floor(m/60)}h ${m%60}m`:`${m}m`}return gt(c),(p,m)=>{var S;return $(),A("div",Dc,[a("div",jc,[a("div",Lc,[m[4]||(m[4]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Keep-Alive Settings"),a("p",{class:"text-sm text-textSecondary mt-1"},"Configure the headless agent auto-restart and monitoring behavior")],-1)),a("div",Nc,[r.value?($(),A("span",{key:0,class:le([r.value.startsWith("Error")?"text-danger":"text-success","text-sm"])},R(r.value),3)):re("",!0),a("button",{onClick:h,disabled:o.value||n.value,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-sm font-medium transition"},R(o.value?"Saving…":"Save"),9,Fc)])]),n.value?($(),A("div",Hc,"Loading…")):($(),A("div",Vc,[a("div",Uc,[a("div",Bc,[m[5]||(m[5]=a("div",null,[a("div",{class:"text-sm font-medium"},"Enable Keep-Alive"),a("div",{class:"text-xs text-textSecondary mt-0.5"},"Automatically restart the agent when it goes offline")],-1)),a("button",{onClick:m[0]||(m[0]=P=>i.value.keepAliveEnabled=!i.value.keepAliveEnabled),class:le(["relative inline-flex h-6 w-11 items-center rounded-full transition-colors",i.value.keepAliveEnabled?"bg-accent":"bg-gray-700"])},[a("span",{class:le(["inline-block h-4 w-4 transform rounded-full bg-white shadow transition-transform",i.value.keepAliveEnabled?"translate-x-6":"translate-x-1"])},null,2)],2)])]),a("div",Kc,[m[7]||(m[7]=a("label",{class:"block text-sm font-medium mb-1"},"Session to Keep Alive",-1)),m[8]||(m[8]=a("p",{class:"text-xs text-textSecondary mb-3"},"Select the Telegram thread to monitor and keep alive",-1)),fe(a("select",{"onUpdate:modelValue":m[1]||(m[1]=P=>i.value.keepAliveThreadId=P),class:"w-full sm:w-72 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition appearance-none"},[m[6]||(m[6]=a("option",{value:0},"Disabled",-1)),($(!0),A(de,null,ct(l.value,P=>($(),A("option",{key:P.threadId,value:P.threadId},R(P.label)+" ("+R(P.threadId)+") ",9,Wc))),128))],512),[[ws,i.value.keepAliveThreadId,void 0,{number:!0}]]),i.value.keepAliveThreadId&&!l.value.find(P=>P.threadId===i.value.keepAliveThreadId)?($(),A("p",zc," Thread "+R(i.value.keepAliveThreadId)+" is configured but not in active sessions ",1)):re("",!0)]),a("div",qc,[m[9]||(m[9]=a("label",{class:"block text-sm font-medium mb-1"},"Max Retries",-1)),m[10]||(m[10]=a("p",{class:"text-xs text-textSecondary mb-3"},"Number of restart attempts before entering cooldown mode",-1)),fe(a("input",{"onUpdate:modelValue":m[2]||(m[2]=P=>i.value.keepAliveMaxRetries=P),type:"number",min:"1",max:"20",class:"w-full sm:w-32 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Te,i.value.keepAliveMaxRetries,void 0,{number:!0}]])]),a("div",Jc,[m[13]||(m[13]=a("label",{class:"block text-sm font-medium mb-1"},"Cooldown Duration",-1)),a("p",Gc,[m[11]||(m[11]=_t(" Wait time after max retries exceeded before resuming restarts ",-1)),i.value.keepAliveCooldownMs?($(),A("span",Yc,"("+R(u(i.value.keepAliveCooldownMs))+")",1)):re("",!0)]),a("div",Zc,[fe(a("input",{"onUpdate:modelValue":m[3]||(m[3]=P=>i.value.keepAliveCooldownMs=P),type:"number",min:"1000",step:"60000",class:"w-full sm:w-40 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Te,i.value.keepAliveCooldownMs,void 0,{number:!0}]]),m[12]||(m[12]=a("span",{class:"text-xs text-textSecondary"},"ms",-1))])]),t.value?($(),A("div",Qc,[m[18]||(m[18]=a("div",{class:"text-xs font-medium text-textSecondary uppercase tracking-wider mb-3"},"Current State",-1)),a("div",Xc,[a("div",null,[m[14]||(m[14]=a("div",{class:"text-xs text-muted mb-1"},"Status",-1)),a("span",{class:le(["text-sm font-medium",t.value.keepAliveEnabled?"text-success":"text-textSecondary"])},R(t.value.keepAliveEnabled?"Enabled":"Disabled"),3)]),a("div",null,[m[15]||(m[15]=a("div",{class:"text-xs text-muted mb-1"},"Thread",-1)),a("span",eu,R(((S=l.value.find(P=>P.threadId===t.value.keepAliveThreadId))==null?void 0:S.label)??(t.value.keepAliveThreadId||"—")),1)]),a("div",null,[m[16]||(m[16]=a("div",{class:"text-xs text-muted mb-1"},"Max Retries",-1)),a("span",tu,R(t.value.keepAliveMaxRetries),1)]),a("div",null,[m[17]||(m[17]=a("div",{class:"text-xs text-muted mb-1"},"Cooldown",-1)),a("span",su,R(u(t.value.keepAliveCooldownMs)),1)])])])):re("",!0)]))])])}}}),ou={class:"animate-fade-in"},ru={class:"glass rounded-xl p-6 mb-6"},iu={class:"flex flex-wrap items-center justify-between gap-4 mb-6"},lu={class:"flex items-center gap-3"},au=["disabled"],cu={key:0,class:"text-center py-8 text-textSecondary text-sm"},uu={key:1,class:"space-y-6"},fu={class:"glass rounded-xl p-4 border border-gray-700/50"},du={class:"flex items-center gap-4"},pu={class:"flex justify-between text-xs text-muted mt-2"},hu={class:"font-mono"},mu={key:0,class:"mt-3 px-3 py-2 rounded-lg bg-warn/10 border border-warn/20 text-xs text-warn"},gu={class:"glass rounded-xl p-4 border border-gray-700/30 bg-surface/30"},xu={class:"grid grid-cols-2 gap-4"},vu=Ct({__name:"SettingsTab",setup(e){const t=D(!0),s=D(!1),n=D(""),o=D(50),r=D(50),i=ht(()=>o.value!==r.value);async function l(){t.value=!0;try{const h=await pe("/api/settings/bootstrap-message-count");o.value=h.count,r.value=h.count}finally{t.value=!1}}async function c(){s.value=!0,n.value="";try{const h=await fetch("/api/settings/bootstrap-message-count",{method:"POST",headers:{Authorization:`Bearer ${Ke()}`,"Content-Type":"application/json"},body:JSON.stringify({count:o.value})});if(!h.ok){const p=await h.json().catch(()=>({error:h.statusText}));throw new Error(p.error??h.statusText)}const u=await h.json();r.value=u.count,o.value=u.count,n.value="Saved ✓",setTimeout(()=>{n.value=""},3e3)}catch(h){n.value="Error: "+h.message}finally{s.value=!1}}return gt(l),(h,u)=>($(),A("div",ou,[a("div",ru,[a("div",iu,[u[2]||(u[2]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Settings"),a("p",{class:"text-sm text-textSecondary mt-1"},"Configure agent behavior and context injection")],-1)),a("div",lu,[n.value?($(),A("span",{key:0,class:le([n.value.startsWith("Error")?"text-danger":"text-success","text-sm"])},R(n.value),3)):re("",!0),a("button",{onClick:c,disabled:s.value||t.value||!i.value,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-sm font-medium transition"},R(s.value?"Saving…":"Save"),9,au)])]),t.value?($(),A("div",cu,"Loading…")):($(),A("div",uu,[a("div",fu,[u[6]||(u[6]=a("label",{class:"block text-sm font-medium mb-1"},"Recent Conversation Buffer",-1)),u[7]||(u[7]=a("p",{class:"text-xs text-textSecondary mb-3"},[_t(" Number of recent messages injected into the agent's bootstrap context. Set to "),a("span",{class:"font-mono text-accentLight"},"0"),_t(" to disable (useful when using VS Code, which maintains its own conversation history). ")],-1)),a("div",du,[fe(a("input",{"onUpdate:modelValue":u[0]||(u[0]=p=>o.value=p),type:"range",min:"0",max:"100",step:"5",class:"flex-1 accent-accent"},null,512),[[Te,o.value,void 0,{number:!0}]]),fe(a("input",{"onUpdate:modelValue":u[1]||(u[1]=p=>o.value=p),type:"number",min:"0",max:"200",class:"w-20 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono text-center focus:outline-none focus:border-accent transition"},null,512),[[Te,o.value,void 0,{number:!0}]])]),a("div",pu,[u[3]||(u[3]=a("span",null,"Off",-1)),a("span",hu,R(o.value)+" messages",1),u[4]||(u[4]=a("span",null,"Max",-1))]),o.value===0?($(),A("div",mu,[...u[5]||(u[5]=[_t(" Message buffer injection is ",-1),a("strong",null,"disabled",-1),_t(". The agent will not see recent conversation history in its bootstrap context. Use this when VS Code (or another IDE) already provides conversation history. ",-1)])])):re("",!0)]),a("div",gu,[u[10]||(u[10]=a("div",{class:"text-xs font-medium text-textSecondary uppercase tracking-wider mb-3"},"Current State",-1)),a("div",xu,[a("div",null,[u[8]||(u[8]=a("div",{class:"text-xs text-muted mb-1"},"Message Buffer",-1)),a("span",{class:le(["text-sm font-medium",r.value>0?"text-success":"text-textSecondary"])},R(r.value>0?`${r.value} messages`:"Disabled"),3)]),a("div",null,[u[9]||(u[9]=a("div",{class:"text-xs text-muted mb-1"},"Status",-1)),a("span",{class:le(["text-sm font-medium",i.value?"text-warn":"text-textSecondary"])},R(i.value?"Unsaved changes":"Saved"),3)])])])]))])]))}}),bu={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-surface/95 backdrop-blur-sm"},yu={class:"glass rounded-2xl p-8 max-w-md w-full mx-4 animate-slide-up"},_u=["disabled"],wu={key:0,class:"mt-3 text-sm text-danger"},Su={key:1,class:"min-h-screen font-sans text-textPrimary animate-fade-in"},Cu={class:"glass sticky top-0 z-40 border-b border-gray-800/50"},Tu={class:"max-w-7xl mx-auto px-4 sm:px-6 py-4 flex items-center justify-between"},$u={class:"flex items-center gap-4"},ku={class:"text-sm text-textSecondary font-mono"},Au={class:"max-w-7xl mx-auto px-4 sm:px-6 py-6"},Eu={class:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3"},Pu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Mu={class:"text-2xl font-bold font-mono"},Ou={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Iu={class:"text-2xl font-bold font-mono"},Ru={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Du={class:"text-2xl font-bold font-mono"},ju={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Lu={class:"flex items-center gap-2 mb-2"},Nu={class:"text-2xl font-bold font-mono"},Fu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Hu={class:"text-2xl font-bold font-mono"},Vu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Uu={class:"text-2xl font-bold font-mono"},Bu={class:"max-w-7xl mx-auto px-4 sm:px-6"},Ku={class:"flex gap-6 border-b border-gray-800/50 mb-6"},Wu=["onClick"],zu={class:"max-w-7xl mx-auto px-4 sm:px-6 pb-12"},us="sensorium_token",qu=Ct({__name:"App",setup(e){const t=D(!1),s=D(""),n=D(""),o=D(!1),r=D(null),i=D("sessions");let l=null;const c=[{id:"sessions",label:"Sessions"},{id:"notes",label:"Memory Notes"},{id:"templates",label:"Templates"},{id:"skills",label:"Skills"},{id:"keepalive",label:"Keep-Alive"},{id:"settings",label:"Settings"}],h={sessions:na,notes:_a,templates:nc,skills:Rc,keepalive:nu,settings:vu},u=ht(()=>h[i.value]),p=ht(()=>{if(!r.value)return"—";const W=Math.floor(r.value.uptime),E=Math.floor(W/86400),N=Math.floor(W%86400/3600),z=Math.floor(W%3600/60);return E>0?`${E}d ${N}h`:N>0?`${N}h ${z}m`:`${z}m`});async function m(){const W=s.value.trim()||"no-auth";o.value=!0,n.value="";try{Ut(W),await P(),localStorage.setItem(us,W),t.value=!0,M()}catch(E){const N=E;N.status===401?n.value="Invalid token":n.value=N.message??"Connection failed",Ut("")}finally{o.value=!1}}function S(){localStorage.removeItem(us),t.value=!1,s.value="",r.value=null,l&&clearInterval(l),Ut("")}async function P(){r.value=await pe("/api/status")}function M(){l&&clearInterval(l),l=setInterval(P,3e4)}return gt(async()=>{const W=localStorage.getItem(us);if(W){s.value=W;try{Ut(W),await P(),t.value=!0,M()}catch{localStorage.removeItem(us),Ut("")}}}),vn(()=>{l&&clearInterval(l)}),(W,E)=>{var N,z,j,F,O,V,ie,J,ce,Me,Ye;return t.value?($(),A("div",Su,[a("header",Cu,[a("div",Tu,[E[3]||(E[3]=Re('<div class="flex items-center gap-3"><div class="w-8 h-8 rounded-lg bg-gradient-to-br from-accent to-purple-500 flex items-center justify-center"><span class="text-white text-sm font-bold">S</span></div><div><h1 class="text-lg font-semibold tracking-tight">Sensorium MCP</h1><p class="text-xs text-textSecondary">Agent Dashboard</p></div></div>',1)),a("div",$u,[E[2]||(E[2]=a("div",{class:"flex items-center gap-2 text-sm"},[a("span",{class:"w-2 h-2 rounded-full bg-success animate-pulse-slow"}),a("span",{class:"text-textSecondary"},"Connected")],-1)),a("div",ku,R(p.value),1),a("button",{onClick:S,class:"text-sm text-muted hover:text-textSecondary transition"},"Disconnect")])])]),a("div",Au,[a("div",Eu,[a("div",Pu,[E[4]||(E[4]=Re('<div class="flex items-center gap-2 mb-2"><span class="text-success"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Sessions</span></div>',1)),a("div",Mu,R(((N=r.value)==null?void 0:N.activeSessions)??0),1)]),a("div",Ou,[E[5]||(E[5]=Re('<div class="flex items-center gap-2 mb-2"><span class="text-accentLight"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Notes</span></div>',1)),a("div",Iu,R(((j=(z=r.value)==null?void 0:z.memory)==null?void 0:j.totalSemanticNotes)??0),1)]),a("div",Ru,[E[6]||(E[6]=Re('<div class="flex items-center gap-2 mb-2"><span class="text-warn"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Episodes</span></div>',1)),a("div",Du,R(((O=(F=r.value)==null?void 0:F.memory)==null?void 0:O.totalEpisodes)??0),1)]),a("div",ju,[a("div",Lu,[a("span",{class:le((((ie=(V=r.value)==null?void 0:V.memory)==null?void 0:ie.unconsolidatedEpisodes)??0)>10?"text-danger":"text-success")},[...E[7]||(E[7]=[a("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)])],2),E[8]||(E[8]=a("span",{class:"text-xs text-textSecondary font-medium uppercase tracking-wider"},"Unconsolidated",-1))]),a("div",Nu,R(((ce=(J=r.value)==null?void 0:J.memory)==null?void 0:ce.unconsolidatedEpisodes)??0),1)]),a("div",Fu,[E[9]||(E[9]=Re('<div class="flex items-center gap-2 mb-2"><span class="text-accent"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Procedures</span></div>',1)),a("div",Hu,R(((Ye=(Me=r.value)==null?void 0:Me.memory)==null?void 0:Ye.totalProcedures)??0),1)]),a("div",Vu,[E[10]||(E[10]=Re('<div class="flex items-center gap-2 mb-2"><span class="text-success"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M12 5l7 7-7 7"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Uptime</span></div>',1)),a("div",Uu,R(p.value),1)])])]),a("div",Bu,[a("nav",Ku,[($(),A(de,null,ct(c,$e=>a("button",{key:$e.id,onClick:Tt=>i.value=$e.id,class:le(["pb-3 text-sm font-medium transition",i.value===$e.id?"tab-active":"tab-inactive"])},R($e.label),11,Wu)),64))])]),a("div",zu,[($(),cr($i(u.value),{status:r.value},null,8,["status"]))])])):($(),A("div",bu,[a("div",yu,[E[1]||(E[1]=Re('<div class="flex items-center gap-3 mb-6"><div class="w-10 h-10 rounded-xl bg-accent/20 flex items-center justify-center"><svg class="w-5 h-5 text-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path></svg></div><div><h2 class="text-lg font-semibold">Sensorium MCP</h2><p class="text-sm text-textSecondary">Enter your API token</p></div></div>',1)),fe(a("input",{"onUpdate:modelValue":E[0]||(E[0]=$e=>s.value=$e),type:"password",placeholder:"MCP_HTTP_SECRET",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary placeholder-muted focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition font-mono text-sm",onKeydown:Ll(m,["enter"])},null,544),[[Te,s.value]]),a("button",{onClick:m,disabled:o.value,class:"w-full mt-4 px-4 py-3 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white font-medium transition"},R(o.value?"Connecting...":"Connect"),9,_u),n.value?($(),A("p",wu,R(n.value),1)):re("",!0)])]))}}});Hl(qu).mount("#app");</script>
|
|
71
|
+
`,Z+ce}async function G(){if(!n.value)return;const U=n.value.name;try{const D=r.value.split(",").map(ue=>ue.trim()).filter(Boolean),B=o.value;let ce;B.trimStart().startsWith("---")?ce=B:ce=H(U,D,i.value,B);const Z=await fetch(`/api/skills/${encodeURIComponent(U)}`,{method:"PUT",headers:{Authorization:`Bearer ${Me()}`,"Content-Type":"application/json"},body:JSON.stringify({content:ce})});if(!Z.ok)throw new Error(Z.statusText);l.value="Saved ✓",setTimeout(()=>{l.value=""},3e3),await T()}catch(D){l.value="Error: "+D.message}}async function L(){const U=h.value.trim(),D=u.value;if(!U){g.value="Name is required";return}const B=D.split(",").map(Z=>Z.trim()).filter(Boolean);if(!B.length){g.value="At least one trigger is required";return}const ce=H(U,B,p.value,`\x3C!-- Write your skill instructions here -->
|
|
72
|
+
`);try{const Z=await fetch(`/api/skills/${encodeURIComponent(U)}`,{method:"PUT",headers:{Authorization:`Bearer ${Me()}`,"Content-Type":"application/json"},body:JSON.stringify({content:ce})});if(!Z.ok)throw new Error(Z.statusText);g.value="Created ✓",c.value=!1,await T();const ue=t.value.find(ye=>ye.name===U);ue&&J(ue)}catch(Z){g.value="Error: "+Z.message}}return vt(T),(U,D)=>(w(),S("div",oc,[a("div",rc,[a("div",ic,[D[8]||(D[8]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Skill Library"),a("p",{class:"text-sm text-textSecondary mt-1"},"Manage intent-routing skills — user overrides, defaults, and project skills")],-1)),a("button",{onClick:D[0]||(D[0]=B=>{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?(w(),S("div",lc,[D[12]||(D[12]=a("h4",{class:"text-sm font-semibold mb-3"},"Create New Skill",-1)),a("div",ac,[a("div",null,[D[9]||(D[9]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),me(a("input",{"onUpdate:modelValue":D[1]||(D[1]=B=>h.value=B),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,h.value]])]),a("div",null,[D[10]||(D[10]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),me(a("input",{"onUpdate:modelValue":D[2]||(D[2]=B=>u.value=B),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,u.value]])])]),a("div",cc,[a("label",uc,[me(a("input",{"onUpdate:modelValue":D[3]||(D[3]=B=>p.value=B),type:"checkbox",class:"rounded"},null,512),[[ro,p.value]]),D[11]||(D[11]=a("span",null,"Replaces orchestrator",-1))])]),a("div",dc,[a("button",{onClick:L,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Create"),a("button",{onClick:D[4]||(D[4]=B=>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?(w(),S("span",fc,_(g.value),1)):Q("",!0)])])):Q("",!0),s.value?(w(),S("div",pc,"Loading...")):t.value.length===0?(w(),S("div",hc,"No skills loaded")):(w(),S("div",mc,[(w(!0),S(pe,null,Re(t.value,B=>{var ce;return w(),S("div",{key:B.name,onClick:Z=>J(B),class:ee(["glass rounded-xl p-4 cursor-pointer hover:bg-cardHover transition border",((ce=n.value)==null?void 0:ce.name)===B.name?"border-accent":"border-transparent"])},[a("div",xc,[a("div",vc,[a("div",yc,[a("span",bc,_(B.name),1),a("span",{class:"type-badge",style:As(R(N(B.source)))},_(N(B.source)),5),B.replacesOrchestrator?(w(),S("span",_c,"REPLACES ORCH")):Q("",!0)]),a("div",wc,[(w(!0),S(pe,null,Re(B.triggers||[],Z=>(w(),S("span",{key:Z,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},_(Z),1))),128))])]),a("div",{class:"text-xs text-muted font-mono shrink-0 max-w-[200px] truncate",title:B.source||""},_((B.source||"").split(/[\\/]/).pop()||""),9,Sc)])],10,gc)}),128))]))]),n.value?(w(),S("div",Cc,[a("div",Tc,[a("div",null,[a("h3",$c,"Edit: "+_(n.value.name),1),a("p",kc,_(n.value.source||"(unknown source)"),1)]),a("div",Ec,[l.value?(w(),S("span",Ac,_(l.value),1)):Q("",!0),a("button",{onClick:O,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Close"),a("button",{onClick:G,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),a("div",Pc,[a("div",null,[D[13]||(D[13]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),a("input",{value:n.value.name,type:"text",readonly:"",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono opacity-60 cursor-not-allowed"},null,8,Ic)]),a("div",null,[D[14]||(D[14]=a("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),me(a("input",{"onUpdate:modelValue":D[5]||(D[5]=B=>r.value=B),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]])]),a("div",Oc,[a("label",Mc,[me(a("input",{"onUpdate:modelValue":D[6]||(D[6]=B=>i.value=B),type:"checkbox",class:"rounded"},null,512),[[ro,i.value]]),D[15]||(D[15]=a("span",null,"Replaces orchestrator",-1))])])]),me(a("textarea",{"onUpdate:modelValue":D[7]||(D[7]=B=>o.value=B),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]])])):Q("",!0)]))}}),Dc={class:"animate-fade-in space-y-6"},jc={class:"glass rounded-xl p-6"},Lc={class:"flex flex-wrap items-center justify-between gap-4 mb-2"},Nc={class:"flex items-center gap-3"},Fc={key:0,class:"mt-4 p-4 rounded-xl bg-surface border border-gray-700/50 space-y-3"},Hc={class:"grid grid-cols-1 sm:grid-cols-3 gap-3"},Vc={class:"flex justify-end"},Uc=["disabled"],Bc={key:0,class:"text-center py-12 text-textSecondary"},Kc={key:1,class:"text-center py-8 text-danger text-sm"},Wc={key:2,class:"text-center py-12 text-textSecondary"},zc={key:3},qc={class:"space-y-3"},Jc={class:"p-4"},Gc={class:"flex flex-wrap items-center gap-3"},Yc={class:"font-semibold"},Zc={class:"text-xs text-muted font-mono"},Qc={class:"text-xs text-textSecondary"},Xc={class:"text-xs text-muted"},eu={class:"ml-auto flex items-center gap-2"},tu=["onClick"],su=["onClick"],nu=["onClick"],ou={key:0,class:"mt-3 p-3 rounded-lg bg-surface border border-purple-500/20 space-y-2"},ru={class:"grid grid-cols-1 sm:grid-cols-2 gap-2"},iu={class:"flex items-center gap-2"},lu=["onClick","disabled"],au={key:0,class:"border-t border-gray-700/30 bg-surface/30 px-4 py-3 space-y-2"},cu={key:0,class:"text-xs text-muted py-1"},uu={class:"text-sm font-medium"},du={class:"text-xs text-muted font-mono"},fu={class:"text-xs text-textSecondary"},pu={class:"text-xs text-muted"},hu=["onClick"],mu={key:4},gu={class:"space-y-2"},xu={class:"font-medium"},vu={class:"text-xs text-muted font-mono"},yu={class:"text-xs text-textSecondary"},bu={class:"text-xs text-muted"},_u=["onClick"],wu={key:5},Su={class:"space-y-2"},Cu={class:"font-medium"},Tu={class:"text-xs text-muted font-mono"},$u={class:"text-xs text-textSecondary"},ku={class:"text-xs text-muted"},Eu=["onClick"],Au={key:6},Pu={class:"space-y-2"},Iu={class:"font-medium"},Ou={class:"text-xs text-muted font-mono"},Mu={class:"text-xs text-textSecondary"},Ru={class:"text-xs text-muted"},Du=["onClick"],ju=$t({__name:"ThreadsTab",setup(e){const t=M([]),s=M(!0),n=M(""),o=M({}),r=M(new Set),i=M(!1),l=M({name:"",threadId:0,client:"claude"}),c=M(""),h=M(!1),u=M(null),p=M({name:"",threadId:0}),g=M(""),T=M(!1),N={root:{emoji:"🟢",classes:"bg-green-500/20 text-green-400 border-green-500/30"},daily:{emoji:"🔵",classes:"bg-blue-500/20 text-blue-400 border-blue-500/30"},branch:{emoji:"🟣",classes:"bg-purple-500/20 text-purple-400 border-purple-500/30"},worker:{emoji:"🟡",classes:"bg-yellow-500/20 text-yellow-400 border-yellow-500/30"}},R=Ve(()=>t.value.filter(F=>F.type==="root")),J=Ve(()=>t.value.filter(F=>F.type==="daily")),O=Ve(()=>t.value.filter(F=>F.type==="branch")),H=Ve(()=>t.value.filter(F=>F.type==="worker"));async function G(){s.value=!0,n.value="";try{const F=await ve("/api/threads");t.value=F.threads??[]}catch(F){n.value=F.message||"Failed to load threads"}finally{s.value=!1}}async function L(F){try{const P=await ve(`/api/threads/${F}/children`);o.value[F]=P.threads??[]}catch{o.value[F]=[]}}function U(F){r.value.has(F)?r.value.delete(F):(r.value.add(F),L(F))}async function D(){if(!(!l.value.name.trim()||!l.value.threadId)){h.value=!0,c.value="";try{const F=await fetch("/api/threads",{method:"POST",headers:{Authorization:`Bearer ${Me()}`,"Content-Type":"application/json"},body:JSON.stringify({threadId:l.value.threadId,name:l.value.name.trim(),type:"root",client:l.value.client,keepAlive:!1})});if(!F.ok){const P=await F.json().catch(()=>({error:F.statusText}));throw new Error(P.error??F.statusText)}c.value="Created ✓",l.value={name:"",threadId:0,client:"claude"},i.value=!1,setTimeout(()=>{c.value=""},3e3),await G()}catch(F){c.value="Error: "+F.message}finally{h.value=!1}}}async function B(F){if(!(!p.value.name.trim()||!p.value.threadId)){T.value=!0,g.value="";try{const P=await fetch("/api/threads",{method:"POST",headers:{Authorization:`Bearer ${Me()}`,"Content-Type":"application/json"},body:JSON.stringify({threadId:p.value.threadId,name:p.value.name.trim(),type:"branch",rootThreadId:F})});if(!P.ok){const E=await P.json().catch(()=>({error:P.statusText}));throw new Error(E.error??P.statusText)}g.value="Branch created ✓",p.value={name:"",threadId:0},u.value=null,setTimeout(()=>{g.value=""},3e3),await G(),L(F)}catch(P){g.value="Error: "+P.message}finally{T.value=!1}}}async function ce(F){try{const P=await fetch(`/api/threads/${F.threadId}`,{method:"PATCH",headers:{Authorization:`Bearer ${Me()}`,"Content-Type":"application/json"},body:JSON.stringify({keepAlive:!F.keepAlive})});if(!P.ok)throw new Error(P.statusText);await G()}catch(P){n.value="Failed to toggle keep-alive: "+P.message}}async function Z(F){if(confirm(`Archive thread "${F.name}" (${F.threadId})?`))try{const P=await fetch(`/api/threads/${F.threadId}`,{method:"DELETE",headers:{Authorization:`Bearer ${Me()}`}});if(!P.ok)throw new Error(P.statusText);await G()}catch(P){n.value="Failed to archive: "+P.message}}function ue(F){if(!F)return"—";const P=new Date(F),he=Date.now()-P.getTime();return he<6e4?"just now":he<36e5?`${Math.floor(he/6e4)}m ago`:he<864e5?`${Math.floor(he/36e5)}h ago`:P.toLocaleDateString()}function ye(F){return F==="active"?"text-success":F==="archived"?"text-muted":"text-warn"}return vt(G),(F,P)=>(w(),S("div",Dc,[a("div",jc,[a("div",Lc,[P[6]||(P[6]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Thread Registry"),a("p",{class:"text-sm text-textSecondary mt-1"},"Manage conversation threads, branches, and daily sessions")],-1)),a("div",Nc,[c.value?(w(),S("span",{key:0,class:ee([c.value.startsWith("Error")?"text-danger":"text-success","text-sm"])},_(c.value),3)):Q("",!0),a("button",{onClick:P[0]||(P[0]=E=>i.value=!i.value),class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},_(i.value?"Cancel":"+ New Root Thread"),1),a("button",{onClick:G,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm hover:bg-surface transition"}," ↻ Refresh ")])]),i.value?(w(),S("div",Fc,[a("div",Hc,[a("div",null,[P[7]||(P[7]=a("label",{class:"block text-xs text-textSecondary mb-1"},"Name",-1)),me(a("input",{"onUpdate:modelValue":P[1]||(P[1]=E=>l.value.name=E),type:"text",placeholder:"e.g. Main Workspace",class:"w-full px-3 py-2 rounded-lg bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted focus:outline-none focus:border-accent transition"},null,512),[[Ce,l.value.name]])]),a("div",null,[P[8]||(P[8]=a("label",{class:"block text-xs text-textSecondary mb-1"},"Thread ID",-1)),me(a("input",{"onUpdate:modelValue":P[2]||(P[2]=E=>l.value.threadId=E),type:"number",min:"1",placeholder:"Telegram thread ID",class:"w-full px-3 py-2 rounded-lg bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted focus:outline-none focus:border-accent transition"},null,512),[[Ce,l.value.threadId,void 0,{number:!0}]])]),a("div",null,[P[10]||(P[10]=a("label",{class:"block text-xs text-textSecondary mb-1"},"Client",-1)),me(a("select",{"onUpdate:modelValue":P[3]||(P[3]=E=>l.value.client=E),class:"w-full px-3 py-2 rounded-lg bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition appearance-none"},[...P[9]||(P[9]=[a("option",{value:"claude"},"Claude",-1),a("option",{value:"copilot"},"Copilot",-1)])],512),[[ws,l.value.client]])])]),a("div",Vc,[a("button",{onClick:D,disabled:h.value||!l.value.name.trim()||!l.value.threadId,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-sm font-medium transition"},_(h.value?"Creating…":"Create Root Thread"),9,Uc)])])):Q("",!0)]),s.value&&t.value.length===0?(w(),S("div",Bc,"Loading threads…")):n.value?(w(),S("div",Kc,_(n.value),1)):t.value.length===0?(w(),S("div",Wc,"No threads registered")):Q("",!0),R.value.length>0?(w(),S("div",zc,[P[12]||(P[12]=a("h4",{class:"text-sm font-medium text-textSecondary uppercase tracking-wider mb-3"},"🟢 Root Threads",-1)),a("div",qc,[(w(!0),S(pe,null,Re(R.value,E=>{var he,oe;return w(),S("div",{key:E.id,class:"glass rounded-xl overflow-hidden"},[a("div",Jc,[a("div",Gc,[a("span",{class:ee(["inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium border",(he=N[E.type])==null?void 0:he.classes])},_((oe=N[E.type])==null?void 0:oe.emoji)+" "+_(E.type.toUpperCase()),3),a("span",Yc,_(E.name),1),a("span",{class:ee(["text-xs font-medium",ye(E.status)])},_(E.status),3),a("span",Zc,"ID: "+_(E.threadId),1),a("span",Qc,_(E.client),1),a("span",Xc,_(ue(E.lastActiveAt)),1),a("div",eu,[a("button",{onClick:W=>ce(E),class:ee(["relative inline-flex h-5 w-9 items-center rounded-full transition-colors",E.keepAlive?"bg-accent":"bg-gray-700"]),title:"Toggle keep-alive"},[a("span",{class:ee(["inline-block h-3.5 w-3.5 transform rounded-full bg-white shadow transition-transform",E.keepAlive?"translate-x-4":"translate-x-0.5"])},null,2)],10,tu),P[11]||(P[11]=a("span",{class:"text-xs text-muted"},"Keep-alive",-1)),a("button",{onClick:W=>U(E.threadId),class:"px-2 py-1 rounded-lg text-xs bg-card border border-gray-700 hover:bg-surface transition"},_(r.value.has(E.threadId)?"▾ Children":"▸ Children"),9,su),a("button",{onClick:W=>{u.value=u.value===E.threadId?null:E.threadId,p.value={name:"",threadId:0},g.value=""},class:"px-2 py-1 rounded-lg text-xs bg-purple-500/20 text-purple-400 border border-purple-500/30 hover:bg-purple-500/30 transition"}," + Branch ",8,nu)])]),u.value===E.threadId?(w(),S("div",ou,[a("div",ru,[me(a("input",{"onUpdate:modelValue":P[4]||(P[4]=W=>p.value.name=W),type:"text",placeholder:"Branch name",class:"px-3 py-1.5 rounded-lg bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted focus:outline-none focus:border-accent transition"},null,512),[[Ce,p.value.name]]),me(a("input",{"onUpdate:modelValue":P[5]||(P[5]=W=>p.value.threadId=W),type:"number",min:"1",placeholder:"Thread ID",class:"px-3 py-1.5 rounded-lg bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted focus:outline-none focus:border-accent transition"},null,512),[[Ce,p.value.threadId,void 0,{number:!0}]])]),a("div",iu,[a("button",{onClick:W=>B(E.threadId),disabled:T.value||!p.value.name.trim()||!p.value.threadId,class:"px-3 py-1.5 rounded-lg bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-xs font-medium transition"},_(T.value?"Creating…":"Create Branch"),9,lu),g.value?(w(),S("span",{key:0,class:ee([g.value.startsWith("Error")?"text-danger":"text-success","text-xs"])},_(g.value),3)):Q("",!0)])])):Q("",!0)]),r.value.has(E.threadId)&&o.value[E.threadId]?(w(),S("div",au,[o.value[E.threadId].length===0?(w(),S("div",cu,"No children")):Q("",!0),(w(!0),S(pe,null,Re(o.value[E.threadId],W=>{var te,Le;return w(),S("div",{key:W.id,class:"flex flex-wrap items-center gap-2 px-3 py-2 rounded-lg bg-card/50 border border-gray-700/30"},[a("span",{class:ee(["inline-flex items-center gap-1 px-1.5 py-0.5 rounded-full text-xs font-medium border",(te=N[W.type])==null?void 0:te.classes])},_((Le=N[W.type])==null?void 0:Le.emoji)+" "+_(W.type.toUpperCase()),3),a("span",uu,_(W.name),1),a("span",{class:ee(["text-xs",ye(W.status)])},_(W.status),3),a("span",du,"ID: "+_(W.threadId),1),a("span",fu,_(W.client),1),a("span",pu,_(ue(W.lastActiveAt)),1),W.type!=="root"?(w(),S("button",{key:0,onClick:yt=>Z(W),class:"ml-auto px-2 py-0.5 rounded-lg text-xs bg-red-500/10 text-red-400 border border-red-500/20 hover:bg-red-500/20 transition"}," Archive ",8,hu)):Q("",!0)])}),128))])):Q("",!0)])}),128))])])):Q("",!0),J.value.length>0?(w(),S("div",mu,[P[13]||(P[13]=a("h4",{class:"text-sm font-medium text-textSecondary uppercase tracking-wider mb-3"},"🔵 Daily Sessions",-1)),a("div",gu,[(w(!0),S(pe,null,Re(J.value,E=>{var he,oe;return w(),S("div",{key:E.id,class:"glass rounded-xl p-4 flex flex-wrap items-center gap-3"},[a("span",{class:ee(["inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium border",(he=N[E.type])==null?void 0:he.classes])},_((oe=N[E.type])==null?void 0:oe.emoji)+" "+_(E.type.toUpperCase()),3),a("span",xu,_(E.name),1),a("span",{class:ee(["text-xs font-medium",ye(E.status)])},_(E.status),3),a("span",vu,"ID: "+_(E.threadId),1),a("span",yu,_(E.client),1),a("span",bu,_(ue(E.lastActiveAt)),1),a("button",{onClick:W=>Z(E),class:"ml-auto px-2 py-1 rounded-lg text-xs bg-red-500/10 text-red-400 border border-red-500/20 hover:bg-red-500/20 transition"}," Archive ",8,_u)])}),128))])])):Q("",!0),O.value.length>0?(w(),S("div",wu,[P[14]||(P[14]=a("h4",{class:"text-sm font-medium text-textSecondary uppercase tracking-wider mb-3"},"🟣 Branches",-1)),a("div",Su,[(w(!0),S(pe,null,Re(O.value,E=>{var he,oe;return w(),S("div",{key:E.id,class:"glass rounded-xl p-4 flex flex-wrap items-center gap-3"},[a("span",{class:ee(["inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium border",(he=N[E.type])==null?void 0:he.classes])},_((oe=N[E.type])==null?void 0:oe.emoji)+" "+_(E.type.toUpperCase()),3),a("span",Cu,_(E.name),1),a("span",{class:ee(["text-xs font-medium",ye(E.status)])},_(E.status),3),a("span",Tu,"ID: "+_(E.threadId),1),a("span",$u,_(E.client),1),a("span",ku,_(ue(E.lastActiveAt)),1),a("button",{onClick:W=>Z(E),class:"ml-auto px-2 py-1 rounded-lg text-xs bg-red-500/10 text-red-400 border border-red-500/20 hover:bg-red-500/20 transition"}," Archive ",8,Eu)])}),128))])])):Q("",!0),H.value.length>0?(w(),S("div",Au,[P[15]||(P[15]=a("h4",{class:"text-sm font-medium text-textSecondary uppercase tracking-wider mb-3"},"🟡 Workers",-1)),a("div",Pu,[(w(!0),S(pe,null,Re(H.value,E=>{var he,oe;return w(),S("div",{key:E.id,class:"glass rounded-xl p-4 flex flex-wrap items-center gap-3"},[a("span",{class:ee(["inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium border",(he=N[E.type])==null?void 0:he.classes])},_((oe=N[E.type])==null?void 0:oe.emoji)+" "+_(E.type.toUpperCase()),3),a("span",Iu,_(E.name),1),a("span",{class:ee(["text-xs font-medium",ye(E.status)])},_(E.status),3),a("span",Ou,"ID: "+_(E.threadId),1),a("span",Mu,_(E.client),1),a("span",Ru,_(ue(E.lastActiveAt)),1),a("button",{onClick:W=>Z(E),class:"ml-auto px-2 py-1 rounded-lg text-xs bg-red-500/10 text-red-400 border border-red-500/20 hover:bg-red-500/20 transition"}," Archive ",8,Du)])}),128))])])):Q("",!0)]))}}),Lu={class:"animate-fade-in"},Nu={class:"glass rounded-xl p-6 mb-6"},Fu={class:"flex flex-wrap items-center justify-between gap-4 mb-6"},Hu={class:"flex items-center gap-3"},Vu=["disabled"],Uu={key:0,class:"text-center py-8 text-textSecondary text-sm"},Bu={key:1,class:"space-y-6"},Ku={class:"glass rounded-xl p-4 border border-gray-700/50"},Wu={class:"flex items-center gap-4"},zu={class:"flex justify-between text-xs text-muted mt-2"},qu={class:"font-mono"},Ju={key:0,class:"mt-3 px-3 py-2 rounded-lg bg-warn/10 border border-warn/20 text-xs text-warn"},Gu={class:"glass rounded-xl p-4 border border-gray-700/30 bg-surface/30"},Yu={class:"grid grid-cols-2 gap-4"},Zu=$t({__name:"SettingsTab",setup(e){const t=M(!0),s=M(!1),n=M(""),o=M(50),r=M(50),i=Ve(()=>o.value!==r.value);async function l(){t.value=!0;try{const h=await ve("/api/settings/bootstrap-message-count");o.value=h.count,r.value=h.count}finally{t.value=!1}}async function c(){s.value=!0,n.value="";try{const h=await fetch("/api/settings/bootstrap-message-count",{method:"POST",headers:{Authorization:`Bearer ${Me()}`,"Content-Type":"application/json"},body:JSON.stringify({count:o.value})});if(!h.ok){const p=await h.json().catch(()=>({error:h.statusText}));throw new Error(p.error??h.statusText)}const u=await h.json();r.value=u.count,o.value=u.count,n.value="Saved ✓",setTimeout(()=>{n.value=""},3e3)}catch(h){n.value="Error: "+h.message}finally{s.value=!1}}return vt(l),(h,u)=>(w(),S("div",Lu,[a("div",Nu,[a("div",Fu,[u[2]||(u[2]=a("div",null,[a("h3",{class:"text-lg font-semibold"},"Settings"),a("p",{class:"text-sm text-textSecondary mt-1"},"Configure agent behavior and context injection")],-1)),a("div",Hu,[n.value?(w(),S("span",{key:0,class:ee([n.value.startsWith("Error")?"text-danger":"text-success","text-sm"])},_(n.value),3)):Q("",!0),a("button",{onClick:c,disabled:s.value||t.value||!i.value,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-sm font-medium transition"},_(s.value?"Saving…":"Save"),9,Vu)])]),t.value?(w(),S("div",Uu,"Loading…")):(w(),S("div",Bu,[a("div",Ku,[u[6]||(u[6]=a("label",{class:"block text-sm font-medium mb-1"},"Recent Conversation Buffer",-1)),u[7]||(u[7]=a("p",{class:"text-xs text-textSecondary mb-3"},[At(" Number of recent messages injected into the agent's bootstrap context. Set to "),a("span",{class:"font-mono text-accentLight"},"0"),At(" to disable (useful when using VS Code, which maintains its own conversation history). ")],-1)),a("div",Wu,[me(a("input",{"onUpdate:modelValue":u[0]||(u[0]=p=>o.value=p),type:"range",min:"0",max:"100",step:"5",class:"flex-1 accent-accent"},null,512),[[Ce,o.value,void 0,{number:!0}]]),me(a("input",{"onUpdate:modelValue":u[1]||(u[1]=p=>o.value=p),type:"number",min:"0",max:"200",class:"w-20 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono text-center focus:outline-none focus:border-accent transition"},null,512),[[Ce,o.value,void 0,{number:!0}]])]),a("div",zu,[u[3]||(u[3]=a("span",null,"Off",-1)),a("span",qu,_(o.value)+" messages",1),u[4]||(u[4]=a("span",null,"Max",-1))]),o.value===0?(w(),S("div",Ju,[...u[5]||(u[5]=[At(" Message buffer injection is ",-1),a("strong",null,"disabled",-1),At(". The agent will not see recent conversation history in its bootstrap context. Use this when VS Code (or another IDE) already provides conversation history. ",-1)])])):Q("",!0)]),a("div",Gu,[u[10]||(u[10]=a("div",{class:"text-xs font-medium text-textSecondary uppercase tracking-wider mb-3"},"Current State",-1)),a("div",Yu,[a("div",null,[u[8]||(u[8]=a("div",{class:"text-xs text-muted mb-1"},"Message Buffer",-1)),a("span",{class:ee(["text-sm font-medium",r.value>0?"text-success":"text-textSecondary"])},_(r.value>0?`${r.value} messages`:"Disabled"),3)]),a("div",null,[u[9]||(u[9]=a("div",{class:"text-xs text-muted mb-1"},"Status",-1)),a("span",{class:ee(["text-sm font-medium",i.value?"text-warn":"text-textSecondary"])},_(i.value?"Unsaved changes":"Saved"),3)])])])]))])]))}}),Qu={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-surface/95 backdrop-blur-sm"},Xu={class:"glass rounded-2xl p-8 max-w-md w-full mx-4 animate-slide-up"},ed=["disabled"],td={key:0,class:"mt-3 text-sm text-danger"},sd={key:1,class:"min-h-screen font-sans text-textPrimary animate-fade-in"},nd={class:"glass sticky top-0 z-40 border-b border-gray-800/50"},od={class:"max-w-7xl mx-auto px-4 sm:px-6 py-4 flex items-center justify-between"},rd={class:"flex items-center gap-4"},id={class:"text-sm text-textSecondary font-mono"},ld={class:"max-w-7xl mx-auto px-4 sm:px-6 py-6"},ad={class:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3"},cd={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},ud={class:"text-2xl font-bold font-mono"},dd={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},fd={class:"text-2xl font-bold font-mono"},pd={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},hd={class:"text-2xl font-bold font-mono"},md={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},gd={class:"flex items-center gap-2 mb-2"},xd={class:"text-2xl font-bold font-mono"},vd={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},yd={class:"text-2xl font-bold font-mono"},bd={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},_d={class:"text-2xl font-bold font-mono"},wd={class:"max-w-7xl mx-auto px-4 sm:px-6"},Sd={class:"flex gap-6 border-b border-gray-800/50 mb-6"},Cd=["onClick"],Td={class:"max-w-7xl mx-auto px-4 sm:px-6 pb-12"},us="sensorium_token",$d=$t({__name:"App",setup(e){const t=M(!1),s=M(""),n=M(""),o=M(!1),r=M(null),i=M("sessions");let l=null;const c=[{id:"sessions",label:"Sessions"},{id:"notes",label:"Memory Notes"},{id:"templates",label:"Templates"},{id:"skills",label:"Skills"},{id:"threads",label:"Threads"},{id:"settings",label:"Settings"}],h={sessions:na,notes:_a,templates:nc,skills:Rc,threads:ju,settings:Zu},u=Ve(()=>h[i.value]),p=Ve(()=>{if(!r.value)return"—";const J=Math.floor(r.value.uptime),O=Math.floor(J/86400),H=Math.floor(J%86400/3600),G=Math.floor(J%3600/60);return O>0?`${O}d ${H}h`:H>0?`${H}h ${G}m`:`${G}m`});async function g(){const J=s.value.trim()||"no-auth";o.value=!0,n.value="";try{Bt(J),await N(),localStorage.setItem(us,J),t.value=!0,R()}catch(O){const H=O;H.status===401?n.value="Invalid token":n.value=H.message??"Connection failed",Bt("")}finally{o.value=!1}}function T(){localStorage.removeItem(us),t.value=!1,s.value="",r.value=null,l&&clearInterval(l),Bt("")}async function N(){r.value=await ve("/api/status")}function R(){l&&clearInterval(l),l=setInterval(N,3e4)}return vt(async()=>{const J=localStorage.getItem(us);if(J){s.value=J;try{Bt(J),await N(),t.value=!0,R()}catch{localStorage.removeItem(us),Bt("")}}}),vn(()=>{l&&clearInterval(l)}),(J,O)=>{var H,G,L,U,D,B,ce,Z,ue,ye,F;return t.value?(w(),S("div",sd,[a("header",nd,[a("div",od,[O[3]||(O[3]=He('<div class="flex items-center gap-3"><div class="w-8 h-8 rounded-lg bg-gradient-to-br from-accent to-purple-500 flex items-center justify-center"><span class="text-white text-sm font-bold">S</span></div><div><h1 class="text-lg font-semibold tracking-tight">Sensorium MCP</h1><p class="text-xs text-textSecondary">Agent Dashboard</p></div></div>',1)),a("div",rd,[O[2]||(O[2]=a("div",{class:"flex items-center gap-2 text-sm"},[a("span",{class:"w-2 h-2 rounded-full bg-success animate-pulse-slow"}),a("span",{class:"text-textSecondary"},"Connected")],-1)),a("div",id,_(p.value),1),a("button",{onClick:T,class:"text-sm text-muted hover:text-textSecondary transition"},"Disconnect")])])]),a("div",ld,[a("div",ad,[a("div",cd,[O[4]||(O[4]=He('<div class="flex items-center gap-2 mb-2"><span class="text-success"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Sessions</span></div>',1)),a("div",ud,_(((H=r.value)==null?void 0:H.activeSessions)??0),1)]),a("div",dd,[O[5]||(O[5]=He('<div class="flex items-center gap-2 mb-2"><span class="text-accentLight"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Notes</span></div>',1)),a("div",fd,_(((L=(G=r.value)==null?void 0:G.memory)==null?void 0:L.totalSemanticNotes)??0),1)]),a("div",pd,[O[6]||(O[6]=He('<div class="flex items-center gap-2 mb-2"><span class="text-warn"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Episodes</span></div>',1)),a("div",hd,_(((D=(U=r.value)==null?void 0:U.memory)==null?void 0:D.totalEpisodes)??0),1)]),a("div",md,[a("div",gd,[a("span",{class:ee((((ce=(B=r.value)==null?void 0:B.memory)==null?void 0:ce.unconsolidatedEpisodes)??0)>10?"text-danger":"text-success")},[...O[7]||(O[7]=[a("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)])],2),O[8]||(O[8]=a("span",{class:"text-xs text-textSecondary font-medium uppercase tracking-wider"},"Unconsolidated",-1))]),a("div",xd,_(((ue=(Z=r.value)==null?void 0:Z.memory)==null?void 0:ue.unconsolidatedEpisodes)??0),1)]),a("div",vd,[O[9]||(O[9]=He('<div class="flex items-center gap-2 mb-2"><span class="text-accent"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Procedures</span></div>',1)),a("div",yd,_(((F=(ye=r.value)==null?void 0:ye.memory)==null?void 0:F.totalProcedures)??0),1)]),a("div",bd,[O[10]||(O[10]=He('<div class="flex items-center gap-2 mb-2"><span class="text-success"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M12 5l7 7-7 7"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Uptime</span></div>',1)),a("div",_d,_(p.value),1)])])]),a("div",wd,[a("nav",Sd,[(w(),S(pe,null,Re(c,P=>a("button",{key:P.id,onClick:E=>i.value=P.id,class:ee(["pb-3 text-sm font-medium transition",i.value===P.id?"tab-active":"tab-inactive"])},_(P.label),11,Cd)),64))])]),a("div",Td,[(w(),cr($i(u.value),{status:r.value},null,8,["status"]))])])):(w(),S("div",Qu,[a("div",Xu,[O[1]||(O[1]=He('<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(a("input",{"onUpdate:modelValue":O[0]||(O[0]=P=>s.value=P),type:"password",placeholder:"MCP_HTTP_SECRET",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary placeholder-muted focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition font-mono text-sm",onKeydown:Ll(g,["enter"])},null,544),[[Ce,s.value]]),a("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.value?"Connecting...":"Connect"),9,ed),n.value?(w(),S("p",td,_(n.value),1)):Q("",!0)])]))}}});Hl($d).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">
|