context-lens 0.6.1 → 0.7.0
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/README.md +112 -20
- package/dist/analysis/server.js +2 -2
- package/dist/analysis/server.js.map +1 -1
- package/dist/cli-utils.d.ts +5 -0
- package/dist/cli-utils.d.ts.map +1 -1
- package/dist/cli-utils.js +57 -1
- package/dist/cli-utils.js.map +1 -1
- package/dist/cli.js +85 -11
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +35 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +113 -0
- package/dist/config.js.map +1 -0
- package/dist/core/models.d.ts +6 -38
- package/dist/core/models.d.ts.map +1 -1
- package/dist/core/models.js +6 -213
- package/dist/core/models.js.map +1 -1
- package/dist/core/routing.d.ts.map +1 -1
- package/dist/core/routing.js +7 -1
- package/dist/core/routing.js.map +1 -1
- package/dist/core/security.d.ts.map +1 -1
- package/dist/core/security.js +23 -0
- package/dist/core/security.js.map +1 -1
- package/dist/core/waste.d.ts +73 -0
- package/dist/core/waste.d.ts.map +1 -0
- package/dist/core/waste.js +283 -0
- package/dist/core/waste.js.map +1 -0
- package/dist/core.d.ts +2 -0
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +1 -0
- package/dist/core.js.map +1 -1
- package/dist/http/headers.d.ts +9 -17
- package/dist/http/headers.d.ts.map +1 -1
- package/dist/http/headers.js +10 -38
- package/dist/http/headers.js.map +1 -1
- package/dist/proxy/config.d.ts.map +1 -1
- package/dist/proxy/config.js +13 -0
- package/dist/proxy/config.js.map +1 -1
- package/dist/proxy/server.js +22 -0
- package/dist/proxy/server.js.map +1 -1
- package/dist/schemas.d.ts +14 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +8 -0
- package/dist/schemas.js.map +1 -1
- package/dist/server/api.d.ts.map +1 -1
- package/dist/server/api.js.map +1 -1
- package/dist/server/projection.d.ts.map +1 -1
- package/dist/server/projection.js +1 -0
- package/dist/server/projection.js.map +1 -1
- package/dist/server/store.d.ts.map +1 -1
- package/dist/server/store.js +100 -10
- package/dist/server/store.js.map +1 -1
- package/dist/types.d.ts +13 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/version.generated.d.ts +1 -1
- package/dist/version.generated.js +1 -1
- package/mitm_addon.py +3 -0
- package/package.json +7 -4
- package/ui/dist/assets/index-B1EiZYbW.css +1 -0
- package/ui/dist/assets/index-DDiXESm5.js +52 -0
- package/ui/dist/index.html +2 -2
- package/ui/dist/assets/index-DYoafQtJ.css +0 -1
- package/ui/dist/assets/index-t5l_d6Oq.js +0 -52
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/cpp-BRuaLJcg.js","assets/c-BIGW1oBm.js","assets/sql-BLtJtn59.js","assets/ruby-CkRbH_-r.js","assets/graphql-ChdNCCLP.js","assets/typescript-BPQ3VLAy.js","assets/jsx-g9-lgVsj.js","assets/tsx-COt5Ahok.js","assets/shellscript-Yzrsuije.js","assets/yaml-Buea-lGh.js","assets/php-Dhbhpdrm.js","assets/json-Cp-IABpG.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const r of s.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&u(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function u(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();/**
|
|
3
|
+
* @vue/shared v3.5.28
|
|
4
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
|
+
* @license MIT
|
|
6
|
+
**/function _r(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const We={},uu=[],Xt=()=>{},Gl=()=>!1,Uo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),yr=e=>e.startsWith("onUpdate:"),st=Object.assign,xr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_0=Object.prototype.hasOwnProperty,Ve=(e,t)=>_0.call(e,t),De=Array.isArray,ou=e=>no(e)==="[object Map]",Zl=e=>no(e)==="[object Set]",ui=e=>no(e)==="[object Date]",Me=e=>typeof e=="function",Ye=e=>typeof e=="string",Ht=e=>typeof e=="symbol",Ue=e=>e!==null&&typeof e=="object",Jl=e=>(Ue(e)||Me(e))&&Me(e.then)&&Me(e.catch),Yl=Object.prototype.toString,no=e=>Yl.call(e),y0=e=>no(e).slice(8,-1),Xl=e=>no(e)==="[object Object]",Wo=e=>Ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Cu=_r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ko=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},x0=/-\w/g,It=Ko(e=>e.replace(x0,t=>t.slice(1).toUpperCase())),k0=/\B([A-Z])/g,Rn=Ko(e=>e.replace(k0,"-$1").toLowerCase()),Go=Ko(e=>e.charAt(0).toUpperCase()+e.slice(1)),gs=Ko(e=>e?`on${Go(e)}`:""),An=(e,t)=>!Object.is(e,t),xo=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Ql=(e,t,n,u=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:u,value:n})},kr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},w0=e=>{const t=Ye(e)?Number(e):NaN;return isNaN(t)?e:t};let oi;const Zo=()=>oi||(oi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Se(e){if(De(e)){const t={};for(let n=0;n<e.length;n++){const u=e[n],o=Ye(u)?T0(u):Se(u);if(o)for(const s in o)t[s]=o[s]}return t}else if(Ye(e)||Ue(e))return e}const C0=/;(?![^(]*\))/g,$0=/:([^]+)/,E0=/\/\*[^]*?\*\//g;function T0(e){const t={};return e.replace(E0,"").split(C0).forEach(n=>{if(n){const u=n.split($0);u.length>1&&(t[u[0].trim()]=u[1].trim())}}),t}function ie(e){let t="";if(Ye(e))t=e;else if(De(e))for(let n=0;n<e.length;n++){const u=ie(e[n]);u&&(t+=u+" ")}else if(Ue(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function S0(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ye(t)&&(e.class=ie(t)),n&&(e.style=Se(n)),e}const D0="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",A0=_r(D0);function ea(e){return!!e||e===""}function F0(e,t){if(e.length!==t.length)return!1;let n=!0;for(let u=0;n&&u<e.length;u++)n=wr(e[u],t[u]);return n}function wr(e,t){if(e===t)return!0;let n=ui(e),u=ui(t);if(n||u)return n&&u?e.getTime()===t.getTime():!1;if(n=Ht(e),u=Ht(t),n||u)return e===t;if(n=De(e),u=De(t),n||u)return n&&u?F0(e,t):!1;if(n=Ue(e),u=Ue(t),n||u){if(!n||!u)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const r in e){const i=e.hasOwnProperty(r),l=t.hasOwnProperty(r);if(i&&!l||!i&&l||!wr(e[r],t[r]))return!1}}return String(e)===String(t)}const ta=e=>!!(e&&e.__v_isRef===!0),A=e=>Ye(e)?e:e==null?"":De(e)||Ue(e)&&(e.toString===Yl||!Me(e.toString))?ta(e)?A(e.value):JSON.stringify(e,na,2):String(e),na=(e,t)=>ta(t)?na(e,t.value):ou(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[u,o],s)=>(n[vs(u,s)+" =>"]=o,n),{})}:Zl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>vs(n))}:Ht(t)?vs(t):Ue(t)&&!De(t)&&!Xl(t)?String(t):t,vs=(e,t="")=>{var n;return Ht(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
7
|
+
* @vue/reactivity v3.5.28
|
|
8
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
9
|
+
* @license MIT
|
|
10
|
+
**/let pt;class ua{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=pt,!t&&pt&&(this.index=(pt.scopes||(pt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=pt;try{return pt=this,t()}finally{pt=n}}}on(){++this._on===1&&(this.prevScope=pt,pt=this)}off(){this._on>0&&--this._on===0&&(pt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,u;for(n=0,u=this.effects.length;n<u;n++)this.effects[n].stop();for(this.effects.length=0,n=0,u=this.cleanups.length;n<u;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,u=this.scopes.length;n<u;n++)this.scopes[n].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 oa(e){return new ua(e)}function sa(){return pt}function M0(e,t=!1){pt&&pt.cleanups.push(e)}let Ke;const bs=new WeakSet;class ra{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,pt&&pt.active&&pt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,bs.has(this)&&(bs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||la(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,si(this),aa(this);const t=Ke,n=zt;Ke=this,zt=!0;try{return this.fn()}finally{ca(this),Ke=t,zt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Er(t);this.deps=this.depsTail=void 0,si(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?bs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Vs(this)&&this.run()}get dirty(){return Vs(this)}}let ia=0,$u,Eu;function la(e,t=!1){if(e.flags|=8,t){e.next=Eu,Eu=e;return}e.next=$u,$u=e}function Cr(){ia++}function $r(){if(--ia>0)return;if(Eu){let t=Eu;for(Eu=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;$u;){let t=$u;for($u=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(u){e||(e=u)}t=n}}if(e)throw e}function aa(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ca(e){let t,n=e.depsTail,u=n;for(;u;){const o=u.prevDep;u.version===-1?(u===n&&(n=o),Er(u),I0(u)):t=u,u.dep.activeLink=u.prevActiveLink,u.prevActiveLink=void 0,u=o}e.deps=t,e.depsTail=n}function Vs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fa(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fa(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ru)||(e.globalVersion=Ru,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Vs(e))))return;e.flags|=2;const t=e.dep,n=Ke,u=zt;Ke=e,zt=!0;try{aa(e);const o=e.fn(e._value);(t.version===0||An(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ke=n,zt=u,ca(e),e.flags&=-3}}function Er(e,t=!1){const{dep:n,prevSub:u,nextSub:o}=e;if(u&&(u.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=u,e.nextSub=void 0),n.subs===e&&(n.subs=u,!u&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Er(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function I0(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let zt=!0;const da=[];function mn(){da.push(zt),zt=!1}function gn(){const e=da.pop();zt=e===void 0?!0:e}function si(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ke;Ke=void 0;try{t()}finally{Ke=n}}}let Ru=0;class P0{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Tr{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(!Ke||!zt||Ke===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ke)n=this.activeLink=new P0(Ke,this),Ke.deps?(n.prevDep=Ke.depsTail,Ke.depsTail.nextDep=n,Ke.depsTail=n):Ke.deps=Ke.depsTail=n,pa(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const u=n.nextDep;u.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=u),n.prevDep=Ke.depsTail,n.nextDep=void 0,Ke.depsTail.nextDep=n,Ke.depsTail=n,Ke.deps===n&&(Ke.deps=u)}return n}trigger(t){this.version++,Ru++,this.notify(t)}notify(t){Cr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{$r()}}}function pa(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let u=t.deps;u;u=u.nextDep)pa(u)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const To=new WeakMap,Gn=Symbol(""),Us=Symbol(""),Ou=Symbol("");function ht(e,t,n){if(zt&&Ke){let u=To.get(e);u||To.set(e,u=new Map);let o=u.get(n);o||(u.set(n,o=new Tr),o.map=u,o.key=n),o.track()}}function cn(e,t,n,u,o,s){const r=To.get(e);if(!r){Ru++;return}const i=l=>{l&&l.trigger()};if(Cr(),t==="clear")r.forEach(i);else{const l=De(e),a=l&&Wo(n);if(l&&n==="length"){const f=Number(u);r.forEach((p,h)=>{(h==="length"||h===Ou||!Ht(h)&&h>=f)&&i(p)})}else switch((n!==void 0||r.has(void 0))&&i(r.get(n)),a&&i(r.get(Ou)),t){case"add":l?a&&i(r.get("length")):(i(r.get(Gn)),ou(e)&&i(r.get(Us)));break;case"delete":l||(i(r.get(Gn)),ou(e)&&i(r.get(Us)));break;case"set":ou(e)&&i(r.get(Gn));break}}$r()}function L0(e,t){const n=To.get(e);return n&&n.get(t)}function Xn(e){const t=Be(e);return t===e?t:(ht(t,"iterate",Ou),Et(e)?t:t.map(jt))}function Jo(e){return ht(e=Be(e),"iterate",Ou),e}function $n(e,t){return vn(e)?au(pn(e)?jt(t):t):jt(t)}const R0={__proto__:null,[Symbol.iterator](){return _s(this,Symbol.iterator,e=>$n(this,e))},concat(...e){return Xn(this).concat(...e.map(t=>De(t)?Xn(t):t))},entries(){return _s(this,"entries",e=>(e[1]=$n(this,e[1]),e))},every(e,t){return sn(this,"every",e,t,void 0,arguments)},filter(e,t){return sn(this,"filter",e,t,n=>n.map(u=>$n(this,u)),arguments)},find(e,t){return sn(this,"find",e,t,n=>$n(this,n),arguments)},findIndex(e,t){return sn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return sn(this,"findLast",e,t,n=>$n(this,n),arguments)},findLastIndex(e,t){return sn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return sn(this,"forEach",e,t,void 0,arguments)},includes(...e){return ys(this,"includes",e)},indexOf(...e){return ys(this,"indexOf",e)},join(e){return Xn(this).join(e)},lastIndexOf(...e){return ys(this,"lastIndexOf",e)},map(e,t){return sn(this,"map",e,t,void 0,arguments)},pop(){return mu(this,"pop")},push(...e){return mu(this,"push",e)},reduce(e,...t){return ri(this,"reduce",e,t)},reduceRight(e,...t){return ri(this,"reduceRight",e,t)},shift(){return mu(this,"shift")},some(e,t){return sn(this,"some",e,t,void 0,arguments)},splice(...e){return mu(this,"splice",e)},toReversed(){return Xn(this).toReversed()},toSorted(e){return Xn(this).toSorted(e)},toSpliced(...e){return Xn(this).toSpliced(...e)},unshift(...e){return mu(this,"unshift",e)},values(){return _s(this,"values",e=>$n(this,e))}};function _s(e,t,n){const u=Jo(e),o=u[t]();return u!==e&&!Et(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.done||(s.value=n(s.value)),s}),o}const O0=Array.prototype;function sn(e,t,n,u,o,s){const r=Jo(e),i=r!==e&&!Et(e),l=r[t];if(l!==O0[t]){const p=l.apply(e,s);return i?jt(p):p}let a=n;r!==e&&(i?a=function(p,h){return n.call(this,$n(e,p),h,e)}:n.length>2&&(a=function(p,h){return n.call(this,p,h,e)}));const f=l.call(r,a,u);return i&&o?o(f):f}function ri(e,t,n,u){const o=Jo(e);let s=n;return o!==e&&(Et(e)?n.length>3&&(s=function(r,i,l){return n.call(this,r,i,l,e)}):s=function(r,i,l){return n.call(this,r,$n(e,i),l,e)}),o[t](s,...u)}function ys(e,t,n){const u=Be(e);ht(u,"iterate",Ou);const o=u[t](...n);return(o===-1||o===!1)&&Yo(n[0])?(n[0]=Be(n[0]),u[t](...n)):o}function mu(e,t,n=[]){mn(),Cr();const u=Be(e)[t].apply(e,n);return $r(),gn(),u}const z0=_r("__proto__,__v_isRef,__isVue"),ha=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ht));function N0(e){Ht(e)||(e=String(e));const t=Be(this);return ht(t,"has",e),t.hasOwnProperty(e)}class ma{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,u){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return u===(o?s?Z0:_a:s?ba:va).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(u)?t:void 0;const r=De(t);if(!o){let l;if(r&&(l=R0[n]))return l;if(n==="hasOwnProperty")return N0}const i=Reflect.get(t,n,Qe(t)?t:u);if((Ht(n)?ha.has(n):z0(n))||(o||ht(t,"get",n),s))return i;if(Qe(i)){const l=r&&Wo(n)?i:i.value;return o&&Ue(l)?Ks(l):l}return Ue(i)?o?Ks(i):uo(i):i}}class ga extends ma{constructor(t=!1){super(!1,t)}set(t,n,u,o){let s=t[n];const r=De(t)&&Wo(n);if(!this._isShallow){const a=vn(s);if(!Et(u)&&!vn(u)&&(s=Be(s),u=Be(u)),!r&&Qe(s)&&!Qe(u))return a||(s.value=u),!0}const i=r?Number(n)<t.length:Ve(t,n),l=Reflect.set(t,n,u,Qe(t)?t:o);return t===Be(o)&&(i?An(u,s)&&cn(t,"set",n,u):cn(t,"add",n,u)),l}deleteProperty(t,n){const u=Ve(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&u&&cn(t,"delete",n,void 0),o}has(t,n){const u=Reflect.has(t,n);return(!Ht(n)||!ha.has(n))&&ht(t,"has",n),u}ownKeys(t){return ht(t,"iterate",De(t)?"length":Gn),Reflect.ownKeys(t)}}class B0 extends ma{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const H0=new ga,j0=new B0,q0=new ga(!0);const Ws=e=>e,fo=e=>Reflect.getPrototypeOf(e);function V0(e,t,n){return function(...u){const o=this.__v_raw,s=Be(o),r=ou(s),i=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,a=o[e](...u),f=n?Ws:t?au:jt;return!t&&ht(s,"iterate",l?Us:Gn),st(Object.create(a),{next(){const{value:p,done:h}=a.next();return h?{value:p,done:h}:{value:i?[f(p[0]),f(p[1])]:f(p),done:h}}})}}function po(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function U0(e,t){const n={get(o){const s=this.__v_raw,r=Be(s),i=Be(o);e||(An(o,i)&&ht(r,"get",o),ht(r,"get",i));const{has:l}=fo(r),a=t?Ws:e?au:jt;if(l.call(r,o))return a(s.get(o));if(l.call(r,i))return a(s.get(i));s!==r&&s.get(o)},get size(){const o=this.__v_raw;return!e&&ht(Be(o),"iterate",Gn),o.size},has(o){const s=this.__v_raw,r=Be(s),i=Be(o);return e||(An(o,i)&&ht(r,"has",o),ht(r,"has",i)),o===i?s.has(o):s.has(o)||s.has(i)},forEach(o,s){const r=this,i=r.__v_raw,l=Be(i),a=t?Ws:e?au:jt;return!e&&ht(l,"iterate",Gn),i.forEach((f,p)=>o.call(s,a(f),a(p),r))}};return st(n,e?{add:po("add"),set:po("set"),delete:po("delete"),clear:po("clear")}:{add(o){!t&&!Et(o)&&!vn(o)&&(o=Be(o));const s=Be(this);return fo(s).has.call(s,o)||(s.add(o),cn(s,"add",o,o)),this},set(o,s){!t&&!Et(s)&&!vn(s)&&(s=Be(s));const r=Be(this),{has:i,get:l}=fo(r);let a=i.call(r,o);a||(o=Be(o),a=i.call(r,o));const f=l.call(r,o);return r.set(o,s),a?An(s,f)&&cn(r,"set",o,s):cn(r,"add",o,s),this},delete(o){const s=Be(this),{has:r,get:i}=fo(s);let l=r.call(s,o);l||(o=Be(o),l=r.call(s,o)),i&&i.call(s,o);const a=s.delete(o);return l&&cn(s,"delete",o,void 0),a},clear(){const o=Be(this),s=o.size!==0,r=o.clear();return s&&cn(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=V0(o,e,t)}),n}function Sr(e,t){const n=U0(e,t);return(u,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?u:Reflect.get(Ve(n,o)&&o in u?n:u,o,s)}const W0={get:Sr(!1,!1)},K0={get:Sr(!1,!0)},G0={get:Sr(!0,!1)};const va=new WeakMap,ba=new WeakMap,_a=new WeakMap,Z0=new WeakMap;function J0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Y0(e){return e.__v_skip||!Object.isExtensible(e)?0:J0(y0(e))}function uo(e){return vn(e)?e:Dr(e,!1,H0,W0,va)}function X0(e){return Dr(e,!1,q0,K0,ba)}function Ks(e){return Dr(e,!0,j0,G0,_a)}function Dr(e,t,n,u,o){if(!Ue(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=Y0(e);if(s===0)return e;const r=o.get(e);if(r)return r;const i=new Proxy(e,s===2?u:n);return o.set(e,i),i}function pn(e){return vn(e)?pn(e.__v_raw):!!(e&&e.__v_isReactive)}function vn(e){return!!(e&&e.__v_isReadonly)}function Et(e){return!!(e&&e.__v_isShallow)}function Yo(e){return e?!!e.__v_raw:!1}function Be(e){const t=e&&e.__v_raw;return t?Be(t):e}function Ar(e){return!Ve(e,"__v_skip")&&Object.isExtensible(e)&&Ql(e,"__v_skip",!0),e}const jt=e=>Ue(e)?uo(e):e,au=e=>Ue(e)?Ks(e):e;function Qe(e){return e?e.__v_isRef===!0:!1}function he(e){return Q0(e,!1)}function Q0(e,t){return Qe(e)?e:new ef(e,t)}class ef{constructor(t,n){this.dep=new Tr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Be(t),this._value=n?t:jt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,u=this.__v_isShallow||Et(t)||vn(t);t=u?t:Be(t),An(t,n)&&(this._rawValue=t,this._value=u?t:jt(t),this.dep.trigger())}}function Y(e){return Qe(e)?e.value:e}const tf={get:(e,t,n)=>t==="__v_raw"?e:Y(Reflect.get(e,t,n)),set:(e,t,n,u)=>{const o=e[t];return Qe(o)&&!Qe(n)?(o.value=n,!0):Reflect.set(e,t,n,u)}};function ya(e){return pn(e)?e:new Proxy(e,tf)}function nf(e){const t=De(e)?new Array(e.length):{};for(const n in e)t[n]=of(e,n);return t}class uf{constructor(t,n,u){this._object=t,this._key=n,this._defaultValue=u,this.__v_isRef=!0,this._value=void 0,this._raw=Be(t);let o=!0,s=t;if(!De(t)||!Wo(String(n)))do o=!Yo(s)||Et(s);while(o&&(s=s.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=Y(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Qe(this._raw[this._key])){const n=this._object[this._key];if(Qe(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return L0(this._raw,this._key)}}function of(e,t,n){return new uf(e,t,n)}class sf{constructor(t,n,u){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Tr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ru-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=u}notify(){if(this.flags|=16,!(this.flags&8)&&Ke!==this)return la(this,!0),!0}get value(){const t=this.dep.track();return fa(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function rf(e,t,n=!1){let u,o;return Me(e)?u=e:(u=e.get,o=e.set),new sf(u,o,n)}const ho={},So=new WeakMap;let Un;function lf(e,t=!1,n=Un){if(n){let u=So.get(n);u||So.set(n,u=[]),u.push(e)}}function af(e,t,n=We){const{immediate:u,deep:o,once:s,scheduler:r,augmentJob:i,call:l}=n,a=T=>o?T:Et(T)||o===!1||o===0?fn(T,1):fn(T);let f,p,h,g,v=!1,w=!1;if(Qe(e)?(p=()=>e.value,v=Et(e)):pn(e)?(p=()=>a(e),v=!0):De(e)?(w=!0,v=e.some(T=>pn(T)||Et(T)),p=()=>e.map(T=>{if(Qe(T))return T.value;if(pn(T))return a(T);if(Me(T))return l?l(T,2):T()})):Me(e)?t?p=l?()=>l(e,2):e:p=()=>{if(h){mn();try{h()}finally{gn()}}const T=Un;Un=f;try{return l?l(e,3,[g]):e(g)}finally{Un=T}}:p=Xt,t&&o){const T=p,R=o===!0?1/0:o;p=()=>fn(T(),R)}const y=sa(),E=()=>{f.stop(),y&&y.active&&xr(y.effects,f)};if(s&&t){const T=t;t=(...R)=>{T(...R),E()}}let D=w?new Array(e.length).fill(ho):ho;const L=T=>{if(!(!(f.flags&1)||!f.dirty&&!T))if(t){const R=f.run();if(o||v||(w?R.some((F,ue)=>An(F,D[ue])):An(R,D))){h&&h();const F=Un;Un=f;try{const ue=[R,D===ho?void 0:w&&D[0]===ho?[]:D,g];D=R,l?l(t,3,ue):t(...ue)}finally{Un=F}}}else f.run()};return i&&i(L),f=new ra(p),f.scheduler=r?()=>r(L,!1):L,g=T=>lf(T,!1,f),h=f.onStop=()=>{const T=So.get(f);if(T){if(l)l(T,4);else for(const R of T)R();So.delete(f)}},t?u?L(!0):D=f.run():r?r(L.bind(null,!0),!0):f.run(),E.pause=f.pause.bind(f),E.resume=f.resume.bind(f),E.stop=E,E}function fn(e,t=1/0,n){if(t<=0||!Ue(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Qe(e))fn(e.value,t,n);else if(De(e))for(let u=0;u<e.length;u++)fn(e[u],t,n);else if(Zl(e)||ou(e))e.forEach(u=>{fn(u,t,n)});else if(Xl(e)){for(const u in e)fn(e[u],t,n);for(const u of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,u)&&fn(e[u],t,n)}return e}/**
|
|
11
|
+
* @vue/runtime-core v3.5.28
|
|
12
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
|
+
* @license MIT
|
|
14
|
+
**/function oo(e,t,n,u){try{return u?e(...u):e()}catch(o){Xo(o,t,n)}}function qt(e,t,n,u){if(Me(e)){const o=oo(e,t,n,u);return o&&Jl(o)&&o.catch(s=>{Xo(s,t,n)}),o}if(De(e)){const o=[];for(let s=0;s<e.length;s++)o.push(qt(e[s],t,n,u));return o}}function Xo(e,t,n,u=!0){const o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||We;if(t){let i=t.parent;const l=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const f=i.ec;if(f){for(let p=0;p<f.length;p++)if(f[p](e,l,a)===!1)return}i=i.parent}if(s){mn(),oo(s,null,10,[e,l,a]),gn();return}}cf(e,n,o,u,r)}function cf(e,t,n,u=!0,o=!1){if(o)throw e;console.error(e)}const bt=[];let Wt=-1;const su=[];let En=null,tu=0;const xa=Promise.resolve();let Do=null;function Je(e){const t=Do||xa;return e?t.then(this?e.bind(this):e):t}function ff(e){let t=Wt+1,n=bt.length;for(;t<n;){const u=t+n>>>1,o=bt[u],s=zu(o);s<e||s===e&&o.flags&2?t=u+1:n=u}return t}function Fr(e){if(!(e.flags&1)){const t=zu(e),n=bt[bt.length-1];!n||!(e.flags&2)&&t>=zu(n)?bt.push(e):bt.splice(ff(t),0,e),e.flags|=1,ka()}}function ka(){Do||(Do=xa.then(Ca))}function df(e){De(e)?su.push(...e):En&&e.id===-1?En.splice(tu+1,0,e):e.flags&1||(su.push(e),e.flags|=1),ka()}function ii(e,t,n=Wt+1){for(;n<bt.length;n++){const u=bt[n];if(u&&u.flags&2){if(e&&u.id!==e.uid)continue;bt.splice(n,1),n--,u.flags&4&&(u.flags&=-2),u(),u.flags&4||(u.flags&=-2)}}}function wa(e){if(su.length){const t=[...new Set(su)].sort((n,u)=>zu(n)-zu(u));if(su.length=0,En){En.push(...t);return}for(En=t,tu=0;tu<En.length;tu++){const n=En[tu];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}En=null,tu=0}}const zu=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ca(e){try{for(Wt=0;Wt<bt.length;Wt++){const t=bt[Wt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),oo(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Wt<bt.length;Wt++){const t=bt[Wt];t&&(t.flags&=-2)}Wt=-1,bt.length=0,wa(),Do=null,(bt.length||su.length)&&Ca()}}let at=null,Qo=null;function Ao(e){const t=at;return at=e,Qo=e&&e.type.__scopeId||null,t}function pf(e){Qo=e}function hf(){Qo=null}const mf=e=>ot;function ot(e,t=at,n){if(!t||e._n)return e;const u=(...o)=>{u._d&&Io(-1);const s=Ao(t);let r;try{r=e(...o)}finally{Ao(s),u._d&&Io(1)}return r};return u._n=!0,u._c=!0,u._d=!0,u}function He(e,t){if(at===null)return e;const n=ss(at),u=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[s,r,i,l=We]=t[o];s&&(Me(s)&&(s={mounted:s,updated:s}),s.deep&&fn(r),u.push({dir:s,instance:n,value:r,oldValue:void 0,arg:i,modifiers:l}))}return e}function Bn(e,t,n,u){const o=e.dirs,s=t&&t.dirs;for(let r=0;r<o.length;r++){const i=o[r];s&&(i.oldValue=s[r].value);let l=i.dir[u];l&&(mn(),qt(l,n,8,[e.el,i,e,t]),gn())}}function xn(e,t){if(gt){let n=gt.provides;const u=gt.parent&>.parent.provides;u===n&&(n=gt.provides=Object.create(u)),n[e]=t}}function Rt(e,t,n=!1){const u=ro();if(u||Zn){let o=Zn?Zn._context.provides:u?u.parent==null||u.ce?u.vnode.appContext&&u.vnode.appContext.provides:u.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Me(t)?t.call(u&&u.proxy):t}}function gf(){return!!(ro()||Zn)}const vf=Symbol.for("v-scx"),bf=()=>Rt(vf);function _f(e,t){return Mr(e,null,t)}function Ge(e,t,n){return Mr(e,t,n)}function Mr(e,t,n=We){const{immediate:u,deep:o,flush:s,once:r}=n,i=st({},n),l=t&&u||!t&&s!=="post";let a;if(Vu){if(s==="sync"){const g=bf();a=g.__watcherHandles||(g.__watcherHandles=[])}else if(!l){const g=()=>{};return g.stop=Xt,g.resume=Xt,g.pause=Xt,g}}const f=gt;i.call=(g,v,w)=>qt(g,f,v,w);let p=!1;s==="post"?i.scheduler=g=>{dt(g,f&&f.suspense)}:s!=="sync"&&(p=!0,i.scheduler=(g,v)=>{v?g():Fr(g)}),i.augmentJob=g=>{t&&(g.flags|=4),p&&(g.flags|=2,f&&(g.id=f.uid,g.i=f))};const h=af(e,t,i);return Vu&&(a?a.push(h):l&&h()),h}function yf(e,t,n){const u=this.proxy,o=Ye(e)?e.includes(".")?$a(u,e):()=>u[e]:e.bind(u,u);let s;Me(t)?s=t:(s=t.handler,n=t);const r=io(this),i=Mr(o,s.bind(u),n);return r(),i}function $a(e,t){const n=t.split(".");return()=>{let u=e;for(let o=0;o<n.length&&u;o++)u=u[n[o]];return u}}const Ea=Symbol("_vte"),Ta=e=>e.__isTeleport,Tu=e=>e&&(e.disabled||e.disabled===""),li=e=>e&&(e.defer||e.defer===""),ai=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ci=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Gs=(e,t)=>{const n=e&&e.to;return Ye(n)?t?t(n):null:n},Sa={name:"Teleport",__isTeleport:!0,process(e,t,n,u,o,s,r,i,l,a){const{mc:f,pc:p,pbc:h,o:{insert:g,querySelector:v,createText:w,createComment:y}}=a,E=Tu(t.props);let{shapeFlag:D,children:L,dynamicChildren:T}=t;if(e==null){const R=t.el=w(""),F=t.anchor=w("");g(R,n,u),g(F,n,u);const ue=(U,Z)=>{D&16&&f(L,U,Z,o,s,r,i,l)},X=()=>{const U=t.target=Gs(t.props,v),Z=Zs(U,t,w,g);U&&(r!=="svg"&&ai(U)?r="svg":r!=="mathml"&&ci(U)&&(r="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(U),E||(ue(U,Z),ko(t,!1)))};E&&(ue(n,F),ko(t,!0)),li(t.props)?(t.el.__isMounted=!1,dt(()=>{X(),delete t.el.__isMounted},s)):X()}else{if(li(t.props)&&e.el.__isMounted===!1){dt(()=>{Sa.process(e,t,n,u,o,s,r,i,l,a)},s);return}t.el=e.el,t.targetStart=e.targetStart;const R=t.anchor=e.anchor,F=t.target=e.target,ue=t.targetAnchor=e.targetAnchor,X=Tu(e.props),U=X?n:F,Z=X?R:ue;if(r==="svg"||ai(F)?r="svg":(r==="mathml"||ci(F))&&(r="mathml"),T?(h(e.dynamicChildren,T,U,o,s,r,i),Or(e,t,!0)):l||p(e,t,U,Z,o,s,r,i,!1),E)X?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):mo(t,n,R,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ge=t.target=Gs(t.props,v);ge&&mo(t,ge,null,a,0)}else X&&mo(t,F,ue,a,1);ko(t,E)}},remove(e,t,n,{um:u,o:{remove:o}},s){const{shapeFlag:r,children:i,anchor:l,targetStart:a,targetAnchor:f,target:p,props:h}=e;if(p&&(o(a),o(f)),s&&o(l),r&16){const g=s||!Tu(h);for(let v=0;v<i.length;v++){const w=i[v];u(w,t,n,g,!!w.dynamicChildren)}}},move:mo,hydrate:xf};function mo(e,t,n,{o:{insert:u},m:o},s=2){s===0&&u(e.targetAnchor,t,n);const{el:r,anchor:i,shapeFlag:l,children:a,props:f}=e,p=s===2;if(p&&u(r,t,n),(!p||Tu(f))&&l&16)for(let h=0;h<a.length;h++)o(a[h],t,n,2);p&&u(i,t,n)}function xf(e,t,n,u,o,s,{o:{nextSibling:r,parentNode:i,querySelector:l,insert:a,createText:f}},p){function h(y,E){let D=E;for(;D;){if(D&&D.nodeType===8){if(D.data==="teleport start anchor")t.targetStart=D;else if(D.data==="teleport anchor"){t.targetAnchor=D,y._lpa=t.targetAnchor&&r(t.targetAnchor);break}}D=r(D)}}function g(y,E){E.anchor=p(r(y),E,i(y),n,u,o,s)}const v=t.target=Gs(t.props,l),w=Tu(t.props);if(v){const y=v._lpa||v.firstChild;t.shapeFlag&16&&(w?(g(e,t),h(v,y),t.targetAnchor||Zs(v,t,f,a,i(e)===v?e:null)):(t.anchor=r(e),h(v,y),t.targetAnchor||Zs(v,t,f,a),p(y&&r(y),t,v,n,u,o,s))),ko(t,w)}else w&&t.shapeFlag&16&&(g(e,t),t.targetStart=e,t.targetAnchor=r(e));return t.anchor&&r(t.anchor)}const kf=Sa;function ko(e,t){const n=e.ctx;if(n&&n.ut){let u,o;for(t?(u=e.el,o=e.anchor):(u=e.targetStart,o=e.targetAnchor);u&&u!==o;)u.nodeType===1&&u.setAttribute("data-v-owner",n.uid),u=u.nextSibling;n.ut()}}function Zs(e,t,n,u,o=null){const s=t.targetStart=n(""),r=t.targetAnchor=n("");return s[Ea]=r,e&&(u(s,e,o),u(r,e,o)),r}const Kt=Symbol("_leaveCb"),gu=Symbol("_enterCb");function wf(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return On(()=>{e.isMounted=!0}),ns(()=>{e.isUnmounting=!0}),e}const Dt=[Function,Array],Da={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Dt,onEnter:Dt,onAfterEnter:Dt,onEnterCancelled:Dt,onBeforeLeave:Dt,onLeave:Dt,onAfterLeave:Dt,onLeaveCancelled:Dt,onBeforeAppear:Dt,onAppear:Dt,onAfterAppear:Dt,onAppearCancelled:Dt},Aa=e=>{const t=e.subTree;return t.component?Aa(t.component):t},Cf={name:"BaseTransition",props:Da,setup(e,{slots:t}){const n=ro(),u=wf();return()=>{const o=t.default&&Ia(t.default(),!0);if(!o||!o.length)return;const s=Fa(o),r=Be(e),{mode:i}=r;if(u.isLeaving)return xs(s);const l=fi(s);if(!l)return xs(s);let a=Js(l,r,u,n,p=>a=p);l.type!==mt&&Nu(l,a);let f=n.subTree&&fi(n.subTree);if(f&&f.type!==mt&&!Kn(f,l)&&Aa(n).type!==mt){let p=Js(f,r,u,n);if(Nu(f,p),i==="out-in"&&l.type!==mt)return u.isLeaving=!0,p.afterLeave=()=>{u.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,f=void 0},xs(s);i==="in-out"&&l.type!==mt?p.delayLeave=(h,g,v)=>{const w=Ma(u,f);w[String(f.key)]=f,h[Kt]=()=>{g(),h[Kt]=void 0,delete a.delayedLeave,f=void 0},a.delayedLeave=()=>{v(),delete a.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return s}}};function Fa(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==mt){t=n;break}}return t}const $f=Cf;function Ma(e,t){const{leavingVNodes:n}=e;let u=n.get(t.type);return u||(u=Object.create(null),n.set(t.type,u)),u}function Js(e,t,n,u,o){const{appear:s,mode:r,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:f,onEnterCancelled:p,onBeforeLeave:h,onLeave:g,onAfterLeave:v,onLeaveCancelled:w,onBeforeAppear:y,onAppear:E,onAfterAppear:D,onAppearCancelled:L}=t,T=String(e.key),R=Ma(n,e),F=(U,Z)=>{U&&qt(U,u,9,Z)},ue=(U,Z)=>{const ge=Z[1];F(U,Z),De(U)?U.every(H=>H.length<=1)&&ge():U.length<=1&&ge()},X={mode:r,persisted:i,beforeEnter(U){let Z=l;if(!n.isMounted)if(s)Z=y||l;else return;U[Kt]&&U[Kt](!0);const ge=R[T];ge&&Kn(e,ge)&&ge.el[Kt]&&ge.el[Kt](),F(Z,[U])},enter(U){let Z=a,ge=f,H=p;if(!n.isMounted)if(s)Z=E||a,ge=D||f,H=L||p;else return;let le=!1;U[gu]=S=>{le||(le=!0,S?F(H,[U]):F(ge,[U]),X.delayedLeave&&X.delayedLeave(),U[gu]=void 0)};const ne=U[gu].bind(null,!1);Z?ue(Z,[U,ne]):ne()},leave(U,Z){const ge=String(e.key);if(U[gu]&&U[gu](!0),n.isUnmounting)return Z();F(h,[U]);let H=!1;U[Kt]=ne=>{H||(H=!0,Z(),ne?F(w,[U]):F(v,[U]),U[Kt]=void 0,R[ge]===e&&delete R[ge])};const le=U[Kt].bind(null,!1);R[ge]=e,g?ue(g,[U,le]):le()},clone(U){const Z=Js(U,t,n,u,o);return o&&o(Z),Z}};return X}function xs(e){if(es(e))return e=In(e),e.children=null,e}function fi(e){if(!es(e))return Ta(e.type)&&e.children?Fa(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Me(n.default))return n.default()}}function Nu(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Nu(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 Ia(e,t=!1,n){let u=[],o=0;for(let s=0;s<e.length;s++){let r=e[s];const i=n==null?r.key:String(n)+String(r.key!=null?r.key:s);r.type===pe?(r.patchFlag&128&&o++,u=u.concat(Ia(r.children,t,i))):(t||r.type!==mt)&&u.push(i!=null?In(r,{key:i}):r)}if(o>1)for(let s=0;s<u.length;s++)u[s].patchFlag=-2;return u}function et(e,t){return Me(e)?st({name:e.name},t,{setup:e}):e}function Pa(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function di(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Fo=new WeakMap;function Su(e,t,n,u,o=!1){if(De(e)){e.forEach((w,y)=>Su(w,t&&(De(t)?t[y]:t),n,u,o));return}if(ru(u)&&!o){u.shapeFlag&512&&u.type.__asyncResolved&&u.component.subTree.component&&Su(e,t,n,u.component.subTree);return}const s=u.shapeFlag&4?ss(u.component):u.el,r=o?null:s,{i,r:l}=e,a=t&&t.r,f=i.refs===We?i.refs={}:i.refs,p=i.setupState,h=Be(p),g=p===We?Gl:w=>di(f,w)?!1:Ve(h,w),v=(w,y)=>!(y&&di(f,y));if(a!=null&&a!==l){if(pi(t),Ye(a))f[a]=null,g(a)&&(p[a]=null);else if(Qe(a)){const w=t;v(a,w.k)&&(a.value=null),w.k&&(f[w.k]=null)}}if(Me(l))oo(l,i,12,[r,f]);else{const w=Ye(l),y=Qe(l);if(w||y){const E=()=>{if(e.f){const D=w?g(l)?p[l]:f[l]:v()||!e.k?l.value:f[e.k];if(o)De(D)&&xr(D,s);else if(De(D))D.includes(s)||D.push(s);else if(w)f[l]=[s],g(l)&&(p[l]=f[l]);else{const L=[s];v(l,e.k)&&(l.value=L),e.k&&(f[e.k]=L)}}else w?(f[l]=r,g(l)&&(p[l]=r)):y&&(v(l,e.k)&&(l.value=r),e.k&&(f[e.k]=r))};if(r){const D=()=>{E(),Fo.delete(e)};D.id=-1,Fo.set(e,D),dt(D,n)}else pi(e),E()}}}function pi(e){const t=Fo.get(e);t&&(t.flags|=8,Fo.delete(e))}Zo().requestIdleCallback;Zo().cancelIdleCallback;const ru=e=>!!e.type.__asyncLoader,es=e=>e.type.__isKeepAlive;function Ef(e,t){La(e,"a",t)}function Tf(e,t){La(e,"da",t)}function La(e,t,n=gt){const u=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ts(t,u,n),n){let o=n.parent;for(;o&&o.parent;)es(o.parent.vnode)&&Sf(u,t,n,o),o=o.parent}}function Sf(e,t,n,u){const o=ts(t,e,u,!0);so(()=>{xr(u[t],o)},n)}function ts(e,t,n=gt,u=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{mn();const i=io(n),l=qt(t,n,e,r);return i(),gn(),l});return u?o.unshift(s):o.push(s),s}}const _n=e=>(t,n=gt)=>{(!Vu||e==="sp")&&ts(e,(...u)=>t(...u),n)},Df=_n("bm"),On=_n("m"),Af=_n("bu"),Ff=_n("u"),ns=_n("bum"),so=_n("um"),Mf=_n("sp"),If=_n("rtg"),Pf=_n("rtc");function Lf(e,t=gt){ts("ec",e,t)}const Ir="components",Rf="directives";function Bu(e,t){return Pr(Ir,e,!0,t)||e}const Ra=Symbol.for("v-ndc");function Oa(e){return Ye(e)?Pr(Ir,e,!1)||e:e||Ra}function zn(e){return Pr(Rf,e)}function Pr(e,t,n=!0,u=!1){const o=at||gt;if(o){const s=o.type;if(e===Ir){const i=_d(s,!1);if(i&&(i===t||i===It(t)||i===Go(It(t))))return s}const r=hi(o[e]||s[e],t)||hi(o.appContext[e],t);return!r&&u?s:r}}function hi(e,t){return e&&(e[t]||e[It(t)]||e[Go(It(t))])}function Te(e,t,n,u){let o;const s=n,r=De(e);if(r||Ye(e)){const i=r&&pn(e);let l=!1,a=!1;i&&(l=!Et(e),a=vn(e),e=Jo(e)),o=new Array(e.length);for(let f=0,p=e.length;f<p;f++)o[f]=t(l?a?au(jt(e[f])):jt(e[f]):e[f],f,void 0,s)}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,s)}else if(Ue(e))if(e[Symbol.iterator])o=Array.from(e,(i,l)=>t(i,l,void 0,s));else{const i=Object.keys(e);o=new Array(i.length);for(let l=0,a=i.length;l<a;l++){const f=i[l];o[l]=t(e[f],f,l,s)}}else o=[];return o}function Hu(e,t,n={},u,o){if(at.ce||at.parent&&ru(at.parent)&&at.parent.ce){const a=Object.keys(n).length>0;return t!=="default"&&(n.name=t),x(),_t(pe,null,[Ie("slot",n,u)],a?-2:64)}let s=e[t];s&&s._c&&(s._d=!1),x();const r=s&&za(s(n)),i=n.key||r&&r.key,l=_t(pe,{key:(i&&!Ht(i)?i:`_${t}`)+(!r&&u?"_fb":"")},r||[],r&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function za(e){return e.some(t=>qu(t)?!(t.type===mt||t.type===pe&&!za(t.children)):!0)?e:null}const Ys=e=>e?sc(e)?ss(e):Ys(e.parent):null,Du=st(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=>Ba(e),$forceUpdate:e=>e.f||(e.f=()=>{Fr(e.update)}),$nextTick:e=>e.n||(e.n=Je.bind(e.proxy)),$watch:e=>yf.bind(e)}),ks=(e,t)=>e!==We&&!e.__isScriptSetup&&Ve(e,t),Of={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:u,data:o,props:s,accessCache:r,type:i,appContext:l}=e;if(t[0]!=="$"){const h=r[t];if(h!==void 0)switch(h){case 1:return u[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(ks(u,t))return r[t]=1,u[t];if(o!==We&&Ve(o,t))return r[t]=2,o[t];if(Ve(s,t))return r[t]=3,s[t];if(n!==We&&Ve(n,t))return r[t]=4,n[t];Xs&&(r[t]=0)}}const a=Du[t];let f,p;if(a)return t==="$attrs"&&ht(e.attrs,"get",""),a(e);if((f=i.__cssModules)&&(f=f[t]))return f;if(n!==We&&Ve(n,t))return r[t]=4,n[t];if(p=l.config.globalProperties,Ve(p,t))return p[t]},set({_:e},t,n){const{data:u,setupState:o,ctx:s}=e;return ks(o,t)?(o[t]=n,!0):u!==We&&Ve(u,t)?(u[t]=n,!0):Ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:u,appContext:o,props:s,type:r}},i){let l;return!!(n[i]||e!==We&&i[0]!=="$"&&Ve(e,i)||ks(t,i)||Ve(s,i)||Ve(u,i)||Ve(Du,i)||Ve(o.config.globalProperties,i)||(l=r.__cssModules)&&l[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ve(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function zf(){return Nf().slots}function Nf(e){const t=ro();return t.setupContext||(t.setupContext=ic(t))}function mi(e){return De(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Xs=!0;function Bf(e){const t=Ba(e),n=e.proxy,u=e.ctx;Xs=!1,t.beforeCreate&&gi(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:r,watch:i,provide:l,inject:a,created:f,beforeMount:p,mounted:h,beforeUpdate:g,updated:v,activated:w,deactivated:y,beforeDestroy:E,beforeUnmount:D,destroyed:L,unmounted:T,render:R,renderTracked:F,renderTriggered:ue,errorCaptured:X,serverPrefetch:U,expose:Z,inheritAttrs:ge,components:H,directives:le,filters:ne}=t;if(a&&Hf(a,u,null),r)for(const ae in r){const V=r[ae];Me(V)&&(u[ae]=V.bind(n))}if(o){const ae=o.call(n,n);Ue(ae)&&(e.data=uo(ae))}if(Xs=!0,s)for(const ae in s){const V=s[ae],ce=Me(V)?V.bind(n,n):Me(V.get)?V.get.bind(n,n):Xt,ye=!Me(V)&&Me(V.set)?V.set.bind(n):Xt,B=O({get:ce,set:ye});Object.defineProperty(u,ae,{enumerable:!0,configurable:!0,get:()=>B.value,set:ee=>B.value=ee})}if(i)for(const ae in i)Na(i[ae],u,n,ae);if(l){const ae=Me(l)?l.call(n):l;Reflect.ownKeys(ae).forEach(V=>{xn(V,ae[V])})}f&&gi(f,e,"c");function te(ae,V){De(V)?V.forEach(ce=>ae(ce.bind(n))):V&&ae(V.bind(n))}if(te(Df,p),te(On,h),te(Af,g),te(Ff,v),te(Ef,w),te(Tf,y),te(Lf,X),te(Pf,F),te(If,ue),te(ns,D),te(so,T),te(Mf,U),De(Z))if(Z.length){const ae=e.exposed||(e.exposed={});Z.forEach(V=>{Object.defineProperty(ae,V,{get:()=>n[V],set:ce=>n[V]=ce,enumerable:!0})})}else e.exposed||(e.exposed={});R&&e.render===Xt&&(e.render=R),ge!=null&&(e.inheritAttrs=ge),H&&(e.components=H),le&&(e.directives=le),U&&Pa(e)}function Hf(e,t,n=Xt){De(e)&&(e=Qs(e));for(const u in e){const o=e[u];let s;Ue(o)?"default"in o?s=Rt(o.from||u,o.default,!0):s=Rt(o.from||u):s=Rt(o),Qe(s)?Object.defineProperty(t,u,{enumerable:!0,configurable:!0,get:()=>s.value,set:r=>s.value=r}):t[u]=s}}function gi(e,t,n){qt(De(e)?e.map(u=>u.bind(t.proxy)):e.bind(t.proxy),t,n)}function Na(e,t,n,u){let o=u.includes(".")?$a(n,u):()=>n[u];if(Ye(e)){const s=t[e];Me(s)&&Ge(o,s)}else if(Me(e))Ge(o,e.bind(n));else if(Ue(e))if(De(e))e.forEach(s=>Na(s,t,n,u));else{const s=Me(e.handler)?e.handler.bind(n):t[e.handler];Me(s)&&Ge(o,s,e)}}function Ba(e){const t=e.type,{mixins:n,extends:u}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:r}}=e.appContext,i=s.get(t);let l;return i?l=i:!o.length&&!n&&!u?l=t:(l={},o.length&&o.forEach(a=>Mo(l,a,r,!0)),Mo(l,t,r)),Ue(t)&&s.set(t,l),l}function Mo(e,t,n,u=!1){const{mixins:o,extends:s}=t;s&&Mo(e,s,n,!0),o&&o.forEach(r=>Mo(e,r,n,!0));for(const r in t)if(!(u&&r==="expose")){const i=jf[r]||n&&n[r];e[r]=i?i(e[r],t[r]):t[r]}return e}const jf={data:vi,props:bi,emits:bi,methods:wu,computed:wu,beforeCreate:vt,created:vt,beforeMount:vt,mounted:vt,beforeUpdate:vt,updated:vt,beforeDestroy:vt,beforeUnmount:vt,destroyed:vt,unmounted:vt,activated:vt,deactivated:vt,errorCaptured:vt,serverPrefetch:vt,components:wu,directives:wu,watch:Vf,provide:vi,inject:qf};function vi(e,t){return t?e?function(){return st(Me(e)?e.call(this,this):e,Me(t)?t.call(this,this):t)}:t:e}function qf(e,t){return wu(Qs(e),Qs(t))}function Qs(e){if(De(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function vt(e,t){return e?[...new Set([].concat(e,t))]:t}function wu(e,t){return e?st(Object.create(null),e,t):t}function bi(e,t){return e?De(e)&&De(t)?[...new Set([...e,...t])]:st(Object.create(null),mi(e),mi(t??{})):t}function Vf(e,t){if(!e)return t;if(!t)return e;const n=st(Object.create(null),e);for(const u in t)n[u]=vt(e[u],t[u]);return n}function Ha(){return{app:null,config:{isNativeTag:Gl,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 Uf=0;function Wf(e,t){return function(u,o=null){Me(u)||(u=st({},u)),o!=null&&!Ue(o)&&(o=null);const s=Ha(),r=new WeakSet,i=[];let l=!1;const a=s.app={_uid:Uf++,_component:u,_props:o,_container:null,_context:s,_instance:null,version:xd,get config(){return s.config},set config(f){},use(f,...p){return r.has(f)||(f&&Me(f.install)?(r.add(f),f.install(a,...p)):Me(f)&&(r.add(f),f(a,...p))),a},mixin(f){return s.mixins.includes(f)||s.mixins.push(f),a},component(f,p){return p?(s.components[f]=p,a):s.components[f]},directive(f,p){return p?(s.directives[f]=p,a):s.directives[f]},mount(f,p,h){if(!l){const g=a._ceVNode||Ie(u,o);return g.appContext=s,h===!0?h="svg":h===!1&&(h=void 0),e(g,f,h),l=!0,a._container=f,f.__vue_app__=a,ss(g.component)}},onUnmount(f){i.push(f)},unmount(){l&&(qt(i,a._instance,16),e(null,a._container),delete a._container.__vue_app__)},provide(f,p){return s.provides[f]=p,a},runWithContext(f){const p=Zn;Zn=a;try{return f()}finally{Zn=p}}};return a}}let Zn=null;const Kf=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${It(t)}Modifiers`]||e[`${Rn(t)}Modifiers`];function Gf(e,t,...n){if(e.isUnmounted)return;const u=e.vnode.props||We;let o=n;const s=t.startsWith("update:"),r=s&&Kf(u,t.slice(7));r&&(r.trim&&(o=n.map(f=>Ye(f)?f.trim():f)),r.number&&(o=n.map(kr)));let i,l=u[i=gs(t)]||u[i=gs(It(t))];!l&&s&&(l=u[i=gs(Rn(t))]),l&&qt(l,e,6,o);const a=u[i+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,qt(a,e,6,o)}}const Zf=new WeakMap;function ja(e,t,n=!1){const u=n?Zf:t.emitsCache,o=u.get(e);if(o!==void 0)return o;const s=e.emits;let r={},i=!1;if(!Me(e)){const l=a=>{const f=ja(a,t,!0);f&&(i=!0,st(r,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!i?(Ue(e)&&u.set(e,null),null):(De(s)?s.forEach(l=>r[l]=null):st(r,s),Ue(e)&&u.set(e,r),r)}function us(e,t){return!e||!Uo(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ve(e,t[0].toLowerCase()+t.slice(1))||Ve(e,Rn(t))||Ve(e,t))}function _i(e){const{type:t,vnode:n,proxy:u,withProxy:o,propsOptions:[s],slots:r,attrs:i,emit:l,render:a,renderCache:f,props:p,data:h,setupState:g,ctx:v,inheritAttrs:w}=e,y=Ao(e);let E,D;try{if(n.shapeFlag&4){const T=o||u,R=T;E=Gt(a.call(R,T,f,p,g,h,v)),D=i}else{const T=t;E=Gt(T.length>1?T(p,{attrs:i,slots:r,emit:l}):T(p,null)),D=t.props?i:Jf(i)}}catch(T){Au.length=0,Xo(T,e,1),E=Ie(mt)}let L=E;if(D&&w!==!1){const T=Object.keys(D),{shapeFlag:R}=L;T.length&&R&7&&(s&&T.some(yr)&&(D=Yf(D,s)),L=In(L,D,!1,!0))}return n.dirs&&(L=In(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&Nu(L,n.transition),E=L,Ao(y),E}const Jf=e=>{let t;for(const n in e)(n==="class"||n==="style"||Uo(n))&&((t||(t={}))[n]=e[n]);return t},Yf=(e,t)=>{const n={};for(const u in e)(!yr(u)||!(u.slice(9)in t))&&(n[u]=e[u]);return n};function Xf(e,t,n){const{props:u,children:o,component:s}=e,{props:r,children:i,patchFlag:l}=t,a=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return u?yi(u,r,a):!!r;if(l&8){const f=t.dynamicProps;for(let p=0;p<f.length;p++){const h=f[p];if(qa(r,u,h)&&!us(a,h))return!0}}}else return(o||i)&&(!i||!i.$stable)?!0:u===r?!1:u?r?yi(u,r,a):!0:!!r;return!1}function yi(e,t,n){const u=Object.keys(t);if(u.length!==Object.keys(e).length)return!0;for(let o=0;o<u.length;o++){const s=u[o];if(qa(t,e,s)&&!us(n,s))return!0}return!1}function qa(e,t,n){const u=e[n],o=t[n];return n==="style"&&Ue(u)&&Ue(o)?!wr(u,o):u!==o}function Qf({vnode:e,parent:t},n){for(;t;){const u=t.subTree;if(u.suspense&&u.suspense.activeBranch===e&&(u.el=e.el),u===e)(e=t.vnode).el=n,t=t.parent;else break}}const Va={},Ua=()=>Object.create(Va),Wa=e=>Object.getPrototypeOf(e)===Va;function ed(e,t,n,u=!1){const o={},s=Ua();e.propsDefaults=Object.create(null),Ka(e,t,o,s);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=u?o:X0(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function td(e,t,n,u){const{props:o,attrs:s,vnode:{patchFlag:r}}=e,i=Be(o),[l]=e.propsOptions;let a=!1;if((u||r>0)&&!(r&16)){if(r&8){const f=e.vnode.dynamicProps;for(let p=0;p<f.length;p++){let h=f[p];if(us(e.emitsOptions,h))continue;const g=t[h];if(l)if(Ve(s,h))g!==s[h]&&(s[h]=g,a=!0);else{const v=It(h);o[v]=er(l,i,v,g,e,!1)}else g!==s[h]&&(s[h]=g,a=!0)}}}else{Ka(e,t,o,s)&&(a=!0);let f;for(const p in i)(!t||!Ve(t,p)&&((f=Rn(p))===p||!Ve(t,f)))&&(l?n&&(n[p]!==void 0||n[f]!==void 0)&&(o[p]=er(l,i,p,void 0,e,!0)):delete o[p]);if(s!==i)for(const p in s)(!t||!Ve(t,p))&&(delete s[p],a=!0)}a&&cn(e.attrs,"set","")}function Ka(e,t,n,u){const[o,s]=e.propsOptions;let r=!1,i;if(t)for(let l in t){if(Cu(l))continue;const a=t[l];let f;o&&Ve(o,f=It(l))?!s||!s.includes(f)?n[f]=a:(i||(i={}))[f]=a:us(e.emitsOptions,l)||(!(l in u)||a!==u[l])&&(u[l]=a,r=!0)}if(s){const l=Be(n),a=i||We;for(let f=0;f<s.length;f++){const p=s[f];n[p]=er(o,l,p,a[p],e,!Ve(a,p))}}return r}function er(e,t,n,u,o,s){const r=e[n];if(r!=null){const i=Ve(r,"default");if(i&&u===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&Me(l)){const{propsDefaults:a}=o;if(n in a)u=a[n];else{const f=io(o);u=a[n]=l.call(null,t),f()}}else u=l;o.ce&&o.ce._setProp(n,u)}r[0]&&(s&&!i?u=!1:r[1]&&(u===""||u===Rn(n))&&(u=!0))}return u}const nd=new WeakMap;function Ga(e,t,n=!1){const u=n?nd:t.propsCache,o=u.get(e);if(o)return o;const s=e.props,r={},i=[];let l=!1;if(!Me(e)){const f=p=>{l=!0;const[h,g]=Ga(p,t,!0);st(r,h),g&&i.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!s&&!l)return Ue(e)&&u.set(e,uu),uu;if(De(s))for(let f=0;f<s.length;f++){const p=It(s[f]);xi(p)&&(r[p]=We)}else if(s)for(const f in s){const p=It(f);if(xi(p)){const h=s[f],g=r[p]=De(h)||Me(h)?{type:h}:st({},h),v=g.type;let w=!1,y=!0;if(De(v))for(let E=0;E<v.length;++E){const D=v[E],L=Me(D)&&D.name;if(L==="Boolean"){w=!0;break}else L==="String"&&(y=!1)}else w=Me(v)&&v.name==="Boolean";g[0]=w,g[1]=y,(w||Ve(g,"default"))&&i.push(p)}}const a=[r,i];return Ue(e)&&u.set(e,a),a}function xi(e){return e[0]!=="$"&&!Cu(e)}const Lr=e=>e==="_"||e==="_ctx"||e==="$stable",Rr=e=>De(e)?e.map(Gt):[Gt(e)],ud=(e,t,n)=>{if(t._n)return t;const u=ot((...o)=>Rr(t(...o)),n);return u._c=!1,u},Za=(e,t,n)=>{const u=e._ctx;for(const o in e){if(Lr(o))continue;const s=e[o];if(Me(s))t[o]=ud(o,s,u);else if(s!=null){const r=Rr(s);t[o]=()=>r}}},Ja=(e,t)=>{const n=Rr(t);e.slots.default=()=>n},Ya=(e,t,n)=>{for(const u in t)(n||!Lr(u))&&(e[u]=t[u])},od=(e,t,n)=>{const u=e.slots=Ua();if(e.vnode.shapeFlag&32){const o=t._;o?(Ya(u,t,n),n&&Ql(u,"_",o,!0)):Za(t,u)}else t&&Ja(e,t)},sd=(e,t,n)=>{const{vnode:u,slots:o}=e;let s=!0,r=We;if(u.shapeFlag&32){const i=t._;i?n&&i===1?s=!1:Ya(o,t,n):(s=!t.$stable,Za(t,o)),r=t}else t&&(Ja(e,t),r={default:1});if(s)for(const i in o)!Lr(i)&&r[i]==null&&delete o[i]},dt=cd;function rd(e){return id(e)}function id(e,t){const n=Zo();n.__VUE__=!0;const{insert:u,remove:o,patchProp:s,createElement:r,createText:i,createComment:l,setText:a,setElementText:f,parentNode:p,nextSibling:h,setScopeId:g=Xt,insertStaticContent:v}=e,w=(b,d,m,_=null,M=null,z=null,oe=void 0,G=null,fe=!!d.dynamicChildren)=>{if(b===d)return;b&&!Kn(b,d)&&(_=I(b),ee(b,M,z,!0),b=null),d.patchFlag===-2&&(fe=!1,d.dynamicChildren=null);const{type:Q,ref:Ce,shapeFlag:ve}=d;switch(Q){case os:y(b,d,m,_);break;case mt:E(b,d,m,_);break;case wo:b==null&&D(d,m,_,oe);break;case pe:H(b,d,m,_,M,z,oe,G,fe);break;default:ve&1?R(b,d,m,_,M,z,oe,G,fe):ve&6?le(b,d,m,_,M,z,oe,G,fe):(ve&64||ve&128)&&Q.process(b,d,m,_,M,z,oe,G,fe,$)}Ce!=null&&M?Su(Ce,b&&b.ref,z,d||b,!d):Ce==null&&b&&b.ref!=null&&Su(b.ref,null,z,b,!0)},y=(b,d,m,_)=>{if(b==null)u(d.el=i(d.children),m,_);else{const M=d.el=b.el;d.children!==b.children&&a(M,d.children)}},E=(b,d,m,_)=>{b==null?u(d.el=l(d.children||""),m,_):d.el=b.el},D=(b,d,m,_)=>{[b.el,b.anchor]=v(b.children,d,m,_,b.el,b.anchor)},L=({el:b,anchor:d},m,_)=>{let M;for(;b&&b!==d;)M=h(b),u(b,m,_),b=M;u(d,m,_)},T=({el:b,anchor:d})=>{let m;for(;b&&b!==d;)m=h(b),o(b),b=m;o(d)},R=(b,d,m,_,M,z,oe,G,fe)=>{if(d.type==="svg"?oe="svg":d.type==="math"&&(oe="mathml"),b==null)F(d,m,_,M,z,oe,G,fe);else{const Q=b.el&&b.el._isVueCE?b.el:null;try{Q&&Q._beginPatch(),U(b,d,M,z,oe,G,fe)}finally{Q&&Q._endPatch()}}},F=(b,d,m,_,M,z,oe,G)=>{let fe,Q;const{props:Ce,shapeFlag:ve,transition:xe,dirs:Fe}=b;if(fe=b.el=r(b.type,z,Ce&&Ce.is,Ce),ve&8?f(fe,b.children):ve&16&&X(b.children,fe,null,_,M,ws(b,z),oe,G),Fe&&Bn(b,null,_,"created"),ue(fe,b,b.scopeId,oe,_),Ce){for(const qe in Ce)qe!=="value"&&!Cu(qe)&&s(fe,qe,null,Ce[qe],z,_);"value"in Ce&&s(fe,"value",null,Ce.value,z),(Q=Ce.onVnodeBeforeMount)&&Ut(Q,_,b)}Fe&&Bn(b,null,_,"beforeMount");const Pe=ld(M,xe);Pe&&xe.beforeEnter(fe),u(fe,d,m),((Q=Ce&&Ce.onVnodeMounted)||Pe||Fe)&&dt(()=>{Q&&Ut(Q,_,b),Pe&&xe.enter(fe),Fe&&Bn(b,null,_,"mounted")},M)},ue=(b,d,m,_,M)=>{if(m&&g(b,m),_)for(let z=0;z<_.length;z++)g(b,_[z]);if(M){let z=M.subTree;if(d===z||ec(z.type)&&(z.ssContent===d||z.ssFallback===d)){const oe=M.vnode;ue(b,oe,oe.scopeId,oe.slotScopeIds,M.parent)}}},X=(b,d,m,_,M,z,oe,G,fe=0)=>{for(let Q=fe;Q<b.length;Q++){const Ce=b[Q]=G?an(b[Q]):Gt(b[Q]);w(null,Ce,d,m,_,M,z,oe,G)}},U=(b,d,m,_,M,z,oe)=>{const G=d.el=b.el;let{patchFlag:fe,dynamicChildren:Q,dirs:Ce}=d;fe|=b.patchFlag&16;const ve=b.props||We,xe=d.props||We;let Fe;if(m&&Hn(m,!1),(Fe=xe.onVnodeBeforeUpdate)&&Ut(Fe,m,d,b),Ce&&Bn(d,b,m,"beforeUpdate"),m&&Hn(m,!0),(ve.innerHTML&&xe.innerHTML==null||ve.textContent&&xe.textContent==null)&&f(G,""),Q?Z(b.dynamicChildren,Q,G,m,_,ws(d,M),z):oe||V(b,d,G,null,m,_,ws(d,M),z,!1),fe>0){if(fe&16)ge(G,ve,xe,m,M);else if(fe&2&&ve.class!==xe.class&&s(G,"class",null,xe.class,M),fe&4&&s(G,"style",ve.style,xe.style,M),fe&8){const Pe=d.dynamicProps;for(let qe=0;qe<Pe.length;qe++){const ze=Pe[qe],ut=ve[ze],tt=xe[ze];(tt!==ut||ze==="value")&&s(G,ze,ut,tt,M,m)}}fe&1&&b.children!==d.children&&f(G,d.children)}else!oe&&Q==null&&ge(G,ve,xe,m,M);((Fe=xe.onVnodeUpdated)||Ce)&&dt(()=>{Fe&&Ut(Fe,m,d,b),Ce&&Bn(d,b,m,"updated")},_)},Z=(b,d,m,_,M,z,oe)=>{for(let G=0;G<d.length;G++){const fe=b[G],Q=d[G],Ce=fe.el&&(fe.type===pe||!Kn(fe,Q)||fe.shapeFlag&198)?p(fe.el):m;w(fe,Q,Ce,null,_,M,z,oe,!0)}},ge=(b,d,m,_,M)=>{if(d!==m){if(d!==We)for(const z in d)!Cu(z)&&!(z in m)&&s(b,z,d[z],null,M,_);for(const z in m){if(Cu(z))continue;const oe=m[z],G=d[z];oe!==G&&z!=="value"&&s(b,z,G,oe,M,_)}"value"in m&&s(b,"value",d.value,m.value,M)}},H=(b,d,m,_,M,z,oe,G,fe)=>{const Q=d.el=b?b.el:i(""),Ce=d.anchor=b?b.anchor:i("");let{patchFlag:ve,dynamicChildren:xe,slotScopeIds:Fe}=d;Fe&&(G=G?G.concat(Fe):Fe),b==null?(u(Q,m,_),u(Ce,m,_),X(d.children||[],m,Ce,M,z,oe,G,fe)):ve>0&&ve&64&&xe&&b.dynamicChildren&&b.dynamicChildren.length===xe.length?(Z(b.dynamicChildren,xe,m,M,z,oe,G),(d.key!=null||M&&d===M.subTree)&&Or(b,d,!0)):V(b,d,m,Ce,M,z,oe,G,fe)},le=(b,d,m,_,M,z,oe,G,fe)=>{d.slotScopeIds=G,b==null?d.shapeFlag&512?M.ctx.activate(d,m,_,oe,fe):ne(d,m,_,M,z,oe,fe):S(b,d,fe)},ne=(b,d,m,_,M,z,oe)=>{const G=b.component=md(b,_,M);if(es(b)&&(G.ctx.renderer=$),gd(G,!1,oe),G.asyncDep){if(M&&M.registerDep(G,te,oe),!b.el){const fe=G.subTree=Ie(mt);E(null,fe,d,m),b.placeholder=fe.el}}else te(G,b,d,m,M,z,oe)},S=(b,d,m)=>{const _=d.component=b.component;if(Xf(b,d,m))if(_.asyncDep&&!_.asyncResolved){ae(_,d,m);return}else _.next=d,_.update();else d.el=b.el,_.vnode=d},te=(b,d,m,_,M,z,oe)=>{const G=()=>{if(b.isMounted){let{next:ve,bu:xe,u:Fe,parent:Pe,vnode:qe}=b;{const xt=Xa(b);if(xt){ve&&(ve.el=qe.el,ae(b,ve,oe)),xt.asyncDep.then(()=>{dt(()=>{b.isUnmounted||Q()},M)});return}}let ze=ve,ut;Hn(b,!1),ve?(ve.el=qe.el,ae(b,ve,oe)):ve=qe,xe&&xo(xe),(ut=ve.props&&ve.props.onVnodeBeforeUpdate)&&Ut(ut,Pe,ve,qe),Hn(b,!0);const tt=_i(b),yt=b.subTree;b.subTree=tt,w(yt,tt,p(yt.el),I(yt),b,M,z),ve.el=tt.el,ze===null&&Qf(b,tt.el),Fe&&dt(Fe,M),(ut=ve.props&&ve.props.onVnodeUpdated)&&dt(()=>Ut(ut,Pe,ve,qe),M)}else{let ve;const{el:xe,props:Fe}=d,{bm:Pe,m:qe,parent:ze,root:ut,type:tt}=b,yt=ru(d);Hn(b,!1),Pe&&xo(Pe),!yt&&(ve=Fe&&Fe.onVnodeBeforeMount)&&Ut(ve,ze,d),Hn(b,!0);{ut.ce&&ut.ce._hasShadowRoot()&&ut.ce._injectChildStyle(tt);const xt=b.subTree=_i(b);w(null,xt,m,_,b,M,z),d.el=xt.el}if(qe&&dt(qe,M),!yt&&(ve=Fe&&Fe.onVnodeMounted)){const xt=d;dt(()=>Ut(ve,ze,xt),M)}(d.shapeFlag&256||ze&&ru(ze.vnode)&&ze.vnode.shapeFlag&256)&&b.a&&dt(b.a,M),b.isMounted=!0,d=m=_=null}};b.scope.on();const fe=b.effect=new ra(G);b.scope.off();const Q=b.update=fe.run.bind(fe),Ce=b.job=fe.runIfDirty.bind(fe);Ce.i=b,Ce.id=b.uid,fe.scheduler=()=>Fr(Ce),Hn(b,!0),Q()},ae=(b,d,m)=>{d.component=b;const _=b.vnode.props;b.vnode=d,b.next=null,td(b,d.props,_,m),sd(b,d.children,m),mn(),ii(b),gn()},V=(b,d,m,_,M,z,oe,G,fe=!1)=>{const Q=b&&b.children,Ce=b?b.shapeFlag:0,ve=d.children,{patchFlag:xe,shapeFlag:Fe}=d;if(xe>0){if(xe&128){ye(Q,ve,m,_,M,z,oe,G,fe);return}else if(xe&256){ce(Q,ve,m,_,M,z,oe,G,fe);return}}Fe&8?(Ce&16&&C(Q,M,z),ve!==Q&&f(m,ve)):Ce&16?Fe&16?ye(Q,ve,m,_,M,z,oe,G,fe):C(Q,M,z,!0):(Ce&8&&f(m,""),Fe&16&&X(ve,m,_,M,z,oe,G,fe))},ce=(b,d,m,_,M,z,oe,G,fe)=>{b=b||uu,d=d||uu;const Q=b.length,Ce=d.length,ve=Math.min(Q,Ce);let xe;for(xe=0;xe<ve;xe++){const Fe=d[xe]=fe?an(d[xe]):Gt(d[xe]);w(b[xe],Fe,m,null,M,z,oe,G,fe)}Q>Ce?C(b,M,z,!0,!1,ve):X(d,m,_,M,z,oe,G,fe,ve)},ye=(b,d,m,_,M,z,oe,G,fe)=>{let Q=0;const Ce=d.length;let ve=b.length-1,xe=Ce-1;for(;Q<=ve&&Q<=xe;){const Fe=b[Q],Pe=d[Q]=fe?an(d[Q]):Gt(d[Q]);if(Kn(Fe,Pe))w(Fe,Pe,m,null,M,z,oe,G,fe);else break;Q++}for(;Q<=ve&&Q<=xe;){const Fe=b[ve],Pe=d[xe]=fe?an(d[xe]):Gt(d[xe]);if(Kn(Fe,Pe))w(Fe,Pe,m,null,M,z,oe,G,fe);else break;ve--,xe--}if(Q>ve){if(Q<=xe){const Fe=xe+1,Pe=Fe<Ce?d[Fe].el:_;for(;Q<=xe;)w(null,d[Q]=fe?an(d[Q]):Gt(d[Q]),m,Pe,M,z,oe,G,fe),Q++}}else if(Q>xe)for(;Q<=ve;)ee(b[Q],M,z,!0),Q++;else{const Fe=Q,Pe=Q,qe=new Map;for(Q=Pe;Q<=xe;Q++){const me=d[Q]=fe?an(d[Q]):Gt(d[Q]);me.key!=null&&qe.set(me.key,Q)}let ze,ut=0;const tt=xe-Pe+1;let yt=!1,xt=0;const W=new Array(tt);for(Q=0;Q<tt;Q++)W[Q]=0;for(Q=Fe;Q<=ve;Q++){const me=b[Q];if(ut>=tt){ee(me,M,z,!0);continue}let re;if(me.key!=null)re=qe.get(me.key);else for(ze=Pe;ze<=xe;ze++)if(W[ze-Pe]===0&&Kn(me,d[ze])){re=ze;break}re===void 0?ee(me,M,z,!0):(W[re-Pe]=Q+1,re>=xt?xt=re:yt=!0,w(me,d[re],m,null,M,z,oe,G,fe),ut++)}const q=yt?ad(W):uu;for(ze=q.length-1,Q=tt-1;Q>=0;Q--){const me=Pe+Q,re=d[me],$e=d[me+1],Ae=me+1<Ce?$e.el||Qa($e):_;W[Q]===0?w(null,re,m,Ae,M,z,oe,G,fe):yt&&(ze<0||Q!==q[ze]?B(re,m,Ae,2):ze--)}}},B=(b,d,m,_,M=null)=>{const{el:z,type:oe,transition:G,children:fe,shapeFlag:Q}=b;if(Q&6){B(b.component.subTree,d,m,_);return}if(Q&128){b.suspense.move(d,m,_);return}if(Q&64){oe.move(b,d,m,$);return}if(oe===pe){u(z,d,m);for(let ve=0;ve<fe.length;ve++)B(fe[ve],d,m,_);u(b.anchor,d,m);return}if(oe===wo){L(b,d,m);return}if(_!==2&&Q&1&&G)if(_===0)G.beforeEnter(z),u(z,d,m),dt(()=>G.enter(z),M);else{const{leave:ve,delayLeave:xe,afterLeave:Fe}=G,Pe=()=>{b.ctx.isUnmounted?o(z):u(z,d,m)},qe=()=>{z._isLeaving&&z[Kt](!0),ve(z,()=>{Pe(),Fe&&Fe()})};xe?xe(z,Pe,qe):qe()}else u(z,d,m)},ee=(b,d,m,_=!1,M=!1)=>{const{type:z,props:oe,ref:G,children:fe,dynamicChildren:Q,shapeFlag:Ce,patchFlag:ve,dirs:xe,cacheIndex:Fe}=b;if(ve===-2&&(M=!1),G!=null&&(mn(),Su(G,null,m,b,!0),gn()),Fe!=null&&(d.renderCache[Fe]=void 0),Ce&256){d.ctx.deactivate(b);return}const Pe=Ce&1&&xe,qe=!ru(b);let ze;if(qe&&(ze=oe&&oe.onVnodeBeforeUnmount)&&Ut(ze,d,b),Ce&6)_e(b.component,m,_);else{if(Ce&128){b.suspense.unmount(m,_);return}Pe&&Bn(b,null,d,"beforeUnmount"),Ce&64?b.type.remove(b,d,m,$,_):Q&&!Q.hasOnce&&(z!==pe||ve>0&&ve&64)?C(Q,d,m,!1,!0):(z===pe&&ve&384||!M&&Ce&16)&&C(fe,d,m),_&&J(b)}(qe&&(ze=oe&&oe.onVnodeUnmounted)||Pe)&&dt(()=>{ze&&Ut(ze,d,b),Pe&&Bn(b,null,d,"unmounted")},m)},J=b=>{const{type:d,el:m,anchor:_,transition:M}=b;if(d===pe){de(m,_);return}if(d===wo){T(b);return}const z=()=>{o(m),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(b.shapeFlag&1&&M&&!M.persisted){const{leave:oe,delayLeave:G}=M,fe=()=>oe(m,z);G?G(b.el,z,fe):fe()}else z()},de=(b,d)=>{let m;for(;b!==d;)m=h(b),o(b),b=m;o(d)},_e=(b,d,m)=>{const{bum:_,scope:M,job:z,subTree:oe,um:G,m:fe,a:Q}=b;ki(fe),ki(Q),_&&xo(_),M.stop(),z&&(z.flags|=8,ee(oe,b,d,m)),G&&dt(G,d),dt(()=>{b.isUnmounted=!0},d)},C=(b,d,m,_=!1,M=!1,z=0)=>{for(let oe=z;oe<b.length;oe++)ee(b[oe],d,m,_,M)},I=b=>{if(b.shapeFlag&6)return I(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const d=h(b.anchor||b.el),m=d&&d[Ea];return m?h(m):d};let K=!1;const j=(b,d,m)=>{let _;b==null?d._vnode&&(ee(d._vnode,null,null,!0),_=d._vnode.component):w(d._vnode||null,b,d,null,null,null,m),d._vnode=b,K||(K=!0,ii(_),wa(),K=!1)},$={p:w,um:ee,m:B,r:J,mt:ne,mc:X,pc:V,pbc:Z,n:I,o:e};return{render:j,hydrate:void 0,createApp:Wf(j)}}function ws({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Hn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ld(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Or(e,t,n=!1){const u=e.children,o=t.children;if(De(u)&&De(o))for(let s=0;s<u.length;s++){const r=u[s];let i=o[s];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=o[s]=an(o[s]),i.el=r.el),!n&&i.patchFlag!==-2&&Or(r,i)),i.type===os&&(i.patchFlag===-1&&(i=o[s]=an(i)),i.el=r.el),i.type===mt&&!i.el&&(i.el=r.el)}}function ad(e){const t=e.slice(),n=[0];let u,o,s,r,i;const l=e.length;for(u=0;u<l;u++){const a=e[u];if(a!==0){if(o=n[n.length-1],e[o]<a){t[u]=o,n.push(u);continue}for(s=0,r=n.length-1;s<r;)i=s+r>>1,e[n[i]]<a?s=i+1:r=i;a<e[n[s]]&&(s>0&&(t[u]=n[s-1]),n[s]=u)}}for(s=n.length,r=n[s-1];s-- >0;)n[s]=r,r=t[r];return n}function Xa(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Xa(t)}function ki(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Qa(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Qa(t.subTree):null}const ec=e=>e.__isSuspense;function cd(e,t){t&&t.pendingBranch?De(e)?t.effects.push(...e):t.effects.push(e):df(e)}const pe=Symbol.for("v-fgt"),os=Symbol.for("v-txt"),mt=Symbol.for("v-cmt"),wo=Symbol.for("v-stc"),Au=[];let $t=null;function x(e=!1){Au.push($t=e?null:[])}function fd(){Au.pop(),$t=Au[Au.length-1]||null}let ju=1;function Io(e,t=!1){ju+=e,e<0&&$t&&t&&($t.hasOnce=!0)}function tc(e){return e.dynamicChildren=ju>0?$t||uu:null,fd(),ju>0&&$t&&$t.push(e),e}function k(e,t,n,u,o,s){return tc(c(e,t,n,u,o,s,!0))}function _t(e,t,n,u,o){return tc(Ie(e,t,n,u,o,!0))}function qu(e){return e?e.__v_isVNode===!0:!1}function Kn(e,t){return e.type===t.type&&e.key===t.key}const nc=({key:e})=>e??null,Co=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ye(e)||Qe(e)||Me(e)?{i:at,r:e,k:t,f:!!n}:e:null);function c(e,t=null,n=null,u=0,o=null,s=e===pe?0:1,r=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nc(t),ref:t&&Co(t),scopeId:Qo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:u,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:at};return i?(zr(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=Ye(n)?8:16),ju>0&&!r&&$t&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&$t.push(l),l}const Ie=dd;function dd(e,t=null,n=null,u=0,o=null,s=!1){if((!e||e===Ra)&&(e=mt),qu(e)){const i=In(e,t,!0);return n&&zr(i,n),ju>0&&!s&&$t&&(i.shapeFlag&6?$t[$t.indexOf(e)]=i:$t.push(i)),i.patchFlag=-2,i}if(yd(e)&&(e=e.__vccOpts),t){t=uc(t);let{class:i,style:l}=t;i&&!Ye(i)&&(t.class=ie(i)),Ue(l)&&(Yo(l)&&!De(l)&&(l=st({},l)),t.style=Se(l))}const r=Ye(e)?1:ec(e)?128:Ta(e)?64:Ue(e)?4:Me(e)?2:0;return c(e,t,n,u,o,r,s,!0)}function uc(e){return e?Yo(e)||Wa(e)?st({},e):e:null}function In(e,t,n=!1,u=!1){const{props:o,ref:s,patchFlag:r,children:i,transition:l}=e,a=t?Nr(o||{},t):o,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&nc(a),ref:t&&t.ref?n&&s?De(s)?s.concat(Co(t)):[s,Co(t)]:Co(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==pe?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&In(e.ssContent),ssFallback:e.ssFallback&&In(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&u&&Nu(f,l.clone(f)),f}function ke(e=" ",t=0){return Ie(os,null,e,t)}function oc(e,t){const n=Ie(wo,null,e);return n.staticCount=t,n}function se(e="",t=!1){return t?(x(),_t(mt,null,e)):Ie(mt,null,e)}function Gt(e){return e==null||typeof e=="boolean"?Ie(mt):De(e)?Ie(pe,null,e.slice()):qu(e)?an(e):Ie(os,null,String(e))}function an(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:In(e)}function zr(e,t){let n=0;const{shapeFlag:u}=e;if(t==null)t=null;else if(De(t))n=16;else if(typeof t=="object")if(u&65){const o=t.default;o&&(o._c&&(o._d=!1),zr(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Wa(t)?t._ctx=at:o===3&&at&&(at.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Me(t)?(t={default:t,_ctx:at},n=32):(t=String(t),u&64?(n=16,t=[ke(t)]):n=8);e.children=t,e.shapeFlag|=n}function Nr(...e){const t={};for(let n=0;n<e.length;n++){const u=e[n];for(const o in u)if(o==="class")t.class!==u.class&&(t.class=ie([t.class,u.class]));else if(o==="style")t.style=Se([t.style,u.style]);else if(Uo(o)){const s=t[o],r=u[o];r&&s!==r&&!(De(s)&&s.includes(r))&&(t[o]=s?[].concat(s,r):r)}else o!==""&&(t[o]=u[o])}return t}function Ut(e,t,n,u=null){qt(e,t,7,[n,u])}const pd=Ha();let hd=0;function md(e,t,n){const u=e.type,o=(t?t.appContext:e.appContext)||pd,s={uid:hd++,vnode:e,type:u,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ua(!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:Ga(u,o),emitsOptions:ja(u,o),emit:null,emitted:null,propsDefaults:We,inheritAttrs:u.inheritAttrs,ctx:We,data:We,props:We,attrs:We,slots:We,refs:We,setupState:We,setupContext:null,suspense:n,suspenseId:n?n.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 s.ctx={_:s},s.root=t?t.root:s,s.emit=Gf.bind(null,s),e.ce&&e.ce(s),s}let gt=null;const ro=()=>gt||at;let Po,tr;{const e=Zo(),t=(n,u)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(u),s=>{o.length>1?o.forEach(r=>r(s)):o[0](s)}};Po=t("__VUE_INSTANCE_SETTERS__",n=>gt=n),tr=t("__VUE_SSR_SETTERS__",n=>Vu=n)}const io=e=>{const t=gt;return Po(e),e.scope.on(),()=>{e.scope.off(),Po(t)}},wi=()=>{gt&>.scope.off(),Po(null)};function sc(e){return e.vnode.shapeFlag&4}let Vu=!1;function gd(e,t=!1,n=!1){t&&tr(t);const{props:u,children:o}=e.vnode,s=sc(e);ed(e,u,s,t),od(e,o,n||t);const r=s?vd(e,t):void 0;return t&&tr(!1),r}function vd(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Of);const{setup:u}=n;if(u){mn();const o=e.setupContext=u.length>1?ic(e):null,s=io(e),r=oo(u,e,0,[e.props,o]),i=Jl(r);if(gn(),s(),(i||e.sp)&&!ru(e)&&Pa(e),i){if(r.then(wi,wi),t)return r.then(l=>{Ci(e,l)}).catch(l=>{Xo(l,e,0)});e.asyncDep=r}else Ci(e,r)}else rc(e)}function Ci(e,t,n){Me(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ue(t)&&(e.setupState=ya(t)),rc(e)}function rc(e,t,n){const u=e.type;e.render||(e.render=u.render||Xt);{const o=io(e);mn();try{Bf(e)}finally{gn(),o()}}}const bd={get(e,t){return ht(e,"get",""),e[t]}};function ic(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,bd),slots:e.slots,emit:e.emit,expose:t}}function ss(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ya(Ar(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Du)return Du[n](e)},has(t,n){return n in t||n in Du}})):e.proxy}function _d(e,t=!0){return Me(e)?e.displayName||e.name:e.name||t&&e.__name}function yd(e){return Me(e)&&"__vccOpts"in e}const O=(e,t)=>rf(e,t,Vu);function Br(e,t,n){try{Io(-1);const u=arguments.length;return u===2?Ue(t)&&!De(t)?qu(t)?Ie(e,null,[t]):Ie(e,t):Ie(e,null,t):(u>3?n=Array.prototype.slice.call(arguments,2):u===3&&qu(n)&&(n=[n]),Ie(e,t,n))}finally{Io(1)}}const xd="3.5.28";/**
|
|
15
|
+
* @vue/runtime-dom v3.5.28
|
|
16
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
17
|
+
* @license MIT
|
|
18
|
+
**/let nr;const $i=typeof window<"u"&&window.trustedTypes;if($i)try{nr=$i.createPolicy("vue",{createHTML:e=>e})}catch{}const lc=nr?e=>nr.createHTML(e):e=>e,kd="http://www.w3.org/2000/svg",wd="http://www.w3.org/1998/Math/MathML",ln=typeof document<"u"?document:null,Ei=ln&&ln.createElement("template"),Cd={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,u)=>{const o=t==="svg"?ln.createElementNS(kd,e):t==="mathml"?ln.createElementNS(wd,e):n?ln.createElement(e,{is:n}):ln.createElement(e);return e==="select"&&u&&u.multiple!=null&&o.setAttribute("multiple",u.multiple),o},createText:e=>ln.createTextNode(e),createComment:e=>ln.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ln.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,u,o,s){const r=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{Ei.innerHTML=lc(u==="svg"?`<svg>${e}</svg>`:u==="mathml"?`<math>${e}</math>`:e);const i=Ei.content;if(u==="svg"||u==="mathml"){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}t.insertBefore(i,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},yn="transition",vu="animation",Uu=Symbol("_vtc"),ac={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},$d=st({},Da,ac),Ed=e=>(e.displayName="Transition",e.props=$d,e),Zt=Ed((e,{slots:t})=>Br($f,Td(e),t)),jn=(e,t=[])=>{De(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ti=e=>e?De(e)?e.some(t=>t.length>1):e.length>1:!1;function Td(e){const t={};for(const H in e)H in ac||(t[H]=e[H]);if(e.css===!1)return t;const{name:n="v",type:u,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:a=r,appearToClass:f=i,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,v=Sd(o),w=v&&v[0],y=v&&v[1],{onBeforeEnter:E,onEnter:D,onEnterCancelled:L,onLeave:T,onLeaveCancelled:R,onBeforeAppear:F=E,onAppear:ue=D,onAppearCancelled:X=L}=t,U=(H,le,ne,S)=>{H._enterCancelled=S,qn(H,le?f:i),qn(H,le?a:r),ne&&ne()},Z=(H,le)=>{H._isLeaving=!1,qn(H,p),qn(H,g),qn(H,h),le&&le()},ge=H=>(le,ne)=>{const S=H?ue:D,te=()=>U(le,H,ne);jn(S,[le,te]),Si(()=>{qn(le,H?l:s),rn(le,H?f:i),Ti(S)||Di(le,u,w,te)})};return st(t,{onBeforeEnter(H){jn(E,[H]),rn(H,s),rn(H,r)},onBeforeAppear(H){jn(F,[H]),rn(H,l),rn(H,a)},onEnter:ge(!1),onAppear:ge(!0),onLeave(H,le){H._isLeaving=!0;const ne=()=>Z(H,le);rn(H,p),H._enterCancelled?(rn(H,h),Mi(H)):(Mi(H),rn(H,h)),Si(()=>{H._isLeaving&&(qn(H,p),rn(H,g),Ti(T)||Di(H,u,y,ne))}),jn(T,[H,ne])},onEnterCancelled(H){U(H,!1,void 0,!0),jn(L,[H])},onAppearCancelled(H){U(H,!0,void 0,!0),jn(X,[H])},onLeaveCancelled(H){Z(H),jn(R,[H])}})}function Sd(e){if(e==null)return null;if(Ue(e))return[Cs(e.enter),Cs(e.leave)];{const t=Cs(e);return[t,t]}}function Cs(e){return w0(e)}function rn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Uu]||(e[Uu]=new Set)).add(t)}function qn(e,t){t.split(/\s+/).forEach(u=>u&&e.classList.remove(u));const n=e[Uu];n&&(n.delete(t),n.size||(e[Uu]=void 0))}function Si(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Dd=0;function Di(e,t,n,u){const o=e._endId=++Dd,s=()=>{o===e._endId&&u()};if(n!=null)return setTimeout(s,n);const{type:r,timeout:i,propCount:l}=Ad(e,t);if(!r)return u();const a=r+"end";let f=0;const p=()=>{e.removeEventListener(a,h),s()},h=g=>{g.target===e&&++f>=l&&p()};setTimeout(()=>{f<l&&p()},i+1),e.addEventListener(a,h)}function Ad(e,t){const n=window.getComputedStyle(e),u=v=>(n[v]||"").split(", "),o=u(`${yn}Delay`),s=u(`${yn}Duration`),r=Ai(o,s),i=u(`${vu}Delay`),l=u(`${vu}Duration`),a=Ai(i,l);let f=null,p=0,h=0;t===yn?r>0&&(f=yn,p=r,h=s.length):t===vu?a>0&&(f=vu,p=a,h=l.length):(p=Math.max(r,a),f=p>0?r>a?yn:vu:null,h=f?f===yn?s.length:l.length:0);const g=f===yn&&/\b(?:transform|all)(?:,|$)/.test(u(`${yn}Property`).toString());return{type:f,timeout:p,propCount:h,hasTransform:g}}function Ai(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,u)=>Fi(n)+Fi(e[u])))}function Fi(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Mi(e){return(e?e.ownerDocument:document).body.offsetHeight}function Fd(e,t,n){const u=e[Uu];u&&(t=(t?[t,...u]:[...u]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Lo=Symbol("_vod"),cc=Symbol("_vsh"),Md={name:"show",beforeMount(e,{value:t},{transition:n}){e[Lo]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):bu(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:u}){!t!=!n&&(u?t?(u.beforeEnter(e),bu(e,!0),u.enter(e)):u.leave(e,()=>{bu(e,!1)}):bu(e,t))},beforeUnmount(e,{value:t}){bu(e,t)}};function bu(e,t){e.style.display=t?e[Lo]:"none",e[cc]=!t}const Id=Symbol(""),Pd=/(?:^|;)\s*display\s*:/;function Ld(e,t,n){const u=e.style,o=Ye(n);let s=!1;if(n&&!o){if(t)if(Ye(t))for(const r of t.split(";")){const i=r.slice(0,r.indexOf(":")).trim();n[i]==null&&$o(u,i,"")}else for(const r in t)n[r]==null&&$o(u,r,"");for(const r in n)r==="display"&&(s=!0),$o(u,r,n[r])}else if(o){if(t!==n){const r=u[Id];r&&(n+=";"+r),u.cssText=n,s=Pd.test(n)}}else t&&e.removeAttribute("style");Lo in e&&(e[Lo]=s?u.display:"",e[cc]&&(u.display="none"))}const Ii=/\s*!important$/;function $o(e,t,n){if(De(n))n.forEach(u=>$o(e,t,u));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const u=Rd(e,t);Ii.test(n)?e.setProperty(Rn(u),n.replace(Ii,""),"important"):e[u]=n}}const Pi=["Webkit","Moz","ms"],$s={};function Rd(e,t){const n=$s[t];if(n)return n;let u=It(t);if(u!=="filter"&&u in e)return $s[t]=u;u=Go(u);for(let o=0;o<Pi.length;o++){const s=Pi[o]+u;if(s in e)return $s[t]=s}return t}const Li="http://www.w3.org/1999/xlink";function Ri(e,t,n,u,o,s=A0(t)){u&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Li,t.slice(6,t.length)):e.setAttributeNS(Li,t,n):n==null||s&&!ea(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Ht(n)?String(n):n)}function Oi(e,t,n,u,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?lc(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const i=s==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(i!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let r=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=ea(n):n==null&&i==="string"?(n="",r=!0):i==="number"&&(n=0,r=!0)}try{e[t]=n}catch{}r&&e.removeAttribute(o||t)}function nu(e,t,n,u){e.addEventListener(t,n,u)}function Od(e,t,n,u){e.removeEventListener(t,n,u)}const zi=Symbol("_vei");function zd(e,t,n,u,o=null){const s=e[zi]||(e[zi]={}),r=s[t];if(u&&r)r.value=u;else{const[i,l]=Nd(t);if(u){const a=s[t]=jd(u,o);nu(e,i,a,l)}else r&&(Od(e,i,r,l),s[t]=void 0)}}const Ni=/(?:Once|Passive|Capture)$/;function Nd(e){let t;if(Ni.test(e)){t={};let u;for(;u=e.match(Ni);)e=e.slice(0,e.length-u[0].length),t[u[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Rn(e.slice(2)),t]}let Es=0;const Bd=Promise.resolve(),Hd=()=>Es||(Bd.then(()=>Es=0),Es=Date.now());function jd(e,t){const n=u=>{if(!u._vts)u._vts=Date.now();else if(u._vts<=n.attached)return;qt(qd(u,n.value),t,5,[u])};return n.value=e,n.attached=Hd(),n}function qd(e,t){if(De(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(u=>o=>!o._stopped&&u&&u(o))}else return t}const Bi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vd=(e,t,n,u,o,s)=>{const r=o==="svg";t==="class"?Fd(e,u,r):t==="style"?Ld(e,n,u):Uo(t)?yr(t)||zd(e,t,n,u,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ud(e,t,u,r))?(Oi(e,t,u),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ri(e,t,u,r,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ye(u))?Oi(e,It(t),u,s,t):(t==="true-value"?e._trueValue=u:t==="false-value"&&(e._falseValue=u),Ri(e,t,u,r))};function Ud(e,t,n,u){if(u)return!!(t==="innerHTML"||t==="textContent"||t in e&&Bi(t)&&Me(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Bi(t)&&Ye(n)?!1:t in e}const Hi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return De(t)?n=>xo(t,n):t};function Wd(e){e.target.composing=!0}function ji(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ts=Symbol("_assign");function qi(e,t,n){return t&&(e=e.trim()),n&&(e=kr(e)),e}const Kd={created(e,{modifiers:{lazy:t,trim:n,number:u}},o){e[Ts]=Hi(o);const s=u||o.props&&o.props.type==="number";nu(e,t?"change":"input",r=>{r.target.composing||e[Ts](qi(e.value,n,s))}),(n||s)&&nu(e,"change",()=>{e.value=qi(e.value,n,s)}),t||(nu(e,"compositionstart",Wd),nu(e,"compositionend",ji),nu(e,"change",ji))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:u,trim:o,number:s}},r){if(e[Ts]=Hi(r),e.composing)return;const i=(s||e.type==="number")&&!/^0\d/.test(e.value)?kr(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(u&&t===n||o&&e.value.trim()===l)||(e.value=l))}},Gd=["ctrl","shift","alt","meta"],Zd={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Gd.some(n=>e[`${n}Key`]&&!t.includes(n))},Mt=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),u=t.join(".");return n[u]||(n[u]=((o,...s)=>{for(let r=0;r<t.length;r++){const i=Zd[t[r]];if(i&&i(o,t))return}return e(o,...s)}))},Jd={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},fc=(e,t)=>{const n=e._withKeys||(e._withKeys={}),u=t.join(".");return n[u]||(n[u]=(o=>{if(!("key"in o))return;const s=Rn(o.key);if(t.some(r=>r===s||Jd[r]===s))return e(o)}))},Yd=st({patchProp:Vd},Cd);let Vi;function Xd(){return Vi||(Vi=rd(Yd))}const dc=((...e)=>{const t=Xd().createApp(...e),{mount:n}=t;return t.mount=u=>{const o=ep(u);if(!o)return;const s=t._component;!Me(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,Qd(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t});function Qd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ep(e){return Ye(e)?document.querySelector(e):e}/*!
|
|
19
|
+
* pinia v2.3.1
|
|
20
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
21
|
+
* @license MIT
|
|
22
|
+
*/let pc;const rs=e=>pc=e,hc=Symbol();function ur(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Fu;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Fu||(Fu={}));function tp(){const e=oa(!0),t=e.run(()=>he({}));let n=[],u=[];const o=Ar({install(s){rs(o),o._a=s,s.provide(hc,o),s.config.globalProperties.$pinia=o,u.forEach(r=>n.push(r)),u=[]},use(s){return this._a?n.push(s):u.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const mc=()=>{};function Ui(e,t,n,u=mc){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),u())};return!n&&sa()&&M0(o),o}function Qn(e,...t){e.slice().forEach(n=>{n(...t)})}const np=e=>e(),Wi=Symbol(),Ss=Symbol();function or(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,u)=>e.set(u,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const u=t[n],o=e[n];ur(o)&&ur(u)&&e.hasOwnProperty(n)&&!Qe(u)&&!pn(u)?e[n]=or(o,u):e[n]=u}return e}const up=Symbol();function op(e){return!ur(e)||!e.hasOwnProperty(up)}const{assign:kn}=Object;function sp(e){return!!(Qe(e)&&e.effect)}function rp(e,t,n,u){const{state:o,actions:s,getters:r}=t,i=n.state.value[e];let l;function a(){i||(n.state.value[e]=o?o():{});const f=nf(n.state.value[e]);return kn(f,s,Object.keys(r||{}).reduce((p,h)=>(p[h]=Ar(O(()=>{rs(n);const g=n._s.get(e);return r[h].call(g,g)})),p),{}))}return l=gc(e,a,t,n,u,!0),l}function gc(e,t,n={},u,o,s){let r;const i=kn({actions:{}},n),l={deep:!0};let a,f,p=[],h=[],g;const v=u.state.value[e];!s&&!v&&(u.state.value[e]={});let w;function y(X){let U;a=f=!1,typeof X=="function"?(X(u.state.value[e]),U={type:Fu.patchFunction,storeId:e,events:g}):(or(u.state.value[e],X),U={type:Fu.patchObject,payload:X,storeId:e,events:g});const Z=w=Symbol();Je().then(()=>{w===Z&&(a=!0)}),f=!0,Qn(p,U,u.state.value[e])}const E=s?function(){const{state:U}=n,Z=U?U():{};this.$patch(ge=>{kn(ge,Z)})}:mc;function D(){r.stop(),p=[],h=[],u._s.delete(e)}const L=(X,U="")=>{if(Wi in X)return X[Ss]=U,X;const Z=function(){rs(u);const ge=Array.from(arguments),H=[],le=[];function ne(ae){H.push(ae)}function S(ae){le.push(ae)}Qn(h,{args:ge,name:Z[Ss],store:R,after:ne,onError:S});let te;try{te=X.apply(this&&this.$id===e?this:R,ge)}catch(ae){throw Qn(le,ae),ae}return te instanceof Promise?te.then(ae=>(Qn(H,ae),ae)).catch(ae=>(Qn(le,ae),Promise.reject(ae))):(Qn(H,te),te)};return Z[Wi]=!0,Z[Ss]=U,Z},T={_p:u,$id:e,$onAction:Ui.bind(null,h),$patch:y,$reset:E,$subscribe(X,U={}){const Z=Ui(p,X,U.detached,()=>ge()),ge=r.run(()=>Ge(()=>u.state.value[e],H=>{(U.flush==="sync"?f:a)&&X({storeId:e,type:Fu.direct,events:g},H)},kn({},l,U)));return Z},$dispose:D},R=uo(T);u._s.set(e,R);const ue=(u._a&&u._a.runWithContext||np)(()=>u._e.run(()=>(r=oa()).run(()=>t({action:L}))));for(const X in ue){const U=ue[X];if(Qe(U)&&!sp(U)||pn(U))s||(v&&op(U)&&(Qe(U)?U.value=v[X]:or(U,v[X])),u.state.value[e][X]=U);else if(typeof U=="function"){const Z=L(U,X);ue[X]=Z,i.actions[X]=U}}return kn(R,ue),kn(Be(R),ue),Object.defineProperty(R,"$state",{get:()=>u.state.value[e],set:X=>{y(U=>{kn(U,X)})}}),u._p.forEach(X=>{kn(R,r.run(()=>X({store:R,app:u._a,pinia:u,options:i})))}),v&&s&&n.hydrate&&n.hydrate(R.$state,v),a=!0,f=!0,R}/*! #__NO_SIDE_EFFECTS__ */function ip(e,t,n){let u,o;const s=typeof t=="function";u=e,o=s?n:t;function r(i,l){const a=gf();return i=i||(a?Rt(hc,null):null),i&&rs(i),i=pc,i._s.has(u)||(s?gc(u,t,o,i):rp(u,o,i)),i._s.get(u)}return r.$id=u,r}const lp=["top","right","bottom","left"],Ki=["start","end"],Gi=lp.reduce((e,t)=>e.concat(t,t+"-"+Ki[0],t+"-"+Ki[1]),[]),Wu=Math.min,Wn=Math.max,ap={left:"right",right:"left",bottom:"top",top:"bottom"},cp={start:"end",end:"start"};function sr(e,t,n){return Wn(e,Wu(t,n))}function Jn(e,t){return typeof e=="function"?e(t):e}function tn(e){return e.split("-")[0]}function Nt(e){return e.split("-")[1]}function vc(e){return e==="x"?"y":"x"}function Hr(e){return e==="y"?"height":"width"}const fp=new Set(["top","bottom"]);function dn(e){return fp.has(tn(e))?"y":"x"}function jr(e){return vc(dn(e))}function bc(e,t,n){n===void 0&&(n=!1);const u=Nt(e),o=jr(e),s=Hr(o);let r=o==="x"?u===(n?"end":"start")?"right":"left":u==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=Oo(r)),[r,Oo(r)]}function dp(e){const t=Oo(e);return[Ro(e),t,Ro(t)]}function Ro(e){return e.replace(/start|end/g,t=>cp[t])}const Zi=["left","right"],Ji=["right","left"],pp=["top","bottom"],hp=["bottom","top"];function mp(e,t,n){switch(e){case"top":case"bottom":return n?t?Ji:Zi:t?Zi:Ji;case"left":case"right":return t?pp:hp;default:return[]}}function gp(e,t,n,u){const o=Nt(e);let s=mp(tn(e),n==="start",u);return o&&(s=s.map(r=>r+"-"+o),t&&(s=s.concat(s.map(Ro)))),s}function Oo(e){return e.replace(/left|right|bottom|top/g,t=>ap[t])}function vp(e){return{top:0,right:0,bottom:0,left:0,...e}}function _c(e){return typeof e!="number"?vp(e):{top:e,right:e,bottom:e,left:e}}function Mu(e){const{x:t,y:n,width:u,height:o}=e;return{width:u,height:o,top:n,left:t,right:t+u,bottom:n+o,x:t,y:n}}function Yi(e,t,n){let{reference:u,floating:o}=e;const s=dn(t),r=jr(t),i=Hr(r),l=tn(t),a=s==="y",f=u.x+u.width/2-o.width/2,p=u.y+u.height/2-o.height/2,h=u[i]/2-o[i]/2;let g;switch(l){case"top":g={x:f,y:u.y-o.height};break;case"bottom":g={x:f,y:u.y+u.height};break;case"right":g={x:u.x+u.width,y:p};break;case"left":g={x:u.x-o.width,y:p};break;default:g={x:u.x,y:u.y}}switch(Nt(t)){case"start":g[r]-=h*(n&&a?-1:1);break;case"end":g[r]+=h*(n&&a?-1:1);break}return g}async function bp(e,t){var n;t===void 0&&(t={});const{x:u,y:o,platform:s,rects:r,elements:i,strategy:l}=e,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:g=0}=Jn(t,e),v=_c(g),y=i[h?p==="floating"?"reference":"floating":p],E=Mu(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:a,rootBoundary:f,strategy:l})),D=p==="floating"?{x:u,y:o,width:r.floating.width,height:r.floating.height}:r.reference,L=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),T=await(s.isElement==null?void 0:s.isElement(L))?await(s.getScale==null?void 0:s.getScale(L))||{x:1,y:1}:{x:1,y:1},R=Mu(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:D,offsetParent:L,strategy:l}):D);return{top:(E.top-R.top+v.top)/T.y,bottom:(R.bottom-E.bottom+v.bottom)/T.y,left:(E.left-R.left+v.left)/T.x,right:(R.right-E.right+v.right)/T.x}}const _p=async(e,t,n)=>{const{placement:u="bottom",strategy:o="absolute",middleware:s=[],platform:r}=n,i=s.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(t));let a=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Yi(a,u,l),h=u,g={},v=0;for(let y=0;y<i.length;y++){var w;const{name:E,fn:D}=i[y],{x:L,y:T,data:R,reset:F}=await D({x:f,y:p,initialPlacement:u,placement:h,strategy:o,middlewareData:g,rects:a,platform:{...r,detectOverflow:(w=r.detectOverflow)!=null?w:bp},elements:{reference:e,floating:t}});f=L??f,p=T??p,g={...g,[E]:{...g[E],...R}},F&&v<=50&&(v++,typeof F=="object"&&(F.placement&&(h=F.placement),F.rects&&(a=F.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:o}):F.rects),{x:f,y:p}=Yi(a,h,l)),y=-1)}return{x:f,y:p,placement:h,strategy:o,middlewareData:g}},yp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:u,placement:o,rects:s,platform:r,elements:i,middlewareData:l}=t,{element:a,padding:f=0}=Jn(e,t)||{};if(a==null)return{};const p=_c(f),h={x:n,y:u},g=jr(o),v=Hr(g),w=await r.getDimensions(a),y=g==="y",E=y?"top":"left",D=y?"bottom":"right",L=y?"clientHeight":"clientWidth",T=s.reference[v]+s.reference[g]-h[g]-s.floating[v],R=h[g]-s.reference[g],F=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a));let ue=F?F[L]:0;(!ue||!await(r.isElement==null?void 0:r.isElement(F)))&&(ue=i.floating[L]||s.floating[v]);const X=T/2-R/2,U=ue/2-w[v]/2-1,Z=Wu(p[E],U),ge=Wu(p[D],U),H=Z,le=ue-w[v]-ge,ne=ue/2-w[v]/2+X,S=sr(H,ne,le),te=!l.arrow&&Nt(o)!=null&&ne!==S&&s.reference[v]/2-(ne<H?Z:ge)-w[v]/2<0,ae=te?ne<H?ne-H:ne-le:0;return{[g]:h[g]+ae,data:{[g]:S,centerOffset:ne-S-ae,...te&&{alignmentOffset:ae}},reset:te}}});function xp(e,t,n){return(e?[...n.filter(o=>Nt(o)===e),...n.filter(o=>Nt(o)!==e)]:n.filter(o=>tn(o)===o)).filter(o=>e?Nt(o)===e||(t?Ro(o)!==o:!1):!0)}const kp=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,u,o;const{rects:s,middlewareData:r,placement:i,platform:l,elements:a}=t,{crossAxis:f=!1,alignment:p,allowedPlacements:h=Gi,autoAlignment:g=!0,...v}=Jn(e,t),w=p!==void 0||h===Gi?xp(p||null,g,h):h,y=await l.detectOverflow(t,v),E=((n=r.autoPlacement)==null?void 0:n.index)||0,D=w[E];if(D==null)return{};const L=bc(D,s,await(l.isRTL==null?void 0:l.isRTL(a.floating)));if(i!==D)return{reset:{placement:w[0]}};const T=[y[tn(D)],y[L[0]],y[L[1]]],R=[...((u=r.autoPlacement)==null?void 0:u.overflows)||[],{placement:D,overflows:T}],F=w[E+1];if(F)return{data:{index:E+1,overflows:R},reset:{placement:F}};const ue=R.map(Z=>{const ge=Nt(Z.placement);return[Z.placement,ge&&f?Z.overflows.slice(0,2).reduce((H,le)=>H+le,0):Z.overflows[0],Z.overflows]}).sort((Z,ge)=>Z[1]-ge[1]),U=((o=ue.filter(Z=>Z[2].slice(0,Nt(Z[0])?2:3).every(ge=>ge<=0))[0])==null?void 0:o[0])||ue[0][0];return U!==i?{data:{index:E+1,overflows:R},reset:{placement:U}}:{}}}},wp=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,u;const{placement:o,middlewareData:s,rects:r,initialPlacement:i,platform:l,elements:a}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...y}=Jn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const E=tn(o),D=dn(i),L=tn(i)===i,T=await(l.isRTL==null?void 0:l.isRTL(a.floating)),R=h||(L||!w?[Oo(i)]:dp(i)),F=v!=="none";!h&&F&&R.push(...gp(i,w,v,T));const ue=[i,...R],X=await l.detectOverflow(t,y),U=[];let Z=((u=s.flip)==null?void 0:u.overflows)||[];if(f&&U.push(X[E]),p){const ne=bc(o,r,T);U.push(X[ne[0]],X[ne[1]])}if(Z=[...Z,{placement:o,overflows:U}],!U.every(ne=>ne<=0)){var ge,H;const ne=(((ge=s.flip)==null?void 0:ge.index)||0)+1,S=ue[ne];if(S&&(!(p==="alignment"?D!==dn(S):!1)||Z.every(V=>dn(V.placement)===D?V.overflows[0]>0:!0)))return{data:{index:ne,overflows:Z},reset:{placement:S}};let te=(H=Z.filter(ae=>ae.overflows[0]<=0).sort((ae,V)=>ae.overflows[1]-V.overflows[1])[0])==null?void 0:H.placement;if(!te)switch(g){case"bestFit":{var le;const ae=(le=Z.filter(V=>{if(F){const ce=dn(V.placement);return ce===D||ce==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ce=>ce>0).reduce((ce,ye)=>ce+ye,0)]).sort((V,ce)=>V[1]-ce[1])[0])==null?void 0:le[0];ae&&(te=ae);break}case"initialPlacement":te=i;break}if(o!==te)return{reset:{placement:te}}}return{}}}},Cp=new Set(["left","top"]);async function $p(e,t){const{placement:n,platform:u,elements:o}=e,s=await(u.isRTL==null?void 0:u.isRTL(o.floating)),r=tn(n),i=Nt(n),l=dn(n)==="y",a=Cp.has(r)?-1:1,f=s&&l?-1:1,p=Jn(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof v=="number"&&(g=i==="end"?v*-1:v),l?{x:g*f,y:h*a}:{x:h*a,y:g*f}}const Ep=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,u;const{x:o,y:s,placement:r,middlewareData:i}=t,l=await $p(t,e);return r===((n=i.offset)==null?void 0:n.placement)&&(u=i.arrow)!=null&&u.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:r}}}}},Tp=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:u,placement:o,platform:s}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:l={fn:E=>{let{x:D,y:L}=E;return{x:D,y:L}}},...a}=Jn(e,t),f={x:n,y:u},p=await s.detectOverflow(t,a),h=dn(tn(o)),g=vc(h);let v=f[g],w=f[h];if(r){const E=g==="y"?"top":"left",D=g==="y"?"bottom":"right",L=v+p[E],T=v-p[D];v=sr(L,v,T)}if(i){const E=h==="y"?"top":"left",D=h==="y"?"bottom":"right",L=w+p[E],T=w-p[D];w=sr(L,w,T)}const y=l.fn({...t,[g]:v,[h]:w});return{...y,data:{x:y.x-n,y:y.y-u,enabled:{[g]:r,[h]:i}}}}}},Sp=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,u;const{placement:o,rects:s,platform:r,elements:i}=t,{apply:l=()=>{},...a}=Jn(e,t),f=await r.detectOverflow(t,a),p=tn(o),h=Nt(o),g=dn(o)==="y",{width:v,height:w}=s.floating;let y,E;p==="top"||p==="bottom"?(y=p,E=h===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(E=p,y=h==="end"?"top":"bottom");const D=w-f.top-f.bottom,L=v-f.left-f.right,T=Wu(w-f[y],D),R=Wu(v-f[E],L),F=!t.middlewareData.shift;let ue=T,X=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(X=L),(u=t.middlewareData.shift)!=null&&u.enabled.y&&(ue=D),F&&!h){const Z=Wn(f.left,0),ge=Wn(f.right,0),H=Wn(f.top,0),le=Wn(f.bottom,0);g?X=v-2*(Z!==0||ge!==0?Z+ge:Wn(f.left,f.right)):ue=w-2*(H!==0||le!==0?H+le:Wn(f.top,f.bottom))}await l({...t,availableWidth:X,availableHeight:ue});const U=await r.getDimensions(i.floating);return v!==U.width||w!==U.height?{reset:{rects:!0}}:{}}}};function Ft(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qt(e){return Ft(e).getComputedStyle(e)}const Xi=Math.min,Iu=Math.max,zo=Math.round;function yc(e){const t=Qt(e);let n=parseFloat(t.width),u=parseFloat(t.height);const o=e.offsetWidth,s=e.offsetHeight,r=zo(n)!==o||zo(u)!==s;return r&&(n=o,u=s),{width:n,height:u,fallback:r}}function Pn(e){return kc(e)?(e.nodeName||"").toLowerCase():""}let go;function xc(){if(go)return go;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(go=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),go):navigator.userAgent}function en(e){return e instanceof Ft(e).HTMLElement}function Fn(e){return e instanceof Ft(e).Element}function kc(e){return e instanceof Ft(e).Node}function Qi(e){return typeof ShadowRoot>"u"?!1:e instanceof Ft(e).ShadowRoot||e instanceof ShadowRoot}function is(e){const{overflow:t,overflowX:n,overflowY:u,display:o}=Qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+u+n)&&!["inline","contents"].includes(o)}function Dp(e){return["table","td","th"].includes(Pn(e))}function rr(e){const t=/firefox/i.test(xc()),n=Qt(e),u=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!u&&u!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((o=>n.willChange.includes(o)))||["paint","layout","strict","content"].some((o=>{const s=n.contain;return s!=null&&s.includes(o)}))}function wc(){return!/^((?!chrome|android).)*safari/i.test(xc())}function qr(e){return["html","body","#document"].includes(Pn(e))}function Cc(e){return Fn(e)?e:e.contextElement}const $c={x:1,y:1};function iu(e){const t=Cc(e);if(!en(t))return $c;const n=t.getBoundingClientRect(),{width:u,height:o,fallback:s}=yc(t);let r=(s?zo(n.width):n.width)/u,i=(s?zo(n.height):n.height)/o;return r&&Number.isFinite(r)||(r=1),i&&Number.isFinite(i)||(i=1),{x:r,y:i}}function Ku(e,t,n,u){var o,s;t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Cc(e);let l=$c;t&&(u?Fn(u)&&(l=iu(u)):l=iu(e));const a=i?Ft(i):window,f=!wc()&&n;let p=(r.left+(f&&((o=a.visualViewport)==null?void 0:o.offsetLeft)||0))/l.x,h=(r.top+(f&&((s=a.visualViewport)==null?void 0:s.offsetTop)||0))/l.y,g=r.width/l.x,v=r.height/l.y;if(i){const w=Ft(i),y=u&&Fn(u)?Ft(u):u;let E=w.frameElement;for(;E&&u&&y!==w;){const D=iu(E),L=E.getBoundingClientRect(),T=getComputedStyle(E);L.x+=(E.clientLeft+parseFloat(T.paddingLeft))*D.x,L.y+=(E.clientTop+parseFloat(T.paddingTop))*D.y,p*=D.x,h*=D.y,g*=D.x,v*=D.y,p+=L.x,h+=L.y,E=Ft(E).frameElement}}return{width:g,height:v,top:h,right:p+g,bottom:h+v,left:p,x:p,y:h}}function Mn(e){return((kc(e)?e.ownerDocument:e.document)||window.document).documentElement}function ls(e){return Fn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ec(e){return Ku(Mn(e)).left+ls(e).scrollLeft}function Gu(e){if(Pn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qi(e)&&e.host||Mn(e);return Qi(t)?t.host:t}function Tc(e){const t=Gu(e);return qr(t)?t.ownerDocument.body:en(t)&&is(t)?t:Tc(t)}function No(e,t){var n;t===void 0&&(t=[]);const u=Tc(e),o=u===((n=e.ownerDocument)==null?void 0:n.body),s=Ft(u);return o?t.concat(s,s.visualViewport||[],is(u)?u:[]):t.concat(u,No(u))}function el(e,t,n){return t==="viewport"?Mu((function(u,o){const s=Ft(u),r=Mn(u),i=s.visualViewport;let l=r.clientWidth,a=r.clientHeight,f=0,p=0;if(i){l=i.width,a=i.height;const h=wc();(h||!h&&o==="fixed")&&(f=i.offsetLeft,p=i.offsetTop)}return{width:l,height:a,x:f,y:p}})(e,n)):Fn(t)?Mu((function(u,o){const s=Ku(u,!0,o==="fixed"),r=s.top+u.clientTop,i=s.left+u.clientLeft,l=en(u)?iu(u):{x:1,y:1};return{width:u.clientWidth*l.x,height:u.clientHeight*l.y,x:i*l.x,y:r*l.y}})(t,n)):Mu((function(u){const o=Mn(u),s=ls(u),r=u.ownerDocument.body,i=Iu(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),l=Iu(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-s.scrollLeft+Ec(u);const f=-s.scrollTop;return Qt(r).direction==="rtl"&&(a+=Iu(o.clientWidth,r.clientWidth)-i),{width:i,height:l,x:a,y:f}})(Mn(e)))}function tl(e){return en(e)&&Qt(e).position!=="fixed"?e.offsetParent:null}function nl(e){const t=Ft(e);let n=tl(e);for(;n&&Dp(n)&&Qt(n).position==="static";)n=tl(n);return n&&(Pn(n)==="html"||Pn(n)==="body"&&Qt(n).position==="static"&&!rr(n))?t:n||(function(u){let o=Gu(u);for(;en(o)&&!qr(o);){if(rr(o))return o;o=Gu(o)}return null})(e)||t}function Ap(e,t,n){const u=en(t),o=Mn(t),s=Ku(e,!0,n==="fixed",t);let r={scrollLeft:0,scrollTop:0};const i={x:0,y:0};if(u||!u&&n!=="fixed")if((Pn(t)!=="body"||is(o))&&(r=ls(t)),en(t)){const l=Ku(t,!0);i.x=l.x+t.clientLeft,i.y=l.y+t.clientTop}else o&&(i.x=Ec(o));return{x:s.left+r.scrollLeft-i.x,y:s.top+r.scrollTop-i.y,width:s.width,height:s.height}}const Fp={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:u,strategy:o}=e;const s=n==="clippingAncestors"?(function(a,f){const p=f.get(a);if(p)return p;let h=No(a).filter((y=>Fn(y)&&Pn(y)!=="body")),g=null;const v=Qt(a).position==="fixed";let w=v?Gu(a):a;for(;Fn(w)&&!qr(w);){const y=Qt(w),E=rr(w);(v?E||g:E||y.position!=="static"||!g||!["absolute","fixed"].includes(g.position))?g=y:h=h.filter((D=>D!==w)),w=Gu(w)}return f.set(a,h),h})(t,this._c):[].concat(n),r=[...s,u],i=r[0],l=r.reduce(((a,f)=>{const p=el(t,f,o);return a.top=Iu(p.top,a.top),a.right=Xi(p.right,a.right),a.bottom=Xi(p.bottom,a.bottom),a.left=Iu(p.left,a.left),a}),el(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:u}=e;const o=en(n),s=Mn(n);if(n===s)return t;let r={scrollLeft:0,scrollTop:0},i={x:1,y:1};const l={x:0,y:0};if((o||!o&&u!=="fixed")&&((Pn(n)!=="body"||is(s))&&(r=ls(n)),en(n))){const a=Ku(n);i=iu(n),l.x=a.x+n.clientLeft,l.y=a.y+n.clientTop}return{width:t.width*i.x,height:t.height*i.y,x:t.x*i.x-r.scrollLeft*i.x+l.x,y:t.y*i.y-r.scrollTop*i.y+l.y}},isElement:Fn,getDimensions:function(e){return en(e)?yc(e):e.getBoundingClientRect()},getOffsetParent:nl,getDocumentElement:Mn,getScale:iu,async getElementRects(e){let{reference:t,floating:n,strategy:u}=e;const o=this.getOffsetParent||nl,s=this.getDimensions;return{reference:Ap(t,await o(n),u),floating:{x:0,y:0,...await s(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Qt(e).direction==="rtl"},Mp=(e,t,n)=>{const u=new Map,o={platform:Fp,...n},s={...o.platform,_c:u};return _p(e,t,{...o,platform:s})};function Sc(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Sc(e[n],t[n]):e[n]=t[n])}const Bt={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function Zu(e,t){let n=Bt.themes[e]||{},u;do u=n[t],typeof u>"u"?n.$extend?n=Bt.themes[n.$extend]||{}:(n=null,u=Bt[t]):n=null;while(n);return u}function Ip(e){const t=[e];let n=Bt.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Bt.themes[n.$extend]||{}):n=null;while(n);return t.map(u=>`v-popper--theme-${u}`)}function ul(e){const t=[e];let n=Bt.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Bt.themes[n.$extend]||{}):n=null;while(n);return t}let cu=!1;if(typeof window<"u"){cu=!1;try{const e=Object.defineProperty({},"passive",{get(){cu=!0}});window.addEventListener("test",null,e)}catch{}}let Dc=!1;typeof window<"u"&&typeof navigator<"u"&&(Dc=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Ac=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),ol={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},sl={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function rl(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Ds(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Ot=[];let Vn=null;const il={};function ll(e){let t=il[e];return t||(t=il[e]=[]),t}let ir=function(){};typeof window<"u"&&(ir=window.Element);function Oe(e){return function(t){return Zu(t.theme,e)}}const As="__floating-vue__popper",Fc=()=>et({name:"VPopper",provide(){return{[As]:{parentPopper:this}}},inject:{[As]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Oe("disabled")},positioningDisabled:{type:Boolean,default:Oe("positioningDisabled")},placement:{type:String,default:Oe("placement"),validator:e=>Ac.includes(e)},delay:{type:[String,Number,Object],default:Oe("delay")},distance:{type:[Number,String],default:Oe("distance")},skidding:{type:[Number,String],default:Oe("skidding")},triggers:{type:Array,default:Oe("triggers")},showTriggers:{type:[Array,Function],default:Oe("showTriggers")},hideTriggers:{type:[Array,Function],default:Oe("hideTriggers")},popperTriggers:{type:Array,default:Oe("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Oe("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Oe("popperHideTriggers")},container:{type:[String,Object,ir,Boolean],default:Oe("container")},boundary:{type:[String,ir],default:Oe("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Oe("strategy")},autoHide:{type:[Boolean,Function],default:Oe("autoHide")},handleResize:{type:Boolean,default:Oe("handleResize")},instantMove:{type:Boolean,default:Oe("instantMove")},eagerMount:{type:Boolean,default:Oe("eagerMount")},popperClass:{type:[String,Array,Object],default:Oe("popperClass")},computeTransformOrigin:{type:Boolean,default:Oe("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Oe("autoMinSize")},autoSize:{type:[Boolean,String],default:Oe("autoSize")},autoMaxSize:{type:Boolean,default:Oe("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Oe("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Oe("preventOverflow")},overflowPadding:{type:[Number,String],default:Oe("overflowPadding")},arrowPadding:{type:[Number,String],default:Oe("arrowPadding")},arrowOverflow:{type:Boolean,default:Oe("arrowOverflow")},flip:{type:Boolean,default:Oe("flip")},shift:{type:Boolean,default:Oe("shift")},shiftCrossAxis:{type:Boolean,default:Oe("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Oe("noAutoFocus")},disposeTimeout:{type:Number,default:Oe("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[As])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var u,o;(u=this.parentPopper)!=null&&u.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((o=this.parentPopper)==null?void 0:o.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Ep({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(kp({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Tp({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(wp({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(yp({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:u,rects:o,middlewareData:s})=>{let r;const{centerOffset:i}=s.arrow;return u.startsWith("top")||u.startsWith("bottom")?r=Math.abs(i)>o.reference.width/2:r=Math.abs(i)>o.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){const u=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:o,placement:s,middlewareData:r})=>{var i;if((i=r.autoSize)!=null&&i.skip)return{};let l,a;return s.startsWith("top")||s.startsWith("bottom")?l=o.reference.width:a=o.reference.height,this.$_innerNode.style[u==="min"?"minWidth":u==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[u==="min"?"minHeight":u==="max"?"maxHeight":"height"]=a!=null?`${a}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Sp({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:u,availableHeight:o})=>{this.$_innerNode.style.maxWidth=u!=null?`${u}px`:null,this.$_innerNode.style.maxHeight=o!=null?`${o}px`:null}})));const n=await Mp(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Vn&&this.instantMove&&Vn.instantMove&&Vn!==this.parentPopper){Vn.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Vn=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Ds(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...No(this.$_referenceNode),...No(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),u=n.parentNode.getBoundingClientRect(),o=t.x+t.width/2-(u.left+n.offsetLeft),s=t.y+t.height/2-(u.top+n.offsetTop);this.result.transformOrigin=`${o}px ${s}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<Ot.length;n++)t=Ot[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Ot.push(this),document.body.classList.add("v-popper--some-open");for(const t of ul(this.theme))ll(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Ds(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,rl(Ot,this),Ot.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of ul(this.theme)){const u=ll(n);rl(u,this),u.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Vn===this&&(Vn=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Ds(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,ol,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],ol,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,sl,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],sl,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(u=>u.addEventListener(t,n,cu?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,u,o){let s=n;u!=null&&(s=typeof u=="function"?u(s):u),s.forEach(r=>{const i=t[r];i&&this.$_registerEventListeners(e,i,o)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:u,eventType:o,handler:s}=n;!e||e===o?u.forEach(r=>r.removeEventListener(o,s)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const u=n.getAttribute(e);u&&(n.removeAttribute(e),n.setAttribute(t,u))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const u=e[n];u==null?t.removeAttribute(n):t.setAttribute(n,u)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Pu>=e.left&&Pu<=e.right&&Lu>=e.top&&Lu<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Pu-wn,u=Lu-Cn,o=t.left+t.width/2-wn+(t.top+t.height/2)-Cn+t.width+t.height,s=wn+n*o,r=Cn+u*o;return vo(wn,Cn,s,r,t.left,t.top,t.left,t.bottom)||vo(wn,Cn,s,r,t.left,t.top,t.right,t.top)||vo(wn,Cn,s,r,t.right,t.top,t.right,t.bottom)||vo(wn,Cn,s,r,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Dc){const e=cu?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>al(t,!0),e),document.addEventListener("touchend",t=>cl(t,!0),e)}else window.addEventListener("mousedown",e=>al(e,!1),!0),window.addEventListener("click",e=>cl(e,!1),!0);window.addEventListener("resize",Lp)}function al(e,t){if(Bt.autoHideOnMousedown)Mc(e,t);else for(let n=0;n<Ot.length;n++){const u=Ot[n];try{u.mouseDownContains=u.popperNode().contains(e.target)}catch{}}}function cl(e,t){Bt.autoHideOnMousedown||Mc(e,t)}function Mc(e,t){const n={};for(let u=Ot.length-1;u>=0;u--){const o=Ot[u];try{const s=o.containsGlobalTarget=o.mouseDownContains||o.popperNode().contains(e.target);o.pendingHide=!1,requestAnimationFrame(()=>{if(o.pendingHide=!1,!n[o.randomId]&&fl(o,s,e)){if(o.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&s){let i=o.parentPopper;for(;i;)n[i.randomId]=!0,i=i.parentPopper;return}let r=o.parentPopper;for(;r&&fl(r,r.containsGlobalTarget,e);)r.$_handleGlobalClose(e,t),r=r.parentPopper}})}catch{}}}function fl(e,t,n){return n.closeAllPopover||n.closePopover&&t||Pp(e,n)&&!t}function Pp(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function Lp(){for(let e=0;e<Ot.length;e++)Ot[e].$_computePosition()}let wn=0,Cn=0,Pu=0,Lu=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{wn=Pu,Cn=Lu,Pu=e.clientX,Lu=e.clientY},cu?{passive:!0}:void 0);function vo(e,t,n,u,o,s,r,i){const l=((r-o)*(t-s)-(i-s)*(e-o))/((i-s)*(n-e)-(r-o)*(u-t)),a=((n-e)*(t-s)-(u-t)*(e-o))/((i-s)*(n-e)-(r-o)*(u-t));return l>=0&&l<=1&&a>=0&&a<=1}const Rp={extends:Fc()},as=(e,t)=>{const n=e.__vccOpts||e;for(const[u,o]of t)n[u]=o;return n};function Op(e,t,n,u,o,s){return x(),k("div",{ref:"reference",class:ie(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Hu(e.$slots,"default",S0(uc(e.slotData)))],2)}const zp=as(Rp,[["render",Op]]);function Np(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var u=e.indexOf("rv:");return parseInt(e.substring(u+3,e.indexOf(".",u)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let Eo;function lr(){lr.init||(lr.init=!0,Eo=Np()!==-1)}var cs={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){lr(),Je(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Eo&&this.$el.appendChild(e),e.data="about:blank",Eo||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Eo&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Bp=mf();pf("data-v-b329ee4c");const Hp={class:"resize-observer",tabindex:"-1"};hf();const jp=Bp((e,t,n,u,o,s)=>(x(),_t("div",Hp)));cs.render=jp;cs.__scopeId="data-v-b329ee4c";cs.__file="src/components/ResizeObserver.vue";const Ic=(e="theme")=>({computed:{themeClass(){return Ip(this[e])}}}),qp=et({name:"VPopperContent",components:{ResizeObserver:cs},mixins:[Ic()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),Vp=["id","aria-hidden","tabindex","data-popper-placement"],Up={ref:"inner",class:"v-popper__inner"},Wp=c("div",{class:"v-popper__arrow-outer"},null,-1),Kp=c("div",{class:"v-popper__arrow-inner"},null,-1),Gp=[Wp,Kp];function Zp(e,t,n,u,o,s){const r=Bu("ResizeObserver");return x(),k("div",{id:e.popperId,ref:"popover",class:ie(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Se(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=fc(i=>e.autoHide&&e.$emit("hide"),["esc"]))},[c("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=i=>e.autoHide&&e.$emit("hide"))}),c("div",{class:"v-popper__wrapper",style:Se(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[c("div",Up,[e.mounted?(x(),k(pe,{key:0},[c("div",null,[Hu(e.$slots,"default")]),e.handleResize?(x(),_t(r,{key:0,onNotify:t[1]||(t[1]=i=>e.$emit("resize",i))})):se("",!0)],64)):se("",!0)],512),c("div",{ref:"arrow",class:"v-popper__arrow-container",style:Se(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Gp,4)],4)],46,Vp)}const Pc=as(qp,[["render",Zp]]),Lc={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let ar=function(){};typeof window<"u"&&(ar=window.Element);const Jp=et({name:"VPopperWrapper",components:{Popper:zp,PopperContent:Pc},mixins:[Lc,Ic("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,ar,Boolean],default:void 0},boundary:{type:[String,ar],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function Yp(e,t,n,u,o,s){const r=Bu("PopperContent"),i=Bu("Popper");return x(),_t(i,Nr({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:ot(({popperId:l,isShown:a,shouldMountContent:f,skipTransition:p,autoHide:h,show:g,hide:v,handleResize:w,onResize:y,classes:E,result:D})=>[Hu(e.$slots,"default",{shown:a,show:g,hide:v}),Ie(r,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:a,mounted:f,"skip-transition":p,"auto-hide":h,"handle-resize":w,classes:E,result:D,onHide:v,onResize:y},{default:ot(()=>[Hu(e.$slots,"popper",{shown:a,hide:v})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Vr=as(Jp,[["render",Yp]]),Xp={...Vr,name:"VDropdown",vPopperTheme:"dropdown"},Qp={...Vr,name:"VMenu",vPopperTheme:"menu"},eh={...Vr,name:"VTooltip",vPopperTheme:"tooltip"},th=et({name:"VTooltipDirective",components:{Popper:Fc(),PopperContent:Pc},mixins:[Lc],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Zu(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Zu(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(u=>this.onResult(t,u)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),nh=["innerHTML"],uh=["textContent"];function oh(e,t,n,u,o,s){const r=Bu("PopperContent"),i=Bu("Popper");return x(),_t(i,Nr({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:ot(({popperId:l,isShown:a,shouldMountContent:f,skipTransition:p,autoHide:h,hide:g,handleResize:v,onResize:w,classes:y,result:E})=>[Ie(r,{ref:"popperContent",class:ie({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:a,mounted:f,"skip-transition":p,"auto-hide":h,"handle-resize":v,classes:y,result:E,onHide:g,onResize:w},{default:ot(()=>[e.html?(x(),k("div",{key:0,innerHTML:e.finalContent},null,8,nh)):(x(),k("div",{key:1,textContent:A(e.finalContent)},null,8,uh))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const sh=as(th,[["render",oh]]),Rc="v-popper--has-tooltip";function rh(e,t){let n=e.placement;if(!n&&t)for(const u of Ac)t[u]&&(n=u);return n||(n=Zu(e.theme||"tooltip","placement")),n}function Oc(e,t,n){let u;const o=typeof t;return o==="string"?u={content:t}:t&&o==="object"?u=t:u={content:!1},u.placement=rh(u,n),u.targetNodes=()=>[e],u.referenceNode=()=>e,u}let Fs,Ju,ih=0;function lh(){if(Fs)return;Ju=he([]),Fs=dc({name:"VTooltipDirectiveApp",setup(){return{directives:Ju}},render(){return this.directives.map(t=>Br(sh,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Fs.mount(e)}function ah(e,t,n){lh();const u=he(Oc(e,t,n)),o=he(!1),s={id:ih++,options:u,shown:o};return Ju.value.push(s),e.classList&&e.classList.add(Rc),e.$_popper={options:u,item:s,show(){o.value=!0},hide(){o.value=!1}}}function zc(e){if(e.$_popper){const t=Ju.value.indexOf(e.$_popper.item);t!==-1&&Ju.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Rc)}function dl(e,{value:t,modifiers:n}){const u=Oc(e,t,n);if(!u.content||Zu(u.theme||"tooltip","disabled"))zc(e);else{let o;e.$_popper?(o=e.$_popper,o.options.value=u):o=ah(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?o.show():o.hide())}}const ch={beforeMount:dl,updated:dl,beforeUnmount(e){zc(e)}};function pl(e){e.addEventListener("mousedown",Bo),e.addEventListener("click",Bo),e.addEventListener("touchstart",Nc,cu?{passive:!0}:!1)}function hl(e){e.removeEventListener("mousedown",Bo),e.removeEventListener("click",Bo),e.removeEventListener("touchstart",Nc),e.removeEventListener("touchend",Bc),e.removeEventListener("touchcancel",Hc)}function Bo(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Nc(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",Bc),t.addEventListener("touchcancel",Hc)}}function Bc(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],u=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-u.screenY)<20&&Math.abs(n.screenX-u.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Hc(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const fh={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&pl(e)},updated(e,{value:t,oldValue:n,modifiers:u}){e.$_closePopoverModifiers=u,t!==n&&(typeof t>"u"||t?pl(e):hl(e))},beforeUnmount(e){hl(e)}};function dh(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Sc(Bt,t),e.directive("tooltip",ch),e.directive("close-popper",fh),e.component("VTooltip",eh),e.component("VDropdown",Xp),e.component("VMenu",Qp))}const ph={version:"5.2.2",install:dh,options:Bt},nn="";async function hh(){const e=await fetch(`${nn}/api/requests?summary=true`);if(!e.ok)throw new Error(`GET /api/requests?summary=true failed: ${e.status}`);return e.json()}async function mh(e){const t=await fetch(`${nn}/api/conversations/${encodeURIComponent(e)}`);if(!t.ok)throw new Error(`GET /api/conversations/${e} failed: ${t.status}`);return t.json()}async function gh(e){const t=await fetch(`${nn}/api/entries/${e}/detail`);if(t.status===404)return null;if(!t.ok)throw new Error(`GET /api/entries/${e}/detail failed: ${t.status}`);return(await t.json()).contextInfo??null}async function vh(e){const t=await fetch(`${nn}/api/conversations/${encodeURIComponent(e)}`,{method:"DELETE"});if(!t.ok)throw new Error(`DELETE conversation failed: ${t.status}`)}async function bh(){const e=await fetch(`${nn}/api/reset`,{method:"POST"});if(!e.ok)throw new Error(`POST /api/reset failed: ${e.status}`)}function _h(e,t,n){const u=new URLSearchParams;t&&u.set("conversation",t);const o=u.toString();return`${nn}/api/export/${e}${o?`?${o}`:""}`}async function yh(){const e=await fetch(`${nn}/api/tags`);if(!e.ok)throw new Error(`GET /api/tags failed: ${e.status}`);return e.json()}async function xh(e,t){const n=await fetch(`${nn}/api/sessions/${encodeURIComponent(e)}/tags`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:t})});if(!n.ok)throw new Error(`PATCH tags failed: ${n.status}`);return(await n.json()).tags}async function kh(e,t){const n=await fetch(`${nn}/api/sessions/${encodeURIComponent(e)}/tags`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tag:t})});if(!n.ok)throw new Error(`POST tag failed: ${n.status}`);return(await n.json()).tags}async function wh(e,t){const n=await fetch(`${nn}/api/sessions/${encodeURIComponent(e)}/tags/${encodeURIComponent(t)}`,{method:"DELETE"});if(!n.ok)throw new Error(`DELETE tag failed: ${n.status}`);return(await n.json()).tags}const nt={system_prompt:{label:"System prompt",color:"#2563eb"},tool_definitions:{label:"Tool definitions",color:"#db2777"},tool_results:{label:"Tool results",color:"#059669"},tool_calls:{label:"Tool calls",color:"#ec4899"},assistant_text:{label:"Assistant text",color:"#d97706"},user_text:{label:"User text",color:"#10b981"},thinking:{label:"Thinking",color:"#8b5cf6"},system_injections:{label:"System injections",color:"#6366f1"},images:{label:"Images",color:"#4b5563"},cache_markers:{label:"Cache markers",color:"#6b7280"},other:{label:"Other",color:"#4b5563"}};function Ch(e){var t;return((t=nt[e])==null?void 0:t.label)??e}function $h(e,t="#475569"){var n;return((n=nt[e])==null?void 0:n.color)??t}const fu={system:["system_prompt","system_injections"],tools:["tool_definitions","tool_calls"],results:["tool_results"],conversation:["assistant_text","user_text","thinking"],other:["images","cache_markers","other"]},Ct={system:{label:"System",color:"#2563eb"},tools:{label:"Tools",color:"#db2777"},results:{label:"Results",color:"#059669"},conversation:{label:"Conversation",color:"#d97706"},other:{label:"Other",color:"#4b5563"}};function At(e){const t=e.role||"user",n=e.content||"",u=e.contentBlocks;if(u&&Array.isArray(u)){const o=u.some(i=>i.type==="tool_use"),s=u.some(i=>i.type==="tool_result"),r=u.some(i=>i.type==="thinking");if(s)return"tool_results";if(o)return"tool_calls";if(r)return"thinking"}return typeof n=="string"&&n.includes("<system-reminder>")?"system_injections":t==="assistant"?"assistant_text":t==="user"?"user_text":"other"}function fs(e){const t={};for(const n of e)if(n.contentBlocks)for(const u of n.contentBlocks)u.type==="tool_use"&&u.id&&u.name&&(t[u.id]=u.name);return t}function Ms(e,t={}){const n=e.contentBlocks;if(n&&Array.isArray(n))for(const u of n){if(u.type==="tool_use")return(u.name||"tool")+"("+(u.input?JSON.stringify(u.input).slice(0,60):"")+")";if(u.type==="tool_result"){const s=u.tool_use_id?t[u.tool_use_id]:null,r=typeof u.content=="string"?u.content:JSON.stringify(u.content||""),i=s?s+": ":"";return i+r.slice(0,80-i.length)}const o=u;if(o.type==="thinking")return(o.thinking||o.text||"").slice(0,80);if(u.type==="text"||u.type==="input_text")return(u.text||"").slice(0,80)}return(e.content||"").slice(0,80)}function Eh(e){return e.contentBlocks&&e.contentBlocks.length>0?e.contentBlocks.map(t=>{if(t.type==="tool_use")return t.name+"("+JSON.stringify(t.input,null,2)+")";if(t.type==="tool_result")return typeof t.content=="string"?t.content:JSON.stringify(t.content,null,2);const n=t;return n.type==="thinking"?n.thinking||n.text||"":t.type==="text"||t.type==="input_text"?t.text||"":JSON.stringify(t,null,2)}).join(`
|
|
23
|
+
|
|
24
|
+
`):e.content||""}function Is(e){const t={role:e.role};if(e.contentBlocks&&e.contentBlocks.length>0)t.content=e.contentBlocks;else try{t.content=JSON.parse(e.content)}catch{t.content=e.content}return t._tokens=e.tokens,t}const Th=["tool_results","system_injections","tool_calls","thinking","assistant_text","user_text"];function jc(e){const t=new Map;for(let u=e.length-1;u>=0;u--){const o=e[u],s=At(o);t.has(s)||t.set(s,{items:[],tokens:0});const r=t.get(s);r.items.push({msg:o,origIdx:u}),r.tokens+=o.tokens||0}const n=[...Th];for(const u of t.keys())n.includes(u)||n.push(u);return n.filter(u=>t.has(u)).map(u=>({category:u,...t.get(u)}))}function hn(e){if(e.length===0)return[];const t=new Map;for(const o of e){const s=o.agentKey||"_default";t.set(s,(t.get(s)||0)+1)}let n="_default",u=0;for(const[o,s]of t)s>u&&(n=o,u=s);return e.map(o=>({entry:o,isMain:(o.agentKey||"_default")===n}))}const ml="context-lens-density",St=ip("session",()=>{const e=he(0),t=he([]),n=he(new Map),u=he(0),o=he(!1),s=he(null),r=he(null),i=he(!1),l=he([]),a=he(""),f=he(!1),p=he("dashboard"),h=he("overview"),g=he(null),v=he("live"),w=he(null),y=he(""),E=he(""),D=he("comfortable"),L=he(null),T=he(0),R=he(null),F=he(null),ue=he(!1),X=he(null),U=he(new Set),Z=he(!1),ge=he("main"),H=he("main"),le=he("absolute"),ne=he(new Set),S=he(!0),te=he(!1),ae=he(new Set),V=new Map;function ce(N){const be=new Set(ae.value);be.add(N),ae.value=be;const Ee=V.get(N);Ee&&clearTimeout(Ee),V.set(N,setTimeout(()=>{V.delete(N);const Le=new Set(ae.value);Le.delete(N),ae.value=Le},1500))}const ye=new Map,B=he(null),ee=he(0),J=O(()=>t.value.map(N=>{const be=n.value.get(N.id);return be||{...N,agents:[],entries:[]}})),de=O(()=>[]),_e=O(()=>{let N=J.value;return y.value&&(N=N.filter(be=>be.source===y.value)),E.value&&(N=N.filter(be=>{const Ee=n.value.get(be.id);if(Ee&&Ee.entries.length>0)return Ee.entries[0].contextInfo.model.includes(E.value);const Le=t.value.find(ft=>ft.id===be.id);return Le==null?void 0:Le.latestModel.includes(E.value)})),N}),C=O(()=>{let N=t.value;if(y.value&&(N=N.filter(be=>be.source===y.value)),a.value){const be=a.value.toLowerCase();N=N.filter(Ee=>{var Le;return(Le=Ee.tags)==null?void 0:Le.includes(be)})}return N}),I=O(()=>{const N=new Set;for(const be of t.value)be.source&&N.add(be.source);return Array.from(N).sort()}),K=O(()=>{const N=new Set;for(const be of t.value)be.latestModel&&N.add(be.latestModel);return Array.from(N).sort()}),j=O(()=>g.value?n.value.get(g.value)??null:null),$=O(()=>{const N=j.value;if(!N||N.entries.length===0)return null;if(v.value==="live"){const Le=[...hn([...N.entries].reverse())].reverse().find(ft=>ft.isMain);return(Le==null?void 0:Le.entry)??N.entries[0]}return N.entries.find(Ee=>Ee.id===w.value)??N.entries[0]}),P=O(()=>{let N=0;for(const be of t.value)N+=be.totalCost??0;return N}),b=O(()=>{let N=0;for(const be of t.value)N+=be.entryCount;return N+u.value});async function d(){o.value=!0,r.value=null;try{const N=await hh();e.value=N.revision,t.value=N.conversations,u.value=N.ungroupedCount;const be=new Set(N.conversations.map(Ee=>Ee.id));for(const Ee of n.value.keys())be.has(Ee)||n.value.delete(Ee);!g.value&&N.conversations.length>0&&p.value==="inspector"&&await M(N.conversations[0].id),g.value&&!be.has(g.value)&&(g.value=null,v.value="live",w.value=null,p.value==="inspector"&&(p.value="dashboard")),g.value&&be.has(g.value)&&await m(g.value)}catch(N){r.value=N instanceof Error?N.message:String(N)}finally{o.value=!1}}async function m(N){s.value=N;try{const be=await mh(N),Ee=new Map(n.value);Ee.set(N,be),n.value=Ee}catch(be){console.warn(`Failed to load conversation ${N}:`,be)}finally{s.value=null}}function _(N){if(N.type==="connected"){i.value=!0,N.revision!==e.value&&d();return}N.conversationId&&ce(N.conversationId),d(),N.type==="tags-updated"&&Ae(),N.conversationId&&g.value===N.conversationId&&m(N.conversationId)}async function M(N){g.value=N,v.value="live",w.value=null,n.value.has(N)||await m(N)}function z(){v.value="live",w.value=null}function oe(N){v.value="pinned",w.value=N}function G(N){p.value=N}function fe(N){h.value=N}function Q(N){y.value=N}function Ce(N){E.value=N}function ve(N,be=!1){L.value=N,R.value=null,F.value=null,X.value=null,ue.value=be,T.value+=1}function xe(N,be){L.value=N,R.value=be,F.value=null,X.value=null,T.value+=1}function Fe(N){L.value=null,R.value=null,F.value=N,X.value=null,T.value+=1}function Pe(N){L.value="tool_results",R.value=null,F.value=null,X.value=N,T.value+=1}function qe(N){const be=new Set(U.value);be.has(N)?be.delete(N):be.add(N),U.value=be}async function ze(N){const be=N??U.value;if(be.size<2)return;U.value=new Set(be),Z.value=!0,p.value="compare";const Ee=[];for(const Le of be)n.value.has(Le)||Ee.push(m(Le));await Promise.all(Ee)}function ut(N="dashboard"){Z.value=!1,U.value=new Set,p.value=N}function tt(){L.value=null,R.value=null,F.value=null,ue.value=!1,X.value=null}async function yt(N){if(ye.has(N))return ye.get(N);B.value=N;try{const be=await gh(N);if(be&&(ye.set(N,be),ee.value++,ye.size>50)){const Ee=ye.keys().next().value;Ee!==void 0&&ye.delete(Ee)}return be}catch{return null}finally{B.value=null}}function xt(N){return ye.get(N)??null}async function W(N){try{await vh(N),t.value=t.value.filter(be=>be.id!==N),n.value.delete(N),g.value===N&&(t.value.length>0?await M(t.value[0].id):(g.value=null,v.value="live",w.value=null))}catch(be){r.value=be instanceof Error?be.message:String(be)}}async function q(){try{await bh(),t.value=[],n.value=new Map,u.value=0,g.value=null,v.value="live",w.value=null,e.value=0}catch(N){r.value=N instanceof Error?N.message:String(N)}}function me(N){typeof document>"u"||document.documentElement.setAttribute("data-density",N)}function re(){if(typeof window>"u")return;const N=window.localStorage.getItem(ml);N==="comfortable"||N==="compact"?D.value=N:D.value="comfortable",me(D.value)}function $e(N){D.value=N,typeof window<"u"&&window.localStorage.setItem(ml,N),me(N)}async function Ae(){f.value=!0;try{const N=await yh();l.value=N.tags}catch(N){console.warn("Failed to load tags:",N)}finally{f.value=!1}}function Re(N){a.value=N}function ct(){a.value=""}async function Lt(N,be){try{const Ee=await xh(N,be),Le=t.value.find(Yn=>Yn.id===N);Le&&(Le.tags=Ee);const ft=n.value.get(N);ft&&(ft.tags=Ee),await Ae()}catch(Ee){r.value=Ee instanceof Error?Ee.message:String(Ee)}}async function Nn(N,be){try{const Ee=await kh(N,be),Le=t.value.find(Yn=>Yn.id===N);Le&&(Le.tags=Ee);const ft=n.value.get(N);ft&&(ft.tags=Ee),await Ae()}catch(Ee){r.value=Ee instanceof Error?Ee.message:String(Ee)}}async function Ne(N,be){try{const Ee=await wh(N,be),Le=t.value.find(Yn=>Yn.id===N);Le&&(Le.tags=Ee);const ft=n.value.get(N);ft&&(ft.tags=Ee),await Ae()}catch(Ee){r.value=Ee instanceof Error?Ee.message:String(Ee)}}function Xe(N){return`tag-color-${N%8}`}return{revision:e,summaries:t,loadedConversations:n,conversations:J,ungrouped:de,loading:o,loadingSession:s,error:r,connected:i,view:p,inspectorTab:h,selectedSessionId:g,selectionMode:v,selectedEntryId:w,sourceFilter:y,modelFilter:E,density:D,messageFocusCategory:L,messageFocusToken:T,messageFocusTool:R,messageFocusIndex:F,messageFocusOpenDetail:ue,messageFocusFile:X,messagesMode:ge,timelineMode:H,timelineStackMode:le,timelineHiddenLegendKeys:ne,timelineShowLimitOverlay:S,timelineShowCacheOverlay:te,recentlyUpdated:ae,compareSessionIds:U,compareMode:Z,allTags:l,tagFilter:a,loadingTags:f,filteredConversations:_e,filteredSummaries:C,sources:I,models:K,selectedSession:j,selectedEntry:$,totalCost:P,totalRequests:b,load:d,loadConversationEntries:m,handleSSEEvent:_,selectSession:M,followLive:z,pinEntry:oe,setView:G,setInspectorTab:fe,setSourceFilter:Q,setModelFilter:Ce,focusMessageCategory:ve,focusMessageTool:xe,focusMessageByIndex:Fe,focusMessageFile:Pe,clearMessageFocus:tt,toggleCompareSession:qe,enterCompare:ze,exitCompare:ut,loadEntryDetail:yt,getEntryDetail:xt,entryDetailLoading:B,entryDetailVersion:ee,initializeDensity:re,setDensity:$e,deleteSession:W,reset:q,loadTags:Ae,setTagFilter:Re,clearTagFilter:ct,updateSessionTags:Lt,addTagToSession:Nn,removeTagFromSession:Ne,getTagColorClass:Xe}});function Sh(e,t){const n=he(!1);let u=null,o=null;function s(){u&&u.close(),u=new EventSource(e),u.onopen=()=>{n.value=!0},u.onmessage=i=>{try{const l=JSON.parse(i.data);t(l)}catch{}},u.onerror=()=>{n.value=!1,u==null||u.close(),u=null,o&&clearTimeout(o),o=setTimeout(s,2e3)}}function r(){o&&(clearTimeout(o),o=null),u&&(u.close(),u=null),n.value=!1}return s(),so(r),{connected:n,disconnect:r,reconnect:s}}function we(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function kt(e){return e==null?"--":"$"+e.toFixed(2)}function cr(e){return e>=1e3?(e/1e3).toFixed(1)+"s":Math.round(e)+"ms"}function fr(e,t=!1){return(t?e:e*100).toFixed(1)+"%"}function bn(e){if(!e)return"?";const t=e.match(/(opus|sonnet|haiku)-(\d+(?:\.\d+)?)/);if(t)return t[1]+"-"+t[2];const n=e.match(/(gpt-4o(?:-mini)?|gpt-4|gpt-3\.5)/);if(n)return n[1];const u=e.match(/(o[134](?:-mini)?)/);if(u)return u[1];const o=e.match(/(gemini-[\d.]+-(?:pro|flash)(?:-\w+)?)/);if(o)return o[1];const s=e.split(/[-_]/);return s.length>2?s.slice(0,3).join("-"):e}function Yu(e){const t=(e||"").toLowerCase();return t.includes("claude")?"badge-claude":t.includes("codex")?"badge-codex":t.includes("cline")?"badge-cline":t.includes("gemini")||t==="gm"?"badge-gemini":t.includes("aider")?"badge-aider":t.includes("opencode")||t==="oc"?"badge-opencode":t.includes("kimi")?"badge-kimi":t==="pi"||t.startsWith("pi-")?"badge-pi":t.includes("bryti")?"badge-bryti":"badge-unknown"}function dr(e){switch(e){case"good":return"#10b981";case"needs-work":return"#f59e0b";case"poor":return"#ef4444";default:return"#64748b"}}const Dh={class:"tag-editor"},Ah={class:"tag-list"},Fh=["onClick"],Mh={key:1,class:"input-wrap"},Ih={key:0,class:"suggestions"},Ph=["onMousedown"],Lh=et({__name:"TagEditor",props:{conversationId:{},tags:{}},setup(e){const t=e,n=St(),u=he(!1),o=he(""),s=he(),r=he(-1),i=O(()=>n.allTags.map(T=>T.name)),l=O(()=>{const T=new Set(t.tags);return i.value.filter(R=>!T.has(R))}),a=O(()=>{const T=o.value.trim().toLowerCase();return T?l.value.filter(R=>R.includes(T)).slice(0,5):l.value.slice(0,5)}),f=O(()=>o.value.trim().toLowerCase()),p=O(()=>!(!f.value||t.tags.includes(f.value)||a.value.includes(f.value))),h=O(()=>u.value&&(a.value.length>0||p.value));Ge(u,T=>{T?(n.loadTags(),Je(()=>{var R;return(R=s.value)==null?void 0:R.focus()})):(o.value="",r.value=-1)});const g=O(()=>a.value.length+(p.value?1:0));function v(){u.value=!0}function w(){u.value=!1}async function y(T){const R=T.trim().toLowerCase();if(R){if(t.tags.includes(R)){o.value="";return}await n.addTagToSession(t.conversationId,R),o.value="",r.value=-1}}async function E(T){await n.removeTagFromSession(t.conversationId,T)}function D(T){T.key==="Enter"?(T.preventDefault(),r.value>=0&&r.value<a.value.length?y(a.value[r.value]):o.value.trim()&&y(o.value)):T.key==="Escape"?w():T.key==="ArrowDown"?(T.preventDefault(),r.value=Math.min(r.value+1,g.value-1)):T.key==="ArrowUp"?(T.preventDefault(),r.value=Math.max(r.value-1,-1)):T.key==="Backspace"&&!o.value&&t.tags.length>0&&E(t.tags[t.tags.length-1])}function L(){setTimeout(()=>{o.value.trim()||w()},150)}return(T,R)=>(x(),k("div",Dh,[c("div",Ah,[(x(!0),k(pe,null,Te(e.tags,(F,ue)=>(x(),k("span",{key:F,class:ie(["tag-pill",`tag-color-${ue%8}`])},[ke(A(F)+" ",1),c("button",{class:"tag-remove",title:"Remove tag",onClick:Mt(X=>E(F),["stop"])},[...R[2]||(R[2]=[c("i",{class:"i-carbon-close"},null,-1)])],8,Fh)],2))),128)),u.value?(x(),k("div",Mh,[He(c("input",{ref_key:"inputRef",ref:s,"onUpdate:modelValue":R[0]||(R[0]=F=>o.value=F),type:"text",class:"tag-input",placeholder:"tag...",onKeydown:D,onBlur:L},null,544),[[Kd,o.value]]),h.value?(x(),k("div",Ih,[(x(!0),k(pe,null,Te(a.value,(F,ue)=>(x(),k("div",{key:F,class:ie(["suggestion",{selected:ue===r.value}]),onMousedown:Mt(X=>y(F),["prevent"])},A(F),43,Ph))),128)),p.value?(x(),k("div",{key:0,class:ie(["suggestion new-tag",{selected:r.value===a.value.length}]),onMousedown:R[1]||(R[1]=Mt(F=>y(o.value),["prevent"]))},' Create "'+A(f.value)+'" ',35)):se("",!0)])):se("",!0)])):(x(),k("button",{key:0,class:"add-btn",title:"Add tag",onClick:v},[...R[3]||(R[3]=[c("i",{class:"i-carbon-add"},null,-1)])]))])]))}}),rt=(e,t)=>{const n=e.__vccOpts||e;for(const[u,o]of t)n[u]=o;return n},Rh=rt(Lh,[["__scopeId","data-v-09e55ec4"]]),Oh={class:"toolbar"},zh={key:0,class:"session-ctx"},Nh={class:"session-model"},Bh=["title"],Hh=["title","aria-label"],jh={key:0,class:"session-id-toast"},qh={key:2,class:"toolbar-sep"},Vh={class:"session-stat"},Uh={class:"session-stat cost"},Wh={key:3,class:"session-stat"},Kh=["title"],Gh={key:0,class:"toolbar-tag-overflow"},Zh={key:0,class:"tag-popover"},Jh={class:"compare-label"},Yh={class:"toolbar-right"},Xh={class:"toolbar-stat"},Qh={class:"toolbar-stat"},e1={class:"toolbar-stat cost"},t1={key:1,class:"toolbar-dropdown"},n1={key:2,class:"toolbar-dropdown"},u1=["disabled"],o1=et({__name:"AppToolbar",setup(e){const t=he(!1),n=he();function u(){t.value=!t.value,t.value&&r.loadTags()}function o(){t.value=!1}function s(ne){t.value&&n.value&&!n.value.contains(ne.target)&&o()}On(()=>document.addEventListener("click",s,!0)),so(()=>document.removeEventListener("click",s,!0)),Ge(()=>r.selectedSessionId,()=>{t.value=!1});const r=St(),i=he(!1),l=he(!1),a=he(!1),f=O(()=>r.view==="inspector"&&!!r.selectedSession),p=O(()=>r.selectedSession),h=O(()=>r.totalRequests>0),g=O(()=>f.value&&!!r.selectedSessionId),v=O(()=>{const ne=r.selectedSessionId;return ne?r.summaries.find(S=>S.id===ne)??null:null});function w(ne){if(!ne)return"";let S=ne;/^\/home\/[^/]+(\/|$)/.test(S)?S=S.replace(/^\/home\/[^/]+/,"~"):/^\/Users\/[^/]+(\/|$)/.test(S)&&(S=S.replace(/^\/Users\/[^/]+/,"~"));const te=S.split("/");return te.length>3?te.slice(-3).join("/"):S}const y=O(()=>r.selectedSessionId??"");function E(ne){return String(ne).trim().replace(/[^a-zA-Z0-9._-]+/g,"_").replace(/^_+|_+$/g,"").slice(0,80)||"unknown"}function D(ne,S){const te=ne==="lhar"?"lhar":"lhar.json";return`context-lens-export-${`session-${E(S||"all")}`}-privacy-standard.${te}`}async function L(ne,S){const te=await fetch(ne);if(!te.ok)throw new Error(`Download failed: ${te.status}`);const ae=await te.blob(),V=URL.createObjectURL(ae);try{const ce=document.createElement("a");ce.href=V,ce.download=S,ce.style.display="none",document.body.appendChild(ce),ce.click(),document.body.removeChild(ce)}finally{URL.revokeObjectURL(V)}}async function T(ne,S){const te=S==="session"?r.selectedSessionId??void 0:void 0,ae=_h(ne,te),V=D(ne,te);try{await L(ae,V)}catch{window.open(ae,"_blank")}i.value=!1}function R(){i.value=!i.value,i.value&&(l.value=!1)}function F(){l.value=!l.value,l.value&&(i.value=!1)}function ue(){confirm("Clear all captured data?")&&r.reset(),l.value=!1}function X(){const ne=r.selectedSessionId;!ne||!g.value||(confirm("Remove this session?")&&r.deleteSession(ne),l.value=!1)}function U(){r.setView("dashboard")}async function Z(){const ne=y.value;if(ne){try{await navigator.clipboard.writeText(ne),a.value=!0}catch{}setTimeout(()=>{a.value=!1},1400)}}function ge(ne){return ne.length<=18?ne:`${ne.slice(0,8)}…${ne.slice(-8)}`}function H(ne){return a.value?`Copied: ${ne}`:`Session ID: ${ne} (click to copy)`}function le(ne){(ne.key==="Enter"||ne.key===" ")&&(ne.preventDefault(),Z())}return(ne,S)=>(x(),k("header",Oh,[c("a",{class:"toolbar-brand toolbar-brand-btn",href:"#sessions",onClick:Mt(U,["prevent"])},[...S[8]||(S[8]=[oc('<svg class="logo-mark" width="18" height="18" viewBox="0 0 18 18" aria-hidden="true" data-v-86c030f0><circle cx="9" cy="9" r="7.5" fill="none" stroke="var(--accent-blue)" stroke-width="1" opacity="0.35" data-v-86c030f0></circle><circle cx="9" cy="9" r="4" fill="none" stroke="var(--accent-blue)" stroke-width="1" opacity="0.6" data-v-86c030f0></circle><circle cx="9" cy="9" r="1.5" fill="var(--accent-blue)" data-v-86c030f0></circle></svg><span class="brand-text" data-v-86c030f0>Context Lens</span>',2)])]),Ie(Zt,{name:"session-ctx"},{default:ot(()=>{var te,ae,V,ce;return[f.value&&p.value?(x(),k("div",zh,[S[11]||(S[11]=c("span",{class:"toolbar-sep"},null,-1)),c("span",{class:ie(["session-badge",Y(Yu)(p.value.source)])},A(p.value.source||"?"),3),c("span",Nh,A(Y(bn)(((te=v.value)==null?void 0:te.latestModel)??"")),1),p.value.workingDirectory?(x(),k("span",{key:0,class:"session-dir",title:p.value.workingDirectory},A(w(p.value.workingDirectory)),9,Bh)):se("",!0),S[12]||(S[12]=c("span",{class:"toolbar-sep"},null,-1)),y.value?(x(),k("span",{key:1,class:ie(["session-id",{copied:a.value}]),title:H(y.value),role:"button",tabindex:"0","aria-label":H(y.value),onClick:Z,onKeydown:le},[ke(" SID "+A(ge(y.value))+" ",1),a.value?(x(),k("span",jh,"Copied")):se("",!0)],42,Hh)):se("",!0),y.value?(x(),k("span",qh)):se("",!0),c("span",Vh,A(((ae=v.value)==null?void 0:ae.entryCount)??p.value.entries.length)+" turns",1),c("span",Uh,A(Y(kt)(((V=v.value)==null?void 0:V.totalCost)??0)),1),(ce=v.value)!=null&&ce.healthScore?(x(),k("span",Wh,[S[9]||(S[9]=ke(" Latest health ",-1)),c("span",{class:ie(["session-health",{good:v.value.healthScore.rating==="good",warn:v.value.healthScore.rating==="needs-work",bad:v.value.healthScore.rating==="poor"}])},A(v.value.healthScore.overall),3)])):se("",!0),S[13]||(S[13]=c("span",{class:"toolbar-sep"},null,-1)),y.value?(x(),k("div",{key:4,ref_key:"toolbarTagsEl",ref:n,class:"toolbar-tags",onClick:S[0]||(S[0]=Mt(()=>{},["stop"]))},[c("button",{class:ie(["tags-toggle",{active:t.value,tagged:(p.value.tags??[]).length>0}]),title:t.value?"Close tag editor":"Edit tags",onClick:u},[S[10]||(S[10]=c("i",{class:"i-carbon-tag"},null,-1)),(p.value.tags??[]).length===0?(x(),k(pe,{key:0},[ke(" Tags ")],64)):(x(),k(pe,{key:1},[(x(!0),k(pe,null,Te((p.value.tags??[]).slice(0,2),(ye,B)=>(x(),k("span",{key:ye,class:ie(["toolbar-tag-pill",`tag-color-${B%8}`])},A(ye),3))),128)),(p.value.tags??[]).length>2?(x(),k("span",Gh," +"+A((p.value.tags??[]).length-2),1)):se("",!0)],64))],10,Kh),Ie(Zt,{name:"tag-popover"},{default:ot(()=>[t.value?(x(),k("div",Zh,[Ie(Rh,{"conversation-id":y.value,tags:p.value.tags??[]},null,8,["conversation-id","tags"])])):se("",!0)]),_:1})],512)):se("",!0)])):se("",!0)]}),_:1}),Y(r).compareMode?(x(),k(pe,{key:0},[S[16]||(S[16]=c("span",{class:"toolbar-sep"},null,-1)),c("span",Jh,[S[14]||(S[14]=c("i",{class:"i-carbon-compare"},null,-1)),ke(" Comparing "+A(Y(r).compareSessionIds.size)+" sessions ",1)]),c("button",{class:"compare-exit-btn",onClick:S[1]||(S[1]=te=>Y(r).exitCompare())},[...S[15]||(S[15]=[c("i",{class:"i-carbon-close"},null,-1),ke(" Exit ",-1)])])],64)):se("",!0),c("div",Yh,[c("span",{class:ie(["connection",{live:Y(r).connected}])},[S[17]||(S[17]=c("span",{class:"connection-dot"},null,-1)),ke(" "+A(Y(r).connected?"Live":"Offline"),1)],2),f.value?se("",!0):(x(),k(pe,{key:0},[c("span",Xh,A(Y(r).conversations.length)+" session"+A(Y(r).conversations.length!==1?"s":""),1),c("span",Qh,A(Y(r).totalRequests)+" req"+A(Y(r).totalRequests!==1?"s":""),1),c("span",e1,A(Y(kt)(Y(r).totalCost)),1)],64)),h.value?(x(),k("div",t1,[c("button",{class:"toolbar-control",onClick:R},[...S[18]||(S[18]=[c("i",{class:"i-carbon-download"},null,-1),ke(" Export ",-1)])]),Ie(Zt,{name:"dropdown"},{default:ot(()=>[i.value?(x(),k("div",{key:0,class:"dropdown-menu",onMouseleave:S[6]||(S[6]=te=>i.value=!1)},[c("button",{class:"dropdown-item",onClick:S[2]||(S[2]=te=>T("lhar.json","all"))},[...S[19]||(S[19]=[c("i",{class:"i-carbon-document"},null,-1),ke(" All (.lhar.json)",-1)])]),c("button",{class:"dropdown-item",onClick:S[3]||(S[3]=te=>T("lhar","all"))},[...S[20]||(S[20]=[c("i",{class:"i-carbon-document"},null,-1),ke(" All (.lhar)",-1)])]),Y(r).selectedSessionId?(x(),k(pe,{key:0},[S[23]||(S[23]=c("div",{class:"dropdown-sep"},null,-1)),c("button",{class:"dropdown-item",onClick:S[4]||(S[4]=te=>T("lhar.json","session"))},[...S[21]||(S[21]=[c("i",{class:"i-carbon-document"},null,-1),ke(" Session (.lhar.json)",-1)])]),c("button",{class:"dropdown-item",onClick:S[5]||(S[5]=te=>T("lhar","session"))},[...S[22]||(S[22]=[c("i",{class:"i-carbon-document"},null,-1),ke(" Session (.lhar)",-1)])])],64)):se("",!0)],32)):se("",!0)]),_:1})])):se("",!0),h.value?(x(),k("div",n1,[c("button",{class:"toolbar-control",onClick:F},[...S[24]||(S[24]=[c("i",{class:"i-carbon-overflow-menu-horizontal"},null,-1),ke(" Menu ",-1)])]),Ie(Zt,{name:"dropdown"},{default:ot(()=>[l.value?(x(),k("div",{key:0,class:"dropdown-menu",onMouseleave:S[7]||(S[7]=te=>l.value=!1)},[c("button",{class:"dropdown-item dropdown-item--danger",onClick:ue},[...S[25]||(S[25]=[c("i",{class:"i-carbon-trash-can"},null,-1),ke(" Reset all ",-1)])]),c("button",{class:ie(["dropdown-item dropdown-item--danger",{"dropdown-item--disabled":!g.value}]),disabled:!g.value,onClick:X},[...S[26]||(S[26]=[c("i",{class:"i-carbon-subtract-alt"},null,-1),ke(" Remove this session ",-1)])],10,u1)],32)):se("",!0)]),_:1})])):se("",!0)])]))}}),s1=rt(o1,[["__scopeId","data-v-86c030f0"]]),r1=["value","placeholder"],i1=et({__name:"SearchInput",props:{modelValue:{},placeholder:{default:"Search…"},autoFocus:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,u=t,o=he(!1),s=he();function r(){var l;u("update:modelValue",""),(l=s.value)==null||l.focus()}function i(){var l;n.modelValue?u("update:modelValue",""):(l=s.value)==null||l.blur()}return _f(()=>{var l;n.autoFocus&&((l=s.value)==null||l.focus())}),(l,a)=>(x(),k("div",{class:ie(["search-input-root",{focused:o.value,active:e.modelValue.length>0}]),onClick:a[3]||(a[3]=f=>{var p;return(p=s.value)==null?void 0:p.focus()})},[a[5]||(a[5]=c("i",{class:"i-carbon-search search-input-icon"},null,-1)),c("input",{ref_key:"inputRef",ref:s,value:e.modelValue,type:"text",class:"search-input-field",placeholder:e.placeholder,onInput:a[0]||(a[0]=f=>u("update:modelValue",f.target.value)),onFocus:a[1]||(a[1]=f=>o.value=!0),onBlur:a[2]||(a[2]=f=>o.value=!1),onKeydown:fc(i,["escape"])},null,40,r1),e.modelValue.length>0?(x(),k("button",{key:0,class:"search-input-clear",tabindex:"-1",title:"Clear",onClick:Mt(r,["stop"])},[...a[4]||(a[4]=[c("i",{class:"i-carbon-close"},null,-1)])])):se("",!0),a[6]||(a[6]=c("div",{class:"search-input-accent"},null,-1))],2))}}),l1=rt(i1,[["__scopeId","data-v-70f5ee93"]]),a1={class:"tag-filter"},c1={key:0,class:"dropdown-loading"},f1=["onClick"],d1={class:"tag-name"},p1={class:"tag-count"},h1={key:2,class:"dropdown-empty"},m1=et({__name:"TagFilter",setup(e){const t=St(),n=he(!1),u=O(()=>t.allTags.length>0),o=O(()=>t.tagFilter),s=O(()=>o.value?`Tag: ${o.value}`:"Tag");function r(a){t.setTagFilter(a),n.value=!1}function i(){t.clearTagFilter(),n.value=!1}function l(){n.value=!n.value,n.value&&t.loadTags()}return(a,f)=>(x(),k("div",a1,[c("button",{class:ie(["filter-btn",{active:o.value}]),onClick:l},[ke(A(s.value)+" ",1),c("i",{class:ie(["i-carbon-chevron-down dropdown-icon",{open:n.value}])},null,2)],2),Ie(Zt,{name:"dropdown"},{default:ot(()=>[n.value?(x(),k("div",{key:0,class:"dropdown-menu",onMouseleave:f[0]||(f[0]=p=>n.value=!1)},[Y(t).loadingTags?(x(),k("div",c1," Loading... ")):u.value?(x(),k(pe,{key:1},[c("button",{class:ie(["dropdown-item",{active:!o.value}]),onClick:i},[...f[1]||(f[1]=[c("span",{class:"all-label"},"All sessions",-1)])],2),f[2]||(f[2]=c("div",{class:"dropdown-sep"},null,-1)),(x(!0),k(pe,null,Te(Y(t).allTags,(p,h)=>(x(),k("button",{key:p.name,class:ie(["dropdown-item",{active:o.value===p.name}]),onClick:g=>r(p.name)},[c("span",{class:ie(["tag-dot",Y(t).getTagColorClass(h)])},null,2),c("span",d1,A(p.name),1),c("span",p1,A(p.count),1)],10,f1))),128))],64)):(x(),k("div",h1," No tags yet "))],32)):se("",!0)]),_:1})]))}}),g1=rt(m1,[["__scopeId","data-v-8f64535a"]]);function _u(e){return e<=0?0:e>=1?1:e}function v1(e,t){const n=e.healthScore,u=n?_u((100-n.overall)/100):null,o=e.contextLimit?_u(e.latestTotalTokens/e.contextLimit):0,s=u===null?o:_u(u*.7+o*.3),r=t>0?_u(e.totalCost/t):0,i=_u(s*.7+r*.3);let l="Healthy",a="priority-healthy",f="prio-healthy";i>=.7?(l="Critical",a="priority-critical",f="prio-critical"):i>=.45&&(l="Warning",a="priority-warning",f="prio-warning");const p=`Priority ${Math.round(i*100)} = 0.7×risk(${Math.round(s*100)}) + 0.3×cost(${Math.round(r*100)}).`;return{risk:s,normalizedCost:r,score:i,label:l,toneClass:a,barClass:f,tooltip:p}}function qc(e,t,n){var g,v;const u=[],o=e.contextInfo,s=e.composition||[],r=s.reduce((w,y)=>w+y.tokens,0),i=fs(o.messages||[]),l=s.find(w=>w.category==="tool_results");if(l&&r>0&&l.pct>25){let w=0,y="";for(const E of o.messages||[])if(At(E)==="tool_results"&&E.tokens>w&&(w=E.tokens,E.contentBlocks)){for(const D of E.contentBlocks)if(D.type==="tool_result"&&D.tool_use_id&&i[D.tool_use_id]){y=i[D.tool_use_id];break}}if(w>2e3){const E=Math.round(w/r*100);u.push({severity:"high",title:`Large tool result${y?": "+y:""} (${we(w)} tokens, ${E}% of context)`,detail:"This single result reduces space for conversation history and is re-sent every turn. You may want to truncate output or use summary flags.",impact:`${we(w)} tok`})}}const a=s.find(w=>w.category==="tool_definitions");if(a&&a.pct>30){const w=new Set;for(const L of t)for(const T of L.contextInfo.messages||[])if(T.contentBlocks)for(const R of T.contentBlocks)R.type==="tool_use"&&R.name&&w.add(R.name);const y=[];if(o.tools)for(const L of o.tools){const T="name"in L?L.name:(g=L.function)==null?void 0:g.name;T&&y.push(T)}const E=y.filter(L=>!w.has(L)),D=y.length;if(D>w.size+3){const L=E.slice(0,5).join(", ")+(E.length>5?` +${E.length-5} more`:""),T=Math.round(a.tokens*E.length/D);u.push({severity:"high",title:`${w.size}/${D} tools used, ${E.length} idle`,detail:`Unused: ${L}. Definitions cost ~${we(T)} tokens and are re-sent every turn. You may want to remove unused tools to free context.`,impact:`~${we(T)} tok`})}}if(l&&l.pct>60){const w=s.find(L=>L.category==="user_text"),y=w?w.pct:0,E=new Map;for(const L of o.messages||[])if(At(L)==="tool_results"&&L.contentBlocks){for(const T of L.contentBlocks)if(T.type==="tool_result"&&T.tool_use_id){const R=i[T.tool_use_id]||"unknown";E.set(R,(E.get(R)||0)+(L.tokens||0))}}const D=Array.from(E.entries()).sort((L,T)=>T[1]-L[1]).slice(0,3).map(([L,T])=>`${L} (${we(T)})`).join(", ");u.push({severity:"med",title:`Tool results dominate: ${l.pct}% of context`,detail:`Top tools: ${D}. User text is only ${y}%. Large results crowd out conversation history.`,impact:"Structural"})}const f=e.contextLimit>0?Math.round(o.totalTokens/e.contextLimit*100):0;f>80?u.push({severity:"high",title:`Context utilization critical: ${f}%`,detail:`${we(o.totalTokens)} of ${we(e.contextLimit)} tokens. Overflow risk is elevated, and older messages may be dropped or summarized.`,impact:"Critical"}):f>60&&u.push({severity:"med",title:`Context utilization high: ${f}%`,detail:`${we(o.totalTokens)} of ${we(e.contextLimit)} tokens used.`,impact:"Monitor"});const p=t.indexOf(e);if(p>0){let w=-1;for(let y=p-1;y>=0;y--)if((v=n[y])!=null&&v.isMain){w=y;break}if(w>=0){const y=t[w].contextInfo.totalTokens;o.totalTokens<y*.7&&u.push({severity:"med",title:"Compaction detected",detail:`Tokens dropped ${we(y)} → ${we(o.totalTokens)}. Context was summarized or truncated — older details may be lost.`,impact:`-${we(y-o.totalTokens)} tok`})}}const h=s.find(w=>w.category==="system_injections");h&&h.pct>5&&u.push({severity:"med",title:`System injections: ${h.pct}% of context`,detail:`${we(h.tokens)} tokens of system-reminder blocks injected into messages. These are re-sent every turn, reducing space for actual conversation.`,impact:`${we(h.tokens)} tok`});for(const w of e.securityAlerts||[]){const y=w.severity==="high"?"high":w.severity==="medium"?"med":"low",E=w.toolName?`tool result: ${w.toolName}`:`${w.role} message`;u.push({severity:y,title:`⚠ ${w.pattern.replace(/_/g," ")} in ${E} (msg ${w.messageIndex+1})`,detail:w.match,impact:w.severity,messageIndex:w.messageIndex,highlight:w.match})}for(const w of e.outputSecurityAlerts||[]){const y=w.severity==="high"?"high":w.severity==="medium"?"med":"low";u.push({severity:y,title:`⚠ ${w.pattern.replace(/_/g," ")} in response`,detail:w.match,impact:w.severity})}return u}const b1={class:"kpi-row"},_1={class:"kpi-card"},y1={class:"kpi-value"},x1={class:"kpi-card"},k1={class:"kpi-value accent-blue"},w1={class:"kpi-card"},C1={class:"kpi-value"},$1={class:"kpi-card"},E1={class:"kpi-value accent-green"},T1={class:"kpi-card"},S1={class:"kpi-value accent-amber"},D1={class:"kpi-scope"},A1={class:"section-head"},F1={class:"section-count"},M1={class:"filter-group"},I1={key:0,class:"filter-dropdown"},P1=["onClick"],L1={class:"sort-group"},R1={class:"table-wrap"},O1={class:"ledger"},z1={key:0,class:"col-select"},N1=["onClick"],B1={key:0,class:"col-select"},H1={class:"col-priority"},j1={class:"col-source"},q1={key:0,class:"row-tags"},V1=["title"],U1={key:0,class:"row-tag-more"},W1={class:"col-model"},K1={class:"model-text"},G1={class:"col-dir"},Z1=["title"],J1={class:"col-turns"},Y1={class:"num"},X1={class:"col-context"},Q1={class:"col-cost"},em={class:"num green"},tm={class:"col-health"},nm={class:"health-cell"},um={key:0,class:"health-tooltip"},om={class:"health-tooltip-title"},sm={class:"health-audit-name"},rm={class:"col-spark"},im=["innerHTML"],lm={class:"col-time"},am=["title"],cm={class:"col-arrow"},fm=["href","onClick"],dm=["colspan"],pm={class:"expand-content"},hm={class:"expand-inner"},mm={key:0,class:"expand-loading"},gm={key:0,class:"expand-section"},vm={class:"expand-section-label"},bm={class:"comp-tape"},_m=["title"],ym={key:0,class:"comp-seg-label"},xm={class:"expand-section"},km={class:"finding-text"},wm={key:1,class:"finding"},Cm={key:0,class:"compare-bar"},$m={class:"compare-bar-text"},Em={key:0,class:"dashboard-empty"},Tm={key:1,class:"dashboard-empty"},Sm=et({__name:"DashboardView",setup(e){const t=St(),n=he("recent"),u=he(new Set),o=he(!1),s=he(""),r=he(!1);Ge(()=>t.compareSessionIds.size,d=>{d===0&&r.value&&(r.value=!1)});function i(){r.value=!r.value,r.value||(t.compareSessionIds=new Set)}function l(d){return t.compareSessionIds.has(d)}function a(d){r.value?t.toggleCompareSession(d):I(d)}const f=O(()=>t.compareSessionIds.size),p=he(null),h=O(()=>{const d=new Set;for(const m of t.summaries)m.source&&d.add(m.source);return Array.from(d).sort()});function g(d){return p.value?p.value.has(d):!0}function v(d){if(!p.value){const _=new Set(h.value);_.delete(d),_.size>0&&(p.value=_);return}const m=new Set(p.value);if(m.has(d)){if(m.delete(d),m.size===0)return}else m.add(d);m.size===h.value.length?p.value=null:p.value=m}const w=O(()=>p.value!==null),y=O(()=>p.value?`Source (${p.value.size})`:"Source"),E=O(()=>{let d=t.summaries;p.value&&(d=d.filter(_=>p.value.has(_.source)));const m=s.value.trim().toLowerCase();if(m&&(d=d.filter(_=>[_.id,_.source,_.label,_.workingDirectory??"",_.latestModel].join("\0").toLowerCase().includes(m))),t.tagFilter){const _=t.tagFilter.toLowerCase();d=d.filter(M=>{var z;return(z=M.tags)==null?void 0:z.includes(_)})}return d}),D=O(()=>{let d=0;for(const m of E.value)d=Math.max(d,m.totalCost);return d}),L=O(()=>{const d=new Map;for(const m of E.value)d.set(m.id,v1(m,D.value));return d}),T=O(()=>{const d=[...E.value];return n.value==="priority"?d.sort((m,_)=>{var oe,G;const M=((oe=L.value.get(m.id))==null?void 0:oe.score)??0;return(((G=L.value.get(_.id))==null?void 0:G.score)??0)-M}):n.value==="cost"&&d.sort((m,_)=>_.totalCost-m.totalCost),d}),R=he("today"),F=O(()=>{if(R.value==="all")return E.value;const d=new Date;d.setHours(0,0,0,0);const m=d.getTime();return E.value.filter(_=>new Date(_.latestTimestamp).getTime()>=m)}),ue=O(()=>F.value.length),X=O(()=>F.value.reduce((d,m)=>d+m.entryCount,0)),U=O(()=>F.value.reduce((d,m)=>d+m.latestTotalTokens,0)),Z=O(()=>F.value.reduce((d,m)=>d+m.totalCost,0)),ge=O(()=>{const d=F.value.filter(_=>{var M;return((M=_.healthScore)==null?void 0:M.overall)!=null});if(d.length===0)return 0;const m=d.reduce((_,M)=>{var z;return _+(((z=M.healthScore)==null?void 0:z.overall)??0)},0);return Math.round(m/d.length)});function H(d){return L.value.get(d)??{score:0,label:"Healthy",toneClass:"priority-healthy",barClass:"prio-healthy",risk:0,normalizedCost:0,tooltip:""}}function le(d){return d.contextLimit?d.latestTotalTokens/d.contextLimit:0}function ne(d){return d>=.8?"util-high":d>=.6?"util-mid":"util-low"}function S(d){var _;const m=(_=d.healthScore)==null?void 0:_.rating;return m==="poor"?"health-bad":m==="needs-work"?"health-warn":"health-good"}function te(d){return d>=90?"health-good":d>=50?"health-warn":"health-bad"}function ae(d){const m=Date.now()-new Date(d).getTime();return m<6e4?"just now":m<36e5?`${Math.floor(m/6e4)}m ago`:m<864e5?`${Math.floor(m/36e5)}h ago`:`${Math.floor(m/864e5)}d ago`}function V(d){const m=new Date(d),_=m.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}),M=m.toLocaleDateString("en-CA");return`${_} on ${M}`}function ce(d){if(!d)return"";let m=d;/^\/home\/[^/]+(\/|$)/.test(m)?m=m.replace(/^\/home\/[^/]+/,"~"):/^\/Users\/[^/]+(\/|$)/.test(m)&&(m=m.replace(/^\/Users\/[^/]+/,"~"));const _=m.split("/");return _.length>2?_.slice(-2).join("/"):m}function ye(d){return d==="prio-critical"?"#ef4444":d==="prio-warning"?"#f59e0b":"#0ea5e9"}function B(d,m){if(d.length===0)return"";const _=72,M=22,z=Math.max(...d);if(z===0)return"";const oe=d.map((Q,Ce)=>{const ve=d.length<=1?_/2:Ce/(d.length-1)*_,xe=M-Q/z*(M-4)-2;return`${ve.toFixed(1)},${xe.toFixed(1)}`}),G=oe.join(" ")+` ${_},${M} 0,${M}`,fe="sg"+m.replace("#","");return`<svg viewBox="0 0 ${_} ${M}" preserveAspectRatio="none" style="display:block;width:100%;height:100%"><defs><linearGradient id="${fe}" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="${m}" stop-opacity="0.15"/><stop offset="100%" stop-color="${m}" stop-opacity="0.02"/></linearGradient></defs><polygon points="${G}" fill="url(#${fe})"/><polyline points="${oe.join(" ")}" fill="none" stroke="${m}" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/><circle cx="${oe[oe.length-1].split(",")[0]}" cy="${oe[oe.length-1].split(",")[1]}" r="2" fill="${m}"/></svg>`}function ee(d){const m=d.tokenHistory;if(!m||m.length<2)return"";const _=H(d.id);return B(m,ye(_.barClass))}const J=[{key:"system_prompt",label:"System",color:"var(--cat-system, #3b82f6)"},{key:"tool_definitions",label:"Tool defs",color:"var(--cat-tools, #ec4899)"},{key:"tool_results",label:"Tool results",color:"var(--cat-tool-results, #10b981)"},{key:"assistant_text",label:"Assistant",color:"var(--cat-assistant, #f59e0b)"},{key:"user_text",label:"User",color:"var(--cat-user, #06b6d4)"},{key:"thinking",label:"Thinking",color:"var(--cat-thinking, #8b5cf6)"},{key:"system_injections",label:"Injections",color:"var(--cat-injections, #6366f1)"}];function de(d){const m=t.loadedConversations.get(d.id);return!m||m.entries.length===0?[]:m.entries[0].composition||[]}function _e(d){const m=t.loadedConversations.get(d.id);if(!m||m.entries.length===0)return[];const _=m.entries[0],M=[...m.entries].reverse(),z=hn(M);return qc(_,M,z)}function C(d){return u.value.has(d)}async function I(d){const m=new Set(u.value);m.has(d)?m.delete(d):(m.add(d),t.loadedConversations.has(d)||await t.loadConversationEntries(d)),u.value=m}function K(){u.value=new Set}function j(d){return`#session/${encodeURIComponent(d)}?tab=overview`}function $(d){t.setInspectorTab("overview"),t.selectSession(d),t.setView("inspector")}function P(){o.value=!1}function b(d){d.key==="Escape"&&K()}return(d,m)=>(x(),k("div",{class:"dashboard",onKeydown:b,tabindex:"-1",onClick:P},[c("div",b1,[c("div",_1,[c("div",y1,A(ue.value),1),m[9]||(m[9]=c("div",{class:"kpi-label"},"Sessions",-1))]),c("div",x1,[c("div",k1,A(X.value),1),m[10]||(m[10]=c("div",{class:"kpi-label"},"Requests",-1))]),c("div",w1,[c("div",C1,A(Y(we)(U.value)),1),m[11]||(m[11]=c("div",{class:"kpi-label"},"Tokens",-1))]),c("div",$1,[c("div",E1,A(Y(kt)(Z.value)),1),m[12]||(m[12]=c("div",{class:"kpi-label"},"Cost",-1))]),c("div",T1,[c("div",S1,A(ge.value),1),m[13]||(m[13]=c("div",{class:"kpi-label"},"Avg Health",-1))]),c("div",D1,[c("button",{class:ie({active:R.value==="today"}),onClick:m[0]||(m[0]=_=>R.value="today")},"Today",2),c("button",{class:ie({active:R.value==="all"}),onClick:m[1]||(m[1]=_=>R.value="all")},"All",2)])]),c("div",A1,[m[17]||(m[17]=c("span",{class:"section-title"},"Sessions",-1)),c("span",F1,A(E.value.length),1),Ie(l1,{modelValue:s.value,"onUpdate:modelValue":m[2]||(m[2]=_=>s.value=_),placeholder:"Filter by ID, directory, model…"},null,8,["modelValue"]),c("div",M1,[c("button",{class:ie(["compare-toggle",{active:r.value}]),onClick:i,title:"Select sessions to compare"},[...m[14]||(m[14]=[c("i",{class:"i-carbon-compare"},null,-1),ke(" Compare ",-1)])],2),h.value.length>1?(x(),k("div",I1,[c("button",{class:ie(["filter-btn",{"has-filter":w.value}]),onClick:m[3]||(m[3]=Mt(_=>o.value=!o.value,["stop"]))},[ke(A(y.value)+" ",1),m[15]||(m[15]=c("span",{class:"caret"},null,-1))],2),o.value?(x(),k("div",{key:0,class:"filter-menu",onClick:m[4]||(m[4]=Mt(()=>{},["stop"]))},[(x(!0),k(pe,null,Te(h.value,_=>(x(),k("div",{key:_,class:ie(["filter-option",{checked:g(_)}]),onClick:M=>v(_)},[m[16]||(m[16]=c("span",{class:"check"},[c("i",{class:"i-carbon-checkmark"})],-1)),c("span",{class:ie(["source-badge",Y(Yu)(_)])},A(_),3)],10,P1))),128))])):se("",!0)])):se("",!0),Ie(g1),c("div",L1,[c("button",{class:ie(["sort-btn",{active:n.value==="recent"}]),onClick:m[5]||(m[5]=_=>n.value="recent")},"Recent",2),c("button",{class:ie(["sort-btn",{active:n.value==="priority"}]),onClick:m[6]||(m[6]=_=>n.value="priority")},"Priority",2),c("button",{class:ie(["sort-btn",{active:n.value==="cost"}]),onClick:m[7]||(m[7]=_=>n.value="cost")},"Cost",2)])])]),c("div",R1,[c("table",O1,[c("thead",null,[c("tr",null,[r.value?(x(),k("th",z1)):se("",!0),m[18]||(m[18]=c("th",{class:"col-priority"},null,-1)),m[19]||(m[19]=c("th",{class:"col-source"},"Source",-1)),m[20]||(m[20]=c("th",{class:"col-model"},"Model",-1)),m[21]||(m[21]=c("th",{class:"col-dir"},"Directory",-1)),m[22]||(m[22]=c("th",{class:"col-turns"},"Turns",-1)),m[23]||(m[23]=c("th",{class:"col-context sorted"},"Context",-1)),m[24]||(m[24]=c("th",{class:"col-cost"},"Cost",-1)),m[25]||(m[25]=c("th",{class:"col-health"},"Health",-1)),m[26]||(m[26]=c("th",{class:"col-spark"},"Trend",-1)),m[27]||(m[27]=c("th",{class:"col-time"},"Time",-1)),m[28]||(m[28]=c("th",{class:"col-arrow"},null,-1))])]),c("tbody",null,[(x(!0),k(pe,null,Te(T.value,_=>{var M,z,oe;return x(),k(pe,{key:_.id},[c("tr",{class:ie(["main-row",{expanded:C(_.id),selected:C(_.id)||l(_.id),pulse:Y(t).recentlyUpdated.has(_.id)}]),onClick:G=>a(_.id)},[r.value?(x(),k("td",B1,[c("span",{class:ie(["compare-check",{checked:l(_.id)}])},[...m[29]||(m[29]=[c("i",{class:"i-carbon-checkmark"},null,-1)])],2)])):se("",!0),c("td",H1,[c("div",{class:ie(["priority-bar",H(_.id).barClass])},null,2)]),c("td",j1,[c("span",{class:ie(["source-badge",Y(Yu)(_.source)])},A(_.source||"?"),3),(M=_.tags)!=null&&M.length?(x(),k("span",q1,[(x(!0),k(pe,null,Te(_.tags.slice(0,2),(G,fe)=>(x(),k("span",{key:G,class:ie(["row-tag",Y(t).getTagColorClass(fe)]),title:G},A(G),11,V1))),128)),_.tags.length>2?(x(),k("span",U1,"+"+A(_.tags.length-2),1)):se("",!0)])):se("",!0)]),c("td",W1,[c("span",K1,A(Y(bn)(_.latestModel)),1)]),c("td",G1,[c("span",{class:"dir-text",title:_.workingDirectory??""},A(ce(_.workingDirectory)),9,Z1)]),c("td",J1,[c("span",Y1,A(_.entryCount),1)]),c("td",X1,[c("span",{class:ie(["util-chip",ne(le(_))])},A(Math.round(le(_)*100))+"% ",3)]),c("td",Q1,[c("span",em,A(Y(kt)(_.totalCost)),1)]),c("td",tm,[c("div",nm,[c("span",{class:ie(["health-num",S(_)])},A(((z=_.healthScore)==null?void 0:z.overall)??"—"),3),(oe=_.healthScore)!=null&&oe.audits?(x(),k("div",um,[c("div",om,"Health Score: "+A(_.healthScore.overall),1),(x(!0),k(pe,null,Te(_.healthScore.audits,G=>(x(),k("div",{key:G.id,class:"health-audit-line"},[c("span",sm,A(G.name),1),c("span",{class:ie(["health-audit-score",te(G.score)])},A(G.score),3)]))),128))])):se("",!0)])]),c("td",rm,[c("div",{class:"inline-spark",innerHTML:ee(_)},null,8,im)]),c("td",lm,[c("span",{class:"time-text",title:V(_.latestTimestamp)},A(ae(_.latestTimestamp)),9,am)]),c("td",cm,[c("a",{class:"inspect-btn",title:"Open in inspector",href:j(_.id),onClick:Mt(G=>$(_.id),["prevent","stop"])},[...m[30]||(m[30]=[c("i",{class:"i-carbon-arrow-right"},null,-1)])],8,fm)])],10,N1),c("tr",{class:ie(["expand-row",{open:C(_.id)}])},[c("td",{colspan:r.value?12:11},[c("div",pm,[c("div",hm,[Y(t).loadingSession===_.id?(x(),k("div",mm," Loading… ")):(x(),k(pe,{key:1},[de(_).length>0?(x(),k("div",gm,[c("div",vm," Composition · "+A(Y(we)(de(_).reduce((G,fe)=>G+fe.tokens,0)))+" tokens ",1),c("div",bm,[(x(),k(pe,null,Te(J,G=>{var fe,Q,Ce,ve;return He(c("div",{key:G.key,class:"comp-seg",style:Se({flex:((fe=de(_).find(xe=>xe.category===G.key))==null?void 0:fe.tokens)??0,background:G.color}),title:`${G.label}: ${((Q=de(_).find(xe=>xe.category===G.key))==null?void 0:Q.pct)??0}%`},[(((Ce=de(_).find(xe=>xe.category===G.key))==null?void 0:Ce.pct)??0)>=12?(x(),k("span",ym,A(G.label),1)):se("",!0)],12,_m),[[Md,(((ve=de(_).find(xe=>xe.category===G.key))==null?void 0:ve.tokens)??0)>0]])}),64))])])):se("",!0),c("div",xm,[m[32]||(m[32]=c("div",{class:"expand-section-label"},"Findings",-1)),c("div",{class:ie(["expand-findings",{"expand-findings--scroll":_e(_).length>5}])},[_e(_).length>0?(x(!0),k(pe,{key:0},Te(_e(_),(G,fe)=>(x(),k("div",{key:fe,class:"finding"},[c("i",{class:ie(["finding-icon",[`sev-${G.severity}`,G.severity==="high"?"i-carbon-warning-alt":G.severity==="med"?"i-carbon-information":"i-carbon-checkmark"]])},null,2),c("span",km,[ke(A(G.title)+" ",1),G.impact?(x(),k("span",{key:0,class:ie(["finding-impact",`sev-${G.severity}`])},A(G.impact),3)):se("",!0)])]))),128)):(x(),k("div",wm,[...m[31]||(m[31]=[c("i",{class:"finding-icon sev-low i-carbon-checkmark"},null,-1),c("span",{class:"finding-text muted"},"No issues detected.",-1)])]))],2)])],64))])])],8,dm)],2)],64)}),128))])])]),Ie(Zt,{name:"compare-bar"},{default:ot(()=>[r.value&&f.value>=2?(x(),k("div",Cm,[c("span",$m,A(f.value)+" sessions selected",1),c("button",{class:"compare-bar-btn",onClick:m[8]||(m[8]=_=>Y(t).enterCompare())},[...m[33]||(m[33]=[c("i",{class:"i-carbon-compare"},null,-1),ke(" Compare ",-1)])])])):se("",!0)]),_:1}),T.value.length===0&&(s.value||p.value)?(x(),k("div",Em,[...m[34]||(m[34]=[c("div",{class:"empty-title"},"No matching sessions",-1),c("div",{class:"empty-sub"},"Try adjusting your search or filters",-1)])])):Y(t).summaries.length===0?(x(),k("div",Tm,[...m[35]||(m[35]=[c("div",{class:"empty-title"},"No requests captured",-1),c("div",{class:"empty-sub"},[ke("Point API calls to "),c("code",null,"localhost:4040")],-1)])])):se("",!0)],32))}}),Dm=rt(Sm,[["__scopeId","data-v-a063358d"]]);function Ur(e){var s,r;const t=e.composition||[],n=t.reduce((i,l)=>i+l.tokens,0),u=new Map(t.map(i=>[i.category,i.tokens])),o=[];for(const[i,l]of Object.entries(fu)){let a=0;for(const f of l)a+=u.get(f)??0;a>0&&o.push({key:i,label:((s=Ct[i])==null?void 0:s.label)??i,color:((r=Ct[i])==null?void 0:r.color)??"#4b5563",tokens:a,pct:n>0?a/n*100:0})}return o.sort((i,l)=>l.tokens-i.tokens)}function Am(e,t){const n=Ur(e);if(t.size===0)return n;const u=n.filter(s=>!t.has(s.key)),o=u.reduce((s,r)=>s+r.tokens,0);return u.map(s=>({...s,pct:o>0?s.tokens/o*100:0}))}function Ps(e,t){return t.size===0?e.contextInfo.totalTokens:Ur(e).filter(u=>!t.has(u.key)).reduce((u,o)=>u+o.tokens,0)}function Fm(e,t){const n=t.findIndex(u=>u.entry.id===e);if(n<=0)return null;for(let u=n-1;u>=0;u--)if(t[u].isMain)return t[u].entry;return null}function Mm(e,t){const n=t.findIndex(s=>s.entry.id===e);if(n<0)return 0;let u=n;for(let s=n;s>=0;s--)if(t[s].isMain){u=s;break}let o=0;for(let s=u+1;s<t.length&&!t[s].isMain;s++)o++;return o}function Im(e,t){var o,s;const n=new Map,u=1800;for(const r of e){const i=[],l=Fm(r.entry.id,t);if(l&&r.isMain){const a=l.contextInfo.totalTokens,f=r.entry.contextInfo.totalTokens;a>0&&f<a*.75&&i.push({type:"compaction",label:"Compaction",detail:`${we(a)} → ${we(f)} total tokens`});const p=hr(l),h=hr(r.entry),g=p>0&&l.usage?l.usage.cacheReadTokens/p:null,v=h>0&&r.entry.usage?r.entry.usage.cacheReadTokens/h:null;if(g!==null&&v!==null){const E=v-g;if(Math.abs(E)>=.2){const D=Math.round(g*100),L=Math.round(v*100),T=E>0?"warmed up":"invalidated",R=E>0?"prompt prefix is now stable, fewer tokens re-processed":"prompt prefix changed, more tokens re-processed this turn (higher cost)";i.push({type:"cache-shift",label:E>0?"Cache warmed":"Cache invalidated",detail:`${D}% to ${L}% hit rate. Cache ${T}: ${R}.`})}}const w=((o=l.composition.find(E=>E.category==="tool_results"))==null?void 0:o.tokens)??0,y=((s=r.entry.composition.find(E=>E.category==="tool_results"))==null?void 0:s.tokens)??0;y-w>=u&&i.push({type:"tool-jump",label:"Tool jump",detail:`tool results +${we(y-w)}`})}if(r.isMain){const a=Mm(r.entry.id,t);a>=3&&i.push({type:"subagent-burst",label:"Subagent burst",detail:`${a} subagent calls in this turn`})}i.length>0&&n.set(r.entry.id,i)}return n}function Pm(e){return e.type==="compaction"?"C":e.type==="cache-shift"?e.label==="Cache warmed"?"▲":"▽":e.type==="subagent-burst"?"S":"T"}function Lm(e,t){if(e.length===1){const u=e[0];return`<span class="tip-label">Turn ${t}: ${u.label}</span><span class="tip-detail">${u.detail}</span>`}const n=e.map(u=>`<span class="tip-label">${u.label}</span><span class="tip-detail">${u.detail}</span>`).join("");return`<span class="tip-label">Turn ${t}</span>${n}`}function Vc(e,t){const n=t.findIndex(F=>F.entry.id===e.id);if(n<0)return null;const u=e.agentKey||"_default";let o=null;for(let F=n-1;F>=0;F--){const ue=t[F].entry;if((ue.agentKey||"_default")===u){o=ue;break}}if(!o)return null;const s=o.composition||[],r=e.composition||[],i=o.contextInfo.totalTokens,a=e.contextInfo.totalTokens-i,f=new Set;for(const F of s)f.add(F.category);for(const F of r)f.add(F.category);const p=[];for(const F of f){const ue=s.find(le=>le.category===F),X=r.find(le=>le.category===F),U=ue?ue.tokens:0,Z=X?X.tokens:0,ge=Z-U,H=nt[F]||{label:F};p.push({category:F,label:H.label,delta:ge,prevTokens:U,currTokens:Z})}const h=[];for(const F of[...p].sort((ue,X)=>Math.abs(X.delta)-Math.abs(ue.delta)))F.delta===0?h.push({type:"same",text:` ${F.label}: ${we(F.currTokens)} (unchanged)`,category:F.category,delta:F.delta}):F.prevTokens===0?h.push({type:"add",text:`+ ${F.label}: ${we(F.currTokens)} (new)`,category:F.category,delta:F.delta}):F.currTokens===0?h.push({type:"remove",text:`- ${F.label}: ${we(F.prevTokens)} (removed)`,category:F.category,delta:F.delta}):F.delta>0?h.push({type:"add",text:`+ ${F.label}: ${we(F.prevTokens)} → ${we(F.currTokens)} (+${we(F.delta)})`,category:F.category,delta:F.delta}):h.push({type:"remove",text:`- ${F.label}: ${we(F.prevTokens)} → ${we(F.currTokens)} (${we(F.delta)})`,category:F.category,delta:F.delta});const g=new Map;for(const[F,ue]of Object.entries(fu))for(const X of ue)g.set(X,F);const v=new Map,w=new Map;for(const F of p){const ue=g.get(F.category)??"other";v.set(ue,(v.get(ue)??0)+F.delta);const X=w.get(ue);(!X||Math.abs(F.delta)>X.absDelta)&&w.set(ue,{category:F.category,absDelta:Math.abs(F.delta)})}const y=Array.from(v.entries()).map(([F,ue])=>{var X,U;return{group:F,label:((X=Ct[F])==null?void 0:X.label)??F,delta:ue,category:((U=w.get(F))==null?void 0:U.category)??""}}).filter(F=>F.delta!==0).sort((F,ue)=>Math.abs(ue.delta)-Math.abs(F.delta)),E=y.filter(F=>F.delta>0).slice(0,3),D=y.filter(F=>F.delta<0).slice(0,3);let L=0,T=0,R=0;for(const F of t)(F.entry.agentKey||"_default")===u&&R++,F.entry.id===o.id&&(L=R),F.entry.id===e.id&&(T=R);return{prevTurnNum:L,currTurnNum:T,delta:a,lines:h,topIncreases:E,topDecreases:D}}function gl(e,t){const n=t?"0.85":"0.35";return/opus/i.test(e)?`rgba(251, 146, 60, ${n})`:/sonnet/i.test(e)?`rgba(96, 165, 250, ${n})`:/haiku/i.test(e)?`rgba(167, 139, 250, ${n})`:/gpt/i.test(e)?`rgba(16, 185, 129, ${n})`:`rgba(148, 163, 184, ${n})`}function Ls(e,t,n=3){return t===0?n:Math.max(n,Math.round(e/t*100))}function Rs(e,t=4){if(e===0)return[0];const n=e/t,u=Math.pow(10,Math.floor(Math.log10(n))),o=Math.ceil(n/u)*u,s=[];for(let r=0;r<=t;r++){const i=r*o;i<=e*1.1&&s.push(i)}return s}function Rm(e){return e>30?Math.ceil(e/15):1}function Om(e){let t=0;return e.map(n=>(n.isMain&&t++,n.isMain?t:0))}function zm(e,t){return`${t?"":"Sub "}${bn(e.contextInfo.model)}: ${we(e.contextInfo.totalTokens)} / ${kt(e.costUsd)}`}function Nm(e,t){const n=Ur(e),u=e.contextInfo.totalTokens,o=n.map(s=>`${s.key===t.key?"▸ ":" "}${s.label}: ${we(s.tokens)} (${s.pct.toFixed(1)}%)`);return o.push(` Total: ${we(u)}`),o.join(`
|
|
25
|
+
`)}function vl(e,t){return t==="cost"?kt(e):we(e)}function pr(e){if(!e.usage)return null;const t=hr(e);return t===0?null:e.usage.cacheReadTokens/t}function hr(e){return e.usage?e.usage.inputTokens+e.usage.cacheReadTokens+e.usage.cacheWriteTokens:0}function Bm(e){const t={turnsRemaining:null,growthPerTurn:0,sinceCompaction:0,contextLimit:0,currentTokens:0};if(e.length===0)return t;const n=e.filter(w=>w.isMain).map(w=>w.entry);if(n.length<2)return t;const o=n[n.length-1].contextLimit;if(o<=0)return t;let s=0;for(let w=1;w<n.length;w++){const y=n[w-1].contextInfo.totalTokens,E=n[w].contextInfo.totalTokens;y>0&&E<y*.75&&(s=w)}const r=n.slice(s);if(r.length<2)return t;const i=r[0].contextInfo.totalTokens,l=r[r.length-1].contextInfo.totalTokens,a=l-i,f=r.length-1,p=a/f,h=l,g=o-h;let v=null;return p>0&&(v=Math.floor(g/p),v<0&&(v=0)),{turnsRemaining:v,growthPerTurn:p,sinceCompaction:r.length,contextLimit:o,currentTokens:h}}function Hm(e){var l,a;const t=Math.round(e.utilization*100),n=e.healthScore,u=[...e.composition].sort((f,p)=>p.tokens-f.tokens)[0],o=e.topDelta;let s="narrative-neutral",r=`Context is at ${t}% utilization.`;(n==null?void 0:n.rating)==="poor"||t>=85?(s="narrative-advisory",r=`Turn health is elevated risk (${n?n.overall+"/100":t+"% utilization"}).`):(n==null?void 0:n.rating)==="needs-work"||t>=65?(s="narrative-advisory",r=`Turn health shows moderate pressure (${n?n.overall+"/100":t+"% utilization"}).`):n&&(r=`Turn health is stable at ${n.overall}/100.`);const i=[];if(u&&i.push(`${((l=nt[u.category])==null?void 0:l.label)??u.category} is the largest share (${Math.round(u.pct)}%).`),o){const f=((a=nt[o.category])==null?void 0:a.label)??o.category,p=o.delta>0?"grew":"shrank";i.push(`${f} ${p} most vs previous main turn (${we(Math.abs(o.delta))}).`)}return{toneClass:s,headline:r,detail:i.join(" ")}}const jm={Read:{paramKeys:["file_path","path"],kind:"read"},Write:{paramKeys:["file_path","path"],kind:"write"},Edit:{paramKeys:["file_path","path"],kind:"write"},MultiEdit:{paramKeys:["file_path","path"],kind:"write"},read_file:{paramKeys:["path","file_path"],kind:"read"},write_file:{paramKeys:["path","file_path"],kind:"write"},read:{paramKeys:["path","file_path"],kind:"read"},write:{paramKeys:["path","file_path"],kind:"write"},edit:{paramKeys:["path","file_path"],kind:"write"},replace:{paramKeys:["file_path","path"],kind:"write"},readFile:{paramKeys:["path","filePath","file_path"],kind:"read"},writeFile:{paramKeys:["path","filePath","file_path"],kind:"write"},editFile:{paramKeys:["path","filePath","file_path"],kind:"write"},create_file:{paramKeys:["path","file_path"],kind:"write"},patch:{paramKeys:["path","file_path"],kind:"write"}};function qm(e){const t=jm[e.name];if(!t)return null;const n=e.input;if(!n||typeof n!="object")return null;for(const u of t.paramKeys){const o=n[u];if(typeof o=="string"&&o.length>0)return{path:Vm(o),kind:t.kind}}return null}function Vm(e){let t=e.replace(/\/+/g,"/");return t.startsWith("./")&&(t=t.slice(2)),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t}function Uc(e,t){if(!t)return e;const n=t.endsWith("/")?t:t+"/";if(e.startsWith(n))return e.slice(n.length);const u=Um(e);return u?"~/"+e.slice(u.length):e}function Um(e){const t=e.match(/^(\/(?:home|Users)\/[^/]+\/)/);return t?t[1]:null}function Wm(e,t){const n=new Map;for(const u of e){if(!u.contentBlocks)continue;const s=u.contentBlocks.filter(r=>r.type==="tool_use").length>0?(u.tokens||0)/u.contentBlocks.length:0;for(const r of u.contentBlocks){if(r.type!=="tool_use")continue;const i=r,l=qm(i);if(l&&i.id){const a=Uc(l.path,t);n.set(i.id,{path:a,kind:l.kind,tokens:Math.round(s)})}}}return n}function Wc(e,t){const n=new Set,u=new Map;function o(s){let r=u.get(s);return r||(r={path:s,tokens:0,reads:0,writes:0,toolResultTokens:0,toolCallTokens:0},u.set(s,r)),r}for(const s of e){const r=s.contextInfo.messages??[];if(r.length===0)continue;const i=Wm(r,t);for(const[l,a]of i){if(n.has(l))continue;n.add(l);const f=o(a.path);f.toolCallTokens+=a.tokens,f.tokens+=a.tokens,a.kind==="read"?f.reads++:f.writes++}for(const l of r){if(!l.contentBlocks)continue;const a=l.contentBlocks.filter(p=>p.type==="tool_result");if(a.length===0)continue;const f=a.length>0?(l.tokens||0)/a.length:0;for(const p of a){if(p.type!=="tool_result")continue;const h=p.tool_use_id,g=i.get(h);if(!g||!n.has(h))continue;const v=o(g.path),w=Math.round(f);v.toolResultTokens+=w,v.tokens+=w}}}return Array.from(u.values()).filter(s=>s.tokens>0).sort((s,r)=>r.tokens-s.tokens)}function Wr(e){const t=e.split("/");return t[t.length-1]||e}function bl(e){const t=e.lastIndexOf("/");return t<=0?"":e.slice(0,t)}const _l=["#3b82f6","#8b5cf6","#06b6d4","#10b981","#f59e0b","#ef4444","#ec4899","#14b8a6","#6366f1","#84cc16"];function mr(e){return _l[e%_l.length]}const Km=8e3,yl=.4;function yu(e,t){var n;return((n=e.find(u=>u.category===t))==null?void 0:n.tokens)??0}function Gm(e){return e.reduce((t,n)=>t+n.tokens,0)}function Zm(e){var n;const t=new Set;for(const u of e.contextInfo.tools??[]){const o=u,s=typeof o.name=="string"?o.name:typeof((n=o.function)==null?void 0:n.name)=="string"?o.function.name:null;s&&t.add(s)}return t}const bo={oversized_results:"#ef4444",repeated_system:"#6366f1",unused_tools:"#f59e0b",thinking_spill:"#8b5cf6"};function Jm(e,t,n){const u=e.composition,o=Gm(u);if(o===0)return{totalTokens:0,wasteTokens:0,wasteRatio:0,categories:[],unusedToolNames:[]};const s=[],r=yu(u,"tool_results"),i=Math.max(0,r-Km);if(i>0&&s.push({id:"oversized_results",label:"Oversized results",tokens:i,pct:i/o,color:bo.oversized_results}),!t){const g=yu(u,"system_prompt")+yu(u,"system_injections");g>0&&s.push({id:"repeated_system",label:"System overhead",tokens:g,pct:g/o,color:bo.repeated_system})}const l=Zm(e),a=[...l].filter(g=>!n.has(g));if(a.length>0&&l.size>0){const g=yu(u,"tool_definitions"),v=Math.round(g*(a.length/l.size));v>0&&s.push({id:"unused_tools",label:"Unused tool defs",tokens:v,pct:v/o,color:bo.unused_tools})}const f=yu(u,"thinking"),p=f/o>yl?Math.round(f-o*yl):0;p>0&&s.push({id:"thinking_spill",label:"Excess thinking",tokens:p,pct:p/o,color:bo.thinking_spill}),s.sort((g,v)=>v.tokens-g.tokens);const h=s.reduce((g,v)=>g+v.tokens,0);return{totalTokens:o,wasteTokens:h,wasteRatio:h/o,categories:s,unusedToolNames:a}}function Ym(e){var t=0,n=e.children,u=n&&n.length;if(!u)t=1;else for(;--u>=0;)t+=n[u].value;e.value=t}function Xm(){return this.eachAfter(Ym)}function Qm(e,t){let n=-1;for(const u of this)e.call(t,u,++n,this);return this}function eg(e,t){for(var n=this,u=[n],o,s,r=-1;n=u.pop();)if(e.call(t,n,++r,this),o=n.children)for(s=o.length-1;s>=0;--s)u.push(o[s]);return this}function tg(e,t){for(var n=this,u=[n],o=[],s,r,i,l=-1;n=u.pop();)if(o.push(n),s=n.children)for(r=0,i=s.length;r<i;++r)u.push(s[r]);for(;n=o.pop();)e.call(t,n,++l,this);return this}function ng(e,t){let n=-1;for(const u of this)if(e.call(t,u,++n,this))return u}function ug(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,u=t.children,o=u&&u.length;--o>=0;)n+=u[o].value;t.value=n})}function og(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function sg(e){for(var t=this,n=rg(t,e),u=[t];t!==n;)t=t.parent,u.push(t);for(var o=u.length;e!==n;)u.splice(o,0,e),e=e.parent;return u}function rg(e,t){if(e===t)return e;var n=e.ancestors(),u=t.ancestors(),o=null;for(e=n.pop(),t=u.pop();e===t;)o=e,e=n.pop(),t=u.pop();return o}function ig(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function lg(){return Array.from(this)}function ag(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function cg(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*fg(){var e=this,t,n=[e],u,o,s;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,u=e.children)for(o=0,s=u.length;o<s;++o)n.push(u[o]);while(n.length)}function Kr(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=hg)):t===void 0&&(t=pg);for(var n=new Ho(e),u,o=[n],s,r,i,l;u=o.pop();)if((r=t(u.data))&&(l=(r=Array.from(r)).length))for(u.children=r,i=l-1;i>=0;--i)o.push(s=r[i]=new Ho(r[i])),s.parent=u,s.depth=u.depth+1;return n.eachBefore(gg)}function dg(){return Kr(this).eachBefore(mg)}function pg(e){return e.children}function hg(e){return Array.isArray(e)?e[1]:null}function mg(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function gg(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Ho(e){this.data=e,this.depth=this.height=0,this.parent=null}Ho.prototype=Kr.prototype={constructor:Ho,count:Xm,each:Qm,eachAfter:tg,eachBefore:eg,find:ng,sum:ug,sort:og,path:sg,ancestors:ig,descendants:lg,leaves:ag,links:cg,copy:dg,[Symbol.iterator]:fg};function vg(e){if(typeof e!="function")throw new Error;return e}function xu(){return 0}function ku(e){return function(){return e}}function bg(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function _g(e,t,n,u,o){for(var s=e.children,r,i=-1,l=s.length,a=e.value&&(u-t)/e.value;++i<l;)r=s[i],r.y0=n,r.y1=o,r.x0=t,r.x1=t+=r.value*a}function yg(e,t,n,u,o){for(var s=e.children,r,i=-1,l=s.length,a=e.value&&(o-n)/e.value;++i<l;)r=s[i],r.x0=t,r.x1=u,r.y0=n,r.y1=n+=r.value*a}var xg=(1+Math.sqrt(5))/2;function kg(e,t,n,u,o,s){for(var r=[],i=t.children,l,a,f=0,p=0,h=i.length,g,v,w=t.value,y,E,D,L,T,R,F;f<h;){g=o-n,v=s-u;do y=i[p++].value;while(!y&&p<h);for(E=D=y,R=Math.max(v/g,g/v)/(w*e),F=y*y*R,T=Math.max(D/F,F/E);p<h;++p){if(y+=a=i[p].value,a<E&&(E=a),a>D&&(D=a),F=y*y*R,L=Math.max(D/F,F/E),L>T){y-=a;break}T=L}r.push(l={value:y,dice:g<v,children:i.slice(f,p)}),l.dice?_g(l,n,u,o,w?u+=v*y/w:s):yg(l,n,u,w?n+=g*y/w:o,s),w-=y,f=p}return r}const wg=(function e(t){function n(u,o,s,r,i){kg(t,u,o,s,r,i)}return n.ratio=function(u){return e((u=+u)>1?u:1)},n})(xg);function Cg(){var e=wg,t=!1,n=1,u=1,o=[0],s=xu,r=xu,i=xu,l=xu,a=xu;function f(h){return h.x0=h.y0=0,h.x1=n,h.y1=u,h.eachBefore(p),o=[0],t&&h.eachBefore(bg),h}function p(h){var g=o[h.depth],v=h.x0+g,w=h.y0+g,y=h.x1-g,E=h.y1-g;y<v&&(v=y=(v+y)/2),E<w&&(w=E=(w+E)/2),h.x0=v,h.y0=w,h.x1=y,h.y1=E,h.children&&(g=o[h.depth+1]=s(h)/2,v+=a(h)-g,w+=r(h)-g,y-=i(h)-g,E-=l(h)-g,y<v&&(v=y=(v+y)/2),E<w&&(w=E=(w+E)/2),e(h,v,w,y,E))}return f.round=function(h){return arguments.length?(t=!!h,f):t},f.size=function(h){return arguments.length?(n=+h[0],u=+h[1],f):[n,u]},f.tile=function(h){return arguments.length?(e=vg(h),f):e},f.padding=function(h){return arguments.length?f.paddingInner(h).paddingOuter(h):f.paddingInner()},f.paddingInner=function(h){return arguments.length?(s=typeof h=="function"?h:ku(+h),f):s},f.paddingOuter=function(h){return arguments.length?f.paddingTop(h).paddingRight(h).paddingBottom(h).paddingLeft(h):f.paddingTop()},f.paddingTop=function(h){return arguments.length?(r=typeof h=="function"?h:ku(+h),f):r},f.paddingRight=function(h){return arguments.length?(i=typeof h=="function"?h:ku(+h),f):i},f.paddingBottom=function(h){return arguments.length?(l=typeof h=="function"?h:ku(+h),f):l},f.paddingLeft=function(h){return arguments.length?(a=typeof h=="function"?h:ku(+h),f):a},f}const $g={key:0,class:"panel panel--hero"},Eg={class:"panel-head"},Tg={class:"panel-title"},Sg={class:"panel-sub"},Dg={class:"mode-toggle"},Ag={class:"panel-body"},Fg={key:0,class:"treemap"},Mg=["onClick"],Ig={class:"tm-label"},Pg={class:"tm-val"},Lg={key:1,class:"tm-label-compact"},Rg={key:2,class:"tm-pct"},Og={key:1,class:"treemap treemap-simple"},zg=["onClick"],Ng={class:"tm-label"},Bg={class:"tm-val"},Hg={key:2,class:"treemap"},jg=["onClick"],qg={class:"tm-label"},Vg={class:"tm-val"},Ug={key:1,class:"tm-label-compact"},Wg={key:2,class:"tm-pct"},Kg={class:"legend"},Gg={class:"legend-pct"},Zg={key:0,class:"legend-item"},Jg={class:"legend-file-path"},Yg={class:"legend-pct"},Xg={key:0,class:"legend-item"},Qg={class:"legend-pct"},xl=5,kl=6,e2=et({__name:"CompositionTreemap",props:{entry:{},turnNum:{}},emits:["categoryClick","toolClick","fileClick","explain"],setup(e,{emit:t}){const n=e,u=St(),o=t,s=he("detailed"),r=he(null),i=O(()=>{var ne;const H=((ne=n.entry)==null?void 0:ne.composition)||[],le=[];for(const[S,te]of Object.entries(fu)){let ae=0;for(const V of te){const ce=H.find(ye=>ye.category===V);ce&&(ae+=ce.tokens)}if(ae>0){const V=Ct[S];le.push({key:S,label:V.label,color:V.color,tokens:ae})}}return le}),l=O(()=>{const H=n.entry;return H?H.composition.filter(le=>le.tokens>0).map(le=>{var ne,S;return{key:le.category,label:((ne=nt[le.category])==null?void 0:ne.label)??le.category,color:((S=nt[le.category])==null?void 0:S.color)??"#4b5563",tokens:le.tokens,category:le.category}}):[]});function a(H){const le=["#10b981","#34d399","#14b8a6","#2dd4bf","#10b981","#06b6d4","#0ea5e9"];return le[H%le.length]}const f=O(()=>{const H=n.entry;if(!H)return[];const le=H.contextInfo.messages||[],ne=fs(le),S=new Map;for(const te of le){if(At(te)!=="tool_results")continue;const ae=(te.contentBlocks||[]).filter(ce=>ce.type==="tool_result");if(ae.length===0)continue;const V=(te.tokens||0)/ae.length;for(const ce of ae){const ye=ce.tool_use_id||"unknown",B=ne[ye]||`tool:${ye.slice(0,8)}`;S.set(B,(S.get(B)||0)+V)}}return Array.from(S.entries()).sort((te,ae)=>ae[1]-te[1]).map(([te,ae],V)=>({key:`tool-${te}-${V}`,label:te,color:a(V),tokens:Math.max(1,Math.round(ae)),category:"tool_results",toolName:te}))}),p=O(()=>r.value==="tool_results"&&f.value.length>0?f.value:l.value),h=O(()=>{const H=u.selectedSession;if(!H||H.entries.length===0)return[];const le=H.workingDirectory;return Wc(H.entries,le).map((S,te)=>({key:`file-${S.path}-${te}`,label:Wr(S.path),color:mr(te),tokens:S.tokens,category:"files",toolName:S.path}))}),g=O(()=>T(h.value)),v=O(()=>h.value.length>0),w=O(()=>p.value.slice(0,xl)),y=O(()=>p.value.slice(xl)),E=O(()=>y.value.map(H=>`${H.label}: ${ge(H.tokens)}`).join(`
|
|
26
|
+
`)),D=O(()=>h.value.slice(0,kl)),L=O(()=>h.value.slice(kl).map(H=>`${H.toolName||H.label}: ${ge(H.tokens)}`).join(`
|
|
27
|
+
`));function T(H){if(H.length===0)return[];const le=H.reduce((te,ae)=>te+ae.tokens,0),ne=Kr({key:"root",label:"root",color:"#000000",tokens:0,children:H}).sum(te=>te.children&&te.children.length>0?0:Math.max(0,te.tokens||0));return Cg().size([100,100]).paddingInner(1).round(!0)(ne).leaves().map(te=>{const ae=te.data;return{key:ae.key,label:ae.label,color:ae.color,tokens:ae.tokens,category:ae.category,x:te.x0,y:te.y0,w:te.x1-te.x0,h:te.y1-te.y0,pct:le>0?ae.tokens/le*100:0}})}const R=O(()=>T(p.value));function F(H){if(r.value===null&&H.category==="tool_results"&&f.value.length>1){r.value="tool_results";return}if(r.value==="tool_results"&&H.toolName){o("toolClick",H.toolName);return}o("categoryClick",H.category||"tool_results")}function ue(H){const le=n.entry;if(!le)return;const ne=fu[H]||[];if(ne.length===0)return;let S=ne[0],te=-1;for(const ae of ne){const V=le.composition.find(ye=>ye.category===ae),ce=(V==null?void 0:V.tokens)??0;ce>te&&(te=ce,S=ae)}o("categoryClick",S)}function X(H){H.toolName&&o("fileClick",H.toolName)}function U(){r.value=null}const Z=O(()=>{var H;return((H=n.entry)==null?void 0:H.contextInfo.totalTokens)??0});function ge(H){return Z.value===0?"":Math.round(H/Z.value*100)+"%"}return Ge(()=>{var H;return(H=n.entry)==null?void 0:H.id},()=>{r.value=null}),(H,le)=>{const ne=zn("tooltip");return e.entry.composition.length>0?(x(),k("section",$g,[c("div",Eg,[c("span",Tg,[le[5]||(le[5]=ke("Composition ",-1)),c("button",{class:"info-btn",onClick:le[0]||(le[0]=S=>o("explain"))},[...le[4]||(le[4]=[c("i",{class:"i-carbon-information"},null,-1)])])]),c("span",Sg,"Turn "+A(e.turnNum)+" · "+A(Y(we)(e.entry.composition.reduce((S,te)=>S+te.tokens,0))),1),s.value==="detailed"&&r.value?(x(),k("button",{key:0,class:"treemap-back",onClick:U}," Back to categories ")):se("",!0),c("div",Dg,[c("button",{class:ie({on:s.value==="detailed"}),onClick:le[1]||(le[1]=S=>s.value="detailed")},"Detail",2),c("button",{class:ie({on:s.value==="simple"}),onClick:le[2]||(le[2]=S=>s.value="simple")},"Simple",2),v.value?(x(),k("button",{key:0,class:ie({on:s.value==="files"}),onClick:le[3]||(le[3]=S=>s.value="files")},"Files",2)):se("",!0)])]),c("div",Ag,[s.value==="detailed"?(x(),k("div",Fg,[(x(!0),k(pe,null,Te(R.value,S=>He((x(),k("button",{key:S.key,class:"tm-block tm-block-2d",style:Se({left:S.x+"%",top:S.y+"%",width:S.w+"%",height:S.h+"%",background:S.color}),onClick:te=>F(S)},[S.w>=18&&S.h>=16?(x(),k(pe,{key:0},[c("span",Ig,A(S.label),1),c("span",Pg,A(Y(we)(S.tokens)),1)],64)):S.w>=12&&S.h>=12?(x(),k("span",Lg,A(S.label.slice(0,8))+A(S.label.length>8?"…":""),1)):S.w>=8&&S.h>=8?(x(),k("span",Rg,A(Math.round(S.pct))+"%",1)):se("",!0)],12,Mg)),[[ne,`${S.label}: ${S.tokens.toLocaleString()} (${S.pct.toFixed(1)}%)`]])),128))])):s.value==="simple"?(x(),k("div",Og,[(x(!0),k(pe,null,Te(i.value,S=>He((x(),k("div",{key:S.key,class:ie(["tm-block tm-block-simple",{"tm-block-narrow":S.tokens/e.entry.composition.reduce((te,ae)=>te+ae.tokens,0)<.15}]),style:Se({flex:S.tokens,background:S.color}),onClick:te=>ue(S.key)},[c("span",Ng,A(S.label),1),c("span",Bg,A(Y(we)(S.tokens)),1)],14,zg)),[[ne,`${S.label}: ${S.tokens.toLocaleString()}`]])),128))])):s.value==="files"?(x(),k("div",Hg,[(x(!0),k(pe,null,Te(g.value,S=>He((x(),k("button",{key:S.key,class:"tm-block tm-block-2d",style:Se({left:S.x+"%",top:S.y+"%",width:S.w+"%",height:S.h+"%",background:S.color}),onClick:te=>X(S)},[S.w>=18&&S.h>=16?(x(),k(pe,{key:0},[c("span",qg,A(S.label),1),c("span",Vg,A(Y(we)(S.tokens)),1)],64)):S.w>=12&&S.h>=12?(x(),k("span",Ug,A(S.label.slice(0,8))+A(S.label.length>8?"…":""),1)):S.w>=8&&S.h>=8?(x(),k("span",Wg,A(Math.round(S.pct))+"%",1)):se("",!0)],12,jg)),[[ne,`${S.toolName||S.label}: ${S.tokens.toLocaleString()} (${S.pct.toFixed(1)}%)`]])),128))])):se("",!0),c("div",Kg,[s.value==="detailed"?(x(),k(pe,{key:0},[(x(!0),k(pe,null,Te(w.value,S=>(x(),k("span",{key:`legend-${S.key}`,class:"legend-item"},[c("span",{class:"legend-dot",style:Se({background:S.color})},null,4),ke(" "+A(S.label)+" ",1),c("span",Gg,A(ge(S.tokens)),1)]))),128)),p.value.length>w.value.length?He((x(),k("span",Zg,[ke(" +"+A(p.value.length-w.value.length)+" more ",1)])),[[ne,E.value]]):se("",!0)],64)):s.value==="files"?(x(),k(pe,{key:1},[(x(!0),k(pe,null,Te(D.value,S=>(x(),k("span",{key:`legend-file-${S.key}`,class:"legend-item"},[c("span",{class:"legend-dot",style:Se({background:S.color})},null,4),He((x(),k("span",Jg,[ke(A(S.label),1)])),[[ne,S.toolName||S.label]]),c("span",Yg,A(ge(S.tokens)),1)]))),128)),h.value.length>D.value.length?He((x(),k("span",Xg,[ke(" +"+A(h.value.length-D.value.length)+" more ",1)])),[[ne,L.value]]):se("",!0)],64)):(x(!0),k(pe,{key:2},Te(i.value,S=>(x(),k("span",{key:S.key,class:"legend-item"},[c("span",{class:"legend-dot",style:Se({background:S.color})},null,4),ke(" "+A(S.label)+" ",1),c("span",Qg,A(ge(S.tokens)),1)]))),128))])])])):se("",!0)}}}),t2=rt(e2,[["__scopeId","data-v-65684877"]]),n2={key:0,class:"panel panel--secondary"},u2={class:"panel-head"},o2={class:"panel-sub"},s2={class:"panel-body diff-body"},r2={key:0,class:"diff-tapes"},i2={class:"diff-tape-row"},l2={class:"diff-tape-label"},a2={class:"diff-tape-track"},c2={class:"diff-tape-val"},f2={class:"diff-tape-row"},d2={class:"diff-tape-label"},p2={class:"diff-tape-track"},h2={class:"diff-tape-val"},m2={key:1,class:"diff-summary-row"},g2={key:0,class:"diff-summary-group"},v2={class:"diff-summary-label"},b2=["onClick"],_2=["onClick"],y2={key:0,class:"diff-summary-group"},x2={class:"diff-summary-label"},k2=["onClick"],w2={key:1,class:"diff-summary-group"},C2={class:"diff-summary-label"},$2=["onClick"],E2={key:2,class:"diff-hidden-wrap"},T2={class:"diff-hidden-note"},S2=["onClick"],D2={key:1,class:"diff-empty"},A2=2e3,F2=et({__name:"ContextDiffPanel",props:{diffData:{},currentEntry:{default:null},previousEntry:{default:null},showTapes:{type:Boolean,default:!1},hideUnchanged:{type:Boolean,default:!1},summaryMode:{default:"split"},combinedLabel:{default:"Drivers"},growthLabel:{default:"Growth drivers"},shrinkLabel:{default:"Shrink drivers"},deltaTone:{default:"good"},showWhenEmpty:{type:Boolean,default:!1},emptyText:{default:"First turn — no previous context."}},emits:["categoryClick"],setup(e,{emit:t}){const n=e,u=t,o=O(()=>!!n.diffData||n.showWhenEmpty),s=O(()=>{const g=n.diffData;return g?n.hideUnchanged?g.lines.filter(v=>v.type!=="same"):g.lines:[]}),r=O(()=>{const g=n.diffData,v=n.currentEntry;if(!g||!v)return[];const w=new Map(v.composition.map(y=>[y.category,y.tokens]));return g.lines.filter(y=>y.type==="same").map(y=>{var E;return{category:y.category,label:((E=nt[y.category])==null?void 0:E.label)??y.category,tokens:w.get(y.category)??0}}).sort((y,E)=>E.tokens-y.tokens)}),i=O(()=>r.value.length===0?"":r.value.map(g=>`${g.label}: ${we(g.tokens)}`).join(`
|
|
28
|
+
`)),l=O(()=>{const g=n.diffData;if(!g)return"var(--text-dim)";const v=g.delta>=0;return n.deltaTone==="bad"?v?"var(--accent-red)":"var(--accent-green)":v?"var(--accent-green)":"var(--accent-red)"});function a(g){return Math.abs(g)>=A2}function f(g,v){return a(g)?v==="up"?"diff-tone-up":"diff-tone-down":"diff-tone-muted"}function p(g){return g.type==="same"?"diff-tone-muted":g.type==="add"?f(g.delta,"up"):f(g.delta,"down")}function h(g){u("categoryClick",g)}return(g,v)=>{const w=zn("tooltip");return o.value?(x(),k("section",n2,[c("div",u2,[v[0]||(v[0]=c("span",{class:"panel-title"},"Context Diff",-1)),e.diffData?(x(),k(pe,{key:0},[c("span",o2,"Turn "+A(e.diffData.prevTurnNum)+" → "+A(e.diffData.currTurnNum),1),c("span",{class:"diff-delta",style:Se({color:l.value})},A(e.diffData.delta>=0?"+":"")+A(Y(we)(e.diffData.delta)),5)],64)):se("",!0)]),c("div",s2,[e.diffData?(x(),k(pe,{key:0},[e.showTapes&&e.currentEntry&&e.previousEntry?(x(),k("div",r2,[c("div",i2,[c("span",l2,"T"+A(e.diffData.prevTurnNum),1),c("div",a2,[(x(!0),k(pe,null,Te(e.previousEntry.composition,y=>{var E;return x(),k("div",{key:"prev-"+y.category,class:"diff-tape-seg",style:Se({flex:y.tokens,background:((E=Y(nt)[y.category])==null?void 0:E.color)??"#475569"})},null,4)}),128))]),c("span",c2,A(Y(we)(e.previousEntry.contextInfo.totalTokens)),1)]),c("div",f2,[c("span",d2,"T"+A(e.diffData.currTurnNum),1),c("div",p2,[(x(!0),k(pe,null,Te(e.currentEntry.composition,y=>{var E;return x(),k("div",{key:"curr-"+y.category,class:"diff-tape-seg",style:Se({flex:y.tokens,background:((E=Y(nt)[y.category])==null?void 0:E.color)??"#475569"})},null,4)}),128))]),c("span",h2,A(Y(we)(e.currentEntry.contextInfo.totalTokens)),1)])])):se("",!0),e.diffData.topIncreases.length>0||e.diffData.topDecreases.length>0?(x(),k("div",m2,[e.summaryMode==="combined"?(x(),k("div",g2,[c("span",v2,A(e.combinedLabel),1),(x(!0),k(pe,null,Te(e.diffData.topIncreases,y=>(x(),k("button",{key:"inc-"+y.group,class:ie(["diff-summary-chip",f(y.delta,"up")]),onClick:E=>h(y.category)},A(y.label)+" +"+A(Y(we)(y.delta)),11,b2))),128)),(x(!0),k(pe,null,Te(e.diffData.topDecreases,y=>(x(),k("button",{key:"dec-"+y.group,class:ie(["diff-summary-chip",f(y.delta,"down")]),onClick:E=>h(y.category)},A(y.label)+" "+A(Y(we)(y.delta)),11,_2))),128))])):(x(),k(pe,{key:1},[e.diffData.topIncreases.length>0?(x(),k("div",y2,[c("span",x2,A(e.growthLabel),1),(x(!0),k(pe,null,Te(e.diffData.topIncreases,y=>(x(),k("button",{key:"inc-"+y.group,class:ie(["diff-summary-chip",f(y.delta,"up")]),onClick:E=>h(y.category)},A(y.label)+" +"+A(Y(we)(y.delta)),11,k2))),128))])):se("",!0),e.diffData.topDecreases.length>0?(x(),k("div",w2,[c("span",C2,A(e.shrinkLabel),1),(x(!0),k(pe,null,Te(e.diffData.topDecreases,y=>(x(),k("button",{key:"dec-"+y.group,class:ie(["diff-summary-chip",f(y.delta,"down")]),onClick:E=>h(y.category)},A(y.label)+" "+A(Y(we)(y.delta)),11,$2))),128))])):se("",!0)],64))])):se("",!0),e.hideUnchanged&&r.value.length>0?(x(),k("div",E2,[He((x(),k("span",T2,[ke(A(r.value.length)+" unchanged "+A(r.value.length===1?"category":"categories")+" hidden ",1)])),[[w,i.value]])])):se("",!0),(x(!0),k(pe,null,Te(s.value,(y,E)=>(x(),k("button",{key:"line-"+E,class:ie(["diff-line",["diff-"+y.type,p(y)]]),onClick:D=>h(y.category)},A(y.text),11,S2))),128))],64)):(x(),k("span",D2,A(e.emptyText),1))])])):se("",!0)}}}),Kc=rt(F2,[["__scopeId","data-v-f23cde3c"]]),M2={key:0,class:"panel panel--primary"},I2={class:"panel-head"},P2={key:0,class:"finding-count"},L2={key:0,class:"audit-row"},R2=["onClick"],O2={class:"rec-content"},z2={class:"rec-title"},N2={class:"rec-detail"},B2=et({__name:"HealthFindings",props:{entry:{},recommendations:{},auditTooltip:{type:Function}},emits:["recommendationClick"],setup(e,{emit:t}){const n=t;function u(o){o.messageIndex!=null&&n("recommendationClick",o)}return(o,s)=>{const r=zn("tooltip");return e.entry.healthScore||e.recommendations.length>0?(x(),k("section",M2,[c("div",I2,[s[0]||(s[0]=c("span",{class:"panel-title"},"Findings",-1)),e.recommendations.length?(x(),k("span",P2,A(e.recommendations.length),1)):se("",!0)]),e.entry.healthScore?(x(),k("div",L2,[(x(!0),k(pe,null,Te(e.entry.healthScore.audits,i=>He((x(),k("span",{key:i.id,class:ie(["audit-chip",i.score>=90?"audit-good":i.score>=50?"audit-warn":"audit-bad"])},[ke(A(i.name)+" ",1),c("b",null,A(i.score),1)],2)),[[r,e.auditTooltip(i)]])),128))])):se("",!0),e.recommendations.length>0?(x(),k("div",{key:1,class:ie(["panel-body rec-list",{"rec-list--scroll":e.recommendations.length>3}])},[(x(!0),k(pe,null,Te(e.recommendations,(i,l)=>(x(),k("div",{key:l,class:ie(["rec",{"rec-clickable":i.messageIndex!=null}]),onClick:a=>i.messageIndex!=null&&u(i)},[c("i",{class:ie(["rec-icon",[`sev-${i.severity}`,i.severity==="high"?"i-carbon-warning-alt":i.severity==="med"?"i-carbon-information":"i-carbon-checkmark"]])},null,2),c("div",O2,[c("div",z2,A(i.title),1),c("div",N2,A(i.detail),1)]),c("span",{class:ie(["rec-impact",`sev-${i.severity}`])},A(i.impact),3)],10,R2))),128))],2)):se("",!0)])):se("",!0)}}}),H2=rt(B2,[["__scopeId","data-v-f1490cbd"]]),j2={class:"explain-header"},q2={class:"explain-title"},V2={class:"explain-tabs"},U2={class:"explain-body"},W2=et({__name:"ExplainPanel",props:{open:{type:Boolean},section:{}},emits:["close"],setup(e,{emit:t}){const n=e,u=t,o=he("health");Ge(()=>n.section,i=>{i&&(o.value=i)});function s(){u("close")}function r(i){i.stopPropagation()}return(i,l)=>(x(),_t(kf,{to:"body"},[Ie(Zt,{name:"explain"},{default:ot(()=>[e.open?(x(),k("div",{key:0,class:"explain-overlay",onClick:s},[c("aside",{class:"explain-panel",onClick:r},[c("header",j2,[c("h2",q2,[l[3]||(l[3]=c("i",{class:"i-carbon-information"},null,-1)),ke(" "+A(o.value==="health"?"Health Score":"Composition"),1)]),c("button",{class:"explain-close",onClick:l[0]||(l[0]=a=>u("close"))},[...l[4]||(l[4]=[c("i",{class:"i-carbon-close"},null,-1)])])]),c("nav",V2,[c("button",{class:ie(["explain-tab",{active:o.value==="health"}]),onClick:l[1]||(l[1]=a=>o.value="health")},"Health",2),c("button",{class:ie(["explain-tab",{active:o.value==="composition"}]),onClick:l[2]||(l[2]=a=>o.value="composition")},"Composition",2)]),c("div",U2,[o.value==="health"?(x(),k(pe,{key:0},[l[5]||(l[5]=c("p",{class:"explain-intro"}," The health score (0-100) estimates how efficiently this turn uses the context window. It is a weighted average of five audits. A higher score means more room for the conversation to grow. ",-1)),l[6]||(l[6]=c("div",{class:"explain-audit"},[c("div",{class:"audit-name"},[c("span",{class:"audit-weight"},"30%"),ke(" Context Utilization ")]),c("p",null,"How much of the model's context window is used. Below 50% scores well. Above 80% starts losing points rapidly. Near-limit turns score near zero.")],-1)),l[7]||(l[7]=c("div",{class:"explain-audit"},[c("div",{class:"audit-name"},[c("span",{class:"audit-weight"},"25%"),ke(" Tool Results ")]),c("p",null,"Whether tool results are proportionally sized. Large tool results (file contents, search results) can dominate the context. Flagged when a single result exceeds 20% of total tokens.")],-1)),l[8]||(l[8]=c("div",{class:"explain-audit"},[c("div",{class:"audit-name"},[c("span",{class:"audit-weight"},"20%"),ke(" Tool Definitions ")]),c("p",null,"Ratio of tool definitions to total context. If many defined tools go unused across the session, the definitions are wasting space. Also penalised when tool definitions exceed 30% of tokens.")],-1)),l[9]||(l[9]=c("div",{class:"explain-audit"},[c("div",{class:"audit-name"},[c("span",{class:"audit-weight"},"15%"),ke(" Growth Rate ")]),c("p",null,"How much the context grew since the previous turn. Gradual growth is healthy. A sudden spike (more than 30% of the window in one turn) suggests a large paste or tool result.")],-1)),l[10]||(l[10]=c("div",{class:"explain-audit"},[c("div",{class:"audit-name"},[c("span",{class:"audit-weight"},"10%"),ke(" Thinking Overhead ")]),c("p",null,"Proportion of tokens spent on thinking/reasoning blocks. Some thinking is fine, but when it dominates (over 40%) it can crowd out conversation context.")],-1)),l[11]||(l[11]=c("div",{class:"explain-caveat"},[c("i",{class:"i-carbon-warning-alt"}),c("p",null,"This score is a heuristic, not a quality judgment. A low score does not mean the conversation is bad. It highlights patterns worth reviewing.")],-1))],64)):se("",!0),o.value==="composition"?(x(),k(pe,{key:1},[l[12]||(l[12]=c("p",{class:"explain-intro"}," The composition treemap shows what types of content fill the context window and how much space each takes. ",-1)),l[13]||(l[13]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#2563eb"}}),c("div",null,[c("strong",null,"System prompt"),c("p",null,"The model's instructions. Set once at the start. Usually stable across turns.")])],-1)),l[14]||(l[14]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#db2777"}}),c("div",null,[c("strong",null,"Tool definitions"),c("p",null,"JSON schemas describing available tools/functions. Sent with every request. Can be large when many tools are defined.")])],-1)),l[15]||(l[15]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#059669"}}),c("div",null,[c("strong",null,"Tool results"),c("p",null,"Data returned from tool calls (file reads, search results, command output). Often the fastest-growing category.")])],-1)),l[16]||(l[16]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#ec4899"}}),c("div",null,[c("strong",null,"Tool calls"),c("p",null,"The model's requests to invoke tools. Includes function name and arguments.")])],-1)),l[17]||(l[17]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#d97706"}}),c("div",null,[c("strong",null,"Assistant text"),c("p",null,"The model's natural language responses. The actual conversation output.")])],-1)),l[18]||(l[18]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#10b981"}}),c("div",null,[c("strong",null,"User text"),c("p",null,"Your messages to the model. Typically small relative to the rest.")])],-1)),l[19]||(l[19]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#8b5cf6"}}),c("div",null,[c("strong",null,"Thinking"),c("p",null,"Extended thinking/reasoning blocks. These are billed but don't persist in the context across turns (for most providers).")])],-1)),l[20]||(l[20]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#6366f1"}}),c("div",null,[c("strong",null,"System injections"),c("p",null,"Content the tool framework inserts alongside the system prompt (reminders, rules, tool instructions). Distinct from the main system prompt.")])],-1)),l[21]||(l[21]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#4b5563"}}),c("div",null,[c("strong",null,"Images / Cache markers / Other"),c("p",null,"Image tokens (estimated by resolution), cache control markers, and anything that doesn't fit the categories above.")])],-1))],64)):se("",!0)])])])):se("",!0)]),_:1})]))}}),K2=rt(W2,[["__scopeId","data-v-758e473e"]]),G2={key:0,class:"overview"},Z2={class:"narrative-copy"},J2={class:"narrative-title"},Y2={class:"narrative-detail"},X2={class:"narrative-actions"},Q2={class:"stats-grid"},ev={class:"stat-detail"},tv={key:1,class:"stat-tape"},nv={key:2,class:"util-track"},uv={class:"stat-card"},ov={class:"stat-readout green"},sv={class:"stat-detail"},rv={key:0,class:"stat-detail stat-detail--bloat"},iv={class:"stat-card"},lv={class:"stat-readout"},av={key:0,class:"stat-detail"},cv={key:0,class:"stat-card stat-card--health"},fv={class:"health-ring"},dv={width:"48",height:"48",viewBox:"0 0 48 48"},pv=["stroke","stroke-dasharray"],hv=["fill"],mv={class:"stat-label"},gv={key:1,class:"stat-card"},vv={class:"meta-row"},bv={key:0},_v={key:1},yv={key:2},xv={key:1,class:"panel panel--overhead"},kv={class:"panel-head"},wv={class:"overhead-bar-wrap"},Cv={class:"overhead-bar"},$v=["title"],Ev={class:"overhead-cats"},Tv={class:"overhead-name"},Sv={class:"overhead-tok"},Dv={class:"overhead-pct"},Av={key:0,class:"overhead-unused"},Fv={key:2,class:"panel panel--secondary"},Mv={class:"panel-head"},Iv={class:"panel-sub"},Pv={class:"panel-body msg-preview"},Lv=["onClick"],Rv={class:"msg-group-name"},Ov={class:"msg-group-count"},zv={class:"msg-group-tokens"},Nv={class:"msg-group-pct"},Bv={class:"msg-group-bar"},Hv={key:3,class:"panel panel--secondary"},jv={class:"panel-head"},qv={class:"panel-sub"},Vv={class:"panel-body file-preview"},Uv={class:"file-list"},Wv=["onClick"],Kv={class:"file-path"},Gv={class:"file-dir"},Zv={class:"file-ops"},Jv={key:0,class:"file-op file-op--read"},Yv={key:1,class:"file-op file-op--write"},Xv={class:"file-tokens"},Qv={class:"file-pct"},eb={class:"file-bar"},tb=et({__name:"OverviewTab",setup(e){const t=he(!1),n=he(null);function u(C){n.value=C,t.value=!0}const o=St(),s=O(()=>o.selectedEntry),r=O(()=>o.selectedSession),i=O(()=>{var K,j;const C=r.value;if(!C||C.entries.length===0)return null;let I=0;for(const $ of C.entries){if($.httpStatus!==null&&($.httpStatus<200||$.httpStatus>=300))continue;if($.costUsd===null){I=null;continue}const P=$.composition,b=$.contextInfo.totalTokens;if(b===0)continue;const d=((K=P.find(oe=>oe.category==="tool_results"))==null?void 0:K.tokens)??0,m=Math.max(0,d-8e3)/b,_=((j=P.find(oe=>oe.category==="thinking"))==null?void 0:j.tokens)??0,M=_/b>.4?(_-b*.4)/b:0,z=Math.min(1,m+M);I!==null&&(I+=$.costUsd*z)}return I!==null?Math.round(I*1e4)/1e4:null}),l=O(()=>{var j;const C=s.value;if(!C)return null;const I=new Set;for(const $ of((j=r.value)==null?void 0:j.entries)??[])for(const P of $.contextInfo.messages??[])if(P.contentBlocks)for(const b of P.contentBlocks){const d=b;d.type==="tool_use"&&typeof d.name=="string"&&I.add(d.name)}const K=v.value<=1;return Jm(C,K,I)}),a=O(()=>r.value?[...r.value.entries].reverse():[]),f=O(()=>{const C=s.value;return!C||!C.contextLimit?0:C.contextInfo.totalTokens/C.contextLimit}),p=O(()=>{const C=f.value;return C>=.9?"var(--accent-red)":C>=.7?"var(--accent-amber)":"var(--accent-blue)"}),h=O(()=>{const C=s.value;if(!(C!=null&&C.usage))return null;const I=C.usage.inputTokens+C.usage.cacheReadTokens+C.usage.cacheWriteTokens;return I===0?null:C.usage.cacheReadTokens/I}),g=O(()=>hn(a.value)),v=O(()=>{const C=s.value;if(!C)return 0;const I=g.value,K=I.findIndex(j=>j.entry.id===C.id);return K<0?0:I.slice(0,K+1).reduce((j,$)=>j+($.isMain?1:0),0)}),w=O(()=>{const C=s.value;if(!C)return[];const I=a.value,K=g.value;return qc(C,I,K)}),y=O(()=>{const C=s.value;if(!C)return null;const I=g.value,K=I.findIndex(j=>j.entry.id===C.id);if(K<0)return null;for(let j=K-1;j>=0;j--)if(I[j].isMain)return I[j].entry;return null}),E=O(()=>{const C=s.value,I=y.value;if(!C||!I)return[];const K=new Map(I.composition.map(P=>[P.category,P.tokens])),j=new Map(C.composition.map(P=>[P.category,P.tokens])),$=new Set([...K.keys(),...j.keys()]);return Array.from($).map(P=>{const b=K.get(P)??0,d=j.get(P)??0;return{category:P,delta:d-b}}).filter(P=>P.delta!==0).sort((P,b)=>Math.abs(b.delta)-Math.abs(P.delta))}),D=O(()=>{var $;const C=s.value;if(!(($=C==null?void 0:C.composition)!=null&&$.length))return null;const I=C.composition.reduce((P,b)=>P+b.tokens,0);if(I===0)return null;const K={};for(const[P,b]of Object.entries(fu))for(const d of b)K[d]=P;const j=new Map;for(const P of C.composition){const b=K[P.category]??P.category;j.set(b,(j.get(b)||0)+P.tokens)}return[...j.entries()].sort((P,b)=>b[1]-P[1]).map(([P,b])=>{var d;return{key:P,color:((d=Ct[P])==null?void 0:d.color)??"#475569",pct:b/I*100}})}),L=O(()=>{const C=s.value;return!C||g.value.length===0?null:Vc(C,g.value)}),T=O(()=>{var C;return((C=s.value)==null?void 0:C.contextInfo.messages)||[]}),R=O(()=>jc(T.value)),F=O(()=>R.value.reduce((C,I)=>C+I.tokens,0)),ue=O(()=>{var C;return((C=s.value)==null?void 0:C.contextInfo.totalTokens)??0}),X=O(()=>{const C=s.value;return C?Hm({utilization:f.value,healthScore:C.healthScore,composition:C.composition,topDelta:E.value[0]??null}):null});function U(C){o.setInspectorTab(C)}function Z(){o.setInspectorTab("messages")}function ge(C,I=!0){Z(),o.focusMessageCategory(C,I)}function H(){Z()}function le(C){Z(),o.focusMessageTool("tool_results",C)}function ne(C){C.messageIndex!=null&&(Z(),o.focusMessageByIndex(C.messageIndex))}function S(C){if(!(/growth/i.test(C.id)||/growth/i.test(C.name)))return C.description;const K=C.description||"";if(!/first turn/i.test(K)||v.value<=1)return K;const j=s.value,$=y.value;if(!j||!$||!j.contextLimit)return K;const P=j.contextInfo.totalTokens-$.contextInfo.totalTokens,b=Math.abs(P),d=b/j.contextLimit*100;return`Compared with previous main turn, context ${P>=0?"grew":"shrunk"} by ${we(b)} (${d.toFixed(1)}% of limit).`}function te(C){return Ch(C)}function ae(C){return $h(C)}function V(C){return ue.value>0?Math.round(C/ue.value*100):0}function ce(C){return ue.value>0?`${C/ue.value*100}%`:"0%"}const ye=O(()=>{const C=r.value;if(!C||C.entries.length===0)return[];const I=C.workingDirectory;return Wc(C.entries,I)}),B=O(()=>ye.value.reduce((C,I)=>C+I.tokens,0));function ee(C){return B.value>0?Math.round(C/B.value*100):0}function J(C){return B.value>0?`${C/B.value*100}%`:"0%"}function de(C){Z(),o.focusMessageFile(C)}function _e(C){de(C)}return(C,I)=>{var j;const K=zn("tooltip");return s.value?(x(),k("div",G2,[X.value?(x(),k("section",{key:0,class:ie(["health-narrative",X.value.toneClass])},[c("div",Z2,[c("div",J2,A(X.value.headline),1),c("div",Y2,A(X.value.detail),1)]),c("div",X2,[c("button",{class:"narrative-action",onClick:I[0]||(I[0]=$=>U("messages"))},[...I[7]||(I[7]=[c("i",{class:"i-carbon-chat"},null,-1),ke(" Review Messages ",-1)])]),c("button",{class:"narrative-action",onClick:I[1]||(I[1]=$=>U("timeline"))},[...I[8]||(I[8]=[c("i",{class:"i-carbon-activity"},null,-1),ke(" View Timeline ",-1)])])])],2)):se("",!0),c("div",Q2,[c("div",{class:"stat-card stat-card--spine",style:Se({"--spine-color":p.value})},[c("div",{class:"stat-readout",style:Se({color:p.value})},A(Y(fr)(f.value)),5),I[9]||(I[9]=c("div",{class:"stat-label"},"Context",-1)),c("div",ev,A(Y(we)(s.value.contextInfo.totalTokens))+" / "+A(Y(we)(s.value.contextLimit)),1),l.value&&l.value.wasteRatio>.05?He((x(),k("div",{key:0,class:ie(["stat-projection",{"stat-projection--warn":l.value.wasteRatio>=.5}])},[ke(A(Math.round(l.value.wasteRatio*100))+"% overhead",1)],2)),[[K,"Structural overhead this turn: "+l.value.categories.map($=>`${$.label} ${Math.round($.pct*100)}%`).join(", ")]]):se("",!0),D.value?(x(),k("div",tv,[(x(!0),k(pe,null,Te(D.value,$=>(x(),k("div",{key:$.key,class:"stat-tape-seg",style:Se({flex:$.pct,background:$.color})},null,4))),128))])):(x(),k("div",nv,[c("div",{class:"util-fill",style:Se({width:Math.min(f.value*100,100)+"%",background:p.value})},null,4)]))],4),c("div",uv,[c("div",ov,A(Y(kt)(s.value.costUsd)),1),I[10]||(I[10]=c("div",{class:"stat-label"},"Turn cost",-1)),c("div",sv,A(Y(kt)(((j=r.value)==null?void 0:j.entries.reduce(($,P)=>$+(P.costUsd??0),0))??0))+" session",1),i.value!==null&&i.value>.001?He((x(),k("div",rv,[ke("~"+A(Y(kt)(i.value))+" bloat",1)])),[[K,"Estimated cost of oversized tool results and excess thinking across all turns — tokens re-billed every turn without adding new information"]]):se("",!0)]),c("div",iv,[c("div",lv,A(s.value.usage?Y(we)(s.value.usage.outputTokens):"—"),1),I[11]||(I[11]=c("div",{class:"stat-label"},"Output",-1)),s.value.timings?(x(),k("div",av,A(Y(cr)(s.value.timings.total_ms)),1)):se("",!0)]),s.value.healthScore?(x(),k("div",cv,[c("div",fv,[(x(),k("svg",dv,[I[12]||(I[12]=c("circle",{cx:"24",cy:"24",r:"19",fill:"none",stroke:"var(--border-dim)","stroke-width":"3","stroke-dasharray":`${89.5} 30`,"stroke-linecap":"round",transform:"rotate(135 24 24)"},null,-1)),c("circle",{cx:"24",cy:"24",r:"19",fill:"none",stroke:Y(dr)(s.value.healthScore.rating),"stroke-width":"3","stroke-dasharray":`${89.5*(s.value.healthScore.overall/100)} ${119.4-89.5*(s.value.healthScore.overall/100)}`,"stroke-linecap":"round",transform:"rotate(135 24 24)",style:{transition:"stroke-dasharray 0.6s ease"}},null,8,pv),c("text",{x:"24",y:"25","text-anchor":"middle","dominant-baseline":"central",fill:Y(dr)(s.value.healthScore.rating),"font-family":"var(--font-display)","font-size":"13","font-weight":"700"},A(s.value.healthScore.overall),9,hv)]))]),c("div",mv,[I[14]||(I[14]=ke("Health ",-1)),c("button",{class:"info-btn",onClick:I[2]||(I[2]=$=>u("health"))},[...I[13]||(I[13]=[c("i",{class:"i-carbon-information"},null,-1)])])])])):(x(),k("div",gv,[...I[15]||(I[15]=[c("div",{class:"stat-readout dim"},"—",-1),c("div",{class:"stat-label"},"Health",-1)])]))]),c("div",vv,[c("span",null,A(s.value.contextInfo.messages.length)+" messages",1),h.value!==null?(x(),k("span",bv," cache "+A(Y(fr)(h.value))+" hit ("+A(Y(we)(s.value.usage.cacheReadTokens))+"r / "+A(Y(we)(s.value.usage.cacheWriteTokens))+"w) ",1)):se("",!0),s.value.stopReason?(x(),k("span",_v,"stop: "+A(s.value.stopReason),1)):se("",!0),s.value.responseModel&&s.value.responseModel!==s.value.contextInfo.model?(x(),k("span",yv," model: "+A(s.value.responseModel),1)):se("",!0)]),Ie(t2,{entry:s.value,"turn-num":v.value,onCategoryClick:I[3]||(I[3]=$=>ge($,!1)),onToolClick:le,onFileClick:_e,onExplain:I[4]||(I[4]=$=>u("composition"))},null,8,["entry","turn-num"]),Ie(H2,{entry:s.value,recommendations:w.value,"audit-tooltip":S,onRecommendationClick:ne},null,8,["entry","recommendations"]),l.value&&l.value.wasteTokens>0?(x(),k("section",xv,[c("div",kv,[I[16]||(I[16]=c("span",{class:"panel-title"},"Structural Overhead",-1)),c("span",{class:ie(["overhead-ratio",l.value.wasteRatio>=.5?"rate-high":l.value.wasteRatio>=.3?"rate-med":"rate-low"])},A(Math.round(l.value.wasteRatio*100))+"% this turn ",3)]),c("div",wv,[c("div",Cv,[(x(!0),k(pe,null,Te(l.value.categories,$=>(x(),k("div",{key:$.id,class:"overhead-seg",style:Se({width:`${Math.round($.pct*100)}%`,background:$.color}),title:`${$.label}: ${Y(we)($.tokens)}`},null,12,$v))),128)),c("div",{class:"overhead-seg overhead-seg--useful",style:Se({width:`${Math.max(0,100-Math.round(l.value.wasteRatio*100))}%`}),title:"Useful context"},null,4)])]),c("div",Ev,[(x(!0),k(pe,null,Te(l.value.categories,$=>(x(),k("div",{key:$.id,class:"overhead-cat"},[c("span",{class:"overhead-dot",style:Se({background:$.color})},null,4),c("span",Tv,A($.label),1),c("span",Sv,A(Y(we)($.tokens)),1),c("span",Dv,A(Math.round($.pct*100))+"%",1)]))),128)),l.value.unusedToolNames.length?(x(),k("div",Av," Unused: "+A(l.value.unusedToolNames.slice(0,4).join(", "))+A(l.value.unusedToolNames.length>4?` +${l.value.unusedToolNames.length-4}`:""),1)):se("",!0)])])):se("",!0),Ie(Kc,{"diff-data":L.value,"current-entry":s.value,"previous-entry":y.value,"show-tapes":!0,"hide-unchanged":!0,"summary-mode":"combined","delta-tone":"bad",onCategoryClick:I[5]||(I[5]=$=>ge($,!1))},null,8,["diff-data","current-entry","previous-entry"]),R.value.length?(x(),k("section",Fv,[c("div",Mv,[I[17]||(I[17]=c("span",{class:"panel-title"},"Messages",-1)),c("span",Iv,A(T.value.length)+" messages · "+A(Y(we)(F.value)),1)]),c("div",Pv,[(x(!0),k(pe,null,Te(R.value,$=>(x(),k("div",{key:$.category,class:"msg-group-row",onClick:P=>ge($.category,!1)},[c("span",{class:"msg-group-dot",style:Se({background:ae($.category)})},null,4),c("span",Rv,A(te($.category)),1),c("span",Ov,A($.items.length),1),c("span",zv,A(Y(we)($.tokens)),1),c("span",Nv,A(V($.tokens))+"%",1),c("div",Bv,[c("div",{class:"msg-group-bar-fill",style:Se({width:ce($.tokens),background:ae($.category)})},null,4)])],8,Lv))),128)),c("button",{class:"msg-view-all",onClick:H},"View all messages ›")])])):se("",!0),ye.value.length>0?(x(),k("section",Hv,[c("div",jv,[I[18]||(I[18]=c("span",{class:"panel-title"},"Files",-1)),c("span",qv,A(ye.value.length)+" files · "+A(Y(we)(B.value)),1)]),c("div",Vv,[c("div",Uv,[(x(!0),k(pe,null,Te(ye.value,($,P)=>(x(),k("div",{key:$.path,class:"file-row",onClick:b=>de($.path)},[c("span",{class:"file-dot",style:Se({background:Y(mr)(P)})},null,4),He((x(),k("span",Kv,[c("span",Gv,A(Y(bl)($.path)?Y(bl)($.path)+"/":""),1),ke(A(Y(Wr)($.path)),1)])),[[K,$.path]]),c("span",Zv,[$.reads>0?He((x(),k("span",Jv,[ke(A($.reads)+"r",1)])),[[K,`${$.reads} read${$.reads>1?"s":""}`]]):se("",!0),$.writes>0?He((x(),k("span",Yv,[ke(A($.writes)+"w",1)])),[[K,`${$.writes} write/edit${$.writes>1?"s":""}`]]):se("",!0)]),c("span",Xv,A(Y(we)($.tokens)),1),c("span",Qv,A(ee($.tokens))+"%",1),c("div",eb,[c("div",{class:"file-bar-fill",style:Se({width:J($.tokens),background:Y(mr)(P)})},null,4)])],8,Wv))),128))])])])):se("",!0),Ie(K2,{open:t.value,section:n.value,onClose:I[6]||(I[6]=$=>t.value=!1)},null,8,["open","section"])])):se("",!0)}}}),nb=rt(tb,[["__scopeId","data-v-32d0879a"]]),ub={__name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],setup(e,{emit:t}){const n=t,u=e,o=zf(),s=he([]),r=O(()=>s.value.reduce((C,I)=>(C[~~I.id]=I)&&C,{})),i=O(()=>s.value.length),l=he(null),a=he(!1),f=he({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),p=he({splitter:null,timeoutId:null}),h=O(()=>({[`splitpanes splitpanes--${u.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":f.value.dragging})),g=()=>{document.addEventListener("mousemove",y,{passive:!1}),document.addEventListener("mouseup",E),"ontouchstart"in window&&(document.addEventListener("touchmove",y,{passive:!1}),document.addEventListener("touchend",E))},v=()=>{document.removeEventListener("mousemove",y,{passive:!1}),document.removeEventListener("mouseup",E),"ontouchstart"in window&&(document.removeEventListener("touchmove",y,{passive:!1}),document.removeEventListener("touchend",E))},w=(C,I)=>{const K=C.target.closest(".splitpanes__splitter");if(K){const{left:j,top:$}=K.getBoundingClientRect(),{clientX:P,clientY:b}="ontouchstart"in window&&C.touches?C.touches[0]:C;f.value.cursorOffset=u.horizontal?b-$:P-j}g(),f.value.mouseDown=!0,f.value.activeSplitter=I},y=C=>{f.value.mouseDown&&(C.preventDefault(),f.value.dragging=!0,requestAnimationFrame(()=>{ue(R(C)),n("resize",s.value.map(I=>({min:I.min,max:I.max,size:I.size})))}))},E=()=>{f.value.dragging&&n("resized",s.value.map(C=>({min:C.min,max:C.max,size:C.size}))),f.value.mouseDown=!1,setTimeout(()=>{f.value.dragging=!1,v()},100)},D=(C,I)=>{"ontouchstart"in window&&(C.preventDefault(),u.dblClickSplitter&&(p.value.splitter===I?(clearTimeout(p.value.timeoutId),p.value.timeoutId=null,L(C,I),p.value.splitter=null):(p.value.splitter=I,p.value.timeoutId=setTimeout(()=>p.value.splitter=null,500)))),f.value.dragging||n("splitter-click",s.value[I])},L=(C,I)=>{let K=0;s.value=s.value.map((j,$)=>(j.size=$===I?j.max:j.min,$!==I&&(K+=j.min),j)),s.value[I].size-=K,n("pane-maximize",s.value[I]),n("resized",s.value.map(j=>({min:j.min,max:j.max,size:j.size})))},T=(C,I)=>{n("pane-click",r.value[I])},R=C=>{const I=l.value.getBoundingClientRect(),{clientX:K,clientY:j}="ontouchstart"in window&&C.touches?C.touches[0]:C;return{x:K-(u.horizontal?0:f.value.cursorOffset)-I.left,y:j-(u.horizontal?f.value.cursorOffset:0)-I.top}},F=C=>{C=C[u.horizontal?"y":"x"];const I=l.value[u.horizontal?"clientHeight":"clientWidth"];return u.rtl&&!u.horizontal&&(C=I-C),C*100/I},ue=C=>{const I=f.value.activeSplitter;let K={prevPanesSize:U(I),nextPanesSize:Z(I),prevReachedMinPanes:0,nextReachedMinPanes:0};const j=0+(u.pushOtherPanes?0:K.prevPanesSize),$=100-(u.pushOtherPanes?0:K.nextPanesSize),P=Math.max(Math.min(F(C),$),j);let b=[I,I+1],d=s.value[b[0]]||null,m=s.value[b[1]]||null;const _=d.max<100&&P>=d.max+K.prevPanesSize,M=m.max<100&&P<=100-(m.max+Z(I+1));if(_||M){_?(d.size=d.max,m.size=Math.max(100-d.max-K.prevPanesSize-K.nextPanesSize,0)):(d.size=Math.max(100-m.max-K.prevPanesSize-Z(I+1),0),m.size=m.max);return}if(u.pushOtherPanes){const z=X(K,P);if(!z)return;({sums:K,panesToResize:b}=z),d=s.value[b[0]]||null,m=s.value[b[1]]||null}d!==null&&(d.size=Math.min(Math.max(P-K.prevPanesSize-K.prevReachedMinPanes,d.min),d.max)),m!==null&&(m.size=Math.min(Math.max(100-P-K.nextPanesSize-K.nextReachedMinPanes,m.min),m.max))},X=(C,I)=>{const K=f.value.activeSplitter,j=[K,K+1];return I<C.prevPanesSize+s.value[j[0]].min&&(j[0]=ge(K).index,C.prevReachedMinPanes=0,j[0]<K&&s.value.forEach(($,P)=>{P>j[0]&&P<=K&&($.size=$.min,C.prevReachedMinPanes+=$.min)}),C.prevPanesSize=U(j[0]),j[0]===void 0)?(C.prevReachedMinPanes=0,s.value[0].size=s.value[0].min,s.value.forEach(($,P)=>{P>0&&P<=K&&($.size=$.min,C.prevReachedMinPanes+=$.min)}),s.value[j[1]].size=100-C.prevReachedMinPanes-s.value[0].min-C.prevPanesSize-C.nextPanesSize,null):I>100-C.nextPanesSize-s.value[j[1]].min&&(j[1]=H(K).index,C.nextReachedMinPanes=0,j[1]>K+1&&s.value.forEach(($,P)=>{P>K&&P<j[1]&&($.size=$.min,C.nextReachedMinPanes+=$.min)}),C.nextPanesSize=Z(j[1]-1),j[1]===void 0)?(C.nextReachedMinPanes=0,s.value.forEach(($,P)=>{P<i.value-1&&P>=K+1&&($.size=$.min,C.nextReachedMinPanes+=$.min)}),s.value[j[0]].size=100-C.prevPanesSize-Z(j[0]-1),null):{sums:C,panesToResize:j}},U=C=>s.value.reduce((I,K,j)=>I+(j<C?K.size:0),0),Z=C=>s.value.reduce((I,K,j)=>I+(j>C+1?K.size:0),0),ge=C=>[...s.value].reverse().find(I=>I.index<C&&I.size>I.min)||{},H=C=>s.value.find(I=>I.index>C+1&&I.size>I.min)||{},le=()=>{var C;Array.from(((C=l.value)==null?void 0:C.children)||[]).forEach(I=>{const K=I.classList.contains("splitpanes__pane"),j=I.classList.contains("splitpanes__splitter");!K&&!j&&(I.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},ne=(C,I,K=!1)=>{const j=C-1,$=document.createElement("div");$.classList.add("splitpanes__splitter"),K||($.onmousedown=P=>w(P,j),typeof window<"u"&&"ontouchstart"in window&&($.ontouchstart=P=>w(P,j)),$.onclick=P=>D(P,j+1)),u.dblClickSplitter&&($.ondblclick=P=>L(P,j+1)),I.parentNode.insertBefore($,I)},S=C=>{C.onmousedown=void 0,C.onclick=void 0,C.ondblclick=void 0,C.remove()},te=()=>{var C;const I=Array.from(((C=l.value)==null?void 0:C.children)||[]);I.forEach(j=>{j.className.includes("splitpanes__splitter")&&S(j)});let K=0;I.forEach(j=>{j.className.includes("splitpanes__pane")&&(!K&&u.firstSplitter?ne(K,j,!0):K&&ne(K,j),K++)})},ae=({uid:C,...I})=>{const K=r.value[C];Object.entries(I).forEach(([j,$])=>K[j]=$)},V=C=>{var I;let K=-1;Array.from(((I=l.value)==null?void 0:I.children)||[]).some(j=>(j.className.includes("splitpanes__pane")&&K++,j.isSameNode(C.el))),s.value.splice(K,0,{...C,index:K}),s.value.forEach((j,$)=>j.index=$),a.value&&Je(()=>{te(),ye({addedPane:s.value[K]}),n("pane-add",{index:K,panes:s.value.map(j=>({min:j.min,max:j.max,size:j.size}))})})},ce=C=>{const I=s.value.findIndex(j=>j.id===C),K=s.value.splice(I,1)[0];s.value.forEach((j,$)=>j.index=$),Je(()=>{te(),ye({removedPane:{...K}}),n("pane-remove",{removed:K,panes:s.value.map(j=>({min:j.min,max:j.max,size:j.size}))})})},ye=(C={})=>{!C.addedPane&&!C.removedPane?ee():s.value.some(I=>I.givenSize!==null||I.min||I.max<100)?J(C):B(),a.value&&n("resized",s.value.map(I=>({min:I.min,max:I.max,size:I.size})))},B=()=>{const C=100/i.value;let I=0;const K=[],j=[];s.value.forEach($=>{$.size=Math.max(Math.min(C,$.max),$.min),I-=$.size,$.size>=$.max&&K.push($.id),$.size<=$.min&&j.push($.id)}),I>.1&&de(I,K,j)},ee=()=>{let C=100;const I=[],K=[];let j=0;s.value.forEach(P=>{C-=P.size,P.givenSize!==null&&j++,P.size>=P.max&&I.push(P.id),P.size<=P.min&&K.push(P.id)});let $=100;C>.1&&(s.value.forEach(P=>{P.givenSize===null&&(P.size=Math.max(Math.min(C/(i.value-j),P.max),P.min)),$-=P.size}),$>.1&&de($,I,K))},J=({addedPane:C,removedPane:I}={})=>{let K=100/i.value,j=0;const $=[],P=[];((C==null?void 0:C.givenSize)??null)!==null&&(K=(100-C.givenSize)/(i.value-1).value),s.value.forEach(b=>{j-=b.size,b.size>=b.max&&$.push(b.id),b.size<=b.min&&P.push(b.id)}),!(Math.abs(j)<.1)&&(s.value.forEach(b=>{(C==null?void 0:C.givenSize)!==null&&(C==null?void 0:C.id)===b.id||(b.size=Math.max(Math.min(K,b.max),b.min)),j-=b.size,b.size>=b.max&&$.push(b.id),b.size<=b.min&&P.push(b.id)}),j>.1&&de(j,$,P))},de=(C,I,K)=>{let j;C>0?j=C/(i.value-I.length):j=C/(i.value-K.length),s.value.forEach(($,P)=>{if(C>0&&!I.includes($.id)){const b=Math.max(Math.min($.size+j,$.max),$.min),d=b-$.size;C-=d,$.size=b}else if(!K.includes($.id)){const b=Math.max(Math.min($.size+j,$.max),$.min),d=b-$.size;C-=d,$.size=b}}),Math.abs(C)>.1&&Je(()=>{a.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};Ge(()=>u.firstSplitter,()=>te()),Ge(()=>u.dblClickSplitter,C=>{[...l.value.querySelectorAll(".splitpanes__splitter")].forEach((I,K)=>{I.ondblclick=C?j=>L(j,K):void 0})}),ns(()=>a.value=!1),On(()=>{le(),te(),ye(),n("ready"),a.value=!0});const _e=()=>{var C;return Br("div",{ref:l,class:h.value},(C=o.default)==null?void 0:C.call(o))};return xn("panes",s),xn("indexedPanes",r),xn("horizontal",O(()=>u.horizontal)),xn("requestUpdate",ae),xn("onPaneAdd",V),xn("onPaneRemove",ce),xn("onPaneClick",T),(C,I)=>(x(),_t(Oa(_e)))}},wl={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const n=e,u=Rt("requestUpdate"),o=Rt("onPaneAdd"),s=Rt("horizontal"),r=Rt("onPaneRemove"),i=Rt("onPaneClick"),l=(t=ro())==null?void 0:t.uid,a=Rt("indexedPanes"),f=O(()=>a.value[l]),p=he(null),h=O(()=>{const y=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(y,v.value),g.value)}),g=O(()=>{const y=parseFloat(n.minSize);return isNaN(y)?0:y}),v=O(()=>{const y=parseFloat(n.maxSize);return isNaN(y)?100:y}),w=O(()=>{var y;return`${s.value?"height":"width"}: ${(y=f.value)==null?void 0:y.size}%`});return On(()=>{o({id:l,el:p.value,min:g.value,max:v.value,givenSize:n.size===void 0?null:h.value,size:h.value})}),Ge(()=>h.value,y=>u({uid:l,size:y})),Ge(()=>g.value,y=>u({uid:l,min:y})),Ge(()=>v.value,y=>u({uid:l,max:y})),ns(()=>r(l)),(y,E)=>(x(),k("div",{ref_key:"paneEl",ref:p,class:"splitpanes__pane",onClick:E[0]||(E[0]=D=>Y(i)(D,y._.uid)),style:Se(w.value)},[Hu(y.$slots,"default")],4))}};function ob(){const e=uo(new Set);function t(r){e.has(r)?e.delete(r):e.add(r)}function n(r){return e.has(r)}function u(r){e.add(r)}function o(r){e.delete(r)}function s(){e.clear()}return{expanded:e,toggle:t,isExpanded:n,expand:u,collapse:o,collapseAll:s}}const sb="modulepreload",rb=function(e){return"/"+e},Cl={},je=function(t,n,u){let o=Promise.resolve();if(n&&n.length>0){let r=function(a){return Promise.all(a.map(f=>Promise.resolve(f).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=r(n.map(a=>{if(a=rb(a),a in Cl)return;Cl[a]=!0;const f=a.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${p}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":sb,f||(h.as="script"),h.crossOrigin="",h.href=a,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((g,v)=>{h.addEventListener("load",g),h.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${a}`)))})}))}function s(r){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=r,window.dispatchEvent(i),!i.defaultPrevented)throw r}return o.then(r=>{for(const i of r||[])i.status==="rejected"&&s(i.reason);return t().catch(s)})},$l={};function ib(e){let t=$l[e];if(t)return t;t=$l[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);t.push(u)}for(let n=0;n<e.length;n++){const u=e.charCodeAt(n);t[u]="%"+("0"+u.toString(16).toUpperCase()).slice(-2)}return t}function du(e,t){typeof t!="string"&&(t=du.defaultChars);const n=ib(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(u){let o="";for(let s=0,r=u.length;s<r;s+=3){const i=parseInt(u.slice(s+1,s+3),16);if(i<128){o+=n[i];continue}if((i&224)===192&&s+3<r){const l=parseInt(u.slice(s+4,s+6),16);if((l&192)===128){const a=i<<6&1984|l&63;a<128?o+="��":o+=String.fromCharCode(a),s+=3;continue}}if((i&240)===224&&s+6<r){const l=parseInt(u.slice(s+4,s+6),16),a=parseInt(u.slice(s+7,s+9),16);if((l&192)===128&&(a&192)===128){const f=i<<12&61440|l<<6&4032|a&63;f<2048||f>=55296&&f<=57343?o+="���":o+=String.fromCharCode(f),s+=6;continue}}if((i&248)===240&&s+9<r){const l=parseInt(u.slice(s+4,s+6),16),a=parseInt(u.slice(s+7,s+9),16),f=parseInt(u.slice(s+10,s+12),16);if((l&192)===128&&(a&192)===128&&(f&192)===128){let p=i<<18&1835008|l<<12&258048|a<<6&4032|f&63;p<65536||p>1114111?o+="����":(p-=65536,o+=String.fromCharCode(55296+(p>>10),56320+(p&1023))),s+=9;continue}}o+="�"}return o})}du.defaultChars=";/?:@&=+$,#";du.componentChars="";const El={};function lb(e){let t=El[e];if(t)return t;t=El[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);/^[0-9a-z]$/i.test(u)?t.push(u):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function lo(e,t,n){typeof t!="string"&&(n=t,t=lo.defaultChars),typeof n>"u"&&(n=!0);const u=lb(t);let o="";for(let s=0,r=e.length;s<r;s++){const i=e.charCodeAt(s);if(n&&i===37&&s+2<r&&/^[0-9a-f]{2}$/i.test(e.slice(s+1,s+3))){o+=e.slice(s,s+3),s+=2;continue}if(i<128){o+=u[i];continue}if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&s+1<r){const l=e.charCodeAt(s+1);if(l>=56320&&l<=57343){o+=encodeURIComponent(e[s]+e[s+1]),s++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[s])}return o}lo.defaultChars=";/?:@&=+$,-_.!~*'()#";lo.componentChars="-_.!~*'()";function Gr(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function jo(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const ab=/^([a-z0-9.+-]+:)/i,cb=/:[0-9]*$/,fb=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,db=["<",">",'"',"`"," ","\r",`
|
|
29
|
+
`," "],pb=["{","}","|","\\","^","`"].concat(db),hb=["'"].concat(pb),Tl=["%","/","?",";","#"].concat(hb),Sl=["/","?","#"],mb=255,Dl=/^[+a-z0-9A-Z_-]{0,63}$/,gb=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Al={javascript:!0,"javascript:":!0},Fl={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Zr(e,t){if(e&&e instanceof jo)return e;const n=new jo;return n.parse(e,t),n}jo.prototype.parse=function(e,t){let n,u,o,s=e;if(s=s.trim(),!t&&e.split("#").length===1){const a=fb.exec(s);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}let r=ab.exec(s);if(r&&(r=r[0],n=r.toLowerCase(),this.protocol=r,s=s.substr(r.length)),(t||r||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=s.substr(0,2)==="//",o&&!(r&&Al[r])&&(s=s.substr(2),this.slashes=!0)),!Al[r]&&(o||r&&!Fl[r])){let a=-1;for(let v=0;v<Sl.length;v++)u=s.indexOf(Sl[v]),u!==-1&&(a===-1||u<a)&&(a=u);let f,p;a===-1?p=s.lastIndexOf("@"):p=s.lastIndexOf("@",a),p!==-1&&(f=s.slice(0,p),s=s.slice(p+1),this.auth=f),a=-1;for(let v=0;v<Tl.length;v++)u=s.indexOf(Tl[v]),u!==-1&&(a===-1||u<a)&&(a=u);a===-1&&(a=s.length),s[a-1]===":"&&a--;const h=s.slice(0,a);s=s.slice(a),this.parseHost(h),this.hostname=this.hostname||"";const g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){const v=this.hostname.split(/\./);for(let w=0,y=v.length;w<y;w++){const E=v[w];if(E&&!E.match(Dl)){let D="";for(let L=0,T=E.length;L<T;L++)E.charCodeAt(L)>127?D+="x":D+=E[L];if(!D.match(Dl)){const L=v.slice(0,w),T=v.slice(w+1),R=E.match(gb);R&&(L.push(R[1]),T.unshift(R[2])),T.length&&(s=T.join(".")+s),this.hostname=L.join(".");break}}}}this.hostname.length>mb&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const i=s.indexOf("#");i!==-1&&(this.hash=s.substr(i),s=s.slice(0,i));const l=s.indexOf("?");return l!==-1&&(this.search=s.substr(l),s=s.slice(0,l)),s&&(this.pathname=s),Fl[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};jo.prototype.parseHost=function(e){let t=cb.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const vb=Object.freeze(Object.defineProperty({__proto__:null,decode:du,encode:lo,format:Gr,parse:Zr},Symbol.toStringTag,{value:"Module"})),Gc=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Zc=/[\0-\x1F\x7F-\x9F]/,bb=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Jr=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Jc=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Yc=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,_b=Object.freeze(Object.defineProperty({__proto__:null,Any:Gc,Cc:Zc,Cf:bb,P:Jr,S:Jc,Z:Yc},Symbol.toStringTag,{value:"Module"})),yb=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),xb=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Os;const kb=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),wb=(Os=String.fromCodePoint)!==null&&Os!==void 0?Os:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Cb(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=kb.get(e))!==null&&t!==void 0?t:e}var lt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(lt||(lt={}));const $b=32;var Dn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Dn||(Dn={}));function gr(e){return e>=lt.ZERO&&e<=lt.NINE}function Eb(e){return e>=lt.UPPER_A&&e<=lt.UPPER_F||e>=lt.LOWER_A&&e<=lt.LOWER_F}function Tb(e){return e>=lt.UPPER_A&&e<=lt.UPPER_Z||e>=lt.LOWER_A&&e<=lt.LOWER_Z||gr(e)}function Sb(e){return e===lt.EQUALS||Tb(e)}var it;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(it||(it={}));var Sn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Sn||(Sn={}));class Db{constructor(t,n,u){this.decodeTree=t,this.emitCodePoint=n,this.errors=u,this.state=it.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Sn.Strict}startEntity(t){this.decodeMode=t,this.state=it.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case it.EntityStart:return t.charCodeAt(n)===lt.NUM?(this.state=it.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=it.NamedEntity,this.stateNamedEntity(t,n));case it.NumericStart:return this.stateNumericStart(t,n);case it.NumericDecimal:return this.stateNumericDecimal(t,n);case it.NumericHex:return this.stateNumericHex(t,n);case it.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|$b)===lt.LOWER_X?(this.state=it.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=it.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,u,o){if(n!==u){const s=u-n;this.result=this.result*Math.pow(o,s)+parseInt(t.substr(n,s),o),this.consumed+=s}}stateNumericHex(t,n){const u=n;for(;n<t.length;){const o=t.charCodeAt(n);if(gr(o)||Eb(o))n+=1;else return this.addToNumericResult(t,u,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,u,n,16),-1}stateNumericDecimal(t,n){const u=n;for(;n<t.length;){const o=t.charCodeAt(n);if(gr(o))n+=1;else return this.addToNumericResult(t,u,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,u,n,10),-1}emitNumericEntity(t,n){var u;if(this.consumed<=n)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===lt.SEMI)this.consumed+=1;else if(this.decodeMode===Sn.Strict)return 0;return this.emitCodePoint(Cb(this.result),this.consumed),this.errors&&(t!==lt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:u}=this;let o=u[this.treeIndex],s=(o&Dn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const r=t.charCodeAt(n);if(this.treeIndex=Ab(u,o,this.treeIndex+Math.max(1,s),r),this.treeIndex<0)return this.result===0||this.decodeMode===Sn.Attribute&&(s===0||Sb(r))?0:this.emitNotTerminatedNamedEntity();if(o=u[this.treeIndex],s=(o&Dn.VALUE_LENGTH)>>14,s!==0){if(r===lt.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Sn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:u}=this,o=(u[n]&Dn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,u){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~Dn.VALUE_LENGTH:o[t+1],u),n===3&&this.emitCodePoint(o[t+2],u),u}end(){var t;switch(this.state){case it.NamedEntity:return this.result!==0&&(this.decodeMode!==Sn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case it.NumericDecimal:return this.emitNumericEntity(0,2);case it.NumericHex:return this.emitNumericEntity(0,3);case it.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case it.EntityStart:return 0}}}function Xc(e){let t="";const n=new Db(e,u=>t+=wb(u));return function(o,s){let r=0,i=0;for(;(i=o.indexOf("&",i))>=0;){t+=o.slice(r,i),n.startEntity(s);const a=n.write(o,i+1);if(a<0){r=i+n.end();break}r=i+a,i=a===0?r+1:r}const l=t+o.slice(r);return t="",l}}function Ab(e,t,n,u){const o=(t&Dn.BRANCH_LENGTH)>>7,s=t&Dn.JUMP_TABLE;if(o===0)return s!==0&&u===s?n:-1;if(s){const l=u-s;return l<0||l>=o?-1:e[n+l]-1}let r=n,i=r+o-1;for(;r<=i;){const l=r+i>>>1,a=e[l];if(a<u)r=l+1;else if(a>u)i=l-1;else return e[l+o]}return-1}const Fb=Xc(yb);Xc(xb);function Qc(e,t=Sn.Legacy){return Fb(e,t)}function Mb(e){return Object.prototype.toString.call(e)}function Yr(e){return Mb(e)==="[object String]"}const Ib=Object.prototype.hasOwnProperty;function Pb(e,t){return Ib.call(e,t)}function ds(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(u){e[u]=n[u]})}}),e}function e0(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Xr(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function qo(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const t0=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Lb=/&([a-z#][a-z0-9]{1,31});/gi,Rb=new RegExp(t0.source+"|"+Lb.source,"gi"),Ob=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function zb(e,t){if(t.charCodeAt(0)===35&&Ob.test(t)){const u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Xr(u)?qo(u):e}const n=Qc(e);return n!==e?n:e}function Nb(e){return e.indexOf("\\")<0?e:e.replace(t0,"$1")}function pu(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Rb,function(t,n,u){return n||zb(t,u)})}const Bb=/[&<>"]/,Hb=/[&<>"]/g,jb={"&":"&","<":"<",">":">",'"':"""};function qb(e){return jb[e]}function Ln(e){return Bb.test(e)?e.replace(Hb,qb):e}const Vb=/[.?*+^$[\]\\(){}|-]/g;function Ub(e){return e.replace(Vb,"\\$&")}function Ze(e){switch(e){case 9:case 32:return!0}return!1}function Xu(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Qu(e){return Jr.test(e)||Jc.test(e)}function eo(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ps(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Wb={mdurl:vb,ucmicro:_b},Kb=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:e0,assign:ds,escapeHtml:Ln,escapeRE:Ub,fromCodePoint:qo,has:Pb,isMdAsciiPunct:eo,isPunctChar:Qu,isSpace:Ze,isString:Yr,isValidEntityCode:Xr,isWhiteSpace:Xu,lib:Wb,normalizeReference:ps,unescapeAll:pu,unescapeMd:Nb},Symbol.toStringTag,{value:"Module"}));function Gb(e,t,n){let u,o,s,r;const i=e.posMax,l=e.pos;for(e.pos=t+1,u=1;e.pos<i;){if(s=e.src.charCodeAt(e.pos),s===93&&(u--,u===0)){o=!0;break}if(r=e.pos,e.md.inline.skipToken(e),s===91){if(r===e.pos-1)u++;else if(n)return e.pos=l,-1}}let a=-1;return o&&(a=e.pos),e.pos=l,a}function Zb(e,t,n){let u,o=t;const s={ok:!1,pos:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<n;){if(u=e.charCodeAt(o),u===10||u===60)return s;if(u===62)return s.pos=o+1,s.str=pu(e.slice(t+1,o)),s.ok=!0,s;if(u===92&&o+1<n){o+=2;continue}o++}return s}let r=0;for(;o<n&&(u=e.charCodeAt(o),!(u===32||u<32||u===127));){if(u===92&&o+1<n){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(u===40&&(r++,r>32))return s;if(u===41){if(r===0)break;r--}o++}return t===o||r!==0||(s.str=pu(e.slice(t,o)),s.pos=o,s.ok=!0),s}function Jb(e,t,n,u){let o,s=t;const r={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(u)r.str=u.str,r.marker=u.marker;else{if(s>=n)return r;let i=e.charCodeAt(s);if(i!==34&&i!==39&&i!==40)return r;t++,s++,i===40&&(i=41),r.marker=i}for(;s<n;){if(o=e.charCodeAt(s),o===r.marker)return r.pos=s+1,r.str+=pu(e.slice(t,s)),r.ok=!0,r;if(o===40&&r.marker===41)return r;o===92&&s+1<n&&s++,s++}return r.can_continue=!0,r.str+=pu(e.slice(t,s)),r}const Yb=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Zb,parseLinkLabel:Gb,parseLinkTitle:Jb},Symbol.toStringTag,{value:"Module"})),un={};un.code_inline=function(e,t,n,u,o){const s=e[t];return"<code"+o.renderAttrs(s)+">"+Ln(s.content)+"</code>"};un.code_block=function(e,t,n,u,o){const s=e[t];return"<pre"+o.renderAttrs(s)+"><code>"+Ln(e[t].content)+`</code></pre>
|
|
30
|
+
`};un.fence=function(e,t,n,u,o){const s=e[t],r=s.info?pu(s.info).trim():"";let i="",l="";if(r){const f=r.split(/(\s+)/g);i=f[0],l=f.slice(2).join("")}let a;if(n.highlight?a=n.highlight(s.content,i,l)||Ln(s.content):a=Ln(s.content),a.indexOf("<pre")===0)return a+`
|
|
31
|
+
`;if(r){const f=s.attrIndex("class"),p=s.attrs?s.attrs.slice():[];f<0?p.push(["class",n.langPrefix+i]):(p[f]=p[f].slice(),p[f][1]+=" "+n.langPrefix+i);const h={attrs:p};return`<pre><code${o.renderAttrs(h)}>${a}</code></pre>
|
|
32
|
+
`}return`<pre><code${o.renderAttrs(s)}>${a}</code></pre>
|
|
33
|
+
`};un.image=function(e,t,n,u,o){const s=e[t];return s.attrs[s.attrIndex("alt")][1]=o.renderInlineAsText(s.children,n,u),o.renderToken(e,t,n)};un.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
34
|
+
`:`<br>
|
|
35
|
+
`};un.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
36
|
+
`:`<br>
|
|
37
|
+
`:`
|
|
38
|
+
`};un.text=function(e,t){return Ln(e[t].content)};un.html_block=function(e,t){return e[t].content};un.html_inline=function(e,t){return e[t].content};function hu(){this.rules=ds({},un)}hu.prototype.renderAttrs=function(t){let n,u,o;if(!t.attrs)return"";for(o="",n=0,u=t.attrs.length;n<u;n++)o+=" "+Ln(t.attrs[n][0])+'="'+Ln(t.attrs[n][1])+'"';return o};hu.prototype.renderToken=function(t,n,u){const o=t[n];let s="";if(o.hidden)return"";o.block&&o.nesting!==-1&&n&&t[n-1].hidden&&(s+=`
|
|
39
|
+
`),s+=(o.nesting===-1?"</":"<")+o.tag,s+=this.renderAttrs(o),o.nesting===0&&u.xhtmlOut&&(s+=" /");let r=!1;if(o.block&&(r=!0,o.nesting===1&&n+1<t.length)){const i=t[n+1];(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===o.tag)&&(r=!1)}return s+=r?`>
|
|
40
|
+
`:">",s};hu.prototype.renderInline=function(e,t,n){let u="";const o=this.rules;for(let s=0,r=e.length;s<r;s++){const i=e[s].type;typeof o[i]<"u"?u+=o[i](e,s,t,n,this):u+=this.renderToken(e,s,t)}return u};hu.prototype.renderInlineAsText=function(e,t,n){let u="";for(let o=0,s=e.length;o<s;o++)switch(e[o].type){case"text":u+=e[o].content;break;case"image":u+=this.renderInlineAsText(e[o].children,t,n);break;case"html_inline":case"html_block":u+=e[o].content;break;case"softbreak":case"hardbreak":u+=`
|
|
41
|
+
`;break}return u};hu.prototype.render=function(e,t,n){let u="";const o=this.rules;for(let s=0,r=e.length;s<r;s++){const i=e[s].type;i==="inline"?u+=this.renderInline(e[s].children,t,n):typeof o[i]<"u"?u+=o[i](e,s,t,n,this):u+=this.renderToken(e,s,t,n)}return u};function wt(){this.__rules__=[],this.__cache__=null}wt.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};wt.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(u){t.indexOf(u)<0&&t.push(u)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(u){u.enabled&&(n&&u.alt.indexOf(n)<0||e.__cache__[n].push(u.fn))})})};wt.prototype.at=function(e,t,n){const u=this.__find__(e),o=n||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__[u].fn=t,this.__rules__[u].alt=o.alt||[],this.__cache__=null};wt.prototype.before=function(e,t,n,u){const o=this.__find__(e),s=u||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};wt.prototype.after=function(e,t,n,u){const o=this.__find__(e),s=u||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};wt.prototype.push=function(e,t,n){const u=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:u.alt||[]}),this.__cache__=null};wt.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const o=this.__find__(u);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[o].enabled=!0,n.push(u)},this),this.__cache__=null,n};wt.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};wt.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const o=this.__find__(u);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[o].enabled=!1,n.push(u)},this),this.__cache__=null,n};wt.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Vt(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Vt.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let u=0,o=n.length;u<o;u++)if(n[u][0]===t)return u;return-1};Vt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Vt.prototype.attrSet=function(t,n){const u=this.attrIndex(t),o=[t,n];u<0?this.attrPush(o):this.attrs[u]=o};Vt.prototype.attrGet=function(t){const n=this.attrIndex(t);let u=null;return n>=0&&(u=this.attrs[n][1]),u};Vt.prototype.attrJoin=function(t,n){const u=this.attrIndex(t);u<0?this.attrPush([t,n]):this.attrs[u][1]=this.attrs[u][1]+" "+n};function n0(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}n0.prototype.Token=Vt;const Xb=/\r\n?|\n/g,Qb=/\0/g;function e_(e){let t;t=e.src.replace(Xb,`
|
|
42
|
+
`),t=t.replace(Qb,"�"),e.src=t}function t_(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function n_(e){const t=e.tokens;for(let n=0,u=t.length;n<u;n++){const o=t[n];o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)}}function u_(e){return/^<a[>\s]/i.test(e)}function o_(e){return/^<\/a\s*>/i.test(e)}function s_(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,u=t.length;n<u;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let o=t[n].children,s=0;for(let r=o.length-1;r>=0;r--){const i=o[r];if(i.type==="link_close"){for(r--;o[r].level!==i.level&&o[r].type!=="link_open";)r--;continue}if(i.type==="html_inline"&&(u_(i.content)&&s>0&&s--,o_(i.content)&&s++),!(s>0)&&i.type==="text"&&e.md.linkify.test(i.content)){const l=i.content;let a=e.md.linkify.match(l);const f=[];let p=i.level,h=0;a.length>0&&a[0].index===0&&r>0&&o[r-1].type==="text_special"&&(a=a.slice(1));for(let g=0;g<a.length;g++){const v=a[g].url,w=e.md.normalizeLink(v);if(!e.md.validateLink(w))continue;let y=a[g].text;a[g].schema?a[g].schema==="mailto:"&&!/^mailto:/i.test(y)?y=e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):y=e.md.normalizeLinkText(y):y=e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,"");const E=a[g].index;if(E>h){const R=new e.Token("text","",0);R.content=l.slice(h,E),R.level=p,f.push(R)}const D=new e.Token("link_open","a",1);D.attrs=[["href",w]],D.level=p++,D.markup="linkify",D.info="auto",f.push(D);const L=new e.Token("text","",0);L.content=y,L.level=p,f.push(L);const T=new e.Token("link_close","a",-1);T.level=--p,T.markup="linkify",T.info="auto",f.push(T),h=a[g].lastIndex}if(h<l.length){const g=new e.Token("text","",0);g.content=l.slice(h),g.level=p,f.push(g)}t[n].children=o=e0(o,r,f)}}}}const u0=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,r_=/\((c|tm|r)\)/i,i_=/\((c|tm|r)\)/ig,l_={c:"©",r:"®",tm:"™"};function a_(e,t){return l_[t.toLowerCase()]}function c_(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&(u.content=u.content.replace(i_,a_)),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function f_(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&u0.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function d_(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(r_.test(e.tokens[t].content)&&c_(e.tokens[t].children),u0.test(e.tokens[t].content)&&f_(e.tokens[t].children))}const p_=/['"]/,Ml=/['"]/g,Il="’";function _o(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function h_(e,t){let n;const u=[];for(let o=0;o<e.length;o++){const s=e[o],r=e[o].level;for(n=u.length-1;n>=0&&!(u[n].level<=r);n--);if(u.length=n+1,s.type!=="text")continue;let i=s.content,l=0,a=i.length;e:for(;l<a;){Ml.lastIndex=l;const f=Ml.exec(i);if(!f)break;let p=!0,h=!0;l=f.index+1;const g=f[0]==="'";let v=32;if(f.index-1>=0)v=i.charCodeAt(f.index-1);else for(n=o-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){v=e[n].content.charCodeAt(e[n].content.length-1);break}let w=32;if(l<a)w=i.charCodeAt(l);else for(n=o+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){w=e[n].content.charCodeAt(0);break}const y=eo(v)||Qu(String.fromCharCode(v)),E=eo(w)||Qu(String.fromCharCode(w)),D=Xu(v),L=Xu(w);if(L?p=!1:E&&(D||y||(p=!1)),D?h=!1:y&&(L||E||(h=!1)),w===34&&f[0]==='"'&&v>=48&&v<=57&&(h=p=!1),p&&h&&(p=y,h=E),!p&&!h){g&&(s.content=_o(s.content,f.index,Il));continue}if(h)for(n=u.length-1;n>=0;n--){let T=u[n];if(u[n].level<r)break;if(T.single===g&&u[n].level===r){T=u[n];let R,F;g?(R=t.md.options.quotes[2],F=t.md.options.quotes[3]):(R=t.md.options.quotes[0],F=t.md.options.quotes[1]),s.content=_o(s.content,f.index,F),e[T.token].content=_o(e[T.token].content,T.pos,R),l+=F.length-1,T.token===o&&(l+=R.length-1),i=s.content,a=i.length,u.length=n;continue e}}p?u.push({token:o,pos:f.index,single:g,level:r}):h&&g&&(s.content=_o(s.content,f.index,Il))}}}function m_(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!p_.test(e.tokens[t].content)||h_(e.tokens[t].children,e)}function g_(e){let t,n;const u=e.tokens,o=u.length;for(let s=0;s<o;s++){if(u[s].type!=="inline")continue;const r=u[s].children,i=r.length;for(t=0;t<i;t++)r[t].type==="text_special"&&(r[t].type="text");for(t=n=0;t<i;t++)r[t].type==="text"&&t+1<i&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}}const zs=[["normalize",e_],["block",t_],["inline",n_],["linkify",s_],["replacements",d_],["smartquotes",m_],["text_join",g_]];function Qr(){this.ruler=new wt;for(let e=0;e<zs.length;e++)this.ruler.push(zs[e][0],zs[e][1])}Qr.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,u=t.length;n<u;n++)t[n](e)};Qr.prototype.State=n0;function on(e,t,n,u){this.src=e,this.md=t,this.env=n,this.tokens=u,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let s=0,r=0,i=0,l=0,a=o.length,f=!1;r<a;r++){const p=o.charCodeAt(r);if(!f)if(Ze(p)){i++,p===9?l+=4-l%4:l++;continue}else f=!0;(p===10||r===a-1)&&(p!==10&&r++,this.bMarks.push(s),this.eMarks.push(r),this.tShift.push(i),this.sCount.push(l),this.bsCount.push(0),f=!1,i=0,l=0,s=r+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}on.prototype.push=function(e,t,n){const u=new Vt(e,t,n);return u.block=!0,n<0&&this.level--,u.level=this.level,n>0&&this.level++,this.tokens.push(u),u};on.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};on.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};on.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const u=this.src.charCodeAt(t);if(!Ze(u))break}return t};on.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!Ze(this.src.charCodeAt(--t)))return t+1;return t};on.prototype.skipChars=function(t,n){for(let u=this.src.length;t<u&&this.src.charCodeAt(t)===n;t++);return t};on.prototype.skipCharsBack=function(t,n,u){if(t<=u)return t;for(;t>u;)if(n!==this.src.charCodeAt(--t))return t+1;return t};on.prototype.getLines=function(t,n,u,o){if(t>=n)return"";const s=new Array(n-t);for(let r=0,i=t;i<n;i++,r++){let l=0;const a=this.bMarks[i];let f=a,p;for(i+1<n||o?p=this.eMarks[i]+1:p=this.eMarks[i];f<p&&l<u;){const h=this.src.charCodeAt(f);if(Ze(h))h===9?l+=4-(l+this.bsCount[i])%4:l++;else if(f-a<this.tShift[i])l++;else break;f++}l>u?s[r]=new Array(l-u+1).join(" ")+this.src.slice(f,p):s[r]=this.src.slice(f,p)}return s.join("")};on.prototype.Token=Vt;const v_=65536;function Ns(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(n,u)}function Pl(e){const t=[],n=e.length;let u=0,o=e.charCodeAt(u),s=!1,r=0,i="";for(;u<n;)o===124&&(s?(i+=e.substring(r,u-1),r=u):(t.push(i+e.substring(r,u)),i="",r=u+1)),s=o===92,u++,o=e.charCodeAt(u);return t.push(i+e.substring(r)),t}function b_(e,t,n,u){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)return!1;let s=e.bMarks[o]+e.tShift[o];if(s>=e.eMarks[o])return!1;const r=e.src.charCodeAt(s++);if(r!==124&&r!==45&&r!==58||s>=e.eMarks[o])return!1;const i=e.src.charCodeAt(s++);if(i!==124&&i!==45&&i!==58&&!Ze(i)||r===45&&Ze(i))return!1;for(;s<e.eMarks[o];){const T=e.src.charCodeAt(s);if(T!==124&&T!==45&&T!==58&&!Ze(T))return!1;s++}let l=Ns(e,t+1),a=l.split("|");const f=[];for(let T=0;T<a.length;T++){const R=a[T].trim();if(!R){if(T===0||T===a.length-1)continue;return!1}if(!/^:?-+:?$/.test(R))return!1;R.charCodeAt(R.length-1)===58?f.push(R.charCodeAt(0)===58?"center":"right"):R.charCodeAt(0)===58?f.push("left"):f.push("")}if(l=Ns(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;a=Pl(l),a.length&&a[0]===""&&a.shift(),a.length&&a[a.length-1]===""&&a.pop();const p=a.length;if(p===0||p!==f.length)return!1;if(u)return!0;const h=e.parentType;e.parentType="table";const g=e.md.block.ruler.getRules("blockquote"),v=e.push("table_open","table",1),w=[t,0];v.map=w;const y=e.push("thead_open","thead",1);y.map=[t,t+1];const E=e.push("tr_open","tr",1);E.map=[t,t+1];for(let T=0;T<a.length;T++){const R=e.push("th_open","th",1);f[T]&&(R.attrs=[["style","text-align:"+f[T]]]);const F=e.push("inline","",0);F.content=a[T].trim(),F.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let D,L=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let T=!1;for(let F=0,ue=g.length;F<ue;F++)if(g[F](e,o,n,!0)){T=!0;break}if(T||(l=Ns(e,o).trim(),!l)||e.sCount[o]-e.blkIndent>=4||(a=Pl(l),a.length&&a[0]===""&&a.shift(),a.length&&a[a.length-1]===""&&a.pop(),L+=p-a.length,L>v_))break;if(o===t+2){const F=e.push("tbody_open","tbody",1);F.map=D=[t+2,0]}const R=e.push("tr_open","tr",1);R.map=[o,o+1];for(let F=0;F<p;F++){const ue=e.push("td_open","td",1);f[F]&&(ue.attrs=[["style","text-align:"+f[F]]]);const X=e.push("inline","",0);X.content=a[F]?a[F].trim():"",X.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return D&&(e.push("tbody_close","tbody",-1),D[1]=o),e.push("table_close","table",-1),w[1]=o,e.parentType=h,e.line=o,!0}function __(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let u=t+1,o=u;for(;u<n;){if(e.isEmpty(u)){u++;continue}if(e.sCount[u]-e.blkIndent>=4){u++,o=u;continue}break}e.line=o;const s=e.push("code_block","code",0);return s.content=e.getLines(t,o,4+e.blkIndent,!1)+`
|
|
43
|
+
`,s.map=[t,e.line],!0}function y_(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>s)return!1;const r=e.src.charCodeAt(o);if(r!==126&&r!==96)return!1;let i=o;o=e.skipChars(o,r);let l=o-i;if(l<3)return!1;const a=e.src.slice(i,o),f=e.src.slice(o,s);if(r===96&&f.indexOf(String.fromCharCode(r))>=0)return!1;if(u)return!0;let p=t,h=!1;for(;p++,!(p>=n||(o=i=e.bMarks[p]+e.tShift[p],s=e.eMarks[p],o<s&&e.sCount[p]<e.blkIndent));)if(e.src.charCodeAt(o)===r&&!(e.sCount[p]-e.blkIndent>=4)&&(o=e.skipChars(o,r),!(o-i<l)&&(o=e.skipSpaces(o),!(o<s)))){h=!0;break}l=e.sCount[t],e.line=p+(h?1:0);const g=e.push("fence","code",0);return g.info=f,g.content=e.getLines(t+1,p,l,!0),g.markup=a,g.map=[t,e.line],!0}function x_(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];const r=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==62)return!1;if(u)return!0;const i=[],l=[],a=[],f=[],p=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let g=!1,v;for(v=t;v<n;v++){const L=e.sCount[v]<e.blkIndent;if(o=e.bMarks[v]+e.tShift[v],s=e.eMarks[v],o>=s)break;if(e.src.charCodeAt(o++)===62&&!L){let R=e.sCount[v]+1,F,ue;e.src.charCodeAt(o)===32?(o++,R++,ue=!1,F=!0):e.src.charCodeAt(o)===9?(F=!0,(e.bsCount[v]+R)%4===3?(o++,R++,ue=!1):ue=!0):F=!1;let X=R;for(i.push(e.bMarks[v]),e.bMarks[v]=o;o<s;){const U=e.src.charCodeAt(o);if(Ze(U))U===9?X+=4-(X+e.bsCount[v]+(ue?1:0))%4:X++;else break;o++}g=o>=s,l.push(e.bsCount[v]),e.bsCount[v]=e.sCount[v]+1+(F?1:0),a.push(e.sCount[v]),e.sCount[v]=X-R,f.push(e.tShift[v]),e.tShift[v]=o-e.bMarks[v];continue}if(g)break;let T=!1;for(let R=0,F=p.length;R<F;R++)if(p[R](e,v,n,!0)){T=!0;break}if(T){e.lineMax=v,e.blkIndent!==0&&(i.push(e.bMarks[v]),l.push(e.bsCount[v]),f.push(e.tShift[v]),a.push(e.sCount[v]),e.sCount[v]-=e.blkIndent);break}i.push(e.bMarks[v]),l.push(e.bsCount[v]),f.push(e.tShift[v]),a.push(e.sCount[v]),e.sCount[v]=-1}const w=e.blkIndent;e.blkIndent=0;const y=e.push("blockquote_open","blockquote",1);y.markup=">";const E=[t,0];y.map=E,e.md.block.tokenize(e,t,v);const D=e.push("blockquote_close","blockquote",-1);D.markup=">",e.lineMax=r,e.parentType=h,E[1]=e.line;for(let L=0;L<f.length;L++)e.bMarks[L+t]=i[L],e.tShift[L+t]=f[L],e.sCount[L+t]=a[L],e.bsCount[L+t]=l[L];return e.blkIndent=w,!0}function k_(e,t,n,u){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(s++);if(r!==42&&r!==45&&r!==95)return!1;let i=1;for(;s<o;){const a=e.src.charCodeAt(s++);if(a!==r&&!Ze(a))return!1;a===r&&i++}if(i<3)return!1;if(u)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(i+1).join(String.fromCharCode(r)),!0}function Ll(e,t){const n=e.eMarks[t];let u=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(u++);if(o!==42&&o!==45&&o!==43)return-1;if(u<n){const s=e.src.charCodeAt(u);if(!Ze(s))return-1}return u}function Rl(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];let o=n;if(o+1>=u)return-1;let s=e.src.charCodeAt(o++);if(s<48||s>57)return-1;for(;;){if(o>=u)return-1;if(s=e.src.charCodeAt(o++),s>=48&&s<=57){if(o-n>=10)return-1;continue}if(s===41||s===46)break;return-1}return o<u&&(s=e.src.charCodeAt(o),!Ze(s))?-1:o}function w_(e,t){const n=e.level+2;for(let u=t+2,o=e.tokens.length-2;u<o;u++)e.tokens[u].level===n&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].hidden=!0,e.tokens[u].hidden=!0,u+=2)}function C_(e,t,n,u){let o,s,r,i,l=t,a=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let f=!1;u&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(f=!0);let p,h,g;if((g=Rl(e,l))>=0){if(p=!0,r=e.bMarks[l]+e.tShift[l],h=Number(e.src.slice(r,g-1)),f&&h!==1)return!1}else if((g=Ll(e,l))>=0)p=!1;else return!1;if(f&&e.skipSpaces(g)>=e.eMarks[l])return!1;if(u)return!0;const v=e.src.charCodeAt(g-1),w=e.tokens.length;p?(i=e.push("ordered_list_open","ol",1),h!==1&&(i.attrs=[["start",h]])):i=e.push("bullet_list_open","ul",1);const y=[l,0];i.map=y,i.markup=String.fromCharCode(v);let E=!1;const D=e.md.block.ruler.getRules("list"),L=e.parentType;for(e.parentType="list";l<n;){s=g,o=e.eMarks[l];const T=e.sCount[l]+g-(e.bMarks[l]+e.tShift[l]);let R=T;for(;s<o;){const S=e.src.charCodeAt(s);if(S===9)R+=4-(R+e.bsCount[l])%4;else if(S===32)R++;else break;s++}const F=s;let ue;F>=o?ue=1:ue=R-T,ue>4&&(ue=1);const X=T+ue;i=e.push("list_item_open","li",1),i.markup=String.fromCharCode(v);const U=[l,0];i.map=U,p&&(i.info=e.src.slice(r,g-1));const Z=e.tight,ge=e.tShift[l],H=e.sCount[l],le=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=X,e.tight=!0,e.tShift[l]=F-e.bMarks[l],e.sCount[l]=R,F>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||E)&&(a=!1),E=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=le,e.tShift[l]=ge,e.sCount[l]=H,e.tight=Z,i=e.push("list_item_close","li",-1),i.markup=String.fromCharCode(v),l=e.line,U[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let ne=!1;for(let S=0,te=D.length;S<te;S++)if(D[S](e,l,n,!0)){ne=!0;break}if(ne)break;if(p){if(g=Rl(e,l),g<0)break;r=e.bMarks[l]+e.tShift[l]}else if(g=Ll(e,l),g<0)break;if(v!==e.src.charCodeAt(g-1))break}return p?i=e.push("ordered_list_close","ol",-1):i=e.push("bullet_list_close","ul",-1),i.markup=String.fromCharCode(v),y[1]=l,e.line=l,e.parentType=L,a&&w_(e,w),!0}function $_(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t],r=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==91)return!1;function i(D){const L=e.lineMax;if(D>=L||e.isEmpty(D))return null;let T=!1;if(e.sCount[D]-e.blkIndent>3&&(T=!0),e.sCount[D]<0&&(T=!0),!T){const ue=e.md.block.ruler.getRules("reference"),X=e.parentType;e.parentType="reference";let U=!1;for(let Z=0,ge=ue.length;Z<ge;Z++)if(ue[Z](e,D,L,!0)){U=!0;break}if(e.parentType=X,U)return null}const R=e.bMarks[D]+e.tShift[D],F=e.eMarks[D];return e.src.slice(R,F+1)}let l=e.src.slice(o,s+1);s=l.length;let a=-1;for(o=1;o<s;o++){const D=l.charCodeAt(o);if(D===91)return!1;if(D===93){a=o;break}else if(D===10){const L=i(r);L!==null&&(l+=L,s=l.length,r++)}else if(D===92&&(o++,o<s&&l.charCodeAt(o)===10)){const L=i(r);L!==null&&(l+=L,s=l.length,r++)}}if(a<0||l.charCodeAt(a+1)!==58)return!1;for(o=a+2;o<s;o++){const D=l.charCodeAt(o);if(D===10){const L=i(r);L!==null&&(l+=L,s=l.length,r++)}else if(!Ze(D))break}const f=e.md.helpers.parseLinkDestination(l,o,s);if(!f.ok)return!1;const p=e.md.normalizeLink(f.str);if(!e.md.validateLink(p))return!1;o=f.pos;const h=o,g=r,v=o;for(;o<s;o++){const D=l.charCodeAt(o);if(D===10){const L=i(r);L!==null&&(l+=L,s=l.length,r++)}else if(!Ze(D))break}let w=e.md.helpers.parseLinkTitle(l,o,s);for(;w.can_continue;){const D=i(r);if(D===null)break;l+=D,o=s,s=l.length,r++,w=e.md.helpers.parseLinkTitle(l,o,s,w)}let y;for(o<s&&v!==o&&w.ok?(y=w.str,o=w.pos):(y="",o=h,r=g);o<s;){const D=l.charCodeAt(o);if(!Ze(D))break;o++}if(o<s&&l.charCodeAt(o)!==10&&y)for(y="",o=h,r=g;o<s;){const D=l.charCodeAt(o);if(!Ze(D))break;o++}if(o<s&&l.charCodeAt(o)!==10)return!1;const E=ps(l.slice(1,a));return E?(u||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[E]>"u"&&(e.env.references[E]={title:y,href:p}),e.line=r),!0):!1}const E_=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],T_="[a-zA-Z_:][a-zA-Z0-9:._-]*",S_="[^\"'=<>`\\x00-\\x20]+",D_="'[^']*'",A_='"[^"]*"',F_="(?:"+S_+"|"+D_+"|"+A_+")",M_="(?:\\s+"+T_+"(?:\\s*=\\s*"+F_+")?)",o0="<[A-Za-z][A-Za-z0-9\\-]*"+M_+"*\\s*\\/?>",s0="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",I_="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",P_="<[?][\\s\\S]*?[?]>",L_="<![A-Za-z][^>]*>",R_="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",O_=new RegExp("^(?:"+o0+"|"+s0+"|"+I_+"|"+P_+"|"+L_+"|"+R_+")"),z_=new RegExp("^(?:"+o0+"|"+s0+")"),eu=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+E_.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(z_.source+"\\s*$"),/^$/,!1]];function N_(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let r=e.src.slice(o,s),i=0;for(;i<eu.length&&!eu[i][0].test(r);i++);if(i===eu.length)return!1;if(u)return eu[i][2];let l=t+1;if(!eu[i][1].test(r)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(o=e.bMarks[l]+e.tShift[l],s=e.eMarks[l],r=e.src.slice(o,s),eu[i][1].test(r)){r.length!==0&&l++;break}}e.line=l;const a=e.push("html_block","",0);return a.map=[t,l],a.content=e.getLines(t,l,e.blkIndent,!0),!0}function B_(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let r=e.src.charCodeAt(o);if(r!==35||o>=s)return!1;let i=1;for(r=e.src.charCodeAt(++o);r===35&&o<s&&i<=6;)i++,r=e.src.charCodeAt(++o);if(i>6||o<s&&!Ze(r))return!1;if(u)return!0;s=e.skipSpacesBack(s,o);const l=e.skipCharsBack(s,35,o);l>o&&Ze(e.src.charCodeAt(l-1))&&(s=l),e.line=t+1;const a=e.push("heading_open","h"+String(i),1);a.markup="########".slice(0,i),a.map=[t,e.line];const f=e.push("inline","",0);f.content=e.src.slice(o,s).trim(),f.map=[t,e.line],f.children=[];const p=e.push("heading_close","h"+String(i),-1);return p.markup="########".slice(0,i),!0}function H_(e,t,n){const u=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let s=0,r,i=t+1;for(;i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3)continue;if(e.sCount[i]>=e.blkIndent){let g=e.bMarks[i]+e.tShift[i];const v=e.eMarks[i];if(g<v&&(r=e.src.charCodeAt(g),(r===45||r===61)&&(g=e.skipChars(g,r),g=e.skipSpaces(g),g>=v))){s=r===61?1:2;break}}if(e.sCount[i]<0)continue;let h=!1;for(let g=0,v=u.length;g<v;g++)if(u[g](e,i,n,!0)){h=!0;break}if(h)break}if(!s)return!1;const l=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i+1;const a=e.push("heading_open","h"+String(s),1);a.markup=String.fromCharCode(r),a.map=[t,e.line];const f=e.push("inline","",0);f.content=l,f.map=[t,e.line-1],f.children=[];const p=e.push("heading_close","h"+String(s),-1);return p.markup=String.fromCharCode(r),e.parentType=o,!0}function j_(e,t,n){const u=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let s=t+1;for(e.parentType="paragraph";s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3||e.sCount[s]<0)continue;let a=!1;for(let f=0,p=u.length;f<p;f++)if(u[f](e,s,n,!0)){a=!0;break}if(a)break}const r=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s;const i=e.push("paragraph_open","p",1);i.map=[t,e.line];const l=e.push("inline","",0);return l.content=r,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}const yo=[["table",b_,["paragraph","reference"]],["code",__],["fence",y_,["paragraph","reference","blockquote","list"]],["blockquote",x_,["paragraph","reference","blockquote","list"]],["hr",k_,["paragraph","reference","blockquote","list"]],["list",C_,["paragraph","reference","blockquote"]],["reference",$_],["html_block",N_,["paragraph","reference","blockquote"]],["heading",B_,["paragraph","reference","blockquote"]],["lheading",H_],["paragraph",j_]];function hs(){this.ruler=new wt;for(let e=0;e<yo.length;e++)this.ruler.push(yo[e][0],yo[e][1],{alt:(yo[e][2]||[]).slice()})}hs.prototype.tokenize=function(e,t,n){const u=this.ruler.getRules(""),o=u.length,s=e.md.options.maxNesting;let r=t,i=!1;for(;r<n&&(e.line=r=e.skipEmptyLines(r),!(r>=n||e.sCount[r]<e.blkIndent));){if(e.level>=s){e.line=n;break}const l=e.line;let a=!1;for(let f=0;f<o;f++)if(a=u[f](e,r,n,!1),a){if(l>=e.line)throw new Error("block rule didn't increment state.line");break}if(!a)throw new Error("none of the block rules matched");e.tight=!i,e.isEmpty(e.line-1)&&(i=!0),r=e.line,r<n&&e.isEmpty(r)&&(i=!0,r++,e.line=r)}};hs.prototype.parse=function(e,t,n,u){if(!e)return;const o=new this.State(e,t,n,u);this.tokenize(o,o.line,o.lineMax)};hs.prototype.State=on;function ao(e,t,n,u){this.src=e,this.env=n,this.md=t,this.tokens=u,this.tokens_meta=Array(u.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}ao.prototype.pushPending=function(){const e=new Vt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};ao.prototype.push=function(e,t,n){this.pending&&this.pushPending();const u=new Vt(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(o),u};ao.prototype.scanDelims=function(e,t){const n=this.posMax,u=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32;let s=e;for(;s<n&&this.src.charCodeAt(s)===u;)s++;const r=s-e,i=s<n?this.src.charCodeAt(s):32,l=eo(o)||Qu(String.fromCharCode(o)),a=eo(i)||Qu(String.fromCharCode(i)),f=Xu(o),p=Xu(i),h=!p&&(!a||f||l),g=!f&&(!l||p||a);return{can_open:h&&(t||!g||l),can_close:g&&(t||!h||a),length:r}};ao.prototype.Token=Vt;function q_(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function V_(e,t){let n=e.pos;for(;n<e.posMax&&!q_(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const U_=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function W_(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,u=e.posMax;if(n+3>u||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=e.pending.match(U_);if(!o)return!1;const s=o[1],r=e.md.linkify.matchAtStart(e.src.slice(n-s.length));if(!r)return!1;let i=r.url;if(i.length<=s.length)return!1;let l=i.length;for(;l>0&&i.charCodeAt(l-1)===42;)l--;l!==i.length&&(i=i.slice(0,l));const a=e.md.normalizeLink(i);if(!e.md.validateLink(a))return!1;if(!t){e.pending=e.pending.slice(0,-s.length);const f=e.push("link_open","a",1);f.attrs=[["href",a]],f.markup="linkify",f.info="auto";const p=e.push("text","",0);p.content=e.md.normalizeLinkText(i);const h=e.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return e.pos+=i.length-s.length,!0}function K_(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const u=e.pending.length-1,o=e.posMax;if(!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){let s=u-1;for(;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<o&&Ze(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const ei=[];for(let e=0;e<256;e++)ei.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){ei[e.charCodeAt(0)]=1});function G_(e,t){let n=e.pos;const u=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=u))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n<u&&(o=e.src.charCodeAt(n),!!Ze(o));)n++;return e.pos=n,!0}let s=e.src[n];if(o>=55296&&o<=56319&&n+1<u){const i=e.src.charCodeAt(n+1);i>=56320&&i<=57343&&(s+=e.src[n+1],n++)}const r="\\"+s;if(!t){const i=e.push("text_special","",0);o<256&&ei[o]!==0?i.content=s:i.content=r,i.markup=r,i.info="escape"}return e.pos=n+1,!0}function Z_(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const o=n;n++;const s=e.posMax;for(;n<s&&e.src.charCodeAt(n)===96;)n++;const r=e.src.slice(o,n),i=r.length;if(e.backticksScanned&&(e.backticks[i]||0)<=o)return t||(e.pending+=r),e.pos+=i,!0;let l=n,a;for(;(a=e.src.indexOf("`",l))!==-1;){for(l=a+1;l<s&&e.src.charCodeAt(l)===96;)l++;const f=l-a;if(f===i){if(!t){const p=e.push("code_inline","code",0);p.markup=r,p.content=e.src.slice(n,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[f]=a}return e.backticksScanned=!0,t||(e.pending+=r),e.pos+=i,!0}function J_(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==126)return!1;const o=e.scanDelims(e.pos,!0);let s=o.length;const r=String.fromCharCode(u);if(s<2)return!1;let i;s%2&&(i=e.push("text","",0),i.content=r,s--);for(let l=0;l<s;l+=2)i=e.push("text","",0),i.content=r+r,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0}function Ol(e,t){let n;const u=[],o=t.length;for(let s=0;s<o;s++){const r=t[s];if(r.marker!==126||r.end===-1)continue;const i=t[r.end];n=e.tokens[r.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[i.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[i.token-1].type==="text"&&e.tokens[i.token-1].content==="~"&&u.push(i.token-1)}for(;u.length;){const s=u.pop();let r=s+1;for(;r<e.tokens.length&&e.tokens[r].type==="s_close";)r++;r--,s!==r&&(n=e.tokens[r],e.tokens[r]=e.tokens[s],e.tokens[s]=n)}}function Y_(e){const t=e.tokens_meta,n=e.tokens_meta.length;Ol(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Ol(e,t[u].delimiters)}const r0={tokenize:J_,postProcess:Y_};function X_(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==95&&u!==42)return!1;const o=e.scanDelims(e.pos,u===42);for(let s=0;s<o.length;s++){const r=e.push("text","",0);r.content=String.fromCharCode(u),e.delimiters.push({marker:u,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0}function zl(e,t){const n=t.length;for(let u=n-1;u>=0;u--){const o=t[u];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const s=t[o.end],r=u>0&&t[u-1].end===o.end+1&&t[u-1].marker===o.marker&&t[u-1].token===o.token-1&&t[o.end+1].token===s.token+1,i=String.fromCharCode(o.marker),l=e.tokens[o.token];l.type=r?"strong_open":"em_open",l.tag=r?"strong":"em",l.nesting=1,l.markup=r?i+i:i,l.content="";const a=e.tokens[s.token];a.type=r?"strong_close":"em_close",a.tag=r?"strong":"em",a.nesting=-1,a.markup=r?i+i:i,a.content="",r&&(e.tokens[t[u-1].token].content="",e.tokens[t[o.end+1].token].content="",u--)}}function Q_(e){const t=e.tokens_meta,n=e.tokens_meta.length;zl(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&zl(e,t[u].delimiters)}const i0={tokenize:X_,postProcess:Q_};function e3(e,t){let n,u,o,s,r="",i="",l=e.pos,a=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,p=e.posMax,h=e.pos+1,g=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(g<0)return!1;let v=g+1;if(v<p&&e.src.charCodeAt(v)===40){for(a=!1,v++;v<p&&(n=e.src.charCodeAt(v),!(!Ze(n)&&n!==10));v++);if(v>=p)return!1;if(l=v,o=e.md.helpers.parseLinkDestination(e.src,v,e.posMax),o.ok){for(r=e.md.normalizeLink(o.str),e.md.validateLink(r)?v=o.pos:r="",l=v;v<p&&(n=e.src.charCodeAt(v),!(!Ze(n)&&n!==10));v++);if(o=e.md.helpers.parseLinkTitle(e.src,v,e.posMax),v<p&&l!==v&&o.ok)for(i=o.str,v=o.pos;v<p&&(n=e.src.charCodeAt(v),!(!Ze(n)&&n!==10));v++);}(v>=p||e.src.charCodeAt(v)!==41)&&(a=!0),v++}if(a){if(typeof e.env.references>"u")return!1;if(v<p&&e.src.charCodeAt(v)===91?(l=v+1,v=e.md.helpers.parseLinkLabel(e,v),v>=0?u=e.src.slice(l,v++):v=g+1):v=g+1,u||(u=e.src.slice(h,g)),s=e.env.references[ps(u)],!s)return e.pos=f,!1;r=s.href,i=s.title}if(!t){e.pos=h,e.posMax=g;const w=e.push("link_open","a",1),y=[["href",r]];w.attrs=y,i&&y.push(["title",i]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=v,e.posMax=p,!0}function t3(e,t){let n,u,o,s,r,i,l,a,f="";const p=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const g=e.pos+2,v=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(v<0)return!1;if(s=v+1,s<h&&e.src.charCodeAt(s)===40){for(s++;s<h&&(n=e.src.charCodeAt(s),!(!Ze(n)&&n!==10));s++);if(s>=h)return!1;for(a=s,i=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),i.ok&&(f=e.md.normalizeLink(i.str),e.md.validateLink(f)?s=i.pos:f=""),a=s;s<h&&(n=e.src.charCodeAt(s),!(!Ze(n)&&n!==10));s++);if(i=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<h&&a!==s&&i.ok)for(l=i.str,s=i.pos;s<h&&(n=e.src.charCodeAt(s),!(!Ze(n)&&n!==10));s++);else l="";if(s>=h||e.src.charCodeAt(s)!==41)return e.pos=p,!1;s++}else{if(typeof e.env.references>"u")return!1;if(s<h&&e.src.charCodeAt(s)===91?(a=s+1,s=e.md.helpers.parseLinkLabel(e,s),s>=0?o=e.src.slice(a,s++):s=v+1):s=v+1,o||(o=e.src.slice(g,v)),r=e.env.references[ps(o)],!r)return e.pos=p,!1;f=r.href,l=r.title}if(!t){u=e.src.slice(g,v);const w=[];e.md.inline.parse(u,e.md,e.env,w);const y=e.push("image","img",0),E=[["src",f],["alt",""]];y.attrs=E,y.children=w,y.content=u,l&&E.push(["title",l])}return e.pos=s,e.posMax=h,!0}const n3=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,u3=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function o3(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const u=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const r=e.src.charCodeAt(n);if(r===60)return!1;if(r===62)break}const s=e.src.slice(u+1,n);if(u3.test(s)){const r=e.md.normalizeLink(s);if(!e.md.validateLink(r))return!1;if(!t){const i=e.push("link_open","a",1);i.attrs=[["href",r]],i.markup="autolink",i.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(s);const a=e.push("link_close","a",-1);a.markup="autolink",a.info="auto"}return e.pos+=s.length+2,!0}if(n3.test(s)){const r=e.md.normalizeLink("mailto:"+s);if(!e.md.validateLink(r))return!1;if(!t){const i=e.push("link_open","a",1);i.attrs=[["href",r]],i.markup="autolink",i.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(s);const a=e.push("link_close","a",-1);a.markup="autolink",a.info="auto"}return e.pos+=s.length+2,!0}return!1}function s3(e){return/^<a[>\s]/i.test(e)}function r3(e){return/^<\/a\s*>/i.test(e)}function i3(e){const t=e|32;return t>=97&&t<=122}function l3(e,t){if(!e.md.options.html)return!1;const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==60||u+2>=n)return!1;const o=e.src.charCodeAt(u+1);if(o!==33&&o!==63&&o!==47&&!i3(o))return!1;const s=e.src.slice(u).match(O_);if(!s)return!1;if(!t){const r=e.push("html_inline","",0);r.content=s[0],s3(r.content)&&e.linkLevel++,r3(r.content)&&e.linkLevel--}return e.pos+=s[0].length,!0}const a3=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,c3=/^&([a-z][a-z0-9]{1,31});/i;function f3(e,t){const n=e.pos,u=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=u)return!1;if(e.src.charCodeAt(n+1)===35){const s=e.src.slice(n).match(a3);if(s){if(!t){const r=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),i=e.push("text_special","",0);i.content=Xr(r)?qo(r):qo(65533),i.markup=s[0],i.info="entity"}return e.pos+=s[0].length,!0}}else{const s=e.src.slice(n).match(c3);if(s){const r=Qc(s[0]);if(r!==s[0]){if(!t){const i=e.push("text_special","",0);i.content=r,i.markup=s[0],i.info="entity"}return e.pos+=s[0].length,!0}}}return!1}function Nl(e){const t={},n=e.length;if(!n)return;let u=0,o=-2;const s=[];for(let r=0;r<n;r++){const i=e[r];if(s.push(0),(e[u].marker!==i.marker||o!==i.token-1)&&(u=r),o=i.token,i.length=i.length||0,!i.close)continue;t.hasOwnProperty(i.marker)||(t[i.marker]=[-1,-1,-1,-1,-1,-1]);const l=t[i.marker][(i.open?3:0)+i.length%3];let a=u-s[u]-1,f=a;for(;a>l;a-=s[a]+1){const p=e[a];if(p.marker===i.marker&&p.open&&p.end<0){let h=!1;if((p.close||i.open)&&(p.length+i.length)%3===0&&(p.length%3!==0||i.length%3!==0)&&(h=!0),!h){const g=a>0&&!e[a-1].open?s[a-1]+1:0;s[r]=r-a+g,s[a]=g,i.open=!1,p.end=r,p.close=!1,f=-1,o=-2;break}}}f!==-1&&(t[i.marker][(i.open?3:0)+(i.length||0)%3]=f)}}function d3(e){const t=e.tokens_meta,n=e.tokens_meta.length;Nl(e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Nl(t[u].delimiters)}function p3(e){let t,n,u=0;const o=e.tokens,s=e.tokens.length;for(t=n=0;t<s;t++)o[t].nesting<0&&u--,o[t].level=u,o[t].nesting>0&&u++,o[t].type==="text"&&t+1<s&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}const Bs=[["text",V_],["linkify",W_],["newline",K_],["escape",G_],["backticks",Z_],["strikethrough",r0.tokenize],["emphasis",i0.tokenize],["link",e3],["image",t3],["autolink",o3],["html_inline",l3],["entity",f3]],Hs=[["balance_pairs",d3],["strikethrough",r0.postProcess],["emphasis",i0.postProcess],["fragments_join",p3]];function co(){this.ruler=new wt;for(let e=0;e<Bs.length;e++)this.ruler.push(Bs[e][0],Bs[e][1]);this.ruler2=new wt;for(let e=0;e<Hs.length;e++)this.ruler2.push(Hs[e][0],Hs[e][1])}co.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),u=n.length,o=e.md.options.maxNesting,s=e.cache;if(typeof s[t]<"u"){e.pos=s[t];return}let r=!1;if(e.level<o){for(let i=0;i<u;i++)if(e.level++,r=n[i](e,!0),e.level--,r){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;r||e.pos++,s[t]=e.pos};co.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,u=e.posMax,o=e.md.options.maxNesting;for(;e.pos<u;){const s=e.pos;let r=!1;if(e.level<o){for(let i=0;i<n;i++)if(r=t[i](e,!1),r){if(s>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(r){if(e.pos>=u)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};co.prototype.parse=function(e,t,n,u){const o=new this.State(e,t,n,u);this.tokenize(o);const s=this.ruler2.getRules(""),r=s.length;for(let i=0;i<r;i++)s[i](o)};co.prototype.State=ao;function h3(e){const t={};e=e||{},t.src_Any=Gc.source,t.src_Cc=Zc.source,t.src_Z=Yc.source,t.src_P=Jr.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function vr(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(u){e[u]=n[u]})}),e}function ms(e){return Object.prototype.toString.call(e)}function m3(e){return ms(e)==="[object String]"}function g3(e){return ms(e)==="[object Object]"}function v3(e){return ms(e)==="[object RegExp]"}function Bl(e){return ms(e)==="[object Function]"}function b3(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const l0={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function _3(e){return Object.keys(e||{}).reduce(function(t,n){return t||l0.hasOwnProperty(n)},!1)}const y3={"http:":{validate:function(e,t,n){const u=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(u)?u.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const u=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(u)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:u.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const u=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(u)?u.match(n.re.mailto)[0].length:0}}},x3="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",k3="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function w3(e){e.__index__=-1,e.__text_cache__=""}function C3(e){return function(t,n){const u=t.slice(n);return e.test(u)?u.match(e)[0].length:0}}function Hl(){return function(e,t){t.normalize(e)}}function Vo(e){const t=e.re=h3(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(x3),n.push(t.src_xn),t.src_tlds=n.join("|");function u(i){return i.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");const o=[];e.__compiled__={};function s(i,l){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+l)}Object.keys(e.__schemas__).forEach(function(i){const l=e.__schemas__[i];if(l===null)return;const a={validate:null,link:null};if(e.__compiled__[i]=a,g3(l)){v3(l.validate)?a.validate=C3(l.validate):Bl(l.validate)?a.validate=l.validate:s(i,l),Bl(l.normalize)?a.normalize=l.normalize:l.normalize?s(i,l):a.normalize=Hl();return}if(m3(l)){o.push(i);return}s(i,l)}),o.forEach(function(i){e.__compiled__[e.__schemas__[i]]&&(e.__compiled__[i].validate=e.__compiled__[e.__schemas__[i]].validate,e.__compiled__[i].normalize=e.__compiled__[e.__schemas__[i]].normalize)}),e.__compiled__[""]={validate:null,normalize:Hl()};const r=Object.keys(e.__compiled__).filter(function(i){return i.length>0&&e.__compiled__[i]}).map(b3).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+r+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+r+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),w3(e)}function $3(e,t){const n=e.__index__,u=e.__last_index__,o=e.__text_cache__.slice(n,u);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=u+t,this.raw=o,this.text=o,this.url=o}function br(e,t){const n=new $3(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Tt(e,t){if(!(this instanceof Tt))return new Tt(e,t);t||_3(e)&&(t=e,e={}),this.__opts__=vr({},l0,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=vr({},y3,e),this.__compiled__={},this.__tlds__=k3,this.__tlds_replaced__=!1,this.re={},Vo(this)}Tt.prototype.add=function(t,n){return this.__schemas__[t]=n,Vo(this),this};Tt.prototype.set=function(t){return this.__opts__=vr(this.__opts__,t),this};Tt.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,u,o,s,r,i,l,a,f;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(s=this.testSchemaAt(t,n[2],l.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(a=t.search(this.re.host_fuzzy_test),a>=0&&(this.__index__<0||a<this.__index__)&&(u=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(r=u.index+u[1].length,(this.__index__<0||r<this.__index__)&&(this.__schema__="",this.__index__=r,this.__last_index__=u.index+u[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(o=t.match(this.re.email_fuzzy))!==null&&(r=o.index+o[1].length,i=o.index+o[0].length,(this.__index__<0||r<this.__index__||r===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=r,this.__last_index__=i))),this.__index__>=0};Tt.prototype.pretest=function(t){return this.re.pretest.test(t)};Tt.prototype.testSchemaAt=function(t,n,u){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,u,this):0};Tt.prototype.match=function(t){const n=[];let u=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(br(this,u)),u=this.__last_index__);let o=u?t.slice(u):t;for(;this.test(o);)n.push(br(this,u)),o=o.slice(this.__last_index__),u+=this.__last_index__;return n.length?n:null};Tt.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const u=this.testSchemaAt(t,n[2],n[0].length);return u?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+u,br(this,0)):null};Tt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(u,o,s){return u!==s[o-1]}).reverse(),Vo(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Vo(this),this)};Tt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Tt.prototype.onCompile=function(){};const lu=2147483647,Jt=36,ti=1,to=26,E3=38,T3=700,a0=72,c0=128,f0="-",S3=/^xn--/,D3=/[^\0-\x7F]/,A3=/[\x2E\u3002\uFF0E\uFF61]/g,F3={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},js=Jt-ti,Yt=Math.floor,qs=String.fromCharCode;function Tn(e){throw new RangeError(F3[e])}function M3(e,t){const n=[];let u=e.length;for(;u--;)n[u]=t(e[u]);return n}function d0(e,t){const n=e.split("@");let u="";n.length>1&&(u=n[0]+"@",e=n[1]),e=e.replace(A3,".");const o=e.split("."),s=M3(o,t).join(".");return u+s}function p0(e){const t=[];let n=0;const u=e.length;for(;n<u;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<u){const s=e.charCodeAt(n++);(s&64512)==56320?t.push(((o&1023)<<10)+(s&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}const I3=e=>String.fromCodePoint(...e),P3=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Jt},jl=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},h0=function(e,t,n){let u=0;for(e=n?Yt(e/T3):e>>1,e+=Yt(e/t);e>js*to>>1;u+=Jt)e=Yt(e/js);return Yt(u+(js+1)*e/(e+E3))},m0=function(e){const t=[],n=e.length;let u=0,o=c0,s=a0,r=e.lastIndexOf(f0);r<0&&(r=0);for(let i=0;i<r;++i)e.charCodeAt(i)>=128&&Tn("not-basic"),t.push(e.charCodeAt(i));for(let i=r>0?r+1:0;i<n;){const l=u;for(let f=1,p=Jt;;p+=Jt){i>=n&&Tn("invalid-input");const h=P3(e.charCodeAt(i++));h>=Jt&&Tn("invalid-input"),h>Yt((lu-u)/f)&&Tn("overflow"),u+=h*f;const g=p<=s?ti:p>=s+to?to:p-s;if(h<g)break;const v=Jt-g;f>Yt(lu/v)&&Tn("overflow"),f*=v}const a=t.length+1;s=h0(u-l,a,l==0),Yt(u/a)>lu-o&&Tn("overflow"),o+=Yt(u/a),u%=a,t.splice(u++,0,o)}return String.fromCodePoint(...t)},g0=function(e){const t=[];e=p0(e);const n=e.length;let u=c0,o=0,s=a0;for(const l of e)l<128&&t.push(qs(l));const r=t.length;let i=r;for(r&&t.push(f0);i<n;){let l=lu;for(const f of e)f>=u&&f<l&&(l=f);const a=i+1;l-u>Yt((lu-o)/a)&&Tn("overflow"),o+=(l-u)*a,u=l;for(const f of e)if(f<u&&++o>lu&&Tn("overflow"),f===u){let p=o;for(let h=Jt;;h+=Jt){const g=h<=s?ti:h>=s+to?to:h-s;if(p<g)break;const v=p-g,w=Jt-g;t.push(qs(jl(g+v%w,0))),p=Yt(v/w)}t.push(qs(jl(p,0))),s=h0(o,a,i===r),o=0,++i}++o,++u}return t.join("")},L3=function(e){return d0(e,function(t){return S3.test(t)?m0(t.slice(4).toLowerCase()):t})},R3=function(e){return d0(e,function(t){return D3.test(t)?"xn--"+g0(t):t})},v0={version:"2.3.1",ucs2:{decode:p0,encode:I3},decode:m0,encode:g0,toASCII:R3,toUnicode:L3},O3={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},z3={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},N3={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},B3={default:O3,zero:z3,commonmark:N3},H3=/^(vbscript|javascript|file|data):/,j3=/^data:image\/(gif|png|jpeg|webp);/;function q3(e){const t=e.trim().toLowerCase();return H3.test(t)?j3.test(t):!0}const b0=["http:","https:","mailto:"];function V3(e){const t=Zr(e,!0);if(t.hostname&&(!t.protocol||b0.indexOf(t.protocol)>=0))try{t.hostname=v0.toASCII(t.hostname)}catch{}return lo(Gr(t))}function U3(e){const t=Zr(e,!0);if(t.hostname&&(!t.protocol||b0.indexOf(t.protocol)>=0))try{t.hostname=v0.toUnicode(t.hostname)}catch{}return du(Gr(t),du.defaultChars+"%")}function Pt(e,t){if(!(this instanceof Pt))return new Pt(e,t);t||Yr(e)||(t=e||{},e="default"),this.inline=new co,this.block=new hs,this.core=new Qr,this.renderer=new hu,this.linkify=new Tt,this.validateLink=q3,this.normalizeLink=V3,this.normalizeLinkText=U3,this.utils=Kb,this.helpers=ds({},Yb),this.options={},this.configure(e),t&&this.set(t)}Pt.prototype.set=function(e){return ds(this.options,e),this};Pt.prototype.configure=function(e){const t=this;if(Yr(e)){const n=e;if(e=B3[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Pt.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const u=e.filter(function(o){return n.indexOf(o)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this};Pt.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const u=e.filter(function(o){return n.indexOf(o)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this};Pt.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Pt.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Pt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Pt.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Pt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const W3={class:"detail-header"},K3={class:"header-top"},G3={class:"nav-btns"},Z3=["disabled"],J3=["disabled"],Y3={key:0,class:"header-meta"},X3={class:"detail-tabs"},Q3={key:0,class:"block-sep"},ey={key:0,class:"params-table"},ty={class:"params-key"},ny={class:"params-val"},uy=["innerHTML"],oy=["innerHTML"],sy=["innerHTML"],ry={class:"raw-header"},iy=["innerHTML"],ly={class:"detail-footer"},ay={class:"meta-key"},cy=["title"],ql=5e4,Vl=500,fy=2e4,dy=450,py=et({__name:"DetailPane",props:{entry:{},messages:{},selectedIndex:{}},emits:["close","navigate"],setup(e,{emit:t}){const n=new Pt({html:!1,linkify:!0,typographer:!1,breaks:!0}),u=e,o=t,s=he("rendered"),r=he(!1),i=he(null);let l=null,a=null;const f=new Map,p=new Set,h=he(0),g=O(()=>{var d;return((d=u.messages[u.selectedIndex])==null?void 0:d.msg)??null}),v=O(()=>fs(u.entry.contextInfo.messages||[])),w=O(()=>{const d=g.value;if(!d)return"";const m=At(d);let M=(nt[m]||{label:m}).label;if(d.contentBlocks)for(const z of d.contentBlocks){if(z.type==="tool_use"){M=`Tool Call — ${z.name||"unknown"}`;break}if(z.type==="tool_result"){const G=z.tool_use_id?v.value[z.tool_use_id]:null;M=`Tool Result${G?" — "+G:""}`;break}if(z.type==="thinking"){M="Thinking";break}}return M}),y=O(()=>{if(!g.value)return"";const d=At(g.value);return(nt[d]||{color:"#4b5563"}).color}),E=O(()=>!g.value||!u.entry.contextInfo.totalTokens?"0":((g.value.tokens||0)/u.entry.contextInfo.totalTokens*100).toFixed(1)),D=O(()=>u.selectedIndex>0),L=O(()=>u.selectedIndex<u.messages.length-1);Ge(()=>u.selectedIndex,()=>{s.value="rendered",r.value=!1,Je(()=>{i.value&&(i.value.scrollTop=0)}),Je(()=>{j()})}),Ge([s,r],()=>{Je(()=>{j()})}),Ge(g,()=>{Je(()=>{j()})},{immediate:!0});function T(d){const m=u.selectedIndex+d;m>=0&&m<u.messages.length&&o("navigate",m)}function R(d){d.key==="Escape"&&(o("close"),d.preventDefault()),(d.key==="ArrowUp"||d.key==="k")&&(T(-1),d.preventDefault()),(d.key==="ArrowDown"||d.key==="j")&&(T(1),d.preventDefault())}const F=he("Copy");async function ue(){if(!g.value)return;const d=s.value==="raw"?JSON.stringify(Is(g.value),null,2):Eh(g.value);await navigator.clipboard.writeText(d),F.value="Copied!",setTimeout(()=>{F.value="Copy"},1500)}function X(d){if(r.value)return{text:d,truncated:!1};if(d.length>ql)return{text:d.slice(0,ql),truncated:!0};const m=d.split(`
|
|
44
|
+
`);return m.length>Vl?{text:m.slice(0,Vl).join(`
|
|
45
|
+
`),truncated:!0}:{text:d,truncated:!1}}function U(d){let m=2166136261;for(let _=0;_<d.length;_++)m^=d.charCodeAt(_),m=Math.imul(m,16777619);return(m>>>0).toString(36)}function Z(d){return d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ge(d,m,_){let M="",z=0;m.lastIndex=0;let oe=m.exec(d);for(;oe;){const G=oe.index,fe=oe[0];M+=Z(d.slice(z,G)),M+=_(fe,G),z=G+fe.length,oe=m.exec(d)}return M+=Z(d.slice(z)),M}function H(d){return ge(d,/"(?:\\.|[^"\\])*"(?=\s*:)?|"(?:\\.|[^"\\])*"|\btrue\b|\bfalse\b|\bnull\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,(_,M)=>{if(_.startsWith('"')){const z=d.slice(M+_.length);return`<span class="${/^\s*:/.test(z)?"syn-key":"syn-str"}">${Z(_)}</span>`}return _==="true"||_==="false"?`<span class="syn-bool">${_}</span>`:_==="null"?`<span class="syn-null">${_}</span>`:`<span class="syn-num">${_}</span>`})}function le(d){return ge(d,/<!--[\s\S]*?-->|<\/?[\w:.-]+(?:\s+[\w:.-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'))?)*\s*\/?>/g,_=>{if(_.startsWith("<!--"))return`<span class="syn-com">${Z(_)}</span>`;const M=/^<(\/?)([\w:.-]+)([\s\S]*?)(\/?)>$/.exec(_);if(!M)return`<span class="syn-tag">${Z(_)}</span>`;const z=M[1]?"/":"",oe=M[2],G=M[3]||"",fe=M[4]?"/":"";let Q="";const Ce=/([\w:.-]+)(\s*=\s*)(".*?"|'.*?')/g;let ve=0,xe=Ce.exec(G);for(;xe;)Q+=Z(G.slice(ve,xe.index)),Q+=`<span class="syn-attr">${Z(xe[1])}</span>`,Q+=Z(xe[2]),Q+=`<span class="syn-str">${Z(xe[3])}</span>`,ve=xe.index+xe[0].length,xe=Ce.exec(G);return Q+=Z(G.slice(ve)),`<span class="syn-punc"><${z}</span><span class="syn-tag">${Z(oe)}</span>${Q}<span class="syn-punc">${fe}></span>`})}function ne(d){return ge(d,/```[\s\S]*?```|`[^`\n]+`|^#{1,6}\s.+$|^\s*[-*+]\s.+$|^\s*\d+\.\s.+$|^>\s.+$|\*\*[^*\n]+\*\*|__[^_\n]+__|\*[^*\n]+\*|_[^_\n]+_|~~[^~\n]+~~|\[[^\]]+\]\([^)]+\)/gm,_=>_.startsWith("```")||_.startsWith("`")?`<span class="syn-code">${Z(_)}</span>`:_.startsWith("#")?`<span class="syn-heading">${Z(_)}</span>`:/^\s*[-*+]\s/.test(_)||/^\s*\d+\.\s/.test(_)?`<span class="syn-list">${Z(_)}</span>`:_.startsWith(">")?`<span class="syn-quote">${Z(_)}</span>`:_.startsWith("[")?`<span class="syn-link">${Z(_)}</span>`:`<span class="syn-em">${Z(_)}</span>`)}function S(d){return ge(d,/\/\/.*$|\/\*[\s\S]*?\*\/|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`(?:\\.|[^`\\])*`|\b(?:const|let|var|function|return|if|else|for|while|switch|case|break|continue|try|catch|finally|class|extends|new|import|from|export|async|await|interface|type|public|private|protected|throw|in|of|typeof|instanceof|true|false|null|undefined)\b|-?\d+(?:\.\d+)?/gm,_=>_.startsWith("//")||_.startsWith("/*")?`<span class="syn-com">${Z(_)}</span>`:_.startsWith('"')||_.startsWith("'")||_.startsWith("`")?`<span class="syn-str">${Z(_)}</span>`:/^-?\d/.test(_)?`<span class="syn-num">${_}</span>`:_==="true"||_==="false"?`<span class="syn-bool">${_}</span>`:_==="null"||_==="undefined"?`<span class="syn-null">${_}</span>`:`<span class="syn-keyword">${_}</span>`)}function te(d){const m=d.trim();if(!(m.startsWith("{")||m.startsWith("[")))return!1;try{return JSON.parse(m),!0}catch{return!1}}function ae(d){const m=d.trim();return m.startsWith("<")?/<[\w:.-]+[\s>]/.test(m)&&/<\/[\w:.-]+>/.test(m):!1}function V(d){return/(^#{1,6}\s)|(^\s*[-*+]\s)|(^\s*\d+\.\s)|(```)|(`[^`\n]+`)|(\[[^\]]+\]\([^)]+\))|(^>\s)|(\*\*[^*\n]+\*\*)/m.test(d)}function ce(d){return/[{}();]|(^\s*(const|let|var|function|if|for|while|class|import|export)\s)/m.test(d)}function ye(d,m=!1){return m||te(d)?"json":ae(d)?"xml":V(d)?"markdown":ce(d)?"code":"text"}function B(d){return d==="text"||d==="input_text"||d==="thinking"}function ee(d){return n.render(d)}function J(d,m=!1){const _=ye(d,m);return _==="json"?H(d):_==="xml"?le(d):_==="markdown"?ne(d):_==="code"?S(d):Z(d)}function de(d){return d==="json"?"json":d==="xml"?"xml":d==="markdown"?"markdown":d==="code"?"typescript":null}function _e(d,m){return!(m==="text"||d.length>fy||d.split(`
|
|
46
|
+
`).length>dy)}async function C(){if(!l){if(a)return a;a=(async()=>{const{createHighlighterCore:d}=await je(async()=>{const{createHighlighterCore:_}=await import("./core-IjjuPsJe.js");return{createHighlighterCore:_}},[]),{createOnigurumaEngine:m}=await je(async()=>{const{createOnigurumaEngine:_}=await import("./engine-oniguruma-KVl37NQr.js");return{createOnigurumaEngine:_}},[]);l=await d({engine:m(je(()=>import("./wasm-CG6Dc4jp.js"),[])),themes:[je(()=>import("./github-dark-DHJKELXO.js"),[])],langs:[je(()=>import("./json-Cp-IABpG.js"),[]),je(()=>import("./jsonc-Des-eS-w.js"),[]),je(()=>import("./yaml-Buea-lGh.js"),[]),je(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([0,1])),je(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([2,3,4])),je(()=>import("./css-DPfMkruS.js"),[]),je(()=>import("./markdown-Cvjx9yec.js"),[]),je(()=>import("./typescript-BPQ3VLAy.js"),[]),je(()=>import("./javascript-wDzz0qaB.js"),[]),je(()=>import("./jsx-g9-lgVsj.js"),[]),je(()=>import("./tsx-COt5Ahok.js"),[]),je(()=>import("./python-B6aJPvgy.js"),[]),je(()=>import("./shellscript-Yzrsuije.js"),[]),je(()=>import("./sql-BLtJtn59.js"),[]),je(()=>import("./diff-D97Zzqfu.js"),[]),je(()=>import("./toml-vGWfd6FD.js"),[]),je(()=>import("./rust-B1yitclQ.js"),[]),je(()=>import("./go-CxLEBnE3.js"),[]),je(()=>import("./c-BIGW1oBm.js"),[]),je(()=>import("./cpp-BRuaLJcg.js"),__vite__mapDeps([5,6,7])),je(()=>import("./java-CylS5w8V.js"),[]),je(()=>import("./ruby-CkRbH_-r.js"),__vite__mapDeps([8,2,3,4,0,1,7,9,10,11,12,5,6,13,14])),je(()=>import("./php-Dhbhpdrm.js"),__vite__mapDeps([15,2,3,4,0,1,7,16])),je(()=>import("./swift-Dg5xB15N.js"),[]),je(()=>import("./kotlin-BdnUsdx6.js"),[]),je(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([9,3,10,11,12])),je(()=>import("./dockerfile-BcOcwvcX.js"),[])]})})(),await a}}async function I(d,m,_){if(!_e(d,m)||f.has(_)||p.has(_))return;const M=de(m);if(M){p.add(_);try{if(await C(),!l)return;const z=l.codeToHtml(d,{lang:M,theme:"github-dark"});f.set(_,z),h.value+=1}catch{}finally{p.delete(_)}}}function K(d,m=!1){h.value;const _=ye(d,m),M=`${_}:${U(d)}`;if(_e(d,_)){const z=f.get(M);if(z)return z;I(d,_,M)}return J(d,m)}function j(){const d=g.value;if(!d)return;if(s.value==="raw"){const _=JSON.stringify(Is(d),null,2),M=X(_).text,z=ye(M,!0);I(M,z,`${z}:${U(M)}`);return}const m=P();for(const _ of m){const M=X(_.content).text,z=ye(M,_.isJson);I(M,z,`${z}:${U(M)}`)}}function $(d){const m=Object.entries(d);if(m.length===0)return null;const _=[];for(const[M,z]of m){if(z==null){_.push([M,"null"]);continue}if(typeof z=="boolean"||typeof z=="number"){_.push([M,String(z)]);continue}if(typeof z=="string"){if(z.length>120||z.includes(`
|
|
47
|
+
`))return null;_.push([M,z]);continue}return null}return _}function P(){const d=g.value;if(!d)return[];const m=d.contentBlocks;return m&&m.length>0?m.map(_=>{if(_.type==="tool_use"){const z=_.input&&typeof _.input=="object"&&!Array.isArray(_.input)?_.input:null,oe=z?$(z):null,G=z?JSON.stringify(z,null,2):"{}";return{type:"tool_use",label:`tool_use: ${_.name||"?"}`,labelClass:"lbl-tool-use",content:G,isJson:!0,toolParams:oe}}if(_.type==="tool_result"){const z=_.tool_use_id?v.value[_.tool_use_id]:null,oe=typeof _.content=="string"?_.content:JSON.stringify(_.content,null,2);return{type:"tool_result",label:`tool_result${z?": "+z:""}`,labelClass:"lbl-tool-result",content:oe,isJson:!1}}const M=_;return M.type==="thinking"?{type:"thinking",label:"thinking",labelClass:"lbl-thinking",content:M.thinking||M.text||"",isJson:!1}:_.type==="text"||_.type==="input_text"?{type:_.type,label:_.type,labelClass:"lbl-text",content:_.text||"",isJson:!1}:_.type==="image"?{type:"image",label:"image",labelClass:"lbl-image",content:"[Image content]",isJson:!1}:{type:"unknown",label:"block",labelClass:"lbl-text",content:`[Unknown block type: ${_.type||"unspecified"}]`,isJson:!1}}):[{type:"text",label:"",labelClass:"",content:d.content||"",isJson:!1}]}const b=O(()=>{const d=g.value;if(!d)return[];const m=[["Role",d.role],["Tokens",we(d.tokens||0)],["% context",E.value+"%"],["Model",u.entry.contextInfo.model||"?"]];if(d.contentBlocks){for(const _ of d.contentBlocks)if(_.type==="tool_use"&&(m.push(["tool_use_id",_.id||"?"]),m.push(["tool_name",_.name||"?"])),_.type==="tool_result"&&_.tool_use_id){m.push(["tool_use_id",_.tool_use_id]);const M=v.value[_.tool_use_id];M&&m.push(["tool_name",M])}}return m.push(["Position",`${u.selectedIndex+1} / ${u.messages.length}`]),m});return(d,m)=>{const _=zn("tooltip");return x(),k("div",{class:"detail",tabindex:"0",onKeydown:R},[c("div",W3,[c("div",K3,[c("span",{class:"detail-title",style:Se({color:y.value})},A(w.value),5),c("div",G3,[He((x(),k("button",{disabled:!D.value,onClick:m[0]||(m[0]=M=>T(-1))},[...m[6]||(m[6]=[c("i",{class:"i-carbon-chevron-up"},null,-1)])],8,Z3)),[[_,"↑ Previous"]]),He((x(),k("button",{disabled:!L.value,onClick:m[1]||(m[1]=M=>T(1))},[...m[7]||(m[7]=[c("i",{class:"i-carbon-chevron-down"},null,-1)])],8,J3)),[[_,"↓ Next"]])]),He((x(),k("button",{class:"close-btn",onClick:m[2]||(m[2]=M=>d.$emit("close"))},[...m[8]||(m[8]=[c("i",{class:"i-carbon-close"},null,-1)])])),[[_,"Close (Esc)"]])]),g.value?(x(),k("div",Y3,[c("span",null,[c("b",null,A(g.value.role),1)]),c("span",null,A(Y(we)(g.value.tokens||0))+" tok",1),c("span",null,A(E.value)+"%",1),c("span",null,A(e.selectedIndex+1)+"/"+A(e.messages.length),1)])):se("",!0)]),c("div",X3,[c("button",{class:ie({on:s.value==="rendered"}),onClick:m[3]||(m[3]=M=>s.value="rendered")},"Rendered",2),c("button",{class:ie({on:s.value==="raw"}),onClick:m[4]||(m[4]=M=>s.value="raw")},"Raw",2)]),c("div",{ref_key:"contentEl",ref:i,class:"detail-body"},[s.value==="rendered"&&g.value?(x(!0),k(pe,{key:0},Te(P(),(M,z)=>(x(),k(pe,{key:z},[z>0?(x(),k("hr",Q3)):se("",!0),M.label?(x(),k("div",{key:1,class:ie(["block-label",M.labelClass])},A(M.label),3)):se("",!0),M.type==="tool_use"?(x(),k(pe,{key:2},[M.toolParams?(x(),k("table",ey,[c("tbody",null,[(x(!0),k(pe,null,Te(M.toolParams,([oe,G])=>(x(),k("tr",{key:oe},[c("td",ty,A(oe),1),c("td",ny,A(G),1)]))),128))])])):(x(),k("div",{key:1,class:"block-content syntax rich-html kind-json",innerHTML:K(X(M.content).text,!0)},null,8,uy))],64)):B(M.type)?(x(),k("div",{key:3,class:"block-content md-rendered",innerHTML:ee(X(M.content).text)},null,8,oy)):(x(),k("div",{key:4,class:ie(["block-content syntax rich-html",`kind-${ye(X(M.content).text,M.isJson)}`]),innerHTML:K(X(M.content).text,M.isJson)},null,10,sy)),X(M.content).truncated?(x(),k("button",{key:5,class:"show-more",onClick:m[5]||(m[5]=oe=>r.value=!0)}," Show full content… ")):se("",!0)],64))),128)):s.value==="raw"&&g.value?(x(),k(pe,{key:1},[c("div",ry,[c("button",{class:ie(["copy-btn",{copied:F.value==="Copied!"}]),onClick:ue},[m[9]||(m[9]=c("i",{class:"i-carbon-copy"},null,-1)),ke(" "+A(F.value),1)],2)]),c("div",{class:"block-content syntax rich-html kind-json",innerHTML:K(JSON.stringify(Y(Is)(g.value),null,2),!0)},null,8,iy)],64)):se("",!0)],512),c("div",ly,[m[10]||(m[10]=c("div",{class:"meta-header"},"Metadata",-1)),(x(!0),k(pe,null,Te(b.value,([M,z])=>(x(),k(pe,{key:M},[c("span",ay,A(M),1),c("span",{class:"meta-val",title:z},A(z),9,cy)],64))),128))])],32)}}}),hy=rt(py,[["__scopeId","data-v-02c22b5e"]]),my={class:"msg-toolbar"},gy={class:"message-view-toggle"},vy={key:0,class:"message-view-toggle agent-toggle"},by={key:0,class:"heavy-strip"},_y={class:"heavy-actions"},yy=["onClick"],xy={class:"heavy-category"},ky={class:"heavy-preview"},wy={class:"heavy-tokens"},Cy={key:1,class:"focus-strip"},$y={key:0},Ey={key:1},Ty=["data-category"],Sy=["onClick"],Dy={class:"group-name"},Ay={class:"group-stats"},Fy={class:"group-bar-track"},My=["data-tool-name","onClick"],Iy={class:"msg-role"},Py={class:"msg-preview"},Ly={key:0,class:"focus-strip"},Ry={class:"focus-file-name"},Oy={class:"focus-file-count"},zy={class:"chrono-list"},Ny=["onClick"],By={class:"chrono-gutter subagent-gutter"},Hy={class:"chrono-preview subagent-preview"},jy={class:"chrono-tok subagent-model"},qy={class:"chrono-turn-label"},Vy={key:2,class:"chrono-future-sep"},Uy=["onClick"],Wy={class:"chrono-gutter"},Ky={class:"chrono-type"},Gy={class:"chrono-preview"},Zy=et({__name:"MessagesTab",setup(e){const t=St(),n=O(()=>t.selectedEntry),u=O(()=>t.selectedSession),{isExpanded:o,toggle:s,expand:r}=ob(),i=he(null),l=he("chrono"),a=he(!1),f=he(0),p=he(null),h=he(1),g=he(null),v=he([]),w=he(0),y=O(()=>fs(D.value)),E=O(()=>{const W=u.value;return!W||W.entries.length<=1?!1:hn([...W.entries].reverse()).some(me=>!me.isMain)}),D=O(()=>{var q;if(!n.value)return[];t.entryDetailVersion;const W=t.getEntryDetail(n.value.id);return(q=W==null?void 0:W.messages)!=null&&q.length?W.messages:n.value.contextInfo.messages||[]}),L=O(()=>!u.value||u.value.entries.length===0?null:u.value.entries[0]),T=O(()=>{var q;if(!L.value)return[];t.entryDetailVersion;const W=t.getEntryDetail(L.value.id);return(q=W==null?void 0:W.messages)!=null&&q.length?W.messages:L.value.contextInfo.messages||[]}),R=O(()=>D.value.length),F=O(()=>t.selectionMode!=="pinned"?!1:T.value.length>R.value),ue=O(()=>{if(!F.value)return D.value.map((q,me)=>({msg:q,origIdx:me,future:!1}));const W=[];for(let q=0;q<D.value.length;q++)W.push({msg:D.value[q],origIdx:q,future:!1});for(let q=D.value.length;q<T.value.length;q++)W.push({msg:T.value[q],origIdx:q,future:!0});return W}),X=O(()=>{const W=ue.value,q=new Set;W.length>0&&q.add(0);let me=!1;for(let re=0;re<W.length;re++){const $e=W[re].msg.role;$e==="assistant"?me=!0:$e==="user"&&me&&(q.add(re),me=!1)}return q}),U=O(()=>{const W=u.value,q=n.value;if(!W||!q||t.messagesMode!=="all")return new Map;const me=hn([...W.entries].reverse()),re=[],$e=[];let Ae=[];for(const Ne of me)Ne.isMain?(re.push(Ne.entry),re.length>1&&$e.push([...Ae]),Ae=[]):re.length>0&&Ae.push(Ne.entry);$e.push([...Ae]);const Re=re.findIndex(Ne=>Ne.id===q.id);if(Re<0)return new Map;const ct=Array.from(X.value).sort((Ne,Xe)=>Ne-Xe),Lt=H.value,Nn=new Map;for(let Ne=0;Ne<=Re&&Ne<$e.length;Ne++){const Xe=$e[Ne];if(Xe.length===0)continue;const N=Ne+1-Lt;N<0||N<ct.length&&Nn.set(ct[N],Xe)}return Nn}),Z=O(()=>{const W=u.value,q=n.value;if(!W||!q)return 1;const me=hn([...W.entries].reverse());let re=0;for(const $e of me)if($e.isMain&&re++,$e.entry.id===q.id)return re;return 1}),ge=O(()=>{const W=R.value;let q=0;for(const me of X.value)me<W&&q++;return q}),H=O(()=>Math.max(0,Z.value-ge.value)),le=O(()=>{const W=new Map;let q=H.value;for(const me of X.value)q++,W.set(me,q);return W}),ne=O(()=>jc(D.value)),S=O(()=>{if(l.value==="chrono")return ye.value;const W=[];for(const q of ne.value)for(const me of q.items)W.push(me);return W}),te=O(()=>g.value!==null),ae=O(()=>te.value?g.value:n.value),V=O(()=>te.value?v.value:S.value),ce=O(()=>te.value?w.value:f.value),ye=O(()=>D.value.map((W,q)=>({msg:W,origIdx:q}))),B=O(()=>{const W=[];let q=0;for(const me of ue.value)me.future||(q+=me.msg.tokens||0),W.push(q);return W}),ee=O(()=>{var W;return((W=n.value)==null?void 0:W.contextInfo.totalTokens)??0}),J=O(()=>{const W=[];for(const q of ne.value)for(const me of q.items)W.push({origIdx:me.origIdx,category:q.category,preview:Ms(me.msg,y.value)||"(empty)",tokens:me.msg.tokens||0});return W.filter(q=>q.tokens>0).sort((q,me)=>me.tokens-q.tokens).slice(0,3)}),de=O(()=>t.messageFocusTool),_e=O(()=>t.messageFocusCategory),C=O(()=>t.messageFocusFile),I=O(()=>{var re;const W=t.messageFocusCategory;if(!W)return null;const q=new Set(ne.value.map($e=>$e.category));if(q.has(W))return W;const me={assistant_text:["tool_calls","thinking","assistant_text","user_text"],tool_definitions:["tool_calls","tool_results","system_injections"],system_prompt:["system_injections","assistant_text","user_text"],images:["user_text","assistant_text","tool_results"],cache_markers:["tool_results","assistant_text","user_text"],other:["assistant_text","user_text","tool_results"]};for(const $e of me[W]||[])if(q.has($e))return $e;return((re=ne.value[0])==null?void 0:re.category)??null}),K=O(()=>!!_e.value&&!!I.value&&_e.value!==I.value);function j(){g.value=null,v.value=[]}function $(W){j(),f.value=W,m(W),a.value=!0}function P(){a.value=!1,j()}function b(W){W.key==="Escape"&&a.value&&(P(),W.preventDefault(),W.stopPropagation())}function d(W){var $e;const q=(W.contentBlocks||[])[0];if(!q)return`${W.role}|${W.tokens||0}|${(($e=W.content)==null?void 0:$e.slice(0,160))||""}`;if(q.type==="tool_result"){const Ae=typeof q.content=="string"?q.content:JSON.stringify(q.content||"");return`${W.role}|${W.tokens||0}|tool_result|${q.tool_use_id||""}|${Ae.slice(0,160)}`}if(q.type==="tool_use")return`${W.role}|${W.tokens||0}|tool_use|${q.id||""}|${q.name||""}|${JSON.stringify(q.input||{}).slice(0,120)}`;const me=q,re=String(me.text||me.thinking||"").slice(0,160);return`${W.role}|${W.tokens||0}|${String(me.type||"other")}|${re}`}function m(W){const q=S.value[W];if(!q)return;const me=d(q.msg);p.value=me;let re=0;for(let $e=0;$e<=W;$e++)d(S.value[$e].msg)===me&&(re+=1);h.value=Math.max(1,re)}function _(){const W=p.value;if(!W)return-1;let q=0;for(let me=0;me<S.value.length;me++)if(d(S.value[me].msg)===W&&(q+=1,q===h.value))return me;return-1}function M(W){te.value?w.value=W:(f.value=W,m(W))}function z(W,q){let me=0;for(let re=0;re<ne.value.length;re++){if(re===W)return me+q;me+=ne.value[re].items.length}return 0}function oe(W){const q=S.value.findIndex(me=>me.origIdx===W);if(q>=0){if(l.value==="category"){const me=D.value[W];if(me){const re=At(me);r(re)}}$(q)}}function G(W){const q=At(W);return(nt[q]||{color:"#4b5563"}).color}function fe(W){const q=At(W);return(nt[q]||{label:q}).label}function Q(W){var re;if(!u.value)return;const q=u.value.entries;let me=null;for(let $e=q.length-1;$e>=0;$e--)if((((re=q[$e].contextInfo.messages)==null?void 0:re.length)??0)>W){me=q[$e];break}me||(me=q[0]),t.pinEntry(me.id)}async function Ce(W){var Ae;const q=u.value;if(!q)return;const me=q.entries.find(Re=>Re.id===W);if(!me)return;await t.loadEntryDetail(W),t.entryDetailVersion;const re=t.getEntryDetail(W),$e=(Ae=re==null?void 0:re.messages)!=null&&Ae.length?re.messages:me.contextInfo.messages||[];g.value=me,v.value=$e.map((Re,ct)=>({msg:Re,origIdx:ct})),w.value=0,a.value=!0}function ve(W){return At(W)==="tool_results"&&(W.tokens||0)>8e3}function xe(W){if(At(W)!=="tool_results")return null;for(const q of W.contentBlocks||[])if(q.type==="tool_result")return q.tool_use_id&&y.value[q.tool_use_id]||null;return null}function Fe(W){const q=de.value;if(!q)return{};const me=xe(W);if(!me)return{"tool-muted":!0};const re=me.trim().toLowerCase(),$e=q.trim().toLowerCase();return{"tool-focused":re===$e,"tool-muted":re!==$e}}async function Pe(){const W=I.value,q=t.messageFocusIndex,me=t.messageFocusOpenDetail,re=t.messageFocusTool,$e=t.messageFocusFile;t.clearMessageFocus();const Ae=q;if(Ae!=null){if(l.value==="chrono"){for(let Ne=0;Ne<4;Ne++){await Je(),oe(Ae),await Je();const Xe=i.value;if(Xe){const be=Array.from(Xe.querySelectorAll(".chrono-row")).find(Ee=>Ee.classList.contains("selected"));if(be){be.scrollIntoView({block:"center",behavior:"smooth"});return}}}return}for(let Ne=0;Ne<4;Ne++){await Je();for(const Xe of ne.value)if(Xe.items.find(be=>be.origIdx===Ae)){r(Xe.category),await Je(),await Je(),oe(Ae),await Je();const be=i.value;if(be){const Le=Array.from(be.querySelectorAll(".msg-row")).find(ft=>ft.classList.contains("selected"));Le&&Le.scrollIntoView({block:"center",behavior:"smooth"})}return}}return}if($e){t.messageFocusFile=$e,l.value="chrono",await Je();const Ne=D.value,Xe=new Set;for(const be of Ne)if(be.contentBlocks){for(const Ee of be.contentBlocks)if(Ee.type==="tool_use"){const Le=Ee;tt(Le)===$e&&Xe.add(Le.id)}}let N=-1;for(let be=0;be<Ne.length;be++){const Ee=Ne[be];if(Ee.contentBlocks){for(const Le of Ee.contentBlocks){if(Le.type==="tool_result"&&Xe.has(Le.tool_use_id)){N=be;break}if(Le.type==="tool_use"&&tt(Le)===$e&&N<0){N=be;break}}if(N>=0)break}}if(N>=0)for(let be=0;be<4;be++){await Je();const Ee=i.value;if(!Ee)continue;const Le=Array.from(Ee.querySelectorAll(".chrono-row"));if(Le[N]){Le[N].scrollIntoView({block:"center",behavior:"smooth"});return}}return}const Re=W;if(!Re)return;const ct=me;if(ct?l.value="chrono":l.value="category",l.value==="chrono"){for(let Ne=0;Ne<4;Ne++){await Je();const Xe=i.value;if(!Xe)continue;const N=Array.from(Xe.querySelectorAll(".chrono-row"));let be=-1;for(let Ee=D.value.length-1;Ee>=0;Ee--)if(At(D.value[Ee])===Re){be=Ee;break}if(be>=0&&N[be]){N[be].scrollIntoView({block:"center",behavior:"smooth"}),ct&&(await Je(),oe(be));return}}return}let Lt=null;for(let Ne=0;Ne<4;Ne++){if(await Je(),Lt=i.value,!Lt)continue;r(Re),await Je();const Xe=Lt.querySelector(`[data-category="${Re}"]`);if(Xe){Xe.scrollIntoView({block:"center",behavior:"smooth"});break}}if(!Lt)return;const Nn=re;if(Nn){const Ne=Array.from(Lt.querySelectorAll(".msg-row")),Xe=Nn.trim().toLowerCase(),N=Ne.find(be=>(be.getAttribute("data-tool-name")||"").trim().toLowerCase()===Xe);N&&N.scrollIntoView({block:"center",behavior:"smooth"})}}function qe(){t.focusMessageCategory(I.value||t.messageFocusCategory||"tool_results")}function ze(){t.clearMessageFocus()}const ut=O(()=>{const W=C.value;if(!W)return new Set;const q=D.value,me=new Set,re=new Set;for(let $e=0;$e<q.length;$e++){const Ae=q[$e];if(Ae.contentBlocks){for(const Re of Ae.contentBlocks)if(Re.type==="tool_use"){const ct=Re;tt(ct)===W&&(re.add(ct.id),me.add($e))}}}for(let $e=0;$e<q.length;$e++){const Ae=q[$e];if(Ae.contentBlocks)for(const Re of Ae.contentBlocks)Re.type==="tool_result"&&re.has(Re.tool_use_id)&&me.add($e)}return me});function tt(W){var re;const q=W.input,me=(re=t.selectedSession)==null?void 0:re.workingDirectory;if(q&&typeof q=="object")for(const $e of["file_path","path","filePath"]){const Ae=q[$e];if(typeof Ae=="string"&&Ae.length>0){let Re=Ae.replace(/\/+/g,"/");return Re.startsWith("./")&&(Re=Re.slice(2)),Re.length>1&&Re.endsWith("/")&&(Re=Re.slice(0,-1)),Uc(Re,me)}}return null}function yt(W){if(!C.value)return{};const me=ut.value;return{"file-focused":me.has(W),"file-muted":!me.has(W)}}const xt=O(()=>{const W=C.value;return W?Wr(W):""});return Ge(()=>t.messageFocusToken,async()=>{await Pe()},{immediate:!0}),Ge(()=>t.inspectorTab,async W=>{W==="messages"&&await Pe()}),Ge(()=>{var W;return(W=n.value)==null?void 0:W.id},async W=>{W!=null&&await t.loadEntryDetail(W)},{immediate:!0}),Ge(()=>{var W;return(W=L.value)==null?void 0:W.id},async W=>{var q;W!=null&&W!==((q=n.value)==null?void 0:q.id)&&await t.loadEntryDetail(W)},{immediate:!0}),On(async()=>{t.inspectorTab==="messages"&&t.messageFocusCategory&&await Pe()}),Ge(S,()=>{if(!a.value||te.value)return;const W=_();if(W>=0&&W!==f.value){f.value=W;return}f.value>=S.value.length&&(f.value=Math.max(0,S.value.length-1),m(f.value))}),(W,q)=>{const me=zn("tooltip");return n.value?(x(),k("div",{key:0,class:"messages-tab",onKeydown:b},[Ie(Y(ub),{class:"default-theme","push-other-panes":!1},{default:ot(()=>[Ie(Y(wl),{"min-size":25,size:a.value?42:100},{default:ot(()=>[c("div",{ref_key:"msgListEl",ref:i,class:"msg-list"},[c("div",my,[c("div",gy,[c("button",{class:ie({on:l.value==="chrono"}),onClick:q[0]||(q[0]=re=>l.value="chrono")},"Chronological",2),c("button",{class:ie({on:l.value==="category"}),onClick:q[1]||(q[1]=re=>l.value="category")},"By Category",2)]),E.value&&l.value==="chrono"?(x(),k("div",vy,[c("button",{class:ie({on:Y(t).messagesMode==="main"}),onClick:q[2]||(q[2]=re=>Y(t).messagesMode="main")},"Main",2),c("button",{class:ie({on:Y(t).messagesMode==="all"}),onClick:q[3]||(q[3]=re=>Y(t).messagesMode="all")},"All",2)])):se("",!0)]),l.value==="category"?(x(),k(pe,{key:0},[J.value.length>0?(x(),k("div",by,[q[4]||(q[4]=c("div",{class:"heavy-title"},"Top heavy messages",-1)),c("div",_y,[(x(!0),k(pe,null,Te(J.value,re=>(x(),k("button",{key:re.origIdx,class:"heavy-action",onClick:$e=>oe(re.origIdx)},[c("span",xy,A((Y(nt)[re.category]||{label:re.category}).label),1),c("span",ky,A(re.preview),1),c("span",wy,A(Y(we)(re.tokens)),1)],8,yy))),128))])])):se("",!0),de.value||K.value?(x(),k("div",Cy,[de.value?(x(),k("span",$y,[q[5]||(q[5]=ke(" Filtered tool: ",-1)),c("b",null,A(de.value),1)])):se("",!0),K.value?(x(),k("span",Ey,[q[6]||(q[6]=ke(" Showing ",-1)),c("b",null,A((Y(nt)[I.value||""]||{label:I.value}).label),1),q[7]||(q[7]=ke(" for ",-1)),c("b",null,A((Y(nt)[_e.value||""]||{label:_e.value}).label),1),q[8]||(q[8]=ke(". ",-1))])):se("",!0),de.value?(x(),k("button",{key:2,class:"focus-clear",onClick:Mt(qe,["stop"])},"Show all")):se("",!0)])):se("",!0),(x(!0),k(pe,null,Te(ne.value,(re,$e)=>(x(),k("div",{key:re.category,class:"msg-group","data-category":re.category},[c("div",{class:"group-head",onClick:Ae=>Y(s)(re.category)},[c("i",{class:ie(["group-arrow",Y(o)(re.category)||I.value===re.category?"i-carbon-chevron-down":"i-carbon-chevron-right"])},null,2),c("span",{class:"group-dot",style:Se({background:(Y(nt)[re.category]||{color:"#4b5563"}).color})},null,4),c("span",Dy,A((Y(nt)[re.category]||{label:re.category}).label),1),c("span",Ay,[ke(A(re.items.length)+" ",1),q[9]||(q[9]=c("span",{class:"group-sep"},"·",-1)),ke(" "+A(Y(we)(re.tokens))+" ",1),q[10]||(q[10]=c("span",{class:"group-sep"},"·",-1)),ke(" "+A(ee.value>0?Math.round(re.tokens/ee.value*100):0)+"% ",1)]),c("div",Fy,[c("div",{class:"group-bar-fill",style:Se({width:(ee.value>0?Math.round(re.tokens/ee.value*100):0)+"%",background:(Y(nt)[re.category]||{color:"#4b5563"}).color})},null,4)])],8,Sy),c("div",{class:ie(["group-items",{open:Y(o)(re.category)||I.value===re.category}])},[(x(!0),k(pe,null,Te(re.items,(Ae,Re)=>{var ct;return x(),k("div",{key:Ae.origIdx,class:ie(["msg-row",[Fe(Ae.msg),{selected:a.value&&!te.value&&((ct=S.value[f.value])==null?void 0:ct.origIdx)===Ae.origIdx}]]),"data-tool-name":xe(Ae.msg)||"",onClick:Lt=>$(z($e,Re))},[c("span",Iy,A(Ae.msg.role==="user"?"›":Ae.msg.role==="assistant"?"‹":"·"),1),c("span",Py,A(Y(Ms)(Ae.msg,y.value)||"(empty)"),1),He((x(),k("span",{class:ie(["msg-tok",{hot:(Ae.msg.tokens||0)>2e3,oversized:ve(Ae.msg)}])},[ke(A(Y(we)(Ae.msg.tokens||0)),1)],2)),[[me,ve(Ae.msg)?"Tool result exceeds 8K tokens — re-sent every turn":void 0]])],10,My)}),128))],2)],8,Ty))),128))],64)):l.value==="chrono"?(x(),k(pe,{key:1},[C.value?(x(),k("div",Ly,[c("span",null,[q[11]||(q[11]=ke(" Filtered file: ",-1)),He((x(),k("b",Ry,[ke(A(xt.value),1)])),[[me,C.value]]),c("span",Oy,"("+A(ut.value.size)+" messages)",1)]),c("button",{class:"focus-clear",onClick:Mt(ze,["stop"])},"Show all")])):se("",!0),c("div",zy,[(x(!0),k(pe,null,Te(ue.value,(re,$e)=>{var Ae;return x(),k(pe,{key:$e},[U.value.has($e)?(x(!0),k(pe,{key:0},Te(U.value.get($e),Re=>He((x(),k("div",{key:"sub-"+Re.id,class:"chrono-subagent-row",onClick:ct=>Ce(Re.id)},[c("span",By,A(Y(we)(Re.contextInfo.totalTokens)),1),q[12]||(q[12]=c("span",{class:"chrono-cat-dot subagent-dot"},null,-1)),q[13]||(q[13]=c("span",{class:"chrono-type subagent-type"},"subagent",-1)),c("span",Hy,A(Re.agentLabel),1),c("span",jy,A(Y(bn)(Re.contextInfo.model)),1)],8,Ny)),[[me,"Click to view subagent context"]])),128)):se("",!0),le.value.has($e)?(x(),k("div",{key:1,class:ie(["chrono-turn-marker",{future:re.future}])},[c("span",qy,"Turn "+A(le.value.get($e)),1),q[14]||(q[14]=c("span",{class:"chrono-turn-line"},null,-1))],2)):se("",!0),re.future&&$e===R.value?(x(),k("div",Vy,[...q[15]||(q[15]=[c("span",{class:"chrono-future-line"},null,-1),c("span",{class:"chrono-future-label"},"After this turn",-1),c("span",{class:"chrono-future-line"},null,-1)])])):se("",!0),c("div",{class:ie(["chrono-row",[yt(re.origIdx),{selected:!re.future&&a.value&&!te.value&&((Ae=S.value[f.value])==null?void 0:Ae.origIdx)===re.origIdx,future:re.future}]]),style:Se({"--cat-border":G(re.msg)}),onClick:Re=>re.future?Q(re.origIdx):$(re.origIdx)},[He((x(),k("span",Wy,[ke(A(re.future?"":Y(we)(B.value[$e])),1)])),[[me,re.future?"Click to jump to this turn":`Cumulative: ${Y(we)(B.value[$e])} of ${Y(we)(ee.value)}`]]),c("span",{class:"chrono-cat-dot",style:Se({background:G(re.msg)})},null,4),c("span",Ky,A(fe(re.msg)),1),c("span",Gy,A(Y(Ms)(re.msg,y.value)||"(empty)"),1),He((x(),k("span",{class:ie(["chrono-tok",{hot:!re.future&&(re.msg.tokens||0)>2e3,oversized:!re.future&&ve(re.msg)}])},[ke(A(Y(we)(re.msg.tokens||0)),1)],2)),[[me,!re.future&&ve(re.msg)?"Tool result exceeds 8K tokens — re-sent every turn, crowding conversation history":void 0]])],14,Uy)],64)}),128))])],64)):se("",!0)],512)]),_:1},8,["size"]),a.value?(x(),_t(Y(wl),{key:0,"min-size":25,size:58},{default:ot(()=>[Ie(hy,{entry:ae.value,messages:V.value,"selected-index":ce.value,onClose:P,onNavigate:M},null,8,["entry","messages","selected-index"])]),_:1})):se("",!0)]),_:1})],32)):se("",!0)}}}),Jy=rt(Zy,[["__scopeId","data-v-00b5d4d6"]]),Yy={key:0,class:"timeline-tab"},Xy={class:"timeline-scope-controls"},Qy={class:"scope-toggle"},e6=["onClick"],t6={class:"panel panel--hero"},n6={class:"panel-head"},u6={class:"panel-controls"},o6={class:"mode-toggle"},s6={class:"panel-body"},r6={class:"chart-container"},i6={class:"y-axis"},l6=["onClick"],a6=["viewBox"],c6=["points"],f6=["aria-label"],d6={class:"chart-legend"},p6=["onClick"],h6={key:0,class:"projection-badge"},m6={key:1,class:"projection-badge projection-badge--warn"},g6={class:"panel panel--secondary panel--spine panel--cost"},v6={class:"panel-head"},b6={class:"panel-sub"},_6={class:"panel-body"},y6={class:"chart-container"},x6={class:"y-axis"},k6=["onClick"],w6={class:"chart-legend"},C6=et({__name:"TimelineTab",setup(e){const t=St(),n=O({get:()=>t.timelineMode,set:$=>{t.timelineMode=$}}),u=O({get:()=>t.timelineStackMode,set:$=>{t.timelineStackMode=$}}),o=O({get:()=>t.timelineHiddenLegendKeys,set:$=>{t.timelineHiddenLegendKeys=$}}),s=O({get:()=>t.timelineShowLimitOverlay,set:$=>{t.timelineShowLimitOverlay=$}}),r=O({get:()=>t.timelineShowCacheOverlay,set:$=>{t.timelineShowCacheOverlay=$}}),i=he(null),l=he(null),a=O(()=>t.selectedSession),f=O(()=>t.selectedEntry),p=O(()=>a.value?hn([...a.value.entries].reverse()):[]),h=O(()=>n.value==="main"?p.value.filter($=>$.isMain):p.value),g=O(()=>{let $=0;for(const P of h.value){const b=P.entry.contextInfo.totalTokens;b>$&&($=b)}return $}),v=O(()=>{let $=0;for(const P of h.value){const b=P.entry.costUsd??0;b>$&&($=b)}return $}),w=O(()=>h.value.length<=40),y=O(()=>Rs(R.value)),E=O(()=>Om(h.value)),D=O(()=>Im(h.value,p.value)),L=O(()=>h.value.map(($,P)=>{const b=D.value.get($.entry.id)||[],d=b[0]||null,m=E.value[P]||P+1,_=d?`Turn ${m}: ${b.map(M=>`${M.label}: ${M.detail}`).join(", ")}`:"";return{entryId:$.entry.id,firstEvent:d,title:d?Lm(b,m):"",ariaLabel:_}}));function T($){const P=new Set(o.value);P.has($)?P.delete($):P.add($),o.value=P}const R=O(()=>{if(o.value.size===0)return g.value;let $=0;for(const P of h.value){const b=Ps(P.entry,o.value);b>$&&($=b)}return $});function F($){const P=Ps($.entry,o.value);return Ls(P,R.value)}function ue($){return Am($.entry,o.value)}function X($){return Ls($.entry.costUsd??0,v.value)}function U($){t.pinEntry($.id)}function Z($){t.setInspectorTab("messages"),t.focusMessageCategory($)}const ge=O(()=>Rm(h.value.length)),H=O(()=>{const $=f.value;if($&&$.contextLimit>0)return $.contextLimit;const P=h.value;return P.length>0?P[P.length-1].entry.contextLimit:0}),le=O(()=>{const $=R.value;return s.value?Math.max($,H.value):$}),ne=O(()=>{const $=le.value,P=H.value;return $===0||P===0?-1:(1-P/$)*100});function S($){if(u.value==="normalized")return 100;if(!s.value)return F($);const P=Ps($.entry,o.value);return Ls(P,le.value)}const te=O(()=>Rs(le.value)),ae=O(()=>Rs(v.value)),V=[0,25,50,75,100],ce=O(()=>{const $=f.value;return $?Vc($,p.value):null}),ye=O(()=>{const $=new Map;for(const P of h.value){const b=bn(P.entry.contextInfo.model);$.has(b)||$.set(b,gl(P.entry.contextInfo.model,!0))}return Array.from($.entries()).map(([P,b])=>({name:P,color:b}))}),B=O(()=>Object.entries(Ct).map(([$,P])=>({key:$,name:P.label,color:P.color}))),ee=O(()=>{const $=h.value;if($.length===0)return-1;if(n.value!=="all")return $.length-1;for(let P=$.length-1;P>=0;P--)if($[P].isMain)return P;return-1}),J=O(()=>{const $=h.value,P=ee.value;if(P<0)return!1;for(let b=0;b<=P;b++)if(!(n.value==="all"&&!$[b].isMain)&&pr($[b].entry)!==null)return!0;return!1}),de=O(()=>{const $=Math.max(0,ee.value+1);return $===0?"0 0 1 100":`0 0 ${$} 100`}),_e=O(()=>{const $=h.value.length,P=Math.max(0,ee.value+1);return $===0||P===0?"0%":`${P/$*100}%`}),C=O(()=>{const $=h.value,P=ee.value;if($.length===0||P<0)return"";const b=[];for(let d=0;d<=P;d++){if(n.value==="all"&&!$[d].isMain)continue;const m=pr($[d].entry);if(m===null)continue;const _=d+.5,M=(1-m)*100;b.push(`${_.toFixed(3)},${M.toFixed(2)}`)}return b.join(" ")}),I=O(()=>Bm(p.value));function K($){$&&($.scrollLeft=$.scrollWidth)}function j(){Je(()=>{K(i.value),K(l.value)})}return On(()=>{j()}),Ge(()=>{var $,P;return[(($=a.value)==null?void 0:$.id)??"",n.value,h.value.length,((P=h.value[h.value.length-1])==null?void 0:P.entry.id)??""]},()=>{j()},{immediate:!0}),($,P)=>{const b=zn("tooltip");return a.value?(x(),k("div",Yy,[c("div",Xy,[P[4]||(P[4]=c("span",{class:"scope-label"},"Scope",-1)),c("div",Qy,[(x(),k(pe,null,Te(["main","all"],d=>c("button",{key:"scope-"+d,class:ie({on:n.value===d}),onClick:m=>n.value=d},A(d==="all"?"All turns":"Main turns"),11,e6)),64))])]),c("section",t6,[c("div",n6,[P[9]||(P[9]=c("span",{class:"panel-title"},"Token Timeline",-1)),c("div",u6,[J.value?(x(),k("button",{key:0,class:ie(["overlay-toggle",{on:r.value}]),onClick:P[0]||(P[0]=d=>r.value=!r.value)},[...P[5]||(P[5]=[c("span",{class:"legend-dot legend-dot--cache"},null,-1),ke(" Cache ",-1)])],2)):se("",!0),u.value==="absolute"?(x(),k("button",{key:1,class:ie(["overlay-toggle",{on:s.value}]),onClick:P[1]||(P[1]=d=>s.value=!s.value)},[...P[6]||(P[6]=[c("span",{class:"legend-dot legend-dot--dashed"},null,-1),ke(" Limit ",-1)])],2)):se("",!0),c("div",o6,[He((x(),k("button",{class:ie({on:u.value==="absolute"}),onClick:P[2]||(P[2]=d=>u.value="absolute")},[...P[7]||(P[7]=[c("i",{class:"i-carbon-chart-column mode-icon"},null,-1),ke(" Abs ",-1)])],2)),[[b,"Absolute token counts"]]),He((x(),k("button",{class:ie({on:u.value==="normalized"}),onClick:P[3]||(P[3]=d=>u.value="normalized")},[...P[8]||(P[8]=[c("i",{class:"i-carbon-chart-maximum mode-icon"},null,-1),ke(" Pct ",-1)])],2)),[[b,"Normalized to 100% per turn"]])])])]),c("div",s6,[c("div",r6,[c("div",i6,[u.value==="normalized"?(x(!0),k(pe,{key:0},Te([...V].reverse(),d=>(x(),k("span",{key:"norm-"+d},A(d)+"%",1))),128)):(x(!0),k(pe,{key:1},Te([...s.value?te.value:y.value].reverse(),d=>(x(),k("span",{key:d},A(Y(vl)(d,"tokens")),1))),128))]),c("div",{ref_key:"tokenChartScrollEl",ref:i,class:"chart-scroll"},[c("div",{class:ie(["bars-wrap",{sparse:w.value}])},[c("div",{class:ie(["bars",{sparse:w.value}])},[(x(!0),k(pe,null,Te(h.value,(d,m)=>{var _;return x(),k("div",{key:d.entry.id,class:ie(["bar",{active:((_=f.value)==null?void 0:_.id)===d.entry.id,normalized:u.value==="normalized"}]),style:Se({height:S(d)+"%"}),onClick:M=>U(d.entry)},[(x(!0),k(pe,null,Te(ue(d),M=>He((x(),k("div",{key:d.entry.id+"-"+M.key,class:"bar-segment",style:Se({height:M.pct+"%",background:M.color})},null,4)),[[b,Y(Nm)(d.entry,M)]])),128))],14,l6)}),128))],2),u.value==="absolute"&&s.value&&ne.value>=0?(x(),k("div",{key:0,class:"limit-line",style:Se({top:ne.value+"%"})},null,4)):se("",!0),r.value&&C.value?(x(),k("svg",{key:1,class:"cache-line-svg",viewBox:de.value,style:Se({width:_e.value}),preserveAspectRatio:"none"},[c("polyline",{points:C.value,fill:"none",stroke:"var(--accent-cyan)","stroke-width":"1.5","vector-effect":"non-scaling-stroke","stroke-linejoin":"round","stroke-linecap":"round",opacity:"0.7"},null,8,c6)],12,a6)):se("",!0)],2),c("div",{class:ie(["events",{sparse:w.value}])},[(x(!0),k(pe,null,Te(L.value,d=>(x(),k("div",{key:"evt-"+d.entryId,class:"event-slot"},[d.firstEvent?He((x(),k("button",{key:0,class:ie(["event-marker",`event-marker--${d.firstEvent.type}`]),type:"button","aria-label":d.ariaLabel},[ke(A(Y(Pm)(d.firstEvent)),1)],10,f6)),[[b,{content:d.title,html:!0}]]):se("",!0)]))),128))],2),c("div",{class:ie(["labels",{sparse:w.value}])},[(x(!0),k(pe,null,Te(E.value,(d,m)=>(x(),k("div",{key:m,class:"label"},A(d&&(ge.value<=1||d%ge.value===0)?d:""),1))),128))],2)],512)]),c("div",d6,[(x(!0),k(pe,null,Te(B.value,d=>(x(),k("button",{key:d.key,class:ie(["legend-item legend-item--interactive",{"legend-item--hidden":o.value.has(d.key)}]),onClick:m=>T(d.key)},[c("span",{class:"legend-dot",style:Se({background:o.value.has(d.key)?"var(--text-ghost)":d.color})},null,4),ke(" "+A(d.name),1)],10,p6))),128)),I.value.turnsRemaining!==null&&I.value.turnsRemaining>0?He((x(),k("span",h6,[ke(" ~"+A(I.value.turnsRemaining)+" turns remaining ",1)])),[[b,`Growing ~${Y(we)(Math.round(I.value.growthPerTurn))}/turn over ${I.value.sinceCompaction} turns since last compaction`]]):I.value.turnsRemaining===0?He((x(),k("span",m6,[...P[10]||(P[10]=[ke(" At limit ",-1)])])),[[b,"Context window is at or near the limit"]]):se("",!0)])])]),c("section",g6,[c("div",v6,[P[11]||(P[11]=c("span",{class:"panel-title"},"Cost Timeline",-1)),c("span",b6,"Scope: "+A(n.value==="main"?"Main turns only":"All turns"),1)]),c("div",_6,[c("div",y6,[c("div",x6,[(x(!0),k(pe,null,Te([...ae.value].reverse(),d=>(x(),k("span",{key:"cost-"+d},A(Y(vl)(d,"cost")),1))),128))]),c("div",{ref_key:"costChartScrollEl",ref:l,class:"chart-scroll"},[c("div",{class:ie(["bars-wrap",{sparse:w.value}])},[c("div",{class:ie(["bars",{sparse:w.value}])},[(x(!0),k(pe,null,Te(h.value,d=>{var m;return He((x(),k("div",{key:"cost-"+d.entry.id,class:ie(["bar",{active:((m=f.value)==null?void 0:m.id)===d.entry.id}]),style:Se({height:X(d)+"%"}),onClick:_=>U(d.entry)},[c("div",{class:"bar-cost",style:Se({background:Y(gl)(d.entry.contextInfo.model,d.isMain)})},null,4)],14,k6)),[[b,Y(zm)(d.entry,d.isMain)]])}),128))],2)],2),c("div",{class:ie(["labels",{sparse:w.value}])},[(x(!0),k(pe,null,Te(E.value,(d,m)=>(x(),k("div",{key:"cost-label-"+m,class:"label"},A(d&&(ge.value<=1||d%ge.value===0)?d:""),1))),128))],2)],512)]),c("div",w6,[(x(!0),k(pe,null,Te(ye.value,d=>(x(),k("span",{key:d.name,class:"legend-item"},[c("span",{class:"legend-dot",style:Se({background:d.color})},null,4),ke(" "+A(d.name),1)]))),128))])])]),Ie(Kc,{"diff-data":ce.value,"show-when-empty":!!f.value,onCategoryClick:Z},null,8,["diff-data","show-when-empty"])])):se("",!0)}}}),$6=rt(C6,[["__scopeId","data-v-e2d83061"]]),E6=["aria-label","aria-valuemax","aria-valuenow"],T6={class:"scrubber-controls"},S6=["disabled"],D6={class:"readout-num"},A6={class:"readout-total"},F6=["disabled"],M6={class:"spark-bars"},I6={class:"tt-row tt-turn"},P6={class:"tt-row"},L6={class:"tt-row tt-dim"},R6=et({__name:"TurnScrubber",setup(e){const t=St(),n=he(null),u=he(!1),o=he(null),s=O(()=>t.selectedSession),r=O(()=>t.selectedEntry),i=O(()=>s.value?hn([...s.value.entries].reverse()):[]),l=O(()=>i.value.filter(V=>V.isMain)),a=O(()=>l.value.map(V=>V.entry)),f=O(()=>l.value.map(V=>!V.isMain)),p=O(()=>a.value.length),h=O(()=>{const V=r.value;if(!V)return-1;let ce=-1;for(const ye of i.value)if(ye.isMain&&ce++,ye.entry.id===V.id)return ce;return-1}),g=O(()=>{let V=0;for(const ce of a.value)ce.contextInfo.totalTokens>V&&(V=ce.contextInfo.totalTokens);return V}),v=O(()=>{const V=g.value;return V===0?a.value.map(()=>({height:.15,tokens:0,cost:0,model:"",utilization:0})):a.value.map(ce=>({height:Math.max(.08,ce.contextInfo.totalTokens/V),tokens:ce.contextInfo.totalTokens,cost:ce.costUsd??0,model:bn(ce.contextInfo.model),utilization:ce.contextLimit>0?ce.contextInfo.totalTokens/ce.contextLimit:0}))}),w=O(()=>t.selectionMode!=="pinned"||h.value<0?!1:h.value<p.value-1),y=O(()=>w.value?Math.max(0,p.value-1-h.value):0),E=O(()=>w.value?y.value/p.value>=.12:!1),D=O(()=>((h.value+1)/p.value+1)/2*100),L=O(()=>{const V=[];let ce=0,ye=-1;for(const B of i.value)B.isMain?(ye>=0&&V.push(ce),ce=0,ye++):ce++;return ye>=0&&V.push(ce),V}),T=O(()=>{if(o.value===null||o.value<0||o.value>=a.value.length)return null;const V=a.value[o.value],ce=v.value[o.value],ye=L.value[o.value]||0;return{turn:o.value+1,tokens:we(V.contextInfo.totalTokens),cost:kt(V.costUsd),model:ce.model,subs:ye,isSub:f.value[o.value]||!1}});function R(V){ge(V)&&t.pinEntry(a.value[V].id)}function F(){t.followLive()}function ue(){const V=h.value-1;ge(V)&&R(V)}function X(){const V=h.value+1;ge(V)&&R(V)}function U(){r.value&&t.pinEntry(r.value.id)}function Z(V){const ce=n.value;if(!ce||p.value===0)return-1;const ye=ce.getBoundingClientRect(),ee=Math.max(0,Math.min(V.clientX-ye.left,ye.width))/ye.width;return Math.min(Math.floor(ee*p.value),p.value-1)}function ge(V){return V>=0&&V<p.value}function H(V){var ye,B;if(p.value===0)return;u.value=!0;const ce=Z(V);ge(ce)&&R(ce),(B=(ye=V.target)==null?void 0:ye.setPointerCapture)==null||B.call(ye,V.pointerId)}function le(V){const ce=Z(V);o.value=ge(ce)?ce:null,u.value&&ge(ce)&&R(ce)}function ne(V){var ce,ye;u.value=!1,(ye=(ce=V.target)==null?void 0:ce.releasePointerCapture)==null||ye.call(ce,V.pointerId)}function S(){o.value=null}function te(V){V.key==="ArrowLeft"||V.key==="ArrowUp"?(V.preventDefault(),ue()):V.key==="ArrowRight"||V.key==="ArrowDown"?(V.preventDefault(),X()):V.key==="Home"?(V.preventDefault(),R(0)):V.key==="End"?(V.preventDefault(),p.value>0&&R(p.value-1)):V.key==="Escape"&&(V.preventDefault(),F())}function ae(V){return V>=.9?"var(--accent-red)":V>=.7?"var(--accent-amber)":"var(--accent-blue)"}return(V,ce)=>s.value&&r.value&&p.value>=1?(x(),k("div",{key:0,class:"scrubber",role:"slider","aria-label":`Turn scrubber: turn ${h.value+1} of ${p.value}`,"aria-valuemin":1,"aria-valuemax":p.value,"aria-valuenow":h.value+1,tabindex:"0",onKeydown:te},[c("div",T6,[c("button",{class:"ctrl-btn",disabled:h.value<=0,onClick:ue,title:"Previous turn (←)","aria-label":"Previous turn"},[...ce[0]||(ce[0]=[c("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[c("path",{d:"M7 1L3 5L7 9",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,S6),c("span",{class:ie(["turn-readout",Y(t).selectionMode==="live"?"is-live":"is-pinned"])},[ce[1]||(ce[1]=c("span",{class:"readout-dot"},null,-1)),c("span",D6,A(h.value+1),1),ce[2]||(ce[2]=c("span",{class:"readout-sep"},"/",-1)),c("span",A6,A(p.value),1)],2),c("button",{class:"ctrl-btn",disabled:h.value<0||h.value>=p.value-1,onClick:X,title:"Next turn (→)","aria-label":"Next turn"},[...ce[3]||(ce[3]=[c("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[c("path",{d:"M3 1L7 5L3 9",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,F6)]),c("div",{ref_key:"trackEl",ref:n,class:"scrubber-track",onPointerdown:H,onPointermove:le,onPointerup:ne,onPointerleave:S},[c("div",M6,[(x(!0),k(pe,null,Te(v.value,(ye,B)=>(x(),k("div",{key:B,class:ie(["spark-col",{active:B===h.value,hover:B===o.value&&B!==h.value,past:Y(t).selectionMode==="pinned"&&B>h.value,"is-sub":f.value[B]}])},[c("div",{class:"spark-bar",style:Se({height:ye.height*100+"%","--bar-color":ae(ye.utilization)})},null,4),L.value[B]>0?(x(),k("div",{key:0,class:ie(["sub-dot",{"sub-burst":L.value[B]>=3}])},null,2)):se("",!0)],2))),128))]),h.value>=0?(x(),k("div",{key:0,class:ie(["playhead",{live:Y(t).selectionMode==="live"}]),style:Se({left:(h.value+.5)/p.value*100+"%"})},[...ce[4]||(ce[4]=[c("div",{class:"playhead-line"},null,-1),c("div",{class:"playhead-head"},null,-1)])],6)):se("",!0),E.value?(x(),k("div",{key:1,class:"new-turns-badge",style:Se({left:D.value+"%"}),onClick:Mt(F,["stop"])}," +"+A(y.value)+" new ",5)):se("",!0),Ie(Zt,{name:"tooltip-fade"},{default:ot(()=>[T.value&&o.value!==h.value?(x(),k("div",{key:0,class:"scrub-tooltip",style:Se({left:Math.min(Math.max((o.value+.5)/p.value*100,8),92)+"%"})},[c("div",I6,"T"+A(T.value.turn)+A(T.value.isSub?" (sub)":""),1),c("div",P6,A(T.value.tokens)+" · "+A(T.value.cost),1),c("div",L6,A(T.value.model)+A(T.value.subs>0?` · ${T.value.subs} sub`:""),1)],4)):se("",!0)]),_:1})],544),Y(t).selectionMode==="live"?(x(),k("button",{key:0,class:"action-btn action-pin",onClick:U,title:"Pin current turn to scrub history"},[...ce[5]||(ce[5]=[c("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[c("circle",{cx:"5",cy:"5",r:"3.5",stroke:"currentColor","stroke-width":"1"}),c("circle",{cx:"5",cy:"5",r:"1.5",fill:"currentColor"})],-1),ke(" Pin ",-1)])])):(x(),k("button",{key:1,class:"action-btn action-return",onClick:F,title:"Return to live (Esc)"},[...ce[6]||(ce[6]=[c("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[c("path",{d:"M2 5H8M8 5L5.5 2.5M8 5L5.5 7.5",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})],-1),ke(" Live ",-1)])]))],40,E6)):se("",!0)}}),O6=rt(R6,[["__scopeId","data-v-865993b3"]]),z6={class:"tab-bar"},N6=["onClick"],B6={class:"tab-content"},H6=et({__name:"InspectorPanel",setup(e){const t=St(),n=[{id:"overview",label:"Overview",icon:"i-carbon-dashboard"},{id:"messages",label:"Messages",icon:"i-carbon-chat"},{id:"timeline",label:"Timeline",icon:"i-carbon-activity"}],u={overview:nb,messages:Jy,timeline:$6},o=O(()=>u[t.inspectorTab]);function s(i){i==="messages"&&t.clearMessageFocus(),t.setInspectorTab(i)}function r(i){i.key==="Escape"&&!i.defaultPrevented&&t.setView("dashboard")}return(i,l)=>(x(),k("div",{class:"inspector",onKeydown:r,tabindex:"-1"},[Ie(O6),c("div",z6,[(x(),k(pe,null,Te(n,a=>c("button",{key:a.id,class:ie(["tab-btn",{active:Y(t).inspectorTab===a.id}]),onClick:f=>s(a.id)},[c("i",{class:ie(a.icon)},null,2),ke(" "+A(a.label),1)],10,N6)),64))]),c("div",B6,[(x(),_t(Oa(o.value),{key:Y(t).inspectorTab}))])],32))}}),j6=rt(H6,[["__scopeId","data-v-74dad8d1"]]),q6={class:"session-rail","aria-label":"Sessions"},V6={class:"rail-scroll"},U6=["onClick"],W6={class:"tile-meta"},K6={key:0,class:"tile-tags"},G6=["title"],Z6={key:0,class:"tile-tag-more"},J6=et({__name:"SessionRail",setup(e){const t=St();function n(l){t.selectSession(l),t.setView("inspector")}function u(){t.setView("dashboard")}function o(l){var w;const a=bn(l.latestModel),f=l.entryCount+(l.entryCount===1?" turn":" turns"),p=kt(l.totalCost),h=l.healthScore?`
|
|
48
|
+
Health ${l.healthScore.overall}/100 (${l.healthScore.rating})`:"",g=l.workingDirectory?`
|
|
49
|
+
${l.workingDirectory}`:"",v=(w=l.tags)!=null&&w.length?`
|
|
50
|
+
Tags: ${l.tags.join(", ")}`:"";return`${l.source} · ${a}
|
|
51
|
+
${f} · ${p}${h}${g}${v}`}function s(l){return l.contextLimit?Math.min(100,Math.round(l.latestTotalTokens/l.contextLimit*100)):0}function r(l){const a=s(l);return a>=80?"high":a>=60?"mid":"low"}const i={delay:{show:50,hide:0},placement:"right"};return(l,a)=>{const f=zn("tooltip");return x(),k("nav",q6,[He((x(),k("button",{class:"rail-back",onClick:u},[...a[0]||(a[0]=[c("i",{class:"i-carbon-grid grid-icon"},null,-1)])])),[[f,{content:"Dashboard",...i}]]),a[1]||(a[1]=c("span",{class:"rail-label"},"SESSIONS",-1)),c("div",V6,[(x(!0),k(pe,null,Te(Y(t).filteredSummaries,p=>{var h;return He((x(),k("button",{key:p.id,class:ie(["rail-tile",{active:p.id===Y(t).selectedSessionId,pulse:Y(t).recentlyUpdated.has(p.id)}]),onClick:g=>n(p.id)},[c("span",{class:ie(["tile-source",Y(Yu)(p.source)])},A(p.source||"?"),3),c("span",W6,A(p.entryCount)+"t",1),c("span",{class:ie(["tile-util",r(p)])},A(s(p))+"%",3),(h=p.tags)!=null&&h.length?(x(),k("span",K6,[(x(!0),k(pe,null,Te(p.tags.slice(0,3),(g,v)=>(x(),k("span",{key:g,class:ie(["tile-tag-dot",Y(t).getTagColorClass(v)]),title:g},null,10,G6))),128)),p.tags.length>3?(x(),k("span",Z6,"+")):se("",!0)])):se("",!0)],10,U6)),[[f,{content:o(p),...i}]])}),128))])])}}}),Y6=rt(J6,[["__scopeId","data-v-cdc746c2"]]),X6={class:"compare-view"},Q6={class:"compare-header"},ex={class:"compare-title"},tx={class:"compare-count"},nx={class:"legend"},ux={class:"lanes"},ox=["onMouseenter"],sx={class:"lane-header"},rx={class:"lane-identity"},ix={class:"lane-index"},lx={class:"lane-model"},ax={key:0,class:"lane-dir"},cx={class:"lane-metrics"},fx={class:"lm-cell"},dx={class:"lm-value"},px={key:0,class:"lm-winner"},hx={class:"lm-cell"},mx={class:"lm-value green"},gx={key:0,class:"lm-winner"},vx={class:"lm-cell"},bx={key:0,class:"lm-winner"},_x={class:"lm-cell"},yx={key:1,class:"lm-value ghost"},xx={key:0,class:"lm-cell"},kx={class:"lm-value dim"},wx={key:1,class:"lm-cell"},Cx={class:"lm-value dim"},$x={key:0,class:"lm-winner"},Ex={class:"lm-cell"},Tx={class:"lm-value dim"},Sx=["href","onClick"],Dx={class:"lane-body"},Ax={class:"turn-track"},Fx=["title","href","onMouseenter","onClick"],Mx={class:"turn-num"},Ix={key:0,class:"turns-empty"},Px={key:0,class:"sparkline-col"},Lx={class:"sparkline-cell"},Rx={class:"sparkline",viewBox:"0 0 100 100",preserveAspectRatio:"none"},Ox=["y1","y2"],zx=["d"],Nx=["d"],Bx={class:"sparkline-val"},Hx={class:"sparkline-cell"},jx={class:"sparkline sparkline--cost",viewBox:"0 0 100 100",preserveAspectRatio:"none"},qx=["d"],Vx=["d"],Ux={class:"sparkline-val"},Wx={key:0,class:"comp-row"},Kx={class:"comp-tape"},Gx=["title"],Zx={key:0,class:"comp-seg-label"},Jx={class:"comp-total"},Ul="#ef4444",Wl="#9ca3af",Yx=et({__name:"CompareView",setup(e){const t=St(),n=he(null),u=he(null),o=he(null),s=O(()=>{const B=Object.entries(Ct).map(([ee,J])=>({key:ee,label:J.label,color:J.color}));return B.push({key:"error",label:"Error",color:Ul}),B.push({key:"stall",label:"Stall",color:Wl}),B});function r(B){const ee={};for(const[J,de]of Object.entries(fu)){ee[J]=0;for(const _e of de){const C=B.find(I=>I.category===_e);C&&(ee[J]+=C.tokens)}}return ee}function i(B){const ee=r(B);let J="other",de=0;for(const[_e,C]of Object.entries(ee))C>de&&(J=_e,de=C);return J}function l(B){const ee=r(B),J=Object.values(ee).reduce((de,_e)=>de+_e,0);return J===0?[]:Object.entries(ee).filter(([,de])=>de>0).sort((de,_e)=>_e[1]-de[1]).map(([de,_e])=>{var C;return{key:de,color:((C=Ct[de])==null?void 0:C.color)??"#475569",pct:_e/J*100}})}function a(B){const ee=new Map;for(const _e of B){const C=_e.agentKey||"_default";ee.set(C,(ee.get(C)||0)+1)}let J="_default",de=0;for(const[_e,C]of ee)C>de&&(J=_e,de=C);return J}function f(B){const ee=a(B.entries);return B.entries.filter(de=>(de.agentKey||"_default")===ee).sort((de,_e)=>new Date(de.timestamp).getTime()-new Date(_e.timestamp).getTime()).map((de,_e)=>{var $;const C=(de.httpStatus??200)>=400,I=de.stopReason==="max_tokens",K=i(de.composition);let j;return C?j=Ul:I?j=Wl:j=(($=Ct[K])==null?void 0:$.color)??Ct.other.color,{turnNumber:_e+1,entry:de,dominantGroup:K,color:j,isError:C,isStall:I,tokens:de.contextInfo.totalTokens,costUsd:de.costUsd??0,segments:l(de.composition)}})}function p(B){if(!B)return"";let ee=B;/^\/home\/[^/]+(\/|$)/.test(ee)?ee=ee.replace(/^\/home\/[^/]+/,"~"):/^\/Users\/[^/]+(\/|$)/.test(ee)&&(ee=ee.replace(/^\/Users\/[^/]+/,"~"));const J=ee.split("/");return J.length>2?J.slice(-2).join("/"):ee}function h(B){for(let ee=B.length-1;ee>=0;ee--){const J=pr(B[ee].entry);if(J!==null)return J}return null}const g=O(()=>{const B=[];for(const ee of t.compareSessionIds){const J=t.loadedConversations.get(ee),de=t.summaries.find(Q=>Q.id===ee);if(!J&&!de)continue;const _e=J?f(J):[],C=J?J.entries.reduce((Q,Ce)=>Q+(Ce.costUsd??0),0):(de==null?void 0:de.totalCost)??0,I=J?J.entries.reduce((Q,Ce)=>{var ve;return Q+(((ve=Ce.timings)==null?void 0:ve.total_ms)??0)},0):0,K=_e.length>0?_e[_e.length-1].entry:null,j=_e.map(Q=>Q.tokens),$=_e.map(Q=>Q.costUsd),P=J?(K==null?void 0:K.healthScore)??(de==null?void 0:de.healthScore):de==null?void 0:de.healthScore,b=(K==null?void 0:K.contextInfo.totalTokens)??(de==null?void 0:de.latestTotalTokens)??0,d=(K==null?void 0:K.contextLimit)??(de==null?void 0:de.contextLimit)??2e5,m=(de==null?void 0:de.latestModel)??(K==null?void 0:K.contextInfo.model)??"",_=(de==null?void 0:de.source)??(J==null?void 0:J.source)??"",M=(de==null?void 0:de.workingDirectory)??(J==null?void 0:J.workingDirectory)??null,z=J?J.entries.reduce((Q,Ce)=>{var ve;return Q+(((ve=Ce.usage)==null?void 0:ve.outputTokens)??0)},0):0,oe=K?l(K.composition):[],G=h(_e),fe=z>0&&C>0?C/z*1e3:null;B.push({id:ee,source:_,model:m,directory:p(M),turnCount:_e.length,totalCost:C,totalDurationMs:I,finalTokens:b,contextLimit:d,healthRating:(P==null?void 0:P.rating)??"unknown",healthScore:(P==null?void 0:P.overall)??0,turns:_e,tokenHistory:j,costHistory:$,utilization:d>0?b/d:0,outputTokens:z,cacheRate:G,costPerOutputK:fe,finalComposition:oe})}return B}),v=O(()=>{let B=0;for(const ee of g.value)for(const J of ee.turns)J.tokens>B&&(B=J.tokens);return B||1}),w=O(()=>{let B=0;for(const ee of g.value)for(const J of ee.turns)J.costUsd>B&&(B=J.costUsd);return B||.01}),y=O(()=>{let B=0;for(const ee of g.value){B=Math.max(B,ee.contextLimit);for(const J of ee.tokenHistory)J>B&&(B=J)}return B||1});function E(B){const _e=8+B/v.value*24;return Math.round(_e)+"px"}function D(B){return B<=0?0:.15+B/w.value*.85}function L(B,ee){if(B.length===0)return"";const J=100,de=100,_e=B.length>1?J/(B.length-1):0;return B.map((C,I)=>{const K=B.length===1?J/2:I*_e,j=de-C/ee*de;return`${I===0?"M":"L"}${K.toFixed(1)},${j.toFixed(1)}`}).join(" ")}function T(B,ee){if(B.length===0)return"";const J=100,de=100,_e=B.length>1?J/(B.length-1):0,C=B.map((j,$)=>{const P=B.length===1?J/2:$*_e,b=de-j/ee*de;return`${$===0?"M":"L"}${P.toFixed(1)},${b.toFixed(1)}`}).join(" "),I=B.length===1?J/2:(B.length-1)*_e,K=B.length===1?J/2:0;return`${C} L${I.toFixed(1)},${de} L${K.toFixed(1)},${de} Z`}function R(B){const ee=y.value;return 100-B/ee*100}const F=O(()=>{let B=0;for(const ee of g.value)for(const J of ee.costHistory)J>B&&(B=J);return B||.01});function ue(B,ee){return n.value===null||ee===n.value?1:B===u.value?.3:.4}function X(B){var J;const ee=[`Turn ${B.turnNumber}`,`Model: ${bn(B.entry.contextInfo.model)}`,`Context: ${we(B.entry.contextInfo.totalTokens)}`,`Cost: ${kt(B.entry.costUsd)}`,`Dominant: ${((J=Ct[B.dominantGroup])==null?void 0:J.label)??B.dominantGroup}`];return B.entry.timings&&ee.push(`Duration: ${cr(B.entry.timings.total_ms)}`),B.entry.stopReason&&ee.push(`Stop: ${B.entry.stopReason}`),B.isError&&ee.push(`HTTP ${B.entry.httpStatus}`),ee.join(`
|
|
52
|
+
`)}function U(B,ee){return`#session/${encodeURIComponent(B)}?tab=overview&turn=${ee}`}function Z(B){return`#session/${encodeURIComponent(B)}?tab=overview`}function ge(B,ee){n.value=ee,u.value=B}function H(){n.value=null,u.value=null}function le(B,ee,J){B.ctrlKey||B.metaKey||B.button===1||(B.preventDefault(),t.exitCompare("inspector"),t.selectSession(ee),t.pinEntry(J.entry.id))}function ne(B,ee){B.ctrlKey||B.metaKey||B.button===1||(B.preventDefault(),t.exitCompare("inspector"),t.setInspectorTab("overview"),t.selectSession(ee))}function S(){t.exitCompare("dashboard")}function te(B){return B>=.8?"util-high":B>=.6?"util-mid":"util-low"}function ae(B){o.value=B}function V(){o.value=null}function ce(B){return B>=.01?"$"+B.toFixed(2)+"/K":"$"+B.toFixed(3)+"/K"}const ye=O(()=>{const B=g.value;if(B.length<2)return null;const ee=B.map(P=>P.totalCost),J=B.map(P=>P.finalTokens),de=B.map(P=>P.turnCount),_e=B.map(P=>P.costPerOutputK),C=Math.min(...ee),I=Math.min(...J),K=Math.min(...de),j=_e.filter(P=>P!==null),$=j.length>0?Math.min(...j):null;return B.map(P=>({isCheapest:P.totalCost<=C,isLeanest:P.finalTokens<=I,isFewest:P.turnCount<=K,isMostEfficient:$!==null&&P.costPerOutputK!==null&&P.costPerOutputK<=$}))});return(B,ee)=>(x(),k("div",X6,[c("header",Q6,[c("button",{class:"back-btn",onClick:S},[...ee[0]||(ee[0]=[c("i",{class:"i-carbon-arrow-left"},null,-1),ke(" Dashboard ",-1)])]),c("h1",ex,[ee[1]||(ee[1]=ke(" Compare ",-1)),c("span",tx,A(g.value.length)+" sessions",1)]),c("div",nx,[(x(!0),k(pe,null,Te(s.value,J=>(x(),k("span",{key:J.key,class:"legend-chip"},[c("span",{class:"legend-swatch",style:Se({background:J.color})},null,4),ke(" "+A(J.label),1)]))),128))])]),c("div",ux,[(x(!0),k(pe,null,Te(g.value,(J,de)=>(x(),k("div",{key:J.id,class:ie(["lane",{"lane--focused":o.value===J.id,"lane--dimmed":o.value!==null&&o.value!==J.id}]),onMouseenter:_e=>ae(J.id),onMouseleave:V},[c("div",sx,[c("div",rx,[c("div",ix,A(de+1),1),c("span",{class:ie(["source-badge",Y(Yu)(J.source)])},A(J.source||"?"),3),c("span",lx,A(Y(bn)(J.model)),1),J.directory?(x(),k("span",ax,A(J.directory),1)):se("",!0)]),c("div",cx,[c("div",fx,[c("span",dx,A(J.turnCount),1),ee[2]||(ee[2]=c("span",{class:"lm-key"},"turns",-1)),ye.value&&ye.value[de].isFewest?(x(),k("span",px)):se("",!0)]),c("div",hx,[c("span",mx,A(Y(kt)(J.totalCost)),1),ee[3]||(ee[3]=c("span",{class:"lm-key"},"cost",-1)),ye.value&&ye.value[de].isCheapest?(x(),k("span",gx)):se("",!0)]),c("div",vx,[c("span",{class:ie(["lm-value",te(J.utilization)])},A(Math.round(J.utilization*100))+"% ",3),ee[4]||(ee[4]=c("span",{class:"lm-key"},"context",-1)),ye.value&&ye.value[de].isLeanest?(x(),k("span",bx)):se("",!0)]),c("div",_x,[J.healthRating!=="unknown"?(x(),k("span",{key:0,class:"lm-value lm-health",style:Se({color:Y(dr)(J.healthRating)})},A(J.healthScore),5)):(x(),k("span",yx,"--")),ee[5]||(ee[5]=c("span",{class:"lm-key"},"health",-1))]),J.cacheRate!==null?(x(),k("div",xx,[c("span",kx,A(Y(fr)(J.cacheRate)),1),ee[6]||(ee[6]=c("span",{class:"lm-key"},"cache",-1))])):se("",!0),J.costPerOutputK!==null?(x(),k("div",wx,[c("span",Cx,A(ce(J.costPerOutputK)),1),ee[7]||(ee[7]=c("span",{class:"lm-key"},"$/out",-1)),ye.value&&ye.value[de].isMostEfficient?(x(),k("span",$x)):se("",!0)])):se("",!0),c("div",Ex,[c("span",Tx,A(J.totalDurationMs>0?Y(cr)(J.totalDurationMs):"--"),1),ee[8]||(ee[8]=c("span",{class:"lm-key"},"duration",-1))])]),c("a",{class:"inspect-btn",title:"Open in inspector",href:Z(J.id),onClick:_e=>ne(_e,J.id)},[...ee[9]||(ee[9]=[c("i",{class:"i-carbon-arrow-right"},null,-1)])],8,Sx)]),c("div",Dx,[c("div",Ax,[(x(!0),k(pe,null,Te(J.turns,_e=>(x(),k("a",{key:_e.turnNumber,class:ie(["turn-col",{"turn-col--error":_e.isError,"turn-col--stall":_e.isStall,"turn-col--crosslit":n.value===_e.turnNumber&&u.value!==J.id}]),style:Se({opacity:ue(J.id,_e.turnNumber)}),title:X(_e),href:U(J.id,_e.turnNumber),onMouseenter:C=>ge(J.id,_e.turnNumber),onMouseleave:H,onClick:C=>le(C,J.id,_e)},[c("div",{class:"turn-bar",style:Se({height:E(_e.tokens)})},[(x(!0),k(pe,null,Te(_e.segments,C=>(x(),k("div",{key:C.key,class:"turn-seg",style:Se({flex:C.pct,background:C.color})},null,4))),128))],4),c("div",{class:"cost-dot",style:Se({opacity:D(_e.costUsd)})},null,4),c("span",Mx,A(_e.turnNumber),1)],46,Fx))),128)),J.turns.length===0?(x(),k("div",Ix," Loading... ")):se("",!0)]),J.tokenHistory.length>1?(x(),k("div",Px,[c("div",Lx,[(x(),k("svg",Rx,[c("line",{x1:"0",y1:R(J.contextLimit),x2:"100",y2:R(J.contextLimit),class:"sparkline-limit"},null,8,Ox),c("path",{d:T(J.tokenHistory,y.value),class:"sparkline-area"},null,8,zx),c("path",{d:L(J.tokenHistory,y.value),class:"sparkline-line"},null,8,Nx)])),c("span",Bx,[ke(A(Y(we)(J.finalTokens)),1),ee[10]||(ee[10]=c("span",{class:"sparkline-sep"},"/",-1)),ke(A(Y(we)(J.contextLimit)),1)])]),c("div",Hx,[(x(),k("svg",jx,[c("path",{d:T(J.costHistory,F.value),class:"sparkline-area sparkline-area--cost"},null,8,qx),c("path",{d:L(J.costHistory,F.value),class:"sparkline-line sparkline-line--cost"},null,8,Vx)])),c("span",Ux,A(Y(kt)(J.totalCost))+" total",1)])])):se("",!0)]),J.finalComposition.length>0?(x(),k("div",Wx,[c("div",Kx,[(x(!0),k(pe,null,Te(J.finalComposition,_e=>{var C,I;return x(),k("div",{key:_e.key,class:"comp-seg",style:Se({flex:_e.pct,background:_e.color}),title:`${((C=Y(Ct)[_e.key])==null?void 0:C.label)??_e.key}: ${Math.round(_e.pct)}%`},[_e.pct>=18?(x(),k("span",Zx,A(((I=Y(Ct)[_e.key])==null?void 0:I.label)??_e.key),1)):se("",!0)],12,Gx)}),128))]),c("span",Jx,A(Y(we)(J.finalTokens)),1)])):se("",!0)],42,ox))),128))])]))}}),Xx=rt(Yx,[["__scopeId","data-v-c274f2d8"]]),Qx={},ek={class:"empty"};function tk(e,t){return x(),k("div",ek,[...t[0]||(t[0]=[oc('<svg class="empty-icon" width="48" height="48" viewBox="0 0 48 48" aria-hidden="true" data-v-213dcf0e><circle cx="24" cy="24" r="20" fill="none" stroke="var(--border-mid)" stroke-width="1" data-v-213dcf0e></circle><circle cx="24" cy="24" r="10" fill="none" stroke="var(--border-bright)" stroke-width="0.8" data-v-213dcf0e></circle><circle cx="24" cy="24" r="3" fill="var(--accent-blue)" opacity="0.4" data-v-213dcf0e></circle></svg><div class="empty-title" data-v-213dcf0e>No requests captured yet</div><div class="empty-sub" data-v-213dcf0e> Start a tool through the CLI to capture traffic: </div><div class="empty-examples" data-v-213dcf0e><code data-v-213dcf0e>context-lens claude</code><code data-v-213dcf0e>context-lens codex</code><code data-v-213dcf0e>context-lens gemini</code></div>',4)])])}const nk=rt(Qx,[["render",tk],["__scopeId","data-v-213dcf0e"]]),uk={class:"app"},ok={class:"app-body"},sk={key:0,class:"app-loading"},rk={key:0,class:"rail-wrapper"},ik={class:"main-content"},lk={key:"inspector",class:"inspector-content"},ak={key:1,class:"loading-placeholder"},Kl="#sessions",ck=et({__name:"App",setup(e){const t=St(),n=he(!1),u=he(!1),o=["overview","messages","timeline"];let s=null;const r=he(null),i=O(()=>{const y=t.view,E=r.value;return E===null?"view-instant":E==="dashboard"&&y==="inspector"?"view-slide-forward":E==="inspector"&&y==="dashboard"?"view-slide-back":"view-instant"});Ge(()=>t.view,(y,E)=>{r.value!==null?r.value=E:r.value=y});const{connected:l}=Sh("/api/events",y=>{t.handleSSEEvent(y)});Ge(l,y=>{t.connected=y});function a(y){const E=y.match(/^#session\/([^?]+)(?:\?(.*))?$/);if(!E)return{sessionId:null,tab:null,turn:null};const L=decodeURIComponent(E[1]).trim()||null;if(!L)return{sessionId:null,tab:null,turn:null};const T=new URLSearchParams(E[2]??""),R=T.get("tab"),F=R&&o.includes(R)?R:null,ue=T.get("turn"),X=ue?Number.parseInt(ue,10):NaN,U=Number.isFinite(X)&&X>0?X:null;return{sessionId:L,tab:F,turn:U}}function f(y){return hn([...y.entries].reverse()).filter(E=>E.isMain).map(E=>E.entry)}function p(){if(t.selectionMode!=="pinned")return null;const y=t.selectedSession;if(!y)return null;const E=f(y);if(E.length===0)return null;const D=t.selectedEntryId;if(D==null)return null;const L=E.findIndex(R=>R.id===D);if(L<0)return null;const T=L+1;return T<E.length?T:null}function h(y){const E=y.match(/^#compare\/(.+)$/);return E?E[1].split(",").map(D=>decodeURIComponent(D.trim())).filter(Boolean):null}async function g(){n.value=!0;try{const y=window.location.hash||"",E=h(y);if(E&&E.length>=2){const R=E.filter(F=>t.summaries.some(ue=>ue.id===F));if(R.length>=2){await t.enterCompare(new Set(R));return}}const{sessionId:D,tab:L,turn:T}=a(y);if(D){if(!t.summaries.some(F=>F.id===D)){t.setView("dashboard");return}if(await t.selectSession(D),L&&t.setInspectorTab(L),T!=null&&t.selectedSession){const F=f(t.selectedSession);if(F.length>0){const ue=Math.min(Math.max(T,1),F.length);ue<F.length?t.pinEntry(F[ue-1].id):t.followLive()}else t.followLive()}else t.followLive();t.setView("inspector");return}t.setView("dashboard")}finally{n.value=!1}}function v(){if(n.value)return;let y=Kl;if(t.view==="compare"&&t.compareSessionIds.size>=2)y=`#compare/${Array.from(t.compareSessionIds).map(D=>encodeURIComponent(D)).join(",")}`;else if(t.view==="inspector"&&t.selectedSessionId){const E=new URLSearchParams;E.set("tab",t.inspectorTab);const D=p();D!=null&&E.set("turn",String(D));const L=E.toString();y=`#session/${encodeURIComponent(t.selectedSessionId)}${L?`?${L}`:""}`}window.location.hash!==y&&(window.location.hash=y)}function w(){g()}return Ge(()=>{var y;return[t.view,t.selectedSessionId,t.inspectorTab,t.selectionMode,t.selectedEntryId,(y=t.selectedSession)==null?void 0:y.entries.length,t.compareMode,t.compareSessionIds.size]},()=>{v()}),On(async()=>{try{t.initializeDensity(),await t.load(),window.location.hash||(window.location.hash=Kl),await g(),window.addEventListener("hashchange",w),s=setInterval(()=>{document.hidden||t.load()},5e3)}finally{u.value=!0}}),so(()=>{window.removeEventListener("hashchange",w),s&&(clearInterval(s),s=null)}),(y,E)=>(x(),k("div",uk,[Ie(s1),c("div",ok,[u.value?(x(),k(pe,{key:1},[Ie(Zt,{name:"rail-slide"},{default:ot(()=>[Y(t).view==="inspector"?(x(),k("div",rk,[Ie(Y6)])):se("",!0)]),_:1}),c("div",ik,[Ie(Zt,{name:i.value},{default:ot(()=>[Y(t).view==="dashboard"?(x(),_t(Dm,{key:"dashboard"})):Y(t).view==="compare"?(x(),_t(Xx,{key:"compare"})):Y(t).view==="inspector"?(x(),k("div",lk,[Y(t).selectedSession?(x(),_t(j6,{key:0})):(x(),k("div",ak,[...E[1]||(E[1]=[c("div",{class:"loading-spinner"},null,-1)])]))])):(x(),_t(nk,{key:"empty"}))]),_:1},8,["name"])])],64)):(x(),k("div",sk,[...E[0]||(E[0]=[c("div",{class:"loading-spinner"},null,-1)])]))])]))}}),fk=rt(ck,[["__scopeId","data-v-eb13f43c"]]),ni=dc(fk);ni.use(tp());ni.use(ph,{themes:{tooltip:{delay:{show:200,hide:0},distance:8,overflowPadding:8}}});ni.mount("#app");
|