sensorium-mcp 2.16.131 → 2.16.133
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 +7 -1
- package/dist/claude-keeper.d.ts.map +1 -1
- package/dist/claude-keeper.js +49 -11
- package/dist/claude-keeper.js.map +1 -1
- package/dist/config.d.ts +3 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +10 -0
- package/dist/config.js.map +1 -1
- package/dist/dashboard/routes/settings.d.ts.map +1 -1
- package/dist/dashboard/routes/settings.js +11 -1
- package/dist/dashboard/routes/settings.js.map +1 -1
- package/dist/dashboard/routes/templates.d.ts.map +1 -1
- package/dist/dashboard/routes/templates.js +15 -2
- package/dist/dashboard/routes/templates.js.map +1 -1
- package/dist/dashboard/spa.html +10 -10
- package/dist/data/memory/episodes.d.ts +1 -0
- package/dist/data/memory/episodes.d.ts.map +1 -1
- package/dist/data/memory/episodes.js +1 -1
- package/dist/data/memory/episodes.js.map +1 -1
- package/dist/data/memory/reflection.d.ts.map +1 -1
- package/dist/data/memory/reflection.js +1 -38
- package/dist/data/memory/reflection.js.map +1 -1
- package/dist/response-builders.d.ts +0 -1
- package/dist/response-builders.d.ts.map +1 -1
- package/dist/response-builders.js +26 -36
- package/dist/response-builders.js.map +1 -1
- package/dist/tools/defs/session-defs.d.ts.map +1 -1
- package/dist/tools/defs/session-defs.js +5 -0
- package/dist/tools/defs/session-defs.js.map +1 -1
- package/dist/tools/delegate-tool.d.ts.map +1 -1
- package/dist/tools/delegate-tool.js +4 -2
- 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 +9 -1
- package/dist/tools/start-session-tool.js.map +1 -1
- package/dist/tools/wait/message-processing.d.ts.map +1 -1
- package/dist/tools/wait/message-processing.js +15 -1
- package/dist/tools/wait/message-processing.js.map +1 -1
- package/dist/tools/wait/poll-loop.d.ts.map +1 -1
- package/dist/tools/wait/poll-loop.js +13 -0
- package/dist/tools/wait/poll-loop.js.map +1 -1
- package/dist/utils.d.ts +5 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +11 -0
- package/dist/utils.js.map +1 -1
- package/dist/watcher-service.d.ts.map +1 -1
- package/dist/watcher-service.js +8 -4
- package/dist/watcher-service.js.map +1 -1
- package/package.json +1 -1
- package/templates/delegate-and-wait.default.md +10 -5
- package/templates/fire-and-forget.default.md +5 -5
- package/templates/orchestrator-claude.default.md +49 -0
- package/templates/orchestrator-copilot.default.md +57 -0
- package/templates/orchestrator.default.md +5 -35
- package/templates/worker-autonomous.default.md +42 -0
- package/templates/worker-delegate.default.md +48 -0
- package/dist/tools/wait-tool.d.ts +0 -6
- package/dist/tools/wait-tool.d.ts.map +0 -1
- package/dist/tools/wait-tool.js +0 -6
- package/dist/tools/wait-tool.js.map +0 -1
package/dist/dashboard/spa.html
CHANGED
|
@@ -49,27 +49,27 @@
|
|
|
49
49
|
* @vue/shared v3.5.31
|
|
50
50
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
51
51
|
* @license MIT
|
|
52
|
-
**/function
|
|
52
|
+
**/function sn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const te={},kt=[],We=()=>{},co=()=>!1,ws=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ss=e=>e.startsWith("onUpdate:"),ge=Object.assign,nn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},gr=Object.prototype.hasOwnProperty,Y=(e,t)=>gr.call(e,t),U=Array.isArray,At=e=>ss(e)==="[object Map]",Rt=e=>ss(e)==="[object Set]",kn=e=>ss(e)==="[object Date]",K=e=>typeof e=="function",le=e=>typeof e=="string",qe=e=>typeof e=="symbol",X=e=>e!==null&&typeof e=="object",uo=e=>(X(e)||K(e))&&K(e.then)&&K(e.catch),fo=Object.prototype.toString,ss=e=>fo.call(e),xr=e=>ss(e).slice(8,-1),po=e=>ss(e)==="[object Object]",on=e=>le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Bt=sn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cs=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},vr=/-\w/g,we=Cs(e=>e.replace(vr,t=>t.slice(1).toUpperCase())),br=/\B([A-Z])/g,ht=Cs(e=>e.replace(br,"-$1").toLowerCase()),Ts=Cs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ds=Cs(e=>e?`on${Ts(e)}`:""),Ke=(e,t)=>!Object.is(e,t),us=(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})},$s=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let An;const ks=()=>An||(An=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function As(e){if(U(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],o=le(n)?Sr(n):As(n);if(o)for(const r in o)t[r]=o[r]}return t}else if(le(e)||X(e))return e}const yr=/;(?![^(]*\))/g,_r=/:([^]+)/,wr=/\/\*[^]*?\*\//g;function Sr(e){const t={};return e.replace(wr,"").split(yr).forEach(s=>{if(s){const n=s.split(_r);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function fe(e){let t="";if(le(e))t=e;else if(U(e))for(let s=0;s<e.length;s++){const n=fe(e[s]);n&&(t+=n+" ")}else if(X(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Cr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Tr=sn(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=Dt(e[n],t[n]);return s}function Dt(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=qe(e),n=qe(t),s||n)return e===t;if(s=U(e),n=U(t),s||n)return s&&n?$r(e,t):!1;if(s=X(e),n=X(t),s||n){if(!s||!n)return!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!Dt(e[i],t[i]))return!1}}return String(e)===String(t)}function rn(e,t){return e.findIndex(s=>Dt(s,t))}const go=e=>!!(e&&e.__v_isRef===!0),j=e=>le(e)?e:e==null?"":U(e)||X(e)&&(e.toString===fo||!K(e.toString))?go(e)?j(e.value):JSON.stringify(e,xo,2):String(e),xo=(e,t)=>go(t)?xo(e,t.value):At(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,o],r)=>(s[js(n,r)+" =>"]=o,s),{})}:Rt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>js(s))}:qe(t)?js(t):X(t)&&!U(t)&&!po(t)?String(t):t,js=(e,t="")=>{var s;return qe(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 Se;class kr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Se,!t&&Se&&(this.index=(Se.scopes||(Se.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Se;try{return Se=this,t()}finally{Se=s}}}on(){++this._on===1&&(this.prevScope=Se,Se=this)}off(){this._on>0&&--this._on===0&&(Se=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Er(){return Se}let te;const Is=new WeakSet;class go{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Se&&Se.active&&Se.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Is.has(this)&&(Is.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||vo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,kn(this),yo(this);const t=te,s=Pe;te=this,Pe=!0;try{return this.fn()}finally{bo(this),te=t,Pe=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)rn(t);this.deps=this.depsTail=void 0,kn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Is.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Vs(this)&&this.run()}get dirty(){return Vs(this)}}let xo=0,Ft,Ht;function vo(e,t=!1){if(e.flags|=8,t){e.next=Ht,Ht=e;return}e.next=Ft,Ft=e}function nn(){xo++}function on(){if(--xo>0)return;if(Ht){let t=Ht;for(Ht=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ft;){let t=Ft;for(Ft=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function yo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function bo(e){let t,s=e.depsTail,n=s;for(;n;){const o=n.prevDep;n.version===-1?(n===s&&(s=o),rn(n),Ar(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=s}function Vs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(_o(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function _o(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wt)||(e.globalVersion=Wt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Vs(e))))return;e.flags|=2;const t=e.dep,s=te,n=Pe;te=e,Pe=!0;try{yo(e);const o=e.fn(e._value);(t.version===0||Ue(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{te=s,Pe=n,bo(e),e.flags&=-3}}function rn(e,t=!1){const{dep:s,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)rn(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Ar(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Pe=!0;const wo=[];function et(){wo.push(Pe),Pe=!1}function tt(){const e=wo.pop();Pe=e===void 0?!0:e}function kn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=te;te=void 0;try{t()}finally{te=s}}}let Wt=0;class Mr{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ln{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!te||!Pe||te===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==te)s=this.activeLink=new Mr(te,this),te.deps?(s.prevDep=te.depsTail,te.depsTail.nextDep=s,te.depsTail=s):te.deps=te.depsTail=s,So(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=te.depsTail,s.nextDep=void 0,te.depsTail.nextDep=s,te.depsTail=s,te.deps===s&&(te.deps=n)}return s}trigger(t){this.version++,Wt++,this.notify(t)}notify(t){nn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{on()}}}function So(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)So(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Us=new WeakMap,gt=Symbol(""),Bs=Symbol(""),zt=Symbol("");function ge(e,t,s){if(Pe&&te){let n=Us.get(e);n||Us.set(e,n=new Map);let o=n.get(s);o||(n.set(s,o=new ln),o.map=n,o.key=s),o.track()}}function Ze(e,t,s,n,o,r){const i=Us.get(e);if(!i){Wt++;return}const l=c=>{c&&c.trigger()};if(nn(),t==="clear")i.forEach(l);else{const c=H(e),d=c&&tn(s);if(c&&s==="length"){const a=Number(n);i.forEach((p,g)=>{(g==="length"||g===zt||!We(g)&&g>=a)&&l(p)})}else switch((s!==void 0||i.has(void 0))&&l(i.get(s)),d&&l(i.get(zt)),t){case"add":c?d&&l(i.get("length")):(l(i.get(gt)),wt(e)&&l(i.get(Bs)));break;case"delete":c||(l(i.get(gt)),wt(e)&&l(i.get(Bs)));break;case"set":wt(e)&&l(i.get(gt));break}}on()}function yt(e){const t=J(e);return t===e?t:(ge(t,"iterate",zt),Me(e)?t:t.map(Oe))}function Cs(e){return ge(e=J(e),"iterate",zt),e}function He(e,t){return st(e)?Tt(xt(e)?Oe(t):t):Oe(t)}const Pr={__proto__:null,[Symbol.iterator](){return Rs(this,Symbol.iterator,e=>He(this,e))},concat(...e){return yt(this).concat(...e.map(t=>H(t)?yt(t):t))},entries(){return Rs(this,"entries",e=>(e[1]=He(this,e[1]),e))},every(e,t){return Je(this,"every",e,t,void 0,arguments)},filter(e,t){return Je(this,"filter",e,t,s=>s.map(n=>He(this,n)),arguments)},find(e,t){return Je(this,"find",e,t,s=>He(this,s),arguments)},findIndex(e,t){return Je(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Je(this,"findLast",e,t,s=>He(this,s),arguments)},findLastIndex(e,t){return Je(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Je(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ds(this,"includes",e)},indexOf(...e){return Ds(this,"indexOf",e)},join(e){return yt(this).join(e)},lastIndexOf(...e){return Ds(this,"lastIndexOf",e)},map(e,t){return Je(this,"map",e,t,void 0,arguments)},pop(){return Rt(this,"pop")},push(...e){return Rt(this,"push",e)},reduce(e,...t){return En(this,"reduce",e,t)},reduceRight(e,...t){return En(this,"reduceRight",e,t)},shift(){return Rt(this,"shift")},some(e,t){return Je(this,"some",e,t,void 0,arguments)},splice(...e){return Rt(this,"splice",e)},toReversed(){return yt(this).toReversed()},toSorted(e){return yt(this).toSorted(e)},toSpliced(...e){return yt(this).toSpliced(...e)},unshift(...e){return Rt(this,"unshift",e)},values(){return Rs(this,"values",e=>He(this,e))}};function Rs(e,t,s){const n=Cs(e),o=n[t]();return n!==e&&!Me(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=s(r.value)),r}),o}const Or=Array.prototype;function Je(e,t,s,n,o,r){const i=Cs(e),l=i!==e&&!Me(e),c=i[t];if(c!==Or[t]){const p=c.apply(e,r);return l?Oe(p):p}let d=s;i!==e&&(l?d=function(p,g){return s.call(this,He(e,p),g,e)}:s.length>2&&(d=function(p,g){return s.call(this,p,g,e)}));const a=c.call(i,d,n);return l&&o?o(a):a}function En(e,t,s,n){const o=Cs(e),r=o!==e&&!Me(e);let i=s,l=!1;o!==e&&(r?(l=n.length===0,i=function(d,a,p){return l&&(l=!1,d=He(e,d)),s.call(this,d,He(e,a),p,e)}):s.length>3&&(i=function(d,a,p){return s.call(this,d,a,p,e)}));const c=o[t](i,...n);return l?He(e,c):c}function Ds(e,t,s){const n=J(e);ge(n,"iterate",zt);const o=n[t](...s);return(o===-1||o===!1)&&fn(s[0])?(s[0]=J(s[0]),n[t](...s)):o}function Rt(e,t,s=[]){et(),nn();const n=J(e)[t].apply(e,s);return on(),tt(),n}const Ir=Xs("__proto__,__v_isRef,__isVue"),Co=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(We));function Rr(e){We(e)||(e=String(e));const t=J(this);return ge(t,"has",e),t.hasOwnProperty(e)}class To{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(o?r?Kr:Ao:r?Eo:ko).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=H(t);if(!o){let c;if(i&&(c=Pr[s]))return c;if(s==="hasOwnProperty")return Rr}const l=Reflect.get(t,s,ve(t)?t:n);if((We(s)?Co.has(s):Ir(s))||(o||ge(t,"get",s),r))return l;if(ve(l)){const c=i&&tn(s)?l:l.value;return o&&Z(c)?Ws(c):c}return Z(l)?o?Ws(l):cn(l):l}}class $o extends To{constructor(t=!1){super(!1,t)}set(t,s,n,o){let r=t[s];const i=H(t)&&tn(s);if(!this._isShallow){const d=st(r);if(!Me(n)&&!st(n)&&(r=J(r),n=J(n)),!i&&ve(r)&&!ve(n))return d||(r.value=n),!0}const l=i?Number(s)<t.length:G(t,s),c=Reflect.set(t,s,n,ve(t)?t:o);return t===J(o)&&(l?Ue(n,r)&&Ze(t,"set",s,n):Ze(t,"add",s,n)),c}deleteProperty(t,s){const n=G(t,s);t[s];const o=Reflect.deleteProperty(t,s);return o&&n&&Ze(t,"delete",s,void 0),o}has(t,s){const n=Reflect.has(t,s);return(!We(s)||!Co.has(s))&&ge(t,"has",s),n}ownKeys(t){return ge(t,"iterate",H(t)?"length":gt),Reflect.ownKeys(t)}}class Dr extends To{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Lr=new $o,jr=new Dr,Nr=new $o(!0);const Ks=e=>e,ns=e=>Reflect.getPrototypeOf(e);function Fr(e,t,s){return function(...n){const o=this.__v_raw,r=J(o),i=wt(r),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,d=o[e](...n),a=s?Ks:t?Tt:Oe;return!t&&ge(r,"iterate",c?Bs:gt),me(Object.create(d),{next(){const{value:p,done:g}=d.next();return g?{value:p,done:g}:{value:l?[a(p[0]),a(p[1])]:a(p),done:g}}})}}function os(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Hr(e,t){const s={get(o){const r=this.__v_raw,i=J(r),l=J(o);e||(Ue(o,l)&&ge(i,"get",o),ge(i,"get",l));const{has:c}=ns(i),d=t?Ks:e?Tt:Oe;if(c.call(i,o))return d(r.get(o));if(c.call(i,l))return d(r.get(l));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&ge(J(o),"iterate",gt),o.size},has(o){const r=this.__v_raw,i=J(r),l=J(o);return e||(Ue(o,l)&&ge(i,"has",o),ge(i,"has",l)),o===l?r.has(o):r.has(o)||r.has(l)},forEach(o,r){const i=this,l=i.__v_raw,c=J(l),d=t?Ks:e?Tt:Oe;return!e&&ge(c,"iterate",gt),l.forEach((a,p)=>o.call(r,d(a),d(p),i))}};return me(s,e?{add:os("add"),set:os("set"),delete:os("delete"),clear:os("clear")}:{add(o){const r=J(this),i=ns(r),l=J(o),c=!t&&!Me(o)&&!st(o)?l:o;return i.has.call(r,c)||Ue(o,c)&&i.has.call(r,o)||Ue(l,c)&&i.has.call(r,l)||(r.add(c),Ze(r,"add",c,c)),this},set(o,r){!t&&!Me(r)&&!st(r)&&(r=J(r));const i=J(this),{has:l,get:c}=ns(i);let d=l.call(i,o);d||(o=J(o),d=l.call(i,o));const a=c.call(i,o);return i.set(o,r),d?Ue(r,a)&&Ze(i,"set",o,r):Ze(i,"add",o,r),this},delete(o){const r=J(this),{has:i,get:l}=ns(r);let c=i.call(r,o);c||(o=J(o),c=i.call(r,o)),l&&l.call(r,o);const d=r.delete(o);return c&&Ze(r,"delete",o,void 0),d},clear(){const o=J(this),r=o.size!==0,i=o.clear();return r&&Ze(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Fr(o,e,t)}),s}function an(e,t){const s=Hr(e,t);return(n,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(G(s,o)&&o in n?s:n,o,r)}const Vr={get:an(!1,!1)},Ur={get:an(!1,!0)},Br={get:an(!0,!1)};const ko=new WeakMap,Eo=new WeakMap,Ao=new WeakMap,Kr=new WeakMap;function Wr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zr(e){return e.__v_skip||!Object.isExtensible(e)?0:Wr(xr(e))}function cn(e){return st(e)?e:un(e,!1,Lr,Vr,ko)}function qr(e){return un(e,!1,Nr,Ur,Eo)}function Ws(e){return un(e,!0,jr,Br,Ao)}function un(e,t,s,n,o){if(!Z(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=zr(e);if(r===0)return e;const i=o.get(e);if(i)return i;const l=new Proxy(e,r===2?n:s);return o.set(e,l),l}function xt(e){return st(e)?xt(e.__v_raw):!!(e&&e.__v_isReactive)}function st(e){return!!(e&&e.__v_isReadonly)}function Me(e){return!!(e&&e.__v_isShallow)}function fn(e){return e?!!e.__v_raw:!1}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function Jr(e){return!G(e,"__v_skip")&&Object.isExtensible(e)&&fo(e,"__v_skip",!0),e}const Oe=e=>Z(e)?cn(e):e,Tt=e=>Z(e)?Ws(e):e;function ve(e){return e?e.__v_isRef===!0:!1}function L(e){return Gr(e,!1)}function Gr(e,t){return ve(e)?e:new Yr(e,t)}class Yr{constructor(t,s){this.dep=new ln,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:J(t),this._value=s?t:Oe(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Me(t)||st(t);t=n?t:J(t),Ue(t,s)&&(this._rawValue=t,this._value=n?t:Oe(t),this.dep.trigger())}}function Zr(e){return ve(e)?e.value:e}const Qr={get:(e,t,s)=>t==="__v_raw"?e:Zr(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const o=e[t];return ve(o)&&!ve(s)?(o.value=s,!0):Reflect.set(e,t,s,n)}};function Mo(e){return xt(e)?e:new Proxy(e,Qr)}class Xr{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new ln(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&te!==this)return vo(this,!0),!0}get value(){const t=this.dep.track();return _o(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ei(e,t,s=!1){let n,o;return K(e)?n=e:(n=e.get,o=e.set),new Xr(n,o,s)}const rs={},ds=new WeakMap;let ht;function ti(e,t=!1,s=ht){if(s){let n=ds.get(s);n||ds.set(s,n=[]),n.push(e)}}function si(e,t,s=X){const{immediate:n,deep:o,once:r,scheduler:i,augmentJob:l,call:c}=s,d=D=>o?D:Me(D)||o===!1||o===0?Qe(D,1):Qe(D);let a,p,g,C,U=!1,I=!1;if(ve(e)?(p=()=>e.value,U=Me(e)):xt(e)?(p=()=>d(e),U=!0):H(e)?(I=!0,U=e.some(D=>xt(D)||Me(D)),p=()=>e.map(D=>{if(ve(D))return D.value;if(xt(D))return d(D);if(K(D))return c?c(D,2):D()})):K(e)?t?p=c?()=>c(e,2):e:p=()=>{if(g){et();try{g()}finally{tt()}}const D=ht;ht=a;try{return c?c(e,3,[C]):e(C)}finally{ht=D}}:p=Be,t&&o){const D=p,j=o===!0?1/0:o;p=()=>Qe(D(),j)}const W=Er(),P=()=>{a.stop(),W&&W.active&&en(W.effects,a)};if(r&&t){const D=t;t=(...j)=>{D(...j),P()}}let V=I?new Array(e.length).fill(rs):rs;const z=D=>{if(!(!(a.flags&1)||!a.dirty&&!D))if(t){const j=a.run();if(o||U||(I?j.some((M,N)=>Ue(M,V[N])):Ue(j,V))){g&&g();const M=ht;ht=a;try{const N=[j,V===rs?void 0:I&&V[0]===rs?[]:V,C];V=j,c?c(t,3,N):t(...N)}finally{ht=M}}}else a.run()};return l&&l(z),a=new go(p),a.scheduler=i?()=>i(z,!1):z,C=D=>ti(D,!1,a),g=a.onStop=()=>{const D=ds.get(a);if(D){if(c)c(D,4);else for(const j of D)j();ds.delete(a)}},t?n?z(!0):V=a.run():i?i(z.bind(null,!0),!0):a.run(),P.pause=a.pause.bind(a),P.resume=a.resume.bind(a),P.stop=P,P}function Qe(e,t=1/0,s){if(t<=0||!Z(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ve(e))Qe(e.value,t,s);else if(H(e))for(let n=0;n<e.length;n++)Qe(e[n],t,s);else if(At(e)||wt(e))e.forEach(n=>{Qe(n,t,s)});else if(uo(e)){for(const n in e)Qe(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Qe(e[n],t,s)}return e}/**
|
|
56
|
+
**/let Ce;class kr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Ce,!t&&Ce&&(this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Ce;try{return Ce=this,t()}finally{Ce=s}}}on(){++this._on===1&&(this.prevScope=Ce,Ce=this)}off(){this._on>0&&--this._on===0&&(Ce=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Ar(){return Ce}let ne;const Ls=new WeakSet;class vo{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ce&&Ce.active&&Ce.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ls.has(this)&&(Ls.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||yo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,En(this),_o(this);const t=ne,s=Re;ne=this,Re=!0;try{return this.fn()}finally{wo(this),ne=t,Re=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)cn(t);this.deps=this.depsTail=void 0,En(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ls.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ws(this)&&this.run()}get dirty(){return Ws(this)}}let bo=0,Kt,Wt;function yo(e,t=!1){if(e.flags|=8,t){e.next=Wt,Wt=e;return}e.next=Kt,Kt=e}function ln(){bo++}function an(){if(--bo>0)return;if(Wt){let t=Wt;for(Wt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Kt;){let t=Kt;for(Kt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function _o(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function wo(e){let t,s=e.depsTail,n=s;for(;n;){const o=n.prevDep;n.version===-1?(n===s&&(s=o),cn(n),Er(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=s}function Ws(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(So(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function So(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Yt)||(e.globalVersion=Yt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ws(e))))return;e.flags|=2;const t=e.dep,s=ne,n=Re;ne=e,Re=!0;try{_o(e);const o=e.fn(e._value);(t.version===0||Ke(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ne=s,Re=n,wo(e),e.flags&=-3}}function cn(e,t=!1){const{dep:s,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)cn(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Er(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Re=!0;const Co=[];function it(){Co.push(Re),Re=!1}function lt(){const e=Co.pop();Re=e===void 0?!0:e}function En(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=ne;ne=void 0;try{t()}finally{ne=s}}}let Yt=0;class Pr{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class un{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ne||!Re||ne===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ne)s=this.activeLink=new Pr(ne,this),ne.deps?(s.prevDep=ne.depsTail,ne.depsTail.nextDep=s,ne.depsTail=s):ne.deps=ne.depsTail=s,To(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=ne.depsTail,s.nextDep=void 0,ne.depsTail.nextDep=s,ne.depsTail=s,ne.deps===s&&(ne.deps=n)}return s}trigger(t){this.version++,Yt++,this.notify(t)}notify(t){ln();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{an()}}}function To(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)To(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const zs=new WeakMap,bt=Symbol(""),qs=Symbol(""),Zt=Symbol("");function xe(e,t,s){if(Re&&ne){let n=zs.get(e);n||zs.set(e,n=new Map);let o=n.get(s);o||(n.set(s,o=new un),o.map=n,o.key=s),o.track()}}function nt(e,t,s,n,o,r){const i=zs.get(e);if(!i){Yt++;return}const l=a=>{a&&a.trigger()};if(ln(),t==="clear")i.forEach(l);else{const a=U(e),m=a&&on(s);if(a&&s==="length"){const f=Number(n);i.forEach((p,h)=>{(h==="length"||h===Zt||!qe(h)&&h>=f)&&l(p)})}else switch((s!==void 0||i.has(void 0))&&l(i.get(s)),m&&l(i.get(Zt)),t){case"add":a?m&&l(i.get("length")):(l(i.get(bt)),At(e)&&l(i.get(qs)));break;case"delete":a||(l(i.get(bt)),At(e)&&l(i.get(qs)));break;case"set":At(e)&&l(i.get(bt));break}}an()}function Tt(e){const t=G(e);return t===e?t:(xe(t,"iterate",Zt),Ie(e)?t:t.map(De))}function Es(e){return xe(e=G(e),"iterate",Zt),e}function Ue(e,t){return at(e)?Mt(yt(e)?De(t):t):De(t)}const Mr={__proto__:null,[Symbol.iterator](){return Ns(this,Symbol.iterator,e=>Ue(this,e))},concat(...e){return Tt(this).concat(...e.map(t=>U(t)?Tt(t):t))},entries(){return Ns(this,"entries",e=>(e[1]=Ue(this,e[1]),e))},every(e,t){return Xe(this,"every",e,t,void 0,arguments)},filter(e,t){return Xe(this,"filter",e,t,s=>s.map(n=>Ue(this,n)),arguments)},find(e,t){return Xe(this,"find",e,t,s=>Ue(this,s),arguments)},findIndex(e,t){return Xe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xe(this,"findLast",e,t,s=>Ue(this,s),arguments)},findLastIndex(e,t){return Xe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Fs(this,"includes",e)},indexOf(...e){return Fs(this,"indexOf",e)},join(e){return Tt(this).join(e)},lastIndexOf(...e){return Fs(this,"lastIndexOf",e)},map(e,t){return Xe(this,"map",e,t,void 0,arguments)},pop(){return Ft(this,"pop")},push(...e){return Ft(this,"push",e)},reduce(e,...t){return Pn(this,"reduce",e,t)},reduceRight(e,...t){return Pn(this,"reduceRight",e,t)},shift(){return Ft(this,"shift")},some(e,t){return Xe(this,"some",e,t,void 0,arguments)},splice(...e){return Ft(this,"splice",e)},toReversed(){return Tt(this).toReversed()},toSorted(e){return Tt(this).toSorted(e)},toSpliced(...e){return Tt(this).toSpliced(...e)},unshift(...e){return Ft(this,"unshift",e)},values(){return Ns(this,"values",e=>Ue(this,e))}};function Ns(e,t,s){const n=Es(e),o=n[t]();return n!==e&&!Ie(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=s(r.value)),r}),o}const Or=Array.prototype;function Xe(e,t,s,n,o,r){const i=Es(e),l=i!==e&&!Ie(e),a=i[t];if(a!==Or[t]){const p=a.apply(e,r);return l?De(p):p}let m=s;i!==e&&(l?m=function(p,h){return s.call(this,Ue(e,p),h,e)}:s.length>2&&(m=function(p,h){return s.call(this,p,h,e)}));const f=a.call(i,m,n);return l&&o?o(f):f}function Pn(e,t,s,n){const o=Es(e),r=o!==e&&!Ie(e);let i=s,l=!1;o!==e&&(r?(l=n.length===0,i=function(m,f,p){return l&&(l=!1,m=Ue(e,m)),s.call(this,m,Ue(e,f),p,e)}):s.length>3&&(i=function(m,f,p){return s.call(this,m,f,p,e)}));const a=o[t](i,...n);return l?Ue(e,a):a}function Fs(e,t,s){const n=G(e);xe(n,"iterate",Zt);const o=n[t](...s);return(o===-1||o===!1)&&hn(s[0])?(s[0]=G(s[0]),n[t](...s)):o}function Ft(e,t,s=[]){it(),ln();const n=G(e)[t].apply(e,s);return an(),lt(),n}const Ir=sn("__proto__,__v_isRef,__isVue"),$o=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(qe));function Rr(e){qe(e)||(e=String(e));const t=G(this);return xe(t,"has",e),t.hasOwnProperty(e)}class ko{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(o?r?Kr:Mo:r?Po:Eo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=U(t);if(!o){let a;if(i&&(a=Mr[s]))return a;if(s==="hasOwnProperty")return Rr}const l=Reflect.get(t,s,be(t)?t:n);if((qe(s)?$o.has(s):Ir(s))||(o||xe(t,"get",s),r))return l;if(be(l)){const a=i&&on(s)?l:l.value;return o&&X(a)?Gs(a):a}return X(l)?o?Gs(l):dn(l):l}}class Ao extends ko{constructor(t=!1){super(!1,t)}set(t,s,n,o){let r=t[s];const i=U(t)&&on(s);if(!this._isShallow){const m=at(r);if(!Ie(n)&&!at(n)&&(r=G(r),n=G(n)),!i&&be(r)&&!be(n))return m||(r.value=n),!0}const l=i?Number(s)<t.length:Y(t,s),a=Reflect.set(t,s,n,be(t)?t:o);return t===G(o)&&(l?Ke(n,r)&&nt(t,"set",s,n):nt(t,"add",s,n)),a}deleteProperty(t,s){const n=Y(t,s);t[s];const o=Reflect.deleteProperty(t,s);return o&&n&&nt(t,"delete",s,void 0),o}has(t,s){const n=Reflect.has(t,s);return(!qe(s)||!$o.has(s))&&xe(t,"has",s),n}ownKeys(t){return xe(t,"iterate",U(t)?"length":bt),Reflect.ownKeys(t)}}class Dr extends ko{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const jr=new Ao,Lr=new Dr,Nr=new Ao(!0);const Js=e=>e,is=e=>Reflect.getPrototypeOf(e);function Fr(e,t,s){return function(...n){const o=this.__v_raw,r=G(o),i=At(r),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,m=o[e](...n),f=s?Js:t?Mt:De;return!t&&xe(r,"iterate",a?qs:bt),ge(Object.create(m),{next(){const{value:p,done:h}=m.next();return h?{value:p,done:h}:{value:l?[f(p[0]),f(p[1])]:f(p),done:h}}})}}function ls(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Hr(e,t){const s={get(o){const r=this.__v_raw,i=G(r),l=G(o);e||(Ke(o,l)&&xe(i,"get",o),xe(i,"get",l));const{has:a}=is(i),m=t?Js:e?Mt:De;if(a.call(i,o))return m(r.get(o));if(a.call(i,l))return m(r.get(l));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&xe(G(o),"iterate",bt),o.size},has(o){const r=this.__v_raw,i=G(r),l=G(o);return e||(Ke(o,l)&&xe(i,"has",o),xe(i,"has",l)),o===l?r.has(o):r.has(o)||r.has(l)},forEach(o,r){const i=this,l=i.__v_raw,a=G(l),m=t?Js:e?Mt:De;return!e&&xe(a,"iterate",bt),l.forEach((f,p)=>o.call(r,m(f),m(p),i))}};return ge(s,e?{add:ls("add"),set:ls("set"),delete:ls("delete"),clear:ls("clear")}:{add(o){const r=G(this),i=is(r),l=G(o),a=!t&&!Ie(o)&&!at(o)?l:o;return i.has.call(r,a)||Ke(o,a)&&i.has.call(r,o)||Ke(l,a)&&i.has.call(r,l)||(r.add(a),nt(r,"add",a,a)),this},set(o,r){!t&&!Ie(r)&&!at(r)&&(r=G(r));const i=G(this),{has:l,get:a}=is(i);let m=l.call(i,o);m||(o=G(o),m=l.call(i,o));const f=a.call(i,o);return i.set(o,r),m?Ke(r,f)&&nt(i,"set",o,r):nt(i,"add",o,r),this},delete(o){const r=G(this),{has:i,get:l}=is(r);let a=i.call(r,o);a||(o=G(o),a=i.call(r,o)),l&&l.call(r,o);const m=r.delete(o);return a&&nt(r,"delete",o,void 0),m},clear(){const o=G(this),r=o.size!==0,i=o.clear();return r&&nt(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Fr(o,e,t)}),s}function fn(e,t){const s=Hr(e,t);return(n,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(Y(s,o)&&o in n?s:n,o,r)}const Vr={get:fn(!1,!1)},Ur={get:fn(!1,!0)},Br={get:fn(!0,!1)};const Eo=new WeakMap,Po=new WeakMap,Mo=new WeakMap,Kr=new WeakMap;function Wr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zr(e){return e.__v_skip||!Object.isExtensible(e)?0:Wr(xr(e))}function dn(e){return at(e)?e:pn(e,!1,jr,Vr,Eo)}function qr(e){return pn(e,!1,Nr,Ur,Po)}function Gs(e){return pn(e,!0,Lr,Br,Mo)}function pn(e,t,s,n,o){if(!X(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=zr(e);if(r===0)return e;const i=o.get(e);if(i)return i;const l=new Proxy(e,r===2?n:s);return o.set(e,l),l}function yt(e){return at(e)?yt(e.__v_raw):!!(e&&e.__v_isReactive)}function at(e){return!!(e&&e.__v_isReadonly)}function Ie(e){return!!(e&&e.__v_isShallow)}function hn(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Jr(e){return!Y(e,"__v_skip")&&Object.isExtensible(e)&&ho(e,"__v_skip",!0),e}const De=e=>X(e)?dn(e):e,Mt=e=>X(e)?Gs(e):e;function be(e){return e?e.__v_isRef===!0:!1}function H(e){return Gr(e,!1)}function Gr(e,t){return be(e)?e:new Yr(e,t)}class Yr{constructor(t,s){this.dep=new un,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:G(t),this._value=s?t:De(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Ie(t)||at(t);t=n?t:G(t),Ke(t,s)&&(this._rawValue=t,this._value=n?t:De(t),this.dep.trigger())}}function Zr(e){return be(e)?e.value:e}const Qr={get:(e,t,s)=>t==="__v_raw"?e:Zr(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const o=e[t];return be(o)&&!be(s)?(o.value=s,!0):Reflect.set(e,t,s,n)}};function Oo(e){return yt(e)?e:new Proxy(e,Qr)}class Xr{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new un(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Yt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ne!==this)return yo(this,!0),!0}get value(){const t=this.dep.track();return So(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ei(e,t,s=!1){let n,o;return K(e)?n=e:(n=e.get,o=e.set),new Xr(n,o,s)}const as={},ms=new WeakMap;let vt;function ti(e,t=!1,s=vt){if(s){let n=ms.get(s);n||ms.set(s,n=[]),n.push(e)}}function si(e,t,s=te){const{immediate:n,deep:o,once:r,scheduler:i,augmentJob:l,call:a}=s,m=R=>o?R:Ie(R)||o===!1||o===0?ot(R,1):ot(R);let f,p,h,S,P=!1,M=!1;if(be(e)?(p=()=>e.value,P=Ie(e)):yt(e)?(p=()=>m(e),P=!0):U(e)?(M=!0,P=e.some(R=>yt(R)||Ie(R)),p=()=>e.map(R=>{if(be(R))return R.value;if(yt(R))return m(R);if(K(R))return a?a(R,2):R()})):K(e)?t?p=a?()=>a(e,2):e:p=()=>{if(h){it();try{h()}finally{lt()}}const R=vt;vt=f;try{return a?a(e,3,[S]):e(S)}finally{vt=R}}:p=We,t&&o){const R=p,N=o===!0?1/0:o;p=()=>ot(R(),N)}const W=Ar(),k=()=>{f.stop(),W&&W.active&&nn(W.effects,f)};if(r&&t){const R=t;t=(...N)=>{R(...N),k()}}let L=M?new Array(e.length).fill(as):as;const z=R=>{if(!(!(f.flags&1)||!f.dirty&&!R))if(t){const N=f.run();if(o||P||(M?N.some((O,V)=>Ke(O,L[V])):Ke(N,L))){h&&h();const O=vt;vt=f;try{const V=[N,L===as?void 0:M&&L[0]===as?[]:L,S];L=N,a?a(t,3,V):t(...V)}finally{vt=O}}}else f.run()};return l&&l(z),f=new vo(p),f.scheduler=i?()=>i(z,!1):z,S=R=>ti(R,!1,f),h=f.onStop=()=>{const R=ms.get(f);if(R){if(a)a(R,4);else for(const N of R)N();ms.delete(f)}},t?n?z(!0):L=f.run():i?i(z.bind(null,!0),!0):f.run(),k.pause=f.pause.bind(f),k.resume=f.resume.bind(f),k.stop=k,k}function ot(e,t=1/0,s){if(t<=0||!X(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,be(e))ot(e.value,t,s);else if(U(e))for(let n=0;n<e.length;n++)ot(e[n],t,s);else if(Rt(e)||At(e))e.forEach(n=>{ot(n,t,s)});else if(po(e)){for(const n in e)ot(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&ot(e[n],t,s)}return e}/**
|
|
57
57
|
* @vue/runtime-core v3.5.31
|
|
58
58
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
59
59
|
* @license MIT
|
|
60
|
-
**/function Xt(e,t,s,n){try{return n?e(...n):e()}catch(o){Ts(o,t,s)}}function ze(e,t,s,n){if(K(e)){const o=Xt(e,t,s,n);return o&&ao(o)&&o.catch(r=>{Ts(r,t,s)}),o}if(H(e)){const o=[];for(let r=0;r<e.length;r++)o.push(ze(e[r],t,s,n));return o}}function Ts(e,t,s,n=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||X;if(t){let l=t.parent;const c=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const a=l.ec;if(a){for(let p=0;p<a.length;p++)if(a[p](e,c,d)===!1)return}l=l.parent}if(r){et(),Xt(r,null,10,[e,c,d]),tt();return}}ni(e,s,o,n,i)}function ni(e,t,s,n=!0,o=!1){if(o)throw e;console.error(e)}const be=[];let Ne=-1;const St=[];let it=null,bt=0;const Po=Promise.resolve();let ps=null;function Oo(e){const t=ps||Po;return e?t.then(this?e.bind(this):e):t}function oi(e){let t=Ne+1,s=be.length;for(;t<s;){const n=t+s>>>1,o=be[n],r=qt(o);r<e||r===e&&o.flags&2?t=n+1:s=n}return t}function dn(e){if(!(e.flags&1)){const t=qt(e),s=be[be.length-1];!s||!(e.flags&2)&&t>=qt(s)?be.push(e):be.splice(oi(t),0,e),e.flags|=1,Io()}}function Io(){ps||(ps=Po.then(Do))}function ri(e){H(e)?St.push(...e):it&&e.id===-1?it.splice(bt+1,0,e):e.flags&1||(St.push(e),e.flags|=1),Io()}function An(e,t,s=Ne+1){for(;s<be.length;s++){const n=be[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;be.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Ro(e){if(St.length){const t=[...new Set(St)].sort((s,n)=>qt(s)-qt(n));if(St.length=0,it){it.push(...t);return}for(it=t,bt=0;bt<it.length;bt++){const s=it[bt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}it=null,bt=0}}const qt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Do(e){try{for(Ne=0;Ne<be.length;Ne++){const t=be[Ne];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ne<be.length;Ne++){const t=be[Ne];t&&(t.flags&=-2)}Ne=-1,be.length=0,Ro(),ps=null,(be.length||St.length)&&Do()}}let ke=null,Lo=null;function hs(e){const t=ke;return ke=e,Lo=e&&e.type.__scopeId||null,t}function ii(e,t=ke,s){if(!t||e._n)return e;const n=(...o)=>{n._d&&Vn(-1);const r=hs(t);let i;try{i=e(...o)}finally{hs(r),n._d&&Vn(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function fe(e,t){if(ke===null)return e;const s=As(ke),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,l,c=X]=t[o];r&&(K(r)&&(r={mounted:r,updated:r}),r.deep&&Qe(i),n.push({dir:r,instance:s,value:i,oldValue:void 0,arg:l,modifiers:c}))}return e}function dt(e,t,s,n){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const l=o[i];r&&(l.oldValue=r[i].value);let c=l.dir[n];c&&(et(),ze(c,s,8,[e.el,l,e,t]),tt())}}function li(e,t){if(xe){let s=xe.provides;const n=xe.parent&&xe.parent.provides;n===s&&(s=xe.provides=Object.create(n)),s[e]=t}}function as(e,t,s=!1){const n=ll();if(n||Ct){let o=Ct?Ct._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return s&&K(t)?t.call(n&&n.proxy):t}}const ai=Symbol.for("v-scx"),ci=()=>as(ai);function Ls(e,t,s){return jo(e,t,s)}function jo(e,t,s=X){const{immediate:n,deep:o,flush:r,once:i}=s,l=me({},s),c=t&&n||!t&&r!=="post";let d;if(Gt){if(r==="sync"){const C=ci();d=C.__watcherHandles||(C.__watcherHandles=[])}else if(!c){const C=()=>{};return C.stop=Be,C.resume=Be,C.pause=Be,C}}const a=xe;l.call=(C,U,I)=>ze(C,a,U,I);let p=!1;r==="post"?l.scheduler=C=>{we(C,a&&a.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(C,U)=>{U?C():dn(C)}),l.augmentJob=C=>{t&&(C.flags|=4),p&&(C.flags|=2,a&&(C.id=a.uid,C.i=a))};const g=si(e,t,l);return Gt&&(d?d.push(g):c&&g()),g}function ui(e,t,s){const n=this.proxy,o=re(e)?e.includes(".")?No(n,e):()=>n[e]:e.bind(n,n);let r;K(t)?r=t:(r=t.handler,s=t);const i=es(this),l=jo(o,r.bind(n),s);return i(),l}function No(e,t){const s=t.split(".");return()=>{let n=e;for(let o=0;o<s.length&&n;o++)n=n[s[o]];return n}}const fi=Symbol("_vte"),di=e=>e.__isTeleport,pi=Symbol("_leaveCb");function pn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,pn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ut(e,t){return K(e)?me({name:e.name},t,{setup:e}):e}function Fo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Mn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ms=new WeakMap;function Vt(e,t,s,n,o=!1){if(H(e)){e.forEach((I,W)=>Vt(I,t&&(H(t)?t[W]:t),s,n,o));return}if(Ut(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Vt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?As(n.component):n.el,i=o?null:r,{i:l,r:c}=e,d=t&&t.r,a=l.refs===X?l.refs={}:l.refs,p=l.setupState,g=J(p),C=p===X?lo:I=>Mn(a,I)?!1:G(g,I),U=(I,W)=>!(W&&Mn(a,W));if(d!=null&&d!==c){if(Pn(t),re(d))a[d]=null,C(d)&&(p[d]=null);else if(ve(d)){const I=t;U(d,I.k)&&(d.value=null),I.k&&(a[I.k]=null)}}if(K(c))Xt(c,l,12,[i,a]);else{const I=re(c),W=ve(c);if(I||W){const P=()=>{if(e.f){const V=I?C(c)?p[c]:a[c]:U()||!e.k?c.value:a[e.k];if(o)H(V)&&en(V,r);else if(H(V))V.includes(r)||V.push(r);else if(I)a[c]=[r],C(c)&&(p[c]=a[c]);else{const z=[r];U(c,e.k)&&(c.value=z),e.k&&(a[e.k]=z)}}else I?(a[c]=i,C(c)&&(p[c]=i)):W&&(U(c,e.k)&&(c.value=i),e.k&&(a[e.k]=i))};if(i){const V=()=>{P(),ms.delete(e)};V.id=-1,ms.set(e,V),we(V,s)}else Pn(e),P()}}}function Pn(e){const t=ms.get(e);t&&(t.flags|=8,ms.delete(e))}Ss().requestIdleCallback;Ss().cancelIdleCallback;const Ut=e=>!!e.type.__asyncLoader,Ho=e=>e.type.__isKeepAlive;function hi(e,t){Vo(e,"a",t)}function mi(e,t){Vo(e,"da",t)}function Vo(e,t,s=xe){const n=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if($s(t,n,s),s){let o=s.parent;for(;o&&o.parent;)Ho(o.parent.vnode)&&gi(n,t,s,o),o=o.parent}}function gi(e,t,s,n){const o=$s(t,e,n,!0);hn(()=>{en(n[t],o)},s)}function $s(e,t,s=xe,n=!1){if(s){const o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{et();const l=es(s),c=ze(t,s,e,i);return l(),tt(),c});return n?o.unshift(r):o.push(r),r}}const ot=e=>(t,s=xe)=>{(!Gt||e==="sp")&&$s(e,(...n)=>t(...n),s)},xi=ot("bm"),ft=ot("m"),vi=ot("bu"),yi=ot("u"),bi=ot("bum"),hn=ot("um"),_i=ot("sp"),wi=ot("rtg"),Si=ot("rtc");function Ci(e,t=xe){$s("ec",e,t)}const Ti="components",Uo=Symbol.for("v-ndc");function $i(e){return re(e)?ki(Ti,e,!1)||e:e||Uo}function ki(e,t,s=!0,n=!1){const o=ke||xe;if(o){const r=o.type;{const l=dl(r,!1);if(l&&(l===t||l===_e(t)||l===_s(_e(t))))return r}const i=On(o[e]||r[e],t)||On(o.appContext[e],t);return!i&&n?r:i}}function On(e,t){return e&&(e[t]||e[_e(t)]||e[_s(_e(t))])}function nt(e,t,s,n){let o;const r=s,i=H(e);if(i||re(e)){const l=i&&xt(e);let c=!1,d=!1;l&&(c=!Me(e),d=st(e),e=Cs(e)),o=new Array(e.length);for(let a=0,p=e.length;a<p;a++)o[a]=t(c?d?Tt(Oe(e[a])):Oe(e[a]):e[a],a,void 0,r)}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,r)}else if(Z(e))if(e[Symbol.iterator])o=Array.from(e,(l,c)=>t(l,c,void 0,r));else{const l=Object.keys(e);o=new Array(l.length);for(let c=0,d=l.length;c<d;c++){const a=l[c];o[c]=t(e[a],a,c,r)}}else o=[];return o}const zs=e=>e?ur(e)?As(e):zs(e.parent):null,Bt=me(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>zs(e.parent),$root:e=>zs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ko(e),$forceUpdate:e=>e.f||(e.f=()=>{dn(e.update)}),$nextTick:e=>e.n||(e.n=Oo.bind(e.proxy)),$watch:e=>ui.bind(e)}),js=(e,t)=>e!==X&&!e.__isScriptSetup&&G(e,t),Ei={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:o,props:r,accessCache:i,type:l,appContext:c}=e;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return n[t];case 2:return o[t];case 4:return s[t];case 3:return r[t]}else{if(js(n,t))return i[t]=1,n[t];if(o!==X&&G(o,t))return i[t]=2,o[t];if(G(r,t))return i[t]=3,r[t];if(s!==X&&G(s,t))return i[t]=4,s[t];qs&&(i[t]=0)}}const d=Bt[t];let a,p;if(d)return t==="$attrs"&&ge(e.attrs,"get",""),d(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(s!==X&&G(s,t))return i[t]=4,s[t];if(p=c.config.globalProperties,G(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:o,ctx:r}=e;return js(o,t)?(o[t]=s,!0):n!==X&&G(n,t)?(n[t]=s,!0):G(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:o,props:r,type:i}},l){let c;return!!(s[l]||e!==X&&l[0]!=="$"&&G(e,l)||js(t,l)||G(r,l)||G(n,l)||G(Bt,l)||G(o.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:G(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function In(e){return H(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let qs=!0;function Ai(e){const t=Ko(e),s=e.proxy,n=e.ctx;qs=!1,t.beforeCreate&&Rn(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:c,inject:d,created:a,beforeMount:p,mounted:g,beforeUpdate:C,updated:U,activated:I,deactivated:W,beforeDestroy:P,beforeUnmount:V,destroyed:z,unmounted:D,render:j,renderTracked:M,renderTriggered:N,errorCaptured:ne,serverPrefetch:Y,expose:ce,inheritAttrs:Ae,components:qe,directives:Te,filters:vt}=t;if(d&&Mi(d,n,null),i)for(const se in i){const k=i[se];K(k)&&(n[se]=k.bind(s))}if(o){const se=o.call(s,s);Z(se)&&(e.data=cn(se))}if(qs=!0,r)for(const se in r){const k=r[se],S=K(k)?k.bind(s,s):K(k.get)?k.get.bind(s,s):Be,oe=!K(k)&&K(k.set)?k.set.bind(s):Be,rt=kt({get:S,set:oe});Object.defineProperty(n,se,{enumerable:!0,configurable:!0,get:()=>rt.value,set:Ie=>rt.value=Ie})}if(l)for(const se in l)Bo(l[se],n,s,se);if(c){const se=K(c)?c.call(s):c;Reflect.ownKeys(se).forEach(k=>{li(k,se[k])})}a&&Rn(a,e,"c");function pe(se,k){H(k)?k.forEach(S=>se(S.bind(s))):k&&se(k.bind(s))}if(pe(xi,p),pe(ft,g),pe(vi,C),pe(yi,U),pe(hi,I),pe(mi,W),pe(Ci,ne),pe(Si,M),pe(wi,N),pe(bi,V),pe(hn,D),pe(_i,Y),H(ce))if(ce.length){const se=e.exposed||(e.exposed={});ce.forEach(k=>{Object.defineProperty(se,k,{get:()=>s[k],set:S=>s[k]=S,enumerable:!0})})}else e.exposed||(e.exposed={});j&&e.render===Be&&(e.render=j),Ae!=null&&(e.inheritAttrs=Ae),qe&&(e.components=qe),Te&&(e.directives=Te),Y&&Fo(e)}function Mi(e,t,s=Be){H(e)&&(e=Js(e));for(const n in e){const o=e[n];let r;Z(o)?"default"in o?r=as(o.from||n,o.default,!0):r=as(o.from||n):r=as(o),ve(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function Rn(e,t,s){ze(H(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Bo(e,t,s,n){let o=n.includes(".")?No(s,n):()=>s[n];if(re(e)){const r=t[e];K(r)&&Ls(o,r)}else if(K(e))Ls(o,e.bind(s));else if(Z(e))if(H(e))e.forEach(r=>Bo(r,t,s,n));else{const r=K(e.handler)?e.handler.bind(s):t[e.handler];K(r)&&Ls(o,r,e)}}function Ko(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let c;return l?c=l:!o.length&&!s&&!n?c=t:(c={},o.length&&o.forEach(d=>gs(c,d,i,!0)),gs(c,t,i)),Z(t)&&r.set(t,c),c}function gs(e,t,s,n=!1){const{mixins:o,extends:r}=t;r&&gs(e,r,s,!0),o&&o.forEach(i=>gs(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const l=Pi[i]||s&&s[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Pi={data:Dn,props:Ln,emits:Ln,methods:jt,computed:jt,beforeCreate:ye,created:ye,beforeMount:ye,mounted:ye,beforeUpdate:ye,updated:ye,beforeDestroy:ye,beforeUnmount:ye,destroyed:ye,unmounted:ye,activated:ye,deactivated:ye,errorCaptured:ye,serverPrefetch:ye,components:jt,directives:jt,watch:Ii,provide:Dn,inject:Oi};function Dn(e,t){return t?e?function(){return me(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Oi(e,t){return jt(Js(e),Js(t))}function Js(e){if(H(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function ye(e,t){return e?[...new Set([].concat(e,t))]:t}function jt(e,t){return e?me(Object.create(null),e,t):t}function Ln(e,t){return e?H(e)&&H(t)?[...new Set([...e,...t])]:me(Object.create(null),In(e),In(t??{})):t}function Ii(e,t){if(!e)return t;if(!t)return e;const s=me(Object.create(null),e);for(const n in t)s[n]=ye(e[n],t[n]);return s}function Wo(){return{app:null,config:{isNativeTag:lo,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ri=0;function Di(e,t){return function(n,o=null){K(n)||(n=me({},n)),o!=null&&!Z(o)&&(o=null);const r=Wo(),i=new WeakSet,l=[];let c=!1;const d=r.app={_uid:Ri++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:hl,get config(){return r.config},set config(a){},use(a,...p){return i.has(a)||(a&&K(a.install)?(i.add(a),a.install(d,...p)):K(a)&&(i.add(a),a(d,...p))),d},mixin(a){return r.mixins.includes(a)||r.mixins.push(a),d},component(a,p){return p?(r.components[a]=p,d):r.components[a]},directive(a,p){return p?(r.directives[a]=p,d):r.directives[a]},mount(a,p,g){if(!c){const C=d._ceVNode||Ke(n,o);return C.appContext=r,g===!0?g="svg":g===!1&&(g=void 0),e(C,a,g),c=!0,d._container=a,a.__vue_app__=d,As(C.component)}},onUnmount(a){l.push(a)},unmount(){c&&(ze(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(a,p){return r.provides[a]=p,d},runWithContext(a){const p=Ct;Ct=d;try{return a()}finally{Ct=p}}};return d}}let Ct=null;const Li=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${_e(t)}Modifiers`]||e[`${ct(t)}Modifiers`];function ji(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||X;let o=s;const r=t.startsWith("update:"),i=r&&Li(n,t.slice(7));i&&(i.trim&&(o=s.map(a=>re(a)?a.trim():a)),i.number&&(o=s.map(ws)));let l,c=n[l=Ps(t)]||n[l=Ps(_e(t))];!c&&r&&(c=n[l=Ps(ct(t))]),c&&ze(c,e,6,o);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ze(d,e,6,o)}}const Ni=new WeakMap;function zo(e,t,s=!1){const n=s?Ni:t.emitsCache,o=n.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!K(e)){const c=d=>{const a=zo(d,t,!0);a&&(l=!0,me(i,a))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!l?(Z(e)&&n.set(e,null),null):(H(r)?r.forEach(c=>i[c]=null):me(i,r),Z(e)&&n.set(e,i),i)}function ks(e,t){return!e||!vs(t)?!1:(t=t.slice(2).replace(/Once$/,""),G(e,t[0].toLowerCase()+t.slice(1))||G(e,ct(t))||G(e,t))}function jn(e){const{type:t,vnode:s,proxy:n,withProxy:o,propsOptions:[r],slots:i,attrs:l,emit:c,render:d,renderCache:a,props:p,data:g,setupState:C,ctx:U,inheritAttrs:I}=e,W=hs(e);let P,V;try{if(s.shapeFlag&4){const D=o||n,j=D;P=Ve(d.call(j,D,a,p,C,g,U)),V=l}else{const D=t;P=Ve(D.length>1?D(p,{attrs:l,slots:i,emit:c}):D(p,null)),V=t.props?l:Fi(l)}}catch(D){Kt.length=0,Ts(D,e,1),P=Ke(at)}let z=P;if(V&&I!==!1){const D=Object.keys(V),{shapeFlag:j}=z;D.length&&j&7&&(r&&D.some(ys)&&(V=Hi(V,r)),z=$t(z,V,!1,!0))}return s.dirs&&(z=$t(z,null,!1,!0),z.dirs=z.dirs?z.dirs.concat(s.dirs):s.dirs),s.transition&&pn(z,s.transition),P=z,hs(W),P}const Fi=e=>{let t;for(const s in e)(s==="class"||s==="style"||vs(s))&&((t||(t={}))[s]=e[s]);return t},Hi=(e,t)=>{const s={};for(const n in e)(!ys(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Vi(e,t,s){const{props:n,children:o,component:r}=e,{props:i,children:l,patchFlag:c}=t,d=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Nn(n,i,d):!!i;if(c&8){const a=t.dynamicProps;for(let p=0;p<a.length;p++){const g=a[p];if(qo(i,n,g)&&!ks(d,g))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:n===i?!1:n?i?Nn(n,i,d):!0:!!i;return!1}function Nn(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const r=n[o];if(qo(t,e,r)&&!ks(s,r))return!0}return!1}function qo(e,t,s){const n=e[s],o=t[s];return s==="style"&&Z(n)&&Z(o)?!Mt(n,o):n!==o}function Ui({vnode:e,parent:t,suspense:s},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=n,e=o),o===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const Jo={},Go=()=>Object.create(Jo),Yo=e=>Object.getPrototypeOf(e)===Jo;function Bi(e,t,s,n=!1){const o={},r=Go();e.propsDefaults=Object.create(null),Zo(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);s?e.props=n?o:qr(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Ki(e,t,s,n){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=J(o),[c]=e.propsOptions;let d=!1;if((n||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let p=0;p<a.length;p++){let g=a[p];if(ks(e.emitsOptions,g))continue;const C=t[g];if(c)if(G(r,g))C!==r[g]&&(r[g]=C,d=!0);else{const U=_e(g);o[U]=Gs(c,l,U,C,e,!1)}else C!==r[g]&&(r[g]=C,d=!0)}}}else{Zo(e,t,o,r)&&(d=!0);let a;for(const p in l)(!t||!G(t,p)&&((a=ct(p))===p||!G(t,a)))&&(c?s&&(s[p]!==void 0||s[a]!==void 0)&&(o[p]=Gs(c,l,p,void 0,e,!0)):delete o[p]);if(r!==l)for(const p in r)(!t||!G(t,p))&&(delete r[p],d=!0)}d&&Ze(e.attrs,"set","")}function Zo(e,t,s,n){const[o,r]=e.propsOptions;let i=!1,l;if(t)for(let c in t){if(Nt(c))continue;const d=t[c];let a;o&&G(o,a=_e(c))?!r||!r.includes(a)?s[a]=d:(l||(l={}))[a]=d:ks(e.emitsOptions,c)||(!(c in n)||d!==n[c])&&(n[c]=d,i=!0)}if(r){const c=J(s),d=l||X;for(let a=0;a<r.length;a++){const p=r[a];s[p]=Gs(o,c,p,d[p],e,!G(d,p))}}return i}function Gs(e,t,s,n,o,r){const i=e[s];if(i!=null){const l=G(i,"default");if(l&&n===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&K(c)){const{propsDefaults:d}=o;if(s in d)n=d[s];else{const a=es(o);n=d[s]=c.call(null,t),a()}}else n=c;o.ce&&o.ce._setProp(s,n)}i[0]&&(r&&!l?n=!1:i[1]&&(n===""||n===ct(s))&&(n=!0))}return n}const Wi=new WeakMap;function Qo(e,t,s=!1){const n=s?Wi:t.propsCache,o=n.get(e);if(o)return o;const r=e.props,i={},l=[];let c=!1;if(!K(e)){const a=p=>{c=!0;const[g,C]=Qo(p,t,!0);me(i,g),C&&l.push(...C)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!r&&!c)return Z(e)&&n.set(e,_t),_t;if(H(r))for(let a=0;a<r.length;a++){const p=_e(r[a]);Fn(p)&&(i[p]=X)}else if(r)for(const a in r){const p=_e(a);if(Fn(p)){const g=r[a],C=i[p]=H(g)||K(g)?{type:g}:me({},g),U=C.type;let I=!1,W=!0;if(H(U))for(let P=0;P<U.length;++P){const V=U[P],z=K(V)&&V.name;if(z==="Boolean"){I=!0;break}else z==="String"&&(W=!1)}else I=K(U)&&U.name==="Boolean";C[0]=I,C[1]=W,(I||G(C,"default"))&&l.push(p)}}const d=[i,l];return Z(e)&&n.set(e,d),d}function Fn(e){return e[0]!=="$"&&!Nt(e)}const mn=e=>e==="_"||e==="_ctx"||e==="$stable",gn=e=>H(e)?e.map(Ve):[Ve(e)],zi=(e,t,s)=>{if(t._n)return t;const n=ii((...o)=>gn(t(...o)),s);return n._c=!1,n},Xo=(e,t,s)=>{const n=e._ctx;for(const o in e){if(mn(o))continue;const r=e[o];if(K(r))t[o]=zi(o,r,n);else if(r!=null){const i=gn(r);t[o]=()=>i}}},er=(e,t)=>{const s=gn(t);e.slots.default=()=>s},tr=(e,t,s)=>{for(const n in t)(s||!mn(n))&&(e[n]=t[n])},qi=(e,t,s)=>{const n=e.slots=Go();if(e.vnode.shapeFlag&32){const o=t._;o?(tr(n,t,s),s&&fo(n,"_",o,!0)):Xo(t,n)}else t&&er(e,t)},Ji=(e,t,s)=>{const{vnode:n,slots:o}=e;let r=!0,i=X;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:tr(o,t,s):(r=!t.$stable,Xo(t,o)),i=t}else t&&(er(e,t),i={default:1});if(r)for(const l in o)!mn(l)&&i[l]==null&&delete o[l]},we=Xi;function Gi(e){return Yi(e)}function Yi(e,t){const s=Ss();s.__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:i,createText:l,createComment:c,setText:d,setElementText:a,parentNode:p,nextSibling:g,setScopeId:C=Be,insertStaticContent:U}=e,I=(u,h,m,b=null,x=null,v=null,T=void 0,w=null,_=!!h.dynamicChildren)=>{if(u===h)return;u&&!Dt(u,h)&&(b=ss(u),Ie(u,x,v,!0),u=null),h.patchFlag===-2&&(_=!1,h.dynamicChildren=null);const{type:y,ref:F,shapeFlag:E}=h;switch(y){case Es:W(u,h,m,b);break;case at:P(u,h,m,b);break;case cs:u==null&&V(h,m,b,T);break;case ae:qe(u,h,m,b,x,v,T,w,_);break;default:E&1?j(u,h,m,b,x,v,T,w,_):E&6?Te(u,h,m,b,x,v,T,w,_):(E&64||E&128)&&y.process(u,h,m,b,x,v,T,w,_,Ot)}F!=null&&x?Vt(F,u&&u.ref,v,h||u,!h):F==null&&u&&u.ref!=null&&Vt(u.ref,null,v,u,!0)},W=(u,h,m,b)=>{if(u==null)n(h.el=l(h.children),m,b);else{const x=h.el=u.el;h.children!==u.children&&d(x,h.children)}},P=(u,h,m,b)=>{u==null?n(h.el=c(h.children||""),m,b):h.el=u.el},V=(u,h,m,b)=>{[u.el,u.anchor]=U(u.children,h,m,b,u.el,u.anchor)},z=({el:u,anchor:h},m,b)=>{let x;for(;u&&u!==h;)x=g(u),n(u,m,b),u=x;n(h,m,b)},D=({el:u,anchor:h})=>{let m;for(;u&&u!==h;)m=g(u),o(u),u=m;o(h)},j=(u,h,m,b,x,v,T,w,_)=>{if(h.type==="svg"?T="svg":h.type==="math"&&(T="mathml"),u==null)M(h,m,b,x,v,T,w,_);else{const y=u.el&&u.el._isVueCE?u.el:null;try{y&&y._beginPatch(),Y(u,h,x,v,T,w,_)}finally{y&&y._endPatch()}}},M=(u,h,m,b,x,v,T,w)=>{let _,y;const{props:F,shapeFlag:E,transition:R,dirs:B}=u;if(_=u.el=i(u.type,v,F&&F.is,F),E&8?a(_,u.children):E&16&&ne(u.children,_,null,b,x,Ns(u,v),T,w),B&&dt(u,null,b,"created"),N(_,u,u.scopeId,T,b),F){for(const Q in F)Q!=="value"&&!Nt(Q)&&r(_,Q,null,F[Q],v,b);"value"in F&&r(_,"value",null,F.value,v),(y=F.onVnodeBeforeMount)&&je(y,b,u)}B&&dt(u,null,b,"beforeMount");const q=Zi(x,R);q&&R.beforeEnter(_),n(_,h,m),((y=F&&F.onVnodeMounted)||q||B)&&we(()=>{try{y&&je(y,b,u),q&&R.enter(_),B&&dt(u,null,b,"mounted")}finally{}},x)},N=(u,h,m,b,x)=>{if(m&&C(u,m),b)for(let v=0;v<b.length;v++)C(u,b[v]);if(x){let v=x.subTree;if(h===v||rr(v.type)&&(v.ssContent===h||v.ssFallback===h)){const T=x.vnode;N(u,T,T.scopeId,T.slotScopeIds,x.parent)}}},ne=(u,h,m,b,x,v,T,w,_=0)=>{for(let y=_;y<u.length;y++){const F=u[y]=w?Ye(u[y]):Ve(u[y]);I(null,F,h,m,b,x,v,T,w)}},Y=(u,h,m,b,x,v,T)=>{const w=h.el=u.el;let{patchFlag:_,dynamicChildren:y,dirs:F}=h;_|=u.patchFlag&16;const E=u.props||X,R=h.props||X;let B;if(m&&pt(m,!1),(B=R.onVnodeBeforeUpdate)&&je(B,m,h,u),F&&dt(h,u,m,"beforeUpdate"),m&&pt(m,!0),(E.innerHTML&&R.innerHTML==null||E.textContent&&R.textContent==null)&&a(w,""),y?ce(u.dynamicChildren,y,w,m,b,Ns(h,x),v):T||k(u,h,w,null,m,b,Ns(h,x),v,!1),_>0){if(_&16)Ae(w,E,R,m,x);else if(_&2&&E.class!==R.class&&r(w,"class",null,R.class,x),_&4&&r(w,"style",E.style,R.style,x),_&8){const q=h.dynamicProps;for(let Q=0;Q<q.length;Q++){const ee=q[Q],ie=E[ee],he=R[ee];(he!==ie||ee==="value")&&r(w,ee,ie,he,x,m)}}_&1&&u.children!==h.children&&a(w,h.children)}else!T&&y==null&&Ae(w,E,R,m,x);((B=R.onVnodeUpdated)||F)&&we(()=>{B&&je(B,m,h,u),F&&dt(h,u,m,"updated")},b)},ce=(u,h,m,b,x,v,T)=>{for(let w=0;w<h.length;w++){const _=u[w],y=h[w],F=_.el&&(_.type===ae||!Dt(_,y)||_.shapeFlag&198)?p(_.el):m;I(_,y,F,null,b,x,v,T,!0)}},Ae=(u,h,m,b,x)=>{if(h!==m){if(h!==X)for(const v in h)!Nt(v)&&!(v in m)&&r(u,v,h[v],null,x,b);for(const v in m){if(Nt(v))continue;const T=m[v],w=h[v];T!==w&&v!=="value"&&r(u,v,w,T,x,b)}"value"in m&&r(u,"value",h.value,m.value,x)}},qe=(u,h,m,b,x,v,T,w,_)=>{const y=h.el=u?u.el:l(""),F=h.anchor=u?u.anchor:l("");let{patchFlag:E,dynamicChildren:R,slotScopeIds:B}=h;B&&(w=w?w.concat(B):B),u==null?(n(y,m,b),n(F,m,b),ne(h.children||[],m,F,x,v,T,w,_)):E>0&&E&64&&R&&u.dynamicChildren&&u.dynamicChildren.length===R.length?(ce(u.dynamicChildren,R,m,x,v,T,w),(h.key!=null||x&&h===x.subTree)&&sr(u,h,!0)):k(u,h,m,F,x,v,T,w,_)},Te=(u,h,m,b,x,v,T,w,_)=>{h.slotScopeIds=w,u==null?h.shapeFlag&512?x.ctx.activate(h,m,b,T,_):vt(h,m,b,x,v,T,_):ts(u,h,_)},vt=(u,h,m,b,x,v,T)=>{const w=u.component=il(u,b,x);if(Ho(u)&&(w.ctx.renderer=Ot),al(w,!1,T),w.asyncDep){if(x&&x.registerDep(w,pe,T),!u.el){const _=w.subTree=Ke(at);P(null,_,h,m),u.placeholder=_.el}}else pe(w,u,h,m,x,v,T)},ts=(u,h,m)=>{const b=h.component=u.component;if(Vi(u,h,m))if(b.asyncDep&&!b.asyncResolved){se(b,h,m);return}else b.next=h,b.update();else h.el=u.el,b.vnode=h},pe=(u,h,m,b,x,v,T)=>{const w=()=>{if(u.isMounted){let{next:E,bu:R,u:B,parent:q,vnode:Q}=u;{const De=nr(u);if(De){E&&(E.el=Q.el,se(u,E,T)),De.asyncDep.then(()=>{we(()=>{u.isUnmounted||y()},x)});return}}let ee=E,ie;pt(u,!1),E?(E.el=Q.el,se(u,E,T)):E=Q,R&&ls(R),(ie=E.props&&E.props.onVnodeBeforeUpdate)&&je(ie,q,E,Q),pt(u,!0);const he=jn(u),Re=u.subTree;u.subTree=he,I(Re,he,p(Re.el),ss(Re),u,x,v),E.el=he.el,ee===null&&Ui(u,he.el),B&&we(B,x),(ie=E.props&&E.props.onVnodeUpdated)&&we(()=>je(ie,q,E,Q),x)}else{let E;const{el:R,props:B}=h,{bm:q,m:Q,parent:ee,root:ie,type:he}=u,Re=Ut(h);pt(u,!1),q&&ls(q),!Re&&(E=B&&B.onVnodeBeforeMount)&&je(E,ee,h),pt(u,!0);{ie.ce&&ie.ce._hasShadowRoot()&&ie.ce._injectChildStyle(he,u.parent?u.parent.type:void 0);const De=u.subTree=jn(u);I(null,De,m,b,u,x,v),h.el=De.el}if(Q&&we(Q,x),!Re&&(E=B&&B.onVnodeMounted)){const De=h;we(()=>je(E,ee,De),x)}(h.shapeFlag&256||ee&&Ut(ee.vnode)&&ee.vnode.shapeFlag&256)&&u.a&&we(u.a,x),u.isMounted=!0,h=m=b=null}};u.scope.on();const _=u.effect=new go(w);u.scope.off();const y=u.update=_.run.bind(_),F=u.job=_.runIfDirty.bind(_);F.i=u,F.id=u.uid,_.scheduler=()=>dn(F),pt(u,!0),y()},se=(u,h,m)=>{h.component=u;const b=u.vnode.props;u.vnode=h,u.next=null,Ki(u,h.props,b,m),Ji(u,h.children,m),et(),An(u),tt()},k=(u,h,m,b,x,v,T,w,_=!1)=>{const y=u&&u.children,F=u?u.shapeFlag:0,E=h.children,{patchFlag:R,shapeFlag:B}=h;if(R>0){if(R&128){oe(y,E,m,b,x,v,T,w,_);return}else if(R&256){S(y,E,m,b,x,v,T,w,_);return}}B&8?(F&16&&Pt(y,x,v),E!==y&&a(m,E)):F&16?B&16?oe(y,E,m,b,x,v,T,w,_):Pt(y,x,v,!0):(F&8&&a(m,""),B&16&&ne(E,m,b,x,v,T,w,_))},S=(u,h,m,b,x,v,T,w,_)=>{u=u||_t,h=h||_t;const y=u.length,F=h.length,E=Math.min(y,F);let R;for(R=0;R<E;R++){const B=h[R]=_?Ye(h[R]):Ve(h[R]);I(u[R],B,m,null,x,v,T,w,_)}y>F?Pt(u,x,v,!0,!1,E):ne(h,m,b,x,v,T,w,_,E)},oe=(u,h,m,b,x,v,T,w,_)=>{let y=0;const F=h.length;let E=u.length-1,R=F-1;for(;y<=E&&y<=R;){const B=u[y],q=h[y]=_?Ye(h[y]):Ve(h[y]);if(Dt(B,q))I(B,q,m,null,x,v,T,w,_);else break;y++}for(;y<=E&&y<=R;){const B=u[E],q=h[R]=_?Ye(h[R]):Ve(h[R]);if(Dt(B,q))I(B,q,m,null,x,v,T,w,_);else break;E--,R--}if(y>E){if(y<=R){const B=R+1,q=B<F?h[B].el:b;for(;y<=R;)I(null,h[y]=_?Ye(h[y]):Ve(h[y]),m,q,x,v,T,w,_),y++}}else if(y>R)for(;y<=E;)Ie(u[y],x,v,!0),y++;else{const B=y,q=y,Q=new Map;for(y=q;y<=R;y++){const $e=h[y]=_?Ye(h[y]):Ve(h[y]);$e.key!=null&&Q.set($e.key,y)}let ee,ie=0;const he=R-q+1;let Re=!1,De=0;const It=new Array(he);for(y=0;y<he;y++)It[y]=0;for(y=B;y<=E;y++){const $e=u[y];if(ie>=he){Ie($e,x,v,!0);continue}let Le;if($e.key!=null)Le=Q.get($e.key);else for(ee=q;ee<=R;ee++)if(It[ee-q]===0&&Dt($e,h[ee])){Le=ee;break}Le===void 0?Ie($e,x,v,!0):(It[Le-q]=y+1,Le>=De?De=Le:Re=!0,I($e,h[Le],m,null,x,v,T,w,_),ie++)}const wn=Re?Qi(It):_t;for(ee=wn.length-1,y=he-1;y>=0;y--){const $e=q+y,Le=h[$e],Sn=h[$e+1],Cn=$e+1<F?Sn.el||or(Sn):b;It[y]===0?I(null,Le,m,Cn,x,v,T,w,_):Re&&(ee<0||y!==wn[ee]?rt(Le,m,Cn,2):ee--)}}},rt=(u,h,m,b,x=null)=>{const{el:v,type:T,transition:w,children:_,shapeFlag:y}=u;if(y&6){rt(u.component.subTree,h,m,b);return}if(y&128){u.suspense.move(h,m,b);return}if(y&64){T.move(u,h,m,Ot);return}if(T===ae){n(v,h,m);for(let E=0;E<_.length;E++)rt(_[E],h,m,b);n(u.anchor,h,m);return}if(T===cs){z(u,h,m);return}if(b!==2&&y&1&&w)if(b===0)w.beforeEnter(v),n(v,h,m),we(()=>w.enter(v),x);else{const{leave:E,delayLeave:R,afterLeave:B}=w,q=()=>{u.ctx.isUnmounted?o(v):n(v,h,m)},Q=()=>{v._isLeaving&&v[pi](!0),E(v,()=>{q(),B&&B()})};R?R(v,q,Q):Q()}else n(v,h,m)},Ie=(u,h,m,b=!1,x=!1)=>{const{type:v,props:T,ref:w,children:_,dynamicChildren:y,shapeFlag:F,patchFlag:E,dirs:R,cacheIndex:B,memo:q}=u;if(E===-2&&(x=!1),w!=null&&(et(),Vt(w,null,m,u,!0),tt()),B!=null&&(h.renderCache[B]=void 0),F&256){h.ctx.deactivate(u);return}const Q=F&1&&R,ee=!Ut(u);let ie;if(ee&&(ie=T&&T.onVnodeBeforeUnmount)&&je(ie,h,u),F&6)mr(u.component,m,b);else{if(F&128){u.suspense.unmount(m,b);return}Q&&dt(u,null,h,"beforeUnmount"),F&64?u.type.remove(u,h,m,Ot,b):y&&!y.hasOnce&&(v!==ae||E>0&&E&64)?Pt(y,h,m,!1,!0):(v===ae&&E&384||!x&&F&16)&&Pt(_,h,m),b&&bn(u)}const he=q!=null&&B==null;(ee&&(ie=T&&T.onVnodeUnmounted)||Q||he)&&we(()=>{ie&&je(ie,h,u),Q&&dt(u,null,h,"unmounted"),he&&(u.el=null)},m)},bn=u=>{const{type:h,el:m,anchor:b,transition:x}=u;if(h===ae){hr(m,b);return}if(h===cs){D(u);return}const v=()=>{o(m),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(u.shapeFlag&1&&x&&!x.persisted){const{leave:T,delayLeave:w}=x,_=()=>T(m,v);w?w(u.el,v,_):_()}else v()},hr=(u,h)=>{let m;for(;u!==h;)m=g(u),o(u),u=m;o(h)},mr=(u,h,m)=>{const{bum:b,scope:x,job:v,subTree:T,um:w,m:_,a:y}=u;Hn(_),Hn(y),b&&ls(b),x.stop(),v&&(v.flags|=8,Ie(T,u,h,m)),w&&we(w,h),we(()=>{u.isUnmounted=!0},h)},Pt=(u,h,m,b=!1,x=!1,v=0)=>{for(let T=v;T<u.length;T++)Ie(u[T],h,m,b,x)},ss=u=>{if(u.shapeFlag&6)return ss(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const h=g(u.anchor||u.el),m=h&&h[fi];return m?g(m):h};let Ms=!1;const _n=(u,h,m)=>{let b;u==null?h._vnode&&(Ie(h._vnode,null,null,!0),b=h._vnode.component):I(h._vnode||null,u,h,null,null,null,m),h._vnode=u,Ms||(Ms=!0,An(b),Ro(),Ms=!1)},Ot={p:I,um:Ie,m:rt,r:bn,mt:vt,mc:ne,pc:k,pbc:ce,n:ss,o:e};return{render:_n,hydrate:void 0,createApp:Di(_n)}}function Ns({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function pt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function sr(e,t,s=!1){const n=e.children,o=t.children;if(H(n)&&H(o))for(let r=0;r<n.length;r++){const i=n[r];let l=o[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[r]=Ye(o[r]),l.el=i.el),!s&&l.patchFlag!==-2&&sr(i,l)),l.type===Es&&(l.patchFlag===-1&&(l=o[r]=Ye(l)),l.el=i.el),l.type===at&&!l.el&&(l.el=i.el)}}function Qi(e){const t=e.slice(),s=[0];let n,o,r,i,l;const c=e.length;for(n=0;n<c;n++){const d=e[n];if(d!==0){if(o=s[s.length-1],e[o]<d){t[n]=o,s.push(n);continue}for(r=0,i=s.length-1;r<i;)l=r+i>>1,e[s[l]]<d?r=l+1:i=l;d<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function nr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:nr(t)}function Hn(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function or(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?or(t.subTree):null}const rr=e=>e.__isSuspense;function Xi(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):ri(e)}const ae=Symbol.for("v-fgt"),Es=Symbol.for("v-txt"),at=Symbol.for("v-cmt"),cs=Symbol.for("v-stc"),Kt=[];let Ee=null;function $(e=!1){Kt.push(Ee=e?null:[])}function el(){Kt.pop(),Ee=Kt[Kt.length-1]||null}let Jt=1;function Vn(e,t=!1){Jt+=e,e<0&&Ee&&t&&(Ee.hasOnce=!0)}function ir(e){return e.dynamicChildren=Jt>0?Ee||_t:null,el(),Jt>0&&Ee&&Ee.push(e),e}function A(e,t,s,n,o,r){return ir(f(e,t,s,n,o,r,!0))}function lr(e,t,s,n,o){return ir(Ke(e,t,s,n,o,!0))}function ar(e){return e?e.__v_isVNode===!0:!1}function Dt(e,t){return e.type===t.type&&e.key===t.key}const cr=({key:e})=>e??null,us=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?re(e)||ve(e)||K(e)?{i:ke,r:e,k:t,f:!!s}:e:null);function f(e,t=null,s=null,n=0,o=null,r=e===ae?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cr(t),ref:t&&us(t),scopeId:Lo,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ke};return l?(vn(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=re(s)?8:16),Jt>0&&!i&&Ee&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&Ee.push(c),c}const Ke=tl;function tl(e,t=null,s=null,n=0,o=null,r=!1){if((!e||e===Uo)&&(e=at),ar(e)){const l=$t(e,t,!0);return s&&vn(l,s),Jt>0&&!r&&Ee&&(l.shapeFlag&6?Ee[Ee.indexOf(e)]=l:Ee.push(l)),l.patchFlag=-2,l}if(pl(e)&&(e=e.__vccOpts),t){t=sl(t);let{class:l,style:c}=t;l&&!re(l)&&(t.class=de(l)),Z(c)&&(fn(c)&&!H(c)&&(c=me({},c)),t.style=Qt(c))}const i=re(e)?1:rr(e)?128:di(e)?64:Z(e)?4:K(e)?2:0;return f(e,t,s,n,o,i,r,!0)}function sl(e){return e?fn(e)||Yo(e)?me({},e):e:null}function $t(e,t,s=!1,n=!1){const{props:o,ref:r,patchFlag:i,children:l,transition:c}=e,d=t?nl(o||{},t):o,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&cr(d),ref:t&&t.ref?s&&r?H(r)?r.concat(us(t)):[r,us(t)]:us(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ae?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$t(e.ssContent),ssFallback:e.ssFallback&&$t(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&pn(a,c.clone(a)),a}function xn(e=" ",t=0){return Ke(Es,null,e,t)}function Fe(e,t){const s=Ke(cs,null,e);return s.staticCount=t,s}function le(e="",t=!1){return t?($(),lr(at,null,e)):Ke(at,null,e)}function Ve(e){return e==null||typeof e=="boolean"?Ke(at):H(e)?Ke(ae,null,e.slice()):ar(e)?Ye(e):Ke(Es,null,String(e))}function Ye(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$t(e)}function vn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(H(t))s=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),vn(e,o()),o._c&&(o._d=!0));return}else{s=32;const o=t._;!o&&!Yo(t)?t._ctx=ke:o===3&&ke&&(ke.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:ke},s=32):(t=String(t),n&64?(s=16,t=[xn(t)]):s=8);e.children=t,e.shapeFlag|=s}function nl(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=de([t.class,n.class]));else if(o==="style")t.style=Qt([t.style,n.style]);else if(vs(o)){const r=t[o],i=n[o];i&&r!==i&&!(H(r)&&r.includes(i))?t[o]=r?[].concat(r,i):i:i==null&&r==null&&!ys(o)&&(t[o]=i)}else o!==""&&(t[o]=n[o])}return t}function je(e,t,s,n=null){ze(e,t,7,[s,n])}const ol=Wo();let rl=0;function il(e,t,s){const n=e.type,o=(t?t.appContext:e.appContext)||ol,r={uid:rl++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new kr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Qo(n,o),emitsOptions:zo(n,o),emit:null,emitted:null,propsDefaults:X,inheritAttrs:n.inheritAttrs,ctx:X,data:X,props:X,attrs:X,slots:X,refs:X,setupState:X,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=ji.bind(null,r),e.ce&&e.ce(r),r}let xe=null;const ll=()=>xe||ke;let xs,Ys;{const e=Ss(),t=(s,n)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(n),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};xs=t("__VUE_INSTANCE_SETTERS__",s=>xe=s),Ys=t("__VUE_SSR_SETTERS__",s=>Gt=s)}const es=e=>{const t=xe;return xs(e),e.scope.on(),()=>{e.scope.off(),xs(t)}},Un=()=>{xe&&xe.scope.off(),xs(null)};function ur(e){return e.vnode.shapeFlag&4}let Gt=!1;function al(e,t=!1,s=!1){t&&Ys(t);const{props:n,children:o}=e.vnode,r=ur(e);Bi(e,n,r,t),qi(e,o,s||t);const i=r?cl(e,t):void 0;return t&&Ys(!1),i}function cl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ei);const{setup:n}=s;if(n){et();const o=e.setupContext=n.length>1?fl(e):null,r=es(e),i=Xt(n,e,0,[e.props,o]),l=ao(i);if(tt(),r(),(l||e.sp)&&!Ut(e)&&Fo(e),l){if(i.then(Un,Un),t)return i.then(c=>{Bn(e,c)}).catch(c=>{Ts(c,e,0)});e.asyncDep=i}else Bn(e,i)}else fr(e)}function Bn(e,t,s){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Z(t)&&(e.setupState=Mo(t)),fr(e)}function fr(e,t,s){const n=e.type;e.render||(e.render=n.render||Be);{const o=es(e);et();try{Ai(e)}finally{tt(),o()}}}const ul={get(e,t){return ge(e,"get",""),e[t]}};function fl(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ul),slots:e.slots,emit:e.emit,expose:t}}function As(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Mo(Jr(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Bt)return Bt[s](e)},has(t,s){return s in t||s in Bt}})):e.proxy}function dl(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function pl(e){return K(e)&&"__vccOpts"in e}const kt=(e,t)=>ei(e,t,Gt),hl="3.5.31";/**
|
|
60
|
+
**/function ns(e,t,s,n){try{return n?e(...n):e()}catch(o){Ps(o,t,s)}}function Je(e,t,s,n){if(K(e)){const o=ns(e,t,s,n);return o&&uo(o)&&o.catch(r=>{Ps(r,t,s)}),o}if(U(e)){const o=[];for(let r=0;r<e.length;r++)o.push(Je(e[r],t,s,n));return o}}function Ps(e,t,s,n=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||te;if(t){let l=t.parent;const a=t.proxy,m=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const f=l.ec;if(f){for(let p=0;p<f.length;p++)if(f[p](e,a,m)===!1)return}l=l.parent}if(r){it(),ns(r,null,10,[e,a,m]),lt();return}}ni(e,s,o,n,i)}function ni(e,t,s,n=!0,o=!1){if(o)throw e;console.error(e)}const _e=[];let He=-1;const Et=[];let ft=null,$t=0;const Io=Promise.resolve();let gs=null;function Ro(e){const t=gs||Io;return e?t.then(this?e.bind(this):e):t}function oi(e){let t=He+1,s=_e.length;for(;t<s;){const n=t+s>>>1,o=_e[n],r=Qt(o);r<e||r===e&&o.flags&2?t=n+1:s=n}return t}function mn(e){if(!(e.flags&1)){const t=Qt(e),s=_e[_e.length-1];!s||!(e.flags&2)&&t>=Qt(s)?_e.push(e):_e.splice(oi(t),0,e),e.flags|=1,Do()}}function Do(){gs||(gs=Io.then(Lo))}function ri(e){U(e)?Et.push(...e):ft&&e.id===-1?ft.splice($t+1,0,e):e.flags&1||(Et.push(e),e.flags|=1),Do()}function Mn(e,t,s=He+1){for(;s<_e.length;s++){const n=_e[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;_e.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function jo(e){if(Et.length){const t=[...new Set(Et)].sort((s,n)=>Qt(s)-Qt(n));if(Et.length=0,ft){ft.push(...t);return}for(ft=t,$t=0;$t<ft.length;$t++){const s=ft[$t];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}ft=null,$t=0}}const Qt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Lo(e){try{for(He=0;He<_e.length;He++){const t=_e[He];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ns(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;He<_e.length;He++){const t=_e[He];t&&(t.flags&=-2)}He=-1,_e.length=0,jo(),gs=null,(_e.length||Et.length)&&Lo()}}let Ae=null,No=null;function xs(e){const t=Ae;return Ae=e,No=e&&e.type.__scopeId||null,t}function ii(e,t=Ae,s){if(!t||e._n)return e;const n=(...o)=>{n._d&&Bn(-1);const r=xs(t);let i;try{i=e(...o)}finally{xs(r),n._d&&Bn(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function pe(e,t){if(Ae===null)return e;const s=Rs(Ae),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,l,a=te]=t[o];r&&(K(r)&&(r={mounted:r,updated:r}),r.deep&&ot(i),n.push({dir:r,instance:s,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function gt(e,t,s,n){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const l=o[i];r&&(l.oldValue=r[i].value);let a=l.dir[n];a&&(it(),Je(a,s,8,[e.el,l,e,t]),lt())}}function li(e,t){if(ve){let s=ve.provides;const n=ve.parent&&ve.parent.provides;n===s&&(s=ve.provides=Object.create(n)),s[e]=t}}function fs(e,t,s=!1){const n=ll();if(n||Pt){let o=Pt?Pt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return s&&K(t)?t.call(n&&n.proxy):t}}const ai=Symbol.for("v-scx"),ci=()=>fs(ai);function Hs(e,t,s){return Fo(e,t,s)}function Fo(e,t,s=te){const{immediate:n,deep:o,flush:r,once:i}=s,l=ge({},s),a=t&&n||!t&&r!=="post";let m;if(es){if(r==="sync"){const S=ci();m=S.__watcherHandles||(S.__watcherHandles=[])}else if(!a){const S=()=>{};return S.stop=We,S.resume=We,S.pause=We,S}}const f=ve;l.call=(S,P,M)=>Je(S,f,P,M);let p=!1;r==="post"?l.scheduler=S=>{Se(S,f&&f.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(S,P)=>{P?S():mn(S)}),l.augmentJob=S=>{t&&(S.flags|=4),p&&(S.flags|=2,f&&(S.id=f.uid,S.i=f))};const h=si(e,t,l);return es&&(m?m.push(h):a&&h()),h}function ui(e,t,s){const n=this.proxy,o=le(e)?e.includes(".")?Ho(n,e):()=>n[e]:e.bind(n,n);let r;K(t)?r=t:(r=t.handler,s=t);const i=os(this),l=Fo(o,r.bind(n),s);return i(),l}function Ho(e,t){const s=t.split(".");return()=>{let n=e;for(let o=0;o<s.length&&n;o++)n=n[s[o]];return n}}const fi=Symbol("_vte"),di=e=>e.__isTeleport,pi=Symbol("_leaveCb");function gn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,gn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function jt(e,t){return K(e)?ge({name:e.name},t,{setup:e}):e}function Vo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function On(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const vs=new WeakMap;function zt(e,t,s,n,o=!1){if(U(e)){e.forEach((M,W)=>zt(M,t&&(U(t)?t[W]:t),s,n,o));return}if(qt(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&zt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?Rs(n.component):n.el,i=o?null:r,{i:l,r:a}=e,m=t&&t.r,f=l.refs===te?l.refs={}:l.refs,p=l.setupState,h=G(p),S=p===te?co:M=>On(f,M)?!1:Y(h,M),P=(M,W)=>!(W&&On(f,W));if(m!=null&&m!==a){if(In(t),le(m))f[m]=null,S(m)&&(p[m]=null);else if(be(m)){const M=t;P(m,M.k)&&(m.value=null),M.k&&(f[M.k]=null)}}if(K(a))ns(a,l,12,[i,f]);else{const M=le(a),W=be(a);if(M||W){const k=()=>{if(e.f){const L=M?S(a)?p[a]:f[a]:P()||!e.k?a.value:f[e.k];if(o)U(L)&&nn(L,r);else if(U(L))L.includes(r)||L.push(r);else if(M)f[a]=[r],S(a)&&(p[a]=f[a]);else{const z=[r];P(a,e.k)&&(a.value=z),e.k&&(f[e.k]=z)}}else M?(f[a]=i,S(a)&&(p[a]=i)):W&&(P(a,e.k)&&(a.value=i),e.k&&(f[e.k]=i))};if(i){const L=()=>{k(),vs.delete(e)};L.id=-1,vs.set(e,L),Se(L,s)}else In(e),k()}}}function In(e){const t=vs.get(e);t&&(t.flags|=8,vs.delete(e))}ks().requestIdleCallback;ks().cancelIdleCallback;const qt=e=>!!e.type.__asyncLoader,Uo=e=>e.type.__isKeepAlive;function hi(e,t){Bo(e,"a",t)}function mi(e,t){Bo(e,"da",t)}function Bo(e,t,s=ve){const n=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ms(t,n,s),s){let o=s.parent;for(;o&&o.parent;)Uo(o.parent.vnode)&&gi(n,t,s,o),o=o.parent}}function gi(e,t,s,n){const o=Ms(t,e,n,!0);xn(()=>{nn(n[t],o)},s)}function Ms(e,t,s=ve,n=!1){if(s){const o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{it();const l=os(s),a=Je(t,s,e,i);return l(),lt(),a});return n?o.unshift(r):o.push(r),r}}const ut=e=>(t,s=ve)=>{(!es||e==="sp")&&Ms(e,(...n)=>t(...n),s)},xi=ut("bm"),wt=ut("m"),vi=ut("bu"),bi=ut("u"),yi=ut("bum"),xn=ut("um"),_i=ut("sp"),wi=ut("rtg"),Si=ut("rtc");function Ci(e,t=ve){Ms("ec",e,t)}const Ti="components",Ko=Symbol.for("v-ndc");function $i(e){return le(e)?ki(Ti,e,!1)||e:e||Ko}function ki(e,t,s=!0,n=!1){const o=Ae||ve;if(o){const r=o.type;{const l=dl(r,!1);if(l&&(l===t||l===we(t)||l===Ts(we(t))))return r}const i=Rn(o[e]||r[e],t)||Rn(o.appContext[e],t);return!i&&n?r:i}}function Rn(e,t){return e&&(e[t]||e[we(t)]||e[Ts(we(t))])}function ct(e,t,s,n){let o;const r=s,i=U(e);if(i||le(e)){const l=i&&yt(e);let a=!1,m=!1;l&&(a=!Ie(e),m=at(e),e=Es(e)),o=new Array(e.length);for(let f=0,p=e.length;f<p;f++)o[f]=t(a?m?Mt(De(e[f])):De(e[f]):e[f],f,void 0,r)}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,r)}else if(X(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,r));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,m=l.length;a<m;a++){const f=l[a];o[a]=t(e[f],f,a,r)}}else o=[];return o}const Ys=e=>e?dr(e)?Rs(e):Ys(e.parent):null,Jt=ge(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ys(e.parent),$root:e=>Ys(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zo(e),$forceUpdate:e=>e.f||(e.f=()=>{mn(e.update)}),$nextTick:e=>e.n||(e.n=Ro.bind(e.proxy)),$watch:e=>ui.bind(e)}),Vs=(e,t)=>e!==te&&!e.__isScriptSetup&&Y(e,t),Ai={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:o,props:r,accessCache:i,type:l,appContext:a}=e;if(t[0]!=="$"){const h=i[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return o[t];case 4:return s[t];case 3:return r[t]}else{if(Vs(n,t))return i[t]=1,n[t];if(o!==te&&Y(o,t))return i[t]=2,o[t];if(Y(r,t))return i[t]=3,r[t];if(s!==te&&Y(s,t))return i[t]=4,s[t];Zs&&(i[t]=0)}}const m=Jt[t];let f,p;if(m)return t==="$attrs"&&xe(e.attrs,"get",""),m(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(s!==te&&Y(s,t))return i[t]=4,s[t];if(p=a.config.globalProperties,Y(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:o,ctx:r}=e;return Vs(o,t)?(o[t]=s,!0):n!==te&&Y(n,t)?(n[t]=s,!0):Y(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:o,props:r,type:i}},l){let a;return!!(s[l]||e!==te&&l[0]!=="$"&&Y(e,l)||Vs(t,l)||Y(r,l)||Y(n,l)||Y(Jt,l)||Y(o.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Y(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Dn(e){return U(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Zs=!0;function Ei(e){const t=zo(e),s=e.proxy,n=e.ctx;Zs=!1,t.beforeCreate&&jn(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:a,inject:m,created:f,beforeMount:p,mounted:h,beforeUpdate:S,updated:P,activated:M,deactivated:W,beforeDestroy:k,beforeUnmount:L,destroyed:z,unmounted:R,render:N,renderTracked:O,renderTriggered:V,errorCaptured:re,serverPrefetch:J,expose:ae,inheritAttrs:Pe,components:Ge,directives:Te,filters:St}=t;if(m&&Pi(m,n,null),i)for(const oe in i){const Z=i[oe];K(Z)&&(n[oe]=Z.bind(s))}if(o){const oe=o.call(s,s);X(oe)&&(e.data=dn(oe))}if(Zs=!0,r)for(const oe in r){const Z=r[oe],Ye=K(Z)?Z.bind(s,s):K(Z.get)?Z.get.bind(s,s):We,Ct=!K(Z)&&K(Z.set)?Z.set.bind(s):We,Ze=_t({get:Ye,set:Ct});Object.defineProperty(n,oe,{enumerable:!0,configurable:!0,get:()=>Ze.value,set:Me=>Ze.value=Me})}if(l)for(const oe in l)Wo(l[oe],n,s,oe);if(a){const oe=K(a)?a.call(s):a;Reflect.ownKeys(oe).forEach(Z=>{li(Z,oe[Z])})}f&&jn(f,e,"c");function he(oe,Z){U(Z)?Z.forEach(Ye=>oe(Ye.bind(s))):Z&&oe(Z.bind(s))}if(he(xi,p),he(wt,h),he(vi,S),he(bi,P),he(hi,M),he(mi,W),he(Ci,re),he(Si,O),he(wi,V),he(yi,L),he(xn,R),he(_i,J),U(ae))if(ae.length){const oe=e.exposed||(e.exposed={});ae.forEach(Z=>{Object.defineProperty(oe,Z,{get:()=>s[Z],set:Ye=>s[Z]=Ye,enumerable:!0})})}else e.exposed||(e.exposed={});N&&e.render===We&&(e.render=N),Pe!=null&&(e.inheritAttrs=Pe),Ge&&(e.components=Ge),Te&&(e.directives=Te),J&&Vo(e)}function Pi(e,t,s=We){U(e)&&(e=Qs(e));for(const n in e){const o=e[n];let r;X(o)?"default"in o?r=fs(o.from||n,o.default,!0):r=fs(o.from||n):r=fs(o),be(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function jn(e,t,s){Je(U(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Wo(e,t,s,n){let o=n.includes(".")?Ho(s,n):()=>s[n];if(le(e)){const r=t[e];K(r)&&Hs(o,r)}else if(K(e))Hs(o,e.bind(s));else if(X(e))if(U(e))e.forEach(r=>Wo(r,t,s,n));else{const r=K(e.handler)?e.handler.bind(s):t[e.handler];K(r)&&Hs(o,r,e)}}function zo(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let a;return l?a=l:!o.length&&!s&&!n?a=t:(a={},o.length&&o.forEach(m=>bs(a,m,i,!0)),bs(a,t,i)),X(t)&&r.set(t,a),a}function bs(e,t,s,n=!1){const{mixins:o,extends:r}=t;r&&bs(e,r,s,!0),o&&o.forEach(i=>bs(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const l=Mi[i]||s&&s[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Mi={data:Ln,props:Nn,emits:Nn,methods:Ut,computed:Ut,beforeCreate:ye,created:ye,beforeMount:ye,mounted:ye,beforeUpdate:ye,updated:ye,beforeDestroy:ye,beforeUnmount:ye,destroyed:ye,unmounted:ye,activated:ye,deactivated:ye,errorCaptured:ye,serverPrefetch:ye,components:Ut,directives:Ut,watch:Ii,provide:Ln,inject:Oi};function Ln(e,t){return t?e?function(){return ge(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Oi(e,t){return Ut(Qs(e),Qs(t))}function Qs(e){if(U(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function ye(e,t){return e?[...new Set([].concat(e,t))]:t}function Ut(e,t){return e?ge(Object.create(null),e,t):t}function Nn(e,t){return e?U(e)&&U(t)?[...new Set([...e,...t])]:ge(Object.create(null),Dn(e),Dn(t??{})):t}function Ii(e,t){if(!e)return t;if(!t)return e;const s=ge(Object.create(null),e);for(const n in t)s[n]=ye(e[n],t[n]);return s}function qo(){return{app:null,config:{isNativeTag:co,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ri=0;function Di(e,t){return function(n,o=null){K(n)||(n=ge({},n)),o!=null&&!X(o)&&(o=null);const r=qo(),i=new WeakSet,l=[];let a=!1;const m=r.app={_uid:Ri++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:hl,get config(){return r.config},set config(f){},use(f,...p){return i.has(f)||(f&&K(f.install)?(i.add(f),f.install(m,...p)):K(f)&&(i.add(f),f(m,...p))),m},mixin(f){return r.mixins.includes(f)||r.mixins.push(f),m},component(f,p){return p?(r.components[f]=p,m):r.components[f]},directive(f,p){return p?(r.directives[f]=p,m):r.directives[f]},mount(f,p,h){if(!a){const S=m._ceVNode||ze(n,o);return S.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),e(S,f,h),a=!0,m._container=f,f.__vue_app__=m,Rs(S.component)}},onUnmount(f){l.push(f)},unmount(){a&&(Je(l,m._instance,16),e(null,m._container),delete m._container.__vue_app__)},provide(f,p){return r.provides[f]=p,m},runWithContext(f){const p=Pt;Pt=m;try{return f()}finally{Pt=p}}};return m}}let Pt=null;const ji=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${we(t)}Modifiers`]||e[`${ht(t)}Modifiers`];function Li(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||te;let o=s;const r=t.startsWith("update:"),i=r&&ji(n,t.slice(7));i&&(i.trim&&(o=s.map(f=>le(f)?f.trim():f)),i.number&&(o=s.map($s)));let l,a=n[l=Ds(t)]||n[l=Ds(we(t))];!a&&r&&(a=n[l=Ds(ht(t))]),a&&Je(a,e,6,o);const m=n[l+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Je(m,e,6,o)}}const Ni=new WeakMap;function Jo(e,t,s=!1){const n=s?Ni:t.emitsCache,o=n.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!K(e)){const a=m=>{const f=Jo(m,t,!0);f&&(l=!0,ge(i,f))};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(X(e)&&n.set(e,null),null):(U(r)?r.forEach(a=>i[a]=null):ge(i,r),X(e)&&n.set(e,i),i)}function Os(e,t){return!e||!ws(t)?!1:(t=t.slice(2).replace(/Once$/,""),Y(e,t[0].toLowerCase()+t.slice(1))||Y(e,ht(t))||Y(e,t))}function Fn(e){const{type:t,vnode:s,proxy:n,withProxy:o,propsOptions:[r],slots:i,attrs:l,emit:a,render:m,renderCache:f,props:p,data:h,setupState:S,ctx:P,inheritAttrs:M}=e,W=xs(e);let k,L;try{if(s.shapeFlag&4){const R=o||n,N=R;k=Be(m.call(N,R,f,p,S,h,P)),L=l}else{const R=t;k=Be(R.length>1?R(p,{attrs:l,slots:i,emit:a}):R(p,null)),L=t.props?l:Fi(l)}}catch(R){Gt.length=0,Ps(R,e,1),k=ze(pt)}let z=k;if(L&&M!==!1){const R=Object.keys(L),{shapeFlag:N}=z;R.length&&N&7&&(r&&R.some(Ss)&&(L=Hi(L,r)),z=Ot(z,L,!1,!0))}return s.dirs&&(z=Ot(z,null,!1,!0),z.dirs=z.dirs?z.dirs.concat(s.dirs):s.dirs),s.transition&&gn(z,s.transition),k=z,xs(W),k}const Fi=e=>{let t;for(const s in e)(s==="class"||s==="style"||ws(s))&&((t||(t={}))[s]=e[s]);return t},Hi=(e,t)=>{const s={};for(const n in e)(!Ss(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Vi(e,t,s){const{props:n,children:o,component:r}=e,{props:i,children:l,patchFlag:a}=t,m=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&a>=0){if(a&1024)return!0;if(a&16)return n?Hn(n,i,m):!!i;if(a&8){const f=t.dynamicProps;for(let p=0;p<f.length;p++){const h=f[p];if(Go(i,n,h)&&!Os(m,h))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:n===i?!1:n?i?Hn(n,i,m):!0:!!i;return!1}function Hn(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const r=n[o];if(Go(t,e,r)&&!Os(s,r))return!0}return!1}function Go(e,t,s){const n=e[s],o=t[s];return s==="style"&&X(n)&&X(o)?!Dt(n,o):n!==o}function Ui({vnode:e,parent:t,suspense:s},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=n,e=o),o===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const Yo={},Zo=()=>Object.create(Yo),Qo=e=>Object.getPrototypeOf(e)===Yo;function Bi(e,t,s,n=!1){const o={},r=Zo();e.propsDefaults=Object.create(null),Xo(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);s?e.props=n?o:qr(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Ki(e,t,s,n){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=G(o),[a]=e.propsOptions;let m=!1;if((n||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let p=0;p<f.length;p++){let h=f[p];if(Os(e.emitsOptions,h))continue;const S=t[h];if(a)if(Y(r,h))S!==r[h]&&(r[h]=S,m=!0);else{const P=we(h);o[P]=Xs(a,l,P,S,e,!1)}else S!==r[h]&&(r[h]=S,m=!0)}}}else{Xo(e,t,o,r)&&(m=!0);let f;for(const p in l)(!t||!Y(t,p)&&((f=ht(p))===p||!Y(t,f)))&&(a?s&&(s[p]!==void 0||s[f]!==void 0)&&(o[p]=Xs(a,l,p,void 0,e,!0)):delete o[p]);if(r!==l)for(const p in r)(!t||!Y(t,p))&&(delete r[p],m=!0)}m&&nt(e.attrs,"set","")}function Xo(e,t,s,n){const[o,r]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(Bt(a))continue;const m=t[a];let f;o&&Y(o,f=we(a))?!r||!r.includes(f)?s[f]=m:(l||(l={}))[f]=m:Os(e.emitsOptions,a)||(!(a in n)||m!==n[a])&&(n[a]=m,i=!0)}if(r){const a=G(s),m=l||te;for(let f=0;f<r.length;f++){const p=r[f];s[p]=Xs(o,a,p,m[p],e,!Y(m,p))}}return i}function Xs(e,t,s,n,o,r){const i=e[s];if(i!=null){const l=Y(i,"default");if(l&&n===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&K(a)){const{propsDefaults:m}=o;if(s in m)n=m[s];else{const f=os(o);n=m[s]=a.call(null,t),f()}}else n=a;o.ce&&o.ce._setProp(s,n)}i[0]&&(r&&!l?n=!1:i[1]&&(n===""||n===ht(s))&&(n=!0))}return n}const Wi=new WeakMap;function er(e,t,s=!1){const n=s?Wi:t.propsCache,o=n.get(e);if(o)return o;const r=e.props,i={},l=[];let a=!1;if(!K(e)){const f=p=>{a=!0;const[h,S]=er(p,t,!0);ge(i,h),S&&l.push(...S)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!a)return X(e)&&n.set(e,kt),kt;if(U(r))for(let f=0;f<r.length;f++){const p=we(r[f]);Vn(p)&&(i[p]=te)}else if(r)for(const f in r){const p=we(f);if(Vn(p)){const h=r[f],S=i[p]=U(h)||K(h)?{type:h}:ge({},h),P=S.type;let M=!1,W=!0;if(U(P))for(let k=0;k<P.length;++k){const L=P[k],z=K(L)&&L.name;if(z==="Boolean"){M=!0;break}else z==="String"&&(W=!1)}else M=K(P)&&P.name==="Boolean";S[0]=M,S[1]=W,(M||Y(S,"default"))&&l.push(p)}}const m=[i,l];return X(e)&&n.set(e,m),m}function Vn(e){return e[0]!=="$"&&!Bt(e)}const vn=e=>e==="_"||e==="_ctx"||e==="$stable",bn=e=>U(e)?e.map(Be):[Be(e)],zi=(e,t,s)=>{if(t._n)return t;const n=ii((...o)=>bn(t(...o)),s);return n._c=!1,n},tr=(e,t,s)=>{const n=e._ctx;for(const o in e){if(vn(o))continue;const r=e[o];if(K(r))t[o]=zi(o,r,n);else if(r!=null){const i=bn(r);t[o]=()=>i}}},sr=(e,t)=>{const s=bn(t);e.slots.default=()=>s},nr=(e,t,s)=>{for(const n in t)(s||!vn(n))&&(e[n]=t[n])},qi=(e,t,s)=>{const n=e.slots=Zo();if(e.vnode.shapeFlag&32){const o=t._;o?(nr(n,t,s),s&&ho(n,"_",o,!0)):tr(t,n)}else t&&sr(e,t)},Ji=(e,t,s)=>{const{vnode:n,slots:o}=e;let r=!0,i=te;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:nr(o,t,s):(r=!t.$stable,tr(t,o)),i=t}else t&&(sr(e,t),i={default:1});if(r)for(const l in o)!vn(l)&&i[l]==null&&delete o[l]},Se=Xi;function Gi(e){return Yi(e)}function Yi(e,t){const s=ks();s.__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:i,createText:l,createComment:a,setText:m,setElementText:f,parentNode:p,nextSibling:h,setScopeId:S=We,insertStaticContent:P}=e,M=(c,d,g,y=null,x=null,v=null,T=void 0,C=null,w=!!d.dynamicChildren)=>{if(c===d)return;c&&!Ht(c,d)&&(y=Q(c),Me(c,x,v,!0),c=null),d.patchFlag===-2&&(w=!1,d.dynamicChildren=null);const{type:b,ref:F,shapeFlag:$}=d;switch(b){case Is:W(c,d,g,y);break;case pt:k(c,d,g,y);break;case ds:c==null&&L(d,g,y,T);break;case ue:Ge(c,d,g,y,x,v,T,C,w);break;default:$&1?N(c,d,g,y,x,v,T,C,w):$&6?Te(c,d,g,y,x,v,T,C,w):($&64||$&128)&&b.process(c,d,g,y,x,v,T,C,w,Lt)}F!=null&&x?zt(F,c&&c.ref,v,d||c,!d):F==null&&c&&c.ref!=null&&zt(c.ref,null,v,c,!0)},W=(c,d,g,y)=>{if(c==null)n(d.el=l(d.children),g,y);else{const x=d.el=c.el;d.children!==c.children&&m(x,d.children)}},k=(c,d,g,y)=>{c==null?n(d.el=a(d.children||""),g,y):d.el=c.el},L=(c,d,g,y)=>{[c.el,c.anchor]=P(c.children,d,g,y,c.el,c.anchor)},z=({el:c,anchor:d},g,y)=>{let x;for(;c&&c!==d;)x=h(c),n(c,g,y),c=x;n(d,g,y)},R=({el:c,anchor:d})=>{let g;for(;c&&c!==d;)g=h(c),o(c),c=g;o(d)},N=(c,d,g,y,x,v,T,C,w)=>{if(d.type==="svg"?T="svg":d.type==="math"&&(T="mathml"),c==null)O(d,g,y,x,v,T,C,w);else{const b=c.el&&c.el._isVueCE?c.el:null;try{b&&b._beginPatch(),J(c,d,x,v,T,C,w)}finally{b&&b._endPatch()}}},O=(c,d,g,y,x,v,T,C)=>{let w,b;const{props:F,shapeFlag:$,transition:D,dirs:B}=c;if(w=c.el=i(c.type,v,F&&F.is,F),$&8?f(w,c.children):$&16&&re(c.children,w,null,y,x,Us(c,v),T,C),B&>(c,null,y,"created"),V(w,c,c.scopeId,T,y),F){for(const ee in F)ee!=="value"&&!Bt(ee)&&r(w,ee,null,F[ee],v,y);"value"in F&&r(w,"value",null,F.value,v),(b=F.onVnodeBeforeMount)&&Fe(b,y,c)}B&>(c,null,y,"beforeMount");const q=Zi(x,D);q&&D.beforeEnter(w),n(w,d,g),((b=F&&F.onVnodeMounted)||q||B)&&Se(()=>{try{b&&Fe(b,y,c),q&&D.enter(w),B&>(c,null,y,"mounted")}finally{}},x)},V=(c,d,g,y,x)=>{if(g&&S(c,g),y)for(let v=0;v<y.length;v++)S(c,y[v]);if(x){let v=x.subTree;if(d===v||lr(v.type)&&(v.ssContent===d||v.ssFallback===d)){const T=x.vnode;V(c,T,T.scopeId,T.slotScopeIds,x.parent)}}},re=(c,d,g,y,x,v,T,C,w=0)=>{for(let b=w;b<c.length;b++){const F=c[b]=C?tt(c[b]):Be(c[b]);M(null,F,d,g,y,x,v,T,C)}},J=(c,d,g,y,x,v,T)=>{const C=d.el=c.el;let{patchFlag:w,dynamicChildren:b,dirs:F}=d;w|=c.patchFlag&16;const $=c.props||te,D=d.props||te;let B;if(g&&xt(g,!1),(B=D.onVnodeBeforeUpdate)&&Fe(B,g,d,c),F&>(d,c,g,"beforeUpdate"),g&&xt(g,!0),($.innerHTML&&D.innerHTML==null||$.textContent&&D.textContent==null)&&f(C,""),b?ae(c.dynamicChildren,b,C,g,y,Us(d,x),v):T||Z(c,d,C,null,g,y,Us(d,x),v,!1),w>0){if(w&16)Pe(C,$,D,g,x);else if(w&2&&$.class!==D.class&&r(C,"class",null,D.class,x),w&4&&r(C,"style",$.style,D.style,x),w&8){const q=d.dynamicProps;for(let ee=0;ee<q.length;ee++){const se=q[ee],ce=$[se],me=D[se];(me!==ce||se==="value")&&r(C,se,ce,me,x,g)}}w&1&&c.children!==d.children&&f(C,d.children)}else!T&&b==null&&Pe(C,$,D,g,x);((B=D.onVnodeUpdated)||F)&&Se(()=>{B&&Fe(B,g,d,c),F&>(d,c,g,"updated")},y)},ae=(c,d,g,y,x,v,T)=>{for(let C=0;C<d.length;C++){const w=c[C],b=d[C],F=w.el&&(w.type===ue||!Ht(w,b)||w.shapeFlag&198)?p(w.el):g;M(w,b,F,null,y,x,v,T,!0)}},Pe=(c,d,g,y,x)=>{if(d!==g){if(d!==te)for(const v in d)!Bt(v)&&!(v in g)&&r(c,v,d[v],null,x,y);for(const v in g){if(Bt(v))continue;const T=g[v],C=d[v];T!==C&&v!=="value"&&r(c,v,C,T,x,y)}"value"in g&&r(c,"value",d.value,g.value,x)}},Ge=(c,d,g,y,x,v,T,C,w)=>{const b=d.el=c?c.el:l(""),F=d.anchor=c?c.anchor:l("");let{patchFlag:$,dynamicChildren:D,slotScopeIds:B}=d;B&&(C=C?C.concat(B):B),c==null?(n(b,g,y),n(F,g,y),re(d.children||[],g,F,x,v,T,C,w)):$>0&&$&64&&D&&c.dynamicChildren&&c.dynamicChildren.length===D.length?(ae(c.dynamicChildren,D,g,x,v,T,C),(d.key!=null||x&&d===x.subTree)&&or(c,d,!0)):Z(c,d,g,F,x,v,T,C,w)},Te=(c,d,g,y,x,v,T,C,w)=>{d.slotScopeIds=C,c==null?d.shapeFlag&512?x.ctx.activate(d,g,y,T,w):St(d,g,y,x,v,T,w):rs(c,d,w)},St=(c,d,g,y,x,v,T)=>{const C=c.component=il(c,y,x);if(Uo(c)&&(C.ctx.renderer=Lt),al(C,!1,T),C.asyncDep){if(x&&x.registerDep(C,he,T),!c.el){const w=C.subTree=ze(pt);k(null,w,d,g),c.placeholder=w.el}}else he(C,c,d,g,x,v,T)},rs=(c,d,g)=>{const y=d.component=c.component;if(Vi(c,d,g))if(y.asyncDep&&!y.asyncResolved){oe(y,d,g);return}else y.next=d,y.update();else d.el=c.el,y.vnode=d},he=(c,d,g,y,x,v,T)=>{const C=()=>{if(c.isMounted){let{next:$,bu:D,u:B,parent:q,vnode:ee}=c;{const Le=rr(c);if(Le){$&&($.el=ee.el,oe(c,$,T)),Le.asyncDep.then(()=>{Se(()=>{c.isUnmounted||b()},x)});return}}let se=$,ce;xt(c,!1),$?($.el=ee.el,oe(c,$,T)):$=ee,D&&us(D),(ce=$.props&&$.props.onVnodeBeforeUpdate)&&Fe(ce,q,$,ee),xt(c,!0);const me=Fn(c),je=c.subTree;c.subTree=me,M(je,me,p(je.el),Q(je),c,x,v),$.el=me.el,se===null&&Ui(c,me.el),B&&Se(B,x),(ce=$.props&&$.props.onVnodeUpdated)&&Se(()=>Fe(ce,q,$,ee),x)}else{let $;const{el:D,props:B}=d,{bm:q,m:ee,parent:se,root:ce,type:me}=c,je=qt(d);xt(c,!1),q&&us(q),!je&&($=B&&B.onVnodeBeforeMount)&&Fe($,se,d),xt(c,!0);{ce.ce&&ce.ce._hasShadowRoot()&&ce.ce._injectChildStyle(me,c.parent?c.parent.type:void 0);const Le=c.subTree=Fn(c);M(null,Le,g,y,c,x,v),d.el=Le.el}if(ee&&Se(ee,x),!je&&($=B&&B.onVnodeMounted)){const Le=d;Se(()=>Fe($,se,Le),x)}(d.shapeFlag&256||se&&qt(se.vnode)&&se.vnode.shapeFlag&256)&&c.a&&Se(c.a,x),c.isMounted=!0,d=g=y=null}};c.scope.on();const w=c.effect=new vo(C);c.scope.off();const b=c.update=w.run.bind(w),F=c.job=w.runIfDirty.bind(w);F.i=c,F.id=c.uid,w.scheduler=()=>mn(F),xt(c,!0),b()},oe=(c,d,g)=>{d.component=c;const y=c.vnode.props;c.vnode=d,c.next=null,Ki(c,d.props,y,g),Ji(c,d.children,g),it(),Mn(c),lt()},Z=(c,d,g,y,x,v,T,C,w=!1)=>{const b=c&&c.children,F=c?c.shapeFlag:0,$=d.children,{patchFlag:D,shapeFlag:B}=d;if(D>0){if(D&128){Ct(b,$,g,y,x,v,T,C,w);return}else if(D&256){Ye(b,$,g,y,x,v,T,C,w);return}}B&8?(F&16&&$e(b,x,v),$!==b&&f(g,$)):F&16?B&16?Ct(b,$,g,y,x,v,T,C,w):$e(b,x,v,!0):(F&8&&f(g,""),B&16&&re($,g,y,x,v,T,C,w))},Ye=(c,d,g,y,x,v,T,C,w)=>{c=c||kt,d=d||kt;const b=c.length,F=d.length,$=Math.min(b,F);let D;for(D=0;D<$;D++){const B=d[D]=w?tt(d[D]):Be(d[D]);M(c[D],B,g,null,x,v,T,C,w)}b>F?$e(c,x,v,!0,!1,$):re(d,g,y,x,v,T,C,w,$)},Ct=(c,d,g,y,x,v,T,C,w)=>{let b=0;const F=d.length;let $=c.length-1,D=F-1;for(;b<=$&&b<=D;){const B=c[b],q=d[b]=w?tt(d[b]):Be(d[b]);if(Ht(B,q))M(B,q,g,null,x,v,T,C,w);else break;b++}for(;b<=$&&b<=D;){const B=c[$],q=d[D]=w?tt(d[D]):Be(d[D]);if(Ht(B,q))M(B,q,g,null,x,v,T,C,w);else break;$--,D--}if(b>$){if(b<=D){const B=D+1,q=B<F?d[B].el:y;for(;b<=D;)M(null,d[b]=w?tt(d[b]):Be(d[b]),g,q,x,v,T,C,w),b++}}else if(b>D)for(;b<=$;)Me(c[b],x,v,!0),b++;else{const B=b,q=b,ee=new Map;for(b=q;b<=D;b++){const ke=d[b]=w?tt(d[b]):Be(d[b]);ke.key!=null&&ee.set(ke.key,b)}let se,ce=0;const me=D-q+1;let je=!1,Le=0;const Nt=new Array(me);for(b=0;b<me;b++)Nt[b]=0;for(b=B;b<=$;b++){const ke=c[b];if(ce>=me){Me(ke,x,v,!0);continue}let Ne;if(ke.key!=null)Ne=ee.get(ke.key);else for(se=q;se<=D;se++)if(Nt[se-q]===0&&Ht(ke,d[se])){Ne=se;break}Ne===void 0?Me(ke,x,v,!0):(Nt[Ne-q]=b+1,Ne>=Le?Le=Ne:je=!0,M(ke,d[Ne],g,null,x,v,T,C,w),ce++)}const Cn=je?Qi(Nt):kt;for(se=Cn.length-1,b=me-1;b>=0;b--){const ke=q+b,Ne=d[ke],Tn=d[ke+1],$n=ke+1<F?Tn.el||ir(Tn):y;Nt[b]===0?M(null,Ne,g,$n,x,v,T,C,w):je&&(se<0||b!==Cn[se]?Ze(Ne,g,$n,2):se--)}}},Ze=(c,d,g,y,x=null)=>{const{el:v,type:T,transition:C,children:w,shapeFlag:b}=c;if(b&6){Ze(c.component.subTree,d,g,y);return}if(b&128){c.suspense.move(d,g,y);return}if(b&64){T.move(c,d,g,Lt);return}if(T===ue){n(v,d,g);for(let $=0;$<w.length;$++)Ze(w[$],d,g,y);n(c.anchor,d,g);return}if(T===ds){z(c,d,g);return}if(y!==2&&b&1&&C)if(y===0)C.beforeEnter(v),n(v,d,g),Se(()=>C.enter(v),x);else{const{leave:$,delayLeave:D,afterLeave:B}=C,q=()=>{c.ctx.isUnmounted?o(v):n(v,d,g)},ee=()=>{v._isLeaving&&v[pi](!0),$(v,()=>{q(),B&&B()})};D?D(v,q,ee):ee()}else n(v,d,g)},Me=(c,d,g,y=!1,x=!1)=>{const{type:v,props:T,ref:C,children:w,dynamicChildren:b,shapeFlag:F,patchFlag:$,dirs:D,cacheIndex:B,memo:q}=c;if($===-2&&(x=!1),C!=null&&(it(),zt(C,null,g,c,!0),lt()),B!=null&&(d.renderCache[B]=void 0),F&256){d.ctx.deactivate(c);return}const ee=F&1&&D,se=!qt(c);let ce;if(se&&(ce=T&&T.onVnodeBeforeUnmount)&&Fe(ce,d,c),F&6)Qe(c.component,g,y);else{if(F&128){c.suspense.unmount(g,y);return}ee&>(c,null,d,"beforeUnmount"),F&64?c.type.remove(c,d,g,Lt,y):b&&!b.hasOnce&&(v!==ue||$>0&&$&64)?$e(b,d,g,!1,!0):(v===ue&&$&384||!x&&F&16)&&$e(w,d,g),y&&I(c)}const me=q!=null&&B==null;(se&&(ce=T&&T.onVnodeUnmounted)||ee||me)&&Se(()=>{ce&&Fe(ce,d,c),ee&>(c,null,d,"unmounted"),me&&(c.el=null)},g)},I=c=>{const{type:d,el:g,anchor:y,transition:x}=c;if(d===ue){_(g,y);return}if(d===ds){R(c);return}const v=()=>{o(g),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(c.shapeFlag&1&&x&&!x.persisted){const{leave:T,delayLeave:C}=x,w=()=>T(g,v);C?C(c.el,v,w):w()}else v()},_=(c,d)=>{let g;for(;c!==d;)g=h(c),o(c),c=g;o(d)},Qe=(c,d,g)=>{const{bum:y,scope:x,job:v,subTree:T,um:C,m:w,a:b}=c;Un(w),Un(b),y&&us(y),x.stop(),v&&(v.flags|=8,Me(T,c,d,g)),C&&Se(C,d),Se(()=>{c.isUnmounted=!0},d)},$e=(c,d,g,y=!1,x=!1,v=0)=>{for(let T=v;T<c.length;T++)Me(c[T],d,g,y,x)},Q=c=>{if(c.shapeFlag&6)return Q(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const d=h(c.anchor||c.el),g=d&&d[fi];return g?h(g):d};let mt=!1;const Sn=(c,d,g)=>{let y;c==null?d._vnode&&(Me(d._vnode,null,null,!0),y=d._vnode.component):M(d._vnode||null,c,d,null,null,null,g),d._vnode=c,mt||(mt=!0,Mn(y),jo(),mt=!1)},Lt={p:M,um:Me,m:Ze,r:I,mt:St,mc:re,pc:Z,pbc:ae,n:Q,o:e};return{render:Sn,hydrate:void 0,createApp:Di(Sn)}}function Us({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function xt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function or(e,t,s=!1){const n=e.children,o=t.children;if(U(n)&&U(o))for(let r=0;r<n.length;r++){const i=n[r];let l=o[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[r]=tt(o[r]),l.el=i.el),!s&&l.patchFlag!==-2&&or(i,l)),l.type===Is&&(l.patchFlag===-1&&(l=o[r]=tt(l)),l.el=i.el),l.type===pt&&!l.el&&(l.el=i.el)}}function Qi(e){const t=e.slice(),s=[0];let n,o,r,i,l;const a=e.length;for(n=0;n<a;n++){const m=e[n];if(m!==0){if(o=s[s.length-1],e[o]<m){t[n]=o,s.push(n);continue}for(r=0,i=s.length-1;r<i;)l=r+i>>1,e[s[l]]<m?r=l+1:i=l;m<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function rr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:rr(t)}function Un(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ir(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ir(t.subTree):null}const lr=e=>e.__isSuspense;function Xi(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):ri(e)}const ue=Symbol.for("v-fgt"),Is=Symbol.for("v-txt"),pt=Symbol.for("v-cmt"),ds=Symbol.for("v-stc"),Gt=[];let Ee=null;function A(e=!1){Gt.push(Ee=e?null:[])}function el(){Gt.pop(),Ee=Gt[Gt.length-1]||null}let Xt=1;function Bn(e,t=!1){Xt+=e,e<0&&Ee&&t&&(Ee.hasOnce=!0)}function ar(e){return e.dynamicChildren=Xt>0?Ee||kt:null,el(),Xt>0&&Ee&&Ee.push(e),e}function E(e,t,s,n,o,r){return ar(u(e,t,s,n,o,r,!0))}function cr(e,t,s,n,o){return ar(ze(e,t,s,n,o,!0))}function ur(e){return e?e.__v_isVNode===!0:!1}function Ht(e,t){return e.type===t.type&&e.key===t.key}const fr=({key:e})=>e??null,ps=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?le(e)||be(e)||K(e)?{i:Ae,r:e,k:t,f:!!s}:e:null);function u(e,t=null,s=null,n=0,o=null,r=e===ue?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fr(t),ref:t&&ps(t),scopeId:No,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ae};return l?(_n(a,s),r&128&&e.normalize(a)):s&&(a.shapeFlag|=le(s)?8:16),Xt>0&&!i&&Ee&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&Ee.push(a),a}const ze=tl;function tl(e,t=null,s=null,n=0,o=null,r=!1){if((!e||e===Ko)&&(e=pt),ur(e)){const l=Ot(e,t,!0);return s&&_n(l,s),Xt>0&&!r&&Ee&&(l.shapeFlag&6?Ee[Ee.indexOf(e)]=l:Ee.push(l)),l.patchFlag=-2,l}if(pl(e)&&(e=e.__vccOpts),t){t=sl(t);let{class:l,style:a}=t;l&&!le(l)&&(t.class=fe(l)),X(a)&&(hn(a)&&!U(a)&&(a=ge({},a)),t.style=As(a))}const i=le(e)?1:lr(e)?128:di(e)?64:X(e)?4:K(e)?2:0;return u(e,t,s,n,o,i,r,!0)}function sl(e){return e?hn(e)||Qo(e)?ge({},e):e:null}function Ot(e,t,s=!1,n=!1){const{props:o,ref:r,patchFlag:i,children:l,transition:a}=e,m=t?nl(o||{},t):o,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:m,key:m&&fr(m),ref:t&&t.ref?s&&r?U(r)?r.concat(ps(t)):[r,ps(t)]:ps(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ue?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ot(e.ssContent),ssFallback:e.ssFallback&&Ot(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&n&&gn(f,a.clone(f)),f}function yn(e=" ",t=0){return ze(Is,null,e,t)}function Ve(e,t){const s=ze(ds,null,e);return s.staticCount=t,s}function ie(e="",t=!1){return t?(A(),cr(pt,null,e)):ze(pt,null,e)}function Be(e){return e==null||typeof e=="boolean"?ze(pt):U(e)?ze(ue,null,e.slice()):ur(e)?tt(e):ze(Is,null,String(e))}function tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ot(e)}function _n(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(U(t))s=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),_n(e,o()),o._c&&(o._d=!0));return}else{s=32;const o=t._;!o&&!Qo(t)?t._ctx=Ae:o===3&&Ae&&(Ae.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:Ae},s=32):(t=String(t),n&64?(s=16,t=[yn(t)]):s=8);e.children=t,e.shapeFlag|=s}function nl(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=fe([t.class,n.class]));else if(o==="style")t.style=As([t.style,n.style]);else if(ws(o)){const r=t[o],i=n[o];i&&r!==i&&!(U(r)&&r.includes(i))?t[o]=r?[].concat(r,i):i:i==null&&r==null&&!Ss(o)&&(t[o]=i)}else o!==""&&(t[o]=n[o])}return t}function Fe(e,t,s,n=null){Je(e,t,7,[s,n])}const ol=qo();let rl=0;function il(e,t,s){const n=e.type,o=(t?t.appContext:e.appContext)||ol,r={uid:rl++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new kr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:er(n,o),emitsOptions:Jo(n,o),emit:null,emitted:null,propsDefaults:te,inheritAttrs:n.inheritAttrs,ctx:te,data:te,props:te,attrs:te,slots:te,refs:te,setupState:te,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Li.bind(null,r),e.ce&&e.ce(r),r}let ve=null;const ll=()=>ve||Ae;let ys,en;{const e=ks(),t=(s,n)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(n),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};ys=t("__VUE_INSTANCE_SETTERS__",s=>ve=s),en=t("__VUE_SSR_SETTERS__",s=>es=s)}const os=e=>{const t=ve;return ys(e),e.scope.on(),()=>{e.scope.off(),ys(t)}},Kn=()=>{ve&&ve.scope.off(),ys(null)};function dr(e){return e.vnode.shapeFlag&4}let es=!1;function al(e,t=!1,s=!1){t&&en(t);const{props:n,children:o}=e.vnode,r=dr(e);Bi(e,n,r,t),qi(e,o,s||t);const i=r?cl(e,t):void 0;return t&&en(!1),i}function cl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ai);const{setup:n}=s;if(n){it();const o=e.setupContext=n.length>1?fl(e):null,r=os(e),i=ns(n,e,0,[e.props,o]),l=uo(i);if(lt(),r(),(l||e.sp)&&!qt(e)&&Vo(e),l){if(i.then(Kn,Kn),t)return i.then(a=>{Wn(e,a)}).catch(a=>{Ps(a,e,0)});e.asyncDep=i}else Wn(e,i)}else pr(e)}function Wn(e,t,s){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:X(t)&&(e.setupState=Oo(t)),pr(e)}function pr(e,t,s){const n=e.type;e.render||(e.render=n.render||We);{const o=os(e);it();try{Ei(e)}finally{lt(),o()}}}const ul={get(e,t){return xe(e,"get",""),e[t]}};function fl(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ul),slots:e.slots,emit:e.emit,expose:t}}function Rs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Oo(Jr(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Jt)return Jt[s](e)},has(t,s){return s in t||s in Jt}})):e.proxy}function dl(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function pl(e){return K(e)&&"__vccOpts"in e}const _t=(e,t)=>ei(e,t,es),hl="3.5.31";/**
|
|
61
61
|
* @vue/runtime-dom v3.5.31
|
|
62
62
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
63
63
|
* @license MIT
|
|
64
|
-
**/let Zs;const Kn=typeof window<"u"&&window.trustedTypes;if(Kn)try{Zs=Kn.createPolicy("vue",{createHTML:e=>e})}catch{}const dr=Zs?e=>Zs.createHTML(e):e=>e,ml="http://www.w3.org/2000/svg",gl="http://www.w3.org/1998/Math/MathML",Ge=typeof document<"u"?document:null,Wn=Ge&&Ge.createElement("template"),xl={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const o=t==="svg"?Ge.createElementNS(ml,e):t==="mathml"?Ge.createElementNS(gl,e):s?Ge.createElement(e,{is:s}):Ge.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>Ge.createTextNode(e),createComment:e=>Ge.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ge.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,o,r){const i=s?s.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===r||!(o=o.nextSibling)););else{Wn.innerHTML=dr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Wn.content;if(n==="svg"||n==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},vl=Symbol("_vtc");function yl(e,t,s){const n=e[vl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const zn=Symbol("_vod"),bl=Symbol("_vsh"),_l=Symbol(""),wl=/(?:^|;)\s*display\s*:/;function Sl(e,t,s){const n=e.style,o=re(s);let r=!1;if(s&&!o){if(t)if(re(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();s[l]==null&&fs(n,l,"")}else for(const i in t)s[i]==null&&fs(n,i,"");for(const i in s)i==="display"&&(r=!0),fs(n,i,s[i])}else if(o){if(t!==s){const i=n[_l];i&&(s+=";"+i),n.cssText=s,r=wl.test(s)}}else t&&e.removeAttribute("style");zn in e&&(e[zn]=r?n.display:"",e[bl]&&(n.display="none"))}const qn=/\s*!important$/;function fs(e,t,s){if(H(s))s.forEach(n=>fs(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Cl(e,t);qn.test(s)?e.setProperty(ct(n),s.replace(qn,""),"important"):e[n]=s}}const Jn=["Webkit","Moz","ms"],Fs={};function Cl(e,t){const s=Fs[t];if(s)return s;let n=_e(t);if(n!=="filter"&&n in e)return Fs[t]=n;n=_s(n);for(let o=0;o<Jn.length;o++){const r=Jn[o]+n;if(r in e)return Fs[t]=r}return t}const Gn="http://www.w3.org/1999/xlink";function Yn(e,t,s,n,o,r=Tr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Gn,t.slice(6,t.length)):e.setAttributeNS(Gn,t,s):s==null||r&&!po(s)?e.removeAttribute(t):e.setAttribute(t,r?"":We(s)?String(s):s)}function Zn(e,t,s,n,o){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?dr(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(l!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=po(s):s==null&&l==="string"?(s="",i=!0):l==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(o||t)}function lt(e,t,s,n){e.addEventListener(t,s,n)}function Tl(e,t,s,n){e.removeEventListener(t,s,n)}const Qn=Symbol("_vei");function $l(e,t,s,n,o=null){const r=e[Qn]||(e[Qn]={}),i=r[t];if(n&&i)i.value=n;else{const[l,c]=kl(t);if(n){const d=r[t]=Ml(n,o);lt(e,l,d,c)}else i&&(Tl(e,l,i,c),r[t]=void 0)}}const Xn=/(?:Once|Passive|Capture)$/;function kl(e){let t;if(Xn.test(e)){t={};let n;for(;n=e.match(Xn);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ct(e.slice(2)),t]}let Hs=0;const El=Promise.resolve(),Al=()=>Hs||(El.then(()=>Hs=0),Hs=Date.now());function Ml(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;ze(Pl(n,s.value),t,5,[n])};return s.value=e,s.attached=Al(),s}function Pl(e,t){if(H(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const eo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ol=(e,t,s,n,o,r)=>{const i=o==="svg";t==="class"?yl(e,n,i):t==="style"?Sl(e,s,n):vs(t)?ys(t)||$l(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Il(e,t,n,i))?(Zn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Yn(e,t,n,i,r,t!=="value")):e._isVueCE&&(Rl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!re(n)))?Zn(e,_e(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Yn(e,t,n,i))};function Il(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&eo(t)&&K(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return eo(t)&&re(s)?!1:t in e}function Rl(e,t){const s=e._def.props;if(!s)return!1;const n=_e(t);return Array.isArray(s)?s.some(o=>_e(o)===n):Object.keys(s).some(o=>_e(o)===n)}const Et=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?s=>ls(t,s):t};function Dl(e){e.target.composing=!0}function to(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Xe=Symbol("_assign");function so(e,t,s){return t&&(e=e.trim()),s&&(e=ws(e)),e}const Ce={created(e,{modifiers:{lazy:t,trim:s,number:n}},o){e[Xe]=Et(o);const r=n||o.props&&o.props.type==="number";lt(e,t?"change":"input",i=>{i.target.composing||e[Xe](so(e.value,s,r))}),(s||r)&<(e,"change",()=>{e.value=so(e.value,s,r)}),t||(lt(e,"compositionstart",Dl),lt(e,"compositionend",to),lt(e,"change",to))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:o,number:r}},i){if(e[Xe]=Et(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?ws(e.value):e.value,c=t??"";if(l===c)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(n&&t===s||o&&e.value.trim()===c)||(e.value=c)}},no={deep:!0,created(e,t,s){e[Xe]=Et(s),lt(e,"change",()=>{const n=e._modelValue,o=Yt(e),r=e.checked,i=e[Xe];if(H(n)){const l=sn(n,o),c=l!==-1;if(r&&!c)i(n.concat(o));else if(!r&&c){const d=[...n];d.splice(l,1),i(d)}}else if(At(n)){const l=new Set(n);r?l.add(o):l.delete(o),i(l)}else i(pr(e,r))})},mounted:oo,beforeUpdate(e,t,s){e[Xe]=Et(s),oo(e,t,s)}};function oo(e,{value:t,oldValue:s},n){e._modelValue=t;let o;if(H(t))o=sn(t,n.props.value)>-1;else if(At(t))o=t.has(n.props.value);else{if(t===s)return;o=Mt(t,pr(e,!0))}e.checked!==o&&(e.checked=o)}const Qs={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const o=At(t);lt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?ws(Yt(i)):Yt(i));e[Xe](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,Oo(()=>{e._assigning=!1})}),e[Xe]=Et(n)},mounted(e,{value:t}){ro(e,t)},beforeUpdate(e,t,s){e[Xe]=Et(s)},updated(e,{value:t}){e._assigning||ro(e,t)}};function ro(e,t){const s=e.multiple,n=H(t);if(!(s&&!n&&!At(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],l=Yt(i);if(s)if(n){const c=typeof l;c==="string"||c==="number"?i.selected=t.some(d=>String(d)===String(l)):i.selected=sn(t,l)>-1}else i.selected=t.has(l);else if(Mt(Yt(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Yt(e){return"_value"in e?e._value:e.value}function pr(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const Ll={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},jl=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(o=>{if(!("key"in o))return;const r=ct(o.key);if(t.some(i=>i===r||Ll[i]===r))return e(o)}))},Nl=me({patchProp:Ol},xl);let io;function Fl(){return io||(io=Gi(Nl))}const Hl=((...e)=>{const t=Fl().createApp(...e),{mount:s}=t;return t.mount=n=>{const o=Ul(n);if(!o)return;const r=t._component;!K(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=s(o,!1,Vl(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function Vl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ul(e){return re(e)?document.querySelector(e):e}let yn="";function Lt(e){yn=e}function mt(){return yn}async function ue(e,t){const s=await fetch(e,{...t,headers:{Authorization:`Bearer ${yn}`,"Content-Type":"application/json",...(t==null?void 0:t.headers)??{}}});if(!s.ok){const n=new Error(s.statusText);throw n.status=s.status,n}return s.json()}const Bl={class:"animate-fade-in"},Kl={key:0,class:"text-center py-12 text-textSecondary"},Wl={key:1,class:"text-center text-textSecondary py-12"},zl={key:2,class:"space-y-3"},ql={class:"flex items-center justify-between"},Jl={class:"flex items-center gap-3"},Gl={class:"font-medium"},Yl={class:"text-accentLight"},Zl={class:"text-textSecondary text-xs"},Ql={key:2,class:"text-muted italic"},Xl={class:"text-xs text-textSecondary font-mono"},ea={class:"text-right"},ta={class:"flex items-center gap-2 justify-end"},sa={class:"text-xs text-textSecondary"},na=ut({__name:"SessionsTab",props:{status:{}},setup(e){const t=e,s=L([]),n=L(!0);async function o(){n.value=!0;try{const d=await ue("/api/status");s.value=(d.sessions||[]).slice().sort((a,p)=>a.status==="active"&&p.status!=="active"?-1:a.status!=="active"&&p.status==="active"?1:p.lastActivity-a.lastActivity)}finally{n.value=!1}}const r=kt(()=>{var a;return(((a=t.status)==null?void 0:a.sessions)??s.value).slice().sort((p,g)=>p.status==="active"&&g.status!=="active"?-1:p.status!=="active"&&g.status==="active"?1:g.lastActivity-p.lastActivity)});function i(d){const a=Math.floor((Date.now()-d.lastActivity)/6e4);return d.status==="disconnected"?{label:`Disconnected${a>0?` — ${a}m ago`:""}`,color:"text-muted"}:a<5?{label:"Active",color:"text-success"}:a<30?{label:`Idle ${a}m`,color:"text-warn"}:{label:`Dormant ${a}m`,color:"text-danger"}}function l(d){if(!d.lastWaitCallAt)return"";const a=Math.floor((Date.now()-d.lastWaitCallAt)/6e4);return a<5?`Polling — ${a===0?"just now":a+"m ago"}`:`Last poll — ${a}m ago`}function c(d){return d.lastWaitCallAt?Math.floor((Date.now()-d.lastWaitCallAt)/6e4)<5?"text-success":"text-warn":""}return ft(o),(d,a)=>($(),A("div",Bl,[n.value&&r.value.length===0?($(),A("div",Kl,"Loading sessions...")):r.value.length===0?($(),A("div",Wl,"No sessions")):($(),A("div",zl,[($(!0),A(ae,null,nt(r.value,p=>($(),A("div",{key:p.mcpSessionId,class:de(["glass rounded-xl p-4 animate-slide-up",p.status==="disconnected"?"opacity-60":""])},[f("div",ql,[f("div",Jl,[f("span",{class:de(["w-2.5 h-2.5 rounded-full",p.status==="disconnected"?"bg-muted":Math.floor((Date.now()-p.lastActivity)/6e4)<5?"bg-success":Math.floor((Date.now()-p.lastActivity)/6e4)<30?"bg-warn":"bg-danger"])},null,2),f("div",null,[f("div",Gl,[p.topicName?($(),A(ae,{key:0},[f("span",Yl,O(p.topicName),1),f("span",Zl," (thread "+O(p.threadId)+")",1)],64)):p.threadId!=null?($(),A(ae,{key:1},[xn("Thread "+O(p.threadId),1)],64)):($(),A("span",Ql,"Awaiting start_session…"))]),f("div",Xl,O(p.mcpSessionId.slice(0,12))+"...",1)])]),f("div",ea,[f("div",ta,[f("span",{class:de(["text-sm font-medium",i(p).color])},O(i(p).label),3),l(p)?($(),A("span",{key:0,class:de(["text-xs ml-2",c(p)])},O(l(p)),3)):le("",!0)]),f("div",sa,O(p.transportType),1)])])],2))),128))]))]))}}),oa={class:"animate-fade-in"},ra={class:"flex flex-wrap items-center gap-3 mb-4"},ia={key:0,class:"text-center py-12 text-textSecondary"},la={key:1,class:"text-center py-12 text-textSecondary"},aa={key:2,class:"space-y-2"},ca={class:"flex items-start justify-between gap-3"},ua={class:"flex-1 min-w-0"},fa={class:"flex items-center gap-2 mb-1"},da={key:0,class:"type-badge",style:{background:"rgba(239,68,68,0.15)",color:"#f87171"}},pa={key:1,class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},ha={class:"text-xs text-textSecondary"},ma={class:"text-sm text-textPrimary leading-relaxed"},ga={class:"flex flex-wrap gap-1.5 mt-2"},xa={class:"text-right shrink-0"},va={class:"text-sm font-mono text-textSecondary"},ya={class:"text-xs text-muted"},ba={class:"text-xs text-muted"},_a=ut({__name:"MemoryNotesTab",setup(e){const t=L([]),s=L(!1),n=L(""),o=L("created_at"),r=L("");let i=null;async function l(){s.value=!0;try{const a=r.value.trim();let p;if(a)p=await ue(`/api/search?q=${encodeURIComponent(a)}&limit=50`);else{const g=new URLSearchParams({limit:"50",sort:o.value});n.value&&g.set("type",n.value),p=await ue(`/api/notes?${g}`)}t.value=p}finally{s.value=!1}}function c(){i&&clearTimeout(i),i=setTimeout(l,300)}function d(a){if(!a)return"never";const p=Date.now()-new Date(a).getTime(),g=Math.floor(p/6e4);if(g<1)return"just now";if(g<60)return`${g}m ago`;const C=Math.floor(g/60);return C<24?`${C}h ago`:`${Math.floor(C/24)}d ago`}return ft(l),(a,p)=>($(),A("div",oa,[f("div",ra,[fe(f("input",{"onUpdate:modelValue":p[0]||(p[0]=g=>r.value=g),onInput:c,type:"text",placeholder:"Search notes...",class:"flex-1 min-w-[200px] px-4 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted focus:outline-none focus:border-accent transition"},null,544),[[Ce,r.value]]),fe(f("select",{"onUpdate:modelValue":p[1]||(p[1]=g=>n.value=g),onChange:l,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none"},[...p[3]||(p[3]=[Fe('<option value="">All types</option><option value="fact">Facts</option><option value="preference">Preferences</option><option value="pattern">Patterns</option><option value="entity">Entities</option><option value="relationship">Relationships</option>',6)])],544),[[Qs,n.value]]),fe(f("select",{"onUpdate:modelValue":p[2]||(p[2]=g=>o.value=g),onChange:l,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none"},[...p[4]||(p[4]=[f("option",{value:"created_at"},"Newest",-1),f("option",{value:"confidence"},"Confidence",-1),f("option",{value:"access_count"},"Most accessed",-1)])],544),[[Qs,o.value]])]),s.value?($(),A("div",ia,"Loading notes...")):t.value.length===0?($(),A("div",la,"No notes found")):($(),A("div",aa,[($(!0),A(ae,null,nt(t.value,g=>($(),A("div",{key:g.noteId,class:de(["glass rounded-xl p-4 animate-fade-in",`priority-${g.priority||0}`])},[f("div",ca,[f("div",ua,[f("div",fa,[f("span",{class:de(["type-badge",`type-${g.type}`])},O(g.type),3),g.priority>=2?($(),A("span",da,"HIGH IMPORTANCE")):g.priority===1?($(),A("span",pa,"NOTABLE")):le("",!0),f("span",ha,O(g.noteId),1)]),f("p",ma,O(g.content),1),f("div",ga,[($(!0),A(ae,null,nt(g.keywords||[],C=>($(),A("span",{key:C,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},O(C),1))),128))])]),f("div",xa,[f("div",va,O(((Number(g.confidence)||0)*100).toFixed(0))+"%",1),f("div",ya,O(d(g.createdAt)),1),f("div",ba,O(g.accessCount??0)+" hits",1)])])],2))),128))]))]))}}),wa={class:"animate-fade-in"},Sa={class:"flex items-center gap-3 mb-4"},Ca=["disabled"],Ta={key:0,class:"text-center py-12 text-textSecondary text-sm"},$a={key:1,class:"text-center py-12 text-textSecondary"},ka={key:2,class:"space-y-2"},Ea={class:"flex items-start gap-3"},Aa={class:"text-lg"},Ma={class:"flex-1 min-w-0"},Pa={class:"flex items-center gap-2 mb-1"},Oa={class:"type-badge type-fact"},Ia={class:"text-xs text-textSecondary font-mono"},Ra={class:"text-xs text-muted"},Da={class:"text-sm text-textSecondary leading-relaxed break-words"},La={class:"text-xs text-muted shrink-0"},ja=ut({__name:"EpisodesTab",setup(e){const t=L([]),s=L(!1),n=L(""),o=L(!1),r={text:"💬",voice:"🎤",image:"🖼️",file:"📎",system:"⚙️"};async function i(){s.value=!0;try{let d="/api/episodes?limit=30";n.value&&(d+=`&threadId=${n.value}`),t.value=await ue(d),o.value=!0}finally{s.value=!1}}function l(d){if(!d)return"never";const a=Date.now()-new Date(d).getTime(),p=Math.floor(a/6e4);if(p<1)return"just now";if(p<60)return`${p}m ago`;const g=Math.floor(p/60);return g<24?`${g}h ago`:`${Math.floor(g/24)}d ago`}function c(d){return d?typeof d=="object"?JSON.stringify(d).slice(0,300):String(d).slice(0,300):"(no content)"}return(d,a)=>($(),A("div",wa,[f("div",Sa,[fe(f("input",{"onUpdate:modelValue":a[0]||(a[0]=p=>n.value=p),type:"number",placeholder:"Thread ID (optional)",class:"w-48 px-4 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted focus:outline-none focus:border-accent transition"},null,512),[[Ce,n.value]]),f("button",{onClick:i,disabled:s.value,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-sm font-medium transition"},O(s.value?"Loading...":"Load"),9,Ca)]),o.value?t.value.length===0?($(),A("div",$a,"No episodes")):($(),A("div",ka,[($(!0),A(ae,null,nt(t.value,p=>($(),A("div",{key:p.episodeId,class:"glass rounded-xl p-4 animate-fade-in"},[f("div",Ea,[f("span",Aa,O(r[p.modality]||"📝"),1),f("div",Ma,[f("div",Pa,[f("span",Oa,O(p.type||"unknown"),1),f("span",Ia,O(p.episodeId||"-"),1),f("span",Ra,O(l(p.createdAt)),1)]),f("p",Da,O(c(p.content)),1)]),f("div",La,"imp: "+O(((Number(p.importance)||0)*100).toFixed(0))+"%",1)])]))),128))])):($(),A("div",Ta,'Click "Load" to fetch episodes'))]))}}),Na={class:"animate-fade-in"},Fa={key:0,class:"text-center py-12 text-textSecondary"},Ha={key:1,class:"text-center py-12 text-textSecondary"},Va={key:2,class:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3"},Ua={class:"font-medium text-sm"},Ba={class:"flex items-center justify-between mt-2"},Ka={class:"text-lg font-bold font-mono text-accent"},Wa={class:"text-xs text-muted"},za=ut({__name:"TopicsTab",setup(e){const t=L([]),s=L(!0);async function n(){s.value=!0;try{t.value=await ue("/api/topics")}finally{s.value=!1}}function o(c){return(c.semanticCount||0)+(c.proceduralCount||0)}function r(c){if(!c)return"never";const d=Date.now()-new Date(c).getTime(),a=Math.floor(d/6e4);if(a<1)return"just now";if(a<60)return`${a}m ago`;const p=Math.floor(a/60);return p<24?`${p}h ago`:`${Math.floor(p/24)}d ago`}const i=()=>t.value.slice().sort((c,d)=>o(d)-o(c)),l=()=>{const c=t.value.map(d=>o(d));return Math.max(...c,1)};return ft(n),(c,d)=>($(),A("div",Na,[s.value?($(),A("div",Fa,"Loading topics...")):t.value.length===0?($(),A("div",Ha,"No topics yet")):($(),A("div",Va,[($(!0),A(ae,null,nt(i(),a=>($(),A("div",{key:a.topic,class:"glass rounded-xl p-4 animate-slide-up",style:Qt({borderLeft:`3px solid rgba(99,102,241,${Math.max(.15,o(a)/l())})`})},[f("div",Ua,O(a.topic||"Unknown"),1),f("div",Ba,[f("span",Ka,O(o(a)),1),f("span",Wa,O(r(a.lastUpdated)),1)])],4))),128))]))]))}}),qa={class:"animate-fade-in space-y-6"},Ja={class:"glass rounded-xl p-4"},Ga={class:"flex flex-wrap items-center gap-4 mb-4"},Ya={key:0,class:"text-sm text-success"},Za={class:"flex flex-wrap items-center gap-3"},Qa={key:0,class:"text-sm text-success"},Xa={class:"flex flex-wrap items-center gap-3 mb-4"},ec={key:0,class:"text-sm text-success"},tc={class:"glass rounded-xl p-6"},sc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},nc={class:"flex items-center gap-2"},oc={key:0,class:"text-sm text-success"},rc={key:0,class:"mb-3"},ic={class:"mt-4"},lc=["innerHTML"],ac={class:"glass rounded-xl p-6"},cc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},uc={class:"flex items-center gap-2"},fc={key:0,class:"text-sm text-success"},dc={class:"mb-4 flex flex-wrap items-center gap-3"},pc={class:"flex items-center gap-2"},hc={class:"font-mono text-sm text-textPrimary"},mc={key:0,class:"mb-3"},gc={class:"flex flex-wrap gap-2 mb-3"},xc=["onClick"],vc={class:"mt-4"},yc=["innerHTML"],bc=ut({__name:"TemplatesTab",setup(e){function t(k){return k.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\{\{([A-Z_]+)\}\}/g,'<span class="text-accentLight" style="background:rgba(99,102,241,0.1);padding:0 2px;border-radius:3px">{{$1}}</span>')}const s=L("copilot"),n=L(""),o=L(""),r=L(""),i=L(50),l=L(""),c=L(""),d=L(!0),a=L(""),p=L(!1),g=L(""),C=L(!0),U=L(""),I=L(!1),W=L([]),P=L("");async function V(){await Promise.all([z(),D(),j(),M(),N()])}async function z(){try{const k=await ue("/api/settings/agent-type");s.value=k.agentType||"copilot"}catch{}}async function D(){try{const k=await ue("/api/settings/claude-mcp-config");o.value=k.path||""}catch{}}async function j(){try{const k=await ue("/api/settings/bootstrap-message-count");i.value=k.count??50}catch{}}async function M(){try{const k=await ue("/api/templates");if(k.templates&&k.templates.length>0){const S=k.templates[0];c.value=S.content||"",d.value=S.isDefault??!0}}catch{}}async function N(){try{const[k,S,oe]=await Promise.all([ue("/api/templates/drive"),ue("/api/templates/drive-presets"),ue("/api/settings/dmn-activation-hours")]);W.value=S.presets||[],P.value=String(oe.value??"not set"),k.custom?(g.value=k.custom,C.value=!1):(g.value=k.default||"",C.value=!0)}catch{}}async function ne(){try{await ue("/api/settings/agent-type",{method:"POST",body:JSON.stringify({agentType:s.value})}),await ue("/api/templates/reminders",{method:"DELETE"}),n.value="Saved ✓",setTimeout(()=>{n.value=""},3e3),await M()}catch(k){n.value="Error: "+k.message}}async function Y(){try{await ue("/api/settings/bootstrap-message-count",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:i.value})}),l.value="Saved ✓",setTimeout(()=>{l.value=""},3e3)}catch(k){l.value="Error: "+k.message}}async function ce(){const k=o.value.trim();if(!k){r.value="Path is empty",setTimeout(()=>{r.value=""},3e3);return}try{await ue("/api/settings/claude-mcp-config",{method:"POST",body:JSON.stringify({path:k})}),r.value="Saved ✓",setTimeout(()=>{r.value=""},3e3)}catch(S){r.value="Error: "+S.message}}async function Ae(){try{const k=await fetch("/api/templates/reminders",{method:"POST",headers:{Authorization:`Bearer ${mt()}`,"Content-Type":"application/json"},body:JSON.stringify({content:c.value})});if(!k.ok)throw new Error(k.statusText);d.value=!1,a.value="Saved ✓",setTimeout(()=>{a.value=""},3e3)}catch(k){a.value="Error: "+k.message}}async function qe(){if(confirm("Reset to default template? Your customizations will be lost."))try{const k=await fetch("/api/templates/reminders",{method:"DELETE",headers:{Authorization:`Bearer ${mt()}`}});if(!k.ok)throw new Error(k.statusText);await M(),a.value="Reset to default ✓",setTimeout(()=>{a.value=""},3e3)}catch(k){a.value="Error: "+k.message}}async function Te(){const k=g.value;if(!k.trim()){U.value="Template is empty — load a preset first",setTimeout(()=>{U.value=""},3e3);return}try{const S=await fetch("/api/templates/drive",{method:"POST",headers:{Authorization:`Bearer ${mt()}`,"Content-Type":"application/json"},body:JSON.stringify({content:k})});if(!S.ok)throw new Error(S.statusText);C.value=!1,U.value="Saved ✓",setTimeout(()=>{U.value=""},3e3)}catch(S){U.value="Error: "+S.message}}async function vt(){if(confirm("Reset drive template? The custom template will be removed."))try{const k=await fetch("/api/templates/drive",{method:"DELETE",headers:{Authorization:`Bearer ${mt()}`}});if(!k.ok)throw new Error(k.statusText);await N(),U.value="Reset to default ✓",setTimeout(()=>{U.value=""},3e3)}catch(k){U.value="Error: "+k.message}}function ts(k){g.value=k.content,C.value=!1}const pe=kt(()=>t(c.value)),se=kt(()=>g.value?t(g.value):'<span style="color:#6b7280">(no template loaded)</span>');return ft(V),(k,S)=>($(),A("div",qa,[f("div",Ja,[f("div",Ga,[S[8]||(S[8]=f("label",{class:"text-sm font-medium text-textSecondary"},"Agent Type",-1)),fe(f("select",{"onUpdate:modelValue":S[0]||(S[0]=oe=>s.value=oe),onChange:ne,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},[...S[7]||(S[7]=[f("option",{value:"copilot"},"Copilot",-1),f("option",{value:"claude"},"Claude",-1),f("option",{value:"cursor"},"Cursor",-1)])],544),[[Qs,s.value]]),n.value?($(),A("span",Ya,O(n.value),1)):le("",!0),S[9]||(S[9]=f("span",{class:"text-xs text-muted"},"Changes which default reminders template is used",-1))]),f("div",Za,[S[10]||(S[10]=f("label",{class:"text-sm font-medium text-textSecondary"},"Claude MCP Config Path",-1)),fe(f("input",{"onUpdate:modelValue":S[1]||(S[1]=oe=>o.value=oe),type:"text",placeholder:"~/.claude/settings.json",class:"flex-1 min-w-[260px] px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted font-mono focus:outline-none focus:border-accent transition"},null,512),[[Ce,o.value]]),f("button",{onClick:ce,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save"),r.value?($(),A("span",Qa,O(r.value),1)):le("",!0)]),f("div",Xa,[S[11]||(S[11]=f("label",{class:"text-sm font-medium text-textSecondary"},"Bootstrap Messages",-1)),fe(f("input",{"onUpdate:modelValue":S[2]||(S[2]=oe=>i.value=oe),type:"number",min:"0",max:"500",class:"w-24 px-3 py-2 rounded-xl bg-card border border-gray-700 text-text text-sm focus:border-accent focus:outline-none"},null,512),[[Ce,i.value,void 0,{number:!0}]]),f("button",{onClick:Y,class:"px-4 py-2 rounded-xl bg-accent text-white text-sm font-medium hover:bg-accent/80 transition-colors"},"Save"),l.value?($(),A("span",ec,O(l.value),1)):le("",!0),S[12]||(S[12]=f("span",{class:"text-xs text-muted"},"Number of recent messages injected as warm context (0 = off)",-1))])]),f("div",tc,[f("div",sc,[S[13]||(S[13]=f("div",null,[f("h3",{class:"text-lg font-semibold"},"Reminders Template"),f("p",{class:"text-sm text-textSecondary mt-1"},"Edit the system prompt template sent with every reminder")],-1)),f("div",nc,[a.value?($(),A("span",oc,O(a.value),1)):le("",!0),f("button",{onClick:qe,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset to Default"),f("button",{onClick:Ae,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),d.value?($(),A("div",rc,[...S[14]||(S[14]=[f("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"USING DEFAULT — edit and save to customize",-1)])])):le("",!0),fe(f("textarea",{"onUpdate:modelValue":S[3]||(S[3]=oe=>c.value=oe),rows:"20",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Loading..."},null,512),[[Ce,c.value]]),f("div",ic,[f("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:S[4]||(S[4]=oe=>p.value=!p.value)},[($(),A("svg",{class:de(["w-4 h-4 text-textSecondary transition-transform",p.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...S[15]||(S[15]=[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),S[16]||(S[16]=f("span",{class:"text-sm font-medium text-textSecondary"},"Preview with highlighted variables",-1))]),p.value?($(),A("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:pe.value},null,8,lc)):le("",!0)]),S[17]||(S[17]=Fe('<details class="mt-4"><summary class="text-sm font-medium text-textSecondary cursor-pointer hover:text-textPrimary transition">Available Variables</summary><div class="mt-2 glass rounded-xl p-4 grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm"><div><code class="text-accentLight">{{OPERATOR_MESSAGE}}</code> <span class="text-textSecondary">— latest operator message</span></div><div><code class="text-accentLight">{{THREAD_ID}}</code> <span class="text-textSecondary">— Telegram thread ID</span></div><div><code class="text-accentLight">{{TIME}}</code> <span class="text-textSecondary">— formatted timestamp</span></div><div><code class="text-accentLight">{{UPTIME}}</code> <span class="text-textSecondary">— session uptime</span></div><div><code class="text-accentLight">{{VERSION}}</code> <span class="text-textSecondary">— package version</span></div><div><code class="text-accentLight">{{MODE}}</code> <span class="text-textSecondary">— "autonomous" or "standard"</span></div></div></details>',1))]),f("div",ac,[f("div",cc,[S[18]||(S[18]=f("div",null,[f("h3",{class:"text-lg font-semibold"},"Drive Framing Template"),f("p",{class:"text-sm text-textSecondary mt-1"},"Customize the autonomous drive prompt sent when the operator is away")],-1)),f("div",uc,[U.value?($(),A("span",fc,O(U.value),1)):le("",!0),f("button",{onClick:vt,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset to Default"),f("button",{onClick:Te,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),f("div",dc,[S[20]||(S[20]=f("label",{class:"text-sm text-textSecondary"},"Drive Activation Period:",-1)),f("div",pc,[f("span",hc,O(P.value),1),S[19]||(S[19]=f("span",{class:"text-sm text-textSecondary"},"hours",-1))]),S[21]||(S[21]=f("span",{class:"text-xs text-muted"},"(informational — set via DMN_ACTIVATION_HOURS env var)",-1))]),C.value?($(),A("div",mc,[...S[22]||(S[22]=[f("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"(Default — edit to override)",-1)])])):le("",!0),f("div",gc,[S[23]||(S[23]=f("span",{class:"text-sm text-textSecondary self-center"},"Presets:",-1)),($(!0),A(ae,null,nt(W.value,oe=>($(),A("button",{key:oe.key,onClick:rt=>ts(oe),class:"px-3 py-1.5 rounded-lg bg-card hover:bg-cardHover border border-gray-700 text-xs text-textSecondary hover:text-textPrimary transition"},O(oe.label),9,xc))),128))]),fe(f("textarea",{"onUpdate:modelValue":S[5]||(S[5]=oe=>g.value=oe),rows:"15",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Load a preset or type a custom drive template..."},null,512),[[Ce,g.value]]),f("div",vc,[f("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:S[6]||(S[6]=oe=>I.value=!I.value)},[($(),A("svg",{class:de(["w-4 h-4 text-textSecondary transition-transform",I.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...S[24]||(S[24]=[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),S[25]||(S[25]=f("span",{class:"text-sm font-medium text-textSecondary"},"Preview with sample values",-1))]),I.value?($(),A("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:se.value},null,8,yc)):le("",!0)]),S[26]||(S[26]=Fe('<details class="mt-4"><summary class="text-sm font-medium text-textSecondary cursor-pointer hover:text-textPrimary transition">Available Variables</summary><div class="mt-2 glass rounded-xl p-4 grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm"><div><code class="text-accentLight">{{IDLE_HOURS}}</code> <span class="text-textSecondary">— hours since last operator interaction</span></div><div><code class="text-accentLight">{{TIME}}</code> <span class="text-textSecondary">— ISO timestamp</span></div><div><code class="text-accentLight">{{PROBABILITY}}</code> <span class="text-textSecondary">— drive activation probability (0.2–1.0)</span></div></div></details>',1))])]))}}),_c={class:"animate-fade-in"},wc={class:"glass rounded-xl p-6 mb-6"},Sc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Cc={key:0,class:"glass rounded-xl p-4 mb-4 border border-accent/30"},Tc={class:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-3"},$c={class:"flex items-center gap-4 mb-3"},kc={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer"},Ec={class:"flex items-center gap-2"},Ac={key:0,class:"text-sm text-warn"},Mc={key:1,class:"text-center py-8 text-textSecondary text-sm"},Pc={key:2,class:"text-center text-textSecondary py-12"},Oc={key:3,class:"space-y-2"},Ic=["onClick"],Rc={class:"flex items-start justify-between gap-3"},Dc={class:"flex-1 min-w-0"},Lc={class:"flex items-center gap-2 mb-1"},jc={class:"font-medium text-sm"},Nc={key:0,class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},Fc={class:"flex flex-wrap gap-1.5 mt-1"},Hc=["title"],Vc={key:0,class:"glass rounded-xl p-6"},Uc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Bc={class:"text-lg font-semibold"},Kc={class:"text-sm text-textSecondary mt-1"},Wc={class:"flex items-center gap-2"},zc={key:0,class:"text-sm text-success"},qc={class:"grid grid-cols-1 sm:grid-cols-3 gap-3 mb-4"},Jc=["value"],Gc={class:"flex items-end"},Yc={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer pb-2"},Zc=ut({__name:"SkillsTab",setup(e){const t=L([]),s=L(!0),n=L(null),o=L(""),r=L(""),i=L(!1),l=L(""),c=L(!1),d=L(""),a=L(""),p=L(!1),g=L("");async function C(){s.value=!0;try{const j=await ue("/api/skills");t.value=j.skills||[]}finally{s.value=!1}}function U(j){return j?j.includes(".remote-copilot-mcp")&&j.includes("skills")?"user":j.endsWith(".default.md")?"default":j.endsWith(".skill.md")?"project":"unknown":"unknown"}function I(j){const M={user:"background:rgba(99,102,241,0.15);color:#818cf8",default:"background:rgba(107,114,128,0.15);color:#9ca3af",project:"background:rgba(34,197,94,0.15);color:#4ade80",unknown:"background:rgba(107,114,128,0.15);color:#9ca3af"};return M[j]||M.unknown}function W(j){n.value=j,o.value=j.content,r.value=(j.triggers||[]).join(", "),i.value=!!j.replacesOrchestrator,c.value=!1}function P(){n.value=null}function V(j,M,N,ne){let Y=`---
|
|
65
|
-
name: ${
|
|
64
|
+
**/let tn;const zn=typeof window<"u"&&window.trustedTypes;if(zn)try{tn=zn.createPolicy("vue",{createHTML:e=>e})}catch{}const hr=tn?e=>tn.createHTML(e):e=>e,ml="http://www.w3.org/2000/svg",gl="http://www.w3.org/1998/Math/MathML",et=typeof document<"u"?document:null,qn=et&&et.createElement("template"),xl={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const o=t==="svg"?et.createElementNS(ml,e):t==="mathml"?et.createElementNS(gl,e):s?et.createElement(e,{is:s}):et.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>et.createTextNode(e),createComment:e=>et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,o,r){const i=s?s.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===r||!(o=o.nextSibling)););else{qn.innerHTML=hr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=qn.content;if(n==="svg"||n==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},vl=Symbol("_vtc");function bl(e,t,s){const n=e[vl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Jn=Symbol("_vod"),yl=Symbol("_vsh"),_l=Symbol(""),wl=/(?:^|;)\s*display\s*:/;function Sl(e,t,s){const n=e.style,o=le(s);let r=!1;if(s&&!o){if(t)if(le(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();s[l]==null&&hs(n,l,"")}else for(const i in t)s[i]==null&&hs(n,i,"");for(const i in s)i==="display"&&(r=!0),hs(n,i,s[i])}else if(o){if(t!==s){const i=n[_l];i&&(s+=";"+i),n.cssText=s,r=wl.test(s)}}else t&&e.removeAttribute("style");Jn in e&&(e[Jn]=r?n.display:"",e[yl]&&(n.display="none"))}const Gn=/\s*!important$/;function hs(e,t,s){if(U(s))s.forEach(n=>hs(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Cl(e,t);Gn.test(s)?e.setProperty(ht(n),s.replace(Gn,""),"important"):e[n]=s}}const Yn=["Webkit","Moz","ms"],Bs={};function Cl(e,t){const s=Bs[t];if(s)return s;let n=we(t);if(n!=="filter"&&n in e)return Bs[t]=n;n=Ts(n);for(let o=0;o<Yn.length;o++){const r=Yn[o]+n;if(r in e)return Bs[t]=r}return t}const Zn="http://www.w3.org/1999/xlink";function Qn(e,t,s,n,o,r=Tr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Zn,t.slice(6,t.length)):e.setAttributeNS(Zn,t,s):s==null||r&&!mo(s)?e.removeAttribute(t):e.setAttribute(t,r?"":qe(s)?String(s):s)}function Xn(e,t,s,n,o){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?hr(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,a=s==null?e.type==="checkbox"?"on":"":String(s);(l!==a||!("_value"in e))&&(e.value=a),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=mo(s):s==null&&l==="string"?(s="",i=!0):l==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(o||t)}function dt(e,t,s,n){e.addEventListener(t,s,n)}function Tl(e,t,s,n){e.removeEventListener(t,s,n)}const eo=Symbol("_vei");function $l(e,t,s,n,o=null){const r=e[eo]||(e[eo]={}),i=r[t];if(n&&i)i.value=n;else{const[l,a]=kl(t);if(n){const m=r[t]=Pl(n,o);dt(e,l,m,a)}else i&&(Tl(e,l,i,a),r[t]=void 0)}}const to=/(?:Once|Passive|Capture)$/;function kl(e){let t;if(to.test(e)){t={};let n;for(;n=e.match(to);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ht(e.slice(2)),t]}let Ks=0;const Al=Promise.resolve(),El=()=>Ks||(Al.then(()=>Ks=0),Ks=Date.now());function Pl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Je(Ml(n,s.value),t,5,[n])};return s.value=e,s.attached=El(),s}function Ml(e,t){if(U(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const so=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ol=(e,t,s,n,o,r)=>{const i=o==="svg";t==="class"?bl(e,n,i):t==="style"?Sl(e,s,n):ws(t)?Ss(t)||$l(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Il(e,t,n,i))?(Xn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qn(e,t,n,i,r,t!=="value")):e._isVueCE&&(Rl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!le(n)))?Xn(e,we(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Qn(e,t,n,i))};function Il(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&so(t)&&K(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return so(t)&&le(s)?!1:t in e}function Rl(e,t){const s=e._def.props;if(!s)return!1;const n=we(t);return Array.isArray(s)?s.some(o=>we(o)===n):Object.keys(s).some(o=>we(o)===n)}const It=e=>{const t=e.props["onUpdate:modelValue"]||!1;return U(t)?s=>us(t,s):t};function Dl(e){e.target.composing=!0}function no(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const rt=Symbol("_assign");function oo(e,t,s){return t&&(e=e.trim()),s&&(e=$s(e)),e}const Oe={created(e,{modifiers:{lazy:t,trim:s,number:n}},o){e[rt]=It(o);const r=n||o.props&&o.props.type==="number";dt(e,t?"change":"input",i=>{i.target.composing||e[rt](oo(e.value,s,r))}),(s||r)&&dt(e,"change",()=>{e.value=oo(e.value,s,r)}),t||(dt(e,"compositionstart",Dl),dt(e,"compositionend",no),dt(e,"change",no))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:o,number:r}},i){if(e[rt]=It(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?$s(e.value):e.value,a=t??"";if(l===a)return;const m=e.getRootNode();(m instanceof Document||m instanceof ShadowRoot)&&m.activeElement===e&&e.type!=="range"&&(n&&t===s||o&&e.value.trim()===a)||(e.value=a)}},ro={deep:!0,created(e,t,s){e[rt]=It(s),dt(e,"change",()=>{const n=e._modelValue,o=ts(e),r=e.checked,i=e[rt];if(U(n)){const l=rn(n,o),a=l!==-1;if(r&&!a)i(n.concat(o));else if(!r&&a){const m=[...n];m.splice(l,1),i(m)}}else if(Rt(n)){const l=new Set(n);r?l.add(o):l.delete(o),i(l)}else i(mr(e,r))})},mounted:io,beforeUpdate(e,t,s){e[rt]=It(s),io(e,t,s)}};function io(e,{value:t,oldValue:s},n){e._modelValue=t;let o;if(U(t))o=rn(t,n.props.value)>-1;else if(Rt(t))o=t.has(n.props.value);else{if(t===s)return;o=Dt(t,mr(e,!0))}e.checked!==o&&(e.checked=o)}const _s={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const o=Rt(t);dt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?$s(ts(i)):ts(i));e[rt](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,Ro(()=>{e._assigning=!1})}),e[rt]=It(n)},mounted(e,{value:t}){lo(e,t)},beforeUpdate(e,t,s){e[rt]=It(s)},updated(e,{value:t}){e._assigning||lo(e,t)}};function lo(e,t){const s=e.multiple,n=U(t);if(!(s&&!n&&!Rt(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],l=ts(i);if(s)if(n){const a=typeof l;a==="string"||a==="number"?i.selected=t.some(m=>String(m)===String(l)):i.selected=rn(t,l)>-1}else i.selected=t.has(l);else if(Dt(ts(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ts(e){return"_value"in e?e._value:e.value}function mr(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const jl={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ll=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(o=>{if(!("key"in o))return;const r=ht(o.key);if(t.some(i=>i===r||jl[i]===r))return e(o)}))},Nl=ge({patchProp:Ol},xl);let ao;function Fl(){return ao||(ao=Gi(Nl))}const Hl=((...e)=>{const t=Fl().createApp(...e),{mount:s}=t;return t.mount=n=>{const o=Ul(n);if(!o)return;const r=t._component;!K(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=s(o,!1,Vl(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function Vl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ul(e){return le(e)?document.querySelector(e):e}let wn="";function Vt(e){wn=e}function st(){return wn}async function de(e,t){const s=await fetch(e,{...t,headers:{Authorization:`Bearer ${wn}`,"Content-Type":"application/json",...(t==null?void 0:t.headers)??{}}});if(!s.ok){const n=new Error(s.statusText);throw n.status=s.status,n}return s.json()}const Bl={class:"animate-fade-in"},Kl={key:0,class:"text-center py-12 text-textSecondary"},Wl={key:1,class:"text-center text-textSecondary py-12"},zl={key:2,class:"space-y-3"},ql={class:"flex items-center justify-between"},Jl={class:"flex items-center gap-3"},Gl={class:"font-medium"},Yl={class:"text-accentLight"},Zl={class:"text-textSecondary text-xs"},Ql={key:2,class:"text-muted italic"},Xl={class:"text-xs text-textSecondary font-mono"},ea={class:"text-right"},ta={class:"flex items-center gap-2 justify-end"},sa={class:"text-xs text-textSecondary"},na=jt({__name:"SessionsTab",props:{status:{}},setup(e){const t=e,s=H([]),n=H(!0);async function o(){n.value=!0;try{const m=await de("/api/status");s.value=(m.sessions||[]).slice().sort((f,p)=>f.status==="active"&&p.status!=="active"?-1:f.status!=="active"&&p.status==="active"?1:p.lastActivity-f.lastActivity)}finally{n.value=!1}}const r=_t(()=>{var f;return(((f=t.status)==null?void 0:f.sessions)??s.value).slice().sort((p,h)=>p.status==="active"&&h.status!=="active"?-1:p.status!=="active"&&h.status==="active"?1:h.lastActivity-p.lastActivity)});function i(m){const f=Math.floor((Date.now()-m.lastActivity)/6e4);return m.status==="disconnected"?{label:`Disconnected${f>0?` — ${f}m ago`:""}`,color:"text-muted"}:f<5?{label:"Active",color:"text-success"}:f<30?{label:`Idle ${f}m`,color:"text-warn"}:{label:`Dormant ${f}m`,color:"text-danger"}}function l(m){if(!m.lastWaitCallAt)return"";const f=Math.floor((Date.now()-m.lastWaitCallAt)/6e4);return f<5?`Polling — ${f===0?"just now":f+"m ago"}`:`Last poll — ${f}m ago`}function a(m){return m.lastWaitCallAt?Math.floor((Date.now()-m.lastWaitCallAt)/6e4)<5?"text-success":"text-warn":""}return wt(o),(m,f)=>(A(),E("div",Bl,[n.value&&r.value.length===0?(A(),E("div",Kl,"Loading sessions...")):r.value.length===0?(A(),E("div",Wl,"No sessions")):(A(),E("div",zl,[(A(!0),E(ue,null,ct(r.value,p=>(A(),E("div",{key:p.mcpSessionId,class:fe(["glass rounded-xl p-4 animate-slide-up",p.status==="disconnected"?"opacity-60":""])},[u("div",ql,[u("div",Jl,[u("span",{class:fe(["w-2.5 h-2.5 rounded-full",p.status==="disconnected"?"bg-muted":Math.floor((Date.now()-p.lastActivity)/6e4)<5?"bg-success":Math.floor((Date.now()-p.lastActivity)/6e4)<30?"bg-warn":"bg-danger"])},null,2),u("div",null,[u("div",Gl,[p.topicName?(A(),E(ue,{key:0},[u("span",Yl,j(p.topicName),1),u("span",Zl," (thread "+j(p.threadId)+")",1)],64)):p.threadId!=null?(A(),E(ue,{key:1},[yn("Thread "+j(p.threadId),1)],64)):(A(),E("span",Ql,"Awaiting start_session…"))]),u("div",Xl,j(p.mcpSessionId.slice(0,12))+"...",1)])]),u("div",ea,[u("div",ta,[u("span",{class:fe(["text-sm font-medium",i(p).color])},j(i(p).label),3),l(p)?(A(),E("span",{key:0,class:fe(["text-xs ml-2",a(p)])},j(l(p)),3)):ie("",!0)]),u("div",sa,j(p.transportType),1)])])],2))),128))]))]))}}),oa={class:"animate-fade-in"},ra={class:"flex flex-wrap items-center gap-3 mb-4"},ia={key:0,class:"text-center py-12 text-textSecondary"},la={key:1,class:"text-center py-12 text-textSecondary"},aa={key:2,class:"space-y-2"},ca={class:"flex items-start justify-between gap-3"},ua={class:"flex-1 min-w-0"},fa={class:"flex items-center gap-2 mb-1"},da={key:0,class:"type-badge",style:{background:"rgba(239,68,68,0.15)",color:"#f87171"}},pa={key:1,class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},ha={class:"text-xs text-textSecondary"},ma={class:"text-sm text-textPrimary leading-relaxed"},ga={class:"flex flex-wrap gap-1.5 mt-2"},xa={class:"text-right shrink-0"},va={class:"text-sm font-mono text-textSecondary"},ba={class:"text-xs text-muted"},ya={class:"text-xs text-muted"},_a=jt({__name:"MemoryNotesTab",setup(e){const t=H([]),s=H(!1),n=H(""),o=H("created_at"),r=H("");let i=null;async function l(){s.value=!0;try{const f=r.value.trim();let p;if(f)p=await de(`/api/search?q=${encodeURIComponent(f)}&limit=50`);else{const h=new URLSearchParams({limit:"50",sort:o.value});n.value&&h.set("type",n.value),p=await de(`/api/notes?${h}`)}t.value=p}finally{s.value=!1}}function a(){i&&clearTimeout(i),i=setTimeout(l,300)}function m(f){if(!f)return"never";const p=Date.now()-new Date(f).getTime(),h=Math.floor(p/6e4);if(h<1)return"just now";if(h<60)return`${h}m ago`;const S=Math.floor(h/60);return S<24?`${S}h ago`:`${Math.floor(S/24)}d ago`}return wt(l),(f,p)=>(A(),E("div",oa,[u("div",ra,[pe(u("input",{"onUpdate:modelValue":p[0]||(p[0]=h=>r.value=h),onInput:a,type:"text",placeholder:"Search notes...",class:"flex-1 min-w-[200px] px-4 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted focus:outline-none focus:border-accent transition"},null,544),[[Oe,r.value]]),pe(u("select",{"onUpdate:modelValue":p[1]||(p[1]=h=>n.value=h),onChange:l,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none"},[...p[3]||(p[3]=[Ve('<option value="">All types</option><option value="fact">Facts</option><option value="preference">Preferences</option><option value="pattern">Patterns</option><option value="entity">Entities</option><option value="relationship">Relationships</option>',6)])],544),[[_s,n.value]]),pe(u("select",{"onUpdate:modelValue":p[2]||(p[2]=h=>o.value=h),onChange:l,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none"},[...p[4]||(p[4]=[u("option",{value:"created_at"},"Newest",-1),u("option",{value:"confidence"},"Confidence",-1),u("option",{value:"access_count"},"Most accessed",-1)])],544),[[_s,o.value]])]),s.value?(A(),E("div",ia,"Loading notes...")):t.value.length===0?(A(),E("div",la,"No notes found")):(A(),E("div",aa,[(A(!0),E(ue,null,ct(t.value,h=>(A(),E("div",{key:h.noteId,class:fe(["glass rounded-xl p-4 animate-fade-in",`priority-${h.priority||0}`])},[u("div",ca,[u("div",ua,[u("div",fa,[u("span",{class:fe(["type-badge",`type-${h.type}`])},j(h.type),3),h.priority>=2?(A(),E("span",da,"HIGH IMPORTANCE")):h.priority===1?(A(),E("span",pa,"NOTABLE")):ie("",!0),u("span",ha,j(h.noteId),1)]),u("p",ma,j(h.content),1),u("div",ga,[(A(!0),E(ue,null,ct(h.keywords||[],S=>(A(),E("span",{key:S,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},j(S),1))),128))])]),u("div",xa,[u("div",va,j(((Number(h.confidence)||0)*100).toFixed(0))+"%",1),u("div",ba,j(m(h.createdAt)),1),u("div",ya,j(h.accessCount??0)+" hits",1)])])],2))),128))]))]))}}),wa={class:"animate-fade-in space-y-6"},Sa={class:"glass rounded-xl p-4"},Ca={class:"flex flex-wrap items-center gap-4 mb-4"},Ta={key:0,class:"text-sm text-success"},$a={class:"flex flex-wrap items-center gap-3"},ka={key:0,class:"text-sm text-success"},Aa={class:"flex flex-wrap items-center gap-3 mb-4"},Ea={key:0,class:"text-sm text-success"},Pa={class:"glass rounded-xl p-6"},Ma={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Oa={class:"flex items-center gap-2"},Ia={key:0,class:"text-sm text-success"},Ra={key:0,class:"mb-3"},Da={class:"mt-4"},ja=["innerHTML"],La={class:"glass rounded-xl p-6"},Na={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},Fa={class:"flex items-center gap-2"},Ha={key:0,class:"text-sm text-success"},Va={class:"flex gap-2 mb-4"},Ua=["onClick"],Ba={key:0,class:"mb-3"},Ka=["value","placeholder"],Wa={class:"glass rounded-xl p-6"},za={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},qa={class:"flex items-center gap-2"},Ja={key:0,class:"text-sm text-success"},Ga={class:"mb-4 flex flex-wrap items-center gap-3"},Ya={class:"flex items-center gap-2"},Za={class:"font-mono text-sm text-textPrimary"},Qa={key:0,class:"mb-3"},Xa={class:"flex flex-wrap gap-2 mb-3"},ec=["onClick"],tc={class:"mt-4"},sc=["innerHTML"],nc=jt({__name:"TemplatesTab",setup(e){function t(I){return I.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\{\{([A-Z_]+)\}\}/g,'<span class="text-accentLight" style="background:rgba(99,102,241,0.1);padding:0 2px;border-radius:3px">{{$1}}</span>')}const s=H("copilot"),n=H(""),o=H(""),r=H(""),i=H(50),l=H(""),a=H(""),m=H(!0),f=H(""),p=H(!1),h=H({}),S=H("copilot"),P=H(""),M=H(""),W=H(!0),k=H(""),L=H(!1),z=H([]),R=H("");async function N(){await Promise.all([O(),V(),re(),J(),ae()])}async function O(){try{const I=await de("/api/settings/agent-type");s.value=I.agentType||"copilot"}catch{}}async function V(){try{const I=await de("/api/settings/claude-mcp-config");o.value=I.path||""}catch{}}async function re(){try{const I=await de("/api/settings/bootstrap-message-count");i.value=I.count??50}catch{}}async function J(){try{const I=await de("/api/templates");if(I.templates&&I.templates.length>0){const _=I.templates[0];a.value=_.content||"",m.value=_.isDefault??!0}I.agentReminders&&(h.value=I.agentReminders)}catch{}}async function ae(){try{const[I,_,Qe]=await Promise.all([de("/api/templates/drive"),de("/api/templates/drive-presets"),de("/api/settings/dmn-activation-hours")]);z.value=_.presets||[],R.value=String(Qe.value??"not set"),I.custom?(M.value=I.custom,W.value=!1):(M.value=I.default||"",W.value=!0)}catch{}}async function Pe(){try{await de("/api/settings/agent-type",{method:"POST",body:JSON.stringify({agentType:s.value})}),await de("/api/templates/reminders",{method:"DELETE"}),n.value="Saved ✓",setTimeout(()=>{n.value=""},3e3),await J()}catch(I){n.value="Error: "+I.message}}async function Ge(){try{await de("/api/settings/bootstrap-message-count",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:i.value})}),l.value="Saved ✓",setTimeout(()=>{l.value=""},3e3)}catch(I){l.value="Error: "+I.message}}async function Te(){const I=o.value.trim();if(!I){r.value="Path is empty",setTimeout(()=>{r.value=""},3e3);return}try{await de("/api/settings/claude-mcp-config",{method:"POST",body:JSON.stringify({path:I})}),r.value="Saved ✓",setTimeout(()=>{r.value=""},3e3)}catch(_){r.value="Error: "+_.message}}async function St(){try{const I=await fetch("/api/templates/reminders",{method:"POST",headers:{Authorization:`Bearer ${st()}`,"Content-Type":"application/json"},body:JSON.stringify({content:a.value})});if(!I.ok)throw new Error(I.statusText);m.value=!1,f.value="Saved ✓",setTimeout(()=>{f.value=""},3e3)}catch(I){f.value="Error: "+I.message}}async function rs(){if(confirm("Reset to default template? Your customizations will be lost."))try{const I=await fetch("/api/templates/reminders",{method:"DELETE",headers:{Authorization:`Bearer ${st()}`}});if(!I.ok)throw new Error(I.statusText);await J(),f.value="Reset to default ✓",setTimeout(()=>{f.value=""},3e3)}catch(I){f.value="Error: "+I.message}}async function he(){var Qe;const I=S.value,_=((Qe=h.value[I])==null?void 0:Qe.content)??"";try{const $e=await fetch(`/api/templates/reminders-${I}`,{method:"POST",headers:{Authorization:`Bearer ${st()}`,"Content-Type":"application/json"},body:JSON.stringify({content:_})});if(!$e.ok)throw new Error($e.statusText);h.value[I]={content:_,isDefault:!1},P.value=`Saved ${I} ✓`,setTimeout(()=>{P.value=""},3e3)}catch($e){P.value="Error: "+$e.message}}async function oe(){const I=S.value;if(confirm(`Reset ${I} agent reminder? The custom template will be removed.`))try{const _=await fetch(`/api/templates/reminders-${I}`,{method:"DELETE",headers:{Authorization:`Bearer ${st()}`}});if(!_.ok)throw new Error(_.statusText);await J(),P.value=`Reset ${I} ✓`,setTimeout(()=>{P.value=""},3e3)}catch(_){P.value="Error: "+_.message}}async function Z(){const I=M.value;if(!I.trim()){k.value="Template is empty — load a preset first",setTimeout(()=>{k.value=""},3e3);return}try{const _=await fetch("/api/templates/drive",{method:"POST",headers:{Authorization:`Bearer ${st()}`,"Content-Type":"application/json"},body:JSON.stringify({content:I})});if(!_.ok)throw new Error(_.statusText);W.value=!1,k.value="Saved ✓",setTimeout(()=>{k.value=""},3e3)}catch(_){k.value="Error: "+_.message}}async function Ye(){if(confirm("Reset drive template? The custom template will be removed."))try{const I=await fetch("/api/templates/drive",{method:"DELETE",headers:{Authorization:`Bearer ${st()}`}});if(!I.ok)throw new Error(I.statusText);await ae(),k.value="Reset to default ✓",setTimeout(()=>{k.value=""},3e3)}catch(I){k.value="Error: "+I.message}}function Ct(I){M.value=I.content,W.value=!1}const Ze=_t(()=>t(a.value)),Me=_t(()=>M.value?t(M.value):'<span style="color:#6b7280">(no template loaded)</span>');return wt(N),(I,_)=>{var Qe,$e;return A(),E("div",wa,[u("div",Sa,[u("div",Ca,[_[9]||(_[9]=u("label",{class:"text-sm font-medium text-textSecondary"},"Agent Type",-1)),pe(u("select",{"onUpdate:modelValue":_[0]||(_[0]=Q=>s.value=Q),onChange:Pe,class:"px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},[..._[8]||(_[8]=[u("option",{value:"copilot"},"Copilot",-1),u("option",{value:"claude"},"Claude",-1),u("option",{value:"cursor"},"Cursor",-1)])],544),[[_s,s.value]]),n.value?(A(),E("span",Ta,j(n.value),1)):ie("",!0),_[10]||(_[10]=u("span",{class:"text-xs text-muted"},"Changes which default reminders template is used",-1))]),u("div",$a,[_[11]||(_[11]=u("label",{class:"text-sm font-medium text-textSecondary"},"Claude MCP Config Path",-1)),pe(u("input",{"onUpdate:modelValue":_[1]||(_[1]=Q=>o.value=Q),type:"text",placeholder:"~/.claude/settings.json",class:"flex-1 min-w-[260px] px-3 py-2 rounded-xl bg-card border border-gray-700 text-sm text-textPrimary placeholder-muted font-mono focus:outline-none focus:border-accent transition"},null,512),[[Oe,o.value]]),u("button",{onClick:Te,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save"),r.value?(A(),E("span",ka,j(r.value),1)):ie("",!0)]),u("div",Aa,[_[12]||(_[12]=u("label",{class:"text-sm font-medium text-textSecondary"},"Bootstrap Messages",-1)),pe(u("input",{"onUpdate:modelValue":_[2]||(_[2]=Q=>i.value=Q),type:"number",min:"0",max:"500",class:"w-24 px-3 py-2 rounded-xl bg-card border border-gray-700 text-text text-sm focus:border-accent focus:outline-none"},null,512),[[Oe,i.value,void 0,{number:!0}]]),u("button",{onClick:Ge,class:"px-4 py-2 rounded-xl bg-accent text-white text-sm font-medium hover:bg-accent/80 transition-colors"},"Save"),l.value?(A(),E("span",Ea,j(l.value),1)):ie("",!0),_[13]||(_[13]=u("span",{class:"text-xs text-muted"},"Number of recent messages injected as warm context (0 = off)",-1))])]),u("div",Pa,[u("div",Ma,[_[14]||(_[14]=u("div",null,[u("h3",{class:"text-lg font-semibold"},"Reminders Template"),u("p",{class:"text-sm text-textSecondary mt-1"},"Edit the system prompt template sent with every reminder")],-1)),u("div",Oa,[f.value?(A(),E("span",Ia,j(f.value),1)):ie("",!0),u("button",{onClick:rs,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset to Default"),u("button",{onClick:St,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),m.value?(A(),E("div",Ra,[..._[15]||(_[15]=[u("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"USING DEFAULT — edit and save to customize",-1)])])):ie("",!0),pe(u("textarea",{"onUpdate:modelValue":_[3]||(_[3]=Q=>a.value=Q),rows:"20",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Loading..."},null,512),[[Oe,a.value]]),u("div",Da,[u("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:_[4]||(_[4]=Q=>p.value=!p.value)},[(A(),E("svg",{class:fe(["w-4 h-4 text-textSecondary transition-transform",p.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[..._[16]||(_[16]=[u("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),_[17]||(_[17]=u("span",{class:"text-sm font-medium text-textSecondary"},"Preview with highlighted variables",-1))]),p.value?(A(),E("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:Ze.value},null,8,ja)):ie("",!0)]),_[18]||(_[18]=Ve('<details class="mt-4"><summary class="text-sm font-medium text-textSecondary cursor-pointer hover:text-textPrimary transition">Available Variables</summary><div class="mt-2 glass rounded-xl p-4 grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm"><div><code class="text-accentLight">{{OPERATOR_MESSAGE}}</code> <span class="text-textSecondary">— latest operator message</span></div><div><code class="text-accentLight">{{THREAD_ID}}</code> <span class="text-textSecondary">— Telegram thread ID</span></div><div><code class="text-accentLight">{{TIME}}</code> <span class="text-textSecondary">— formatted timestamp</span></div><div><code class="text-accentLight">{{UPTIME}}</code> <span class="text-textSecondary">— session uptime</span></div><div><code class="text-accentLight">{{VERSION}}</code> <span class="text-textSecondary">— package version</span></div><div><code class="text-accentLight">{{MODE}}</code> <span class="text-textSecondary">— "autonomous" or "standard"</span></div></div></details>',1))]),u("div",La,[u("div",Na,[_[19]||(_[19]=u("div",null,[u("h3",{class:"text-lg font-semibold"},"Agent-Specific Reminders"),u("p",{class:"text-sm text-textSecondary mt-1"},"Appended after the base reminders template — per agent type")],-1)),u("div",Fa,[P.value?(A(),E("span",Ha,j(P.value),1)):ie("",!0),u("button",{onClick:oe,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset"),u("button",{onClick:he,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),u("div",Va,[(A(),E(ue,null,ct(["copilot","claude","cursor"],Q=>u("button",{key:Q,onClick:mt=>S.value=Q,class:fe(["px-4 py-2 rounded-xl text-sm font-medium transition",S.value===Q?"bg-accent text-white":"bg-card hover:bg-cardHover border border-gray-700 text-textSecondary hover:text-textPrimary"])},j(Q.charAt(0).toUpperCase()+Q.slice(1)),11,Ua)),64))]),((Qe=h.value[S.value])==null?void 0:Qe.isDefault)!==!1?(A(),E("div",Ba,[..._[20]||(_[20]=[u("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"NO CUSTOM OVERRIDE — this agent uses only the base reminders",-1)])])):ie("",!0),u("textarea",{value:(($e=h.value[S.value])==null?void 0:$e.content)??"",onInput:_[5]||(_[5]=Q=>{const mt=Q.target;h.value[S.value]={content:mt.value,isDefault:!1}}),rows:"8",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:`Add ${S.value}-specific reminders (e.g. orchestrator hints, subagent policies)...`},null,40,Ka)]),u("div",Wa,[u("div",za,[_[21]||(_[21]=u("div",null,[u("h3",{class:"text-lg font-semibold"},"Drive Framing Template"),u("p",{class:"text-sm text-textSecondary mt-1"},"Customize the autonomous drive prompt sent when the operator is away")],-1)),u("div",qa,[k.value?(A(),E("span",Ja,j(k.value),1)):ie("",!0),u("button",{onClick:Ye,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Reset to Default"),u("button",{onClick:Z,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),u("div",Ga,[_[23]||(_[23]=u("label",{class:"text-sm text-textSecondary"},"Drive Activation Period:",-1)),u("div",Ya,[u("span",Za,j(R.value),1),_[22]||(_[22]=u("span",{class:"text-sm text-textSecondary"},"hours",-1))]),_[24]||(_[24]=u("span",{class:"text-xs text-muted"},"(informational — set via DMN_ACTIVATION_HOURS env var)",-1))]),W.value?(A(),E("div",Qa,[..._[25]||(_[25]=[u("span",{class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},"(Default — edit to override)",-1)])])):ie("",!0),u("div",Xa,[_[26]||(_[26]=u("span",{class:"text-sm text-textSecondary self-center"},"Presets:",-1)),(A(!0),E(ue,null,ct(z.value,Q=>(A(),E("button",{key:Q.key,onClick:mt=>Ct(Q),class:"px-3 py-1.5 rounded-lg bg-card hover:bg-cardHover border border-gray-700 text-xs text-textSecondary hover:text-textPrimary transition"},j(Q.label),9,ec))),128))]),pe(u("textarea",{"onUpdate:modelValue":_[6]||(_[6]=Q=>M.value=Q),rows:"15",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Load a preset or type a custom drive template..."},null,512),[[Oe,M.value]]),u("div",tc,[u("div",{class:"flex items-center gap-2 mb-2 cursor-pointer select-none",onClick:_[7]||(_[7]=Q=>L.value=!L.value)},[(A(),E("svg",{class:fe(["w-4 h-4 text-textSecondary transition-transform",L.value?"rotate-90":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[..._[27]||(_[27]=[u("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2)),_[28]||(_[28]=u("span",{class:"text-sm font-medium text-textSecondary"},"Preview with sample values",-1))]),L.value?(A(),E("div",{key:0,class:"glass rounded-xl p-4 font-mono text-sm leading-relaxed whitespace-pre-wrap break-words",innerHTML:Me.value},null,8,sc)):ie("",!0)]),_[29]||(_[29]=Ve('<details class="mt-4"><summary class="text-sm font-medium text-textSecondary cursor-pointer hover:text-textPrimary transition">Available Variables</summary><div class="mt-2 glass rounded-xl p-4 grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm"><div><code class="text-accentLight">{{IDLE_HOURS}}</code> <span class="text-textSecondary">— hours since last operator interaction</span></div><div><code class="text-accentLight">{{TIME}}</code> <span class="text-textSecondary">— ISO timestamp</span></div><div><code class="text-accentLight">{{PROBABILITY}}</code> <span class="text-textSecondary">— drive activation probability (0.2–1.0)</span></div></div></details>',1))])])}}}),oc={class:"animate-fade-in"},rc={class:"glass rounded-xl p-6 mb-6"},ic={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},lc={key:0,class:"glass rounded-xl p-4 mb-4 border border-accent/30"},ac={class:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-3"},cc={class:"flex items-center gap-4 mb-3"},uc={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer"},fc={class:"flex items-center gap-2"},dc={key:0,class:"text-sm text-warn"},pc={key:1,class:"text-center py-8 text-textSecondary text-sm"},hc={key:2,class:"text-center text-textSecondary py-12"},mc={key:3,class:"space-y-2"},gc=["onClick"],xc={class:"flex items-start justify-between gap-3"},vc={class:"flex-1 min-w-0"},bc={class:"flex items-center gap-2 mb-1"},yc={class:"font-medium text-sm"},_c={key:0,class:"type-badge",style:{background:"rgba(245,158,11,0.15)",color:"#fbbf24"}},wc={class:"flex flex-wrap gap-1.5 mt-1"},Sc=["title"],Cc={key:0,class:"glass rounded-xl p-6"},Tc={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},$c={class:"text-lg font-semibold"},kc={class:"text-sm text-textSecondary mt-1"},Ac={class:"flex items-center gap-2"},Ec={key:0,class:"text-sm text-success"},Pc={class:"grid grid-cols-1 sm:grid-cols-3 gap-3 mb-4"},Mc=["value"],Oc={class:"flex items-end"},Ic={class:"flex items-center gap-2 text-sm text-textSecondary cursor-pointer pb-2"},Rc=jt({__name:"SkillsTab",setup(e){const t=H([]),s=H(!0),n=H(null),o=H(""),r=H(""),i=H(!1),l=H(""),a=H(!1),m=H(""),f=H(""),p=H(!1),h=H("");async function S(){s.value=!0;try{const N=await de("/api/skills");t.value=N.skills||[]}finally{s.value=!1}}function P(N){return N?N.includes(".remote-copilot-mcp")&&N.includes("skills")?"user":N.endsWith(".default.md")?"default":N.endsWith(".skill.md")?"project":"unknown":"unknown"}function M(N){const O={user:"background:rgba(99,102,241,0.15);color:#818cf8",default:"background:rgba(107,114,128,0.15);color:#9ca3af",project:"background:rgba(34,197,94,0.15);color:#4ade80",unknown:"background:rgba(107,114,128,0.15);color:#9ca3af"};return O[N]||O.unknown}function W(N){n.value=N,o.value=N.content,r.value=(N.triggers||[]).join(", "),i.value=!!N.replacesOrchestrator,a.value=!1}function k(){n.value=null}function L(N,O,V,re){let J=`---
|
|
65
|
+
name: ${N}
|
|
66
66
|
triggers:
|
|
67
|
-
`;return
|
|
68
|
-
`}),
|
|
69
|
-
`),
|
|
67
|
+
`;return O.forEach(ae=>{J+=` - ${ae.trim()}
|
|
68
|
+
`}),V&&(J+=`replaces_orchestrator: true
|
|
69
|
+
`),J+=`---
|
|
70
70
|
|
|
71
|
-
`,
|
|
72
|
-
`);try{const Y=await fetch(`/api/skills/${encodeURIComponent(j)}`,{method:"PUT",headers:{Authorization:`Bearer ${mt()}`,"Content-Type":"application/json"},body:JSON.stringify({content:ne})});if(!Y.ok)throw new Error(Y.statusText);g.value="Created ✓",c.value=!1,await C();const ce=t.value.find(Ae=>Ae.name===j);ce&&W(ce)}catch(Y){g.value="Error: "+Y.message}}return ft(C),(j,M)=>($(),A("div",_c,[f("div",wc,[f("div",Sc,[M[8]||(M[8]=f("div",null,[f("h3",{class:"text-lg font-semibold"},"Skill Library"),f("p",{class:"text-sm text-textSecondary mt-1"},"Manage intent-routing skills — user overrides, defaults, and project skills")],-1)),f("button",{onClick:M[0]||(M[0]=N=>{c.value=!c.value,n.value=null}),class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"}," + New Skill ")]),c.value?($(),A("div",Cc,[M[12]||(M[12]=f("h4",{class:"text-sm font-semibold mb-3"},"Create New Skill",-1)),f("div",Tc,[f("div",null,[M[9]||(M[9]=f("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),fe(f("input",{"onUpdate:modelValue":M[1]||(M[1]=N=>d.value=N),type:"text",placeholder:"my-skill",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Ce,d.value]])]),f("div",null,[M[10]||(M[10]=f("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),fe(f("input",{"onUpdate:modelValue":M[2]||(M[2]=N=>a.value=N),type:"text",placeholder:"trigger1, trigger2",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},null,512),[[Ce,a.value]])])]),f("div",$c,[f("label",kc,[fe(f("input",{"onUpdate:modelValue":M[3]||(M[3]=N=>p.value=N),type:"checkbox",class:"rounded"},null,512),[[no,p.value]]),M[11]||(M[11]=f("span",null,"Replaces orchestrator",-1))])]),f("div",Ec,[f("button",{onClick:D,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Create"),f("button",{onClick:M[4]||(M[4]=N=>c.value=!1),class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Cancel"),g.value?($(),A("span",Ac,O(g.value),1)):le("",!0)])])):le("",!0),s.value?($(),A("div",Mc,"Loading...")):t.value.length===0?($(),A("div",Pc,"No skills loaded")):($(),A("div",Oc,[($(!0),A(ae,null,nt(t.value,N=>{var ne;return $(),A("div",{key:N.name,onClick:Y=>W(N),class:de(["glass rounded-xl p-4 cursor-pointer hover:bg-cardHover transition border",((ne=n.value)==null?void 0:ne.name)===N.name?"border-accent":"border-transparent"])},[f("div",Rc,[f("div",Dc,[f("div",Lc,[f("span",jc,O(N.name),1),f("span",{class:"type-badge",style:Qt(I(U(N.source)))},O(U(N.source)),5),N.replacesOrchestrator?($(),A("span",Nc,"REPLACES ORCH")):le("",!0)]),f("div",Fc,[($(!0),A(ae,null,nt(N.triggers||[],Y=>($(),A("span",{key:Y,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},O(Y),1))),128))])]),f("div",{class:"text-xs text-muted font-mono shrink-0 max-w-[200px] truncate",title:N.source||""},O((N.source||"").split(/[\\/]/).pop()||""),9,Hc)])],10,Ic)}),128))]))]),n.value?($(),A("div",Vc,[f("div",Uc,[f("div",null,[f("h3",Bc,"Edit: "+O(n.value.name),1),f("p",Kc,O(n.value.source||"(unknown source)"),1)]),f("div",Wc,[l.value?($(),A("span",zc,O(l.value),1)):le("",!0),f("button",{onClick:P,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Close"),f("button",{onClick:z,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),f("div",qc,[f("div",null,[M[13]||(M[13]=f("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),f("input",{value:n.value.name,type:"text",readonly:"",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono opacity-60 cursor-not-allowed"},null,8,Jc)]),f("div",null,[M[14]||(M[14]=f("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),fe(f("input",{"onUpdate:modelValue":M[5]||(M[5]=N=>r.value=N),type:"text",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},null,512),[[Ce,r.value]])]),f("div",Gc,[f("label",Yc,[fe(f("input",{"onUpdate:modelValue":M[6]||(M[6]=N=>i.value=N),type:"checkbox",class:"rounded"},null,512),[[no,i.value]]),M[15]||(M[15]=f("span",null,"Replaces orchestrator",-1))])])]),fe(f("textarea",{"onUpdate:modelValue":M[7]||(M[7]=N=>o.value=N),rows:"20",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Skill body (markdown)..."},null,512),[[Ce,o.value]])])):le("",!0)]))}}),Qc={class:"animate-fade-in"},Xc={class:"glass rounded-xl p-6 mb-6"},eu={class:"flex flex-wrap items-center justify-between gap-4 mb-6"},tu={class:"flex items-center gap-3"},su=["disabled"],nu={key:0,class:"text-center py-8 text-textSecondary text-sm"},ou={key:1,class:"space-y-6"},ru={class:"glass rounded-xl p-4 border border-gray-700/50"},iu={class:"flex items-center justify-between"},lu={class:"glass rounded-xl p-4 border border-gray-700/50"},au={class:"glass rounded-xl p-4 border border-gray-700/50"},cu={class:"glass rounded-xl p-4 border border-gray-700/50"},uu={class:"text-xs text-textSecondary mb-3"},fu={key:0,class:"ml-1 text-accentLight font-mono"},du={class:"flex items-center gap-2"},pu={key:0,class:"glass rounded-xl p-4 border border-gray-700/30 bg-surface/30"},hu={class:"grid grid-cols-2 sm:grid-cols-4 gap-4"},mu={class:"text-sm font-mono"},gu={class:"text-sm font-mono"},xu={class:"text-sm font-mono"},vu=ut({__name:"KeepAliveTab",setup(e){const t=L(null),s=L(!0),n=L(!1),o=L(""),r=L({keepAliveEnabled:!1,keepAliveThreadId:0,keepAliveMaxRetries:5,keepAliveCooldownMs:3e5});async function i(){s.value=!0;try{t.value=await ue("/api/settings/keep-alive"),r.value={...t.value}}finally{s.value=!1}}async function l(){n.value=!0,o.value="";try{const d=await fetch("/api/settings/keep-alive",{method:"POST",headers:{Authorization:`Bearer ${mt()}`,"Content-Type":"application/json"},body:JSON.stringify(r.value)});if(!d.ok){const a=await d.json().catch(()=>({error:d.statusText}));throw new Error(a.error??d.statusText)}t.value={...r.value},o.value="Saved ✓",setTimeout(()=>{o.value=""},3e3)}catch(d){o.value="Error: "+d.message}finally{n.value=!1}}function c(d){const a=Math.floor(d/6e4);return a>=60?`${Math.floor(a/60)}h ${a%60}m`:`${a}m`}return ft(i),(d,a)=>($(),A("div",Qc,[f("div",Xc,[f("div",eu,[a[4]||(a[4]=f("div",null,[f("h3",{class:"text-lg font-semibold"},"Keep-Alive Settings"),f("p",{class:"text-sm text-textSecondary mt-1"},"Configure the headless agent auto-restart and monitoring behavior")],-1)),f("div",tu,[o.value?($(),A("span",{key:0,class:de([o.value.startsWith("Error")?"text-danger":"text-success","text-sm"])},O(o.value),3)):le("",!0),f("button",{onClick:l,disabled:n.value||s.value,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-sm font-medium transition"},O(n.value?"Saving…":"Save"),9,su)])]),s.value?($(),A("div",nu,"Loading…")):($(),A("div",ou,[f("div",ru,[f("div",iu,[a[5]||(a[5]=f("div",null,[f("div",{class:"text-sm font-medium"},"Enable Keep-Alive"),f("div",{class:"text-xs text-textSecondary mt-0.5"},"Automatically restart the agent when it goes offline")],-1)),f("button",{onClick:a[0]||(a[0]=p=>r.value.keepAliveEnabled=!r.value.keepAliveEnabled),class:de(["relative inline-flex h-6 w-11 items-center rounded-full transition-colors",r.value.keepAliveEnabled?"bg-accent":"bg-gray-700"])},[f("span",{class:de(["inline-block h-4 w-4 transform rounded-full bg-white shadow transition-transform",r.value.keepAliveEnabled?"translate-x-6":"translate-x-1"])},null,2)],2)])]),f("div",lu,[a[6]||(a[6]=f("label",{class:"block text-sm font-medium mb-1"},"Thread ID",-1)),a[7]||(a[7]=f("p",{class:"text-xs text-textSecondary mb-3"},"The Telegram thread to monitor and keep alive",-1)),fe(f("input",{"onUpdate:modelValue":a[1]||(a[1]=p=>r.value.keepAliveThreadId=p),type:"number",min:"0",class:"w-full sm:w-48 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Ce,r.value.keepAliveThreadId,void 0,{number:!0}]]),a[8]||(a[8]=f("p",{class:"text-xs text-muted mt-2"},"0 = disabled",-1))]),f("div",au,[a[9]||(a[9]=f("label",{class:"block text-sm font-medium mb-1"},"Max Retries",-1)),a[10]||(a[10]=f("p",{class:"text-xs text-textSecondary mb-3"},"Number of restart attempts before entering cooldown mode",-1)),fe(f("input",{"onUpdate:modelValue":a[2]||(a[2]=p=>r.value.keepAliveMaxRetries=p),type:"number",min:"1",max:"20",class:"w-full sm:w-32 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Ce,r.value.keepAliveMaxRetries,void 0,{number:!0}]])]),f("div",cu,[a[13]||(a[13]=f("label",{class:"block text-sm font-medium mb-1"},"Cooldown Duration",-1)),f("p",uu,[a[11]||(a[11]=xn(" Wait time after max retries exceeded before resuming restarts ",-1)),r.value.keepAliveCooldownMs?($(),A("span",fu,"("+O(c(r.value.keepAliveCooldownMs))+")",1)):le("",!0)]),f("div",du,[fe(f("input",{"onUpdate:modelValue":a[3]||(a[3]=p=>r.value.keepAliveCooldownMs=p),type:"number",min:"1000",step:"60000",class:"w-full sm:w-40 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Ce,r.value.keepAliveCooldownMs,void 0,{number:!0}]]),a[12]||(a[12]=f("span",{class:"text-xs text-textSecondary"},"ms",-1))])]),t.value?($(),A("div",pu,[a[18]||(a[18]=f("div",{class:"text-xs font-medium text-textSecondary uppercase tracking-wider mb-3"},"Current State",-1)),f("div",hu,[f("div",null,[a[14]||(a[14]=f("div",{class:"text-xs text-muted mb-1"},"Status",-1)),f("span",{class:de(["text-sm font-medium",t.value.keepAliveEnabled?"text-success":"text-textSecondary"])},O(t.value.keepAliveEnabled?"Enabled":"Disabled"),3)]),f("div",null,[a[15]||(a[15]=f("div",{class:"text-xs text-muted mb-1"},"Thread",-1)),f("span",mu,O(t.value.keepAliveThreadId||"—"),1)]),f("div",null,[a[16]||(a[16]=f("div",{class:"text-xs text-muted mb-1"},"Max Retries",-1)),f("span",gu,O(t.value.keepAliveMaxRetries),1)]),f("div",null,[a[17]||(a[17]=f("div",{class:"text-xs text-muted mb-1"},"Cooldown",-1)),f("span",xu,O(c(t.value.keepAliveCooldownMs)),1)])])])):le("",!0)]))])]))}}),yu={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-surface/95 backdrop-blur-sm"},bu={class:"glass rounded-2xl p-8 max-w-md w-full mx-4 animate-slide-up"},_u=["disabled"],wu={key:0,class:"mt-3 text-sm text-danger"},Su={key:1,class:"min-h-screen font-sans text-textPrimary animate-fade-in"},Cu={class:"glass sticky top-0 z-40 border-b border-gray-800/50"},Tu={class:"max-w-7xl mx-auto px-4 sm:px-6 py-4 flex items-center justify-between"},$u={class:"flex items-center gap-4"},ku={class:"text-sm text-textSecondary font-mono"},Eu={class:"max-w-7xl mx-auto px-4 sm:px-6 py-6"},Au={class:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3"},Mu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Pu={class:"text-2xl font-bold font-mono"},Ou={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Iu={class:"text-2xl font-bold font-mono"},Ru={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Du={class:"text-2xl font-bold font-mono"},Lu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},ju={class:"flex items-center gap-2 mb-2"},Nu={class:"text-2xl font-bold font-mono"},Fu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Hu={class:"text-2xl font-bold font-mono"},Vu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Uu={class:"text-2xl font-bold font-mono"},Bu={class:"max-w-7xl mx-auto px-4 sm:px-6"},Ku={class:"flex gap-6 border-b border-gray-800/50 mb-6"},Wu=["onClick"],zu={class:"max-w-7xl mx-auto px-4 sm:px-6 pb-12"},is="sensorium_token",qu=ut({__name:"App",setup(e){const t=L(!1),s=L(""),n=L(""),o=L(!1),r=L(null),i=L("sessions");let l=null;const c=[{id:"sessions",label:"Sessions"},{id:"notes",label:"Memory Notes"},{id:"episodes",label:"Episodes"},{id:"topics",label:"Topics"},{id:"templates",label:"Templates"},{id:"skills",label:"Skills"},{id:"keepalive",label:"Keep-Alive"}],d={sessions:na,notes:_a,episodes:ja,topics:za,templates:bc,skills:Zc,keepalive:vu},a=kt(()=>d[i.value]),p=kt(()=>{if(!r.value)return"—";const W=Math.floor(r.value.uptime),P=Math.floor(W/86400),V=Math.floor(W%86400/3600),z=Math.floor(W%3600/60);return P>0?`${P}d ${V}h`:V>0?`${V}h ${z}m`:`${z}m`});async function g(){const W=s.value.trim()||"no-auth";o.value=!0,n.value="";try{Lt(W),await U(),localStorage.setItem(is,W),t.value=!0,I()}catch(P){const V=P;V.status===401?n.value="Invalid token":n.value=V.message??"Connection failed",Lt("")}finally{o.value=!1}}function C(){localStorage.removeItem(is),t.value=!1,s.value="",r.value=null,l&&clearInterval(l),Lt("")}async function U(){r.value=await ue("/api/status")}function I(){l&&clearInterval(l),l=setInterval(U,3e4)}return ft(async()=>{const W=localStorage.getItem(is);if(W){s.value=W;try{Lt(W),await U(),t.value=!0,I()}catch{localStorage.removeItem(is),Lt("")}}}),hn(()=>{l&&clearInterval(l)}),(W,P)=>{var V,z,D,j,M,N,ne,Y,ce,Ae,qe;return t.value?($(),A("div",Su,[f("header",Cu,[f("div",Tu,[P[3]||(P[3]=Fe('<div class="flex items-center gap-3"><div class="w-8 h-8 rounded-lg bg-gradient-to-br from-accent to-purple-500 flex items-center justify-center"><span class="text-white text-sm font-bold">S</span></div><div><h1 class="text-lg font-semibold tracking-tight">Sensorium MCP</h1><p class="text-xs text-textSecondary">Agent Dashboard</p></div></div>',1)),f("div",$u,[P[2]||(P[2]=f("div",{class:"flex items-center gap-2 text-sm"},[f("span",{class:"w-2 h-2 rounded-full bg-success animate-pulse-slow"}),f("span",{class:"text-textSecondary"},"Connected")],-1)),f("div",ku,O(p.value),1),f("button",{onClick:C,class:"text-sm text-muted hover:text-textSecondary transition"},"Disconnect")])])]),f("div",Eu,[f("div",Au,[f("div",Mu,[P[4]||(P[4]=Fe('<div class="flex items-center gap-2 mb-2"><span class="text-success"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Sessions</span></div>',1)),f("div",Pu,O(((V=r.value)==null?void 0:V.activeSessions)??0),1)]),f("div",Ou,[P[5]||(P[5]=Fe('<div class="flex items-center gap-2 mb-2"><span class="text-accentLight"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Notes</span></div>',1)),f("div",Iu,O(((D=(z=r.value)==null?void 0:z.memory)==null?void 0:D.totalSemanticNotes)??0),1)]),f("div",Ru,[P[6]||(P[6]=Fe('<div class="flex items-center gap-2 mb-2"><span class="text-warn"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Episodes</span></div>',1)),f("div",Du,O(((M=(j=r.value)==null?void 0:j.memory)==null?void 0:M.totalEpisodes)??0),1)]),f("div",Lu,[f("div",ju,[f("span",{class:de((((ne=(N=r.value)==null?void 0:N.memory)==null?void 0:ne.unconsolidatedEpisodes)??0)>10?"text-danger":"text-success")},[...P[7]||(P[7]=[f("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)])],2),P[8]||(P[8]=f("span",{class:"text-xs text-textSecondary font-medium uppercase tracking-wider"},"Unconsolidated",-1))]),f("div",Nu,O(((ce=(Y=r.value)==null?void 0:Y.memory)==null?void 0:ce.unconsolidatedEpisodes)??0),1)]),f("div",Fu,[P[9]||(P[9]=Fe('<div class="flex items-center gap-2 mb-2"><span class="text-accent"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Procedures</span></div>',1)),f("div",Hu,O(((qe=(Ae=r.value)==null?void 0:Ae.memory)==null?void 0:qe.totalProcedures)??0),1)]),f("div",Vu,[P[10]||(P[10]=Fe('<div class="flex items-center gap-2 mb-2"><span class="text-success"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M12 5l7 7-7 7"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Uptime</span></div>',1)),f("div",Uu,O(p.value),1)])])]),f("div",Bu,[f("nav",Ku,[($(),A(ae,null,nt(c,Te=>f("button",{key:Te.id,onClick:vt=>i.value=Te.id,class:de(["pb-3 text-sm font-medium transition",i.value===Te.id?"tab-active":"tab-inactive"])},O(Te.label),11,Wu)),64))])]),f("div",zu,[($(),lr($i(a.value),{status:r.value},null,8,["status"]))])])):($(),A("div",yu,[f("div",bu,[P[1]||(P[1]=Fe('<div class="flex items-center gap-3 mb-6"><div class="w-10 h-10 rounded-xl bg-accent/20 flex items-center justify-center"><svg class="w-5 h-5 text-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path></svg></div><div><h2 class="text-lg font-semibold">Sensorium MCP</h2><p class="text-sm text-textSecondary">Enter your API token</p></div></div>',1)),fe(f("input",{"onUpdate:modelValue":P[0]||(P[0]=Te=>s.value=Te),type:"password",placeholder:"MCP_HTTP_SECRET",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary placeholder-muted focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition font-mono text-sm",onKeydown:jl(g,["enter"])},null,544),[[Ce,s.value]]),f("button",{onClick:g,disabled:o.value,class:"w-full mt-4 px-4 py-3 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white font-medium transition"},O(o.value?"Connecting...":"Connect"),9,_u),n.value?($(),A("p",wu,O(n.value),1)):le("",!0)])]))}}});Hl(qu).mount("#app");</script>
|
|
71
|
+
`,J+re}async function z(){if(!n.value)return;const N=n.value.name;try{const O=r.value.split(",").map(ae=>ae.trim()).filter(Boolean),V=o.value;let re;V.trimStart().startsWith("---")?re=V:re=L(N,O,i.value,V);const J=await fetch(`/api/skills/${encodeURIComponent(N)}`,{method:"PUT",headers:{Authorization:`Bearer ${st()}`,"Content-Type":"application/json"},body:JSON.stringify({content:re})});if(!J.ok)throw new Error(J.statusText);l.value="Saved ✓",setTimeout(()=>{l.value=""},3e3),await S()}catch(O){l.value="Error: "+O.message}}async function R(){const N=m.value.trim(),O=f.value;if(!N){h.value="Name is required";return}const V=O.split(",").map(J=>J.trim()).filter(Boolean);if(!V.length){h.value="At least one trigger is required";return}const re=L(N,V,p.value,`\x3C!-- Write your skill instructions here -->
|
|
72
|
+
`);try{const J=await fetch(`/api/skills/${encodeURIComponent(N)}`,{method:"PUT",headers:{Authorization:`Bearer ${st()}`,"Content-Type":"application/json"},body:JSON.stringify({content:re})});if(!J.ok)throw new Error(J.statusText);h.value="Created ✓",a.value=!1,await S();const ae=t.value.find(Pe=>Pe.name===N);ae&&W(ae)}catch(J){h.value="Error: "+J.message}}return wt(S),(N,O)=>(A(),E("div",oc,[u("div",rc,[u("div",ic,[O[8]||(O[8]=u("div",null,[u("h3",{class:"text-lg font-semibold"},"Skill Library"),u("p",{class:"text-sm text-textSecondary mt-1"},"Manage intent-routing skills — user overrides, defaults, and project skills")],-1)),u("button",{onClick:O[0]||(O[0]=V=>{a.value=!a.value,n.value=null}),class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"}," + New Skill ")]),a.value?(A(),E("div",lc,[O[12]||(O[12]=u("h4",{class:"text-sm font-semibold mb-3"},"Create New Skill",-1)),u("div",ac,[u("div",null,[O[9]||(O[9]=u("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),pe(u("input",{"onUpdate:modelValue":O[1]||(O[1]=V=>m.value=V),type:"text",placeholder:"my-skill",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Oe,m.value]])]),u("div",null,[O[10]||(O[10]=u("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),pe(u("input",{"onUpdate:modelValue":O[2]||(O[2]=V=>f.value=V),type:"text",placeholder:"trigger1, trigger2",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},null,512),[[Oe,f.value]])])]),u("div",cc,[u("label",uc,[pe(u("input",{"onUpdate:modelValue":O[3]||(O[3]=V=>p.value=V),type:"checkbox",class:"rounded"},null,512),[[ro,p.value]]),O[11]||(O[11]=u("span",null,"Replaces orchestrator",-1))])]),u("div",fc,[u("button",{onClick:R,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Create"),u("button",{onClick:O[4]||(O[4]=V=>a.value=!1),class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Cancel"),h.value?(A(),E("span",dc,j(h.value),1)):ie("",!0)])])):ie("",!0),s.value?(A(),E("div",pc,"Loading...")):t.value.length===0?(A(),E("div",hc,"No skills loaded")):(A(),E("div",mc,[(A(!0),E(ue,null,ct(t.value,V=>{var re;return A(),E("div",{key:V.name,onClick:J=>W(V),class:fe(["glass rounded-xl p-4 cursor-pointer hover:bg-cardHover transition border",((re=n.value)==null?void 0:re.name)===V.name?"border-accent":"border-transparent"])},[u("div",xc,[u("div",vc,[u("div",bc,[u("span",yc,j(V.name),1),u("span",{class:"type-badge",style:As(M(P(V.source)))},j(P(V.source)),5),V.replacesOrchestrator?(A(),E("span",_c,"REPLACES ORCH")):ie("",!0)]),u("div",wc,[(A(!0),E(ue,null,ct(V.triggers||[],J=>(A(),E("span",{key:J,class:"text-xs px-2 py-0.5 rounded-full bg-accent/10 text-accentLight"},j(J),1))),128))])]),u("div",{class:"text-xs text-muted font-mono shrink-0 max-w-[200px] truncate",title:V.source||""},j((V.source||"").split(/[\\/]/).pop()||""),9,Sc)])],10,gc)}),128))]))]),n.value?(A(),E("div",Cc,[u("div",Tc,[u("div",null,[u("h3",$c,"Edit: "+j(n.value.name),1),u("p",kc,j(n.value.source||"(unknown source)"),1)]),u("div",Ac,[l.value?(A(),E("span",Ec,j(l.value),1)):ie("",!0),u("button",{onClick:k,class:"px-4 py-2 rounded-xl bg-card hover:bg-cardHover border border-gray-700 text-sm text-textSecondary hover:text-textPrimary transition"},"Close"),u("button",{onClick:z,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight text-white text-sm font-medium transition"},"Save")])]),u("div",Pc,[u("div",null,[O[13]||(O[13]=u("label",{class:"text-xs text-textSecondary block mb-1"},"Name",-1)),u("input",{value:n.value.name,type:"text",readonly:"",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono opacity-60 cursor-not-allowed"},null,8,Mc)]),u("div",null,[O[14]||(O[14]=u("label",{class:"text-xs text-textSecondary block mb-1"},"Triggers (comma-separated)",-1)),pe(u("input",{"onUpdate:modelValue":O[5]||(O[5]=V=>r.value=V),type:"text",class:"w-full px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition"},null,512),[[Oe,r.value]])]),u("div",Oc,[u("label",Ic,[pe(u("input",{"onUpdate:modelValue":O[6]||(O[6]=V=>i.value=V),type:"checkbox",class:"rounded"},null,512),[[ro,i.value]]),O[15]||(O[15]=u("span",null,"Replaces orchestrator",-1))])])]),pe(u("textarea",{"onUpdate:modelValue":O[7]||(O[7]=V=>o.value=V),rows:"20",spellcheck:"false",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary font-mono text-sm leading-relaxed focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition resize-y",placeholder:"Skill body (markdown)..."},null,512),[[Oe,o.value]])])):ie("",!0)]))}}),Dc={class:"animate-fade-in"},jc={class:"glass rounded-xl p-6 mb-6"},Lc={class:"flex flex-wrap items-center justify-between gap-4 mb-6"},Nc={class:"flex items-center gap-3"},Fc=["disabled"],Hc={key:0,class:"text-center py-8 text-textSecondary text-sm"},Vc={key:1,class:"space-y-6"},Uc={class:"glass rounded-xl p-4 border border-gray-700/50"},Bc={class:"flex items-center justify-between"},Kc={class:"glass rounded-xl p-4 border border-gray-700/50"},Wc=["value"],zc={key:0,class:"text-xs text-warn mt-2"},qc={class:"glass rounded-xl p-4 border border-gray-700/50"},Jc={class:"glass rounded-xl p-4 border border-gray-700/50"},Gc={class:"text-xs text-textSecondary mb-3"},Yc={key:0,class:"ml-1 text-accentLight font-mono"},Zc={class:"flex items-center gap-2"},Qc={key:0,class:"glass rounded-xl p-4 border border-gray-700/30 bg-surface/30"},Xc={class:"grid grid-cols-2 sm:grid-cols-4 gap-4"},eu={class:"text-sm font-mono"},tu={class:"text-sm font-mono"},su={class:"text-sm font-mono"},nu=jt({__name:"KeepAliveTab",setup(e){const t=H(null),s=H([]),n=H(!0),o=H(!1),r=H(""),i=H({keepAliveEnabled:!1,keepAliveThreadId:0,keepAliveMaxRetries:5,keepAliveCooldownMs:3e5}),l=_t(()=>{const p=new Set;return s.value.filter(h=>h.threadId!=null&&!p.has(h.threadId)&&p.add(h.threadId)).map(h=>({threadId:h.threadId,label:h.topicName??`Thread ${h.threadId}`}))});async function a(){n.value=!0;try{const[p,h]=await Promise.all([de("/api/settings/keep-alive"),de("/api/sessions")]);t.value=p,s.value=h,i.value={...p}}finally{n.value=!1}}async function m(){o.value=!0,r.value="";try{const p=await fetch("/api/settings/keep-alive",{method:"POST",headers:{Authorization:`Bearer ${st()}`,"Content-Type":"application/json"},body:JSON.stringify(i.value)});if(!p.ok){const h=await p.json().catch(()=>({error:p.statusText}));throw new Error(h.error??p.statusText)}t.value={...i.value},r.value="Saved ✓",setTimeout(()=>{r.value=""},3e3)}catch(p){r.value="Error: "+p.message}finally{o.value=!1}}function f(p){const h=Math.floor(p/6e4);return h>=60?`${Math.floor(h/60)}h ${h%60}m`:`${h}m`}return wt(a),(p,h)=>{var S;return A(),E("div",Dc,[u("div",jc,[u("div",Lc,[h[4]||(h[4]=u("div",null,[u("h3",{class:"text-lg font-semibold"},"Keep-Alive Settings"),u("p",{class:"text-sm text-textSecondary mt-1"},"Configure the headless agent auto-restart and monitoring behavior")],-1)),u("div",Nc,[r.value?(A(),E("span",{key:0,class:fe([r.value.startsWith("Error")?"text-danger":"text-success","text-sm"])},j(r.value),3)):ie("",!0),u("button",{onClick:m,disabled:o.value||n.value,class:"px-4 py-2 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white text-sm font-medium transition"},j(o.value?"Saving…":"Save"),9,Fc)])]),n.value?(A(),E("div",Hc,"Loading…")):(A(),E("div",Vc,[u("div",Uc,[u("div",Bc,[h[5]||(h[5]=u("div",null,[u("div",{class:"text-sm font-medium"},"Enable Keep-Alive"),u("div",{class:"text-xs text-textSecondary mt-0.5"},"Automatically restart the agent when it goes offline")],-1)),u("button",{onClick:h[0]||(h[0]=P=>i.value.keepAliveEnabled=!i.value.keepAliveEnabled),class:fe(["relative inline-flex h-6 w-11 items-center rounded-full transition-colors",i.value.keepAliveEnabled?"bg-accent":"bg-gray-700"])},[u("span",{class:fe(["inline-block h-4 w-4 transform rounded-full bg-white shadow transition-transform",i.value.keepAliveEnabled?"translate-x-6":"translate-x-1"])},null,2)],2)])]),u("div",Kc,[h[7]||(h[7]=u("label",{class:"block text-sm font-medium mb-1"},"Session to Keep Alive",-1)),h[8]||(h[8]=u("p",{class:"text-xs text-textSecondary mb-3"},"Select the Telegram thread to monitor and keep alive",-1)),pe(u("select",{"onUpdate:modelValue":h[1]||(h[1]=P=>i.value.keepAliveThreadId=P),class:"w-full sm:w-72 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary focus:outline-none focus:border-accent transition appearance-none"},[h[6]||(h[6]=u("option",{value:0},"Disabled",-1)),(A(!0),E(ue,null,ct(l.value,P=>(A(),E("option",{key:P.threadId,value:P.threadId},j(P.label)+" ("+j(P.threadId)+") ",9,Wc))),128))],512),[[_s,i.value.keepAliveThreadId,void 0,{number:!0}]]),i.value.keepAliveThreadId&&!l.value.find(P=>P.threadId===i.value.keepAliveThreadId)?(A(),E("p",zc," Thread "+j(i.value.keepAliveThreadId)+" is configured but not in active sessions ",1)):ie("",!0)]),u("div",qc,[h[9]||(h[9]=u("label",{class:"block text-sm font-medium mb-1"},"Max Retries",-1)),h[10]||(h[10]=u("p",{class:"text-xs text-textSecondary mb-3"},"Number of restart attempts before entering cooldown mode",-1)),pe(u("input",{"onUpdate:modelValue":h[2]||(h[2]=P=>i.value.keepAliveMaxRetries=P),type:"number",min:"1",max:"20",class:"w-full sm:w-32 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Oe,i.value.keepAliveMaxRetries,void 0,{number:!0}]])]),u("div",Jc,[h[13]||(h[13]=u("label",{class:"block text-sm font-medium mb-1"},"Cooldown Duration",-1)),u("p",Gc,[h[11]||(h[11]=yn(" Wait time after max retries exceeded before resuming restarts ",-1)),i.value.keepAliveCooldownMs?(A(),E("span",Yc,"("+j(f(i.value.keepAliveCooldownMs))+")",1)):ie("",!0)]),u("div",Zc,[pe(u("input",{"onUpdate:modelValue":h[3]||(h[3]=P=>i.value.keepAliveCooldownMs=P),type:"number",min:"1000",step:"60000",class:"w-full sm:w-40 px-3 py-2 rounded-lg bg-surface border border-gray-700 text-sm text-textPrimary font-mono focus:outline-none focus:border-accent transition"},null,512),[[Oe,i.value.keepAliveCooldownMs,void 0,{number:!0}]]),h[12]||(h[12]=u("span",{class:"text-xs text-textSecondary"},"ms",-1))])]),t.value?(A(),E("div",Qc,[h[18]||(h[18]=u("div",{class:"text-xs font-medium text-textSecondary uppercase tracking-wider mb-3"},"Current State",-1)),u("div",Xc,[u("div",null,[h[14]||(h[14]=u("div",{class:"text-xs text-muted mb-1"},"Status",-1)),u("span",{class:fe(["text-sm font-medium",t.value.keepAliveEnabled?"text-success":"text-textSecondary"])},j(t.value.keepAliveEnabled?"Enabled":"Disabled"),3)]),u("div",null,[h[15]||(h[15]=u("div",{class:"text-xs text-muted mb-1"},"Thread",-1)),u("span",eu,j(((S=l.value.find(P=>P.threadId===t.value.keepAliveThreadId))==null?void 0:S.label)??(t.value.keepAliveThreadId||"—")),1)]),u("div",null,[h[16]||(h[16]=u("div",{class:"text-xs text-muted mb-1"},"Max Retries",-1)),u("span",tu,j(t.value.keepAliveMaxRetries),1)]),u("div",null,[h[17]||(h[17]=u("div",{class:"text-xs text-muted mb-1"},"Cooldown",-1)),u("span",su,j(f(t.value.keepAliveCooldownMs)),1)])])])):ie("",!0)]))])])}}}),ou={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-surface/95 backdrop-blur-sm"},ru={class:"glass rounded-2xl p-8 max-w-md w-full mx-4 animate-slide-up"},iu=["disabled"],lu={key:0,class:"mt-3 text-sm text-danger"},au={key:1,class:"min-h-screen font-sans text-textPrimary animate-fade-in"},cu={class:"glass sticky top-0 z-40 border-b border-gray-800/50"},uu={class:"max-w-7xl mx-auto px-4 sm:px-6 py-4 flex items-center justify-between"},fu={class:"flex items-center gap-4"},du={class:"text-sm text-textSecondary font-mono"},pu={class:"max-w-7xl mx-auto px-4 sm:px-6 py-6"},hu={class:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3"},mu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},gu={class:"text-2xl font-bold font-mono"},xu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},vu={class:"text-2xl font-bold font-mono"},bu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},yu={class:"text-2xl font-bold font-mono"},_u={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},wu={class:"flex items-center gap-2 mb-2"},Su={class:"text-2xl font-bold font-mono"},Cu={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},Tu={class:"text-2xl font-bold font-mono"},$u={class:"glass rounded-xl p-4 stat-glow animate-slide-up"},ku={class:"text-2xl font-bold font-mono"},Au={class:"max-w-7xl mx-auto px-4 sm:px-6"},Eu={class:"flex gap-6 border-b border-gray-800/50 mb-6"},Pu=["onClick"],Mu={class:"max-w-7xl mx-auto px-4 sm:px-6 pb-12"},cs="sensorium_token",Ou=jt({__name:"App",setup(e){const t=H(!1),s=H(""),n=H(""),o=H(!1),r=H(null),i=H("sessions");let l=null;const a=[{id:"sessions",label:"Sessions"},{id:"notes",label:"Memory Notes"},{id:"templates",label:"Templates"},{id:"skills",label:"Skills"},{id:"keepalive",label:"Keep-Alive"}],m={sessions:na,notes:_a,templates:nc,skills:Rc,keepalive:nu},f=_t(()=>m[i.value]),p=_t(()=>{if(!r.value)return"—";const W=Math.floor(r.value.uptime),k=Math.floor(W/86400),L=Math.floor(W%86400/3600),z=Math.floor(W%3600/60);return k>0?`${k}d ${L}h`:L>0?`${L}h ${z}m`:`${z}m`});async function h(){const W=s.value.trim()||"no-auth";o.value=!0,n.value="";try{Vt(W),await P(),localStorage.setItem(cs,W),t.value=!0,M()}catch(k){const L=k;L.status===401?n.value="Invalid token":n.value=L.message??"Connection failed",Vt("")}finally{o.value=!1}}function S(){localStorage.removeItem(cs),t.value=!1,s.value="",r.value=null,l&&clearInterval(l),Vt("")}async function P(){r.value=await de("/api/status")}function M(){l&&clearInterval(l),l=setInterval(P,3e4)}return wt(async()=>{const W=localStorage.getItem(cs);if(W){s.value=W;try{Vt(W),await P(),t.value=!0,M()}catch{localStorage.removeItem(cs),Vt("")}}}),xn(()=>{l&&clearInterval(l)}),(W,k)=>{var L,z,R,N,O,V,re,J,ae,Pe,Ge;return t.value?(A(),E("div",au,[u("header",cu,[u("div",uu,[k[3]||(k[3]=Ve('<div class="flex items-center gap-3"><div class="w-8 h-8 rounded-lg bg-gradient-to-br from-accent to-purple-500 flex items-center justify-center"><span class="text-white text-sm font-bold">S</span></div><div><h1 class="text-lg font-semibold tracking-tight">Sensorium MCP</h1><p class="text-xs text-textSecondary">Agent Dashboard</p></div></div>',1)),u("div",fu,[k[2]||(k[2]=u("div",{class:"flex items-center gap-2 text-sm"},[u("span",{class:"w-2 h-2 rounded-full bg-success animate-pulse-slow"}),u("span",{class:"text-textSecondary"},"Connected")],-1)),u("div",du,j(p.value),1),u("button",{onClick:S,class:"text-sm text-muted hover:text-textSecondary transition"},"Disconnect")])])]),u("div",pu,[u("div",hu,[u("div",mu,[k[4]||(k[4]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-success"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Sessions</span></div>',1)),u("div",gu,j(((L=r.value)==null?void 0:L.activeSessions)??0),1)]),u("div",xu,[k[5]||(k[5]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-accentLight"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Notes</span></div>',1)),u("div",vu,j(((R=(z=r.value)==null?void 0:z.memory)==null?void 0:R.totalSemanticNotes)??0),1)]),u("div",bu,[k[6]||(k[6]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-warn"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Episodes</span></div>',1)),u("div",yu,j(((O=(N=r.value)==null?void 0:N.memory)==null?void 0:O.totalEpisodes)??0),1)]),u("div",_u,[u("div",wu,[u("span",{class:fe((((re=(V=r.value)==null?void 0:V.memory)==null?void 0:re.unconsolidatedEpisodes)??0)>10?"text-danger":"text-success")},[...k[7]||(k[7]=[u("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[u("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)])],2),k[8]||(k[8]=u("span",{class:"text-xs text-textSecondary font-medium uppercase tracking-wider"},"Unconsolidated",-1))]),u("div",Su,j(((ae=(J=r.value)==null?void 0:J.memory)==null?void 0:ae.unconsolidatedEpisodes)??0),1)]),u("div",Cu,[k[9]||(k[9]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-accent"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Procedures</span></div>',1)),u("div",Tu,j(((Ge=(Pe=r.value)==null?void 0:Pe.memory)==null?void 0:Ge.totalProcedures)??0),1)]),u("div",$u,[k[10]||(k[10]=Ve('<div class="flex items-center gap-2 mb-2"><span class="text-success"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M12 5l7 7-7 7"></path></svg></span><span class="text-xs text-textSecondary font-medium uppercase tracking-wider">Uptime</span></div>',1)),u("div",ku,j(p.value),1)])])]),u("div",Au,[u("nav",Eu,[(A(),E(ue,null,ct(a,Te=>u("button",{key:Te.id,onClick:St=>i.value=Te.id,class:fe(["pb-3 text-sm font-medium transition",i.value===Te.id?"tab-active":"tab-inactive"])},j(Te.label),11,Pu)),64))])]),u("div",Mu,[(A(),cr($i(f.value),{status:r.value},null,8,["status"]))])])):(A(),E("div",ou,[u("div",ru,[k[1]||(k[1]=Ve('<div class="flex items-center gap-3 mb-6"><div class="w-10 h-10 rounded-xl bg-accent/20 flex items-center justify-center"><svg class="w-5 h-5 text-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path></svg></div><div><h2 class="text-lg font-semibold">Sensorium MCP</h2><p class="text-sm text-textSecondary">Enter your API token</p></div></div>',1)),pe(u("input",{"onUpdate:modelValue":k[0]||(k[0]=Te=>s.value=Te),type:"password",placeholder:"MCP_HTTP_SECRET",class:"w-full px-4 py-3 rounded-xl bg-surface border border-gray-700 text-textPrimary placeholder-muted focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition font-mono text-sm",onKeydown:Ll(h,["enter"])},null,544),[[Oe,s.value]]),u("button",{onClick:h,disabled:o.value,class:"w-full mt-4 px-4 py-3 rounded-xl bg-accent hover:bg-accentLight disabled:opacity-50 text-white font-medium transition"},j(o.value?"Connecting...":"Connect"),9,iu),n.value?(A(),E("p",lu,j(n.value),1)):ie("",!0)])]))}}});Hl(Ou).mount("#app");</script>
|
|
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">
|