sova-devtools 0.1.1

In-app DevTools bar for Sova (HTML inject, SSE timeline, request snapshots)
Documentation
1
2
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function fr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const se={},en=[],vt=()=>{},jo=()=>!1,as=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),us=e=>e.startsWith("onUpdate:"),Te=Object.assign,dr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Al=Object.prototype.hasOwnProperty,oe=(e,t)=>Al.call(e,t),K=Array.isArray,tn=e=>Ln(e)==="[object Map]",Fo=e=>Ln(e)==="[object Set]",Lr=e=>Ln(e)==="[object Date]",G=e=>typeof e=="function",be=e=>typeof e=="string",Ze=e=>typeof e=="symbol",ie=e=>e!==null&&typeof e=="object",Ho=e=>(ie(e)||G(e))&&G(e.then)&&G(e.catch),Bo=Object.prototype.toString,Ln=e=>Bo.call(e),kl=e=>Ln(e).slice(8,-1),Uo=e=>Ln(e)==="[object Object]",fs=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_n=fr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ds=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Tl=/-\w/g,je=ds(e=>e.replace(Tl,t=>t.slice(1).toUpperCase())),Ol=/\B([A-Z])/g,Ht=ds(e=>e.replace(Ol,"-$1").toLowerCase()),hs=ds(e=>e.charAt(0).toUpperCase()+e.slice(1)),As=ds(e=>e?`on${hs(e)}`:""),Me=(e,t)=>!Object.is(e,t),Wn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},qo=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},hr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Dr;const ps=()=>Dr||(Dr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bt(e){if(K(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=be(s)?Il(s):bt(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(be(e)||ie(e))return e}const Pl=/;(?![^(]*\))/g,Nl=/:([^]+)/,Ml=/\/\*[^]*?\*\//g;function Il(e){const t={};return e.replace(Ml,"").split(Pl).forEach(n=>{if(n){const s=n.split(Nl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Re(e){let t="";if(be(e))t=e;else if(K(e))for(let n=0;n<e.length;n++){const s=Re(e[n]);s&&(t+=s+" ")}else if(ie(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const $l="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ll=fr($l);function Ko(e){return!!e||e===""}function Dl(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=pr(e[s],t[s]);return n}function pr(e,t){if(e===t)return!0;let n=Lr(e),s=Lr(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Ze(e),s=Ze(t),n||s)return e===t;if(n=K(e),s=K(t),n||s)return n&&s?Dl(e,t):!1;if(n=ie(e),s=ie(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const l=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(l&&!c||!l&&c||!pr(e[i],t[i]))return!1}}return String(e)===String(t)}const Wo=e=>!!(e&&e.__v_isRef===!0),J=e=>be(e)?e:e==null?"":K(e)||ie(e)&&(e.toString===Bo||!G(e.toString))?Wo(e)?J(e.value):JSON.stringify(e,Go,2):String(e),Go=(e,t)=>Wo(t)?Go(e,t.value):tn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[ks(s,o)+" =>"]=r,n),{})}:Fo(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ks(n))}:Ze(t)?ks(t):ie(t)&&!K(t)&&!Uo(t)?String(t):t,ks=(e,t="")=>{var n;return Ze(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Ce;class zo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Ce&&(Ce.active?(this.parent=Ce,this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}const s=this.effects.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}}run(t){if(this._active){const n=Ce;try{return Ce=this,t()}finally{Ce=n}}}on(){++this._on===1&&(this.prevScope=Ce,Ce=this)}off(){if(this._on>0&&--this._on===0){if(Ce===this)Ce=this.prevScope;else{let t=Ce;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(n=0,s=r.length;n<s;n++)r[n].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 Jo(e){return new zo(e)}function Yo(){return Ce}function Vl(e,t=!1){Ce&&Ce.cleanups.push(e)}let he;const Ts=new WeakSet;class Qo{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ce&&(Ce.active?Ce.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ts.has(this)&&(Ts.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Zo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Vr(this),ei(this);const t=he,n=st;he=this,st=!0;try{return this.fn()}finally{ti(this),he=t,st=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)vr(t);this.deps=this.depsTail=void 0,Vr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ts.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ks(this)&&this.run()}get dirty(){return Ks(this)}}let Xo=0,bn,xn;function Zo(e,t=!1){if(e.flags|=8,t){e.next=xn,xn=e;return}e.next=bn,bn=e}function mr(){Xo++}function gr(){if(--Xo>0)return;if(xn){let t=xn;for(xn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;bn;){let t=bn;for(bn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function ei(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ti(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),vr(s),jl(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Ks(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ni(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ni(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Rn)||(e.globalVersion=Rn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ks(e))))return;e.flags|=2;const t=e.dep,n=he,s=st;he=e,st=!0;try{ei(e);const r=e.fn(e._value);(t.version===0||Me(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{he=n,st=s,ti(e),e.flags&=-3}}function vr(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)vr(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function jl(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let st=!0;const si=[];function Tt(){si.push(st),st=!1}function Ot(){const e=si.pop();st=e===void 0?!0:e}function Vr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=he;he=void 0;try{t()}finally{he=n}}}let Rn=0;class Fl{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ms{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(!he||!st||he===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==he)n=this.activeLink=new Fl(he,this),he.deps?(n.prevDep=he.depsTail,he.depsTail.nextDep=n,he.depsTail=n):he.deps=he.depsTail=n,ri(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=he.depsTail,n.nextDep=void 0,he.depsTail.nextDep=n,he.depsTail=n,he.deps===n&&(he.deps=s)}return n}trigger(t){this.version++,Rn++,this.notify(t)}notify(t){mr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{gr()}}}function ri(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)ri(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Xn=new WeakMap,Wt=Symbol(""),Ws=Symbol(""),An=Symbol("");function De(e,t,n){if(st&&he){let s=Xn.get(e);s||Xn.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new ms),r.map=s,r.key=n),r.track()}}function Ct(e,t,n,s,r,o){const i=Xn.get(e);if(!i){Rn++;return}const l=c=>{c&&c.trigger()};if(mr(),t==="clear")i.forEach(l);else{const c=K(e),u=c&&fs(n);if(c&&n==="length"){const a=Number(s);i.forEach((d,p)=>{(p==="length"||p===An||!Ze(p)&&p>=a)&&l(d)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),u&&l(i.get(An)),t){case"add":c?u&&l(i.get("length")):(l(i.get(Wt)),tn(e)&&l(i.get(Ws)));break;case"delete":c||(l(i.get(Wt)),tn(e)&&l(i.get(Ws)));break;case"set":tn(e)&&l(i.get(Wt));break}}gr()}function Hl(e,t){const n=Xn.get(e);return n&&n.get(t)}function zt(e){const t=ne(e);return t===e?t:(De(t,"iterate",An),Ye(e)?t:t.map(rt))}function gs(e){return De(e=ne(e),"iterate",An),e}function mt(e,t){return Pt(e)?ln(At(e)?rt(t):t):rt(t)}const Bl={__proto__:null,[Symbol.iterator](){return Os(this,Symbol.iterator,e=>mt(this,e))},concat(...e){return zt(this).concat(...e.map(t=>K(t)?zt(t):t))},entries(){return Os(this,"entries",e=>(e[1]=mt(this,e[1]),e))},every(e,t){return yt(this,"every",e,t,void 0,arguments)},filter(e,t){return yt(this,"filter",e,t,n=>n.map(s=>mt(this,s)),arguments)},find(e,t){return yt(this,"find",e,t,n=>mt(this,n),arguments)},findIndex(e,t){return yt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return yt(this,"findLast",e,t,n=>mt(this,n),arguments)},findLastIndex(e,t){return yt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return yt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ps(this,"includes",e)},indexOf(...e){return Ps(this,"indexOf",e)},join(e){return zt(this).join(e)},lastIndexOf(...e){return Ps(this,"lastIndexOf",e)},map(e,t){return yt(this,"map",e,t,void 0,arguments)},pop(){return dn(this,"pop")},push(...e){return dn(this,"push",e)},reduce(e,...t){return jr(this,"reduce",e,t)},reduceRight(e,...t){return jr(this,"reduceRight",e,t)},shift(){return dn(this,"shift")},some(e,t){return yt(this,"some",e,t,void 0,arguments)},splice(...e){return dn(this,"splice",e)},toReversed(){return zt(this).toReversed()},toSorted(e){return zt(this).toSorted(e)},toSpliced(...e){return zt(this).toSpliced(...e)},unshift(...e){return dn(this,"unshift",e)},values(){return Os(this,"values",e=>mt(this,e))}};function Os(e,t,n){const s=gs(e),r=s[t]();return s!==e&&!Ye(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const Ul=Array.prototype;function yt(e,t,n,s,r,o){const i=gs(e),l=i!==e&&!Ye(e),c=i[t];if(c!==Ul[t]){const d=c.apply(e,o);return l?rt(d):d}let u=n;i!==e&&(l?u=function(d,p){return n.call(this,mt(e,d),p,e)}:n.length>2&&(u=function(d,p){return n.call(this,d,p,e)}));const a=c.call(i,u,s);return l&&r?r(a):a}function jr(e,t,n,s){const r=gs(e),o=r!==e&&!Ye(e);let i=n,l=!1;r!==e&&(o?(l=s.length===0,i=function(u,a,d){return l&&(l=!1,u=mt(e,u)),n.call(this,u,mt(e,a),d,e)}):n.length>3&&(i=function(u,a,d){return n.call(this,u,a,d,e)}));const c=r[t](i,...s);return l?mt(e,c):c}function Ps(e,t,n){const s=ne(e);De(s,"iterate",An);const r=s[t](...n);return(r===-1||r===!1)&&vs(n[0])?(n[0]=ne(n[0]),s[t](...n)):r}function dn(e,t,n=[]){Tt(),mr();const s=ne(e)[t].apply(e,n);return gr(),Ot(),s}const ql=fr("__proto__,__v_isRef,__isVue"),oi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ze));function Kl(e){Ze(e)||(e=String(e));const t=ne(this);return De(t,"has",e),t.hasOwnProperty(e)}class ii{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?tc:ui:o?ai:ci).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=K(t);if(!r){let c;if(i&&(c=Bl[n]))return c;if(n==="hasOwnProperty")return Kl}const l=Reflect.get(t,n,we(t)?t:s);if((Ze(n)?oi.has(n):ql(n))||(r||De(t,"get",n),o))return l;if(we(l)){const c=i&&fs(n)?l:l.value;return r&&ie(c)?zs(c):c}return ie(l)?r?zs(l):Dn(l):l}}class li extends ii{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const i=K(t)&&fs(n);if(!this._isShallow){const u=Pt(o);if(!Ye(s)&&!Pt(s)&&(o=ne(o),s=ne(s)),!i&&we(o)&&!we(s))return u||(o.value=s),!0}const l=i?Number(n)<t.length:oe(t,n),c=Reflect.set(t,n,s,we(t)?t:r);return t===ne(r)&&c&&(l?Me(s,o)&&Ct(t,"set",n,s):Ct(t,"add",n,s)),c}deleteProperty(t,n){const s=oe(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Ct(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Ze(n)||!oi.has(n))&&De(t,"has",n),s}ownKeys(t){return De(t,"iterate",K(t)?"length":Wt),Reflect.ownKeys(t)}}class Wl extends ii{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Gl=new li,zl=new Wl,Jl=new li(!0);const Gs=e=>e,Fn=e=>Reflect.getPrototypeOf(e);function Yl(e,t,n){return function(...s){const r=this.__v_raw,o=ne(r),i=tn(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=r[e](...s),a=n?Gs:t?ln:rt;return!t&&De(o,"iterate",c?Ws:Wt),Te(Object.create(u),{next(){const{value:d,done:p}=u.next();return p?{value:d,done:p}:{value:l?[a(d[0]),a(d[1])]:a(d),done:p}}})}}function Hn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ql(e,t){const n={get(r){const o=this.__v_raw,i=ne(o),l=ne(r);e||(Me(r,l)&&De(i,"get",r),De(i,"get",l));const{has:c}=Fn(i),u=t?Gs:e?ln:rt;if(c.call(i,r))return u(o.get(r));if(c.call(i,l))return u(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&De(ne(r),"iterate",Wt),r.size},has(r){const o=this.__v_raw,i=ne(o),l=ne(r);return e||(Me(r,l)&&De(i,"has",r),De(i,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const i=this,l=i.__v_raw,c=ne(l),u=t?Gs:e?ln:rt;return!e&&De(c,"iterate",Wt),l.forEach((a,d)=>r.call(o,u(a),u(d),i))}};return Te(n,e?{add:Hn("add"),set:Hn("set"),delete:Hn("delete"),clear:Hn("clear")}:{add(r){const o=ne(this),i=Fn(o),l=ne(r),c=!t&&!Ye(r)&&!Pt(r)?l:r;return i.has.call(o,c)||Me(r,c)&&i.has.call(o,r)||Me(l,c)&&i.has.call(o,l)||(o.add(c),Ct(o,"add",c,c)),this},set(r,o){!t&&!Ye(o)&&!Pt(o)&&(o=ne(o));const i=ne(this),{has:l,get:c}=Fn(i);let u=l.call(i,r);u||(r=ne(r),u=l.call(i,r));const a=c.call(i,r);return i.set(r,o),u?Me(o,a)&&Ct(i,"set",r,o):Ct(i,"add",r,o),this},delete(r){const o=ne(this),{has:i,get:l}=Fn(o);let c=i.call(o,r);c||(r=ne(r),c=i.call(o,r)),l&&l.call(o,r);const u=o.delete(r);return c&&Ct(o,"delete",r,void 0),u},clear(){const r=ne(this),o=r.size!==0,i=r.clear();return o&&Ct(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Yl(r,e,t)}),n}function _r(e,t){const n=Ql(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(oe(n,r)&&r in s?n:s,r,o)}const Xl={get:_r(!1,!1)},Zl={get:_r(!1,!0)},ec={get:_r(!0,!1)};const ci=new WeakMap,ai=new WeakMap,ui=new WeakMap,tc=new WeakMap;function nc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Dn(e){return Pt(e)?e:br(e,!1,Gl,Xl,ci)}function fi(e){return br(e,!1,Jl,Zl,ai)}function zs(e){return br(e,!0,zl,ec,ui)}function br(e,t,n,s,r){if(!ie(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=r.get(e);if(o)return o;const i=nc(kl(e));if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function At(e){return Pt(e)?At(e.__v_raw):!!(e&&e.__v_isReactive)}function Pt(e){return!!(e&&e.__v_isReadonly)}function Ye(e){return!!(e&&e.__v_isShallow)}function vs(e){return e?!!e.__v_raw:!1}function ne(e){const t=e&&e.__v_raw;return t?ne(t):e}function xr(e){return!oe(e,"__v_skip")&&Object.isExtensible(e)&&qo(e,"__v_skip",!0),e}const rt=e=>ie(e)?Dn(e):e,ln=e=>ie(e)?zs(e):e;function we(e){return e?e.__v_isRef===!0:!1}function _e(e){return di(e,!1)}function sc(e){return di(e,!0)}function di(e,t){return we(e)?e:new rc(e,t)}class rc{constructor(t,n){this.dep=new ms,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ne(t),this._value=n?t:rt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Ye(t)||Pt(t);t=s?t:ne(t),Me(t,n)&&(this._rawValue=t,this._value=s?t:rt(t),this.dep.trigger())}}function x(e){return we(e)?e.value:e}const oc={get:(e,t,n)=>t==="__v_raw"?e:x(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return we(r)&&!we(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function hi(e){return At(e)?e:new Proxy(e,oc)}class ic{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new ms,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function lc(e){return new ic(e)}function cc(e){const t=K(e)?new Array(e.length):{};for(const n in e)t[n]=uc(e,n);return t}class ac{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=Ze(n)?n:String(n),this._raw=ne(t);let r=!0,o=t;if(!K(t)||Ze(this._key)||!fs(this._key))do r=!vs(o)||Ye(o);while(r&&(o=o.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=x(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&we(this._raw[this._key])){const n=this._object[this._key];if(we(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Hl(this._raw,this._key)}}function uc(e,t,n){return new ac(e,t,n)}class fc{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ms(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Rn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return Zo(this,!0),!0}get value(){const t=this.dep.track();return ni(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function dc(e,t,n=!1){let s,r;return G(e)?s=e:(s=e.get,r=e.set),new fc(s,r,n)}const Bn={},Zn=new WeakMap;let qt;function hc(e,t=!1,n=qt){if(n){let s=Zn.get(n);s||Zn.set(n,s=[]),s.push(e)}}function pc(e,t,n=se){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:c}=n,u=I=>r?I:Ye(I)||r===!1||r===0?Rt(I,1):Rt(I);let a,d,p,g,R=!1,E=!1;if(we(e)?(d=()=>e.value,R=Ye(e)):At(e)?(d=()=>u(e),R=!0):K(e)?(E=!0,R=e.some(I=>At(I)||Ye(I)),d=()=>e.map(I=>{if(we(I))return I.value;if(At(I))return u(I);if(G(I))return c?c(I,2):I()})):G(e)?t?d=c?()=>c(e,2):e:d=()=>{if(p){Tt();try{p()}finally{Ot()}}const I=qt;qt=a;try{return c?c(e,3,[g]):e(g)}finally{qt=I}}:d=vt,t&&r){const I=d,Y=r===!0?1/0:r;d=()=>Rt(I(),Y)}const D=Yo(),H=()=>{a.stop(),D&&D.active&&dr(D.effects,a)};if(o&&t){const I=t;t=(...Y)=>{const xe=I(...Y);return H(),xe}}let O=E?new Array(e.length).fill(Bn):Bn;const L=I=>{if(!(!(a.flags&1)||!a.dirty&&!I))if(t){const Y=a.run();if(I||r||R||(E?Y.some((xe,re)=>Me(xe,O[re])):Me(Y,O))){p&&p();const xe=qt;qt=a;try{const re=[Y,O===Bn?void 0:E&&O[0]===Bn?[]:O,g];O=Y,c?c(t,3,re):t(...re)}finally{qt=xe}}}else a.run()};return l&&l(L),a=new Qo(d),a.scheduler=i?()=>i(L,!1):L,g=I=>hc(I,!1,a),p=a.onStop=()=>{const I=Zn.get(a);if(I){if(c)c(I,4);else for(const Y of I)Y();Zn.delete(a)}},t?s?L(!0):O=a.run():i?i(L.bind(null,!0),!0):a.run(),H.pause=a.pause.bind(a),H.resume=a.resume.bind(a),H.stop=H,H}function Rt(e,t=1/0,n){if(t<=0||!ie(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,we(e))Rt(e.value,t,n);else if(K(e))for(let s=0;s<e.length;s++)Rt(e[s],t,n);else if(Fo(e)||tn(e))e.forEach(s=>{Rt(s,t,n)});else if(Uo(e)){for(const s in e)Rt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Rt(e[s],t,n)}return e}function Vn(e,t,n,s){try{return s?e(...s):e()}catch(r){_s(r,t,n)}}function ot(e,t,n,s){if(G(e)){const r=Vn(e,t,n,s);return r&&Ho(r)&&r.catch(o=>{_s(o,t,n)}),r}if(K(e)){const r=[];for(let o=0;o<e.length;o++)r.push(ot(e[o],t,n,s));return r}}function _s(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||se;if(t){let l=t.parent;const c=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const a=l.ec;if(a){for(let d=0;d<a.length;d++)if(a[d](e,c,u)===!1)return}l=l.parent}if(o){Tt(),Vn(o,null,10,[e,c,u]),Ot();return}}mc(e,n,r,s,i)}function mc(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const Ue=[];let pt=-1;const nn=[];let Lt=null,Qt=0;const pi=Promise.resolve();let es=null;function yr(e){const t=es||pi;return e?t.then(this?e.bind(this):e):t}function gc(e){let t=pt+1,n=Ue.length;for(;t<n;){const s=t+n>>>1,r=Ue[s],o=kn(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function wr(e){if(!(e.flags&1)){const t=kn(e),n=Ue[Ue.length-1];!n||!(e.flags&2)&&t>=kn(n)?Ue.push(e):Ue.splice(gc(t),0,e),e.flags|=1,mi()}}function mi(){es||(es=pi.then(vi))}function vc(e){if(!K(e))Lt&&e.id===-1?Lt.splice(Qt+1,0,e):e.flags&1||(nn.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)nn.push(e[t]);mi()}function Fr(e,t,n=pt+1){for(;n<Ue.length;n++){const s=Ue[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ue.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function gi(e){if(nn.length){const t=[...new Set(nn)].sort((n,s)=>kn(n)-kn(s));if(nn.length=0,Lt){for(let n=0;n<t.length;n++)Lt.push(t[n]);return}for(Lt=t,Qt=0;Qt<Lt.length;Qt++){const n=Lt[Qt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Lt=null,Qt=0}}const kn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function vi(e){try{for(pt=0;pt<Ue.length;pt++){const t=Ue[pt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Vn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;pt<Ue.length;pt++){const t=Ue[pt];t&&(t.flags&=-2)}pt=-1,Ue.length=0,gi(),es=null,(Ue.length||nn.length)&&vi()}}let Ie=null,_i=null;function ts(e){const t=Ie;return Ie=e,_i=e&&e.type.__scopeId||null,t}function Ke(e,t=Ie,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&os(-1);const o=ts(t),i=kt.length;let l;try{l=e(...r)}finally{for(let c=kt.length;c>i;c--)kr();ts(o),s._d&&os(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function bi(e,t){if(Ie===null)return e;const n=Ss(Ie),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,l,c=se]=t[r];o&&(G(o)&&(o={mounted:o,updated:o}),o.deep&&Rt(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:c}))}return e}function Bt(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];o&&(l.oldValue=o[i].value);let c=l.dir[s];c&&(Tt(),ot(c,n,8,[e.el,l,e,t]),Ot())}}function Gn(e,t){if(Ve){let n=Ve.provides;const s=Ve.parent&&Ve.parent.provides;s===n&&(n=Ve.provides=Object.create(s)),n[e]=t}}function Qe(e,t,n=!1){const s=Tr();if(s||Gt){let r=Gt?Gt._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&G(t)?t.call(s&&s.proxy):t}}function _c(){return!!(Tr()||Gt)}const bc=Symbol.for("v-scx"),xc=()=>Qe(bc);function yc(e,t){return Sr(e,null,{flush:"sync"})}function jt(e,t,n){return Sr(e,t,n)}function Sr(e,t,n=se){const{immediate:s,deep:r,flush:o,once:i}=n,l=Te({},n),c=t&&s||!t&&o!=="post";let u;if(Nn){if(o==="sync"){const g=xc();u=g.__watcherHandles||(g.__watcherHandles=[])}else if(!c){const g=()=>{};return g.stop=vt,g.resume=vt,g.pause=vt,g}}const a=Ve;l.call=(g,R,E)=>ot(g,a,R,E);let d=!1;o==="post"?l.scheduler=g=>{qe(g,a&&a.suspense)}:o!=="sync"&&(d=!0,l.scheduler=(g,R)=>{R?g():wr(g)}),l.augmentJob=g=>{t&&(g.flags|=4),d&&(g.flags|=2,a&&(g.id=a.uid,g.i=a))};const p=pc(e,t,l);return Nn&&(u?u.push(p):c&&p()),p}function wc(e,t,n){const s=this.proxy,r=be(e)?e.includes(".")?xi(s,e):()=>s[e]:e.bind(s,s);let o;G(t)?o=t:(o=t.handler,n=t);const i=jn(this),l=Sr(r,o.bind(s),n);return i(),l}function xi(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const Sc=Symbol("_vte"),bs=e=>e.__isTeleport,Ns=Symbol("_leaveCb");function Ec(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==xt){t=n;break}}return t}function yi(e){if(!Cr(e))return bs(e.type)&&e.children?Ec(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&G(n.default))return n.default()}}function Er(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Er(bs(n.type)&&yi(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function pe(e,t){return G(e)?Te({name:e.name},t,{setup:e}):e}function wi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Hr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const ns=new WeakMap;function yn(e,t,n,s,r=!1){if(K(e)){e.forEach((E,D)=>yn(E,t&&(K(t)?t[D]:t),n,s,r));return}if(sn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&yn(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Ss(s.component):s.el,i=r?null:o,{i:l,r:c}=e,u=t&&t.r,a=l.refs===se?l.refs={}:l.refs,d=l.setupState,p=ne(d),g=d===se?jo:E=>Hr(a,E)?!1:oe(p,E),R=(E,D)=>!(D&&Hr(a,D));if(u!=null&&u!==c){if(Br(t),be(u))a[u]=null,g(u)&&(d[u]=null);else if(we(u)){const E=t;R(u,E.k)&&(u.value=null),E.k&&(a[E.k]=null)}}if(G(c))Vn(c,l,12,[i,a]);else{const E=be(c),D=we(c);if(E||D){const H=()=>{if(e.f){const O=E?g(c)?d[c]:a[c]:R()||!e.k?c.value:a[e.k];if(r)K(O)&&dr(O,o);else if(K(O))O.includes(o)||O.push(o);else if(E)a[c]=[o],g(c)&&(d[c]=a[c]);else{const L=[o];R(c,e.k)&&(c.value=L),e.k&&(a[e.k]=L)}}else E?(a[c]=i,g(c)&&(d[c]=i)):D&&(R(c,e.k)&&(c.value=i),e.k&&(a[e.k]=i))};if(i){const O=()=>{H(),ns.delete(e)};O.id=-1,ns.set(e,O),qe(O,n)}else Br(e),H()}}}function Br(e){const t=ns.get(e);t&&(t.flags|=8,ns.delete(e))}ps().requestIdleCallback;ps().cancelIdleCallback;const sn=e=>!!e.type.__asyncLoader,Cr=e=>e.type.__isKeepAlive;function Cc(e,t){Si(e,"a",t)}function Rc(e,t){Si(e,"da",t)}function Si(e,t,n=Ve){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(xs(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Cr(r.parent.vnode)&&Ac(s,t,n,r),r=r.parent}}function Ac(e,t,n,s){const r=xs(t,e,s,!0);Ri(()=>{dr(s[t],r)},n)}function xs(e,t,n=Ve,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Tt();const l=jn(n),c=ot(t,n,e,i);return l(),Ot(),c});return s?r.unshift(o):r.push(o),o}}const Nt=e=>(t,n=Ve)=>{(!Nn||e==="sp")&&xs(e,(...s)=>t(...s),n)},kc=Nt("bm"),Ei=Nt("m"),Tc=Nt("bu"),Oc=Nt("u"),Ci=Nt("bum"),Ri=Nt("um"),Pc=Nt("sp"),Nc=Nt("rtg"),Mc=Nt("rtc");function Ic(e,t=Ve){xs("ec",e,t)}const Ai="components";function $c(e,t){return Ti(Ai,e,!0,t)||e}const ki=Symbol.for("v-ndc");function Lc(e){return be(e)?Ti(Ai,e,!1)||e:e||ki}function Ti(e,t,n=!0,s=!1){const r=Ie||Ve;if(r){const o=r.type;{const l=xa(o,!1);if(l&&(l===t||l===je(t)||l===hs(je(t))))return o}const i=Ur(r[e]||o[e],t)||Ur(r.appContext[e],t);return!i&&s?o:i}}function Ur(e,t){return e&&(e[t]||e[je(t)]||e[hs(je(t))])}function We(e,t,n,s){let r;const o=n,i=K(e);if(i||be(e)){const l=i&&At(e);let c=!1,u=!1;l&&(c=!Ye(e),u=Pt(e),e=gs(e)),r=new Array(e.length);for(let a=0,d=e.length;a<d;a++)r[a]=t(c?u?ln(rt(e[a])):rt(e[a]):e[a],a,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,o)}else if(ie(e))if(e[Symbol.iterator])r=Array.from(e,(l,c)=>t(l,c,void 0,o));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,u=l.length;c<u;c++){const a=l[c];r[c]=t(e[a],a,c,o)}}else r=[];return r}function qr(e,t,n,s,r,o){if(n==null&&(n={}),Ie.ce||Ie.parent&&sn(Ie.parent)&&Ie.parent.ce){const u=n,a=Object.keys(u).length>0;return t!=="default"&&(u.name=t),S(),fe(ue,null,[j("slot",u,s)],a?-2:64)}let i=e[t];i&&i._c&&(i._d=!1);const l=kt.length;S();let c;try{const u=i&&Oi(i(n)),a=n.key||o||u&&u.key;c=fe(ue,{key:(a&&!Ze(a)?a:`_${t}`)+(!u&&s?"_fb":"")},u||(s?s():[]),u&&e._===1?64:-2)}catch(u){for(let a=kt.length;a>l;a--)kr();throw u}finally{i&&i._c&&(i._d=!0)}return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),c}function Oi(e){return e.some(t=>On(t)?!(t.type===xt||t.type===ue&&!Oi(t.children)):!0)?e:null}const Js=e=>e?Qi(e)?Ss(e):Js(e.parent):null,wn=Te(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=>Js(e.parent),$root:e=>Js(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ni(e),$forceUpdate:e=>e.f||(e.f=()=>{wr(e.update)}),$nextTick:e=>e.n||(e.n=yr.bind(e.proxy)),$watch:e=>wc.bind(e)}),Ms=(e,t)=>e!==se&&!e.__isScriptSetup&&oe(e,t),Dc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:c}=e;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Ms(s,t))return i[t]=1,s[t];if(r!==se&&oe(r,t))return i[t]=2,r[t];if(oe(o,t))return i[t]=3,o[t];if(n!==se&&oe(n,t))return i[t]=4,n[t];Ys&&(i[t]=0)}}const u=wn[t];let a,d;if(u)return t==="$attrs"&&De(e.attrs,"get",""),u(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(n!==se&&oe(n,t))return i[t]=4,n[t];if(d=c.config.globalProperties,oe(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Ms(r,t)?(r[t]=n,!0):s!==se&&oe(s,t)?(s[t]=n,!0):oe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:o,type:i}},l){let c;return!!(n[l]||e!==se&&l[0]!=="$"&&oe(e,l)||Ms(t,l)||oe(o,l)||oe(s,l)||oe(wn,l)||oe(r.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:oe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ss(e){return K(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Vc(e,t){return!e||!t?e||t:K(e)&&K(t)?e.concat(t):Te({},ss(e),ss(t))}let Ys=!0;function jc(e){const t=Ni(e),n=e.proxy,s=e.ctx;Ys=!1,t.beforeCreate&&Kr(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:u,created:a,beforeMount:d,mounted:p,beforeUpdate:g,updated:R,activated:E,deactivated:D,beforeDestroy:H,beforeUnmount:O,destroyed:L,unmounted:I,render:Y,renderTracked:xe,renderTriggered:re,errorCaptured:Q,serverPrefetch:X,expose:me,inheritAttrs:Pe,components:Fe,directives:$e,filters:lt}=t;if(u&&Fc(u,s,null),i)for(const z in i){const te=i[z];G(te)&&(s[z]=te.bind(n))}if(r){const z=r.call(n,n);ie(z)&&(e.data=Dn(z))}if(Ys=!0,o)for(const z in o){const te=o[z],Ae=G(te)?te.bind(n,n):G(te.get)?te.get.bind(n,n):vt,at=!G(te)&&G(te.set)?te.set.bind(n):vt,tt=F({get:Ae,set:at});Object.defineProperty(s,z,{enumerable:!0,configurable:!0,get:()=>tt.value,set:Le=>tt.value=Le})}if(l)for(const z in l)Pi(l[z],s,n,z);if(c){const z=G(c)?c.call(n):c;Reflect.ownKeys(z).forEach(te=>{Gn(te,z[te])})}a&&Kr(a,e,"c");function de(z,te){K(te)?te.forEach(Ae=>z(Ae.bind(n))):te&&z(te.bind(n))}if(de(kc,d),de(Ei,p),de(Tc,g),de(Oc,R),de(Cc,E),de(Rc,D),de(Ic,Q),de(Mc,xe),de(Nc,re),de(Ci,O),de(Ri,I),de(Pc,X),K(me))if(me.length){const z=e.exposed||(e.exposed={});me.forEach(te=>{Object.defineProperty(z,te,{get:()=>n[te],set:Ae=>n[te]=Ae,enumerable:!0})})}else e.exposed||(e.exposed={});Y&&e.render===vt&&(e.render=Y),Pe!=null&&(e.inheritAttrs=Pe),Fe&&(e.components=Fe),$e&&(e.directives=$e),X&&wi(e)}function Fc(e,t,n=vt){K(e)&&(e=Qs(e));for(const s in e){const r=e[s];let o;ie(r)?"default"in r?o=Qe(r.from||s,r.default,!0):o=Qe(r.from||s):o=Qe(r),we(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Kr(e,t,n){ot(K(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Pi(e,t,n,s){let r=s.includes(".")?xi(n,s):()=>n[s];if(be(e)){const o=t[e];G(o)&&jt(r,o)}else if(G(e))jt(r,e.bind(n));else if(ie(e))if(K(e))e.forEach(o=>Pi(o,t,n,s));else{const o=G(e.handler)?e.handler.bind(n):t[e.handler];G(o)&&jt(r,o,e)}}function Ni(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(u=>rs(c,u,i,!0)),rs(c,t,i)),ie(t)&&o.set(t,c),c}function rs(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&rs(e,o,n,!0),r&&r.forEach(i=>rs(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Hc[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Hc={data:Wr,props:Gr,emits:Gr,methods:gn,computed:gn,beforeCreate:He,created:He,beforeMount:He,mounted:He,beforeUpdate:He,updated:He,beforeDestroy:He,beforeUnmount:He,destroyed:He,unmounted:He,activated:He,deactivated:He,errorCaptured:He,serverPrefetch:He,components:gn,directives:gn,watch:Uc,provide:Wr,inject:Bc};function Wr(e,t){return t?e?function(){return Te(G(e)?e.call(this,this):e,G(t)?t.call(this,this):t)}:t:e}function Bc(e,t){return gn(Qs(e),Qs(t))}function Qs(e){if(K(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function He(e,t){return e?[...new Set([].concat(e,t))]:t}function gn(e,t){return e?Te(Object.create(null),e,t):t}function Gr(e,t){return e?K(e)&&K(t)?[...new Set([...e,...t])]:Te(Object.create(null),ss(e),ss(t??{})):t}function Uc(e,t){if(!e)return t;if(!t)return e;const n=Te(Object.create(null),e);for(const s in t)n[s]=He(e[s],t[s]);return n}function Mi(){return{app:null,config:{isNativeTag:jo,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 qc=0;function Kc(e,t){return function(s,r=null){G(s)||(s=Te({},s)),r!=null&&!ie(r)&&(r=null);const o=Mi(),i=new WeakSet,l=[];let c=!1;const u=o.app={_uid:qc++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:wa,get config(){return o.config},set config(a){},use(a,...d){return i.has(a)||(a&&G(a.install)?(i.add(a),a.install(u,...d)):G(a)&&(i.add(a),a(u,...d))),u},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),u},component(a,d){return d?(o.components[a]=d,u):o.components[a]},directive(a,d){return d?(o.directives[a]=d,u):o.directives[a]},mount(a,d,p){if(!c){const g=u._ceVNode||j(s,r);return g.appContext=o,p===!0?p="svg":p===!1&&(p=void 0),e(g,a,p),c=!0,u._container=a,a.__vue_app__=u,Ss(g.component)}},onUnmount(a){l.push(a)},unmount(){c&&(ot(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(a,d){return o.provides[a]=d,u},runWithContext(a){const d=Gt;Gt=u;try{return a()}finally{Gt=d}}};return u}}let Gt=null;function Wc(e,t,n=se){const s=Tr(),r=je(t),o=Ht(t),i=Ii(e,r),l=lc((c,u)=>{let a,d=se,p;return yc(()=>{const g=e[r];Me(a,g)&&(a=g,u())}),{get(){return c(),n.get?n.get(a):a},set(g){const R=n.set?n.set(g):g;if(!Me(R,a)&&!(d!==se&&Me(g,d)))return;const E=s.vnode.props,D=!!(E&&(t in E||r in E||o in E)&&(`onUpdate:${t}`in E||`onUpdate:${r}`in E||`onUpdate:${o}`in E));D||(a=g,u()),s.emit(`update:${t}`,R),Me(g,d)&&(Me(g,R)&&!Me(R,p)||D&&d!==se&&!Me(R,a))&&u(),d=g,p=R}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?i||se:l,done:!1}:{done:!0}}}},l}const Ii=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${je(t)}Modifiers`]||e[`${Ht(t)}Modifiers`];function Gc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||se;let r=n;const o=t.startsWith("update:"),i=o&&Ii(s,t.slice(7));i&&(i.trim&&(r=n.map(a=>be(a)?a.trim():a)),i.number&&(r=n.map(hr)));let l,c=s[l=As(t)]||s[l=As(je(t))];!c&&o&&(c=s[l=As(Ht(t))]),c&&ot(c,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ot(u,e,6,r)}}const zc=new WeakMap;function $i(e,t,n=!1){const s=n?zc:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!G(e)){const c=u=>{const a=$i(u,t,!0);a&&(l=!0,Te(i,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(ie(e)&&s.set(e,null),null):(K(o)?o.forEach(c=>i[c]=null):Te(i,o),ie(e)&&s.set(e,i),i)}function ys(e,t){return!e||!as(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),oe(e,t[0].toLowerCase()+t.slice(1))||oe(e,Ht(t))||oe(e,t))}function zr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:c,render:u,renderCache:a,props:d,data:p,setupState:g,ctx:R,inheritAttrs:E}=e,D=ts(e);let H,O;try{if(n.shapeFlag&4){const I=r||s,Y=I;H=gt(u.call(Y,I,a,d,g,p,R)),O=l}else{const I=t;H=gt(I.length>1?I(d,{attrs:l,slots:i,emit:c}):I(d,null)),O=t.props?l:Jc(l)}}catch(I){kt.length=0,_s(I,e,1),H=j(xt)}let L=H;if(O&&E!==!1){const I=Object.keys(O),{shapeFlag:Y}=L;I.length&&Y&7&&(o&&I.some(us)&&(O=Yc(O,o)),L=cn(L,O,!1,!0))}if(n.dirs&&(L=cn(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition){const I=bs(L.type)&&yi(L)||L;Er(I,n.transition)}return H=L,ts(D),H}const Jc=e=>{let t;for(const n in e)(n==="class"||n==="style"||as(n))&&((t||(t={}))[n]=e[n]);return t},Yc=(e,t)=>{const n={};for(const s in e)(!us(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Qc(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Jr(s,i,u):!!i;if(c&8){const a=t.dynamicProps;for(let d=0;d<a.length;d++){const p=a[d];if(Li(i,s,p)&&!ys(u,p))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?Jr(s,i,u):!0:!!i;return!1}function Jr(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(Li(t,e,o)&&!ys(n,o))return!0}return!1}function Li(e,t,n){const s=e[n],r=t[n];return n==="style"&&ie(s)&&ie(r)?!pr(s,r):s!==r}function Xc({vnode:e,parent:t,suspense:n},s){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=s,e=r),r===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const Di={},Vi=()=>Object.create(Di),ji=e=>Object.getPrototypeOf(e)===Di;function Zc(e,t,n,s=!1){const r={},o=Vi();e.propsDefaults=Object.create(null),Fi(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:fi(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function ea(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=ne(r),[c]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let d=0;d<a.length;d++){let p=a[d];if(ys(e.emitsOptions,p))continue;const g=t[p];if(c)if(oe(o,p))g!==o[p]&&(o[p]=g,u=!0);else{const R=je(p);r[R]=Xs(c,l,R,g,e,!1)}else g!==o[p]&&(o[p]=g,u=!0)}}}else{Fi(e,t,r,o)&&(u=!0);let a;for(const d in l)(!t||!oe(t,d)&&((a=Ht(d))===d||!oe(t,a)))&&(c?n&&(n[d]!==void 0||n[a]!==void 0)&&(r[d]=Xs(c,l,d,void 0,e,!0)):delete r[d]);if(o!==l)for(const d in o)(!t||!oe(t,d))&&(delete o[d],u=!0)}u&&Ct(e.attrs,"set","")}function Fi(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,l;if(t)for(let c in t){if(_n(c))continue;const u=t[c];let a;r&&oe(r,a=je(c))?!o||!o.includes(a)?n[a]=u:(l||(l={}))[a]=u:ys(e.emitsOptions,c)||(!(c in s)||u!==s[c])&&(s[c]=u,i=!0)}if(o){const c=ne(n),u=l||se;for(let a=0;a<o.length;a++){const d=o[a];n[d]=Xs(r,c,d,u[d],e,!oe(u,d))}}return i}function Xs(e,t,n,s,r,o){const i=e[n];if(i!=null){const l=oe(i,"default");if(l&&s===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&G(c)){const{propsDefaults:u}=r;if(n in u)s=u[n];else{const a=jn(r);s=u[n]=c.call(null,t),a()}}else s=c;r.ce&&r.ce._setProp(n,s)}i[0]&&(o&&!l?s=!1:i[1]&&(s===""||s===Ht(n))&&(s=!0))}return s}const ta=new WeakMap;function Hi(e,t,n=!1){const s=n?ta:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},l=[];let c=!1;if(!G(e)){const a=d=>{c=!0;const[p,g]=Hi(d,t,!0);Te(i,p),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!o&&!c)return ie(e)&&s.set(e,en),en;if(K(o))for(let a=0;a<o.length;a++){const d=je(o[a]);Yr(d)&&(i[d]=se)}else if(o)for(const a in o){const d=je(a);if(Yr(d)){const p=o[a],g=i[d]=K(p)||G(p)?{type:p}:Te({},p),R=g.type;let E=!1,D=!0;if(K(R))for(let H=0;H<R.length;++H){const O=R[H],L=G(O)&&O.name;if(L==="Boolean"){E=!0;break}else L==="String"&&(D=!1)}else E=G(R)&&R.name==="Boolean";g[0]=E,g[1]=D,(E||oe(g,"default"))&&l.push(d)}}const u=[i,l];return ie(e)&&s.set(e,u),u}function Yr(e){return e[0]!=="$"&&!_n(e)}const Rr=e=>e==="_"||e==="_ctx"||e==="$stable",Ar=e=>K(e)?e.map(gt):[gt(e)],na=(e,t,n)=>{if(t._n)return t;const s=Ke((...r)=>Ar(t(...r)),n);return s._c=!1,s},Bi=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Rr(r))continue;const o=e[r];if(G(o))t[r]=na(r,o,s);else if(o!=null){const i=Ar(o);t[r]=()=>i}}},Ui=(e,t)=>{const n=Ar(t);e.slots.default=()=>n},qi=(e,t,n)=>{for(const s in t)(n||!Rr(s))&&(e[s]=t[s])},sa=(e,t,n)=>{const s=e.slots=Vi();if(e.vnode.shapeFlag&32){const r=t._;r?(qi(s,t,n),n&&qo(s,"_",r,!0)):Bi(t,s)}else t&&Ui(e,t)},ra=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=se;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:qi(r,t,n):(o=!t.$stable,Bi(t,r)),i=t}else t&&(Ui(e,t),i={default:1});if(o)for(const l in r)!Rr(l)&&i[l]==null&&delete r[l]},qe=aa;function oa(e){return ia(e)}function ia(e,t){const n=ps();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:u,setElementText:a,parentNode:d,nextSibling:p,setScopeId:g=vt,insertStaticContent:R}=e,E=(f,h,m,_=null,y=null,v=null,T=void 0,A=null,C=!!h.dynamicChildren)=>{if(f===h)return;f&&!hn(f,h)&&(_=b(f),Le(f,y,v,!0),f=null),h.patchFlag===-2&&(C=!1,h.dynamicChildren=null);const{type:w,ref:q,shapeFlag:N}=h;switch(w){case ws:D(f,h,m,_);break;case xt:H(f,h,m,_);break;case $s:f==null&&O(h,m,_,T);break;case ue:Fe(f,h,m,_,y,v,T,A,C);break;default:N&1?Y(f,h,m,_,y,v,T,A,C):N&6?$e(f,h,m,_,y,v,T,A,C):(N&64||N&128)&&w.process(f,h,m,_,y,v,T,A,C,B)}q!=null&&y?yn(q,f&&f.ref,v,h||f,!h):q==null&&f&&f.ref!=null&&yn(f.ref,null,v,f,!0)},D=(f,h,m,_)=>{if(f==null)s(h.el=l(h.children),m,_);else{const y=h.el=f.el;h.children!==f.children&&u(y,h.children)}},H=(f,h,m,_)=>{f==null?s(h.el=c(h.children||""),m,_):h.el=f.el},O=(f,h,m,_)=>{[f.el,f.anchor]=R(f.children,h,m,_,f.el,f.anchor)},L=({el:f,anchor:h},m,_)=>{let y;for(;f&&f!==h;)y=p(f),s(f,m,_),f=y;s(h,m,_)},I=({el:f,anchor:h})=>{let m;for(;f&&f!==h;)m=p(f),r(f),f=m;r(h)},Y=(f,h,m,_,y,v,T,A,C)=>{if(h.type==="svg"?T="svg":h.type==="math"&&(T="mathml"),f==null)xe(h,m,_,y,v,T,A,C);else{const w=f.el&&f.el._isVueCE?f.el:null;try{w&&w._beginPatch(),X(f,h,y,v,T,A,C)}finally{w&&w._endPatch()}}},xe=(f,h,m,_,y,v,T,A)=>{let C,w;const{props:q,shapeFlag:N,transition:U,dirs:W}=f;if(C=f.el=i(f.type,v,q&&q.is,q),N&8?a(C,f.children):N&16&&Q(f.children,C,null,_,y,Is(f,v),T,A),W&&Bt(f,null,_,"created"),re(C,f,f.scopeId,T,_),q){for(const ae in q)ae!=="value"&&!_n(ae)&&o(C,ae,null,q[ae],v,_);"value"in q&&o(C,"value",null,q.value,v),(w=q.onVnodeBeforeMount)&&ht(w,_,f)}W&&Bt(f,null,_,"beforeMount");const ee=la(y,U);ee&&U.beforeEnter(C),s(C,h,m),((w=q&&q.onVnodeMounted)||ee||W)&&qe(()=>{w&&ht(w,_,f),ee&&U.enter(C),W&&Bt(f,null,_,"mounted")},y)},re=(f,h,m,_,y)=>{if(m&&g(f,m),_)for(let v=0;v<_.length;v++)g(f,_[v]);if(y){let v=y.subTree;if(h===v||zi(v.type)&&(v.ssContent===h||v.ssFallback===h)){const T=y.vnode;re(f,T,T.scopeId,T.slotScopeIds,y.parent)}}},Q=(f,h,m,_,y,v,T,A,C=0)=>{for(let w=C;w<f.length;w++){const q=f[w]=A?Et(f[w]):gt(f[w]);E(null,q,h,m,_,y,v,T,A)}},X=(f,h,m,_,y,v,T)=>{const A=h.el=f.el;let{patchFlag:C,dynamicChildren:w,dirs:q}=h;C|=f.patchFlag&16;const N=f.props||se,U=h.props||se;let W;if(m&&Ut(m,!1),(W=U.onVnodeBeforeUpdate)&&ht(W,m,h,f),q&&Bt(h,f,m,"beforeUpdate"),m&&Ut(m,!0),w&&(!f.dynamicChildren||f.dynamicChildren.length!==w.length)&&(C=0,T=!1,w=null),(N.innerHTML&&U.innerHTML==null||N.textContent&&U.textContent==null)&&a(A,""),w?me(f.dynamicChildren,w,A,m,_,Is(h,y),v):T||te(f,h,A,null,m,_,Is(h,y),v,!1),C>0){if(C&16)Pe(A,N,U,m,y);else if(C&2&&N.class!==U.class&&o(A,"class",null,U.class,y),C&4&&o(A,"style",N.style,U.style,y),C&8){const ee=h.dynamicProps;for(let ae=0;ae<ee.length;ae++){const le=ee[ae],Se=N[le],Ne=U[le];(Ne!==Se||le==="value")&&o(A,le,Se,Ne,y,m)}}C&1&&f.children!==h.children&&a(A,h.children)}else!T&&w==null&&Pe(A,N,U,m,y);((W=U.onVnodeUpdated)||q)&&qe(()=>{W&&ht(W,m,h,f),q&&Bt(h,f,m,"updated")},_)},me=(f,h,m,_,y,v,T)=>{for(let A=0;A<h.length;A++){const C=f[A],w=h[A],q=C.el&&(C.type===ue||!hn(C,w)||C.shapeFlag&198)?d(C.el):m;E(C,w,q,null,_,y,v,T,!0)}},Pe=(f,h,m,_,y)=>{if(h!==m){if(h!==se)for(const v in h)!_n(v)&&!(v in m)&&o(f,v,h[v],null,y,_);for(const v in m){if(_n(v))continue;const T=m[v],A=h[v];T!==A&&v!=="value"&&o(f,v,A,T,y,_)}"value"in m&&o(f,"value",h.value,m.value,y)}},Fe=(f,h,m,_,y,v,T,A,C)=>{const w=h.el=f?f.el:l(""),q=h.anchor=f?f.anchor:l("");let{patchFlag:N,dynamicChildren:U,slotScopeIds:W}=h;W&&(A=A?A.concat(W):W),f==null?(s(w,m,_),s(q,m,_),Q(h.children||[],m,q,y,v,T,A,C)):N>0&&N&64&&U&&f.dynamicChildren&&f.dynamicChildren.length===U.length?(me(f.dynamicChildren,U,m,y,v,T,A),(h.key!=null||y&&h===y.subTree)&&Ki(f,h,!0)):te(f,h,m,q,y,v,T,A,C)},$e=(f,h,m,_,y,v,T,A,C)=>{h.slotScopeIds=A,f==null?h.shapeFlag&512?y.ctx.activate(h,m,_,T,C):lt(h,m,_,y,v,T,C):ct(f,h,C)},lt=(f,h,m,_,y,v,T)=>{const A=f.component=ma(f,_,y);if(Cr(f)&&(A.ctx.renderer=B),ga(A,!1,T),A.asyncDep){if(y&&y.registerDep(A,de,T),!f.el){const C=A.subTree=j(xt);H(null,C,h,m),f.placeholder=C.el}}else de(A,f,h,m,y,v,T)},ct=(f,h,m)=>{const _=h.component=f.component;if(Qc(f,h,m))if(_.asyncDep&&!_.asyncResolved){z(_,h,m);return}else _.next=h,_.update();else h.el=f.el,_.vnode=h},de=(f,h,m,_,y,v,T)=>{const A=()=>{if(f.isMounted){let{next:N,bu:U,u:W,parent:ee,vnode:ae}=f;{const ft=Wi(f);if(ft){N&&(N.el=ae.el,z(f,N,T)),ft.asyncDep.then(()=>{qe(()=>{f.isUnmounted||w()},y)});return}}let le=N,Se;Ut(f,!1),N?(N.el=ae.el,z(f,N,T)):N=ae,U&&Wn(U),(Se=N.props&&N.props.onVnodeBeforeUpdate)&&ht(Se,ee,N,ae),Ut(f,!0);const Ne=zr(f),ut=f.subTree;f.subTree=Ne,E(ut,Ne,d(ut.el),b(ut),f,y,v),N.el=Ne.el,le===null&&Xc(f,Ne.el),W&&qe(W,y),(Se=N.props&&N.props.onVnodeUpdated)&&qe(()=>ht(Se,ee,N,ae),y)}else{let N;const{el:U,props:W}=h,{bm:ee,m:ae,parent:le,root:Se,type:Ne}=f,ut=sn(h);Ut(f,!1),ee&&Wn(ee),!ut&&(N=W&&W.onVnodeBeforeMount)&&ht(N,le,h),Ut(f,!0);{Se.ce&&Se.ce._hasShadowRoot()&&Se.ce._injectChildStyle(Ne,f.parent?f.parent.type:void 0);const ft=f.subTree=zr(f);E(null,ft,m,_,f,y,v),h.el=ft.el}if(ae&&qe(ae,y),!ut&&(N=W&&W.onVnodeMounted)){const ft=h;qe(()=>ht(N,le,ft),y)}(h.shapeFlag&256||le&&sn(le.vnode)&&le.vnode.shapeFlag&256)&&f.a&&qe(f.a,y),f.isMounted=!0,h=m=_=null}};f.scope.on();const C=f.effect=new Qo(A);f.scope.off();const w=f.update=C.run.bind(C),q=f.job=C.runIfDirty.bind(C);q.i=f,q.id=f.uid,C.scheduler=()=>wr(q),Ut(f,!0),w()},z=(f,h,m)=>{h.component=f;const _=f.vnode.props;f.vnode=h,f.next=null,ea(f,h.props,_,m),ra(f,h.children,m),Tt(),Fr(f),Ot()},te=(f,h,m,_,y,v,T,A,C=!1)=>{const w=f&&f.children,q=f?f.shapeFlag:0,N=h.children,{patchFlag:U,shapeFlag:W}=h;if(U>0){if(U&128){at(w,N,m,_,y,v,T,A,C);return}else if(U&256){Ae(w,N,m,_,y,v,T,A,C);return}}W&8?(q&16&&ce(w,y,v),N!==w&&a(m,N)):q&16?W&16?at(w,N,m,_,y,v,T,A,C):ce(w,y,v,!0):(q&8&&a(m,""),W&16&&Q(N,m,_,y,v,T,A,C))},Ae=(f,h,m,_,y,v,T,A,C)=>{f=f||en,h=h||en;const w=f.length,q=h.length,N=Math.min(w,q);let U;for(U=0;U<N;U++){const W=h[U]=C?Et(h[U]):gt(h[U]);E(f[U],W,m,null,y,v,T,A,C)}w>q?ce(f,y,v,!0,!1,N):Q(h,m,_,y,v,T,A,C,N)},at=(f,h,m,_,y,v,T,A,C)=>{let w=0;const q=h.length;let N=f.length-1,U=q-1;for(;w<=N&&w<=U;){const W=f[w],ee=h[w]=C?Et(h[w]):gt(h[w]);if(hn(W,ee))E(W,ee,m,null,y,v,T,A,C);else break;w++}for(;w<=N&&w<=U;){const W=f[N],ee=h[U]=C?Et(h[U]):gt(h[U]);if(hn(W,ee))E(W,ee,m,null,y,v,T,A,C);else break;N--,U--}if(w>N){if(w<=U){const W=U+1,ee=W<q?h[W].el:_;for(;w<=U;)E(null,h[w]=C?Et(h[w]):gt(h[w]),m,ee,y,v,T,A,C),w++}}else if(w>U)for(;w<=N;)Le(f[w],y,v,!0),w++;else{const W=w,ee=w,ae=new Map;for(w=ee;w<=U;w++){const ze=h[w]=C?Et(h[w]):gt(h[w]);ze.key!=null&&ae.set(ze.key,w)}let le,Se=0;const Ne=U-ee+1;let ut=!1,ft=0;const fn=new Array(Ne);for(w=0;w<Ne;w++)fn[w]=0;for(w=W;w<=N;w++){const ze=f[w];if(Se>=Ne){Le(ze,y,v,!0);continue}let dt;if(ze.key!=null)dt=ae.get(ze.key);else for(le=ee;le<=U;le++)if(fn[le-ee]===0&&hn(ze,h[le])){dt=le;break}dt===void 0?Le(ze,y,v,!0):(fn[dt-ee]=w+1,dt>=ft?ft=dt:ut=!0,E(ze,h[dt],m,null,y,v,T,A,C),Se++)}const Mr=ut?ca(fn):en;for(le=Mr.length-1,w=Ne-1;w>=0;w--){const ze=ee+w,dt=h[ze],Ir=h[ze+1],$r=ze+1<q?Ir.el||Gi(Ir):_;fn[w]===0?E(null,dt,m,$r,y,v,T,A,C):ut&&(le<0||w!==Mr[le]?tt(dt,m,$r,2):le--)}}},tt=(f,h,m,_,y=null)=>{const{el:v,type:T,transition:A,children:C,shapeFlag:w}=f;if(w&6){tt(f.component.subTree,h,m,_);return}if(w&128){f.suspense.move(h,m,_);return}if(w&64){T.move(f,h,m,B);return}if(T===ue){s(v,h,m);for(let N=0;N<C.length;N++)tt(C[N],h,m,_);s(f.anchor,h,m);return}if(T===$s){L(f,h,m);return}if(_!==2&&w&1&&A)if(_===0)A.persisted&&!v[Ns]?s(v,h,m):(A.beforeEnter(v),s(v,h,m),qe(()=>A.enter(v),y));else{const{leave:N,delayLeave:U,afterLeave:W}=A,ee=()=>{f.ctx.isUnmounted?r(v):s(v,h,m)},ae=()=>{const le=v._isLeaving||!!v[Ns];v._isLeaving&&v[Ns](!0),A.persisted&&!le?ee():N(v,()=>{ee(),W&&W()})};U?U(v,ee,ae):ae()}else s(v,h,m)},Le=(f,h,m,_=!1,y=!1)=>{const{type:v,props:T,ref:A,children:C,dynamicChildren:w,shapeFlag:q,patchFlag:N,dirs:U,cacheIndex:W,memo:ee}=f;if(N===-2&&(y=!1),A!=null&&(Tt(),yn(A,null,m,f,!0),Ot()),W!=null&&(h.renderCache[W]=void 0),q&256){h.ctx.deactivate(f);return}const ae=q&1&&U,le=!sn(f);let Se;if(le&&(Se=T&&T.onVnodeBeforeUnmount)&&ht(Se,h,f),q&6)ve(f.component,m,_);else{if(q&128){f.suspense.unmount(m,_);return}ae&&Bt(f,null,h,"beforeUnmount"),q&64?f.type.remove(f,h,m,B,_):w&&!w.hasOnce&&(v!==ue||N>0&&N&64)?ce(w,h,m,!1,!0):(v===ue&&N&384||!y&&q&16)&&ce(C,h,m),_&&Mt(f)}const Ne=ee!=null&&W==null;(le&&(Se=T&&T.onVnodeUnmounted)||ae||Ne)&&qe(()=>{Se&&ht(Se,h,f),ae&&Bt(f,null,h,"unmounted"),Ne&&(f.el=null)},m)},Mt=f=>{const{type:h,el:m,anchor:_,transition:y}=f;if(h===ue){V(m,_);return}if(h===$s){I(f);return}const v=()=>{r(m),y&&!y.persisted&&y.afterLeave&&y.afterLeave()};if(f.shapeFlag&1&&y&&!y.persisted){const{leave:T,delayLeave:A}=y,C=()=>T(m,v);A?A(f.el,v,C):C()}else v()},V=(f,h)=>{let m;for(;f!==h;)m=p(f),r(f),f=m;r(h)},ve=(f,h,m)=>{const{bum:_,scope:y,job:v,subTree:T,um:A,m:C,a:w}=f;Qr(C),Qr(w),_&&Wn(_),y.stop(),v&&(v.flags|=8,Le(T,f,h,m)),A&&qe(A,h),qe(()=>{f.isUnmounted=!0},h)},ce=(f,h,m,_=!1,y=!1,v=0)=>{for(let T=v;T<f.length;T++)Le(f[T],h,m,_,y)},b=f=>{if(f.shapeFlag&6)return b(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=p(f.anchor||f.el),m=h&&h[Sc];return m?p(m):h};let M=!1;const P=(f,h,m)=>{let _;f==null?h._vnode&&(Le(h._vnode,null,null,!0),_=h._vnode.component):E(h._vnode||null,f,h,null,null,null,m),h._vnode=f,M||(M=!0,Fr(_),gi(),M=!1)},B={p:E,um:Le,m:tt,r:Mt,mt:lt,mc:Q,pc:te,pbc:me,n:b,o:e};return{render:P,hydrate:void 0,createApp:Kc(P)}}function Is({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ut({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function la(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ki(e,t,n=!1){const s=e.children,r=t.children;if(K(s)&&K(r))for(let o=0;o<s.length;o++){const i=s[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=Et(r[o]),l.el=i.el),!n&&l.patchFlag!==-2&&Ki(i,l)),l.type===ws&&(l.patchFlag===-1&&(l=r[o]=Et(l)),l.el=i.el),l.type===xt&&!l.el&&(l.el=i.el)}}function ca(e){const t=e.slice(),n=[0];let s,r,o,i,l;const c=e.length;for(s=0;s<c;s++){const u=e[s];if(u!==0){if(r=n[n.length-1],e[r]<u){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<u?o=l+1:i=l;u<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Wi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Wi(t)}function Qr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Gi(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Gi(t.subTree):null}const zi=e=>e.__isSuspense;function aa(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):vc(e)}const ue=Symbol.for("v-fgt"),ws=Symbol.for("v-txt"),xt=Symbol.for("v-cmt"),$s=Symbol.for("v-stc"),kt=[];let Je=null;function S(e=!1){kt.push(Je=e?null:[])}function kr(){kt.pop(),Je=kt[kt.length-1]||null}let Tn=1;function os(e,t=!1){Tn+=e,e<0&&Je&&t&&(Je.hasOnce=!0)}function Ji(e){return e.dynamicChildren=Tn>0?Je||en:null,kr(),Tn>0&&Je&&Je.push(e),e}function $(e,t,n,s,r,o){return Ji(k(e,t,n,s,r,o,!0))}function fe(e,t,n,s,r){return Ji(j(e,t,n,s,r,!0))}function On(e){return e?e.__v_isVNode===!0:!1}function hn(e,t){return e.type===t.type&&e.key===t.key}const Yi=({key:e})=>e??null,zn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||we(e)||G(e)?{i:Ie,r:e,k:t,f:!!n}:e:null);function k(e,t=null,n=null,s=0,r=null,o=e===ue?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Yi(t),ref:t&&zn(t),scopeId:_i,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ie};return l?(is(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=be(n)?8:16),Tn>0&&!i&&Je&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Je.push(c),c}const j=ua;function ua(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===ki)&&(e=xt),On(e)){const l=cn(e,t,!0);return n&&is(l,n),Tn>0&&!o&&Je&&(l.shapeFlag&6?Je[Je.indexOf(e)]=l:Je.push(l)),l.patchFlag=-2,l}if(ya(e)&&(e=e.__vccOpts),t){t=fa(t);let{class:l,style:c}=t;l&&!be(l)&&(t.class=Re(l)),ie(c)&&(vs(c)&&!K(c)&&(c=Te({},c)),t.style=bt(c))}const i=be(e)?1:zi(e)?128:bs(e)?64:ie(e)?4:G(e)?2:0;return k(e,t,n,s,r,i,o,!0)}function fa(e){return e?vs(e)||ji(e)?Te({},e):e:null}function cn(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:c}=e,u=t?da(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Yi(u),ref:t&&t.ref?n&&o?K(o)?o.concat(zn(t)):[o,zn(t)]:zn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ue?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cn(e.ssContent),ssFallback:e.ssFallback&&cn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Er(a,c.clone(a)),a}function rn(e=" ",t=0){return j(ws,null,e,t)}function ke(e="",t=!1){return t?(S(),fe(xt,null,e)):j(xt,null,e)}function gt(e){return e==null||typeof e=="boolean"?j(xt):K(e)?j(ue,null,e.slice()):On(e)?Et(e):j(ws,null,String(e))}function Et(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:cn(e)}function is(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(K(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),is(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!ji(t)?t._ctx=Ie:r===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(G(t)){if(s&65){is(e,{default:t});return}t={default:t,_ctx:Ie},n=32}else t=String(t),s&64?(n=16,t=[rn(t)]):n=8;e.children=t,e.shapeFlag|=n}function da(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Re([t.class,s.class]));else if(r==="style")t.style=bt([t.style,s.style]);else if(as(r)){const o=t[r],i=s[r];i&&o!==i&&!(K(o)&&o.includes(i))?t[r]=o?[].concat(o,i):i:i==null&&o==null&&!us(r)&&(t[r]=i)}else r!==""&&(t[r]=s[r])}return t}function ht(e,t,n,s=null){ot(e,t,7,[n,s])}const ha=Mi();let pa=0;function ma(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||ha,o={uid:pa++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new zo(!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:Hi(s,r),emitsOptions:$i(s,r),emit:null,emitted:null,propsDefaults:se,inheritAttrs:s.inheritAttrs,ctx:se,data:se,props:se,attrs:se,slots:se,refs:se,setupState:se,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Gc.bind(null,o),e.ce&&e.ce(o),o}let Ve=null;const Tr=()=>Ve||Ie;let ls,Pn;{const e=ps(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};ls=t("__VUE_INSTANCE_SETTERS__",n=>Ve=n),Pn=t("__VUE_SSR_SETTERS__",n=>Nn=n)}const jn=e=>{const t=Ve;return ls(e),e.scope.on(),()=>{e.scope.off(),ls(t)}},Xr=()=>{Ve&&Ve.scope.off(),ls(null)};function Qi(e){return e.vnode.shapeFlag&4}let Nn=!1;function ga(e,t=!1,n=!1){t&&Pn(t);const{props:s,children:r}=e.vnode,o=Qi(e);Zc(e,s,o,t),sa(e,r,n||t);const i=o?va(e,t):void 0;return t&&Pn(!1),i}function va(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Dc);const{setup:s}=n;if(s){Tt();const r=e.setupContext=s.length>1?ba(e):null,o=jn(e),i=Vn(s,e,0,[e.props,r]),l=Ho(i);if(Ot(),o(),(l||e.sp)&&!sn(e)&&wi(e),l){if(i.then(Xr,Xr),t)return i.then(c=>{Pn(!0);try{Zr(e,c,t)}finally{Pn(!1)}}).catch(c=>{_s(c,e,0)});e.asyncDep=i}else Zr(e,i)}else Xi(e)}function Zr(e,t,n){G(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ie(t)&&(e.setupState=hi(t)),Xi(e)}function Xi(e,t,n){const s=e.type;e.render||(e.render=s.render||vt);{const r=jn(e);Tt();try{jc(e)}finally{Ot(),r()}}}const _a={get(e,t){return De(e,"get",""),e[t]}};function ba(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,_a),slots:e.slots,emit:e.emit,expose:t}}function Ss(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(hi(xr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in wn)return wn[n](e)},has(t,n){return n in t||n in wn}})):e.proxy}function xa(e,t=!0){return G(e)?e.displayName||e.name:e.name||t&&e.__name}function ya(e){return G(e)&&"__vccOpts"in e}const F=(e,t)=>dc(e,t,Nn);function Mn(e,t,n){try{os(-1);const s=arguments.length;return s===2?ie(t)&&!K(t)?On(t)?j(e,null,[t]):j(e,t):j(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&On(n)&&(n=[n]),j(e,t,n))}finally{os(1)}}const wa="3.5.41";let Zs;const eo=typeof window<"u"&&window.trustedTypes;if(eo)try{Zs=eo.createPolicy("vue",{createHTML:e=>e})}catch{}const Zi=Zs?e=>Zs.createHTML(e):e=>e,Sa="http://www.w3.org/2000/svg",Ea="http://www.w3.org/1998/Math/MathML",St=typeof document<"u"?document:null,to=St&&St.createElement("template"),Ca={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?St.createElementNS(Sa,e):t==="mathml"?St.createElementNS(Ea,e):n?St.createElement(e,{is:n}):St.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>St.createTextNode(e),createComment:e=>St.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>St.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{to.innerHTML=Zi(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=to.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ra=Symbol("_vtc");function Aa(e,t,n){const s=e[Ra];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const cs=Symbol("_vod"),el=Symbol("_vsh"),ka={name:"show",beforeMount(e,{value:t},{transition:n}){e[cs]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):pn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),pn(e,!0),s.enter(e)):s.leave(e,()=>{pn(e,!1)}):pn(e,t))},beforeUnmount(e,{value:t}){pn(e,t)}};function pn(e,t){e.style.display=t?e[cs]:"none",e[el]=!t}const Ta=Symbol(""),Oa=/(?:^|;)\s*display\s*:/;function Pa(e,t,n){const s=e.style,r=be(n);let o=!1;if(n&&!r){if(t)if(be(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&vn(s,l,"")}else for(const i in t)n[i]==null&&vn(s,i,"");for(const i in n){i==="display"&&(o=!0);const l=n[i];l!=null?Ma(e,i,!be(t)&&t?t[i]:void 0,l)||vn(s,i,l):vn(s,i,"")}}else if(r){if(t!==n){const i=s[Ta];i&&(n+=";"+i),s.cssText=n,o=Oa.test(n)}}else t&&e.removeAttribute("style");cs in e&&(e[cs]=o?s.display:"",e[el]&&(s.display="none"))}const no=/\s*!important$/;function vn(e,t,n){if(K(n))n.forEach(s=>vn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Na(e,t);no.test(n)?e.setProperty(Ht(s),n.replace(no,""),"important"):e[s]=n}}const so=["Webkit","Moz","ms"],Ls={};function Na(e,t){const n=Ls[t];if(n)return n;let s=je(t);if(s!=="filter"&&s in e)return Ls[t]=s;s=hs(s);for(let r=0;r<so.length;r++){const o=so[r]+s;if(o in e)return Ls[t]=o}return t}function Ma(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&be(s)&&n===s}const ro="http://www.w3.org/1999/xlink";function oo(e,t,n,s,r,o=Ll(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ro,t.slice(6,t.length)):e.setAttributeNS(ro,t,n):n==null||o&&!Ko(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Ze(n)?String(n):n)}function io(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Zi(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Ko(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(r||t)}function Xt(e,t,n,s){e.addEventListener(t,n,s)}function Ia(e,t,n,s){e.removeEventListener(t,n,s)}const lo=Symbol("_vei");function $a(e,t,n,s,r=null){const o=e[lo]||(e[lo]={}),i=o[t];if(s&&i)i.value=s;else{const[l,c]=Va(t);if(s){const u=o[t]=Ha(s,r);Xt(e,l,u,c)}else i&&(Ia(e,l,i,c),o[t]=void 0)}}const La=/(Once|Passive|Capture)$/,Da=/^on:?(?:Once|Passive|Capture)$/;function Va(e){let t,n;for(;(n=e.match(La))&&!Da.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Ht(e.slice(2)),t]}let Ds=0;const ja=Promise.resolve(),Fa=()=>Ds||(ja.then(()=>Ds=0),Ds=Date.now());function Ha(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(K(r)){const o=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{o.call(s),s._stopped=!0};const i=r.slice(),l=[s];for(let c=0;c<i.length&&!s._stopped;c++){const u=i[c];u&&ot(u,t,5,l)}}else ot(r,t,5,[s])};return n.value=e,n.attached=Fa(),n}const co=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ba=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Aa(e,s,i):t==="style"?Pa(e,n,s):as(t)?us(t)||$a(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ua(e,t,s,i))?(io(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&oo(e,t,s,i,o,t!=="value")):e._isVueCE&&(qa(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!be(s)))?io(e,je(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),oo(e,t,s,i))};function Ua(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&co(t)&&G(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return co(t)&&be(n)?!1:t in e}function qa(e,t){const n=e._def.props;if(!n)return!1;const s=je(t);return Array.isArray(n)?n.some(r=>je(r)===s):Object.keys(n).some(r=>je(r)===s)}const ao=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?n=>Wn(t,n):t};function Ka(e){e.target.composing=!0}function uo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Un=Symbol("_assign"),qn=Symbol("_initialValue");function Vs(e,t,n){return t&&(e=e.trim()),n&&(e=hr(e)),e}const Wa={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e.parentNode&&(e.type==="text"?e[qn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[qn]=e.defaultValue.replace(/\r\n?/g,`
`))),e[Un]=ao(r);const o=s||r.props&&r.props.type==="number";Xt(e,t?"change":"input",i=>{i.target.composing||e[Un](Vs(e.value,n,o))}),(n||o)&&Xt(e,"change",()=>{e.value=Vs(e.value,n,o)}),t||(Xt(e,"compositionstart",Ka),Xt(e,"compositionend",uo),Xt(e,"change",uo))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=t??"",o=e[qn];delete e[qn],o!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==o?e[Un](Vs(e.value,n,s)):e.value=r},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[Un]=ao(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?hr(e.value):e.value,c=t??"";if(l===c)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c)}},Ga=["ctrl","shift","alt","meta"],za={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)=>Ga.some(n=>e[`${n}Key`]&&!t.includes(n))},tl=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...o)=>{for(let i=0;i<t.length;i++){const l=za[t[i]];if(l&&l(r,t))return}return e(r,...o)}))},Ja=Te({patchProp:Ba},Ca);let fo;function Ya(){return fo||(fo=oa(Ja))}const Qa=((...e)=>{const t=Ya().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Za(s);if(!r)return;const o=t._component;!G(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,Xa(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t});function Xa(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Za(e){return be(e)?document.querySelector(e):e}let nl;const Es=e=>nl=e,sl=Symbol();function er(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Sn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Sn||(Sn={}));function eu(){const e=Jo(!0),t=e.run(()=>_e({}));let n=[],s=[];const r=xr({install(o){Es(r),r._a=o,o.provide(sl,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return this._a?n.push(o):s.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const rl=()=>{};function ho(e,t,n,s=rl){e.add(t);const r=()=>{e.delete(t)&&s()};return!n&&Yo()&&Vl(r),r}function Jt(e,...t){e.forEach(n=>{n(...t)})}const tu=e=>e(),po=Symbol(),js=Symbol();function tr(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];er(r)&&er(s)&&e.hasOwnProperty(n)&&!we(s)&&!At(s)?e[n]=tr(r,s):e[n]=s}return e}const nu=Symbol();function su(e){return!er(e)||!Object.prototype.hasOwnProperty.call(e,nu)}const{assign:$t}=Object;function ru(e){return!!(we(e)&&e.effect)}function ou(e,t,n,s){const{state:r,actions:o,getters:i}=t,l=n.state.value[e];let c;function u(){l||(n.state.value[e]=r?r():{});const a=cc(n.state.value[e]);return $t(a,o,Object.keys(i||{}).reduce((d,p)=>(d[p]=xr(F(()=>{Es(n);const g=n._s.get(e);return i[p].call(g,g)})),d),{}))}return c=ol(e,u,t,n,s,!0),c}function ol(e,t,n={},s,r,o){let i;const l=$t({actions:{}},n),c={deep:!0};let u,a,d=new Set,p=new Set,g;const R=s.state.value[e];!o&&!R&&(s.state.value[e]={});let E;function D(Q){let X;u=a=!1,typeof Q=="function"?(Q(s.state.value[e]),X={type:Sn.patchFunction,storeId:e,events:g}):(tr(s.state.value[e],Q),X={type:Sn.patchObject,payload:Q,storeId:e,events:g});const me=E=Symbol();yr().then(()=>{E===me&&(u=!0)}),a=!0,Jt(d,X,s.state.value[e])}const H=o?function(){const{state:X}=n,me=X?X():{};this.$patch(Pe=>{$t(Pe,me)})}:rl;function O(){i.stop(),d.clear(),p.clear(),s._s.delete(e)}const L=(Q,X="")=>{if(po in Q)return Q[js]=X,Q;const me=function(){Es(s);const Pe=Array.from(arguments),Fe=new Set,$e=new Set;function lt(z){Fe.add(z)}function ct(z){$e.add(z)}Jt(p,{args:Pe,name:me[js],store:Y,after:lt,onError:ct});let de;try{de=Q.apply(this&&this.$id===e?this:Y,Pe)}catch(z){throw Jt($e,z),z}return de instanceof Promise?de.then(z=>(Jt(Fe,z),z)).catch(z=>(Jt($e,z),Promise.reject(z))):(Jt(Fe,de),de)};return me[po]=!0,me[js]=X,me},I={_p:s,$id:e,$onAction:ho.bind(null,p),$patch:D,$reset:H,$subscribe(Q,X={}){const me=ho(d,Q,X.detached,()=>Pe()),Pe=i.run(()=>jt(()=>s.state.value[e],Fe=>{(X.flush==="sync"?a:u)&&Q({storeId:e,type:Sn.direct,events:g},Fe)},$t({},c,X)));return me},$dispose:O},Y=Dn(I);s._s.set(e,Y);const re=(s._a&&s._a.runWithContext||tu)(()=>s._e.run(()=>(i=Jo()).run(()=>t({action:L}))));for(const Q in re){const X=re[Q];if(we(X)&&!ru(X)||At(X))o||(R&&su(X)&&(we(X)?X.value=R[Q]:tr(X,R[Q])),s.state.value[e][Q]=X);else if(typeof X=="function"){const me=L(X,Q);re[Q]=me,l.actions[Q]=X}}return $t(Y,re),$t(ne(Y),re),Object.defineProperty(Y,"$state",{get:()=>s.state.value[e],set:Q=>{D(X=>{$t(X,Q)})}}),s._p.forEach(Q=>{$t(Y,i.run(()=>Q({store:Y,app:s._a,pinia:s,options:l})))}),R&&o&&n.hydrate&&n.hydrate(Y.$state,R),u=!0,a=!0,Y}function iu(e,t,n){let s;const r=typeof t=="function";s=r?n:t;function o(i,l){const c=_c();return i=i||(c?Qe(sl,null):null),i&&Es(i),i=nl,i._s.has(e)||(r?ol(e,t,s,i):ou(e,s,i)),i._s.get(e)}return o.$id=e,o}const Zt=typeof document<"u";function il(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function lu(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&il(e.default)}const ge=Object.assign;function Fs(e,t){const n={};for(const s in t){const r=t[s];n[s]=it(r)?r.map(e):e(r)}return n}const En=()=>{},it=Array.isArray;function mo(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const ll=/#/g,cu=/&/g,au=/\//g,uu=/=/g,fu=/\?/g,cl=/\+/g,du=/%5B/g,hu=/%5D/g,al=/%5E/g,pu=/%60/g,ul=/%7B/g,mu=/%7C/g,fl=/%7D/g,gu=/%20/g;function Or(e){return e==null?"":encodeURI(""+e).replace(mu,"|").replace(du,"[").replace(hu,"]")}function vu(e){return Or(e).replace(ul,"{").replace(fl,"}").replace(al,"^")}function nr(e){return Or(e).replace(cl,"%2B").replace(gu,"+").replace(ll,"%23").replace(cu,"%26").replace(pu,"`").replace(ul,"{").replace(fl,"}").replace(al,"^")}function _u(e){return nr(e).replace(uu,"%3D")}function bu(e){return Or(e).replace(ll,"%23").replace(fu,"%3F")}function xu(e){return bu(e).replace(au,"%2F")}function In(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const yu=/\/$/,wu=e=>e.replace(yu,"");function Hs(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return c=l>=0&&c>l?-1:c,c>=0&&(s=t.slice(0,c),o=t.slice(c,l>0?l:t.length),r=e(o.slice(1))),l>=0&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=Ru(s??t,n),{fullPath:s+o+i,path:s,query:r,hash:In(i)}}function Su(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Eu(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&an(t.matched[s],n.matched[r])&&dl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function an(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function dl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Cu(e[n],t[n]))return!1;return!0}function Cu(e,t){return it(e)?go(e,t):it(t)?go(t,e):e?.valueOf()===t?.valueOf()}function go(e,t){return it(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Ru(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i<s.length;i++)if(l=s[i],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const It={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let sr=(function(e){return e.pop="pop",e.push="push",e})({}),vo=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});const Bs="";function Au(e){if(!e)if(Zt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),wu(e)}const ku=/^[^#]+#/;function Tu(e,t){return e.replace(ku,"#")+t}function Ou(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Pu=()=>({left:window.scrollX,top:window.scrollY});function Nu(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Ou(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function _o(e,t){return(history.state?history.state.position-t:-1)+e}const rr=new Map;function Mu(e,t){rr.set(e,t)}function Iu(e){const t=rr.get(e);return rr.delete(e),t}function $u(e){return typeof e=="string"||e&&typeof e=="object"}function hl(e){return typeof e=="string"||typeof e=="symbol"}let ye=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const pl=Symbol("");ye.MATCHER_NOT_FOUND+"",ye.NAVIGATION_GUARD_REDIRECT+"",ye.NAVIGATION_ABORTED+"",ye.NAVIGATION_CANCELLED+"",ye.NAVIGATION_DUPLICATED+"";function un(e,t){return ge(new Error,{type:e,[pl]:!0},t)}function wt(e,t){return e instanceof Error&&pl in e&&(t==null||!!(e.type&t))}const Lu=["params","query","hash"];function Du(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Lu)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Vu(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const r=n[s].replace(cl," "),o=r.indexOf("="),i=In(o<0?r:r.slice(0,o)),l=o<0?null:In(r.slice(o+1));if(i in t){let c=t[i];it(c)||(c=t[i]=[c]),c.push(l)}else t[i]=l}return t}function bo(e){let t="";for(let n in e){const s=e[n];if(n=_u(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(it(s)?s.map(r=>r&&nr(r)):[s&&nr(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function ju(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=it(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Fu=Symbol(""),xo=Symbol(""),Cs=Symbol(""),Pr=Symbol(""),or=Symbol("");function mn(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Dt(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const u=p=>{p===!1?c(un(ye.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?c(p):$u(p)?c(un(ye.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(i&&s.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),l())},a=o(()=>e.call(s&&s.instances[r],t,n,u));let d=Promise.resolve(a);e.length<3&&(d=d.then(u)),d.catch(p=>c(p))})}function Us(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(il(c)){const u=(c.__vccOpts||c)[t];u&&o.push(Dt(u,n,s,i,l,r))}else{let u=c();o.push(()=>u.then(a=>{if(!a)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const d=lu(a)?a.default:a;i.mods[l]=a,i.components[l]=d;const p=(d.__vccOpts||d)[t];return p&&Dt(p,n,s,i,l,r)()}))}}return o}function Hu(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const l=t.matched[i];l&&(e.matched.find(u=>an(u,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(u=>an(u,c))||r.push(c))}return[n,s,r]}function Bu(e=""){let t=[],n=[[Bs,{}]],s=0;e=Au(e);function r(l,c={}){s++,s!==n.length&&n.splice(s),n.push([l,c])}function o(l,c,{direction:u,delta:a}){const d={direction:u,delta:a,type:sr.pop};for(const p of t)p(l,c,d)}const i={location:Bs,state:{},base:e,createHref:Tu.bind(null,e),replace(l,c){n.splice(s--,1),r(l,c)},push(l,c){r(l,c)},listen(l){return t.push(l),()=>{const c=t.indexOf(l);c>-1&&t.splice(c,1)}},destroy(){t=[],n=[[Bs,{}]],s=0},go(l,c=!0){const u=this.location,a=l<0?vo.back:vo.forward;s=Math.max(0,Math.min(s+l,n.length-1)),c&&o(this.location,u,{direction:a,delta:l})}};return Object.defineProperty(i,"location",{enumerable:!0,get:()=>n[s][0]}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>n[s][1]}),i}let Kt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Ee=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Ee||{});const Uu={type:Kt.Static,value:""},qu=/[a-zA-Z0-9_]/;function Ku(e){if(!e)return[[]];if(e==="/")return[[Uu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=Ee.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,u="",a="";function d(){u&&(n===Ee.Static?o.push({type:Kt.Static,value:u}):n===Ee.Param||n===Ee.ParamRegExp||n===Ee.ParamRegExpEnd?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Kt.Param,value:u,regexp:a,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&n!==Ee.ParamRegExp){s=n,n=Ee.EscapeNext;continue}switch(n){case Ee.Static:c==="/"?(u&&d(),i()):c===":"?(d(),n=Ee.Param):p();break;case Ee.EscapeNext:p(),n=s;break;case Ee.Param:c==="("?n=Ee.ParamRegExp:qu.test(c)?p():(d(),n=Ee.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case Ee.ParamRegExp:c===")"?a[a.length-1]=="\\"?a=a.slice(0,-1)+c:n=Ee.ParamRegExpEnd:a+=c;break;case Ee.ParamRegExpEnd:d(),n=Ee.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--,a="";break;default:t("Unknown state");break}}return n===Ee.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),d(),i(),r}const yo="[^/]+?",Wu={sensitive:!1,strict:!1,start:!0,end:!0};var Be=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Be||{});const Gu=/[.+*?^${}()[\]/\\]/g;function zu(e,t){const n=ge({},Wu,t),s=[];let r=n.start?"^":"";const o=[];for(const u of e){const a=u.length?[]:[Be.Root];n.strict&&!u.length&&(r+="/");for(let d=0;d<u.length;d++){const p=u[d];let g=Be.Segment+(n.sensitive?Be.BonusCaseSensitive:0);if(p.type===Kt.Static)d||(r+="/"),r+=p.value.replace(Gu,"\\$&"),g+=Be.Static;else if(p.type===Kt.Param){const{value:R,repeatable:E,optional:D,regexp:H}=p;o.push({name:R,repeatable:E,optional:D});const O=H||yo;if(O!==yo){g+=Be.BonusCustomRegExp;try{`${O}`}catch(I){throw new Error(`Invalid custom RegExp for param "${R}" (${O}): `+I.message)}}let L=E?`((?:${O})(?:/(?:${O}))*)`:`(${O})`;d||(L=D&&u.length<2?`(?:/${L})`:"/"+L),D&&(L+="?"),r+=L,g+=Be.Dynamic,D&&(g+=Be.BonusOptional),E&&(g+=Be.BonusRepeatable),O===".*"&&(g+=Be.BonusWildcard)}a.push(g)}s.push(a)}if(n.strict&&n.end){const u=s.length-1;s[u][s[u].length-1]+=Be.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function l(u){const a=u.match(i),d={};if(!a)return null;for(let p=1;p<a.length;p++){const g=a[p]||"",R=o[p-1];d[R.name]=g&&R.repeatable?g.split("/"):g}return d}function c(u){let a="",d=!1;for(const p of e){(!d||!a.endsWith("/"))&&(a+="/"),d=!1;for(const g of p)if(g.type===Kt.Static)a+=g.value;else if(g.type===Kt.Param){const{value:R,repeatable:E,optional:D}=g,H=R in u?u[R]:"";if(it(H)&&!E)throw new Error(`Provided param "${R}" is an array but it is not repeatable (* or + modifiers)`);const O=it(H)?H.join("/"):H;if(!O)if(D)p.length<2&&(a.endsWith("/")?a=a.slice(0,-1):d=!0);else throw new Error(`Missing required param "${R}"`);a+=O}}return a||"/"}return{re:i,score:s,keys:o,parse:l,stringify:c}}function Ju(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===Be.Static+Be.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Be.Static+Be.Segment?1:-1:0}function ml(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=Ju(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(wo(s))return 1;if(wo(r))return-1}return r.length-s.length}function wo(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Yu={strict:!1,end:!0,sensitive:!1};function Qu(e,t,n){const s=zu(Ku(e.path),n),r=ge(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Xu(e,t){const n=[],s=new Map;t=mo(Yu,t);function r(d){return s.get(d)}function o(d,p,g){const R=!g,E=Eo(d);E.aliasOf=g&&g.record;const D=mo(t,d),H=[E];if("alias"in d){const I=typeof d.alias=="string"?[d.alias]:d.alias;for(const Y of I)H.push(Eo(ge({},E,{components:g?g.record.components:E.components,path:Y,aliasOf:g?g.record:E})))}let O,L;for(const I of H){const{path:Y}=I;if(p&&Y[0]!=="/"){const xe=p.record.path,re=xe[xe.length-1]==="/"?"":"/";I.path=p.record.path+(Y&&re+Y)}if(O=Qu(I,p,D),g?g.alias.push(O):(L=L||O,L!==O&&L.alias.push(O),R&&d.name&&!Co(O)&&i(d.name)),gl(O)&&c(O),E.children){const xe=E.children;for(let re=0;re<xe.length;re++)o(xe[re],O,g&&g.children[re])}g=g||O}return L?()=>{i(L)}:En}function i(d){if(hl(d)){const p=s.get(d);p&&(s.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&s.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function c(d){const p=tf(d,n);n.splice(p,0,d),d.record.name&&!Co(d)&&s.set(d.record.name,d)}function u(d,p){let g,R={},E,D;if("name"in d&&d.name){if(g=s.get(d.name),!g)throw un(ye.MATCHER_NOT_FOUND,{location:d});D=g.record.name,R=ge(So(p.params,g.keys.filter(L=>!L.optional).concat(g.parent?g.parent.keys.filter(L=>L.optional):[]).map(L=>L.name)),d.params&&So(d.params,g.keys.map(L=>L.name))),E=g.stringify(R)}else if(d.path!=null)E=d.path,g=n.find(L=>L.re.test(E)),g&&(R=g.parse(E),D=g.record.name);else{if(g=p.name?s.get(p.name):n.find(L=>L.re.test(p.path)),!g)throw un(ye.MATCHER_NOT_FOUND,{location:d,currentLocation:p});D=g.record.name,R=ge({},p.params,d.params),E=g.stringify(R)}const H=[];let O=g;for(;O;)H.unshift(O.record),O=O.parent;return{name:D,path:E,params:R,matched:H,meta:ef(H)}}e.forEach(d=>o(d));function a(){n.length=0,s.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:a,getRoutes:l,getRecordMatcher:r}}function So(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Eo(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Zu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Zu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Co(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ef(e){return e.reduce((t,n)=>ge(t,n.meta),{})}function tf(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;ml(e,t[o])<0?s=o:n=o+1}const r=nf(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function nf(e){let t=e;for(;t=t.parent;)if(gl(t)&&ml(e,t)===0)return t}function gl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ro(e){const t=Qe(Cs),n=Qe(Pr),s=F(()=>{const c=x(e.to);return t.resolve(c)}),r=F(()=>{const{matched:c}=s.value,{length:u}=c,a=c[u-1],d=n.matched;if(!a||!d.length)return-1;const p=d.findIndex(an.bind(null,a));if(p>-1)return p;const g=Ao(c[u-2]);return u>1&&Ao(a)===g&&d[d.length-1].path!==g?d.findIndex(an.bind(null,c[u-2])):p}),o=F(()=>r.value>-1&&cf(n.params,s.value.params)),i=F(()=>r.value>-1&&r.value===n.matched.length-1&&dl(n.params,s.value.params));function l(c={}){if(lf(c)){const u=t[x(e.replace)?"replace":"push"](x(e.to)).catch(En);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:s,href:F(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}function sf(e){return e.length===1?e[0]:e}const rf=pe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Ro,setup(e,{slots:t}){const n=Dn(Ro(e)),{options:s}=Qe(Cs),r=F(()=>({[ko(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[ko(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&sf(t.default(n));return e.custom?o:Mn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),of=rf;function lf(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function cf(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!it(r)||r.length!==s.length||s.some((o,i)=>o.valueOf()!==r[i].valueOf()))return!1}return!0}function Ao(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ko=(e,t,n)=>e??t??n,af=pe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Qe(or),r=F(()=>e.route||s.value),o=Qe(xo,0),i=F(()=>{let u=x(o);const{matched:a}=r.value;let d;for(;(d=a[u])&&!d.components;)u++;return u}),l=F(()=>r.value.matched[i.value]);Gn(xo,F(()=>i.value+1)),Gn(Fu,l),Gn(or,r);const c=_e();return jt(()=>[c.value,l.value,e.name],([u,a,d],[p,g,R])=>{a&&(a.instances[d]=u,g&&g!==a&&u&&u===p&&(a.leaveGuards.size||(a.leaveGuards=g.leaveGuards),a.updateGuards.size||(a.updateGuards=g.updateGuards))),u&&a&&(!g||!an(a,g)||!p)&&(a.enterCallbacks[d]||[]).forEach(E=>E(u))},{flush:"post"}),()=>{const u=r.value,a=e.name,d=l.value,p=d&&d.components[a];if(!p)return To(n.default,{Component:p,route:u});const g=d.props[a],R=g?g===!0?u.params:typeof g=="function"?g(u):g:null,D=Mn(p,ge({},R,t,{onVnodeUnmounted:H=>{H.component.isUnmounted&&(d.instances[a]=null)},ref:c}));return To(n.default,{Component:D,route:u})||D}}});function To(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const uf=af;function ff(e){const t=Xu(e.routes,e),n=e.parseQuery||Vu,s=e.stringifyQuery||bo,r=e.history,o=mn(),i=mn(),l=mn(),c=sc(It);let u=It;Zt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=Fs.bind(null,b=>""+b),d=Fs.bind(null,xu),p=Fs.bind(null,In);function g(b,M){let P,B;return hl(b)?(P=t.getRecordMatcher(b),B=M):B=b,t.addRoute(B,P)}function R(b){const M=t.getRecordMatcher(b);M&&t.removeRoute(M)}function E(){return t.getRoutes().map(b=>b.record)}function D(b){return!!t.getRecordMatcher(b)}function H(b,M){if(M=ge({},M||c.value),typeof b=="string"){const m=Hs(n,b,M.path),_=t.resolve({path:m.path},M),y=r.createHref(m.fullPath);return ge(m,_,{params:p(_.params),hash:In(m.hash),redirectedFrom:void 0,href:y})}let P;if(b.path!=null)P=ge({},b,{path:Hs(n,b.path,M.path).path});else{const m=ge({},b.params);for(const _ in m)m[_]==null&&delete m[_];P=ge({},b,{params:d(m)}),M.params=d(M.params)}const B=t.resolve(P,M),Z=b.hash||"";B.params=a(p(B.params));const f=Su(s,ge({},b,{hash:vu(Z),path:B.path})),h=r.createHref(f);return ge({fullPath:f,hash:Z,query:s===bo?ju(b.query):b.query||{}},B,{redirectedFrom:void 0,href:h})}function O(b){return typeof b=="string"?Hs(n,b,c.value.path):ge({},b)}function L(b,M){if(u!==b)return un(ye.NAVIGATION_CANCELLED,{from:M,to:b})}function I(b){return re(b)}function Y(b){return I(ge(O(b),{replace:!0}))}function xe(b,M){const P=b.matched[b.matched.length-1];if(P&&P.redirect){const{redirect:B}=P;let Z=typeof B=="function"?B(b,M):B;return typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=O(Z):{path:Z},Z.params={}),ge({query:b.query,hash:b.hash,params:Z.path!=null?{}:b.params},Z)}}function re(b,M){const P=u=H(b),B=c.value,Z=b.state,f=b.force,h=b.replace===!0,m=xe(P,B);if(m)return re(ge(O(m),{state:typeof m=="object"?ge({},Z,m.state):Z,force:f,replace:h}),M||P);const _=P;_.redirectedFrom=M;let y;return!f&&Eu(s,B,P)&&(y=un(ye.NAVIGATION_DUPLICATED,{to:_,from:B}),tt(B,B,!0,!1)),(y?Promise.resolve(y):me(_,B)).catch(v=>wt(v)?wt(v,ye.NAVIGATION_GUARD_REDIRECT)?v:at(v):te(v,_,B)).then(v=>{if(v){if(wt(v,ye.NAVIGATION_GUARD_REDIRECT))return re(ge({replace:h},O(v.to),{state:typeof v.to=="object"?ge({},Z,v.to.state):Z,force:f}),M||_)}else v=Fe(_,B,!0,h,Z);return Pe(_,B,v),v})}function Q(b,M){const P=L(b,M);return P?Promise.reject(P):Promise.resolve()}function X(b){const M=V.values().next().value;return M&&typeof M.runWithContext=="function"?M.runWithContext(b):b()}function me(b,M){let P;const[B,Z,f]=Hu(b,M);P=Us(B.reverse(),"beforeRouteLeave",b,M);for(const m of B)m.leaveGuards.forEach(_=>{P.push(Dt(_,b,M))});const h=Q.bind(null,b,M);return P.push(h),ce(P).then(()=>{P=[];for(const m of o.list())P.push(Dt(m,b,M));return P.push(h),ce(P)}).then(()=>{P=Us(Z,"beforeRouteUpdate",b,M);for(const m of Z)m.updateGuards.forEach(_=>{P.push(Dt(_,b,M))});return P.push(h),ce(P)}).then(()=>{P=[];for(const m of f)if(m.beforeEnter)if(it(m.beforeEnter))for(const _ of m.beforeEnter)P.push(Dt(_,b,M));else P.push(Dt(m.beforeEnter,b,M));return P.push(h),ce(P)}).then(()=>(b.matched.forEach(m=>m.enterCallbacks={}),P=Us(f,"beforeRouteEnter",b,M,X),P.push(h),ce(P))).then(()=>{P=[];for(const m of i.list())P.push(Dt(m,b,M));return P.push(h),ce(P)}).catch(m=>wt(m,ye.NAVIGATION_CANCELLED)?m:Promise.reject(m))}function Pe(b,M,P){l.list().forEach(B=>X(()=>B(b,M,P)))}function Fe(b,M,P,B,Z){const f=L(b,M);if(f)return f;const h=M===It,m=Zt?history.state:{};P&&(B||h?r.replace(b.fullPath,ge({scroll:h&&m&&m.scroll},Z)):r.push(b.fullPath,Z)),c.value=b,tt(b,M,P,h),at()}let $e;function lt(){$e||($e=r.listen((b,M,P)=>{if(!ve.listening)return;const B=H(b),Z=xe(B,ve.currentRoute.value);if(Z){re(ge(Z,{replace:!0,force:!0}),B).catch(En);return}u=B;const f=c.value;Zt&&Mu(_o(f.fullPath,P.delta),Pu()),me(B,f).catch(h=>wt(h,ye.NAVIGATION_ABORTED|ye.NAVIGATION_CANCELLED)?h:wt(h,ye.NAVIGATION_GUARD_REDIRECT)?(re(ge(O(h.to),{force:!0}),B).then(m=>{wt(m,ye.NAVIGATION_ABORTED|ye.NAVIGATION_DUPLICATED)&&!P.delta&&P.type===sr.pop&&r.go(-1,!1)}).catch(En),Promise.reject()):(P.delta&&r.go(-P.delta,!1),te(h,B,f))).then(h=>{h=h||Fe(B,f,!1),h&&(P.delta&&!wt(h,ye.NAVIGATION_CANCELLED)?r.go(-P.delta,!1):P.type===sr.pop&&wt(h,ye.NAVIGATION_ABORTED|ye.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),Pe(B,f,h)}).catch(En)}))}let ct=mn(),de=mn(),z;function te(b,M,P){at(b);const B=de.list();return B.length?B.forEach(Z=>Z(b,M,P)):console.error(b),Promise.reject(b)}function Ae(){return z&&c.value!==It?Promise.resolve():new Promise((b,M)=>{ct.add([b,M])})}function at(b){return z||(z=!b,lt(),ct.list().forEach(([M,P])=>b?P(b):M()),ct.reset()),b}function tt(b,M,P,B){const{scrollBehavior:Z}=e;if(!Zt||!Z)return Promise.resolve();const f=!P&&Iu(_o(b.fullPath,0))||(B||!P)&&history.state&&history.state.scroll||null;return yr().then(()=>Z(b,M,f)).then(h=>h&&Nu(h)).catch(h=>te(h,b,M))}const Le=b=>r.go(b);let Mt;const V=new Set,ve={currentRoute:c,listening:!0,addRoute:g,removeRoute:R,clearRoutes:t.clearRoutes,hasRoute:D,getRoutes:E,resolve:H,options:e,push:I,replace:Y,go:Le,back:()=>Le(-1),forward:()=>Le(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:de.add,isReady:Ae,install(b){b.component("RouterLink",of),b.component("RouterView",uf),b.config.globalProperties.$router=ve,Object.defineProperty(b.config.globalProperties,"$route",{enumerable:!0,get:()=>x(c)}),Zt&&!Mt&&c.value===It&&(Mt=!0,I(r.location).catch(B=>{}));const M={};for(const B in It)Object.defineProperty(M,B,{get:()=>c.value[B],enumerable:!0});b.provide(Cs,ve),b.provide(Pr,fi(M)),b.provide(or,c);const P=b.unmount;V.add(b),b.unmount=function(){V.delete(b),V.size<1&&(u=It,$e&&$e(),$e=null,c.value=It,Mt=!1,z=!1),P()}}};function ce(b){return b.reduce((M,P)=>M.then(()=>X(P)),Promise.resolve())}return ve}function vl(){return Qe(Cs)}function df(e){return Qe(Pr)}const Oo=e=>e==="";const hf=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();const Po=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const pf=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,s)=>s?s.toUpperCase():n.toLowerCase());const mf=e=>{const t=pf(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Yt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const gf=Symbol("lucide-icons");function vf(){return Qe(gf,{})}const _f=({name:e,iconNode:t,"icon-node":n,absoluteStrokeWidth:s,"absolute-stroke-width":r,strokeWidth:o,"stroke-width":i,size:l,color:c,...u},{slots:a})=>{const{size:d,color:p,strokeWidth:g=2,absoluteStrokeWidth:R=!1,class:E=""}=vf(),D=F(()=>{const H=Oo(s)||Oo(r)||s===!0||r===!0||R===!0,O=o||i||g||Yt["stroke-width"];return H?Number(O)*24/Number(l??d??Yt.width):O});return Mn("svg",{...Yt,...u,width:l??d??Yt.width,height:l??d??Yt.height,stroke:c??p??Yt.stroke,"stroke-width":D.value,class:hf("lucide",E,...e?[`lucide-${Po(mf(e))}-icon`,`lucide-${Po(e)}`]:["lucide-icon"])},[...(t??n??[]).map(H=>Mn(...H)),...a.default?[a.default()]:[]])};const Oe=(e,t)=>(n,{slots:s,attrs:r})=>Mn(_f,{...r,...n,iconNode:t,name:e},s.default?{default:s.default}:void 0);const bf=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],ir=Oe("activity",bf);const xf=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],yf=Oe("check",xf);const wf=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],qs=Oe("clock",wf);const Sf=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ef=Oe("copy",Sf);const Cf=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],on=Oe("database",Cf);const Rf=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Af=Oe("external-link",Rf);const kf=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],lr=Oe("file-braces",kf);const Tf=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],Jn=Oe("hard-drive",Tf);const Of=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],Pf=Oe("inbox",Of);const Nf=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],Yn=Oe("key-round",Nf);const Mf=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],_l=Oe("list-tree",Mf);const If=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Qn=Oe("mail",If);const $f=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],Lf=Oe("maximize-2",$f);const Df=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],Vf=Oe("minimize-2",Df);const jf=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],Cn=Oe("network",jf);const Ff=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],cr=Oe("scroll-text",Ff);const Hf=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Bf=Oe("search",Hf);const Uf=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],bl=Oe("triangle-alert",Uf),Ft=pe({__name:"Icon",props:{icon:{},size:{},stroke:{},class:{}},setup(e){return(t,n)=>(S(),fe(Lc(e.icon),{size:e.size??14,"stroke-width":e.stroke??2,class:Re(["shrink-0",t.$props.class])},null,8,["size","stroke-width","class"]))}}),qf={key:1,class:"text-[10px] uppercase tracking-wider text-[var(--dt-faint)]"},nt=pe({__name:"Chip",props:{label:{},value:{},icon:{},tone:{},active:{type:Boolean},compact:{type:Boolean}},emits:["click"],setup(e){return(t,n)=>(S(),$("button",{type:"button",class:Re(["inline-flex min-h-[var(--dt-touch)] items-center gap-1.5 border border-solid px-2.5 text-left transition-colors",[e.compact?"rounded-[4px] py-1":"rounded-[var(--dt-radius)] py-1.5",e.active?"border-[var(--dt-accent)] bg-[var(--dt-accent-dim)]":"border-[var(--dt-border)] bg-[var(--dt-surface)] hover:border-[var(--dt-border-strong)] hover:bg-[var(--dt-surface-2)]"]]),style:bt({borderLeftWidth:"3px",borderLeftColor:e.tone==="ok"?"var(--dt-ok)":e.tone==="warn"?"var(--dt-warn)":e.tone==="err"?"var(--dt-err)":e.tone==="info"?"var(--dt-info)":"var(--dt-border-strong)"}),onClick:n[0]||(n[0]=s=>t.$emit("click",s))},[e.icon?(S(),fe(Ft,{key:0,icon:e.icon,size:13,class:"text-[var(--dt-muted)]"},null,8,["icon"])):ke("",!0),e.label?(S(),$("span",qf,J(e.label),1)):ke("",!0),k("span",{class:Re(["dt-mono text-[12px] font-medium",{"text-[var(--dt-text)]":!e.tone||e.tone==="default","text-[var(--dt-ok)]":e.tone==="ok","text-[var(--dt-warn)]":e.tone==="warn","text-[var(--dt-err)]":e.tone==="err","text-[var(--dt-info)]":e.tone==="info"}])},J(e.value),3)],6))}}),Kf=["width","height","viewBox"],Wf=["d","stroke"],xl=pe({__name:"Sparkline",props:{values:{},width:{default:96},height:{default:22},stroke:{default:"var(--dt-accent)"}},setup(e){const t=e,n=F(()=>{const s=t.values.length?t.values:[0],r=Math.max(...s,1),o=Math.min(...s,0),i=Math.max(r-o,1e-6),l=s.length,c=t.width,u=t.height,a=2;return s.map((d,p)=>{const g=l===1?c/2:p/(l-1)*(c-a*2)+a,R=u-a-(d-o)/i*(u-a*2);return`${p===0?"M":"L"}${g.toFixed(1)},${R.toFixed(1)}`}).join(" ")});return(s,r)=>(S(),$("svg",{width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,class:"block overflow-visible","aria-hidden":"true"},[k("path",{class:"dt-spark-path",d:n.value,fill:"none",stroke:e.stroke,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Wf)],8,Kf))}});async function No(e,t){if(!t)return null;const n=await fetch(`${e}/requests/${encodeURIComponent(t)}`);return n.ok?await n.json():null}async function Mo(e){const t=await fetch(`${e}/requests`);return t.ok?await t.json():[]}async function Gf(e){const t=await fetch(`${e}/config`);return t.ok?t.json():{}}async function zf(e){const t=await fetch(`${e}/logs`);return t.ok?await t.json():[]}const yl="sova.devtools.v2",wl="sova.devtools.spark",Sl="sova.devtools.panelH",Jf="sova.devtools",Yf="sova-dt-panel-h",Io={open:!1,tab:"request"};function El(){try{const e=sessionStorage.getItem(yl);if(!e)return{...Io};const t=JSON.parse(e);return{open:!!t.open,tab:t.tab||"request"}}catch{return{...Io}}}function Qf(e){try{sessionStorage.setItem(yl,JSON.stringify(e))}catch{}}function Xf(e){const t={...El(),...e};return Qf(t),t}function Cl(){try{const e=sessionStorage.getItem(wl);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(n=>typeof n=="number").slice(-40):[]}catch{return[]}}function ar(e){const t=[...Cl(),e].slice(-40);try{sessionStorage.setItem(wl,JSON.stringify(t))}catch{}return t}function Zf(){try{const e=Number(sessionStorage.getItem(Sl));if(Number.isFinite(e)&&e>=220&&e<=800)return e}catch{}return 420}function ed(e){try{sessionStorage.setItem(Sl,String(Math.round(e)))}catch{}}function _t(e){return e>=500?"err":e>=400?"warn":"ok"}function Vt(e){return e==null||Number.isNaN(e)?"—":`${e.toFixed(1)}ms`}function $o(e){return e?.length?e.reduce((t,n)=>t+(n.duration_ms??0),0):0}const Lo="sova.devtools.fs";function td(){const t=document.getElementById("sova-devtools")?.dataset??{},n=t.statusClass||"ok",r=new URLSearchParams(location.search).get("embed")==="1"||window!==window.top,o=t.shell==="1"||location.pathname.startsWith("/_devtools/app")||t.playground==="1";return{snap:t.snap||"",status:Number(t.status||0),statusClass:n==="warn"||n==="err"?n:"ok",ms:Number(t.ms||0),sql:Number(t.sql||0),errors:Number(t.errors||0),api:t.api||"/_devtools",events:t.events||"/_devtools/events",shell:o,embed:r}}function nd(e,t,n,s){t.value={...t.value,snap:e.snap,status:e.status,statusClass:e.statusClass,ms:e.ms,sql:e.sql,errors:e.errors},e.snap&&(n.value=e.snap),e.ms>0&&(s.value=ar(e.ms))}const Ge=iu("devtools",()=>{const e=El(),t=_e(td()),n=_e(document.getElementById("sova-devtools")?.dataset.playground==="1"),s=_e(t.value.embed||n.value?!0:e.open||t.value.shell),r=_e(e.tab),o=_e(t.value.snap),i=_e(null),l=_e([]),c=_e([]),u=_e(null),a=_e(!1),d=_e(null),p=_e(Cl()),g=_e(Zf()),R=_e((()=>{try{return sessionStorage.getItem(Lo)==="1"}catch{return!1}})()),E=F(()=>t.value.api),D=F(()=>t.value.embed),H=F(()=>t.value.shell),O=F(()=>n.value),L=F(()=>$o(i.value?.queries)),I=F(()=>$o(i.value?.http)),Y=F(()=>i.value?.logs.filter(V=>String(V.level).toUpperCase().includes("ERROR")).length??0),xe=F(()=>{let V=0,ve=0,ce=0;for(const b of l.value.slice(0,50)){const M=_t(b.status);M==="ok"?V++:M==="warn"?ve++:ce++}return{ok:V,warn:ve,err:ce}}),re=F(()=>{const V=l.value.slice(0,40).map(ve=>ve.duration_ms).reverse();return V.length?V:p.value}),Q=F(()=>{const V=i.value;return{request:0,timeline:l.value.length,db:V?.queries.length??0,logs:V?.logs.length||c.value.length,http:V?.http.length??0,mail:V?.mail.length??0,jobs:V?.jobs.length??0,auth:V?.auth?.session_keys?.length??0,config:0}}),X=F(()=>R.value?Math.max(320,window.innerHeight-40):g.value);function me(){n.value||Xf({open:s.value,tab:r.value})}jt([s,r],me);function Pe(V){const ve=Math.min(800,Math.max(220,V));if(g.value=ve,ed(ve),D.value&&window.parent!==window)try{window.parent.postMessage({type:Yf,height:ve},"*")}catch{}}function Fe(){R.value=!R.value;try{sessionStorage.setItem(Lo,R.value?"1":"0")}catch{}}function $e(){D.value||n.value||(s.value=!s.value,s.value&&Ae())}function lt(){D.value||n.value||(s.value=!1)}function ct(V){r.value=V,Ae()}function de(V){o.value=V,r.value="request",Ae()}function z(V){l.value=[V,...l.value].slice(0,100),p.value=ar(V.duration_ms)}function te(V){l.value=V.timeline,i.value=V.current,o.value=V.current.id,c.value=V.logs,u.value=V.config,t.value={...t.value,snap:V.current.id,status:V.current.status,statusClass:_t(V.current.status),ms:V.current.duration_ms,sql:V.current.queries.length,errors:V.current.logs.filter(ve=>String(ve.level).toUpperCase().includes("ERROR")).length},p.value=V.timeline.map(ve=>ve.duration_ms).reverse(),a.value=!1}async function Ae(){if(!n.value&&!(!s.value&&!D.value)){a.value=!0,d.value=null;try{if(r.value==="timeline")l.value=await Mo(E.value);else if(r.value==="config")u.value=await Gf(E.value);else if(r.value==="logs"&&!o.value)c.value=await zf(E.value);else if(o.value)i.value=await No(E.value,o.value);else{const V=await Mo(E.value);l.value=V,V[0]&&(o.value=V[0].id,i.value=await No(E.value,V[0].id))}}catch(V){d.value=V instanceof Error?V.message:String(V)}finally{a.value=!1}}}function at(){if(!n.value)try{new BroadcastChannel(Jf).addEventListener("message",ve=>{const ce=ve.data;!ce||typeof ce!="object"||(ce.type==="page"?(nd(ce,t,o,p),(s.value||D.value)&&Ae()):ce.type==="ui"&&!D.value&&(s.value=ce.open,ce.tab&&(r.value=ce.tab),s.value&&Ae()))})}catch{}}function tt(){if(!n.value)try{new EventSource(t.value.events).addEventListener("request.finished",ve=>{try{const ce=JSON.parse(ve.data);ce.meta&&(z(ce.meta),(s.value||D.value)&&r.value==="timeline"&&Ae())}catch{}})}catch{}}function Le(V){V.key==="Escape"&&lt()}function Mt(){t.value.ms>0&&!p.value.length&&(p.value=ar(t.value.ms)),at(),tt(),window.addEventListener("keydown",Le),n.value||Ae()}return{mount:t,open:s,tab:r,snapId:o,current:i,timeline:l,globalLogs:c,config:u,loading:a,error:d,spark:p,sparkFromTimeline:re,panelH:g,effectivePanelH:X,fullscreen:R,isEmbed:D,isShell:H,isPlayground:O,sqlTotalMs:L,httpTotalMs:I,logErrorCount:Y,statusBuckets:xe,tabBadges:Q,toggle:$e,close:lt,setTab:ct,openSnap:de,refresh:Ae,setPanelH:Pe,toggleFullscreen:Fe,loadMock:te,boot:Mt}}),sd={class:"fixed inset-x-0 bottom-0 z-[var(--dt-z)] flex h-[var(--dt-bar-h)] select-none items-stretch gap-1.5 border-t border-[var(--dt-border-strong)] bg-[var(--dt-bg)] px-2 py-1 text-[var(--dt-text)]",role:"toolbar","aria-label":"Sova DevTools"},rd={class:"dt-scroll flex min-w-0 flex-1 items-center gap-1.5 overflow-x-auto"},od={class:"ml-1 hidden items-center sm:flex"},id=["title"],ld="/_devtools/app",cd=pe({__name:"Toolbar",setup(e){const t=Ge(),n=F(()=>{const i=t.mount;return i.status?_t(i.status):i.statusClass});function s(){t.toggle()}function r(i){i.stopPropagation(),window.open(ld,"_blank","noopener,noreferrer")}function o(i){i.stopPropagation(),t.toggleFullscreen()}return(i,l)=>(S(),$("div",sd,[k("button",{type:"button",class:"inline-flex min-h-[var(--dt-touch)] shrink-0 cursor-pointer items-center rounded-[var(--dt-radius)] border border-[var(--dt-border)] bg-[var(--dt-surface)] px-2.5 text-[13px] font-bold tracking-wide text-[var(--dt-accent)] hover:border-[var(--dt-border-strong)]",title:"Toggle panel",onClick:s}," Sova "),k("div",rd,[j(nt,{label:"status",value:String(x(t).mount.status||"—"),tone:n.value,compact:"",onClick:s},null,8,["value","tone"]),j(nt,{label:"time",value:x(t).mount.ms.toFixed(1)+"ms",compact:"",onClick:s},null,8,["value"]),j(nt,{label:"sql",value:String(x(t).mount.sql),icon:x(on),tone:"info",compact:"",onClick:s},null,8,["value","icon"]),j(nt,{label:"err",value:String(x(t).mount.errors),icon:x(bl),tone:x(t).mount.errors?"err":"default",compact:"",onClick:s},null,8,["value","icon","tone"]),k("div",od,[j(xl,{values:x(t).sparkFromTimeline,width:72,height:16},null,8,["values"])])]),x(t).isShell?ke("",!0):(S(),$("button",{key:0,type:"button",class:"hidden min-h-[var(--dt-touch)] cursor-pointer items-center gap-1 rounded-[var(--dt-radius)] border border-[var(--dt-border)] bg-[var(--dt-surface)] px-2 text-[11px] text-[var(--dt-muted)] hover:text-[var(--dt-text)] sm:inline-flex",title:"Open in new tab",onClick:r},[j(Ft,{icon:x(Af),size:12},null,8,["icon"]),l[0]||(l[0]=rn(" Tab ",-1))])),k("button",{type:"button",class:"inline-flex min-h-[var(--dt-touch)] cursor-pointer items-center rounded-[var(--dt-radius)] border border-[var(--dt-border)] bg-[var(--dt-surface)] px-2 text-[var(--dt-muted)] hover:text-[var(--dt-text)]",title:x(t).fullscreen?"Exit fullscreen":"Fullscreen panel",onClick:o},[j(Ft,{icon:x(t).fullscreen?x(Vf):x(Lf),size:14},null,8,["icon"])],8,id)]))}}),Nr=[{id:"request",label:"Request",icon:ir},{id:"timeline",label:"Timeline",icon:_l},{id:"db",label:"DB",icon:on},{id:"logs",label:"Logs",icon:cr},{id:"http",label:"HTTP",icon:Cn},{id:"mail",label:"Mail",icon:Qn},{id:"jobs",label:"Jobs",icon:Jn},{id:"auth",label:"Auth",icon:Yn},{id:"config",label:"Config",icon:lr}],ad={class:"dt-scroll flex shrink-0 items-stretch gap-0 overflow-x-auto scroll-smooth border-b border-[var(--dt-border)] bg-[var(--dt-surface)] px-1 snap-x",role:"tablist","aria-label":"DevTools tabs"},ud=["aria-selected","onClick"],fd={class:"whitespace-nowrap"},dd=pe({__name:"TabNav",setup(e){const t=Ge(),n=vl();function s(r){t.setTab(r),n.push({name:r})}return(r,o)=>(S(),$("nav",ad,[(S(!0),$(ue,null,We(x(Nr),i=>(S(),$("button",{key:i.id,type:"button",role:"tab","aria-selected":x(t).tab===i.id,class:Re(["relative inline-flex min-h-[var(--dt-touch)] snap-start cursor-pointer items-center gap-1.5 border-0 border-b-2 bg-transparent px-3 text-[12px] transition-colors",x(t).tab===i.id?"border-[var(--dt-accent)] text-[var(--dt-text)]":"border-transparent text-[var(--dt-muted)] hover:text-[var(--dt-text)]"]),onClick:tl(l=>s(i.id),["stop"])},[j(Ft,{icon:i.icon,size:13,class:Re(x(t).tab===i.id?"text-[var(--dt-accent)]":"text-current")},null,8,["icon","class"]),k("span",fd,J(i.label),1),x(t).tabBadges[i.id]?(S(),$("span",{key:0,class:Re(["dt-mono rounded px-1 text-[10px]",x(t).tab===i.id?"bg-[var(--dt-accent-dim)] text-[var(--dt-accent)]":"bg-[var(--dt-surface-2)] text-[var(--dt-faint)]"])},J(x(t).tabBadges[i.id]),3)):ke("",!0)],10,ud))),128))]))}}),hd={class:"flex flex-col gap-2 p-1"},pd=pe({__name:"Skeleton",props:{rows:{default:4},cols:{default:1}},setup(e){return(t,n)=>(S(),$("div",hd,[(S(!0),$(ue,null,We(e.rows,s=>(S(),$("div",{key:s,class:"grid gap-2",style:bt({gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`})},[(S(!0),$(ue,null,We(e.cols,r=>(S(),$("div",{key:r,class:"h-7 animate-pulse rounded-[var(--dt-radius)] bg-[var(--dt-surface-2)]"}))),128))],4))),128))]))}}),md={class:"flex min-h-[var(--dt-touch)] items-center gap-2 rounded-[var(--dt-radius)] border border-[var(--dt-border)] bg-[var(--dt-bg)] px-2.5 focus-within:border-[var(--dt-accent)]"},gd=["placeholder"],Rs=pe({__name:"SearchField",props:Vc({placeholder:{}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Wc(e,"modelValue");return(n,s)=>(S(),$("label",md,[j(Ft,{icon:x(Bf),size:14,class:"text-[var(--dt-faint)]"},null,8,["icon"]),bi(k("input",{"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),type:"search",class:"min-w-0 flex-1 border-0 bg-transparent py-2 text-[12px] text-[var(--dt-text)] outline-none placeholder:text-[var(--dt-faint)]",placeholder:e.placeholder||"Filter…"},null,8,gd),[[Wa,t.value]])]))}}),vd={class:"flex h-full flex-col"},_d={class:"shrink-0 border-b border-[var(--dt-border)] p-2"},bd={class:"dt-scroll flex-1 overflow-auto",role:"listbox","aria-label":"Requests"},xd={key:0,class:"m-0 p-4 text-center text-[11px] text-[var(--dt-faint)]"},yd=["aria-selected","onClick"],wd={class:"flex items-center gap-2"},Sd={class:"dt-mono text-[10px] text-[var(--dt-accent)]"},Ed={class:"dt-mono ml-auto text-[10px] text-[var(--dt-muted)]"},Cd=["title"],Rd={class:"h-0.5 overflow-hidden rounded-sm bg-[var(--dt-bg)]"},Ad=pe({__name:"RequestList",setup(e){const t=Ge(),n=_e(""),s=F(()=>Math.max(...t.timeline.map(o=>o.duration_ms),1)),r=F(()=>{const o=n.value.trim().toLowerCase();return o?t.timeline.filter(i=>i.path.toLowerCase().includes(o)||i.method.toLowerCase().includes(o)||String(i.status).includes(o)||i.id.toLowerCase().includes(o)):t.timeline});return(o,i)=>(S(),$("div",vd,[k("div",_d,[j(Rs,{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=l=>n.value=l),placeholder:"Filter requests…"},null,8,["modelValue"])]),k("div",bd,[r.value.length?ke("",!0):(S(),$("p",xd," No requests ")),(S(!0),$(ue,null,We(r.value,l=>(S(),$("button",{key:l.id,type:"button",role:"option","aria-selected":x(t).snapId===l.id,class:Re(["flex w-full min-h-[var(--dt-touch)] cursor-pointer flex-col gap-1 border-0 border-b border-[var(--dt-border)] border-l-[3px] bg-transparent px-2.5 py-2 text-left transition-colors",x(t).snapId===l.id?"border-l-[var(--dt-accent)] bg-[var(--dt-accent-dim)]":"border-l-transparent hover:bg-[var(--dt-surface-2)]"]),onClick:c=>x(t).openSnap(l.id)},[k("div",wd,[k("span",{class:Re(["dt-mono text-[11px] font-semibold",{"text-[var(--dt-ok)]":x(_t)(l.status)==="ok","text-[var(--dt-warn)]":x(_t)(l.status)==="warn","text-[var(--dt-err)]":x(_t)(l.status)==="err"}])},J(l.status),3),k("span",Sd,J(l.method),1),k("span",Ed,J(l.duration_ms.toFixed(0))+"ms",1)]),k("div",{class:"truncate text-[11px] text-[var(--dt-text)]",title:l.path},J(l.path),9,Cd),k("div",Rd,[k("div",{class:"h-full rounded-sm bg-[var(--dt-accent)] opacity-70",style:bt({width:Math.min(100,l.duration_ms/s.value*100)+"%"})},null,4)])],10,yd))),128))])]))}}),kd={class:"m-0 overflow-hidden rounded-[var(--dt-radius)] border border-[var(--dt-border)]"},Td={class:"border-r border-[var(--dt-border)] bg-[var(--dt-surface-2)] px-3 py-2 text-[11px] text-[var(--dt-faint)]"},Od=["title"],Pd={class:"min-w-0 flex-1 truncate"},Nd=["onClick"],$n=pe({__name:"DefList",props:{items:{}},setup(e){async function t(n){try{await navigator.clipboard.writeText(n)}catch{}}return(n,s)=>(S(),$("dl",kd,[(S(!0),$(ue,null,We(e.items,(r,o)=>(S(),$("div",{key:o,class:"grid grid-cols-[7.5rem_1fr] border-b border-[var(--dt-border)] last:border-b-0 sm:grid-cols-[9rem_1fr]"},[k("dt",Td,J(r.label),1),k("dd",{class:Re(["m-0 flex min-w-0 items-center gap-2 px-3 py-2 text-[12px]",r.mono!==!1?"dt-mono":""]),title:r.value},[k("span",Pd,J(r.value),1),k("button",{type:"button",class:"shrink-0 cursor-pointer rounded border border-[var(--dt-border)] bg-[var(--dt-bg)] px-1.5 py-0.5 text-[10px] text-[var(--dt-muted)] hover:text-[var(--dt-text)]",title:"Copy",onClick:i=>t(r.value)}," copy ",8,Nd)],10,Od)]))),128))]))}}),Md={class:"flex flex-col items-center justify-center gap-2 px-4 py-10 text-center"},Id={class:"flex h-10 w-10 items-center justify-center rounded-full border border-[var(--dt-border)] bg-[var(--dt-surface)] text-[var(--dt-faint)]"},$d={class:"m-0 text-[13px] font-medium text-[var(--dt-muted)]"},Ld={key:0,class:"m-0 max-w-sm text-[11px] text-[var(--dt-faint)]"},et=pe({__name:"EmptyState",props:{title:{},hint:{},icon:{}},setup(e){const t=e,n=F(()=>t.icon??Pf);return(s,r)=>(S(),$("div",Md,[k("div",Id,[j(Ft,{icon:n.value,size:18},null,8,["icon"])]),k("p",$d,J(e.title),1),e.hint?(S(),$("p",Ld,J(e.hint),1)):ke("",!0)]))}}),Dd={key:0,class:"flex min-h-9 items-center gap-2 border-b border-[var(--dt-border)] bg-[var(--dt-surface-2)] px-3 py-2"},Vd={key:1,class:"m-0 text-[12px] font-semibold tracking-wide"},jd={key:2,class:"text-[11px] text-[var(--dt-faint)]"},Fd={class:"ml-auto flex items-center gap-2"},Hd={class:"p-3"},Xe=pe({__name:"Pane",props:{title:{},icon:{},hint:{},tone:{}},setup(e){return(t,n)=>(S(),$("section",{class:Re(["overflow-hidden rounded-[var(--dt-radius)] border bg-[var(--dt-surface)]",{"border-[var(--dt-border)]":!e.tone||e.tone==="default","border-[var(--dt-warn)]":e.tone==="warn","border-[var(--dt-err)]":e.tone==="err"}])},[e.title||t.$slots.actions?(S(),$("header",Dd,[e.icon?(S(),fe(Ft,{key:0,icon:e.icon,size:14,class:"text-[var(--dt-accent)]"},null,8,["icon"])):ke("",!0),e.title?(S(),$("h3",Vd,J(e.title),1)):ke("",!0),e.hint?(S(),$("span",jd,J(e.hint),1)):ke("",!0),k("div",Fd,[qr(t.$slots,"actions")])])):ke("",!0),k("div",Hd,[qr(t.$slots,"default")])],2))}}),Bd={class:"flex flex-col gap-2"},Ud={class:"flex items-baseline justify-between"},qd={class:"dt-mono text-[12px] text-[var(--dt-text)]"},Kd={class:"relative h-3 overflow-hidden rounded-sm border border-[var(--dt-border)] bg-[var(--dt-bg)]"},Wd=["title"],Gd={class:"flex flex-wrap gap-x-4 gap-y-1"},zd={class:"dt-mono text-[var(--dt-text)]"},Jd=pe({__name:"Waterfall",props:{totalMs:{},segments:{}},setup(e){const t=e,n=F(()=>{const s=Math.max(t.totalMs,.001);let r=0;return t.segments.map(o=>{const i=Math.max(o.ms,0),l=r/s*100,c=Math.min(i/s*100,100-l);return r+=i,{...o,ms:i,left:l,width:c}})});return(s,r)=>(S(),$("div",Bd,[k("div",Ud,[r[0]||(r[0]=k("span",{class:"text-[11px] text-[var(--dt-muted)]"},"Request waterfall",-1)),k("span",qd,J(e.totalMs.toFixed(1))+"ms total",1)]),k("div",Kd,[(S(!0),$(ue,null,We(n.value,(o,i)=>(S(),$("div",{key:i,class:"absolute top-0 h-full",style:bt({left:o.left+"%",width:Math.max(o.width,o.ms>0?.4:0)+"%",background:o.color||"var(--dt-accent)"}),title:`${o.label}: ${o.ms.toFixed(1)}ms`},null,12,Wd))),128))]),k("div",Gd,[(S(!0),$(ue,null,We(n.value,(o,i)=>(S(),$("div",{key:"l"+i,class:"flex items-center gap-1.5 text-[11px] text-[var(--dt-muted)]"},[k("span",{class:"inline-block h-2 w-2 rounded-sm",style:bt({background:o.color||"var(--dt-accent)"})},null,4),k("span",null,J(o.label),1),k("span",zd,J(o.ms.toFixed(1))+"ms",1)]))),128))])]))}}),Yd={key:1,class:"flex flex-col gap-3"},Qd={class:"mb-3 flex flex-wrap gap-2"},Xd={class:"grid grid-cols-2 gap-2 lg:grid-cols-4"},Zd=pe({__name:"RequestView",setup(e){const t=Ge(),n=F(()=>t.current),s=F(()=>n.value?_t(n.value.status):"ok"),r=F(()=>n.value?Math.max(0,n.value.duration_ms-t.sqlTotalMs-t.httpTotalMs):0),o=F(()=>[{label:"SQL",ms:t.sqlTotalMs,color:"var(--dt-info)"},{label:"HTTP",ms:t.httpTotalMs,color:"var(--dt-warn)"},{label:"App / other",ms:r.value,color:"var(--dt-accent)"}]),i=F(()=>n.value?[{label:"request_id",value:n.value.request_id},{label:"snap_id",value:n.value.id},{label:"path",value:n.value.path},{label:"at_ms",value:String(n.value.at_ms)}]:[]);return(l,c)=>n.value?(S(),$("div",Yd,[j(Xe,{title:"Overview",icon:x(ir)},{default:Ke(()=>[k("div",Qd,[j(nt,{value:n.value.method,tone:"info",label:"method"},null,8,["value"]),j(nt,{value:String(n.value.status),tone:s.value,label:"status"},null,8,["value","tone"]),j(nt,{value:x(Vt)(n.value.duration_ms),label:"duration",icon:x(qs)},null,8,["value","icon"])]),j($n,{items:i.value},null,8,["items"])]),_:1},8,["icon"]),k("div",Xd,[j(nt,{class:"!flex w-full justify-start",label:"duration",value:x(Vt)(n.value.duration_ms),icon:x(qs),tone:n.value.duration_ms>500?"warn":"default"},null,8,["value","icon","tone"]),j(nt,{class:"!flex w-full justify-start",label:"sql",value:`${n.value.queries.length} · ${x(Vt)(x(t).sqlTotalMs)}`,icon:x(on),tone:"info"},null,8,["value","icon"]),j(nt,{class:"!flex w-full justify-start",label:"http",value:`${n.value.http.length} · ${x(Vt)(x(t).httpTotalMs)}`,icon:x(Cn)},null,8,["value","icon"]),j(nt,{class:"!flex w-full justify-start",label:"errors",value:String(x(t).logErrorCount),icon:x(bl),tone:x(t).logErrorCount?"err":"ok"},null,8,["value","icon","tone"])]),j(Xe,{title:"Timing waterfall",icon:x(qs),hint:"measured spans"},{default:Ke(()=>[j(Jd,{"total-ms":n.value.duration_ms,segments:o.value},null,8,["total-ms","segments"])]),_:1},8,["icon"])])):(S(),fe(et,{key:0,title:"No request selected",hint:"Pick a request from the list on the left.",icon:x(ir)},null,8,["icon"]))}}),eh={class:"flex items-center gap-3"},th=["width","height"],nh=["cx","cy","r"],sh=["cx","cy","r","stroke","stroke-dasharray","stroke-dashoffset"],rh=["x","y"],oh={class:"flex flex-col gap-1 text-[11px] text-[var(--dt-muted)]"},ih={class:"flex items-center gap-1.5"},lh={class:"dt-mono text-[var(--dt-text)]"},ch={class:"flex items-center gap-1.5"},ah={class:"dt-mono text-[var(--dt-text)]"},uh={class:"flex items-center gap-1.5"},fh={class:"dt-mono text-[var(--dt-text)]"},dh=pe({__name:"StatusDonut",props:{ok:{},warn:{},err:{},size:{default:72}},setup(e){const t=e,n=F(()=>Math.max(t.ok+t.warn+t.err,0)),s=F(()=>t.size/2-4),r=F(()=>t.size/2),o=F(()=>2*Math.PI*s.value),i=F(()=>{const l=n.value||1;let c=0;const u=(a,d)=>{const p=a/l*o.value,g=c;return c+=p,{color:d,dash:`${p} ${o.value-p}`,offset:-g}};return[u(t.ok,"var(--dt-ok)"),u(t.warn,"var(--dt-warn)"),u(t.err,"var(--dt-err)")]});return(l,c)=>(S(),$("div",eh,[(S(),$("svg",{width:e.size,height:e.size,class:"shrink-0","aria-hidden":"true"},[k("circle",{cx:r.value,cy:r.value,r:s.value,fill:"none",stroke:"var(--dt-border)","stroke-width":"6"},null,8,nh),(S(!0),$(ue,null,We(i.value,(u,a)=>(S(),$("circle",{key:a,cx:r.value,cy:r.value,r:s.value,fill:"none",stroke:u.color,"stroke-width":"6","stroke-linecap":"butt","stroke-dasharray":u.dash,"stroke-dashoffset":u.offset,"transform-origin":"center",style:bt({transform:"rotate(-90deg)",transformOrigin:`${r.value}px ${r.value}px`})},null,12,sh))),128)),k("text",{x:r.value,y:r.value,"text-anchor":"middle","dominant-baseline":"central",class:"dt-mono",fill:"var(--dt-text)","font-size":"12","font-weight":"500"},J(n.value),9,rh)],8,th)),k("div",oh,[k("div",ih,[c[0]||(c[0]=k("span",{class:"h-2 w-2 rounded-sm bg-[var(--dt-ok)]"},null,-1)),c[1]||(c[1]=rn(" 2xx ",-1)),k("span",lh,J(e.ok),1)]),k("div",ch,[c[2]||(c[2]=k("span",{class:"h-2 w-2 rounded-sm bg-[var(--dt-warn)]"},null,-1)),c[3]||(c[3]=rn(" 4xx ",-1)),k("span",ah,J(e.warn),1)]),k("div",uh,[c[4]||(c[4]=k("span",{class:"h-2 w-2 rounded-sm bg-[var(--dt-err)]"},null,-1)),c[5]||(c[5]=rn(" 5xx ",-1)),k("span",fh,J(e.err),1)])])]))}}),hh={class:"flex flex-col gap-3"},ph={class:"grid gap-3 sm:grid-cols-2"},mh={class:"flex items-center gap-3"},gh={class:"text-[11px] text-[var(--dt-faint)]"},vh=pe({__name:"TimelineView",setup(e){const t=Ge();return(n,s)=>(S(),$("div",hh,[k("div",ph,[j(Xe,{title:"Latency sparkline",icon:x(_l),hint:"recent"},{default:Ke(()=>[k("div",mh,[j(xl,{values:x(t).sparkFromTimeline,width:200,height:40},null,8,["values"]),k("span",gh,J(x(t).timeline.length)+" samples",1)])]),_:1},8,["icon"]),j(Xe,{title:"Status mix",hint:"last 50"},{default:Ke(()=>[j(dh,{ok:x(t).statusBuckets.ok,warn:x(t).statusBuckets.warn,err:x(t).statusBuckets.err},null,8,["ok","warn","err"])]),_:1})]),j(Xe,{title:"Hint"},{default:Ke(()=>[...s[0]||(s[0]=[k("p",{class:"m-0 text-[12px] text-[var(--dt-muted)]"}," Use the request list on the left to open a snapshot. Live SSE updates appear there in the running app. ",-1)])]),_:1})]))}}),_h={class:"overflow-hidden rounded-[var(--dt-radius)] border border-[var(--dt-border)] bg-[var(--dt-bg)]"},bh={class:"flex items-center gap-2 border-b border-[var(--dt-border)] bg-[var(--dt-surface-2)] px-3 py-1.5"},xh={class:"text-[10px] uppercase tracking-wider text-[var(--dt-faint)]"},yh={class:"dt-mono text-[10px] text-[var(--dt-faint)]"},wh={class:"dt-scroll m-0 max-h-48 overflow-auto p-3 dt-mono text-[11px] leading-relaxed text-[var(--dt-muted)] whitespace-pre-wrap break-all"},Rl=pe({__name:"CodeBlock",props:{code:{},title:{default:"code"},language:{default:"text"}},setup(e){const t=e,n=_e(!1);async function s(){try{await navigator.clipboard.writeText(t.code),n.value=!0,setTimeout(()=>{n.value=!1},1200)}catch{}}return(r,o)=>(S(),$("div",_h,[k("div",bh,[k("span",xh,J(e.title),1),k("span",yh,J(e.language),1),k("button",{type:"button",class:"ml-auto inline-flex min-h-7 cursor-pointer items-center gap-1 rounded border border-[var(--dt-border)] bg-[var(--dt-surface)] px-2 text-[10px] text-[var(--dt-muted)] hover:text-[var(--dt-text)]",onClick:s},[j(Ft,{icon:n.value?x(yf):x(Ef),size:12},null,8,["icon"]),rn(" "+J(n.value?"copied":"copy"),1)])]),k("pre",wh,J(e.code),1)]))}});function ur(e){const t=e.replace(/\s+/g," ").trim().toLowerCase();let n=0;for(let s=0;s<t.length;s++)n=n*31+t.charCodeAt(s)|0;return String(n)}function Sh(e){const t=new Map;for(const n of e){const s=ur(n);t.set(s,(t.get(s)||0)+1)}return t}const Do=50,Eh={key:2,class:"flex flex-col gap-3"},Ch={class:"flex flex-col gap-3"},Rh={class:"mb-2 flex flex-wrap items-center gap-2"},Ah={class:"dt-mono text-[11px] text-[var(--dt-text)]"},kh={key:0,class:"rounded border border-[var(--dt-border)] px-1.5 text-[10px] text-[var(--dt-faint)]"},Th={key:1,class:"rounded border border-[var(--dt-warn)] px-1.5 text-[10px] text-[var(--dt-warn)]"},Oh={key:2,class:"rounded border border-[var(--dt-err)] px-1.5 text-[10px] text-[var(--dt-err)]"},Ph=pe({__name:"DbView",setup(e){const t=Ge(),n=_e(""),s=F(()=>t.current?.queries??[]),r=F(()=>Sh(s.value.map(i=>i.sql))),o=F(()=>{const i=n.value.trim().toLowerCase();return i?s.value.filter(l=>l.sql.toLowerCase().includes(i)):s.value});return(i,l)=>x(t).current?s.value.length?(S(),$("div",Eh,[j(Rs,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=c=>n.value=c),placeholder:"Filter SQL…"},null,8,["modelValue"]),j(Xe,{title:"Queries",icon:x(on),hint:`${o.value.length} · ${x(Vt)(x(t).sqlTotalMs)}`},{default:Ke(()=>[k("div",Ch,[(S(!0),$(ue,null,We(o.value,(c,u)=>(S(),$("div",{key:u,class:Re(["rounded-[var(--dt-radius)] border p-2",(c.duration_ms??0)>=x(Do)?"border-[var(--dt-warn)]":"border-[var(--dt-border)]"])},[k("div",Rh,[k("span",Ah,J(x(Vt)(c.duration_ms)),1),c.rows!=null?(S(),$("span",kh,J(c.rows)+" rows",1)):ke("",!0),(c.duration_ms??0)>=x(Do)?(S(),$("span",Th,"slow")):ke("",!0),(r.value.get(x(ur)(c.sql))||0)>1?(S(),$("span",Oh,"dup ×"+J(r.value.get(x(ur)(c.sql))),1)):ke("",!0)]),j(Rl,{code:c.sql,title:"sql",language:"sql"},null,8,["code"])],2))),128))])]),_:1},8,["icon","hint"])])):(S(),fe(et,{key:1,title:"No SQL on this request",hint:"Queries appear when the DB plugin reports timings.",icon:x(on)},null,8,["icon"])):(S(),fe(et,{key:0,title:"No snapshot",hint:"Select a request first.",icon:x(on)},null,8,["icon"]))}}),Nh={class:"flex flex-col gap-3"},Mh={class:"flex flex-col gap-2 sm:flex-row sm:items-center"},Ih={class:"flex flex-wrap gap-1"},$h=["onClick"],Lh={class:"flex flex-col gap-2"},Dh={class:"flex flex-wrap items-center gap-2"},Vh={class:"dt-mono text-[10px] text-[var(--dt-faint)]"},jh={key:0,class:"dt-mono ml-auto text-[10px] text-[var(--dt-faint)]"},Fh={class:"m-0 mt-1 text-[12px] text-[var(--dt-text)]"},Hh=pe({__name:"LogsView",setup(e){const t=Ge(),n=_e(""),s=_e("all"),r=F(()=>{const l=t.current?.logs;return l?.length?l:t.globalLogs}),o=F(()=>{let l=r.value;s.value!=="all"&&(l=l.filter(u=>String(u.level).toLowerCase().includes(s.value)));const c=n.value.trim().toLowerCase();return c&&(l=l.filter(u=>u.message.toLowerCase().includes(c)||u.target.toLowerCase().includes(c))),l}),i=[{id:"all",label:"All"},{id:"error",label:"Error"},{id:"warn",label:"Warn"},{id:"info",label:"Info"},{id:"debug",label:"Debug"}];return(l,c)=>(S(),$("div",Nh,[k("div",Mh,[j(Rs,{modelValue:n.value,"onUpdate:modelValue":c[0]||(c[0]=u=>n.value=u),placeholder:"Filter logs…",class:"flex-1"},null,8,["modelValue"]),k("div",Ih,[(S(),$(ue,null,We(i,u=>k("button",{key:u.id,type:"button",class:Re(["min-h-8 cursor-pointer rounded border px-2 text-[10px] uppercase",s.value===u.id?"border-[var(--dt-accent)] bg-[var(--dt-accent-dim)] text-[var(--dt-accent)]":"border-[var(--dt-border)] text-[var(--dt-faint)]"]),onClick:a=>s.value=u.id},J(u.label),11,$h)),64))])]),r.value.length?(S(),fe(Xe,{key:1,title:"Logs",icon:x(cr),hint:`${o.value.length} / ${r.value.length}`},{default:Ke(()=>[k("div",Lh,[(S(!0),$(ue,null,We(o.value,(u,a)=>(S(),$("div",{key:a,class:"rounded-[var(--dt-radius)] border border-[var(--dt-border)] bg-[var(--dt-bg)] px-2.5 py-2"},[k("div",Dh,[k("span",{class:Re(["rounded border px-1.5 text-[10px] font-semibold uppercase",{"border-[var(--dt-err)] text-[var(--dt-err)]":String(u.level).toUpperCase().includes("ERROR"),"border-[var(--dt-warn)] text-[var(--dt-warn)]":String(u.level).toUpperCase().includes("WARN"),"border-[var(--dt-info)] text-[var(--dt-info)]":String(u.level).toUpperCase().includes("INFO"),"border-[var(--dt-border)] text-[var(--dt-muted)]":String(u.level).toUpperCase().includes("DEBUG")}])},J(u.level),3),k("span",Vh,J(u.target),1),u.at_ms!=null?(S(),$("span",jh,J(u.at_ms),1)):ke("",!0)]),k("p",Fh,J(u.message),1)]))),128))])]),_:1},8,["icon","hint"])):(S(),fe(et,{key:0,title:"No log lines",hint:"Tracing output appears here.",icon:x(cr)},null,8,["icon"]))]))}}),Bh={key:2,class:"flex flex-col gap-3"},Uh={class:"flex flex-col gap-2"},qh={class:"flex flex-wrap items-center gap-2"},Kh={class:"dt-mono rounded border border-[var(--dt-border)] px-1.5 text-[10px] text-[var(--dt-accent)]"},Wh={class:"dt-mono ml-auto text-[11px] text-[var(--dt-muted)]"},Gh=["title"],zh={key:0,class:"mt-1 rounded border border-[var(--dt-err)] px-2 py-1 text-[11px] text-[var(--dt-err)]"},Jh=pe({__name:"HttpView",setup(e){const t=Ge(),n=_e(""),s=F(()=>t.current?.http??[]),r=F(()=>{const o=n.value.trim().toLowerCase();return o?s.value.filter(i=>i.url.toLowerCase().includes(o)||i.method.toLowerCase().includes(o)||String(i.status??"").includes(o)||(i.error||"").toLowerCase().includes(o)):s.value});return(o,i)=>x(t).current?s.value.length?(S(),$("div",Bh,[j(Rs,{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=l=>n.value=l),placeholder:"Filter HTTP…"},null,8,["modelValue"]),j(Xe,{title:"Outbound",icon:x(Cn),hint:`${r.value.length} · ${x(Vt)(x(t).httpTotalMs)}`},{default:Ke(()=>[k("div",Uh,[(S(!0),$(ue,null,We(r.value,(l,c)=>(S(),$("div",{key:c,class:"rounded-[var(--dt-radius)] border border-[var(--dt-border)] bg-[var(--dt-bg)] p-2.5"},[k("div",qh,[k("span",Kh,J(l.method),1),l.status!=null?(S(),$("span",{key:0,class:Re(["dt-mono text-[11px]",{"text-[var(--dt-ok)]":x(_t)(l.status)==="ok","text-[var(--dt-warn)]":x(_t)(l.status)==="warn","text-[var(--dt-err)]":x(_t)(l.status)==="err"}])},J(l.status),3)):ke("",!0),k("span",Wh,J(x(Vt)(l.duration_ms)),1)]),k("div",{class:"mt-1 truncate text-[12px] text-[var(--dt-text)]",title:l.url},J(l.url),9,Gh),l.error?(S(),$("div",zh,J(l.error),1)):ke("",!0)]))),128))])]),_:1},8,["icon","hint"])])):(S(),fe(et,{key:1,title:"No outbound HTTP",hint:"Client calls for this request appear here.",icon:x(Cn)},null,8,["icon"])):(S(),fe(et,{key:0,title:"No snapshot",hint:"Select a request first.",icon:x(Cn)},null,8,["icon"]))}}),Yh={key:2,class:"flex flex-col gap-3"},Qh=pe({__name:"MailView",setup(e){const t=Ge(),n=F(()=>t.current?.mail??[]);return(s,r)=>x(t).current?n.value.length?(S(),$("div",Yh,[(S(!0),$(ue,null,We(n.value,(o,i)=>(S(),fe(Xe,{key:i,title:o.subject||"(no subject)",icon:x(Qn),hint:o.backend},{default:Ke(()=>[j($n,{items:[{label:"to",value:(o.to||[]).join(", ")||"—"},{label:"backend",value:o.backend},{label:"subject",value:o.subject,mono:!1}]},null,8,["items"])]),_:2},1032,["title","icon","hint"]))),128))])):(S(),fe(et,{key:1,title:"No mail recorded",hint:"Fake/SMTP sends on this request show up here.",icon:x(Qn)},null,8,["icon"])):(S(),fe(et,{key:0,title:"No snapshot",hint:"Select a request first.",icon:x(Qn)},null,8,["icon"]))}}),Xh={key:2,class:"flex flex-col gap-3"},Zh=pe({__name:"JobsView",setup(e){const t=Ge(),n=F(()=>t.current?.jobs??[]);function s(r){const o=r.toLowerCase();return o.includes("fail")||o.includes("error")?"err":o.includes("run")||o.includes("pend")||o.includes("queue")?"warn":"default"}return(r,o)=>x(t).current?n.value.length?(S(),$("div",Xh,[(S(!0),$(ue,null,We(n.value,(i,l)=>(S(),fe(Xe,{key:l,title:i.name,icon:x(Jn),hint:i.status,tone:s(i.status)},{default:Ke(()=>[j($n,{items:[{label:"status",value:i.status},{label:"detail",value:i.detail||"—",mono:!1}]},null,8,["items"])]),_:2},1032,["title","icon","hint","tone"]))),128))])):(S(),fe(et,{key:1,title:"No jobs",hint:"Background tasks for this request list here.",icon:x(Jn)},null,8,["icon"])):(S(),fe(et,{key:0,title:"No snapshot",hint:"Select a request first.",icon:x(Jn)},null,8,["icon"]))}}),ep={key:1,class:"flex flex-col gap-3"},tp=pe({__name:"AuthView",setup(e){const t=Ge(),n=F(()=>t.current?.auth??null),s=F(()=>(n.value?.session_keys??[]).map(([r,o])=>({label:r,value:o})));return(r,o)=>x(t).current?(S(),$("div",ep,[j(Xe,{title:"Identity",icon:x(Yn)},{default:Ke(()=>[j($n,{items:[{label:"session",value:n.value?.session_id||"—"},{label:"user",value:n.value?.user_id||"—"}]},null,8,["items"])]),_:1},8,["icon"]),s.value.length?(S(),fe(Xe,{key:1,title:"Session keys",hint:"redacted values"},{default:Ke(()=>[j($n,{items:s.value},null,8,["items"])]),_:1})):(S(),fe(et,{key:0,title:"No session keys",hint:"Session bag empty or redacted.",icon:x(Yn)},null,8,["icon"]))])):(S(),fe(et,{key:0,title:"No snapshot",hint:"Select a request first.",icon:x(Yn)},null,8,["icon"]))}}),np=pe({__name:"ConfigView",setup(e){const t=Ge(),n=F(()=>t.config?.profile??"—"),s=F(()=>JSON.stringify(t.config??{},null,2));return(r,o)=>x(t).config==null&&!x(t).isPlayground?(S(),fe(et,{key:0,title:"No config payload",hint:"Hub config endpoint returned empty.",icon:x(lr)},null,8,["icon"])):(S(),fe(Xe,{key:1,title:"Runtime config",icon:x(lr),hint:n.value},{default:Ke(()=>[j(Rl,{code:s.value,title:"config",language:"json"},null,8,["code"])]),_:1},8,["icon","hint"]))}});Nr.map(e=>({id:e.id,label:e.label}));const sp=[{path:"/",redirect:"/request"},{path:"/request",name:"request",component:Zd},{path:"/timeline",name:"timeline",component:vh},{path:"/db",name:"db",component:Ph},{path:"/logs",name:"logs",component:Hh},{path:"/http",name:"http",component:Jh},{path:"/mail",name:"mail",component:Qh},{path:"/jobs",name:"jobs",component:Zh},{path:"/auth",name:"auth",component:tp},{path:"/config",name:"config",component:np}],Kn=ff({history:Bu(),routes:sp});function rp(e){return typeof e=="string"&&Nr.some(t=>t.id===e)}const op={class:"flex min-h-0 flex-1 flex-col md:flex-row"},ip={class:"dt-scroll max-h-[40%] shrink-0 overflow-auto border-b border-[var(--dt-border)] md:max-h-none md:w-[min(32%,280px)] md:border-b-0 md:border-r"},lp={class:"dt-scroll min-h-0 min-w-0 flex-1 overflow-auto p-3"},cp={key:1,class:"rounded-[var(--dt-radius)] border border-[var(--dt-err)] bg-[var(--dt-surface)] p-3 text-[var(--dt-err)]"},ap=pe({__name:"App",setup(e){const t=Ge(),n=df(),s=vl(),r=_e(!1);let o=0,i=0;jt(()=>n.name,p=>{rp(p)&&t.tab!==p&&t.setTab(p)},{immediate:!0}),jt(()=>t.tab,p=>{n.name!==p&&s.push({name:p})});const l=F(()=>t.isEmbed||t.isPlayground?{height:"100%",maxHeight:"100%"}:{height:`${t.effectivePanelH}px`,maxHeight:"90dvh"}),c=F(()=>!t.fullscreen&&!t.isPlayground);function u(p){t.fullscreen||(r.value=!0,o=p.clientY,i=t.panelH,window.addEventListener("pointermove",a),window.addEventListener("pointerup",d))}function a(p){r.value&&t.setPanelH(i+(o-p.clientY))}function d(){r.value=!1,window.removeEventListener("pointermove",a),window.removeEventListener("pointerup",d)}return Ei(()=>{t.isEmbed&&t.setPanelH(t.panelH)}),Ci(()=>{window.removeEventListener("pointermove",a),window.removeEventListener("pointerup",d)}),(p,g)=>{const R=$c("RouterView");return S(),$(ue,null,[x(t).isEmbed?ke("",!0):(S(),fe(cd,{key:0})),bi(k("div",{class:Re(["dt-panel-enter flex flex-col border-t border-[var(--dt-border-strong)] bg-[var(--dt-bg)] text-[var(--dt-text)]",x(t).isEmbed||x(t).isPlayground?"h-full min-h-0":"fixed inset-x-0 bottom-[var(--dt-bar-h)] z-[var(--dt-z)]"]),style:bt(l.value)},[c.value?(S(),$("div",{key:0,class:"group flex h-2.5 shrink-0 cursor-ns-resize items-center justify-center",title:"Drag to resize",onPointerdown:tl(u,["prevent"])},[k("span",{class:Re(["h-0.5 w-12 rounded-full bg-[var(--dt-border-strong)] transition-colors group-hover:bg-[var(--dt-accent)]",r.value?"!bg-[var(--dt-accent)]":""])},null,2)],32)):ke("",!0),j(dd),k("div",op,[k("aside",ip,[j(Ad)]),k("main",lp,[x(t).loading?(S(),fe(pd,{key:0,rows:5,cols:2})):x(t).error?(S(),$("div",cp,J(x(t).error),1)):(S(),fe(R,{key:2}))])])],6),[[ka,x(t).open||x(t).isEmbed||x(t).isPlayground]])],64)}}}),Vo=document.getElementById("sova-devtools");if(Vo){const e=Qa(ap);e.use(eu()),e.use(Kn),e.mount(Vo);const t=Ge();Kn.isReady().then(()=>{t.tab&&Kn.currentRoute.value.name!==t.tab&&Kn.replace({name:t.tab}),t.boot()})}