adonisjs-server-stats 1.17.0 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -6
- package/dist/core/core/define-config-helpers.d.ts +1 -0
- package/dist/core/core/types-diagnostics.d.ts +2 -0
- package/dist/core/debug/types.d.ts +2 -0
- package/dist/core/types.d.ts +31 -3
- package/dist/react/{CacheSection-C-X2Tnca.js → CacheSection-B-lSIN8Q.js} +1 -1
- package/dist/react/{CacheTab-D55mfmeE.js → CacheTab-BN0QgPXz.js} +1 -1
- package/dist/react/{ConfigSection-C-HGnZfd.js → ConfigSection-u_TSfb9f.js} +1 -1
- package/dist/react/{ConfigTab-CNnsOXBh.js → ConfigTab-au26s-ON.js} +1 -1
- package/dist/react/{CustomPaneTab-D-267UVd.js → CustomPaneTab-qvMnh8ss.js} +1 -1
- package/dist/react/{EmailsSection-Bqw4DI4r.js → EmailsSection-HfEMeRex.js} +1 -1
- package/dist/react/{EmailsTab-CkHOhj2F.js → EmailsTab-BWwq-CxB.js} +1 -1
- package/dist/react/{EventsSection-CMeyjzVC.js → EventsSection-CA9b15dJ.js} +1 -1
- package/dist/react/{EventsTab-DgS2v1HX.js → EventsTab-CgSdHbKU.js} +1 -1
- package/dist/react/{InternalsContent-C9lIA92C.js → InternalsContent-CI7HvBtH.js} +51 -47
- package/dist/react/{InternalsSection-lOv_UcSV.js → InternalsSection-IEeWXJqP.js} +1 -1
- package/dist/react/{InternalsTab-BygoSorC.js → InternalsTab-CoVLHQbF.js} +1 -1
- package/dist/react/{JobsSection-oWH6pbrG.js → JobsSection-DgsS_VwU.js} +1 -1
- package/dist/react/{JobsTab-zdxX_as-.js → JobsTab-CzwLSRUC.js} +1 -1
- package/dist/react/{LogEntryRow-Cn8Ee_X0.js → LogEntryRow-VCCzwD1H.js} +1 -1
- package/dist/react/{LogsSection-XmiI2MMs.js → LogsSection-BujNn_cO.js} +2 -2
- package/dist/react/{LogsTab-ixusY4v7.js → LogsTab-BtD1h7DM.js} +2 -2
- package/dist/react/{OverviewSection-CvhObTLP.js → OverviewSection-B28em0gQ.js} +1 -1
- package/dist/react/{QueriesSection-BvledwBI.js → QueriesSection-B0tFn_Dc.js} +1 -1
- package/dist/react/{QueriesTab-smQQJvJa.js → QueriesTab-DJY7aavR.js} +1 -1
- package/dist/react/{RequestsSection-DKuYpViv.js → RequestsSection-DPmYM7tq.js} +2 -2
- package/dist/react/{RoutesSection-5RNVurQ6.js → RoutesSection-Ck-RcFVS.js} +1 -1
- package/dist/react/{RoutesTab-CpXNO-Rx.js → RoutesTab-Ch3PDLzo.js} +1 -1
- package/dist/react/{SplitPaneWrapper-DQvJnsuk.js → SplitPaneWrapper-BZ6VrBr-.js} +1 -1
- package/dist/react/{TimelineTab-LHQHHKkO.js → TimelineTab-_byxh2mJ.js} +2 -2
- package/dist/react/{index-LlFvooUN.js → index-De7nsWBN.js} +2 -2
- package/dist/react/index.js +1 -1
- package/dist/src/dashboard/dashboard_store.js +4 -12
- package/dist/src/dashboard/knex_factory.js +8 -0
- package/dist/src/dashboard/migrator.d.ts +7 -2
- package/dist/src/dashboard/migrator.js +140 -6
- package/dist/src/dashboard/migrator_tables.js +4 -0
- package/dist/src/dashboard/storage_stats.d.ts +5 -0
- package/dist/src/dashboard/storage_stats.js +15 -1
- package/dist/src/debug/types.d.ts +2 -0
- package/dist/src/define_config.js +2 -0
- package/dist/src/edge/client/dashboard.js +2 -2
- package/dist/src/edge/client/debug-panel-deferred.js +1 -1
- package/dist/src/edge/client-vue/dashboard.js +3 -3
- package/dist/src/edge/client-vue/debug-panel-deferred.js +2 -2
- package/dist/src/provider/dashboard_setup.js +14 -0
- package/dist/src/provider/diagnostics.d.ts +2 -0
- package/dist/src/provider/diagnostics.js +1 -0
- package/dist/src/provider/server_stats_provider.d.ts +1 -0
- package/dist/src/stubs/config.stub +4 -0
- package/dist/src/types.d.ts +31 -3
- package/dist/vue/{CacheSection-Bm0goqX6.js → CacheSection-z2TQRez9.js} +1 -1
- package/dist/vue/{ConfigSection-BrYslIMN.js → ConfigSection-CFEaig69.js} +1 -1
- package/dist/vue/{EmailsSection-B8N5vaWA.js → EmailsSection-CYohBo62.js} +1 -1
- package/dist/vue/{EventsSection-D2Y_xt0m.js → EventsSection-B_TuVrGj.js} +1 -1
- package/dist/vue/{InternalsSection-jhTCuK3j.js → InternalsSection-B1P2kNT-.js} +92 -84
- package/dist/vue/{InternalsTab-Z3c82glB.js → InternalsTab-CRI-IFTo.js} +155 -147
- package/dist/vue/{JobsSection-cEKqELLC.js → JobsSection-AjkEzyiv.js} +1 -1
- package/dist/vue/{LogsSection-C3H2c0S3.js → LogsSection-DZD0CCDi.js} +1 -1
- package/dist/vue/{OverviewSection-I2swuHDa.js → OverviewSection-BEc4Gktf.js} +1 -1
- package/dist/vue/{QueriesSection-CF1IE3SN.js → QueriesSection-BMImGXTn.js} +1 -1
- package/dist/vue/{RequestsSection-CuwgXzmU.js → RequestsSection-DOI2MUFX.js} +1 -1
- package/dist/vue/{RoutesSection-BhJCF7Rn.js → RoutesSection-C1sxt-AW.js} +1 -1
- package/dist/vue/{index-DUsImuIN.js → index-BfPAAjL5.js} +2 -2
- package/dist/vue/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";function vn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Re={},Zt=[],ht=()=>{},pl=()=>!1,Fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),gn=e=>e.startsWith("onUpdate:"),Ie=Object.assign,yn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},wr=Object.prototype.hasOwnProperty,Se=(e,t)=>wr.call(e,t),he=Array.isArray,es=e=>ys(e)==="[object Map]",vl=e=>ys(e)==="[object Set]",gl=e=>ys(e)==="[object Date]",fe=e=>typeof e=="function",Le=e=>typeof e=="string",ot=e=>typeof e=="symbol",Te=e=>e!==null&&typeof e=="object",yl=e=>(Te(e)||fe(e))&&fe(e.then)&&fe(e.catch),ml=Object.prototype.toString,ys=e=>ml.call(e),$r=e=>ys(e).slice(8,-1),bl=e=>ys(e)==="[object Object]",mn=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ms=vn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Is=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},kr=/-\w/g,tt=Is(e=>e.replace(kr,t=>t.slice(1).toUpperCase())),Sr=/\B([A-Z])/g,Mt=Is(e=>e.replace(Sr,"-$1").toLowerCase()),Ns=Is(e=>e.charAt(0).toUpperCase()+e.slice(1)),bn=Is(e=>e?`on${Ns(e)}`:""),Lt=(e,t)=>!Object.is(e,t),_n=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},_l=(e,t,s,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:s})},Cr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Tr=e=>{const t=Le(e)?Number(e):NaN;return isNaN(t)?e:t};let xl;const js=()=>xl||(xl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ne(e){if(he(e)){const t={};for(let s=0;s<e.length;s++){const l=e[s],r=Le(l)?Ar(l):Ne(l);if(r)for(const o in r)t[o]=r[o]}return t}else if(Le(e)||Te(e))return e}const Er=/;(?![^(]*\))/g,Pr=/:([^]+)/,Rr=/\/\*[^]*?\*\//g;function Ar(e){const t={};return e.replace(Rr,"").split(Er).forEach(s=>{if(s){const l=s.split(Pr);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function N(e){let t="";if(Le(e))t=e;else if(he(e))for(let s=0;s<e.length;s++){const l=N(e[s]);l&&(t+=l+" ")}else if(Te(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Mr=vn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function wl(e){return!!e||e===""}function Lr(e,t){if(e.length!==t.length)return!1;let s=!0;for(let l=0;s&&l<e.length;l++)s=xn(e[l],t[l]);return s}function xn(e,t){if(e===t)return!0;let s=gl(e),l=gl(t);if(s||l)return s&&l?e.getTime()===t.getTime():!1;if(s=ot(e),l=ot(t),s||l)return e===t;if(s=he(e),l=he(t),s||l)return s&&l?Lr(e,t):!1;if(s=Te(e),l=Te(t),s||l){if(!s||!l)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const a in e){const i=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(i&&!c||!i&&c||!xn(e[a],t[a]))return!1}}return String(e)===String(t)}const $l=e=>!!(e&&e.__v_isRef===!0),h=e=>Le(e)?e:e==null?"":he(e)||Te(e)&&(e.toString===ml||!fe(e.toString))?$l(e)?h(e.value):JSON.stringify(e,kl,2):String(e),kl=(e,t)=>$l(t)?kl(e,t.value):es(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[l,r],o)=>(s[wn(l,o)+" =>"]=r,s),{})}:vl(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>wn(s))}:ot(t)?wn(t):Te(t)&&!he(t)&&!bl(t)?String(t):t,wn=(e,t="")=>{var s;return ot(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Xe;class Or{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Xe,!t&&Xe&&(this.index=(Xe.scopes||(Xe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Xe;try{return Xe=this,t()}finally{Xe=s}}}on(){++this._on===1&&(this.prevScope=Xe,Xe=this)}off(){this._on>0&&--this._on===0&&(Xe=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,l;for(s=0,l=this.effects.length;s<l;s++)this.effects[s].stop();for(this.effects.length=0,s=0,l=this.cleanups.length;s<l;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,l=this.scopes.length;s<l;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 Dr(){return Xe}let Ae;const $n=new WeakSet;class Sl{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,Xe&&Xe.active&&Xe.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,$n.has(this)&&($n.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Tl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ml(this),El(this);const t=Ae,s=rt;Ae=this,rt=!0;try{return this.fn()}finally{Pl(this),Ae=t,rt=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Tn(t);this.deps=this.depsTail=void 0,Ml(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?$n.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Cn(this)&&this.run()}get dirty(){return Cn(this)}}let Cl=0,bs,_s;function Tl(e,t=!1){if(e.flags|=8,t){e.next=_s,_s=e;return}e.next=bs,bs=e}function kn(){Cl++}function Sn(){if(--Cl>0)return;if(_s){let t=_s;for(_s=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;bs;){let t=bs;for(bs=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=s}}if(e)throw e}function El(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Pl(e){let t,s=e.depsTail,l=s;for(;l;){const r=l.prevDep;l.version===-1?(l===s&&(s=r),Tn(l),Fr(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=r}e.deps=t,e.depsTail=s}function Cn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Rl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Rl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===xs)||(e.globalVersion=xs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Cn(e))))return;e.flags|=2;const t=e.dep,s=Ae,l=rt;Ae=e,rt=!0;try{El(e);const r=e.fn(e._value);(t.version===0||Lt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Ae=s,rt=l,Pl(e),e.flags&=-3}}function Tn(e,t=!1){const{dep:s,prevSub:l,nextSub:r}=e;if(l&&(l.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=l,e.nextSub=void 0),s.subs===e&&(s.subs=l,!l&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Tn(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Fr(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let rt=!0;const Al=[];function pt(){Al.push(rt),rt=!1}function vt(){const e=Al.pop();rt=e===void 0?!0:e}function Ml(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Ae;Ae=void 0;try{t()}finally{Ae=s}}}let xs=0;class Ir{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 En{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(!Ae||!rt||Ae===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Ae)s=this.activeLink=new Ir(Ae,this),Ae.deps?(s.prevDep=Ae.depsTail,Ae.depsTail.nextDep=s,Ae.depsTail=s):Ae.deps=Ae.depsTail=s,Ll(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const l=s.nextDep;l.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=l),s.prevDep=Ae.depsTail,s.nextDep=void 0,Ae.depsTail.nextDep=s,Ae.depsTail=s,Ae.deps===s&&(Ae.deps=l)}return s}trigger(t){this.version++,xs++,this.notify(t)}notify(t){kn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Sn()}}}function Ll(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)Ll(l)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Pn=new WeakMap,zt=Symbol(""),Rn=Symbol(""),ws=Symbol("");function qe(e,t,s){if(rt&&Ae){let l=Pn.get(e);l||Pn.set(e,l=new Map);let r=l.get(s);r||(l.set(s,r=new En),r.map=l,r.key=s),r.track()}}function wt(e,t,s,l,r,o){const a=Pn.get(e);if(!a){xs++;return}const i=c=>{c&&c.trigger()};if(kn(),t==="clear")a.forEach(i);else{const c=he(e),v=c&&mn(s);if(c&&s==="length"){const p=Number(l);a.forEach((g,$)=>{($==="length"||$===ws||!ot($)&&$>=p)&&i(g)})}else switch((s!==void 0||a.has(void 0))&&i(a.get(s)),v&&i(a.get(ws)),t){case"add":c?v&&i(a.get("length")):(i(a.get(zt)),es(e)&&i(a.get(Rn)));break;case"delete":c||(i(a.get(zt)),es(e)&&i(a.get(Rn)));break;case"set":es(e)&&i(a.get(zt));break}}Sn()}function ts(e){const t=xe(e);return t===e?t:(qe(t,"iterate",ws),st(e)?t:t.map(at))}function Bs(e){return qe(e=xe(e),"iterate",ws),e}function Ot(e,t){return kt(e)?ns(Wt(e)?at(t):t):at(t)}const Nr={__proto__:null,[Symbol.iterator](){return An(this,Symbol.iterator,e=>Ot(this,e))},concat(...e){return ts(this).concat(...e.map(t=>he(t)?ts(t):t))},entries(){return An(this,"entries",e=>(e[1]=Ot(this,e[1]),e))},every(e,t){return $t(this,"every",e,t,void 0,arguments)},filter(e,t){return $t(this,"filter",e,t,s=>s.map(l=>Ot(this,l)),arguments)},find(e,t){return $t(this,"find",e,t,s=>Ot(this,s),arguments)},findIndex(e,t){return $t(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return $t(this,"findLast",e,t,s=>Ot(this,s),arguments)},findLastIndex(e,t){return $t(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return $t(this,"forEach",e,t,void 0,arguments)},includes(...e){return Mn(this,"includes",e)},indexOf(...e){return Mn(this,"indexOf",e)},join(e){return ts(this).join(e)},lastIndexOf(...e){return Mn(this,"lastIndexOf",e)},map(e,t){return $t(this,"map",e,t,void 0,arguments)},pop(){return $s(this,"pop")},push(...e){return $s(this,"push",e)},reduce(e,...t){return Ol(this,"reduce",e,t)},reduceRight(e,...t){return Ol(this,"reduceRight",e,t)},shift(){return $s(this,"shift")},some(e,t){return $t(this,"some",e,t,void 0,arguments)},splice(...e){return $s(this,"splice",e)},toReversed(){return ts(this).toReversed()},toSorted(e){return ts(this).toSorted(e)},toSpliced(...e){return ts(this).toSpliced(...e)},unshift(...e){return $s(this,"unshift",e)},values(){return An(this,"values",e=>Ot(this,e))}};function An(e,t,s){const l=Bs(e),r=l[t]();return l!==e&&!st(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=s(o.value)),o}),r}const jr=Array.prototype;function $t(e,t,s,l,r,o){const a=Bs(e),i=a!==e&&!st(e),c=a[t];if(c!==jr[t]){const g=c.apply(e,o);return i?at(g):g}let v=s;a!==e&&(i?v=function(g,$){return s.call(this,Ot(e,g),$,e)}:s.length>2&&(v=function(g,$){return s.call(this,g,$,e)}));const p=c.call(a,v,l);return i&&r?r(p):p}function Ol(e,t,s,l){const r=Bs(e);let o=s;return r!==e&&(st(e)?s.length>3&&(o=function(a,i,c){return s.call(this,a,i,c,e)}):o=function(a,i,c){return s.call(this,a,Ot(e,i),c,e)}),r[t](o,...l)}function Mn(e,t,s){const l=xe(e);qe(l,"iterate",ws);const r=l[t](...s);return(r===-1||r===!1)&&Dn(s[0])?(s[0]=xe(s[0]),l[t](...s)):r}function $s(e,t,s=[]){pt(),kn();const l=xe(e)[t].apply(e,s);return Sn(),vt(),l}const Br=vn("__proto__,__v_isRef,__isVue"),Dl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ot));function Ur(e){ot(e)||(e=String(e));const t=xe(this);return qe(t,"has",e),t.hasOwnProperty(e)}class Fl{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,l){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 l===(r?o?ql:Ul:o?Bl:jl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const a=he(t);if(!r){let c;if(a&&(c=Nr[s]))return c;if(s==="hasOwnProperty")return Ur}const i=Reflect.get(t,s,je(t)?t:l);if((ot(s)?Dl.has(s):Br(s))||(r||qe(t,"get",s),o))return i;if(je(i)){const c=a&&mn(s)?i:i.value;return r&&Te(c)?On(c):c}return Te(i)?r?On(i):ss(i):i}}class Il extends Fl{constructor(t=!1){super(!1,t)}set(t,s,l,r){let o=t[s];const a=he(t)&&mn(s);if(!this._isShallow){const v=kt(o);if(!st(l)&&!kt(l)&&(o=xe(o),l=xe(l)),!a&&je(o)&&!je(l))return v||(o.value=l),!0}const i=a?Number(s)<t.length:Se(t,s),c=Reflect.set(t,s,l,je(t)?t:r);return t===xe(r)&&(i?Lt(l,o)&&wt(t,"set",s,l):wt(t,"add",s,l)),c}deleteProperty(t,s){const l=Se(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&l&&wt(t,"delete",s,void 0),r}has(t,s){const l=Reflect.has(t,s);return(!ot(s)||!Dl.has(s))&&qe(t,"has",s),l}ownKeys(t){return qe(t,"iterate",he(t)?"length":zt),Reflect.ownKeys(t)}}class Nl extends Fl{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const qr=new Il,Hr=new Nl,Kr=new Il(!0),Vr=new Nl(!0),Ln=e=>e,Us=e=>Reflect.getPrototypeOf(e);function zr(e,t,s){return function(...l){const r=this.__v_raw,o=xe(r),a=es(o),i=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,v=r[e](...l),p=s?Ln:t?ns:at;return!t&&qe(o,"iterate",c?Rn:zt),Ie(Object.create(v),{next(){const{value:g,done:$}=v.next();return $?{value:g,done:$}:{value:i?[p(g[0]),p(g[1])]:p(g),done:$}}})}}function qs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Wr(e,t){const s={get(r){const o=this.__v_raw,a=xe(o),i=xe(r);e||(Lt(r,i)&&qe(a,"get",r),qe(a,"get",i));const{has:c}=Us(a),v=t?Ln:e?ns:at;if(c.call(a,r))return v(o.get(r));if(c.call(a,i))return v(o.get(i));o!==a&&o.get(r)},get size(){const r=this.__v_raw;return!e&&qe(xe(r),"iterate",zt),r.size},has(r){const o=this.__v_raw,a=xe(o),i=xe(r);return e||(Lt(r,i)&&qe(a,"has",r),qe(a,"has",i)),r===i?o.has(r):o.has(r)||o.has(i)},forEach(r,o){const a=this,i=a.__v_raw,c=xe(i),v=t?Ln:e?ns:at;return!e&&qe(c,"iterate",zt),i.forEach((p,g)=>r.call(o,v(p),v(g),a))}};return Ie(s,e?{add:qs("add"),set:qs("set"),delete:qs("delete"),clear:qs("clear")}:{add(r){!t&&!st(r)&&!kt(r)&&(r=xe(r));const o=xe(this);return Us(o).has.call(o,r)||(o.add(r),wt(o,"add",r,r)),this},set(r,o){!t&&!st(o)&&!kt(o)&&(o=xe(o));const a=xe(this),{has:i,get:c}=Us(a);let v=i.call(a,r);v||(r=xe(r),v=i.call(a,r));const p=c.call(a,r);return a.set(r,o),v?Lt(o,p)&&wt(a,"set",r,o):wt(a,"add",r,o),this},delete(r){const o=xe(this),{has:a,get:i}=Us(o);let c=a.call(o,r);c||(r=xe(r),c=a.call(o,r)),i&&i.call(o,r);const v=o.delete(r);return c&&wt(o,"delete",r,void 0),v},clear(){const r=xe(this),o=r.size!==0,a=r.clear();return o&&wt(r,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=zr(r,e,t)}),s}function Hs(e,t){const s=Wr(e,t);return(l,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?l:Reflect.get(Se(s,r)&&r in l?s:l,r,o)}const Qr={get:Hs(!1,!1)},Jr={get:Hs(!1,!0)},Gr={get:Hs(!0,!1)},Yr={get:Hs(!0,!0)},jl=new WeakMap,Bl=new WeakMap,Ul=new WeakMap,ql=new WeakMap;function Xr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Zr(e){return e.__v_skip||!Object.isExtensible(e)?0:Xr($r(e))}function ss(e){return kt(e)?e:Ks(e,!1,qr,Qr,jl)}function ea(e){return Ks(e,!1,Kr,Jr,Bl)}function On(e){return Ks(e,!0,Hr,Gr,Ul)}function J1(e){return Ks(e,!0,Vr,Yr,ql)}function Ks(e,t,s,l,r){if(!Te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Zr(e);if(o===0)return e;const a=r.get(e);if(a)return a;const i=new Proxy(e,o===2?l:s);return r.set(e,i),i}function Wt(e){return kt(e)?Wt(e.__v_raw):!!(e&&e.__v_isReactive)}function kt(e){return!!(e&&e.__v_isReadonly)}function st(e){return!!(e&&e.__v_isShallow)}function Dn(e){return e?!!e.__v_raw:!1}function xe(e){const t=e&&e.__v_raw;return t?xe(t):e}function ta(e){return!Se(e,"__v_skip")&&Object.isExtensible(e)&&_l(e,"__v_skip",!0),e}const at=e=>Te(e)?ss(e):e,ns=e=>Te(e)?On(e):e;function je(e){return e?e.__v_isRef===!0:!1}function G(e){return sa(e,!1)}function sa(e,t){return je(e)?e:new na(e,t)}class na{constructor(t,s){this.dep=new En,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:xe(t),this._value=s?t:at(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,l=this.__v_isShallow||st(t)||kt(t);t=l?t:xe(t),Lt(t,s)&&(this._rawValue=t,this._value=l?t:at(t),this.dep.trigger())}}function w(e){return je(e)?e.value:e}const la={get:(e,t,s)=>t==="__v_raw"?e:w(Reflect.get(e,t,s)),set:(e,t,s,l)=>{const r=e[t];return je(r)&&!je(s)?(r.value=s,!0):Reflect.set(e,t,s,l)}};function Hl(e){return Wt(e)?e:new Proxy(e,la)}class oa{constructor(t,s,l){this.fn=t,this.setter=s,this._value=void 0,this.dep=new En(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&Ae!==this)return Tl(this,!0),!0}get value(){const t=this.dep.track();return Rl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ra(e,t,s=!1){let l,r;return fe(e)?l=e:(l=e.get,r=e.set),new oa(l,r,s)}const Vs={},zs=new WeakMap;let Qt;function aa(e,t=!1,s=Qt){if(s){let l=zs.get(s);l||zs.set(s,l=[]),l.push(e)}}function ia(e,t,s=Re){const{immediate:l,deep:r,once:o,scheduler:a,augmentJob:i,call:c}=s,v=k=>r?k:st(k)||r===!1||r===0?Dt(k,1):Dt(k);let p,g,$,x,_=!1,m=!1;if(je(e)?(g=()=>e.value,_=st(e)):Wt(e)?(g=()=>v(e),_=!0):he(e)?(m=!0,_=e.some(k=>Wt(k)||st(k)),g=()=>e.map(k=>{if(je(k))return k.value;if(Wt(k))return v(k);if(fe(k))return c?c(k,2):k()})):fe(e)?t?g=c?()=>c(e,2):e:g=()=>{if($){pt();try{$()}finally{vt()}}const k=Qt;Qt=p;try{return c?c(e,3,[x]):e(x)}finally{Qt=k}}:g=ht,t&&r){const k=g,O=r===!0?1/0:r;g=()=>Dt(k(),O)}const S=Dr(),U=()=>{p.stop(),S&&S.active&&yn(S.effects,p)};if(o&&t){const k=t;t=(...O)=>{k(...O),U()}}let M=m?new Array(e.length).fill(Vs):Vs;const b=k=>{if(!(!(p.flags&1)||!p.dirty&&!k))if(t){const O=p.run();if(r||_||(m?O.some((P,j)=>Lt(P,M[j])):Lt(O,M))){$&&$();const P=Qt;Qt=p;try{const j=[O,M===Vs?void 0:m&&M[0]===Vs?[]:M,x];M=O,c?c(t,3,j):t(...j)}finally{Qt=P}}}else p.run()};return i&&i(b),p=new Sl(g),p.scheduler=a?()=>a(b,!1):b,x=k=>aa(k,!1,p),$=p.onStop=()=>{const k=zs.get(p);if(k){if(c)c(k,4);else for(const O of k)O();zs.delete(p)}},t?l?b(!0):M=p.run():a?a(b.bind(null,!0),!0):p.run(),U.pause=p.pause.bind(p),U.resume=p.resume.bind(p),U.stop=U,U}function Dt(e,t=1/0,s){if(t<=0||!Te(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,je(e))Dt(e.value,t,s);else if(he(e))for(let l=0;l<e.length;l++)Dt(e[l],t,s);else if(vl(e)||es(e))e.forEach(l=>{Dt(l,t,s)});else if(bl(e)){for(const l in e)Dt(e[l],t,s);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&Dt(e[l],t,s)}return e}const ks=[];let Fn=!1;function G1(e,...t){if(Fn)return;Fn=!0,pt();const s=ks.length?ks[ks.length-1].component:null,l=s&&s.appContext.config.warnHandler,r=ua();if(l)ls(l,s,11,[e+t.map(o=>{var a,i;return(i=(a=o.toString)==null?void 0:a.call(o))!=null?i:JSON.stringify(o)}).join(""),s&&s.proxy,r.map(({vnode:o})=>`at <${Ho(s,o.type)}>`).join(`
|
|
1
|
+
(function(){"use strict";function vn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Re={},Zt=[],ht=()=>{},pl=()=>!1,Fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),gn=e=>e.startsWith("onUpdate:"),Ie=Object.assign,yn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},wr=Object.prototype.hasOwnProperty,Se=(e,t)=>wr.call(e,t),he=Array.isArray,es=e=>ys(e)==="[object Map]",vl=e=>ys(e)==="[object Set]",gl=e=>ys(e)==="[object Date]",fe=e=>typeof e=="function",De=e=>typeof e=="string",ot=e=>typeof e=="symbol",Te=e=>e!==null&&typeof e=="object",yl=e=>(Te(e)||fe(e))&&fe(e.then)&&fe(e.catch),ml=Object.prototype.toString,ys=e=>ml.call(e),$r=e=>ys(e).slice(8,-1),bl=e=>ys(e)==="[object Object]",mn=e=>De(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ms=vn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Is=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},kr=/-\w/g,tt=Is(e=>e.replace(kr,t=>t.slice(1).toUpperCase())),Sr=/\B([A-Z])/g,Mt=Is(e=>e.replace(Sr,"-$1").toLowerCase()),Ns=Is(e=>e.charAt(0).toUpperCase()+e.slice(1)),bn=Is(e=>e?`on${Ns(e)}`:""),Dt=(e,t)=>!Object.is(e,t),_n=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},_l=(e,t,s,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:s})},Cr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Tr=e=>{const t=De(e)?Number(e):NaN;return isNaN(t)?e:t};let xl;const js=()=>xl||(xl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ne(e){if(he(e)){const t={};for(let s=0;s<e.length;s++){const l=e[s],r=De(l)?Ar(l):Ne(l);if(r)for(const o in r)t[o]=r[o]}return t}else if(De(e)||Te(e))return e}const Er=/;(?![^(]*\))/g,Pr=/:([^]+)/,Rr=/\/\*[^]*?\*\//g;function Ar(e){const t={};return e.replace(Rr,"").split(Er).forEach(s=>{if(s){const l=s.split(Pr);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function N(e){let t="";if(De(e))t=e;else if(he(e))for(let s=0;s<e.length;s++){const l=N(e[s]);l&&(t+=l+" ")}else if(Te(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Mr=vn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function wl(e){return!!e||e===""}function Dr(e,t){if(e.length!==t.length)return!1;let s=!0;for(let l=0;s&&l<e.length;l++)s=xn(e[l],t[l]);return s}function xn(e,t){if(e===t)return!0;let s=gl(e),l=gl(t);if(s||l)return s&&l?e.getTime()===t.getTime():!1;if(s=ot(e),l=ot(t),s||l)return e===t;if(s=he(e),l=he(t),s||l)return s&&l?Dr(e,t):!1;if(s=Te(e),l=Te(t),s||l){if(!s||!l)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const a in e){const i=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(i&&!c||!i&&c||!xn(e[a],t[a]))return!1}}return String(e)===String(t)}const $l=e=>!!(e&&e.__v_isRef===!0),h=e=>De(e)?e:e==null?"":he(e)||Te(e)&&(e.toString===ml||!fe(e.toString))?$l(e)?h(e.value):JSON.stringify(e,kl,2):String(e),kl=(e,t)=>$l(t)?kl(e,t.value):es(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[l,r],o)=>(s[wn(l,o)+" =>"]=r,s),{})}:vl(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>wn(s))}:ot(t)?wn(t):Te(t)&&!he(t)&&!bl(t)?String(t):t,wn=(e,t="")=>{var s;return ot(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Xe;class Lr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Xe,!t&&Xe&&(this.index=(Xe.scopes||(Xe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Xe;try{return Xe=this,t()}finally{Xe=s}}}on(){++this._on===1&&(this.prevScope=Xe,Xe=this)}off(){this._on>0&&--this._on===0&&(Xe=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,l;for(s=0,l=this.effects.length;s<l;s++)this.effects[s].stop();for(this.effects.length=0,s=0,l=this.cleanups.length;s<l;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,l=this.scopes.length;s<l;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 Or(){return Xe}let Ae;const $n=new WeakSet;class Sl{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,Xe&&Xe.active&&Xe.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,$n.has(this)&&($n.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Tl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ml(this),El(this);const t=Ae,s=rt;Ae=this,rt=!0;try{return this.fn()}finally{Pl(this),Ae=t,rt=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Tn(t);this.deps=this.depsTail=void 0,Ml(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?$n.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Cn(this)&&this.run()}get dirty(){return Cn(this)}}let Cl=0,bs,_s;function Tl(e,t=!1){if(e.flags|=8,t){e.next=_s,_s=e;return}e.next=bs,bs=e}function kn(){Cl++}function Sn(){if(--Cl>0)return;if(_s){let t=_s;for(_s=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;bs;){let t=bs;for(bs=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=s}}if(e)throw e}function El(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Pl(e){let t,s=e.depsTail,l=s;for(;l;){const r=l.prevDep;l.version===-1?(l===s&&(s=r),Tn(l),Fr(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=r}e.deps=t,e.depsTail=s}function Cn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Rl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Rl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===xs)||(e.globalVersion=xs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Cn(e))))return;e.flags|=2;const t=e.dep,s=Ae,l=rt;Ae=e,rt=!0;try{El(e);const r=e.fn(e._value);(t.version===0||Dt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Ae=s,rt=l,Pl(e),e.flags&=-3}}function Tn(e,t=!1){const{dep:s,prevSub:l,nextSub:r}=e;if(l&&(l.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=l,e.nextSub=void 0),s.subs===e&&(s.subs=l,!l&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Tn(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Fr(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let rt=!0;const Al=[];function pt(){Al.push(rt),rt=!1}function vt(){const e=Al.pop();rt=e===void 0?!0:e}function Ml(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Ae;Ae=void 0;try{t()}finally{Ae=s}}}let xs=0;class Ir{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 En{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(!Ae||!rt||Ae===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Ae)s=this.activeLink=new Ir(Ae,this),Ae.deps?(s.prevDep=Ae.depsTail,Ae.depsTail.nextDep=s,Ae.depsTail=s):Ae.deps=Ae.depsTail=s,Dl(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const l=s.nextDep;l.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=l),s.prevDep=Ae.depsTail,s.nextDep=void 0,Ae.depsTail.nextDep=s,Ae.depsTail=s,Ae.deps===s&&(Ae.deps=l)}return s}trigger(t){this.version++,xs++,this.notify(t)}notify(t){kn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Sn()}}}function Dl(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)Dl(l)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Pn=new WeakMap,zt=Symbol(""),Rn=Symbol(""),ws=Symbol("");function qe(e,t,s){if(rt&&Ae){let l=Pn.get(e);l||Pn.set(e,l=new Map);let r=l.get(s);r||(l.set(s,r=new En),r.map=l,r.key=s),r.track()}}function wt(e,t,s,l,r,o){const a=Pn.get(e);if(!a){xs++;return}const i=c=>{c&&c.trigger()};if(kn(),t==="clear")a.forEach(i);else{const c=he(e),v=c&&mn(s);if(c&&s==="length"){const p=Number(l);a.forEach((g,$)=>{($==="length"||$===ws||!ot($)&&$>=p)&&i(g)})}else switch((s!==void 0||a.has(void 0))&&i(a.get(s)),v&&i(a.get(ws)),t){case"add":c?v&&i(a.get("length")):(i(a.get(zt)),es(e)&&i(a.get(Rn)));break;case"delete":c||(i(a.get(zt)),es(e)&&i(a.get(Rn)));break;case"set":es(e)&&i(a.get(zt));break}}Sn()}function ts(e){const t=xe(e);return t===e?t:(qe(t,"iterate",ws),st(e)?t:t.map(at))}function Bs(e){return qe(e=xe(e),"iterate",ws),e}function Lt(e,t){return kt(e)?ns(Wt(e)?at(t):t):at(t)}const Nr={__proto__:null,[Symbol.iterator](){return An(this,Symbol.iterator,e=>Lt(this,e))},concat(...e){return ts(this).concat(...e.map(t=>he(t)?ts(t):t))},entries(){return An(this,"entries",e=>(e[1]=Lt(this,e[1]),e))},every(e,t){return $t(this,"every",e,t,void 0,arguments)},filter(e,t){return $t(this,"filter",e,t,s=>s.map(l=>Lt(this,l)),arguments)},find(e,t){return $t(this,"find",e,t,s=>Lt(this,s),arguments)},findIndex(e,t){return $t(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return $t(this,"findLast",e,t,s=>Lt(this,s),arguments)},findLastIndex(e,t){return $t(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return $t(this,"forEach",e,t,void 0,arguments)},includes(...e){return Mn(this,"includes",e)},indexOf(...e){return Mn(this,"indexOf",e)},join(e){return ts(this).join(e)},lastIndexOf(...e){return Mn(this,"lastIndexOf",e)},map(e,t){return $t(this,"map",e,t,void 0,arguments)},pop(){return $s(this,"pop")},push(...e){return $s(this,"push",e)},reduce(e,...t){return Ll(this,"reduce",e,t)},reduceRight(e,...t){return Ll(this,"reduceRight",e,t)},shift(){return $s(this,"shift")},some(e,t){return $t(this,"some",e,t,void 0,arguments)},splice(...e){return $s(this,"splice",e)},toReversed(){return ts(this).toReversed()},toSorted(e){return ts(this).toSorted(e)},toSpliced(...e){return ts(this).toSpliced(...e)},unshift(...e){return $s(this,"unshift",e)},values(){return An(this,"values",e=>Lt(this,e))}};function An(e,t,s){const l=Bs(e),r=l[t]();return l!==e&&!st(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=s(o.value)),o}),r}const jr=Array.prototype;function $t(e,t,s,l,r,o){const a=Bs(e),i=a!==e&&!st(e),c=a[t];if(c!==jr[t]){const g=c.apply(e,o);return i?at(g):g}let v=s;a!==e&&(i?v=function(g,$){return s.call(this,Lt(e,g),$,e)}:s.length>2&&(v=function(g,$){return s.call(this,g,$,e)}));const p=c.call(a,v,l);return i&&r?r(p):p}function Ll(e,t,s,l){const r=Bs(e);let o=s;return r!==e&&(st(e)?s.length>3&&(o=function(a,i,c){return s.call(this,a,i,c,e)}):o=function(a,i,c){return s.call(this,a,Lt(e,i),c,e)}),r[t](o,...l)}function Mn(e,t,s){const l=xe(e);qe(l,"iterate",ws);const r=l[t](...s);return(r===-1||r===!1)&&On(s[0])?(s[0]=xe(s[0]),l[t](...s)):r}function $s(e,t,s=[]){pt(),kn();const l=xe(e)[t].apply(e,s);return Sn(),vt(),l}const Br=vn("__proto__,__v_isRef,__isVue"),Ol=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ot));function Ur(e){ot(e)||(e=String(e));const t=xe(this);return qe(t,"has",e),t.hasOwnProperty(e)}class Fl{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,l){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 l===(r?o?ql:Ul:o?Bl:jl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const a=he(t);if(!r){let c;if(a&&(c=Nr[s]))return c;if(s==="hasOwnProperty")return Ur}const i=Reflect.get(t,s,je(t)?t:l);if((ot(s)?Ol.has(s):Br(s))||(r||qe(t,"get",s),o))return i;if(je(i)){const c=a&&mn(s)?i:i.value;return r&&Te(c)?Ln(c):c}return Te(i)?r?Ln(i):ss(i):i}}class Il extends Fl{constructor(t=!1){super(!1,t)}set(t,s,l,r){let o=t[s];const a=he(t)&&mn(s);if(!this._isShallow){const v=kt(o);if(!st(l)&&!kt(l)&&(o=xe(o),l=xe(l)),!a&&je(o)&&!je(l))return v||(o.value=l),!0}const i=a?Number(s)<t.length:Se(t,s),c=Reflect.set(t,s,l,je(t)?t:r);return t===xe(r)&&(i?Dt(l,o)&&wt(t,"set",s,l):wt(t,"add",s,l)),c}deleteProperty(t,s){const l=Se(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&l&&wt(t,"delete",s,void 0),r}has(t,s){const l=Reflect.has(t,s);return(!ot(s)||!Ol.has(s))&&qe(t,"has",s),l}ownKeys(t){return qe(t,"iterate",he(t)?"length":zt),Reflect.ownKeys(t)}}class Nl extends Fl{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const qr=new Il,Hr=new Nl,Kr=new Il(!0),Vr=new Nl(!0),Dn=e=>e,Us=e=>Reflect.getPrototypeOf(e);function zr(e,t,s){return function(...l){const r=this.__v_raw,o=xe(r),a=es(o),i=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,v=r[e](...l),p=s?Dn:t?ns:at;return!t&&qe(o,"iterate",c?Rn:zt),Ie(Object.create(v),{next(){const{value:g,done:$}=v.next();return $?{value:g,done:$}:{value:i?[p(g[0]),p(g[1])]:p(g),done:$}}})}}function qs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Wr(e,t){const s={get(r){const o=this.__v_raw,a=xe(o),i=xe(r);e||(Dt(r,i)&&qe(a,"get",r),qe(a,"get",i));const{has:c}=Us(a),v=t?Dn:e?ns:at;if(c.call(a,r))return v(o.get(r));if(c.call(a,i))return v(o.get(i));o!==a&&o.get(r)},get size(){const r=this.__v_raw;return!e&&qe(xe(r),"iterate",zt),r.size},has(r){const o=this.__v_raw,a=xe(o),i=xe(r);return e||(Dt(r,i)&&qe(a,"has",r),qe(a,"has",i)),r===i?o.has(r):o.has(r)||o.has(i)},forEach(r,o){const a=this,i=a.__v_raw,c=xe(i),v=t?Dn:e?ns:at;return!e&&qe(c,"iterate",zt),i.forEach((p,g)=>r.call(o,v(p),v(g),a))}};return Ie(s,e?{add:qs("add"),set:qs("set"),delete:qs("delete"),clear:qs("clear")}:{add(r){!t&&!st(r)&&!kt(r)&&(r=xe(r));const o=xe(this);return Us(o).has.call(o,r)||(o.add(r),wt(o,"add",r,r)),this},set(r,o){!t&&!st(o)&&!kt(o)&&(o=xe(o));const a=xe(this),{has:i,get:c}=Us(a);let v=i.call(a,r);v||(r=xe(r),v=i.call(a,r));const p=c.call(a,r);return a.set(r,o),v?Dt(o,p)&&wt(a,"set",r,o):wt(a,"add",r,o),this},delete(r){const o=xe(this),{has:a,get:i}=Us(o);let c=a.call(o,r);c||(r=xe(r),c=a.call(o,r)),i&&i.call(o,r);const v=o.delete(r);return c&&wt(o,"delete",r,void 0),v},clear(){const r=xe(this),o=r.size!==0,a=r.clear();return o&&wt(r,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=zr(r,e,t)}),s}function Hs(e,t){const s=Wr(e,t);return(l,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?l:Reflect.get(Se(s,r)&&r in l?s:l,r,o)}const Qr={get:Hs(!1,!1)},Jr={get:Hs(!1,!0)},Gr={get:Hs(!0,!1)},Yr={get:Hs(!0,!0)},jl=new WeakMap,Bl=new WeakMap,Ul=new WeakMap,ql=new WeakMap;function Xr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Zr(e){return e.__v_skip||!Object.isExtensible(e)?0:Xr($r(e))}function ss(e){return kt(e)?e:Ks(e,!1,qr,Qr,jl)}function ea(e){return Ks(e,!1,Kr,Jr,Bl)}function Ln(e){return Ks(e,!0,Hr,Gr,Ul)}function J1(e){return Ks(e,!0,Vr,Yr,ql)}function Ks(e,t,s,l,r){if(!Te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Zr(e);if(o===0)return e;const a=r.get(e);if(a)return a;const i=new Proxy(e,o===2?l:s);return r.set(e,i),i}function Wt(e){return kt(e)?Wt(e.__v_raw):!!(e&&e.__v_isReactive)}function kt(e){return!!(e&&e.__v_isReadonly)}function st(e){return!!(e&&e.__v_isShallow)}function On(e){return e?!!e.__v_raw:!1}function xe(e){const t=e&&e.__v_raw;return t?xe(t):e}function ta(e){return!Se(e,"__v_skip")&&Object.isExtensible(e)&&_l(e,"__v_skip",!0),e}const at=e=>Te(e)?ss(e):e,ns=e=>Te(e)?Ln(e):e;function je(e){return e?e.__v_isRef===!0:!1}function G(e){return sa(e,!1)}function sa(e,t){return je(e)?e:new na(e,t)}class na{constructor(t,s){this.dep=new En,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:xe(t),this._value=s?t:at(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,l=this.__v_isShallow||st(t)||kt(t);t=l?t:xe(t),Dt(t,s)&&(this._rawValue=t,this._value=l?t:at(t),this.dep.trigger())}}function w(e){return je(e)?e.value:e}const la={get:(e,t,s)=>t==="__v_raw"?e:w(Reflect.get(e,t,s)),set:(e,t,s,l)=>{const r=e[t];return je(r)&&!je(s)?(r.value=s,!0):Reflect.set(e,t,s,l)}};function Hl(e){return Wt(e)?e:new Proxy(e,la)}class oa{constructor(t,s,l){this.fn=t,this.setter=s,this._value=void 0,this.dep=new En(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&Ae!==this)return Tl(this,!0),!0}get value(){const t=this.dep.track();return Rl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ra(e,t,s=!1){let l,r;return fe(e)?l=e:(l=e.get,r=e.set),new oa(l,r,s)}const Vs={},zs=new WeakMap;let Qt;function aa(e,t=!1,s=Qt){if(s){let l=zs.get(s);l||zs.set(s,l=[]),l.push(e)}}function ia(e,t,s=Re){const{immediate:l,deep:r,once:o,scheduler:a,augmentJob:i,call:c}=s,v=k=>r?k:st(k)||r===!1||r===0?Ot(k,1):Ot(k);let p,g,$,x,_=!1,b=!1;if(je(e)?(g=()=>e.value,_=st(e)):Wt(e)?(g=()=>v(e),_=!0):he(e)?(b=!0,_=e.some(k=>Wt(k)||st(k)),g=()=>e.map(k=>{if(je(k))return k.value;if(Wt(k))return v(k);if(fe(k))return c?c(k,2):k()})):fe(e)?t?g=c?()=>c(e,2):e:g=()=>{if($){pt();try{$()}finally{vt()}}const k=Qt;Qt=p;try{return c?c(e,3,[x]):e(x)}finally{Qt=k}}:g=ht,t&&r){const k=g,L=r===!0?1/0:r;g=()=>Ot(k(),L)}const S=Or(),U=()=>{p.stop(),S&&S.active&&yn(S.effects,p)};if(o&&t){const k=t;t=(...L)=>{k(...L),U()}}let M=b?new Array(e.length).fill(Vs):Vs;const m=k=>{if(!(!(p.flags&1)||!p.dirty&&!k))if(t){const L=p.run();if(r||_||(b?L.some((P,j)=>Dt(P,M[j])):Dt(L,M))){$&&$();const P=Qt;Qt=p;try{const j=[L,M===Vs?void 0:b&&M[0]===Vs?[]:M,x];M=L,c?c(t,3,j):t(...j)}finally{Qt=P}}}else p.run()};return i&&i(m),p=new Sl(g),p.scheduler=a?()=>a(m,!1):m,x=k=>aa(k,!1,p),$=p.onStop=()=>{const k=zs.get(p);if(k){if(c)c(k,4);else for(const L of k)L();zs.delete(p)}},t?l?m(!0):M=p.run():a?a(m.bind(null,!0),!0):p.run(),U.pause=p.pause.bind(p),U.resume=p.resume.bind(p),U.stop=U,U}function Ot(e,t=1/0,s){if(t<=0||!Te(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,je(e))Ot(e.value,t,s);else if(he(e))for(let l=0;l<e.length;l++)Ot(e[l],t,s);else if(vl(e)||es(e))e.forEach(l=>{Ot(l,t,s)});else if(bl(e)){for(const l in e)Ot(e[l],t,s);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&Ot(e[l],t,s)}return e}const ks=[];let Fn=!1;function G1(e,...t){if(Fn)return;Fn=!0,pt();const s=ks.length?ks[ks.length-1].component:null,l=s&&s.appContext.config.warnHandler,r=ua();if(l)ls(l,s,11,[e+t.map(o=>{var a,i;return(i=(a=o.toString)==null?void 0:a.call(o))!=null?i:JSON.stringify(o)}).join(""),s&&s.proxy,r.map(({vnode:o})=>`at <${Ho(s,o.type)}>`).join(`
|
|
2
2
|
`),r]);else{const o=[`[Vue warn]: ${e}`,...t];r.length&&o.push(`
|
|
3
3
|
`,...ca(r)),console.warn(...o)}vt(),Fn=!1}function ua(){let e=ks[ks.length-1];if(!e)return[];const t=[];for(;e;){const s=t[0];s&&s.vnode===e?s.recurseCount++:t.push({vnode:e,recurseCount:0});const l=e.component&&e.component.parent;e=l&&l.vnode}return t}function ca(e){const t=[];return e.forEach((s,l)=>{t.push(...l===0?[]:[`
|
|
4
|
-
`],...da(s))}),t}function da({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",l=e.component?e.component.parent==null:!1,r=` at <${Ho(e.component,e.type,l)}`,o=">"+s;return e.props?[r,...fa(e.props),o]:[r+o]}function fa(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(l=>{t.push(...Kl(l,e[l]))}),s.length>3&&t.push(" ..."),t}function Kl(e,t,s){return Le(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:je(t)?(t=Kl(e,xe(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):fe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=xe(t),s?t:[`${e}=`,t])}function ls(e,t,s,l){try{return l?e(...l):e()}catch(r){os(r,t,s)}}function gt(e,t,s,l){if(fe(e)){const r=ls(e,t,s,l);return r&&yl(r)&&r.catch(o=>{os(o,t,s)}),r}if(he(e)){const r=[];for(let o=0;o<e.length;o++)r.push(gt(e[o],t,s,l));return r}}function os(e,t,s,l=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Re;if(t){let i=t.parent;const c=t.proxy,v=`https://vuejs.org/error-reference/#runtime-${s}`;for(;i;){const p=i.ec;if(p){for(let g=0;g<p.length;g++)if(p[g](e,c,v)===!1)return}i=i.parent}if(o){pt(),ls(o,null,10,[e,c,v]),vt();return}}ha(e,s,r,l,a)}function ha(e,t,s,l=!0,r=!1){if(r)throw e;console.error(e)}const ze=[];let yt=-1;const rs=[];let Ft=null,as=0;const Vl=Promise.resolve();let Ws=null;function In(e){const t=Ws||Vl;return e?t.then(this?e.bind(this):e):t}function pa(e){let t=yt+1,s=ze.length;for(;t<s;){const l=t+s>>>1,r=ze[l],o=Ss(r);o<e||o===e&&r.flags&2?t=l+1:s=l}return t}function Nn(e){if(!(e.flags&1)){const t=Ss(e),s=ze[ze.length-1];!s||!(e.flags&2)&&t>=Ss(s)?ze.push(e):ze.splice(pa(t),0,e),e.flags|=1,zl()}}function zl(){Ws||(Ws=Vl.then(Jl))}function jn(e){he(e)?rs.push(...e):Ft&&e.id===-1?Ft.splice(as+1,0,e):e.flags&1||(rs.push(e),e.flags|=1),zl()}function Wl(e,t,s=yt+1){for(;s<ze.length;s++){const l=ze[s];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;ze.splice(s,1),s--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function Ql(e){if(rs.length){const t=[...new Set(rs)].sort((s,l)=>Ss(s)-Ss(l));if(rs.length=0,Ft){Ft.push(...t);return}for(Ft=t,as=0;as<Ft.length;as++){const s=Ft[as];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Ft=null,as=0}}const Ss=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Jl(e){try{for(yt=0;yt<ze.length;yt++){const t=ze[yt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ls(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;yt<ze.length;yt++){const t=ze[yt];t&&(t.flags&=-2)}yt=-1,ze.length=0,Ql(),Ws=null,(ze.length||rs.length)&&Jl()}}let We=null,Gl=null;function Qs(e){const t=We;return We=e,Gl=e&&e.type.__scopeId||null,t}function is(e,t=We,s){if(!t||e._n)return e;const l=(...r)=>{l._d&&Fo(-1);const o=Qs(t);let a;try{a=e(...r)}finally{Qs(o),l._d&&Fo(1)}return a};return l._n=!0,l._c=!0,l._d=!0,l}function Jt(e,t,s,l){const r=e.dirs,o=t&&t.dirs;for(let a=0;a<r.length;a++){const i=r[a];o&&(i.oldValue=o[a].value);let c=i.dir[l];c&&(pt(),gt(c,s,8,[e.el,i,e,t]),vt())}}function It(e,t){if(Be){let s=Be.provides;const l=Be.parent&&Be.parent.provides;l===s&&(s=Be.provides=Object.create(l)),s[e]=t}}function ie(e,t,s=!1){const l=xi();if(l||cs){let r=cs?cs._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&fe(t)?t.call(l&&l.proxy):t}}const va=Symbol.for("v-scx"),ga=()=>ie(va);function it(e,t,s){return Yl(e,t,s)}function Yl(e,t,s=Re){const{immediate:l,deep:r,flush:o,once:a}=s,i=Ie({},s),c=t&&l||!t&&o!=="post";let v;if(ps){if(o==="sync"){const x=ga();v=x.__watcherHandles||(x.__watcherHandles=[])}else if(!c){const x=()=>{};return x.stop=ht,x.resume=ht,x.pause=ht,x}}const p=Be;i.call=(x,_,m)=>gt(x,p,_,m);let g=!1;o==="post"?i.scheduler=x=>{Je(x,p&&p.suspense)}:o!=="sync"&&(g=!0,i.scheduler=(x,_)=>{_?x():Nn(x)}),i.augmentJob=x=>{t&&(x.flags|=4),g&&(x.flags|=2,p&&(x.id=p.uid,x.i=p))};const $=ia(e,t,i);return ps&&(v?v.push($):c&&$()),$}function ya(e,t,s){const l=this.proxy,r=Le(e)?e.includes(".")?Xl(l,e):()=>l[e]:e.bind(l,l);let o;fe(t)?o=t:(o=t.handler,s=t);const a=As(this),i=Yl(r,o.bind(l),s);return a(),i}function Xl(e,t){const s=t.split(".");return()=>{let l=e;for(let r=0;r<s.length&&l;r++)l=l[s[r]];return l}}const ma=Symbol("_vte"),ba=e=>e.__isTeleport,_a=Symbol("_leaveCb");function Bn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Bn(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 Oe(e,t){return fe(e)?Ie({name:e.name},t,{setup:e}):e}function Un(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Zl(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Js=new WeakMap;function Cs(e,t,s,l,r=!1){if(he(e)){e.forEach((m,S)=>Cs(m,t&&(he(t)?t[S]:t),s,l,r));return}if(us(l)&&!r){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&Cs(e,t,s,l.component.subTree);return}const o=l.shapeFlag&4?sl(l.component):l.el,a=r?null:o,{i,r:c}=e,v=t&&t.r,p=i.refs===Re?i.refs={}:i.refs,g=i.setupState,$=xe(g),x=g===Re?pl:m=>Zl(p,m)?!1:Se($,m),_=(m,S)=>!(S&&Zl(p,S));if(v!=null&&v!==c){if(eo(t),Le(v))p[v]=null,x(v)&&(g[v]=null);else if(je(v)){const m=t;_(v,m.k)&&(v.value=null),m.k&&(p[m.k]=null)}}if(fe(c))ls(c,i,12,[a,p]);else{const m=Le(c),S=je(c);if(m||S){const U=()=>{if(e.f){const M=m?x(c)?g[c]:p[c]:_()||!e.k?c.value:p[e.k];if(r)he(M)&&yn(M,o);else if(he(M))M.includes(o)||M.push(o);else if(m)p[c]=[o],x(c)&&(g[c]=p[c]);else{const b=[o];_(c,e.k)&&(c.value=b),e.k&&(p[e.k]=b)}}else m?(p[c]=a,x(c)&&(g[c]=a)):S&&(_(c,e.k)&&(c.value=a),e.k&&(p[e.k]=a))};if(a){const M=()=>{U(),Js.delete(e)};M.id=-1,Js.set(e,M),Je(M,s)}else eo(e),U()}}}function eo(e){const t=Js.get(e);t&&(t.flags|=8,Js.delete(e))}const to=e=>e.nodeType===8;js().requestIdleCallback,js().cancelIdleCallback;function xa(e,t){if(to(e)&&e.data==="["){let s=1,l=e.nextSibling;for(;l;){if(l.nodeType===1){if(t(l)===!1)break}else if(to(l))if(l.data==="]"){if(--s===0)break}else l.data==="["&&s++;l=l.nextSibling}}else t(e)}const us=e=>!!e.type.__asyncLoader;function ut(e){fe(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:l,delay:r=200,hydrate:o,timeout:a,suspensible:i=!0,onError:c}=e;let v=null,p,g=0;const $=()=>(g++,v=null,x()),x=()=>{let _;return v||(_=v=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),c)return new Promise((S,U)=>{c(m,()=>S($()),()=>U(m),g+1)});throw m}).then(m=>_!==v&&v?v:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),p=m,m)))};return Oe({name:"AsyncComponentWrapper",__asyncLoader:x,__asyncHydrate(_,m,S){let U=!1;(m.bu||(m.bu=[])).push(()=>U=!0);const M=()=>{U||S()},b=o?()=>{const k=o(M,O=>xa(_,O));k&&(m.bum||(m.bum=[])).push(k)}:M;p?b():x().then(()=>!m.isUnmounted&&b())},get __asyncResolved(){return p},setup(){const _=Be;if(Un(_),p)return()=>Gs(p,_);const m=b=>{v=null,os(b,_,13,!l)};if(i&&_.suspense||ps)return x().then(b=>()=>Gs(b,_)).catch(b=>(m(b),()=>l?_e(l,{error:b}):null));const S=G(!1),U=G(),M=G(!!r);return r&&setTimeout(()=>{M.value=!1},r),a!=null&&setTimeout(()=>{if(!S.value&&!U.value){const b=new Error(`Async component timed out after ${a}ms.`);m(b),U.value=b}},a),x().then(()=>{S.value=!0,_.parent&&qn(_.parent.vnode)&&_.parent.update()}).catch(b=>{m(b),U.value=b}),()=>{if(S.value&&p)return Gs(p,_);if(U.value&&l)return _e(l,{error:U.value});if(s&&!M.value)return Gs(s,_)}}})}function Gs(e,t){const{ref:s,props:l,children:r,ce:o}=t.vnode,a=_e(e,l,r);return a.ref=s,a.ce=o,delete t.vnode.ce,a}const qn=e=>e.type.__isKeepAlive;function wa(e,t){so(e,"a",t)}function $a(e,t){so(e,"da",t)}function so(e,t,s=Be){const l=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ys(t,l,s),s){let r=s.parent;for(;r&&r.parent;)qn(r.parent.vnode)&&ka(l,t,s,r),r=r.parent}}function ka(e,t,s,l){const r=Ys(t,e,l,!0);ct(()=>{yn(l[t],r)},s)}function Ys(e,t,s=Be,l=!1){if(s){const r=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...a)=>{pt();const i=As(s),c=gt(t,s,e,a);return i(),vt(),c});return l?r.unshift(o):r.push(o),o}}const St=e=>(t,s=Be)=>{(!ps||e==="sp")&&Ys(e,(...l)=>t(...l),s)},Sa=St("bm"),Ct=St("m"),Ca=St("bu"),Ta=St("u"),no=St("bum"),ct=St("um"),Ea=St("sp"),Pa=St("rtg"),Ra=St("rtc");function Aa(e,t=Be){Ys("ec",e,t)}const Ma="components",lo=Symbol.for("v-ndc");function La(e){return Le(e)?Oa(Ma,e,!1)||e:e||lo}function Oa(e,t,s=!0,l=!1){const r=We||Be;if(r){const o=r.type;{const i=qo(o,!1);if(i&&(i===t||i===tt(t)||i===Ns(tt(t))))return o}const a=oo(r[e]||o[e],t)||oo(r.appContext[e],t);return!a&&l?o:a}}function oo(e,t){return e&&(e[t]||e[tt(t)]||e[Ns(tt(t))])}function pe(e,t,s,l){let r;const o=s,a=he(e);if(a||Le(e)){const i=a&&Wt(e);let c=!1,v=!1;i&&(c=!st(e),v=kt(e),e=Bs(e)),r=new Array(e.length);for(let p=0,g=e.length;p<g;p++)r[p]=t(c?v?ns(at(e[p])):at(e[p]):e[p],p,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,o)}else if(Te(e))if(e[Symbol.iterator])r=Array.from(e,(i,c)=>t(i,c,void 0,o));else{const i=Object.keys(e);r=new Array(i.length);for(let c=0,v=i.length;c<v;c++){const p=i[c];r[c]=t(e[p],p,c,o)}}else r=[];return r}function Da(e,t,s={},l,r){if(We.ce||We.parent&&us(We.parent)&&We.parent.ce){const v=Object.keys(s).length>0;return u(),et(q,null,[_e("slot",s,l)],v?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),u();const a=o&&ro(o(s)),i=s.key||a&&a.key,c=et(q,{key:(i&&!ot(i)?i:`_${t}`)+(!a&&l?"_fb":"")},a||[],a&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function ro(e){return e.some(t=>sn(t)?!(t.type===dt||t.type===q&&!ro(t.children)):!0)?e:null}const Hn=e=>e?Bo(e)?sl(e):Hn(e.parent):null,Ts=Ie(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=>Hn(e.parent),$root:e=>Hn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>co(e),$forceUpdate:e=>e.f||(e.f=()=>{Nn(e.update)}),$nextTick:e=>e.n||(e.n=In.bind(e.proxy)),$watch:e=>ya.bind(e)}),Kn=(e,t)=>e!==Re&&!e.__isScriptSetup&&Se(e,t),Fa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:r,props:o,accessCache:a,type:i,appContext:c}=e;if(t[0]!=="$"){const $=a[t];if($!==void 0)switch($){case 1:return l[t];case 2:return r[t];case 4:return s[t];case 3:return o[t]}else{if(Kn(l,t))return a[t]=1,l[t];if(r!==Re&&Se(r,t))return a[t]=2,r[t];if(Se(o,t))return a[t]=3,o[t];if(s!==Re&&Se(s,t))return a[t]=4,s[t];Vn&&(a[t]=0)}}const v=Ts[t];let p,g;if(v)return t==="$attrs"&&qe(e.attrs,"get",""),v(e);if((p=i.__cssModules)&&(p=p[t]))return p;if(s!==Re&&Se(s,t))return a[t]=4,s[t];if(g=c.config.globalProperties,Se(g,t))return g[t]},set({_:e},t,s){const{data:l,setupState:r,ctx:o}=e;return Kn(r,t)?(r[t]=s,!0):l!==Re&&Se(l,t)?(l[t]=s,!0):Se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:l,appContext:r,props:o,type:a}},i){let c;return!!(s[i]||e!==Re&&i[0]!=="$"&&Se(e,i)||Kn(t,i)||Se(o,i)||Se(l,i)||Se(Ts,i)||Se(r.config.globalProperties,i)||(c=a.__cssModules)&&c[i])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Se(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function ao(e){return he(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Vn=!0;function Ia(e){const t=co(e),s=e.proxy,l=e.ctx;Vn=!1,t.beforeCreate&&io(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:a,watch:i,provide:c,inject:v,created:p,beforeMount:g,mounted:$,beforeUpdate:x,updated:_,activated:m,deactivated:S,beforeDestroy:U,beforeUnmount:M,destroyed:b,unmounted:k,render:O,renderTracked:P,renderTriggered:j,errorCaptured:X,serverPrefetch:Z,expose:ge,inheritAttrs:Ee,components:we,directives:Ce,filters:me}=t;if(v&&Na(v,l,null),a)for(const H in a){const z=a[H];fe(z)&&(l[H]=z.bind(s))}if(r){const H=r.call(s,s);Te(H)&&(e.data=ss(H))}if(Vn=!0,o)for(const H in o){const z=o[H],ue=fe(z)?z.bind(s,s):fe(z.get)?z.get.bind(s,s):ht,T=!fe(z)&&fe(z.set)?z.set.bind(s):ht,L=K({get:ue,set:T});Object.defineProperty(l,H,{enumerable:!0,configurable:!0,get:()=>L.value,set:E=>L.value=E})}if(i)for(const H in i)uo(i[H],l,s,H);if(c){const H=fe(c)?c.call(s):c;Reflect.ownKeys(H).forEach(z=>{It(z,H[z])})}p&&io(p,e,"c");function ne(H,z){he(z)?z.forEach(ue=>H(ue.bind(s))):z&&H(z.bind(s))}if(ne(Sa,g),ne(Ct,$),ne(Ca,x),ne(Ta,_),ne(wa,m),ne($a,S),ne(Aa,X),ne(Ra,P),ne(Pa,j),ne(no,M),ne(ct,k),ne(Ea,Z),he(ge))if(ge.length){const H=e.exposed||(e.exposed={});ge.forEach(z=>{Object.defineProperty(H,z,{get:()=>s[z],set:ue=>s[z]=ue,enumerable:!0})})}else e.exposed||(e.exposed={});O&&e.render===ht&&(e.render=O),Ee!=null&&(e.inheritAttrs=Ee),we&&(e.components=we),Ce&&(e.directives=Ce),Z&&Un(e)}function Na(e,t,s=ht){he(e)&&(e=zn(e));for(const l in e){const r=e[l];let o;Te(r)?"default"in r?o=ie(r.from||l,r.default,!0):o=ie(r.from||l):o=ie(r),je(o)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[l]=o}}function io(e,t,s){gt(he(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function uo(e,t,s,l){let r=l.includes(".")?Xl(s,l):()=>s[l];if(Le(e)){const o=t[e];fe(o)&&it(r,o)}else if(fe(e))it(r,e.bind(s));else if(Te(e))if(he(e))e.forEach(o=>uo(o,t,s,l));else{const o=fe(e.handler)?e.handler.bind(s):t[e.handler];fe(o)&&it(r,o,e)}}function co(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,i=o.get(t);let c;return i?c=i:!r.length&&!s&&!l?c=t:(c={},r.length&&r.forEach(v=>Xs(c,v,a,!0)),Xs(c,t,a)),Te(t)&&o.set(t,c),c}function Xs(e,t,s,l=!1){const{mixins:r,extends:o}=t;o&&Xs(e,o,s,!0),r&&r.forEach(a=>Xs(e,a,s,!0));for(const a in t)if(!(l&&a==="expose")){const i=ja[a]||s&&s[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const ja={data:fo,props:ho,emits:ho,methods:Es,computed:Es,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:Es,directives:Es,watch:Ua,provide:fo,inject:Ba};function fo(e,t){return t?e?function(){return Ie(fe(e)?e.call(this,this):e,fe(t)?t.call(this,this):t)}:t:e}function Ba(e,t){return Es(zn(e),zn(t))}function zn(e){if(he(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 Es(e,t){return e?Ie(Object.create(null),e,t):t}function ho(e,t){return e?he(e)&&he(t)?[...new Set([...e,...t])]:Ie(Object.create(null),ao(e),ao(t??{})):t}function Ua(e,t){if(!e)return t;if(!t)return e;const s=Ie(Object.create(null),e);for(const l in t)s[l]=Qe(e[l],t[l]);return s}function po(){return{app:null,config:{isNativeTag:pl,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 qa=0;function Ha(e,t){return function(l,r=null){fe(l)||(l=Ie({},l)),r!=null&&!Te(r)&&(r=null);const o=po(),a=new WeakSet,i=[];let c=!1;const v=o.app={_uid:qa++,_component:l,_props:r,_container:null,_context:o,_instance:null,version:Pi,get config(){return o.config},set config(p){},use(p,...g){return a.has(p)||(p&&fe(p.install)?(a.add(p),p.install(v,...g)):fe(p)&&(a.add(p),p(v,...g))),v},mixin(p){return o.mixins.includes(p)||o.mixins.push(p),v},component(p,g){return g?(o.components[p]=g,v):o.components[p]},directive(p,g){return g?(o.directives[p]=g,v):o.directives[p]},mount(p,g,$){if(!c){const x=v._ceVNode||_e(l,r);return x.appContext=o,$===!0?$="svg":$===!1&&($=void 0),e(x,p,$),c=!0,v._container=p,p.__vue_app__=v,sl(x.component)}},onUnmount(p){i.push(p)},unmount(){c&&(gt(i,v._instance,16),e(null,v._container),delete v._container.__vue_app__)},provide(p,g){return o.provides[p]=g,v},runWithContext(p){const g=cs;cs=v;try{return p()}finally{cs=g}}};return v}}let cs=null;const Ka=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${tt(t)}Modifiers`]||e[`${Mt(t)}Modifiers`];function Va(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||Re;let r=s;const o=t.startsWith("update:"),a=o&&Ka(l,t.slice(7));a&&(a.trim&&(r=s.map(p=>Le(p)?p.trim():p)),a.number&&(r=s.map(Cr)));let i,c=l[i=bn(t)]||l[i=bn(tt(t))];!c&&o&&(c=l[i=bn(Mt(t))]),c&>(c,e,6,r);const v=l[i+"Once"];if(v){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,gt(v,e,6,r)}}const za=new WeakMap;function vo(e,t,s=!1){const l=s?za:t.emitsCache,r=l.get(e);if(r!==void 0)return r;const o=e.emits;let a={},i=!1;if(!fe(e)){const c=v=>{const p=vo(v,t,!0);p&&(i=!0,Ie(a,p))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!i?(Te(e)&&l.set(e,null),null):(he(o)?o.forEach(c=>a[c]=null):Ie(a,o),Te(e)&&l.set(e,a),a)}function Zs(e,t){return!e||!Fs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Se(e,t[0].toLowerCase()+t.slice(1))||Se(e,Mt(t))||Se(e,t))}function Y1(){}function go(e){const{type:t,vnode:s,proxy:l,withProxy:r,propsOptions:[o],slots:a,attrs:i,emit:c,render:v,renderCache:p,props:g,data:$,setupState:x,ctx:_,inheritAttrs:m}=e,S=Qs(e);let U,M;try{if(s.shapeFlag&4){const k=r||l,O=k;U=ft(v.call(O,k,p,g,x,$,_)),M=i}else{const k=t;U=ft(k.length>1?k(g,{attrs:i,slots:a,emit:c}):k(g,null)),M=t.props?i:Qa(i)}}catch(k){Rs.length=0,os(k,e,1),U=_e(dt)}let b=U;if(M&&m!==!1){const k=Object.keys(M),{shapeFlag:O}=b;k.length&&O&7&&(o&&k.some(gn)&&(M=Ja(M,o)),b=hs(b,M,!1,!0))}return s.dirs&&(b=hs(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(s.dirs):s.dirs),s.transition&&Bn(b,s.transition),U=b,Qs(S),U}function Wa(e,t=!0){let s;for(let l=0;l<e.length;l++){const r=e[l];if(sn(r)){if(r.type!==dt||r.children==="v-if"){if(s)return;s=r}}else return}return s}const Qa=e=>{let t;for(const s in e)(s==="class"||s==="style"||Fs(s))&&((t||(t={}))[s]=e[s]);return t},Ja=(e,t)=>{const s={};for(const l in e)(!gn(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Ga(e,t,s){const{props:l,children:r,component:o}=e,{props:a,children:i,patchFlag:c}=t,v=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return l?yo(l,a,v):!!a;if(c&8){const p=t.dynamicProps;for(let g=0;g<p.length;g++){const $=p[g];if(mo(a,l,$)&&!Zs(v,$))return!0}}}else return(r||i)&&(!i||!i.$stable)?!0:l===a?!1:l?a?yo(l,a,v):!0:!!a;return!1}function yo(e,t,s){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let r=0;r<l.length;r++){const o=l[r];if(mo(t,e,o)&&!Zs(s,o))return!0}return!1}function mo(e,t,s){const l=e[s],r=t[s];return s==="style"&&Te(l)&&Te(r)?!xn(l,r):l!==r}function Wn({vnode:e,parent:t},s){for(;t;){const l=t.subTree;if(l.suspense&&l.suspense.activeBranch===e&&(l.el=e.el),l===e)(e=t.vnode).el=s,t=t.parent;else break}}const bo={},_o=()=>Object.create(bo),xo=e=>Object.getPrototypeOf(e)===bo;function Ya(e,t,s,l=!1){const r={},o=_o();e.propsDefaults=Object.create(null),wo(e,t,r,o);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);s?e.props=l?r:ea(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Xa(e,t,s,l){const{props:r,attrs:o,vnode:{patchFlag:a}}=e,i=xe(r),[c]=e.propsOptions;let v=!1;if((l||a>0)&&!(a&16)){if(a&8){const p=e.vnode.dynamicProps;for(let g=0;g<p.length;g++){let $=p[g];if(Zs(e.emitsOptions,$))continue;const x=t[$];if(c)if(Se(o,$))x!==o[$]&&(o[$]=x,v=!0);else{const _=tt($);r[_]=Qn(c,i,_,x,e,!1)}else x!==o[$]&&(o[$]=x,v=!0)}}}else{wo(e,t,r,o)&&(v=!0);let p;for(const g in i)(!t||!Se(t,g)&&((p=Mt(g))===g||!Se(t,p)))&&(c?s&&(s[g]!==void 0||s[p]!==void 0)&&(r[g]=Qn(c,i,g,void 0,e,!0)):delete r[g]);if(o!==i)for(const g in o)(!t||!Se(t,g))&&(delete o[g],v=!0)}v&&wt(e.attrs,"set","")}function wo(e,t,s,l){const[r,o]=e.propsOptions;let a=!1,i;if(t)for(let c in t){if(ms(c))continue;const v=t[c];let p;r&&Se(r,p=tt(c))?!o||!o.includes(p)?s[p]=v:(i||(i={}))[p]=v:Zs(e.emitsOptions,c)||(!(c in l)||v!==l[c])&&(l[c]=v,a=!0)}if(o){const c=xe(s),v=i||Re;for(let p=0;p<o.length;p++){const g=o[p];s[g]=Qn(r,c,g,v[g],e,!Se(v,g))}}return a}function Qn(e,t,s,l,r,o){const a=e[s];if(a!=null){const i=Se(a,"default");if(i&&l===void 0){const c=a.default;if(a.type!==Function&&!a.skipFactory&&fe(c)){const{propsDefaults:v}=r;if(s in v)l=v[s];else{const p=As(r);l=v[s]=c.call(null,t),p()}}else l=c;r.ce&&r.ce._setProp(s,l)}a[0]&&(o&&!i?l=!1:a[1]&&(l===""||l===Mt(s))&&(l=!0))}return l}const Za=new WeakMap;function $o(e,t,s=!1){const l=s?Za:t.propsCache,r=l.get(e);if(r)return r;const o=e.props,a={},i=[];let c=!1;if(!fe(e)){const p=g=>{c=!0;const[$,x]=$o(g,t,!0);Ie(a,$),x&&i.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!o&&!c)return Te(e)&&l.set(e,Zt),Zt;if(he(o))for(let p=0;p<o.length;p++){const g=tt(o[p]);ko(g)&&(a[g]=Re)}else if(o)for(const p in o){const g=tt(p);if(ko(g)){const $=o[p],x=a[g]=he($)||fe($)?{type:$}:Ie({},$),_=x.type;let m=!1,S=!0;if(he(_))for(let U=0;U<_.length;++U){const M=_[U],b=fe(M)&&M.name;if(b==="Boolean"){m=!0;break}else b==="String"&&(S=!1)}else m=fe(_)&&_.name==="Boolean";x[0]=m,x[1]=S,(m||Se(x,"default"))&&i.push(g)}}const v=[a,i];return Te(e)&&l.set(e,v),v}function ko(e){return e[0]!=="$"&&!ms(e)}const Jn=e=>e==="_"||e==="_ctx"||e==="$stable",Gn=e=>he(e)?e.map(ft):[ft(e)],ei=(e,t,s)=>{if(t._n)return t;const l=is((...r)=>Gn(t(...r)),s);return l._c=!1,l},So=(e,t,s)=>{const l=e._ctx;for(const r in e){if(Jn(r))continue;const o=e[r];if(fe(o))t[r]=ei(r,o,l);else if(o!=null){const a=Gn(o);t[r]=()=>a}}},Co=(e,t)=>{const s=Gn(t);e.slots.default=()=>s},To=(e,t,s)=>{for(const l in t)(s||!Jn(l))&&(e[l]=t[l])},ti=(e,t,s)=>{const l=e.slots=_o();if(e.vnode.shapeFlag&32){const r=t._;r?(To(l,t,s),s&&_l(l,"_",r,!0)):So(t,l)}else t&&Co(e,t)},si=(e,t,s)=>{const{vnode:l,slots:r}=e;let o=!0,a=Re;if(l.shapeFlag&32){const i=t._;i?s&&i===1?o=!1:To(r,t,s):(o=!t.$stable,So(t,r)),a=t}else t&&(Co(e,t),a={default:1});if(o)for(const i in r)!Jn(i)&&a[i]==null&&delete r[i]},Je=fi;function ni(e){return li(e)}function li(e,t){const s=js();s.__VUE__=!0;const{insert:l,remove:r,patchProp:o,createElement:a,createText:i,createComment:c,setText:v,setElementText:p,parentNode:g,nextSibling:$,setScopeId:x=ht,insertStaticContent:_}=e,m=(f,y,C,F=null,D=null,I=null,J=void 0,Q=null,W=!!y.dynamicChildren)=>{if(f===y)return;f&&!Nt(f,y)&&(F=Pt(f),E(f,D,I,!0),f=null),y.patchFlag===-2&&(W=!1,y.dynamicChildren=null);const{type:B,ref:se,shapeFlag:te}=y;switch(B){case en:S(f,y,C,F);break;case dt:U(f,y,C,F);break;case tn:f==null&&M(y,C,F,J);break;case q:we(f,y,C,F,D,I,J,Q,W);break;default:te&1?O(f,y,C,F,D,I,J,Q,W):te&6?Ce(f,y,C,F,D,I,J,Q,W):(te&64||te&128)&&B.process(f,y,C,F,D,I,J,Q,W,A)}se!=null&&D?Cs(se,f&&f.ref,I,y||f,!y):se==null&&f&&f.ref!=null&&Cs(f.ref,null,I,f,!0)},S=(f,y,C,F)=>{if(f==null)l(y.el=i(y.children),C,F);else{const D=y.el=f.el;y.children!==f.children&&v(D,y.children)}},U=(f,y,C,F)=>{f==null?l(y.el=c(y.children||""),C,F):y.el=f.el},M=(f,y,C,F)=>{[f.el,f.anchor]=_(f.children,y,C,F,f.el,f.anchor)},b=({el:f,anchor:y},C,F)=>{let D;for(;f&&f!==y;)D=$(f),l(f,C,F),f=D;l(y,C,F)},k=({el:f,anchor:y})=>{let C;for(;f&&f!==y;)C=$(f),r(f),f=C;r(y)},O=(f,y,C,F,D,I,J,Q,W)=>{if(y.type==="svg"?J="svg":y.type==="math"&&(J="mathml"),f==null)P(y,C,F,D,I,J,Q,W);else{const B=f.el&&f.el._isVueCE?f.el:null;try{B&&B._beginPatch(),Z(f,y,D,I,J,Q,W)}finally{B&&B._endPatch()}}},P=(f,y,C,F,D,I,J,Q)=>{let W,B;const{props:se,shapeFlag:te,transition:re,dirs:de}=f;if(W=f.el=a(f.type,I,se&&se.is,se),te&8?p(W,f.children):te&16&&X(f.children,W,null,F,D,Yn(f,I),J,Q),de&&Jt(f,null,F,"created"),j(W,f,f.scopeId,J,F),se){for(const Pe in se)Pe!=="value"&&!ms(Pe)&&o(W,Pe,null,se[Pe],I,F);"value"in se&&o(W,"value",null,se.value,I),(B=se.onVnodeBeforeMount)&&mt(B,F,f)}de&&Jt(f,null,F,"beforeMount");const be=oi(D,re);be&&re.beforeEnter(W),l(W,y,C),((B=se&&se.onVnodeMounted)||be||de)&&Je(()=>{B&&mt(B,F,f),be&&re.enter(W),de&&Jt(f,null,F,"mounted")},D)},j=(f,y,C,F,D)=>{if(C&&x(f,C),F)for(let I=0;I<F.length;I++)x(f,F[I]);if(D){let I=D.subTree;if(y===I||Mo(I.type)&&(I.ssContent===y||I.ssFallback===y)){const J=D.vnode;j(f,J,J.scopeId,J.slotScopeIds,D.parent)}}},X=(f,y,C,F,D,I,J,Q,W=0)=>{for(let B=W;B<f.length;B++){const se=f[B]=Q?Tt(f[B]):ft(f[B]);m(null,se,y,C,F,D,I,J,Q)}},Z=(f,y,C,F,D,I,J)=>{const Q=y.el=f.el;let{patchFlag:W,dynamicChildren:B,dirs:se}=y;W|=f.patchFlag&16;const te=f.props||Re,re=y.props||Re;let de;if(C&&Gt(C,!1),(de=re.onVnodeBeforeUpdate)&&mt(de,C,y,f),se&&Jt(y,f,C,"beforeUpdate"),C&&Gt(C,!0),(te.innerHTML&&re.innerHTML==null||te.textContent&&re.textContent==null)&&p(Q,""),B?ge(f.dynamicChildren,B,Q,C,F,Yn(y,D),I):J||z(f,y,Q,null,C,F,Yn(y,D),I,!1),W>0){if(W&16)Ee(Q,te,re,C,D);else if(W&2&&te.class!==re.class&&o(Q,"class",null,re.class,D),W&4&&o(Q,"style",te.style,re.style,D),W&8){const be=y.dynamicProps;for(let Pe=0;Pe<be.length;Pe++){const ke=be[Pe],Ke=te[ke],Ve=re[ke];(Ve!==Ke||ke==="value")&&o(Q,ke,Ke,Ve,D,C)}}W&1&&f.children!==y.children&&p(Q,y.children)}else!J&&B==null&&Ee(Q,te,re,C,D);((de=re.onVnodeUpdated)||se)&&Je(()=>{de&&mt(de,C,y,f),se&&Jt(y,f,C,"updated")},F)},ge=(f,y,C,F,D,I,J)=>{for(let Q=0;Q<y.length;Q++){const W=f[Q],B=y[Q],se=W.el&&(W.type===q||!Nt(W,B)||W.shapeFlag&198)?g(W.el):C;m(W,B,se,null,F,D,I,J,!0)}},Ee=(f,y,C,F,D)=>{if(y!==C){if(y!==Re)for(const I in y)!ms(I)&&!(I in C)&&o(f,I,y[I],null,D,F);for(const I in C){if(ms(I))continue;const J=C[I],Q=y[I];J!==Q&&I!=="value"&&o(f,I,Q,J,D,F)}"value"in C&&o(f,"value",y.value,C.value,D)}},we=(f,y,C,F,D,I,J,Q,W)=>{const B=y.el=f?f.el:i(""),se=y.anchor=f?f.anchor:i("");let{patchFlag:te,dynamicChildren:re,slotScopeIds:de}=y;de&&(Q=Q?Q.concat(de):de),f==null?(l(B,C,F),l(se,C,F),X(y.children||[],C,se,D,I,J,Q,W)):te>0&&te&64&&re&&f.dynamicChildren&&f.dynamicChildren.length===re.length?(ge(f.dynamicChildren,re,C,D,I,J,Q),(y.key!=null||D&&y===D.subTree)&&Eo(f,y,!0)):z(f,y,C,se,D,I,J,Q,W)},Ce=(f,y,C,F,D,I,J,Q,W)=>{y.slotScopeIds=Q,f==null?y.shapeFlag&512?D.ctx.activate(y,C,F,J,W):me(y,C,F,D,I,J,W):$e(f,y,W)},me=(f,y,C,F,D,I,J)=>{const Q=f.component=_i(f,F,D);if(qn(f)&&(Q.ctx.renderer=A),wi(Q,!1,J),Q.asyncDep){if(D&&D.registerDep(Q,ne,J),!f.el){const W=Q.subTree=_e(dt);U(null,W,y,C),f.placeholder=W.el}}else ne(Q,f,y,C,D,I,J)},$e=(f,y,C)=>{const F=y.component=f.component;if(Ga(f,y,C))if(F.asyncDep&&!F.asyncResolved){H(F,y,C);return}else F.next=y,F.update();else y.el=f.el,F.vnode=y},ne=(f,y,C,F,D,I,J)=>{const Q=()=>{if(f.isMounted){let{next:te,bu:re,u:de,parent:be,vnode:Pe}=f;{const Ye=Po(f);if(Ye){te&&(te.el=Pe.el,H(f,te,J)),Ye.asyncDep.then(()=>{Je(()=>{f.isUnmounted||B()},D)});return}}let ke=te,Ke;Gt(f,!1),te?(te.el=Pe.el,H(f,te,J)):te=Pe,re&&_n(re),(Ke=te.props&&te.props.onVnodeBeforeUpdate)&&mt(Ke,be,te,Pe),Gt(f,!0);const Ve=go(f),lt=f.subTree;f.subTree=Ve,m(lt,Ve,g(lt.el),Pt(lt),f,D,I),te.el=Ve.el,ke===null&&Wn(f,Ve.el),de&&Je(de,D),(Ke=te.props&&te.props.onVnodeUpdated)&&Je(()=>mt(Ke,be,te,Pe),D)}else{let te;const{el:re,props:de}=y,{bm:be,m:Pe,parent:ke,root:Ke,type:Ve}=f,lt=us(y);Gt(f,!1),be&&_n(be),!lt&&(te=de&&de.onVnodeBeforeMount)&&mt(te,ke,y),Gt(f,!0);{Ke.ce&&Ke.ce._hasShadowRoot()&&Ke.ce._injectChildStyle(Ve);const Ye=f.subTree=go(f);m(null,Ye,C,F,f,D,I),y.el=Ye.el}if(Pe&&Je(Pe,D),!lt&&(te=de&&de.onVnodeMounted)){const Ye=y;Je(()=>mt(te,ke,Ye),D)}(y.shapeFlag&256||ke&&us(ke.vnode)&&ke.vnode.shapeFlag&256)&&f.a&&Je(f.a,D),f.isMounted=!0,y=C=F=null}};f.scope.on();const W=f.effect=new Sl(Q);f.scope.off();const B=f.update=W.run.bind(W),se=f.job=W.runIfDirty.bind(W);se.i=f,se.id=f.uid,W.scheduler=()=>Nn(se),Gt(f,!0),B()},H=(f,y,C)=>{y.component=f;const F=f.vnode.props;f.vnode=y,f.next=null,Xa(f,y.props,F,C),si(f,y.children,C),pt(),Wl(f),vt()},z=(f,y,C,F,D,I,J,Q,W=!1)=>{const B=f&&f.children,se=f?f.shapeFlag:0,te=y.children,{patchFlag:re,shapeFlag:de}=y;if(re>0){if(re&128){T(B,te,C,F,D,I,J,Q,W);return}else if(re&256){ue(B,te,C,F,D,I,J,Q,W);return}}de&8?(se&16&&Ge(B,D,I),te!==B&&p(C,te)):se&16?de&16?T(B,te,C,F,D,I,J,Q,W):Ge(B,D,I,!0):(se&8&&p(C,""),de&16&&X(te,C,F,D,I,J,Q,W))},ue=(f,y,C,F,D,I,J,Q,W)=>{f=f||Zt,y=y||Zt;const B=f.length,se=y.length,te=Math.min(B,se);let re;for(re=0;re<te;re++){const de=y[re]=W?Tt(y[re]):ft(y[re]);m(f[re],de,C,null,D,I,J,Q,W)}B>se?Ge(f,D,I,!0,!1,te):X(y,C,F,D,I,J,Q,W,te)},T=(f,y,C,F,D,I,J,Q,W)=>{let B=0;const se=y.length;let te=f.length-1,re=se-1;for(;B<=te&&B<=re;){const de=f[B],be=y[B]=W?Tt(y[B]):ft(y[B]);if(Nt(de,be))m(de,be,C,null,D,I,J,Q,W);else break;B++}for(;B<=te&&B<=re;){const de=f[te],be=y[re]=W?Tt(y[re]):ft(y[re]);if(Nt(de,be))m(de,be,C,null,D,I,J,Q,W);else break;te--,re--}if(B>te){if(B<=re){const de=re+1,be=de<se?y[de].el:F;for(;B<=re;)m(null,y[B]=W?Tt(y[B]):ft(y[B]),C,be,D,I,J,Q,W),B++}}else if(B>re)for(;B<=te;)E(f[B],D,I,!0),B++;else{const de=B,be=B,Pe=new Map;for(B=be;B<=re;B++){const V=y[B]=W?Tt(y[B]):ft(y[B]);V.key!=null&&Pe.set(V.key,B)}let ke,Ke=0;const Ve=re-be+1;let lt=!1,Ye=0;const Rt=new Array(Ve);for(B=0;B<Ve;B++)Rt[B]=0;for(B=de;B<=te;B++){const V=f[B];if(Ke>=Ve){E(V,D,I,!0);continue}let R;if(V.key!=null)R=Pe.get(V.key);else for(ke=be;ke<=re;ke++)if(Rt[ke-be]===0&&Nt(V,y[ke])){R=ke;break}R===void 0?E(V,D,I,!0):(Rt[R-be]=B+1,R>=Ye?Ye=R:lt=!0,m(V,y[R],C,null,D,I,J,Q,W),Ke++)}const Xt=lt?ri(Rt):Zt;for(ke=Xt.length-1,B=Ve-1;B>=0;B--){const V=be+B,R=y[V],ae=y[V+1],ye=V+1<se?ae.el||Ao(ae):F;Rt[B]===0?m(null,R,C,ye,D,I,J,Q,W):lt&&(ke<0||B!==Xt[ke]?L(R,C,ye,2):ke--)}}},L=(f,y,C,F,D=null)=>{const{el:I,type:J,transition:Q,children:W,shapeFlag:B}=f;if(B&6){L(f.component.subTree,y,C,F);return}if(B&128){f.suspense.move(y,C,F);return}if(B&64){J.move(f,y,C,A);return}if(J===q){l(I,y,C);for(let te=0;te<W.length;te++)L(W[te],y,C,F);l(f.anchor,y,C);return}if(J===tn){b(f,y,C);return}if(F!==2&&B&1&&Q)if(F===0)Q.beforeEnter(I),l(I,y,C),Je(()=>Q.enter(I),D);else{const{leave:te,delayLeave:re,afterLeave:de}=Q,be=()=>{f.ctx.isUnmounted?r(I):l(I,y,C)},Pe=()=>{I._isLeaving&&I[_a](!0),te(I,()=>{be(),de&&de()})};re?re(I,be,Pe):Pe()}else l(I,y,C)},E=(f,y,C,F=!1,D=!1)=>{const{type:I,props:J,ref:Q,children:W,dynamicChildren:B,shapeFlag:se,patchFlag:te,dirs:re,cacheIndex:de}=f;if(te===-2&&(D=!1),Q!=null&&(pt(),Cs(Q,null,C,f,!0),vt()),de!=null&&(y.renderCache[de]=void 0),se&256){y.ctx.deactivate(f);return}const be=se&1&&re,Pe=!us(f);let ke;if(Pe&&(ke=J&&J.onVnodeBeforeUnmount)&&mt(ke,y,f),se&6)Vt(f.component,C,F);else{if(se&128){f.suspense.unmount(C,F);return}be&&Jt(f,null,y,"beforeUnmount"),se&64?f.type.remove(f,y,C,A,F):B&&!B.hasOnce&&(I!==q||te>0&&te&64)?Ge(B,y,C,!1,!0):(I===q&&te&384||!D&&se&16)&&Ge(W,y,C),F&&le(f)}(Pe&&(ke=J&&J.onVnodeUnmounted)||be)&&Je(()=>{ke&&mt(ke,y,f),be&&Jt(f,null,y,"unmounted")},C)},le=f=>{const{type:y,el:C,anchor:F,transition:D}=f;if(y===q){Me(C,F);return}if(y===tn){k(f);return}const I=()=>{r(C),D&&!D.persisted&&D.afterLeave&&D.afterLeave()};if(f.shapeFlag&1&&D&&!D.persisted){const{leave:J,delayLeave:Q}=D,W=()=>J(C,I);Q?Q(f.el,I,W):W()}else I()},Me=(f,y)=>{let C;for(;f!==y;)C=$(f),r(f),f=C;r(y)},Vt=(f,y,C)=>{const{bum:F,scope:D,job:I,subTree:J,um:Q,m:W,a:B}=f;Ro(W),Ro(B),F&&_n(F),D.stop(),I&&(I.flags|=8,E(J,f,y,C)),Q&&Je(Q,y),Je(()=>{f.isUnmounted=!0},y)},Ge=(f,y,C,F=!1,D=!1,I=0)=>{for(let J=I;J<f.length;J++)E(f[J],y,C,F,D)},Pt=f=>{if(f.shapeFlag&6)return Pt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const y=$(f.anchor||f.el),C=y&&y[ma];return C?$(C):y};let oe=!1;const ee=(f,y,C)=>{let F;f==null?y._vnode&&(E(y._vnode,null,null,!0),F=y._vnode.component):m(y._vnode||null,f,y,null,null,null,C),y._vnode=f,oe||(oe=!0,Wl(F),Ql(),oe=!1)},A={p:m,um:E,m:L,r:le,mt:me,mc:X,pc:z,pbc:ge,n:Pt,o:e};return{render:ee,hydrate:void 0,createApp:Ha(ee)}}function Yn({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 oi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Eo(e,t,s=!1){const l=e.children,r=t.children;if(he(l)&&he(r))for(let o=0;o<l.length;o++){const a=l[o];let i=r[o];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=r[o]=Tt(r[o]),i.el=a.el),!s&&i.patchFlag!==-2&&Eo(a,i)),i.type===en&&(i.patchFlag===-1&&(i=r[o]=Tt(i)),i.el=a.el),i.type===dt&&!i.el&&(i.el=a.el)}}function ri(e){const t=e.slice(),s=[0];let l,r,o,a,i;const c=e.length;for(l=0;l<c;l++){const v=e[l];if(v!==0){if(r=s[s.length-1],e[r]<v){t[l]=r,s.push(l);continue}for(o=0,a=s.length-1;o<a;)i=o+a>>1,e[s[i]]<v?o=i+1:a=i;v<e[s[o]]&&(o>0&&(t[l]=s[o-1]),s[o]=l)}}for(o=s.length,a=s[o-1];o-- >0;)s[o]=a,a=t[a];return s}function Po(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Po(t)}function Ro(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ao(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ao(t.subTree):null}const Mo=e=>e.__isSuspense;let Xn=0;const ai={name:"Suspense",__isSuspense:!0,process(e,t,s,l,r,o,a,i,c,v){if(e==null)ii(t,s,l,r,o,a,i,c,v);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}ui(e,t,s,l,r,a,i,c,v)}},hydrate:ci,normalize:di};function Ps(e,t){const s=e.props&&e.props[t];fe(s)&&s()}function ii(e,t,s,l,r,o,a,i,c){const{p:v,o:{createElement:p}}=c,g=p("div"),$=e.suspense=Lo(e,r,l,t,g,s,o,a,i,c);v(null,$.pendingBranch=e.ssContent,g,null,l,$,o,a),$.deps>0?(Ps(e,"onPending"),Ps(e,"onFallback"),v(null,e.ssFallback,t,s,l,null,o,a),ds($,e.ssFallback)):$.resolve(!1,!0)}function ui(e,t,s,l,r,o,a,i,{p:c,um:v,o:{createElement:p}}){const g=t.suspense=e.suspense;g.vnode=t,t.el=e.el;const $=t.ssContent,x=t.ssFallback,{activeBranch:_,pendingBranch:m,isInFallback:S,isHydrating:U}=g;if(m)g.pendingBranch=$,Nt(m,$)?(c(m,$,g.hiddenContainer,null,r,g,o,a,i),g.deps<=0?g.resolve():S&&(U||(c(_,x,s,l,r,null,o,a,i),ds(g,x)))):(g.pendingId=Xn++,U?(g.isHydrating=!1,g.activeBranch=m):v(m,r,g),g.deps=0,g.effects.length=0,g.hiddenContainer=p("div"),S?(c(null,$,g.hiddenContainer,null,r,g,o,a,i),g.deps<=0?g.resolve():(c(_,x,s,l,r,null,o,a,i),ds(g,x))):_&&Nt(_,$)?(c(_,$,s,l,r,g,o,a,i),g.resolve(!0)):(c(null,$,g.hiddenContainer,null,r,g,o,a,i),g.deps<=0&&g.resolve()));else if(_&&Nt(_,$))c(_,$,s,l,r,g,o,a,i),ds(g,$);else if(Ps(t,"onPending"),g.pendingBranch=$,$.shapeFlag&512?g.pendingId=$.component.suspenseId:g.pendingId=Xn++,c(null,$,g.hiddenContainer,null,r,g,o,a,i),g.deps<=0)g.resolve();else{const{timeout:M,pendingId:b}=g;M>0?setTimeout(()=>{g.pendingId===b&&g.fallback(x)},M):M===0&&g.fallback(x)}}function Lo(e,t,s,l,r,o,a,i,c,v,p=!1){const{p:g,m:$,um:x,n:_,o:{parentNode:m,remove:S}}=v;let U;const M=hi(e);M&&t&&t.pendingBranch&&(U=t.pendingId,t.deps++);const b=e.props?Tr(e.props.timeout):void 0,k=o,O={vnode:e,parent:t,parentComponent:s,namespace:a,container:l,hiddenContainer:r,deps:0,pendingId:Xn++,timeout:typeof b=="number"?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!p,isHydrating:p,isUnmounted:!1,effects:[],resolve(P=!1,j=!1){const{vnode:X,activeBranch:Z,pendingBranch:ge,pendingId:Ee,effects:we,parentComponent:Ce,container:me,isInFallback:$e}=O;let ne=!1;O.isHydrating?O.isHydrating=!1:P||(ne=Z&&ge.transition&&ge.transition.mode==="out-in",ne&&(Z.transition.afterLeave=()=>{Ee===O.pendingId&&($(ge,me,o===k?_(Z):o,0),jn(we),$e&&X.ssFallback&&(X.ssFallback.el=null))}),Z&&(m(Z.el)===me&&(o=_(Z)),x(Z,Ce,O,!0),!ne&&$e&&X.ssFallback&&Je(()=>X.ssFallback.el=null,O)),ne||$(ge,me,o,0)),ds(O,ge),O.pendingBranch=null,O.isInFallback=!1;let H=O.parent,z=!1;for(;H;){if(H.pendingBranch){H.effects.push(...we),z=!0;break}H=H.parent}!z&&!ne&&jn(we),O.effects=[],M&&t&&t.pendingBranch&&U===t.pendingId&&(t.deps--,t.deps===0&&!j&&t.resolve()),Ps(X,"onResolve")},fallback(P){if(!O.pendingBranch)return;const{vnode:j,activeBranch:X,parentComponent:Z,container:ge,namespace:Ee}=O;Ps(j,"onFallback");const we=_(X),Ce=()=>{O.isInFallback&&(g(null,P,ge,we,Z,null,Ee,i,c),ds(O,P))},me=P.transition&&P.transition.mode==="out-in";me&&(X.transition.afterLeave=Ce),O.isInFallback=!0,x(X,Z,null,!0),me||Ce()},move(P,j,X){O.activeBranch&&$(O.activeBranch,P,j,X),O.container=P},next(){return O.activeBranch&&_(O.activeBranch)},registerDep(P,j,X){const Z=!!O.pendingBranch;Z&&O.deps++;const ge=P.vnode.el;P.asyncDep.catch(Ee=>{os(Ee,P,0)}).then(Ee=>{if(P.isUnmounted||O.isUnmounted||O.pendingId!==P.suspenseId)return;P.asyncResolved=!0;const{vnode:we}=P;tl(P,Ee),ge&&(we.el=ge);const Ce=!ge&&P.subTree.el;j(P,we,m(ge||P.subTree.el),ge?null:_(P.subTree),O,a,X),Ce&&(we.placeholder=null,S(Ce)),Wn(P,we.el),Z&&--O.deps===0&&O.resolve()})},unmount(P,j){O.isUnmounted=!0,O.activeBranch&&x(O.activeBranch,s,P,j),O.pendingBranch&&x(O.pendingBranch,s,P,j)}};return O}function ci(e,t,s,l,r,o,a,i,c){const v=t.suspense=Lo(t,l,s,e.parentNode,document.createElement("div"),null,r,o,a,i,!0),p=c(e,v.pendingBranch=t.ssContent,s,v,o,a);return v.deps===0&&v.resolve(!1,!0),p}function di(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=Oo(l?s.default:s),e.ssFallback=l?Oo(s.fallback):_e(dt)}function Oo(e){let t;if(fe(e)){const s=fs&&e._c;s&&(e._d=!1,u()),e=e(),s&&(e._d=!0,t=Ze,Do())}return he(e)&&(e=Wa(e)),e=ft(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function fi(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):jn(e)}function ds(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let r=t.el;for(;!r&&t.component;)t=t.component.subTree,r=t.el;s.el=r,l&&l.subTree===s&&(l.vnode.el=r,Wn(l,r))}function hi(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const q=Symbol.for("v-fgt"),en=Symbol.for("v-txt"),dt=Symbol.for("v-cmt"),tn=Symbol.for("v-stc"),Rs=[];let Ze=null;function u(e=!1){Rs.push(Ze=e?null:[])}function Do(){Rs.pop(),Ze=Rs[Rs.length-1]||null}let fs=1;function Fo(e,t=!1){fs+=e,e<0&&Ze&&t&&(Ze.hasOnce=!0)}function Io(e){return e.dynamicChildren=fs>0?Ze||Zt:null,Do(),fs>0&&Ze&&Ze.push(e),e}function d(e,t,s,l,r,o){return Io(n(e,t,s,l,r,o,!0))}function et(e,t,s,l,r){return Io(_e(e,t,s,l,r,!0))}function sn(e){return e?e.__v_isVNode===!0:!1}function Nt(e,t){return e.type===t.type&&e.key===t.key}const No=({key:e})=>e??null,nn=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Le(e)||je(e)||fe(e)?{i:We,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,l=0,r=null,o=e===q?0:1,a=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&No(t),ref:t&&nn(t),scopeId:Gl,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:l,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:We};return i?(Zn(c,s),o&128&&e.normalize(c)):s&&(c.shapeFlag|=Le(s)?8:16),fs>0&&!a&&Ze&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ze.push(c),c}const _e=pi;function pi(e,t=null,s=null,l=0,r=null,o=!1){if((!e||e===lo)&&(e=dt),sn(e)){const i=hs(e,t,!0);return s&&Zn(i,s),fs>0&&!o&&Ze&&(i.shapeFlag&6?Ze[Ze.indexOf(e)]=i:Ze.push(i)),i.patchFlag=-2,i}if(Ei(e)&&(e=e.__vccOpts),t){t=vi(t);let{class:i,style:c}=t;i&&!Le(i)&&(t.class=N(i)),Te(c)&&(Dn(c)&&!he(c)&&(c=Ie({},c)),t.style=Ne(c))}const a=Le(e)?1:Mo(e)?128:ba(e)?64:Te(e)?4:fe(e)?2:0;return n(e,t,s,l,r,a,o,!0)}function vi(e){return e?Dn(e)||xo(e)?Ie({},e):e:null}function hs(e,t,s=!1,l=!1){const{props:r,ref:o,patchFlag:a,children:i,transition:c}=e,v=t?yi(r||{},t):r,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:v,key:v&&No(v),ref:t&&t.ref?s&&o?he(o)?o.concat(nn(t)):[o,nn(t)]:nn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==q?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&hs(e.ssContent),ssFallback:e.ssFallback&&hs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&l&&Bn(p,c.clone(p)),p}function ve(e=" ",t=0){return _e(en,null,e,t)}function gi(e,t){const s=_e(tn,null,e);return s.staticCount=t,s}function Y(e="",t=!1){return t?(u(),et(dt,null,e)):_e(dt,null,e)}function ft(e){return e==null||typeof e=="boolean"?_e(dt):he(e)?_e(q,null,e.slice()):sn(e)?Tt(e):_e(en,null,String(e))}function Tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:hs(e)}function Zn(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(he(t))s=16;else if(typeof t=="object")if(l&65){const r=t.default;r&&(r._c&&(r._d=!1),Zn(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!xo(t)?t._ctx=We:r===3&&We&&(We.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else fe(t)?(t={default:t,_ctx:We},s=32):(t=String(t),l&64?(s=16,t=[ve(t)]):s=8);e.children=t,e.shapeFlag|=s}function yi(...e){const t={};for(let s=0;s<e.length;s++){const l=e[s];for(const r in l)if(r==="class")t.class!==l.class&&(t.class=N([t.class,l.class]));else if(r==="style")t.style=Ne([t.style,l.style]);else if(Fs(r)){const o=t[r],a=l[r];a&&o!==a&&!(he(o)&&o.includes(a))&&(t[r]=o?[].concat(o,a):a)}else r!==""&&(t[r]=l[r])}return t}function mt(e,t,s,l=null){gt(e,t,7,[s,l])}const mi=po();let bi=0;function _i(e,t,s){const l=e.type,r=(t?t.appContext:e.appContext)||mi,o={uid:bi++,vnode:e,type:l,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Or(!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:$o(l,r),emitsOptions:vo(l,r),emit:null,emitted:null,propsDefaults:Re,inheritAttrs:l.inheritAttrs,ctx:Re,data:Re,props:Re,attrs:Re,slots:Re,refs:Re,setupState:Re,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=Va.bind(null,o),e.ce&&e.ce(o),o}let Be=null;const xi=()=>Be||We;let ln,el;{const e=js(),t=(s,l)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(l),o=>{r.length>1?r.forEach(a=>a(o)):r[0](o)}};ln=t("__VUE_INSTANCE_SETTERS__",s=>Be=s),el=t("__VUE_SSR_SETTERS__",s=>ps=s)}const As=e=>{const t=Be;return ln(e),e.scope.on(),()=>{e.scope.off(),ln(t)}},jo=()=>{Be&&Be.scope.off(),ln(null)};function Bo(e){return e.vnode.shapeFlag&4}let ps=!1;function wi(e,t=!1,s=!1){t&&el(t);const{props:l,children:r}=e.vnode,o=Bo(e);Ya(e,l,o,t),ti(e,r,s||t);const a=o?$i(e,t):void 0;return t&&el(!1),a}function $i(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fa);const{setup:l}=s;if(l){pt();const r=e.setupContext=l.length>1?Si(e):null,o=As(e),a=ls(l,e,0,[e.props,r]),i=yl(a);if(vt(),o(),(i||e.sp)&&!us(e)&&Un(e),i){if(a.then(jo,jo),t)return a.then(c=>{tl(e,c)}).catch(c=>{os(c,e,0)});e.asyncDep=a}else tl(e,a)}else Uo(e)}function tl(e,t,s){fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=Hl(t)),Uo(e)}function Uo(e,t,s){const l=e.type;e.render||(e.render=l.render||ht);{const r=As(e);pt();try{Ia(e)}finally{vt(),r()}}}const ki={get(e,t){return qe(e,"get",""),e[t]}};function Si(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ki),slots:e.slots,emit:e.emit,expose:t}}function sl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Hl(ta(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ts)return Ts[s](e)},has(t,s){return s in t||s in Ts}})):e.proxy}const Ci=/(?:^|[-_])\w/g,Ti=e=>e.replace(Ci,t=>t.toUpperCase()).replace(/[-_]/g,"");function qo(e,t=!0){return fe(e)?e.displayName||e.name:e.name||t&&e.__name}function Ho(e,t,s=!1){let l=qo(t);if(!l&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(l=r[1])}if(!l&&e){const r=o=>{for(const a in o)if(o[a]===t)return a};l=r(e.components)||e.parent&&r(e.parent.type.components)||r(e.appContext.components)}return l?Ti(l):s?"App":"Anonymous"}function Ei(e){return fe(e)&&"__vccOpts"in e}const K=(e,t)=>ra(e,t,ps),Pi="3.5.29";let nl;const Ko=typeof window<"u"&&window.trustedTypes;if(Ko)try{nl=Ko.createPolicy("vue",{createHTML:e=>e})}catch{}const Vo=nl?e=>nl.createHTML(e):e=>e,Ri="http://www.w3.org/2000/svg",Ai="http://www.w3.org/1998/Math/MathML",Et=typeof document<"u"?document:null,zo=Et&&Et.createElement("template"),Mi={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,l)=>{const r=t==="svg"?Et.createElementNS(Ri,e):t==="mathml"?Et.createElementNS(Ai,e):s?Et.createElement(e,{is:s}):Et.createElement(e);return e==="select"&&l&&l.multiple!=null&&r.setAttribute("multiple",l.multiple),r},createText:e=>Et.createTextNode(e),createComment:e=>Et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,l,r,o){const a=s?s.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===o||!(r=r.nextSibling)););else{zo.innerHTML=Vo(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const i=zo.content;if(l==="svg"||l==="mathml"){const c=i.firstChild;for(;c.firstChild;)i.appendChild(c.firstChild);i.removeChild(c)}t.insertBefore(i,s)}return[a?a.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Li=Symbol("_vtc");function Oi(e,t,s){const l=e[Li];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Wo=Symbol("_vod"),Di=Symbol("_vsh"),Fi=Symbol(""),Ii=/(?:^|;)\s*display\s*:/;function Ni(e,t,s){const l=e.style,r=Le(s);let o=!1;if(s&&!r){if(t)if(Le(t))for(const a of t.split(";")){const i=a.slice(0,a.indexOf(":")).trim();s[i]==null&&on(l,i,"")}else for(const a in t)s[a]==null&&on(l,a,"");for(const a in s)a==="display"&&(o=!0),on(l,a,s[a])}else if(r){if(t!==s){const a=l[Fi];a&&(s+=";"+a),l.cssText=s,o=Ii.test(s)}}else t&&e.removeAttribute("style");Wo in e&&(e[Wo]=o?l.display:"",e[Di]&&(l.display="none"))}const Qo=/\s*!important$/;function on(e,t,s){if(he(s))s.forEach(l=>on(e,t,l));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const l=ji(e,t);Qo.test(s)?e.setProperty(Mt(l),s.replace(Qo,""),"important"):e[l]=s}}const Jo=["Webkit","Moz","ms"],ll={};function ji(e,t){const s=ll[t];if(s)return s;let l=tt(t);if(l!=="filter"&&l in e)return ll[t]=l;l=Ns(l);for(let r=0;r<Jo.length;r++){const o=Jo[r]+l;if(o in e)return ll[t]=o}return t}const Go="http://www.w3.org/1999/xlink";function Yo(e,t,s,l,r,o=Mr(t)){l&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Go,t.slice(6,t.length)):e.setAttributeNS(Go,t,s):s==null||o&&!wl(s)?e.removeAttribute(t):e.setAttribute(t,o?"":ot(s)?String(s):s)}function Xo(e,t,s,l,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Vo(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(i!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let a=!1;if(s===""||s==null){const i=typeof e[t];i==="boolean"?s=wl(s):s==null&&i==="string"?(s="",a=!0):i==="number"&&(s=0,a=!0)}try{e[t]=s}catch{}a&&e.removeAttribute(r||t)}function Bi(e,t,s,l){e.addEventListener(t,s,l)}function Ui(e,t,s,l){e.removeEventListener(t,s,l)}const Zo=Symbol("_vei");function qi(e,t,s,l,r=null){const o=e[Zo]||(e[Zo]={}),a=o[t];if(l&&a)a.value=l;else{const[i,c]=Hi(t);if(l){const v=o[t]=zi(l,r);Bi(e,i,v,c)}else a&&(Ui(e,i,a,c),o[t]=void 0)}}const er=/(?:Once|Passive|Capture)$/;function Hi(e){let t;if(er.test(e)){t={};let l;for(;l=e.match(er);)e=e.slice(0,e.length-l[0].length),t[l[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Mt(e.slice(2)),t]}let ol=0;const Ki=Promise.resolve(),Vi=()=>ol||(Ki.then(()=>ol=0),ol=Date.now());function zi(e,t){const s=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=s.attached)return;gt(Wi(l,s.value),t,5,[l])};return s.value=e,s.attached=Vi(),s}function Wi(e,t){if(he(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(l=>r=>!r._stopped&&l&&l(r))}else return t}const tr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Qi=(e,t,s,l,r,o)=>{const a=r==="svg";t==="class"?Oi(e,l,a):t==="style"?Ni(e,s,l):Fs(t)?gn(t)||qi(e,t,s,l,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ji(e,t,l,a))?(Xo(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Yo(e,t,l,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Le(l))?Xo(e,tt(t),l,o,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Yo(e,t,l,a))};function Ji(e,t,s,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&tr(t)&&fe(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 tr(t)&&Le(s)?!1:t in e}const Gi=["ctrl","shift","alt","meta"],Yi={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)=>Gi.some(s=>e[`${s}Key`]&&!t.includes(s))},jt=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),l=t.join(".");return s[l]||(s[l]=((r,...o)=>{for(let a=0;a<t.length;a++){const i=Yi[t[a]];if(i&&i(r,t))return}return e(r,...o)}))},Xi={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ms=(e,t)=>{const s=e._withKeys||(e._withKeys={}),l=t.join(".");return s[l]||(s[l]=(r=>{if(!("key"in r))return;const o=Mt(r.key);if(t.some(a=>a===o||Xi[a]===o))return e(r)}))},Zi=Ie({patchProp:Qi},Mi);let sr;function eu(){return sr||(sr=ni(Zi))}const tu=((...e)=>{const t=eu().createApp(...e),{mount:s}=t;return t.mount=l=>{const r=nu(l);if(!r)return;const o=t._component;!fe(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const a=s(r,!1,su(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t});function su(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function nu(e){return Le(e)?document.querySelector(e):e}function lu(e,t){const s=e||(typeof window<"u"?window.location.origin:"");if(!t)return{baseUrl:s};const l={headers:{Authorization:`Bearer ${t}`}};return{baseUrl:s,beforeSubscribe(r){return l},beforeUnsubscribe(r){return l}}}async function ou(){if(typeof window<"u"&&window.Transmit&&typeof window.Transmit=="function")return window.Transmit;try{const e=await import("@adonisjs/transmit-client");return e.Transmit??e.default??null}catch{return null}}function ru(e){let t=null,s=null,l=!1;return{subscribe:async()=>{try{const a=await ou();if(!a)throw new Error("Transmit client not available (neither window.Transmit nor @adonisjs/transmit-client)");if(l)return;t=new a(lu(e.baseUrl,e.authToken)),s=t.subscription(e.channelName),s.onMessage(i=>{l||e.onMessage(i)}),await s.create()}catch(a){e.onError?.(a)}},unsubscribe:async()=>{l=!0;try{await s?.delete(),s=null,t=null}catch{}}}}function au(e){let t=!1;const s=ru({baseUrl:e.baseUrl,channelName:e.channelName,authToken:e.authToken,onMessage:e.onMessage,onError:l=>{t=!0,e.onError?.(l),e.onDisconnect?.()}});return s.subscribe().then(()=>{t||e.onConnect?.()}).catch(l=>{e.onError?.(l),e.onDisconnect?.()}),{unsubscribe:()=>{s.unsubscribe().catch(()=>{})}}}class rn extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class iu extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class rl{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const r={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},o=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:r,credentials:this.authToken?"omit":"same-origin"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(o.status===401||o.status===403)throw new rn(o.status);if(!o.ok){const a=await o.text().catch(()=>"");throw new iu(o.status,a)}return o.json()}async get(t,s){const l=s?`${t}?${s}`:t;return this.fetch(l)}async post(t,s){const l={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,l)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const an="ss-dash-theme",al="ss-theme-change";function Ls(){if(typeof window>"u")return"light";const e=localStorage.getItem(an);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function uu(e){typeof window>"u"||(localStorage.setItem(an,e),window.dispatchEvent(new CustomEvent(al,{detail:e})))}function cu(){const t=Ls()==="dark"?"light":"dark";return uu(t),t}function nr(e){if(typeof window>"u")return()=>{};const t=o=>{const a=o.detail;(a==="dark"||a==="light")&&e(a)},s=o=>{if(o.key===an){const a=o.newValue;e(a==="dark"||a==="light"?a:Ls())}},l=window.matchMedia("(prefers-color-scheme: dark)"),r=o=>{localStorage.getItem(an)||e(o.matches?"dark":"light")};return window.addEventListener(al,t),window.addEventListener("storage",s),l.addEventListener("change",r),()=>{window.removeEventListener(al,t),window.removeEventListener("storage",s),l.removeEventListener("change",r)}}const du={color:"#34d399",fillOpacityTop:.25,fillOpacityBottom:.02,strokeWidth:1.5,width:120,height:32,padding:2};function fu(e){return{...du,...e}}let hu=0;function pu(){return`ss-grad-${hu++}`}function vu(e){if(e.length===0)return null;let t=e[0],s=e[0],l=e[0];for(let r=1;r<e.length;r++){const o=e[r];o<t&&(t=o),o>s&&(s=o),l+=o}return{min:t,max:s,avg:l/e.length}}function gu(e,t){if(e.length<2)return null;const s=fu(t),l=vu(e),r=l.max-l.min||1,o=s.width-s.padding*2,a=s.height-s.padding*2,i=s.padding,c=e.length,v=Array.from({length:c});for(let m=0;m<c;m++){const S=i+m/(c-1)*o,U=i+a-(e[m]-l.min)/r*a;v[m]=`${S.toFixed(1)},${U.toFixed(1)}`}const p=v.join(" "),g=(i+o).toFixed(1),$=(i+a).toFixed(1),x=i.toFixed(1),_=`M${v[0]} `+v.slice(1).map(m=>`L${m}`).join(" ")+` L${g},${$} L${x},${$} Z`;return{points:p,areaPath:_,gradientId:pu(),options:s,stats:l}}const yu=5e3,lr=1e4,or=100,mu=500;function bu(e){return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"'}function _u(e,t,s){if(e.length===0)return"[]";const l=e.slice(0,3).map(a=>s(a,30)),r=e.length>3?", ..."+e.length+" items":"",o="["+l.join(", ")+r+"]";return o.length>t?"["+e.length+" items]":o}function xu(e,t,s){const l=Object.keys(e);if(l.length===0)return"{}";const r=[];for(let c=0;c<Math.min(l.length,4);c++)r.push(l[c]+": "+s(e[l[c]],30));const o=l.length>4?", ...+"+(l.length-4):"",a="{ "+r.join(", ")+o+" }";return a.length<=t?a:"{ "+(l.slice(0,6).join(", ")+(l.length>6?", ...":""))+" }"}function wu(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),l=Math.floor(t%86400/3600),r=Math.floor(t%3600/60);return s>0?`${s}d ${l}h`:l>0?`${l}h ${r}m`:r>0?`${r}m ${t%60}s`:`${t}s`}function Bt(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function rr(e){return/([+-]\d{2}:?\d{2}|Z)\s*$/.test(e)?e:e+"Z"}function Ut(e){if(!e)return"-";const t=typeof e=="string"?new Date(rr(e)):new Date(e);return Number.isNaN(t.getTime())?"-":t.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})+"."+String(t.getMilliseconds()).padStart(3,"0")}function bt(e){if(!e)return"-";const t=typeof e=="string"?new Date(rr(e)).getTime():e,s=Math.floor((Date.now()-t)/1e3);return s<0?"just now":s<60?`${s}s ago`:s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:`${Math.floor(s/86400)}d ago`}function $u(e){return e>mu?"very-slow":e>or?"slow":"normal"}function il(e,t="ss-dash"){const s=$u(e);return s==="very-slow"?`${t}-very-slow`:s==="slow"?`${t}-slow`:""}function un(e,t=100){return e===null?"null":e===void 0?"-":typeof e=="string"?bu(e):typeof e=="number"||typeof e=="boolean"?String(e):Array.isArray(e)?_u(e,t,un):typeof e=="object"?xu(e,t,un):String(e)}function ku(e){return e<0?"no expiry":e<60?`${e}s`:e<3600?`${Math.floor(e/60)}m`:e<86400?`${Math.floor(e/3600)}h`:`${Math.floor(e/86400)}d`}function Su(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}const Cu=[{key:"page",param:"page",isNumeric:!0},{key:"perPage",param:"perPage",isNumeric:!0},{key:"search",param:"search"},{key:"sort",param:"sort"},{key:"sortDir",param:"direction"},{key:"timeRange",param:"range"}];function Tu(e){const t=new URLSearchParams,s=e;for(const{key:l,param:r,isNumeric:o}of Cu){const a=s[l];(o?a!=null:a)&&t.set(r,String(a))}if(e.filters)for(const[l,r]of Object.entries(e.filters))r&&t.set(l,r);return t.toString()}function Eu(e,t,s=2){if(t<=1)return[1];const l=[],r=Math.max(2,e-s),o=Math.min(t-1,e+s);l.push(1),r>2&&l.push("...");for(let a=r;a<=o;a++)l.push(a);return o<t-1&&l.push("..."),t>1&&l.push(t),l}const Pu=["tracing","process","system","http","db","redis","queues","cache","app","log","emails","dashboard"],ar="/admin/api/debug",ir={tracing:!1,process:!1,system:!1,http:!1,db:!1,redis:!1,queues:!1,cache:!1,app:!1,log:!1,emails:!1,dashboard:!1,customPanes:[]};function Ru(e){const t={customPanes:e.customPanes??[]},s=e.features;for(const l of Pu)t[l]=s?.[l]??!1;return t}async function Au(e,t=ar){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function Mu(e){const{baseUrl:t="",debugEndpoint:s=ar,authToken:l}=e,r=new rl({baseUrl:t,authToken:l});try{const o=await Au(r,s);return Ru(o)}catch{return ir}}const Lu={overview:"/overview",requests:"/requests",queries:"/queries",events:"/events",routes:"/routes",logs:"/logs",emails:"/emails",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config"};function Ou(e){return Lu[e]||`/${e}`}class ur{constructor(t,s){this.client=t,this.basePath=s}async fetchSection(t,s,l){const r=Ou(t),o=s?`${this.basePath}${r}?${s}`:`${this.basePath}${r}`;return this.client.fetch(o,l)}async fetchChart(t){return this.client.fetch(`${this.basePath}/overview/chart?range=${t}`)}async fetchGroupedQueries(){return this.client.fetch(`${this.basePath}/queries/grouped`)}async explainQuery(t){return this.client.fetch(`${this.basePath}/queries/${t}/explain`)}async retryJob(t){return this.client.fetch(`${this.basePath}/jobs/${t}/retry`,{method:"POST"})}async fetchCacheKey(t,s){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`,s)}async deleteCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`,{method:"DELETE"})}async fetchEmailPreview(t,s){return this.client.fetch(`${this.basePath}/emails/${t}/preview`,s)}}function Du(e){if(!e||typeof e!="object")return!1;const t=e;return t.data!==void 0&&t.meta!==void 0}function Fu(e,t){return t.aborted?!0:e instanceof DOMException&&e.name==="AbortError"}class Iu{client;api;callbacks;endpoint;perPage;section;page=1;search;sort;sortDir;filters;timeRange;timer=null;fetchId=0;explicitFetchPending=!1;hasFetched=!1;stopped=!1;abortController=null;constructor(t){this.client=new rl({baseUrl:t.baseUrl,authToken:t.authToken}),this.api=new ur(this.client,t.endpoint),this.endpoint=t.endpoint,this.section=t.section,this.perPage=t.perPage,this.callbacks=t.callbacks}start(){this.stopped=!1,this.fetch(!1),this.startRefreshTimer()}stop(){this.stopped=!0,this.stopRefreshTimer(),this.abortController?.abort(),this.abortController=null}async fetch(t=!0){if(this.shouldSkipFetch(t))return;const{controller:s,myFetchId:l}=this.prepareFetch(t);try{const r=await this.executeFetch(s);if(this.isStaleResponse(l))return;this.applyFetchResult(r)}catch(r){if(this.shouldIgnoreError(r,s.signal,l))return;this.handleFetchError(r,t)}finally{t||(this.explicitFetchPending=!1)}}setSection(t){this.section!==t&&(this.section=t,this.page=1,this.search=void 0,this.sort=void 0,this.sortDir=void 0,this.filters=void 0,this.hasFetched=!1,this.callbacks.onData(null),this.callbacks.onPagination(null),this.callbacks.onLoading(!0),this.callbacks.onError(null),this.fetch(!1),this.startRefreshTimer())}setPage(t){this.page=t,this.fetch(!1)}setSearch(t){this.search=t||void 0,this.page=1,this.fetch(!1)}setFilter(t,s){this.filters||(this.filters={}),this.filters[t]=String(s),this.page=1,this.fetch(!1)}setSort(t,s){this.sort===t&&!s?this.sortDir=this.sortDir==="asc"?"desc":"asc":(this.sort=t,this.sortDir=s||"desc"),this.fetch(!1)}setTimeRange(t){this.timeRange=t,this.fetch(!1)}async mutate(t,s="post",l){const r=`${this.endpoint}/${t}`;try{const o=s==="post"?await this.client.post(r,l):await this.client.delete(r);return await this.fetch(!0),o}catch(o){throw o instanceof Error?o:new Error(String(o))}}configure(t){t.page!==void 0&&(this.page=t.page),t.perPage!==void 0&&(this.perPage=t.perPage),this.search=t.search,this.sort=t.sort,this.sortDir=t.sortDir,this.filters=t.filters,this.timeRange=t.timeRange}hasData(){return this.hasFetched}handleRefreshSignal(){this.hasFetched&&this.fetch(!0)}getApi(){return this.api}getClient(){return this.client}shouldSkipFetch(t){return t&&this.explicitFetchPending?!0:!this.section}prepareFetch(t){this.abortController?.abort();const s=new AbortController;this.abortController=s;const l=++this.fetchId;return t||(this.callbacks.onLoading(!0),this.explicitFetchPending=!0),{controller:s,myFetchId:l}}async executeFetch(t){const s=this.buildCurrentQueryString();return this.api.fetchSection(this.section,s||void 0,{signal:t.signal})}isStaleResponse(t){return t!==this.fetchId||this.stopped}shouldIgnoreError(t,s,l){return Fu(t,s)?!0:this.isStaleResponse(l)}buildCurrentQueryString(){const t=this.sort?this.sort.replace(/[A-Z]/g,l=>"_"+l.toLowerCase()):void 0,s=this.filters;return Tu({page:this.page,perPage:this.perPage,search:this.search,sort:t,sortDir:this.sort?this.sortDir:void 0,filters:s&&Object.keys(s).length>0?s:void 0,timeRange:this.section.startsWith("overview")?this.timeRange:void 0})}applyFetchResult(t){Du(t)?(this.callbacks.onData(t.data),this.callbacks.onPagination(t.meta)):(this.callbacks.onData(t),this.callbacks.onPagination(null)),this.callbacks.onError(null),this.callbacks.onLoading(!1),this.hasFetched=!0}handleFetchError(t,s){if(t instanceof rn){this.callbacks.onError(t),this.callbacks.onLoading(!1),this.stopRefreshTimer(),this.callbacks.onUnauthorized();return}s||(this.callbacks.onError(t instanceof Error?t:new Error(String(t))),this.callbacks.onLoading(!1))}startRefreshTimer(){this.stopRefreshTimer();const t=this.section==="overview"?yu:lr;this.timer=setInterval(()=>this.fetch(!0),t)}stopRefreshTimer(){this.timer&&(clearInterval(this.timer),this.timer=null)}}const He={queries:{viewBox:"0 0 24 24",elements:['<ellipse cx="12" cy="5" rx="9" ry="3"/>','<path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"/>','<path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/>']},events:{viewBox:"0 0 24 24",elements:['<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>']},emails:{viewBox:"0 0 24 24",elements:['<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/>','<polyline points="22,6 12,13 2,6"/>']},routes:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<line x1="2" y1="12" x2="22" y2="12"/>','<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>']},logs:{viewBox:"0 0 24 24",elements:['<line x1="8" y1="6" x2="21" y2="6"/>','<line x1="8" y1="12" x2="21" y2="12"/>','<line x1="8" y1="18" x2="21" y2="18"/>','<line x1="3" y1="6" x2="3.01" y2="6"/>','<line x1="3" y1="12" x2="3.01" y2="12"/>','<line x1="3" y1="18" x2="3.01" y2="18"/>']},timeline:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},cache:{viewBox:"0 0 24 24",elements:['<rect x="2" y="2" width="20" height="8" rx="2" ry="2"/>','<rect x="2" y="14" width="20" height="8" rx="2" ry="2"/>','<line x1="6" y1="6" x2="6.01" y2="6"/>','<line x1="6" y1="18" x2="6.01" y2="18"/>']},jobs:{viewBox:"0 0 24 24",elements:['<rect x="2" y="7" width="20" height="14" rx="2" ry="2"/>','<path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/>']},config:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="3"/>','<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>']},internals:{viewBox:"0 0 24 24",elements:['<rect x="4" y="4" width="16" height="16" rx="2"/>','<rect x="9" y="9" width="6" height="6"/>','<line x1="9" y1="1" x2="9" y2="4"/>','<line x1="15" y1="1" x2="15" y2="4"/>','<line x1="9" y1="20" x2="9" y2="23"/>','<line x1="15" y1="20" x2="15" y2="23"/>','<line x1="20" y1="9" x2="23" y2="9"/>','<line x1="20" y1="14" x2="23" y2="14"/>','<line x1="1" y1="9" x2="4" y2="9"/>','<line x1="1" y1="14" x2="4" y2="14"/>']},overview:{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="7" height="7"/>','<rect x="14" y="3" width="7" height="7"/>','<rect x="14" y="14" width="7" height="7"/>','<rect x="3" y="14" width="7" height="7"/>']},requests:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},"dashboard-timeline":{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<polyline points="12 6 12 12 16 14"/>']},"custom-pane":{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="18" height="18" rx="2"/>','<path d="M9 3v18"/>']},wrench:{viewBox:"0 0 24 24",elements:['<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/>']},"external-link":{viewBox:"0 0 24 24",elements:['<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>','<polyline points="15 3 21 3 21 9"/>','<line x1="10" y1="14" x2="21" y2="3"/>']},sun:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="5"/>','<line x1="12" y1="1" x2="12" y2="3"/>','<line x1="12" y1="21" x2="12" y2="23"/>','<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>','<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>','<line x1="1" y1="12" x2="3" y2="12"/>','<line x1="21" y1="12" x2="23" y2="12"/>','<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>','<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>']},moon:{viewBox:"0 0 24 24",elements:['<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>']},search:{viewBox:"0 0 24 24",elements:['<circle cx="11" cy="11" r="8"/>','<line x1="21" y1="21" x2="16.65" y2="16.65"/>']},eye:{viewBox:"0 0 24 24",elements:['<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>','<circle cx="12" cy="12" r="3"/>']},"eye-off":{viewBox:"0 0 24 24",elements:['<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/>','<path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/>','<line x1="1" y1="1" x2="23" y2="23"/>','<path d="M14.12 14.12a3 3 0 1 1-4.24-4.24"/>']},"chevron-right":{viewBox:"0 0 24 24",elements:['<path d="M9 18l6-6-6-6"/>']},"chevron-left":{viewBox:"0 0 24 24",elements:['<path d="M15 18l-6-6 6-6"/>']},"open-external":{viewBox:"0 0 16 16",elements:['<path d="M6 3H3v10h10v-3M9 1h6v6M7 9L15 1"/>']}},Nu="ss-col-resize",cr="ss-resizing";function ju(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let l=!1;function r(){if(!l){l=!0;for(const o of t)o.style.width=o.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const o of t){let a=function(c){c.preventDefault(),c.stopPropagation(),r();const v=c.clientX,p=o.offsetWidth;i.classList.add(cr),i.setPointerCapture(c.pointerId);function g(x){const _=x.clientX-v,m=Math.max(30,p+_);o.style.width=m+"px"}function $(){i.classList.remove(cr),i.removeEventListener("pointermove",g),i.removeEventListener("pointerup",$)}i.addEventListener("pointermove",g),i.addEventListener("pointerup",$)};if(!o.textContent?.trim())continue;const i=document.createElement("div");i.className=Nu,o.appendChild(i),i.addEventListener("pointerdown",a),s.push(()=>{i.removeEventListener("pointerdown",a),i.remove()})}return()=>{for(const o of s)o()}}function Bu(e){const{container:t,handle:s,topPane:l,bottomPane:r,storageKey:o,minHeight:a=60}=e;if(o){const c=localStorage.getItem(o);if(c){const v=parseFloat(c);v>0&&v<1&&(l.style.flex=`${v}`,r.style.flex=`${1-v}`)}}function i(c){c.preventDefault(),s.setPointerCapture(c.pointerId);const p=t.getBoundingClientRect().height,g=c.clientY,$=l.getBoundingClientRect().height;function x(m){const S=m.clientY-g;let U=$+S;const M=p-a-s.offsetHeight;U=Math.max(a,Math.min(U,M));const b=U/(p-s.offsetHeight);l.style.flex=`${b}`,r.style.flex=`${1-b}`}function _(){if(s.removeEventListener("pointermove",x),s.removeEventListener("pointerup",_),o){const m=t.getBoundingClientRect().height-s.offsetHeight;if(m>0){const S=l.getBoundingClientRect().height/m;localStorage.setItem(o,String(S))}}}s.addEventListener("pointermove",x),s.addEventListener("pointerup",_)}return s.addEventListener("pointerdown",i),()=>{s.removeEventListener("pointerdown",i)}}function Uu(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return null}return typeof e=="object"&&e!==null&&!Array.isArray(e)?e:null}function dr(e){const t={};for(const[s,l]of Object.entries(e))Hu.has(s)||(t[s]=l);return Object.keys(t).length>0?t:null}const qu=["all","error","warn","info","debug"];function cn(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function fr(e){return e.msg||e.message||JSON.stringify(e)}function qt(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function Ht(e){const t=e.data||{};return e.requestId||e.request_id||e["x-request-id"]||t.requestId||t.request_id||t["x-request-id"]||""}function hr(e,t="ss-dbg-log-level"){switch(e){case"error":case"fatal":return`${t}-error`;case"warn":return`${t}-warn`;case"info":return`${t}-info`;case"debug":return`${t}-debug`;case"trace":return`${t}-trace`;default:return`${t}-info`}}const Hu=new Set(["level","time","pid","hostname","msg","message","v","name","levelName","level_name","timestamp","createdAt","created_at","requestId","request_id","x-request-id","id","data"]);function _t(e){if(e.data){const t=Uu(e.data);if(t){const s=dr(t);if(s)return s}}return dr(e)}function Ue(e,...t){for(const s of t){const l=e[s];if(l!=null)return l}}function Ku(e){return Ue(e,"createdAt","created_at","timestamp")}function Vu(e){return Ue(e,"method","sql_method")??""}function pr(e){return Ue(e,"sqlNormalized","normalizedSql","sql_normalized","sql")??""}function zu(e,t){let s=0,l=0;for(const c of e){const v=Ue(c,"duration")??0;l+=v,v>or&&s++}const r=vr(e);let o=0;for(const c of r.values())c>1&&(o+=c);const a=e.length>0?l/e.length:0,i=t?.total??e.length;return{slowCount:s,dupCount:o,avgDuration:a,totalCount:i}}function Wu(e){return{id:Ue(e,"id")??0,sql:Ue(e,"sql","sql_text")??"",sqlNormalized:pr(e),duration:Ue(e,"duration")??0,method:Vu(e),model:Ue(e,"model")??"",connection:Ue(e,"connection")??"",timestamp:Ku(e)??0,inTransaction:Ue(e,"inTransaction","in_transaction")??!1}}function vr(e){const t=new Map;for(const s of e){const r=pr(s);t.set(r,(t.get(r)||0)+1)}return t}function Qu(e){const t=[];if(e["Startup Cost"]!==null&&e["Startup Cost"]!==void 0&&t.push(`cost=${e["Startup Cost"]}..${e["Total Cost"]}`),e["Plan Rows"]!==null&&e["Plan Rows"]!==void 0&&t.push(`rows=${e["Plan Rows"]}`),e["Plan Width"]!==null&&e["Plan Width"]!==void 0&&t.push(`width=${e["Plan Width"]}`),e.Filter&&t.push(`filter: ${e.Filter}`),e["Index Cond"]&&t.push(`cond: ${e["Index Cond"]}`),e["Hash Cond"]&&t.push(`hash: ${e["Hash Cond"]}`),e["Join Type"]&&t.push(`join: ${e["Join Type"]}`),e["Sort Key"]){const s=Array.isArray(e["Sort Key"])?e["Sort Key"].join(", "):e["Sort Key"];t.push(`sort: ${s}`)}return t}function gr(e,t=0){if(!e)return[];const l=[{depth:t,nodeType:e["Node Type"]||"Unknown",relationName:e["Relation Name"]||"",alias:e.Alias&&e.Alias!==e["Relation Name"]?e.Alias:"",indexName:e["Index Name"]||"",metrics:Qu(e),isRoot:t===0}],r=e.Plans||[];for(const o of r)l.push(...gr(o,t+1));return l}function Ju(e){return!e||typeof e!="object"?!1:"Plan"in e}function Gu(e){if(!e||e.length===0)return[];const t=e[0];return!t||typeof t!="object"?[]:Object.keys(t)}function Yu(e){return e==null?"-":String(e)}function Xu(e){const t=[{key:"id",label:"#",width:"40px",type:"index"},{key:"sql",label:"SQL",type:"sql"},{key:"duration",label:"Duration",width:"70px",sortable:!0,type:"duration"},{key:"method",label:"Method",width:"60px",type:"method"},{key:"model",label:"Model",width:"90px",type:"model"},{key:"connection",label:"Connection",width:"80px",type:"connection"},{key:"createdAt",label:"Time",width:"90px",sortable:!0,type:"time"}];return t.push({key:"id",label:"",width:"70px",type:"explain"}),t}function Zu(){return[{key:"sqlNormalized",label:"Pattern",type:"sql"},{key:"count",label:"Count",width:"60px",sortable:!0},{key:"avgDuration",label:"Avg",width:"70px",sortable:!0,type:"duration"},{key:"minDuration",label:"Min",width:"70px",type:"duration"},{key:"maxDuration",label:"Max",width:"70px",type:"duration"},{key:"totalDuration",label:"Total",width:"70px",sortable:!0,type:"duration"},{key:"percentOfTotal",label:"% Time",width:"60px"}]}class ec{state;constructor(t="list"){this.state={viewMode:t,sort:{key:t==="list"?"createdAt":"count",dir:"desc"},expandedIds:new Set,explainData:new Map,search:""}}setViewMode(t){return this.state.viewMode=t,this.state.sort={key:t==="list"?"createdAt":"count",dir:"desc"},this.state.expandedIds=new Set,this.state.explainData=new Map,this.state}toggleSort(t){return this.state.sort.key===t?this.state.sort={key:t,dir:this.state.sort.dir==="asc"?"desc":"asc"}:this.state.sort={key:t,dir:"desc"},this.state}toggleExpand(t){return this.state.expandedIds.has(t)?this.state.expandedIds.delete(t):this.state.expandedIds.add(t),this.state}isExpanded(t){return this.state.expandedIds.has(t)}setSearch(t){return this.state.search=t,this.state}startExplain(t){this.state.explainData.set(t,{loading:!0})}completeExplain(t,s){this.state.explainData.set(t,{loading:!1,result:s})}failExplain(t,s){this.state.explainData.set(t,{loading:!1,error:s})}clearExplain(){this.state.explainData=new Map}getExplainState(t){return this.state.explainData.get(t)}}const tc=["all","active","waiting","delayed","completed","failed"];function sc(e){switch(e){case"active":return"blue";case"waiting":return"amber";case"delayed":return"purple";case"completed":return"green";case"failed":return"red";default:return"muted"}}function nc(e){if(!e)return[];if(Array.isArray(e))return e;const t=e;return t.jobs||t.data||[]}function lc(e){if(!e||Array.isArray(e))return null;const t=e;return t.stats||t.overview||null}function oc(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function rc(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function ul(e,t,s,l=0){return e[t]??e[s]??l}function ac(e){return{method:e.method||"",url:e.url||"",statusCode:ul(e,"status_code","statusCode"),totalDuration:ul(e,"total_duration","totalDuration")||e.duration||0,spanCount:ul(e,"span_count","spanCount"),spans:oc(e.spans),warnings:rc(e.warnings),logs:e.logs||[],httpRequestId:e.httpRequestId||e.http_request_id||void 0}}const ic=["password","secret","token","key","credential","auth"];function uc(e){const t=e.toLowerCase();return ic.some(s=>t.includes(s))}function cc(e){if(e==null)return"-";if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e))return e.join(", ")||"-";try{return JSON.stringify(e)}catch{return String(e)}}const dc={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function fc(e){return dc[e]||e}const hc={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function pc(e){return hc[e]||e}function vc(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function gc(e,t){return t.mode?`Mode: ${t.mode}`:e==="edgePlugin"&&t.active?"@serverStats() tag registered":e==="cacheInspector"?t.available?"Redis dependency detected":"Redis not installed":e==="queueInspector"?t.available?"Queue dependency detected":"@rlanz/bull-queue not installed":"-"}function yc(e){return Object.entries(e).map(([t,s])=>({key:t,value:cc(s),secret:uc(t)}))}function mc(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const bc=["healthy","active","connected","available","ready"],_c=["errored","unavailable"];function xc(e){return bc.includes(e)?"ok":_c.includes(e)?"err":""}function De(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function dn(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)&&!De(e)}function fn(e,t=""){if(!dn(e))return[{path:t,value:e}];const s=[];for(const l of Object.keys(e)){const r=t?`${t}.${l}`:l,o=e[l];dn(o)?s.push(...fn(o,r)):s.push({path:r,value:o})}return s}function wc(e){return e==null?{text:"null",color:"var(--ss-dim)"}:typeof e=="boolean"?{text:String(e),color:e?"var(--ss-green-fg)":"var(--ss-red-fg)"}:typeof e=="number"?{text:String(e),color:"var(--ss-amber-fg)"}:Array.isArray(e)?{text:`[${e.map(s=>s==null?"null":typeof s=="object"?JSON.stringify(s):String(s)).join(", ")}]`,color:"var(--ss-purple-fg)"}:typeof e=="object"?{text:JSON.stringify(e),color:"var(--ss-dim)"}:{text:String(e)}}function yr(e){if(e==null||typeof e!="object"||Array.isArray(e)||De(e))return 1;let t=0;for(const s of Object.keys(e))t+=yr(e[s]);return t}function $c(e){if(!dn(e))return[];const t=[];for(const s of Object.keys(e))dn(e[s])&&t.push(s);return t}function kc(e,t,s){t&&navigator.clipboard.writeText(e).then(()=>{const l=t.textContent;t.textContent="✓",t.classList.add(`${s}-copy-row-ok`),setTimeout(()=>{t.textContent=l,t.classList.remove(`${s}-copy-row-ok`)},1200)}).catch(()=>{})}function Sc(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:l}=e,r=G({...ir}),o=G(!0);return Ct(async()=>{r.value=await Mu({baseUrl:t,debugEndpoint:s,authToken:l}),o.value=!1}),{features:r,loading:o}}function mr(){const e=G(Ls());let t=null;function s(r){e.value=r}function l(){const r=cu();return e.value=r,r}return Ct(()=>{e.value=Ls(),t=nr(s)}),ct(()=>{t?.()}),{theme:e,toggleTheme:l}}function Cc(e){let t=null;return{onData:s=>{t=s},onPagination:s=>{s?(e.pagination.total=s.total,e.pagination.totalPages=s.lastPage??(Math.ceil(s.total/e.pagination.perPage)||1),e.data.value={data:t,meta:s}):e.data.value=t},onLoading:s=>{e.loading.value=s},onError:s=>{e.error.value=s},onUnauthorized:()=>{e.isUnauthorized.value=!0}}}function Tc(e){const t={};for(const[s,l]of Object.entries(e))s!=="search"&&l!==""&&l!==void 0&&l!==null&&(t[s]=String(l));return t}async function cl(e){try{return await e()}catch{return null}}function Ec(e){return{fetchGroupedQueries:()=>cl(()=>e.fetchGroupedQueries()),explainQuery:t=>cl(()=>e.explainQuery(t)),fetchEmailPreview:async(t,s)=>(await cl(()=>e.fetchEmailPreview(t,s)))?.html||null}}function Pc(e){return{retryJob:async t=>{try{return await e.retryJob(t),!0}catch{return!1}},deleteCacheKey:async t=>{try{return await e.deleteCacheKey(t),!0}catch{return!1}}}}function Rc(e,t){return{fetchChart:async s=>{try{return await e.fetchChart(s)}catch(l){return l instanceof rn&&(t.value=!0),null}}}}function Os(e,t,s){const l=t(),r=Tc(s.filter);e.configure({page:s.pagination.page,perPage:s.pagination.perPage,search:s.filter.search||void 0,sort:s.sort.column||void 0,sortDir:s.sort.column?s.sort.direction:void 0,filters:Object.keys(r).length>0?r:void 0,timeRange:l.startsWith("overview")?s.timeRange.value:void 0})}function Ac(e,t){return{goToPage(s){e.pagination.page=s,t()},setSearch(s){e.filter.search=s,e.pagination.page=1,t()},setFilter(s,l){e.filter[s]=l,e.pagination.page=1,t()},setSort(s,l){e.sort.column===s&&!l?e.sort.direction=e.sort.direction==="asc"?"desc":"asc":(e.sort.column=s,e.sort.direction=l||"desc"),t()},setTimeRange(s){e.timeRange.value=s,t()}}}function Mc(e,t,s){return{async mutate(l,r="post",o){return e.mutate(l,r,o)},refresh(){Os(e,t,s),e.fetch(!0)},startRefresh(){e.start()},stopRefresh(){e.stop()}}}function Lc(e,t,s,l){it(t,()=>{s.pagination.page=1;for(const r of Object.keys(s.filter))r==="search"?s.filter.search="":delete s.filter[r];s.sort.column="",s.data.value=null,e.setSection(t()),Os(e,t,s)}),l&&it(l,()=>{Os(e,t,s),e.handleRefreshSignal()})}function Oc(e){return{data:G(null),loading:G(!1),error:G(null),isUnauthorized:G(!1),timeRange:G("1h"),pagination:ss({page:1,perPage:e,total:0,totalPages:1}),filter:ss({search:""}),sort:ss({column:"",direction:"desc"})}}function Dc(e,t,s,l){return{data:e.data,loading:e.loading,error:e.error,isUnauthorized:e.isUnauthorized,pagination:e.pagination,filter:e.filter,sort:e.sort,timeRange:e.timeRange,...t,...s,...l}}function nt(e,t={}){const{baseUrl:s="",dashboardEndpoint:l="/__stats/api",authToken:r,perPage:o=50,refreshKey:a}=t,i=Oc(o),c=new Iu({baseUrl:s,endpoint:l,authToken:r,section:e(),perPage:o,callbacks:Cc(i)}),v=c.getApi(),g=Ac(i,()=>{Os(c,e,i),c.fetch(!1)}),$=Mc(c,e,i),x={...Rc(v,i.isUnauthorized),...Ec(v),...Pc(v)};return Lc(c,e,i,a),Ct(()=>{Os(c,e,i),c.start()}),ct(()=>{c.stop()}),Dc(i,g,$,x)}const Fc=["title","aria-label"],Ic=["viewBox","innerHTML"],Nc=["viewBox","innerHTML"],jc=Oe({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:l}=mr(),r=K(()=>s.value==="dark"),o=K(()=>r.value?"Switch to light theme":"Switch to dark theme"),a=K(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(i,c)=>(u(),d("button",{type:"button",class:N(a.value),title:o.value,"aria-label":o.value,onClick:c[0]||(c[0]=(...v)=>w(l)&&w(l)(...v))},[r.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:w(He).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(He).sun.elements.join("")},null,8,Ic)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:w(He).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(He).moon.elements.join("")},null,8,Nc))],10,Fc))}}),Bc=["data-theme"],Uc={class:"ss-dash-header"},qc={class:"ss-dash-header-center"},Hc={class:"ss-dash-header-right"},Kc=["href"],Vc={class:"ss-dash-body"},zc={class:"ss-dash-nav"},Wc=["data-ss-section","onClick","title"],Qc={class:"ss-dash-nav-icon"},Jc=["viewBox","innerHTML"],Gc={class:"ss-dash-nav-label"},Yc={key:0,class:"ss-dash-nav-sep"},Xc=["onClick","title"],Zc={class:"ss-dash-nav-icon"},ed=["viewBox","innerHTML"],td={class:"ss-dash-nav-label"},sd=["title"],nd=["viewBox","innerHTML"],ld=["viewBox","innerHTML"],od={class:"ss-dash-main"},rd=["id"],ad={class:"ss-dash-pane-inner"},id={key:1,class:"ss-dash-empty"},ud=Oe({__name:"DashboardPage",props:{baseUrl:{default:""},dashboardEndpoint:{default:"/__stats/api"},debugEndpoint:{default:void 0},authToken:{default:void 0},backUrl:{default:"/"},channelName:{default:"server-stats/dashboard"}},setup(e){const t=ut(()=>Promise.resolve().then(()=>yh)),s=ut(()=>Promise.resolve().then(()=>yp)),l=ut(()=>Promise.resolve().then(()=>tv)),r=ut(()=>Promise.resolve().then(()=>iv)),o=ut(()=>Promise.resolve().then(()=>yv)),a=ut(()=>Promise.resolve().then(()=>Bv)),i=ut(()=>Promise.resolve().then(()=>ng)),c=ut(()=>Promise.resolve().then(()=>kg)),v=ut(()=>Promise.resolve().then(()=>Qg)),p=ut(()=>Promise.resolve().then(()=>d1)),g=ut(()=>Promise.resolve().then(()=>W1)),$=["overview","requests","queries","events","routes","logs","emails","cache","jobs","config","internals"],x=e,{theme:_}=mr(),{features:m}=Sc({baseUrl:x.baseUrl,debugEndpoint:x.debugEndpoint,authToken:x.authToken}),S=G("overview"),U=G(!1),M=G(!1),b=G(0);It("ss-refresh-key",b),It("ss-base-url",x.baseUrl),It("ss-dashboard-endpoint",x.dashboardEndpoint),It("ss-debug-endpoint",x.debugEndpoint),It("ss-auth-token",x.authToken),typeof window<"u"&&(U.value=localStorage.getItem("ss-dash-sidebar")==="collapsed");let k=null;function O(){if(k&&(k(),k=null),!x.channelName)return;k=au({baseUrl:x.baseUrl,channelName:x.channelName,authToken:x.authToken,onMessage:()=>{b.value+=1},onConnect:()=>{M.value=!0},onDisconnect:()=>{M.value=!1},onError:()=>{M.value=!1}}).unsubscribe}Ct(()=>{O()}),ct(()=>{k&&(k(),k=null)});const P=K(()=>m.value.customPanes||[]);function j(ue){const T=ue.replace("#","").split("?")[0];return T&&[...$,...P.value.map(E=>E.id)].includes(T)?T:"overview"}function X(){const ue=j(window.location.hash);ue!==S.value&&(S.value=ue)}Ct(()=>{if(typeof window>"u")return;const ue=j(window.location.hash);(ue!=="overview"||window.location.hash)&&(S.value=ue),window.addEventListener("hashchange",X)}),ct(()=>{window.removeEventListener("hashchange",X)}),it(S,ue=>{typeof window<"u"&&(window.location.hash=ue)});function Z(){U.value=!U.value,localStorage.setItem("ss-dash-sidebar",U.value?"collapsed":"expanded")}function ge(ue){ue!==S.value&&(S.value=ue)}const Ee=K(()=>[{id:"overview",label:"Overview",visible:!0},{id:"requests",label:"Requests",visible:!0},{id:"queries",label:"Queries",visible:!0},{id:"events",label:"Events",visible:!0},{id:"routes",label:"Routes",visible:!0},{id:"logs",label:"Logs",visible:!0},{id:"emails",label:"Emails",visible:!0},{id:"cache",label:"Cache",visible:m.value.cache},{id:"jobs",label:"Jobs",visible:m.value.queues},{id:"config",label:"Config",visible:!0},{id:"internals",label:"Internals",visible:!0}]),we=K(()=>Ee.value.filter(ue=>ue.visible)),{data:Ce,loading:me}=nt(()=>"overview",{baseUrl:x.baseUrl,dashboardEndpoint:x.dashboardEndpoint,authToken:x.authToken,refreshKey:b}),$e=K(()=>Ce.value);It("ss-overview-data",Ce),It("ss-overview-loading",me);const ne=K(()=>{const ue={};if(!$e.value)return ue;if($e.value.totalRequests>0&&(ue.requests={count:$e.value.totalRequests}),$e.value.queryStats?.total>0&&(ue.queries={count:$e.value.queryStats.total}),$e.value.logLevelBreakdown){const T=$e.value.logLevelBreakdown,L=T.error+T.warn+T.info+T.debug;L>0&&(ue.logs={count:L})}return ue}),H={overview:t,requests:s,queries:l,events:r,routes:o,logs:a,emails:i,cache:c,jobs:v,config:p,internals:g},z=K(()=>H[S.value]||null);return(ue,T)=>(u(),d("div",{class:"ss-dash","data-theme":w(_),id:"ss-dash"},[n("div",Uc,[T[0]||(T[0]=n("div",{class:"ss-dash-header-left"},[n("span",{class:"ss-dash-logo"},"Server Stats"),n("span",{class:"ss-dash-logo-sub"},"Dashboard")],-1)),n("div",qc,[n("span",{class:N(["ss-dash-live-dot",{"ss-dash-connected":M.value}]),id:"ss-dash-live-dot"},null,2),n("span",{class:N(["ss-dash-live-label",{"ss-dash-connected":M.value}]),id:"ss-dash-live-label"},h(M.value?"Live":"Polling"),3)]),n("div",Hc,[_e(jc,{"class-prefix":"ss-dash"}),e.backUrl?(u(),d("a",{key:0,href:e.backUrl,class:"ss-dash-back-link",title:"Back to app"}," ← App ",8,Kc)):Y("",!0)])]),n("div",Vc,[n("div",{class:N(["ss-dash-sidebar",{"ss-dash-collapsed":U.value}]),id:"ss-dash-sidebar"},[n("nav",zc,[(u(!0),d(q,null,pe(we.value,L=>(u(),d("button",{key:L.id,type:"button",class:N(["ss-dash-nav-item",{"ss-dash-active":S.value===L.id}]),"data-ss-section":L.id,onClick:E=>ge(L.id),title:U.value?L.label:void 0},[n("span",Qc,[(u(),d("svg",{width:"20",height:"20",viewBox:(w(He)[L.id]||w(He).config).viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:(w(He)[L.id]||w(He).config).elements.join("")},null,8,Jc))]),n("span",Gc,h(L.label),1),ne.value[L.id]&&ne.value[L.id].count>0?(u(),d("span",{key:0,class:N(["ss-dash-nav-badge",ne.value[L.id].variant||""])},h(ne.value[L.id].count),3)):Y("",!0)],10,Wc))),128)),P.value.length>0?(u(),d("div",Yc)):Y("",!0),(u(!0),d(q,null,pe(P.value,L=>(u(),d("button",{key:L.id,type:"button",class:N(["ss-dash-nav-item",{"ss-dash-active":S.value===L.id}]),onClick:E=>ge(L.id),title:U.value?L.label:void 0},[n("span",Zc,[(u(),d("svg",{width:"20",height:"20",viewBox:w(He)["custom-pane"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(He)["custom-pane"].elements.join("")},null,8,ed))]),n("span",td,h(L.label),1)],10,Xc))),128))]),n("button",{type:"button",class:"ss-dash-sidebar-toggle",id:"ss-dash-sidebar-toggle",onClick:Z,title:U.value?"Expand sidebar":"Collapse sidebar"},[U.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:w(He)["chevron-right"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:w(He)["chevron-right"].elements.join("")},null,8,nd)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:w(He)["chevron-left"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:w(He)["chevron-left"].elements.join("")},null,8,ld))],8,sd)],2),n("div",od,[n("div",{class:"ss-dash-pane ss-dash-active",id:`ss-dash-pane-${S.value}`},[n("div",ad,[(u(),et(ai,null,{fallback:is(()=>[...T[1]||(T[1]=[n("div",{class:"ss-dash-empty"},"Loading...",-1)])]),default:is(()=>[z.value?(u(),et(La(z.value),{key:0})):(u(),d("div",id,"Unknown section"))]),_:1}))])],8,rd)])])],8,Bc))}});function cd(e){const t=document.getElementById(e);return t?JSON.parse(t.textContent||"{}"):{}}function dd(){function e(t){document.documentElement.setAttribute("data-theme",t)}e(Ls()),nr(e)}const vs=cd("ss-dash-config");dd();const br=document.getElementById("ss-dash");br&&tu(ud,{baseUrl:vs.baseUrl,dashboardEndpoint:vs.dashboardEndpoint,debugEndpoint:vs.debugEndpoint,authToken:vs.authToken,backUrl:vs.backUrl,channelName:vs.channelName}).mount(br);const fd=["width","height","viewBox"],hd=["id"],pd=["stop-color"],vd=["stop-color"],gd=["d","fill"],yd=["d","stroke"],md=["x","y"],hn=Oe({__name:"Sparkline",props:{data:{},color:{default:"#34d399"},width:{default:120},height:{default:32}},setup(e){const t=e,s=K(()=>gu(t.data,{width:t.width,height:t.height,color:t.color})),l=K(()=>s.value!==null),r=K(()=>`sg-${t.color.replace("#","")}`);return(o,a)=>(u(),d("div",{class:"ss-dash-sparkline",style:Ne({"--ss-accent":e.color})},[(u(),d("svg",{width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,style:{display:"block"}},[l.value&&s.value?(u(),d(q,{key:0},[n("defs",null,[n("linearGradient",{id:r.value,x1:"0",y1:"0",x2:"0",y2:"1"},[n("stop",{offset:"0%","stop-color":e.color,"stop-opacity":"0.25"},null,8,pd),n("stop",{offset:"100%","stop-color":e.color,"stop-opacity":"0.02"},null,8,vd)],8,hd)]),n("path",{d:s.value.areaPath,fill:`url(#${r.value})`},null,8,gd),n("path",{class:"ss-dash-sparkline-line",d:"M"+s.value.points.replace(/ /g," L"),fill:"none",stroke:e.color,"stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,yd)],64)):(u(),d("text",{key:1,x:e.width/2,y:e.height/2+3,"text-anchor":"middle",fill:"#737373","font-size":"9"}," collecting... ",8,md))],8,fd))],4))}}),bd={class:"ss-dash-btn-group"},_d=["onClick"],xd=Oe({__name:"TimeRangeSelector",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=t,l=[{value:"5m",label:"5m"},{value:"15m",label:"15m"},{value:"30m",label:"30m"},{value:"1h",label:"1h"},{value:"6h",label:"6h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"}];return(r,o)=>(u(),d("div",bd,[(u(),d(q,null,pe(l,a=>n("button",{key:a.value,type:"button",class:N(`ss-dash-btn ${e.modelValue===a.value?"ss-dash-active":""}`),onClick:i=>s("update:modelValue",a.value)},h(a.label),11,_d)),64))]))}}),wd={class:"ss-dash-overview"},$d={key:0,class:"ss-dash-empty"},kd={class:"ss-dash-cards"},Sd={class:"ss-dash-card"},Cd={class:"ss-dash-sparkline"},Td={class:"ss-dash-card"},Ed={class:"ss-dash-sparkline"},Pd={class:"ss-dash-card"},Rd={class:"ss-dash-sparkline"},Ad={class:"ss-dash-card"},Md={class:"ss-dash-sparkline"},Ld={class:"ss-dash-chart-container"},Od={class:"ss-dash-chart-header"},Dd={class:"ss-dash-chart",id:"ss-dash-chart-area"},Fd={key:0,class:"ss-dash-empty",style:{"min-height":"120px"}},Id=["viewBox"],Nd=["id"],jd=["id"],Bd=["x1","y1","x2","y2"],Ud=["x","y"],qd=["d","fill"],Hd=["d"],Kd=["d","fill"],Vd=["d"],zd=["x","y","width","height","data-idx","onMouseenter"],Wd=["cx","cy","r","data-idx","opacity"],Qd=["cx","cy","r","data-idx","opacity"],Jd=["x","y"],Gd={key:0,style:{color:"var(--ss-red-fg)"}},Yd={class:"ss-dash-chart-legend",id:"ss-dash-chart-legend"},Xd={key:0,class:"ss-dash-chart-legend-item"},Zd={class:"ss-dash-secondary-cards"},ef={class:"ss-dash-secondary-card"},tf={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},sf={key:1,class:"ss-dash-secondary-list"},nf=["href"],lf=["title"],of={class:"ss-dash-secondary-card"},rf={class:"ss-dash-secondary-list"},af={class:"ss-dash-secondary-list-value"},uf={class:"ss-dash-secondary-list-value"},cf={class:"ss-dash-secondary-list-value"},df={class:"ss-dash-secondary-card"},ff={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},hf={key:1,class:"ss-dash-secondary-list"},pf=["href"],vf=["title"],gf=["title"],yf={class:"ss-dash-secondary-card"},mf={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},bf={key:1,class:"ss-dash-secondary-list"},_f=["href"],xf={class:"ss-dash-secondary-list-value"},wf={class:"ss-dash-secondary-card"},$f={class:"ss-dash-secondary-list"},kf={href:"#emails?status=sent",class:"ss-dash-widget-row-link"},Sf={class:"ss-dash-secondary-list-value"},Cf={href:"#emails?status=queued",class:"ss-dash-widget-row-link"},Tf={class:"ss-dash-secondary-list-value"},Ef={href:"#emails?status=failed",class:"ss-dash-widget-row-link"},Pf={class:"ss-dash-secondary-card"},Rf={class:"ss-dash-secondary-list"},Af={href:"#logs?level=error",class:"ss-dash-widget-row-link"},Mf={class:"ss-dash-secondary-list-value"},Lf={href:"#logs?level=warn",class:"ss-dash-widget-row-link"},Of={class:"ss-dash-secondary-list-value"},Df={href:"#logs?level=info",class:"ss-dash-widget-row-link"},Ff={class:"ss-dash-secondary-list-value"},If={href:"#logs?level=debug",class:"ss-dash-widget-row-link"},Nf={class:"ss-dash-secondary-list-value"},jf={key:0,class:"ss-dash-secondary-card"},Bf={class:"ss-dash-secondary-list"},Uf={href:"#cache",class:"ss-dash-widget-row-link"},qf={class:"ss-dash-secondary-list-value"},Hf={href:"#cache",class:"ss-dash-widget-row-link"},Kf={class:"ss-dash-secondary-list-value"},Vf={href:"#cache",class:"ss-dash-widget-row-link"},zf={class:"ss-dash-secondary-list-value"},Wf={key:1,class:"ss-dash-secondary-card"},Qf={class:"ss-dash-secondary-list"},Jf={href:"#jobs?status=active",class:"ss-dash-widget-row-link"},Gf={class:"ss-dash-secondary-list-value"},Yf={href:"#jobs?status=waiting",class:"ss-dash-widget-row-link"},Xf={class:"ss-dash-secondary-list-value"},Zf={href:"#jobs?status=failed",class:"ss-dash-widget-row-link"},eh={href:"#jobs?status=completed",class:"ss-dash-widget-row-link"},th={class:"ss-dash-secondary-list-value"},sh={class:"ss-dash-secondary-card"},nh={class:"ss-dash-secondary-list"},lh={href:"#requests?status=2xx",class:"ss-dash-widget-row-link"},oh={class:"ss-dash-secondary-list-value"},rh={href:"#requests?status=3xx",class:"ss-dash-widget-row-link"},ah={class:"ss-dash-secondary-list-value"},ih={href:"#requests?status=4xx",class:"ss-dash-widget-row-link"},uh={class:"ss-dash-secondary-list-value"},ch={href:"#requests?status=5xx",class:"ss-dash-widget-row-link"},dh={class:"ss-dash-secondary-list-value"},fh={class:"ss-dash-secondary-card"},hh={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},ph={key:1,class:"ss-dash-secondary-list"},vh=["href"],gh=["title"],dl=220,_r=120,yh=Object.freeze(Object.defineProperty({__proto__:null,default:((e,t)=>{const s=e.__vccOpts||e;for(const[l,r]of t)s[l]=r;return s})(Oe({__name:"OverviewSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-base-url",""),l=ie("ss-dashboard-endpoint","/__stats/api"),r=ie("ss-auth-token",void 0),o=Math.random().toString(36).slice(2,8),a=G("1h"),i=ie("ss-overview-data",void 0),c=ie("ss-overview-loading",void 0);let v,p;if(i&&c)v=i,p=c;else{const V=nt(()=>"overview",{baseUrl:s,dashboardEndpoint:l,authToken:r,refreshKey:t});v=V.data,p=V.loading}const{data:g,setTimeRange:$}=nt(()=>"overview/chart",{baseUrl:s,dashboardEndpoint:l,authToken:r,refreshKey:t});it(a,V=>{$(V)});const x=K(()=>v.value),_=K(()=>x.value||{avgResponseTime:0,p95ResponseTime:0,requestsPerMinute:0,errorRate:0,totalRequests:0,slowestEndpoints:[],queryStats:{total:0,avgDuration:0,perRequest:0},recentErrors:[],topEvents:[],emailActivity:{sent:0,queued:0,failed:0},logLevelBreakdown:{error:0,warn:0,info:0,debug:0},cacheStats:null,jobQueueStatus:null,statusDistribution:{"2xx":0,"3xx":0,"4xx":0,"5xx":0},slowestQueries:[]}),m=K(()=>_.value),S=K(()=>_.value.avgResponseTime||Number(m.value.avg_response_time)||0),U=K(()=>_.value.p95ResponseTime||Number(m.value.p95_response_time)||0),M=K(()=>_.value.requestsPerMinute||Number(m.value.requests_per_minute)||0),b=K(()=>_.value.errorRate||Number(m.value.error_rate)||0),k=K(()=>_.value.totalRequests||Number(m.value.total_requests)||0),O=K(()=>k.value>0),P=K(()=>g.value?.buckets||[]),j=K(()=>_.value.sparklines?.avgResponseTime??P.value.map(V=>V.avgDuration??0)),X=K(()=>_.value.sparklines?.p95ResponseTime??P.value.map(V=>V.p95Duration??0)),Z=K(()=>_.value.sparklines?.requestsPerMinute??P.value.map(V=>V.requestCount??0)),ge=K(()=>_.value.sparklines?.errorRate??P.value.map(V=>V.errorCount??0)),Ee=K(()=>`ss-cg-total-${o}`),we=K(()=>`ss-cg-error-${o}`);function Ce(V,R){if(V<=0)return[0];const ae=V/R,ye=Math.pow(10,Math.floor(Math.log10(ae))),At=ae/ye;let xt;At<=1?xt=ye:At<=2?xt=2*ye:At<=5?xt=5*ye:xt=10*ye;const pn=[];for(let hl=xt;hl<=V+xt*.5;hl+=xt)pn.push(Math.round(hl));return pn.length===0&&pn.push(Math.ceil(V)),pn}function me(V){try{return new Date(V).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"})}catch{return""}}function $e(V){if(V.length===0)return"";if(V.length===1)return`M${V[0].x},${V[0].y}`;let R=`M${V[0].x.toFixed(1)},${V[0].y.toFixed(1)}`;for(let ae=0;ae<V.length-1;ae++){const ye=V[ae],At=V[ae+1],xt=(ye.x+At.x)/2;R+=` C${xt.toFixed(1)},${ye.y.toFixed(1)} ${xt.toFixed(1)},${At.y.toFixed(1)} ${At.x.toFixed(1)},${At.y.toFixed(1)}`}return R}function ne(V){return il(V,"ss-dash")}const H=G(null),z=G(0);let ue=null;it(H,V=>{ue?.disconnect(),ue=null,V&&(z.value=V.clientWidth,ue=new ResizeObserver(R=>{for(const ae of R)z.value=ae.contentRect.width}),ue.observe(V))}),ct(()=>{ue?.disconnect()});const T={top:12,right:12,bottom:28,left:38},L=K(()=>z.value||600),E=K(()=>L.value-T.left-T.right),le=K(()=>dl-T.top-T.bottom),Me=K(()=>T.top+le.value),Vt=K(()=>P.value.map(V=>{const R=V;return(V.requestCount??0)+(Number(R.request_count)||0)||V.total||0})),Ge=K(()=>P.value.map(V=>{const R=V;return(V.errorCount??0)+(Number(R.error_count)||0)})),Pt=K(()=>Math.max(...Vt.value,1)),oe=K(()=>Math.ceil(Pt.value*1.1)),ee=K(()=>Ge.value.some(V=>V>0)),A=K(()=>Ce(oe.value,4)),Fe=K(()=>A.value.length>0?A.value[A.value.length-1]:oe.value);function f(V){return T.left+V/Math.max(P.value.length-1,1)*E.value}function y(V){return T.top+le.value-V/(Fe.value||1)*le.value}const C=K(()=>P.value.map((V,R)=>({x:f(R),y:y(Vt.value[R])}))),F=K(()=>P.value.map((V,R)=>({x:f(R),y:y(Ge.value[R])}))),D=K(()=>$e(C.value)),I=K(()=>ee.value?$e(F.value):""),J=K(()=>C.value.length>1?`${D.value} L${C.value[C.value.length-1].x.toFixed(1)},${Me.value} L${C.value[0].x.toFixed(1)},${Me.value} Z`:""),Q=K(()=>ee.value&&F.value.length>1?`${I.value} L${F.value[F.value.length-1].x.toFixed(1)},${Me.value} L${F.value[0].x.toFixed(1)},${Me.value} Z`:""),W=K(()=>Math.min(10,P.value.length)),B=K(()=>Math.max(1,Math.ceil(P.value.length/W.value))),se=G({visible:!1,x:0,idx:-1});function te(V){const R=C.value[V].x;se.value={visible:!0,x:R,idx:V}}function re(){se.value={visible:!1,x:0,idx:-1}}const de=K(()=>se.value.visible?Math.max(_r/2,Math.min(se.value.x,L.value-_r/2)):0),be=K(()=>E.value/(P.value.length||1));function Pe(V){return V%B.value===0||V===P.value.length-1}function ke(){return O.value?S.value>500?"ss-dash-red":S.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Ke(){return O.value?U.value>500?"ss-dash-red":U.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Ve(){return O.value?"ss-dash-accent":"ss-dash-dim"}function lt(){return O.value?b.value>5?"ss-dash-red":b.value>1?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Ye(V){return V.url||V.pattern||"-"}function Rt(V){return V.name||V.eventName||V.event_name||V.event||""}function Xt(V){return V.sqlNormalized||V.normalizedSql||V.sql_normalized||V.sql||"-"}return(V,R)=>(u(),d("div",wd,[w(p)&&!x.value?(u(),d("div",$d,"Loading overview...")):(u(),d(q,{key:1},[n("div",kd,[n("div",Sd,[R[1]||(R[1]=n("div",{class:"ss-dash-card-title"},"Avg Response Time",-1)),n("div",{class:N(["ss-dash-card-value",ke()])},h(O.value?w(Bt)(S.value):"-"),3),n("div",Cd,[_e(hn,{data:j.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",Td,[R[2]||(R[2]=n("div",{class:"ss-dash-card-title"},"P95 Response Time",-1)),n("div",{class:N(["ss-dash-card-value",Ke()])},h(O.value?w(Bt)(U.value):"-"),3),n("div",Ed,[_e(hn,{data:X.value,color:"#60a5fa",width:160,height:40},null,8,["data"])])]),n("div",Pd,[R[3]||(R[3]=n("div",{class:"ss-dash-card-title"},"Requests / min",-1)),n("div",{class:N(["ss-dash-card-value",Ve()])},h(O.value?M.value.toFixed(1):"-"),3),n("div",Rd,[_e(hn,{data:Z.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",Ad,[R[4]||(R[4]=n("div",{class:"ss-dash-card-title"},"Error Rate",-1)),n("div",{class:N(["ss-dash-card-value",lt()])},h(O.value?`${b.value.toFixed(1)}%`:"-"),3),n("div",Md,[_e(hn,{data:ge.value,color:"#f87171",width:160,height:40},null,8,["data"])])])]),n("div",Ld,[n("div",Od,[R[5]||(R[5]=n("span",{class:"ss-dash-chart-title"},"Request Volume",-1)),_e(xd,{"model-value":a.value,"onUpdate:modelValue":R[0]||(R[0]=ae=>a.value=ae)},null,8,["model-value"])]),n("div",Dd,[P.value.length===0?(u(),d("div",Fd," No data for this range ")):(u(),d("div",{key:1,ref_key:"chartContainerRef",ref:H,style:{position:"relative"}},[(u(),d("svg",{viewBox:`0 0 ${L.value} ${dl}`,class:"ss-dash-chart-svg"},[n("defs",null,[n("linearGradient",{id:Ee.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...R[6]||(R[6]=[n("stop",{offset:"0%","stop-color":"var(--ss-accent)","stop-opacity":"0.3"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-accent)","stop-opacity":"0.02"},null,-1)])],8,Nd),n("linearGradient",{id:we.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...R[7]||(R[7]=[n("stop",{offset:"0%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.35"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.02"},null,-1)])],8,jd)]),(u(!0),d(q,null,pe(A.value,ae=>(u(),d("g",{key:`ytick-${ae}`},[n("line",{x1:T.left,y1:y(ae),x2:L.value-T.right,y2:y(ae),stroke:"var(--ss-border-faint)","stroke-width":"0.5","stroke-dasharray":"3,3"},null,8,Bd),n("text",{x:T.left-6,y:y(ae),"text-anchor":"end",fill:"var(--ss-dim)","font-size":"9","dominant-baseline":"middle"},h(ae),9,Ud)]))),128)),J.value?(u(),d("path",{key:0,d:J.value,fill:`url(#${Ee.value})`},null,8,qd)):Y("",!0),D.value?(u(),d("path",{key:1,d:D.value,fill:"none",stroke:"var(--ss-accent)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,Hd)):Y("",!0),Q.value?(u(),d("path",{key:2,d:Q.value,fill:`url(#${we.value})`},null,8,Kd)):Y("",!0),I.value?(u(),d("path",{key:3,d:I.value,fill:"none",stroke:"var(--ss-red-fg)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round","stroke-dasharray":"4,2"},null,8,Vd)):Y("",!0),(u(!0),d(q,null,pe(P.value,(ae,ye)=>(u(),d("g",{key:ye},[n("rect",{x:C.value[ye].x-be.value/2,y:T.top,width:be.value,height:le.value,fill:"transparent",class:"ss-dash-chart-hover-zone","data-idx":ye,onMouseenter:At=>te(ye),onMouseleave:re},null,40,zd),Vt.value[ye]>0?(u(),d("circle",{key:0,cx:C.value[ye].x,cy:C.value[ye].y,r:se.value.visible&&se.value.idx===ye?4:2.5,fill:"var(--ss-accent)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot","data-idx":ye,opacity:se.value.visible&&se.value.idx!==ye?.3:1},null,8,Wd)):Y("",!0),Ge.value[ye]>0?(u(),d("circle",{key:1,cx:C.value[ye].x,cy:F.value[ye].y,r:se.value.visible&&se.value.idx===ye?3.5:2,fill:"var(--ss-red-fg)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot ss-dash-chart-dot-err","data-idx":ye,opacity:se.value.visible&&se.value.idx!==ye?.3:1},null,8,Qd)):Y("",!0)]))),128)),(u(!0),d(q,null,pe(P.value,(ae,ye)=>(u(),d(q,{key:`xlabel-${ye}`},[Pe(ye)&&me(ae.bucket)?(u(),d("text",{key:0,x:f(ye),y:dl-6,"text-anchor":"middle",fill:"var(--ss-dim)","font-size":"9"},h(me(ae.bucket)),9,Jd)):Y("",!0)],64))),128))],8,Id)),se.value.visible&&se.value.idx>=0?(u(),d("div",{key:0,class:"ss-dash-chart-tooltip",style:Ne({left:de.value+"px",top:T.top-4+"px",transform:"translate(-50%, -100%)"})},[n("div",null,h(me(P.value[se.value.idx].bucket)),1),n("div",null,"Requests: "+h(Vt.value[se.value.idx]),1),Ge.value[se.value.idx]>0?(u(),d("div",Gd," Errors: "+h(Ge.value[se.value.idx]),1)):Y("",!0)],4)):Y("",!0)],512))]),n("div",Yd,[R[9]||(R[9]=n("span",{class:"ss-dash-chart-legend-item"},[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-accent)"}}),ve(" Requests ")],-1)),P.value.some(ae=>(ae.errorCount??0)>0)?(u(),d("span",Xd,[...R[8]||(R[8]=[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-red-fg)"}},null,-1),ve(" Errors ",-1)])])):Y("",!0)])]),n("div",Zd,[n("div",ef,[R[10]||(R[10]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Slowest Endpoints")],-1)),_.value.slowestEndpoints.length===0?(u(),d("div",tf," No data yet ")):(u(),d("ul",sf,[(u(!0),d(q,null,pe(_.value.slowestEndpoints.slice(0,5),(ae,ye)=>(u(),d("li",{key:`${Ye(ae)}-${ye}`},[n("a",{href:`#requests?url=${encodeURIComponent(Ye(ae))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Ye(ae)},h(Ye(ae)),9,lf),n("span",{class:N(["ss-dash-secondary-list-value","ss-dash-duration",ne(ae.avgDuration)])},h(w(Bt)(ae.avgDuration)),3)],8,nf)]))),128))]))]),n("div",of,[R[14]||(R[14]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Query Stats")],-1)),n("ul",rf,[n("li",null,[R[11]||(R[11]=n("span",null,"Total Queries",-1)),n("span",af,h(_.value.queryStats.total),1)]),n("li",null,[R[12]||(R[12]=n("span",null,"Avg Duration",-1)),n("span",uf,h(w(Bt)(_.value.queryStats.avgDuration)),1)]),n("li",null,[R[13]||(R[13]=n("span",null,"Queries / Request",-1)),n("span",cf,h(_.value.queryStats.perRequest.toFixed(1)),1)])])]),n("div",df,[R[15]||(R[15]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs?level=error",class:"ss-dash-widget-link"},"Recent Errors")],-1)),_.value.recentErrors.length===0?(u(),d("div",ff," No recent errors ")):(u(),d("ul",hf,[(u(!0),d(q,null,pe(_.value.recentErrors,(ae,ye)=>(u(),d("li",{key:ae.id??`err-${ye}`},[n("a",{href:`#logs?id=${ae.id??""}`,class:"ss-dash-widget-row-link"},[n("span",{style:{color:"var(--ss-red-fg)"},title:ae.message},h(ae.message),9,vf),ae.timestamp?(u(),d("span",{key:0,class:"ss-dash-secondary-list-value",style:{color:"var(--ss-dim)"},title:w(Ut)(ae.timestamp)},h(w(bt)(ae.timestamp)),9,gf)):Y("",!0)],8,pf)]))),128))]))]),n("div",yf,[R[16]||(R[16]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#events",class:"ss-dash-widget-link"},"Top Events")],-1)),_.value.topEvents.length===0?(u(),d("div",mf," No events yet ")):(u(),d("ul",bf,[(u(!0),d(q,null,pe(_.value.topEvents.slice(0,5),(ae,ye)=>(u(),d("li",{key:`${Rt(ae)}-${ye}`},[n("a",{href:`#events?event_name=${encodeURIComponent(Rt(ae))}`,class:"ss-dash-widget-row-link"},[n("span",null,h(Rt(ae)),1),n("span",xf,h(ae.count),1)],8,_f)]))),128))]))]),n("div",wf,[R[20]||(R[20]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#emails",class:"ss-dash-widget-link"},"Email Activity")],-1)),n("ul",$f,[n("li",null,[n("a",kf,[R[17]||(R[17]=n("span",null,"Sent",-1)),n("span",Sf,h(_.value.emailActivity.sent),1)])]),n("li",null,[n("a",Cf,[R[18]||(R[18]=n("span",null,"Queued",-1)),n("span",Tf,h(_.value.emailActivity.queued),1)])]),n("li",null,[n("a",Ef,[R[19]||(R[19]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ne(_.value.emailActivity.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(_.value.emailActivity.failed),5)])])])]),n("div",Pf,[R[25]||(R[25]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs",class:"ss-dash-widget-link"},"Log Levels")],-1)),n("ul",Rf,[n("li",null,[n("a",Af,[R[21]||(R[21]=n("span",{style:{color:"var(--ss-red-fg)"}},"Error",-1)),n("span",Mf,h(_.value.logLevelBreakdown.error),1)])]),n("li",null,[n("a",Lf,[R[22]||(R[22]=n("span",{style:{color:"var(--ss-amber-fg)"}},"Warn",-1)),n("span",Of,h(_.value.logLevelBreakdown.warn),1)])]),n("li",null,[n("a",Df,[R[23]||(R[23]=n("span",{style:{color:"var(--ss-green-fg)"}},"Info",-1)),n("span",Ff,h(_.value.logLevelBreakdown.info),1)])]),n("li",null,[n("a",If,[R[24]||(R[24]=n("span",{style:{color:"var(--ss-dim)"}},"Debug",-1)),n("span",Nf,h(_.value.logLevelBreakdown.debug),1)])])])]),_.value.cacheStats&&_.value.cacheStats.available?(u(),d("div",jf,[R[29]||(R[29]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#cache",class:"ss-dash-widget-link"},"Cache")],-1)),n("ul",Bf,[n("li",null,[n("a",Uf,[R[26]||(R[26]=n("span",null,"Keys",-1)),n("span",qf,h(_.value.cacheStats.totalKeys),1)])]),n("li",null,[n("a",Hf,[R[27]||(R[27]=n("span",null,"Hit Rate",-1)),n("span",Kf,h(_.value.cacheStats.hitRate.toFixed(1))+"%",1)])]),n("li",null,[n("a",Vf,[R[28]||(R[28]=n("span",null,"Memory",-1)),n("span",zf,h(_.value.cacheStats.memoryUsedHuman),1)])])])])):Y("",!0),_.value.jobQueueStatus&&_.value.jobQueueStatus.available?(u(),d("div",Wf,[R[34]||(R[34]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#jobs",class:"ss-dash-widget-link"},"Job Queue")],-1)),n("ul",Qf,[n("li",null,[n("a",Jf,[R[30]||(R[30]=n("span",null,"Active",-1)),n("span",Gf,h(_.value.jobQueueStatus.active),1)])]),n("li",null,[n("a",Yf,[R[31]||(R[31]=n("span",null,"Waiting",-1)),n("span",Xf,h(_.value.jobQueueStatus.waiting),1)])]),n("li",null,[n("a",Zf,[R[32]||(R[32]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ne(_.value.jobQueueStatus.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(_.value.jobQueueStatus.failed),5)])]),n("li",null,[n("a",eh,[R[33]||(R[33]=n("span",null,"Completed",-1)),n("span",th,h(_.value.jobQueueStatus.completed),1)])])])])):Y("",!0),n("div",sh,[R[39]||(R[39]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Response Status")],-1)),n("ul",nh,[n("li",null,[n("a",lh,[R[35]||(R[35]=n("span",{style:{color:"var(--ss-green-fg)"}},"2xx",-1)),n("span",oh,h(_.value.statusDistribution["2xx"]),1)])]),n("li",null,[n("a",rh,[R[36]||(R[36]=n("span",{style:{color:"var(--ss-blue-fg)"}},"3xx",-1)),n("span",ah,h(_.value.statusDistribution["3xx"]),1)])]),n("li",null,[n("a",ih,[R[37]||(R[37]=n("span",{style:{color:"var(--ss-amber-fg)"}},"4xx",-1)),n("span",uh,h(_.value.statusDistribution["4xx"]),1)])]),n("li",null,[n("a",ch,[R[38]||(R[38]=n("span",{style:{color:"var(--ss-red-fg)"}},"5xx",-1)),n("span",dh,h(_.value.statusDistribution["5xx"]),1)])])])]),n("div",fh,[R[40]||(R[40]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Slowest Queries")],-1)),_.value.slowestQueries.length===0?(u(),d("div",hh," No query data yet ")):(u(),d("ul",ph,[(u(!0),d(q,null,pe(_.value.slowestQueries.slice(0,5),(ae,ye)=>(u(),d("li",{key:`${Xt(ae)}-${ye}`},[n("a",{href:`#queries?pattern=${encodeURIComponent(Xt(ae))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Xt(ae)},h(Xt(ae)),9,gh),n("span",{class:N(["ss-dash-secondary-list-value","ss-dash-duration",ne(ae.avgDuration)])},h(w(Bt)(ae.avgDuration)),3)],8,vh)]))),128))]))])])],64))]))}}),[["__scopeId","data-v-f340a0af"]])},Symbol.toStringTag,{value:"Module"}));function fl(e="",t){let s=null;return function(){return s||(s=new rl({baseUrl:e,authToken:t})),s}}function Yt(e){const t=G(null);let s=null;function l(){s&&s(),s=null,In(()=>{t.value&&(s=ju(t.value))})}return e&&it(e,l),Ct(l),no(()=>{s&&s(),s=null}),{tableRef:t}}const mh={class:"ss-dash-filter-bar"},bh={key:0,class:"ss-dash-summary"},_h={class:"ss-dash-search-wrapper"},xh=["viewBox","innerHTML"],wh=["value","placeholder"],$h={key:1,class:"ss-dash-filter-controls"},Kt=Oe({__name:"FilterBar",props:{modelValue:{},placeholder:{},summary:{}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const s=t;function l(o){s("update:modelValue",o.target.value)}function r(){s("update:modelValue",""),s("clear")}return(o,a)=>(u(),d("div",mh,[e.summary?(u(),d("span",bh,h(e.summary),1)):Y("",!0),n("div",_h,[(u(),d("svg",{class:"ss-dash-search-icon",viewBox:w(He).search.viewBox,width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(He).search.elements.join("")},null,8,xh)),n("input",{class:"ss-dash-search",type:"text",value:e.modelValue,placeholder:e.placeholder||"Search...",onInput:l},null,40,wh),e.modelValue?(u(),d("button",{key:0,type:"button",class:"ss-dash-search-clear",onClick:r}," × ")):Y("",!0)]),o.$slots.default?(u(),d("div",$h,[Da(o.$slots,"default")])):Y("",!0)]))}}),kh={key:0,class:"ss-dash-pagination"},Sh={class:"ss-dash-page-info"},Ch={class:"ss-dash-pagination-controls"},Th=["disabled"],Eh={key:0,class:"ss-dash-page-ellipsis"},Ph=["onClick"],Rh=["disabled"],gs=Oe({__name:"PaginationControls",props:{page:{},lastPage:{},total:{}},emits:["pageChange"],setup(e,{emit:t}){const s=e,l=t,r=K(()=>Eu(s.page,s.lastPage));return(o,a)=>e.lastPage>1?(u(),d("div",kh,[n("span",Sh," Page "+h(e.page)+" of "+h(e.lastPage)+" ("+h(e.total)+" total) ",1),n("div",Ch,[n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page<=1,onClick:a[0]||(a[0]=i=>l("pageChange",e.page-1))}," « Prev ",8,Th),(u(!0),d(q,null,pe(r.value,(i,c)=>(u(),d(q,{key:i==="..."?`ellipsis-${c}`:i},[i==="..."?(u(),d("span",Eh,"...")):(u(),d("button",{key:1,type:"button",class:N(`ss-dash-page-btn ${i===e.page?"ss-dash-active":""}`),onClick:v=>l("pageChange",i)},h(i),11,Ph))],64))),128)),n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page>=e.lastPage,onClick:a[1]||(a[1]=i=>l("pageChange",e.page+1))}," Next » ",8,Rh)])])):Y("",!0)}}),Ah={key:0,class:"ss-dash-empty"},Mh={class:"ss-dash-tl-legend"},Lh=["title"],Oh={class:"ss-dash-tl-track"},Dh=["title"],Fh={class:"ss-dash-tl-dur"},Ih={key:0,class:"ss-dash-tl-warnings"},Nh={class:"ss-dash-tl-warnings-title"},xr=Oe({__name:"WaterfallChart",props:{spans:{},totalDuration:{},className:{},warnings:{}},setup(e){const t=e,s={request:"#1e3a5f",middleware:"rgba(30, 58, 95, 0.7)",db:"#6d28d9",view:"#0e7490",mail:"#059669",event:"#b45309",custom:"var(--ss-dim)"},l={request:"Request",middleware:"Middleware",db:"DB",mail:"Mail",event:"Event",view:"View",custom:"Custom"},r=K(()=>t.spans||[]),o=K(()=>[...r.value].sort((x,_)=>x.startOffset-_.startOffset)),a=K(()=>{const x={};for(const _ of o.value)x[_.id]=_.parentId?(x[_.parentId]||0)+1:0;return x});function i(x){const _=t.totalDuration||1;return`${x.startOffset/_*100}%`}function c(x){const _=t.totalDuration||1;return`${Math.max(x.duration/_*100,.5)}%`}function v(x){return x.length>50?x.slice(0,50)+"...":x}function p(x){return x==="db"?"DB":x}function g(x){return x==="db"?"purple":x==="mail"?"green":x==="event"?"amber":x==="view"?"blue":"muted"}function $(x){const _=x.metadata?Object.entries(x.metadata).filter(([,m])=>m!=null).map(([m,S])=>`${m}=${S}`).join(", "):"";return _?`${x.label} (${x.duration.toFixed(2)}ms)
|
|
5
|
-
${_}`:`${x.label} (${x.duration.toFixed(2)}ms)`}return(x,_)=>r.value.length===0?(u(),d("div",Ah,"No spans recorded")):(u(),d("div",{key:1,class:N(`ss-dash-tl-waterfall ${e.className||""}`)},[n("div",Mh,[(u(),d(q,null,pe(l,(m,S)=>n("div",{key:S,class:"ss-dash-tl-legend-item"},[n("span",{class:"ss-dash-tl-legend-dot",style:Ne({background:s[S]||s.custom})},null,4),n("span",null,h(m),1)])),64))]),(u(!0),d(q,null,pe(o.value,m=>(u(),d("div",{key:m.id,class:"ss-dash-tl-row"},[n("div",{class:"ss-dash-tl-label",title:$(m),style:Ne({paddingLeft:8+(a.value[m.id]||0)*16+"px"})},[n("span",{class:N(`ss-dash-badge ss-dash-badge-${g(m.category)}`),style:{"font-size":"9px","margin-right":"4px"}},h(p(m.category)),3),ve(" "+h(v(m.label)),1)],12,Lh),n("div",Oh,[n("div",{class:N(`ss-dash-tl-bar ss-dash-tl-bar-${m.category||"custom"}`),style:Ne({left:i(m),width:c(m)}),title:$(m)},null,14,Dh)]),n("span",Fh,h(m.duration.toFixed(2))+"ms",1)]))),128)),e.warnings&&e.warnings.length>0?(u(),d("div",Ih,[n("div",Nh,"Warnings ("+h(e.warnings.length)+")",1),(u(!0),d(q,null,pe(e.warnings,(m,S)=>(u(),d("div",{key:S,class:"ss-dash-tl-warning"},h(m),1))),128))])):Y("",!0)],2))}}),Ds=Oe({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"},defaultExpanded:{type:Boolean,default:!1}},setup(e){const t=e,s=G(t.defaultExpanded),l=K(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return un(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return un(t.value,t.maxLen||100)}),r=K(()=>{if(t.value===null||t.value===void 0)return"";if(typeof t.value=="string")try{return JSON.stringify(JSON.parse(t.value),null,2)}catch{return t.value}return JSON.stringify(t.value,null,2)});function o(){s.value=!s.value}function a(){navigator.clipboard?.writeText(r.value)}return(i,c)=>e.value===null||e.value===void 0?(u(),d("span",{key:0,class:N(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(u(),d("div",{key:1,class:N(`${t.classPrefix}-data-cell`)},[s.value?Y("",!0):(u(),d("span",{key:0,class:N(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:o,onKeydown:c[0]||(c[0]=v=>v.key==="Enter"&&o())},h(l.value),35)),s.value?(u(),d("div",{key:1,class:N(`${t.classPrefix}-data-full`),onClick:o},[n("button",{class:N(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:jt(a,["stop"])}," Copy ",2),n("pre",null,h(r.value),1)],2)):Y("",!0)],2))}}),jh={key:0},Bh={class:"ss-related-logs-title"},Uh={class:"ss-related-logs-count"},qh={style:{overflow:"auto"}},Hh=["onClick"],Kh=["title"],Vh=["title"],zh={key:1,class:"ss-log-reqid-empty"},Wh={key:3,style:{width:"14px"}},Qh={class:"ss-log-msg"},Jh={key:0,class:"ss-log-detail"},Gh=Oe({__name:"RelatedLogs",props:{logs:{}},setup(e){const t=G(null);function s(l,r){r&&(t.value=t.value===l?null:l)}return(l,r)=>e.logs.length>0?(u(),d("div",jh,[n("div",Bh,[r[0]||(r[0]=ve(" Related Logs ",-1)),n("span",Uh,"("+h(e.logs.length)+")",1)]),n("div",qh,[(u(!0),d(q,null,pe(e.logs,(o,a)=>(u(),d(q,{key:o.id||a},[n("div",{class:N(["ss-log-entry",w(_t)(o)?"ss-log-entry-expandable":""]),onClick:i=>s(a,!!w(_t)(o))},[n("span",{class:N(["ss-log-level",w(hr)(w(cn)(o),"ss-log-level")])},h(w(cn)(o).toUpperCase()),3),n("span",{class:"ss-log-time",title:w(qt)(o)?w(Ut)(w(qt)(o)):""},h(w(qt)(o)?w(bt)(w(qt)(o)):"-"),9,Kh),w(Ht)(o)?(u(),d("span",{key:0,class:"ss-log-reqid",title:w(Ht)(o)},h(w(Ht)(o).slice(0,8)),9,Vh)):(u(),d("span",zh,"--")),w(_t)(o)?(u(),d("span",{key:2,class:N(["ss-log-expand-icon",t.value===a?"ss-log-expand-icon-open":""])},"▶",2)):(u(),d("span",Wh)),n("span",Qh,h(w(fr)(o)),1)],10,Hh),t.value===a&&w(_t)(o)?(u(),d("div",Jh,[_e(Ds,{value:w(_t)(o),"class-prefix":"ss-dbg","default-expanded":!0},null,8,["value"])])):Y("",!0)],64))),128))])])):Y("",!0)}}),Yh={class:"ss-dash-tl-detail-header"},Xh={style:{color:"var(--ss-text)"}},Zh={class:"ss-dash-tl-meta"},ep={class:"ss-dash-tl-detail-header"},tp={key:0,class:"ss-dash-empty"},sp={key:1,class:"ss-dash-empty"},np={class:"ss-dash-table-wrap"},lp={key:0,class:"ss-dash-sort-arrow"},op={key:0,class:"ss-dash-sort-arrow"},rp={key:0,class:"ss-dash-sort-arrow"},ap={key:0,class:"ss-dash-sort-arrow"},ip={key:0,class:"ss-dash-sort-arrow"},up=["onClick"],cp={style:{color:"var(--ss-dim)"}},dp=["title"],fp={style:{color:"var(--ss-muted)","text-align":"center"}},hp={key:0,style:{color:"var(--ss-amber-fg)","text-align":"center",display:"block"}},pp={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},vp=["title"],gp={key:1,class:"ss-dash-empty"},yp=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"RequestsSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),r=ie("ss-base-url",""),{data:o,loading:a,error:i,pagination:c,sort:v,goToPage:p,setSearch:g,setSort:$}=nt(()=>"requests",{baseUrl:r,dashboardEndpoint:s,authToken:l,refreshKey:t}),x=G(""),_=G(null),m=G(!1),S=G(null),U=K(()=>{if(!o.value)return[];const ne=o.value;return ne.data||ne.requests||o.value||[]}),M=fl(r,l);let b=null;async function k(ne){const H=ne.id;b&&b.abort(),b=new AbortController;const z=b;m.value=!0;try{const ue=s||"/__stats/api",L=await M().fetch(`${ue}/requests/${H}`,{signal:z.signal}),E=L.trace,le=E?{...L,...E,logs:L.logs}:L;S.value=ac(le),_.value=ne}catch(ue){if(ue instanceof Error&&ue.name==="AbortError")return}finally{b===z&&(m.value=!1)}}function O(){_.value=null,S.value=null}function P(ne){x.value=ne,g(ne)}function j(ne){$(ne)}function X(ne){return il(ne,"ss-dash")}const{tableRef:Z}=Yt(()=>U.value),ge=G(null),Ee=G(null),we=G(null),Ce=G(null);let me=null;const $e=K(()=>S.value?S.value.logs||[]:[]);return it([()=>_.value,()=>S.value],async()=>{me?.(),me=null,S.value&&$e.value.length>0&&(await In(),ge.value&&Ee.value&&we.value&&Ce.value&&(me=Bu({container:ge.value,handle:Ee.value,topPane:we.value,bottomPane:Ce.value,storageKey:"ss-requests-split"})))}),ct(()=>{b&&b.abort(),me?.()}),(ne,H)=>(u(),d("div",null,[S.value&&_.value?(u(),d(q,{key:0},[n("div",Yh,[n("button",{type:"button",class:"ss-dash-btn",onClick:O}," ← Back to Requests "),n("span",{class:N(`ss-dash-method ss-dash-method-${(S.value.method||"").toLowerCase()}`)},h(S.value.method),3),n("span",Xh,h(S.value.url),1),n("span",{class:N(`ss-dash-status ss-dash-status-${Math.floor((S.value.statusCode||200)/100)}xx`)},h(S.value.statusCode),3),n("span",Zh,h(S.value.totalDuration.toFixed(1))+"ms · "+h(S.value.spanCount)+" spans ",1)]),$e.value.length>0?(u(),d("div",{key:0,ref_key:"splitContainerRef",ref:ge,class:"ss-dash-split-container"},[n("div",{ref_key:"splitTopRef",ref:we,class:"ss-dash-split-top"},[_e(xr,{spans:S.value.spans,"total-duration":S.value.totalDuration,warnings:S.value.warnings},null,8,["spans","total-duration","warnings"])],512),n("div",{ref_key:"splitHandleRef",ref:Ee,class:"ss-dash-split-handle"},null,512),n("div",{ref_key:"splitBottomRef",ref:Ce,class:"ss-dash-split-bottom"},[_e(Gh,{logs:$e.value},null,8,["logs"])],512)],512)):(u(),et(xr,{key:1,spans:S.value.spans,"total-duration":S.value.totalDuration,warnings:S.value.warnings},null,8,["spans","total-duration","warnings"]))],64)):m.value?(u(),d(q,{key:1},[n("div",ep,[n("button",{type:"button",class:"ss-dash-btn",onClick:H[0]||(H[0]=z=>m.value=!1)}," ← Back to Requests ")]),H[6]||(H[6]=n("div",{class:"ss-dash-empty"},"Loading request detail...",-1))],64)):(u(),d(q,{key:2},[_e(Kt,{"model-value":x.value,placeholder:"Filter requests...",summary:`${w(c).total??0} requests`,"onUpdate:modelValue":P},null,8,["model-value","summary"]),w(i)?(u(),d("div",tp,"Failed to load requests")):Y("",!0),w(a)&&!w(o)?(u(),d("div",sp,"Loading requests...")):(u(),d(q,{key:2},[n("div",np,[U.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:Z,class:"ss-dash-table"},[H[15]||(H[15]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"60px"}}),n("col",{style:{width:"80px"}}),n("col",{style:{width:"50px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"80px"}})],-1)),n("thead",null,[n("tr",null,[H[12]||(H[12]=n("th",null,"#",-1)),n("th",{class:"ss-dash-sortable",onClick:H[1]||(H[1]=z=>j("method"))},[H[7]||(H[7]=ve(" Method ",-1)),w(v).column==="method"?(u(),d("span",lp,h(w(v).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:H[2]||(H[2]=z=>j("url"))},[H[8]||(H[8]=ve(" URL ",-1)),w(v).column==="url"?(u(),d("span",op,h(w(v).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:H[3]||(H[3]=z=>j("statusCode"))},[H[9]||(H[9]=ve(" Status ",-1)),w(v).column==="statusCode"?(u(),d("span",rp,h(w(v).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:H[4]||(H[4]=z=>j("duration"))},[H[10]||(H[10]=ve(" Duration ",-1)),w(v).column==="duration"?(u(),d("span",ap,h(w(v).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),H[13]||(H[13]=n("th",null,"Spans",-1)),H[14]||(H[14]=n("th",null,"⚠",-1)),n("th",{class:"ss-dash-sortable",onClick:H[5]||(H[5]=z=>j("createdAt"))},[H[11]||(H[11]=ve(" Time ",-1)),w(v).column==="createdAt"?(u(),d("span",ip,h(w(v).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)])])]),n("tbody",null,[(u(!0),d(q,null,pe(U.value,z=>(u(),d("tr",{key:z.id,class:"ss-dash-clickable",onClick:ue=>k(z)},[n("td",null,[n("span",cp,h(z.id),1)]),n("td",null,[n("span",{class:N(`ss-dash-method ss-dash-method-${(z.method||"").toLowerCase()}`)},h(z.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:z.url},h(z.url),9,dp)]),n("td",null,[n("span",{class:N(`ss-dash-status ss-dash-status-${Math.floor((z.status_code||z.statusCode||200)/100)}xx`)},h(z.status_code||z.statusCode),3)]),n("td",null,[n("span",{class:N(`ss-dash-duration ${X(z.total_duration||z.totalDuration||z.duration||0)}`)},h((z.total_duration||z.totalDuration||z.duration||0).toFixed(1))+"ms ",3)]),n("td",null,[n("span",fp,h(z.span_count||z.spanCount||0),1)]),n("td",null,[(z.warning_count||z.warningCount||0)>0?(u(),d("span",hp,h(z.warning_count||z.warningCount||0),1)):(u(),d("span",pp,"-"))]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(Ut)(z.createdAt||z.created_at||z.timestamp||"")},h(w(bt)(z.createdAt||z.created_at||z.timestamp||"")),9,vp)])],8,up))),128))])],512)):(u(),d("div",gp,"No requests recorded yet"))]),w(c).totalPages>1?(u(),et(gs,{key:0,page:w(c).page,"last-page":w(c).totalPages,total:w(c).total,onPageChange:w(p)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),mp={class:"ss-dash-btn-group"},bp={key:0,class:"ss-dash-empty"},_p={key:1,class:"ss-dash-table-wrap"},xp=["onClick"],wp={key:0,class:"ss-dash-sort-arrow"},$p=["onClick","onKeydown"],kp={key:0,class:"ss-dash-dup"},Sp={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Cp={class:"ss-dash-duration"},Tp={class:"ss-dash-duration"},Ep={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Pp={key:1,class:"ss-dash-empty"},Rp={class:"ss-dash-table-wrap"},Ap=["onClick"],Mp={key:0,class:"ss-dash-sort-arrow"},Lp={key:1},Op={style:{color:"var(--ss-dim)"}},Dp=["onClick","onKeydown"],Fp={key:0,class:"ss-dash-dup"},Ip=["title"],Np={style:{color:"var(--ss-dim)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},jp=["title"],Bp=["disabled","onClick"],Up={key:0,class:"ss-dash-explain-row"},qp={colspan:"8",class:"ss-dash-explain"},Hp={style:{display:"flex","justify-content":"space-between","align-items":"start"}},Kp={style:{flex:"1"}},Vp={key:0,class:"ss-dash-explain-result ss-dash-explain-error"},zp={key:0},Wp={key:1,class:"ss-dash-explain-result"},Qp={class:"ss-dash-explain-node-header"},Jp={class:"ss-dash-explain-node-type"},Gp={key:0,class:"ss-dash-explain-metrics"},Yp={key:2,class:"ss-dash-explain-result"},Xp={key:3,class:"ss-dash-explain-result"},Zp=["onClick"],ev={key:1,class:"ss-dash-empty"},tv=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"QueriesSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),r=ie("ss-base-url",""),o=new ec("list"),a=G(0);function i(){a.value++}const c=K(()=>(a.value,o.state.viewMode)),v=K(()=>Xu()),p=K(()=>Zu()),g=K(()=>c.value==="grouped"?"queries/grouped":"queries"),{data:$,loading:x,pagination:_,sort:m,goToPage:S,setSearch:U,setSort:M,explainQuery:b}=nt(()=>g.value,{baseUrl:r,dashboardEndpoint:s,authToken:l,refreshKey:t}),k=G(""),O=K(()=>$.value?c.value==="grouped"?$.value.groups||[]:$.value.data||$.value||[]:[]),P=K(()=>c.value!=="grouped"?O.value:O.value.map(oe=>{const ee={...oe};return(ee.sqlNormalized===null||ee.sqlNormalized===void 0)&&(ee.sqlNormalized=Ue(oe,"sql_normalized","pattern")??""),(ee.count===null||ee.count===void 0)&&(ee.count=Ue(oe,"total_count")??void 0),(ee.avgDuration===null||ee.avgDuration===void 0)&&(ee.avgDuration=Ue(oe,"avg_duration")??void 0),(ee.maxDuration===null||ee.maxDuration===void 0)&&(ee.maxDuration=Ue(oe,"max_duration")??void 0),(ee.minDuration===null||ee.minDuration===void 0)&&(ee.minDuration=Ue(oe,"min_duration")??void 0),(ee.totalDuration===null||ee.totalDuration===void 0)&&(ee.totalDuration=Ue(oe,"total_duration")??void 0),(ee.percentOfTotal===null||ee.percentOfTotal===void 0)&&(ee.percentOfTotal=Ue(oe,"pct_time")??void 0),ee})),j=K(()=>c.value!=="list"?[]:O.value.map(oe=>Wu(oe))),X=K(()=>vr(O.value)),Z=K(()=>zu(O.value,{total:_.total})),ge=K(()=>{if(c.value==="grouped")return`${P.value.length} query patterns`;const oe=[`${Z.value.totalCount} queries`];return Z.value.slowCount>0&&oe.push(`${Z.value.slowCount} slow`),Z.value.dupCount>0&&oe.push(`${Z.value.dupCount} dup`),oe.push(`avg ${(Z.value.avgDuration||0).toFixed(1)}ms`),oe.join(", ")});function Ee(oe){k.value=oe,U(oe)}function we(oe){oe!==c.value&&(o.setViewMode(oe),i())}function Ce(oe){M(oe)}function me(oe){return a.value,o.isExpanded(oe)}function $e(oe){o.toggleExpand(oe),i()}async function ne(oe){const ee=o.getExplainState(oe);if(ee&&!ee.loading){o.state.explainData.delete(oe),i();return}o.startExplain(oe),i();try{const A=await b(oe);if(A&&A.error){const Fe=A.message?`${A.error}: ${A.message}`:A.error;o.failExplain(oe,Fe)}else o.completeExplain(oe,{plan:A?.plan,rows:A?.rows})}catch(A){let Fe=A instanceof Error?A.message:String(A);const f=A?.body;if(f)try{const y=JSON.parse(f);y.message?Fe=y.error?`${y.error}: ${y.message}`:y.message:y.error&&(Fe=y.error)}catch{}o.failExplain(oe,Fe)}i()}function H(oe){return a.value,o.getExplainState(oe)}function z(oe){return a.value,o.getExplainState(oe)?.loading??!1}function ue(oe){a.value;const ee=o.getExplainState(oe);return!!ee&&!ee.loading&&!ee.error&&!!ee.result}function T(oe){o.state.explainData.delete(oe),i()}function L(oe){const ee=H(oe);if(!ee?.result)return[];const A=ee.result.plan||ee.result.rows;if(!A||A.length===0)return[];const Fe=A[0];return!Fe||typeof Fe!="object"?[]:"Plan"in Fe?gr(Fe.Plan):[]}function E(oe){const ee=H(oe);if(!ee?.result)return[];const A=ee.result.plan||ee.result.rows;return!A||A.length===0?[]:Gu(A)}function le(oe){const ee=H(oe);return ee?.result?ee.result.plan||ee.result.rows||[]:[]}function Me(oe){const ee=H(oe);if(!ee?.result)return!1;const A=ee.result.plan||ee.result.rows;return!A||A.length===0?!1:Ju(A[0])}function Vt(oe){const ee=H(oe);if(!ee?.result)return!1;const A=ee.result.plan||ee.result.rows;return!!A&&A.length>0&&typeof A[0]=="object"}function Ge(oe){return il(oe,"ss-dash")}const{tableRef:Pt}=Yt(()=>P.value);return(oe,ee)=>(u(),d("div",null,[_e(Kt,{"model-value":k.value,placeholder:"Filter queries...",summary:ge.value,"onUpdate:modelValue":Ee},{default:is(()=>[n("div",mp,[n("button",{type:"button",class:N(`ss-dash-btn ${c.value==="list"?"ss-dash-active":""}`),onClick:ee[0]||(ee[0]=A=>we("list"))}," List ",2),n("button",{type:"button",class:N(`ss-dash-btn ${c.value==="grouped"?"ss-dash-active":""}`),onClick:ee[1]||(ee[1]=A=>we("grouped"))}," Grouped ",2)])]),_:1},8,["model-value","summary"]),w(x)&&!w($)?(u(),d("div",bp,"Loading queries...")):c.value==="grouped"?(u(),d("div",_p,[P.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:Pt,class:"ss-dash-table"},[n("thead",null,[n("tr",null,[(u(!0),d(q,null,pe(p.value,A=>(u(),d("th",{key:A.key,class:N(A.sortable?"ss-dash-sortable":""),onClick:Fe=>A.sortable?Ce(A.key):void 0},[ve(h(A.label)+" ",1),A.sortable&&w(m).column===A.key?(u(),d("span",wp,h(w(m).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)],10,xp))),128))])]),n("tbody",null,[(u(!0),d(q,null,pe(P.value,(A,Fe)=>(u(),d("tr",{key:Fe},[n("td",null,[n("span",{class:N(`ss-dash-sql ${me(A.sqlNormalized)?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:jt(f=>$e(A.sqlNormalized),["stop"]),onKeydown:Ms(f=>$e(A.sqlNormalized),["enter"])},h(A.sqlNormalized),43,$p),(A.count||0)>=3?(u(),d("span",kp,"DUP")):Y("",!0)]),n("td",null,[n("span",Sp,h(A.count||0),1)]),n("td",null,[n("span",{class:N(`ss-dash-duration ${Ge(A.avgDuration||0)}`)},h((A.avgDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",Cp,h((A.minDuration||0).toFixed(2))+"ms",1)]),n("td",null,[n("span",{class:N(`ss-dash-duration ${Ge(A.maxDuration||0)}`)},h((A.maxDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",Tp,h((A.totalDuration||0).toFixed(1))+"ms",1)]),n("td",null,[n("span",Ep,h((A.percentOfTotal||0).toFixed(1))+"%",1)])]))),128))])],512)):(u(),d("div",Pp,[...ee[2]||(ee[2]=[n("span",null,"No queries recorded",-1),n("span",{class:"ss-empty-hint"},[ve(" Queries require "),n("code",null,"debug: true"),ve(" on your Lucid connections in "),n("code",null,"config/database.ts")],-1)])]))])):(u(),d(q,{key:2},[n("div",Rp,[j.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:Pt,class:"ss-dash-table"},[n("colgroup",null,[(u(!0),d(q,null,pe(v.value,A=>(u(),d("col",{key:A.key+A.type,style:Ne(A.width?{width:A.width}:{})},null,4))),128))]),n("thead",null,[n("tr",null,[(u(!0),d(q,null,pe(v.value,A=>(u(),d(q,{key:A.key+A.type},[A.sortable?(u(),d("th",{key:0,class:"ss-dash-sortable",onClick:Fe=>Ce(A.key)},[ve(h(A.label)+" ",1),w(m).column===A.key?(u(),d("span",Mp,h(w(m).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)],8,Ap)):(u(),d("th",Lp,h(A.label),1))],64))),128))])]),n("tbody",null,[(u(!0),d(q,null,pe(j.value,(A,Fe)=>(u(),d(q,{key:A.id},[n("tr",null,[n("td",null,[n("span",Op,h(A.id),1)]),n("td",null,[n("div",null,[n("span",{class:N(`ss-dash-sql ${me(A.id)?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:jt(f=>$e(A.id),["stop"]),onKeydown:Ms(f=>$e(A.id),["enter"])},h(A.sql),43,Dp),(X.value.get(A.sqlNormalized)??0)>1?(u(),d("span",Fp," ×"+h(X.value.get(A.sqlNormalized)),1)):Y("",!0)])]),n("td",null,[n("span",{class:N(`ss-dash-duration ${Ge(A.duration)}`)},h(A.duration.toFixed(2))+"ms ",3)]),n("td",null,[n("span",{class:N(`ss-dash-method ss-dash-method-${A.method.toLowerCase()}`)},h(A.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:A.model},h(A.model||"-"),9,Ip)]),n("td",null,[n("span",Np,h(A.connection||"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(Ut)(String(A.timestamp))},h(w(bt)(String(A.timestamp))),9,jp)]),n("td",null,[A.method==="select"?(u(),d("button",{key:0,type:"button",class:N(`ss-dash-explain-btn${ue(A.id)?" ss-dash-explain-btn-active":""}`),disabled:z(A.id),onClick:jt(f=>ne(A.id),["stop"])},h(z(A.id)?"...":"EXPLAIN"),11,Bp)):Y("",!0)])]),H(A.id)?(u(),d("tr",Up,[n("td",qp,[n("div",Hp,[n("div",Kp,[H(A.id)?.error?(u(),d("div",Vp,[ee[3]||(ee[3]=n("strong",null,"Error:",-1)),ve(" "+h(H(A.id)?.error)+" ",1),H(A.id)?.result?.message?(u(),d("br",zp)):Y("",!0),ve(" "+h(H(A.id)?.result?.message),1)])):Me(A.id)?(u(),d("div",Wp,[(u(!0),d(q,null,pe(L(A.id),(f,y)=>(u(),d("div",{key:y,class:"ss-dash-explain-node",style:Ne({marginLeft:`${f.depth*20}px`})},[n("div",Qp,[n("span",Jp,h(f.nodeType),1),f.relationName?(u(),d(q,{key:0},[ee[4]||(ee[4]=ve(h(" on "),-1)),n("strong",null,h(f.relationName),1)],64)):Y("",!0),f.alias?(u(),d(q,{key:1},[ve(h(` (${f.alias})`),1)],64)):Y("",!0),f.indexName?(u(),d(q,{key:2},[ee[5]||(ee[5]=ve(h(" using "),-1)),n("em",null,h(f.indexName),1)],64)):Y("",!0)]),f.metrics.length>0?(u(),d("div",Gp,h(f.metrics.join(" · ")),1)):Y("",!0)],4))),128))])):Vt(A.id)?(u(),d("div",Yp,[n("table",null,[n("thead",null,[n("tr",null,[(u(!0),d(q,null,pe(E(A.id),f=>(u(),d("th",{key:f},h(f),1))),128))])]),n("tbody",null,[(u(!0),d(q,null,pe(le(A.id),(f,y)=>(u(),d("tr",{key:y},[(u(!0),d(q,null,pe(E(A.id),C=>(u(),d("td",{key:C},h(w(Yu)(f[C])),1))),128))]))),128))])])])):(u(),d("div",Xp,"No plan data returned"))]),n("button",{type:"button",class:"ss-dash-explain-btn",style:{"margin-left":"8px","flex-shrink":"0"},onClick:f=>T(A.id)}," Close ",8,Zp)])])])):Y("",!0)],64))),128))])],512)):(u(),d("div",ev,[...ee[6]||(ee[6]=[n("span",null,"No queries recorded",-1),n("span",{class:"ss-empty-hint"},[ve(" Queries require "),n("code",null,"debug: true"),ve(" on your Lucid connections in "),n("code",null,"config/database.ts")],-1)])]))]),w(_).totalPages>1?(u(),et(gs,{key:0,page:w(_).page,"last-page":w(_).totalPages,total:w(_).total,onPageChange:w(S)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),sv={key:0,class:"ss-dash-empty"},nv={class:"ss-dash-table-wrap"},lv={style:{color:"var(--ss-dim)"}},ov=["title"],rv=["title"],av={key:1,class:"ss-dash-empty"},iv=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"EventsSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),r=ie("ss-base-url",""),{data:o,loading:a,pagination:i,goToPage:c,setSearch:v}=nt(()=>"events",{baseUrl:r,dashboardEndpoint:s,authToken:l,refreshKey:t}),p=G(""),g=K(()=>{if(!o.value)return[];const _=o.value;return _.data||_.events||o.value||[]});function $(_){p.value=_,v(_)}const{tableRef:x}=Yt(()=>g.value);return(_,m)=>(u(),d("div",null,[_e(Kt,{"model-value":p.value,placeholder:"Filter events...",summary:`${w(i).total??0} events`,"onUpdate:modelValue":$},null,8,["model-value","summary"]),w(a)&&!w(o)?(u(),d("div",sv,"Loading events...")):(u(),d(q,{key:1},[n("div",nv,[g.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:x,class:"ss-dash-table"},[m[0]||(m[0]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col"),n("col",{style:{width:"80px"}})],-1)),m[1]||(m[1]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"Event"),n("th",null,"Data"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(g.value,S=>(u(),d("tr",{key:S.id},[n("td",null,[n("span",lv,h(S.id),1)]),n("td",null,[n("span",{class:"ss-dash-event-name",title:S.event_name||S.eventName||S.event||"",style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.event_name||S.eventName||S.event||""),9,ov)]),n("td",null,[_e(Ds,{value:S.data,class:"ss-dash-event-data"},null,8,["value"])]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(Ut)(S.createdAt||S.created_at||S.timestamp)},h(w(bt)(S.createdAt||S.created_at||S.timestamp)),9,rv)])]))),128))])],512)):(u(),d("div",av,"No events recorded yet"))]),w(i).totalPages>1?(u(),et(gs,{key:0,page:w(i).page,"last-page":w(i).totalPages,total:w(i).total,onPageChange:w(c)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),uv={key:0,class:"ss-dash-empty"},cv={key:1,class:"ss-dash-empty"},dv={key:2,class:"ss-dash-table-wrap"},fv=["title"],hv=["title"],pv=["title"],vv=["title"],gv={key:1,class:"ss-dash-empty"},yv=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"RoutesSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),r=ie("ss-base-url",""),{data:o,loading:a,error:i,setSearch:c}=nt(()=>"routes",{baseUrl:r,dashboardEndpoint:s,authToken:l,refreshKey:t}),v=G(""),p=K(()=>{if(!o.value)return[];const x=o.value;return Array.isArray(x)?x:Array.isArray(x.routes)?x.routes:Array.isArray(x.data)?x.data:[]});function g(x){v.value=x,c(x)}const{tableRef:$}=Yt(()=>p.value);return(x,_)=>(u(),d("div",null,[_e(Kt,{"model-value":v.value,placeholder:"Filter routes...",summary:`${p.value.length} routes`,"onUpdate:modelValue":g},null,8,["model-value","summary"]),w(i)?(u(),d("div",uv,"Failed to load routes")):w(a)&&!w(o)?(u(),d("div",cv,"Loading routes...")):(u(),d("div",dv,[p.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:$,class:"ss-dash-table"},[_[0]||(_[0]=n("colgroup",null,[n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"120px"}}),n("col"),n("col")],-1)),_[1]||(_[1]=n("thead",null,[n("tr",null,[n("th",null,"Method"),n("th",null,"Pattern"),n("th",null,"Name"),n("th",null,"Handler"),n("th",null,"Middleware")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(p.value,(m,S)=>(u(),d("tr",{key:m.pattern||S},[n("td",null,[n("span",{class:N(`ss-dash-method ss-dash-method-${(m.method||"").toLowerCase()}`)},h(m.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:m.pattern},h(m.pattern),9,fv)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:m.name||"-"},h(m.name||"-"),9,hv)]),n("td",null,[n("span",{style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:m.handler},h(m.handler),9,pv)]),n("td",null,[n("span",{style:{color:"var(--ss-dim)","font-size":"10px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:m.middleware?.length?m.middleware.join(", "):"-"},h(m.middleware?.length?m.middleware.join(", "):"-"),9,vv)])]))),128))])],512)):(u(),d("div",gv,"No routes available"))]))]))}})},Symbol.toStringTag,{value:"Module"})),mv={class:"ss-dash-log-filters"},bv=["onClick"],_v=["value"],xv={class:"ss-dash-structured-search"},wv=["value"],$v=["value"],kv=["value"],Sv={key:0,class:"ss-dash-filter-chips"},Cv={key:0,class:"ss-dash-filter-chip"},Tv={key:1,class:"ss-dash-filter-chip"},Ev=["onClick"],Pv={key:1,class:"ss-dash-empty"},Rv={key:2,class:"ss-dash-empty"},Av={key:3,class:"ss-dash-empty"},Mv={key:4,class:"ss-dash-log-entries"},Lv=["onClick"],Ov=["title"],Dv=["title","onClick","onKeydown"],Fv={key:1,class:"ss-dash-log-reqid-empty"},Iv={key:3,style:{width:"14px"}},Nv={class:"ss-dash-log-msg"},jv={key:0,class:"ss-dash-log-detail"},Bv=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"LogsSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),r=ie("ss-base-url",""),{data:o,loading:a,error:i,pagination:c,goToPage:v,setSearch:p,setFilter:g}=nt(()=>"logs",{baseUrl:r,dashboardEndpoint:s,authToken:l,refreshKey:t}),$=G(""),x=G("all"),_=G(""),m=G(""),S=G(null),U=G([]),M=G("level"),b=G("equals"),k=G(""),O=K(()=>{if(!o.value)return[];const T=o.value;return T.data||T.logs||o.value||[]}),P=K(()=>x.value!=="all"||_.value!==""||U.value.length>0);function j(T,L){L&&(S.value=S.value===T?null:T)}function X(T){$.value=T,p(T)}function Z(T){x.value=T,T==="all"?g("level",""):g("level",T)}function ge(T){_.value=T,m.value=T,g("request_id",T)}function Ee(){const T=m.value.trim();_.value=T,g("request_id",T)}function we(){_.value="",m.value="",g("request_id","")}function Ce(){x.value="all",g("level","")}let me=[];function $e(){const T=[];U.value.forEach((L,E)=>{T.push(`filter_field_${E}`,`filter_op_${E}`,`filter_value_${E}`)});for(const L of me)T.includes(L)||g(L,"");U.value.forEach((L,E)=>{g(`filter_field_${E}`,L.field),g(`filter_op_${E}`,L.operator),g(`filter_value_${E}`,L.value)}),me=T}function ne(){const T=k.value.trim();T&&(U.value.push({field:M.value,operator:b.value,value:T}),k.value="",$e())}function H(T){U.value.splice(T,1),$e()}function z(T){return T.target.value}function ue(T){return T.target.value}return(T,L)=>(u(),d("div",null,[_e(Kt,{"model-value":$.value,placeholder:"Search logs...",summary:`${w(c).total??0} logs`,"onUpdate:modelValue":X},{default:is(()=>[n("div",mv,[(u(!0),d(q,null,pe(w(qu),E=>(u(),d("button",{key:E,type:"button",class:N(`ss-dash-log-filter ${x.value===E?"ss-dash-active":""}`),onClick:le=>Z(E)},h(E),11,bv))),128)),n("input",{type:"text",class:"ss-dash-filter-input ss-dash-reqid-input",placeholder:"Filter by request ID...",value:m.value,onInput:L[0]||(L[0]=E=>m.value=z(E)),onKeydown:Ms(Ee,["enter"])},null,40,_v),m.value||_.value?(u(),d("button",{key:0,type:"button",class:"ss-dash-btn ss-dash-reqid-clear",onClick:we}," Clear ")):Y("",!0)])]),_:1},8,["model-value","summary"]),n("div",xv,[n("select",{class:"ss-dash-filter-select",value:M.value,onChange:L[1]||(L[1]=E=>M.value=ue(E))},[...L[4]||(L[4]=[gi('<option value="level">level</option><option value="message">message</option><option value="request_id">request_id</option><option value="userId">userId</option><option value="email">email</option><option value="path">path</option>',6)])],40,wv),n("select",{class:"ss-dash-filter-select",value:b.value,onChange:L[2]||(L[2]=E=>b.value=ue(E))},[...L[5]||(L[5]=[n("option",{value:"equals"},"equals",-1),n("option",{value:"contains"},"contains",-1),n("option",{value:"starts_with"},"starts with",-1)])],40,$v),n("input",{class:"ss-dash-filter-input",placeholder:"Value...",value:k.value,onInput:L[3]||(L[3]=E=>k.value=z(E)),onKeydown:Ms(ne,["enter"])},null,40,kv),n("button",{type:"button",class:"ss-dash-btn",onClick:ne},"Add")]),P.value?(u(),d("div",Sv,[x.value!=="all"?(u(),d("span",Cv,[ve(" level: "+h(x.value)+" ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:Ce}," × ")])):Y("",!0),_.value?(u(),d("span",Tv,[ve(" requestId: "+h(_.value.slice(0,8))+"... ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:we}," × ")])):Y("",!0),(u(!0),d(q,null,pe(U.value,(E,le)=>(u(),d("span",{key:le,class:"ss-dash-filter-chip"},[ve(h(E.field)+" "+h(E.operator)+' "'+h(E.value)+'" ',1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:Me=>H(le)}," × ",8,Ev)]))),128))])):Y("",!0),w(i)?(u(),d("div",Pv,"Failed to load logs")):w(a)&&!w(o)?(u(),d("div",Rv,"Loading logs...")):O.value.length===0?(u(),d("div",Av," No log entries"+h(_.value?` matching request ${_.value}`:x.value!=="all"?` for ${x.value}`:""),1)):(u(),d("div",Mv,[(u(!0),d(q,null,pe(O.value,(E,le)=>(u(),d(q,{key:String(E.id||le)},[n("div",{class:N(["ss-dash-log-entry",{"ss-dash-log-entry-expandable":!!w(_t)(E)}]),onClick:Me=>j(le,!!w(_t)(E))},[n("span",{class:N(`ss-dash-log-level ${w(hr)(w(cn)(E),"ss-dash-log-level")}`)},h(w(cn)(E).toUpperCase()),3),n("span",{class:"ss-dash-log-time",title:w(qt)(E)?w(Ut)(w(qt)(E)):""},h(w(qt)(E)?w(bt)(w(qt)(E)):"-"),9,Ov),w(Ht)(E)?(u(),d("span",{key:0,class:"ss-dash-log-reqid",title:w(Ht)(E),role:"button",tabindex:"0",onClick:jt(Me=>ge(w(Ht)(E)),["stop"]),onKeydown:Ms(jt(Me=>ge(w(Ht)(E)),["stop"]),["enter"])},h(w(Ht)(E).slice(0,8)),41,Dv)):(u(),d("span",Fv,"--")),w(_t)(E)?(u(),d("span",{key:2,class:N(["ss-dash-log-expand-icon",{"ss-dash-log-expand-icon-open":S.value===le}])},"▶",2)):(u(),d("span",Iv)),n("span",Nv,h(w(fr)(E)),1)],10,Lv),S.value===le&&w(_t)(E)?(u(),d("div",jv,[_e(Ds,{value:w(_t)(E),"class-prefix":"ss-dash","default-expanded":""},null,8,["value"])])):Y("",!0)],64))),128))])),w(c).totalPages>1?(u(),et(gs,{key:5,page:w(c).page,"last-page":w(c).totalPages,total:w(c).total,onPageChange:w(v)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),Uv={key:0,class:"ss-dash-email-preview",id:"ss-dash-email-preview"},qv={class:"ss-dash-email-preview-header"},Hv={class:"ss-dash-email-preview-meta",id:"ss-dash-email-preview-meta"},Kv=["srcdoc"],Vv={key:0,class:"ss-dash-empty"},zv={class:"ss-dash-table-wrap"},Wv=["onClick"],Qv={style:{color:"var(--ss-dim)"}},Jv=["title"],Gv=["title"],Yv=["title"],Xv={key:0,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},Zv={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},eg=["title"],tg=["title"],sg={key:1,class:"ss-dash-empty"},ng=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"EmailsSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),r=ie("ss-base-url",""),{data:o,loading:a,pagination:i,goToPage:c,setSearch:v,fetchEmailPreview:p}=nt(()=>"emails",{baseUrl:r,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=G(""),$=G(null),x=G(null),_=K(()=>{if(!o.value)return[];const O=o.value;return O.data||O.emails||o.value||[]}),m=K(()=>$.value===null?void 0:_.value.find(O=>O.id===$.value));function S(O){g.value=O,v(O)}let U=null;async function M(O){if(U?.abort(),U=null,O.html){$.value=O.id,x.value=O.html;return}const P=new AbortController;U=P;const j=await p(O.id,{signal:P.signal});U===P&&($.value=O.id,x.value=j)}function b(){U?.abort(),$.value=null,x.value=null}ct(()=>U?.abort());const{tableRef:k}=Yt(()=>_.value);return(O,P)=>(u(),d("div",null,[$.value&&x.value?(u(),d("div",Uv,[n("div",qv,[n("div",Hv,[m.value?(u(),d(q,{key:0},[P[4]||(P[4]=n("strong",null,"Subject:",-1)),ve(" "+h(m.value.subject)+" | ",1),P[5]||(P[5]=n("strong",null,"From:",-1)),ve(" "+h(m.value.from_addr||m.value.from)+" | ",1),P[6]||(P[6]=n("strong",null,"To:",-1)),ve(" "+h(m.value.to_addr||m.value.to)+" ",1),m.value.cc||m.value.cc_addr?(u(),d(q,{key:0},[P[0]||(P[0]=ve(" | ",-1)),P[1]||(P[1]=n("strong",null,"CC:",-1)),ve(" "+h(m.value.cc||m.value.cc_addr),1)],64)):Y("",!0),P[7]||(P[7]=ve(" | ",-1)),P[8]||(P[8]=n("strong",null,"Status:",-1)),n("span",{class:N(`ss-dash-badge ss-dash-email-status-${m.value.status}`)},h(m.value.status),3),m.value.mailer?(u(),d(q,{key:1},[P[2]||(P[2]=ve(" | ",-1)),P[3]||(P[3]=n("strong",null,"Mailer:",-1)),ve(" "+h(m.value.mailer),1)],64)):Y("",!0)],64)):Y("",!0)]),n("button",{type:"button",class:"ss-dash-btn",id:"ss-dash-email-preview-close",onClick:b}," Close ")]),n("iframe",{class:"ss-dash-email-iframe",id:"ss-dash-email-iframe",srcdoc:x.value,title:"Email preview",sandbox:""},null,8,Kv)])):(u(),d(q,{key:1},[_e(Kt,{"model-value":g.value,placeholder:"Filter emails...",summary:`${w(i).total??0} emails`,"onUpdate:modelValue":S},null,8,["model-value","summary"]),w(a)&&!w(o)?(u(),d("div",Vv,"Loading emails...")):(u(),d(q,{key:1},[n("div",zv,[_.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:k,class:"ss-dash-table"},[P[9]||(P[9]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"150px"}}),n("col",{style:{width:"150px"}}),n("col"),n("col",{style:{width:"80px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"80px"}})],-1)),P[10]||(P[10]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"From"),n("th",null,"To"),n("th",null,"Subject"),n("th",null,"Status"),n("th",null,"ATT"),n("th",null,"Mailer"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(_.value,j=>(u(),d("tr",{key:j.id,class:"ss-dash-clickable ss-dash-email-row",onClick:X=>M(j)},[n("td",null,[n("span",Qv,h(j.id),1)]),n("td",null,[n("span",{title:j.from_addr||j.from||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(j.from_addr||j.from||""),9,Jv)]),n("td",null,[n("span",{title:j.to_addr||j.to||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(j.to_addr||j.to||""),9,Gv)]),n("td",null,[n("span",{title:j.subject||"",style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(j.subject||""),9,Yv)]),n("td",null,[n("span",{class:N(`ss-dash-badge ss-dash-email-status-${j.status||""}`)},h(j.status),3)]),n("td",null,[(j.attachment_count||j.attachmentCount||0)>0?(u(),d("span",Xv,h(j.attachment_count||j.attachmentCount||0),1)):(u(),d("span",Zv,"-"))]),n("td",null,[n("span",{title:j.mailer||"",style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(j.mailer||""),9,eg)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:w(Ut)(j.createdAt||j.created_at||j.timestamp)},h(w(bt)(j.createdAt||j.created_at||j.timestamp)),9,tg)])],8,Wv))),128))])],512)):(u(),d("div",sg,"No emails captured yet"))]),w(i).totalPages>1?(u(),et(gs,{key:0,page:w(i).page,"last-page":w(i).totalPages,total:w(i).total,onPageChange:w(c)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),lg={key:0,class:"ss-dash-cache-stats"},og={class:"ss-dash-cache-stat"},rg={class:"ss-dash-cache-stat-value"},ag={class:"ss-dash-cache-stat"},ig={class:"ss-dash-cache-stat-value"},ug={class:"ss-dash-cache-stat"},cg={class:"ss-dash-cache-stat-value"},dg={class:"ss-dash-cache-stat"},fg={class:"ss-dash-cache-stat-value"},hg={key:1,class:"ss-dash-empty"},pg={key:2,class:"ss-dash-empty"},vg={key:3,class:"ss-dash-table-wrap"},gg=["onClick"],yg=["title"],mg={style:{color:"var(--ss-muted)"}},bg=["onClick"],_g={key:1,class:"ss-dash-empty"},xg={key:4,class:"ss-dash-cache-detail"},wg={key:0,class:"ss-dash-empty"},$g={key:1,class:"ss-dash-empty",style:{color:"var(--ss-red-fg)"}},kg=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"CacheSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),r=ie("ss-base-url",""),{data:o,loading:a,setSearch:i,mutate:c}=nt(()=>"cache",{baseUrl:r,dashboardEndpoint:s,authToken:l,refreshKey:t});let v=null;Ct(()=>{const P=fl(r||"",l);v=new ur(P(),s||"/__stats/api")});const p=G(""),g=G(null),$=G(null),x=G(!1),_=G(null),m=K(()=>o.value),S=K(()=>m.value?.keys||m.value?.data||[]);function U(P){p.value=P,i(P)}async function M(P){if(confirm(`Delete cache key "${P}"?`))try{await c(`cache/${encodeURIComponent(P)}`,"delete"),g.value===P&&(g.value=null,$.value=null,_.value=null)}catch{}}const{tableRef:b}=Yt(()=>S.value);let k=null;async function O(P){if(k?.abort(),k=null,g.value===P){g.value=null,$.value=null,_.value=null;return}g.value=P,$.value=null,_.value=null,x.value=!0;const j=new AbortController;k=j;try{if(!v)throw new Error("Cache API not initialized");const X=await v.fetchCacheKey(P,{signal:j.signal});if(k!==j)return;$.value=X.value!==void 0?X.value:X.data!==void 0?X.data:X,_.value=null}catch(X){if(X instanceof Error&&X.name==="AbortError"||k!==j)return;$.value=null,_.value="Failed to fetch key value"}finally{k===j&&(x.value=!1)}}return ct(()=>k?.abort()),(P,j)=>(u(),d("div",null,[m.value?.available&&m.value?.stats?(u(),d("div",lg,[n("div",og,[j[0]||(j[0]=n("span",{class:"ss-dash-cache-stat-label"},"Hit Rate:",-1)),n("span",rg,h((m.value.stats.hitRate??0).toFixed(1))+"%",1)]),n("div",ag,[j[1]||(j[1]=n("span",{class:"ss-dash-cache-stat-label"},"Hits:",-1)),n("span",ig,h(m.value.stats.hits??0),1)]),n("div",ug,[j[2]||(j[2]=n("span",{class:"ss-dash-cache-stat-label"},"Misses:",-1)),n("span",cg,h(m.value.stats.misses??0),1)]),n("div",dg,[j[3]||(j[3]=n("span",{class:"ss-dash-cache-stat-label"},"Keys:",-1)),n("span",fg,h(m.value.stats.totalKeys||m.value.stats.keyCount||S.value.length||0),1)])])):Y("",!0),_e(Kt,{"model-value":p.value,placeholder:"Filter cache keys...",summary:`${S.value.length} keys`,"onUpdate:modelValue":U},null,8,["model-value","summary"]),w(a)&&!w(o)?(u(),d("div",hg,"Loading cache...")):!m.value||!m.value.available?(u(),d("div",pg," Cache inspector not available ")):(u(),d("div",vg,[S.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:b,class:"ss-dash-table"},[j[4]||(j[4]=n("thead",null,[n("tr",null,[n("th",null,"Key"),n("th",null,"Type"),n("th",null,"Size"),n("th",null,"TTL"),n("th")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(S.value,X=>(u(),d("tr",{key:X.key,class:"ss-dash-clickable",onClick:Z=>O(X.key)},[n("td",null,[n("span",{title:X.key,style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(X.key),9,yg)]),n("td",null,[n("span",mg,h(X.type),1)]),n("td",null,h(X.size!==null&&X.size!==void 0&&X.size>0?w(Su)(X.size):"-"),1),n("td",null,h(X.ttl>0?w(ku)(X.ttl):"-"),1),n("td",null,[n("button",{type:"button",class:"ss-dash-retry-btn",onClick:jt(Z=>M(X.key),["stop"])}," Delete ",8,bg)])],8,gg))),128))])],512)):(u(),d("div",_g,"No cache keys found"))])),g.value?(u(),d("div",xg,[n("h4",null,"Key: "+h(g.value),1),x.value?(u(),d("div",wg,"Loading value...")):_.value?(u(),d("div",$g,h(_.value),1)):(u(),et(Ds,{key:2,value:$.value},null,8,["value"]))])):Y("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),Sg={key:0,class:"ss-dash-job-stats"},Cg={class:"ss-dash-job-stat"},Tg={class:"ss-dash-job-stat-value"},Eg={class:"ss-dash-job-stat"},Pg={class:"ss-dash-job-stat-value"},Rg={class:"ss-dash-job-stat"},Ag={class:"ss-dash-job-stat-value"},Mg={class:"ss-dash-job-stat"},Lg={class:"ss-dash-job-stat-value"},Og={class:"ss-dash-job-stat"},Dg={class:"ss-dash-job-stat-value",style:{color:"var(--ss-red-fg)"}},Fg={class:"ss-dash-btn-group"},Ig=["onClick"],Ng={key:1,class:"ss-dash-empty"},jg={key:2,class:"ss-dash-empty"},Bg={class:"ss-dash-table-wrap"},Ug={style:{color:"var(--ss-dim)"}},qg=["title"],Hg={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Kg={class:"ss-dash-duration"},Vg=["title"],zg=["disabled","onClick"],Wg={key:1,class:"ss-dash-empty"},Qg=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"JobsSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),r=ie("ss-base-url",""),{data:o,loading:a,error:i,pagination:c,goToPage:v,setSearch:p,setFilter:g,refresh:$,mutate:x}=nt(()=>"jobs",{baseUrl:r,dashboardEndpoint:s,authToken:l,refreshKey:t}),_=G(""),m=G("all"),S=G({}),U=K(()=>nc(o.value)),M=K(()=>lc(o.value));function b(j){_.value=j,p(j)}function k(j){m.value=j,j==="all"?g("status",""):g("status",j)}const{tableRef:O}=Yt(()=>U.value);async function P(j){S.value[j]="pending";try{await x(`jobs/${j}/retry`),S.value[j]="success",setTimeout(()=>{delete S.value[j],$()},1e3)}catch{delete S.value[j]}}return(j,X)=>(u(),d("div",null,[M.value?(u(),d("div",Sg,[n("div",Cg,[X[0]||(X[0]=n("span",{class:"ss-dash-job-stat-label"},"Active:",-1)),n("span",Tg,h(M.value.active??0),1)]),n("div",Eg,[X[1]||(X[1]=n("span",{class:"ss-dash-job-stat-label"},"Waiting:",-1)),n("span",Pg,h(M.value.waiting??0),1)]),n("div",Rg,[X[2]||(X[2]=n("span",{class:"ss-dash-job-stat-label"},"Delayed:",-1)),n("span",Ag,h(M.value.delayed??0),1)]),n("div",Mg,[X[3]||(X[3]=n("span",{class:"ss-dash-job-stat-label"},"Completed:",-1)),n("span",Lg,h(M.value.completed??0),1)]),n("div",Og,[X[4]||(X[4]=n("span",{class:"ss-dash-job-stat-label"},"Failed:",-1)),n("span",Dg,h(M.value.failed??0),1)])])):Y("",!0),_e(Kt,{"model-value":_.value,placeholder:"Filter jobs...",summary:`${w(c).total||U.value.length} jobs`,"onUpdate:modelValue":b},{default:is(()=>[n("div",Fg,[(u(!0),d(q,null,pe(w(tc),Z=>(u(),d("button",{key:Z,type:"button",class:N(`ss-dash-btn ${m.value===Z?"ss-dash-active":""}`),onClick:ge=>k(Z)},h(Z.charAt(0).toUpperCase()+Z.slice(1)),11,Ig))),128))])]),_:1},8,["model-value","summary"]),w(a)&&!w(o)?(u(),d("div",Ng,"Loading jobs...")):w(i)?(u(),d("div",jg,"Jobs/Queue not available")):(u(),d(q,{key:3},[n("div",Bg,[U.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:O,class:"ss-dash-table"},[X[5]||(X[5]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col",{style:{width:"90px"}}),n("col"),n("col",{style:{width:"50px"}}),n("col",{style:{width:"75px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"50px"}})],-1)),X[6]||(X[6]=n("thead",null,[n("tr",null,[n("th",null,"ID"),n("th",null,"Name"),n("th",null,"Status"),n("th",null,"Payload"),n("th",null,"Tries"),n("th",null,"Duration"),n("th",null,"Time"),n("th")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(U.value,Z=>(u(),d("tr",{key:Z.id},[n("td",null,[n("span",Ug,h(Z.id),1)]),n("td",null,[n("span",{style:{color:"var(--ss-text)"},title:Z.name},h(Z.name),9,qg)]),n("td",null,[n("span",{class:N(`ss-dash-badge ss-dash-badge-${w(sc)(Z.status)}`)},h(Z.status),3)]),n("td",null,[_e(Ds,{value:Z.payload||Z.data,"max-len":60},null,8,["value"])]),n("td",null,[n("span",Hg,h(Z.attempts||Z.attemptsMade||0),1)]),n("td",null,[n("span",Kg,h(Z.duration!==null&&Z.duration!==void 0?w(Bt)(Z.duration):"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:w(Ut)(Z.timestamp||Z.createdAt||Z.processedAt||Z.created_at)},h(w(bt)(Z.timestamp||Z.createdAt||Z.processedAt||Z.created_at)),9,Vg)]),n("td",null,[Z.status==="failed"?(u(),d("button",{key:0,type:"button",class:"ss-dash-retry-btn",disabled:S.value[Z.id]==="pending"||S.value[Z.id]==="success",onClick:jt(ge=>P(Z.id),["stop"])},h(S.value[Z.id]==="pending"?"...":S.value[Z.id]==="success"?"OK":"Retry"),9,zg)):Y("",!0)])]))),128))])],512)):(u(),d("div",Wg,"No jobs found"))]),w(c).totalPages>1?(u(),et(gs,{key:0,page:w(c).page,"last-page":w(c).totalPages,total:w(c).total,onPageChange:w(v)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),Jg={style:{position:"relative",flex:1}},Gg=["value"],Yg=["onClick"],Xg={key:0},Zg=["onClick"],e1={key:0},t1={style:{padding:"4px 16px",fontSize:"10px",color:"var(--ss-muted)"}},s1=["onClick"],n1=["title"],l1=["title"],o1=["onClick"],r1={key:1,style:{color:"var(--ss-dim)"}},a1={key:3,style:{color:"var(--ss-amber-fg)"}},i1={key:4,style:{color:"var(--ss-purple-fg)"}},u1={key:5},c1=["onClick"],ce="ss-dash",d1=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"ConfigSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-base-url",""),l=ie("ss-dashboard-endpoint","/__stats/api"),r=ie("ss-auth-token",void 0),{data:o,loading:a}=nt(()=>"config",{baseUrl:s,dashboardEndpoint:l,authToken:r,refreshKey:t}),i=G(""),c=G(""),v=G("app"),p=G(new Set),g=G("Copy JSON"),$=G(new Map);let x=null;function _(T){i.value=T,x&&clearTimeout(x),x=setTimeout(()=>{c.value=T},200)}function m(T){return T.target.value}const S=K(()=>o.value??null),U=K(()=>{const T=S.value?.env??{},L=c.value.toLowerCase();return Object.entries(T).filter(([E,le])=>{if(!L)return!0;const Me=De(le)?le.display:le==null?"":String(le);return E.toLowerCase().includes(L)||Me.toLowerCase().includes(L)})}),M=K(()=>{const T=S.value?.app??{},L=c.value.toLowerCase();return fn(T,"").filter(le=>{const Me=De(le.value)?le.value.display:le.value===null||le.value===void 0?"":String(le.value);return le.path.toLowerCase().includes(L)||Me.toLowerCase().includes(L)})}),b=K(()=>{const T=S.value?.app??{};return fn(T,"").length}),k=K(()=>{const T=S.value?.app;return!T||typeof T!="object"||Array.isArray(T)||De(T)?[]:Object.keys(T)});function O(T){const L=new Set(p.value);L.has(T)?L.delete(T):L.add(T),p.value=L}function P(){if(!S.value)return;const T=v.value==="app"?S.value.app:S.value.env;if(!T)return;const L=$c(T);p.value=new Set(L)}function j(){p.value=new Set}function X(){if(!S.value)return;const T=v.value==="app"?S.value.app:S.value.env;navigator.clipboard?.writeText(JSON.stringify(T,null,2)).then(()=>{g.value="Copied!",setTimeout(()=>{g.value="Copy JSON"},1500)}).catch(()=>{})}function Z(T,L){$.value.set(T,L)}function ge(T,L,E){E.stopPropagation(),kc(T,$.value.get(L)??null,ce)}function Ee(T){return T!==null&&typeof T=="object"&&!Array.isArray(T)&&!De(T)}function we(T,L){return fn(T,L)}function Ce(T,L){return T.indexOf(L+".")===0?T.slice(L.length+1):T}function me(T){return wc(T)}function $e(T){return De(T)?T.display:T==null?"null":String(T)}function ne(T){const L=S.value?.app;return!L||typeof L!="object"?null:L[T]??null}function H(T){return De(T)?T.display:""}function z(){i.value="",c.value=""}function ue(T){return De(T)?T.display:""}return(T,L)=>(u(),d("div",null,[n("div",{class:N(`${ce}-config-toolbar`),style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px"}},[n("button",{type:"button",class:N(`${ce}-config-tab${v.value==="app"?` ${ce}-active`:""}`),onClick:L[0]||(L[0]=E=>v.value="app")}," App Config ",2),n("button",{type:"button",class:N(`${ce}-config-tab${v.value==="env"?` ${ce}-active`:""}`),onClick:L[1]||(L[1]=E=>v.value="env")}," Env ",2),n("div",Jg,[n("input",{type:"text",class:N(`${ce}-search`),placeholder:"Search keys and values...",value:i.value,style:{width:"100%"},onInput:L[2]||(L[2]=E=>_(m(E)))},null,42,Gg),i.value?(u(),d("button",{key:0,type:"button",style:{position:"absolute",right:"6px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",fontSize:"14px",color:"var(--ss-dim)",padding:"0 2px",lineHeight:1},onClick:z}," × ")):Y("",!0)]),v.value==="app"&&!c.value?(u(),d(q,{key:0},[n("button",{type:"button",class:N(`${ce}-btn`),onClick:P},"Expand All",2),n("button",{type:"button",class:N(`${ce}-btn`),onClick:j},"Collapse All",2)],64)):Y("",!0),n("button",{type:"button",class:N(`${ce}-btn`),onClick:X},h(g.value),3)],2),w(a)&&!w(o)?(u(),d("div",{key:0,class:N(`${ce}-empty`)},"Loading config...",2)):S.value?v.value==="env"?(u(),d("div",{key:2,class:N(`${ce}-config-table-wrap`)},[n("table",{class:N(`${ce}-table ${ce}-config-env-table`)},[L[4]||(L[4]=n("thead",null,[n("tr",null,[n("th",null,"Variable"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(U.value,([E,le])=>(u(),d("tr",{key:E},[n("td",{class:N(`${ce}-env-key`)},[n("span",{class:N(`${ce}-config-key`)},h(E),3)],2),n("td",{class:N(`${ce}-env-val`)},[w(De)(le)?(u(),d("span",{key:0,class:N(`${ce}-config-redacted`)},h(H(le)),3)):(u(),d("span",{key:1,class:N(`${ce}-config-val`)},h($e(le)),3))],2),n("td",null,[w(De)(le)?Y("",!0):(u(),d("button",{key:0,type:"button",class:N(`${ce}-copy-row-btn`),title:"Copy",ref_for:!0,ref:Me=>Z(`env-${E}`,Me),onClick:Me=>ge(`${E}=${$e(le)}`,`env-${E}`,Me)}," ⎘ ",10,Yg))])]))),128)),U.value.length===0?(u(),d("tr",Xg,[...L[3]||(L[3]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching variables ",-1)])])):Y("",!0)])],2)],2)):c.value?(u(),d("div",{key:3,class:N(`${ce}-config-table-wrap`)},[n("table",{class:N(`${ce}-table`)},[L[6]||(L[6]=n("thead",null,[n("tr",null,[n("th",null,"Path"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(M.value,E=>(u(),d("tr",{key:E.path},[n("td",null,[n("span",{class:N(`${ce}-config-key`),style:{whiteSpace:"nowrap"}},h(E.path),3)]),n("td",null,[w(De)(E.value)?(u(),d("span",{key:0,class:N(`${ce}-config-redacted`)},h(H(E.value)),3)):(u(),d("span",{key:1,class:N(`${ce}-config-val`),style:Ne({wordBreak:"break-all",color:me(E.value).color})},h(me(E.value).text),7))]),n("td",null,[w(De)(E.value)?Y("",!0):(u(),d("button",{key:0,type:"button",class:N(`${ce}-copy-row-btn`),title:"Copy",ref_for:!0,ref:le=>Z(`search-${E.path}`,le),onClick:le=>ge(`${E.path}: ${w(De)(E.value)?ue(E.value):me(E.value).text}`,`search-${E.path}`,le)}," ⎘ ",10,Zg))])]))),128)),M.value.length===0?(u(),d("tr",e1,[...L[5]||(L[5]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching entries ",-1)])])):Y("",!0)])],2),n("div",t1,h(M.value.length)+" of "+h(b.value)+" entries ",1)],2)):(u(),d("div",{key:4,class:N(`${ce}-config-table-wrap`)},[n("div",{class:N(`${ce}-config-sections`)},[(u(!0),d(q,null,pe(k.value,E=>(u(),d("div",{key:E,class:N(`${ce}-config-section`)},[Ee(ne(E))?(u(),d(q,{key:0},[n("div",{class:N(`${ce}-config-section-header`),style:{cursor:"pointer"},onClick:le=>O(E)},[n("span",{class:N(`${ce}-config-toggle`)},h(p.value.has(E)?"▼":"▶"),3),n("span",{class:N(`${ce}-config-key`)},h(E),3),n("span",{class:N(`${ce}-config-count`)},h(w(yr)(ne(E)))+" entries ",3)],10,s1),p.value.has(E)?(u(),d("div",{key:0,class:N(`${ce}-config-section-body`)},[n("table",{class:N(`${ce}-table ${ce}-config-inner-table`)},[L[7]||(L[7]=n("thead",null,[n("tr",null,[n("th",{style:{width:"35%"}},"Key"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(we(ne(E),E),le=>(u(),d("tr",{key:le.path},[n("td",{title:Ce(le.path,E)},[n("span",{class:N(`${ce}-config-key`)},h(Ce(le.path,E)),3)],8,n1),n("td",{title:w(De)(le.value)?ue(le.value):me(le.value).text},[w(De)(le.value)?(u(),d("span",{key:0,class:N(`${ce}-config-redacted`)},h(H(le.value)),3)):(u(),d("span",{key:1,class:N(`${ce}-config-val`),style:Ne({color:me(le.value).color})},h(me(le.value).text),7))],8,l1),n("td",null,[w(De)(le.value)?Y("",!0):(u(),d("button",{key:0,type:"button",class:N(`${ce}-copy-row-btn`),title:"Copy",ref_for:!0,ref:Me=>Z(`inner-${le.path}`,Me),onClick:Me=>ge(`${le.path}: ${me(le.value).text}`,`inner-${le.path}`,Me)}," ⎘ ",10,o1))])]))),128))])],2)],2)):Y("",!0)],64)):(u(),d("div",{key:1,class:N(`${ce}-config-section-header ${ce}-config-leaf`),style:{cursor:"default"}},[n("span",{class:N(`${ce}-config-toggle`),style:{visibility:"hidden"}},"•",2),n("span",{class:N(`${ce}-config-key`)},h(E),3),n("span",{class:N(`${ce}-config-val`),style:{marginLeft:"8px"}},[w(De)(ne(E))?(u(),d("span",{key:0,class:N(`${ce}-config-redacted`)},h(H(ne(E))),3)):ne(E)===null||ne(E)===void 0?(u(),d("span",r1,"null")):typeof ne(E)=="boolean"?(u(),d("span",{key:2,style:Ne({color:ne(E)?"var(--ss-green-fg)":"var(--ss-red-fg)"})},h(String(ne(E))),5)):typeof ne(E)=="number"?(u(),d("span",a1,h(String(ne(E))),1)):Array.isArray(ne(E))?(u(),d("span",i1,h(me(ne(E)).text),1)):(u(),d("span",u1,h(String(ne(E))),1))],2),w(De)(ne(E))?Y("",!0):(u(),d("button",{key:0,type:"button",class:N(`${ce}-copy-row-btn`),style:{marginLeft:"4px"},title:"Copy",ref_for:!0,ref:le=>Z(`leaf-${E}`,le),onClick:le=>ge(`${E}: ${me(ne(E)).text}`,`leaf-${E}`,le)}," ⎘ ",10,c1))],2))],2))),128))],2)],2)):(u(),d("div",{key:1,class:N(`${ce}-empty`)},"Config not available",2))]))}})},Symbol.toStringTag,{value:"Module"})),f1={key:0,class:"ss-dash-empty"},h1={key:1,class:"ss-dash-empty"},p1={key:2,class:"ss-dash-empty"},v1={key:0,style:{background:"var(--ss-amber-bg)",color:"var(--ss-amber-fg)",padding:"8px 12px",borderRadius:"6px",fontSize:"12px",marginBottom:"12px",lineHeight:"1.5"}},g1={class:"ss-dash-info-cards"},y1={class:"ss-dash-info-card-label"},m1={class:"ss-dash-info-card-value"},b1={key:1,class:"ss-dash-empty"},_1={key:2,class:"ss-dash-table"},x1={style:{"font-family":"monospace","font-size":"11px"}},w1={key:0,style:{"margin-left":"6px","font-size":"11px",color:"var(--ss-dim)"}},$1={style:{color:"var(--ss-dim)","margin-left":"4px"}},k1={style:{"font-size":"11px"}},S1=["onClick"],C1=["onClick"],T1={key:3,class:"ss-dash-empty"},E1={key:4,class:"ss-dash-table"},P1={class:"ss-dash-bar"},R1={class:"ss-dash-bar-track",style:{"max-width":"120px"}},A1={key:5,class:"ss-dash-empty"},M1={key:6,class:"ss-dash-table"},L1={style:{color:"var(--ss-dim)"}},O1={key:7,class:"ss-dash-empty"},D1={key:8,class:"ss-dash-table"},F1={style:{color:"var(--ss-dim)","font-size":"11px"}},I1={class:"ss-dash-table"},N1={style:{"font-family":"monospace","font-size":"11px"}},j1={key:0,class:"ss-dash-table",style:{"margin-top":"8px"}},B1={style:{"font-family":"monospace","font-size":"11px"}},U1={class:"ss-dash-table"},q1={class:"ss-dash-table"},H1={style:{"font-family":"monospace","font-size":"11px"}},K1={style:{"font-family":"monospace","font-size":"11px"}},V1={style:{"font-family":"monospace","font-size":"11px"}},z1={style:{"font-size":"11px"}},W1=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"InternalsSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-base-url",""),l=ie("ss-debug-endpoint","/admin/api/debug"),r=ie("ss-auth-token",void 0),o=G(null),a=G(!0),i=G(null),c=G(new Set),v=fl(s,r);let p=null;async function g(){try{const M=await v().fetch(`${l}/diagnostics`);o.value=M,i.value=null,a.value=!1}catch(M){if(M instanceof rn){i.value=M,a.value=!1,p&&(clearInterval(p),p=null);return}i.value=M instanceof Error?M:new Error(String(M)),a.value=!1}}Ct(()=>{a.value=!0,i.value=null,g(),p=setInterval(g,lr)}),ct(()=>{p&&clearInterval(p)}),it(t,()=>{g()});function $(M){c.value.has(M)?c.value.delete(M):c.value.add(M)}function x(M){const b=xc(M);return b==="ok"?"ss-dash-dot-ok":b==="err"?"ss-dash-dot-err":""}function _(M){return M.debounceMs!==void 0?`${Bt(M.debounceMs)} (debounce)`:M.intervalMs!==void 0?Bt(M.intervalMs):"-"}const m=K(()=>o.value?.buffers?Object.entries(o.value.buffers).map(([M,b])=>({name:M.charAt(0).toUpperCase()+M.slice(1),...b,percent:mc(b.current,b.max)})):[]),S=K(()=>o.value?.timers?Object.entries(o.value.timers).map(([M,b])=>({key:M,label:fc(M),...b,interval:_(b)})):[]),U=K(()=>{if(!o.value)return[];const M=[];if(o.value.transmit&&M.push({key:"transmit",label:"Transmit (SSE)",status:o.value.transmit.available?"connected":"unavailable",details:o.value.transmit.available?`Channels: ${o.value.transmit.channels.join(", ")}`:"Not installed"}),o.value.integrations)for(const[b,k]of Object.entries(o.value.integrations))M.push({key:b,label:pc(b),status:vc(k),details:gc(b,k)});return M});return(M,b)=>(u(),d("div",null,[a.value&&!o.value?(u(),d("div",f1,"Loading diagnostics...")):i.value&&!o.value?(u(),d("div",h1,"Error: "+h(i.value.message),1)):o.value?(u(),d(q,{key:3},[o.value.collectors?.some(k=>k.name==="db_pool"||k.name==="app")&&Array.isArray(o.value.lucidDebugConnections)&&o.value.lucidDebugConnections.length===0?(u(),d("div",v1,[...b[4]||(b[4]=[n("strong",null,"Query capture disabled",-1),ve(" — no Lucid connections have ",-1),n("code",{style:{"font-size":"11px"}},"debug: true",-1),ve(". Add it to your database connection in ",-1),n("code",{style:{"font-size":"11px"}},"config/database.ts",-1),ve(" to see queries in the Queries panel. ",-1)])])):Y("",!0),b[42]||(b[42]=n("h3",{class:"ss-dash-section-title"},"Package Info",-1)),n("div",g1,[(u(!0),d(q,null,pe([{label:"Version",value:o.value.package?.version||"-"},{label:"Node.js",value:o.value.package?.nodeVersion||"-"},{label:"AdonisJS",value:o.value.package?.adonisVersion||"-"},{label:"Uptime",value:w(wu)(o.value.uptime||o.value.package?.uptime)},{label:"Renderer",value:o.value.devToolbar?.renderer||"preact"}],k=>(u(),d("div",{key:k.label,class:"ss-dash-info-card"},[n("span",y1,h(k.label),1),n("span",m1,h(k.value),1)]))),128))]),b[43]||(b[43]=n("h3",{class:"ss-dash-section-title"},"Collectors",-1)),o.value.collectors?.length?(u(),d("table",_1,[b[5]||(b[5]=n("thead",null,[n("tr",null,[n("th",null,"Collector"),n("th",null,"Status"),n("th",null,"Last Error"),n("th",null,"Config")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(o.value.collectors,k=>(u(),d("tr",{key:k.name},[n("td",null,[n("span",x1,h(k.name),1),k.label&&k.label!==k.name?(u(),d("span",w1,h(k.label),1)):Y("",!0)]),n("td",null,[n("span",{class:N(["ss-dash-dot",x(k.status)])},null,2),ve(" "+h(k.status),1)]),n("td",{style:Ne(k.lastError?{color:"var(--ss-red-fg)"}:{})},[k.lastError?(u(),d(q,{key:0},[ve(h(k.lastError)+" ",1),n("span",$1,h(w(bt)(k.lastErrorAt??0)),1)],64)):(u(),d(q,{key:1},[ve("-")],64))],4),n("td",k1,[Object.keys(k.config||{}).length?(u(!0),d(q,{key:0},pe(w(yc)(k.config),O=>(u(),d("span",{key:O.key,style:{"margin-right":"8px"}},[ve(h(O.key)+"=",1),O.secret&&!c.value.has(`collector-${k.name}-${O.key}`)?(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:P=>$(`collector-${k.name}-${O.key}`)},"••••••••",8,S1)):(u(),d(q,{key:1},[n("span",null,h(O.value),1),O.secret?(u(),d("button",{key:0,style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:P=>$(`collector-${k.name}-${O.key}`)}," Hide ",8,C1)):Y("",!0)],64))]))),128)):(u(),d(q,{key:1},[ve("-")],64))])]))),128))])])):(u(),d("div",b1,"No collectors")),b[44]||(b[44]=n("h3",{class:"ss-dash-section-title"},"Buffers",-1)),m.value.length?(u(),d("table",E1,[b[6]||(b[6]=n("thead",null,[n("tr",null,[n("th",null,"Buffer"),n("th",null,"Usage"),n("th",null,"Fill %")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(m.value,k=>(u(),d("tr",{key:k.name},[n("td",null,h(k.name),1),n("td",null,h(k.current.toLocaleString())+" / "+h(k.max.toLocaleString()),1),n("td",null,[n("div",P1,[n("div",R1,[n("div",{class:N(["ss-dash-bar-fill",k.percent>=100?"ss-dash-bar-fill-warn":""]),style:Ne({width:k.percent+"%"})},null,6)]),n("span",{class:N(["ss-dash-bar-pct",k.percent>=100?"ss-dash-bar-pct-warn":""])},h(k.percent)+"%",3)])])]))),128))])])):(u(),d("div",T1,"No buffer data")),b[45]||(b[45]=n("h3",{class:"ss-dash-section-title"},"Timers",-1)),S.value.length?(u(),d("table",M1,[b[7]||(b[7]=n("thead",null,[n("tr",null,[n("th",null,"Timer"),n("th",null,"Status"),n("th",null,"Interval")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(S.value,k=>(u(),d("tr",{key:k.key},[n("td",null,h(k.label),1),n("td",null,[n("span",{class:N(["ss-dash-dot",x(k.active?"active":"inactive")])},null,2),ve(" "+h(k.active?"active":"inactive"),1)]),n("td",L1,h(k.interval),1)]))),128))])])):(u(),d("div",A1,"No timer data")),b[46]||(b[46]=n("h3",{class:"ss-dash-section-title"},"Integrations",-1)),U.value.length?(u(),d("table",D1,[b[8]||(b[8]=n("thead",null,[n("tr",null,[n("th",null,"Integration"),n("th",null,"Status"),n("th",null,"Details")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(U.value,k=>(u(),d("tr",{key:k.key},[n("td",null,h(k.label),1),n("td",null,[n("span",{class:N(["ss-dash-dot",x(k.status)])},null,2),ve(" "+h(k.status),1)]),n("td",F1,h(k.details),1)]))),128))])])):(u(),d("div",O1,"No integration data")),o.value.storage?(u(),d(q,{key:9},[b[17]||(b[17]=n("h3",{class:"ss-dash-section-title"},"Storage",-1)),n("table",I1,[b[15]||(b[15]=n("thead",null,[n("tr",null,[n("th",null,"Metric"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[b[9]||(b[9]=n("td",null,"Status",-1)),n("td",null,[n("span",{class:N(["ss-dash-dot",x(o.value.storage.ready?"ready":"unavailable")])},null,2),ve(" "+h(o.value.storage.ready?"ready":"not ready"),1)])]),n("tr",null,[b[10]||(b[10]=n("td",null,"DB Path",-1)),n("td",N1,h(o.value.storage.dbPath),1)]),n("tr",null,[b[11]||(b[11]=n("td",null,"File Size",-1)),n("td",null,h(o.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[b[12]||(b[12]=n("td",null,"WAL Size",-1)),n("td",null,h(o.value.storage.walSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[b[13]||(b[13]=n("td",null,"Retention",-1)),n("td",null,h(o.value.storage.retentionDays)+" days",1)]),n("tr",null,[b[14]||(b[14]=n("td",null,"Last Cleanup",-1)),n("td",null,h(w(bt)(o.value.storage.lastCleanupAt??0)),1)])])]),o.value.storage.tables?.length?(u(),d("table",j1,[b[16]||(b[16]=n("thead",null,[n("tr",null,[n("th",null,"Table"),n("th",null,"Rows")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(o.value.storage.tables,k=>(u(),d("tr",{key:k.name},[n("td",B1,h(k.name),1),n("td",null,h(k.rowCount.toLocaleString()),1)]))),128))])])):Y("",!0)],64)):Y("",!0),b[47]||(b[47]=n("h3",{class:"ss-dash-section-title"},"Resolved Config",-1)),n("table",U1,[b[25]||(b[25]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[b[18]||(b[18]=n("td",null,"intervalMs",-1)),n("td",null,h(o.value.config?.intervalMs),1)]),n("tr",null,[b[19]||(b[19]=n("td",null,"transport",-1)),n("td",null,h(o.value.config?.transport),1)]),n("tr",null,[b[20]||(b[20]=n("td",null,"channelName",-1)),n("td",null,h(o.value.config?.channelName),1)]),n("tr",null,[b[21]||(b[21]=n("td",null,"endpoint",-1)),n("td",null,h(o.value.config?.endpoint===!1?"false":o.value.config?.endpoint),1)]),n("tr",null,[b[22]||(b[22]=n("td",null,"skipInTest",-1)),n("td",null,h(o.value.config?.skipInTest),1)]),n("tr",null,[b[23]||(b[23]=n("td",null,"onStats callback",-1)),n("td",null,h(o.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),n("tr",null,[b[24]||(b[24]=n("td",null,"shouldShow callback",-1)),n("td",null,h(o.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),b[48]||(b[48]=n("h4",{class:"ss-dash-section-title"},"DevToolbar",-1)),n("table",q1,[b[41]||(b[41]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[b[26]||(b[26]=n("td",null,"enabled",-1)),n("td",null,h(o.value.devToolbar?.enabled),1)]),n("tr",null,[b[27]||(b[27]=n("td",null,"tracing",-1)),n("td",null,h(o.value.devToolbar?.tracing),1)]),n("tr",null,[b[28]||(b[28]=n("td",null,"dashboard",-1)),n("td",null,h(o.value.devToolbar?.dashboard),1)]),n("tr",null,[b[29]||(b[29]=n("td",null,"dashboardPath",-1)),n("td",H1,h(o.value.devToolbar?.dashboardPath),1)]),n("tr",null,[b[30]||(b[30]=n("td",null,"debugEndpoint",-1)),n("td",K1,[c.value.has("cfg-debugEndpoint")?(u(),d(q,{key:1},[ve(h(o.value.devToolbar?.debugEndpoint)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:b[1]||(b[1]=k=>$("cfg-debugEndpoint"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:b[0]||(b[0]=k=>$("cfg-debugEndpoint"))},"••••••••"))])]),n("tr",null,[b[31]||(b[31]=n("td",null,"maxQueries",-1)),n("td",null,h(o.value.devToolbar?.maxQueries),1)]),n("tr",null,[b[32]||(b[32]=n("td",null,"maxEvents",-1)),n("td",null,h(o.value.devToolbar?.maxEvents),1)]),n("tr",null,[b[33]||(b[33]=n("td",null,"maxEmails",-1)),n("td",null,h(o.value.devToolbar?.maxEmails),1)]),n("tr",null,[b[34]||(b[34]=n("td",null,"maxTraces",-1)),n("td",null,h(o.value.devToolbar?.maxTraces),1)]),n("tr",null,[b[35]||(b[35]=n("td",null,"slowQueryThresholdMs",-1)),n("td",null,h(o.value.devToolbar?.slowQueryThresholdMs),1)]),n("tr",null,[b[36]||(b[36]=n("td",null,"retentionDays",-1)),n("td",null,h(o.value.devToolbar?.retentionDays),1)]),n("tr",null,[b[37]||(b[37]=n("td",null,"dbPath",-1)),n("td",V1,[c.value.has("cfg-dbPath")?(u(),d(q,{key:1},[ve(h(o.value.devToolbar?.dbPath)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:b[3]||(b[3]=k=>$("cfg-dbPath"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:b[2]||(b[2]=k=>$("cfg-dbPath"))},"••••••••"))])]),n("tr",null,[b[38]||(b[38]=n("td",null,"persistDebugData",-1)),n("td",null,h(o.value.devToolbar?.persistDebugData),1)]),n("tr",null,[b[39]||(b[39]=n("td",null,"excludeFromTracing",-1)),n("td",z1,h(o.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),n("tr",null,[b[40]||(b[40]=n("td",null,"customPanes",-1)),n("td",null,h(o.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(u(),d("div",p1,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"}))})();
|
|
4
|
+
`],...da(s))}),t}function da({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",l=e.component?e.component.parent==null:!1,r=` at <${Ho(e.component,e.type,l)}`,o=">"+s;return e.props?[r,...fa(e.props),o]:[r+o]}function fa(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(l=>{t.push(...Kl(l,e[l]))}),s.length>3&&t.push(" ..."),t}function Kl(e,t,s){return De(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:je(t)?(t=Kl(e,xe(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):fe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=xe(t),s?t:[`${e}=`,t])}function ls(e,t,s,l){try{return l?e(...l):e()}catch(r){os(r,t,s)}}function gt(e,t,s,l){if(fe(e)){const r=ls(e,t,s,l);return r&&yl(r)&&r.catch(o=>{os(o,t,s)}),r}if(he(e)){const r=[];for(let o=0;o<e.length;o++)r.push(gt(e[o],t,s,l));return r}}function os(e,t,s,l=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Re;if(t){let i=t.parent;const c=t.proxy,v=`https://vuejs.org/error-reference/#runtime-${s}`;for(;i;){const p=i.ec;if(p){for(let g=0;g<p.length;g++)if(p[g](e,c,v)===!1)return}i=i.parent}if(o){pt(),ls(o,null,10,[e,c,v]),vt();return}}ha(e,s,r,l,a)}function ha(e,t,s,l=!0,r=!1){if(r)throw e;console.error(e)}const ze=[];let yt=-1;const rs=[];let Ft=null,as=0;const Vl=Promise.resolve();let Ws=null;function In(e){const t=Ws||Vl;return e?t.then(this?e.bind(this):e):t}function pa(e){let t=yt+1,s=ze.length;for(;t<s;){const l=t+s>>>1,r=ze[l],o=Ss(r);o<e||o===e&&r.flags&2?t=l+1:s=l}return t}function Nn(e){if(!(e.flags&1)){const t=Ss(e),s=ze[ze.length-1];!s||!(e.flags&2)&&t>=Ss(s)?ze.push(e):ze.splice(pa(t),0,e),e.flags|=1,zl()}}function zl(){Ws||(Ws=Vl.then(Jl))}function jn(e){he(e)?rs.push(...e):Ft&&e.id===-1?Ft.splice(as+1,0,e):e.flags&1||(rs.push(e),e.flags|=1),zl()}function Wl(e,t,s=yt+1){for(;s<ze.length;s++){const l=ze[s];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;ze.splice(s,1),s--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function Ql(e){if(rs.length){const t=[...new Set(rs)].sort((s,l)=>Ss(s)-Ss(l));if(rs.length=0,Ft){Ft.push(...t);return}for(Ft=t,as=0;as<Ft.length;as++){const s=Ft[as];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Ft=null,as=0}}const Ss=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Jl(e){try{for(yt=0;yt<ze.length;yt++){const t=ze[yt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ls(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;yt<ze.length;yt++){const t=ze[yt];t&&(t.flags&=-2)}yt=-1,ze.length=0,Ql(),Ws=null,(ze.length||rs.length)&&Jl()}}let We=null,Gl=null;function Qs(e){const t=We;return We=e,Gl=e&&e.type.__scopeId||null,t}function is(e,t=We,s){if(!t||e._n)return e;const l=(...r)=>{l._d&&Fo(-1);const o=Qs(t);let a;try{a=e(...r)}finally{Qs(o),l._d&&Fo(1)}return a};return l._n=!0,l._c=!0,l._d=!0,l}function Jt(e,t,s,l){const r=e.dirs,o=t&&t.dirs;for(let a=0;a<r.length;a++){const i=r[a];o&&(i.oldValue=o[a].value);let c=i.dir[l];c&&(pt(),gt(c,s,8,[e.el,i,e,t]),vt())}}function It(e,t){if(Be){let s=Be.provides;const l=Be.parent&&Be.parent.provides;l===s&&(s=Be.provides=Object.create(l)),s[e]=t}}function ie(e,t,s=!1){const l=xi();if(l||cs){let r=cs?cs._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&fe(t)?t.call(l&&l.proxy):t}}const va=Symbol.for("v-scx"),ga=()=>ie(va);function it(e,t,s){return Yl(e,t,s)}function Yl(e,t,s=Re){const{immediate:l,deep:r,flush:o,once:a}=s,i=Ie({},s),c=t&&l||!t&&o!=="post";let v;if(ps){if(o==="sync"){const x=ga();v=x.__watcherHandles||(x.__watcherHandles=[])}else if(!c){const x=()=>{};return x.stop=ht,x.resume=ht,x.pause=ht,x}}const p=Be;i.call=(x,_,b)=>gt(x,p,_,b);let g=!1;o==="post"?i.scheduler=x=>{Je(x,p&&p.suspense)}:o!=="sync"&&(g=!0,i.scheduler=(x,_)=>{_?x():Nn(x)}),i.augmentJob=x=>{t&&(x.flags|=4),g&&(x.flags|=2,p&&(x.id=p.uid,x.i=p))};const $=ia(e,t,i);return ps&&(v?v.push($):c&&$()),$}function ya(e,t,s){const l=this.proxy,r=De(e)?e.includes(".")?Xl(l,e):()=>l[e]:e.bind(l,l);let o;fe(t)?o=t:(o=t.handler,s=t);const a=As(this),i=Yl(r,o.bind(l),s);return a(),i}function Xl(e,t){const s=t.split(".");return()=>{let l=e;for(let r=0;r<s.length&&l;r++)l=l[s[r]];return l}}const ma=Symbol("_vte"),ba=e=>e.__isTeleport,_a=Symbol("_leaveCb");function Bn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Bn(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 Le(e,t){return fe(e)?Ie({name:e.name},t,{setup:e}):e}function Un(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Zl(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Js=new WeakMap;function Cs(e,t,s,l,r=!1){if(he(e)){e.forEach((b,S)=>Cs(b,t&&(he(t)?t[S]:t),s,l,r));return}if(us(l)&&!r){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&Cs(e,t,s,l.component.subTree);return}const o=l.shapeFlag&4?sl(l.component):l.el,a=r?null:o,{i,r:c}=e,v=t&&t.r,p=i.refs===Re?i.refs={}:i.refs,g=i.setupState,$=xe(g),x=g===Re?pl:b=>Zl(p,b)?!1:Se($,b),_=(b,S)=>!(S&&Zl(p,S));if(v!=null&&v!==c){if(eo(t),De(v))p[v]=null,x(v)&&(g[v]=null);else if(je(v)){const b=t;_(v,b.k)&&(v.value=null),b.k&&(p[b.k]=null)}}if(fe(c))ls(c,i,12,[a,p]);else{const b=De(c),S=je(c);if(b||S){const U=()=>{if(e.f){const M=b?x(c)?g[c]:p[c]:_()||!e.k?c.value:p[e.k];if(r)he(M)&&yn(M,o);else if(he(M))M.includes(o)||M.push(o);else if(b)p[c]=[o],x(c)&&(g[c]=p[c]);else{const m=[o];_(c,e.k)&&(c.value=m),e.k&&(p[e.k]=m)}}else b?(p[c]=a,x(c)&&(g[c]=a)):S&&(_(c,e.k)&&(c.value=a),e.k&&(p[e.k]=a))};if(a){const M=()=>{U(),Js.delete(e)};M.id=-1,Js.set(e,M),Je(M,s)}else eo(e),U()}}}function eo(e){const t=Js.get(e);t&&(t.flags|=8,Js.delete(e))}const to=e=>e.nodeType===8;js().requestIdleCallback,js().cancelIdleCallback;function xa(e,t){if(to(e)&&e.data==="["){let s=1,l=e.nextSibling;for(;l;){if(l.nodeType===1){if(t(l)===!1)break}else if(to(l))if(l.data==="]"){if(--s===0)break}else l.data==="["&&s++;l=l.nextSibling}}else t(e)}const us=e=>!!e.type.__asyncLoader;function ut(e){fe(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:l,delay:r=200,hydrate:o,timeout:a,suspensible:i=!0,onError:c}=e;let v=null,p,g=0;const $=()=>(g++,v=null,x()),x=()=>{let _;return v||(_=v=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),c)return new Promise((S,U)=>{c(b,()=>S($()),()=>U(b),g+1)});throw b}).then(b=>_!==v&&v?v:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),p=b,b)))};return Le({name:"AsyncComponentWrapper",__asyncLoader:x,__asyncHydrate(_,b,S){let U=!1;(b.bu||(b.bu=[])).push(()=>U=!0);const M=()=>{U||S()},m=o?()=>{const k=o(M,L=>xa(_,L));k&&(b.bum||(b.bum=[])).push(k)}:M;p?m():x().then(()=>!b.isUnmounted&&m())},get __asyncResolved(){return p},setup(){const _=Be;if(Un(_),p)return()=>Gs(p,_);const b=m=>{v=null,os(m,_,13,!l)};if(i&&_.suspense||ps)return x().then(m=>()=>Gs(m,_)).catch(m=>(b(m),()=>l?_e(l,{error:m}):null));const S=G(!1),U=G(),M=G(!!r);return r&&setTimeout(()=>{M.value=!1},r),a!=null&&setTimeout(()=>{if(!S.value&&!U.value){const m=new Error(`Async component timed out after ${a}ms.`);b(m),U.value=m}},a),x().then(()=>{S.value=!0,_.parent&&qn(_.parent.vnode)&&_.parent.update()}).catch(m=>{b(m),U.value=m}),()=>{if(S.value&&p)return Gs(p,_);if(U.value&&l)return _e(l,{error:U.value});if(s&&!M.value)return Gs(s,_)}}})}function Gs(e,t){const{ref:s,props:l,children:r,ce:o}=t.vnode,a=_e(e,l,r);return a.ref=s,a.ce=o,delete t.vnode.ce,a}const qn=e=>e.type.__isKeepAlive;function wa(e,t){so(e,"a",t)}function $a(e,t){so(e,"da",t)}function so(e,t,s=Be){const l=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ys(t,l,s),s){let r=s.parent;for(;r&&r.parent;)qn(r.parent.vnode)&&ka(l,t,s,r),r=r.parent}}function ka(e,t,s,l){const r=Ys(t,e,l,!0);ct(()=>{yn(l[t],r)},s)}function Ys(e,t,s=Be,l=!1){if(s){const r=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...a)=>{pt();const i=As(s),c=gt(t,s,e,a);return i(),vt(),c});return l?r.unshift(o):r.push(o),o}}const St=e=>(t,s=Be)=>{(!ps||e==="sp")&&Ys(e,(...l)=>t(...l),s)},Sa=St("bm"),Ct=St("m"),Ca=St("bu"),Ta=St("u"),no=St("bum"),ct=St("um"),Ea=St("sp"),Pa=St("rtg"),Ra=St("rtc");function Aa(e,t=Be){Ys("ec",e,t)}const Ma="components",lo=Symbol.for("v-ndc");function Da(e){return De(e)?La(Ma,e,!1)||e:e||lo}function La(e,t,s=!0,l=!1){const r=We||Be;if(r){const o=r.type;{const i=qo(o,!1);if(i&&(i===t||i===tt(t)||i===Ns(tt(t))))return o}const a=oo(r[e]||o[e],t)||oo(r.appContext[e],t);return!a&&l?o:a}}function oo(e,t){return e&&(e[t]||e[tt(t)]||e[Ns(tt(t))])}function pe(e,t,s,l){let r;const o=s,a=he(e);if(a||De(e)){const i=a&&Wt(e);let c=!1,v=!1;i&&(c=!st(e),v=kt(e),e=Bs(e)),r=new Array(e.length);for(let p=0,g=e.length;p<g;p++)r[p]=t(c?v?ns(at(e[p])):at(e[p]):e[p],p,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,o)}else if(Te(e))if(e[Symbol.iterator])r=Array.from(e,(i,c)=>t(i,c,void 0,o));else{const i=Object.keys(e);r=new Array(i.length);for(let c=0,v=i.length;c<v;c++){const p=i[c];r[c]=t(e[p],p,c,o)}}else r=[];return r}function Oa(e,t,s={},l,r){if(We.ce||We.parent&&us(We.parent)&&We.parent.ce){const v=Object.keys(s).length>0;return u(),et(q,null,[_e("slot",s,l)],v?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),u();const a=o&&ro(o(s)),i=s.key||a&&a.key,c=et(q,{key:(i&&!ot(i)?i:`_${t}`)+(!a&&l?"_fb":"")},a||[],a&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function ro(e){return e.some(t=>sn(t)?!(t.type===dt||t.type===q&&!ro(t.children)):!0)?e:null}const Hn=e=>e?Bo(e)?sl(e):Hn(e.parent):null,Ts=Ie(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=>Hn(e.parent),$root:e=>Hn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>co(e),$forceUpdate:e=>e.f||(e.f=()=>{Nn(e.update)}),$nextTick:e=>e.n||(e.n=In.bind(e.proxy)),$watch:e=>ya.bind(e)}),Kn=(e,t)=>e!==Re&&!e.__isScriptSetup&&Se(e,t),Fa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:r,props:o,accessCache:a,type:i,appContext:c}=e;if(t[0]!=="$"){const $=a[t];if($!==void 0)switch($){case 1:return l[t];case 2:return r[t];case 4:return s[t];case 3:return o[t]}else{if(Kn(l,t))return a[t]=1,l[t];if(r!==Re&&Se(r,t))return a[t]=2,r[t];if(Se(o,t))return a[t]=3,o[t];if(s!==Re&&Se(s,t))return a[t]=4,s[t];Vn&&(a[t]=0)}}const v=Ts[t];let p,g;if(v)return t==="$attrs"&&qe(e.attrs,"get",""),v(e);if((p=i.__cssModules)&&(p=p[t]))return p;if(s!==Re&&Se(s,t))return a[t]=4,s[t];if(g=c.config.globalProperties,Se(g,t))return g[t]},set({_:e},t,s){const{data:l,setupState:r,ctx:o}=e;return Kn(r,t)?(r[t]=s,!0):l!==Re&&Se(l,t)?(l[t]=s,!0):Se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:l,appContext:r,props:o,type:a}},i){let c;return!!(s[i]||e!==Re&&i[0]!=="$"&&Se(e,i)||Kn(t,i)||Se(o,i)||Se(l,i)||Se(Ts,i)||Se(r.config.globalProperties,i)||(c=a.__cssModules)&&c[i])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Se(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function ao(e){return he(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Vn=!0;function Ia(e){const t=co(e),s=e.proxy,l=e.ctx;Vn=!1,t.beforeCreate&&io(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:a,watch:i,provide:c,inject:v,created:p,beforeMount:g,mounted:$,beforeUpdate:x,updated:_,activated:b,deactivated:S,beforeDestroy:U,beforeUnmount:M,destroyed:m,unmounted:k,render:L,renderTracked:P,renderTriggered:j,errorCaptured:X,serverPrefetch:Z,expose:ge,inheritAttrs:Ee,components:we,directives:Ce,filters:me}=t;if(v&&Na(v,l,null),a)for(const H in a){const z=a[H];fe(z)&&(l[H]=z.bind(s))}if(r){const H=r.call(s,s);Te(H)&&(e.data=ss(H))}if(Vn=!0,o)for(const H in o){const z=o[H],ue=fe(z)?z.bind(s,s):fe(z.get)?z.get.bind(s,s):ht,T=!fe(z)&&fe(z.set)?z.set.bind(s):ht,D=K({get:ue,set:T});Object.defineProperty(l,H,{enumerable:!0,configurable:!0,get:()=>D.value,set:E=>D.value=E})}if(i)for(const H in i)uo(i[H],l,s,H);if(c){const H=fe(c)?c.call(s):c;Reflect.ownKeys(H).forEach(z=>{It(z,H[z])})}p&&io(p,e,"c");function ne(H,z){he(z)?z.forEach(ue=>H(ue.bind(s))):z&&H(z.bind(s))}if(ne(Sa,g),ne(Ct,$),ne(Ca,x),ne(Ta,_),ne(wa,b),ne($a,S),ne(Aa,X),ne(Ra,P),ne(Pa,j),ne(no,M),ne(ct,k),ne(Ea,Z),he(ge))if(ge.length){const H=e.exposed||(e.exposed={});ge.forEach(z=>{Object.defineProperty(H,z,{get:()=>s[z],set:ue=>s[z]=ue,enumerable:!0})})}else e.exposed||(e.exposed={});L&&e.render===ht&&(e.render=L),Ee!=null&&(e.inheritAttrs=Ee),we&&(e.components=we),Ce&&(e.directives=Ce),Z&&Un(e)}function Na(e,t,s=ht){he(e)&&(e=zn(e));for(const l in e){const r=e[l];let o;Te(r)?"default"in r?o=ie(r.from||l,r.default,!0):o=ie(r.from||l):o=ie(r),je(o)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[l]=o}}function io(e,t,s){gt(he(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function uo(e,t,s,l){let r=l.includes(".")?Xl(s,l):()=>s[l];if(De(e)){const o=t[e];fe(o)&&it(r,o)}else if(fe(e))it(r,e.bind(s));else if(Te(e))if(he(e))e.forEach(o=>uo(o,t,s,l));else{const o=fe(e.handler)?e.handler.bind(s):t[e.handler];fe(o)&&it(r,o,e)}}function co(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,i=o.get(t);let c;return i?c=i:!r.length&&!s&&!l?c=t:(c={},r.length&&r.forEach(v=>Xs(c,v,a,!0)),Xs(c,t,a)),Te(t)&&o.set(t,c),c}function Xs(e,t,s,l=!1){const{mixins:r,extends:o}=t;o&&Xs(e,o,s,!0),r&&r.forEach(a=>Xs(e,a,s,!0));for(const a in t)if(!(l&&a==="expose")){const i=ja[a]||s&&s[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const ja={data:fo,props:ho,emits:ho,methods:Es,computed:Es,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:Es,directives:Es,watch:Ua,provide:fo,inject:Ba};function fo(e,t){return t?e?function(){return Ie(fe(e)?e.call(this,this):e,fe(t)?t.call(this,this):t)}:t:e}function Ba(e,t){return Es(zn(e),zn(t))}function zn(e){if(he(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 Es(e,t){return e?Ie(Object.create(null),e,t):t}function ho(e,t){return e?he(e)&&he(t)?[...new Set([...e,...t])]:Ie(Object.create(null),ao(e),ao(t??{})):t}function Ua(e,t){if(!e)return t;if(!t)return e;const s=Ie(Object.create(null),e);for(const l in t)s[l]=Qe(e[l],t[l]);return s}function po(){return{app:null,config:{isNativeTag:pl,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 qa=0;function Ha(e,t){return function(l,r=null){fe(l)||(l=Ie({},l)),r!=null&&!Te(r)&&(r=null);const o=po(),a=new WeakSet,i=[];let c=!1;const v=o.app={_uid:qa++,_component:l,_props:r,_container:null,_context:o,_instance:null,version:Pi,get config(){return o.config},set config(p){},use(p,...g){return a.has(p)||(p&&fe(p.install)?(a.add(p),p.install(v,...g)):fe(p)&&(a.add(p),p(v,...g))),v},mixin(p){return o.mixins.includes(p)||o.mixins.push(p),v},component(p,g){return g?(o.components[p]=g,v):o.components[p]},directive(p,g){return g?(o.directives[p]=g,v):o.directives[p]},mount(p,g,$){if(!c){const x=v._ceVNode||_e(l,r);return x.appContext=o,$===!0?$="svg":$===!1&&($=void 0),e(x,p,$),c=!0,v._container=p,p.__vue_app__=v,sl(x.component)}},onUnmount(p){i.push(p)},unmount(){c&&(gt(i,v._instance,16),e(null,v._container),delete v._container.__vue_app__)},provide(p,g){return o.provides[p]=g,v},runWithContext(p){const g=cs;cs=v;try{return p()}finally{cs=g}}};return v}}let cs=null;const Ka=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${tt(t)}Modifiers`]||e[`${Mt(t)}Modifiers`];function Va(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||Re;let r=s;const o=t.startsWith("update:"),a=o&&Ka(l,t.slice(7));a&&(a.trim&&(r=s.map(p=>De(p)?p.trim():p)),a.number&&(r=s.map(Cr)));let i,c=l[i=bn(t)]||l[i=bn(tt(t))];!c&&o&&(c=l[i=bn(Mt(t))]),c&>(c,e,6,r);const v=l[i+"Once"];if(v){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,gt(v,e,6,r)}}const za=new WeakMap;function vo(e,t,s=!1){const l=s?za:t.emitsCache,r=l.get(e);if(r!==void 0)return r;const o=e.emits;let a={},i=!1;if(!fe(e)){const c=v=>{const p=vo(v,t,!0);p&&(i=!0,Ie(a,p))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!i?(Te(e)&&l.set(e,null),null):(he(o)?o.forEach(c=>a[c]=null):Ie(a,o),Te(e)&&l.set(e,a),a)}function Zs(e,t){return!e||!Fs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Se(e,t[0].toLowerCase()+t.slice(1))||Se(e,Mt(t))||Se(e,t))}function Y1(){}function go(e){const{type:t,vnode:s,proxy:l,withProxy:r,propsOptions:[o],slots:a,attrs:i,emit:c,render:v,renderCache:p,props:g,data:$,setupState:x,ctx:_,inheritAttrs:b}=e,S=Qs(e);let U,M;try{if(s.shapeFlag&4){const k=r||l,L=k;U=ft(v.call(L,k,p,g,x,$,_)),M=i}else{const k=t;U=ft(k.length>1?k(g,{attrs:i,slots:a,emit:c}):k(g,null)),M=t.props?i:Qa(i)}}catch(k){Rs.length=0,os(k,e,1),U=_e(dt)}let m=U;if(M&&b!==!1){const k=Object.keys(M),{shapeFlag:L}=m;k.length&&L&7&&(o&&k.some(gn)&&(M=Ja(M,o)),m=hs(m,M,!1,!0))}return s.dirs&&(m=hs(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(s.dirs):s.dirs),s.transition&&Bn(m,s.transition),U=m,Qs(S),U}function Wa(e,t=!0){let s;for(let l=0;l<e.length;l++){const r=e[l];if(sn(r)){if(r.type!==dt||r.children==="v-if"){if(s)return;s=r}}else return}return s}const Qa=e=>{let t;for(const s in e)(s==="class"||s==="style"||Fs(s))&&((t||(t={}))[s]=e[s]);return t},Ja=(e,t)=>{const s={};for(const l in e)(!gn(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Ga(e,t,s){const{props:l,children:r,component:o}=e,{props:a,children:i,patchFlag:c}=t,v=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return l?yo(l,a,v):!!a;if(c&8){const p=t.dynamicProps;for(let g=0;g<p.length;g++){const $=p[g];if(mo(a,l,$)&&!Zs(v,$))return!0}}}else return(r||i)&&(!i||!i.$stable)?!0:l===a?!1:l?a?yo(l,a,v):!0:!!a;return!1}function yo(e,t,s){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let r=0;r<l.length;r++){const o=l[r];if(mo(t,e,o)&&!Zs(s,o))return!0}return!1}function mo(e,t,s){const l=e[s],r=t[s];return s==="style"&&Te(l)&&Te(r)?!xn(l,r):l!==r}function Wn({vnode:e,parent:t},s){for(;t;){const l=t.subTree;if(l.suspense&&l.suspense.activeBranch===e&&(l.el=e.el),l===e)(e=t.vnode).el=s,t=t.parent;else break}}const bo={},_o=()=>Object.create(bo),xo=e=>Object.getPrototypeOf(e)===bo;function Ya(e,t,s,l=!1){const r={},o=_o();e.propsDefaults=Object.create(null),wo(e,t,r,o);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);s?e.props=l?r:ea(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Xa(e,t,s,l){const{props:r,attrs:o,vnode:{patchFlag:a}}=e,i=xe(r),[c]=e.propsOptions;let v=!1;if((l||a>0)&&!(a&16)){if(a&8){const p=e.vnode.dynamicProps;for(let g=0;g<p.length;g++){let $=p[g];if(Zs(e.emitsOptions,$))continue;const x=t[$];if(c)if(Se(o,$))x!==o[$]&&(o[$]=x,v=!0);else{const _=tt($);r[_]=Qn(c,i,_,x,e,!1)}else x!==o[$]&&(o[$]=x,v=!0)}}}else{wo(e,t,r,o)&&(v=!0);let p;for(const g in i)(!t||!Se(t,g)&&((p=Mt(g))===g||!Se(t,p)))&&(c?s&&(s[g]!==void 0||s[p]!==void 0)&&(r[g]=Qn(c,i,g,void 0,e,!0)):delete r[g]);if(o!==i)for(const g in o)(!t||!Se(t,g))&&(delete o[g],v=!0)}v&&wt(e.attrs,"set","")}function wo(e,t,s,l){const[r,o]=e.propsOptions;let a=!1,i;if(t)for(let c in t){if(ms(c))continue;const v=t[c];let p;r&&Se(r,p=tt(c))?!o||!o.includes(p)?s[p]=v:(i||(i={}))[p]=v:Zs(e.emitsOptions,c)||(!(c in l)||v!==l[c])&&(l[c]=v,a=!0)}if(o){const c=xe(s),v=i||Re;for(let p=0;p<o.length;p++){const g=o[p];s[g]=Qn(r,c,g,v[g],e,!Se(v,g))}}return a}function Qn(e,t,s,l,r,o){const a=e[s];if(a!=null){const i=Se(a,"default");if(i&&l===void 0){const c=a.default;if(a.type!==Function&&!a.skipFactory&&fe(c)){const{propsDefaults:v}=r;if(s in v)l=v[s];else{const p=As(r);l=v[s]=c.call(null,t),p()}}else l=c;r.ce&&r.ce._setProp(s,l)}a[0]&&(o&&!i?l=!1:a[1]&&(l===""||l===Mt(s))&&(l=!0))}return l}const Za=new WeakMap;function $o(e,t,s=!1){const l=s?Za:t.propsCache,r=l.get(e);if(r)return r;const o=e.props,a={},i=[];let c=!1;if(!fe(e)){const p=g=>{c=!0;const[$,x]=$o(g,t,!0);Ie(a,$),x&&i.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!o&&!c)return Te(e)&&l.set(e,Zt),Zt;if(he(o))for(let p=0;p<o.length;p++){const g=tt(o[p]);ko(g)&&(a[g]=Re)}else if(o)for(const p in o){const g=tt(p);if(ko(g)){const $=o[p],x=a[g]=he($)||fe($)?{type:$}:Ie({},$),_=x.type;let b=!1,S=!0;if(he(_))for(let U=0;U<_.length;++U){const M=_[U],m=fe(M)&&M.name;if(m==="Boolean"){b=!0;break}else m==="String"&&(S=!1)}else b=fe(_)&&_.name==="Boolean";x[0]=b,x[1]=S,(b||Se(x,"default"))&&i.push(g)}}const v=[a,i];return Te(e)&&l.set(e,v),v}function ko(e){return e[0]!=="$"&&!ms(e)}const Jn=e=>e==="_"||e==="_ctx"||e==="$stable",Gn=e=>he(e)?e.map(ft):[ft(e)],ei=(e,t,s)=>{if(t._n)return t;const l=is((...r)=>Gn(t(...r)),s);return l._c=!1,l},So=(e,t,s)=>{const l=e._ctx;for(const r in e){if(Jn(r))continue;const o=e[r];if(fe(o))t[r]=ei(r,o,l);else if(o!=null){const a=Gn(o);t[r]=()=>a}}},Co=(e,t)=>{const s=Gn(t);e.slots.default=()=>s},To=(e,t,s)=>{for(const l in t)(s||!Jn(l))&&(e[l]=t[l])},ti=(e,t,s)=>{const l=e.slots=_o();if(e.vnode.shapeFlag&32){const r=t._;r?(To(l,t,s),s&&_l(l,"_",r,!0)):So(t,l)}else t&&Co(e,t)},si=(e,t,s)=>{const{vnode:l,slots:r}=e;let o=!0,a=Re;if(l.shapeFlag&32){const i=t._;i?s&&i===1?o=!1:To(r,t,s):(o=!t.$stable,So(t,r)),a=t}else t&&(Co(e,t),a={default:1});if(o)for(const i in r)!Jn(i)&&a[i]==null&&delete r[i]},Je=fi;function ni(e){return li(e)}function li(e,t){const s=js();s.__VUE__=!0;const{insert:l,remove:r,patchProp:o,createElement:a,createText:i,createComment:c,setText:v,setElementText:p,parentNode:g,nextSibling:$,setScopeId:x=ht,insertStaticContent:_}=e,b=(f,y,C,F=null,O=null,I=null,J=void 0,Q=null,W=!!y.dynamicChildren)=>{if(f===y)return;f&&!Nt(f,y)&&(F=Pt(f),E(f,O,I,!0),f=null),y.patchFlag===-2&&(W=!1,y.dynamicChildren=null);const{type:B,ref:se,shapeFlag:te}=y;switch(B){case en:S(f,y,C,F);break;case dt:U(f,y,C,F);break;case tn:f==null&&M(y,C,F,J);break;case q:we(f,y,C,F,O,I,J,Q,W);break;default:te&1?L(f,y,C,F,O,I,J,Q,W):te&6?Ce(f,y,C,F,O,I,J,Q,W):(te&64||te&128)&&B.process(f,y,C,F,O,I,J,Q,W,A)}se!=null&&O?Cs(se,f&&f.ref,I,y||f,!y):se==null&&f&&f.ref!=null&&Cs(f.ref,null,I,f,!0)},S=(f,y,C,F)=>{if(f==null)l(y.el=i(y.children),C,F);else{const O=y.el=f.el;y.children!==f.children&&v(O,y.children)}},U=(f,y,C,F)=>{f==null?l(y.el=c(y.children||""),C,F):y.el=f.el},M=(f,y,C,F)=>{[f.el,f.anchor]=_(f.children,y,C,F,f.el,f.anchor)},m=({el:f,anchor:y},C,F)=>{let O;for(;f&&f!==y;)O=$(f),l(f,C,F),f=O;l(y,C,F)},k=({el:f,anchor:y})=>{let C;for(;f&&f!==y;)C=$(f),r(f),f=C;r(y)},L=(f,y,C,F,O,I,J,Q,W)=>{if(y.type==="svg"?J="svg":y.type==="math"&&(J="mathml"),f==null)P(y,C,F,O,I,J,Q,W);else{const B=f.el&&f.el._isVueCE?f.el:null;try{B&&B._beginPatch(),Z(f,y,O,I,J,Q,W)}finally{B&&B._endPatch()}}},P=(f,y,C,F,O,I,J,Q)=>{let W,B;const{props:se,shapeFlag:te,transition:re,dirs:de}=f;if(W=f.el=a(f.type,I,se&&se.is,se),te&8?p(W,f.children):te&16&&X(f.children,W,null,F,O,Yn(f,I),J,Q),de&&Jt(f,null,F,"created"),j(W,f,f.scopeId,J,F),se){for(const Pe in se)Pe!=="value"&&!ms(Pe)&&o(W,Pe,null,se[Pe],I,F);"value"in se&&o(W,"value",null,se.value,I),(B=se.onVnodeBeforeMount)&&mt(B,F,f)}de&&Jt(f,null,F,"beforeMount");const be=oi(O,re);be&&re.beforeEnter(W),l(W,y,C),((B=se&&se.onVnodeMounted)||be||de)&&Je(()=>{B&&mt(B,F,f),be&&re.enter(W),de&&Jt(f,null,F,"mounted")},O)},j=(f,y,C,F,O)=>{if(C&&x(f,C),F)for(let I=0;I<F.length;I++)x(f,F[I]);if(O){let I=O.subTree;if(y===I||Mo(I.type)&&(I.ssContent===y||I.ssFallback===y)){const J=O.vnode;j(f,J,J.scopeId,J.slotScopeIds,O.parent)}}},X=(f,y,C,F,O,I,J,Q,W=0)=>{for(let B=W;B<f.length;B++){const se=f[B]=Q?Tt(f[B]):ft(f[B]);b(null,se,y,C,F,O,I,J,Q)}},Z=(f,y,C,F,O,I,J)=>{const Q=y.el=f.el;let{patchFlag:W,dynamicChildren:B,dirs:se}=y;W|=f.patchFlag&16;const te=f.props||Re,re=y.props||Re;let de;if(C&&Gt(C,!1),(de=re.onVnodeBeforeUpdate)&&mt(de,C,y,f),se&&Jt(y,f,C,"beforeUpdate"),C&&Gt(C,!0),(te.innerHTML&&re.innerHTML==null||te.textContent&&re.textContent==null)&&p(Q,""),B?ge(f.dynamicChildren,B,Q,C,F,Yn(y,O),I):J||z(f,y,Q,null,C,F,Yn(y,O),I,!1),W>0){if(W&16)Ee(Q,te,re,C,O);else if(W&2&&te.class!==re.class&&o(Q,"class",null,re.class,O),W&4&&o(Q,"style",te.style,re.style,O),W&8){const be=y.dynamicProps;for(let Pe=0;Pe<be.length;Pe++){const ke=be[Pe],Ke=te[ke],Ve=re[ke];(Ve!==Ke||ke==="value")&&o(Q,ke,Ke,Ve,O,C)}}W&1&&f.children!==y.children&&p(Q,y.children)}else!J&&B==null&&Ee(Q,te,re,C,O);((de=re.onVnodeUpdated)||se)&&Je(()=>{de&&mt(de,C,y,f),se&&Jt(y,f,C,"updated")},F)},ge=(f,y,C,F,O,I,J)=>{for(let Q=0;Q<y.length;Q++){const W=f[Q],B=y[Q],se=W.el&&(W.type===q||!Nt(W,B)||W.shapeFlag&198)?g(W.el):C;b(W,B,se,null,F,O,I,J,!0)}},Ee=(f,y,C,F,O)=>{if(y!==C){if(y!==Re)for(const I in y)!ms(I)&&!(I in C)&&o(f,I,y[I],null,O,F);for(const I in C){if(ms(I))continue;const J=C[I],Q=y[I];J!==Q&&I!=="value"&&o(f,I,Q,J,O,F)}"value"in C&&o(f,"value",y.value,C.value,O)}},we=(f,y,C,F,O,I,J,Q,W)=>{const B=y.el=f?f.el:i(""),se=y.anchor=f?f.anchor:i("");let{patchFlag:te,dynamicChildren:re,slotScopeIds:de}=y;de&&(Q=Q?Q.concat(de):de),f==null?(l(B,C,F),l(se,C,F),X(y.children||[],C,se,O,I,J,Q,W)):te>0&&te&64&&re&&f.dynamicChildren&&f.dynamicChildren.length===re.length?(ge(f.dynamicChildren,re,C,O,I,J,Q),(y.key!=null||O&&y===O.subTree)&&Eo(f,y,!0)):z(f,y,C,se,O,I,J,Q,W)},Ce=(f,y,C,F,O,I,J,Q,W)=>{y.slotScopeIds=Q,f==null?y.shapeFlag&512?O.ctx.activate(y,C,F,J,W):me(y,C,F,O,I,J,W):$e(f,y,W)},me=(f,y,C,F,O,I,J)=>{const Q=f.component=_i(f,F,O);if(qn(f)&&(Q.ctx.renderer=A),wi(Q,!1,J),Q.asyncDep){if(O&&O.registerDep(Q,ne,J),!f.el){const W=Q.subTree=_e(dt);U(null,W,y,C),f.placeholder=W.el}}else ne(Q,f,y,C,O,I,J)},$e=(f,y,C)=>{const F=y.component=f.component;if(Ga(f,y,C))if(F.asyncDep&&!F.asyncResolved){H(F,y,C);return}else F.next=y,F.update();else y.el=f.el,F.vnode=y},ne=(f,y,C,F,O,I,J)=>{const Q=()=>{if(f.isMounted){let{next:te,bu:re,u:de,parent:be,vnode:Pe}=f;{const Ye=Po(f);if(Ye){te&&(te.el=Pe.el,H(f,te,J)),Ye.asyncDep.then(()=>{Je(()=>{f.isUnmounted||B()},O)});return}}let ke=te,Ke;Gt(f,!1),te?(te.el=Pe.el,H(f,te,J)):te=Pe,re&&_n(re),(Ke=te.props&&te.props.onVnodeBeforeUpdate)&&mt(Ke,be,te,Pe),Gt(f,!0);const Ve=go(f),lt=f.subTree;f.subTree=Ve,b(lt,Ve,g(lt.el),Pt(lt),f,O,I),te.el=Ve.el,ke===null&&Wn(f,Ve.el),de&&Je(de,O),(Ke=te.props&&te.props.onVnodeUpdated)&&Je(()=>mt(Ke,be,te,Pe),O)}else{let te;const{el:re,props:de}=y,{bm:be,m:Pe,parent:ke,root:Ke,type:Ve}=f,lt=us(y);Gt(f,!1),be&&_n(be),!lt&&(te=de&&de.onVnodeBeforeMount)&&mt(te,ke,y),Gt(f,!0);{Ke.ce&&Ke.ce._hasShadowRoot()&&Ke.ce._injectChildStyle(Ve);const Ye=f.subTree=go(f);b(null,Ye,C,F,f,O,I),y.el=Ye.el}if(Pe&&Je(Pe,O),!lt&&(te=de&&de.onVnodeMounted)){const Ye=y;Je(()=>mt(te,ke,Ye),O)}(y.shapeFlag&256||ke&&us(ke.vnode)&&ke.vnode.shapeFlag&256)&&f.a&&Je(f.a,O),f.isMounted=!0,y=C=F=null}};f.scope.on();const W=f.effect=new Sl(Q);f.scope.off();const B=f.update=W.run.bind(W),se=f.job=W.runIfDirty.bind(W);se.i=f,se.id=f.uid,W.scheduler=()=>Nn(se),Gt(f,!0),B()},H=(f,y,C)=>{y.component=f;const F=f.vnode.props;f.vnode=y,f.next=null,Xa(f,y.props,F,C),si(f,y.children,C),pt(),Wl(f),vt()},z=(f,y,C,F,O,I,J,Q,W=!1)=>{const B=f&&f.children,se=f?f.shapeFlag:0,te=y.children,{patchFlag:re,shapeFlag:de}=y;if(re>0){if(re&128){T(B,te,C,F,O,I,J,Q,W);return}else if(re&256){ue(B,te,C,F,O,I,J,Q,W);return}}de&8?(se&16&&Ge(B,O,I),te!==B&&p(C,te)):se&16?de&16?T(B,te,C,F,O,I,J,Q,W):Ge(B,O,I,!0):(se&8&&p(C,""),de&16&&X(te,C,F,O,I,J,Q,W))},ue=(f,y,C,F,O,I,J,Q,W)=>{f=f||Zt,y=y||Zt;const B=f.length,se=y.length,te=Math.min(B,se);let re;for(re=0;re<te;re++){const de=y[re]=W?Tt(y[re]):ft(y[re]);b(f[re],de,C,null,O,I,J,Q,W)}B>se?Ge(f,O,I,!0,!1,te):X(y,C,F,O,I,J,Q,W,te)},T=(f,y,C,F,O,I,J,Q,W)=>{let B=0;const se=y.length;let te=f.length-1,re=se-1;for(;B<=te&&B<=re;){const de=f[B],be=y[B]=W?Tt(y[B]):ft(y[B]);if(Nt(de,be))b(de,be,C,null,O,I,J,Q,W);else break;B++}for(;B<=te&&B<=re;){const de=f[te],be=y[re]=W?Tt(y[re]):ft(y[re]);if(Nt(de,be))b(de,be,C,null,O,I,J,Q,W);else break;te--,re--}if(B>te){if(B<=re){const de=re+1,be=de<se?y[de].el:F;for(;B<=re;)b(null,y[B]=W?Tt(y[B]):ft(y[B]),C,be,O,I,J,Q,W),B++}}else if(B>re)for(;B<=te;)E(f[B],O,I,!0),B++;else{const de=B,be=B,Pe=new Map;for(B=be;B<=re;B++){const V=y[B]=W?Tt(y[B]):ft(y[B]);V.key!=null&&Pe.set(V.key,B)}let ke,Ke=0;const Ve=re-be+1;let lt=!1,Ye=0;const Rt=new Array(Ve);for(B=0;B<Ve;B++)Rt[B]=0;for(B=de;B<=te;B++){const V=f[B];if(Ke>=Ve){E(V,O,I,!0);continue}let R;if(V.key!=null)R=Pe.get(V.key);else for(ke=be;ke<=re;ke++)if(Rt[ke-be]===0&&Nt(V,y[ke])){R=ke;break}R===void 0?E(V,O,I,!0):(Rt[R-be]=B+1,R>=Ye?Ye=R:lt=!0,b(V,y[R],C,null,O,I,J,Q,W),Ke++)}const Xt=lt?ri(Rt):Zt;for(ke=Xt.length-1,B=Ve-1;B>=0;B--){const V=be+B,R=y[V],ae=y[V+1],ye=V+1<se?ae.el||Ao(ae):F;Rt[B]===0?b(null,R,C,ye,O,I,J,Q,W):lt&&(ke<0||B!==Xt[ke]?D(R,C,ye,2):ke--)}}},D=(f,y,C,F,O=null)=>{const{el:I,type:J,transition:Q,children:W,shapeFlag:B}=f;if(B&6){D(f.component.subTree,y,C,F);return}if(B&128){f.suspense.move(y,C,F);return}if(B&64){J.move(f,y,C,A);return}if(J===q){l(I,y,C);for(let te=0;te<W.length;te++)D(W[te],y,C,F);l(f.anchor,y,C);return}if(J===tn){m(f,y,C);return}if(F!==2&&B&1&&Q)if(F===0)Q.beforeEnter(I),l(I,y,C),Je(()=>Q.enter(I),O);else{const{leave:te,delayLeave:re,afterLeave:de}=Q,be=()=>{f.ctx.isUnmounted?r(I):l(I,y,C)},Pe=()=>{I._isLeaving&&I[_a](!0),te(I,()=>{be(),de&&de()})};re?re(I,be,Pe):Pe()}else l(I,y,C)},E=(f,y,C,F=!1,O=!1)=>{const{type:I,props:J,ref:Q,children:W,dynamicChildren:B,shapeFlag:se,patchFlag:te,dirs:re,cacheIndex:de}=f;if(te===-2&&(O=!1),Q!=null&&(pt(),Cs(Q,null,C,f,!0),vt()),de!=null&&(y.renderCache[de]=void 0),se&256){y.ctx.deactivate(f);return}const be=se&1&&re,Pe=!us(f);let ke;if(Pe&&(ke=J&&J.onVnodeBeforeUnmount)&&mt(ke,y,f),se&6)Vt(f.component,C,F);else{if(se&128){f.suspense.unmount(C,F);return}be&&Jt(f,null,y,"beforeUnmount"),se&64?f.type.remove(f,y,C,A,F):B&&!B.hasOnce&&(I!==q||te>0&&te&64)?Ge(B,y,C,!1,!0):(I===q&&te&384||!O&&se&16)&&Ge(W,y,C),F&&le(f)}(Pe&&(ke=J&&J.onVnodeUnmounted)||be)&&Je(()=>{ke&&mt(ke,y,f),be&&Jt(f,null,y,"unmounted")},C)},le=f=>{const{type:y,el:C,anchor:F,transition:O}=f;if(y===q){Me(C,F);return}if(y===tn){k(f);return}const I=()=>{r(C),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(f.shapeFlag&1&&O&&!O.persisted){const{leave:J,delayLeave:Q}=O,W=()=>J(C,I);Q?Q(f.el,I,W):W()}else I()},Me=(f,y)=>{let C;for(;f!==y;)C=$(f),r(f),f=C;r(y)},Vt=(f,y,C)=>{const{bum:F,scope:O,job:I,subTree:J,um:Q,m:W,a:B}=f;Ro(W),Ro(B),F&&_n(F),O.stop(),I&&(I.flags|=8,E(J,f,y,C)),Q&&Je(Q,y),Je(()=>{f.isUnmounted=!0},y)},Ge=(f,y,C,F=!1,O=!1,I=0)=>{for(let J=I;J<f.length;J++)E(f[J],y,C,F,O)},Pt=f=>{if(f.shapeFlag&6)return Pt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const y=$(f.anchor||f.el),C=y&&y[ma];return C?$(C):y};let oe=!1;const ee=(f,y,C)=>{let F;f==null?y._vnode&&(E(y._vnode,null,null,!0),F=y._vnode.component):b(y._vnode||null,f,y,null,null,null,C),y._vnode=f,oe||(oe=!0,Wl(F),Ql(),oe=!1)},A={p:b,um:E,m:D,r:le,mt:me,mc:X,pc:z,pbc:ge,n:Pt,o:e};return{render:ee,hydrate:void 0,createApp:Ha(ee)}}function Yn({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 oi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Eo(e,t,s=!1){const l=e.children,r=t.children;if(he(l)&&he(r))for(let o=0;o<l.length;o++){const a=l[o];let i=r[o];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=r[o]=Tt(r[o]),i.el=a.el),!s&&i.patchFlag!==-2&&Eo(a,i)),i.type===en&&(i.patchFlag===-1&&(i=r[o]=Tt(i)),i.el=a.el),i.type===dt&&!i.el&&(i.el=a.el)}}function ri(e){const t=e.slice(),s=[0];let l,r,o,a,i;const c=e.length;for(l=0;l<c;l++){const v=e[l];if(v!==0){if(r=s[s.length-1],e[r]<v){t[l]=r,s.push(l);continue}for(o=0,a=s.length-1;o<a;)i=o+a>>1,e[s[i]]<v?o=i+1:a=i;v<e[s[o]]&&(o>0&&(t[l]=s[o-1]),s[o]=l)}}for(o=s.length,a=s[o-1];o-- >0;)s[o]=a,a=t[a];return s}function Po(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Po(t)}function Ro(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ao(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ao(t.subTree):null}const Mo=e=>e.__isSuspense;let Xn=0;const ai={name:"Suspense",__isSuspense:!0,process(e,t,s,l,r,o,a,i,c,v){if(e==null)ii(t,s,l,r,o,a,i,c,v);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}ui(e,t,s,l,r,a,i,c,v)}},hydrate:ci,normalize:di};function Ps(e,t){const s=e.props&&e.props[t];fe(s)&&s()}function ii(e,t,s,l,r,o,a,i,c){const{p:v,o:{createElement:p}}=c,g=p("div"),$=e.suspense=Do(e,r,l,t,g,s,o,a,i,c);v(null,$.pendingBranch=e.ssContent,g,null,l,$,o,a),$.deps>0?(Ps(e,"onPending"),Ps(e,"onFallback"),v(null,e.ssFallback,t,s,l,null,o,a),ds($,e.ssFallback)):$.resolve(!1,!0)}function ui(e,t,s,l,r,o,a,i,{p:c,um:v,o:{createElement:p}}){const g=t.suspense=e.suspense;g.vnode=t,t.el=e.el;const $=t.ssContent,x=t.ssFallback,{activeBranch:_,pendingBranch:b,isInFallback:S,isHydrating:U}=g;if(b)g.pendingBranch=$,Nt(b,$)?(c(b,$,g.hiddenContainer,null,r,g,o,a,i),g.deps<=0?g.resolve():S&&(U||(c(_,x,s,l,r,null,o,a,i),ds(g,x)))):(g.pendingId=Xn++,U?(g.isHydrating=!1,g.activeBranch=b):v(b,r,g),g.deps=0,g.effects.length=0,g.hiddenContainer=p("div"),S?(c(null,$,g.hiddenContainer,null,r,g,o,a,i),g.deps<=0?g.resolve():(c(_,x,s,l,r,null,o,a,i),ds(g,x))):_&&Nt(_,$)?(c(_,$,s,l,r,g,o,a,i),g.resolve(!0)):(c(null,$,g.hiddenContainer,null,r,g,o,a,i),g.deps<=0&&g.resolve()));else if(_&&Nt(_,$))c(_,$,s,l,r,g,o,a,i),ds(g,$);else if(Ps(t,"onPending"),g.pendingBranch=$,$.shapeFlag&512?g.pendingId=$.component.suspenseId:g.pendingId=Xn++,c(null,$,g.hiddenContainer,null,r,g,o,a,i),g.deps<=0)g.resolve();else{const{timeout:M,pendingId:m}=g;M>0?setTimeout(()=>{g.pendingId===m&&g.fallback(x)},M):M===0&&g.fallback(x)}}function Do(e,t,s,l,r,o,a,i,c,v,p=!1){const{p:g,m:$,um:x,n:_,o:{parentNode:b,remove:S}}=v;let U;const M=hi(e);M&&t&&t.pendingBranch&&(U=t.pendingId,t.deps++);const m=e.props?Tr(e.props.timeout):void 0,k=o,L={vnode:e,parent:t,parentComponent:s,namespace:a,container:l,hiddenContainer:r,deps:0,pendingId:Xn++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!p,isHydrating:p,isUnmounted:!1,effects:[],resolve(P=!1,j=!1){const{vnode:X,activeBranch:Z,pendingBranch:ge,pendingId:Ee,effects:we,parentComponent:Ce,container:me,isInFallback:$e}=L;let ne=!1;L.isHydrating?L.isHydrating=!1:P||(ne=Z&&ge.transition&&ge.transition.mode==="out-in",ne&&(Z.transition.afterLeave=()=>{Ee===L.pendingId&&($(ge,me,o===k?_(Z):o,0),jn(we),$e&&X.ssFallback&&(X.ssFallback.el=null))}),Z&&(b(Z.el)===me&&(o=_(Z)),x(Z,Ce,L,!0),!ne&&$e&&X.ssFallback&&Je(()=>X.ssFallback.el=null,L)),ne||$(ge,me,o,0)),ds(L,ge),L.pendingBranch=null,L.isInFallback=!1;let H=L.parent,z=!1;for(;H;){if(H.pendingBranch){H.effects.push(...we),z=!0;break}H=H.parent}!z&&!ne&&jn(we),L.effects=[],M&&t&&t.pendingBranch&&U===t.pendingId&&(t.deps--,t.deps===0&&!j&&t.resolve()),Ps(X,"onResolve")},fallback(P){if(!L.pendingBranch)return;const{vnode:j,activeBranch:X,parentComponent:Z,container:ge,namespace:Ee}=L;Ps(j,"onFallback");const we=_(X),Ce=()=>{L.isInFallback&&(g(null,P,ge,we,Z,null,Ee,i,c),ds(L,P))},me=P.transition&&P.transition.mode==="out-in";me&&(X.transition.afterLeave=Ce),L.isInFallback=!0,x(X,Z,null,!0),me||Ce()},move(P,j,X){L.activeBranch&&$(L.activeBranch,P,j,X),L.container=P},next(){return L.activeBranch&&_(L.activeBranch)},registerDep(P,j,X){const Z=!!L.pendingBranch;Z&&L.deps++;const ge=P.vnode.el;P.asyncDep.catch(Ee=>{os(Ee,P,0)}).then(Ee=>{if(P.isUnmounted||L.isUnmounted||L.pendingId!==P.suspenseId)return;P.asyncResolved=!0;const{vnode:we}=P;tl(P,Ee),ge&&(we.el=ge);const Ce=!ge&&P.subTree.el;j(P,we,b(ge||P.subTree.el),ge?null:_(P.subTree),L,a,X),Ce&&(we.placeholder=null,S(Ce)),Wn(P,we.el),Z&&--L.deps===0&&L.resolve()})},unmount(P,j){L.isUnmounted=!0,L.activeBranch&&x(L.activeBranch,s,P,j),L.pendingBranch&&x(L.pendingBranch,s,P,j)}};return L}function ci(e,t,s,l,r,o,a,i,c){const v=t.suspense=Do(t,l,s,e.parentNode,document.createElement("div"),null,r,o,a,i,!0),p=c(e,v.pendingBranch=t.ssContent,s,v,o,a);return v.deps===0&&v.resolve(!1,!0),p}function di(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=Lo(l?s.default:s),e.ssFallback=l?Lo(s.fallback):_e(dt)}function Lo(e){let t;if(fe(e)){const s=fs&&e._c;s&&(e._d=!1,u()),e=e(),s&&(e._d=!0,t=Ze,Oo())}return he(e)&&(e=Wa(e)),e=ft(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function fi(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):jn(e)}function ds(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let r=t.el;for(;!r&&t.component;)t=t.component.subTree,r=t.el;s.el=r,l&&l.subTree===s&&(l.vnode.el=r,Wn(l,r))}function hi(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const q=Symbol.for("v-fgt"),en=Symbol.for("v-txt"),dt=Symbol.for("v-cmt"),tn=Symbol.for("v-stc"),Rs=[];let Ze=null;function u(e=!1){Rs.push(Ze=e?null:[])}function Oo(){Rs.pop(),Ze=Rs[Rs.length-1]||null}let fs=1;function Fo(e,t=!1){fs+=e,e<0&&Ze&&t&&(Ze.hasOnce=!0)}function Io(e){return e.dynamicChildren=fs>0?Ze||Zt:null,Oo(),fs>0&&Ze&&Ze.push(e),e}function d(e,t,s,l,r,o){return Io(n(e,t,s,l,r,o,!0))}function et(e,t,s,l,r){return Io(_e(e,t,s,l,r,!0))}function sn(e){return e?e.__v_isVNode===!0:!1}function Nt(e,t){return e.type===t.type&&e.key===t.key}const No=({key:e})=>e??null,nn=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?De(e)||je(e)||fe(e)?{i:We,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,l=0,r=null,o=e===q?0:1,a=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&No(t),ref:t&&nn(t),scopeId:Gl,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:l,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:We};return i?(Zn(c,s),o&128&&e.normalize(c)):s&&(c.shapeFlag|=De(s)?8:16),fs>0&&!a&&Ze&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ze.push(c),c}const _e=pi;function pi(e,t=null,s=null,l=0,r=null,o=!1){if((!e||e===lo)&&(e=dt),sn(e)){const i=hs(e,t,!0);return s&&Zn(i,s),fs>0&&!o&&Ze&&(i.shapeFlag&6?Ze[Ze.indexOf(e)]=i:Ze.push(i)),i.patchFlag=-2,i}if(Ei(e)&&(e=e.__vccOpts),t){t=vi(t);let{class:i,style:c}=t;i&&!De(i)&&(t.class=N(i)),Te(c)&&(On(c)&&!he(c)&&(c=Ie({},c)),t.style=Ne(c))}const a=De(e)?1:Mo(e)?128:ba(e)?64:Te(e)?4:fe(e)?2:0;return n(e,t,s,l,r,a,o,!0)}function vi(e){return e?On(e)||xo(e)?Ie({},e):e:null}function hs(e,t,s=!1,l=!1){const{props:r,ref:o,patchFlag:a,children:i,transition:c}=e,v=t?yi(r||{},t):r,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:v,key:v&&No(v),ref:t&&t.ref?s&&o?he(o)?o.concat(nn(t)):[o,nn(t)]:nn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==q?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&hs(e.ssContent),ssFallback:e.ssFallback&&hs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&l&&Bn(p,c.clone(p)),p}function ve(e=" ",t=0){return _e(en,null,e,t)}function gi(e,t){const s=_e(tn,null,e);return s.staticCount=t,s}function Y(e="",t=!1){return t?(u(),et(dt,null,e)):_e(dt,null,e)}function ft(e){return e==null||typeof e=="boolean"?_e(dt):he(e)?_e(q,null,e.slice()):sn(e)?Tt(e):_e(en,null,String(e))}function Tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:hs(e)}function Zn(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(he(t))s=16;else if(typeof t=="object")if(l&65){const r=t.default;r&&(r._c&&(r._d=!1),Zn(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!xo(t)?t._ctx=We:r===3&&We&&(We.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else fe(t)?(t={default:t,_ctx:We},s=32):(t=String(t),l&64?(s=16,t=[ve(t)]):s=8);e.children=t,e.shapeFlag|=s}function yi(...e){const t={};for(let s=0;s<e.length;s++){const l=e[s];for(const r in l)if(r==="class")t.class!==l.class&&(t.class=N([t.class,l.class]));else if(r==="style")t.style=Ne([t.style,l.style]);else if(Fs(r)){const o=t[r],a=l[r];a&&o!==a&&!(he(o)&&o.includes(a))&&(t[r]=o?[].concat(o,a):a)}else r!==""&&(t[r]=l[r])}return t}function mt(e,t,s,l=null){gt(e,t,7,[s,l])}const mi=po();let bi=0;function _i(e,t,s){const l=e.type,r=(t?t.appContext:e.appContext)||mi,o={uid:bi++,vnode:e,type:l,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Lr(!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:$o(l,r),emitsOptions:vo(l,r),emit:null,emitted:null,propsDefaults:Re,inheritAttrs:l.inheritAttrs,ctx:Re,data:Re,props:Re,attrs:Re,slots:Re,refs:Re,setupState:Re,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=Va.bind(null,o),e.ce&&e.ce(o),o}let Be=null;const xi=()=>Be||We;let ln,el;{const e=js(),t=(s,l)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(l),o=>{r.length>1?r.forEach(a=>a(o)):r[0](o)}};ln=t("__VUE_INSTANCE_SETTERS__",s=>Be=s),el=t("__VUE_SSR_SETTERS__",s=>ps=s)}const As=e=>{const t=Be;return ln(e),e.scope.on(),()=>{e.scope.off(),ln(t)}},jo=()=>{Be&&Be.scope.off(),ln(null)};function Bo(e){return e.vnode.shapeFlag&4}let ps=!1;function wi(e,t=!1,s=!1){t&&el(t);const{props:l,children:r}=e.vnode,o=Bo(e);Ya(e,l,o,t),ti(e,r,s||t);const a=o?$i(e,t):void 0;return t&&el(!1),a}function $i(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fa);const{setup:l}=s;if(l){pt();const r=e.setupContext=l.length>1?Si(e):null,o=As(e),a=ls(l,e,0,[e.props,r]),i=yl(a);if(vt(),o(),(i||e.sp)&&!us(e)&&Un(e),i){if(a.then(jo,jo),t)return a.then(c=>{tl(e,c)}).catch(c=>{os(c,e,0)});e.asyncDep=a}else tl(e,a)}else Uo(e)}function tl(e,t,s){fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=Hl(t)),Uo(e)}function Uo(e,t,s){const l=e.type;e.render||(e.render=l.render||ht);{const r=As(e);pt();try{Ia(e)}finally{vt(),r()}}}const ki={get(e,t){return qe(e,"get",""),e[t]}};function Si(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ki),slots:e.slots,emit:e.emit,expose:t}}function sl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Hl(ta(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ts)return Ts[s](e)},has(t,s){return s in t||s in Ts}})):e.proxy}const Ci=/(?:^|[-_])\w/g,Ti=e=>e.replace(Ci,t=>t.toUpperCase()).replace(/[-_]/g,"");function qo(e,t=!0){return fe(e)?e.displayName||e.name:e.name||t&&e.__name}function Ho(e,t,s=!1){let l=qo(t);if(!l&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(l=r[1])}if(!l&&e){const r=o=>{for(const a in o)if(o[a]===t)return a};l=r(e.components)||e.parent&&r(e.parent.type.components)||r(e.appContext.components)}return l?Ti(l):s?"App":"Anonymous"}function Ei(e){return fe(e)&&"__vccOpts"in e}const K=(e,t)=>ra(e,t,ps),Pi="3.5.29";let nl;const Ko=typeof window<"u"&&window.trustedTypes;if(Ko)try{nl=Ko.createPolicy("vue",{createHTML:e=>e})}catch{}const Vo=nl?e=>nl.createHTML(e):e=>e,Ri="http://www.w3.org/2000/svg",Ai="http://www.w3.org/1998/Math/MathML",Et=typeof document<"u"?document:null,zo=Et&&Et.createElement("template"),Mi={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,l)=>{const r=t==="svg"?Et.createElementNS(Ri,e):t==="mathml"?Et.createElementNS(Ai,e):s?Et.createElement(e,{is:s}):Et.createElement(e);return e==="select"&&l&&l.multiple!=null&&r.setAttribute("multiple",l.multiple),r},createText:e=>Et.createTextNode(e),createComment:e=>Et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,l,r,o){const a=s?s.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===o||!(r=r.nextSibling)););else{zo.innerHTML=Vo(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const i=zo.content;if(l==="svg"||l==="mathml"){const c=i.firstChild;for(;c.firstChild;)i.appendChild(c.firstChild);i.removeChild(c)}t.insertBefore(i,s)}return[a?a.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Di=Symbol("_vtc");function Li(e,t,s){const l=e[Di];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Wo=Symbol("_vod"),Oi=Symbol("_vsh"),Fi=Symbol(""),Ii=/(?:^|;)\s*display\s*:/;function Ni(e,t,s){const l=e.style,r=De(s);let o=!1;if(s&&!r){if(t)if(De(t))for(const a of t.split(";")){const i=a.slice(0,a.indexOf(":")).trim();s[i]==null&&on(l,i,"")}else for(const a in t)s[a]==null&&on(l,a,"");for(const a in s)a==="display"&&(o=!0),on(l,a,s[a])}else if(r){if(t!==s){const a=l[Fi];a&&(s+=";"+a),l.cssText=s,o=Ii.test(s)}}else t&&e.removeAttribute("style");Wo in e&&(e[Wo]=o?l.display:"",e[Oi]&&(l.display="none"))}const Qo=/\s*!important$/;function on(e,t,s){if(he(s))s.forEach(l=>on(e,t,l));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const l=ji(e,t);Qo.test(s)?e.setProperty(Mt(l),s.replace(Qo,""),"important"):e[l]=s}}const Jo=["Webkit","Moz","ms"],ll={};function ji(e,t){const s=ll[t];if(s)return s;let l=tt(t);if(l!=="filter"&&l in e)return ll[t]=l;l=Ns(l);for(let r=0;r<Jo.length;r++){const o=Jo[r]+l;if(o in e)return ll[t]=o}return t}const Go="http://www.w3.org/1999/xlink";function Yo(e,t,s,l,r,o=Mr(t)){l&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Go,t.slice(6,t.length)):e.setAttributeNS(Go,t,s):s==null||o&&!wl(s)?e.removeAttribute(t):e.setAttribute(t,o?"":ot(s)?String(s):s)}function Xo(e,t,s,l,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Vo(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(i!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let a=!1;if(s===""||s==null){const i=typeof e[t];i==="boolean"?s=wl(s):s==null&&i==="string"?(s="",a=!0):i==="number"&&(s=0,a=!0)}try{e[t]=s}catch{}a&&e.removeAttribute(r||t)}function Bi(e,t,s,l){e.addEventListener(t,s,l)}function Ui(e,t,s,l){e.removeEventListener(t,s,l)}const Zo=Symbol("_vei");function qi(e,t,s,l,r=null){const o=e[Zo]||(e[Zo]={}),a=o[t];if(l&&a)a.value=l;else{const[i,c]=Hi(t);if(l){const v=o[t]=zi(l,r);Bi(e,i,v,c)}else a&&(Ui(e,i,a,c),o[t]=void 0)}}const er=/(?:Once|Passive|Capture)$/;function Hi(e){let t;if(er.test(e)){t={};let l;for(;l=e.match(er);)e=e.slice(0,e.length-l[0].length),t[l[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Mt(e.slice(2)),t]}let ol=0;const Ki=Promise.resolve(),Vi=()=>ol||(Ki.then(()=>ol=0),ol=Date.now());function zi(e,t){const s=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=s.attached)return;gt(Wi(l,s.value),t,5,[l])};return s.value=e,s.attached=Vi(),s}function Wi(e,t){if(he(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(l=>r=>!r._stopped&&l&&l(r))}else return t}const tr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Qi=(e,t,s,l,r,o)=>{const a=r==="svg";t==="class"?Li(e,l,a):t==="style"?Ni(e,s,l):Fs(t)?gn(t)||qi(e,t,s,l,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ji(e,t,l,a))?(Xo(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Yo(e,t,l,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!De(l))?Xo(e,tt(t),l,o,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Yo(e,t,l,a))};function Ji(e,t,s,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&tr(t)&&fe(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 tr(t)&&De(s)?!1:t in e}const Gi=["ctrl","shift","alt","meta"],Yi={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)=>Gi.some(s=>e[`${s}Key`]&&!t.includes(s))},jt=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),l=t.join(".");return s[l]||(s[l]=((r,...o)=>{for(let a=0;a<t.length;a++){const i=Yi[t[a]];if(i&&i(r,t))return}return e(r,...o)}))},Xi={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ms=(e,t)=>{const s=e._withKeys||(e._withKeys={}),l=t.join(".");return s[l]||(s[l]=(r=>{if(!("key"in r))return;const o=Mt(r.key);if(t.some(a=>a===o||Xi[a]===o))return e(r)}))},Zi=Ie({patchProp:Qi},Mi);let sr;function eu(){return sr||(sr=ni(Zi))}const tu=((...e)=>{const t=eu().createApp(...e),{mount:s}=t;return t.mount=l=>{const r=nu(l);if(!r)return;const o=t._component;!fe(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const a=s(r,!1,su(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t});function su(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function nu(e){return De(e)?document.querySelector(e):e}function lu(e,t){const s=e||(typeof window<"u"?window.location.origin:"");if(!t)return{baseUrl:s};const l={headers:{Authorization:`Bearer ${t}`}};return{baseUrl:s,beforeSubscribe(r){return l},beforeUnsubscribe(r){return l}}}async function ou(){if(typeof window<"u"&&window.Transmit&&typeof window.Transmit=="function")return window.Transmit;try{const e=await import("@adonisjs/transmit-client");return e.Transmit??e.default??null}catch{return null}}function ru(e){let t=null,s=null,l=!1;return{subscribe:async()=>{try{const a=await ou();if(!a)throw new Error("Transmit client not available (neither window.Transmit nor @adonisjs/transmit-client)");if(l)return;t=new a(lu(e.baseUrl,e.authToken)),s=t.subscription(e.channelName),s.onMessage(i=>{l||e.onMessage(i)}),await s.create()}catch(a){e.onError?.(a)}},unsubscribe:async()=>{l=!0;try{await s?.delete(),s=null,t=null}catch{}}}}function au(e){let t=!1;const s=ru({baseUrl:e.baseUrl,channelName:e.channelName,authToken:e.authToken,onMessage:e.onMessage,onError:l=>{t=!0,e.onError?.(l),e.onDisconnect?.()}});return s.subscribe().then(()=>{t||e.onConnect?.()}).catch(l=>{e.onError?.(l),e.onDisconnect?.()}),{unsubscribe:()=>{s.unsubscribe().catch(()=>{})}}}class rn extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class iu extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class rl{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const r={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},o=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:r,credentials:this.authToken?"omit":"same-origin"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(o.status===401||o.status===403)throw new rn(o.status);if(!o.ok){const a=await o.text().catch(()=>"");throw new iu(o.status,a)}return o.json()}async get(t,s){const l=s?`${t}?${s}`:t;return this.fetch(l)}async post(t,s){const l={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,l)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const an="ss-dash-theme",al="ss-theme-change";function Ds(){if(typeof window>"u")return"light";const e=localStorage.getItem(an);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function uu(e){typeof window>"u"||(localStorage.setItem(an,e),window.dispatchEvent(new CustomEvent(al,{detail:e})))}function cu(){const t=Ds()==="dark"?"light":"dark";return uu(t),t}function nr(e){if(typeof window>"u")return()=>{};const t=o=>{const a=o.detail;(a==="dark"||a==="light")&&e(a)},s=o=>{if(o.key===an){const a=o.newValue;e(a==="dark"||a==="light"?a:Ds())}},l=window.matchMedia("(prefers-color-scheme: dark)"),r=o=>{localStorage.getItem(an)||e(o.matches?"dark":"light")};return window.addEventListener(al,t),window.addEventListener("storage",s),l.addEventListener("change",r),()=>{window.removeEventListener(al,t),window.removeEventListener("storage",s),l.removeEventListener("change",r)}}const du={color:"#34d399",fillOpacityTop:.25,fillOpacityBottom:.02,strokeWidth:1.5,width:120,height:32,padding:2};function fu(e){return{...du,...e}}let hu=0;function pu(){return`ss-grad-${hu++}`}function vu(e){if(e.length===0)return null;let t=e[0],s=e[0],l=e[0];for(let r=1;r<e.length;r++){const o=e[r];o<t&&(t=o),o>s&&(s=o),l+=o}return{min:t,max:s,avg:l/e.length}}function gu(e,t){if(e.length<2)return null;const s=fu(t),l=vu(e),r=l.max-l.min||1,o=s.width-s.padding*2,a=s.height-s.padding*2,i=s.padding,c=e.length,v=Array.from({length:c});for(let b=0;b<c;b++){const S=i+b/(c-1)*o,U=i+a-(e[b]-l.min)/r*a;v[b]=`${S.toFixed(1)},${U.toFixed(1)}`}const p=v.join(" "),g=(i+o).toFixed(1),$=(i+a).toFixed(1),x=i.toFixed(1),_=`M${v[0]} `+v.slice(1).map(b=>`L${b}`).join(" ")+` L${g},${$} L${x},${$} Z`;return{points:p,areaPath:_,gradientId:pu(),options:s,stats:l}}const yu=5e3,lr=1e4,or=100,mu=500;function bu(e){return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"'}function _u(e,t,s){if(e.length===0)return"[]";const l=e.slice(0,3).map(a=>s(a,30)),r=e.length>3?", ..."+e.length+" items":"",o="["+l.join(", ")+r+"]";return o.length>t?"["+e.length+" items]":o}function xu(e,t,s){const l=Object.keys(e);if(l.length===0)return"{}";const r=[];for(let c=0;c<Math.min(l.length,4);c++)r.push(l[c]+": "+s(e[l[c]],30));const o=l.length>4?", ...+"+(l.length-4):"",a="{ "+r.join(", ")+o+" }";return a.length<=t?a:"{ "+(l.slice(0,6).join(", ")+(l.length>6?", ...":""))+" }"}function wu(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),l=Math.floor(t%86400/3600),r=Math.floor(t%3600/60);return s>0?`${s}d ${l}h`:l>0?`${l}h ${r}m`:r>0?`${r}m ${t%60}s`:`${t}s`}function Bt(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function rr(e){return/([+-]\d{2}:?\d{2}|Z)\s*$/.test(e)?e:e+"Z"}function Ut(e){if(!e)return"-";const t=typeof e=="string"?new Date(rr(e)):new Date(e);return Number.isNaN(t.getTime())?"-":t.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})+"."+String(t.getMilliseconds()).padStart(3,"0")}function bt(e){if(!e)return"-";const t=typeof e=="string"?new Date(rr(e)).getTime():e,s=Math.floor((Date.now()-t)/1e3);return s<0?"just now":s<60?`${s}s ago`:s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:`${Math.floor(s/86400)}d ago`}function $u(e){return e>mu?"very-slow":e>or?"slow":"normal"}function il(e,t="ss-dash"){const s=$u(e);return s==="very-slow"?`${t}-very-slow`:s==="slow"?`${t}-slow`:""}function un(e,t=100){return e===null?"null":e===void 0?"-":typeof e=="string"?bu(e):typeof e=="number"||typeof e=="boolean"?String(e):Array.isArray(e)?_u(e,t,un):typeof e=="object"?xu(e,t,un):String(e)}function ku(e){return e<0?"no expiry":e<60?`${e}s`:e<3600?`${Math.floor(e/60)}m`:e<86400?`${Math.floor(e/3600)}h`:`${Math.floor(e/86400)}d`}function Su(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}const Cu=[{key:"page",param:"page",isNumeric:!0},{key:"perPage",param:"perPage",isNumeric:!0},{key:"search",param:"search"},{key:"sort",param:"sort"},{key:"sortDir",param:"direction"},{key:"timeRange",param:"range"}];function Tu(e){const t=new URLSearchParams,s=e;for(const{key:l,param:r,isNumeric:o}of Cu){const a=s[l];(o?a!=null:a)&&t.set(r,String(a))}if(e.filters)for(const[l,r]of Object.entries(e.filters))r&&t.set(l,r);return t.toString()}function Eu(e,t,s=2){if(t<=1)return[1];const l=[],r=Math.max(2,e-s),o=Math.min(t-1,e+s);l.push(1),r>2&&l.push("...");for(let a=r;a<=o;a++)l.push(a);return o<t-1&&l.push("..."),t>1&&l.push(t),l}const Pu=["tracing","process","system","http","db","redis","queues","cache","app","log","emails","dashboard"],ar="/admin/api/debug",ir={tracing:!1,process:!1,system:!1,http:!1,db:!1,redis:!1,queues:!1,cache:!1,app:!1,log:!1,emails:!1,dashboard:!1,customPanes:[]};function Ru(e){const t={customPanes:e.customPanes??[]},s=e.features;for(const l of Pu)t[l]=s?.[l]??!1;return t}async function Au(e,t=ar){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function Mu(e){const{baseUrl:t="",debugEndpoint:s=ar,authToken:l}=e,r=new rl({baseUrl:t,authToken:l});try{const o=await Au(r,s);return Ru(o)}catch{return ir}}const Du={overview:"/overview",requests:"/requests",queries:"/queries",events:"/events",routes:"/routes",logs:"/logs",emails:"/emails",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config"};function Lu(e){return Du[e]||`/${e}`}class ur{constructor(t,s){this.client=t,this.basePath=s}async fetchSection(t,s,l){const r=Lu(t),o=s?`${this.basePath}${r}?${s}`:`${this.basePath}${r}`;return this.client.fetch(o,l)}async fetchChart(t){return this.client.fetch(`${this.basePath}/overview/chart?range=${t}`)}async fetchGroupedQueries(){return this.client.fetch(`${this.basePath}/queries/grouped`)}async explainQuery(t){return this.client.fetch(`${this.basePath}/queries/${t}/explain`)}async retryJob(t){return this.client.fetch(`${this.basePath}/jobs/${t}/retry`,{method:"POST"})}async fetchCacheKey(t,s){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`,s)}async deleteCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`,{method:"DELETE"})}async fetchEmailPreview(t,s){return this.client.fetch(`${this.basePath}/emails/${t}/preview`,s)}}function Ou(e){if(!e||typeof e!="object")return!1;const t=e;return t.data!==void 0&&t.meta!==void 0}function Fu(e,t){return t.aborted?!0:e instanceof DOMException&&e.name==="AbortError"}class Iu{client;api;callbacks;endpoint;perPage;section;page=1;search;sort;sortDir;filters;timeRange;timer=null;fetchId=0;explicitFetchPending=!1;hasFetched=!1;stopped=!1;abortController=null;constructor(t){this.client=new rl({baseUrl:t.baseUrl,authToken:t.authToken}),this.api=new ur(this.client,t.endpoint),this.endpoint=t.endpoint,this.section=t.section,this.perPage=t.perPage,this.callbacks=t.callbacks}start(){this.stopped=!1,this.fetch(!1),this.startRefreshTimer()}stop(){this.stopped=!0,this.stopRefreshTimer(),this.abortController?.abort(),this.abortController=null}async fetch(t=!0){if(this.shouldSkipFetch(t))return;const{controller:s,myFetchId:l}=this.prepareFetch(t);try{const r=await this.executeFetch(s);if(this.isStaleResponse(l))return;this.applyFetchResult(r)}catch(r){if(this.shouldIgnoreError(r,s.signal,l))return;this.handleFetchError(r,t)}finally{t||(this.explicitFetchPending=!1)}}setSection(t){this.section!==t&&(this.section=t,this.page=1,this.search=void 0,this.sort=void 0,this.sortDir=void 0,this.filters=void 0,this.hasFetched=!1,this.callbacks.onData(null),this.callbacks.onPagination(null),this.callbacks.onLoading(!0),this.callbacks.onError(null),this.fetch(!1),this.startRefreshTimer())}setPage(t){this.page=t,this.fetch(!1)}setSearch(t){this.search=t||void 0,this.page=1,this.fetch(!1)}setFilter(t,s){this.filters||(this.filters={}),this.filters[t]=String(s),this.page=1,this.fetch(!1)}setSort(t,s){this.sort===t&&!s?this.sortDir=this.sortDir==="asc"?"desc":"asc":(this.sort=t,this.sortDir=s||"desc"),this.fetch(!1)}setTimeRange(t){this.timeRange=t,this.fetch(!1)}async mutate(t,s="post",l){const r=`${this.endpoint}/${t}`;try{const o=s==="post"?await this.client.post(r,l):await this.client.delete(r);return await this.fetch(!0),o}catch(o){throw o instanceof Error?o:new Error(String(o))}}configure(t){t.page!==void 0&&(this.page=t.page),t.perPage!==void 0&&(this.perPage=t.perPage),this.search=t.search,this.sort=t.sort,this.sortDir=t.sortDir,this.filters=t.filters,this.timeRange=t.timeRange}hasData(){return this.hasFetched}handleRefreshSignal(){this.hasFetched&&this.fetch(!0)}getApi(){return this.api}getClient(){return this.client}shouldSkipFetch(t){return t&&this.explicitFetchPending?!0:!this.section}prepareFetch(t){this.abortController?.abort();const s=new AbortController;this.abortController=s;const l=++this.fetchId;return t||(this.callbacks.onLoading(!0),this.explicitFetchPending=!0),{controller:s,myFetchId:l}}async executeFetch(t){const s=this.buildCurrentQueryString();return this.api.fetchSection(this.section,s||void 0,{signal:t.signal})}isStaleResponse(t){return t!==this.fetchId||this.stopped}shouldIgnoreError(t,s,l){return Fu(t,s)?!0:this.isStaleResponse(l)}buildCurrentQueryString(){const t=this.sort?this.sort.replace(/[A-Z]/g,l=>"_"+l.toLowerCase()):void 0,s=this.filters;return Tu({page:this.page,perPage:this.perPage,search:this.search,sort:t,sortDir:this.sort?this.sortDir:void 0,filters:s&&Object.keys(s).length>0?s:void 0,timeRange:this.section.startsWith("overview")?this.timeRange:void 0})}applyFetchResult(t){Ou(t)?(this.callbacks.onData(t.data),this.callbacks.onPagination(t.meta)):(this.callbacks.onData(t),this.callbacks.onPagination(null)),this.callbacks.onError(null),this.callbacks.onLoading(!1),this.hasFetched=!0}handleFetchError(t,s){if(t instanceof rn){this.callbacks.onError(t),this.callbacks.onLoading(!1),this.stopRefreshTimer(),this.callbacks.onUnauthorized();return}s||(this.callbacks.onError(t instanceof Error?t:new Error(String(t))),this.callbacks.onLoading(!1))}startRefreshTimer(){this.stopRefreshTimer();const t=this.section==="overview"?yu:lr;this.timer=setInterval(()=>this.fetch(!0),t)}stopRefreshTimer(){this.timer&&(clearInterval(this.timer),this.timer=null)}}const He={queries:{viewBox:"0 0 24 24",elements:['<ellipse cx="12" cy="5" rx="9" ry="3"/>','<path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"/>','<path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/>']},events:{viewBox:"0 0 24 24",elements:['<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>']},emails:{viewBox:"0 0 24 24",elements:['<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/>','<polyline points="22,6 12,13 2,6"/>']},routes:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<line x1="2" y1="12" x2="22" y2="12"/>','<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>']},logs:{viewBox:"0 0 24 24",elements:['<line x1="8" y1="6" x2="21" y2="6"/>','<line x1="8" y1="12" x2="21" y2="12"/>','<line x1="8" y1="18" x2="21" y2="18"/>','<line x1="3" y1="6" x2="3.01" y2="6"/>','<line x1="3" y1="12" x2="3.01" y2="12"/>','<line x1="3" y1="18" x2="3.01" y2="18"/>']},timeline:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},cache:{viewBox:"0 0 24 24",elements:['<rect x="2" y="2" width="20" height="8" rx="2" ry="2"/>','<rect x="2" y="14" width="20" height="8" rx="2" ry="2"/>','<line x1="6" y1="6" x2="6.01" y2="6"/>','<line x1="6" y1="18" x2="6.01" y2="18"/>']},jobs:{viewBox:"0 0 24 24",elements:['<rect x="2" y="7" width="20" height="14" rx="2" ry="2"/>','<path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/>']},config:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="3"/>','<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>']},internals:{viewBox:"0 0 24 24",elements:['<rect x="4" y="4" width="16" height="16" rx="2"/>','<rect x="9" y="9" width="6" height="6"/>','<line x1="9" y1="1" x2="9" y2="4"/>','<line x1="15" y1="1" x2="15" y2="4"/>','<line x1="9" y1="20" x2="9" y2="23"/>','<line x1="15" y1="20" x2="15" y2="23"/>','<line x1="20" y1="9" x2="23" y2="9"/>','<line x1="20" y1="14" x2="23" y2="14"/>','<line x1="1" y1="9" x2="4" y2="9"/>','<line x1="1" y1="14" x2="4" y2="14"/>']},overview:{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="7" height="7"/>','<rect x="14" y="3" width="7" height="7"/>','<rect x="14" y="14" width="7" height="7"/>','<rect x="3" y="14" width="7" height="7"/>']},requests:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},"dashboard-timeline":{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<polyline points="12 6 12 12 16 14"/>']},"custom-pane":{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="18" height="18" rx="2"/>','<path d="M9 3v18"/>']},wrench:{viewBox:"0 0 24 24",elements:['<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/>']},"external-link":{viewBox:"0 0 24 24",elements:['<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>','<polyline points="15 3 21 3 21 9"/>','<line x1="10" y1="14" x2="21" y2="3"/>']},sun:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="5"/>','<line x1="12" y1="1" x2="12" y2="3"/>','<line x1="12" y1="21" x2="12" y2="23"/>','<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>','<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>','<line x1="1" y1="12" x2="3" y2="12"/>','<line x1="21" y1="12" x2="23" y2="12"/>','<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>','<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>']},moon:{viewBox:"0 0 24 24",elements:['<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>']},search:{viewBox:"0 0 24 24",elements:['<circle cx="11" cy="11" r="8"/>','<line x1="21" y1="21" x2="16.65" y2="16.65"/>']},eye:{viewBox:"0 0 24 24",elements:['<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>','<circle cx="12" cy="12" r="3"/>']},"eye-off":{viewBox:"0 0 24 24",elements:['<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/>','<path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/>','<line x1="1" y1="1" x2="23" y2="23"/>','<path d="M14.12 14.12a3 3 0 1 1-4.24-4.24"/>']},"chevron-right":{viewBox:"0 0 24 24",elements:['<path d="M9 18l6-6-6-6"/>']},"chevron-left":{viewBox:"0 0 24 24",elements:['<path d="M15 18l-6-6 6-6"/>']},"open-external":{viewBox:"0 0 16 16",elements:['<path d="M6 3H3v10h10v-3M9 1h6v6M7 9L15 1"/>']}},Nu="ss-col-resize",cr="ss-resizing";function ju(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let l=!1;function r(){if(!l){l=!0;for(const o of t)o.style.width=o.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const o of t){let a=function(c){c.preventDefault(),c.stopPropagation(),r();const v=c.clientX,p=o.offsetWidth;i.classList.add(cr),i.setPointerCapture(c.pointerId);function g(x){const _=x.clientX-v,b=Math.max(30,p+_);o.style.width=b+"px"}function $(){i.classList.remove(cr),i.removeEventListener("pointermove",g),i.removeEventListener("pointerup",$)}i.addEventListener("pointermove",g),i.addEventListener("pointerup",$)};if(!o.textContent?.trim())continue;const i=document.createElement("div");i.className=Nu,o.appendChild(i),i.addEventListener("pointerdown",a),s.push(()=>{i.removeEventListener("pointerdown",a),i.remove()})}return()=>{for(const o of s)o()}}function Bu(e){const{container:t,handle:s,topPane:l,bottomPane:r,storageKey:o,minHeight:a=60}=e;if(o){const c=localStorage.getItem(o);if(c){const v=parseFloat(c);v>0&&v<1&&(l.style.flex=`${v}`,r.style.flex=`${1-v}`)}}function i(c){c.preventDefault(),s.setPointerCapture(c.pointerId);const p=t.getBoundingClientRect().height,g=c.clientY,$=l.getBoundingClientRect().height;function x(b){const S=b.clientY-g;let U=$+S;const M=p-a-s.offsetHeight;U=Math.max(a,Math.min(U,M));const m=U/(p-s.offsetHeight);l.style.flex=`${m}`,r.style.flex=`${1-m}`}function _(){if(s.removeEventListener("pointermove",x),s.removeEventListener("pointerup",_),o){const b=t.getBoundingClientRect().height-s.offsetHeight;if(b>0){const S=l.getBoundingClientRect().height/b;localStorage.setItem(o,String(S))}}}s.addEventListener("pointermove",x),s.addEventListener("pointerup",_)}return s.addEventListener("pointerdown",i),()=>{s.removeEventListener("pointerdown",i)}}function Uu(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return null}return typeof e=="object"&&e!==null&&!Array.isArray(e)?e:null}function dr(e){const t={};for(const[s,l]of Object.entries(e))Hu.has(s)||(t[s]=l);return Object.keys(t).length>0?t:null}const qu=["all","error","warn","info","debug"];function cn(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function fr(e){return e.msg||e.message||JSON.stringify(e)}function qt(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function Ht(e){const t=e.data||{};return e.requestId||e.request_id||e["x-request-id"]||t.requestId||t.request_id||t["x-request-id"]||""}function hr(e,t="ss-dbg-log-level"){switch(e){case"error":case"fatal":return`${t}-error`;case"warn":return`${t}-warn`;case"info":return`${t}-info`;case"debug":return`${t}-debug`;case"trace":return`${t}-trace`;default:return`${t}-info`}}const Hu=new Set(["level","time","pid","hostname","msg","message","v","name","levelName","level_name","timestamp","createdAt","created_at","requestId","request_id","x-request-id","id","data"]);function _t(e){if(e.data){const t=Uu(e.data);if(t){const s=dr(t);if(s)return s}}return dr(e)}function Ue(e,...t){for(const s of t){const l=e[s];if(l!=null)return l}}function Ku(e){return Ue(e,"createdAt","created_at","timestamp")}function Vu(e){return Ue(e,"method","sql_method")??""}function pr(e){return Ue(e,"sqlNormalized","normalizedSql","sql_normalized","sql")??""}function zu(e,t){let s=0,l=0;for(const c of e){const v=Ue(c,"duration")??0;l+=v,v>or&&s++}const r=vr(e);let o=0;for(const c of r.values())c>1&&(o+=c);const a=e.length>0?l/e.length:0,i=t?.total??e.length;return{slowCount:s,dupCount:o,avgDuration:a,totalCount:i}}function Wu(e){return{id:Ue(e,"id")??0,sql:Ue(e,"sql","sql_text")??"",sqlNormalized:pr(e),duration:Ue(e,"duration")??0,method:Vu(e),model:Ue(e,"model")??"",connection:Ue(e,"connection")??"",timestamp:Ku(e)??0,inTransaction:Ue(e,"inTransaction","in_transaction")??!1}}function vr(e){const t=new Map;for(const s of e){const r=pr(s);t.set(r,(t.get(r)||0)+1)}return t}function Qu(e){const t=[];if(e["Startup Cost"]!==null&&e["Startup Cost"]!==void 0&&t.push(`cost=${e["Startup Cost"]}..${e["Total Cost"]}`),e["Plan Rows"]!==null&&e["Plan Rows"]!==void 0&&t.push(`rows=${e["Plan Rows"]}`),e["Plan Width"]!==null&&e["Plan Width"]!==void 0&&t.push(`width=${e["Plan Width"]}`),e.Filter&&t.push(`filter: ${e.Filter}`),e["Index Cond"]&&t.push(`cond: ${e["Index Cond"]}`),e["Hash Cond"]&&t.push(`hash: ${e["Hash Cond"]}`),e["Join Type"]&&t.push(`join: ${e["Join Type"]}`),e["Sort Key"]){const s=Array.isArray(e["Sort Key"])?e["Sort Key"].join(", "):e["Sort Key"];t.push(`sort: ${s}`)}return t}function gr(e,t=0){if(!e)return[];const l=[{depth:t,nodeType:e["Node Type"]||"Unknown",relationName:e["Relation Name"]||"",alias:e.Alias&&e.Alias!==e["Relation Name"]?e.Alias:"",indexName:e["Index Name"]||"",metrics:Qu(e),isRoot:t===0}],r=e.Plans||[];for(const o of r)l.push(...gr(o,t+1));return l}function Ju(e){return!e||typeof e!="object"?!1:"Plan"in e}function Gu(e){if(!e||e.length===0)return[];const t=e[0];return!t||typeof t!="object"?[]:Object.keys(t)}function Yu(e){return e==null?"-":String(e)}function Xu(e){const t=[{key:"id",label:"#",width:"40px",type:"index"},{key:"sql",label:"SQL",type:"sql"},{key:"duration",label:"Duration",width:"70px",sortable:!0,type:"duration"},{key:"method",label:"Method",width:"60px",type:"method"},{key:"model",label:"Model",width:"90px",type:"model"},{key:"connection",label:"Connection",width:"80px",type:"connection"},{key:"createdAt",label:"Time",width:"90px",sortable:!0,type:"time"}];return t.push({key:"id",label:"",width:"70px",type:"explain"}),t}function Zu(){return[{key:"sqlNormalized",label:"Pattern",type:"sql"},{key:"count",label:"Count",width:"60px",sortable:!0},{key:"avgDuration",label:"Avg",width:"70px",sortable:!0,type:"duration"},{key:"minDuration",label:"Min",width:"70px",type:"duration"},{key:"maxDuration",label:"Max",width:"70px",type:"duration"},{key:"totalDuration",label:"Total",width:"70px",sortable:!0,type:"duration"},{key:"percentOfTotal",label:"% Time",width:"60px"}]}class ec{state;constructor(t="list"){this.state={viewMode:t,sort:{key:t==="list"?"createdAt":"count",dir:"desc"},expandedIds:new Set,explainData:new Map,search:""}}setViewMode(t){return this.state.viewMode=t,this.state.sort={key:t==="list"?"createdAt":"count",dir:"desc"},this.state.expandedIds=new Set,this.state.explainData=new Map,this.state}toggleSort(t){return this.state.sort.key===t?this.state.sort={key:t,dir:this.state.sort.dir==="asc"?"desc":"asc"}:this.state.sort={key:t,dir:"desc"},this.state}toggleExpand(t){return this.state.expandedIds.has(t)?this.state.expandedIds.delete(t):this.state.expandedIds.add(t),this.state}isExpanded(t){return this.state.expandedIds.has(t)}setSearch(t){return this.state.search=t,this.state}startExplain(t){this.state.explainData.set(t,{loading:!0})}completeExplain(t,s){this.state.explainData.set(t,{loading:!1,result:s})}failExplain(t,s){this.state.explainData.set(t,{loading:!1,error:s})}clearExplain(){this.state.explainData=new Map}getExplainState(t){return this.state.explainData.get(t)}}const tc=["all","active","waiting","delayed","completed","failed"];function sc(e){switch(e){case"active":return"blue";case"waiting":return"amber";case"delayed":return"purple";case"completed":return"green";case"failed":return"red";default:return"muted"}}function nc(e){if(!e)return[];if(Array.isArray(e))return e;const t=e;return t.jobs||t.data||[]}function lc(e){if(!e||Array.isArray(e))return null;const t=e;return t.stats||t.overview||null}function oc(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function rc(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function ul(e,t,s,l=0){return e[t]??e[s]??l}function ac(e){return{method:e.method||"",url:e.url||"",statusCode:ul(e,"status_code","statusCode"),totalDuration:ul(e,"total_duration","totalDuration")||e.duration||0,spanCount:ul(e,"span_count","spanCount"),spans:oc(e.spans),warnings:rc(e.warnings),logs:e.logs||[],httpRequestId:e.httpRequestId||e.http_request_id||void 0}}const ic=["password","secret","token","key","credential","auth"];function uc(e){const t=e.toLowerCase();return ic.some(s=>t.includes(s))}function cc(e){if(e==null)return"-";if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e))return e.join(", ")||"-";try{return JSON.stringify(e)}catch{return String(e)}}const dc={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function fc(e){return dc[e]||e}const hc={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function pc(e){return hc[e]||e}function vc(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function gc(e,t){return t.mode?`Mode: ${t.mode}`:e==="edgePlugin"&&t.active?"@serverStats() tag registered":e==="cacheInspector"?t.available?"Redis dependency detected":"Redis not installed":e==="queueInspector"?t.available?"Queue dependency detected":"@rlanz/bull-queue not installed":"-"}function yc(e){return Object.entries(e).map(([t,s])=>({key:t,value:cc(s),secret:uc(t)}))}function mc(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const bc=["healthy","active","connected","available","ready"],_c=["errored","unavailable"];function xc(e){return bc.includes(e)?"ok":_c.includes(e)?"err":""}function Oe(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function dn(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)&&!Oe(e)}function fn(e,t=""){if(!dn(e))return[{path:t,value:e}];const s=[];for(const l of Object.keys(e)){const r=t?`${t}.${l}`:l,o=e[l];dn(o)?s.push(...fn(o,r)):s.push({path:r,value:o})}return s}function wc(e){return e==null?{text:"null",color:"var(--ss-dim)"}:typeof e=="boolean"?{text:String(e),color:e?"var(--ss-green-fg)":"var(--ss-red-fg)"}:typeof e=="number"?{text:String(e),color:"var(--ss-amber-fg)"}:Array.isArray(e)?{text:`[${e.map(s=>s==null?"null":typeof s=="object"?JSON.stringify(s):String(s)).join(", ")}]`,color:"var(--ss-purple-fg)"}:typeof e=="object"?{text:JSON.stringify(e),color:"var(--ss-dim)"}:{text:String(e)}}function yr(e){if(e==null||typeof e!="object"||Array.isArray(e)||Oe(e))return 1;let t=0;for(const s of Object.keys(e))t+=yr(e[s]);return t}function $c(e){if(!dn(e))return[];const t=[];for(const s of Object.keys(e))dn(e[s])&&t.push(s);return t}function kc(e,t,s){t&&navigator.clipboard.writeText(e).then(()=>{const l=t.textContent;t.textContent="✓",t.classList.add(`${s}-copy-row-ok`),setTimeout(()=>{t.textContent=l,t.classList.remove(`${s}-copy-row-ok`)},1200)}).catch(()=>{})}function Sc(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:l}=e,r=G({...ir}),o=G(!0);return Ct(async()=>{r.value=await Mu({baseUrl:t,debugEndpoint:s,authToken:l}),o.value=!1}),{features:r,loading:o}}function mr(){const e=G(Ds());let t=null;function s(r){e.value=r}function l(){const r=cu();return e.value=r,r}return Ct(()=>{e.value=Ds(),t=nr(s)}),ct(()=>{t?.()}),{theme:e,toggleTheme:l}}function Cc(e){let t=null;return{onData:s=>{t=s},onPagination:s=>{s?(e.pagination.total=s.total,e.pagination.totalPages=s.lastPage??(Math.ceil(s.total/e.pagination.perPage)||1),e.data.value={data:t,meta:s}):e.data.value=t},onLoading:s=>{e.loading.value=s},onError:s=>{e.error.value=s},onUnauthorized:()=>{e.isUnauthorized.value=!0}}}function Tc(e){const t={};for(const[s,l]of Object.entries(e))s!=="search"&&l!==""&&l!==void 0&&l!==null&&(t[s]=String(l));return t}async function cl(e){try{return await e()}catch{return null}}function Ec(e){return{fetchGroupedQueries:()=>cl(()=>e.fetchGroupedQueries()),explainQuery:t=>cl(()=>e.explainQuery(t)),fetchEmailPreview:async(t,s)=>(await cl(()=>e.fetchEmailPreview(t,s)))?.html||null}}function Pc(e){return{retryJob:async t=>{try{return await e.retryJob(t),!0}catch{return!1}},deleteCacheKey:async t=>{try{return await e.deleteCacheKey(t),!0}catch{return!1}}}}function Rc(e,t){return{fetchChart:async s=>{try{return await e.fetchChart(s)}catch(l){return l instanceof rn&&(t.value=!0),null}}}}function Ls(e,t,s){const l=t(),r=Tc(s.filter);e.configure({page:s.pagination.page,perPage:s.pagination.perPage,search:s.filter.search||void 0,sort:s.sort.column||void 0,sortDir:s.sort.column?s.sort.direction:void 0,filters:Object.keys(r).length>0?r:void 0,timeRange:l.startsWith("overview")?s.timeRange.value:void 0})}function Ac(e,t){return{goToPage(s){e.pagination.page=s,t()},setSearch(s){e.filter.search=s,e.pagination.page=1,t()},setFilter(s,l){e.filter[s]=l,e.pagination.page=1,t()},setSort(s,l){e.sort.column===s&&!l?e.sort.direction=e.sort.direction==="asc"?"desc":"asc":(e.sort.column=s,e.sort.direction=l||"desc"),t()},setTimeRange(s){e.timeRange.value=s,t()}}}function Mc(e,t,s){return{async mutate(l,r="post",o){return e.mutate(l,r,o)},refresh(){Ls(e,t,s),e.fetch(!0)},startRefresh(){e.start()},stopRefresh(){e.stop()}}}function Dc(e,t,s,l){it(t,()=>{s.pagination.page=1;for(const r of Object.keys(s.filter))r==="search"?s.filter.search="":delete s.filter[r];s.sort.column="",s.data.value=null,e.setSection(t()),Ls(e,t,s)}),l&&it(l,()=>{Ls(e,t,s),e.handleRefreshSignal()})}function Lc(e){return{data:G(null),loading:G(!1),error:G(null),isUnauthorized:G(!1),timeRange:G("1h"),pagination:ss({page:1,perPage:e,total:0,totalPages:1}),filter:ss({search:""}),sort:ss({column:"",direction:"desc"})}}function Oc(e,t,s,l){return{data:e.data,loading:e.loading,error:e.error,isUnauthorized:e.isUnauthorized,pagination:e.pagination,filter:e.filter,sort:e.sort,timeRange:e.timeRange,...t,...s,...l}}function nt(e,t={}){const{baseUrl:s="",dashboardEndpoint:l="/__stats/api",authToken:r,perPage:o=50,refreshKey:a}=t,i=Lc(o),c=new Iu({baseUrl:s,endpoint:l,authToken:r,section:e(),perPage:o,callbacks:Cc(i)}),v=c.getApi(),g=Ac(i,()=>{Ls(c,e,i),c.fetch(!1)}),$=Mc(c,e,i),x={...Rc(v,i.isUnauthorized),...Ec(v),...Pc(v)};return Dc(c,e,i,a),Ct(()=>{Ls(c,e,i),c.start()}),ct(()=>{c.stop()}),Oc(i,g,$,x)}const Fc=["title","aria-label"],Ic=["viewBox","innerHTML"],Nc=["viewBox","innerHTML"],jc=Le({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:l}=mr(),r=K(()=>s.value==="dark"),o=K(()=>r.value?"Switch to light theme":"Switch to dark theme"),a=K(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(i,c)=>(u(),d("button",{type:"button",class:N(a.value),title:o.value,"aria-label":o.value,onClick:c[0]||(c[0]=(...v)=>w(l)&&w(l)(...v))},[r.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:w(He).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(He).sun.elements.join("")},null,8,Ic)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:w(He).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(He).moon.elements.join("")},null,8,Nc))],10,Fc))}}),Bc=["data-theme"],Uc={class:"ss-dash-header"},qc={class:"ss-dash-header-center"},Hc={class:"ss-dash-header-right"},Kc=["href"],Vc={class:"ss-dash-body"},zc={class:"ss-dash-nav"},Wc=["data-ss-section","onClick","title"],Qc={class:"ss-dash-nav-icon"},Jc=["viewBox","innerHTML"],Gc={class:"ss-dash-nav-label"},Yc={key:0,class:"ss-dash-nav-sep"},Xc=["onClick","title"],Zc={class:"ss-dash-nav-icon"},ed=["viewBox","innerHTML"],td={class:"ss-dash-nav-label"},sd=["title"],nd=["viewBox","innerHTML"],ld=["viewBox","innerHTML"],od={class:"ss-dash-main"},rd=["id"],ad={class:"ss-dash-pane-inner"},id={key:1,class:"ss-dash-empty"},ud=Le({__name:"DashboardPage",props:{baseUrl:{default:""},dashboardEndpoint:{default:"/__stats/api"},debugEndpoint:{default:void 0},authToken:{default:void 0},backUrl:{default:"/"},channelName:{default:"server-stats/dashboard"}},setup(e){const t=ut(()=>Promise.resolve().then(()=>yh)),s=ut(()=>Promise.resolve().then(()=>yp)),l=ut(()=>Promise.resolve().then(()=>tv)),r=ut(()=>Promise.resolve().then(()=>iv)),o=ut(()=>Promise.resolve().then(()=>yv)),a=ut(()=>Promise.resolve().then(()=>Bv)),i=ut(()=>Promise.resolve().then(()=>ng)),c=ut(()=>Promise.resolve().then(()=>kg)),v=ut(()=>Promise.resolve().then(()=>Qg)),p=ut(()=>Promise.resolve().then(()=>d1)),g=ut(()=>Promise.resolve().then(()=>W1)),$=["overview","requests","queries","events","routes","logs","emails","cache","jobs","config","internals"],x=e,{theme:_}=mr(),{features:b}=Sc({baseUrl:x.baseUrl,debugEndpoint:x.debugEndpoint,authToken:x.authToken}),S=G("overview"),U=G(!1),M=G(!1),m=G(0);It("ss-refresh-key",m),It("ss-base-url",x.baseUrl),It("ss-dashboard-endpoint",x.dashboardEndpoint),It("ss-debug-endpoint",x.debugEndpoint),It("ss-auth-token",x.authToken),typeof window<"u"&&(U.value=localStorage.getItem("ss-dash-sidebar")==="collapsed");let k=null;function L(){if(k&&(k(),k=null),!x.channelName)return;k=au({baseUrl:x.baseUrl,channelName:x.channelName,authToken:x.authToken,onMessage:()=>{m.value+=1},onConnect:()=>{M.value=!0},onDisconnect:()=>{M.value=!1},onError:()=>{M.value=!1}}).unsubscribe}Ct(()=>{L()}),ct(()=>{k&&(k(),k=null)});const P=K(()=>b.value.customPanes||[]);function j(ue){const T=ue.replace("#","").split("?")[0];return T&&[...$,...P.value.map(E=>E.id)].includes(T)?T:"overview"}function X(){const ue=j(window.location.hash);ue!==S.value&&(S.value=ue)}Ct(()=>{if(typeof window>"u")return;const ue=j(window.location.hash);(ue!=="overview"||window.location.hash)&&(S.value=ue),window.addEventListener("hashchange",X)}),ct(()=>{window.removeEventListener("hashchange",X)}),it(S,ue=>{typeof window<"u"&&(window.location.hash=ue)});function Z(){U.value=!U.value,localStorage.setItem("ss-dash-sidebar",U.value?"collapsed":"expanded")}function ge(ue){ue!==S.value&&(S.value=ue)}const Ee=K(()=>[{id:"overview",label:"Overview",visible:!0},{id:"requests",label:"Requests",visible:!0},{id:"queries",label:"Queries",visible:!0},{id:"events",label:"Events",visible:!0},{id:"routes",label:"Routes",visible:!0},{id:"logs",label:"Logs",visible:!0},{id:"emails",label:"Emails",visible:!0},{id:"cache",label:"Cache",visible:b.value.cache},{id:"jobs",label:"Jobs",visible:b.value.queues},{id:"config",label:"Config",visible:!0},{id:"internals",label:"Internals",visible:!0}]),we=K(()=>Ee.value.filter(ue=>ue.visible)),{data:Ce,loading:me}=nt(()=>"overview",{baseUrl:x.baseUrl,dashboardEndpoint:x.dashboardEndpoint,authToken:x.authToken,refreshKey:m}),$e=K(()=>Ce.value);It("ss-overview-data",Ce),It("ss-overview-loading",me);const ne=K(()=>{const ue={};if(!$e.value)return ue;if($e.value.totalRequests>0&&(ue.requests={count:$e.value.totalRequests}),$e.value.queryStats?.total>0&&(ue.queries={count:$e.value.queryStats.total}),$e.value.logLevelBreakdown){const T=$e.value.logLevelBreakdown,D=T.error+T.warn+T.info+T.debug;D>0&&(ue.logs={count:D})}return ue}),H={overview:t,requests:s,queries:l,events:r,routes:o,logs:a,emails:i,cache:c,jobs:v,config:p,internals:g},z=K(()=>H[S.value]||null);return(ue,T)=>(u(),d("div",{class:"ss-dash","data-theme":w(_),id:"ss-dash"},[n("div",Uc,[T[0]||(T[0]=n("div",{class:"ss-dash-header-left"},[n("span",{class:"ss-dash-logo"},"Server Stats"),n("span",{class:"ss-dash-logo-sub"},"Dashboard")],-1)),n("div",qc,[n("span",{class:N(["ss-dash-live-dot",{"ss-dash-connected":M.value}]),id:"ss-dash-live-dot"},null,2),n("span",{class:N(["ss-dash-live-label",{"ss-dash-connected":M.value}]),id:"ss-dash-live-label"},h(M.value?"Live":"Polling"),3)]),n("div",Hc,[_e(jc,{"class-prefix":"ss-dash"}),e.backUrl?(u(),d("a",{key:0,href:e.backUrl,class:"ss-dash-back-link",title:"Back to app"}," ← App ",8,Kc)):Y("",!0)])]),n("div",Vc,[n("div",{class:N(["ss-dash-sidebar",{"ss-dash-collapsed":U.value}]),id:"ss-dash-sidebar"},[n("nav",zc,[(u(!0),d(q,null,pe(we.value,D=>(u(),d("button",{key:D.id,type:"button",class:N(["ss-dash-nav-item",{"ss-dash-active":S.value===D.id}]),"data-ss-section":D.id,onClick:E=>ge(D.id),title:U.value?D.label:void 0},[n("span",Qc,[(u(),d("svg",{width:"20",height:"20",viewBox:(w(He)[D.id]||w(He).config).viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:(w(He)[D.id]||w(He).config).elements.join("")},null,8,Jc))]),n("span",Gc,h(D.label),1),ne.value[D.id]&&ne.value[D.id].count>0?(u(),d("span",{key:0,class:N(["ss-dash-nav-badge",ne.value[D.id].variant||""])},h(ne.value[D.id].count),3)):Y("",!0)],10,Wc))),128)),P.value.length>0?(u(),d("div",Yc)):Y("",!0),(u(!0),d(q,null,pe(P.value,D=>(u(),d("button",{key:D.id,type:"button",class:N(["ss-dash-nav-item",{"ss-dash-active":S.value===D.id}]),onClick:E=>ge(D.id),title:U.value?D.label:void 0},[n("span",Zc,[(u(),d("svg",{width:"20",height:"20",viewBox:w(He)["custom-pane"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(He)["custom-pane"].elements.join("")},null,8,ed))]),n("span",td,h(D.label),1)],10,Xc))),128))]),n("button",{type:"button",class:"ss-dash-sidebar-toggle",id:"ss-dash-sidebar-toggle",onClick:Z,title:U.value?"Expand sidebar":"Collapse sidebar"},[U.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:w(He)["chevron-right"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:w(He)["chevron-right"].elements.join("")},null,8,nd)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:w(He)["chevron-left"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:w(He)["chevron-left"].elements.join("")},null,8,ld))],8,sd)],2),n("div",od,[n("div",{class:"ss-dash-pane ss-dash-active",id:`ss-dash-pane-${S.value}`},[n("div",ad,[(u(),et(ai,null,{fallback:is(()=>[...T[1]||(T[1]=[n("div",{class:"ss-dash-empty"},"Loading...",-1)])]),default:is(()=>[z.value?(u(),et(Da(z.value),{key:0})):(u(),d("div",id,"Unknown section"))]),_:1}))])],8,rd)])])],8,Bc))}});function cd(e){const t=document.getElementById(e);return t?JSON.parse(t.textContent||"{}"):{}}function dd(){function e(t){document.documentElement.setAttribute("data-theme",t)}e(Ds()),nr(e)}const vs=cd("ss-dash-config");dd();const br=document.getElementById("ss-dash");br&&tu(ud,{baseUrl:vs.baseUrl,dashboardEndpoint:vs.dashboardEndpoint,debugEndpoint:vs.debugEndpoint,authToken:vs.authToken,backUrl:vs.backUrl,channelName:vs.channelName}).mount(br);const fd=["width","height","viewBox"],hd=["id"],pd=["stop-color"],vd=["stop-color"],gd=["d","fill"],yd=["d","stroke"],md=["x","y"],hn=Le({__name:"Sparkline",props:{data:{},color:{default:"#34d399"},width:{default:120},height:{default:32}},setup(e){const t=e,s=K(()=>gu(t.data,{width:t.width,height:t.height,color:t.color})),l=K(()=>s.value!==null),r=K(()=>`sg-${t.color.replace("#","")}`);return(o,a)=>(u(),d("div",{class:"ss-dash-sparkline",style:Ne({"--ss-accent":e.color})},[(u(),d("svg",{width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,style:{display:"block"}},[l.value&&s.value?(u(),d(q,{key:0},[n("defs",null,[n("linearGradient",{id:r.value,x1:"0",y1:"0",x2:"0",y2:"1"},[n("stop",{offset:"0%","stop-color":e.color,"stop-opacity":"0.25"},null,8,pd),n("stop",{offset:"100%","stop-color":e.color,"stop-opacity":"0.02"},null,8,vd)],8,hd)]),n("path",{d:s.value.areaPath,fill:`url(#${r.value})`},null,8,gd),n("path",{class:"ss-dash-sparkline-line",d:"M"+s.value.points.replace(/ /g," L"),fill:"none",stroke:e.color,"stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,yd)],64)):(u(),d("text",{key:1,x:e.width/2,y:e.height/2+3,"text-anchor":"middle",fill:"#737373","font-size":"9"}," collecting... ",8,md))],8,fd))],4))}}),bd={class:"ss-dash-btn-group"},_d=["onClick"],xd=Le({__name:"TimeRangeSelector",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=t,l=[{value:"5m",label:"5m"},{value:"15m",label:"15m"},{value:"30m",label:"30m"},{value:"1h",label:"1h"},{value:"6h",label:"6h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"}];return(r,o)=>(u(),d("div",bd,[(u(),d(q,null,pe(l,a=>n("button",{key:a.value,type:"button",class:N(`ss-dash-btn ${e.modelValue===a.value?"ss-dash-active":""}`),onClick:i=>s("update:modelValue",a.value)},h(a.label),11,_d)),64))]))}}),wd={class:"ss-dash-overview"},$d={key:0,class:"ss-dash-empty"},kd={class:"ss-dash-cards"},Sd={class:"ss-dash-card"},Cd={class:"ss-dash-sparkline"},Td={class:"ss-dash-card"},Ed={class:"ss-dash-sparkline"},Pd={class:"ss-dash-card"},Rd={class:"ss-dash-sparkline"},Ad={class:"ss-dash-card"},Md={class:"ss-dash-sparkline"},Dd={class:"ss-dash-chart-container"},Ld={class:"ss-dash-chart-header"},Od={class:"ss-dash-chart",id:"ss-dash-chart-area"},Fd={key:0,class:"ss-dash-empty",style:{"min-height":"120px"}},Id=["viewBox"],Nd=["id"],jd=["id"],Bd=["x1","y1","x2","y2"],Ud=["x","y"],qd=["d","fill"],Hd=["d"],Kd=["d","fill"],Vd=["d"],zd=["x","y","width","height","data-idx","onMouseenter"],Wd=["cx","cy","r","data-idx","opacity"],Qd=["cx","cy","r","data-idx","opacity"],Jd=["x","y"],Gd={key:0,style:{color:"var(--ss-red-fg)"}},Yd={class:"ss-dash-chart-legend",id:"ss-dash-chart-legend"},Xd={key:0,class:"ss-dash-chart-legend-item"},Zd={class:"ss-dash-secondary-cards"},ef={class:"ss-dash-secondary-card"},tf={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},sf={key:1,class:"ss-dash-secondary-list"},nf=["href"],lf=["title"],of={class:"ss-dash-secondary-card"},rf={class:"ss-dash-secondary-list"},af={class:"ss-dash-secondary-list-value"},uf={class:"ss-dash-secondary-list-value"},cf={class:"ss-dash-secondary-list-value"},df={class:"ss-dash-secondary-card"},ff={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},hf={key:1,class:"ss-dash-secondary-list"},pf=["href"],vf=["title"],gf=["title"],yf={class:"ss-dash-secondary-card"},mf={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},bf={key:1,class:"ss-dash-secondary-list"},_f=["href"],xf={class:"ss-dash-secondary-list-value"},wf={class:"ss-dash-secondary-card"},$f={class:"ss-dash-secondary-list"},kf={href:"#emails?status=sent",class:"ss-dash-widget-row-link"},Sf={class:"ss-dash-secondary-list-value"},Cf={href:"#emails?status=queued",class:"ss-dash-widget-row-link"},Tf={class:"ss-dash-secondary-list-value"},Ef={href:"#emails?status=failed",class:"ss-dash-widget-row-link"},Pf={class:"ss-dash-secondary-card"},Rf={class:"ss-dash-secondary-list"},Af={href:"#logs?level=error",class:"ss-dash-widget-row-link"},Mf={class:"ss-dash-secondary-list-value"},Df={href:"#logs?level=warn",class:"ss-dash-widget-row-link"},Lf={class:"ss-dash-secondary-list-value"},Of={href:"#logs?level=info",class:"ss-dash-widget-row-link"},Ff={class:"ss-dash-secondary-list-value"},If={href:"#logs?level=debug",class:"ss-dash-widget-row-link"},Nf={class:"ss-dash-secondary-list-value"},jf={key:0,class:"ss-dash-secondary-card"},Bf={class:"ss-dash-secondary-list"},Uf={href:"#cache",class:"ss-dash-widget-row-link"},qf={class:"ss-dash-secondary-list-value"},Hf={href:"#cache",class:"ss-dash-widget-row-link"},Kf={class:"ss-dash-secondary-list-value"},Vf={href:"#cache",class:"ss-dash-widget-row-link"},zf={class:"ss-dash-secondary-list-value"},Wf={key:1,class:"ss-dash-secondary-card"},Qf={class:"ss-dash-secondary-list"},Jf={href:"#jobs?status=active",class:"ss-dash-widget-row-link"},Gf={class:"ss-dash-secondary-list-value"},Yf={href:"#jobs?status=waiting",class:"ss-dash-widget-row-link"},Xf={class:"ss-dash-secondary-list-value"},Zf={href:"#jobs?status=failed",class:"ss-dash-widget-row-link"},eh={href:"#jobs?status=completed",class:"ss-dash-widget-row-link"},th={class:"ss-dash-secondary-list-value"},sh={class:"ss-dash-secondary-card"},nh={class:"ss-dash-secondary-list"},lh={href:"#requests?status=2xx",class:"ss-dash-widget-row-link"},oh={class:"ss-dash-secondary-list-value"},rh={href:"#requests?status=3xx",class:"ss-dash-widget-row-link"},ah={class:"ss-dash-secondary-list-value"},ih={href:"#requests?status=4xx",class:"ss-dash-widget-row-link"},uh={class:"ss-dash-secondary-list-value"},ch={href:"#requests?status=5xx",class:"ss-dash-widget-row-link"},dh={class:"ss-dash-secondary-list-value"},fh={class:"ss-dash-secondary-card"},hh={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},ph={key:1,class:"ss-dash-secondary-list"},vh=["href"],gh=["title"],dl=220,_r=120,yh=Object.freeze(Object.defineProperty({__proto__:null,default:((e,t)=>{const s=e.__vccOpts||e;for(const[l,r]of t)s[l]=r;return s})(Le({__name:"OverviewSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-base-url",""),l=ie("ss-dashboard-endpoint","/__stats/api"),r=ie("ss-auth-token",void 0),o=Math.random().toString(36).slice(2,8),a=G("1h"),i=ie("ss-overview-data",void 0),c=ie("ss-overview-loading",void 0);let v,p;if(i&&c)v=i,p=c;else{const V=nt(()=>"overview",{baseUrl:s,dashboardEndpoint:l,authToken:r,refreshKey:t});v=V.data,p=V.loading}const{data:g,setTimeRange:$}=nt(()=>"overview/chart",{baseUrl:s,dashboardEndpoint:l,authToken:r,refreshKey:t});it(a,V=>{$(V)});const x=K(()=>v.value),_=K(()=>x.value||{avgResponseTime:0,p95ResponseTime:0,requestsPerMinute:0,errorRate:0,totalRequests:0,slowestEndpoints:[],queryStats:{total:0,avgDuration:0,perRequest:0},recentErrors:[],topEvents:[],emailActivity:{sent:0,queued:0,failed:0},logLevelBreakdown:{error:0,warn:0,info:0,debug:0},cacheStats:null,jobQueueStatus:null,statusDistribution:{"2xx":0,"3xx":0,"4xx":0,"5xx":0},slowestQueries:[]}),b=K(()=>_.value),S=K(()=>_.value.avgResponseTime||Number(b.value.avg_response_time)||0),U=K(()=>_.value.p95ResponseTime||Number(b.value.p95_response_time)||0),M=K(()=>_.value.requestsPerMinute||Number(b.value.requests_per_minute)||0),m=K(()=>_.value.errorRate||Number(b.value.error_rate)||0),k=K(()=>_.value.totalRequests||Number(b.value.total_requests)||0),L=K(()=>k.value>0),P=K(()=>g.value?.buckets||[]),j=K(()=>_.value.sparklines?.avgResponseTime??P.value.map(V=>V.avgDuration??0)),X=K(()=>_.value.sparklines?.p95ResponseTime??P.value.map(V=>V.p95Duration??0)),Z=K(()=>_.value.sparklines?.requestsPerMinute??P.value.map(V=>V.requestCount??0)),ge=K(()=>_.value.sparklines?.errorRate??P.value.map(V=>V.errorCount??0)),Ee=K(()=>`ss-cg-total-${o}`),we=K(()=>`ss-cg-error-${o}`);function Ce(V,R){if(V<=0)return[0];const ae=V/R,ye=Math.pow(10,Math.floor(Math.log10(ae))),At=ae/ye;let xt;At<=1?xt=ye:At<=2?xt=2*ye:At<=5?xt=5*ye:xt=10*ye;const pn=[];for(let hl=xt;hl<=V+xt*.5;hl+=xt)pn.push(Math.round(hl));return pn.length===0&&pn.push(Math.ceil(V)),pn}function me(V){try{return new Date(V).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"})}catch{return""}}function $e(V){if(V.length===0)return"";if(V.length===1)return`M${V[0].x},${V[0].y}`;let R=`M${V[0].x.toFixed(1)},${V[0].y.toFixed(1)}`;for(let ae=0;ae<V.length-1;ae++){const ye=V[ae],At=V[ae+1],xt=(ye.x+At.x)/2;R+=` C${xt.toFixed(1)},${ye.y.toFixed(1)} ${xt.toFixed(1)},${At.y.toFixed(1)} ${At.x.toFixed(1)},${At.y.toFixed(1)}`}return R}function ne(V){return il(V,"ss-dash")}const H=G(null),z=G(0);let ue=null;it(H,V=>{ue?.disconnect(),ue=null,V&&(z.value=V.clientWidth,ue=new ResizeObserver(R=>{for(const ae of R)z.value=ae.contentRect.width}),ue.observe(V))}),ct(()=>{ue?.disconnect()});const T={top:12,right:12,bottom:28,left:38},D=K(()=>z.value||600),E=K(()=>D.value-T.left-T.right),le=K(()=>dl-T.top-T.bottom),Me=K(()=>T.top+le.value),Vt=K(()=>P.value.map(V=>{const R=V;return(V.requestCount??0)+(Number(R.request_count)||0)||V.total||0})),Ge=K(()=>P.value.map(V=>{const R=V;return(V.errorCount??0)+(Number(R.error_count)||0)})),Pt=K(()=>Math.max(...Vt.value,1)),oe=K(()=>Math.ceil(Pt.value*1.1)),ee=K(()=>Ge.value.some(V=>V>0)),A=K(()=>Ce(oe.value,4)),Fe=K(()=>A.value.length>0?A.value[A.value.length-1]:oe.value);function f(V){return T.left+V/Math.max(P.value.length-1,1)*E.value}function y(V){return T.top+le.value-V/(Fe.value||1)*le.value}const C=K(()=>P.value.map((V,R)=>({x:f(R),y:y(Vt.value[R])}))),F=K(()=>P.value.map((V,R)=>({x:f(R),y:y(Ge.value[R])}))),O=K(()=>$e(C.value)),I=K(()=>ee.value?$e(F.value):""),J=K(()=>C.value.length>1?`${O.value} L${C.value[C.value.length-1].x.toFixed(1)},${Me.value} L${C.value[0].x.toFixed(1)},${Me.value} Z`:""),Q=K(()=>ee.value&&F.value.length>1?`${I.value} L${F.value[F.value.length-1].x.toFixed(1)},${Me.value} L${F.value[0].x.toFixed(1)},${Me.value} Z`:""),W=K(()=>Math.min(10,P.value.length)),B=K(()=>Math.max(1,Math.ceil(P.value.length/W.value))),se=G({visible:!1,x:0,idx:-1});function te(V){const R=C.value[V].x;se.value={visible:!0,x:R,idx:V}}function re(){se.value={visible:!1,x:0,idx:-1}}const de=K(()=>se.value.visible?Math.max(_r/2,Math.min(se.value.x,D.value-_r/2)):0),be=K(()=>E.value/(P.value.length||1));function Pe(V){return V%B.value===0||V===P.value.length-1}function ke(){return L.value?S.value>500?"ss-dash-red":S.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Ke(){return L.value?U.value>500?"ss-dash-red":U.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Ve(){return L.value?"ss-dash-accent":"ss-dash-dim"}function lt(){return L.value?m.value>5?"ss-dash-red":m.value>1?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Ye(V){return V.url||V.pattern||"-"}function Rt(V){return V.name||V.eventName||V.event_name||V.event||""}function Xt(V){return V.sqlNormalized||V.normalizedSql||V.sql_normalized||V.sql||"-"}return(V,R)=>(u(),d("div",wd,[w(p)&&!x.value?(u(),d("div",$d,"Loading overview...")):(u(),d(q,{key:1},[n("div",kd,[n("div",Sd,[R[1]||(R[1]=n("div",{class:"ss-dash-card-title"},"Avg Response Time",-1)),n("div",{class:N(["ss-dash-card-value",ke()])},h(L.value?w(Bt)(S.value):"-"),3),n("div",Cd,[_e(hn,{data:j.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",Td,[R[2]||(R[2]=n("div",{class:"ss-dash-card-title"},"P95 Response Time",-1)),n("div",{class:N(["ss-dash-card-value",Ke()])},h(L.value?w(Bt)(U.value):"-"),3),n("div",Ed,[_e(hn,{data:X.value,color:"#60a5fa",width:160,height:40},null,8,["data"])])]),n("div",Pd,[R[3]||(R[3]=n("div",{class:"ss-dash-card-title"},"Requests / min",-1)),n("div",{class:N(["ss-dash-card-value",Ve()])},h(L.value?M.value.toFixed(1):"-"),3),n("div",Rd,[_e(hn,{data:Z.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",Ad,[R[4]||(R[4]=n("div",{class:"ss-dash-card-title"},"Error Rate",-1)),n("div",{class:N(["ss-dash-card-value",lt()])},h(L.value?`${m.value.toFixed(1)}%`:"-"),3),n("div",Md,[_e(hn,{data:ge.value,color:"#f87171",width:160,height:40},null,8,["data"])])])]),n("div",Dd,[n("div",Ld,[R[5]||(R[5]=n("span",{class:"ss-dash-chart-title"},"Request Volume",-1)),_e(xd,{"model-value":a.value,"onUpdate:modelValue":R[0]||(R[0]=ae=>a.value=ae)},null,8,["model-value"])]),n("div",Od,[P.value.length===0?(u(),d("div",Fd," No data for this range ")):(u(),d("div",{key:1,ref_key:"chartContainerRef",ref:H,style:{position:"relative"}},[(u(),d("svg",{viewBox:`0 0 ${D.value} ${dl}`,class:"ss-dash-chart-svg"},[n("defs",null,[n("linearGradient",{id:Ee.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...R[6]||(R[6]=[n("stop",{offset:"0%","stop-color":"var(--ss-accent)","stop-opacity":"0.3"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-accent)","stop-opacity":"0.02"},null,-1)])],8,Nd),n("linearGradient",{id:we.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...R[7]||(R[7]=[n("stop",{offset:"0%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.35"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.02"},null,-1)])],8,jd)]),(u(!0),d(q,null,pe(A.value,ae=>(u(),d("g",{key:`ytick-${ae}`},[n("line",{x1:T.left,y1:y(ae),x2:D.value-T.right,y2:y(ae),stroke:"var(--ss-border-faint)","stroke-width":"0.5","stroke-dasharray":"3,3"},null,8,Bd),n("text",{x:T.left-6,y:y(ae),"text-anchor":"end",fill:"var(--ss-dim)","font-size":"9","dominant-baseline":"middle"},h(ae),9,Ud)]))),128)),J.value?(u(),d("path",{key:0,d:J.value,fill:`url(#${Ee.value})`},null,8,qd)):Y("",!0),O.value?(u(),d("path",{key:1,d:O.value,fill:"none",stroke:"var(--ss-accent)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,Hd)):Y("",!0),Q.value?(u(),d("path",{key:2,d:Q.value,fill:`url(#${we.value})`},null,8,Kd)):Y("",!0),I.value?(u(),d("path",{key:3,d:I.value,fill:"none",stroke:"var(--ss-red-fg)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round","stroke-dasharray":"4,2"},null,8,Vd)):Y("",!0),(u(!0),d(q,null,pe(P.value,(ae,ye)=>(u(),d("g",{key:ye},[n("rect",{x:C.value[ye].x-be.value/2,y:T.top,width:be.value,height:le.value,fill:"transparent",class:"ss-dash-chart-hover-zone","data-idx":ye,onMouseenter:At=>te(ye),onMouseleave:re},null,40,zd),Vt.value[ye]>0?(u(),d("circle",{key:0,cx:C.value[ye].x,cy:C.value[ye].y,r:se.value.visible&&se.value.idx===ye?4:2.5,fill:"var(--ss-accent)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot","data-idx":ye,opacity:se.value.visible&&se.value.idx!==ye?.3:1},null,8,Wd)):Y("",!0),Ge.value[ye]>0?(u(),d("circle",{key:1,cx:C.value[ye].x,cy:F.value[ye].y,r:se.value.visible&&se.value.idx===ye?3.5:2,fill:"var(--ss-red-fg)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot ss-dash-chart-dot-err","data-idx":ye,opacity:se.value.visible&&se.value.idx!==ye?.3:1},null,8,Qd)):Y("",!0)]))),128)),(u(!0),d(q,null,pe(P.value,(ae,ye)=>(u(),d(q,{key:`xlabel-${ye}`},[Pe(ye)&&me(ae.bucket)?(u(),d("text",{key:0,x:f(ye),y:dl-6,"text-anchor":"middle",fill:"var(--ss-dim)","font-size":"9"},h(me(ae.bucket)),9,Jd)):Y("",!0)],64))),128))],8,Id)),se.value.visible&&se.value.idx>=0?(u(),d("div",{key:0,class:"ss-dash-chart-tooltip",style:Ne({left:de.value+"px",top:T.top-4+"px",transform:"translate(-50%, -100%)"})},[n("div",null,h(me(P.value[se.value.idx].bucket)),1),n("div",null,"Requests: "+h(Vt.value[se.value.idx]),1),Ge.value[se.value.idx]>0?(u(),d("div",Gd," Errors: "+h(Ge.value[se.value.idx]),1)):Y("",!0)],4)):Y("",!0)],512))]),n("div",Yd,[R[9]||(R[9]=n("span",{class:"ss-dash-chart-legend-item"},[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-accent)"}}),ve(" Requests ")],-1)),P.value.some(ae=>(ae.errorCount??0)>0)?(u(),d("span",Xd,[...R[8]||(R[8]=[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-red-fg)"}},null,-1),ve(" Errors ",-1)])])):Y("",!0)])]),n("div",Zd,[n("div",ef,[R[10]||(R[10]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Slowest Endpoints")],-1)),_.value.slowestEndpoints.length===0?(u(),d("div",tf," No data yet ")):(u(),d("ul",sf,[(u(!0),d(q,null,pe(_.value.slowestEndpoints.slice(0,5),(ae,ye)=>(u(),d("li",{key:`${Ye(ae)}-${ye}`},[n("a",{href:`#requests?url=${encodeURIComponent(Ye(ae))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Ye(ae)},h(Ye(ae)),9,lf),n("span",{class:N(["ss-dash-secondary-list-value","ss-dash-duration",ne(ae.avgDuration)])},h(w(Bt)(ae.avgDuration)),3)],8,nf)]))),128))]))]),n("div",of,[R[14]||(R[14]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Query Stats")],-1)),n("ul",rf,[n("li",null,[R[11]||(R[11]=n("span",null,"Total Queries",-1)),n("span",af,h(_.value.queryStats.total),1)]),n("li",null,[R[12]||(R[12]=n("span",null,"Avg Duration",-1)),n("span",uf,h(w(Bt)(_.value.queryStats.avgDuration)),1)]),n("li",null,[R[13]||(R[13]=n("span",null,"Queries / Request",-1)),n("span",cf,h(_.value.queryStats.perRequest.toFixed(1)),1)])])]),n("div",df,[R[15]||(R[15]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs?level=error",class:"ss-dash-widget-link"},"Recent Errors")],-1)),_.value.recentErrors.length===0?(u(),d("div",ff," No recent errors ")):(u(),d("ul",hf,[(u(!0),d(q,null,pe(_.value.recentErrors,(ae,ye)=>(u(),d("li",{key:ae.id??`err-${ye}`},[n("a",{href:`#logs?id=${ae.id??""}`,class:"ss-dash-widget-row-link"},[n("span",{style:{color:"var(--ss-red-fg)"},title:ae.message},h(ae.message),9,vf),ae.timestamp?(u(),d("span",{key:0,class:"ss-dash-secondary-list-value",style:{color:"var(--ss-dim)"},title:w(Ut)(ae.timestamp)},h(w(bt)(ae.timestamp)),9,gf)):Y("",!0)],8,pf)]))),128))]))]),n("div",yf,[R[16]||(R[16]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#events",class:"ss-dash-widget-link"},"Top Events")],-1)),_.value.topEvents.length===0?(u(),d("div",mf," No events yet ")):(u(),d("ul",bf,[(u(!0),d(q,null,pe(_.value.topEvents.slice(0,5),(ae,ye)=>(u(),d("li",{key:`${Rt(ae)}-${ye}`},[n("a",{href:`#events?event_name=${encodeURIComponent(Rt(ae))}`,class:"ss-dash-widget-row-link"},[n("span",null,h(Rt(ae)),1),n("span",xf,h(ae.count),1)],8,_f)]))),128))]))]),n("div",wf,[R[20]||(R[20]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#emails",class:"ss-dash-widget-link"},"Email Activity")],-1)),n("ul",$f,[n("li",null,[n("a",kf,[R[17]||(R[17]=n("span",null,"Sent",-1)),n("span",Sf,h(_.value.emailActivity.sent),1)])]),n("li",null,[n("a",Cf,[R[18]||(R[18]=n("span",null,"Queued",-1)),n("span",Tf,h(_.value.emailActivity.queued),1)])]),n("li",null,[n("a",Ef,[R[19]||(R[19]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ne(_.value.emailActivity.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(_.value.emailActivity.failed),5)])])])]),n("div",Pf,[R[25]||(R[25]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs",class:"ss-dash-widget-link"},"Log Levels")],-1)),n("ul",Rf,[n("li",null,[n("a",Af,[R[21]||(R[21]=n("span",{style:{color:"var(--ss-red-fg)"}},"Error",-1)),n("span",Mf,h(_.value.logLevelBreakdown.error),1)])]),n("li",null,[n("a",Df,[R[22]||(R[22]=n("span",{style:{color:"var(--ss-amber-fg)"}},"Warn",-1)),n("span",Lf,h(_.value.logLevelBreakdown.warn),1)])]),n("li",null,[n("a",Of,[R[23]||(R[23]=n("span",{style:{color:"var(--ss-green-fg)"}},"Info",-1)),n("span",Ff,h(_.value.logLevelBreakdown.info),1)])]),n("li",null,[n("a",If,[R[24]||(R[24]=n("span",{style:{color:"var(--ss-dim)"}},"Debug",-1)),n("span",Nf,h(_.value.logLevelBreakdown.debug),1)])])])]),_.value.cacheStats&&_.value.cacheStats.available?(u(),d("div",jf,[R[29]||(R[29]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#cache",class:"ss-dash-widget-link"},"Cache")],-1)),n("ul",Bf,[n("li",null,[n("a",Uf,[R[26]||(R[26]=n("span",null,"Keys",-1)),n("span",qf,h(_.value.cacheStats.totalKeys),1)])]),n("li",null,[n("a",Hf,[R[27]||(R[27]=n("span",null,"Hit Rate",-1)),n("span",Kf,h(_.value.cacheStats.hitRate.toFixed(1))+"%",1)])]),n("li",null,[n("a",Vf,[R[28]||(R[28]=n("span",null,"Memory",-1)),n("span",zf,h(_.value.cacheStats.memoryUsedHuman),1)])])])])):Y("",!0),_.value.jobQueueStatus&&_.value.jobQueueStatus.available?(u(),d("div",Wf,[R[34]||(R[34]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#jobs",class:"ss-dash-widget-link"},"Job Queue")],-1)),n("ul",Qf,[n("li",null,[n("a",Jf,[R[30]||(R[30]=n("span",null,"Active",-1)),n("span",Gf,h(_.value.jobQueueStatus.active),1)])]),n("li",null,[n("a",Yf,[R[31]||(R[31]=n("span",null,"Waiting",-1)),n("span",Xf,h(_.value.jobQueueStatus.waiting),1)])]),n("li",null,[n("a",Zf,[R[32]||(R[32]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ne(_.value.jobQueueStatus.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(_.value.jobQueueStatus.failed),5)])]),n("li",null,[n("a",eh,[R[33]||(R[33]=n("span",null,"Completed",-1)),n("span",th,h(_.value.jobQueueStatus.completed),1)])])])])):Y("",!0),n("div",sh,[R[39]||(R[39]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Response Status")],-1)),n("ul",nh,[n("li",null,[n("a",lh,[R[35]||(R[35]=n("span",{style:{color:"var(--ss-green-fg)"}},"2xx",-1)),n("span",oh,h(_.value.statusDistribution["2xx"]),1)])]),n("li",null,[n("a",rh,[R[36]||(R[36]=n("span",{style:{color:"var(--ss-blue-fg)"}},"3xx",-1)),n("span",ah,h(_.value.statusDistribution["3xx"]),1)])]),n("li",null,[n("a",ih,[R[37]||(R[37]=n("span",{style:{color:"var(--ss-amber-fg)"}},"4xx",-1)),n("span",uh,h(_.value.statusDistribution["4xx"]),1)])]),n("li",null,[n("a",ch,[R[38]||(R[38]=n("span",{style:{color:"var(--ss-red-fg)"}},"5xx",-1)),n("span",dh,h(_.value.statusDistribution["5xx"]),1)])])])]),n("div",fh,[R[40]||(R[40]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Slowest Queries")],-1)),_.value.slowestQueries.length===0?(u(),d("div",hh," No query data yet ")):(u(),d("ul",ph,[(u(!0),d(q,null,pe(_.value.slowestQueries.slice(0,5),(ae,ye)=>(u(),d("li",{key:`${Xt(ae)}-${ye}`},[n("a",{href:`#queries?pattern=${encodeURIComponent(Xt(ae))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Xt(ae)},h(Xt(ae)),9,gh),n("span",{class:N(["ss-dash-secondary-list-value","ss-dash-duration",ne(ae.avgDuration)])},h(w(Bt)(ae.avgDuration)),3)],8,vh)]))),128))]))])])],64))]))}}),[["__scopeId","data-v-f340a0af"]])},Symbol.toStringTag,{value:"Module"}));function fl(e="",t){let s=null;return function(){return s||(s=new rl({baseUrl:e,authToken:t})),s}}function Yt(e){const t=G(null);let s=null;function l(){s&&s(),s=null,In(()=>{t.value&&(s=ju(t.value))})}return e&&it(e,l),Ct(l),no(()=>{s&&s(),s=null}),{tableRef:t}}const mh={class:"ss-dash-filter-bar"},bh={key:0,class:"ss-dash-summary"},_h={class:"ss-dash-search-wrapper"},xh=["viewBox","innerHTML"],wh=["value","placeholder"],$h={key:1,class:"ss-dash-filter-controls"},Kt=Le({__name:"FilterBar",props:{modelValue:{},placeholder:{},summary:{}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const s=t;function l(o){s("update:modelValue",o.target.value)}function r(){s("update:modelValue",""),s("clear")}return(o,a)=>(u(),d("div",mh,[e.summary?(u(),d("span",bh,h(e.summary),1)):Y("",!0),n("div",_h,[(u(),d("svg",{class:"ss-dash-search-icon",viewBox:w(He).search.viewBox,width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(He).search.elements.join("")},null,8,xh)),n("input",{class:"ss-dash-search",type:"text",value:e.modelValue,placeholder:e.placeholder||"Search...",onInput:l},null,40,wh),e.modelValue?(u(),d("button",{key:0,type:"button",class:"ss-dash-search-clear",onClick:r}," × ")):Y("",!0)]),o.$slots.default?(u(),d("div",$h,[Oa(o.$slots,"default")])):Y("",!0)]))}}),kh={key:0,class:"ss-dash-pagination"},Sh={class:"ss-dash-page-info"},Ch={class:"ss-dash-pagination-controls"},Th=["disabled"],Eh={key:0,class:"ss-dash-page-ellipsis"},Ph=["onClick"],Rh=["disabled"],gs=Le({__name:"PaginationControls",props:{page:{},lastPage:{},total:{}},emits:["pageChange"],setup(e,{emit:t}){const s=e,l=t,r=K(()=>Eu(s.page,s.lastPage));return(o,a)=>e.lastPage>1?(u(),d("div",kh,[n("span",Sh," Page "+h(e.page)+" of "+h(e.lastPage)+" ("+h(e.total)+" total) ",1),n("div",Ch,[n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page<=1,onClick:a[0]||(a[0]=i=>l("pageChange",e.page-1))}," « Prev ",8,Th),(u(!0),d(q,null,pe(r.value,(i,c)=>(u(),d(q,{key:i==="..."?`ellipsis-${c}`:i},[i==="..."?(u(),d("span",Eh,"...")):(u(),d("button",{key:1,type:"button",class:N(`ss-dash-page-btn ${i===e.page?"ss-dash-active":""}`),onClick:v=>l("pageChange",i)},h(i),11,Ph))],64))),128)),n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page>=e.lastPage,onClick:a[1]||(a[1]=i=>l("pageChange",e.page+1))}," Next » ",8,Rh)])])):Y("",!0)}}),Ah={key:0,class:"ss-dash-empty"},Mh={class:"ss-dash-tl-legend"},Dh=["title"],Lh={class:"ss-dash-tl-track"},Oh=["title"],Fh={class:"ss-dash-tl-dur"},Ih={key:0,class:"ss-dash-tl-warnings"},Nh={class:"ss-dash-tl-warnings-title"},xr=Le({__name:"WaterfallChart",props:{spans:{},totalDuration:{},className:{},warnings:{}},setup(e){const t=e,s={request:"#1e3a5f",middleware:"rgba(30, 58, 95, 0.7)",db:"#6d28d9",view:"#0e7490",mail:"#059669",event:"#b45309",custom:"var(--ss-dim)"},l={request:"Request",middleware:"Middleware",db:"DB",mail:"Mail",event:"Event",view:"View",custom:"Custom"},r=K(()=>t.spans||[]),o=K(()=>[...r.value].sort((x,_)=>x.startOffset-_.startOffset)),a=K(()=>{const x={};for(const _ of o.value)x[_.id]=_.parentId?(x[_.parentId]||0)+1:0;return x});function i(x){const _=t.totalDuration||1;return`${x.startOffset/_*100}%`}function c(x){const _=t.totalDuration||1;return`${Math.max(x.duration/_*100,.5)}%`}function v(x){return x.length>50?x.slice(0,50)+"...":x}function p(x){return x==="db"?"DB":x}function g(x){return x==="db"?"purple":x==="mail"?"green":x==="event"?"amber":x==="view"?"blue":"muted"}function $(x){const _=x.metadata?Object.entries(x.metadata).filter(([,b])=>b!=null).map(([b,S])=>`${b}=${S}`).join(", "):"";return _?`${x.label} (${x.duration.toFixed(2)}ms)
|
|
5
|
+
${_}`:`${x.label} (${x.duration.toFixed(2)}ms)`}return(x,_)=>r.value.length===0?(u(),d("div",Ah,"No spans recorded")):(u(),d("div",{key:1,class:N(`ss-dash-tl-waterfall ${e.className||""}`)},[n("div",Mh,[(u(),d(q,null,pe(l,(b,S)=>n("div",{key:S,class:"ss-dash-tl-legend-item"},[n("span",{class:"ss-dash-tl-legend-dot",style:Ne({background:s[S]||s.custom})},null,4),n("span",null,h(b),1)])),64))]),(u(!0),d(q,null,pe(o.value,b=>(u(),d("div",{key:b.id,class:"ss-dash-tl-row"},[n("div",{class:"ss-dash-tl-label",title:$(b),style:Ne({paddingLeft:8+(a.value[b.id]||0)*16+"px"})},[n("span",{class:N(`ss-dash-badge ss-dash-badge-${g(b.category)}`),style:{"font-size":"9px","margin-right":"4px"}},h(p(b.category)),3),ve(" "+h(v(b.label)),1)],12,Dh),n("div",Lh,[n("div",{class:N(`ss-dash-tl-bar ss-dash-tl-bar-${b.category||"custom"}`),style:Ne({left:i(b),width:c(b)}),title:$(b)},null,14,Oh)]),n("span",Fh,h(b.duration.toFixed(2))+"ms",1)]))),128)),e.warnings&&e.warnings.length>0?(u(),d("div",Ih,[n("div",Nh,"Warnings ("+h(e.warnings.length)+")",1),(u(!0),d(q,null,pe(e.warnings,(b,S)=>(u(),d("div",{key:S,class:"ss-dash-tl-warning"},h(b),1))),128))])):Y("",!0)],2))}}),Os=Le({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"},defaultExpanded:{type:Boolean,default:!1}},setup(e){const t=e,s=G(t.defaultExpanded),l=K(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return un(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return un(t.value,t.maxLen||100)}),r=K(()=>{if(t.value===null||t.value===void 0)return"";if(typeof t.value=="string")try{return JSON.stringify(JSON.parse(t.value),null,2)}catch{return t.value}return JSON.stringify(t.value,null,2)});function o(){s.value=!s.value}function a(){navigator.clipboard?.writeText(r.value)}return(i,c)=>e.value===null||e.value===void 0?(u(),d("span",{key:0,class:N(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(u(),d("div",{key:1,class:N(`${t.classPrefix}-data-cell`)},[s.value?Y("",!0):(u(),d("span",{key:0,class:N(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:o,onKeydown:c[0]||(c[0]=v=>v.key==="Enter"&&o())},h(l.value),35)),s.value?(u(),d("div",{key:1,class:N(`${t.classPrefix}-data-full`),onClick:o},[n("button",{class:N(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:jt(a,["stop"])}," Copy ",2),n("pre",null,h(r.value),1)],2)):Y("",!0)],2))}}),jh={key:0},Bh={class:"ss-related-logs-title"},Uh={class:"ss-related-logs-count"},qh={style:{overflow:"auto"}},Hh=["onClick"],Kh=["title"],Vh=["title"],zh={key:1,class:"ss-log-reqid-empty"},Wh={key:3,style:{width:"14px"}},Qh={class:"ss-log-msg"},Jh={key:0,class:"ss-log-detail"},Gh=Le({__name:"RelatedLogs",props:{logs:{}},setup(e){const t=G(null);function s(l,r){r&&(t.value=t.value===l?null:l)}return(l,r)=>e.logs.length>0?(u(),d("div",jh,[n("div",Bh,[r[0]||(r[0]=ve(" Related Logs ",-1)),n("span",Uh,"("+h(e.logs.length)+")",1)]),n("div",qh,[(u(!0),d(q,null,pe(e.logs,(o,a)=>(u(),d(q,{key:o.id||a},[n("div",{class:N(["ss-log-entry",w(_t)(o)?"ss-log-entry-expandable":""]),onClick:i=>s(a,!!w(_t)(o))},[n("span",{class:N(["ss-log-level",w(hr)(w(cn)(o),"ss-log-level")])},h(w(cn)(o).toUpperCase()),3),n("span",{class:"ss-log-time",title:w(qt)(o)?w(Ut)(w(qt)(o)):""},h(w(qt)(o)?w(bt)(w(qt)(o)):"-"),9,Kh),w(Ht)(o)?(u(),d("span",{key:0,class:"ss-log-reqid",title:w(Ht)(o)},h(w(Ht)(o).slice(0,8)),9,Vh)):(u(),d("span",zh,"--")),w(_t)(o)?(u(),d("span",{key:2,class:N(["ss-log-expand-icon",t.value===a?"ss-log-expand-icon-open":""])},"▶",2)):(u(),d("span",Wh)),n("span",Qh,h(w(fr)(o)),1)],10,Hh),t.value===a&&w(_t)(o)?(u(),d("div",Jh,[_e(Os,{value:w(_t)(o),"class-prefix":"ss-dbg","default-expanded":!0},null,8,["value"])])):Y("",!0)],64))),128))])])):Y("",!0)}}),Yh={class:"ss-dash-tl-detail-header"},Xh={style:{color:"var(--ss-text)"}},Zh={class:"ss-dash-tl-meta"},ep={class:"ss-dash-tl-detail-header"},tp={key:0,class:"ss-dash-empty"},sp={key:1,class:"ss-dash-empty"},np={class:"ss-dash-table-wrap"},lp={key:0,class:"ss-dash-sort-arrow"},op={key:0,class:"ss-dash-sort-arrow"},rp={key:0,class:"ss-dash-sort-arrow"},ap={key:0,class:"ss-dash-sort-arrow"},ip={key:0,class:"ss-dash-sort-arrow"},up=["onClick"],cp={style:{color:"var(--ss-dim)"}},dp=["title"],fp={style:{color:"var(--ss-muted)","text-align":"center"}},hp={key:0,style:{color:"var(--ss-amber-fg)","text-align":"center",display:"block"}},pp={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},vp=["title"],gp={key:1,class:"ss-dash-empty"},yp=Object.freeze(Object.defineProperty({__proto__:null,default:Le({__name:"RequestsSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),r=ie("ss-base-url",""),{data:o,loading:a,error:i,pagination:c,sort:v,goToPage:p,setSearch:g,setSort:$}=nt(()=>"requests",{baseUrl:r,dashboardEndpoint:s,authToken:l,refreshKey:t}),x=G(""),_=G(null),b=G(!1),S=G(null),U=K(()=>{if(!o.value)return[];const ne=o.value;return ne.data||ne.requests||o.value||[]}),M=fl(r,l);let m=null;async function k(ne){const H=ne.id;m&&m.abort(),m=new AbortController;const z=m;b.value=!0;try{const ue=s||"/__stats/api",D=await M().fetch(`${ue}/requests/${H}`,{signal:z.signal}),E=D.trace,le=E?{...D,...E,logs:D.logs}:D;S.value=ac(le),_.value=ne}catch(ue){if(ue instanceof Error&&ue.name==="AbortError")return}finally{m===z&&(b.value=!1)}}function L(){_.value=null,S.value=null}function P(ne){x.value=ne,g(ne)}function j(ne){$(ne)}function X(ne){return il(ne,"ss-dash")}const{tableRef:Z}=Yt(()=>U.value),ge=G(null),Ee=G(null),we=G(null),Ce=G(null);let me=null;const $e=K(()=>S.value?S.value.logs||[]:[]);return it([()=>_.value,()=>S.value],async()=>{me?.(),me=null,S.value&&$e.value.length>0&&(await In(),ge.value&&Ee.value&&we.value&&Ce.value&&(me=Bu({container:ge.value,handle:Ee.value,topPane:we.value,bottomPane:Ce.value,storageKey:"ss-requests-split"})))}),ct(()=>{m&&m.abort(),me?.()}),(ne,H)=>(u(),d("div",null,[S.value&&_.value?(u(),d(q,{key:0},[n("div",Yh,[n("button",{type:"button",class:"ss-dash-btn",onClick:L}," ← Back to Requests "),n("span",{class:N(`ss-dash-method ss-dash-method-${(S.value.method||"").toLowerCase()}`)},h(S.value.method),3),n("span",Xh,h(S.value.url),1),n("span",{class:N(`ss-dash-status ss-dash-status-${Math.floor((S.value.statusCode||200)/100)}xx`)},h(S.value.statusCode),3),n("span",Zh,h(S.value.totalDuration.toFixed(1))+"ms · "+h(S.value.spanCount)+" spans ",1)]),$e.value.length>0?(u(),d("div",{key:0,ref_key:"splitContainerRef",ref:ge,class:"ss-dash-split-container"},[n("div",{ref_key:"splitTopRef",ref:we,class:"ss-dash-split-top"},[_e(xr,{spans:S.value.spans,"total-duration":S.value.totalDuration,warnings:S.value.warnings},null,8,["spans","total-duration","warnings"])],512),n("div",{ref_key:"splitHandleRef",ref:Ee,class:"ss-dash-split-handle"},null,512),n("div",{ref_key:"splitBottomRef",ref:Ce,class:"ss-dash-split-bottom"},[_e(Gh,{logs:$e.value},null,8,["logs"])],512)],512)):(u(),et(xr,{key:1,spans:S.value.spans,"total-duration":S.value.totalDuration,warnings:S.value.warnings},null,8,["spans","total-duration","warnings"]))],64)):b.value?(u(),d(q,{key:1},[n("div",ep,[n("button",{type:"button",class:"ss-dash-btn",onClick:H[0]||(H[0]=z=>b.value=!1)}," ← Back to Requests ")]),H[6]||(H[6]=n("div",{class:"ss-dash-empty"},"Loading request detail...",-1))],64)):(u(),d(q,{key:2},[_e(Kt,{"model-value":x.value,placeholder:"Filter requests...",summary:`${w(c).total??0} requests`,"onUpdate:modelValue":P},null,8,["model-value","summary"]),w(i)?(u(),d("div",tp,"Failed to load requests")):Y("",!0),w(a)&&!w(o)?(u(),d("div",sp,"Loading requests...")):(u(),d(q,{key:2},[n("div",np,[U.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:Z,class:"ss-dash-table"},[H[15]||(H[15]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"60px"}}),n("col",{style:{width:"80px"}}),n("col",{style:{width:"50px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"80px"}})],-1)),n("thead",null,[n("tr",null,[H[12]||(H[12]=n("th",null,"#",-1)),n("th",{class:"ss-dash-sortable",onClick:H[1]||(H[1]=z=>j("method"))},[H[7]||(H[7]=ve(" Method ",-1)),w(v).column==="method"?(u(),d("span",lp,h(w(v).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:H[2]||(H[2]=z=>j("url"))},[H[8]||(H[8]=ve(" URL ",-1)),w(v).column==="url"?(u(),d("span",op,h(w(v).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:H[3]||(H[3]=z=>j("statusCode"))},[H[9]||(H[9]=ve(" Status ",-1)),w(v).column==="statusCode"?(u(),d("span",rp,h(w(v).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:H[4]||(H[4]=z=>j("duration"))},[H[10]||(H[10]=ve(" Duration ",-1)),w(v).column==="duration"?(u(),d("span",ap,h(w(v).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),H[13]||(H[13]=n("th",null,"Spans",-1)),H[14]||(H[14]=n("th",null,"⚠",-1)),n("th",{class:"ss-dash-sortable",onClick:H[5]||(H[5]=z=>j("createdAt"))},[H[11]||(H[11]=ve(" Time ",-1)),w(v).column==="createdAt"?(u(),d("span",ip,h(w(v).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)])])]),n("tbody",null,[(u(!0),d(q,null,pe(U.value,z=>(u(),d("tr",{key:z.id,class:"ss-dash-clickable",onClick:ue=>k(z)},[n("td",null,[n("span",cp,h(z.id),1)]),n("td",null,[n("span",{class:N(`ss-dash-method ss-dash-method-${(z.method||"").toLowerCase()}`)},h(z.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:z.url},h(z.url),9,dp)]),n("td",null,[n("span",{class:N(`ss-dash-status ss-dash-status-${Math.floor((z.status_code||z.statusCode||200)/100)}xx`)},h(z.status_code||z.statusCode),3)]),n("td",null,[n("span",{class:N(`ss-dash-duration ${X(z.total_duration||z.totalDuration||z.duration||0)}`)},h((z.total_duration||z.totalDuration||z.duration||0).toFixed(1))+"ms ",3)]),n("td",null,[n("span",fp,h(z.span_count||z.spanCount||0),1)]),n("td",null,[(z.warning_count||z.warningCount||0)>0?(u(),d("span",hp,h(z.warning_count||z.warningCount||0),1)):(u(),d("span",pp,"-"))]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(Ut)(z.createdAt||z.created_at||z.timestamp||"")},h(w(bt)(z.createdAt||z.created_at||z.timestamp||"")),9,vp)])],8,up))),128))])],512)):(u(),d("div",gp,"No requests recorded yet"))]),w(c).totalPages>1?(u(),et(gs,{key:0,page:w(c).page,"last-page":w(c).totalPages,total:w(c).total,onPageChange:w(p)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),mp={class:"ss-dash-btn-group"},bp={key:0,class:"ss-dash-empty"},_p={key:1,class:"ss-dash-table-wrap"},xp=["onClick"],wp={key:0,class:"ss-dash-sort-arrow"},$p=["onClick","onKeydown"],kp={key:0,class:"ss-dash-dup"},Sp={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Cp={class:"ss-dash-duration"},Tp={class:"ss-dash-duration"},Ep={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Pp={key:1,class:"ss-dash-empty"},Rp={class:"ss-dash-table-wrap"},Ap=["onClick"],Mp={key:0,class:"ss-dash-sort-arrow"},Dp={key:1},Lp={style:{color:"var(--ss-dim)"}},Op=["onClick","onKeydown"],Fp={key:0,class:"ss-dash-dup"},Ip=["title"],Np={style:{color:"var(--ss-dim)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},jp=["title"],Bp=["disabled","onClick"],Up={key:0,class:"ss-dash-explain-row"},qp={colspan:"8",class:"ss-dash-explain"},Hp={style:{display:"flex","justify-content":"space-between","align-items":"start"}},Kp={style:{flex:"1"}},Vp={key:0,class:"ss-dash-explain-result ss-dash-explain-error"},zp={key:0},Wp={key:1,class:"ss-dash-explain-result"},Qp={class:"ss-dash-explain-node-header"},Jp={class:"ss-dash-explain-node-type"},Gp={key:0,class:"ss-dash-explain-metrics"},Yp={key:2,class:"ss-dash-explain-result"},Xp={key:3,class:"ss-dash-explain-result"},Zp=["onClick"],ev={key:1,class:"ss-dash-empty"},tv=Object.freeze(Object.defineProperty({__proto__:null,default:Le({__name:"QueriesSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),r=ie("ss-base-url",""),o=new ec("list"),a=G(0);function i(){a.value++}const c=K(()=>(a.value,o.state.viewMode)),v=K(()=>Xu()),p=K(()=>Zu()),g=K(()=>c.value==="grouped"?"queries/grouped":"queries"),{data:$,loading:x,pagination:_,sort:b,goToPage:S,setSearch:U,setSort:M,explainQuery:m}=nt(()=>g.value,{baseUrl:r,dashboardEndpoint:s,authToken:l,refreshKey:t}),k=G(""),L=K(()=>$.value?c.value==="grouped"?$.value.groups||[]:$.value.data||$.value||[]:[]),P=K(()=>c.value!=="grouped"?L.value:L.value.map(oe=>{const ee={...oe};return(ee.sqlNormalized===null||ee.sqlNormalized===void 0)&&(ee.sqlNormalized=Ue(oe,"sql_normalized","pattern")??""),(ee.count===null||ee.count===void 0)&&(ee.count=Ue(oe,"total_count")??void 0),(ee.avgDuration===null||ee.avgDuration===void 0)&&(ee.avgDuration=Ue(oe,"avg_duration")??void 0),(ee.maxDuration===null||ee.maxDuration===void 0)&&(ee.maxDuration=Ue(oe,"max_duration")??void 0),(ee.minDuration===null||ee.minDuration===void 0)&&(ee.minDuration=Ue(oe,"min_duration")??void 0),(ee.totalDuration===null||ee.totalDuration===void 0)&&(ee.totalDuration=Ue(oe,"total_duration")??void 0),(ee.percentOfTotal===null||ee.percentOfTotal===void 0)&&(ee.percentOfTotal=Ue(oe,"pct_time")??void 0),ee})),j=K(()=>c.value!=="list"?[]:L.value.map(oe=>Wu(oe))),X=K(()=>vr(L.value)),Z=K(()=>zu(L.value,{total:_.total})),ge=K(()=>{if(c.value==="grouped")return`${P.value.length} query patterns`;const oe=[`${Z.value.totalCount} queries`];return Z.value.slowCount>0&&oe.push(`${Z.value.slowCount} slow`),Z.value.dupCount>0&&oe.push(`${Z.value.dupCount} dup`),oe.push(`avg ${(Z.value.avgDuration||0).toFixed(1)}ms`),oe.join(", ")});function Ee(oe){k.value=oe,U(oe)}function we(oe){oe!==c.value&&(o.setViewMode(oe),i())}function Ce(oe){M(oe)}function me(oe){return a.value,o.isExpanded(oe)}function $e(oe){o.toggleExpand(oe),i()}async function ne(oe){const ee=o.getExplainState(oe);if(ee&&!ee.loading){o.state.explainData.delete(oe),i();return}o.startExplain(oe),i();try{const A=await m(oe);if(A&&A.error){const Fe=A.message?`${A.error}: ${A.message}`:A.error;o.failExplain(oe,Fe)}else o.completeExplain(oe,{plan:A?.plan,rows:A?.rows})}catch(A){let Fe=A instanceof Error?A.message:String(A);const f=A?.body;if(f)try{const y=JSON.parse(f);y.message?Fe=y.error?`${y.error}: ${y.message}`:y.message:y.error&&(Fe=y.error)}catch{}o.failExplain(oe,Fe)}i()}function H(oe){return a.value,o.getExplainState(oe)}function z(oe){return a.value,o.getExplainState(oe)?.loading??!1}function ue(oe){a.value;const ee=o.getExplainState(oe);return!!ee&&!ee.loading&&!ee.error&&!!ee.result}function T(oe){o.state.explainData.delete(oe),i()}function D(oe){const ee=H(oe);if(!ee?.result)return[];const A=ee.result.plan||ee.result.rows;if(!A||A.length===0)return[];const Fe=A[0];return!Fe||typeof Fe!="object"?[]:"Plan"in Fe?gr(Fe.Plan):[]}function E(oe){const ee=H(oe);if(!ee?.result)return[];const A=ee.result.plan||ee.result.rows;return!A||A.length===0?[]:Gu(A)}function le(oe){const ee=H(oe);return ee?.result?ee.result.plan||ee.result.rows||[]:[]}function Me(oe){const ee=H(oe);if(!ee?.result)return!1;const A=ee.result.plan||ee.result.rows;return!A||A.length===0?!1:Ju(A[0])}function Vt(oe){const ee=H(oe);if(!ee?.result)return!1;const A=ee.result.plan||ee.result.rows;return!!A&&A.length>0&&typeof A[0]=="object"}function Ge(oe){return il(oe,"ss-dash")}const{tableRef:Pt}=Yt(()=>P.value);return(oe,ee)=>(u(),d("div",null,[_e(Kt,{"model-value":k.value,placeholder:"Filter queries...",summary:ge.value,"onUpdate:modelValue":Ee},{default:is(()=>[n("div",mp,[n("button",{type:"button",class:N(`ss-dash-btn ${c.value==="list"?"ss-dash-active":""}`),onClick:ee[0]||(ee[0]=A=>we("list"))}," List ",2),n("button",{type:"button",class:N(`ss-dash-btn ${c.value==="grouped"?"ss-dash-active":""}`),onClick:ee[1]||(ee[1]=A=>we("grouped"))}," Grouped ",2)])]),_:1},8,["model-value","summary"]),w(x)&&!w($)?(u(),d("div",bp,"Loading queries...")):c.value==="grouped"?(u(),d("div",_p,[P.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:Pt,class:"ss-dash-table"},[n("thead",null,[n("tr",null,[(u(!0),d(q,null,pe(p.value,A=>(u(),d("th",{key:A.key,class:N(A.sortable?"ss-dash-sortable":""),onClick:Fe=>A.sortable?Ce(A.key):void 0},[ve(h(A.label)+" ",1),A.sortable&&w(b).column===A.key?(u(),d("span",wp,h(w(b).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)],10,xp))),128))])]),n("tbody",null,[(u(!0),d(q,null,pe(P.value,(A,Fe)=>(u(),d("tr",{key:Fe},[n("td",null,[n("span",{class:N(`ss-dash-sql ${me(A.sqlNormalized)?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:jt(f=>$e(A.sqlNormalized),["stop"]),onKeydown:Ms(f=>$e(A.sqlNormalized),["enter"])},h(A.sqlNormalized),43,$p),(A.count||0)>=3?(u(),d("span",kp,"DUP")):Y("",!0)]),n("td",null,[n("span",Sp,h(A.count||0),1)]),n("td",null,[n("span",{class:N(`ss-dash-duration ${Ge(A.avgDuration||0)}`)},h((A.avgDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",Cp,h((A.minDuration||0).toFixed(2))+"ms",1)]),n("td",null,[n("span",{class:N(`ss-dash-duration ${Ge(A.maxDuration||0)}`)},h((A.maxDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",Tp,h((A.totalDuration||0).toFixed(1))+"ms",1)]),n("td",null,[n("span",Ep,h((A.percentOfTotal||0).toFixed(1))+"%",1)])]))),128))])],512)):(u(),d("div",Pp,[...ee[2]||(ee[2]=[n("span",null,"No queries recorded",-1),n("span",{class:"ss-empty-hint"},[ve(" Queries require "),n("code",null,"debug: true"),ve(" on your Lucid connections in "),n("code",null,"config/database.ts")],-1)])]))])):(u(),d(q,{key:2},[n("div",Rp,[j.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:Pt,class:"ss-dash-table"},[n("colgroup",null,[(u(!0),d(q,null,pe(v.value,A=>(u(),d("col",{key:A.key+A.type,style:Ne(A.width?{width:A.width}:{})},null,4))),128))]),n("thead",null,[n("tr",null,[(u(!0),d(q,null,pe(v.value,A=>(u(),d(q,{key:A.key+A.type},[A.sortable?(u(),d("th",{key:0,class:"ss-dash-sortable",onClick:Fe=>Ce(A.key)},[ve(h(A.label)+" ",1),w(b).column===A.key?(u(),d("span",Mp,h(w(b).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)],8,Ap)):(u(),d("th",Dp,h(A.label),1))],64))),128))])]),n("tbody",null,[(u(!0),d(q,null,pe(j.value,(A,Fe)=>(u(),d(q,{key:A.id},[n("tr",null,[n("td",null,[n("span",Lp,h(A.id),1)]),n("td",null,[n("div",null,[n("span",{class:N(`ss-dash-sql ${me(A.id)?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:jt(f=>$e(A.id),["stop"]),onKeydown:Ms(f=>$e(A.id),["enter"])},h(A.sql),43,Op),(X.value.get(A.sqlNormalized)??0)>1?(u(),d("span",Fp," ×"+h(X.value.get(A.sqlNormalized)),1)):Y("",!0)])]),n("td",null,[n("span",{class:N(`ss-dash-duration ${Ge(A.duration)}`)},h(A.duration.toFixed(2))+"ms ",3)]),n("td",null,[n("span",{class:N(`ss-dash-method ss-dash-method-${A.method.toLowerCase()}`)},h(A.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:A.model},h(A.model||"-"),9,Ip)]),n("td",null,[n("span",Np,h(A.connection||"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(Ut)(String(A.timestamp))},h(w(bt)(String(A.timestamp))),9,jp)]),n("td",null,[A.method==="select"?(u(),d("button",{key:0,type:"button",class:N(`ss-dash-explain-btn${ue(A.id)?" ss-dash-explain-btn-active":""}`),disabled:z(A.id),onClick:jt(f=>ne(A.id),["stop"])},h(z(A.id)?"...":"EXPLAIN"),11,Bp)):Y("",!0)])]),H(A.id)?(u(),d("tr",Up,[n("td",qp,[n("div",Hp,[n("div",Kp,[H(A.id)?.error?(u(),d("div",Vp,[ee[3]||(ee[3]=n("strong",null,"Error:",-1)),ve(" "+h(H(A.id)?.error)+" ",1),H(A.id)?.result?.message?(u(),d("br",zp)):Y("",!0),ve(" "+h(H(A.id)?.result?.message),1)])):Me(A.id)?(u(),d("div",Wp,[(u(!0),d(q,null,pe(D(A.id),(f,y)=>(u(),d("div",{key:y,class:"ss-dash-explain-node",style:Ne({marginLeft:`${f.depth*20}px`})},[n("div",Qp,[n("span",Jp,h(f.nodeType),1),f.relationName?(u(),d(q,{key:0},[ee[4]||(ee[4]=ve(h(" on "),-1)),n("strong",null,h(f.relationName),1)],64)):Y("",!0),f.alias?(u(),d(q,{key:1},[ve(h(` (${f.alias})`),1)],64)):Y("",!0),f.indexName?(u(),d(q,{key:2},[ee[5]||(ee[5]=ve(h(" using "),-1)),n("em",null,h(f.indexName),1)],64)):Y("",!0)]),f.metrics.length>0?(u(),d("div",Gp,h(f.metrics.join(" · ")),1)):Y("",!0)],4))),128))])):Vt(A.id)?(u(),d("div",Yp,[n("table",null,[n("thead",null,[n("tr",null,[(u(!0),d(q,null,pe(E(A.id),f=>(u(),d("th",{key:f},h(f),1))),128))])]),n("tbody",null,[(u(!0),d(q,null,pe(le(A.id),(f,y)=>(u(),d("tr",{key:y},[(u(!0),d(q,null,pe(E(A.id),C=>(u(),d("td",{key:C},h(w(Yu)(f[C])),1))),128))]))),128))])])])):(u(),d("div",Xp,"No plan data returned"))]),n("button",{type:"button",class:"ss-dash-explain-btn",style:{"margin-left":"8px","flex-shrink":"0"},onClick:f=>T(A.id)}," Close ",8,Zp)])])])):Y("",!0)],64))),128))])],512)):(u(),d("div",ev,[...ee[6]||(ee[6]=[n("span",null,"No queries recorded",-1),n("span",{class:"ss-empty-hint"},[ve(" Queries require "),n("code",null,"debug: true"),ve(" on your Lucid connections in "),n("code",null,"config/database.ts")],-1)])]))]),w(_).totalPages>1?(u(),et(gs,{key:0,page:w(_).page,"last-page":w(_).totalPages,total:w(_).total,onPageChange:w(S)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),sv={key:0,class:"ss-dash-empty"},nv={class:"ss-dash-table-wrap"},lv={style:{color:"var(--ss-dim)"}},ov=["title"],rv=["title"],av={key:1,class:"ss-dash-empty"},iv=Object.freeze(Object.defineProperty({__proto__:null,default:Le({__name:"EventsSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),r=ie("ss-base-url",""),{data:o,loading:a,pagination:i,goToPage:c,setSearch:v}=nt(()=>"events",{baseUrl:r,dashboardEndpoint:s,authToken:l,refreshKey:t}),p=G(""),g=K(()=>{if(!o.value)return[];const _=o.value;return _.data||_.events||o.value||[]});function $(_){p.value=_,v(_)}const{tableRef:x}=Yt(()=>g.value);return(_,b)=>(u(),d("div",null,[_e(Kt,{"model-value":p.value,placeholder:"Filter events...",summary:`${w(i).total??0} events`,"onUpdate:modelValue":$},null,8,["model-value","summary"]),w(a)&&!w(o)?(u(),d("div",sv,"Loading events...")):(u(),d(q,{key:1},[n("div",nv,[g.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:x,class:"ss-dash-table"},[b[0]||(b[0]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col"),n("col",{style:{width:"80px"}})],-1)),b[1]||(b[1]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"Event"),n("th",null,"Data"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(g.value,S=>(u(),d("tr",{key:S.id},[n("td",null,[n("span",lv,h(S.id),1)]),n("td",null,[n("span",{class:"ss-dash-event-name",title:S.event_name||S.eventName||S.event||"",style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.event_name||S.eventName||S.event||""),9,ov)]),n("td",null,[_e(Os,{value:S.data,class:"ss-dash-event-data"},null,8,["value"])]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(Ut)(S.createdAt||S.created_at||S.timestamp)},h(w(bt)(S.createdAt||S.created_at||S.timestamp)),9,rv)])]))),128))])],512)):(u(),d("div",av,"No events recorded yet"))]),w(i).totalPages>1?(u(),et(gs,{key:0,page:w(i).page,"last-page":w(i).totalPages,total:w(i).total,onPageChange:w(c)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),uv={key:0,class:"ss-dash-empty"},cv={key:1,class:"ss-dash-empty"},dv={key:2,class:"ss-dash-table-wrap"},fv=["title"],hv=["title"],pv=["title"],vv=["title"],gv={key:1,class:"ss-dash-empty"},yv=Object.freeze(Object.defineProperty({__proto__:null,default:Le({__name:"RoutesSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),r=ie("ss-base-url",""),{data:o,loading:a,error:i,setSearch:c}=nt(()=>"routes",{baseUrl:r,dashboardEndpoint:s,authToken:l,refreshKey:t}),v=G(""),p=K(()=>{if(!o.value)return[];const x=o.value;return Array.isArray(x)?x:Array.isArray(x.routes)?x.routes:Array.isArray(x.data)?x.data:[]});function g(x){v.value=x,c(x)}const{tableRef:$}=Yt(()=>p.value);return(x,_)=>(u(),d("div",null,[_e(Kt,{"model-value":v.value,placeholder:"Filter routes...",summary:`${p.value.length} routes`,"onUpdate:modelValue":g},null,8,["model-value","summary"]),w(i)?(u(),d("div",uv,"Failed to load routes")):w(a)&&!w(o)?(u(),d("div",cv,"Loading routes...")):(u(),d("div",dv,[p.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:$,class:"ss-dash-table"},[_[0]||(_[0]=n("colgroup",null,[n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"120px"}}),n("col"),n("col")],-1)),_[1]||(_[1]=n("thead",null,[n("tr",null,[n("th",null,"Method"),n("th",null,"Pattern"),n("th",null,"Name"),n("th",null,"Handler"),n("th",null,"Middleware")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(p.value,(b,S)=>(u(),d("tr",{key:b.pattern||S},[n("td",null,[n("span",{class:N(`ss-dash-method ss-dash-method-${(b.method||"").toLowerCase()}`)},h(b.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:b.pattern},h(b.pattern),9,fv)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:b.name||"-"},h(b.name||"-"),9,hv)]),n("td",null,[n("span",{style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:b.handler},h(b.handler),9,pv)]),n("td",null,[n("span",{style:{color:"var(--ss-dim)","font-size":"10px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:b.middleware?.length?b.middleware.join(", "):"-"},h(b.middleware?.length?b.middleware.join(", "):"-"),9,vv)])]))),128))])],512)):(u(),d("div",gv,"No routes available"))]))]))}})},Symbol.toStringTag,{value:"Module"})),mv={class:"ss-dash-log-filters"},bv=["onClick"],_v=["value"],xv={class:"ss-dash-structured-search"},wv=["value"],$v=["value"],kv=["value"],Sv={key:0,class:"ss-dash-filter-chips"},Cv={key:0,class:"ss-dash-filter-chip"},Tv={key:1,class:"ss-dash-filter-chip"},Ev=["onClick"],Pv={key:1,class:"ss-dash-empty"},Rv={key:2,class:"ss-dash-empty"},Av={key:3,class:"ss-dash-empty"},Mv={key:4,class:"ss-dash-log-entries"},Dv=["onClick"],Lv=["title"],Ov=["title","onClick","onKeydown"],Fv={key:1,class:"ss-dash-log-reqid-empty"},Iv={key:3,style:{width:"14px"}},Nv={class:"ss-dash-log-msg"},jv={key:0,class:"ss-dash-log-detail"},Bv=Object.freeze(Object.defineProperty({__proto__:null,default:Le({__name:"LogsSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),r=ie("ss-base-url",""),{data:o,loading:a,error:i,pagination:c,goToPage:v,setSearch:p,setFilter:g}=nt(()=>"logs",{baseUrl:r,dashboardEndpoint:s,authToken:l,refreshKey:t}),$=G(""),x=G("all"),_=G(""),b=G(""),S=G(null),U=G([]),M=G("level"),m=G("equals"),k=G(""),L=K(()=>{if(!o.value)return[];const T=o.value;return T.data||T.logs||o.value||[]}),P=K(()=>x.value!=="all"||_.value!==""||U.value.length>0);function j(T,D){D&&(S.value=S.value===T?null:T)}function X(T){$.value=T,p(T)}function Z(T){x.value=T,T==="all"?g("level",""):g("level",T)}function ge(T){_.value=T,b.value=T,g("request_id",T)}function Ee(){const T=b.value.trim();_.value=T,g("request_id",T)}function we(){_.value="",b.value="",g("request_id","")}function Ce(){x.value="all",g("level","")}let me=[];function $e(){const T=[];U.value.forEach((D,E)=>{T.push(`filter_field_${E}`,`filter_op_${E}`,`filter_value_${E}`)});for(const D of me)T.includes(D)||g(D,"");U.value.forEach((D,E)=>{g(`filter_field_${E}`,D.field),g(`filter_op_${E}`,D.operator),g(`filter_value_${E}`,D.value)}),me=T}function ne(){const T=k.value.trim();T&&(U.value.push({field:M.value,operator:m.value,value:T}),k.value="",$e())}function H(T){U.value.splice(T,1),$e()}function z(T){return T.target.value}function ue(T){return T.target.value}return(T,D)=>(u(),d("div",null,[_e(Kt,{"model-value":$.value,placeholder:"Search logs...",summary:`${w(c).total??0} logs`,"onUpdate:modelValue":X},{default:is(()=>[n("div",mv,[(u(!0),d(q,null,pe(w(qu),E=>(u(),d("button",{key:E,type:"button",class:N(`ss-dash-log-filter ${x.value===E?"ss-dash-active":""}`),onClick:le=>Z(E)},h(E),11,bv))),128)),n("input",{type:"text",class:"ss-dash-filter-input ss-dash-reqid-input",placeholder:"Filter by request ID...",value:b.value,onInput:D[0]||(D[0]=E=>b.value=z(E)),onKeydown:Ms(Ee,["enter"])},null,40,_v),b.value||_.value?(u(),d("button",{key:0,type:"button",class:"ss-dash-btn ss-dash-reqid-clear",onClick:we}," Clear ")):Y("",!0)])]),_:1},8,["model-value","summary"]),n("div",xv,[n("select",{class:"ss-dash-filter-select",value:M.value,onChange:D[1]||(D[1]=E=>M.value=ue(E))},[...D[4]||(D[4]=[gi('<option value="level">level</option><option value="message">message</option><option value="request_id">request_id</option><option value="userId">userId</option><option value="email">email</option><option value="path">path</option>',6)])],40,wv),n("select",{class:"ss-dash-filter-select",value:m.value,onChange:D[2]||(D[2]=E=>m.value=ue(E))},[...D[5]||(D[5]=[n("option",{value:"equals"},"equals",-1),n("option",{value:"contains"},"contains",-1),n("option",{value:"starts_with"},"starts with",-1)])],40,$v),n("input",{class:"ss-dash-filter-input",placeholder:"Value...",value:k.value,onInput:D[3]||(D[3]=E=>k.value=z(E)),onKeydown:Ms(ne,["enter"])},null,40,kv),n("button",{type:"button",class:"ss-dash-btn",onClick:ne},"Add")]),P.value?(u(),d("div",Sv,[x.value!=="all"?(u(),d("span",Cv,[ve(" level: "+h(x.value)+" ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:Ce}," × ")])):Y("",!0),_.value?(u(),d("span",Tv,[ve(" requestId: "+h(_.value.slice(0,8))+"... ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:we}," × ")])):Y("",!0),(u(!0),d(q,null,pe(U.value,(E,le)=>(u(),d("span",{key:le,class:"ss-dash-filter-chip"},[ve(h(E.field)+" "+h(E.operator)+' "'+h(E.value)+'" ',1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:Me=>H(le)}," × ",8,Ev)]))),128))])):Y("",!0),w(i)?(u(),d("div",Pv,"Failed to load logs")):w(a)&&!w(o)?(u(),d("div",Rv,"Loading logs...")):L.value.length===0?(u(),d("div",Av," No log entries"+h(_.value?` matching request ${_.value}`:x.value!=="all"?` for ${x.value}`:""),1)):(u(),d("div",Mv,[(u(!0),d(q,null,pe(L.value,(E,le)=>(u(),d(q,{key:String(E.id||le)},[n("div",{class:N(["ss-dash-log-entry",{"ss-dash-log-entry-expandable":!!w(_t)(E)}]),onClick:Me=>j(le,!!w(_t)(E))},[n("span",{class:N(`ss-dash-log-level ${w(hr)(w(cn)(E),"ss-dash-log-level")}`)},h(w(cn)(E).toUpperCase()),3),n("span",{class:"ss-dash-log-time",title:w(qt)(E)?w(Ut)(w(qt)(E)):""},h(w(qt)(E)?w(bt)(w(qt)(E)):"-"),9,Lv),w(Ht)(E)?(u(),d("span",{key:0,class:"ss-dash-log-reqid",title:w(Ht)(E),role:"button",tabindex:"0",onClick:jt(Me=>ge(w(Ht)(E)),["stop"]),onKeydown:Ms(jt(Me=>ge(w(Ht)(E)),["stop"]),["enter"])},h(w(Ht)(E).slice(0,8)),41,Ov)):(u(),d("span",Fv,"--")),w(_t)(E)?(u(),d("span",{key:2,class:N(["ss-dash-log-expand-icon",{"ss-dash-log-expand-icon-open":S.value===le}])},"▶",2)):(u(),d("span",Iv)),n("span",Nv,h(w(fr)(E)),1)],10,Dv),S.value===le&&w(_t)(E)?(u(),d("div",jv,[_e(Os,{value:w(_t)(E),"class-prefix":"ss-dash","default-expanded":""},null,8,["value"])])):Y("",!0)],64))),128))])),w(c).totalPages>1?(u(),et(gs,{key:5,page:w(c).page,"last-page":w(c).totalPages,total:w(c).total,onPageChange:w(v)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),Uv={key:0,class:"ss-dash-email-preview",id:"ss-dash-email-preview"},qv={class:"ss-dash-email-preview-header"},Hv={class:"ss-dash-email-preview-meta",id:"ss-dash-email-preview-meta"},Kv=["srcdoc"],Vv={key:0,class:"ss-dash-empty"},zv={class:"ss-dash-table-wrap"},Wv=["onClick"],Qv={style:{color:"var(--ss-dim)"}},Jv=["title"],Gv=["title"],Yv=["title"],Xv={key:0,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},Zv={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},eg=["title"],tg=["title"],sg={key:1,class:"ss-dash-empty"},ng=Object.freeze(Object.defineProperty({__proto__:null,default:Le({__name:"EmailsSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),r=ie("ss-base-url",""),{data:o,loading:a,pagination:i,goToPage:c,setSearch:v,fetchEmailPreview:p}=nt(()=>"emails",{baseUrl:r,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=G(""),$=G(null),x=G(null),_=K(()=>{if(!o.value)return[];const L=o.value;return L.data||L.emails||o.value||[]}),b=K(()=>$.value===null?void 0:_.value.find(L=>L.id===$.value));function S(L){g.value=L,v(L)}let U=null;async function M(L){if(U?.abort(),U=null,L.html){$.value=L.id,x.value=L.html;return}const P=new AbortController;U=P;const j=await p(L.id,{signal:P.signal});U===P&&($.value=L.id,x.value=j)}function m(){U?.abort(),$.value=null,x.value=null}ct(()=>U?.abort());const{tableRef:k}=Yt(()=>_.value);return(L,P)=>(u(),d("div",null,[$.value&&x.value?(u(),d("div",Uv,[n("div",qv,[n("div",Hv,[b.value?(u(),d(q,{key:0},[P[4]||(P[4]=n("strong",null,"Subject:",-1)),ve(" "+h(b.value.subject)+" | ",1),P[5]||(P[5]=n("strong",null,"From:",-1)),ve(" "+h(b.value.from_addr||b.value.from)+" | ",1),P[6]||(P[6]=n("strong",null,"To:",-1)),ve(" "+h(b.value.to_addr||b.value.to)+" ",1),b.value.cc||b.value.cc_addr?(u(),d(q,{key:0},[P[0]||(P[0]=ve(" | ",-1)),P[1]||(P[1]=n("strong",null,"CC:",-1)),ve(" "+h(b.value.cc||b.value.cc_addr),1)],64)):Y("",!0),P[7]||(P[7]=ve(" | ",-1)),P[8]||(P[8]=n("strong",null,"Status:",-1)),n("span",{class:N(`ss-dash-badge ss-dash-email-status-${b.value.status}`)},h(b.value.status),3),b.value.mailer?(u(),d(q,{key:1},[P[2]||(P[2]=ve(" | ",-1)),P[3]||(P[3]=n("strong",null,"Mailer:",-1)),ve(" "+h(b.value.mailer),1)],64)):Y("",!0)],64)):Y("",!0)]),n("button",{type:"button",class:"ss-dash-btn",id:"ss-dash-email-preview-close",onClick:m}," Close ")]),n("iframe",{class:"ss-dash-email-iframe",id:"ss-dash-email-iframe",srcdoc:x.value,title:"Email preview",sandbox:""},null,8,Kv)])):(u(),d(q,{key:1},[_e(Kt,{"model-value":g.value,placeholder:"Filter emails...",summary:`${w(i).total??0} emails`,"onUpdate:modelValue":S},null,8,["model-value","summary"]),w(a)&&!w(o)?(u(),d("div",Vv,"Loading emails...")):(u(),d(q,{key:1},[n("div",zv,[_.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:k,class:"ss-dash-table"},[P[9]||(P[9]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"150px"}}),n("col",{style:{width:"150px"}}),n("col"),n("col",{style:{width:"80px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"80px"}})],-1)),P[10]||(P[10]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"From"),n("th",null,"To"),n("th",null,"Subject"),n("th",null,"Status"),n("th",null,"ATT"),n("th",null,"Mailer"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(_.value,j=>(u(),d("tr",{key:j.id,class:"ss-dash-clickable ss-dash-email-row",onClick:X=>M(j)},[n("td",null,[n("span",Qv,h(j.id),1)]),n("td",null,[n("span",{title:j.from_addr||j.from||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(j.from_addr||j.from||""),9,Jv)]),n("td",null,[n("span",{title:j.to_addr||j.to||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(j.to_addr||j.to||""),9,Gv)]),n("td",null,[n("span",{title:j.subject||"",style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(j.subject||""),9,Yv)]),n("td",null,[n("span",{class:N(`ss-dash-badge ss-dash-email-status-${j.status||""}`)},h(j.status),3)]),n("td",null,[(j.attachment_count||j.attachmentCount||0)>0?(u(),d("span",Xv,h(j.attachment_count||j.attachmentCount||0),1)):(u(),d("span",Zv,"-"))]),n("td",null,[n("span",{title:j.mailer||"",style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(j.mailer||""),9,eg)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:w(Ut)(j.createdAt||j.created_at||j.timestamp)},h(w(bt)(j.createdAt||j.created_at||j.timestamp)),9,tg)])],8,Wv))),128))])],512)):(u(),d("div",sg,"No emails captured yet"))]),w(i).totalPages>1?(u(),et(gs,{key:0,page:w(i).page,"last-page":w(i).totalPages,total:w(i).total,onPageChange:w(c)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),lg={key:0,class:"ss-dash-cache-stats"},og={class:"ss-dash-cache-stat"},rg={class:"ss-dash-cache-stat-value"},ag={class:"ss-dash-cache-stat"},ig={class:"ss-dash-cache-stat-value"},ug={class:"ss-dash-cache-stat"},cg={class:"ss-dash-cache-stat-value"},dg={class:"ss-dash-cache-stat"},fg={class:"ss-dash-cache-stat-value"},hg={key:1,class:"ss-dash-empty"},pg={key:2,class:"ss-dash-empty"},vg={key:3,class:"ss-dash-table-wrap"},gg=["onClick"],yg=["title"],mg={style:{color:"var(--ss-muted)"}},bg=["onClick"],_g={key:1,class:"ss-dash-empty"},xg={key:4,class:"ss-dash-cache-detail"},wg={key:0,class:"ss-dash-empty"},$g={key:1,class:"ss-dash-empty",style:{color:"var(--ss-red-fg)"}},kg=Object.freeze(Object.defineProperty({__proto__:null,default:Le({__name:"CacheSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),r=ie("ss-base-url",""),{data:o,loading:a,setSearch:i,mutate:c}=nt(()=>"cache",{baseUrl:r,dashboardEndpoint:s,authToken:l,refreshKey:t});let v=null;Ct(()=>{const P=fl(r||"",l);v=new ur(P(),s||"/__stats/api")});const p=G(""),g=G(null),$=G(null),x=G(!1),_=G(null),b=K(()=>o.value),S=K(()=>b.value?.keys||b.value?.data||[]);function U(P){p.value=P,i(P)}async function M(P){if(confirm(`Delete cache key "${P}"?`))try{await c(`cache/${encodeURIComponent(P)}`,"delete"),g.value===P&&(g.value=null,$.value=null,_.value=null)}catch{}}const{tableRef:m}=Yt(()=>S.value);let k=null;async function L(P){if(k?.abort(),k=null,g.value===P){g.value=null,$.value=null,_.value=null;return}g.value=P,$.value=null,_.value=null,x.value=!0;const j=new AbortController;k=j;try{if(!v)throw new Error("Cache API not initialized");const X=await v.fetchCacheKey(P,{signal:j.signal});if(k!==j)return;$.value=X.value!==void 0?X.value:X.data!==void 0?X.data:X,_.value=null}catch(X){if(X instanceof Error&&X.name==="AbortError"||k!==j)return;$.value=null,_.value="Failed to fetch key value"}finally{k===j&&(x.value=!1)}}return ct(()=>k?.abort()),(P,j)=>(u(),d("div",null,[b.value?.available&&b.value?.stats?(u(),d("div",lg,[n("div",og,[j[0]||(j[0]=n("span",{class:"ss-dash-cache-stat-label"},"Hit Rate:",-1)),n("span",rg,h((b.value.stats.hitRate??0).toFixed(1))+"%",1)]),n("div",ag,[j[1]||(j[1]=n("span",{class:"ss-dash-cache-stat-label"},"Hits:",-1)),n("span",ig,h(b.value.stats.hits??0),1)]),n("div",ug,[j[2]||(j[2]=n("span",{class:"ss-dash-cache-stat-label"},"Misses:",-1)),n("span",cg,h(b.value.stats.misses??0),1)]),n("div",dg,[j[3]||(j[3]=n("span",{class:"ss-dash-cache-stat-label"},"Keys:",-1)),n("span",fg,h(b.value.stats.totalKeys||b.value.stats.keyCount||S.value.length||0),1)])])):Y("",!0),_e(Kt,{"model-value":p.value,placeholder:"Filter cache keys...",summary:`${S.value.length} keys`,"onUpdate:modelValue":U},null,8,["model-value","summary"]),w(a)&&!w(o)?(u(),d("div",hg,"Loading cache...")):!b.value||!b.value.available?(u(),d("div",pg," Cache inspector not available ")):(u(),d("div",vg,[S.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:m,class:"ss-dash-table"},[j[4]||(j[4]=n("thead",null,[n("tr",null,[n("th",null,"Key"),n("th",null,"Type"),n("th",null,"Size"),n("th",null,"TTL"),n("th")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(S.value,X=>(u(),d("tr",{key:X.key,class:"ss-dash-clickable",onClick:Z=>L(X.key)},[n("td",null,[n("span",{title:X.key,style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(X.key),9,yg)]),n("td",null,[n("span",mg,h(X.type),1)]),n("td",null,h(X.size!==null&&X.size!==void 0&&X.size>0?w(Su)(X.size):"-"),1),n("td",null,h(X.ttl>0?w(ku)(X.ttl):"-"),1),n("td",null,[n("button",{type:"button",class:"ss-dash-retry-btn",onClick:jt(Z=>M(X.key),["stop"])}," Delete ",8,bg)])],8,gg))),128))])],512)):(u(),d("div",_g,"No cache keys found"))])),g.value?(u(),d("div",xg,[n("h4",null,"Key: "+h(g.value),1),x.value?(u(),d("div",wg,"Loading value...")):_.value?(u(),d("div",$g,h(_.value),1)):(u(),et(Os,{key:2,value:$.value},null,8,["value"]))])):Y("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),Sg={key:0,class:"ss-dash-job-stats"},Cg={class:"ss-dash-job-stat"},Tg={class:"ss-dash-job-stat-value"},Eg={class:"ss-dash-job-stat"},Pg={class:"ss-dash-job-stat-value"},Rg={class:"ss-dash-job-stat"},Ag={class:"ss-dash-job-stat-value"},Mg={class:"ss-dash-job-stat"},Dg={class:"ss-dash-job-stat-value"},Lg={class:"ss-dash-job-stat"},Og={class:"ss-dash-job-stat-value",style:{color:"var(--ss-red-fg)"}},Fg={class:"ss-dash-btn-group"},Ig=["onClick"],Ng={key:1,class:"ss-dash-empty"},jg={key:2,class:"ss-dash-empty"},Bg={class:"ss-dash-table-wrap"},Ug={style:{color:"var(--ss-dim)"}},qg=["title"],Hg={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Kg={class:"ss-dash-duration"},Vg=["title"],zg=["disabled","onClick"],Wg={key:1,class:"ss-dash-empty"},Qg=Object.freeze(Object.defineProperty({__proto__:null,default:Le({__name:"JobsSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),r=ie("ss-base-url",""),{data:o,loading:a,error:i,pagination:c,goToPage:v,setSearch:p,setFilter:g,refresh:$,mutate:x}=nt(()=>"jobs",{baseUrl:r,dashboardEndpoint:s,authToken:l,refreshKey:t}),_=G(""),b=G("all"),S=G({}),U=K(()=>nc(o.value)),M=K(()=>lc(o.value));function m(j){_.value=j,p(j)}function k(j){b.value=j,j==="all"?g("status",""):g("status",j)}const{tableRef:L}=Yt(()=>U.value);async function P(j){S.value[j]="pending";try{await x(`jobs/${j}/retry`),S.value[j]="success",setTimeout(()=>{delete S.value[j],$()},1e3)}catch{delete S.value[j]}}return(j,X)=>(u(),d("div",null,[M.value?(u(),d("div",Sg,[n("div",Cg,[X[0]||(X[0]=n("span",{class:"ss-dash-job-stat-label"},"Active:",-1)),n("span",Tg,h(M.value.active??0),1)]),n("div",Eg,[X[1]||(X[1]=n("span",{class:"ss-dash-job-stat-label"},"Waiting:",-1)),n("span",Pg,h(M.value.waiting??0),1)]),n("div",Rg,[X[2]||(X[2]=n("span",{class:"ss-dash-job-stat-label"},"Delayed:",-1)),n("span",Ag,h(M.value.delayed??0),1)]),n("div",Mg,[X[3]||(X[3]=n("span",{class:"ss-dash-job-stat-label"},"Completed:",-1)),n("span",Dg,h(M.value.completed??0),1)]),n("div",Lg,[X[4]||(X[4]=n("span",{class:"ss-dash-job-stat-label"},"Failed:",-1)),n("span",Og,h(M.value.failed??0),1)])])):Y("",!0),_e(Kt,{"model-value":_.value,placeholder:"Filter jobs...",summary:`${w(c).total||U.value.length} jobs`,"onUpdate:modelValue":m},{default:is(()=>[n("div",Fg,[(u(!0),d(q,null,pe(w(tc),Z=>(u(),d("button",{key:Z,type:"button",class:N(`ss-dash-btn ${b.value===Z?"ss-dash-active":""}`),onClick:ge=>k(Z)},h(Z.charAt(0).toUpperCase()+Z.slice(1)),11,Ig))),128))])]),_:1},8,["model-value","summary"]),w(a)&&!w(o)?(u(),d("div",Ng,"Loading jobs...")):w(i)?(u(),d("div",jg,"Jobs/Queue not available")):(u(),d(q,{key:3},[n("div",Bg,[U.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:L,class:"ss-dash-table"},[X[5]||(X[5]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col",{style:{width:"90px"}}),n("col"),n("col",{style:{width:"50px"}}),n("col",{style:{width:"75px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"50px"}})],-1)),X[6]||(X[6]=n("thead",null,[n("tr",null,[n("th",null,"ID"),n("th",null,"Name"),n("th",null,"Status"),n("th",null,"Payload"),n("th",null,"Tries"),n("th",null,"Duration"),n("th",null,"Time"),n("th")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(U.value,Z=>(u(),d("tr",{key:Z.id},[n("td",null,[n("span",Ug,h(Z.id),1)]),n("td",null,[n("span",{style:{color:"var(--ss-text)"},title:Z.name},h(Z.name),9,qg)]),n("td",null,[n("span",{class:N(`ss-dash-badge ss-dash-badge-${w(sc)(Z.status)}`)},h(Z.status),3)]),n("td",null,[_e(Os,{value:Z.payload||Z.data,"max-len":60},null,8,["value"])]),n("td",null,[n("span",Hg,h(Z.attempts||Z.attemptsMade||0),1)]),n("td",null,[n("span",Kg,h(Z.duration!==null&&Z.duration!==void 0?w(Bt)(Z.duration):"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:w(Ut)(Z.timestamp||Z.createdAt||Z.processedAt||Z.created_at)},h(w(bt)(Z.timestamp||Z.createdAt||Z.processedAt||Z.created_at)),9,Vg)]),n("td",null,[Z.status==="failed"?(u(),d("button",{key:0,type:"button",class:"ss-dash-retry-btn",disabled:S.value[Z.id]==="pending"||S.value[Z.id]==="success",onClick:jt(ge=>P(Z.id),["stop"])},h(S.value[Z.id]==="pending"?"...":S.value[Z.id]==="success"?"OK":"Retry"),9,zg)):Y("",!0)])]))),128))])],512)):(u(),d("div",Wg,"No jobs found"))]),w(c).totalPages>1?(u(),et(gs,{key:0,page:w(c).page,"last-page":w(c).totalPages,total:w(c).total,onPageChange:w(v)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),Jg={style:{position:"relative",flex:1}},Gg=["value"],Yg=["onClick"],Xg={key:0},Zg=["onClick"],e1={key:0},t1={style:{padding:"4px 16px",fontSize:"10px",color:"var(--ss-muted)"}},s1=["onClick"],n1=["title"],l1=["title"],o1=["onClick"],r1={key:1,style:{color:"var(--ss-dim)"}},a1={key:3,style:{color:"var(--ss-amber-fg)"}},i1={key:4,style:{color:"var(--ss-purple-fg)"}},u1={key:5},c1=["onClick"],ce="ss-dash",d1=Object.freeze(Object.defineProperty({__proto__:null,default:Le({__name:"ConfigSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-base-url",""),l=ie("ss-dashboard-endpoint","/__stats/api"),r=ie("ss-auth-token",void 0),{data:o,loading:a}=nt(()=>"config",{baseUrl:s,dashboardEndpoint:l,authToken:r,refreshKey:t}),i=G(""),c=G(""),v=G("app"),p=G(new Set),g=G("Copy JSON"),$=G(new Map);let x=null;function _(T){i.value=T,x&&clearTimeout(x),x=setTimeout(()=>{c.value=T},200)}function b(T){return T.target.value}const S=K(()=>o.value??null),U=K(()=>{const T=S.value?.env??{},D=c.value.toLowerCase();return Object.entries(T).filter(([E,le])=>{if(!D)return!0;const Me=Oe(le)?le.display:le==null?"":String(le);return E.toLowerCase().includes(D)||Me.toLowerCase().includes(D)})}),M=K(()=>{const T=S.value?.app??{},D=c.value.toLowerCase();return fn(T,"").filter(le=>{const Me=Oe(le.value)?le.value.display:le.value===null||le.value===void 0?"":String(le.value);return le.path.toLowerCase().includes(D)||Me.toLowerCase().includes(D)})}),m=K(()=>{const T=S.value?.app??{};return fn(T,"").length}),k=K(()=>{const T=S.value?.app;return!T||typeof T!="object"||Array.isArray(T)||Oe(T)?[]:Object.keys(T)});function L(T){const D=new Set(p.value);D.has(T)?D.delete(T):D.add(T),p.value=D}function P(){if(!S.value)return;const T=v.value==="app"?S.value.app:S.value.env;if(!T)return;const D=$c(T);p.value=new Set(D)}function j(){p.value=new Set}function X(){if(!S.value)return;const T=v.value==="app"?S.value.app:S.value.env;navigator.clipboard?.writeText(JSON.stringify(T,null,2)).then(()=>{g.value="Copied!",setTimeout(()=>{g.value="Copy JSON"},1500)}).catch(()=>{})}function Z(T,D){$.value.set(T,D)}function ge(T,D,E){E.stopPropagation(),kc(T,$.value.get(D)??null,ce)}function Ee(T){return T!==null&&typeof T=="object"&&!Array.isArray(T)&&!Oe(T)}function we(T,D){return fn(T,D)}function Ce(T,D){return T.indexOf(D+".")===0?T.slice(D.length+1):T}function me(T){return wc(T)}function $e(T){return Oe(T)?T.display:T==null?"null":String(T)}function ne(T){const D=S.value?.app;return!D||typeof D!="object"?null:D[T]??null}function H(T){return Oe(T)?T.display:""}function z(){i.value="",c.value=""}function ue(T){return Oe(T)?T.display:""}return(T,D)=>(u(),d("div",null,[n("div",{class:N(`${ce}-config-toolbar`),style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px"}},[n("button",{type:"button",class:N(`${ce}-config-tab${v.value==="app"?` ${ce}-active`:""}`),onClick:D[0]||(D[0]=E=>v.value="app")}," App Config ",2),n("button",{type:"button",class:N(`${ce}-config-tab${v.value==="env"?` ${ce}-active`:""}`),onClick:D[1]||(D[1]=E=>v.value="env")}," Env ",2),n("div",Jg,[n("input",{type:"text",class:N(`${ce}-search`),placeholder:"Search keys and values...",value:i.value,style:{width:"100%"},onInput:D[2]||(D[2]=E=>_(b(E)))},null,42,Gg),i.value?(u(),d("button",{key:0,type:"button",style:{position:"absolute",right:"6px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",fontSize:"14px",color:"var(--ss-dim)",padding:"0 2px",lineHeight:1},onClick:z}," × ")):Y("",!0)]),v.value==="app"&&!c.value?(u(),d(q,{key:0},[n("button",{type:"button",class:N(`${ce}-btn`),onClick:P},"Expand All",2),n("button",{type:"button",class:N(`${ce}-btn`),onClick:j},"Collapse All",2)],64)):Y("",!0),n("button",{type:"button",class:N(`${ce}-btn`),onClick:X},h(g.value),3)],2),w(a)&&!w(o)?(u(),d("div",{key:0,class:N(`${ce}-empty`)},"Loading config...",2)):S.value?v.value==="env"?(u(),d("div",{key:2,class:N(`${ce}-config-table-wrap`)},[n("table",{class:N(`${ce}-table ${ce}-config-env-table`)},[D[4]||(D[4]=n("thead",null,[n("tr",null,[n("th",null,"Variable"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(U.value,([E,le])=>(u(),d("tr",{key:E},[n("td",{class:N(`${ce}-env-key`)},[n("span",{class:N(`${ce}-config-key`)},h(E),3)],2),n("td",{class:N(`${ce}-env-val`)},[w(Oe)(le)?(u(),d("span",{key:0,class:N(`${ce}-config-redacted`)},h(H(le)),3)):(u(),d("span",{key:1,class:N(`${ce}-config-val`)},h($e(le)),3))],2),n("td",null,[w(Oe)(le)?Y("",!0):(u(),d("button",{key:0,type:"button",class:N(`${ce}-copy-row-btn`),title:"Copy",ref_for:!0,ref:Me=>Z(`env-${E}`,Me),onClick:Me=>ge(`${E}=${$e(le)}`,`env-${E}`,Me)}," ⎘ ",10,Yg))])]))),128)),U.value.length===0?(u(),d("tr",Xg,[...D[3]||(D[3]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching variables ",-1)])])):Y("",!0)])],2)],2)):c.value?(u(),d("div",{key:3,class:N(`${ce}-config-table-wrap`)},[n("table",{class:N(`${ce}-table`)},[D[6]||(D[6]=n("thead",null,[n("tr",null,[n("th",null,"Path"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(M.value,E=>(u(),d("tr",{key:E.path},[n("td",null,[n("span",{class:N(`${ce}-config-key`),style:{whiteSpace:"nowrap"}},h(E.path),3)]),n("td",null,[w(Oe)(E.value)?(u(),d("span",{key:0,class:N(`${ce}-config-redacted`)},h(H(E.value)),3)):(u(),d("span",{key:1,class:N(`${ce}-config-val`),style:Ne({wordBreak:"break-all",color:me(E.value).color})},h(me(E.value).text),7))]),n("td",null,[w(Oe)(E.value)?Y("",!0):(u(),d("button",{key:0,type:"button",class:N(`${ce}-copy-row-btn`),title:"Copy",ref_for:!0,ref:le=>Z(`search-${E.path}`,le),onClick:le=>ge(`${E.path}: ${w(Oe)(E.value)?ue(E.value):me(E.value).text}`,`search-${E.path}`,le)}," ⎘ ",10,Zg))])]))),128)),M.value.length===0?(u(),d("tr",e1,[...D[5]||(D[5]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching entries ",-1)])])):Y("",!0)])],2),n("div",t1,h(M.value.length)+" of "+h(m.value)+" entries ",1)],2)):(u(),d("div",{key:4,class:N(`${ce}-config-table-wrap`)},[n("div",{class:N(`${ce}-config-sections`)},[(u(!0),d(q,null,pe(k.value,E=>(u(),d("div",{key:E,class:N(`${ce}-config-section`)},[Ee(ne(E))?(u(),d(q,{key:0},[n("div",{class:N(`${ce}-config-section-header`),style:{cursor:"pointer"},onClick:le=>L(E)},[n("span",{class:N(`${ce}-config-toggle`)},h(p.value.has(E)?"▼":"▶"),3),n("span",{class:N(`${ce}-config-key`)},h(E),3),n("span",{class:N(`${ce}-config-count`)},h(w(yr)(ne(E)))+" entries ",3)],10,s1),p.value.has(E)?(u(),d("div",{key:0,class:N(`${ce}-config-section-body`)},[n("table",{class:N(`${ce}-table ${ce}-config-inner-table`)},[D[7]||(D[7]=n("thead",null,[n("tr",null,[n("th",{style:{width:"35%"}},"Key"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(we(ne(E),E),le=>(u(),d("tr",{key:le.path},[n("td",{title:Ce(le.path,E)},[n("span",{class:N(`${ce}-config-key`)},h(Ce(le.path,E)),3)],8,n1),n("td",{title:w(Oe)(le.value)?ue(le.value):me(le.value).text},[w(Oe)(le.value)?(u(),d("span",{key:0,class:N(`${ce}-config-redacted`)},h(H(le.value)),3)):(u(),d("span",{key:1,class:N(`${ce}-config-val`),style:Ne({color:me(le.value).color})},h(me(le.value).text),7))],8,l1),n("td",null,[w(Oe)(le.value)?Y("",!0):(u(),d("button",{key:0,type:"button",class:N(`${ce}-copy-row-btn`),title:"Copy",ref_for:!0,ref:Me=>Z(`inner-${le.path}`,Me),onClick:Me=>ge(`${le.path}: ${me(le.value).text}`,`inner-${le.path}`,Me)}," ⎘ ",10,o1))])]))),128))])],2)],2)):Y("",!0)],64)):(u(),d("div",{key:1,class:N(`${ce}-config-section-header ${ce}-config-leaf`),style:{cursor:"default"}},[n("span",{class:N(`${ce}-config-toggle`),style:{visibility:"hidden"}},"•",2),n("span",{class:N(`${ce}-config-key`)},h(E),3),n("span",{class:N(`${ce}-config-val`),style:{marginLeft:"8px"}},[w(Oe)(ne(E))?(u(),d("span",{key:0,class:N(`${ce}-config-redacted`)},h(H(ne(E))),3)):ne(E)===null||ne(E)===void 0?(u(),d("span",r1,"null")):typeof ne(E)=="boolean"?(u(),d("span",{key:2,style:Ne({color:ne(E)?"var(--ss-green-fg)":"var(--ss-red-fg)"})},h(String(ne(E))),5)):typeof ne(E)=="number"?(u(),d("span",a1,h(String(ne(E))),1)):Array.isArray(ne(E))?(u(),d("span",i1,h(me(ne(E)).text),1)):(u(),d("span",u1,h(String(ne(E))),1))],2),w(Oe)(ne(E))?Y("",!0):(u(),d("button",{key:0,type:"button",class:N(`${ce}-copy-row-btn`),style:{marginLeft:"4px"},title:"Copy",ref_for:!0,ref:le=>Z(`leaf-${E}`,le),onClick:le=>ge(`${E}: ${me(ne(E)).text}`,`leaf-${E}`,le)}," ⎘ ",10,c1))],2))],2))),128))],2)],2)):(u(),d("div",{key:1,class:N(`${ce}-empty`)},"Config not available",2))]))}})},Symbol.toStringTag,{value:"Module"})),f1={key:0,class:"ss-dash-empty"},h1={key:1,class:"ss-dash-empty"},p1={key:2,class:"ss-dash-empty"},v1={key:0,style:{background:"var(--ss-amber-bg)",color:"var(--ss-amber-fg)",padding:"8px 12px",borderRadius:"6px",fontSize:"12px",marginBottom:"12px",lineHeight:"1.5"}},g1={class:"ss-dash-info-cards"},y1={class:"ss-dash-info-card-label"},m1={class:"ss-dash-info-card-value"},b1={key:1,class:"ss-dash-empty"},_1={key:2,class:"ss-dash-table"},x1={style:{"font-family":"monospace","font-size":"11px"}},w1={key:0,style:{"margin-left":"6px","font-size":"11px",color:"var(--ss-dim)"}},$1={style:{color:"var(--ss-dim)","margin-left":"4px"}},k1={style:{"font-size":"11px"}},S1=["onClick"],C1=["onClick"],T1={key:3,class:"ss-dash-empty"},E1={key:4,class:"ss-dash-table"},P1={class:"ss-dash-bar"},R1={class:"ss-dash-bar-track",style:{"max-width":"120px"}},A1={key:5,class:"ss-dash-empty"},M1={key:6,class:"ss-dash-table"},D1={style:{color:"var(--ss-dim)"}},L1={key:7,class:"ss-dash-empty"},O1={key:8,class:"ss-dash-table"},F1={style:{color:"var(--ss-dim)","font-size":"11px"}},I1={class:"ss-dash-table"},N1={style:{"font-family":"monospace","font-size":"11px"}},j1={key:0,class:"ss-dash-table",style:{"margin-top":"8px"}},B1={style:{"font-family":"monospace","font-size":"11px"}},U1={class:"ss-dash-table"},q1={class:"ss-dash-table"},H1={style:{"font-family":"monospace","font-size":"11px"}},K1={style:{"font-family":"monospace","font-size":"11px"}},V1={style:{"font-family":"monospace","font-size":"11px"}},z1={style:{"font-size":"11px"}},W1=Object.freeze(Object.defineProperty({__proto__:null,default:Le({__name:"InternalsSection",setup(e){const t=ie("ss-refresh-key",G(0)),s=ie("ss-base-url",""),l=ie("ss-debug-endpoint","/admin/api/debug"),r=ie("ss-auth-token",void 0),o=G(null),a=G(!0),i=G(null),c=G(new Set),v=fl(s,r);let p=null;async function g(){try{const M=await v().fetch(`${l}/diagnostics`);o.value=M,i.value=null,a.value=!1}catch(M){if(M instanceof rn){i.value=M,a.value=!1,p&&(clearInterval(p),p=null);return}i.value=M instanceof Error?M:new Error(String(M)),a.value=!1}}Ct(()=>{a.value=!0,i.value=null,g(),p=setInterval(g,lr)}),ct(()=>{p&&clearInterval(p)}),it(t,()=>{g()});function $(M){c.value.has(M)?c.value.delete(M):c.value.add(M)}function x(M){const m=xc(M);return m==="ok"?"ss-dash-dot-ok":m==="err"?"ss-dash-dot-err":""}function _(M){return M.debounceMs!==void 0?`${Bt(M.debounceMs)} (debounce)`:M.intervalMs!==void 0?Bt(M.intervalMs):"-"}const b=K(()=>o.value?.buffers?Object.entries(o.value.buffers).map(([M,m])=>({name:M.charAt(0).toUpperCase()+M.slice(1),...m,percent:mc(m.current,m.max)})):[]),S=K(()=>o.value?.timers?Object.entries(o.value.timers).map(([M,m])=>({key:M,label:fc(M),...m,interval:_(m)})):[]),U=K(()=>{if(!o.value)return[];const M=[];if(o.value.transmit&&M.push({key:"transmit",label:"Transmit (SSE)",status:o.value.transmit.available?"connected":"unavailable",details:o.value.transmit.available?`Channels: ${o.value.transmit.channels.join(", ")}`:"Not installed"}),o.value.integrations)for(const[m,k]of Object.entries(o.value.integrations))M.push({key:m,label:pc(m),status:vc(k),details:gc(m,k)});return M});return(M,m)=>(u(),d("div",null,[a.value&&!o.value?(u(),d("div",f1,"Loading diagnostics...")):i.value&&!o.value?(u(),d("div",h1,"Error: "+h(i.value.message),1)):o.value?(u(),d(q,{key:3},[o.value.collectors?.some(k=>k.name==="db_pool"||k.name==="app")&&Array.isArray(o.value.lucidDebugConnections)&&o.value.lucidDebugConnections.length===0?(u(),d("div",v1,[...m[4]||(m[4]=[n("strong",null,"Query capture disabled",-1),ve(" — no Lucid connections have ",-1),n("code",{style:{"font-size":"11px"}},"debug: true",-1),ve(". Add it to your database connection in ",-1),n("code",{style:{"font-size":"11px"}},"config/database.ts",-1),ve(" to see queries in the Queries panel. ",-1)])])):Y("",!0),m[44]||(m[44]=n("h3",{class:"ss-dash-section-title"},"Package Info",-1)),n("div",g1,[(u(!0),d(q,null,pe([{label:"Version",value:o.value.package?.version||"-"},{label:"Node.js",value:o.value.package?.nodeVersion||"-"},{label:"AdonisJS",value:o.value.package?.adonisVersion||"-"},{label:"Uptime",value:w(wu)(o.value.uptime||o.value.package?.uptime)},{label:"Renderer",value:o.value.devToolbar?.renderer||"preact"}],k=>(u(),d("div",{key:k.label,class:"ss-dash-info-card"},[n("span",y1,h(k.label),1),n("span",m1,h(k.value),1)]))),128))]),m[45]||(m[45]=n("h3",{class:"ss-dash-section-title"},"Collectors",-1)),o.value.collectors?.length?(u(),d("table",_1,[m[5]||(m[5]=n("thead",null,[n("tr",null,[n("th",null,"Collector"),n("th",null,"Status"),n("th",null,"Last Error"),n("th",null,"Config")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(o.value.collectors,k=>(u(),d("tr",{key:k.name},[n("td",null,[n("span",x1,h(k.name),1),k.label&&k.label!==k.name?(u(),d("span",w1,h(k.label),1)):Y("",!0)]),n("td",null,[n("span",{class:N(["ss-dash-dot",x(k.status)])},null,2),ve(" "+h(k.status),1)]),n("td",{style:Ne(k.lastError?{color:"var(--ss-red-fg)"}:{})},[k.lastError?(u(),d(q,{key:0},[ve(h(k.lastError)+" ",1),n("span",$1,h(w(bt)(k.lastErrorAt??0)),1)],64)):(u(),d(q,{key:1},[ve("-")],64))],4),n("td",k1,[Object.keys(k.config||{}).length?(u(!0),d(q,{key:0},pe(w(yc)(k.config),L=>(u(),d("span",{key:L.key,style:{"margin-right":"8px"}},[ve(h(L.key)+"=",1),L.secret&&!c.value.has(`collector-${k.name}-${L.key}`)?(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:P=>$(`collector-${k.name}-${L.key}`)},"••••••••",8,S1)):(u(),d(q,{key:1},[n("span",null,h(L.value),1),L.secret?(u(),d("button",{key:0,style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:P=>$(`collector-${k.name}-${L.key}`)}," Hide ",8,C1)):Y("",!0)],64))]))),128)):(u(),d(q,{key:1},[ve("-")],64))])]))),128))])])):(u(),d("div",b1,"No collectors")),m[46]||(m[46]=n("h3",{class:"ss-dash-section-title"},"Buffers",-1)),b.value.length?(u(),d("table",E1,[m[6]||(m[6]=n("thead",null,[n("tr",null,[n("th",null,"Buffer"),n("th",null,"Usage"),n("th",null,"Fill %")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(b.value,k=>(u(),d("tr",{key:k.name},[n("td",null,h(k.name),1),n("td",null,h(k.current.toLocaleString())+" / "+h(k.max.toLocaleString()),1),n("td",null,[n("div",P1,[n("div",R1,[n("div",{class:N(["ss-dash-bar-fill",k.percent>=100?"ss-dash-bar-fill-warn":""]),style:Ne({width:k.percent+"%"})},null,6)]),n("span",{class:N(["ss-dash-bar-pct",k.percent>=100?"ss-dash-bar-pct-warn":""])},h(k.percent)+"%",3)])])]))),128))])])):(u(),d("div",T1,"No buffer data")),m[47]||(m[47]=n("h3",{class:"ss-dash-section-title"},"Timers",-1)),S.value.length?(u(),d("table",M1,[m[7]||(m[7]=n("thead",null,[n("tr",null,[n("th",null,"Timer"),n("th",null,"Status"),n("th",null,"Interval")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(S.value,k=>(u(),d("tr",{key:k.key},[n("td",null,h(k.label),1),n("td",null,[n("span",{class:N(["ss-dash-dot",x(k.active?"active":"inactive")])},null,2),ve(" "+h(k.active?"active":"inactive"),1)]),n("td",D1,h(k.interval),1)]))),128))])])):(u(),d("div",A1,"No timer data")),m[48]||(m[48]=n("h3",{class:"ss-dash-section-title"},"Integrations",-1)),U.value.length?(u(),d("table",O1,[m[8]||(m[8]=n("thead",null,[n("tr",null,[n("th",null,"Integration"),n("th",null,"Status"),n("th",null,"Details")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(U.value,k=>(u(),d("tr",{key:k.key},[n("td",null,h(k.label),1),n("td",null,[n("span",{class:N(["ss-dash-dot",x(k.status)])},null,2),ve(" "+h(k.status),1)]),n("td",F1,h(k.details),1)]))),128))])])):(u(),d("div",L1,"No integration data")),o.value.storage?(u(),d(q,{key:9},[m[18]||(m[18]=n("h3",{class:"ss-dash-section-title"},"Storage",-1)),n("table",I1,[m[16]||(m[16]=n("thead",null,[n("tr",null,[n("th",null,"Metric"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[m[9]||(m[9]=n("td",null,"Status",-1)),n("td",null,[n("span",{class:N(["ss-dash-dot",x(o.value.storage.ready?"ready":"unavailable")])},null,2),ve(" "+h(o.value.storage.ready?"ready":"not ready"),1)])]),n("tr",null,[m[10]||(m[10]=n("td",null,"DB Path",-1)),n("td",N1,h(o.value.storage.dbPath),1)]),n("tr",null,[m[11]||(m[11]=n("td",null,"File Size",-1)),n("td",null,h(o.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[m[12]||(m[12]=n("td",null,"WAL Size",-1)),n("td",null,h(o.value.storage.walSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[m[13]||(m[13]=n("td",null,"Retention",-1)),n("td",null,h(o.value.storage.retentionDays)+" days",1)]),n("tr",null,[m[14]||(m[14]=n("td",null,"Size Cap",-1)),n("td",null,h(o.value.storage.maxDbSizeMb>0?`${o.value.storage.maxDbSizeMb} MB`:"off"),1)]),n("tr",null,[m[15]||(m[15]=n("td",null,"Last Cleanup",-1)),n("td",null,h(w(bt)(o.value.storage.lastCleanupAt??0)),1)])])]),o.value.storage.tables?.length?(u(),d("table",j1,[m[17]||(m[17]=n("thead",null,[n("tr",null,[n("th",null,"Table"),n("th",null,"Rows")])],-1)),n("tbody",null,[(u(!0),d(q,null,pe(o.value.storage.tables,k=>(u(),d("tr",{key:k.name},[n("td",B1,h(k.name),1),n("td",null,h(k.rowCount.toLocaleString()),1)]))),128))])])):Y("",!0)],64)):Y("",!0),m[49]||(m[49]=n("h3",{class:"ss-dash-section-title"},"Resolved Config",-1)),n("table",U1,[m[26]||(m[26]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[m[19]||(m[19]=n("td",null,"intervalMs",-1)),n("td",null,h(o.value.config?.intervalMs),1)]),n("tr",null,[m[20]||(m[20]=n("td",null,"transport",-1)),n("td",null,h(o.value.config?.transport),1)]),n("tr",null,[m[21]||(m[21]=n("td",null,"channelName",-1)),n("td",null,h(o.value.config?.channelName),1)]),n("tr",null,[m[22]||(m[22]=n("td",null,"endpoint",-1)),n("td",null,h(o.value.config?.endpoint===!1?"false":o.value.config?.endpoint),1)]),n("tr",null,[m[23]||(m[23]=n("td",null,"skipInTest",-1)),n("td",null,h(o.value.config?.skipInTest),1)]),n("tr",null,[m[24]||(m[24]=n("td",null,"onStats callback",-1)),n("td",null,h(o.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),n("tr",null,[m[25]||(m[25]=n("td",null,"shouldShow callback",-1)),n("td",null,h(o.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),m[50]||(m[50]=n("h4",{class:"ss-dash-section-title"},"DevToolbar",-1)),n("table",q1,[m[43]||(m[43]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[m[27]||(m[27]=n("td",null,"enabled",-1)),n("td",null,h(o.value.devToolbar?.enabled),1)]),n("tr",null,[m[28]||(m[28]=n("td",null,"tracing",-1)),n("td",null,h(o.value.devToolbar?.tracing),1)]),n("tr",null,[m[29]||(m[29]=n("td",null,"dashboard",-1)),n("td",null,h(o.value.devToolbar?.dashboard),1)]),n("tr",null,[m[30]||(m[30]=n("td",null,"dashboardPath",-1)),n("td",H1,h(o.value.devToolbar?.dashboardPath),1)]),n("tr",null,[m[31]||(m[31]=n("td",null,"debugEndpoint",-1)),n("td",K1,[c.value.has("cfg-debugEndpoint")?(u(),d(q,{key:1},[ve(h(o.value.devToolbar?.debugEndpoint)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:m[1]||(m[1]=k=>$("cfg-debugEndpoint"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:m[0]||(m[0]=k=>$("cfg-debugEndpoint"))},"••••••••"))])]),n("tr",null,[m[32]||(m[32]=n("td",null,"maxQueries",-1)),n("td",null,h(o.value.devToolbar?.maxQueries),1)]),n("tr",null,[m[33]||(m[33]=n("td",null,"maxEvents",-1)),n("td",null,h(o.value.devToolbar?.maxEvents),1)]),n("tr",null,[m[34]||(m[34]=n("td",null,"maxEmails",-1)),n("td",null,h(o.value.devToolbar?.maxEmails),1)]),n("tr",null,[m[35]||(m[35]=n("td",null,"maxTraces",-1)),n("td",null,h(o.value.devToolbar?.maxTraces),1)]),n("tr",null,[m[36]||(m[36]=n("td",null,"slowQueryThresholdMs",-1)),n("td",null,h(o.value.devToolbar?.slowQueryThresholdMs),1)]),n("tr",null,[m[37]||(m[37]=n("td",null,"retentionDays",-1)),n("td",null,h(o.value.devToolbar?.retentionDays),1)]),n("tr",null,[m[38]||(m[38]=n("td",null,"maxDbSizeMb",-1)),n("td",null,h(o.value.devToolbar?.maxDbSizeMb),1)]),n("tr",null,[m[39]||(m[39]=n("td",null,"dbPath",-1)),n("td",V1,[c.value.has("cfg-dbPath")?(u(),d(q,{key:1},[ve(h(o.value.devToolbar?.dbPath)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:m[3]||(m[3]=k=>$("cfg-dbPath"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:m[2]||(m[2]=k=>$("cfg-dbPath"))},"••••••••"))])]),n("tr",null,[m[40]||(m[40]=n("td",null,"persistDebugData",-1)),n("td",null,h(o.value.devToolbar?.persistDebugData),1)]),n("tr",null,[m[41]||(m[41]=n("td",null,"excludeFromTracing",-1)),n("td",z1,h(o.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),n("tr",null,[m[42]||(m[42]=n("td",null,"customPanes",-1)),n("td",null,h(o.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(u(),d("div",p1,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"}))})();
|