@opencode-trace/viewer 0.0.2
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 +94 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +21 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/public/assets/favicon-v9nnlQV_.svg +53 -0
- package/dist/public/assets/index-DoL5ISmB.js +91 -0
- package/dist/public/assets/index-idry_N9R.css +1 -0
- package/dist/public/index.html +30 -0
- package/dist/server.d.ts +12 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +348 -0
- package/dist/server.js.map +1 -0
- package/dist/server.test.d.ts +2 -0
- package/dist/server.test.d.ts.map +1 -0
- package/dist/server.test.js +102 -0
- package/dist/server.test.js.map +1 -0
- package/package.json +53 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
var Yl=Object.defineProperty;var Xl=(e,t,s)=>t in e?Yl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var ye=(e,t,s)=>Xl(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function s(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(r){if(r.ep)return;r.ep=!0;const o=s(r);fetch(r.href,o)}})();/**
|
|
2
|
+
* @vue/shared v3.5.34
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/function Rr(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const _e={},fs=[],kt=()=>{},pi=()=>!1,Rn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Tn=e=>e.startsWith("onUpdate:"),Le=Object.assign,Tr=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},ea=Object.prototype.hasOwnProperty,pe=(e,t)=>ea.call(e,t),J=Array.isArray,ds=e=>Qs(e)==="[object Map]",Cn=e=>Qs(e)==="[object Set]",io=e=>Qs(e)==="[object Date]",se=e=>typeof e=="function",Te=e=>typeof e=="string",it=e=>typeof e=="symbol",ve=e=>e!==null&&typeof e=="object",gi=e=>(ve(e)||se(e))&&se(e.then)&&se(e.catch),mi=Object.prototype.toString,Qs=e=>mi.call(e),ta=e=>Qs(e).slice(8,-1),vi=e=>Qs(e)==="[object Object]",Cr=e=>Te(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ms=Rr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),An=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},sa=/-\w/g,We=An(e=>e.replace(sa,t=>t.slice(1).toUpperCase())),na=/\B([A-Z])/g,Ft=An(e=>e.replace(na,"-$1").toLowerCase()),$n=An(e=>e.charAt(0).toUpperCase()+e.slice(1)),zn=An(e=>e?`on${$n(e)}`:""),bt=(e,t)=>!Object.is(e,t),an=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},bi=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},En=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let lo;const In=()=>lo||(lo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ar(e){if(J(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=Te(n)?la(n):Ar(n);if(r)for(const o in r)t[o]=r[o]}return t}else if(Te(e)||ve(e))return e}const ra=/;(?![^(]*\))/g,oa=/:([^]+)/,ia=/\/\*[^]*?\*\//g;function la(e){const t={};return e.replace(ia,"").split(ra).forEach(s=>{if(s){const n=s.split(oa);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Re(e){let t="";if(Te(e))t=e;else if(J(e))for(let s=0;s<e.length;s++){const n=Re(e[s]);n&&(t+=n+" ")}else if(ve(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const aa="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ca=Rr(aa);function yi(e){return!!e||e===""}function ua(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Js(e[n],t[n]);return s}function Js(e,t){if(e===t)return!0;let s=io(e),n=io(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=it(e),n=it(t),s||n)return e===t;if(s=J(e),n=J(t),s||n)return s&&n?ua(e,t):!1;if(s=ve(e),n=ve(t),s||n){if(!s||!n)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!Js(e[i],t[i]))return!1}}return String(e)===String(t)}function fa(e,t){return e.findIndex(s=>Js(s,t))}const ki=e=>!!(e&&e.__v_isRef===!0),W=e=>Te(e)?e:e==null?"":J(e)||ve(e)&&(e.toString===mi||!se(e.toString))?ki(e)?W(e.value):JSON.stringify(e,_i,2):String(e),_i=(e,t)=>ki(t)?_i(e,t.value):ds(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],o)=>(s[Gn(n,o)+" =>"]=r,s),{})}:Cn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Gn(s))}:it(t)?Gn(t):ve(t)&&!J(t)&&!vi(t)?String(t):t,Gn=(e,t="")=>{var s;return it(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.34
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let Ne;class da{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Ne&&(Ne.active?(this.parent=Ne,this.index=(Ne.scopes||(Ne.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Ne;try{return Ne=this,t()}finally{Ne=s}}}on(){++this._on===1&&(this.prevScope=Ne,Ne=this)}off(){if(this._on>0&&--this._on===0){if(Ne===this)Ne=this.prevScope;else{let t=Ne;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function ha(){return Ne}let xe;const Kn=new WeakSet;class wi{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,Ne&&(Ne.active?Ne.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Kn.has(this)&&(Kn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Si(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ao(this),Ri(this);const t=xe,s=ot;xe=this,ot=!0;try{return this.fn()}finally{Ti(this),xe=t,ot=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ir(t);this.deps=this.depsTail=void 0,ao(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Kn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){or(this)&&this.run()}get dirty(){return or(this)}}let xi=0,Ns,Ds;function Si(e,t=!1){if(e.flags|=8,t){e.next=Ds,Ds=e;return}e.next=Ns,Ns=e}function $r(){xi++}function Er(){if(--xi>0)return;if(Ds){let t=Ds;for(Ds=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ns;){let t=Ns;for(Ns=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Ri(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ti(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),Ir(n),pa(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function or(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ci(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ci(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Us)||(e.globalVersion=Us,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!or(e))))return;e.flags|=2;const t=e.dep,s=xe,n=ot;xe=e,ot=!0;try{Ri(e);const r=e.fn(e._value);(t.version===0||bt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{xe=s,ot=n,Ti(e),e.flags&=-3}}function Ir(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Ir(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function pa(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let ot=!0;const Ai=[];function Et(){Ai.push(ot),ot=!1}function It(){const e=Ai.pop();ot=e===void 0?!0:e}function ao(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=xe;xe=void 0;try{t()}finally{xe=s}}}let Us=0;class ga{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Or{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(!xe||!ot||xe===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==xe)s=this.activeLink=new ga(xe,this),xe.deps?(s.prevDep=xe.depsTail,xe.depsTail.nextDep=s,xe.depsTail=s):xe.deps=xe.depsTail=s,$i(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=xe.depsTail,s.nextDep=void 0,xe.depsTail.nextDep=s,xe.depsTail=s,xe.deps===s&&(xe.deps=n)}return s}trigger(t){this.version++,Us++,this.notify(t)}notify(t){$r();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Er()}}}function $i(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)$i(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const ir=new WeakMap,Xt=Symbol(""),lr=Symbol(""),Vs=Symbol("");function je(e,t,s){if(ot&&xe){let n=ir.get(e);n||ir.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new Or),r.map=n,r.key=s),r.track()}}function At(e,t,s,n,r,o){const i=ir.get(e);if(!i){Us++;return}const a=l=>{l&&l.trigger()};if($r(),t==="clear")i.forEach(a);else{const l=J(e),u=l&&Cr(s);if(l&&s==="length"){const c=Number(n);i.forEach((f,h)=>{(h==="length"||h===Vs||!it(h)&&h>=c)&&a(f)})}else switch((s!==void 0||i.has(void 0))&&a(i.get(s)),u&&a(i.get(Vs)),t){case"add":l?u&&a(i.get("length")):(a(i.get(Xt)),ds(e)&&a(i.get(lr)));break;case"delete":l||(a(i.get(Xt)),ds(e)&&a(i.get(lr)));break;case"set":ds(e)&&a(i.get(Xt));break}}Er()}function os(e){const t=he(e);return t===e?t:(je(t,"iterate",Vs),st(e)?t:t.map(lt))}function On(e){return je(e=he(e),"iterate",Vs),e}function mt(e,t){return Ot(e)?bs(es(e)?lt(t):t):lt(t)}const ma={__proto__:null,[Symbol.iterator](){return Wn(this,Symbol.iterator,e=>mt(this,e))},concat(...e){return os(this).concat(...e.map(t=>J(t)?os(t):t))},entries(){return Wn(this,"entries",e=>(e[1]=mt(this,e[1]),e))},every(e,t){return xt(this,"every",e,t,void 0,arguments)},filter(e,t){return xt(this,"filter",e,t,s=>s.map(n=>mt(this,n)),arguments)},find(e,t){return xt(this,"find",e,t,s=>mt(this,s),arguments)},findIndex(e,t){return xt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return xt(this,"findLast",e,t,s=>mt(this,s),arguments)},findLastIndex(e,t){return xt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return xt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Zn(this,"includes",e)},indexOf(...e){return Zn(this,"indexOf",e)},join(e){return os(this).join(e)},lastIndexOf(...e){return Zn(this,"lastIndexOf",e)},map(e,t){return xt(this,"map",e,t,void 0,arguments)},pop(){return Rs(this,"pop")},push(...e){return Rs(this,"push",e)},reduce(e,...t){return co(this,"reduce",e,t)},reduceRight(e,...t){return co(this,"reduceRight",e,t)},shift(){return Rs(this,"shift")},some(e,t){return xt(this,"some",e,t,void 0,arguments)},splice(...e){return Rs(this,"splice",e)},toReversed(){return os(this).toReversed()},toSorted(e){return os(this).toSorted(e)},toSpliced(...e){return os(this).toSpliced(...e)},unshift(...e){return Rs(this,"unshift",e)},values(){return Wn(this,"values",e=>mt(this,e))}};function Wn(e,t,s){const n=On(e),r=n[t]();return n!==e&&!st(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=s(o.value)),o}),r}const va=Array.prototype;function xt(e,t,s,n,r,o){const i=On(e),a=i!==e&&!st(e),l=i[t];if(l!==va[t]){const f=l.apply(e,o);return a?lt(f):f}let u=s;i!==e&&(a?u=function(f,h){return s.call(this,mt(e,f),h,e)}:s.length>2&&(u=function(f,h){return s.call(this,f,h,e)}));const c=l.call(i,u,n);return a&&r?r(c):c}function co(e,t,s,n){const r=On(e),o=r!==e&&!st(e);let i=s,a=!1;r!==e&&(o?(a=n.length===0,i=function(u,c,f){return a&&(a=!1,u=mt(e,u)),s.call(this,u,mt(e,c),f,e)}):s.length>3&&(i=function(u,c,f){return s.call(this,u,c,f,e)}));const l=r[t](i,...n);return a?mt(e,l):l}function Zn(e,t,s){const n=he(e);je(n,"iterate",Vs);const r=n[t](...s);return(r===-1||r===!1)&&Nr(s[0])?(s[0]=he(s[0]),n[t](...s)):r}function Rs(e,t,s=[]){Et(),$r();const n=he(e)[t].apply(e,s);return Er(),It(),n}const ba=Rr("__proto__,__v_isRef,__isVue"),Ei=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(it));function ya(e){it(e)||(e=String(e));const t=he(this);return je(t,"has",e),t.hasOwnProperty(e)}class Ii{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return o;if(s==="__v_raw")return n===(r?o?$a:Ni:o?Mi:Pi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=J(t);if(!r){let l;if(i&&(l=ma[s]))return l;if(s==="hasOwnProperty")return ya}const a=Reflect.get(t,s,Ve(t)?t:n);if((it(s)?Ei.has(s):ba(s))||(r||je(t,"get",s),o))return a;if(Ve(a)){const l=i&&Cr(s)?a:a.value;return r&&ve(l)?cr(l):l}return ve(a)?r?cr(a):Ut(a):a}}class Oi extends Ii{constructor(t=!1){super(!1,t)}set(t,s,n,r){let o=t[s];const i=J(t)&&Cr(s);if(!this._isShallow){const u=Ot(o);if(!st(n)&&!Ot(n)&&(o=he(o),n=he(n)),!i&&Ve(o)&&!Ve(n))return u||(o.value=n),!0}const a=i?Number(s)<t.length:pe(t,s),l=Reflect.set(t,s,n,Ve(t)?t:r);return t===he(r)&&(a?bt(n,o)&&At(t,"set",s,n):At(t,"add",s,n)),l}deleteProperty(t,s){const n=pe(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&n&&At(t,"delete",s,void 0),r}has(t,s){const n=Reflect.has(t,s);return(!it(s)||!Ei.has(s))&&je(t,"has",s),n}ownKeys(t){return je(t,"iterate",J(t)?"length":Xt),Reflect.ownKeys(t)}}class ka extends Ii{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const _a=new Oi,wa=new ka,xa=new Oi(!0);const ar=e=>e,tn=e=>Reflect.getPrototypeOf(e);function Sa(e,t,s){return function(...n){const r=this.__v_raw,o=he(r),i=ds(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=r[e](...n),c=s?ar:t?bs:lt;return!t&&je(o,"iterate",l?lr:Xt),Le(Object.create(u),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:a?[c(f[0]),c(f[1])]:c(f),done:h}}})}}function sn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ra(e,t){const s={get(r){const o=this.__v_raw,i=he(o),a=he(r);e||(bt(r,a)&&je(i,"get",r),je(i,"get",a));const{has:l}=tn(i),u=t?ar:e?bs:lt;if(l.call(i,r))return u(o.get(r));if(l.call(i,a))return u(o.get(a));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&je(he(r),"iterate",Xt),r.size},has(r){const o=this.__v_raw,i=he(o),a=he(r);return e||(bt(r,a)&&je(i,"has",r),je(i,"has",a)),r===a?o.has(r):o.has(r)||o.has(a)},forEach(r,o){const i=this,a=i.__v_raw,l=he(a),u=t?ar:e?bs:lt;return!e&&je(l,"iterate",Xt),a.forEach((c,f)=>r.call(o,u(c),u(f),i))}};return Le(s,e?{add:sn("add"),set:sn("set"),delete:sn("delete"),clear:sn("clear")}:{add(r){const o=he(this),i=tn(o),a=he(r),l=!t&&!st(r)&&!Ot(r)?a:r;return i.has.call(o,l)||bt(r,l)&&i.has.call(o,r)||bt(a,l)&&i.has.call(o,a)||(o.add(l),At(o,"add",l,l)),this},set(r,o){!t&&!st(o)&&!Ot(o)&&(o=he(o));const i=he(this),{has:a,get:l}=tn(i);let u=a.call(i,r);u||(r=he(r),u=a.call(i,r));const c=l.call(i,r);return i.set(r,o),u?bt(o,c)&&At(i,"set",r,o):At(i,"add",r,o),this},delete(r){const o=he(this),{has:i,get:a}=tn(o);let l=i.call(o,r);l||(r=he(r),l=i.call(o,r)),a&&a.call(o,r);const u=o.delete(r);return l&&At(o,"delete",r,void 0),u},clear(){const r=he(this),o=r.size!==0,i=r.clear();return o&&At(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Sa(r,e,t)}),s}function Pr(e,t){const s=Ra(e,t);return(n,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(pe(s,r)&&r in n?s:n,r,o)}const Ta={get:Pr(!1,!1)},Ca={get:Pr(!1,!0)},Aa={get:Pr(!0,!1)};const Pi=new WeakMap,Mi=new WeakMap,Ni=new WeakMap,$a=new WeakMap;function Ea(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ia(e){return e.__v_skip||!Object.isExtensible(e)?0:Ea(ta(e))}function Ut(e){return Ot(e)?e:Mr(e,!1,_a,Ta,Pi)}function Di(e){return Mr(e,!1,xa,Ca,Mi)}function cr(e){return Mr(e,!0,wa,Aa,Ni)}function Mr(e,t,s,n,r){if(!ve(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Ia(e);if(o===0)return e;const i=r.get(e);if(i)return i;const a=new Proxy(e,o===2?n:s);return r.set(e,a),a}function es(e){return Ot(e)?es(e.__v_raw):!!(e&&e.__v_isReactive)}function Ot(e){return!!(e&&e.__v_isReadonly)}function st(e){return!!(e&&e.__v_isShallow)}function Nr(e){return e?!!e.__v_raw:!1}function he(e){const t=e&&e.__v_raw;return t?he(t):e}function Oa(e){return!pe(e,"__v_skip")&&Object.isExtensible(e)&&bi(e,"__v_skip",!0),e}const lt=e=>ve(e)?Ut(e):e,bs=e=>ve(e)?cr(e):e;function Ve(e){return e?e.__v_isRef===!0:!1}function re(e){return Li(e,!1)}function Pa(e){return Li(e,!0)}function Li(e,t){return Ve(e)?e:new Ma(e,t)}class Ma{constructor(t,s){this.dep=new Or,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:he(t),this._value=s?t:lt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||st(t)||Ot(t);t=n?t:he(t),bt(t,s)&&(this._rawValue=t,this._value=n?t:lt(t),this.dep.trigger())}}function Ie(e){return Ve(e)?e.value:e}const Na={get:(e,t,s)=>t==="__v_raw"?e:Ie(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return Ve(r)&&!Ve(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function Bi(e){return es(e)?e:new Proxy(e,Na)}class Da{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Or(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Us-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&xe!==this)return Si(this,!0),!0}get value(){const t=this.dep.track();return Ci(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function La(e,t,s=!1){let n,r;return se(e)?n=e:(n=e.get,r=e.set),new Da(n,r,s)}const nn={},fn=new WeakMap;let Wt;function Ba(e,t=!1,s=Wt){if(s){let n=fn.get(s);n||fn.set(s,n=[]),n.push(e)}}function ja(e,t,s=_e){const{immediate:n,deep:r,once:o,scheduler:i,augmentJob:a,call:l}=s,u=T=>r?T:st(T)||r===!1||r===0?$t(T,1):$t(T);let c,f,h,g,v=!1,y=!1;if(Ve(e)?(f=()=>e.value,v=st(e)):es(e)?(f=()=>u(e),v=!0):J(e)?(y=!0,v=e.some(T=>es(T)||st(T)),f=()=>e.map(T=>{if(Ve(T))return T.value;if(es(T))return u(T);if(se(T))return l?l(T,2):T()})):se(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){Et();try{h()}finally{It()}}const T=Wt;Wt=c;try{return l?l(e,3,[g]):e(g)}finally{Wt=T}}:f=kt,t&&r){const T=f,F=r===!0?1/0:r;f=()=>$t(T(),F)}const x=ha(),M=()=>{c.stop(),x&&x.active&&Tr(x.effects,c)};if(o&&t){const T=t;t=(...F)=>{T(...F),M()}}let $=y?new Array(e.length).fill(nn):nn;const D=T=>{if(!(!(c.flags&1)||!c.dirty&&!T))if(t){const F=c.run();if(r||v||(y?F.some((ee,U)=>bt(ee,$[U])):bt(F,$))){h&&h();const ee=Wt;Wt=c;try{const U=[F,$===nn?void 0:y&&$[0]===nn?[]:$,g];$=F,l?l(t,3,U):t(...U)}finally{Wt=ee}}}else c.run()};return a&&a(D),c=new wi(f),c.scheduler=i?()=>i(D,!1):D,g=T=>Ba(T,!1,c),h=c.onStop=()=>{const T=fn.get(c);if(T){if(l)l(T,4);else for(const F of T)F();fn.delete(c)}},t?n?D(!0):$=c.run():i?i(D.bind(null,!0),!0):c.run(),M.pause=c.pause.bind(c),M.resume=c.resume.bind(c),M.stop=M,M}function $t(e,t=1/0,s){if(t<=0||!ve(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,Ve(e))$t(e.value,t,s);else if(J(e))for(let n=0;n<e.length;n++)$t(e[n],t,s);else if(Cn(e)||ds(e))e.forEach(n=>{$t(n,t,s)});else if(vi(e)){for(const n in e)$t(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&$t(e[n],t,s)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.34
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function Ys(e,t,s,n){try{return n?e(...n):e()}catch(r){Pn(r,t,s)}}function _t(e,t,s,n){if(se(e)){const r=Ys(e,t,s,n);return r&&gi(r)&&r.catch(o=>{Pn(o,t,s)}),r}if(J(e)){const r=[];for(let o=0;o<e.length;o++)r.push(_t(e[o],t,s,n));return r}}function Pn(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||_e;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(o){Et(),Ys(o,null,10,[e,l,u]),It();return}}Ha(e,s,r,n,i)}function Ha(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const Ke=[];let gt=-1;const hs=[];let jt=null,ls=0;const ji=Promise.resolve();let dn=null;function Dr(e){const t=dn||ji;return e?t.then(this?e.bind(this):e):t}function Fa(e){let t=gt+1,s=Ke.length;for(;t<s;){const n=t+s>>>1,r=Ke[n],o=qs(r);o<e||o===e&&r.flags&2?t=n+1:s=n}return t}function Lr(e){if(!(e.flags&1)){const t=qs(e),s=Ke[Ke.length-1];!s||!(e.flags&2)&&t>=qs(s)?Ke.push(e):Ke.splice(Fa(t),0,e),e.flags|=1,Hi()}}function Hi(){dn||(dn=ji.then(Ui))}function Ua(e){J(e)?hs.push(...e):jt&&e.id===-1?jt.splice(ls+1,0,e):e.flags&1||(hs.push(e),e.flags|=1),Hi()}function uo(e,t,s=gt+1){for(;s<Ke.length;s++){const n=Ke[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Ke.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Fi(e){if(hs.length){const t=[...new Set(hs)].sort((s,n)=>qs(s)-qs(n));if(hs.length=0,jt){jt.push(...t);return}for(jt=t,ls=0;ls<jt.length;ls++){const s=jt[ls];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}jt=null,ls=0}}const qs=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ui(e){try{for(gt=0;gt<Ke.length;gt++){const t=Ke[gt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ys(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;gt<Ke.length;gt++){const t=Ke[gt];t&&(t.flags&=-2)}gt=-1,Ke.length=0,Fi(),dn=null,(Ke.length||hs.length)&&Ui()}}let De=null,Vi=null;function hn(e){const t=De;return De=e,Vi=e&&e.type.__scopeId||null,t}function ys(e,t=De,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&mn(-1);const o=hn(t);let i;try{i=e(...r)}finally{hn(o),n._d&&mn(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function Fe(e,t){if(De===null)return e;const s=jn(De),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,a,l=_e]=t[r];o&&(se(o)&&(o={mounted:o,updated:o}),o.deep&&$t(i),n.push({dir:o,instance:s,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function zt(e,t,s,n){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const a=r[i];o&&(a.oldValue=o[i].value);let l=a.dir[n];l&&(Et(),_t(l,s,8,[e.el,a,e,t]),It())}}function ps(e,t){if(He){let s=He.provides;const n=He.parent&&He.parent.provides;n===s&&(s=He.provides=Object.create(n)),s[e]=t}}function Ye(e,t,s=!1){const n=qc();if(n||ms){let r=ms?ms._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&se(t)?t.call(n&&n.proxy):t}}const Va=Symbol.for("v-scx"),qa=()=>Ye(Va);function Ls(e,t,s){return qi(e,t,s)}function qi(e,t,s=_e){const{immediate:n,deep:r,flush:o,once:i}=s,a=Le({},s),l=t&&n||!t&&o!=="post";let u;if(Ks){if(o==="sync"){const g=qa();u=g.__watcherHandles||(g.__watcherHandles=[])}else if(!l){const g=()=>{};return g.stop=kt,g.resume=kt,g.pause=kt,g}}const c=He;a.call=(g,v,y)=>_t(g,c,v,y);let f=!1;o==="post"?a.scheduler=g=>{ze(g,c&&c.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(g,v)=>{v?g():Lr(g)}),a.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const h=ja(e,t,a);return Ks&&(u?u.push(h):l&&h()),h}function za(e,t,s){const n=this.proxy,r=Te(e)?e.includes(".")?zi(n,e):()=>n[e]:e.bind(n,n);let o;se(t)?o=t:(o=t.handler,s=t);const i=Xs(this),a=qi(r,o.bind(n),s);return i(),a}function zi(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const Bt=new WeakMap,Gi=Symbol("_vte"),Ga=e=>e.__isTeleport,Zt=e=>e&&(e.disabled||e.disabled===""),Ka=e=>e&&(e.defer||e.defer===""),fo=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ho=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ur=(e,t)=>{const s=e&&e.to;return Te(s)?t?t(s):null:s},Wa={name:"Teleport",__isTeleport:!0,process(e,t,s,n,r,o,i,a,l,u){const{mc:c,pc:f,pbc:h,o:{insert:g,querySelector:v,createText:y,createComment:x,parentNode:M}}=u,$=Zt(t.props);let{dynamicChildren:D}=t;const T=(U,ue,oe)=>{U.shapeFlag&16&&c(U.children,ue,oe,r,o,i,a,l)},F=(U=t)=>{const ue=Zt(U.props),oe=U.target=ur(U.props,v),Z=fr(oe,U,y,g);oe&&(i!=="svg"&&fo(oe)?i="svg":i!=="mathml"&&ho(oe)&&(i="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(oe),ue||(T(U,oe,Z),Es(U,!1)))},ee=U=>{const ue=()=>{if(Bt.get(U)===ue){if(Bt.delete(U),Zt(U.props)){const oe=M(U.el)||s;T(U,oe,U.anchor),Es(U,!0)}F(U)}};Bt.set(U,ue),ze(ue,o)};if(e==null){const U=t.el=y(""),ue=t.anchor=y("");if(g(U,s,n),g(ue,s,n),Ka(t.props)||o&&o.pendingBranch){ee(t);return}$&&(T(t,s,ue),Es(t,!0)),F()}else{t.el=e.el;const U=t.anchor=e.anchor,ue=Bt.get(e);if(ue){ue.flags|=8,Bt.delete(e),ee(t);return}t.targetStart=e.targetStart;const oe=t.target=e.target,Z=t.targetAnchor=e.targetAnchor,H=Zt(e.props),I=H?s:oe,w=H?U:Z;if(i==="svg"||fo(oe)?i="svg":(i==="mathml"||ho(oe))&&(i="mathml"),D?(h(e.dynamicChildren,D,I,r,o,i,a),Ur(e,t,!0)):l||f(e,t,I,w,r,o,i,a,!1),$)H?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):rn(t,s,U,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=ur(t.props,v);B&&rn(t,B,null,u,0)}else H&&rn(t,oe,Z,u,1);Es(t,$)}},remove(e,t,s,{um:n,o:{remove:r}},o){const{shapeFlag:i,children:a,anchor:l,targetStart:u,targetAnchor:c,target:f,props:h}=e;let g=o||!Zt(h);const v=Bt.get(e);if(v&&(v.flags|=8,Bt.delete(e),g=!1),f&&(r(u),r(c)),o&&r(l),i&16)for(let y=0;y<a.length;y++){const x=a[y];n(x,t,s,g,!!x.dynamicChildren)}},move:rn,hydrate:Za};function rn(e,t,s,{o:{insert:n},m:r},o=2){o===0&&n(e.targetAnchor,t,s);const{el:i,anchor:a,shapeFlag:l,children:u,props:c}=e,f=o===2;if(f&&n(i,t,s),!Bt.has(e)&&(!f||Zt(c))&&l&16)for(let h=0;h<u.length;h++)r(u[h],t,s,2);f&&n(a,t,s)}function Za(e,t,s,n,r,o,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:u,createText:c}},f){function h(x,M){let $=M;for(;$;){if($&&$.nodeType===8){if($.data==="teleport start anchor")t.targetStart=$;else if($.data==="teleport anchor"){t.targetAnchor=$,x._lpa=t.targetAnchor&&i(t.targetAnchor);break}}$=i($)}}function g(x,M){M.anchor=f(i(x),M,a(x),s,n,r,o)}const v=t.target=ur(t.props,l),y=Zt(t.props);if(v){const x=v._lpa||v.firstChild;t.shapeFlag&16&&(y?(g(e,t),h(v,x),t.targetAnchor||fr(v,t,c,u,a(e)===v?e:null)):(t.anchor=i(e),h(v,x),t.targetAnchor||fr(v,t,c,u),f(x&&i(x),t,v,s,n,r,o))),Es(t,y)}else y&&t.shapeFlag&16&&(g(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const Mn=Wa;function Es(e,t){const s=e.ctx;if(s&&s.ut){let n,r;for(t?(n=e.el,r=e.anchor):(n=e.targetStart,r=e.targetAnchor);n&&n!==r;)n.nodeType===1&&n.setAttribute("data-v-owner",s.uid),n=n.nextSibling;s.ut()}}function fr(e,t,s,n,r=null){const o=t.targetStart=s(""),i=t.targetAnchor=s("");return o[Gi]=i,e&&(n(o,e,r),n(i,e,r)),i}const Qa=Symbol("_leaveCb");function Br(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Br(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 $e(e,t){return se(e)?Le({name:e.name},t,{setup:e}):e}function Ki(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function po(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const pn=new WeakMap;function Bs(e,t,s,n,r=!1){if(J(e)){e.forEach((y,x)=>Bs(y,t&&(J(t)?t[x]:t),s,n,r));return}if(gs(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Bs(e,t,s,n.component.subTree);return}const o=n.shapeFlag&4?jn(n.component):n.el,i=r?null:o,{i:a,r:l}=e,u=t&&t.r,c=a.refs===_e?a.refs={}:a.refs,f=a.setupState,h=he(f),g=f===_e?pi:y=>po(c,y)?!1:pe(h,y),v=(y,x)=>!(x&&po(c,x));if(u!=null&&u!==l){if(go(t),Te(u))c[u]=null,g(u)&&(f[u]=null);else if(Ve(u)){const y=t;v(u,y.k)&&(u.value=null),y.k&&(c[y.k]=null)}}if(se(l))Ys(l,a,12,[i,c]);else{const y=Te(l),x=Ve(l);if(y||x){const M=()=>{if(e.f){const $=y?g(l)?f[l]:c[l]:v()||!e.k?l.value:c[e.k];if(r)J($)&&Tr($,o);else if(J($))$.includes(o)||$.push(o);else if(y)c[l]=[o],g(l)&&(f[l]=c[l]);else{const D=[o];v(l,e.k)&&(l.value=D),e.k&&(c[e.k]=D)}}else y?(c[l]=i,g(l)&&(f[l]=i)):x&&(v(l,e.k)&&(l.value=i),e.k&&(c[e.k]=i))};if(i){const $=()=>{M(),pn.delete(e)};$.id=-1,pn.set(e,$),ze($,s)}else go(e),M()}}}function go(e){const t=pn.get(e);t&&(t.flags|=8,pn.delete(e))}In().requestIdleCallback;In().cancelIdleCallback;const gs=e=>!!e.type.__asyncLoader,Wi=e=>e.type.__isKeepAlive;function Ja(e,t){Zi(e,"a",t)}function Ya(e,t){Zi(e,"da",t)}function Zi(e,t,s=He){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Nn(t,n,s),s){let r=s.parent;for(;r&&r.parent;)Wi(r.parent.vnode)&&Xa(n,t,s,r),r=r.parent}}function Xa(e,t,s,n){const r=Nn(t,e,n,!0);Dn(()=>{Tr(n[t],r)},s)}function Nn(e,t,s=He,n=!1){if(s){const r=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Et();const a=Xs(s),l=_t(t,s,e,i);return a(),It(),l});return n?r.unshift(o):r.push(o),o}}const Mt=e=>(t,s=He)=>{(!Ks||e==="sp")&&Nn(e,(...n)=>t(...n),s)},ec=Mt("bm"),Vt=Mt("m"),tc=Mt("bu"),sc=Mt("u"),nc=Mt("bum"),Dn=Mt("um"),rc=Mt("sp"),oc=Mt("rtg"),ic=Mt("rtc");function lc(e,t=He){Nn("ec",e,t)}const Qi="components";function jr(e,t){return Yi(Qi,e,!0,t)||e}const Ji=Symbol.for("v-ndc");function ac(e){return Te(e)?Yi(Qi,e,!1)||e:e||Ji}function Yi(e,t,s=!0,n=!1){const r=De||He;if(r){const o=r.type;{const a=Zc(o,!1);if(a&&(a===t||a===We(t)||a===$n(We(t))))return o}const i=mo(r[e]||o[e],t)||mo(r.appContext[e],t);return!i&&n?o:i}}function mo(e,t){return e&&(e[t]||e[We(t)]||e[$n(We(t))])}function Ae(e,t,s,n){let r;const o=s,i=J(e);if(i||Te(e)){const a=i&&es(e);let l=!1,u=!1;a&&(l=!st(e),u=Ot(e),e=On(e)),r=new Array(e.length);for(let c=0,f=e.length;c<f;c++)r[c]=t(l?u?bs(lt(e[c])):lt(e[c]):e[c],c,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let a=0;a<e;a++)r[a]=t(a+1,a,void 0,o)}else if(ve(e))if(e[Symbol.iterator])r=Array.from(e,(a,l)=>t(a,l,void 0,o));else{const a=Object.keys(e);r=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];r[l]=t(e[c],c,l,o)}}else r=[];return r}function cc(e,t){for(let s=0;s<t.length;s++){const n=t[s];if(J(n))for(let r=0;r<n.length;r++)e[n[r].name]=n[r].fn;else n&&(e[n.name]=n.key?(...r)=>{const o=n.fn(...r);return o&&(o.key=n.key),o}:n.fn)}return e}function vo(e,t,s={},n,r){if(De.ce||De.parent&&gs(De.parent)&&De.parent.ce){const u=Object.keys(s).length>0;return t!=="default"&&(s.name=t),k(),ge(Y,null,[Se("slot",s,n)],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),k();const i=o&&Xi(o(s)),a=s.key||i&&i.key,l=ge(Y,{key:(a&&!it(a)?a:`_${t}`)+(!i&&n?"_fb":"")},i||[],i&&e._===1?64:-2);return o&&o._c&&(o._d=!0),l}function Xi(e){return e.some(t=>Gs(t)?!(t.type===Pt||t.type===Y&&!Xi(t.children)):!0)?e:null}const dr=e=>e?bl(e)?jn(e):dr(e.parent):null,js=Le(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=>dr(e.parent),$root:e=>dr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>tl(e),$forceUpdate:e=>e.f||(e.f=()=>{Lr(e.update)}),$nextTick:e=>e.n||(e.n=Dr.bind(e.proxy)),$watch:e=>za.bind(e)}),Qn=(e,t)=>e!==_e&&!e.__isScriptSetup&&pe(e,t),uc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:o,accessCache:i,type:a,appContext:l}=e;if(t[0]!=="$"){const h=i[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return o[t]}else{if(Qn(n,t))return i[t]=1,n[t];if(r!==_e&&pe(r,t))return i[t]=2,r[t];if(pe(o,t))return i[t]=3,o[t];if(s!==_e&&pe(s,t))return i[t]=4,s[t];hr&&(i[t]=0)}}const u=js[t];let c,f;if(u)return t==="$attrs"&&je(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(s!==_e&&pe(s,t))return i[t]=4,s[t];if(f=l.config.globalProperties,pe(f,t))return f[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:o}=e;return Qn(r,t)?(r[t]=s,!0):n!==_e&&pe(n,t)?(n[t]=s,!0):pe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,props:o,type:i}},a){let l;return!!(s[a]||e!==_e&&a[0]!=="$"&&pe(e,a)||Qn(t,a)||pe(o,a)||pe(n,a)||pe(js,a)||pe(r.config.globalProperties,a)||(l=i.__cssModules)&&l[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:pe(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function bo(e){return J(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let hr=!0;function fc(e){const t=tl(e),s=e.proxy,n=e.ctx;hr=!1,t.beforeCreate&&yo(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:g,updated:v,activated:y,deactivated:x,beforeDestroy:M,beforeUnmount:$,destroyed:D,unmounted:T,render:F,renderTracked:ee,renderTriggered:U,errorCaptured:ue,serverPrefetch:oe,expose:Z,inheritAttrs:H,components:I,directives:w,filters:B}=t;if(u&&dc(u,n,null),i)for(const q in i){const ne=i[q];se(ne)&&(n[q]=ne.bind(s))}if(r){const q=r.call(s,s);ve(q)&&(e.data=Ut(q))}if(hr=!0,o)for(const q in o){const ne=o[q],wt=se(ne)?ne.bind(s,s):se(ne.get)?ne.get.bind(s,s):kt,Nt=!se(ne)&&se(ne.set)?ne.set.bind(s):kt,ct=z({get:wt,set:Nt});Object.defineProperty(n,q,{enumerable:!0,configurable:!0,get:()=>ct.value,set:Ze=>ct.value=Ze})}if(a)for(const q in a)el(a[q],n,s,q);if(l){const q=se(l)?l.call(s):l;Reflect.ownKeys(q).forEach(ne=>{ps(ne,q[ne])})}c&&yo(c,e,"c");function ie(q,ne){J(ne)?ne.forEach(wt=>q(wt.bind(s))):ne&&q(ne.bind(s))}if(ie(ec,f),ie(Vt,h),ie(tc,g),ie(sc,v),ie(Ja,y),ie(Ya,x),ie(lc,ue),ie(ic,ee),ie(oc,U),ie(nc,$),ie(Dn,T),ie(rc,oe),J(Z))if(Z.length){const q=e.exposed||(e.exposed={});Z.forEach(ne=>{Object.defineProperty(q,ne,{get:()=>s[ne],set:wt=>s[ne]=wt,enumerable:!0})})}else e.exposed||(e.exposed={});F&&e.render===kt&&(e.render=F),H!=null&&(e.inheritAttrs=H),I&&(e.components=I),w&&(e.directives=w),oe&&Ki(e)}function dc(e,t,s=kt){J(e)&&(e=pr(e));for(const n in e){const r=e[n];let o;ve(r)?"default"in r?o=Ye(r.from||n,r.default,!0):o=Ye(r.from||n):o=Ye(r),Ve(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[n]=o}}function yo(e,t,s){_t(J(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function el(e,t,s,n){let r=n.includes(".")?zi(s,n):()=>s[n];if(Te(e)){const o=t[e];se(o)&&Ls(r,o)}else if(se(e))Ls(r,e.bind(s));else if(ve(e))if(J(e))e.forEach(o=>el(o,t,s,n));else{const o=se(e.handler)?e.handler.bind(s):t[e.handler];se(o)&&Ls(r,o,e)}}function tl(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!r.length&&!s&&!n?l=t:(l={},r.length&&r.forEach(u=>gn(l,u,i,!0)),gn(l,t,i)),ve(t)&&o.set(t,l),l}function gn(e,t,s,n=!1){const{mixins:r,extends:o}=t;o&&gn(e,o,s,!0),r&&r.forEach(i=>gn(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const a=hc[i]||s&&s[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const hc={data:ko,props:_o,emits:_o,methods:Is,computed:Is,beforeCreate:qe,created:qe,beforeMount:qe,mounted:qe,beforeUpdate:qe,updated:qe,beforeDestroy:qe,beforeUnmount:qe,destroyed:qe,unmounted:qe,activated:qe,deactivated:qe,errorCaptured:qe,serverPrefetch:qe,components:Is,directives:Is,watch:gc,provide:ko,inject:pc};function ko(e,t){return t?e?function(){return Le(se(e)?e.call(this,this):e,se(t)?t.call(this,this):t)}:t:e}function pc(e,t){return Is(pr(e),pr(t))}function pr(e){if(J(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function qe(e,t){return e?[...new Set([].concat(e,t))]:t}function Is(e,t){return e?Le(Object.create(null),e,t):t}function _o(e,t){return e?J(e)&&J(t)?[...new Set([...e,...t])]:Le(Object.create(null),bo(e),bo(t??{})):t}function gc(e,t){if(!e)return t;if(!t)return e;const s=Le(Object.create(null),e);for(const n in t)s[n]=qe(e[n],t[n]);return s}function sl(){return{app:null,config:{isNativeTag:pi,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 mc=0;function vc(e,t){return function(n,r=null){se(n)||(n=Le({},n)),r!=null&&!ve(r)&&(r=null);const o=sl(),i=new WeakSet,a=[];let l=!1;const u=o.app={_uid:mc++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Jc,get config(){return o.config},set config(c){},use(c,...f){return i.has(c)||(c&&se(c.install)?(i.add(c),c.install(u,...f)):se(c)&&(i.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,h){if(!l){const g=u._ceVNode||Se(n,r);return g.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),e(g,c,h),l=!0,u._container=c,c.__vue_app__=u,jn(g.component)}},onUnmount(c){a.push(c)},unmount(){l&&(_t(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=ms;ms=u;try{return c()}finally{ms=f}}};return u}}let ms=null;const bc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${We(t)}Modifiers`]||e[`${Ft(t)}Modifiers`];function yc(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||_e;let r=s;const o=t.startsWith("update:"),i=o&&bc(n,t.slice(7));i&&(i.trim&&(r=s.map(c=>Te(c)?c.trim():c)),i.number&&(r=s.map(En)));let a,l=n[a=zn(t)]||n[a=zn(We(t))];!l&&o&&(l=n[a=zn(Ft(t))]),l&&_t(l,e,6,r);const u=n[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,_t(u,e,6,r)}}const kc=new WeakMap;function nl(e,t,s=!1){const n=s?kc:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const o=e.emits;let i={},a=!1;if(!se(e)){const l=u=>{const c=nl(u,t,!0);c&&(a=!0,Le(i,c))};!s&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(ve(e)&&n.set(e,null),null):(J(o)?o.forEach(l=>i[l]=null):Le(i,o),ve(e)&&n.set(e,i),i)}function Ln(e,t){return!e||!Rn(t)?!1:(t=t.slice(2).replace(/Once$/,""),pe(e,t[0].toLowerCase()+t.slice(1))||pe(e,Ft(t))||pe(e,t))}function wo(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[o],slots:i,attrs:a,emit:l,render:u,renderCache:c,props:f,data:h,setupState:g,ctx:v,inheritAttrs:y}=e,x=hn(e);let M,$;try{if(s.shapeFlag&4){const T=r||n,F=T;M=vt(u.call(F,T,c,f,g,h,v)),$=a}else{const T=t;M=vt(T.length>1?T(f,{attrs:a,slots:i,emit:l}):T(f,null)),$=t.props?a:_c(a)}}catch(T){Hs.length=0,Pn(T,e,1),M=Se(Pt)}let D=M;if($&&y!==!1){const T=Object.keys($),{shapeFlag:F}=D;T.length&&F&7&&(o&&T.some(Tn)&&($=wc($,o)),D=ks(D,$,!1,!0))}return s.dirs&&(D=ks(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(s.dirs):s.dirs),s.transition&&Br(D,s.transition),M=D,hn(x),M}const _c=e=>{let t;for(const s in e)(s==="class"||s==="style"||Rn(s))&&((t||(t={}))[s]=e[s]);return t},wc=(e,t)=>{const s={};for(const n in e)(!Tn(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function xc(e,t,s){const{props:n,children:r,component:o}=e,{props:i,children:a,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&l>=0){if(l&1024)return!0;if(l&16)return n?xo(n,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(rl(i,n,h)&&!Ln(u,h))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:n===i?!1:n?i?xo(n,i,u):!0:!!i;return!1}function xo(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const o=n[r];if(rl(t,e,o)&&!Ln(s,o))return!0}return!1}function rl(e,t,s){const n=e[s],r=t[s];return s==="style"&&ve(n)&&ve(r)?!Js(n,r):n!==r}function Sc({vnode:e,parent:t,suspense:s},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=n,e=r),r===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const ol={},il=()=>Object.create(ol),ll=e=>Object.getPrototypeOf(e)===ol;function Rc(e,t,s,n=!1){const r={},o=il();e.propsDefaults=Object.create(null),al(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);s?e.props=n?r:Di(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Tc(e,t,s,n){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,a=he(r),[l]=e.propsOptions;let u=!1;if((n||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(Ln(e.emitsOptions,h))continue;const g=t[h];if(l)if(pe(o,h))g!==o[h]&&(o[h]=g,u=!0);else{const v=We(h);r[v]=gr(l,a,v,g,e,!1)}else g!==o[h]&&(o[h]=g,u=!0)}}}else{al(e,t,r,o)&&(u=!0);let c;for(const f in a)(!t||!pe(t,f)&&((c=Ft(f))===f||!pe(t,c)))&&(l?s&&(s[f]!==void 0||s[c]!==void 0)&&(r[f]=gr(l,a,f,void 0,e,!0)):delete r[f]);if(o!==a)for(const f in o)(!t||!pe(t,f))&&(delete o[f],u=!0)}u&&At(e.attrs,"set","")}function al(e,t,s,n){const[r,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Ms(l))continue;const u=t[l];let c;r&&pe(r,c=We(l))?!o||!o.includes(c)?s[c]=u:(a||(a={}))[c]=u:Ln(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,i=!0)}if(o){const l=he(s),u=a||_e;for(let c=0;c<o.length;c++){const f=o[c];s[f]=gr(r,l,f,u[f],e,!pe(u,f))}}return i}function gr(e,t,s,n,r,o){const i=e[s];if(i!=null){const a=pe(i,"default");if(a&&n===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&se(l)){const{propsDefaults:u}=r;if(s in u)n=u[s];else{const c=Xs(r);n=u[s]=l.call(null,t),c()}}else n=l;r.ce&&r.ce._setProp(s,n)}i[0]&&(o&&!a?n=!1:i[1]&&(n===""||n===Ft(s))&&(n=!0))}return n}const Cc=new WeakMap;function cl(e,t,s=!1){const n=s?Cc:t.propsCache,r=n.get(e);if(r)return r;const o=e.props,i={},a=[];let l=!1;if(!se(e)){const c=f=>{l=!0;const[h,g]=cl(f,t,!0);Le(i,h),g&&a.push(...g)};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return ve(e)&&n.set(e,fs),fs;if(J(o))for(let c=0;c<o.length;c++){const f=We(o[c]);So(f)&&(i[f]=_e)}else if(o)for(const c in o){const f=We(c);if(So(f)){const h=o[c],g=i[f]=J(h)||se(h)?{type:h}:Le({},h),v=g.type;let y=!1,x=!0;if(J(v))for(let M=0;M<v.length;++M){const $=v[M],D=se($)&&$.name;if(D==="Boolean"){y=!0;break}else D==="String"&&(x=!1)}else y=se(v)&&v.name==="Boolean";g[0]=y,g[1]=x,(y||pe(g,"default"))&&a.push(f)}}const u=[i,a];return ve(e)&&n.set(e,u),u}function So(e){return e[0]!=="$"&&!Ms(e)}const Hr=e=>e==="_"||e==="_ctx"||e==="$stable",Fr=e=>J(e)?e.map(vt):[vt(e)],Ac=(e,t,s)=>{if(t._n)return t;const n=ys((...r)=>Fr(t(...r)),s);return n._c=!1,n},ul=(e,t,s)=>{const n=e._ctx;for(const r in e){if(Hr(r))continue;const o=e[r];if(se(o))t[r]=Ac(r,o,n);else if(o!=null){const i=Fr(o);t[r]=()=>i}}},fl=(e,t)=>{const s=Fr(t);e.slots.default=()=>s},dl=(e,t,s)=>{for(const n in t)(s||!Hr(n))&&(e[n]=t[n])},$c=(e,t,s)=>{const n=e.slots=il();if(e.vnode.shapeFlag&32){const r=t._;r?(dl(n,t,s),s&&bi(n,"_",r,!0)):ul(t,n)}else t&&fl(e,t)},Ec=(e,t,s)=>{const{vnode:n,slots:r}=e;let o=!0,i=_e;if(n.shapeFlag&32){const a=t._;a?s&&a===1?o=!1:dl(r,t,s):(o=!t.$stable,ul(t,r)),i=t}else t&&(fl(e,t),i={default:1});if(o)for(const a in r)!Hr(a)&&i[a]==null&&delete r[a]},ze=Nc;function Ic(e){return Oc(e)}function Oc(e,t){const s=In();s.__VUE__=!0;const{insert:n,remove:r,patchProp:o,createElement:i,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:g=kt,insertStaticContent:v}=e,y=(p,m,b,_=null,A=null,S=null,N=void 0,P=null,O=!!m.dynamicChildren)=>{if(p===m)return;p&&!Ts(p,m)&&(_=R(p),Ze(p,A,S,!0),p=null),m.patchFlag===-2&&(O=!1,m.dynamicChildren=null);const{type:E,ref:Q,shapeFlag:j}=m;switch(E){case Bn:x(p,m,b,_);break;case Pt:M(p,m,b,_);break;case cn:p==null&&$(m,b,_,N);break;case Y:I(p,m,b,_,A,S,N,P,O);break;default:j&1?F(p,m,b,_,A,S,N,P,O):j&6?w(p,m,b,_,A,S,N,P,O):(j&64||j&128)&&E.process(p,m,b,_,A,S,N,P,O,G)}Q!=null&&A?Bs(Q,p&&p.ref,S,m||p,!m):Q==null&&p&&p.ref!=null&&Bs(p.ref,null,S,p,!0)},x=(p,m,b,_)=>{if(p==null)n(m.el=a(m.children),b,_);else{const A=m.el=p.el;m.children!==p.children&&u(A,m.children)}},M=(p,m,b,_)=>{p==null?n(m.el=l(m.children||""),b,_):m.el=p.el},$=(p,m,b,_)=>{[p.el,p.anchor]=v(p.children,m,b,_,p.el,p.anchor)},D=({el:p,anchor:m},b,_)=>{let A;for(;p&&p!==m;)A=h(p),n(p,b,_),p=A;n(m,b,_)},T=({el:p,anchor:m})=>{let b;for(;p&&p!==m;)b=h(p),r(p),p=b;r(m)},F=(p,m,b,_,A,S,N,P,O)=>{if(m.type==="svg"?N="svg":m.type==="math"&&(N="mathml"),p==null)ee(m,b,_,A,S,N,P,O);else{const E=p.el&&p.el._isVueCE?p.el:null;try{E&&E._beginPatch(),oe(p,m,A,S,N,P,O)}finally{E&&E._endPatch()}}},ee=(p,m,b,_,A,S,N,P)=>{let O,E;const{props:Q,shapeFlag:j,transition:K,dirs:X}=p;if(O=p.el=i(p.type,S,Q&&Q.is,Q),j&8?c(O,p.children):j&16&&ue(p.children,O,null,_,A,Jn(p,S),N,P),X&&zt(p,null,_,"created"),U(O,p,p.scopeId,N,_),Q){for(const ke in Q)ke!=="value"&&!Ms(ke)&&o(O,ke,null,Q[ke],S,_);"value"in Q&&o(O,"value",null,Q.value,S),(E=Q.onVnodeBeforeMount)&&ht(E,_,p)}X&&zt(p,null,_,"beforeMount");const fe=Pc(A,K);fe&&K.beforeEnter(O),n(O,m,b),((E=Q&&Q.onVnodeMounted)||fe||X)&&ze(()=>{try{E&&ht(E,_,p),fe&&K.enter(O),X&&zt(p,null,_,"mounted")}finally{}},A)},U=(p,m,b,_,A)=>{if(b&&g(p,b),_)for(let S=0;S<_.length;S++)g(p,_[S]);if(A){let S=A.subTree;if(m===S||gl(S.type)&&(S.ssContent===m||S.ssFallback===m)){const N=A.vnode;U(p,N,N.scopeId,N.slotScopeIds,A.parent)}}},ue=(p,m,b,_,A,S,N,P,O=0)=>{for(let E=O;E<p.length;E++){const Q=p[E]=P?Tt(p[E]):vt(p[E]);y(null,Q,m,b,_,A,S,N,P)}},oe=(p,m,b,_,A,S,N)=>{const P=m.el=p.el;let{patchFlag:O,dynamicChildren:E,dirs:Q}=m;O|=p.patchFlag&16;const j=p.props||_e,K=m.props||_e;let X;if(b&&Gt(b,!1),(X=K.onVnodeBeforeUpdate)&&ht(X,b,m,p),Q&&zt(m,p,b,"beforeUpdate"),b&&Gt(b,!0),(j.innerHTML&&K.innerHTML==null||j.textContent&&K.textContent==null)&&c(P,""),E?Z(p.dynamicChildren,E,P,b,_,Jn(m,A),S):N||ne(p,m,P,null,b,_,Jn(m,A),S,!1),O>0){if(O&16)H(P,j,K,b,A);else if(O&2&&j.class!==K.class&&o(P,"class",null,K.class,A),O&4&&o(P,"style",j.style,K.style,A),O&8){const fe=m.dynamicProps;for(let ke=0;ke<fe.length;ke++){const we=fe[ke],Ee=j[we],Me=K[we];(Me!==Ee||we==="value")&&o(P,we,Ee,Me,A,b)}}O&1&&p.children!==m.children&&c(P,m.children)}else!N&&E==null&&H(P,j,K,b,A);((X=K.onVnodeUpdated)||Q)&&ze(()=>{X&&ht(X,b,m,p),Q&&zt(m,p,b,"updated")},_)},Z=(p,m,b,_,A,S,N)=>{for(let P=0;P<m.length;P++){const O=p[P],E=m[P],Q=O.el&&(O.type===Y||!Ts(O,E)||O.shapeFlag&198)?f(O.el):b;y(O,E,Q,null,_,A,S,N,!0)}},H=(p,m,b,_,A)=>{if(m!==b){if(m!==_e)for(const S in m)!Ms(S)&&!(S in b)&&o(p,S,m[S],null,A,_);for(const S in b){if(Ms(S))continue;const N=b[S],P=m[S];N!==P&&S!=="value"&&o(p,S,P,N,A,_)}"value"in b&&o(p,"value",m.value,b.value,A)}},I=(p,m,b,_,A,S,N,P,O)=>{const E=m.el=p?p.el:a(""),Q=m.anchor=p?p.anchor:a("");let{patchFlag:j,dynamicChildren:K,slotScopeIds:X}=m;X&&(P=P?P.concat(X):X),p==null?(n(E,b,_),n(Q,b,_),ue(m.children||[],b,Q,A,S,N,P,O)):j>0&&j&64&&K&&p.dynamicChildren&&p.dynamicChildren.length===K.length?(Z(p.dynamicChildren,K,b,A,S,N,P),(m.key!=null||A&&m===A.subTree)&&Ur(p,m,!0)):ne(p,m,b,Q,A,S,N,P,O)},w=(p,m,b,_,A,S,N,P,O)=>{m.slotScopeIds=P,p==null?m.shapeFlag&512?A.ctx.activate(m,b,_,N,O):B(m,b,_,A,S,N,O):be(p,m,O)},B=(p,m,b,_,A,S,N)=>{const P=p.component=Vc(p,_,A);if(Wi(p)&&(P.ctx.renderer=G),zc(P,!1,N),P.asyncDep){if(A&&A.registerDep(P,ie,N),!p.el){const O=P.subTree=Se(Pt);M(null,O,m,b),p.placeholder=O.el}}else ie(P,p,m,b,A,S,N)},be=(p,m,b)=>{const _=m.component=p.component;if(xc(p,m,b))if(_.asyncDep&&!_.asyncResolved){q(_,m,b);return}else _.next=m,_.update();else m.el=p.el,_.vnode=m},ie=(p,m,b,_,A,S,N)=>{const P=()=>{if(p.isMounted){let{next:j,bu:K,u:X,parent:fe,vnode:ke}=p;{const ft=hl(p);if(ft){j&&(j.el=ke.el,q(p,j,N)),ft.asyncDep.then(()=>{ze(()=>{p.isUnmounted||E()},A)});return}}let we=j,Ee;Gt(p,!1),j?(j.el=ke.el,q(p,j,N)):j=ke,K&&an(K),(Ee=j.props&&j.props.onVnodeBeforeUpdate)&&ht(Ee,fe,j,ke),Gt(p,!0);const Me=wo(p),ut=p.subTree;p.subTree=Me,y(ut,Me,f(ut.el),R(ut),p,A,S),j.el=Me.el,we===null&&Sc(p,Me.el),X&&ze(X,A),(Ee=j.props&&j.props.onVnodeUpdated)&&ze(()=>ht(Ee,fe,j,ke),A)}else{let j;const{el:K,props:X}=m,{bm:fe,m:ke,parent:we,root:Ee,type:Me}=p,ut=gs(m);Gt(p,!1),fe&&an(fe),!ut&&(j=X&&X.onVnodeBeforeMount)&&ht(j,we,m),Gt(p,!0);{Ee.ce&&Ee.ce._hasShadowRoot()&&Ee.ce._injectChildStyle(Me,p.parent?p.parent.type:void 0);const ft=p.subTree=wo(p);y(null,ft,b,_,p,A,S),m.el=ft.el}if(ke&&ze(ke,A),!ut&&(j=X&&X.onVnodeMounted)){const ft=m;ze(()=>ht(j,we,ft),A)}(m.shapeFlag&256||we&&gs(we.vnode)&&we.vnode.shapeFlag&256)&&p.a&&ze(p.a,A),p.isMounted=!0,m=b=_=null}};p.scope.on();const O=p.effect=new wi(P);p.scope.off();const E=p.update=O.run.bind(O),Q=p.job=O.runIfDirty.bind(O);Q.i=p,Q.id=p.uid,O.scheduler=()=>Lr(Q),Gt(p,!0),E()},q=(p,m,b)=>{m.component=p;const _=p.vnode.props;p.vnode=m,p.next=null,Tc(p,m.props,_,b),Ec(p,m.children,b),Et(),uo(p),It()},ne=(p,m,b,_,A,S,N,P,O=!1)=>{const E=p&&p.children,Q=p?p.shapeFlag:0,j=m.children,{patchFlag:K,shapeFlag:X}=m;if(K>0){if(K&128){Nt(E,j,b,_,A,S,N,P,O);return}else if(K&256){wt(E,j,b,_,A,S,N,P,O);return}}X&8?(Q&16&&et(E,A,S),j!==E&&c(b,j)):Q&16?X&16?Nt(E,j,b,_,A,S,N,P,O):et(E,A,S,!0):(Q&8&&c(b,""),X&16&&ue(j,b,_,A,S,N,P,O))},wt=(p,m,b,_,A,S,N,P,O)=>{p=p||fs,m=m||fs;const E=p.length,Q=m.length,j=Math.min(E,Q);let K;for(K=0;K<j;K++){const X=m[K]=O?Tt(m[K]):vt(m[K]);y(p[K],X,b,null,A,S,N,P,O)}E>Q?et(p,A,S,!0,!1,j):ue(m,b,_,A,S,N,P,O,j)},Nt=(p,m,b,_,A,S,N,P,O)=>{let E=0;const Q=m.length;let j=p.length-1,K=Q-1;for(;E<=j&&E<=K;){const X=p[E],fe=m[E]=O?Tt(m[E]):vt(m[E]);if(Ts(X,fe))y(X,fe,b,null,A,S,N,P,O);else break;E++}for(;E<=j&&E<=K;){const X=p[j],fe=m[K]=O?Tt(m[K]):vt(m[K]);if(Ts(X,fe))y(X,fe,b,null,A,S,N,P,O);else break;j--,K--}if(E>j){if(E<=K){const X=K+1,fe=X<Q?m[X].el:_;for(;E<=K;)y(null,m[E]=O?Tt(m[E]):vt(m[E]),b,fe,A,S,N,P,O),E++}}else if(E>K)for(;E<=j;)Ze(p[E],A,S,!0),E++;else{const X=E,fe=E,ke=new Map;for(E=fe;E<=K;E++){const Qe=m[E]=O?Tt(m[E]):vt(m[E]);Qe.key!=null&&ke.set(Qe.key,E)}let we,Ee=0;const Me=K-fe+1;let ut=!1,ft=0;const Ss=new Array(Me);for(E=0;E<Me;E++)Ss[E]=0;for(E=X;E<=j;E++){const Qe=p[E];if(Ee>=Me){Ze(Qe,A,S,!0);continue}let dt;if(Qe.key!=null)dt=ke.get(Qe.key);else for(we=fe;we<=K;we++)if(Ss[we-fe]===0&&Ts(Qe,m[we])){dt=we;break}dt===void 0?Ze(Qe,A,S,!0):(Ss[dt-fe]=E+1,dt>=ft?ft=dt:ut=!0,y(Qe,m[dt],b,null,A,S,N,P,O),Ee++)}const no=ut?Mc(Ss):fs;for(we=no.length-1,E=Me-1;E>=0;E--){const Qe=fe+E,dt=m[Qe],ro=m[Qe+1],oo=Qe+1<Q?ro.el||pl(ro):_;Ss[E]===0?y(null,dt,b,oo,A,S,N,P,O):ut&&(we<0||E!==no[we]?ct(dt,b,oo,2):we--)}}},ct=(p,m,b,_,A=null)=>{const{el:S,type:N,transition:P,children:O,shapeFlag:E}=p;if(E&6){ct(p.component.subTree,m,b,_);return}if(E&128){p.suspense.move(m,b,_);return}if(E&64){N.move(p,m,b,G);return}if(N===Y){n(S,m,b);for(let j=0;j<O.length;j++)ct(O[j],m,b,_);n(p.anchor,m,b);return}if(N===cn){D(p,m,b);return}if(_!==2&&E&1&&P)if(_===0)P.beforeEnter(S),n(S,m,b),ze(()=>P.enter(S),A);else{const{leave:j,delayLeave:K,afterLeave:X}=P,fe=()=>{p.ctx.isUnmounted?r(S):n(S,m,b)},ke=()=>{S._isLeaving&&S[Qa](!0),j(S,()=>{fe(),X&&X()})};K?K(S,fe,ke):ke()}else n(S,m,b)},Ze=(p,m,b,_=!1,A=!1)=>{const{type:S,props:N,ref:P,children:O,dynamicChildren:E,shapeFlag:Q,patchFlag:j,dirs:K,cacheIndex:X,memo:fe}=p;if(j===-2&&(A=!1),P!=null&&(Et(),Bs(P,null,b,p,!0),It()),X!=null&&(m.renderCache[X]=void 0),Q&256){m.ctx.deactivate(p);return}const ke=Q&1&&K,we=!gs(p);let Ee;if(we&&(Ee=N&&N.onVnodeBeforeUnmount)&&ht(Ee,m,p),Q&6)qt(p.component,b,_);else{if(Q&128){p.suspense.unmount(b,_);return}ke&&zt(p,null,m,"beforeUnmount"),Q&64?p.type.remove(p,m,b,G,_):E&&!E.hasOnce&&(S!==Y||j>0&&j&64)?et(E,m,b,!1,!0):(S===Y&&j&384||!A&&Q&16)&&et(O,m,b),_&&ns(p)}const Me=fe!=null&&X==null;(we&&(Ee=N&&N.onVnodeUnmounted)||ke||Me)&&ze(()=>{Ee&&ht(Ee,m,p),ke&&zt(p,null,m,"unmounted"),Me&&(p.el=null)},b)},ns=p=>{const{type:m,el:b,anchor:_,transition:A}=p;if(m===Y){rs(b,_);return}if(m===cn){T(p);return}const S=()=>{r(b),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(p.shapeFlag&1&&A&&!A.persisted){const{leave:N,delayLeave:P}=A,O=()=>N(b,S);P?P(p.el,S,O):O()}else S()},rs=(p,m)=>{let b;for(;p!==m;)b=h(p),r(p),p=b;r(m)},qt=(p,m,b)=>{const{bum:_,scope:A,job:S,subTree:N,um:P,m:O,a:E}=p;Ro(O),Ro(E),_&&an(_),A.stop(),S&&(S.flags|=8,Ze(N,p,m,b)),P&&ze(P,m),ze(()=>{p.isUnmounted=!0},m)},et=(p,m,b,_=!1,A=!1,S=0)=>{for(let N=S;N<p.length;N++)Ze(p[N],m,b,_,A)},R=p=>{if(p.shapeFlag&6)return R(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const m=h(p.anchor||p.el),b=m&&m[Gi];return b?h(b):m};let V=!1;const L=(p,m,b)=>{let _;p==null?m._vnode&&(Ze(m._vnode,null,null,!0),_=m._vnode.component):y(m._vnode||null,p,m,null,null,null,b),m._vnode=p,V||(V=!0,uo(_),Fi(),V=!1)},G={p:y,um:Ze,m:ct,r:ns,mt:B,mc:ue,pc:ne,pbc:Z,n:R,o:e};return{render:L,hydrate:void 0,createApp:vc(L)}}function Jn({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Gt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Pc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ur(e,t,s=!1){const n=e.children,r=t.children;if(J(n)&&J(r))for(let o=0;o<n.length;o++){const i=n[o];let a=r[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[o]=Tt(r[o]),a.el=i.el),!s&&a.patchFlag!==-2&&Ur(i,a)),a.type===Bn&&(a.patchFlag===-1&&(a=r[o]=Tt(a)),a.el=i.el),a.type===Pt&&!a.el&&(a.el=i.el)}}function Mc(e){const t=e.slice(),s=[0];let n,r,o,i,a;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(r=s[s.length-1],e[r]<u){t[n]=r,s.push(n);continue}for(o=0,i=s.length-1;o<i;)a=o+i>>1,e[s[a]]<u?o=a+1:i=a;u<e[s[o]]&&(o>0&&(t[n]=s[o-1]),s[o]=n)}}for(o=s.length,i=s[o-1];o-- >0;)s[o]=i,i=t[i];return s}function hl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:hl(t)}function Ro(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function pl(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?pl(t.subTree):null}const gl=e=>e.__isSuspense;function Nc(e,t){t&&t.pendingBranch?J(e)?t.effects.push(...e):t.effects.push(e):Ua(e)}const Y=Symbol.for("v-fgt"),Bn=Symbol.for("v-txt"),Pt=Symbol.for("v-cmt"),cn=Symbol.for("v-stc"),Hs=[];let Je=null;function k(e=!1){Hs.push(Je=e?null:[])}function Dc(){Hs.pop(),Je=Hs[Hs.length-1]||null}let zs=1;function mn(e,t=!1){zs+=e,e<0&&Je&&t&&(Je.hasOnce=!0)}function ml(e){return e.dynamicChildren=zs>0?Je||fs:null,Dc(),zs>0&&Je&&Je.push(e),e}function C(e,t,s,n,r,o){return ml(d(e,t,s,n,r,o,!0))}function ge(e,t,s,n,r){return ml(Se(e,t,s,n,r,!0))}function Gs(e){return e?e.__v_isVNode===!0:!1}function Ts(e,t){return e.type===t.type&&e.key===t.key}const vl=({key:e})=>e??null,un=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Te(e)||Ve(e)||se(e)?{i:De,r:e,k:t,f:!!s}:e:null);function d(e,t=null,s=null,n=0,r=null,o=e===Y?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&vl(t),ref:t&&un(t),scopeId:Vi,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:De};return a?(Vr(l,s),o&128&&e.normalize(l)):s&&(l.shapeFlag|=Te(s)?8:16),zs>0&&!i&&Je&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Je.push(l),l}const Se=Lc;function Lc(e,t=null,s=null,n=0,r=null,o=!1){if((!e||e===Ji)&&(e=Pt),Gs(e)){const a=ks(e,t,!0);return s&&Vr(a,s),zs>0&&!o&&Je&&(a.shapeFlag&6?Je[Je.indexOf(e)]=a:Je.push(a)),a.patchFlag=-2,a}if(Qc(e)&&(e=e.__vccOpts),t){t=Bc(t);let{class:a,style:l}=t;a&&!Te(a)&&(t.class=Re(a)),ve(l)&&(Nr(l)&&!J(l)&&(l=Le({},l)),t.style=Ar(l))}const i=Te(e)?1:gl(e)?128:Ga(e)?64:ve(e)?4:se(e)?2:0;return d(e,t,s,n,r,i,o,!0)}function Bc(e){return e?Nr(e)||ll(e)?Le({},e):e:null}function ks(e,t,s=!1,n=!1){const{props:r,ref:o,patchFlag:i,children:a,transition:l}=e,u=t?Hc(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&vl(u),ref:t&&t.ref?s&&o?J(o)?o.concat(un(t)):[o,un(t)]:un(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Y?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ks(e.ssContent),ssFallback:e.ssFallback&&ks(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&Br(c,l.clone(c)),c}function le(e=" ",t=0){return Se(Bn,null,e,t)}function jc(e,t){const s=Se(cn,null,e);return s.staticCount=t,s}function te(e="",t=!1){return t?(k(),ge(Pt,null,e)):Se(Pt,null,e)}function vt(e){return e==null||typeof e=="boolean"?Se(Pt):J(e)?Se(Y,null,e.slice()):Gs(e)?Tt(e):Se(Bn,null,String(e))}function Tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ks(e)}function Vr(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(J(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Vr(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!ll(t)?t._ctx=De:r===3&&De&&(De.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else se(t)?(t={default:t,_ctx:De},s=32):(t=String(t),n&64?(s=16,t=[le(t)]):s=8);e.children=t,e.shapeFlag|=s}function Hc(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=Re([t.class,n.class]));else if(r==="style")t.style=Ar([t.style,n.style]);else if(Rn(r)){const o=t[r],i=n[r];i&&o!==i&&!(J(o)&&o.includes(i))?t[r]=o?[].concat(o,i):i:i==null&&o==null&&!Tn(r)&&(t[r]=i)}else r!==""&&(t[r]=n[r])}return t}function ht(e,t,s,n=null){_t(e,t,7,[s,n])}const Fc=sl();let Uc=0;function Vc(e,t,s){const n=e.type,r=(t?t.appContext:e.appContext)||Fc,o={uid:Uc++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new da(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:cl(n,r),emitsOptions:nl(n,r),emit:null,emitted:null,propsDefaults:_e,inheritAttrs:n.inheritAttrs,ctx:_e,data:_e,props:_e,attrs:_e,slots:_e,refs:_e,setupState:_e,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=yc.bind(null,o),e.ce&&e.ce(o),o}let He=null;const qc=()=>He||De;let vn,mr;{const e=In(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};vn=t("__VUE_INSTANCE_SETTERS__",s=>He=s),mr=t("__VUE_SSR_SETTERS__",s=>Ks=s)}const Xs=e=>{const t=He;return vn(e),e.scope.on(),()=>{e.scope.off(),vn(t)}},To=()=>{He&&He.scope.off(),vn(null)};function bl(e){return e.vnode.shapeFlag&4}let Ks=!1;function zc(e,t=!1,s=!1){t&&mr(t);const{props:n,children:r}=e.vnode,o=bl(e);Rc(e,n,o,t),$c(e,r,s||t);const i=o?Gc(e,t):void 0;return t&&mr(!1),i}function Gc(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,uc);const{setup:n}=s;if(n){Et();const r=e.setupContext=n.length>1?Wc(e):null,o=Xs(e),i=Ys(n,e,0,[e.props,r]),a=gi(i);if(It(),o(),(a||e.sp)&&!gs(e)&&Ki(e),a){if(i.then(To,To),t)return i.then(l=>{Co(e,l)}).catch(l=>{Pn(l,e,0)});e.asyncDep=i}else Co(e,i)}else yl(e)}function Co(e,t,s){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ve(t)&&(e.setupState=Bi(t)),yl(e)}function yl(e,t,s){const n=e.type;e.render||(e.render=n.render||kt);{const r=Xs(e);Et();try{fc(e)}finally{It(),r()}}}const Kc={get(e,t){return je(e,"get",""),e[t]}};function Wc(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Kc),slots:e.slots,emit:e.emit,expose:t}}function jn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Bi(Oa(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in js)return js[s](e)},has(t,s){return s in t||s in js}})):e.proxy}function Zc(e,t=!0){return se(e)?e.displayName||e.name:e.name||t&&e.__name}function Qc(e){return se(e)&&"__vccOpts"in e}const z=(e,t)=>La(e,t,Ks);function kl(e,t,s){try{mn(-1);const n=arguments.length;return n===2?ve(t)&&!J(t)?Gs(t)?Se(e,null,[t]):Se(e,t):Se(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Gs(s)&&(s=[s]),Se(e,t,s))}finally{mn(1)}}const Jc="3.5.34";/**
|
|
14
|
+
* @vue/runtime-dom v3.5.34
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/let vr;const Ao=typeof window<"u"&&window.trustedTypes;if(Ao)try{vr=Ao.createPolicy("vue",{createHTML:e=>e})}catch{}const _l=vr?e=>vr.createHTML(e):e=>e,Yc="http://www.w3.org/2000/svg",Xc="http://www.w3.org/1998/Math/MathML",Rt=typeof document<"u"?document:null,$o=Rt&&Rt.createElement("template"),eu={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?Rt.createElementNS(Yc,e):t==="mathml"?Rt.createElementNS(Xc,e):s?Rt.createElement(e,{is:s}):Rt.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Rt.createTextNode(e),createComment:e=>Rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,o){const i=s?s.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===o||!(r=r.nextSibling)););else{$o.innerHTML=_l(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=$o.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},tu=Symbol("_vtc");function su(e,t,s){const n=e[tu];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const bn=Symbol("_vod"),wl=Symbol("_vsh"),Xe={name:"show",beforeMount(e,{value:t},{transition:s}){e[bn]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):Cs(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:n}){!t!=!s&&(n?t?(n.beforeEnter(e),Cs(e,!0),n.enter(e)):n.leave(e,()=>{Cs(e,!1)}):Cs(e,t))},beforeUnmount(e,{value:t}){Cs(e,t)}};function Cs(e,t){e.style.display=t?e[bn]:"none",e[wl]=!t}const nu=Symbol(""),ru=/(?:^|;)\s*display\s*:/;function ou(e,t,s){const n=e.style,r=Te(s);let o=!1;if(s&&!r){if(t)if(Te(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();s[a]==null&&Os(n,a,"")}else for(const i in t)s[i]==null&&Os(n,i,"");for(const i in s){i==="display"&&(o=!0);const a=s[i];a!=null?lu(e,i,!Te(t)&&t?t[i]:void 0,a)||Os(n,i,a):Os(n,i,"")}}else if(r){if(t!==s){const i=n[nu];i&&(s+=";"+i),n.cssText=s,o=ru.test(s)}}else t&&e.removeAttribute("style");bn in e&&(e[bn]=o?n.display:"",e[wl]&&(n.display="none"))}const Eo=/\s*!important$/;function Os(e,t,s){if(J(s))s.forEach(n=>Os(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=iu(e,t);Eo.test(s)?e.setProperty(Ft(n),s.replace(Eo,""),"important"):e[n]=s}}const Io=["Webkit","Moz","ms"],Yn={};function iu(e,t){const s=Yn[t];if(s)return s;let n=We(t);if(n!=="filter"&&n in e)return Yn[t]=n;n=$n(n);for(let r=0;r<Io.length;r++){const o=Io[r]+n;if(o in e)return Yn[t]=o}return t}function lu(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Te(n)&&s===n}const Oo="http://www.w3.org/1999/xlink";function Po(e,t,s,n,r,o=ca(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Oo,t.slice(6,t.length)):e.setAttributeNS(Oo,t,s):s==null||o&&!yi(s)?e.removeAttribute(t):e.setAttribute(t,o?"":it(s)?String(s):s)}function Mo(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?_l(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=s==null?e.type==="checkbox"?"on":"":String(s);(a!==l||!("_value"in e))&&(e.value=l),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const a=typeof e[t];a==="boolean"?s=yi(s):s==null&&a==="string"?(s="",i=!0):a==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(r||t)}function Qt(e,t,s,n){e.addEventListener(t,s,n)}function au(e,t,s,n){e.removeEventListener(t,s,n)}const No=Symbol("_vei");function cu(e,t,s,n,r=null){const o=e[No]||(e[No]={}),i=o[t];if(n&&i)i.value=n;else{const[a,l]=uu(t);if(n){const u=o[t]=hu(n,r);Qt(e,a,u,l)}else i&&(au(e,a,i,l),o[t]=void 0)}}const Do=/(?:Once|Passive|Capture)$/;function uu(e){let t;if(Do.test(e)){t={};let n;for(;n=e.match(Do);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ft(e.slice(2)),t]}let Xn=0;const fu=Promise.resolve(),du=()=>Xn||(fu.then(()=>Xn=0),Xn=Date.now());function hu(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;_t(pu(n,s.value),t,5,[n])};return s.value=e,s.attached=du(),s}function pu(e,t){if(J(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const Lo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,gu=(e,t,s,n,r,o)=>{const i=r==="svg";t==="class"?su(e,n,i):t==="style"?ou(e,s,n):Rn(t)?Tn(t)||cu(e,t,s,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):mu(e,t,n,i))?(Mo(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Po(e,t,n,i,o,t!=="value")):e._isVueCE&&(vu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Te(n)))?Mo(e,We(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Po(e,t,n,i))};function mu(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Lo(t)&&se(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Lo(t)&&Te(s)?!1:t in e}function vu(e,t){const s=e._def.props;if(!s)return!1;const n=We(t);return Array.isArray(s)?s.some(r=>We(r)===n):Object.keys(s).some(r=>We(r)===n)}const yn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return J(t)?s=>an(t,s):t};function bu(e){e.target.composing=!0}function Bo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const vs=Symbol("_assign");function jo(e,t,s){return t&&(e=e.trim()),s&&(e=En(e)),e}const yu={created(e,{modifiers:{lazy:t,trim:s,number:n}},r){e[vs]=yn(r);const o=n||r.props&&r.props.type==="number";Qt(e,t?"change":"input",i=>{i.target.composing||e[vs](jo(e.value,s,o))}),(s||o)&&Qt(e,"change",()=>{e.value=jo(e.value,s,o)}),t||(Qt(e,"compositionstart",bu),Qt(e,"compositionend",Bo),Qt(e,"change",Bo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:r,number:o}},i){if(e[vs]=yn(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?En(e.value):e.value,l=t??"";if(a===l)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(n&&t===s||r&&e.value.trim()===l)||(e.value=l)}},xl={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const r=Cn(t);Qt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?En(kn(i)):kn(i));e[vs](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,Dr(()=>{e._assigning=!1})}),e[vs]=yn(n)},mounted(e,{value:t}){Ho(e,t)},beforeUpdate(e,t,s){e[vs]=yn(s)},updated(e,{value:t}){e._assigning||Ho(e,t)}};function Ho(e,t){const s=e.multiple,n=J(t);if(!(s&&!n&&!Cn(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],a=kn(i);if(s)if(n){const l=typeof a;l==="string"||l==="number"?i.selected=t.some(u=>String(u)===String(a)):i.selected=fa(t,a)>-1}else i.selected=t.has(a);else if(Js(kn(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function kn(e){return"_value"in e?e._value:e.value}const ku=["ctrl","shift","alt","meta"],_u={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)=>ku.some(s=>e[`${s}Key`]&&!t.includes(s))},qr=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((r,...o)=>{for(let i=0;i<t.length;i++){const a=_u[t[i]];if(a&&a(r,t))return}return e(r,...o)}))},wu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ws=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(r=>{if(!("key"in r))return;const o=Ft(r.key);if(t.some(i=>i===o||wu[i]===o))return e(r)}))},xu=Le({patchProp:gu},eu);let Fo;function Su(){return Fo||(Fo=Ic(xu))}const Ru=((...e)=>{const t=Su().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=Cu(n);if(!r)return;const o=t._component;!se(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=s(r,!1,Tu(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t});function Tu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Cu(e){return Te(e)?document.querySelector(e):e}/*!
|
|
18
|
+
* vue-router v4.6.4
|
|
19
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
20
|
+
* @license MIT
|
|
21
|
+
*/const as=typeof document<"u";function Sl(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Au(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Sl(e.default)}const de=Object.assign;function er(e,t){const s={};for(const n in t){const r=t[n];s[n]=at(r)?r.map(e):e(r)}return s}const Fs=()=>{},at=Array.isArray;function Uo(e,t){const s={};for(const n in e)s[n]=n in t?t[n]:e[n];return s}const Rl=/#/g,$u=/&/g,Eu=/\//g,Iu=/=/g,Ou=/\?/g,Tl=/\+/g,Pu=/%5B/g,Mu=/%5D/g,Cl=/%5E/g,Nu=/%60/g,Al=/%7B/g,Du=/%7C/g,$l=/%7D/g,Lu=/%20/g;function zr(e){return e==null?"":encodeURI(""+e).replace(Du,"|").replace(Pu,"[").replace(Mu,"]")}function Bu(e){return zr(e).replace(Al,"{").replace($l,"}").replace(Cl,"^")}function br(e){return zr(e).replace(Tl,"%2B").replace(Lu,"+").replace(Rl,"%23").replace($u,"%26").replace(Nu,"`").replace(Al,"{").replace($l,"}").replace(Cl,"^")}function ju(e){return br(e).replace(Iu,"%3D")}function Hu(e){return zr(e).replace(Rl,"%23").replace(Ou,"%3F")}function Fu(e){return Hu(e).replace(Eu,"%2F")}function Zs(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Uu=/\/$/,Vu=e=>e.replace(Uu,"");function tr(e,t,s="/"){let n,r={},o="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(n=t.slice(0,l),o=t.slice(l,a>0?a:t.length),r=e(o.slice(1))),a>=0&&(n=n||t.slice(0,a),i=t.slice(a,t.length)),n=Ku(n??t,s),{fullPath:n+o+i,path:n,query:r,hash:Zs(i)}}function qu(e,t){const s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function Vo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function zu(e,t,s){const n=t.matched.length-1,r=s.matched.length-1;return n>-1&&n===r&&_s(t.matched[n],s.matched[r])&&El(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function _s(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function El(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var s in e)if(!Gu(e[s],t[s]))return!1;return!0}function Gu(e,t){return at(e)?qo(e,t):at(t)?qo(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function qo(e,t){return at(t)?e.length===t.length&&e.every((s,n)=>s===t[n]):e.length===1&&e[0]===t}function Ku(e,t){if(e.startsWith("/"))return e;if(!e)return t;const s=t.split("/"),n=e.split("/"),r=n[n.length-1];(r===".."||r===".")&&n.push("");let o=s.length-1,i,a;for(i=0;i<n.length;i++)if(a=n[i],a!==".")if(a==="..")o>1&&o--;else break;return s.slice(0,o).join("/")+"/"+n.slice(i).join("/")}const Dt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let yr=(function(e){return e.pop="pop",e.push="push",e})({}),sr=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Wu(e){if(!e)if(as){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Vu(e)}const Zu=/^[^#]+#/;function Qu(e,t){return e.replace(Zu,"#")+t}function Ju(e,t){const s=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-s.left-(t.left||0),top:n.top-s.top-(t.top||0)}}const Hn=()=>({left:window.scrollX,top:window.scrollY});function Yu(e){let t;if("el"in e){const s=e.el,n=typeof s=="string"&&s.startsWith("#"),r=typeof s=="string"?n?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!r)return;t=Ju(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function zo(e,t){return(history.state?history.state.position-t:-1)+e}const kr=new Map;function Xu(e,t){kr.set(e,t)}function ef(e){const t=kr.get(e);return kr.delete(e),t}function tf(e){return typeof e=="string"||e&&typeof e=="object"}function Il(e){return typeof e=="string"||typeof e=="symbol"}let Ce=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Ol=Symbol("");Ce.MATCHER_NOT_FOUND+"",Ce.NAVIGATION_GUARD_REDIRECT+"",Ce.NAVIGATION_ABORTED+"",Ce.NAVIGATION_CANCELLED+"",Ce.NAVIGATION_DUPLICATED+"";function ws(e,t){return de(new Error,{type:e,[Ol]:!0},t)}function St(e,t){return e instanceof Error&&Ol in e&&(t==null||!!(e.type&t))}const sf=["params","query","hash"];function nf(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const s of sf)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function rf(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<s.length;++n){const r=s[n].replace(Tl," "),o=r.indexOf("="),i=Zs(o<0?r:r.slice(0,o)),a=o<0?null:Zs(r.slice(o+1));if(i in t){let l=t[i];at(l)||(l=t[i]=[l]),l.push(a)}else t[i]=a}return t}function Go(e){let t="";for(let s in e){const n=e[s];if(s=ju(s),n==null){n!==void 0&&(t+=(t.length?"&":"")+s);continue}(at(n)?n.map(r=>r&&br(r)):[n&&br(n)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+s,r!=null&&(t+="="+r))})}return t}function of(e){const t={};for(const s in e){const n=e[s];n!==void 0&&(t[s]=at(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return t}const lf=Symbol(""),Ko=Symbol(""),Fn=Symbol(""),Gr=Symbol(""),_r=Symbol("");function As(){let e=[];function t(n){return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Ht(e,t,s,n,r,o=i=>i()){const i=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((a,l)=>{const u=h=>{h===!1?l(ws(Ce.NAVIGATION_ABORTED,{from:s,to:t})):h instanceof Error?l(h):tf(h)?l(ws(Ce.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(i&&n.enterCallbacks[r]===i&&typeof h=="function"&&i.push(h),a())},c=o(()=>e.call(n&&n.instances[r],t,s,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(h=>l(h))})}function nr(e,t,s,n,r=o=>o()){const o=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(Sl(l)){const u=(l.__vccOpts||l)[t];u&&o.push(Ht(u,s,n,i,a,r))}else{let u=l();o.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const f=Au(c)?c.default:c;i.mods[a]=c,i.components[a]=f;const h=(f.__vccOpts||f)[t];return h&&Ht(h,s,n,i,a,r)()}))}}return o}function af(e,t){const s=[],n=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const a=t.matched[i];a&&(e.matched.find(u=>_s(u,a))?n.push(a):s.push(a));const l=e.matched[i];l&&(t.matched.find(u=>_s(u,l))||r.push(l))}return[s,n,r]}/*!
|
|
22
|
+
* vue-router v4.6.4
|
|
23
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
24
|
+
* @license MIT
|
|
25
|
+
*/let cf=()=>location.protocol+"//"+location.host;function Pl(e,t){const{pathname:s,search:n,hash:r}=t,o=e.indexOf("#");if(o>-1){let i=r.includes(e.slice(o))?e.slice(o).length:1,a=r.slice(i);return a[0]!=="/"&&(a="/"+a),Vo(a,"")}return Vo(s,e)+n+r}function uf(e,t,s,n){let r=[],o=[],i=null;const a=({state:h})=>{const g=Pl(e,location),v=s.value,y=t.value;let x=0;if(h){if(s.value=g,t.value=h,i&&i===v){i=null;return}x=y?h.position-y.position:0}else n(g);r.forEach(M=>{M(s.value,v,{delta:x,type:yr.pop,direction:x?x>0?sr.forward:sr.back:sr.unknown})})};function l(){i=s.value}function u(h){r.push(h);const g=()=>{const v=r.indexOf(h);v>-1&&r.splice(v,1)};return o.push(g),g}function c(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(de({},h.state,{scroll:Hn()}),"")}}function f(){for(const h of o)h();o=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:f}}function Wo(e,t,s,n=!1,r=!1){return{back:e,current:t,forward:s,replaced:n,position:window.history.length,scroll:r?Hn():null}}function ff(e){const{history:t,location:s}=window,n={value:Pl(e,s)},r={value:t.state};r.value||o(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const f=e.indexOf("#"),h=f>-1?(s.host&&document.querySelector("base")?e:e.slice(f))+l:cf()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),r.value=u}catch(g){console.error(g),s[c?"replace":"assign"](h)}}function i(l,u){o(l,de({},t.state,Wo(r.value.back,l,r.value.forward,!0),u,{position:r.value.position}),!0),n.value=l}function a(l,u){const c=de({},r.value,t.state,{forward:l,scroll:Hn()});o(c.current,c,!0),o(l,de({},Wo(n.value,l,null),{position:c.position+1},u),!1),n.value=l}return{location:n,state:r,push:a,replace:i}}function df(e){e=Wu(e);const t=ff(e),s=uf(e,t.state,t.location,t.replace);function n(o,i=!0){i||s.pauseListeners(),history.go(o)}const r=de({location:"",base:e,go:n,createHref:Qu.bind(null,e)},t,s);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function hf(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),df(e)}let Yt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Oe=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Oe||{});const pf={type:Yt.Static,value:""},gf=/[a-zA-Z0-9_]/;function mf(e){if(!e)return[[]];if(e==="/")return[[pf]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${s})/"${u}": ${g}`)}let s=Oe.Static,n=s;const r=[];let o;function i(){o&&r.push(o),o=[]}let a=0,l,u="",c="";function f(){u&&(s===Oe.Static?o.push({type:Yt.Static,value:u}):s===Oe.Param||s===Oe.ParamRegExp||s===Oe.ParamRegExpEnd?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Yt.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&s!==Oe.ParamRegExp){n=s,s=Oe.EscapeNext;continue}switch(s){case Oe.Static:l==="/"?(u&&f(),i()):l===":"?(f(),s=Oe.Param):h();break;case Oe.EscapeNext:h(),s=n;break;case Oe.Param:l==="("?s=Oe.ParamRegExp:gf.test(l)?h():(f(),s=Oe.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case Oe.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:s=Oe.ParamRegExpEnd:c+=l;break;case Oe.ParamRegExpEnd:f(),s=Oe.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return s===Oe.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),f(),i(),r}const Zo="[^/]+?",vf={sensitive:!1,strict:!1,start:!0,end:!0};var Ge=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Ge||{});const bf=/[.+*?^${}()[\]/\\]/g;function yf(e,t){const s=de({},vf,t),n=[];let r=s.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[Ge.Root];s.strict&&!u.length&&(r+="/");for(let f=0;f<u.length;f++){const h=u[f];let g=Ge.Segment+(s.sensitive?Ge.BonusCaseSensitive:0);if(h.type===Yt.Static)f||(r+="/"),r+=h.value.replace(bf,"\\$&"),g+=Ge.Static;else if(h.type===Yt.Param){const{value:v,repeatable:y,optional:x,regexp:M}=h;o.push({name:v,repeatable:y,optional:x});const $=M||Zo;if($!==Zo){g+=Ge.BonusCustomRegExp;try{`${$}`}catch(T){throw new Error(`Invalid custom RegExp for param "${v}" (${$}): `+T.message)}}let D=y?`((?:${$})(?:/(?:${$}))*)`:`(${$})`;f||(D=x&&u.length<2?`(?:/${D})`:"/"+D),x&&(D+="?"),r+=D,g+=Ge.Dynamic,x&&(g+=Ge.BonusOptional),y&&(g+=Ge.BonusRepeatable),$===".*"&&(g+=Ge.BonusWildcard)}c.push(g)}n.push(c)}if(s.strict&&s.end){const u=n.length-1;n[u][n[u].length-1]+=Ge.BonusStrict}s.strict||(r+="/?"),s.end?r+="$":s.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,s.sensitive?"":"i");function a(u){const c=u.match(i),f={};if(!c)return null;for(let h=1;h<c.length;h++){const g=c[h]||"",v=o[h-1];f[v.name]=g&&v.repeatable?g.split("/"):g}return f}function l(u){let c="",f=!1;for(const h of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const g of h)if(g.type===Yt.Static)c+=g.value;else if(g.type===Yt.Param){const{value:v,repeatable:y,optional:x}=g,M=v in u?u[v]:"";if(at(M)&&!y)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const $=at(M)?M.join("/"):M;if(!$)if(x)h.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);c+=$}}return c||"/"}return{re:i,score:n,keys:o,parse:a,stringify:l}}function kf(e,t){let s=0;for(;s<e.length&&s<t.length;){const n=t[s]-e[s];if(n)return n;s++}return e.length<t.length?e.length===1&&e[0]===Ge.Static+Ge.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Ge.Static+Ge.Segment?1:-1:0}function Ml(e,t){let s=0;const n=e.score,r=t.score;for(;s<n.length&&s<r.length;){const o=kf(n[s],r[s]);if(o)return o;s++}if(Math.abs(r.length-n.length)===1){if(Qo(n))return 1;if(Qo(r))return-1}return r.length-n.length}function Qo(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const _f={strict:!1,end:!0,sensitive:!1};function wf(e,t,s){const n=yf(mf(e.path),s),r=de(n,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function xf(e,t){const s=[],n=new Map;t=Uo(_f,t);function r(f){return n.get(f)}function o(f,h,g){const v=!g,y=Yo(f);y.aliasOf=g&&g.record;const x=Uo(t,f),M=[y];if("alias"in f){const T=typeof f.alias=="string"?[f.alias]:f.alias;for(const F of T)M.push(Yo(de({},y,{components:g?g.record.components:y.components,path:F,aliasOf:g?g.record:y})))}let $,D;for(const T of M){const{path:F}=T;if(h&&F[0]!=="/"){const ee=h.record.path,U=ee[ee.length-1]==="/"?"":"/";T.path=h.record.path+(F&&U+F)}if($=wf(T,h,x),g?g.alias.push($):(D=D||$,D!==$&&D.alias.push($),v&&f.name&&!Xo($)&&i(f.name)),Nl($)&&l($),y.children){const ee=y.children;for(let U=0;U<ee.length;U++)o(ee[U],$,g&&g.children[U])}g=g||$}return D?()=>{i(D)}:Fs}function i(f){if(Il(f)){const h=n.get(f);h&&(n.delete(f),s.splice(s.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=s.indexOf(f);h>-1&&(s.splice(h,1),f.record.name&&n.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function a(){return s}function l(f){const h=Tf(f,s);s.splice(h,0,f),f.record.name&&!Xo(f)&&n.set(f.record.name,f)}function u(f,h){let g,v={},y,x;if("name"in f&&f.name){if(g=n.get(f.name),!g)throw ws(Ce.MATCHER_NOT_FOUND,{location:f});x=g.record.name,v=de(Jo(h.params,g.keys.filter(D=>!D.optional).concat(g.parent?g.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),f.params&&Jo(f.params,g.keys.map(D=>D.name))),y=g.stringify(v)}else if(f.path!=null)y=f.path,g=s.find(D=>D.re.test(y)),g&&(v=g.parse(y),x=g.record.name);else{if(g=h.name?n.get(h.name):s.find(D=>D.re.test(h.path)),!g)throw ws(Ce.MATCHER_NOT_FOUND,{location:f,currentLocation:h});x=g.record.name,v=de({},h.params,f.params),y=g.stringify(v)}const M=[];let $=g;for(;$;)M.unshift($.record),$=$.parent;return{name:x,path:y,params:v,matched:M,meta:Rf(M)}}e.forEach(f=>o(f));function c(){s.length=0,n.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:c,getRoutes:a,getRecordMatcher:r}}function Jo(e,t){const s={};for(const n of t)n in e&&(s[n]=e[n]);return s}function Yo(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Sf(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Sf(e){const t={},s=e.props||!1;if("component"in e)t.default=s;else for(const n in e.components)t[n]=typeof s=="object"?s[n]:s;return t}function Xo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Rf(e){return e.reduce((t,s)=>de(t,s.meta),{})}function Tf(e,t){let s=0,n=t.length;for(;s!==n;){const o=s+n>>1;Ml(e,t[o])<0?n=o:s=o+1}const r=Cf(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function Cf(e){let t=e;for(;t=t.parent;)if(Nl(t)&&Ml(e,t)===0)return t}function Nl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ei(e){const t=Ye(Fn),s=Ye(Gr),n=z(()=>{const l=Ie(e.to);return t.resolve(l)}),r=z(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],f=s.matched;if(!c||!f.length)return-1;const h=f.findIndex(_s.bind(null,c));if(h>-1)return h;const g=ti(l[u-2]);return u>1&&ti(c)===g&&f[f.length-1].path!==g?f.findIndex(_s.bind(null,l[u-2])):h}),o=z(()=>r.value>-1&&Of(s.params,n.value.params)),i=z(()=>r.value>-1&&r.value===s.matched.length-1&&El(s.params,n.value.params));function a(l={}){if(If(l)){const u=t[Ie(e.replace)?"replace":"push"](Ie(e.to)).catch(Fs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:z(()=>n.value.href),isActive:o,isExactActive:i,navigate:a}}function Af(e){return e.length===1?e[0]:e}const $f=$e({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:ei,setup(e,{slots:t}){const s=Ut(ei(e)),{options:n}=Ye(Fn),r=z(()=>({[si(e.activeClass,n.linkActiveClass,"router-link-active")]:s.isActive,[si(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const o=t.default&&Af(t.default(s));return e.custom?o:kl("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:r.value},o)}}}),Ef=$f;function If(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Of(e,t){for(const s in t){const n=t[s],r=e[s];if(typeof n=="string"){if(n!==r)return!1}else if(!at(r)||r.length!==n.length||n.some((o,i)=>o.valueOf()!==r[i].valueOf()))return!1}return!0}function ti(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const si=(e,t,s)=>e??t??s,Pf=$e({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){const n=Ye(_r),r=z(()=>e.route||n.value),o=Ye(Ko,0),i=z(()=>{let u=Ie(o);const{matched:c}=r.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=z(()=>r.value.matched[i.value]);ps(Ko,z(()=>i.value+1)),ps(lf,a),ps(_r,r);const l=re();return Ls(()=>[l.value,a.value,e.name],([u,c,f],[h,g,v])=>{c&&(c.instances[f]=u,g&&g!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=g.leaveGuards),c.updateGuards.size||(c.updateGuards=g.updateGuards))),u&&c&&(!g||!_s(c,g)||!h)&&(c.enterCallbacks[f]||[]).forEach(y=>y(u))},{flush:"post"}),()=>{const u=r.value,c=e.name,f=a.value,h=f&&f.components[c];if(!h)return ni(s.default,{Component:h,route:u});const g=f.props[c],v=g?g===!0?u.params:typeof g=="function"?g(u):g:null,x=kl(h,de({},v,t,{onVnodeUnmounted:M=>{M.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return ni(s.default,{Component:x,route:u})||x}}});function ni(e,t){if(!e)return null;const s=e(t);return s.length===1?s[0]:s}const Mf=Pf;function Nf(e){const t=xf(e.routes,e),s=e.parseQuery||rf,n=e.stringifyQuery||Go,r=e.history,o=As(),i=As(),a=As(),l=Pa(Dt);let u=Dt;as&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=er.bind(null,R=>""+R),f=er.bind(null,Fu),h=er.bind(null,Zs);function g(R,V){let L,G;return Il(R)?(L=t.getRecordMatcher(R),G=V):G=R,t.addRoute(G,L)}function v(R){const V=t.getRecordMatcher(R);V&&t.removeRoute(V)}function y(){return t.getRoutes().map(R=>R.record)}function x(R){return!!t.getRecordMatcher(R)}function M(R,V){if(V=de({},V||l.value),typeof R=="string"){const b=tr(s,R,V.path),_=t.resolve({path:b.path},V),A=r.createHref(b.fullPath);return de(b,_,{params:h(_.params),hash:Zs(b.hash),redirectedFrom:void 0,href:A})}let L;if(R.path!=null)L=de({},R,{path:tr(s,R.path,V.path).path});else{const b=de({},R.params);for(const _ in b)b[_]==null&&delete b[_];L=de({},R,{params:f(b)}),V.params=f(V.params)}const G=t.resolve(L,V),ae=R.hash||"";G.params=c(h(G.params));const p=qu(n,de({},R,{hash:Bu(ae),path:G.path})),m=r.createHref(p);return de({fullPath:p,hash:ae,query:n===Go?of(R.query):R.query||{}},G,{redirectedFrom:void 0,href:m})}function $(R){return typeof R=="string"?tr(s,R,l.value.path):de({},R)}function D(R,V){if(u!==R)return ws(Ce.NAVIGATION_CANCELLED,{from:V,to:R})}function T(R){return U(R)}function F(R){return T(de($(R),{replace:!0}))}function ee(R,V){const L=R.matched[R.matched.length-1];if(L&&L.redirect){const{redirect:G}=L;let ae=typeof G=="function"?G(R,V):G;return typeof ae=="string"&&(ae=ae.includes("?")||ae.includes("#")?ae=$(ae):{path:ae},ae.params={}),de({query:R.query,hash:R.hash,params:ae.path!=null?{}:R.params},ae)}}function U(R,V){const L=u=M(R),G=l.value,ae=R.state,p=R.force,m=R.replace===!0,b=ee(L,G);if(b)return U(de($(b),{state:typeof b=="object"?de({},ae,b.state):ae,force:p,replace:m}),V||L);const _=L;_.redirectedFrom=V;let A;return!p&&zu(n,G,L)&&(A=ws(Ce.NAVIGATION_DUPLICATED,{to:_,from:G}),ct(G,G,!0,!1)),(A?Promise.resolve(A):Z(_,G)).catch(S=>St(S)?St(S,Ce.NAVIGATION_GUARD_REDIRECT)?S:Nt(S):ne(S,_,G)).then(S=>{if(S){if(St(S,Ce.NAVIGATION_GUARD_REDIRECT))return U(de({replace:m},$(S.to),{state:typeof S.to=="object"?de({},ae,S.to.state):ae,force:p}),V||_)}else S=I(_,G,!0,m,ae);return H(_,G,S),S})}function ue(R,V){const L=D(R,V);return L?Promise.reject(L):Promise.resolve()}function oe(R){const V=rs.values().next().value;return V&&typeof V.runWithContext=="function"?V.runWithContext(R):R()}function Z(R,V){let L;const[G,ae,p]=af(R,V);L=nr(G.reverse(),"beforeRouteLeave",R,V);for(const b of G)b.leaveGuards.forEach(_=>{L.push(Ht(_,R,V))});const m=ue.bind(null,R,V);return L.push(m),et(L).then(()=>{L=[];for(const b of o.list())L.push(Ht(b,R,V));return L.push(m),et(L)}).then(()=>{L=nr(ae,"beforeRouteUpdate",R,V);for(const b of ae)b.updateGuards.forEach(_=>{L.push(Ht(_,R,V))});return L.push(m),et(L)}).then(()=>{L=[];for(const b of p)if(b.beforeEnter)if(at(b.beforeEnter))for(const _ of b.beforeEnter)L.push(Ht(_,R,V));else L.push(Ht(b.beforeEnter,R,V));return L.push(m),et(L)}).then(()=>(R.matched.forEach(b=>b.enterCallbacks={}),L=nr(p,"beforeRouteEnter",R,V,oe),L.push(m),et(L))).then(()=>{L=[];for(const b of i.list())L.push(Ht(b,R,V));return L.push(m),et(L)}).catch(b=>St(b,Ce.NAVIGATION_CANCELLED)?b:Promise.reject(b))}function H(R,V,L){a.list().forEach(G=>oe(()=>G(R,V,L)))}function I(R,V,L,G,ae){const p=D(R,V);if(p)return p;const m=V===Dt,b=as?history.state:{};L&&(G||m?r.replace(R.fullPath,de({scroll:m&&b&&b.scroll},ae)):r.push(R.fullPath,ae)),l.value=R,ct(R,V,L,m),Nt()}let w;function B(){w||(w=r.listen((R,V,L)=>{if(!qt.listening)return;const G=M(R),ae=ee(G,qt.currentRoute.value);if(ae){U(de(ae,{replace:!0,force:!0}),G).catch(Fs);return}u=G;const p=l.value;as&&Xu(zo(p.fullPath,L.delta),Hn()),Z(G,p).catch(m=>St(m,Ce.NAVIGATION_ABORTED|Ce.NAVIGATION_CANCELLED)?m:St(m,Ce.NAVIGATION_GUARD_REDIRECT)?(U(de($(m.to),{force:!0}),G).then(b=>{St(b,Ce.NAVIGATION_ABORTED|Ce.NAVIGATION_DUPLICATED)&&!L.delta&&L.type===yr.pop&&r.go(-1,!1)}).catch(Fs),Promise.reject()):(L.delta&&r.go(-L.delta,!1),ne(m,G,p))).then(m=>{m=m||I(G,p,!1),m&&(L.delta&&!St(m,Ce.NAVIGATION_CANCELLED)?r.go(-L.delta,!1):L.type===yr.pop&&St(m,Ce.NAVIGATION_ABORTED|Ce.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),H(G,p,m)}).catch(Fs)}))}let be=As(),ie=As(),q;function ne(R,V,L){Nt(R);const G=ie.list();return G.length?G.forEach(ae=>ae(R,V,L)):console.error(R),Promise.reject(R)}function wt(){return q&&l.value!==Dt?Promise.resolve():new Promise((R,V)=>{be.add([R,V])})}function Nt(R){return q||(q=!R,B(),be.list().forEach(([V,L])=>R?L(R):V()),be.reset()),R}function ct(R,V,L,G){const{scrollBehavior:ae}=e;if(!as||!ae)return Promise.resolve();const p=!L&&ef(zo(R.fullPath,0))||(G||!L)&&history.state&&history.state.scroll||null;return Dr().then(()=>ae(R,V,p)).then(m=>m&&Yu(m)).catch(m=>ne(m,R,V))}const Ze=R=>r.go(R);let ns;const rs=new Set,qt={currentRoute:l,listening:!0,addRoute:g,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:x,getRoutes:y,resolve:M,options:e,push:T,replace:F,go:Ze,back:()=>Ze(-1),forward:()=>Ze(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:ie.add,isReady:wt,install(R){R.component("RouterLink",Ef),R.component("RouterView",Mf),R.config.globalProperties.$router=qt,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>Ie(l)}),as&&!ns&&l.value===Dt&&(ns=!0,T(r.location).catch(G=>{}));const V={};for(const G in Dt)Object.defineProperty(V,G,{get:()=>l.value[G],enumerable:!0});R.provide(Fn,qt),R.provide(Gr,Di(V)),R.provide(_r,l);const L=R.unmount;rs.add(R),R.unmount=function(){rs.delete(R),rs.size<1&&(u=Dt,w&&w(),w=null,l.value=Dt,ns=!1,q=!1),L()}}};function et(R){return R.reduce((V,L)=>V.then(()=>oe(L)),Promise.resolve())}return qt}function Kr(){return Ye(Fn)}function Dl(e){return Ye(Gr)}const Df={class:"header-actions"},Lf=["aria-expanded"],Bf={class:"dropdown-menu"},jf=$e({__name:"AppHeader",props:{traceEnabled:{type:Boolean}},emits:["toggleTheme","toggleTrace","import","export","keyboardHelp"],setup(e){const t=Dl(),s=re(!1),n=re(null);function r(u){n.value&&!n.value.contains(u.target)&&(s.value=!1)}Vt(()=>document.addEventListener("click",r)),Dn(()=>document.removeEventListener("click",r));const o=z(()=>t.name==="sessions"),i=z(()=>t.name==="timeline");function a(){s.value=!s.value}function l(){s.value=!1}return(u,c)=>(k(),C("header",null,[c[12]||(c[12]=d("h1",null,[d("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true",width:"20",height:"20"},[d("path",{d:"M12 2L2 7l10 5 10-5-10-5z"}),d("path",{d:"M2 17l10 5 10-5"}),d("path",{d:"M2 12l10 5 10-5"})]),le(" opencode-trace ")],-1)),d("div",Df,[d("div",{class:"dropdown",ref_key:"dropdownRef",ref:n},[d("button",{class:"dropdown-toggle",onClick:a,"aria-label":"More actions","aria-expanded":s.value},[...c[5]||(c[5]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[d("circle",{cx:"12",cy:"5",r:"1"}),d("circle",{cx:"12",cy:"12",r:"1"}),d("circle",{cx:"12",cy:"19",r:"1"})],-1)])],8,Lf),Fe(d("div",Bf,[d("button",{class:"dropdown-item",onClick:c[0]||(c[0]=f=>{u.$emit("toggleTheme"),l()})},[...c[6]||(c[6]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})],-1),le(" Toggle theme ",-1)])]),d("button",{class:"dropdown-item",onClick:c[1]||(c[1]=f=>{u.$emit("toggleTrace"),l()})},[c[7]||(c[7]=d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("circle",{cx:"12",cy:"12",r:"10"}),d("circle",{cx:"12",cy:"12",r:"3",fill:"currentColor"})],-1)),le(" Trace "+W(e.traceEnabled?"ON":"OFF"),1)]),c[11]||(c[11]=d("div",{class:"dropdown-divider"},null,-1)),o.value?(k(),C("button",{key:0,class:"dropdown-item",onClick:c[2]||(c[2]=f=>{u.$emit("import"),l()})},[...c[8]||(c[8]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),d("polyline",{points:"7,10 12,15 17,10"}),d("line",{x1:"12",y1:"15",x2:"12",y2:"3"})],-1),le(" Import Session ",-1)])])):te("",!0),i.value?(k(),C("button",{key:1,class:"dropdown-item",onClick:c[3]||(c[3]=f=>{u.$emit("export"),l()})},[...c[9]||(c[9]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),d("polyline",{points:"17,8 12,3 7,8"}),d("line",{x1:"12",y1:"3",x2:"12",y2:"15"})],-1),le(" Export Session ",-1)])])):te("",!0),d("button",{class:"dropdown-item",onClick:c[4]||(c[4]=f=>{u.$emit("keyboardHelp"),l()})},[...c[10]||(c[10]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),d("path",{d:"M6 8h.01M10 8h.01M14 8h.01M18 8h.01M6 12h12M6 16h8"})],-1),le(" Keyboard shortcuts ",-1)])])],512),[[Xe,s.value]])],512)])]))}}),Be=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Hf=Be(jf,[["__scopeId","data-v-741ff62c"]]),Ff={key:0,class:"breadcrumb","aria-label":"Breadcrumb"},Uf={key:1,class:"sep"},Vf={key:2,class:"current"},qf=$e({__name:"Breadcrumb",setup(e){const t=Dl(),s=z(()=>{const n=[{label:"Sessions",href:"/"}];if(t.name==="timeline"&&t.params.sessionId){const r=t.params.sessionId;n.push({label:r,href:`/session/${r}`})}else if(t.name==="record"&&t.params.sessionId&&t.params.recordId){const r=t.params.sessionId,o=t.params.recordId;n.push({label:r,href:`/session/${r}`}),n.push({label:`#${o}`,href:`/session/${r}/record/${o}`})}return n});return(n,r)=>{const o=jr("router-link");return s.value.length>0?(k(),C("nav",Ff,[(k(!0),C(Y,null,Ae(s.value,(i,a)=>(k(),C(Y,{key:i.href},[a<s.value.length-1?(k(),ge(o,{key:0,to:i.href},{default:ys(()=>[le(W(i.label),1)]),_:2},1032,["to"])):te("",!0),a<s.value.length-1?(k(),C("span",Uf,"/")):(k(),C("span",Vf,W(i.label),1))],64))),128))])):te("",!0)}}}),zf=Be(qf,[["__scopeId","data-v-ddc4b5bf"]]),Gf={class:"fab-container"},Kf=$e({__name:"FabButtons",setup(e){function t(){const n=document.querySelector("main");n==null||n.scrollTo({top:0,behavior:"smooth"})}function s(){const n=document.querySelector("main");n&&n.scrollTo({top:n.scrollHeight,behavior:"smooth"})}return(n,r)=>(k(),C("div",Gf,[d("button",{class:"fab-scroll",onClick:t,"aria-label":"Scroll to top"},[...r[0]||(r[0]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[d("path",{d:"M18 15l-6-6-6 6"})],-1)])]),d("button",{class:"fab-scroll",onClick:s,"aria-label":"Scroll to bottom"},[...r[1]||(r[1]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[d("path",{d:"M6 9l6 6 6-6"})],-1)])])]))}}),Wf=Be(Kf,[["__scopeId","data-v-730271da"]]),is=re([]);let Zf=0;function Un(){function e(s,n="info",r,o,i=3e3){const a=Zf++,l={id:a,message:s,type:n,actionLabel:o,onAction:r};is.value.push(l),setTimeout(()=>{is.value=is.value.filter(u=>u.id!==a)},i)}function t(s){is.value=is.value.filter(n=>n.id!==s)}return{toasts:is,showToast:e,removeToast:t}}const Qf={key:0,class:"toast-container"},Jf=["onClick"],Yf=$e({__name:"ToastContainer",setup(e){const{toasts:t,removeToast:s}=Un();return(n,r)=>(k(),ge(Mn,{to:"body"},[Ie(t).length>0?(k(),C("div",Qf,[(k(!0),C(Y,null,Ae(Ie(t),o=>(k(),C("div",{key:o.id,class:Re(["toast",o.type])},[d("span",null,W(o.message),1),o.actionLabel?(k(),C("button",{key:0,class:"toast-action",onClick:i=>{var a;(a=o.onAction)==null||a.call(o),Ie(s)(o.id)}},W(o.actionLabel),9,Jf)):te("",!0)],2))),128))])):te("",!0)]))}}),Xf=Be(Yf,[["__scopeId","data-v-0871cfbd"]]),ed={class:"confirm-dialog"},td={class:"confirm-actions"},ri="confirm-title",oi="confirm-message",sd=$e({__name:"ConfirmDialog",props:{title:{},message:{}},emits:["confirm","cancel"],setup(e){const t=re(null);Vt(()=>{var n;(n=t.value)==null||n.focus()});function s(n){n.key}return(n,r)=>(k(),ge(Mn,{to:"body"},[d("div",{class:"confirm-overlay",role:"alertdialog","aria-modal":"true","aria-labelledby":ri,"aria-describedby":oi,onKeydown:s},[d("div",ed,[d("div",{id:ri,class:"confirm-title"},W(e.title),1),d("div",{id:oi,class:"confirm-message"},W(e.message),1),d("div",td,[d("button",{class:"confirm-btn cancel",ref_key:"cancelBtnRef",ref:t,onClick:r[0]||(r[0]=o=>n.$emit("cancel"))},"Cancel",512),d("button",{class:"confirm-btn danger",onClick:r[1]||(r[1]=o=>n.$emit("confirm"))},"Delete")])])],32)]))}}),nd=Be(sd,[["__scopeId","data-v-4c95e883"]]),rd={class:"keyboard-help"},od=$e({__name:"KeyboardHelp",emits:["close"],setup(e){const t=re(null);return Vt(()=>{var s;(s=t.value)==null||s.focus()}),(s,n)=>(k(),ge(Mn,{to:"body"},[d("div",{class:"keyboard-help-overlay","aria-modal":"true",role:"dialog","aria-labelledby":"keyboard-help-title",onClick:n[1]||(n[1]=qr(r=>s.$emit("close"),["self"])),onKeydown:n[2]||(n[2]=Ws(r=>s.$emit("close"),["escape"]))},[d("div",rd,[n[3]||(n[3]=d("h3",{id:"keyboard-help-title"},"Keyboard Shortcuts",-1)),n[4]||(n[4]=d("div",{class:"shortcut-list"},[d("div",{class:"shortcut"},[d("kbd",null,"/"),le(" Focus search")]),d("div",{class:"shortcut"},[d("kbd",null,"E"),le(" Export session (on session view)")]),d("div",{class:"shortcut"},[d("kbd",null,"?"),le(" Show this help")]),d("div",{class:"shortcut"},[d("kbd",null,"Esc"),le(" Close dialogs")])],-1)),d("button",{class:"help-close",ref_key:"closeBtnRef",ref:t,onClick:n[0]||(n[0]=r=>s.$emit("close"))},"Close",512)])],32)]))}}),id=Be(od,[["__scopeId","data-v-0d74ddfc"]]);function Pe(e){return e==null?"":String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function ii(e){if(!e)return"?";try{return new Date(e).toLocaleString()}catch{return e}}function rr(e){if(!e)return"";const t=new Date(e),n=Date.now()-t.getTime();return n<6e4?"just now":n<36e5?`${Math.floor(n/6e4)}m ago`:n<864e5?`${Math.floor(n/36e5)}h ago`:`${Math.floor(n/864e5)}d ago`}function tt(e){return e==null?"0":String(e).replace(/\B(?=(\d{3})+(?!\d))/g,",")}function cs(e){return e==null?"-":`${tt(Number(e.toFixed(2)))}ms`}function us(e){return e<1e3?`${e}ms`:e<6e4?`${(e/1e3).toFixed(1)}s`:e<36e5?`${Math.floor(e/6e4)}m ${Math.floor(e%6e4/1e3)}s`:`${Math.floor(e/36e5)}h ${Math.floor(e%36e5/6e4)}m`}function ld(e){return e.split("/").pop()||e}const ad={class:"modal-content"},cd={class:"modal-header"},ud={class:"modal-body"},fd={class:"file-label"},dd={class:"file-input-wrapper"},hd={class:"import-status"},pd={key:0,class:"loading"},gd={key:0,class:"conflict-panel"},md={class:"conflict-list"},vd={class:"conflict-id"},bd={class:"conflict-title"},yd={class:"conflict-actions"},kd=$e({__name:"ImportModal",emits:["close","imported"],setup(e,{emit:t}){const s=t,n=re(!1),r=re(""),o=re("success"),i=re([]);let a=null;async function l(c){const f=c.target;if(!f.files||f.files.length===0)return;const h=f.files[0];a=h,n.value=!0,r.value="",i.value=[];try{const g=new FormData;g.append("file",h);const y=await(await fetch("/api/sessions/import",{method:"POST",body:g})).json();y.conflicts&&y.conflicts.length>0?(i.value=y.conflicts,r.value=`${y.conflicts.length} session(s) already exist.`,o.value="warning"):y.imported?(r.value=`Imported ${y.imported} session(s)!`,o.value="success",setTimeout(()=>s("imported"),1500)):(r.value=`Import failed: ${Pe(y.error||"Unknown error")}`,o.value="error")}catch(g){r.value=`Import failed: ${Pe(g.message)}`,o.value="error"}finally{n.value=!1}}async function u(c){if(a){n.value=!0,r.value="";try{const f=new FormData;f.append("file",a),f.append("conflictStrategy",c);const g=await(await fetch("/api/sessions/import",{method:"POST",body:f})).json();g.imported?(i.value=[],r.value=`Imported ${g.imported} session(s)!`,o.value="success",setTimeout(()=>s("imported"),1500)):(r.value=`Import failed: ${Pe(g.error||"Unknown error")}`,o.value="error")}catch(f){r.value=`Import failed: ${Pe(f.message)}`,o.value="error"}finally{n.value=!1}}}return(c,f)=>(k(),ge(Mn,{to:"body"},[d("div",{class:"modal-overlay",role:"dialog","aria-modal":"true","aria-labelledby":"import-modal-title",onClick:f[4]||(f[4]=qr(h=>c.$emit("close"),["self"])),onKeydown:f[5]||(f[5]=Ws(h=>c.$emit("close"),["escape"]))},[d("div",ad,[d("div",cd,[f[6]||(f[6]=d("h3",{id:"import-modal-title"},"Import Session",-1)),d("button",{class:"modal-close","aria-label":"Close import modal",onClick:f[0]||(f[0]=h=>c.$emit("close"))},"×")]),d("div",ud,[d("label",fd,[f[8]||(f[8]=d("span",{class:"file-label-text"},"Select ZIP file:",-1)),d("div",dd,[d("input",{type:"file",accept:".zip","aria-label":"Select ZIP file to import",onChange:l,class:"file-input-native"},null,32),f[7]||(f[7]=d("span",{class:"file-input-button"},"Choose File",-1))])]),d("div",hd,[n.value?(k(),C("div",pd,[...f[9]||(f[9]=[d("div",{class:"spinner"},null,-1),le(" Uploading...",-1)])])):r.value?(k(),C("div",{key:1,class:Re(["status-msg",o.value])},W(r.value),3)):te("",!0)]),i.value.length>0?(k(),C("div",gd,[f[10]||(f[10]=d("h4",null,"Session Conflicts Detected",-1)),d("div",md,[(k(!0),C(Y,null,Ae(i.value,h=>(k(),C("div",{key:h.id,class:"conflict-item"},[d("span",vd,W(h.id),1),d("span",bd,W(h.title||""),1)]))),128))]),d("div",yd,[d("button",{class:"action-rename",onClick:f[1]||(f[1]=h=>u("rename"))},"Rename All"),d("button",{class:"action-skip",onClick:f[2]||(f[2]=h=>u("skip"))},"Skip All"),d("button",{class:"action-cancel",onClick:f[3]||(f[3]=h=>c.$emit("close"))},"Cancel")])])):te("",!0)])])],32)]))}}),_d=Be(kd,[["__scopeId","data-v-e865cf63"]]),Kt=re("dark");function wd(){function e(){try{const n=localStorage.getItem("ot-theme");n&&(Kt.value=n)}catch{}t()}function t(){document.documentElement.setAttribute("data-theme",Kt.value)}function s(){Kt.value=Kt.value==="dark"?"light":"dark";try{localStorage.setItem("ot-theme",Kt.value)}catch{}t()}return Ls(Kt,t),{theme:Kt,toggleTheme:s,initTheme:e}}function xd(e){function t(s){const n=e[s.key];if(n){const r=document.activeElement;(!((r==null?void 0:r.tagName)==="INPUT"||(r==null?void 0:r.tagName)==="TEXTAREA"||(r==null?void 0:r.tagName)==="SELECT"||(r==null?void 0:r.isContentEditable))||s.key==="Escape")&&(s.preventDefault(),n(s))}}Vt(()=>document.addEventListener("keydown",t)),Dn(()=>document.removeEventListener("keydown",t))}const Ll="/api";async function yt(e){const t=await fetch(`${Ll}/${e}`);if(!t.ok)throw new Error(`API error: ${t.status}`);return t.json()}async function Sd(e){const t=await fetch(`${Ll}/${e}`,{method:"POST"});if(!t.ok)throw new Error(`API error: ${t.status}`);return t.json()}const Rd={id:"main-content"},Td=$e({__name:"App",setup(e){const{toggleTheme:t}=wd(),{showToast:s}=Un(),n=Kr(),r=re(!1),o=re(!1),i=re(!1),a=re(null);function l(y,x,M){a.value={title:y,message:x,onConfirm:M}}function u(){a.value&&(a.value.onConfirm(),a.value=null)}ps("showConfirm",l),ps("showToast",s);async function c(){try{const y=await yt("trace/status");r.value=y.globalEnabled}catch{r.value=!1}}async function f(){const y=r.value;try{await yt(`trace/${y?"disable":"enable"}`),r.value=!y,s(`Trace ${r.value?"enabled":"disabled"}`,"success")}catch(x){console.error("Failed to toggle trace:",x)}}function h(){const y=n.currentRoute.value;y.name==="timeline"&&y.params.sessionId&&g(y.params.sessionId)}async function g(y){try{s("Exporting session...","info");const x=await fetch(`/api/sessions/${encodeURIComponent(y)}/export`,{method:"POST"});if(!x.ok)throw new Error(`Export failed: ${x.status}`);const M=await x.blob(),$=URL.createObjectURL(M),D=document.createElement("a");D.href=$,D.download=`${y}.zip`,document.body.appendChild(D),D.click(),document.body.removeChild(D),URL.revokeObjectURL($),s("Session exported!","success")}catch(x){s(`Export failed: ${x.message}`,"error")}}function v(){i.value=!1,n.currentRoute.value.name==="sessions"&&n.replace("/")}return xd({"/":()=>{const y=document.querySelector("#session-search, .search-input");y==null||y.focus()},"?":()=>{o.value=!0},e:()=>{const y=n.currentRoute.value;y.name==="timeline"&&y.params.sessionId&&g(y.params.sessionId)},Escape:()=>{o.value=!1,i.value=!1,a.value=null}}),c(),(y,x)=>{const M=jr("router-view");return k(),C(Y,null,[x[5]||(x[5]=d("a",{href:"#main-content",class:"skip-link"},"Skip to content",-1)),x[6]||(x[6]=d("div",{id:"a11y-live-region",class:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true"},null,-1)),Se(Hf,{"trace-enabled":r.value,onToggleTheme:Ie(t),onToggleTrace:f,onImport:x[0]||(x[0]=$=>i.value=!0),onExport:h,onKeyboardHelp:x[1]||(x[1]=$=>o.value=!0)},null,8,["trace-enabled","onToggleTheme"]),Se(zf),d("main",Rd,[Se(M,null,{default:ys(({Component:$})=>[(k(),ge(ac($)))]),_:1})]),Se(Wf),Se(Xf),a.value?(k(),ge(nd,{key:0,title:a.value.title,message:a.value.message,onConfirm:u,onCancel:x[2]||(x[2]=$=>a.value=null)},null,8,["title","message"])):te("",!0),o.value?(k(),ge(id,{key:1,onClose:x[3]||(x[3]=$=>o.value=!1)})):te("",!0),i.value?(k(),ge(_d,{key:2,onClose:x[4]||(x[4]=$=>i.value=!1),onImported:v})):te("",!0)],64)}}}),Cd={class:"container"},Ad={key:0,class:"loading"},$d={key:1,class:"error-banner"},Ed={key:2,class:"empty-state"},Id={class:"page-title"},Od={class:"count"},Pd={class:"sessions-controls-bar"},Md={class:"view-controls"},Nd={class:"search-input-container"},Dd={class:"sort-label"},Ld={key:0,class:"empty-state"},Bd={key:1,class:"folder-groups"},jd={class:"folder-header"},Hd={class:"folder-title"},Fd={class:"folder-path"},Ud={class:"badge"},Vd={class:"badge"},qd={class:"folder-sessions"},zd=["aria-label","onClick","onKeydown"],Gd={class:"session-card-header"},Kd={class:"session-title-row"},Wd={class:"session-card-content"},Zd={class:"session-title"},Qd={key:0,class:"session-id"},Jd={class:"session-meta"},Yd={class:"badge"},Xd={key:0,class:"badge"},eh={key:1,class:"badge"},th={key:2,class:"badge"},sh={class:"session-card-more"},nh=["aria-expanded","onClick"],rh={class:"session-more-menu"},oh=["onClick"],ih=["onClick"],lh={key:0,class:"children-container"},ah=["aria-label","onClick","onKeydown"],ch={class:"session-title"},uh={key:0,class:"session-id"},fh=$e({__name:"SessionsView",setup(e,{expose:t}){const s=Kr(),n=Ye("showConfirm"),r=Ye("showToast"),o=re(!0),i=re(""),a=re([]),l=re(""),u=re("recent"),c=re(null),f=re(new Set),h=re(null),g=z(()=>{const Z=M(a.value);return $(Z,u.value)}),v=z(()=>{if(!l.value)return g.value;const Z=l.value.toLowerCase();return g.value.map(H=>{const I=H.sessions.filter(w=>{const B=(w.title||w.id).toLowerCase(),be=w.id.toLowerCase();return B.includes(Z)||be.includes(Z)?!0:w.children?w.children.some(ie=>{const q=(ie.title||ie.id).toLowerCase(),ne=ie.id.toLowerCase();return q.includes(Z)||ne.includes(Z)}):!1});return I.length===0?null:{...H,sessions:I,totalCount:x(I)}}).filter(Boolean)}),y=z(()=>{let Z=0;for(const H of g.value)Z+=H.totalCount;return Z});function x(Z){let H=Z.length;for(const I of Z)I.children&&(H+=I.children.length);return H}function M(Z){const H={};for(const I of Z){const w=I.folderPath||"Unknown";H[w]||(H[w]={projectName:ld(w),fullPath:w,sessions:[],lastActivity:null,totalCount:0}),H[w].sessions.push(I);const B=I.updatedAt||I.createdAt||null;B&&(!H[w].lastActivity||B>H[w].lastActivity)&&(H[w].lastActivity=B)}for(const I of Object.values(H))I.totalCount=x(I.sessions);return Object.values(H)}function $(Z,H){const I=[...Z];return H==="recent"?I.sort((w,B)=>(B.lastActivity||"").localeCompare(w.lastActivity||"")):H==="created"?I.sort((w,B)=>{const be=w.sessions.reduce((q,ne)=>ne.createdAt&&(!q||ne.createdAt<q)?ne.createdAt:q,null),ie=B.sessions.reduce((q,ne)=>ne.createdAt&&(!q||ne.createdAt<q)?ne.createdAt:q,null);return(be||"").localeCompare(ie||"")}):H==="name_asc"?I.sort((w,B)=>w.projectName.localeCompare(B.projectName)):H==="name_desc"&&I.sort((w,B)=>B.projectName.localeCompare(w.projectName)),I}function D(Z){c.value=c.value===Z?null:Z}function T(Z){f.value.has(Z)?f.value.delete(Z):f.value.add(Z),f.value=new Set(f.value)}async function F(Z){c.value=null,n("Delete Session",`Are you sure you want to delete session "${Z}"? This action cannot be undone.`,async()=>{try{await Sd(`sessions/${encodeURIComponent(Z)}/delete`),r("Session deleted","success"),await oe()}catch(H){r(`Delete failed: ${H.message}`,"error")}})}function ee(){}function U(){var Z;l.value="",(Z=h.value)==null||Z.focus()}function ue(){}async function oe(){o.value=!0,i.value="";try{a.value=await yt("sessions/tree")}catch(Z){i.value=`Failed to load sessions: ${Pe(Z.message)}`}finally{o.value=!1}}return Vt(oe),t({loadSessions:oe}),(Z,H)=>(k(),C("div",Cd,[o.value?(k(),C("div",Ad,[...H[3]||(H[3]=[d("div",{class:"spinner"},null,-1),le("Loading...",-1)])])):i.value?(k(),C("div",$d,W(i.value),1)):g.value.length===0?(k(),C("div",Ed,[...H[4]||(H[4]=[d("div",{class:"icon"},"📁",-1),d("p",null,"No sessions found",-1),d("p",{style:{"font-size":"12px","margin-top":"8px",color:"var(--text-secondary)"}},"Trace data is stored in ~/.opencode-trace",-1),d("p",{style:{"font-size":"12px","margin-top":"4px",color:"var(--text-tertiary)"}},[le(" Run "),d("code",null,"opencode"),le(" to start recording sessions ")],-1)])])):(k(),C(Y,{key:3},[d("div",Id,[H[5]||(H[5]=le("Sessions ",-1)),d("span",Od,W(y.value),1)]),d("div",Pd,[d("div",Md,[d("div",Nd,[H[7]||(H[7]=d("span",{class:"search-icon"},[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("circle",{cx:"11",cy:"11",r:"8"}),d("path",{d:"m21 21-4.35-4.35"})])],-1)),Fe(d("input",{ref_key:"searchInputRef",ref:h,type:"search",class:"search-input",placeholder:"Search sessions...","aria-label":"Search sessions","onUpdate:modelValue":H[0]||(H[0]=I=>l.value=I),onInput:ee},null,544),[[yu,l.value]]),Fe(d("button",{class:"search-clear","aria-label":"Clear search",onClick:U},[...H[6]||(H[6]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M18 6L6 18M6 6l12 12"})],-1)])],512),[[Xe,l.value]])]),d("label",Dd,[H[9]||(H[9]=d("span",{class:"sort-label-text"},"Sort:",-1)),Fe(d("select",{class:"sort-select","aria-label":"Sort sessions","onUpdate:modelValue":H[1]||(H[1]=I=>u.value=I),onChange:ue},[...H[8]||(H[8]=[d("option",{value:"recent"},"Recent",-1),d("option",{value:"name_asc"},"A-Z",-1),d("option",{value:"name_desc"},"Z-A",-1),d("option",{value:"created"},"Created",-1)])],544),[[xl,u.value]])])])]),v.value.length===0&&l.value?(k(),C("div",Ld,[H[10]||(H[10]=d("div",{class:"icon"},"🔍",-1)),d("p",null,'No sessions match "'+W(l.value)+'"',1)])):(k(),C("div",Bd,[(k(!0),C(Y,null,Ae(v.value,I=>(k(),C("div",{key:I.fullPath,class:"folder-group"},[d("div",jd,[d("div",Hd,W(I.projectName),1),d("div",Fd,W(I.fullPath),1),d("span",Ud,W(I.totalCount)+" sessions",1),d("span",Vd,W(Ie(rr)(I.lastActivity)),1)]),d("div",qd,[(k(!0),C(Y,null,Ae(I.sessions,w=>{var B,be,ie;return k(),C("div",{key:w.id},[d("div",{class:"session-card card card-interactive parent-card",tabindex:"0",role:"button","aria-label":`View session ${w.title||w.id}`,onClick:q=>Ie(s).push(`/session/${w.id}`),onKeydown:Ws(q=>Ie(s).push(`/session/${w.id}`),["enter"])},[d("div",Gd,[d("div",Kd,[d("div",Wd,[d("div",Zd,W(w.title||w.id),1),w.title?(k(),C("div",Qd,W(w.id),1)):te("",!0),d("div",Jd,[d("span",Yd,W(w.requestCount)+" requests",1),w.createdAt?(k(),C("span",Xd,W(Ie(rr)(w.createdAt)),1)):te("",!0),w.updatedAt?(k(),C("span",eh,"updated "+W(Ie(rr)(w.updatedAt)),1)):te("",!0),(B=w.children)!=null&&B.length?(k(),C("span",th,W(w.children.length)+" children",1)):te("",!0)])])]),d("div",{class:"session-card-actions",onClick:H[2]||(H[2]=qr(()=>{},["stop"]))},[d("div",sh,[d("button",{class:"session-more-btn","aria-label":"More options","aria-expanded":c.value===w.id,onClick:q=>D(w.id)},"⋮",8,nh),Fe(d("div",rh,[(be=w.children)!=null&&be.length?(k(),C("button",{key:0,class:"dropdown-item",onClick:q=>T(w.id)},[(k(),C("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",class:Re(["subsession-arrow",{rotated:f.value.has(w.id)}])},[...H[11]||(H[11]=[d("path",{d:"m6 9 6 6 6-6"},null,-1)])],2)),H[12]||(H[12]=le(" subsessions ",-1))],8,oh)):te("",!0),d("button",{class:"dropdown-item danger",onClick:q=>F(w.id)},[...H[13]||(H[13]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M3 6h18M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})],-1),le(" Delete ",-1)])],8,ih)],512),[[Xe,c.value===w.id]])])])])],40,zd),(ie=w.children)!=null&&ie.length&&f.value.has(w.id)?(k(),C("div",lh,[(k(!0),C(Y,null,Ae(w.children,q=>(k(),C("div",{key:q.id,class:"session-card card card-interactive child-card",tabindex:"0",role:"button","aria-label":`View session ${q.title||q.id}`,onClick:ne=>Ie(s).push(`/session/${q.id}`),onKeydown:Ws(ne=>Ie(s).push(`/session/${q.id}`),["enter"])},[d("div",ch,W(q.title||q.id),1),q.title?(k(),C("div",uh,W(q.id),1)):te("",!0)],40,ah))),128))])):te("",!0)])}),128))])]))),128))]))],64))]))}}),dh=Be(fh,[["__scopeId","data-v-1cb29492"]]),hh=["innerHTML"],Bl=$e({__name:"ChangeSummary",props:{change:{}},setup(e){const t=e,s=z(()=>{var i;if(!((i=t.change)!=null&&i.delta))return[];const r=[],o=t.change.delta;if(o.sys){const{added:a,removed:l}=o.sys;(a.length>0||l.length>0)&&r.push(n("SYS","sys",a,l))}if(o.tool){const{added:a,removed:l}=o.tool;(a.length>0||l.length>0)&&r.push(n("TOOL","tool",a,l))}if(o.msgs&&o.msgs.length>0){const a=[],l=[];for(const u of o.msgs)a.push(...u.added||[]),l.push(...u.removed||[]);(a.length>0||l.length>0)&&r.push(n("MSG","msg",a,l))}return r});function n(r,o,i,a){let l=`<span class="cs-group"><span class="cs-label ${o}">${r}</span>`;const u={};for(const f of i){const h=f.type||"other";u[h]=u[h]||{added:0,removed:0},u[h].added++}for(const f of a){const h=f.type||"other";u[h]=u[h]||{added:0,removed:0},u[h].removed++}const c=Object.keys(u);if(c.length>0){l+='<span class="cs-types">';for(const f of c){const h=u[f];l+=`<span class="cs-type">${f.toUpperCase()}`,h.added>0&&(l+=`<span class="cs-plus">+${h.added}</span>`),h.removed>0&&(l+=`<span class="cs-minus">-${h.removed}</span>`),l+="</span>"}l+="</span>"}return l+="</span>",l}return(r,o)=>s.value.length>0?(k(),C("span",{key:0,innerHTML:s.value.join("")},null,8,hh)):te("",!0)}}),ph={class:"metadata-card card"},gh={class:"metadata-header"},mh={class:"metadata-body"},vh={class:"stat-section-title"},bh={key:0,class:"stat-row-inline"},yh={class:"stat-key"},kh={key:1,class:"stat-val"},_h={key:1,class:"stat-grid"},wh={class:"stat-key"},xh={key:1,class:"stat-val"},Sh=$e({__name:"MetadataCard",props:{title:{},sections:{}},setup(e){return(t,s)=>{const n=jr("router-link");return k(),C("div",ph,[d("div",gh,W(e.title),1),d("div",mh,[vo(t.$slots,"before-sections",{},void 0),(k(!0),C(Y,null,Ae(e.sections,r=>(k(),C("div",{key:r.title,class:"stat-section"},[d("div",vh,W(r.title),1),r.layout==="inline"?(k(),C("div",bh,[(k(!0),C(Y,null,Ae(r.items,o=>(k(),C("span",{key:o.key,class:Re(["stat-item",o.modifier])},[d("span",yh,W(o.key),1),o.link?(k(),ge(n,{key:0,class:"stat-val stat-link",to:o.link},{default:ys(()=>[le(W(o.value),1)]),_:2},1032,["to"])):(k(),C("span",kh,W(o.value),1))],2))),128))])):(k(),C("div",_h,[(k(!0),C(Y,null,Ae(r.items,o=>(k(),C("span",{key:o.key,class:Re(["stat-item",o.modifier])},[d("span",wh,W(o.key),1),o.link?(k(),ge(n,{key:0,class:"stat-val stat-link",to:o.link},{default:ys(()=>[le(W(o.value),1)]),_:2},1032,["to"])):(k(),C("span",xh,W(o.value),1))],2))),128))]))]))),128)),vo(t.$slots,"after-sections",{},void 0)])])}}}),jl=Be(Sh,[["__scopeId","data-v-3c80789b"]]),Rh={class:"container"},Th={key:0,class:"loading"},Ch={key:1,class:"error-banner"},Ah={class:"page-title"},$h={key:0,class:"subtitle"},Eh={class:"count"},Ih={class:"timeline-controls"},Oh={class:"sort-label"},Ph={class:"timeline"},Mh=["aria-label","onClick","onKeydown"],Nh={class:"timeline-card-header"},Dh={class:"left"},Lh={class:"req-num"},Bh=["title"],jh={class:"url"},Hh={class:"right"},Fh={key:0,class:"time-badge gap"},Uh={class:"time-badge dur"},Vh={key:1,class:"time-badge model"},qh={key:2,class:"time-badge provider"},zh=$e({__name:"TimelineView",props:{sessionId:{}},setup(e){const t=e,s=Kr(),n=re(!0),r=re(""),o=re([]),i=re({}),a=re(null),l=re({}),u=re("time_asc"),c=z(()=>l.value.title||t.sessionId),f=z(()=>l.value.title?t.sessionId:""),h=z(()=>{var w,B;const I=(B=(w=a.value)==null?void 0:w.tokenUsage)==null?void 0:B.cacheHitRate;return I!=null?`${(I*100).toFixed(1)}%`:"0%"}),g=z(()=>(i.value.changes||[]).filter(w=>w.isUserCall).length),v=z(()=>(i.value.changes||[]).filter(w=>!w.isUserCall).length),y=z(()=>{if(!a.value)return[];const I=[];if(a.value.tokenUsage&&I.push({title:"Token Usage",layout:"inline",items:[{key:"Input (miss)",value:tt(a.value.tokenUsage.inputMissTokens)},{key:"Input (hit)",value:tt(a.value.tokenUsage.inputHitTokens)},{key:"Output",value:tt(a.value.tokenUsage.outputTokens)},{key:"Total",value:tt(a.value.tokenUsage.totalTokens),modifier:"highlight"},{key:"Hit Rate",value:h.value}]}),a.value.durationStats){const w=[{key:"Wall Time",value:us(a.value.durationStats.wallTime)},{key:"Request Time",value:us(a.value.durationStats.totalRequestDuration)}];a.value.latencyStats&&a.value.latencyStats.streamRequestCount>0&&w.push({key:"TTFT",value:`${cs(a.value.latencyStats.avgTTFT)} / ${cs(a.value.latencyStats.maxTTFT)}`},{key:"TPOT",value:`${cs(a.value.latencyStats.avgTPOT)} / ${cs(a.value.latencyStats.maxTPOT)}`}),I.push({title:"Time Usage",layout:"inline",items:w})}return I.push({title:"Requests",layout:"inline",items:[{key:"User",value:tt(g.value)},{key:"Agent",value:tt(v.value)},{key:"Total",value:tt(g.value+v.value),modifier:"highlight"}]}),a.value.subSessions&&a.value.subSessions.length>0&&I.push({title:"Sub Sessions",layout:"inline",items:a.value.subSessions.map(w=>({key:"Session",value:w,link:`/session/${w}`}))}),a.value.parentSession&&I.push({title:"Parent Session",layout:"inline",items:[{key:"Session",value:a.value.parentSession,link:`/session/${a.value.parentSession}`}]}),I}),x=z(()=>{const I=[...o.value],w=i.value.changes||[];return u.value==="time_asc"?I.sort((B,be)=>B.id-be.id):u.value==="time_desc"?I.sort((B,be)=>be.id-B.id):u.value==="duration_asc"||u.value==="duration_desc"?I.sort((B,be)=>{const ie=M(B),q=M(be);return u.value==="duration_asc"?ie-q:q-ie}):(u.value==="gap_asc"||u.value==="gap_desc")&&I.sort((B,be)=>{const ie=$(B,w),q=$(be,w);return ie===null&&q===null?0:ie===null?1:q===null?-1:u.value==="gap_asc"?ie-q:q-ie}),I});function M(I){return!I.requestAt||!I.responseAt?0:new Date(I.responseAt).getTime()-new Date(I.requestAt).getTime()}function $(I,w){const B=w.find(be=>be.requestId===I.id);return(B==null?void 0:B.interRequestDuration)??null}function D(I){return us(M(I))}function T(I){return(i.value.changes||[]).find(B=>B.requestId===I)||null}function F(I){var w;return((w=T(I))==null?void 0:w.interRequestDuration)??null}function ee(I){const w=(i.value.recordMeta||[]).find(B=>B.id===I);return(w==null?void 0:w.model)||null}function U(I){const w=T(I);return w!=null&&w.isUserCall?"user":"agent"}function ue(I){const w=T(I);return w!=null&&w.isUserCall?"USER":"AGENT"}function oe(I){const w=T(I);return w!=null&&w.isUserCall?"Direct human request":"AI automatic continuation"}function Z(I){var w,B,be;try{return(w=I.request)!=null&&w.url?new URL(I.request.url).host:((B=I.request)==null?void 0:B.url)||""}catch{return((be=I.request)==null?void 0:be.url)||""}}async function H(){n.value=!0,r.value="";try{const[I,w,B]=await Promise.all([yt(`sessions/${encodeURIComponent(t.sessionId)}`),yt(`sessions/${encodeURIComponent(t.sessionId)}/timeline`),yt(`sessions/${encodeURIComponent(t.sessionId)}/metadata`)]);o.value=I.records||[],i.value=w,a.value=B,l.value=I.session||{}}catch(I){r.value=`Failed to load session: ${Pe(I.message)}`}finally{n.value=!1}}return Vt(H),(I,w)=>(k(),C("div",Rh,[n.value?(k(),C("div",Th,[...w[1]||(w[1]=[d("div",{class:"spinner"},null,-1),le("Loading timeline...",-1)])])):r.value?(k(),C("div",Ch,W(r.value),1)):(k(),C(Y,{key:2},[d("div",Ah,[le(W(c.value)+" ",1),f.value?(k(),C("span",$h,W(f.value),1)):te("",!0),d("span",Eh,W(o.value.length)+" requests",1)]),a.value?(k(),ge(jl,{key:0,title:"Session Statistics",sections:y.value},null,8,["sections"])):te("",!0),d("div",Ih,[d("label",Oh,[w[3]||(w[3]=d("span",{class:"sort-label-text"},"Sort:",-1)),Fe(d("select",{class:"sort-select","aria-label":"Sort timeline","onUpdate:modelValue":w[0]||(w[0]=B=>u.value=B)},[...w[2]||(w[2]=[jc('<option value="time_asc" data-v-a8f75860>Time (oldest)</option><option value="time_desc" data-v-a8f75860>Time (newest)</option><option value="duration_asc" data-v-a8f75860>Duration (shortest)</option><option value="duration_desc" data-v-a8f75860>Duration (longest)</option><option value="gap_asc" data-v-a8f75860>Gap (shortest)</option><option value="gap_desc" data-v-a8f75860>Gap (longest)</option>',6)])],512),[[xl,u.value]])])]),d("div",Ph,[(k(!0),C(Y,null,Ae(x.value,B=>(k(),C("div",{key:B.id,class:"timeline-item"},[d("div",{class:"timeline-card card card-interactive",tabindex:"0",role:"button","aria-label":`View request #${B.id} details`,onClick:be=>Ie(s).push(`/session/${e.sessionId}/record/${B.id}`),onKeydown:Ws(be=>Ie(s).push(`/session/${e.sessionId}/record/${B.id}`),["enter"])},[d("div",Nh,[d("div",Dh,[d("span",Lh,"#"+W(B.id),1),d("span",{class:Re(["call-type",U(B.id)]),title:oe(B.id)},W(ue(B.id)),11,Bh),d("span",jh,W(Z(B)),1),T(B.id)?(k(),ge(Bl,{key:0,change:T(B.id)},null,8,["change"])):te("",!0)]),d("div",Hh,[F(B.id)!=null?(k(),C("span",Fh,"gap "+W(Ie(us)(F(B.id))),1)):te("",!0),d("span",Uh,"dur "+W(D(B)),1),ee(B.id)?(k(),C("span",Vh,W(ee(B.id)),1)):te("",!0),B.provider?(k(),C("span",qh,W(B.provider),1)):te("",!0)])])],40,Mh)]))),128))])],64))]))}}),Gh=Be(zh,[["__scopeId","data-v-a8f75860"]]),Kh={text:{tag:"TEXT",toggle:!0,renderMeta:null,getRaw:e=>e.text||"",renderRaw:null,renderRendered:null},thinking:{tag:"THINKING",toggle:!0,renderMeta:null,getRaw:e=>e.thinking||"",renderRaw:null,renderRendered:null},td:{tag:"TD",toggle:!0,renderMeta:e=>`<span class="tool-meta-name">${Pe(e.name||"")}</span>`,getRaw:e=>{const t={name:e.name,description:e.description};return e.parameters&&(t.parameters=e.parameters),JSON.stringify(t,null,2)},renderRaw:e=>Pe(e.description||""),renderRendered:null},tc:{tag:"TC",toggle:!0,renderMeta:e=>`<span class="tool-meta-name">${Pe(e.name||"")}</span>`,getRaw:e=>e.arguments||"",renderRaw:null,renderRendered:null},tr:{tag:"TR",toggle:!0,renderMeta:e=>`<span class="tool-meta-id">Tool result: ${Pe(e.toolCallId||"")}</span>`,getRaw:e=>e.content||"",renderRaw:null,renderRendered:null},image:{tag:"IMAGE",toggle:!1,renderMeta:null,getRaw:null,renderRaw:()=>'<span class="content-muted">[image]</span>',renderRendered:null},json:{tag:"JSON",toggle:!1,renderMeta:null,getRaw:e=>JSON.stringify(e.data,null,2),renderRaw:null,renderRendered:null},xml:{tag:"XML",toggle:!1,renderMeta:null,getRaw:e=>e.data||"",renderRaw:null,renderRendered:null},status:{tag:"STATUS",toggle:!1,renderMeta:null,getRaw:e=>e.text||"",renderRaw:e=>Pe(e.text||""),renderRendered:null}};function Hl(e){return(JSON.stringify(e,null,2)||String(e)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+]?\d+)?)/g,o=>{let i="json-number";if(/^"/.test(o)){if(/:$/.test(o)){i="json-key";const a=o.slice(0,-1);return`<span class="${i}">${a}</span>:`}i="json-string"}else/true/.test(o)?i="json-bool json-true":/false/.test(o)?i="json-bool json-false":/null/.test(o)&&(i="json-null");return`<span class="${i}">${o}</span>`}).split(`
|
|
26
|
+
`).map((o,i)=>`<div class="json-line"><span class="json-num">${i+1}</span>${o}</div>`).join("")}function Wh(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").split(`
|
|
27
|
+
`).map((n,r)=>`<div class="xml-line"><span class="xml-num">${r+1}</span>${n}</div>`).join("")}function Zh(e){if(!e)return"";if(e=e.trim(),e.startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]"))try{return Hl(JSON.parse(e))}catch{}return e.startsWith("<")&&e.includes(">")?Wh(e):Pe(e)}function Wr(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ss=Wr();function Fl(e){ss=e}var Jt={exec:()=>null};function ce(e,t=""){let s=typeof e=="string"?e:e.source,n={replace:(r,o)=>{let i=typeof o=="string"?o:o.source;return i=i.replace(Ue.caret,"$1"),s=s.replace(r,i),n},getRegex:()=>new RegExp(s,t)};return n}var Qh=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Ue={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},Jh=/^(?:[ \t]*(?:\n|$))+/,Yh=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Xh=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,en=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ep=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Zr=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Ul=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Vl=ce(Ul).replace(/bull/g,Zr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),tp=ce(Ul).replace(/bull/g,Zr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Qr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,sp=/^[^\n]+/,Jr=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,np=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Jr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),rp=ce(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Zr).getRegex(),Vn="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Yr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,op=ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Yr).replace("tag",Vn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ql=ce(Qr).replace("hr",en).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Vn).getRegex(),ip=ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ql).getRegex(),Xr={blockquote:ip,code:Yh,def:np,fences:Xh,heading:ep,hr:en,html:op,lheading:Vl,list:rp,newline:Jh,paragraph:ql,table:Jt,text:sp},li=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",en).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Vn).getRegex(),lp={...Xr,lheading:tp,table:li,paragraph:ce(Qr).replace("hr",en).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",li).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Vn).getRegex()},ap={...Xr,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Yr).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Jt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(Qr).replace("hr",en).replace("heading",` *#{1,6} *[^
|
|
28
|
+
]`).replace("lheading",Vl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},cp=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,up=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,zl=/^( {2,}|\\)\n(?!\s*$)/,fp=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,xs=/[\p{P}\p{S}]/u,qn=/[\s\p{P}\p{S}]/u,eo=/[^\s\p{P}\p{S}]/u,dp=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,qn).getRegex(),Gl=/(?!~)[\p{P}\p{S}]/u,hp=/(?!~)[\s\p{P}\p{S}]/u,pp=/(?:[^\s\p{P}\p{S}]|~)/u,gp=ce(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Qh?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Kl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,mp=ce(Kl,"u").replace(/punct/g,xs).getRegex(),vp=ce(Kl,"u").replace(/punct/g,Gl).getRegex(),Wl="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",bp=ce(Wl,"gu").replace(/notPunctSpace/g,eo).replace(/punctSpace/g,qn).replace(/punct/g,xs).getRegex(),yp=ce(Wl,"gu").replace(/notPunctSpace/g,pp).replace(/punctSpace/g,hp).replace(/punct/g,Gl).getRegex(),kp=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,eo).replace(/punctSpace/g,qn).replace(/punct/g,xs).getRegex(),_p=ce(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,xs).getRegex(),wp="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",xp=ce(wp,"gu").replace(/notPunctSpace/g,eo).replace(/punctSpace/g,qn).replace(/punct/g,xs).getRegex(),Sp=ce(/\\(punct)/,"gu").replace(/punct/g,xs).getRegex(),Rp=ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),Tp=ce(Yr).replace("(?:-->|$)","-->").getRegex(),Cp=ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Tp).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),_n=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Ap=ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",_n).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Zl=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",_n).replace("ref",Jr).getRegex(),Ql=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",Jr).getRegex(),$p=ce("reflink|nolink(?!\\()","g").replace("reflink",Zl).replace("nolink",Ql).getRegex(),ai=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,to={_backpedal:Jt,anyPunctuation:Sp,autolink:Rp,blockSkip:gp,br:zl,code:up,del:Jt,delLDelim:Jt,delRDelim:Jt,emStrongLDelim:mp,emStrongRDelimAst:bp,emStrongRDelimUnd:kp,escape:cp,link:Ap,nolink:Ql,punctuation:dp,reflink:Zl,reflinkSearch:$p,tag:Cp,text:fp,url:Jt},Ep={...to,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",_n).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_n).getRegex()},wr={...to,emStrongRDelimAst:yp,emStrongLDelim:vp,delLDelim:_p,delRDelim:xp,url:ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ai).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ce(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ai).getRegex()},Ip={...wr,br:ce(zl).replace("{2,}","*").getRegex(),text:ce(wr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},on={normal:Xr,gfm:lp,pedantic:ap},$s={normal:to,gfm:wr,breaks:Ip,pedantic:Ep},Op={"&":"&","<":"<",">":">",'"':""","'":"'"},ci=e=>Op[e];function pt(e,t){if(t){if(Ue.escapeTest.test(e))return e.replace(Ue.escapeReplace,ci)}else if(Ue.escapeTestNoEncode.test(e))return e.replace(Ue.escapeReplaceNoEncode,ci);return e}function ui(e){try{e=encodeURI(e).replace(Ue.percentDecode,"%")}catch{return null}return e}function fi(e,t){var o;let s=e.replace(Ue.findPipe,(i,a,l)=>{let u=!1,c=a;for(;--c>=0&&l[c]==="\\";)u=!u;return u?"|":" |"}),n=s.split(Ue.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!((o=n.at(-1))!=null&&o.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(Ue.slashPipe,"|");return n}function Lt(e,t,s){let n=e.length;if(n===0)return"";let r=0;for(;r<n&&e.charAt(n-r-1)===t;)r++;return e.slice(0,n-r)}function di(e){let t=e.split(`
|
|
29
|
+
`),s=t.length-1;for(;s>=0&&Ue.blankLine.test(t[s]);)s--;return t.length-s<=2?e:t.slice(0,s+1).join(`
|
|
30
|
+
`)}function Pp(e,t){if(e.indexOf(t[1])===-1)return-1;let s=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])s++;else if(e[n]===t[1]&&(s--,s<0))return n;return s>0?-2:-1}function Mp(e,t=0){let s=t,n="";for(let r of e)if(r===" "){let o=4-s%4;n+=" ".repeat(o),s+=o}else n+=r,s++;return n}function hi(e,t,s,n,r){let o=t.href,i=t.title||null,a=e[1].replace(r.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:s,href:o,title:i,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,l}function Np(e,t,s){let n=e.match(s.other.indentCodeCompensation);if(n===null)return t;let r=n[1];return t.split(`
|
|
31
|
+
`).map(o=>{let i=o.match(s.other.beginningSpace);if(i===null)return o;let[a]=i;return a.length>=r.length?o.slice(r.length):o}).join(`
|
|
32
|
+
`)}var wn=class{constructor(e){ye(this,"options");ye(this,"rules");ye(this,"lexer");this.options=e||ss}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let s=this.options.pedantic?t[0]:di(t[0]),n=s.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:s,codeBlockStyle:"indented",text:n}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let s=t[0],n=Np(s,t[3]||"",this.rules);return{type:"code",raw:s,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let s=t[2].trim();if(this.rules.other.endingHash.test(s)){let n=Lt(s,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(s=n.trim())}return{type:"heading",raw:Lt(t[0],`
|
|
33
|
+
`),depth:t[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Lt(t[0],`
|
|
34
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let s=Lt(t[0],`
|
|
35
|
+
`).split(`
|
|
36
|
+
`),n="",r="",o=[];for(;s.length>0;){let i=!1,a=[],l;for(l=0;l<s.length;l++)if(this.rules.other.blockquoteStart.test(s[l]))a.push(s[l]),i=!0;else if(!i)a.push(s[l]);else break;s=s.slice(l);let u=a.join(`
|
|
37
|
+
`),c=u.replace(this.rules.other.blockquoteSetextReplace,`
|
|
38
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
39
|
+
${u}`:u,r=r?`${r}
|
|
40
|
+
${c}`:c;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,o,!0),this.lexer.state.top=f,s.length===0)break;let h=o.at(-1);if((h==null?void 0:h.type)==="code")break;if((h==null?void 0:h.type)==="blockquote"){let g=h,v=g.raw+`
|
|
41
|
+
`+s.join(`
|
|
42
|
+
`),y=this.blockquote(v);o[o.length-1]=y,n=n.substring(0,n.length-g.raw.length)+y.raw,r=r.substring(0,r.length-g.text.length)+y.text;break}else if((h==null?void 0:h.type)==="list"){let g=h,v=g.raw+`
|
|
43
|
+
`+s.join(`
|
|
44
|
+
`),y=this.list(v);o[o.length-1]=y,n=n.substring(0,n.length-h.raw.length)+y.raw,r=r.substring(0,r.length-g.raw.length)+y.raw,s=v.substring(o.at(-1).raw.length).split(`
|
|
45
|
+
`);continue}}return{type:"blockquote",raw:n,tokens:o,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let s=t[1].trim(),n=s.length>1,r={type:"list",raw:"",ordered:n,start:n?+s.slice(0,-1):"",loose:!1,items:[]};s=n?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=n?s:"[*+-]");let o=this.rules.other.listItemRegex(s),i=!1;for(;e;){let l=!1,u="",c="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let f=Mp(t[2].split(`
|
|
46
|
+
`,1)[0],t[1].length),h=e.split(`
|
|
47
|
+
`,1)[0],g=!f.trim(),v=0;if(this.options.pedantic?(v=2,c=f.trimStart()):g?v=t[1].length+1:(v=f.search(this.rules.other.nonSpaceChar),v=v>4?1:v,c=f.slice(v),v+=t[1].length),g&&this.rules.other.blankLine.test(h)&&(u+=h+`
|
|
48
|
+
`,e=e.substring(h.length+1),l=!0),!l){let y=this.rules.other.nextBulletRegex(v),x=this.rules.other.hrRegex(v),M=this.rules.other.fencesBeginRegex(v),$=this.rules.other.headingBeginRegex(v),D=this.rules.other.htmlBeginRegex(v),T=this.rules.other.blockquoteBeginRegex(v);for(;e;){let F=e.split(`
|
|
49
|
+
`,1)[0],ee;if(h=F,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),ee=h):ee=h.replace(this.rules.other.tabCharGlobal," "),M.test(h)||$.test(h)||D.test(h)||T.test(h)||y.test(h)||x.test(h))break;if(ee.search(this.rules.other.nonSpaceChar)>=v||!h.trim())c+=`
|
|
50
|
+
`+ee.slice(v);else{if(g||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||M.test(f)||$.test(f)||x.test(f))break;c+=`
|
|
51
|
+
`+h}g=!h.trim(),u+=F+`
|
|
52
|
+
`,e=e.substring(F.length+1),f=ee.slice(v)}}r.loose||(i?r.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(i=!0)),r.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),r.raw+=u}let a=r.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let l of r.items){this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]);let u=l.tokens[0];if(l.task&&((u==null?void 0:u.type)==="text"||(u==null?void 0:u.type)==="paragraph")){l.text=l.text.replace(this.rules.other.listReplaceTask,""),u.raw=u.raw.replace(this.rules.other.listReplaceTask,""),u.text=u.text.replace(this.rules.other.listReplaceTask,"");for(let f=this.lexer.inlineQueue.length-1;f>=0;f--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[f].src)){this.lexer.inlineQueue[f].src=this.lexer.inlineQueue[f].src.replace(this.rules.other.listReplaceTask,"");break}let c=this.rules.other.listTaskCheckbox.exec(l.raw);if(c){let f={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};l.checked=f.checked,r.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=f.raw+l.tokens[0].raw,l.tokens[0].text=f.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(f)):l.tokens.unshift({type:"paragraph",raw:f.raw,text:f.raw,tokens:[f]}):l.tokens.unshift(f)}}else l.task&&(l.task=!1);if(!r.loose){let c=l.tokens.filter(h=>h.type==="space"),f=c.length>0&&c.some(h=>this.rules.other.anyLine.test(h.raw));r.loose=f}}if(r.loose)for(let l of r.items){l.loose=!0;for(let u of l.tokens)u.type==="text"&&(u.type="paragraph")}return r}}html(e){let t=this.rules.block.html.exec(e);if(t){let s=di(t[0]);return{type:"html",block:!0,raw:s,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:s}}}def(e){let t=this.rules.block.def.exec(e);if(t){let s=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:s,raw:Lt(t[0],`
|
|
53
|
+
`),href:n,title:r}}}table(e){var i;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let s=fi(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=(i=t[3])!=null&&i.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
54
|
+
`):[],o={type:"table",raw:Lt(t[0],`
|
|
55
|
+
`),header:[],align:[],rows:[]};if(s.length===n.length){for(let a of n)this.rules.other.tableAlignRight.test(a)?o.align.push("right"):this.rules.other.tableAlignCenter.test(a)?o.align.push("center"):this.rules.other.tableAlignLeft.test(a)?o.align.push("left"):o.align.push(null);for(let a=0;a<s.length;a++)o.header.push({text:s[a],tokens:this.lexer.inline(s[a]),header:!0,align:o.align[a]});for(let a of r)o.rows.push(fi(a,o.header.length).map((l,u)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:o.align[u]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let s=t[1].trim();return{type:"heading",raw:Lt(t[0],`
|
|
56
|
+
`),depth:t[2].charAt(0)==="="?1:2,text:s,tokens:this.lexer.inline(s)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let s=t[1].charAt(t[1].length-1)===`
|
|
57
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:s,tokens:this.lexer.inline(s)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let s=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(s)){if(!this.rules.other.endAngleBracket.test(s))return;let o=Lt(s.slice(0,-1),"\\");if((s.length-o.length)%2===0)return}else{let o=Pp(t[2],"()");if(o===-2)return;if(o>-1){let i=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(n);o&&(n=o[1],r=o[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(s)?n=n.slice(1):n=n.slice(1,-1)),hi(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let s;if((s=this.rules.inline.reflink.exec(e))||(s=this.rules.inline.nolink.exec(e))){let n=(s[2]||s[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=t[n.toLowerCase()];if(!r){let o=s[0].charAt(0);return{type:"text",raw:o,text:o}}return hi(s,r,s[0],this.lexer,this.rules)}}emStrong(e,t,s=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&s.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!s||this.rules.inline.punctuation.exec(s))){let r=[...n[0]].length-1,o,i,a=r,l=0,u=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+r);(n=u.exec(t))!==null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(i=[...o].length,n[3]||n[4]){a+=i;continue}else if((n[5]||n[6])&&r%3&&!((r+i)%3)){l+=i;continue}if(a-=i,a>0)continue;i=Math.min(i,i+a+l);let c=[...n[0]][0].length,f=e.slice(0,r+n.index+c+i);if(Math.min(r,i)%2){let g=f.slice(1,-1);return{type:"em",raw:f,text:g,tokens:this.lexer.inlineTokens(g)}}let h=f.slice(2,-2);return{type:"strong",raw:f,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let s=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(s),r=this.rules.other.startingSpaceChar.test(s)&&this.rules.other.endingSpaceChar.test(s);return n&&r&&(s=s.substring(1,s.length-1)),{type:"codespan",raw:t[0],text:s}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,s=""){let n=this.rules.inline.delLDelim.exec(e);if(n&&(!n[1]||!s||this.rules.inline.punctuation.exec(s))){let r=[...n[0]].length-1,o,i,a=r,l=this.rules.inline.delRDelim;for(l.lastIndex=0,t=t.slice(-1*e.length+r);(n=l.exec(t))!==null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o||(i=[...o].length,i!==r))continue;if(n[3]||n[4]){a+=i;continue}if(a-=i,a>0)continue;i=Math.min(i,i+a);let u=[...n[0]][0].length,c=e.slice(0,r+n.index+u+i),f=c.slice(r,-r);return{type:"del",raw:c,text:f,tokens:this.lexer.inlineTokens(f)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let s,n;return t[2]==="@"?(s=t[1],n="mailto:"+s):(s=t[1],n=s),{type:"link",raw:t[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}url(e){var s;let t;if(t=this.rules.inline.url.exec(e)){let n,r;if(t[2]==="@")n=t[0],r="mailto:"+n;else{let o;do o=t[0],t[0]=((s=this.rules.inline._backpedal.exec(t[0]))==null?void 0:s[0])??"";while(o!==t[0]);n=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let s=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:s}}}},nt=class xr{constructor(t){ye(this,"tokens");ye(this,"options");ye(this,"state");ye(this,"inlineQueue");ye(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ss,this.options.tokenizer=this.options.tokenizer||new wn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let s={other:Ue,block:on.normal,inline:$s.normal};this.options.pedantic?(s.block=on.pedantic,s.inline=$s.pedantic):this.options.gfm&&(s.block=on.gfm,this.options.breaks?s.inline=$s.breaks:s.inline=$s.gfm),this.tokenizer.rules=s}static get rules(){return{block:on,inline:$s}}static lex(t,s){return new xr(s).lex(t)}static lexInline(t,s){return new xr(s).inlineTokens(t)}lex(t){t=t.replace(Ue.carriageReturn,`
|
|
58
|
+
`),this.blockTokens(t,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){let n=this.inlineQueue[s];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,s=[],n=!1){var o,i,a;this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Ue.tabCharGlobal," ").replace(Ue.spaceLine,""));let r=1/0;for(;t;){if(t.length<r)r=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let l;if((i=(o=this.options.extensions)==null?void 0:o.block)!=null&&i.some(c=>(l=c.call({lexer:this},t,s))?(t=t.substring(l.raw.length),s.push(l),!0):!1))continue;if(l=this.tokenizer.space(t)){t=t.substring(l.raw.length);let c=s.at(-1);l.raw.length===1&&c!==void 0?c.raw+=`
|
|
59
|
+
`:s.push(l);continue}if(l=this.tokenizer.code(t)){t=t.substring(l.raw.length);let c=s.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
60
|
+
`)?"":`
|
|
61
|
+
`)+l.raw,c.text+=`
|
|
62
|
+
`+l.text,this.inlineQueue.at(-1).src=c.text):s.push(l);continue}if(l=this.tokenizer.fences(t)){t=t.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.heading(t)){t=t.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.hr(t)){t=t.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.blockquote(t)){t=t.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.list(t)){t=t.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.html(t)){t=t.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.def(t)){t=t.substring(l.raw.length);let c=s.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
63
|
+
`)?"":`
|
|
64
|
+
`)+l.raw,c.text+=`
|
|
65
|
+
`+l.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},s.push(l));continue}if(l=this.tokenizer.table(t)){t=t.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.lheading(t)){t=t.substring(l.raw.length),s.push(l);continue}let u=t;if((a=this.options.extensions)!=null&&a.startBlock){let c=1/0,f=t.slice(1),h;this.options.extensions.startBlock.forEach(g=>{h=g.call({lexer:this},f),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(u=t.substring(0,c+1))}if(this.state.top&&(l=this.tokenizer.paragraph(u))){let c=s.at(-1);n&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith(`
|
|
66
|
+
`)?"":`
|
|
67
|
+
`)+l.raw,c.text+=`
|
|
68
|
+
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):s.push(l),n=u.length!==t.length,t=t.substring(l.raw.length);continue}if(l=this.tokenizer.text(t)){t=t.substring(l.raw.length);let c=s.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
69
|
+
`)?"":`
|
|
70
|
+
`)+l.raw,c.text+=`
|
|
71
|
+
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):s.push(l);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,s}inline(t,s=[]){return this.inlineQueue.push({src:t,tokens:s}),s}inlineTokens(t,s=[]){var u,c,f,h,g;this.tokenizer.lexer=this;let n=t,r=null;if(this.tokens.links){let v=Object.keys(this.tokens.links);if(v.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)v.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)o=r[2]?r[2].length:0,n=n.slice(0,r.index+o)+"["+"a".repeat(r[0].length-o-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=((c=(u=this.options.hooks)==null?void 0:u.emStrongMask)==null?void 0:c.call({lexer:this},n))??n;let i=!1,a="",l=1/0;for(;t;){if(t.length<l)l=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}i||(a=""),i=!1;let v;if((h=(f=this.options.extensions)==null?void 0:f.inline)!=null&&h.some(x=>(v=x.call({lexer:this},t,s))?(t=t.substring(v.raw.length),s.push(v),!0):!1))continue;if(v=this.tokenizer.escape(t)){t=t.substring(v.raw.length),s.push(v);continue}if(v=this.tokenizer.tag(t)){t=t.substring(v.raw.length),s.push(v);continue}if(v=this.tokenizer.link(t)){t=t.substring(v.raw.length),s.push(v);continue}if(v=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(v.raw.length);let x=s.at(-1);v.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=v.raw,x.text+=v.text):s.push(v);continue}if(v=this.tokenizer.emStrong(t,n,a)){t=t.substring(v.raw.length),s.push(v);continue}if(v=this.tokenizer.codespan(t)){t=t.substring(v.raw.length),s.push(v);continue}if(v=this.tokenizer.br(t)){t=t.substring(v.raw.length),s.push(v);continue}if(v=this.tokenizer.del(t,n,a)){t=t.substring(v.raw.length),s.push(v);continue}if(v=this.tokenizer.autolink(t)){t=t.substring(v.raw.length),s.push(v);continue}if(!this.state.inLink&&(v=this.tokenizer.url(t))){t=t.substring(v.raw.length),s.push(v);continue}let y=t;if((g=this.options.extensions)!=null&&g.startInline){let x=1/0,M=t.slice(1),$;this.options.extensions.startInline.forEach(D=>{$=D.call({lexer:this},M),typeof $=="number"&&$>=0&&(x=Math.min(x,$))}),x<1/0&&x>=0&&(y=t.substring(0,x+1))}if(v=this.tokenizer.inlineText(y)){t=t.substring(v.raw.length),v.raw.slice(-1)!=="_"&&(a=v.raw.slice(-1)),i=!0;let x=s.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=v.raw,x.text+=v.text):s.push(v);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return s}infiniteLoopError(t){let s="Infinite loop on byte: "+t;if(this.options.silent)console.error(s);else throw new Error(s)}},xn=class{constructor(e){ye(this,"options");ye(this,"parser");this.options=e||ss}space(e){return""}code({text:e,lang:t,escaped:s}){var o;let n=(o=(t||"").match(Ue.notSpaceStart))==null?void 0:o[0],r=e.replace(Ue.endingNewline,"")+`
|
|
72
|
+
`;return n?'<pre><code class="language-'+pt(n)+'">'+(s?r:pt(r,!0))+`</code></pre>
|
|
73
|
+
`:"<pre><code>"+(s?r:pt(r,!0))+`</code></pre>
|
|
74
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
75
|
+
${this.parser.parse(e)}</blockquote>
|
|
76
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
77
|
+
`}hr(e){return`<hr>
|
|
78
|
+
`}list(e){let t=e.ordered,s=e.start,n="";for(let i=0;i<e.items.length;i++){let a=e.items[i];n+=this.listitem(a)}let r=t?"ol":"ul",o=t&&s!==1?' start="'+s+'"':"";return"<"+r+o+`>
|
|
79
|
+
`+n+"</"+r+`>
|
|
80
|
+
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
81
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
82
|
+
`}table(e){let t="",s="";for(let r=0;r<e.header.length;r++)s+=this.tablecell(e.header[r]);t+=this.tablerow({text:s});let n="";for(let r=0;r<e.rows.length;r++){let o=e.rows[r];s="";for(let i=0;i<o.length;i++)s+=this.tablecell(o[i]);n+=this.tablerow({text:s})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
83
|
+
<thead>
|
|
84
|
+
`+t+`</thead>
|
|
85
|
+
`+n+`</table>
|
|
86
|
+
`}tablerow({text:e}){return`<tr>
|
|
87
|
+
${e}</tr>
|
|
88
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),s=e.header?"th":"td";return(e.align?`<${s} align="${e.align}">`:`<${s}>`)+t+`</${s}>
|
|
89
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${pt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:s}){let n=this.parser.parseInline(s),r=ui(e);if(r===null)return n;e=r;let o='<a href="'+e+'"';return t&&(o+=' title="'+pt(t)+'"'),o+=">"+n+"</a>",o}image({href:e,title:t,text:s,tokens:n}){n&&(s=this.parser.parseInline(n,this.parser.textRenderer));let r=ui(e);if(r===null)return pt(s);e=r;let o=`<img src="${e}" alt="${pt(s)}"`;return t&&(o+=` title="${pt(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:pt(e.text)}},so=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},rt=class Sr{constructor(t){ye(this,"options");ye(this,"renderer");ye(this,"textRenderer");this.options=t||ss,this.options.renderer=this.options.renderer||new xn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new so}static parse(t,s){return new Sr(s).parse(t)}static parseInline(t,s){return new Sr(s).parseInline(t)}parse(t){var n,r;this.renderer.parser=this;let s="";for(let o=0;o<t.length;o++){let i=t[o];if((r=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&r[i.type]){let l=i,u=this.options.extensions.renderers[l.type].call({parser:this},l);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){s+=u||"";continue}}let a=i;switch(a.type){case"space":{s+=this.renderer.space(a);break}case"hr":{s+=this.renderer.hr(a);break}case"heading":{s+=this.renderer.heading(a);break}case"code":{s+=this.renderer.code(a);break}case"table":{s+=this.renderer.table(a);break}case"blockquote":{s+=this.renderer.blockquote(a);break}case"list":{s+=this.renderer.list(a);break}case"checkbox":{s+=this.renderer.checkbox(a);break}case"html":{s+=this.renderer.html(a);break}case"def":{s+=this.renderer.def(a);break}case"paragraph":{s+=this.renderer.paragraph(a);break}case"text":{s+=this.renderer.text(a);break}default:{let l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return s}parseInline(t,s=this.renderer){var r,o;this.renderer.parser=this;let n="";for(let i=0;i<t.length;i++){let a=t[i];if((o=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&o[a.type]){let u=this.options.extensions.renderers[a.type].call({parser:this},a);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){n+=u||"";continue}}let l=a;switch(l.type){case"escape":{n+=s.text(l);break}case"html":{n+=s.html(l);break}case"link":{n+=s.link(l);break}case"image":{n+=s.image(l);break}case"checkbox":{n+=s.checkbox(l);break}case"strong":{n+=s.strong(l);break}case"em":{n+=s.em(l);break}case"codespan":{n+=s.codespan(l);break}case"br":{n+=s.br(l);break}case"del":{n+=s.del(l);break}case"text":{n+=s.text(l);break}default:{let u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}},ln,Ps=(ln=class{constructor(e){ye(this,"options");ye(this,"block");this.options=e||ss}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?nt.lex:nt.lexInline}provideParser(e=this.block){return e?rt.parse:rt.parseInline}},ye(ln,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ye(ln,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ln),Dp=class{constructor(...e){ye(this,"defaults",Wr());ye(this,"options",this.setOptions);ye(this,"parse",this.parseMarkdown(!0));ye(this,"parseInline",this.parseMarkdown(!1));ye(this,"Parser",rt);ye(this,"Renderer",xn);ye(this,"TextRenderer",so);ye(this,"Lexer",nt);ye(this,"Tokenizer",wn);ye(this,"Hooks",Ps);this.use(...e)}walkTokens(e,t){var n,r;let s=[];for(let o of e)switch(s=s.concat(t.call(this,o)),o.type){case"table":{let i=o;for(let a of i.header)s=s.concat(this.walkTokens(a.tokens,t));for(let a of i.rows)for(let l of a)s=s.concat(this.walkTokens(l.tokens,t));break}case"list":{let i=o;s=s.concat(this.walkTokens(i.items,t));break}default:{let i=o;(r=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&r[i.type]?this.defaults.extensions.childTokens[i.type].forEach(a=>{let l=i[a].flat(1/0);s=s.concat(this.walkTokens(l,t))}):i.tokens&&(s=s.concat(this.walkTokens(i.tokens,t)))}}return s}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(s=>{let n={...s};if(n.async=this.defaults.async||n.async||!1,s.extensions&&(s.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let o=t.renderers[r.name];o?t.renderers[r.name]=function(...i){let a=r.renderer.apply(this,i);return a===!1&&(a=o.apply(this,i)),a}:t.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=t[r.level];o?o.unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&(r.level==="block"?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:r.level==="inline"&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),n.extensions=t),s.renderer){let r=this.defaults.renderer||new xn(this.defaults);for(let o in s.renderer){if(!(o in r))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let i=o,a=s.renderer[i],l=r[i];r[i]=(...u)=>{let c=a.apply(r,u);return c===!1&&(c=l.apply(r,u)),c||""}}n.renderer=r}if(s.tokenizer){let r=this.defaults.tokenizer||new wn(this.defaults);for(let o in s.tokenizer){if(!(o in r))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let i=o,a=s.tokenizer[i],l=r[i];r[i]=(...u)=>{let c=a.apply(r,u);return c===!1&&(c=l.apply(r,u)),c}}n.tokenizer=r}if(s.hooks){let r=this.defaults.hooks||new Ps;for(let o in s.hooks){if(!(o in r))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let i=o,a=s.hooks[i],l=r[i];Ps.passThroughHooks.has(o)?r[i]=u=>{if(this.defaults.async&&Ps.passThroughHooksRespectAsync.has(o))return(async()=>{let f=await a.call(r,u);return l.call(r,f)})();let c=a.call(r,u);return l.call(r,c)}:r[i]=(...u)=>{if(this.defaults.async)return(async()=>{let f=await a.apply(r,u);return f===!1&&(f=await l.apply(r,u)),f})();let c=a.apply(r,u);return c===!1&&(c=l.apply(r,u)),c}}n.hooks=r}if(s.walkTokens){let r=this.defaults.walkTokens,o=s.walkTokens;n.walkTokens=function(i){let a=[];return a.push(o.call(this,i)),r&&(a=a.concat(r.call(this,i))),a}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return nt.lex(e,t??this.defaults)}parser(e,t){return rt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,s)=>{let n={...s},r={...this.defaults,...n},o=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&n.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=e),r.async)return(async()=>{let i=r.hooks?await r.hooks.preprocess(t):t,a=await(r.hooks?await r.hooks.provideLexer(e):e?nt.lex:nt.lexInline)(i,r),l=r.hooks?await r.hooks.processAllTokens(a):a;r.walkTokens&&await Promise.all(this.walkTokens(l,r.walkTokens));let u=await(r.hooks?await r.hooks.provideParser(e):e?rt.parse:rt.parseInline)(l,r);return r.hooks?await r.hooks.postprocess(u):u})().catch(o);try{r.hooks&&(t=r.hooks.preprocess(t));let i=(r.hooks?r.hooks.provideLexer(e):e?nt.lex:nt.lexInline)(t,r);r.hooks&&(i=r.hooks.processAllTokens(i)),r.walkTokens&&this.walkTokens(i,r.walkTokens);let a=(r.hooks?r.hooks.provideParser(e):e?rt.parse:rt.parseInline)(i,r);return r.hooks&&(a=r.hooks.postprocess(a)),a}catch(i){return o(i)}}}onError(e,t){return s=>{if(s.message+=`
|
|
90
|
+
Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+pt(s.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(s);throw s}}},ts=new Dp;function me(e,t){return ts.parse(e,t)}me.options=me.setOptions=function(e){return ts.setOptions(e),me.defaults=ts.defaults,Fl(me.defaults),me};me.getDefaults=Wr;me.defaults=ss;me.use=function(...e){return ts.use(...e),me.defaults=ts.defaults,Fl(me.defaults),me};me.walkTokens=function(e,t){return ts.walkTokens(e,t)};me.parseInline=ts.parseInline;me.Parser=rt;me.parser=rt.parse;me.Renderer=xn;me.TextRenderer=so;me.Lexer=nt;me.lexer=nt.lex;me.Tokenizer=wn;me.Hooks=Ps;me.parse=me;me.options;me.setOptions;me.use;me.walkTokens;me.parseInline;rt.parse;nt.lex;const Lp=["data-block-type"],Bp={class:"block-type-bar"},jp={class:"block-type-left"},Hp=["innerHTML"],Fp={class:"block-type-right"},Up=["data-mode"],Vp=["innerHTML"],qp=["innerHTML"],zp=["value"],Gp=$e({__name:"BlockRenderer",props:{block:{}},setup(e){const t=e,{showToast:s}=Un(),n=re("raw"),r=z(()=>Kh[t.block.type]||{tag:t.block.type.toUpperCase(),toggle:!1,renderMeta:null,getRaw:null,renderRaw:null,renderRendered:null}),o=z(()=>r.value.getRaw?r.value.getRaw(t.block):""),i=z(()=>r.value.renderRaw?r.value.renderRaw(t.block):o.value?Pe(o.value):""),a=z(()=>{if(r.value.renderRendered)return r.value.renderRendered(o.value);if(t.block.type==="text"||t.block.type==="thinking")return h(o.value);if(t.block.type==="tc"||t.block.type==="tr")return Zh(o.value);if(t.block.type==="td")try{const g=JSON.parse(o.value);let v="";return g.description&&(v+=`<div class="tool-def-desc">${Pe(g.description)}</div>`),g.parameters&&(v+=`<div class="tool-def-params">${Hl(g.parameters)}</div>`),v||Pe(o.value)}catch{return Pe(o.value)}return Pe(o.value)}),l=z(()=>!!(i.value||a.value||o.value)),u=z(()=>t.block.type==="json"?"json-lines":t.block.type==="xml"?"xml-lines":"");function c(){n.value=n.value==="raw"?"rendered":"raw"}function f(){const g=o.value;navigator.clipboard.writeText(g).then(()=>{s("Copied!","success",void 0,void 0,2e3)}).catch(v=>{console.error("Copy failed:",v)})}function h(g){if(!g)return"";try{return me.parse(g,{breaks:!0,gfm:!0})}catch{return Pe(g)}}return(g,v)=>(k(),C("div",{class:"block-item","data-block-type":e.block.type},[d("div",Bp,[d("div",jp,[d("span",{class:Re(["block-type-tag",e.block.type])},W(r.value.tag),3),r.value.renderMeta?(k(),C("span",{key:0,innerHTML:r.value.renderMeta(e.block)},null,8,Hp)):te("",!0)]),d("div",Fp,[r.value.toggle?(k(),C("button",{key:0,class:Re(["toggle-btn",{active:n.value==="rendered"}]),"aria-label":"Toggle between rendered and raw view","data-mode":n.value,onClick:c},"</>",10,Up)):te("",!0)])]),l.value?(k(),C("div",{key:0,class:Re(["block-content",n.value,u.value])},[d("button",{class:"copy-btn","aria-label":"Copy this content",onClick:f},[...v[0]||(v[0]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[d("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),d("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})],-1)])]),n.value==="raw"?(k(),C("div",{key:0,innerHTML:i.value},null,8,Vp)):(k(),C("div",{key:1,innerHTML:a.value},null,8,qp))],2)):te("",!0),o.value?(k(),C("textarea",{key:1,class:"raw-content-store",style:{display:"none"},value:o.value},null,8,zp)):te("",!0)],8,Lp))}}),Ct=Be(Gp,[["__scopeId","data-v-0b5e0f57"]]),Kp={key:0,class:"empty-state"},Wp={class:"section-content expanded"},Zp={key:0,class:"change-card removed"},Qp={class:"change-card-body"},Jp={key:1,class:"change-card added"},Yp={class:"change-card-body"},Xp={class:"section-content expanded"},eg={key:0,class:"change-card added"},tg={class:"change-card-body"},sg={key:1,class:"change-card removed"},ng={class:"change-card-body"},rg={class:"section-content expanded"},og={key:0,class:"change-card removed"},ig={class:"change-card-body"},lg={key:1,class:"change-card added"},ag={class:"change-card-body"},cg=$e({__name:"ChangesView",props:{changeData:{}},setup(e){const t=e,s=Ut({sys:!0,tool:!0,msgs:!0});function n(h){s[h]=!s[h]}const r=z(()=>{var h;return(h=t.changeData)==null?void 0:h.delta}),o=z(()=>{var h,g;return((g=(h=r.value)==null?void 0:h.sys)==null?void 0:g.added)||[]}),i=z(()=>{var h,g;return((g=(h=r.value)==null?void 0:h.sys)==null?void 0:g.removed)||[]}),a=z(()=>{var h,g;return((g=(h=r.value)==null?void 0:h.tool)==null?void 0:g.added)||[]}),l=z(()=>{var h,g;return((g=(h=r.value)==null?void 0:h.tool)==null?void 0:g.removed)||[]}),u=z(()=>{var v;const h=((v=r.value)==null?void 0:v.msgs)||[],g=[];for(const y of h)y.added&&g.push(...y.added);return g}),c=z(()=>{var v;const h=((v=r.value)==null?void 0:v.msgs)||[],g=[];for(const y of h)y.removed&&g.push(...y.removed);return g}),f=z(()=>o.value.length>0||i.value.length>0||a.value.length>0||l.value.length>0||u.value.length>0||c.value.length>0);return(h,g)=>f.value?(k(),C(Y,{key:1},[o.value.length>0||i.value.length>0?(k(),C(Y,{key:0},[d("div",{class:Re(["section-title",{expanded:s.sys}]),onClick:g[0]||(g[0]=v=>n("sys"))},[...g[4]||(g[4]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),le(" SYSTEM PROMPT ",-1)])],2),Fe(d("div",Wp,[i.value.length>0?(k(),C("div",Zp,[g[5]||(g[5]=d("div",{class:"change-card-header"},[d("span",{class:"cat-tag sys"},"SYS"),d("span",{class:"action-tag del"},"-DEL")],-1)),d("div",Qp,[(k(!0),C(Y,null,Ae(i.value,(v,y)=>(k(),ge(Ct,{key:"sys-rem-"+y,block:v},null,8,["block"]))),128))])])):te("",!0),o.value.length>0?(k(),C("div",Jp,[g[6]||(g[6]=d("div",{class:"change-card-header"},[d("span",{class:"cat-tag sys"},"SYS"),d("span",{class:"action-tag new"},"+NEW")],-1)),d("div",Yp,[(k(!0),C(Y,null,Ae(o.value,(v,y)=>(k(),ge(Ct,{key:"sys-add-"+y,block:v},null,8,["block"]))),128))])])):te("",!0)],512),[[Xe,s.sys]])],64)):te("",!0),a.value.length>0||l.value.length>0?(k(),C(Y,{key:1},[d("div",{class:Re(["section-title",{expanded:s.tool}]),onClick:g[1]||(g[1]=v=>n("tool"))},[...g[7]||(g[7]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),le(" TOOL DEFINITIONS ",-1)])],2),Fe(d("div",Xp,[a.value.length>0?(k(),C("div",eg,[g[8]||(g[8]=d("div",{class:"change-card-header"},[d("span",{class:"cat-tag tool"},"TOOL"),d("span",{class:"action-tag new"},"+NEW")],-1)),d("div",tg,[(k(!0),C(Y,null,Ae(a.value,(v,y)=>(k(),ge(Ct,{key:"tool-add-"+y,block:v},null,8,["block"]))),128))])])):te("",!0),l.value.length>0?(k(),C("div",sg,[g[9]||(g[9]=d("div",{class:"change-card-header"},[d("span",{class:"cat-tag tool"},"TOOL"),d("span",{class:"action-tag del"},"-DEL")],-1)),d("div",ng,[(k(!0),C(Y,null,Ae(l.value,(v,y)=>(k(),ge(Ct,{key:"tool-rem-"+y,block:v},null,8,["block"]))),128))])])):te("",!0)],512),[[Xe,s.tool]])],64)):te("",!0),u.value.length>0||c.value.length>0?(k(),C(Y,{key:2},[d("div",{class:Re(["section-title",{expanded:s.msgs}]),onClick:g[2]||(g[2]=v=>n("msgs"))},[...g[10]||(g[10]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),le(" MESSAGES ",-1)])],2),Fe(d("div",rg,[c.value.length>0?(k(),C("div",og,[g[11]||(g[11]=d("div",{class:"change-card-header"},[d("span",{class:"cat-tag msg"},"MSG"),d("span",{class:"action-tag del"},"-DEL")],-1)),d("div",ig,[(k(!0),C(Y,null,Ae(c.value,(v,y)=>(k(),ge(Ct,{key:"msg-rem-"+y,block:v},null,8,["block"]))),128))])])):te("",!0),u.value.length>0?(k(),C("div",lg,[g[12]||(g[12]=d("div",{class:"change-card-header"},[d("span",{class:"cat-tag msg"},"MSG"),d("span",{class:"action-tag new"},"+NEW")],-1)),d("div",ag,[(k(!0),C(Y,null,Ae(u.value,(v,y)=>(k(),ge(Ct,{key:"msg-add-"+y,block:v},null,8,["block"]))),128))])])):te("",!0)],512),[[Xe,s.msgs]])],64)):te("",!0)],64)):(k(),C("div",Kp,[...g[3]||(g[3]=[d("p",null,"No change data for this request",-1)])]))}}),ug=Be(cg,[["__scopeId","data-v-33730ba0"]]),fg={key:0,class:"empty-state"},dg={class:"section-content expanded"},hg={class:"msg"},pg={class:"msg-body"},gg={class:"section-content expanded"},mg={class:"msg"},vg={class:"msg-header"},bg={class:"badge"},yg={class:"msg-body"},kg={class:"section-content expanded"},_g={class:"msg-list"},wg={class:"msg-header"},xg={class:"role-tag"},Sg={class:"msg-body"},Rg=$e({__name:"ConversationView",props:{parsed:{}},setup(e){const t=e,s=Ut({sys:!0,tool:!0,msgs:!0});function n(l){s[l]=!s[l]}const r=z(()=>{var l,u;return((u=(l=t.parsed)==null?void 0:l.sys)==null?void 0:u.blocks)||[]}),o=z(()=>{var u,c;return(((c=(u=t.parsed)==null?void 0:u.tool)==null?void 0:c.blocks)||[]).filter(f=>f.type==="td")}),i=z(()=>{var l;return((l=t.parsed)==null?void 0:l.msgs)||[]}),a=z(()=>r.value.length>0||o.value.length>0||i.value.length>0);return(l,u)=>a.value?(k(),C(Y,{key:1},[r.value.length>0?(k(),C(Y,{key:0},[d("div",{class:Re(["section-title",{expanded:s.sys}]),onClick:u[0]||(u[0]=c=>n("sys"))},[...u[4]||(u[4]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),le(" SYSTEM PROMPT ",-1)])],2),Fe(d("div",dg,[d("div",hg,[u[5]||(u[5]=d("div",{class:"msg-header"},[d("span",{class:"cat-tag sys"},"SYS")],-1)),d("div",pg,[(k(!0),C(Y,null,Ae(r.value,(c,f)=>(k(),ge(Ct,{key:"sys-"+f,block:c},null,8,["block"]))),128))])])],512),[[Xe,s.sys]])],64)):te("",!0),o.value.length>0?(k(),C(Y,{key:1},[d("div",{class:Re(["section-title",{expanded:s.tool}]),onClick:u[1]||(u[1]=c=>n("tool"))},[...u[6]||(u[6]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),le(" TOOL DEFINITIONS ",-1)])],2),Fe(d("div",gg,[d("div",mg,[d("div",vg,[u[7]||(u[7]=d("span",{class:"cat-tag tool"},"TOOL",-1)),d("span",bg,W(o.value.length)+" tools",1)]),d("div",yg,[(k(!0),C(Y,null,Ae(o.value,(c,f)=>(k(),ge(Ct,{key:"td-"+f,block:c},null,8,["block"]))),128))])])],512),[[Xe,s.tool]])],64)):te("",!0),i.value.length>0?(k(),C(Y,{key:2},[d("div",{class:Re(["section-title",{expanded:s.msgs}]),onClick:u[2]||(u[2]=c=>n("msgs"))},[...u[8]||(u[8]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),le(" MESSAGES ",-1)])],2),Fe(d("div",kg,[d("div",_g,[(k(!0),C(Y,null,Ae(i.value,(c,f)=>(k(),C("div",{key:"msg-"+f,class:"msg"},[d("div",wg,[u[9]||(u[9]=d("span",{class:"cat-tag msg"},"MSG",-1)),d("span",xg,W(c.role),1)]),d("div",Sg,[(k(!0),C(Y,null,Ae(c.blocks||[],(h,g)=>(k(),ge(Ct,{key:"msg-block-"+g,block:h},null,8,["block"]))),128))])]))),128))])],512),[[Xe,s.msgs]])],64)):te("",!0)],64)):(k(),C("div",fg,[...u[3]||(u[3]=[d("p",null,"No conversation data",-1)])]))}}),Tg=Be(Rg,[["__scopeId","data-v-7b569ee4"]]),Cg={class:"json-container"},Ag={class:"json-num"},$g=["innerHTML"],Eg=$e({__name:"JsonViewer",props:{data:{}},setup(e){const t=e,{showToast:s}=Un(),n=z(()=>(JSON.stringify(t.data,null,2)||String(t.data)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+]?\d+)?)/g,l=>{let u="json-number";if(/^"/.test(l)){if(/:$/.test(l)){u="json-key";const c=l.slice(0,-1);return`<span class="${u}">${c}</span>:`}u="json-string"}else/true/.test(l)?u="json-bool json-true":/false/.test(l)?u="json-bool json-false":/null/.test(l)&&(u="json-null");return`<span class="${u}">${l}</span>`}).split(`
|
|
91
|
+
`));function r(){const o=JSON.stringify(t.data,null,2);navigator.clipboard.writeText(o).then(()=>{s("Copied!","success",void 0,void 0,2e3)}).catch(i=>{console.error("Copy failed:",i)})}return(o,i)=>(k(),C("div",Cg,[d("button",{class:"copy-btn","aria-label":"Copy JSON content",onClick:r},[...i[0]||(i[0]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[d("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),d("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})],-1)])]),(k(!0),C(Y,null,Ae(n.value,(a,l)=>(k(),C("div",{key:l,class:"json-line"},[d("span",Ag,W(l+1),1),d("span",{innerHTML:a},null,8,$g)]))),128))]))}}),Sn=Be(Eg,[["__scopeId","data-v-ec5b7cf7"]]),Ig={class:"section-content expanded"},Og={class:"json-block"},Pg={class:"section-content expanded"},Mg={class:"json-block"},Ng=$e({__name:"RequestView",props:{record:{}},setup(e){const t=Ut({headers:!0,body:!0});function s(n){t[n]=!t[n]}return(n,r)=>{var o,i;return k(),C("div",null,[d("div",{class:Re(["section-title",{expanded:t.headers}]),onClick:r[0]||(r[0]=a=>s("headers"))},[...r[2]||(r[2]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),le(" REQUEST HEADERS ",-1)])],2),Fe(d("div",Ig,[d("div",Og,[Se(Sn,{data:((o=e.record.request)==null?void 0:o.headers)||{}},null,8,["data"])])],512),[[Xe,t.headers]]),d("div",{class:Re(["section-title",{expanded:t.body}]),onClick:r[1]||(r[1]=a=>s("body"))},[...r[3]||(r[3]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),le(" REQUEST BODY ",-1)])],2),Fe(d("div",Pg,[d("div",Mg,[Se(Sn,{data:((i=e.record.request)==null?void 0:i.body)||{}},null,8,["data"])])],512),[[Xe,t.body]])])}}}),Dg=Be(Ng,[["__scopeId","data-v-33c2a25e"]]),Lg={key:0,class:"empty-state"},Bg={class:"section-content expanded"},jg={class:"json-block"},Hg={class:"section-content expanded"},Fg={class:"json-block"},Ug=$e({__name:"ResponseView",props:{record:{}},setup(e){const t=Ut({headers:!0,body:!0});function s(n){t[n]=!t[n]}return(n,r)=>e.record.response?(k(),C(Y,{key:1},[d("div",{class:Re(["section-title",{expanded:t.headers}]),onClick:r[0]||(r[0]=o=>s("headers"))},[...r[3]||(r[3]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),le(" RESPONSE HEADERS ",-1)])],2),Fe(d("div",Bg,[d("div",jg,[Se(Sn,{data:e.record.response.headers||{}},null,8,["data"])])],512),[[Xe,t.headers]]),d("div",{class:Re(["section-title",{expanded:t.body}]),onClick:r[1]||(r[1]=o=>s("body"))},[...r[4]||(r[4]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),le(" RESPONSE BODY ",-1)])],2),Fe(d("div",Hg,[d("div",Fg,[Se(Sn,{data:e.record.response.body||{}},null,8,["data"])])],512),[[Xe,t.body]])],64)):(k(),C("div",Lg,[...r[2]||(r[2]=[d("p",null,"No response data",-1)])]))}}),Vg=Be(Ug,[["__scopeId","data-v-f86302b7"]]),qg={class:"container"},zg={key:0,class:"loading"},Gg={key:1,class:"error-banner"},Kg={class:"page-title"},Wg={key:0,class:"subtitle"},Zg={class:"count"},Qg={class:"stat-section"},Jg={class:"stat-row-inline"},Yg={class:"view-toggle"},Xg={class:"record-view-content"},em=$e({__name:"RecordView",props:{sessionId:{},recordId:{}},setup(e){const t=e,s=re(!0),n=re(""),r=re({}),o=re({}),i=re(null),a=re({}),l=re("changes"),u=z(()=>a.value.title||t.sessionId),c=z(()=>a.value.title?t.sessionId:""),f=z(()=>r.value.requestSentAt!=null&&r.value.firstTokenAt!=null),h=z(()=>{var T;return((T=i.value)==null?void 0:T.isUserCall)??!1}),g=z(()=>{var T;return((T=i.value)==null?void 0:T.interRequestDuration)??null}),v=z(()=>{if(!r.value.requestAt||!r.value.responseAt)return"-";const T=new Date(r.value.responseAt).getTime()-new Date(r.value.requestAt).getTime();return us(T)}),y=z(()=>{const T=o.value.usage;return T?(T.inputMissTokens||0)+(T.inputHitTokens||0)+(T.outputTokens||0):0}),x=z(()=>{const T=o.value.usage;if(!T)return"0%";const F=(T.inputMissTokens||0)+(T.inputHitTokens||0);return F===0?"0%":`${((T.inputHitTokens||0)/F*100).toFixed(1)}%`}),M=z(()=>{const T=r.value;if(T.requestSentAt==null||T.firstTokenAt==null||T.lastTokenAt==null)return null;const F=T.firstTokenAt-T.requestSentAt;let ee=null;const U=o.value.usage;return U&&U.outputTokens&&U.outputTokens>0&&(ee=(T.lastTokenAt-T.firstTokenAt)/U.outputTokens),{ttft:F,tpot:ee}}),$=z(()=>{var U,ue,oe;const T=[],F=[{key:"URL",value:((U=r.value.request)==null?void 0:U.url)||""},{key:"Method",value:((ue=r.value.request)==null?void 0:ue.method)||"GET"}];((oe=r.value.response)==null?void 0:oe.status)!=null&&F.push({key:"Status",value:String(r.value.response.status)}),F.push({key:"SSE",value:f.value?"true":"false"}),o.value.model&&F.push({key:"Model",value:o.value.model}),o.value.provider&&F.push({key:"Provider",value:o.value.provider}),F.push({key:"Type",value:h.value?"USER":"AGENT"}),T.push({title:"Request",layout:"inline",items:F}),o.value.usage&&T.push({title:"Token Usage",layout:"inline",items:[{key:"Input (miss)",value:tt(o.value.usage.inputMissTokens||0)},{key:"Input (hit)",value:tt(o.value.usage.inputHitTokens||0)},{key:"Output",value:tt(o.value.usage.outputTokens||0)},{key:"Total",value:tt(y.value),modifier:"highlight"},{key:"Hit Rate",value:x.value}]});const ee=[{key:"Request",value:ii(r.value.requestAt)},{key:"Response",value:ii(r.value.responseAt)}];return g.value!=null&&ee.push({key:"Gap",value:us(g.value)}),ee.push({key:"Duration",value:v.value}),M.value&&(ee.push({key:"TTFT",value:cs(M.value.ttft)}),M.value.tpot!=null&&ee.push({key:"TPOT",value:cs(M.value.tpot)})),T.push({title:"Time Usage",layout:"inline",items:ee}),T});async function D(){s.value=!0,n.value="";try{const[T,F,ee,U]=await Promise.all([yt(`sessions/${encodeURIComponent(t.sessionId)}/records/${t.recordId}`),yt(`sessions/${encodeURIComponent(t.sessionId)}/records/${t.recordId}/parsed`),yt(`sessions/${encodeURIComponent(t.sessionId)}/timeline`),yt(`sessions/${encodeURIComponent(t.sessionId)}`)]);r.value=T,o.value=F,a.value=U.session||{};const ue=ee.changes||[];i.value=ue.find(oe=>oe.requestId===T.id)||null}catch(T){n.value=`Failed to load record: ${Pe(T.message)}`}finally{s.value=!1}}return Vt(D),(T,F)=>{var ee;return k(),C("div",qg,[s.value?(k(),C("div",zg,[...F[4]||(F[4]=[d("div",{class:"spinner"},null,-1),le("Loading record...",-1)])])):n.value?(k(),C("div",Gg,W(n.value),1)):(k(),C(Y,{key:2},[d("div",Kg,[le(W(u.value)+" ",1),c.value?(k(),C("span",Wg,W(c.value),1)):te("",!0),d("span",Zg,"#"+W(e.recordId),1)]),Se(jl,{title:"Record Metadata",sections:$.value},cc({_:2},[(ee=i.value)!=null&&ee.delta?{name:"before-sections",fn:ys(()=>[d("div",Qg,[F[5]||(F[5]=d("div",{class:"stat-section-title"},"Changes",-1)),d("div",Jg,[Se(Bl,{change:i.value},null,8,["change"])])])]),key:"0"}:void 0]),1032,["sections"]),d("div",Yg,[d("button",{class:Re({active:l.value==="changes"}),onClick:F[0]||(F[0]=U=>l.value="changes")},"Changes",2),d("button",{class:Re({active:l.value==="conversation"}),onClick:F[1]||(F[1]=U=>l.value="conversation")},"Conversation",2),d("button",{class:Re({active:l.value==="request"}),onClick:F[2]||(F[2]=U=>l.value="request")},"Request",2),d("button",{class:Re({active:l.value==="response"}),onClick:F[3]||(F[3]=U=>l.value="response")},"Response",2)]),d("div",Xg,[l.value==="changes"?(k(),ge(ug,{key:0,"change-data":i.value},null,8,["change-data"])):l.value==="conversation"?(k(),ge(Tg,{key:1,parsed:o.value},null,8,["parsed"])):l.value==="request"?(k(),ge(Dg,{key:2,record:r.value},null,8,["record"])):l.value==="response"?(k(),ge(Vg,{key:3,record:r.value},null,8,["record"])):te("",!0)])],64))])}}}),tm=Be(em,[["__scopeId","data-v-5c1b1583"]]),sm=Nf({history:hf(),routes:[{path:"/",name:"sessions",component:dh},{path:"/session/:sessionId",name:"timeline",component:Gh,props:!0},{path:"/session/:sessionId/record/:recordId",name:"record",component:tm,props:!0},{path:"/:pathMatch(.*)*",redirect:"/"}]}),Jl=Ru(Td);Jl.use(sm);Jl.mount("#app");
|