@vitejs/devtools-self-inspect 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/index.mjs +9 -0
  2. package/dist/nitro.json +1 -1
  3. package/dist/public/200.html +1 -1
  4. package/dist/public/404.html +1 -1
  5. package/dist/public/_nuxt/BF3PKRZg.js +3 -0
  6. package/dist/public/_nuxt/Bpe6gAxO.js +1 -0
  7. package/dist/public/_nuxt/CIrYOAcd.js +1 -0
  8. package/dist/public/_nuxt/CNyvh-uQ.js +1 -0
  9. package/dist/public/_nuxt/CX4Cw_K6.js +1 -0
  10. package/dist/public/_nuxt/CZZ6pD7Y.js +1 -0
  11. package/dist/public/_nuxt/C_NA1SnS.js +1 -0
  12. package/dist/public/_nuxt/CdNVVb4r.js +1 -0
  13. package/dist/public/_nuxt/CpoNrUJX.js +1 -0
  14. package/dist/public/_nuxt/{B272lpEQ.js → D-yV-wpZ.js} +1 -1
  15. package/dist/public/_nuxt/DhTR7Huo.js +2 -0
  16. package/dist/public/_nuxt/Ewns8tmY.js +1 -0
  17. package/dist/public/_nuxt/builds/latest.json +1 -1
  18. package/dist/public/_nuxt/builds/meta/b61eef51-593b-43c5-8a41-bd1dd56afecf.json +1 -0
  19. package/dist/public/_nuxt/entry.Bp25jT6Q.css +1 -0
  20. package/dist/public/_nuxt/{BXzHcmI1.js → jRF5ZUcO.js} +1 -1
  21. package/dist/public/index.html +1 -1
  22. package/package.json +5 -4
  23. package/dist/public/_nuxt/-usktxF9.js +0 -1
  24. package/dist/public/_nuxt/BOMQEJ5Z.js +0 -3
  25. package/dist/public/_nuxt/BeBmibH8.js +0 -1
  26. package/dist/public/_nuxt/CQf-_yNS.js +0 -1
  27. package/dist/public/_nuxt/C_ckquCE.js +0 -1
  28. package/dist/public/_nuxt/CpJaVTMr.js +0 -2
  29. package/dist/public/_nuxt/D5IAEEWl.js +0 -1
  30. package/dist/public/_nuxt/Ds0morVD.js +0 -1
  31. package/dist/public/_nuxt/DvzHyrR7.js +0 -1
  32. package/dist/public/_nuxt/QEPeRxbY.js +0 -1
  33. package/dist/public/_nuxt/builds/meta/c0d10dd9-517d-40d2-a0d0-c48fce0a62a7.json +0 -1
  34. package/dist/public/_nuxt/entry.CZzffXjt.css +0 -1
package/dist/index.mjs CHANGED
@@ -95,6 +95,15 @@ const rpcFunctions = [
95
95
  getClientScripts,
96
96
  getDevtoolsPlugins,
97
97
  getAuthTokens,
98
+ defineRpcFunction({
99
+ name: "devtoolskit:self-inspect:get-shared-state-keys",
100
+ type: "query",
101
+ setup: (context) => {
102
+ return { handler: async () => {
103
+ return context.rpc.sharedState.keys();
104
+ } };
105
+ }
106
+ }),
98
107
  defineRpcFunction({
99
108
  name: "devtoolskit:self-inspect:revoke-auth-token",
100
109
  type: "action",
package/dist/nitro.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-03-23T02:11:33.999Z",
2
+ "date": "2026-03-23T02:38:11.775Z",
3
3
  "preset": "static",
4
4
  "framework": {
5
5
  "name": "nuxt",
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-self-inspect/_nuxt/CpJaVTMr.js"}}</script><title>DevTools Self Inspect</title><link rel="stylesheet" href="/.devtools-self-inspect/_nuxt/entry.CZzffXjt.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/.devtools-self-inspect/_nuxt/CpJaVTMr.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-self-inspect/_nuxt/BOMQEJ5Z.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-self-inspect/_nuxt/C_ckquCE.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-self-inspect/_nuxt/B272lpEQ.js"><script type="module" src="/.devtools-self-inspect/_nuxt/CpJaVTMr.js" crossorigin></script><meta name="description" content="DevTools for inspecting the DevTools itself"><script id="unhead:payload" type="application/json">{"title":"DevTools Self Inspect"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/.devtools-self-inspect/",buildId:"c0d10dd9-517d-40d2-a0d0-c48fce0a62a7",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774231893915,false]</script></body></html>
1
+ <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-self-inspect/_nuxt/DhTR7Huo.js"}}</script><title>DevTools Self Inspect</title><link rel="stylesheet" href="/.devtools-self-inspect/_nuxt/entry.Bp25jT6Q.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/.devtools-self-inspect/_nuxt/DhTR7Huo.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-self-inspect/_nuxt/BF3PKRZg.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-self-inspect/_nuxt/Ewns8tmY.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-self-inspect/_nuxt/D-yV-wpZ.js"><script type="module" src="/.devtools-self-inspect/_nuxt/DhTR7Huo.js" crossorigin></script><meta name="description" content="DevTools for inspecting the DevTools itself"><script id="unhead:payload" type="application/json">{"title":"DevTools Self Inspect"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/.devtools-self-inspect/",buildId:"b61eef51-593b-43c5-8a41-bd1dd56afecf",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774233491693,false]</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-self-inspect/_nuxt/CpJaVTMr.js"}}</script><title>DevTools Self Inspect</title><link rel="stylesheet" href="/.devtools-self-inspect/_nuxt/entry.CZzffXjt.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/.devtools-self-inspect/_nuxt/CpJaVTMr.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-self-inspect/_nuxt/BOMQEJ5Z.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-self-inspect/_nuxt/C_ckquCE.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-self-inspect/_nuxt/B272lpEQ.js"><script type="module" src="/.devtools-self-inspect/_nuxt/CpJaVTMr.js" crossorigin></script><meta name="description" content="DevTools for inspecting the DevTools itself"><script id="unhead:payload" type="application/json">{"title":"DevTools Self Inspect"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/.devtools-self-inspect/",buildId:"c0d10dd9-517d-40d2-a0d0-c48fce0a62a7",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774231893915,false]</script></body></html>
1
+ <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-self-inspect/_nuxt/DhTR7Huo.js"}}</script><title>DevTools Self Inspect</title><link rel="stylesheet" href="/.devtools-self-inspect/_nuxt/entry.Bp25jT6Q.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/.devtools-self-inspect/_nuxt/DhTR7Huo.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-self-inspect/_nuxt/BF3PKRZg.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-self-inspect/_nuxt/Ewns8tmY.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-self-inspect/_nuxt/D-yV-wpZ.js"><script type="module" src="/.devtools-self-inspect/_nuxt/DhTR7Huo.js" crossorigin></script><meta name="description" content="DevTools for inspecting the DevTools itself"><script id="unhead:payload" type="application/json">{"title":"DevTools Self Inspect"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/.devtools-self-inspect/",buildId:"b61eef51-593b-43c5-8a41-bd1dd56afecf",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774233491693,false]</script></body></html>
@@ -0,0 +1,3 @@
1
+ function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>S(e)===`[object Map]`,p=e=>S(e)===`[object Set]`,m=e=>S(e)===`[object Date]`,h=e=>S(e)===`[object RegExp]`,g=e=>typeof e==`function`,_=e=>typeof e==`string`,v=e=>typeof e==`symbol`,y=e=>typeof e==`object`&&!!e,b=e=>(y(e)||g(e))&&g(e.then)&&g(e.catch),x=Object.prototype.toString,S=e=>x.call(e),C=e=>S(e).slice(8,-1),w=e=>S(e)===`[object Object]`,T=e=>_(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,E=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),D=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ee=/-\w/g,O=D(e=>e.replace(ee,e=>e.slice(1).toUpperCase())),te=/\B([A-Z])/g,k=D(e=>e.replace(te,`-$1`).toLowerCase()),ne=D(e=>e.charAt(0).toUpperCase()+e.slice(1)),re=D(e=>e?`on${ne(e)}`:``),A=(e,t)=>!Object.is(e,t),j=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ie=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ae=e=>{let t=parseFloat(e);return isNaN(t)?e:t},oe=e=>{let t=_(e)?Number(e):NaN;return isNaN(t)?e:t},se,ce=()=>se||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof globalThis<`u`?globalThis:{};function le(e){if(d(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=_(r)?pe(r):le(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(_(e)||y(e))return e}var ue=/;(?![^(]*\))/g,de=/:([^]+)/,fe=/\/\*[^]*?\*\//g;function pe(e){let t={};return e.replace(fe,``).split(ue).forEach(e=>{if(e){let n=e.split(de);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function me(e){let t=``;if(_(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){let r=me(e[n]);r&&(t+=r+` `)}else if(y(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function he(e){if(!e)return null;let{class:t,style:n}=e;return t&&!_(t)&&(e.class=me(t)),n&&(e.style=le(n)),e}var ge=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,_e=e(ge);ge+``;function ve(e){return!!e||e===``}function ye(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=be(e[r],t[r]);return n}function be(e,t){if(e===t)return!0;let n=m(e),r=m(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=v(e),r=v(t),n||r)return e===t;if(n=d(e),r=d(t),n||r)return n&&r?ye(e,t):!1;if(n=y(e),r=y(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!be(e[n],t[n]))return!1}}return String(e)===String(t)}function xe(e,t){return e.findIndex(e=>be(e,t))}var Se=e=>!!(e&&e.__v_isRef===!0),Ce=e=>_(e)?e:e==null?``:d(e)||y(e)&&(e.toString===x||!g(e.toString))?Se(e)?Ce(e.value):JSON.stringify(e,we,2):String(e),we=(e,t)=>Se(t)?we(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Te(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Te(e))}:v(t)?Te(t):y(t)&&!d(t)&&!w(t)?String(t):t,Te=(e,t=``)=>v(e)?`Symbol(${e.description??t})`:e,M,Ee=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=M,!e&&M&&(this.index=(M.scopes||=[]).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=M;try{return M=this,e()}finally{M=t}}}on(){++this._on===1&&(this.prevScope=M,M=this)}off(){this._on>0&&--this._on===0&&(M=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function De(e){return new Ee(e)}function Oe(){return M}function ke(e,t=!1){M&&M.cleanups.push(e)}var N,Ae=new WeakSet,je=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,M&&M.active&&M.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ae.has(this)&&(Ae.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Fe(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,qe(this),Re(this);let e=N,t=P;N=this,P=!0;try{return this.fn()}finally{ze(this),N=e,P=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)He(e);this.deps=this.depsTail=void 0,qe(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ae.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Be(this)&&this.run()}get dirty(){return Be(this)}},Me=0,Ne,Pe;function Fe(e,t=!1){if(e.flags|=8,t){e.next=Pe,Pe=e;return}e.next=Ne,Ne=e}function Ie(){Me++}function Le(){if(--Me>0)return;if(Pe){let e=Pe;for(Pe=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ne;){let t=Ne;for(Ne=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Re(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ze(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),He(r),Ue(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Be(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ve(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ve(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Je)||(e.globalVersion=Je,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Be(e))))return;e.flags|=2;let t=e.dep,n=N,r=P;N=e,P=!0;try{Re(e);let n=e.fn(e._value);(t.version===0||A(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{N=n,P=r,ze(e),e.flags&=-3}}function He(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)He(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ue(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var P=!0,We=[];function Ge(){We.push(P),P=!1}function Ke(){let e=We.pop();P=e===void 0?!0:e}function qe(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=N;N=void 0;try{t()}finally{N=e}}}var Je=0,Ye=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Xe=class{constructor(e){this.computed=e,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(e){if(!N||!P||N===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==N)t=this.activeLink=new Ye(N,this),N.deps?(t.prevDep=N.depsTail,N.depsTail.nextDep=t,N.depsTail=t):N.deps=N.depsTail=t,Ze(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=N.depsTail,t.nextDep=void 0,N.depsTail.nextDep=t,N.depsTail=t,N.deps===t&&(N.deps=e)}return t}trigger(e){this.version++,Je++,this.notify(e)}notify(e){Ie();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Le()}}};function Ze(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ze(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Qe=new WeakMap,$e=Symbol(``),et=Symbol(``),tt=Symbol(``);function F(e,t,n){if(P&&N){let t=Qe.get(e);t||Qe.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Xe),r.map=t,r.key=n),r.track()}}function nt(e,t,n,r,i,a){let o=Qe.get(e);if(!o){Je++;return}let s=e=>{e&&e.trigger()};if(Ie(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&T(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===tt||!v(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(tt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get($e)),f(e)&&s(o.get(et)));break;case`delete`:i||(s(o.get($e)),f(e)&&s(o.get(et)));break;case`set`:f(e)&&s(o.get($e));break}}Le()}function rt(e,t){let n=Qe.get(e);return n&&n.get(t)}function it(e){let t=L(e);return t===e?t:(F(t,`iterate`,tt),I(e)?t:t.map(R))}function at(e){return F(e=L(e),`iterate`,tt),e}function ot(e,t){return Ut(e)?Kt(Ht(e)?R(t):t):R(t)}var st={__proto__:null,[Symbol.iterator](){return ct(this,Symbol.iterator,e=>ot(this,e))},concat(...e){return it(this).concat(...e.map(e=>d(e)?it(e):e))},entries(){return ct(this,`entries`,e=>(e[1]=ot(this,e[1]),e))},every(e,t){return ut(this,`every`,e,t,void 0,arguments)},filter(e,t){return ut(this,`filter`,e,t,e=>e.map(e=>ot(this,e)),arguments)},find(e,t){return ut(this,`find`,e,t,e=>ot(this,e),arguments)},findIndex(e,t){return ut(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return ut(this,`findLast`,e,t,e=>ot(this,e),arguments)},findLastIndex(e,t){return ut(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return ut(this,`forEach`,e,t,void 0,arguments)},includes(...e){return ft(this,`includes`,e)},indexOf(...e){return ft(this,`indexOf`,e)},join(e){return it(this).join(e)},lastIndexOf(...e){return ft(this,`lastIndexOf`,e)},map(e,t){return ut(this,`map`,e,t,void 0,arguments)},pop(){return pt(this,`pop`)},push(...e){return pt(this,`push`,e)},reduce(e,...t){return dt(this,`reduce`,e,t)},reduceRight(e,...t){return dt(this,`reduceRight`,e,t)},shift(){return pt(this,`shift`)},some(e,t){return ut(this,`some`,e,t,void 0,arguments)},splice(...e){return pt(this,`splice`,e)},toReversed(){return it(this).toReversed()},toSorted(e){return it(this).toSorted(e)},toSpliced(...e){return it(this).toSpliced(...e)},unshift(...e){return pt(this,`unshift`,e)},values(){return ct(this,`values`,e=>ot(this,e))}};function ct(e,t,n){let r=at(e),i=r[t]();return r!==e&&!I(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var lt=Array.prototype;function ut(e,t,n,r,i,a){let o=at(e),s=o!==e&&!I(e),c=o[t];if(c!==lt[t]){let t=c.apply(e,a);return s?R(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,ot(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function dt(e,t,n,r){let i=at(e),a=i!==e&&!I(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=ot(e,t)),n.call(this,t,ot(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?ot(e,c):c}function ft(e,t,n){let r=L(e);F(r,`iterate`,tt);let i=r[t](...n);return(i===-1||i===!1)&&Wt(n[0])?(n[0]=L(n[0]),r[t](...n)):i}function pt(e,t,n=[]){Ge(),Ie();let r=L(e)[t].apply(e,n);return Le(),Ke(),r}var mt=e(`__proto__,__v_isRef,__isVue`),ht=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(v));function gt(e){v(e)||(e=String(e));let t=L(this);return F(t,`has`,e),t.hasOwnProperty(e)}var _t=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Ft:Pt:i?Nt:Mt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=st[t]))return e;if(t===`hasOwnProperty`)return gt}let o=Reflect.get(e,t,z(e)?e:n);if((v(t)?ht.has(t):mt(t))||(r||F(e,`get`,t),i))return o;if(z(o)){let e=a&&T(t)?o:o.value;return r&&y(e)?Bt(e):e}return y(o)?r?Bt(o):Rt(o):o}},vt=class extends _t{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&T(t);if(!this._isShallow){let e=Ut(i);if(!I(n)&&!Ut(n)&&(i=L(i),n=L(n)),!a&&z(i)&&!z(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:u(e,t),s=Reflect.set(e,t,n,z(e)?e:r);return e===L(r)&&(o?A(n,i)&&nt(e,`set`,t,n,i):nt(e,`add`,t,n)),s}deleteProperty(e,t){let n=u(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&nt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!v(t)||!ht.has(t))&&F(e,`has`,t),n}ownKeys(e){return F(e,`iterate`,d(e)?`length`:$e),Reflect.ownKeys(e)}},yt=class extends _t{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},bt=new vt,xt=new yt,St=new vt(!0),Ct=e=>e,wt=e=>Reflect.getPrototypeOf(e);function Tt(e,t,n){return function(...r){let i=this.__v_raw,a=L(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?Ct:t?Kt:R;return!t&&F(a,`iterate`,l?et:$e),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Et(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Dt(e,t){let n={get(n){let r=this.__v_raw,i=L(r),a=L(n);e||(A(n,a)&&F(i,`get`,n),F(i,`get`,a));let{has:o}=wt(i),s=t?Ct:e?Kt:R;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&F(L(t),`iterate`,$e),t.size},has(t){let n=this.__v_raw,r=L(n),i=L(t);return e||(A(t,i)&&F(r,`has`,t),F(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=L(a),s=t?Ct:e?Kt:R;return!e&&F(o,`iterate`,$e),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:Et(`add`),set:Et(`set`),delete:Et(`delete`),clear:Et(`clear`)}:{add(e){let n=L(this),r=wt(n),i=L(e),a=!t&&!I(e)&&!Ut(e)?i:e;return r.has.call(n,a)||A(e,a)&&r.has.call(n,e)||A(i,a)&&r.has.call(n,i)||(n.add(a),nt(n,`add`,a,a)),this},set(e,n){!t&&!I(n)&&!Ut(n)&&(n=L(n));let r=L(this),{has:i,get:a}=wt(r),o=i.call(r,e);o||=(e=L(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?A(n,s)&&nt(r,`set`,e,n,s):nt(r,`add`,e,n),this},delete(e){let t=L(this),{has:n,get:r}=wt(t),i=n.call(t,e);i||=(e=L(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&nt(t,`delete`,e,void 0,a),o},clear(){let e=L(this),t=e.size!==0,n=e.clear();return t&&nt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Tt(r,e,t)}),n}function Ot(e,t){let n=Dt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var kt={get:Ot(!1,!1)},At={get:Ot(!1,!0)},jt={get:Ot(!0,!1)},Mt=new WeakMap,Nt=new WeakMap,Pt=new WeakMap,Ft=new WeakMap;function It(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Lt(e){return e.__v_skip||!Object.isExtensible(e)?0:It(C(e))}function Rt(e){return Ut(e)?e:Vt(e,!1,bt,kt,Mt)}function zt(e){return Vt(e,!1,St,At,Nt)}function Bt(e){return Vt(e,!0,xt,jt,Pt)}function Vt(e,t,n,r,i){if(!y(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=Lt(e);if(a===0)return e;let o=i.get(e);if(o)return o;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function Ht(e){return Ut(e)?Ht(e.__v_raw):!!(e&&e.__v_isReactive)}function Ut(e){return!!(e&&e.__v_isReadonly)}function I(e){return!!(e&&e.__v_isShallow)}function Wt(e){return e?!!e.__v_raw:!1}function L(e){let t=e&&e.__v_raw;return t?L(t):e}function Gt(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&ie(e,`__v_skip`,!0),e}var R=e=>y(e)?Rt(e):e,Kt=e=>y(e)?Bt(e):e;function z(e){return e?e.__v_isRef===!0:!1}function qt(e){return Yt(e,!1)}function Jt(e){return Yt(e,!0)}function Yt(e,t){return z(e)?e:new Xt(e,t)}var Xt=class{constructor(e,t){this.dep=new Xe,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:L(e),this._value=t?e:R(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||I(e)||Ut(e);e=n?e:L(e),A(e,t)&&(this._rawValue=e,this._value=n?e:R(e),this.dep.trigger())}};function Zt(e){return z(e)?e.value:e}function Qt(e){return g(e)?e():Zt(e)}var $t={get:(e,t,n)=>t===`__v_raw`?e:Zt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return z(i)&&!z(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function en(e){return Ht(e)?e:new Proxy(e,$t)}var tn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new Xe,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function nn(e){return new tn(e)}var rn=class{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=L(e);let r=!0,i=e;if(!d(e)||!T(String(t)))do r=!Wt(i)||I(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=Zt(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&z(this._raw[this._key])){let t=this._object[this._key];if(z(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return rt(this._raw,this._key)}},an=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function on(e,t,n){return z(e)?e:g(e)?new an(e):y(e)&&arguments.length>1?sn(e,t,n):qt(e)}function sn(e,t,n){return new rn(e,t,n)}var cn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Xe(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Je-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&N!==this)return Fe(this,!0),!0}get value(){let e=this.dep.track();return Ve(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function ln(e,t,n=!1){let r,i;return g(e)?r=e:(r=e.get,i=e.set),new cn(r,i,n)}var un={},dn=new WeakMap,fn=void 0;function pn(e,t=!1,n=fn){if(n){let t=dn.get(n);t||dn.set(n,t=[]),t.push(e)}}function mn(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:I(e)||o===!1||o===0?hn(e,1):hn(e),m,h,_,v,y=!1,b=!1;if(z(e)?(h=()=>e.value,y=I(e)):Ht(e)?(h=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>Ht(e)||I(e)),h=()=>e.map(e=>{if(z(e))return e.value;if(Ht(e))return p(e);if(g(e))return f?f(e,2):e()})):h=g(e)?n?f?()=>f(e,2):e:()=>{if(_){Ge();try{_()}finally{Ke()}}let t=fn;fn=m;try{return f?f(e,3,[v]):e(v)}finally{fn=t}}:r,n&&o){let e=h,t=o===!0?1/0:o;h=()=>hn(e(),t)}let x=Oe(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{e(...t),S()}}let C=b?Array(e.length).fill(un):un,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e))if(n){let e=m.run();if(o||y||(b?e.some((e,t)=>A(e,C[t])):A(e,C))){_&&_();let t=fn;fn=m;try{let t=[e,C===un?void 0:b&&C[0]===un?[]:C,v];C=e,f?f(n,3,t):n(...t)}finally{fn=t}}}else m.run()};return u&&u(w),m=new je(h),m.scheduler=l?()=>l(w,!1):w,v=e=>pn(e,!1,m),_=m.onStop=()=>{let e=dn.get(m);if(e){if(f)f(e,4);else for(let t of e)t();dn.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function hn(e,t=1/0,n){if(t<=0||!y(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,z(e))hn(e.value,t,n);else if(d(e))for(let r=0;r<e.length;r++)hn(e[r],t,n);else if(p(e)||f(e))e.forEach(e=>{hn(e,t,n)});else if(w(e)){for(let r in e)hn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&hn(e[r],t,n)}return e}function gn(e,t,n,r){try{return r?e(...r):e()}catch(e){_n(e,t,n)}}function B(e,t,n,r){if(g(e)){let i=gn(e,t,n,r);return i&&b(i)&&i.catch(e=>{_n(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a<e.length;a++)i.push(B(e[a],t,n,r));return i}}function _n(e,n,r,i=!0){let a=n?n.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=n&&n.appContext.config||t;if(n){let t=n.parent,i=n.proxy,a=`https://vuejs.org/error-reference/#runtime-${r}`;for(;t;){let n=t.ec;if(n){for(let t=0;t<n.length;t++)if(n[t](e,i,a)===!1)return}t=t.parent}if(o){Ge(),gn(o,null,10,[e,i,a]),Ke();return}}vn(e,r,a,i,s)}function vn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var V=[],yn=-1,bn=[],xn=null,Sn=0,Cn=Promise.resolve(),wn=null;function Tn(e){let t=wn||Cn;return e?t.then(this?e.bind(this):e):t}function En(e){let t=yn+1,n=V.length;for(;t<n;){let r=t+n>>>1,i=V[r],a=Mn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Dn(e){if(!(e.flags&1)){let t=Mn(e),n=V[V.length-1];!n||!(e.flags&2)&&t>=Mn(n)?V.push(e):V.splice(En(t),0,e),e.flags|=1,On()}}function On(){wn||=Cn.then(Nn)}function kn(e){d(e)?bn.push(...e):xn&&e.id===-1?xn.splice(Sn+1,0,e):e.flags&1||(bn.push(e),e.flags|=1),On()}function An(e,t,n=yn+1){for(;n<V.length;n++){let t=V[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;V.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function jn(e){if(bn.length){let e=[...new Set(bn)].sort((e,t)=>Mn(e)-Mn(t));if(bn.length=0,xn){xn.push(...e);return}for(xn=e,Sn=0;Sn<xn.length;Sn++){let e=xn[Sn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}xn=null,Sn=0}}var Mn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Nn(e){try{for(yn=0;yn<V.length;yn++){let e=V[yn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),gn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;yn<V.length;yn++){let e=V[yn];e&&(e.flags&=-2)}yn=-1,V.length=0,jn(e),wn=null,(V.length||bn.length)&&Nn(e)}}var H=null,Pn=null;function Fn(e){let t=H;return H=e,Pn=e&&e.type.__scopeId||null,t}function In(e,t=H,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Za(-1);let i=Fn(t),a;try{a=e(...n)}finally{Fn(i),r._d&&Za(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Ln(e,n){if(H===null)return e;let r=Mo(H),i=e.dirs||=[];for(let e=0;e<n.length;e++){let[a,o,s,c=t]=n[e];a&&(g(a)&&(a={mounted:a,updated:a}),a.deep&&hn(o),i.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function Rn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(Ge(),B(c,n,8,[e.el,s,e,t]),Ke())}}function zn(e,t){if($){let n=$.provides,r=$.parent&&$.parent.provides;r===n&&(n=$.provides=Object.create(r)),n[e]=t}}function Bn(e,t,n=!1){let r=_o();if(r||Hi){let i=Hi?Hi._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&g(t)?t.call(r&&r.proxy):t}}function Vn(){return!!(_o()||Hi)}var Hn=Symbol.for(`v-scx`),Un=()=>Bn(Hn);function Wn(e,t){return qn(e,null,t)}function Gn(e,t){return qn(e,null,{flush:`sync`})}function Kn(e,t,n){return qn(e,t,n)}function qn(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(Co){if(c===`sync`){let e=Un();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=$;u.call=(e,t,n)=>B(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{G(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():Dn(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=mn(e,n,u);return Co&&(f?f.push(h):d&&h()),h}function Jn(e,t,n){let r=this.proxy,i=_(e)?e.includes(`.`)?Yn(r,e):()=>r[e]:e.bind(r,r),a;g(t)?a=t:(a=t.handler,n=t);let o=bo(this),s=qn(i,a.bind(r),n);return o(),s}function Yn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var Xn=Symbol(`_vte`),Zn=e=>e.__isTeleport,Qn=e=>e&&(e.disabled||e.disabled===``),$n=e=>e&&(e.defer||e.defer===``),er=e=>typeof SVGElement<`u`&&e instanceof SVGElement,tr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,nr=(e,t)=>{let n=e&&e.to;return _(n)?t?t(n):null:n},rr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g}}=l,_=Qn(t.props),{shapeFlag:v,children:y,dynamicChildren:b}=t;if(e==null){let e=t.el=h(``),l=t.anchor=h(``);p(e,n,r),p(l,n,r);let d=(e,t)=>{v&16&&u(y,e,t,i,a,o,s,c)},f=()=>{let e=t.target=nr(t.props,m),n=cr(e,t,h,p);e&&(o!==`svg`&&er(e)?o=`svg`:o!==`mathml`&&tr(e)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(e),_||(d(e,n),sr(t,!1)))};_&&(d(n,l),sr(t,!0)),$n(t.props)?(t.el.__isMounted=!1,G(()=>{f(),delete t.el.__isMounted},a)):f()}else{if($n(t.props)&&e.el.__isMounted===!1){G(()=>{rr.process(e,t,n,r,i,a,o,s,c,l)},a);return}t.el=e.el,t.targetStart=e.targetStart;let u=t.anchor=e.anchor,p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Qn(e.props),v=g?n:p,y=g?u:h;if(o===`svg`||er(p)?o=`svg`:(o===`mathml`||tr(p))&&(o=`mathml`),b?(f(e.dynamicChildren,b,v,i,a,o,s),Da(e,t,!0)):c||d(e,t,v,y,i,a,o,s,!1),_)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ir(t,n,u,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=nr(t.props,m);e&&ir(t,e,null,l,0)}else g&&ir(t,p,h,l,1);sr(t,_)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e;if(d&&(i(l),i(u)),a&&i(c),o&16){let e=a||!Qn(f);for(let i=0;i<s.length;i++){let a=s[i];r(a,t,n,e,!!a.dynamicChildren)}}},move:ir,hydrate:ar};function ir(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),(!d||Qn(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function ar(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=nr(t.props,c),h=Qn(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||cr(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||cr(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),sr(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var or=rr;function sr(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function cr(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[Xn]=o,e&&(r(a,e,i),r(o,e,i)),o}var lr=Symbol(`_leaveCb`),ur=Symbol(`_enterCb`);function dr(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ti(()=>{e.isMounted=!0}),ii(()=>{e.isUnmounting=!0}),e}var U=[Function,Array],fr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:U,onEnter:U,onAfterEnter:U,onEnterCancelled:U,onBeforeLeave:U,onLeave:U,onAfterLeave:U,onLeaveCancelled:U,onBeforeAppear:U,onAppear:U,onAfterAppear:U,onAppearCancelled:U},pr=e=>{let t=e.subTree;return t.component?pr(t.component):t},mr={name:`BaseTransition`,props:fr,setup(e,{slots:t}){let n=_o(),r=dr();return()=>{let i=t.default&&Sr(t.default(),!0);if(!i||!i.length)return;let a=hr(i),o=L(e),{mode:s}=o;if(r.isLeaving)return yr(a);let c=br(a);if(!c)return yr(a);let l=vr(c,o,r,n,e=>l=e);c.type!==q&&xr(c,l);let u=n.subTree&&br(n.subTree);if(u&&u.type!==q&&!Y(u,c)&&pr(n).type!==q){let e=vr(u,o,r,n);if(xr(u,e),s===`out-in`&&c.type!==q)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},yr(a);s===`in-out`&&c.type!==q?e.delayLeave=(e,t,n)=>{let i=_r(r,u);i[String(u.key)]=u,e[lr]=()=>{t(),e[lr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function hr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==q){t=n;break}}return t}var gr=mr;function _r(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function vr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=_r(n,e),C=(e,t)=>{e&&B(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),d(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=_||c;else return;t[lr]&&t[lr](!0);let i=S[x];i&&Y(e,i)&&i.el[lr]&&i.el[lr](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=f;if(!n.isMounted)if(a)r=v||l,i=y||u,o=b||f;else return;let s=!1;t[ur]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[ur]=void 0)};let c=t[ur].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[ur]&&t[ur](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[lr]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[lr]=void 0,S[i]===e&&delete S[i])};let o=t[lr].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=vr(e,t,n,r,i);return i&&i(a),a}};return T}function yr(e){if(Ur(e))return e=so(e),e.children=null,e}function br(e){if(!Ur(e))return Zn(e.type)&&e.children?hr(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&g(n.default))return n.default()}}function xr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,xr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Sr(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===K?(o.patchFlag&128&&i++,r=r.concat(Sr(o.children,t,s))):(t||o.type!==q)&&r.push(s==null?o:so(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function Cr(e,t){return g(e)?s({name:e.name},t,{setup:e}):e}function wr(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function Tr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Er=new WeakMap;function Dr(e,n,r,a,o=!1){if(d(e)){e.forEach((e,t)=>Dr(e,n&&(d(n)?n[t]:n),r,a,o));return}if(Br(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Dr(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?Mo(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,h=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=L(v),b=v===t?i:e=>Tr(h,e)?!1:u(y,e),x=(e,t)=>!(t&&Tr(h,t));if(m!=null&&m!==p){if(Or(n),_(m))h[m]=null,b(m)&&(v[m]=null);else if(z(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(g(p))gn(p,f,12,[l,h]);else{let t=_(p),n=z(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:h[p]:x(p)||!e.k?p.value:h[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)h[p]=[s],b(p)&&(v[p]=h[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(h[e.k]=t)}}else t?(h[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(h[e.k]=l))};if(l){let t=()=>{i(),Er.delete(e)};t.id=-1,Er.set(e,t),G(t,r)}else Or(e),i()}}}function Or(e){let t=Er.get(e);t&&(t.flags|=8,Er.delete(e))}var kr=!1,Ar=()=>{kr||=(console.error(`Hydration completed but contains mismatches.`),!0)},jr=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Mr=e=>e.namespaceURI.includes(`MathML`),Nr=e=>{if(e.nodeType===1){if(jr(e))return`svg`;if(Mr(e))return`mathml`}},Pr=e=>e.nodeType===8;function Fr(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:s,remove:c,insert:l,createComment:u}}=e,d=(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),jn(),t._vnode=e;return}f(t.firstChild,e,null,null,null),jn(),t._vnode=e},f=(n,r,a,c,u,d=!1)=>{d||=!!r.dynamicChildren;let b=Pr(n)&&n.data===`[`,x=()=>g(n,r,a,c,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:T}=r,E=n.nodeType;r.el=n,T===-2&&(d=!1,r.dynamicChildren=null);let D=null;switch(S){case Ga:E===3?(n.data!==r.children&&(Ar(),n.data=r.children),D=o(n)):r.children===``?(l(r.el=i(``),s(n),n),D=n):D=x();break;case q:y(n)?(D=o(n),v(r.el=n.content.firstChild,n,a)):D=E!==8||b?x():o(n);break;case Ka:if(b&&(n=o(n),E=n.nodeType),E===1||E===3){D=n;let e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=D.nodeType===1?D.outerHTML:D.data),t===r.staticCount-1&&(r.anchor=D),D=o(D);return b?o(D):D}else x();break;case K:D=b?h(n,r,a,c,u,d):x();break;default:if(w&1)D=(E!==1||r.type.toLowerCase()!==n.tagName.toLowerCase())&&!y(n)?x():p(n,r,a,c,u,d);else if(w&6){r.slotScopeIds=u;let e=s(n);if(D=b?_(n):Pr(n)&&n.data===`teleport start`?_(n,n.data,`teleport end`):o(n),t(r,e,null,a,c,Nr(e),d),Br(r)&&!r.type.__asyncResolved){let t;b?(t=X(K),t.anchor=D?D.previousSibling:e.lastChild):t=n.nodeType===3?co(``):X(`div`),t.el=n,r.component.subTree=t}}else w&64?D=E===8?r.type.hydrate(n,r,a,c,u,d,e,m):x():w&128&&(D=r.type.hydrate(n,r,a,c,Nr(s(n)),u,d,e,f))}return C!=null&&Dr(C,null,c,r),D},p=(e,t,n,i,o,s)=>{s||=!!t.dynamicChildren;let{type:l,props:u,patchFlag:d,shapeFlag:f,dirs:p,transition:h}=t,g=l===`input`||l===`option`;if(g||d!==-1){p&&Rn(t,null,n,`created`);let l=!1;if(y(e)){l=Ea(null,h)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(l){let e=r.getAttribute(`class`);e&&(r.$cls=e),h.beforeEnter(r)}v(r,e,n),t.el=e=r}if(f&16&&!(u&&(u.innerHTML||u.textContent))){let r=m(e.firstChild,t,e,n,i,o,s);for(;r;){Rr(e,1)||Ar();let t=r;r=r.nextSibling,c(t)}}else if(f&8){let n=t.children;n[0]===`
2
+ `&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,`
3
+ `)&&(Rr(e,0)||Ar(),e.textContent=t.children)}if(u){if(g||!s||d&48){let t=e.tagName.includes(`-`);for(let i in u)(g&&(i.endsWith(`value`)||i===`indeterminate`)||a(i)&&!E(i)||i[0]===`.`||t&&!E(i))&&r(e,i,null,u[i],void 0,n)}else if(u.onClick)r(e,`onClick`,null,u.onClick,void 0,n);else if(d&4&&Ht(u.style))for(let e in u.style)u.style[e]}let _;(_=u&&u.onVnodeBeforeMount)&&Q(_,n,t),p&&Rn(t,null,n,`beforeMount`),((_=u&&u.onVnodeMounted)||p||l)&&Ha(()=>{_&&Q(_,n,t),l&&h.enter(e),p&&Rn(t,null,n,`mounted`)},i)}return e.nextSibling},m=(e,t,r,a,s,c,u)=>{u||=!!t.dynamicChildren;let d=t.children,p=d.length;for(let t=0;t<p;t++){let m=u?d[t]:d[t]=Z(d[t]),h=m.type===Ga;e?(h&&!u&&t+1<p&&Z(d[t+1]).type===Ga&&(l(i(e.data.slice(m.children.length)),r,o(e)),e.data=m.children),e=f(e,m,a,s,c,u)):h&&!m.children?l(m.el=i(``),r):(Rr(r,1)||Ar(),n(null,m,r,null,a,s,Nr(r),c))}return e},h=(e,t,n,r,i,a)=>{let{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);let d=s(e),f=m(o(e),t,d,n,r,i,a);return f&&Pr(f)&&f.data===`]`?o(t.anchor=f):(Ar(),l(t.anchor=u(`]`),d,f),f)},g=(e,t,r,i,a,l)=>{if(Rr(e.parentElement,1)||Ar(),t.el=null,l){let t=_(e);for(;;){let n=o(e);if(n&&n!==t)c(n);else break}}let u=o(e),d=s(e);return c(e),n(null,t,d,u,r,i,Nr(d),a),r&&(r.vnode.el=t.el,na(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=o(e),e&&Pr(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return o(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[d,f]}var Ir=`data-allow-mismatch`,Lr={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Rr(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Ir);)e=e.parentElement;let n=e&&e.getAttribute(Ir);if(n==null)return!1;if(n===``)return!0;{let e=n.split(`,`);return t===0&&e.includes(`children`)?!0:e.includes(Lr[t])}}ce().requestIdleCallback,ce().cancelIdleCallback;function zr(e,t){if(Pr(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Pr(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}var Br=e=>!!e.type.__asyncLoader;function Vr(e){g(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return Cr({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=!1;(t.bu||=[]).push(()=>r=!0);let i=()=>{r||n()},o=a?()=>{let n=a(i,t=>zr(e,t));n&&(t.bum||=[]).push(n)}:i;u?o():p().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){let e=$;if(wr(e),u)return()=>Hr(u,e);let t=t=>{l=null,_n(t,e,13,!r)};if(s&&e.suspense||Co)return p().then(t=>()=>Hr(t,e)).catch(e=>(t(e),()=>r?X(r,{error:e}):null));let a=qt(!1),c=qt(),d=qt(!!i);return i&&setTimeout(()=>{d.value=!1},i),o!=null&&setTimeout(()=>{if(!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o),p().then(()=>{a.value=!0,e.parent&&Ur(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),c.value=e}),()=>{if(a.value&&u)return Hr(u,e);if(c.value&&r)return X(r,{error:c.value});if(n&&!d.value)return Hr(n,e)}}})}function Hr(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=X(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Ur=e=>e.type.__isKeepAlive,Wr={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=_o(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),G(()=>{a.isDeactivated=!1,a.a&&j(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Q(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;Aa(t.m),Aa(t.a),l(e,f,null,1,s),G(()=>{t.da&&j(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&Q(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){Xr(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=No(Br(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!Y(t,o))?p(t):o&&Xr(o),i.delete(e),a.delete(e)}Kn(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Gr(e,t)),t&&m(e=>!Gr(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(Ma(n.subTree.type)?G(()=>{i.set(g,Zr(n.subTree))},n.subTree.suspense):i.set(g,Zr(n.subTree)))};return ti(_),ri(_),ii(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=Zr(t);if(e.type===i.type&&e.key===i.key){Xr(i);let e=i.component.da;e&&G(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!to(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=Zr(r);if(s.type===q)return o=null,s;let c=s.type,l=No(Br(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Gr(u,l))||d&&l&&Gr(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=so(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&xr(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,Ma(r.type)?r:s}}};function Gr(e,t){return d(e)?e.some(e=>Gr(e,t)):_(e)?e.split(`,`).includes(t):h(e)?(e.lastIndex=0,e.test(t)):!1}function Kr(e,t){Jr(e,`a`,t)}function qr(e,t){Jr(e,`da`,t)}function Jr(e,t,n=$){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Qr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ur(e.parent.vnode)&&Yr(r,t,n,e),e=e.parent}}function Yr(e,t,n,r){let i=Qr(t,e,r,!0);ai(()=>{c(r[t],i)},n)}function Xr(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Zr(e){return e.shapeFlag&128?e.ssContent:e}function Qr(e,t,n=$,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ge();let i=bo(n),a=B(t,n,e,r);return i(),Ke(),a};return r?i.unshift(a):i.push(a),a}}var $r=e=>(t,n=$)=>{(!Co||e===`sp`)&&Qr(e,(...e)=>t(...e),n)},ei=$r(`bm`),ti=$r(`m`),ni=$r(`bu`),ri=$r(`u`),ii=$r(`bum`),ai=$r(`um`),oi=$r(`sp`),si=$r(`rtg`),ci=$r(`rtc`);function li(e,t=$){Qr(`ec`,e,t)}var ui=`components`;function di(e,t){return mi(ui,e,!0,t)||e}var fi=Symbol.for(`v-ndc`);function pi(e){return _(e)?mi(ui,e,!1)||e:e||fi}function mi(e,t,n=!0,r=!1){let i=H||$;if(i){let n=i.type;if(e===ui){let e=No(n,!1);if(e&&(e===t||e===O(t)||e===ne(O(t))))return n}let a=hi(i[e]||n[e],t)||hi(i.appContext[e],t);return!a&&r?n:a}}function hi(e,t){return e&&(e[t]||e[O(t)]||e[ne(O(t))])}function gi(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||_(e)){let n=o&&Ht(e),r=!1,s=!1;n&&(r=!I(e),s=Ut(e),e=at(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Kt(R(e[n])):R(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(y(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}function _i(e,t,n={},r,i){if(H.ce||H.parent&&Br(H.parent)&&H.parent.ce){let e=Object.keys(n).length>0;return t!==`default`&&(n.name=t),Ja(),eo(K,null,[X(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),Ja();let o=a&&vi(a(n)),s=n.key||o&&o.key,c=eo(K,{key:(s&&!v(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function vi(e){return e.some(e=>to(e)?!(e.type===q||e.type===K&&!vi(e.children)):!0)?e:null}var yi=e=>e?So(e)?Mo(e):yi(e.parent):null,bi=s(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=>yi(e.parent),$root:e=>yi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ai(e),$forceUpdate:e=>e.f||=()=>{Dn(e.update)},$nextTick:e=>e.n||=Tn.bind(e.proxy),$watch:e=>Jn.bind(e)}),xi=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),Si={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(xi(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else Ti&&(s[n]=0)}let d=bi[n],f,p;if(d)return n===`$attrs`&&F(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return xi(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||xi(n,c)||u(o,c)||u(i,c)||u(bi,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function Ci(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function wi(e,t){return!e||!t?e||t:d(e)&&d(t)?e.concat(t):s({},Ci(e),Ci(t))}var Ti=!0;function Ei(e){let t=Ai(e),n=e.proxy,i=e.ctx;Ti=!1,t.beforeCreate&&Oi(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:h,updated:_,activated:v,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:E,renderTriggered:D,errorCaptured:ee,serverPrefetch:O,expose:te,inheritAttrs:k,components:ne,directives:re,filters:A}=t;if(u&&Di(u,i,null),s)for(let e in s){let t=s[e];g(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);y(t)&&(e.data=Rt(t))}if(Ti=!0,o)for(let e in o){let t=o[e],a=Fo({get:g(t)?t.bind(n,n):g(t.get)?t.get.bind(n,n):r,set:!g(t)&&g(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)ki(c[e],i,n,e);if(l){let e=g(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{zn(t,e[t])})}f&&Oi(f,e,`c`);function j(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(j(ei,p),j(ti,m),j(ni,h),j(ri,_),j(Kr,v),j(qr,b),j(li,ee),j(ci,E),j(si,D),j(ii,S),j(ai,w),j(oi,O),d(te))if(te.length){let t=e.exposed||={};te.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};T&&e.render===r&&(e.render=T),k!=null&&(e.inheritAttrs=k),ne&&(e.components=ne),re&&(e.directives=re),O&&wr(e)}function Di(e,t,n=r){d(e)&&(e=Fi(e));for(let n in e){let r=e[n],i;i=y(r)?`default`in r?Bn(r.from||n,r.default,!0):Bn(r.from||n):Bn(r),z(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Oi(e,t,n){B(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function ki(e,t,n,r){let i=r.includes(`.`)?Yn(n,r):()=>n[r];if(_(e)){let n=t[e];g(n)&&Kn(i,n)}else if(g(e))Kn(i,e.bind(n));else if(y(e))if(d(e))e.forEach(e=>ki(e,t,n,r));else{let r=g(e.handler)?e.handler.bind(n):t[e.handler];g(r)&&Kn(i,r,e)}}function Ai(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>ji(c,e,o,!0)),ji(c,t,o)),y(t)&&a.set(t,c),c}function ji(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&ji(e,a,n,!0),i&&i.forEach(t=>ji(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Mi[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Mi={data:Ni,props:Li,emits:Li,methods:Ii,computed:Ii,beforeCreate:W,created:W,beforeMount:W,mounted:W,beforeUpdate:W,updated:W,beforeDestroy:W,beforeUnmount:W,destroyed:W,unmounted:W,activated:W,deactivated:W,errorCaptured:W,serverPrefetch:W,components:Ii,directives:Ii,watch:Ri,provide:Ni,inject:Pi};function Ni(e,t){return t?e?function(){return s(g(e)?e.call(this,this):e,g(t)?t.call(this,this):t)}:t:e}function Pi(e,t){return Ii(Fi(e),Fi(t))}function Fi(e){if(d(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function W(e,t){return e?[...new Set([].concat(e,t))]:t}function Ii(e,t){return e?s(Object.create(null),e,t):t}function Li(e,t){return e?d(e)&&d(t)?[...new Set([...e,...t])]:s(Object.create(null),Ci(e),Ci(t??{})):t}function Ri(e,t){if(!e)return t;if(!t)return e;let n=s(Object.create(null),e);for(let r in t)n[r]=W(e[r],t[r]);return n}function zi(){return{app:null,config:{isNativeTag:i,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}}var Bi=0;function Vi(e,t){return function(n,r=null){g(n)||(n=s({},n)),r!=null&&!y(r)&&(r=null);let i=zi(),a=new WeakSet,o=[],c=!1,l=i.app={_uid:Bi++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Lo,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&g(e.install)?(a.add(e),e.install(l,...t)):g(e)&&(a.add(e),e(l,...t))),l},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),l},component(e,t){return t?(i.components[e]=t,l):i.components[e]},directive(e,t){return t?(i.directives[e]=t,l):i.directives[e]},mount(a,o,s){if(!c){let u=l._ceVNode||X(n,r);return u.appContext=i,s===!0?s=`svg`:s===!1&&(s=void 0),o&&t?t(u,a):e(u,a,s),c=!0,l._container=a,a.__vue_app__=l,Mo(u.component)}},onUnmount(e){o.push(e)},unmount(){c&&(B(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return i.provides[e]=t,l},runWithContext(e){let t=Hi;Hi=l;try{return e()}finally{Hi=t}}};return l}}var Hi=null;function Ui(e,n,r=t){let i=_o(),a=O(n),o=k(n),s=Wi(e,a),c=nn((s,c)=>{let l,u=t,d;return Gn(()=>{let t=e[a];A(l,t)&&(l=t,c())}),{get(){return s(),r.get?r.get(l):l},set(e){let s=r.set?r.set(e):e;if(!A(s,l)&&!(u!==t&&A(e,u)))return;let f=i.vnode.props;f&&(n in f||a in f||o in f)&&(`onUpdate:${n}`in f||`onUpdate:${a}`in f||`onUpdate:${o}`in f)||(l=e,c()),i.emit(`update:${n}`,s),A(e,s)&&A(e,u)&&!A(s,d)&&c(),u=e,d=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||t:c,done:!1}:{done:!0}}}},c}var Wi=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${k(t)}Modifiers`];function Gi(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&Wi(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>_(e)?e.trim():e)),s.number&&(a=r.map(ae)));let c,l=i[c=re(n)]||i[c=re(O(n))];!l&&o&&(l=i[c=re(k(n))]),l&&B(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,B(u,e,6,a)}}var Ki=new WeakMap;function qi(e,t,n=!1){let r=n?Ki:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!g(e)){let r=e=>{let n=qi(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(y(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),y(e)&&r.set(e,o),o)}function Ji(e,t){return!e||!a(t)?!1:(t=t.slice(2).replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,k(t))||u(e,t))}function Yi(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=Fn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Z(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Z(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:Zi(c)}}catch(t){qa.length=0,_n(t,e,1),v=X(q)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=Qi(y,a)),b=so(b,y,!1,!0))}return n.dirs&&(b=so(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&xr(b,n.transition),v=b,Fn(_),v}function Xi(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(to(r)){if(r.type!==q||r.children===`v-if`){if(n)return;n=r}}else return}return n}var Zi=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},Qi=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function $i(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?ea(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(ta(o,r,n)&&!Ji(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?ea(r,o,l):!0:!!o;return!1}function ea(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(ta(t,e,a)&&!Ji(n,a))return!0}return!1}function ta(e,t,n){let r=e[n],i=t[n];return n===`style`&&y(r)&&y(i)?!be(r,i):r!==i}function na({vnode:e,parent:t},n){for(;t;){let r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}var ra={},ia=()=>Object.create(ra),aa=e=>Object.getPrototypeOf(e)===ra;function oa(e,t,n,r=!1){let i={},a=ia();e.propsDefaults=Object.create(null),ca(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:zt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function sa(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=L(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(Ji(e.emitsOptions,o))continue;let d=t[o];if(c)if(u(a,o))d!==a[o]&&(a[o]=d,l=!0);else{let t=O(o);i[t]=la(c,s,t,d,e,!1)}else d!==a[o]&&(a[o]=d,l=!0)}}}else{ca(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!u(t,a)&&((r=k(a))===a||!u(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=la(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!u(t,e))&&(delete a[e],l=!0)}l&&nt(e.attrs,`set`,``)}function ca(e,n,r,i){let[a,o]=e.propsOptions,s=!1,c;if(n)for(let t in n){if(E(t))continue;let l=n[t],d;a&&u(a,d=O(t))?!o||!o.includes(d)?r[d]=l:(c||={})[d]=l:Ji(e.emitsOptions,t)||(!(t in i)||l!==i[t])&&(i[t]=l,s=!0)}if(o){let n=L(r),i=c||t;for(let t=0;t<o.length;t++){let s=o[t];r[s]=la(a,n,s,i[s],e,!u(i,s))}}return s}function la(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=u(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&g(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=bo(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===k(n))&&(r=!0))}return r}var ua=new WeakMap;function da(e,r,i=!1){let a=i?ua:r.propsCache,o=a.get(e);if(o)return o;let c=e.props,l={},f=[],p=!1;if(!g(e)){let t=e=>{p=!0;let[t,n]=da(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return y(e)&&a.set(e,n),n;if(d(c))for(let e=0;e<c.length;e++){let n=O(c[e]);fa(n)&&(l[n]=t)}else if(c)for(let e in c){let t=O(e);if(fa(t)){let n=c[e],r=l[t]=d(n)||g(n)?{type:n}:s({},n),i=r.type,a=!1,o=!0;if(d(i))for(let e=0;e<i.length;++e){let t=i[e],n=g(t)&&t.name;if(n===`Boolean`){a=!0;break}else n===`String`&&(o=!1)}else a=g(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||u(r,`default`))&&f.push(t)}}let m=[l,f];return y(e)&&a.set(e,m),m}function fa(e){return e[0]!==`$`&&!E(e)}var pa=e=>e===`_`||e===`_ctx`||e===`$stable`,ma=e=>d(e)?e.map(Z):[Z(e)],ha=(e,t,n)=>{if(t._n)return t;let r=In((...e)=>ma(t(...e)),n);return r._c=!1,r},ga=(e,t,n)=>{let r=e._ctx;for(let n in e){if(pa(n))continue;let i=e[n];if(g(i))t[n]=ha(n,i,r);else if(i!=null){let e=ma(i);t[n]=()=>e}}},_a=(e,t)=>{let n=ma(t);e.slots.default=()=>n},va=(e,t,n)=>{for(let r in t)(n||!pa(r))&&(e[r]=t[r])},ya=(e,t,n)=>{let r=e.slots=ia();if(e.vnode.shapeFlag&32){let e=t._;e?(va(r,t,n),n&&ie(r,`_`,e,!0)):ga(t,r)}else t&&_a(e,t)},ba=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:va(a,n,r):(o=!n.$stable,ga(n,a)),s=n}else n&&(_a(e,n),s={default:1});if(o)for(let e in a)!pa(e)&&s[e]==null&&delete a[e]},G=Ha;function xa(e){return Ca(e)}function Sa(e){return Ca(e,Fr)}function Ca(e,i){let a=ce();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Y(e,t)&&(r=_e(e),fe(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Ga:y(e,t,n,r);break;case q:b(e,t,n,r);break;case Ka:e??x(t,n,r,o);break;case K:ne(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?re(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,be)}u!=null&&i?Dr(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&Dr(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),O(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&ee(e.children,d,null,r,i,wa(e,a),s,u),_&&Rn(e,null,r,`created`),D(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!E(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Q(f,r,e)}_&&Rn(e,null,r,`beforeMount`);let v=Ea(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&G(()=>{f&&Q(f,r,e),v&&g.enter(d),_&&Rn(e,null,r,`mounted`)},i)},D=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||Ma(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;D(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},ee=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)v(null,e[l]=s?uo(e[l]):Z(e[l]),t,n,r,i,a,o,s)},O=(e,n,r,i,a,o,s)=>{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&Ta(r,!1),(g=h.onVnodeBeforeUpdate)&&Q(g,r,n,e),f&&Rn(n,e,r,`beforeUpdate`),r&&Ta(r,!0),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?te(e.dynamicChildren,d,l,r,i,wa(n,a),o):s||se(e,n,l,null,r,i,wa(n,a),o,!1),u>0){if(u&16)k(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t],i=m[n],o=h[n];(o!==i||n===`value`)&&c(l,n,i,o,a,r)}}u&1&&e.children!==n.children&&p(l,n.children)}else !s&&d==null&&k(l,m,h,r,a);((g=h.onVnodeUpdated)||f)&&G(()=>{g&&Q(g,r,n,e),f&&Rn(n,e,r,`updated`)},i)},te=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s];v(c,l,c.el&&(c.type===K||!Y(c,l)||c.shapeFlag&198)?m(c.el):n,null,r,i,a,o,!0)}},k=(e,n,r,i,a)=>{if(n!==r){if(n!==t)for(let t in n)!E(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(E(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},ne=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),ee(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(te(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Da(e,t,!0)):se(e,t,n,f,i,a,s,c,l)},re=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):A(t,n,r,i,a,o,c):ie(e,t,c)},A=(e,t,n,r,i,a,o)=>{let s=e.component=go(e,r,i);if(Ur(e)&&(s.ctx.renderer=be),wo(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ae,o),!e.el){let r=s.subTree=X(q);b(null,r,t,n),e.placeholder=r.el}}else ae(s,e,t,n,i,a,o)},ie=(e,t,n)=>{let r=t.component=e.component;if($i(e,t,n))if(r.asyncDep&&!r.asyncResolved){oe(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},ae=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=ka(e);if(n){t&&(t.el=c.el,oe(e,t,o)),n.asyncDep.then(()=>{G(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Ta(e,!1),t?(t.el=c.el,oe(e,t,o)):t=c,n&&j(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Q(d,s,t,c),Ta(e,!0);let f=Yi(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),_e(p),e,i,a),t.el=f.el,u===null&&na(e,f.el),r&&G(r,i),(d=t.props&&t.props.onVnodeUpdated)&&G(()=>Q(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Br(t);if(Ta(e,!1),l&&j(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Q(o,d,t),Ta(e,!0),s&&Se){let t=()=>{e.subTree=Yi(e),Se(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Yi(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&G(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;G(()=>Q(o,d,e),i)}(t.shapeFlag&256||d&&Br(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&G(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new je(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Dn(u),Ta(e,!0),l()},oe=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,sa(e,t.props,r,n),ba(e,t.children,n),Ge(),An(e),Ke()},se=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){ue(l,d,n,r,i,a,o,s,c);return}else if(f&256){le(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ge(l,i,a),d!==l&&p(n,d)):u&16?m&16?ue(l,d,n,r,i,a,o,s,c):ge(l,i,a,!0):(u&8&&p(n,``),m&16&&ee(d,n,r,i,a,o,s,c))},le=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;p<f;p++){let n=t[p]=l?uo(t[p]):Z(t[p]);v(e[p],n,r,null,a,o,s,c,l)}u>d?ge(e,a,o,!0,!1,f):ee(t,r,i,a,o,s,c,l,f)},ue=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?uo(t[u]):Z(t[u]);if(Y(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?uo(t[p]):Z(t[p]);if(Y(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=e<d?t[e].el:i;for(;u<=p;)v(null,t[u]=l?uo(t[u]):Z(t[u]),r,n,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)fe(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?uo(t[u]):Z(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let n=e[u];if(y>=b){fe(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Y(n,t[_])){i=_;break}i===void 0?fe(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?Oa(C):n;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1<d?f.el||ja(f):i;C[u]===0?v(null,n,r,p,a,o,s,c,l):x&&(_<0||u!==w[_]?de(n,r,p,2):_--)}}},de=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){de(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,be);return}if(c===K){o(a,t,n);for(let e=0;e<u.length;e++)de(u[e],t,n,r);o(e.anchor,t,n);return}if(c===Ka){S(e,t,n);return}if(r!==2&&d&1&&l)if(r===0)l.beforeEnter(a),o(a,t,n),G(()=>l.enter(a),i);else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{a._isLeaving&&a[lr](!0),r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}else o(a,t,n)},fe=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p}=e;if(d===-2&&(i=!1),s!=null&&(Ge(),Dr(s,null,n,e,!0),Ke()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let m=u&1&&f,h=!Br(e),g;if(h&&(g=o&&o.onVnodeBeforeUnmount)&&Q(g,t,e),u&6)he(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}m&&Rn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,be,r):l&&!l.hasOnce&&(a!==K||d>0&&d&64)?ge(l,t,n,!1,!0):(a===K&&d&384||!i&&u&16)&&ge(c,t,n),r&&pe(e)}(h&&(g=o&&o.onVnodeUnmounted)||m)&&G(()=>{g&&Q(g,t,e),m&&Rn(e,null,t,`unmounted`)},n)},pe=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===K){me(n,r);return}if(t===Ka){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},me=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},he=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Aa(c),Aa(l),r&&j(r),i.stop(),a&&(a.flags|=8,fe(o,e,t,n)),s&&G(s,t),G(()=>{e.isUnmounted=!0},t)},ge=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)fe(e[o],t,n,r,i)},_e=e=>{if(e.shapeFlag&6)return _e(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Xn];return n?h(n):t},ve=!1,ye=(e,t,n)=>{let r;e==null?t._vnode&&(fe(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ve||=(ve=!0,An(r),jn(),!1)},be={p:v,um:fe,m:de,r:pe,mt:A,mc:ee,pc:se,pbc:te,n:_e,o:e},xe,Se;return i&&([xe,Se]=i(be)),{render:ye,hydrate:xe,createApp:Vi(ye,xe)}}function wa({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 Ta({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ea(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Da(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=uo(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Da(t,a)),a.type===Ga&&(a.patchFlag===-1&&(a=i[e]=uo(a)),a.el=t.el),a.type===q&&!a.el&&(a.el=t.el)}}function Oa(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function ka(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ka(t)}function Aa(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ja(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?ja(t.subTree):null}var Ma=e=>e.__isSuspense,Na=0,Pa={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)Ia(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}La(e,t,n,r,i,o,s,c,l)}},hydrate:za,normalize:Ba};function Fa(e,t){let n=e.props&&e.props[t];g(n)&&n()}function Ia(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=Ra(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(Fa(e,`onPending`),Fa(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),Ua(f,e.ssFallback)):f.resolve(!1,!0)}function La(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,Y(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),Ua(d,p)))):(d.pendingId=Na++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),Ua(d,p))):m&&Y(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&Y(m,f))c(m,f,n,r,i,d,a,o,s),Ua(d,f);else if(Fa(t,`onPending`),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=Na++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function Ra(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=Wa(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?oe(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:Na++,timeout:typeof y==`number`?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;x.isHydrating?x.isHydrating=!1:e||(g=i&&o.transition&&o.transition.mode===`out-in`,g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b?m(i):a,0),kn(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&(h(i.el)===u&&(a=m(i)),p(i,l,x,!0),!g&&d&&r.ssFallback&&G(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)),Ua(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){y.effects.push(...c),S=!0;break}y=y.parent}!S&&!g&&kn(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),Fa(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;Fa(t,`onFallback`);let o=m(n),l=()=>{x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),Ua(x,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{_n(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;e.asyncResolved=!0;let{vnode:s}=e;Eo(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),na(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function za(e,t,n,r,i,a,o,s,c){let l=t.suspense=Ra(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function Ba(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Va(r?n.default:n),e.ssFallback=r?Va(n.fallback):X(q)}function Va(e){let t;if(g(e)){let n=Xa&&e._c;n&&(e._d=!1,Ja()),e=e(),n&&(e._d=!0,t=J,Ya())}return d(e)&&(e=Xi(e)),e=Z(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Ha(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):kn(e)}function Ua(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,na(r,i))}function Wa(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var K=Symbol.for(`v-fgt`),Ga=Symbol.for(`v-txt`),q=Symbol.for(`v-cmt`),Ka=Symbol.for(`v-stc`),qa=[],J=null;function Ja(e=!1){qa.push(J=e?null:[])}function Ya(){qa.pop(),J=qa[qa.length-1]||null}var Xa=1;function Za(e,t=!1){Xa+=e,e<0&&J&&t&&(J.hasOnce=!0)}function Qa(e){return e.dynamicChildren=Xa>0?J||n:null,Ya(),Xa>0&&J&&J.push(e),e}function $a(e,t,n,r,i,a){return Qa(io(e,t,n,r,i,a,!0))}function eo(e,t,n,r,i){return Qa(X(e,t,n,r,i,!0))}function to(e){return e?e.__v_isVNode===!0:!1}function Y(e,t){return e.type===t.type&&e.key===t.key}var no=({key:e})=>e??null,ro=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:_(e)||z(e)||g(e)?{i:H,r:e,k:t,f:!!n}:e);function io(e,t=null,n=null,r=0,i=null,a=e===K?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&no(t),ref:t&&ro(t),scopeId:Pn,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:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:H};return s?(fo(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=_(n)?8:16),Xa>0&&!o&&J&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&J.push(c),c}var X=ao;function ao(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===fi)&&(e=q),to(e)){let r=so(e,t,!0);return n&&fo(r,n),Xa>0&&!a&&J&&(r.shapeFlag&6?J[J.indexOf(e)]=r:J.push(r)),r.patchFlag=-2,r}if(Po(e)&&(e=e.__vccOpts),t){t=oo(t);let{class:e,style:n}=t;e&&!_(e)&&(t.class=me(e)),y(n)&&(Wt(n)&&!d(n)&&(n=s({},n)),t.style=le(n))}let o=_(e)?1:Ma(e)?128:Zn(e)?64:y(e)?4:g(e)?2:0;return io(e,t,n,r,i,o,a,!0)}function oo(e){return e?Wt(e)||aa(e)?s({},e):e:null}function so(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?po(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&no(l),ref:t&&t.ref?n&&a?d(a)?a.concat(ro(t)):[a,ro(t)]:ro(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==K?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&so(e.ssContent),ssFallback:e.ssFallback&&so(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&xr(u,c.clone(u)),u}function co(e=` `,t=0){return X(Ga,null,e,t)}function lo(e=``,t=!1){return t?(Ja(),eo(q,null,e)):X(q,null,e)}function Z(e){return e==null||typeof e==`boolean`?X(q):d(e)?X(K,null,e.slice()):to(e)?uo(e):X(Ga,null,String(e))}function uo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:so(e)}function fo(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),fo(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!aa(t)?t._ctx=H:r===3&&H&&(H.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else g(t)?(t={default:t,_ctx:H},n=32):(t=String(t),r&64?(n=16,t=[co(t)]):n=8);e.children=t,e.shapeFlag|=n}function po(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=me([t.class,r.class]));else if(e===`style`)t.style=le([t.style,r.style]);else if(a(e)){let n=t[e],i=r[e];i&&n!==i&&!(d(n)&&n.includes(i))&&(t[e]=n?[].concat(n,i):i)}else e!==``&&(t[e]=r[e])}return t}function Q(e,t,n,r=null){B(e,t,7,[n,r])}var mo=zi(),ho=0;function go(e,n,r){let i=e.type,a=(n?n.appContext:e.appContext)||mo,o={uid:ho++,vnode:e,type:i,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ee(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(a.provides),ids:n?n.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:da(i,a),emitsOptions:qi(i,a),emit:null,emitted:null,propsDefaults:t,inheritAttrs:i.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,suspense:r,suspenseId:r?r.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=n?n.root:o,o.emit=Gi.bind(null,o),e.ce&&e.ce(o),o}var $=null,_o=()=>$||H,vo,yo;{let e=ce(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};vo=t(`__VUE_INSTANCE_SETTERS__`,e=>$=e),yo=t(`__VUE_SSR_SETTERS__`,e=>Co=e)}var bo=e=>{let t=$;return vo(e),e.scope.on(),()=>{e.scope.off(),vo(t)}},xo=()=>{$&&$.scope.off(),vo(null)};function So(e){return e.vnode.shapeFlag&4}var Co=!1;function wo(e,t=!1,n=!1){t&&yo(t);let{props:r,children:i}=e.vnode,a=So(e);oa(e,r,a,t),ya(e,i,n||t);let o=a?To(e,t):void 0;return t&&yo(!1),o}function To(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Si);let{setup:r}=n;if(r){Ge();let n=e.setupContext=r.length>1?jo(e):null,i=bo(e),a=gn(r,e,0,[e.props,n]),o=b(a);if(Ke(),i(),(o||e.sp)&&!Br(e)&&wr(e),o){if(a.then(xo,xo),t)return a.then(n=>{Eo(e,n,t)}).catch(t=>{_n(t,e,0)});e.asyncDep=a}else Eo(e,a,t)}else ko(e,t)}function Eo(e,t,n){g(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:y(t)&&(e.setupState=en(t)),ko(e,n)}var Do,Oo;function ko(e,t,n){let i=e.type;if(!e.render){if(!t&&Do&&!i.render){let t=i.template||Ai(e).template;if(t){let{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:o}=i;i.render=Do(t,s(s({isCustomElement:n,delimiters:a},r),o))}}e.render=i.render||r,Oo&&Oo(e)}{let t=bo(e);Ge();try{Ei(e)}finally{Ke(),t()}}}var Ao={get(e,t){return F(e,`get`,``),e[t]}};function jo(e){return{attrs:new Proxy(e.attrs,Ao),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Mo(e){return e.exposed?e.exposeProxy||=new Proxy(en(Gt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bi)return bi[n](e)},has(e,t){return t in e||t in bi}}):e.proxy}function No(e,t=!0){return g(e)?e.displayName||e.name:e.name||t&&e.__name}function Po(e){return g(e)&&`__vccOpts`in e}var Fo=(e,t)=>ln(e,t,Co);function Io(e,t,n){try{Za(-1);let r=arguments.length;return r===2?y(t)&&!d(t)?to(t)?X(e,null,[t]):X(e,t):X(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&to(n)&&(n=[n]),X(e,t,n))}finally{Za(1)}}var Lo=`3.5.30`;function Ro(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?Ro(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var zo=(()=>{if(console.createTask)return console.createTask;let e={run:e=>e()};return()=>e})();function Bo(e,t,n,r){for(let i=n;i<e.length;i+=1)try{let n=r?r.run(()=>e[i](...t)):e[i](...t);if(n instanceof Promise)return n.then(()=>Bo(e,t,i+1,r))}catch(e){return Promise.reject(e)}}function Vo(e,t,n){if(e.length>0)return Bo(e,t,0,zo(n))}function Ho(e,t,n){if(e.length>0){let r=zo(n);return Promise.all(e.map(e=>r.run(()=>e(...t))))}}function Uo(e,t){for(let n of[...e])n(t)}var Wo=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,`name`,{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];this._hooks[e]=void 0;for(let t of n)this.hook(e,t)}deprecateHooks(e){for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=Ro(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n)e();n.length=0}}removeHooks(e){let t=Ro(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(Vo,e,t)}callHookParallel(e,...t){return this.callHookWith(Ho,e,t)}callHookWith(e,t,n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&Uo(this._before,r);let i=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return i instanceof Promise?i.finally(()=>{this._after&&r&&Uo(this._after,r)}):(this._after&&r&&Uo(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function Go(){return new Wo}function Ko(e={}){let t,n=!1,r=e=>{if(t&&t!==e)throw Error(`Context conflict`)},i;if(e.asyncContext){let t=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;t?i=new t:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}let a=()=>{if(i){let e=i.getStore();if(e!==void 0)return e}return t};return{use:()=>{let e=a();if(e===void 0)throw Error(`Context is not available`);return e},tryUse:()=>a(),set:(e,i)=>{i||r(e),t=e,n=!0},unset:()=>{t=void 0,n=!1},call:(e,a)=>{r(e),t=e;try{return i?i.run(e,a):a()}finally{n||(t=void 0)}},async callAsync(e,r){t=e;let a=()=>{t=e},o=()=>t===e?a:void 0;$o.add(o);try{let a=i?i.run(e,r):r();return n||(t=void 0),await a}finally{$o.delete(o)}}}}function qo(e={}){let t={};return{get(n,r={}){return t[n]||(t[n]=Ko({...e,...r})),t[n]}}}var Jo=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof globalThis<`u`?globalThis:typeof window<`u`?window:{},Yo=`__unctx__`,Xo=Jo[Yo]||(Jo[Yo]=qo()),Zo=(e,t={})=>Xo.get(e,t),Qo=`__unctx_async_handlers__`,$o=Jo[Qo]||(Jo[Qo]=new Set);function es(e){let t=[];for(let e of $o){let n=e();n&&t.push(n)}let n=()=>{for(let e of t)e()},r=e();return r&&typeof r==`object`&&`catch`in r&&(r=r.catch(e=>{throw n(),e})),[r,n]}var ts={id:`__nuxt-loader`},ns={componentName:`NuxtLink`,prefetch:!0,prefetchOn:{visibility:!0}},rs=`#__nuxt`,is=`nuxt-app`,as=36e5,os=`vite:preloadError`;function ss(e=`nuxt-app`){return Zo(e,{asyncContext:!1})}var cs=`__nuxt_plugin`;function ls(e){let t=0,n={_id:e.id||`nuxt-app`,_scope:De(),provide:void 0,versions:{get nuxt(){return`4.4.2`},get vue(){return n.vueApp.version}},payload:zt({...e.ssrContext?.payload||{},data:zt({}),state:Rt({}),once:new Set,_errors:zt({})}),static:{data:{}},runWithContext(e){return n._scope.active&&!Oe()?n._scope.run(()=>ms(n,e)):ms(n,e)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let e=!1;return()=>{if(!e&&(e=!0,t--,t===0))return n.isHydrating=!1,n.callHook(`app:suspense:resolve`)}},_asyncDataPromises:{},_asyncData:zt({}),_state:zt({}),_payloadRevivers:{},...e};{let e=window.__NUXT__;if(e)for(let t in e)switch(t){case`data`:case`state`:case`_errors`:Object.assign(n.payload[t],e[t]);break;default:n.payload[t]=e[t]}}n.hooks=Go(),n.hook=n.hooks.hook;{let e=n.hooks.callHook;n.hooks.callHook=(t,...n)=>Promise.resolve().then(()=>e(t,...n))}n.callHook=n.hooks.callHook,n.provide=(e,t)=>{let r=`$`+e;vs(n,r,t),vs(n.vueApp.config.globalProperties,r,t)},vs(n.vueApp,`$nuxt`,n),vs(n.vueApp.config.globalProperties,`$nuxt`,n);{window.addEventListener(os,e=>{n.callHook(`app:chunkError`,{error:e.payload}),e.payload.message.includes(`Unable to preload CSS`)&&e.preventDefault()}),window.useNuxtApp||=gs;let e=n.hook(`app:error`,(...e)=>{console.error(`[nuxt] error caught during app initialization`,...e)});n.hook(`app:mounted`,e)}let r=n.payload.config;return n.provide(`config`,r),n}function us(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function ds(e,t){if(typeof t==`function`){let{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n==`object`)for(let t in n)e.provide(t,n[t])}}async function fs(e,t){let n=new Set,r=[],i=[],a,o=0;async function s(c){let l=c.dependsOn?.filter(e=>t.some(t=>t._name===e)&&!n.has(e))??[];if(l.length>0)r.push([new Set(l),c]);else{let t=ds(e,c).then(async()=>{c._name&&(n.add(c._name),await Promise.all(r.map(async([e,t])=>{e.has(c._name)&&(e.delete(c._name),e.size===0&&(o++,await s(t)))})))}).catch(t=>{if(!c.parallel&&!e.payload.error)throw t;a||=t});c.parallel?i.push(t):await t}}for(let n of t)us(e,n);for(let e of t)await s(e);if(await Promise.all(i),o)for(let e=0;e<o;e++)await Promise.all(i);if(a)throw e.payload.error||a}function ps(e){if(typeof e==`function`)return e;let t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[cs]:!0,_name:t})}function ms(e,t,n){return ss(e._id).set(e),e.vueApp.runWithContext(()=>n?t(...n):t())}function hs(e){let t;return Vn()&&(t=_o()?.appContext.app.$nuxt),t||=ss(e).tryUse(),t||null}function gs(e){let t=hs(e);if(!t)throw Error(`[nuxt] instance unavailable`);return t}function _s(e){return gs().$config}function vs(e,t,n){Object.defineProperty(e,t,{get:()=>n})}export{In as $,Cr as A,xe as At,qr as B,lo as C,y as Ct,co as D,_ as Dt,xa as E,_e as Et,Bn as F,Ce as Ft,zn as G,ti as H,wi as I,oe as It,di as J,gi as K,Tn as L,oo as M,me as Mt,Io as N,he as Nt,X as O,v as Ot,Vn as P,le as Pt,Wn as Q,Kr as R,eo as S,o as St,Sa as T,p as Tt,ai as U,li as V,Ja as W,Ui as X,pi as Y,Kn as Z,Pa as _,k as _t,_s as a,ke as at,Fo as b,d as bt,ns as c,qt as ct,es as d,on as dt,Ln as et,Go as f,Qt as ft,Wr as g,s as gt,K as h,ne as ht,gs as i,z as it,_o as j,ae as jt,Vr as k,be as kt,as as l,zt as lt,fr as m,O as mt,ls as n,Oe as nt,is as o,Rt as ot,gr as p,Zt as pt,_i as q,ps as r,Ut as rt,ts as s,Bt as st,fs as t,nn as tt,rs as u,Jt as ut,or as v,ve as vt,$a as w,a as wt,io as x,g as xt,B as y,j as yt,ii as z};
@@ -0,0 +1 @@
1
+ import{A as e,Ft as t,H as n,J as r,K as i,O as a,S as o,W as s,b as c,h as l,ut as u,w as d,x as f}from"./BF3PKRZg.js";import{r as p,t as m}from"#entry";var h={key:0,flex:`~ items-center justify-center`,py8:``,op50:``},g={key:1,flex:`~ col gap-3`,p4:``},_={"text-xs":``,op60:``},v={flex:`~ items-center gap-2`,mb1:``,mt2:``},y={"w-full":``,"text-sm":``},b={px2:``,"py1.5":``,"font-mono":``,"text-xs":``},x={px2:``,"py1.5":``},S=[`title`],C={px2:``,"py1.5":``,"font-mono":``,"text-xs":``},w=Object.assign(e({__name:`ClientScriptsList`,props:{scripts:{}},setup(e){let n=e,o=c(()=>{let e=new Map;for(let t of n.scripts){let n=t.dockType;e.has(n)||e.set(n,[]),e.get(n).push(t)}return Array.from(e.entries()).sort(([e],[t])=>e.localeCompare(t))});function u(e){let t=e.split(`/`);return t.length<=3?e:`.../${t.slice(-3).join(`/`)}`}return(n,c)=>{let p=r(`DisplayBadge`),m=r(`DisplayNumberBadge`);return e.scripts.length===0?(s(),d(`div`,h,` No client scripts registered. `)):(s(),d(`div`,g,[f(`div`,_,t(e.scripts.length)+` client scripts registered `,1),(s(!0),d(l,null,i(o.value,([e,n])=>(s(),d(`div`,{key:e},[f(`div`,v,[a(p,{text:e},null,8,[`text`]),a(m,{number:n.length},null,8,[`number`])]),f(`table`,y,[c[0]||=f(`thead`,null,[f(`tr`,{border:`b base`,"text-left":``},[f(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``},` Dock ID `),f(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``},` Dock Title `),f(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``},` Import From `),f(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``},` Import Name `)])],-1),f(`tbody`,null,[(s(!0),d(l,null,i(n,e=>(s(),d(`tr`,{key:e.dockId,border:`b base`,"hover:bg-active":``},[f(`td`,b,t(e.dockId),1),f(`td`,x,t(e.dockTitle),1),f(`td`,{px2:``,"py1.5":``,"font-mono":``,"text-xs":``,"max-w-60":``,truncate:``,title:e.script.importFrom},t(u(e.script.importFrom)),9,S),f(`td`,C,t(e.script.importName??`default`),1)]))),128))])])]))),128))]))}}}),{__name:`ClientScriptsList`}),T=e({__name:`scripts`,setup(e){let t=m(),i=u();async function a(){i.value=await t.value.call(`devtoolskit:self-inspect:get-client-scripts`)}return p(a),n(a),(e,t)=>{let n=r(`VisualLoading`),a=w;return i.value?(s(),o(a,{key:1,scripts:i.value},null,8,[`scripts`])):(s(),o(n,{key:0}))}}});export{T as default};
@@ -0,0 +1 @@
1
+ import{A as e,C as t,D as n,Ft as r,H as i,J as a,K as o,O as s,S as c,W as l,b as u,ct as d,et as f,h as p,ut as m,w as h,x as g}from"./BF3PKRZg.js";import{a as _}from"./Ewns8tmY.js";import{r as v,t as y}from"#entry";var b={flex:`~ col gap-3`,p4:``},x={flex:`~ items-center gap-3 flex-wrap`},S={flex:`~ items-center gap-2`,"flex-1":``,"min-w-50":``},C={flex:`~ items-center gap-2`,"text-xs":``,op60:``},w={flex:`~ items-center gap-2`,mb1:``,mt2:``},T={"font-mono":``,"text-xs":``,op50:``},E={"w-full":``,"text-sm":``},D=[`title`],O={px2:``,"py1.5":``},k={px2:``,"py1.5":``,"text-center":``},A={key:0,"i-ph-check":``,"text-green":``},j={key:1,op20:``},M={px2:``,"py1.5":``,"text-center":``},N={key:0,flex:`~ items-center justify-center gap-1`},P={key:1,op20:``},F={px2:``,"py1.5":``,"text-center":``},I={key:0,"i-ph-check":``,"text-green":``},L={key:1,op20:``},R=Object.assign(e({__name:`RpcFunctionsList`,props:{functions:{}},setup(e){let i=e,m=d(``),v=u(()=>{let e=m.value.toLowerCase();return e?i.functions.filter(t=>t.name.toLowerCase().includes(e)):i.functions}),y=u(()=>{let e={};for(let t of i.functions)e[t.type]=(e[t.type]||0)+1;return e});function R(e){let t=e.split(`:`);return t.length<=1?`(other)`:t.slice(0,-1).join(`:`)}function z(e){return e.split(`:`).at(-1)}let B=u(()=>{let e=new Map;for(let t of v.value){let n=R(t.name);e.has(n)||e.set(n,[]),e.get(n).push(t)}return Array.from(e.entries()).sort(([e],[t])=>e.localeCompare(t))});return(e,u)=>{let d=a(`DisplayBadge`),v=a(`DisplayNumberBadge`);return l(),h(`div`,b,[g(`div`,x,[g(`div`,S,[u[1]||=g(`div`,{"i-ph-magnifying-glass":``,op40:``},null,-1),f(g(`input`,{"onUpdate:modelValue":u[0]||=e=>m.value=e,placeholder:`Filter functions...`,border:`~ base rounded`,"bg-transparent":``,px2:``,py1:``,"text-sm":``,"flex-1":``,"outline-none":``,"focus:border-primary":``},null,512),[[_,m.value]])]),g(`div`,C,[g(`span`,null,r(i.functions.length)+` total`,1),u[2]||=g(`span`,{op30:``},`|`,-1),(l(!0),h(p,null,o(y.value,(e,t)=>(l(),h(`span`,{key:t},[s(d,{text:String(t)},null,8,[`text`]),n(` `+r(e),1)]))),128))])]),(l(!0),h(p,null,o(B.value,([e,n])=>(l(),h(`div`,{key:e},[g(`div`,w,[g(`span`,T,r(e),1),s(v,{number:n.length},null,8,[`number`])]),g(`table`,E,[u[3]||=g(`thead`,null,[g(`tr`,{border:`b base`,"text-left":``},[g(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``},` Name `),g(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``},` Type `),g(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``,"text-center":``},` Cacheable `),g(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``,"text-center":``},` Schema `),g(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``,"text-center":``},` Dump `)])],-1),g(`tbody`,null,[(l(!0),h(p,null,o(n,e=>(l(),h(`tr`,{key:e.name,border:`b base`,"hover:bg-active":``},[g(`td`,{px2:``,"py1.5":``,"font-mono":``,"text-xs":``,title:e.name},r(z(e.name)),9,D),g(`td`,O,[s(d,{text:e.type},null,8,[`text`])]),g(`td`,k,[e.cacheable?(l(),h(`span`,A)):(l(),h(`span`,j,`-`))]),g(`td`,M,[e.hasArgs||e.hasReturns?(l(),h(`span`,N,[e.hasArgs?(l(),c(d,{key:0,text:`args`})):t(``,!0),e.hasReturns?(l(),c(d,{key:1,text:`returns`})):t(``,!0)])):(l(),h(`span`,P,`-`))]),g(`td`,F,[e.hasDump?(l(),h(`span`,I)):(l(),h(`span`,L,`-`))])]))),128))])])]))),128))])}}}),{__name:`RpcFunctionsList`}),z=e({__name:`rpc`,setup(e){let t=y(),n=m();async function r(){n.value=await t.value.call(`devtoolskit:self-inspect:get-rpc-functions`)}return v(r),i(r),(e,t)=>{let r=a(`VisualLoading`),i=R;return n.value?(l(),c(i,{key:1,functions:n.value},null,8,[`functions`])):(l(),c(r,{key:0}))}}});export{z as default};
@@ -0,0 +1 @@
1
+ import{A as e,C as t,D as n,Ft as r,H as i,J as a,K as o,Mt as s,O as c,S as l,W as u,b as d,h as f,ut as p,w as m,x as h}from"./BF3PKRZg.js";import{r as g,t as _}from"#entry";var v={flex:`~ col gap-3`,p4:``},y={"text-xs":``,op60:``},b={flex:`~ items-center gap-2`,mb1:``,mt2:``},x={"text-xs":``,"font-medium":``,op50:``},S={"w-full":``,"text-sm":``},C={px2:``,"py1.5":``,"font-mono":``,"text-xs":``,flex:`~ items-center gap-1`},w={key:0,"i-ph-eye-slash":``,"text-xs":``,op60:``},T={px2:``,"py1.5":``},E={px2:``,"py1.5":``},D={px2:``,"py1.5":``,"text-xs":``},O={key:0,"font-mono":``,op60:``},k={key:1,ml1:``},A={key:2,op20:``},j=Object.assign(e({__name:`DocksList`,props:{docks:{}},setup(e){let i=e,l=d(()=>{let e=new Map;for(let t of i.docks){let n=t.category||`default`;e.has(n)||e.set(n,[]),e.get(n).push(t)}return Array.from(e.entries())});function p(e){if(e.type===`iframe`)return e.url}function g(e){return e.type===`iframe`&&!!e.clientScript}return(e,d)=>{let _=a(`DisplayNumberBadge`),j=a(`DisplayBadge`);return u(),m(`div`,v,[h(`div`,y,r(i.docks.length)+` docks registered `,1),(u(!0),m(f,null,o(l.value,([e,i])=>(u(),m(`div`,{key:e},[h(`div`,b,[h(`span`,x,r(e),1),c(_,{number:i.length},null,8,[`number`])]),h(`table`,S,[d[0]||=h(`thead`,null,[h(`tr`,{border:`b base`,"text-left":``},[h(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``},` ID `),h(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``},` Title `),h(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``},` Type `),h(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``},` Details `)])],-1),h(`tbody`,null,[(u(!0),m(f,null,o(i,e=>(u(),m(`tr`,{key:e.id,border:`b base`,"hover:bg-active":``,class:s(e.isHidden?`op40`:``)},[h(`td`,C,[e.isHidden?(u(),m(`span`,w)):t(``,!0),n(` `+r(e.id),1)]),h(`td`,T,r(e.title),1),h(`td`,E,[c(j,{text:e.type},null,8,[`text`])]),h(`td`,D,[p(e)?(u(),m(`span`,O,r(p(e)),1)):t(``,!0),g(e)?(u(),m(`span`,k,[c(j,{text:`client-script`})])):t(``,!0),!p(e)&&!g(e)?(u(),m(`span`,A,`-`)):t(``,!0)])],2))),128))])])]))),128))])}}}),{__name:`DocksList`}),M=e({__name:`docks`,setup(e){let t=_(),n=p();async function r(){n.value=await t.value.call(`devtoolskit:self-inspect:get-docks`)}return g(r),i(r),(e,t)=>{let r=a(`VisualLoading`),i=j;return n.value?(u(),l(i,{key:1,docks:n.value},null,8,[`docks`])):(u(),l(r,{key:0}))}}});export{M as default};
@@ -0,0 +1 @@
1
+ import{A as e,C as t,D as n,Ft as r,H as i,J as a,K as o,Mt as s,S as c,W as l,b as u,ct as d,et as f,h as p,ut as m,w as h,x as g}from"./BF3PKRZg.js";import{i as _}from"./Ewns8tmY.js";import{r as v,t as y}from"#entry";var b={flex:`~ col gap-3`,p4:``},x={flex:`~ items-center gap-3`,"text-xs":``},S={op60:``},C={flex:`~ items-center gap-1.5`,op60:``,"cursor-pointer":``,"select-none":``},w={"w-full":``,"text-sm":``},T={px2:``,"py1.5":``,"font-mono":``,"text-xs":``},E={px2:``,"py1.5":``,"text-center":``},D={key:0,"i-ph-check":``,"text-green":``},O={key:1,op20:``},k={px2:``,"py1.5":``,"text-center":``},A={key:0,"i-ph-check":``,"text-green":``},j={key:1,op20:``},M={px2:``,"py1.5":``,flex:`~ items-center gap-1`},N={key:1,op20:``},P=Object.assign(e({__name:`DevtoolsPluginsList`,props:{plugins:{}},setup(e){let i=e,m=d(!1),v=u(()=>i.plugins.filter(e=>e.hasDevtools).length),y=u(()=>m.value?i.plugins:i.plugins.filter(e=>e.hasDevtools));return(i,u)=>{let d=a(`DisplayBadge`);return l(),h(`div`,b,[g(`div`,x,[g(`span`,S,r(v.value)+` devtools plugins / `+r(e.plugins.length)+` total `,1),g(`label`,C,[f(g(`input`,{"onUpdate:modelValue":u[0]||=e=>m.value=e,type:`checkbox`},null,512),[[_,m.value]]),u[1]||=n(` Show all `,-1)])]),g(`table`,w,[u[2]||=g(`thead`,null,[g(`tr`,{border:`b base`,"text-left":``},[g(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``},` Plugin Name `),g(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``,"text-center":``},` DevTools `),g(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``,"text-center":``},` Setup `),g(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``},` Capabilities `)])],-1),g(`tbody`,null,[(l(!0),h(p,null,o(y.value,e=>(l(),h(`tr`,{key:e.name,border:`b base`,"hover:bg-active":``,class:s(e.hasDevtools?``:`op40`)},[g(`td`,T,r(e.name),1),g(`td`,E,[e.hasDevtools?(l(),h(`span`,D)):(l(),h(`span`,O,`-`))]),g(`td`,k,[e.hasSetup?(l(),h(`span`,A)):(l(),h(`span`,j,`-`))]),g(`td`,M,[e.capabilities?(l(),h(p,{key:0},[e.capabilities.dev?(l(),c(d,{key:0,text:`dev`})):t(``,!0),e.capabilities.build?(l(),c(d,{key:1,text:`build`})):t(``,!0)],64)):(l(),h(`span`,N,`-`))])],2))),128))])])])}}}),{__name:`DevtoolsPluginsList`}),F=e({__name:`plugins`,setup(e){let t=y(),n=m();async function r(){n.value=await t.value.call(`devtoolskit:self-inspect:get-devtools-plugins`)}return v(r),i(r),(e,t)=>{let r=a(`VisualLoading`),i=P;return n.value?(l(),c(i,{key:1,plugins:n.value},null,8,[`plugins`])):(l(),c(r,{key:0}))}}});export{F as default};
@@ -0,0 +1 @@
1
+ import{A as e}from"./BF3PKRZg.js";import{c as t}from"./D-yV-wpZ.js";var n=e({__name:`index`,setup(e){return t(`/rpc`,{replace:!0}),()=>{}}});export{n as default};
@@ -0,0 +1 @@
1
+ import{Ft as e,W as t,w as n,x as r}from"./BF3PKRZg.js";import{a as i}from"#entry";import{t as a}from"./CHHO6nw6.js";var o={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},s={class:`max-w-520px text-center`},c=[`textContent`],l=[`textContent`],u=[`textContent`],d=a({__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:500},statusText:{type:String,default:`Internal server error`},description:{type:String,default:`This page is temporarily unavailable.`},refresh:{type:String,default:`Refresh this page`}},setup(a){let d=a;return i({title:`${d.status} - ${d.statusText} | ${d.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(i,d)=>(t(),n(`div`,o,[r(`div`,s,[r(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:e(a.status)},null,8,c),r(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:e(a.statusText)},null,8,l),r(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:e(a.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-283b1c88`]]);export{d as default};
@@ -0,0 +1 @@
1
+ import{$ as e,A as t,C as n,D as r,F as i,Ft as a,G as o,H as s,I as c,J as l,K as u,L as d,Mt as f,O as p,Pt as m,S as h,U as g,W as _,X as v,Z as y,b,ct as x,et as S,h as C,pt as w,q as T,ut as E,v as D,w as O,x as k}from"./BF3PKRZg.js";import{i as A,o as j}from"./Ewns8tmY.js";import{n as M,r as N,t as P}from"#entry";var F=0;function I(){return`node_${++F}`}function L(e){return e===null?`null`:Array.isArray(e)?`array`:typeof e}function R(e,t,n,r,i){let a=I(),o=n?`${n}/${e}`:`/${e}`,s=L(t),c={id:a,key:e,path:o,type:s,value:s===`object`||s===`array`?void 0:t,children:[],parentId:r};if(i.set(a,c),s===`object`&&t!==null){let e=t;c.children=Object.keys(e).map(t=>R(t,e[t],o,a,i))}else s===`array`&&(c.children=t.map((e,t)=>R(String(t),e,o,a,i)));return c}function z(e){let t=new Map,n=L(e),r={id:I(),key:``,path:`/`,type:n,value:n===`object`||n===`array`?void 0:e,children:[],parentId:null};if(t.set(r.id,r),n===`object`&&e!==null){let n=e;r.children=Object.keys(n).map(e=>R(e,n[e],``,r.id,t))}else n===`array`&&(r.children=e.map((e,n)=>R(String(n),e,``,r.id,t)));return{root:r,nodesById:t}}function B(e){switch(e.type){case`object`:{let t={};for(let n of e.children)t[n.key]=B(n);return t}case`array`:return e.children.map(e=>B(e));default:return e.value}}function V(e,t,n,r){let i=n?`${n}/${t}`:`/${t}`;return{...e,key:t,path:i,parentId:r,children:e.children.map((t,n)=>V(t,e.type===`array`?String(n):t.key,i,e.id))}}function H(e,t,n){let r=e.nodesById.get(t);for(;r;){if(r.id===n)return!0;r=r.parentId?e.nodesById.get(r.parentId):void 0}return!1}function U(e){let t=new Map;function n(e){t.set(e.id,e);for(let t of e.children)n(t)}return n(e),t}function W(e,t){let n=t?`${t}/${e.key}`:`/${e.key}`;return e.path===n&&e.children.length===0?e:{...e,path:n,children:e.children.map(e=>W(e,n))}}function G(e,t,n){let r=[],i=e.nodesById.get(t);for(;i;)r.unshift(i.id),i=i.parentId?e.nodesById.get(i.parentId):void 0;if(r.length===0)return e;function a(e,t){if(t===r.length-1)return n(e);let i=r[t+1];return{...e,children:e.children.map(e=>e.id===i?a(e,t+1):e)}}let o=a(e.root,0);return{root:o,nodesById:U(o)}}function K(e){if(e.type!==`array`)return e;let t=e.path===`/`?``:e.path;return{...e,children:e.children.map((e,n)=>{let r=String(n);return e.key===r?e:W({...e,key:r},t)})}}function ee(e,t,n){if(!e.nodesById.get(t))return e;let r=L(n);return r!==`object`&&r!==`array`?G(e,t,e=>({...e,type:r,value:n,children:[]})):G(e,t,e=>{let t=e.path.split(`/`).slice(0,-1).join(`/`)||``,r=new Map;return{...R(e.key,n,t,e.parentId,r),id:e.id}})}function te(e,t,n){let r=e.nodesById.get(t);if(!r||!r.parentId)return e;let i=e.nodesById.get(r.parentId);return!i||i.type!==`object`?e:G(e,t,e=>{let t=`${i.path===`/`?``:i.path}/${n}`,r={...e,key:n,path:t};return r.children.length>0&&(r.children=r.children.map(e=>W(e,t))),r})}function ne(e,t,n,r){return e.nodesById.get(t)?G(e,t,e=>{let t=R(n,r,e.path===`/`?``:e.path,e.id,new Map);return{...e,children:[...e.children,t]}}):e}function re(e,t,n,r){return e.nodesById.get(t)?G(e,t,e=>{let t=e.path===`/`?``:e.path,i=V(n,e.type===`array`?String(r):n.key,t,e.id),a=[...e.children];return a.splice(r,0,i),K({...e,children:a})}):e}function ie(e,t){let n=e.nodesById.get(t);return!n||!n.parentId?e:G(e,n.parentId,e=>{let n=e.children.filter(e=>e.id!==t);return K({...e,children:n})})}function ae(e,t,n,r,i){if(!e.nodesById.get(t))return e;let a=new Set(n);return G(e,t,e=>{let t=e.children.filter(e=>!a.has(e.id)),o=t.findIndex(e=>e.id===r);if(o===-1)if(a.has(r)){let n=e.children.findIndex(e=>e.id===r),a=new Map(e.children.map((e,t)=>[e.id,t]));i===`after`?(o=t.findIndex(e=>(a.get(e.id)??-1)>n),o===-1&&(o=t.length)):(o=t.findIndex(e=>(a.get(e.id)??-1)>=n),o===-1&&(o=t.length))}else o=i===`after`?t.length:0;else i===`after`&&o++;let s=n.map(t=>e.children.find(e=>e.id===t)).filter(e=>e!==void 0),c=[...t];return c.splice(o,0,...s),K({...e,children:c})})}function oe(e,t){switch(t){case`string`:return e==null?``:typeof e==`object`?JSON.stringify(e):String(e);case`number`:{let t=Number(e);return isNaN(t)?0:t}case`boolean`:return!!e;case`null`:return null;case`object`:if(typeof e==`object`&&e&&!Array.isArray(e))return e;if(Array.isArray(e)){let t={};return e.forEach((e,n)=>{t[String(n)]=e}),t}return{};case`array`:return Array.isArray(e)?e:typeof e==`object`&&e?Object.values(e):e==null?[]:[e];default:return e}}function se(e,t,n){let r=e.nodesById.get(t);return r?ee(e,t,oe(B(r),n)):e}function q(e,t){let n=e.nodesById.get(t);if(!n||!n.parentId||!e.nodesById.get(n.parentId))return e;let r=B(n);return G(e,n.parentId,e=>{let i=e.children.findIndex(e=>e.id===t),a=e.path===`/`?``:e.path,o=R(e.type===`array`?String(i+1):`${n.key}_copy`,structuredClone(r),a,e.id,new Map),s=[...e.children];return s.splice(i+1,0,o),K({...e,children:s})})}var ce=100,le=class{constructor(){this.stack=[],this.cursor=-1}push(e){this.stack=this.stack.slice(0,this.cursor+1),this.stack.push(e),this.stack.length>ce?this.stack.shift():this.cursor++}undo(){return this.canUndo?(this.cursor--,this.stack[this.cursor]):null}redo(){return this.canRedo?(this.cursor++,this.stack[this.cursor]):null}get canUndo(){return this.cursor>0}get canRedo(){return this.cursor<this.stack.length-1}get current(){return this.stack[this.cursor]??null}};function ue(e,t){if(!t.startsWith(`#/`))return;let n=t.slice(2).split(`/`),r=e;for(let e of n){if(typeof r!=`object`||!r)return;r=r[e]}return r}function J(e,t,n){let r=n??new Set;if(e.$ref){if(r.has(e.$ref))return e;r.add(e.$ref);let n=ue(t,e.$ref);return n?J(n,t,r):e}return e.allOf&&e.allOf.length>0?de(e,t,r):e}function de(e,t,n){let r={...e};delete r.allOf;for(let i of e.allOf){let e=J(i,t,new Set(n));e.type&&!r.type&&(r.type=e.type),e.properties&&(r.properties={...r.properties,...e.properties}),e.required&&(r.required=[...new Set([...r.required??[],...e.required])]),e.additionalProperties!==void 0&&r.additionalProperties===void 0&&(r.additionalProperties=e.additionalProperties),e.items&&!r.items&&(r.items=e.items),e.description&&!r.description&&(r.description=e.description),e.title&&!r.title&&(r.title=e.title),e.enum&&!r.enum&&(r.enum=e.enum),e.minimum!==void 0&&r.minimum===void 0&&(r.minimum=e.minimum),e.maximum!==void 0&&r.maximum===void 0&&(r.maximum=e.maximum),e.minLength!==void 0&&r.minLength===void 0&&(r.minLength=e.minLength),e.maxLength!==void 0&&r.maxLength===void 0&&(r.maxLength=e.maxLength),e.pattern&&!r.pattern&&(r.pattern=e.pattern),e.format&&!r.format&&(r.format=e.format)}return r}function fe(e,t,n){let r=n??e,i=t.split(`/`).filter(Boolean),a=J(e,r);for(let e of i){if(!a)return;if(a=J(a,r),a.properties?.[e]){a=J(a.properties[e],r);continue}if(a.patternProperties){let t=Object.entries(a.patternProperties).find(([t])=>{try{return new RegExp(t).test(e)}catch{return!1}});if(t){a=J(t[1],r);continue}}if(a.additionalProperties&&typeof a.additionalProperties==`object`){a=J(a.additionalProperties,r);continue}if(a.items)if(Array.isArray(a.items)){let t=Number(e);if(!isNaN(t)&&a.items[t]){a=J(a.items[t],r);continue}}else{a=J(a.items,r);continue}if(a.anyOf||a.oneOf){let t=a.anyOf??a.oneOf??[],n;for(let i of t)if(n=fe(J(i,r),e,r),n)break;if(n){a=n;continue}return}return}return a}function pe(e,t){if(!t.trim())return[];let n=[],r=t.toLowerCase();function i(e){e.key&&e.key.toLowerCase().includes(r)&&n.push({nodeId:e.id,field:`key`}),e.value!==void 0&&e.value!==null&&String(e.value).toLowerCase().includes(r)&&n.push({nodeId:e.id,field:`value`});for(let t of e.children)i(t)}return i(e.root),n}function me(e,t){let n=new Set;for(let r of t){let t=e.nodesById.get(r);for(;t&&t.parentId;)n.add(t.parentId),t=e.nodesById.get(t.parentId)}return n}function he(e,t,n=``){let r=[];if(e===t)return r;if(e===null||t===null||typeof e!=typeof t||Array.isArray(e)!==Array.isArray(t))return n?r.push({path:n,type:`changed`,oldValue:e,newValue:t}):ge(e,t,n,r),r;if(typeof e!=`object`)return e!==t&&r.push({path:n||`/`,type:`changed`,oldValue:e,newValue:t}),r;if(Array.isArray(e)&&Array.isArray(t)){let i=Math.max(e.length,t.length);for(let a=0;a<i;a++){let i=n?`${n}/${a}`:`/${a}`;a>=e.length?r.push({path:i,type:`added`,newValue:t[a]}):a>=t.length?r.push({path:i,type:`removed`,oldValue:e[a]}):r.push(...he(e[a],t[a],i))}return r}return ge(e,t,n,r),r}function ge(e,t,n,r){let i=typeof e==`object`&&e&&!Array.isArray(e)?e:{},a=typeof t==`object`&&t&&!Array.isArray(t)?t:{},o=new Set([...Object.keys(i),...Object.keys(a)]);for(let e of o){let t=n?`${n}/${e}`:`/${e}`,o=e in i,s=e in a;!o&&s?r.push({path:t,type:`added`,newValue:a[e]}):o&&!s?r.push({path:t,type:`removed`,oldValue:i[e]}):r.push(...he(i[e],a[e],t))}}function Y(e,t){let n=[];function r(e){if(n.push(e),t(e.id)&&(e.type===`object`||e.type===`array`))for(let t of e.children)r(t)}return r(e),n}var _e=[`name`,`type`,`title`,`id`,`label`,`key`];function X(e,t){if(e.parentId===null)return`/`;if(t.nodesById.get(e.parentId)?.type!==`array`||e.type!==`object`)return e.key;for(let t of _e){let n=e.children.find(e=>e.key===t);if(n?.value!=null&&n.value!==``)return String(n.value)}return e.key}function ve(e){let t=[e.id];for(let n of e.children)t.push(...ve(n));return t}var Z={"--vj-bg":`#1e1e1e`,"--vj-bg-panel":`#252526`,"--vj-bg-hover":`#2a2d2e`,"--vj-bg-selected":`#2a5a1e`,"--vj-bg-selected-muted":`#2a2d2e`,"--vj-bg-match":`#3a3520`,"--vj-bg-match-active":`#51502b`,"--vj-border":`#333333`,"--vj-border-subtle":`#2a2a2a`,"--vj-text":`#cccccc`,"--vj-text-muted":`#888888`,"--vj-text-dim":`#666666`,"--vj-text-dimmer":`#555555`,"--vj-string":`#ce9178`,"--vj-number":`#b5cea8`,"--vj-boolean":`#569cd6`,"--vj-accent":`#007acc`,"--vj-accent-muted":`#094771`,"--vj-input-bg":`#3c3c3c`,"--vj-input-border":`#555555`,"--vj-error":`#f48771`,"--vj-font":`monospace`,"--vj-input-font-size":`13px`},ye=Object.freeze(new Set),Q=()=>({draggedNodeIds:ye,dropTargetNodeId:null,dropPosition:null});function be(e,t){let n=[];function r(e){t.has(e.id)&&n.push(e.id);for(let t of e.children)r(t)}return r(e),n}function xe(e,t){let{draggedNodeIds:n,dropTargetNodeId:r,dropPosition:i}=t;if(n.size===0||!r||!i)return null;let a=e.nodesById.get(r);if(!a||!a.parentId)return null;for(let t of n)if(H(e,r,t))return null;let o=a.parentId,s=e.nodesById.get(o);if(!s)return null;let c=s.children.filter(e=>n.has(e.id)).map(e=>e.id);if(c.length===n.size&&[...n].every(t=>e.nodesById.get(t)?.parentId===o))return ae(e,o,c,r,i);let l=be(e.root,n),u=l.map(t=>e.nodesById.get(t)).filter(e=>!!e&&e.parentId!==null).map(e=>structuredClone(e)),d=e;for(let e of[...l].reverse())d.nodesById.has(e)&&(d=ie(d,e));let f=d.nodesById.get(r);if(!f||!f.parentId)return null;let p=d.nodesById.get(f.parentId);if(!p)return null;let m=p.children.findIndex(e=>e.id===r);i===`after`&&m++;for(let e=0;e<u.length;e++)d=re(d,p.id,u[e],m+e);return d}function Se(e,t,n){let r=document.createElement(`div`);r.textContent=`${t} selected`;let i=document.querySelector(`[data-form-container], [role='tree']`),a=i?getComputedStyle(i):null,o=a?.getPropertyValue(`--vj-bg-selected`).trim()||Z[`--vj-bg-selected`],s=a?.getPropertyValue(`--vj-text-selected`).trim()||a?.getPropertyValue(`--vj-text`).trim()||Z[`--vj-text`],c=a?.getPropertyValue(`--vj-font`).trim()||Z[`--vj-font`];r.style.cssText=[`position:fixed`,`top:-1000px`,`left:-1000px`,`padding:4px 12px`,`background:${o}`,`color:${s}`,`font-family:${c}`,`font-size:13px`,`border-radius:4px`,`white-space:nowrap`,`pointer-events:none`].join(`;`),document.body.appendChild(r),e.setDragImage(r,0,14),requestAnimationFrame(()=>r.remove())}function Ce(e,t,n){if(!e)return;let r=fe(e,n,t);if(r)return J(r,t??e)}function we(e){return e.type===`boolean`||e.type===`null`?`var(--vj-boolean, #569cd6)`:e.type===`number`?`var(--vj-number, #b5cea8)`:`var(--vj-string, #ce9178)`}function Te(e){return e.type===`null`?`null`:e.type===`boolean`?String(e.value):e.value===null||e.value===void 0?``:String(e.value)}function Ee(e,t,n){return!t||!e.parentId?!1:(Ce(t,n,e.path.split(`/`).slice(0,-1).join(`/`)||`/`)?.required)?.includes(e.key)??!1}function De(e,t,n){let r=Array.isArray(t)?t[0]:t;if(r===`boolean`||e===`true`||e===`false`)return e===`true`;if(e===`null`)return null;if(r===`number`||r===`integer`||n===`number`){let t=Number(e);return isNaN(t)?e:t}return e}var Oe=Symbol(`StudioContext`);function ke(e,t,n){if(!t)return null;let r=e.nodesById.get(t);if(!r)return null;for(;r;){let t=r.parentId?e.nodesById.get(r.parentId):void 0,i=t?t.children:[e.root],a=new Set(i.map(e=>e.id));if(!i.every(e=>n.has(e.id))||!t||!t.parentId)return a;r=t}return null}function Ae(e,t,n){let r=e.findIndex(e=>e.id===t),i=e.findIndex(e=>e.id===n);if(r===-1||i===-1)return null;let a=Math.min(r,i),o=Math.max(r,i),s=new Set;for(let t=a;t<=o;t++)s.add(e[t].id);return s}function je(e,t,n){let r=[...t].filter(n=>{let r=e.nodesById.get(n);if(!r||r.parentId===null)return!1;let i=e.nodesById.get(r.parentId);for(;i;){if(t.has(i.id))return!1;i=i.parentId?e.nodesById.get(i.parentId):void 0}return!0});if(r.length===0)return{newTree:e,nextFocusId:null};let i=n.findIndex(e=>t.has(e.id)),a=e;for(let e of r)a.nodesById.has(e)&&(a=ie(a,e));let o=null;for(let e=i;e<n.length;e++){let r=n[e].id;if(!t.has(r)&&a.nodesById.has(r)){o=r;break}}if(!o)for(let e=i-1;e>=0;e--){let r=n[e].id;if(!t.has(r)&&a.nodesById.has(r)){o=r;break}}return{newTree:a,nextFocusId:o}}var Me=t({__name:`VisualJson`,props:{value:{type:[String,Number,Boolean,null,Array,Object]},schema:{default:null}},emits:[`change`],setup(e,{emit:t}){let n=e,r=t,i=E(z(n.value)),a=E(null),c=E(new Set),l=E(null),u=E(null),d=E(new Set([i.value.root.id])),f=b(()=>Y(i.value.root,e=>d.value.has(e))),p=null,m=new le,h=E(0),_=b(()=>(h.value,m.canUndo)),v=b(()=>(h.value,m.canRedo)),x=E(``),S=E([]),C=E(0),w=b(()=>new Set(S.value.map(e=>e.nodeId))),D=!1;m.push(i.value);function O(e){a.value=e,c.value=e?new Set([e]):new Set,l.value=e,u.value=e}y(()=>n.value,e=>{if(D){D=!1;return}let t=z(e);i.value=t,d.value=new Set([t.root.id]),O(null),m=new le,m.push(t),h.value++,x.value=``,S.value=[],C.value=0},{flush:`sync`}),y(i,e=>{if(!x.value.trim())return;let t=pe(e,x.value);S.value=t,C.value=Math.min(C.value,Math.max(t.length-1,0))},{flush:`sync`});function k(e){i.value=e,m.push(e),h.value++,D=!0,r(`change`,B(e.root))}function A(){let e=m.undo();e&&(i.value=e,h.value++,D=!0,r(`change`,B(e.root)))}function j(){let e=m.redo();e&&(i.value=e,h.value++,D=!0,r(`change`,B(e.root)))}function M(e){let t=e.metaKey||e.ctrlKey;t&&e.key===`z`&&!e.shiftKey?(e.preventDefault(),A()):(t&&e.key===`z`&&e.shiftKey||t&&e.key===`y`)&&(e.preventDefault(),j())}return s(()=>document.addEventListener(`keydown`,M)),g(()=>document.removeEventListener(`keydown`,M)),o(Oe,{state:{tree:i,focusedNodeId:a,selectedNodeIds:c,anchorNodeId:l,drillDownNodeId:u,expandedNodeIds:d,schema:b(()=>n.schema??null),searchQuery:x,searchMatches:S,searchMatchIndex:C,searchMatchNodeIds:w,canUndo:_,canRedo:v},actions:{setTree:k,selectNode(e){a.value=e,c.value=e?new Set([e]):new Set,l.value=e},selectAndDrillDown:O,toggleNodeSelection(e){let t=new Set(c.value);t.has(e)?t.delete(e):t.add(e),c.value=t,t.size===0?(a.value=null,l.value=null):(a.value=e,l.value=e)},selectNodeRange(e){let t=p??f.value,n=l.value;if(!n){a.value=e,c.value=new Set([e]),l.value=e;return}let r=Ae(t,n,e);if(!r){a.value=e,c.value=new Set([e]),l.value=e;return}c.value=r,a.value=e},setSelection(e,t,n){a.value=e,c.value=t,l.value=n},setVisibleNodesOverride(e){p=e},drillDown(e){u.value=e},toggleExpand(e){let t=new Set(d.value);t.has(e)?t.delete(e):t.add(e),d.value=t},expandNode(e){let t=new Set(d.value);t.add(e),d.value=t},collapseNode(e){let t=new Set(d.value);t.delete(e),d.value=t},expandAll(){d.value=new Set(ve(i.value.root))},collapseAll(){d.value=new Set([i.value.root.id])},undo:A,redo:j,setSearchQuery(e){if(x.value=e,!e.trim()){S.value=[],C.value=0;return}let t=pe(i.value,e);if(S.value=t,C.value=0,t.length>0){let e=me(i.value,t.map(e=>e.nodeId)),n=new Set(d.value);for(let t of e)n.add(t);d.value=n,O(t[0].nodeId)}},nextSearchMatch(){if(S.value.length===0)return;let e=(C.value+1)%S.value.length;C.value=e,O(S.value[e].nodeId)},prevSearchMatch(){if(S.value.length===0)return;let e=(C.value-1+S.value.length)%S.value.length;C.value=e,O(S.value[e].nodeId)}}}),(e,t)=>T(e.$slots,`default`)}});function $(){let e=i(Oe);if(!e)throw Error(`useStudio must be used within a <VisualJson> provider`);return e}function Ne(e,t){let{state:n,actions:r}=$(),i=E(Q());function a(e){let n;n=t.value.size>0&&t.value.has(e)?t.value:new Set([e]),i.value={draggedNodeIds:n,dropTargetNodeId:null,dropPosition:null}}function o(e,t){let r=i.value.draggedNodeIds;for(let t of r)if(e===t||H(n.tree.value,e,t))return;i.value={...i.value,dropTargetNodeId:e,dropPosition:t}}function s(t,n){if(n===`before`){let n=e.value.findIndex(e=>e.id===t);if(n>0){o(e.value[n-1].id,`after`);return}}o(t,n)}function c(){i.value=Q()}function l(){let e=xe(n.tree.value,i.value);e&&r.setTree(e),i.value=Q()}return{dragState:i,handleDragStart:a,handleDragOver:s,handleDragEnd:c,handleDrop:l}}var Pe=[`aria-selected`,`aria-expanded`,`draggable`,`data-node-id`],Fe=[`aria-label`],Ie={key:1,style:{width:`16px`,flexShrink:0}},Le=t({__name:`TreeNodeRow`,props:{node:{},depth:{},dragState:{},showValues:{type:Boolean},showCounts:{type:Boolean},isFocused:{type:Boolean}},emits:[`dragStart`,`dragOver`,`dragEnd`,`drop`,`contextMenu`,`selectRange`],setup(e,{emit:t}){let r=e,i=t,{state:o,actions:s}=$(),c=E(!1);function l(){return o.selectedNodeIds.value.has(r.node.id)}function d(){return o.expandedNodeIds.value.has(r.node.id)}let f=r.node.type===`object`||r.node.type===`array`,p=r.node.parentId===null;function g(){return o.searchMatchNodeIds.value.has(r.node.id)}function v(){return o.searchMatches.value.length>0&&o.searchMatches.value[o.searchMatchIndex.value]?.nodeId===r.node.id}function y(){return f?r.node.type===`array`?`[${r.node.children.length}]`:`{${r.node.children.length}}`:r.node.value===null?`null`:typeof r.node.value==`string`?r.node.value:String(r.node.value)}function b(e){e.preventDefault();let t=e.currentTarget.getBoundingClientRect(),n=t.top+t.height/2,a=e.clientY<n?`before`:`after`;i(`dragOver`,r.node.id,a)}function x(){return r.dragState.dropTargetNodeId===r.node.id&&r.dragState.dropPosition===`before`?`var(--vj-accent, #007acc)`:`transparent`}function S(){return r.dragState.dropTargetNodeId===r.node.id&&r.dragState.dropPosition===`after`?`var(--vj-accent, #007acc)`:`transparent`}function T(){let e=l(),t=v(),n=g(),i=c.value;return e?r.isFocused?`var(--vj-bg-selected, #2a5a1e)`:`var(--vj-bg-selected-muted, var(--vj-bg-hover, #2a2d2e))`:t?`var(--vj-bg-match-active, #51502b)`:n?`var(--vj-bg-match, #3a3520)`:i?`var(--vj-bg-hover, #2a2d2e)`:`transparent`}function D(e){e.shiftKey?i(`selectRange`,r.node.id):e.metaKey||e.ctrlKey?s.toggleNodeSelection(r.node.id):s.selectAndDrillDown(r.node.id)}function A(e){e.dataTransfer.effectAllowed=`move`,o.selectedNodeIds.value.size>1&&o.selectedNodeIds.value.has(r.node.id)&&Se(e.dataTransfer,o.selectedNodeIds.value.size),i(`dragStart`,r.node.id)}return(t,r)=>(_(),O(C,null,[k(`div`,{role:`treeitem`,"aria-selected":l(),"aria-expanded":w(f)?d():void 0,draggable:!p,"data-node-id":e.node.id,style:m({display:`flex`,alignItems:`center`,gap:`6px`,padding:`1px 8px`,paddingLeft:8+e.depth*16+`px`,cursor:`pointer`,backgroundColor:T(),minHeight:`28px`,userSelect:`none`,opacity:e.dragState.draggedNodeIds.has(e.node.id)?.4:1,borderTop:`2px solid ${x()}`,borderBottom:`2px solid ${S()}`,boxSizing:`border-box`,color:l()&&e.isFocused?`var(--vj-text-selected, var(--vj-text, #cccccc))`:`var(--vj-text, #cccccc)`}),onClick:D,onMouseenter:r[1]||=()=>c.value=!0,onMouseleave:r[2]||=()=>c.value=!1,onContextmenu:r[3]||=t=>i(`contextMenu`,t,e.node),onDragstart:A,onDragover:b,onDragend:r[4]||=()=>i(`dragEnd`),onDrop:r[5]||=j(()=>i(`drop`),[`prevent`])},[w(f)?(_(),O(`button`,{key:0,"aria-label":d()?`Collapse`:`Expand`,style:m({background:`none`,border:`none`,color:`inherit`,cursor:`pointer`,padding:0,width:`16px`,fontSize:`9px`,flexShrink:0,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 0.15s`,transform:d()?`rotate(90deg)`:`rotate(0deg)`}),onClick:r[0]||=j(()=>w(s).toggleExpand(e.node.id),[`stop`])},` ▶ `,12,Fe)):(_(),O(`span`,Ie)),k(`span`,{style:m({color:`inherit`,fontSize:`13px`,fontFamily:`var(--vj-font, monospace)`,flexShrink:0,fontWeight:p?600:400})},a(p?`/`:w(X)(e.node,w(o).tree.value)),5),!p&&w(f)&&e.showCounts?(_(),O(`span`,{key:2,style:m({color:l()?`inherit`:`var(--vj-text-muted, #888888)`,fontSize:`13px`,fontFamily:`var(--vj-font, monospace)`,whiteSpace:`nowrap`,marginLeft:`auto`})},a(y()),5)):n(``,!0),!p&&!w(f)&&e.showValues?(_(),O(`span`,{key:3,style:m({color:e.node.type===`string`?`var(--vj-string, #ce9178)`:`var(--vj-number, #b5cea8)`,fontSize:`13px`,fontFamily:`var(--vj-font, monospace)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,marginLeft:`auto`})},a(y()),5)):n(``,!0)],44,Pe),d()?(_(!0),O(C,{key:0},u(e.node.children,t=>(_(),h(Le,{key:t.id,node:t,depth:e.depth+1,"drag-state":e.dragState,"show-values":e.showValues,"show-counts":e.showCounts,"is-focused":e.isFocused,onDragStart:r[6]||=e=>i(`dragStart`,e),onDragOver:r[7]||=(e,t)=>i(`dragOver`,e,t),onDragEnd:r[8]||=()=>i(`dragEnd`),onDrop:r[9]||=()=>i(`drop`),onContextMenu:r[10]||=(e,t)=>i(`contextMenu`,e,t),onSelectRange:r[11]||=e=>i(`selectRange`,e)},null,8,[`node`,`depth`,`drag-state`,`show-values`,`show-counts`,`is-focused`]))),128)):n(``,!0)],64))}}),Re={key:0,style:{height:`1px`,backgroundColor:`var(--vj-border, #454545)`,margin:`4px 0`}},ze=[`disabled`,`onClick`,`onMouseenter`],Be=t({__name:`ContextMenu`,props:{x:{},y:{},items:{}},emits:[`close`],setup(e,{emit:t}){let r=e,i=t,o=E(null),c=E({left:r.x,top:r.y});y(()=>[r.x,r.y],async()=>{if(await d(),!o.value)return;let e=o.value.getBoundingClientRect(),t=window.innerWidth,n=window.innerHeight;c.value={left:e.right>t?Math.max(0,r.x-e.width):r.x,top:e.bottom>n?Math.max(0,r.y-e.height):r.y}},{immediate:!0});function l(e){o.value&&!o.value.contains(e.target)&&i(`close`)}function f(e){e.key===`Escape`&&i(`close`)}return s(async()=>{if(await d(),o.value){let e=o.value.getBoundingClientRect(),t=window.innerWidth,n=window.innerHeight;c.value={left:e.right>t?Math.max(0,r.x-e.width):r.x,top:e.bottom>n?Math.max(0,r.y-e.height):r.y}}document.addEventListener(`mousedown`,l),document.addEventListener(`keydown`,f)}),g(()=>{document.removeEventListener(`mousedown`,l),document.removeEventListener(`keydown`,f)}),(t,r)=>(_(),h(D,{to:`body`},[k(`div`,{ref_key:`menuRef`,ref:o,style:m({position:`fixed`,left:c.value.left+`px`,top:c.value.top+`px`,zIndex:1e4,backgroundColor:`var(--vj-bg-panel, #252526)`,border:`1px solid var(--vj-border, #454545)`,borderRadius:`4px`,boxShadow:`0 4px 12px rgba(0,0,0,0.5)`,padding:`4px 0`,minWidth:`160px`})},[(_(!0),O(C,null,u(e.items,(e,t)=>(_(),O(C,{key:t},[`separator`in e&&e.separator?(_(),O(`div`,Re)):`label`in e?(_(),O(`button`,{key:1,disabled:e.disabled,style:m({display:`block`,width:`100%`,textAlign:`left`,background:`none`,border:`none`,color:e.disabled?`var(--vj-text-dimmer, #555555)`:`var(--vj-text, #cccccc)`,cursor:e.disabled?`default`:`pointer`,padding:`4px 16px`,fontSize:`12px`,fontFamily:`var(--vj-font, monospace)`}),onClick:()=>{e.disabled||(e.action(),i(`close`))},onMouseenter:t=>{e.disabled||(t.target.style.backgroundColor=`var(--vj-accent-muted, #094771)`)},onMouseleave:r[0]||=e=>{e.target.style.backgroundColor=`transparent`}},a(e.label),45,ze)):n(``,!0)],64))),128))],4)]))}}),Ve=t({__name:`TreeView`,props:{class:{},showValues:{type:Boolean,default:!0},showCounts:{type:Boolean,default:!1}},setup(e){let t=e,{state:r,actions:i}=$(),a=E(null),o=b(()=>Y(r.tree.value.root,e=>r.expandedNodeIds.value.has(e))),{dragState:s,handleDragStart:c,handleDragOver:l,handleDragEnd:u,handleDrop:d}=Ne(o,r.selectedNodeIds),f=E(null),m=E(!1);function g(e){i.setVisibleNodesOverride(o.value),i.selectNodeRange(e)}y(()=>r.focusedNodeId.value,e=>{if(e&&a.value){let t=a.value.querySelector(`[data-node-id="${e}"]`);t&&t.scrollIntoView({block:`nearest`})}});function v(e,t){e.preventDefault(),r.selectedNodeIds.value.has(t.id)||i.selectAndDrillDown(t.id),f.value={x:e.clientX,y:e.clientY,node:t}}function x(e){let t=[];if((e.type===`object`||e.type===`array`)&&(t.push({label:`Expand all children`,action:()=>{function t(e){let n=[e.id];for(let r of e.children)n.push(...t(r));return n}for(let n of t(e))i.expandNode(n)}}),t.push({label:`Collapse all children`,action:()=>{function t(e){let n=[];for(let r of e.children)n.push(r.id),n.push(...t(r));return n}for(let n of t(e))i.collapseNode(n)}}),t.push({separator:!0})),t.push({label:`Copy path`,action:()=>navigator.clipboard.writeText(e.path).catch(()=>{})}),t.push({label:`Copy value as JSON`,action:()=>{let t=B(e),n=typeof t==`string`?t:JSON.stringify(t,null,2);navigator.clipboard.writeText(n).catch(()=>{})}}),e.parentId){t.push({separator:!0}),t.push({label:`Duplicate`,action:()=>{let t=q(r.tree.value,e.id);i.setTree(t)}});let n=[`string`,`number`,`boolean`,`null`,`object`,`array`].filter(t=>t!==e.type).map(t=>({label:`Change to ${t}`,action:()=>{let n=se(r.tree.value,e.id,t);i.setTree(n)}}));t.push({separator:!0}),t.push(...n),t.push({separator:!0}),t.push({label:`Delete`,action:()=>{let{newTree:e,nextFocusId:t}=je(r.tree.value,r.selectedNodeIds.value,o.value);e!==r.tree.value&&(i.setTree(e),t?i.selectNode(t):i.setSelection(null,new Set,null))}})}return t}function S(e){let t=o.value.findIndex(e=>e.id===r.focusedNodeId.value);switch(e.key){case`ArrowDown`:{e.preventDefault();let n=o.value[t+1];n&&(e.shiftKey?g(n.id):i.selectNode(n.id));break}case`ArrowUp`:{e.preventDefault();let n=o.value[t-1];n&&(e.shiftKey?g(n.id):i.selectNode(n.id));break}case`ArrowRight`:{e.preventDefault();let n=t>=0?o.value[t]:null;n&&(n.type===`object`||n.type===`array`)&&(r.expandedNodeIds.value.has(n.id)?n.children.length>0&&i.selectNode(n.children[0].id):i.expandNode(n.id));break}case`ArrowLeft`:{e.preventDefault();let n=t>=0?o.value[t]:null;if(!n)break;(n.type===`object`||n.type===`array`)&&r.expandedNodeIds.value.has(n.id)?i.collapseNode(n.id):n.parentId&&i.selectNode(n.parentId);break}case`a`:if(e.metaKey||e.ctrlKey){e.preventDefault();let t=ke(r.tree.value,r.focusedNodeId.value,r.selectedNodeIds.value);t&&i.setSelection(r.focusedNodeId.value,t,r.focusedNodeId.value)}break;case`Escape`:e.preventDefault(),r.selectedNodeIds.value.size>1&&r.focusedNodeId.value?i.selectNode(r.focusedNodeId.value):i.setSelection(null,new Set,null);break;case`Delete`:case`Backspace`:{e.preventDefault();let{newTree:t,nextFocusId:n}=je(r.tree.value,r.selectedNodeIds.value,o.value);if(t===r.tree.value)break;i.setTree(t),n?i.selectNode(n):i.setSelection(null,new Set,null);break}}}return(e,i)=>(_(),O(C,null,[k(`div`,{ref_key:`containerRef`,ref:a,role:`tree`,tabindex:`0`,style:{overflow:`auto`,backgroundColor:`var(--vj-bg, #1e1e1e)`,color:`var(--vj-text, #cccccc)`,fontFamily:`var(--vj-font, monospace)`,fontSize:`13px`,outline:`none`,flex:1},onKeydown:S,onFocus:i[0]||=()=>m.value=!0,onBlur:i[1]||=()=>m.value=!1},[p(Le,{node:w(r).tree.value.root,depth:0,"drag-state":w(s),"show-values":t.showValues??!0,"show-counts":t.showCounts??!1,"is-focused":m.value,onDragStart:w(c),onDragOver:w(l),onDragEnd:w(u),onDrop:w(d),onContextMenu:v,onSelectRange:g},null,8,[`node`,`drag-state`,`show-values`,`show-counts`,`is-focused`,`onDragStart`,`onDragOver`,`onDragEnd`,`onDrop`])],544),f.value?(_(),h(Be,{key:0,x:f.value.x,y:f.value.y,items:x(f.value.node),onClose:i[2]||=()=>f.value=null},null,8,[`x`,`y`,`items`])):n(``,!0)],64))}}),He=Symbol(`FormViewContext`),Ue=[`value`],We=[`onMousedown`,`onMouseenter`],Ge=20,Ke=200,qe=t({__name:`Breadcrumbs`,props:{class:{}},setup(e){let{state:t,actions:r}=$(),i=b(()=>t.drillDownNodeId.value?t.tree.value.nodesById.get(t.drillDownNodeId.value):null),o=b(()=>i.value?.path??`/`),c=E(o.value),l=E(!1),d=E(0),f=E(null),p=E(null),h=E(null);y(o,e=>{c.value=e});let v=b(()=>{if(!l.value)return[];let e=c.value.toLowerCase(),n=[];for(let[r,i]of t.tree.value.nodesById)if(i.path.toLowerCase().startsWith(e)&&n.push({id:r,path:i.path}),n.length>=Ge)break;return n.sort((e,t)=>e.path.localeCompare(t.path)),n});y(v,()=>{d.value=0}),y(()=>[d.value,l.value],([e,t])=>{let n=p.value;!n||!t||n.children[e]?.scrollIntoView({block:`nearest`})});function x(e){var n;for(let[n,i]of t.tree.value.nodesById)if(i.path===e){r.selectAndDrillDown(n);break}l.value=!1,(n=f.value)==null||n.blur()}function S(e){var t;if(!l.value){(e.key===`ArrowDown`||e.key===`Enter`)&&(l.value=!0,e.preventDefault());return}switch(e.key){case`ArrowDown`:e.preventDefault(),d.value=Math.min(d.value+1,v.value.length-1);break;case`ArrowUp`:e.preventDefault(),d.value=Math.max(d.value-1,0);break;case`Enter`:e.preventDefault(),v.value.length>0&&d.value<v.value.length?x(v.value[d.value].path):x(c.value.trim()||`/`);break;case`Escape`:e.preventDefault(),c.value=o.value,l.value=!1,(t=f.value)==null||t.blur();break}}function w(e){h.value&&!h.value.contains(e.target)&&(c.value=o.value,l.value=!1)}return s(()=>document.addEventListener(`mousedown`,w)),g(()=>document.removeEventListener(`mousedown`,w)),(e,t)=>(_(),O(`div`,{ref_key:`wrapperRef`,ref:h,style:{position:`relative`,flex:1,minWidth:0}},[k(`input`,{ref_key:`inputRef`,ref:f,value:c.value,spellcheck:`false`,autocomplete:`off`,style:{width:`100%`,boxSizing:`border-box`,padding:`3px 0`,fontSize:`var(--vj-input-font-size, 13px)`,fontFamily:`var(--vj-font, monospace)`,color:`var(--vj-text-muted, #999999)`,background:`transparent`,border:`none`,outline:`none`},onInput:t[0]||=e=>{c.value=e.target.value,l.value||=!0},onFocus:t[1]||=e=>{e.target.select(),l.value=!0},onKeydown:S},null,40,Ue),l.value&&v.value.length>0?(_(),O(`div`,{key:0,ref_key:`listRef`,ref:p,style:m({position:`absolute`,top:`100%`,left:`-12px`,right:`-12px`,zIndex:50,maxHeight:Ke+`px`,overflowY:`auto`,backgroundColor:`var(--vj-bg-panel, #252526)`,border:`1px solid var(--vj-border, #333333)`,boxShadow:`0 4px 12px rgba(0,0,0,0.3)`})},[(_(!0),O(C,null,u(v.value,(e,t)=>(_(),O(`div`,{key:e.id,style:m({padding:`4px 12px`,fontSize:`13px`,fontFamily:`var(--vj-font, monospace)`,color:t===d.value?`var(--vj-text, #cccccc)`:`var(--vj-text-muted, #888888)`,backgroundColor:t===d.value?`var(--vj-bg-hover, #2a2d2e)`:`transparent`,cursor:`pointer`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`}),onMousedown:j(()=>x(e.path),[`prevent`]),onMouseenter:()=>d.value=t},a(e.path),45,We))),128))],4)):n(``,!0)],512))}}),Je=[`value`],Ye=[`onMousedown`,`onMouseenter`],Xe={style:{width:`14px`,flexShrink:0,fontSize:`12px`}},Ze=200,Qe=t({__name:`EnumInput`,props:c({enumValues:{},value:{},inputStyle:{}},{inputRef:{},inputRefModifiers:{}}),emits:c([`valueChange`],[`update:inputRef`]),setup(e,{expose:t,emit:i}){let o=e,c=i;v(e,`inputRef`);let l=E(o.value),d=E(!1),f=E(0),p=E(null),h=E(null),x=E(null);y(()=>o.value,e=>{l.value=e});let S=b(()=>o.enumValues.map(e=>String(e)));y(S,()=>{f.value=0}),y(()=>[f.value,d.value],([e,t])=>{let n=p.value;!n||!t||n.children[e]?.scrollIntoView({block:`nearest`})});function w(e){c(`valueChange`,e),l.value=e,d.value=!1}function T(e){if(!d.value){(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(e.preventDefault(),e.stopPropagation(),d.value=!0);return}switch(e.key){case`ArrowDown`:e.preventDefault(),e.stopPropagation(),f.value=Math.min(f.value+1,S.value.length-1);break;case`ArrowUp`:e.preventDefault(),e.stopPropagation(),f.value=Math.max(f.value-1,0);break;case`Enter`:e.preventDefault(),e.stopPropagation(),S.value.length>0&&f.value<S.value.length&&w(S.value[f.value]);break;case`Escape`:e.preventDefault(),e.stopPropagation(),l.value=o.value,d.value=!1;break;case`Tab`:l.value=o.value,d.value=!1;break}}function D(e){h.value&&!h.value.contains(e.target)&&(l.value=o.value,d.value=!1)}return s(()=>document.addEventListener(`mousedown`,D)),g(()=>document.removeEventListener(`mousedown`,D)),t({focus:()=>x.value?.focus()}),(t,i)=>(_(),O(`div`,{ref_key:`wrapperRef`,ref:h,style:{position:`relative`,flex:1,minWidth:0}},[k(`input`,{ref_key:`localInputRef`,ref:x,value:l.value,spellcheck:`false`,autocomplete:`off`,style:m(e.inputStyle),onInput:i[0]||=e=>{l.value=e.target.value,d.value||=!0},onFocus:i[1]||=()=>d.value=!0,onKeydown:T,onClick:i[2]||=j(()=>{},[`stop`])},null,44,Je),d.value&&S.value.length>0?(_(),O(`div`,{key:0,ref_key:`listRef`,ref:p,style:m({position:`absolute`,top:`calc(100% + 4px)`,left:`-32px`,right:0,zIndex:50,maxHeight:Ze+`px`,overflowY:`auto`,backgroundColor:`var(--vj-bg-panel, #252526)`,border:`1px solid var(--vj-border, #333333)`,boxShadow:`0 4px 12px rgba(0,0,0,0.3)`})},[(_(!0),O(C,null,u(S.value,(t,n)=>(_(),O(`div`,{key:t,style:m({padding:`4px 12px`,fontSize:`13px`,fontFamily:`var(--vj-font, monospace)`,display:`flex`,alignItems:`center`,gap:`6px`,color:n===f.value?`var(--vj-text, #cccccc)`:`var(--vj-text-muted, #888888)`,backgroundColor:n===f.value?`var(--vj-bg-hover, #2a2d2e)`:`transparent`,cursor:`pointer`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`}),onMousedown:j(()=>w(t),[`prevent`]),onMouseenter:()=>f.value=n},[k(`span`,Xe,a(t===e.value?`✓`:``),1),r(` `+a(t),1)],44,Ye))),128))],4)):n(``,!0)],512))}}),$e={key:0},et=[`data-form-node-id`,`draggable`],tt=[`value`],nt={key:2,style:{color:`var(--vj-text-muted, #888888)`,fontSize:`11px`,fontFamily:`var(--vj-font, monospace)`}},rt={key:1},it=[`data-form-node-id`,`draggable`],at=[`value`],ot={key:2,style:{color:`var(--vj-error, #f48771)`,fontSize:`10px`,fontFamily:`var(--vj-font, monospace)`}},st={key:3,style:{flex:1,display:`flex`,alignItems:`center`,gap:`6px`,minWidth:0}},ct={key:2,style:{color:`var(--vj-boolean, #569cd6)`,fontFamily:`var(--vj-font, monospace)`,fontSize:`var(--vj-input-font-size, 13px)`,fontStyle:`italic`,flex:1}},lt=[`value`,`placeholder`],ut=t({__name:`FormField`,props:{node:{},depth:{}},setup(e){let t=e,r=i(He),{state:o,actions:s}=$(),c=E(!1),l=E(null),f=E(null);function p(){l.value&&typeof l.value.focus==`function`&&l.value.focus()}let g=b(()=>t.node.type===`object`||t.node.type===`array`),v=b(()=>t.node.parentId===null),x=b(()=>o.selectedNodeIds.value.has(t.node.id)),S=b(()=>r.editingNodeId.value===t.node.id),T=b(()=>r.collapsedIds.value.has(t.node.id)),D=b(()=>t.node.parentId?o.tree.value.nodesById.get(t.node.parentId)?.type===`object`:!1),A=b(()=>Ce(r.schema.value,r.rootSchema.value,t.node.path)),M=b(()=>Ee(t.node,r.schema.value,r.rootSchema.value)),N=b(()=>A.value?.description),P=b(()=>A.value?.deprecated),F=b(()=>A.value?.title),I=b(()=>r.dragState.value.dropTargetNodeId===t.node.id),L=b(()=>r.dragState.value.draggedNodeIds.has(t.node.id));function R(){return I.value&&r.dragState.value.dropPosition===`before`?`var(--vj-accent, #007acc)`:`transparent`}function z(){return I.value&&r.dragState.value.dropPosition===`after`?`var(--vj-accent, #007acc)`:`transparent`}function B(){return x.value?r.isFocused.value?`var(--vj-bg-selected, #2a5a1e)`:`var(--vj-bg-selected-muted, var(--vj-bg-hover, #2a2d2e))`:c.value?`var(--vj-bg-hover, #2a2d2e)`:`transparent`}function V(){return x.value&&r.isFocused.value?`var(--vj-text-selected, var(--vj-text, #cccccc))`:`var(--vj-text, #cccccc)`}function H(){return we(t.node)}function U(){return Te(t.node)}function W(e){e.preventDefault();let n=e.currentTarget.getBoundingClientRect(),i=n.top+n.height/2;r.onDragOver(t.node.id,e.clientY<i?`before`:`after`)}function G(e){e.dataTransfer.effectAllowed=`move`,o.selectedNodeIds.value.size>1&&o.selectedNodeIds.value.has(t.node.id)&&Se(e.dataTransfer,o.selectedNodeIds.value.size),r.onDragStart(t.node.id)}function K(e){let n=De(e,A.value?.type,t.node.type),r=ee(o.tree.value,t.node.id,n);s.setTree(r)}function re(e){let n=te(o.tree.value,t.node.id,e);s.setTree(n)}function ae(){let e=ie(o.tree.value,t.node.id);s.setTree(e)}function oe(){let e=t.node.type===`array`?String(t.node.children.length):`newKey${t.node.children.length}`,n=ne(o.tree.value,t.node.id,e,``);s.setTree(n)}let se=b(()=>A.value?.enum&&A.value.enum.length>0),q=b(()=>`calc(${(r.maxDepth.value-t.depth)*16}px + ${r.maxKeyLength.value}ch)`);return y(S,async e=>{e&&(await d(),g.value?f.value&&f.value.focus():t.node.value!==null&&t.node.value!==void 0&&t.node.value!==``&&l.value?p():f.value&&f.value.focus())}),(t,i)=>{var s;return g.value?(_(),O(`div`,$e,[k(`div`,{"data-form-node-id":e.node.id,draggable:!v.value,style:m({display:`flex`,alignItems:`center`,gap:`6px`,padding:`1px 8px`,paddingLeft:8+e.depth*16+`px`,cursor:`pointer`,backgroundColor:B(),color:V(),height:`28px`,boxSizing:`border-box`,userSelect:`none`,opacity:P.value?.5:L.value?.4:1,borderTop:`2px solid ${R()}`,borderBottom:`2px solid ${z()}`}),onClick:i[3]||=j(t=>w(r).onSelect(e.node.id,t),[`stop`]),onDblclick:i[4]||=()=>w(r).onToggleCollapse(e.node.id),onMouseenter:i[5]||=()=>c.value=!0,onMouseleave:i[6]||=()=>c.value=!1,onDragstart:G,onDragover:W,onDragend:i[7]||=()=>w(r).onDragEnd(),onDrop:i[8]||=j(()=>w(r).onDrop(),[`prevent`])},[k(`button`,{style:m({background:`none`,border:`none`,color:`inherit`,cursor:`pointer`,padding:0,width:`16px`,fontSize:`9px`,flexShrink:0,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 0.15s`,transform:T.value?`rotate(0deg)`:`rotate(90deg)`}),onClick:i[0]||=j(()=>w(r).onToggleCollapse(e.node.id),[`stop`])},` ▶ `,4),S.value&&!v.value?(_(),O(`input`,{key:0,ref_key:`keyInputRef`,ref:f,value:e.node.key,style:m({background:`none`,border:`none`,color:`inherit`,fontFamily:`var(--vj-font, monospace)`,fontSize:`var(--vj-input-font-size, 13px)`,fontWeight:500,padding:0,outline:`none`,flexShrink:0,width:q.value}),onInput:i[1]||=e=>re(e.target.value),onClick:i[2]||=j(()=>{},[`stop`])},null,44,tt)):(_(),O(`span`,{key:1,style:m({color:!v.value&&!D.value&&!x.value?`var(--vj-text-muted, #888888)`:`inherit`,fontSize:`var(--vj-input-font-size, 13px)`,fontFamily:`var(--vj-font, monospace)`,fontWeight:500,flexShrink:0,display:`inline-block`,width:q.value})},a(v.value?`/`:w(X)(e.node,w(o).tree.value)),5)),w(r).showDescriptions&&F.value&&!x.value?(_(),O(`span`,nt,a(F.value),1)):n(``,!0),c.value?(_(),O(`button`,{key:3,style:m({background:`none`,border:`none`,color:x.value?`inherit`:`var(--vj-text-muted, #888888)`,cursor:`pointer`,padding:0,fontSize:`12px`,fontFamily:`var(--vj-font, monospace)`}),onClick:j(oe,[`stop`])},` + Add `+a(e.node.type===`array`?`item`:`property`),5)):n(``,!0),w(r).showCounts?(_(),O(`span`,{key:4,style:m({color:x.value?`inherit`:`var(--vj-text-dim, #666666)`,fontSize:`12px`,fontFamily:`var(--vj-font, monospace)`,marginLeft:`auto`})},a(e.node.type===`array`?`${e.node.children.length} items`:`${e.node.children.length} properties`),5)):n(``,!0),!v.value&&S.value?(_(),O(`button`,{key:5,style:m({background:`none`,border:`none`,color:x.value?`inherit`:`var(--vj-text-muted, #888888)`,cursor:`pointer`,padding:`2px 4px`,fontSize:`14px`,fontFamily:`var(--vj-font, monospace)`,...w(r).showCounts?{}:{marginLeft:`auto`}}),title:`Remove`,onClick:j(ae,[`stop`])},` × `,4)):n(``,!0)],44,et),w(r).showDescriptions&&N.value?(_(),O(`div`,{key:0,style:m({padding:`2px 12px 4px`,paddingLeft:8+e.depth*16+22+`px`,fontSize:`11px`,color:`var(--vj-text-dim, #666666)`,fontFamily:`var(--vj-font, monospace)`})},a(N.value),5)):n(``,!0),T.value?n(``,!0):(_(),O(`div`,rt,[(_(!0),O(C,null,u(e.node.children,t=>(_(),h(ut,{key:t.id,node:t,depth:e.depth+1},null,8,[`node`,`depth`]))),128))]))])):(_(),O(`div`,{key:1,"data-form-node-id":e.node.id,draggable:!v.value,style:m({display:`flex`,alignItems:`center`,gap:`6px`,padding:`1px 8px`,paddingLeft:8+e.depth*16+`px`,cursor:`pointer`,backgroundColor:B(),color:V(),height:`28px`,boxSizing:`border-box`,userSelect:`none`,opacity:P.value?.5:L.value?.4:1,borderTop:`2px solid ${R()}`,borderBottom:`2px solid ${z()}`}),onClick:i[14]||=j(t=>w(r).onSelect(e.node.id,t),[`stop`]),onDblclick:i[15]||=()=>w(r).onStartEditing(e.node.id),onMouseenter:i[16]||=()=>c.value=!0,onMouseleave:i[17]||=()=>c.value=!1,onDragstart:G,onDragover:W,onDragend:i[18]||=()=>w(r).onDragEnd(),onDrop:i[19]||=j(()=>w(r).onDrop(),[`prevent`])},[i[20]||=k(`span`,{style:{width:`16px`,flexShrink:0}},null,-1),S.value&&D.value?(_(),O(`input`,{key:0,ref_key:`keyInputRef`,ref:f,value:e.node.key,style:m({background:`none`,border:`none`,color:`inherit`,fontFamily:`var(--vj-font, monospace)`,fontSize:`var(--vj-input-font-size, 13px)`,padding:0,flexShrink:0,outline:`none`,width:q.value}),onInput:i[9]||=e=>re(e.target.value),onClick:i[10]||=j(()=>{},[`stop`]),onKeydown:i[11]||=e=>{e.key===`Tab`&&!e.shiftKey&&l.value&&(e.preventDefault(),p())}},null,44,at)):(_(),O(`span`,{key:1,style:m({color:!D.value&&!x.value?`var(--vj-text-muted, #888888)`:`inherit`,fontSize:`var(--vj-input-font-size, 13px)`,fontFamily:`var(--vj-font, monospace)`,flexShrink:0,display:`inline-block`,width:q.value})},a(w(X)(e.node,w(o).tree.value)),5)),M.value&&!x.value?(_(),O(`span`,ot,` * `)):n(``,!0),S.value?(_(),O(`div`,st,[e.node.type===`boolean`?(_(),h(Qe,{key:0,ref_key:`valueInputRef`,ref:l,"enum-values":[`true`,`false`],value:String(e.node.value),"input-style":{background:`none`,border:`none`,fontFamily:`var(--vj-font, monospace)`,fontSize:`var(--vj-input-font-size, 13px)`,padding:`0`,flex:`1`,outline:`none`,color:H()},onValueChange:K},null,8,[`value`,`input-style`])):se.value&&(s=A.value)!=null&&s.enum?(_(),h(Qe,{key:1,ref_key:`valueInputRef`,ref:l,"enum-values":A.value.enum,value:U(),"input-style":{background:`none`,border:`none`,fontFamily:`var(--vj-font, monospace)`,fontSize:`var(--vj-input-font-size, 13px)`,padding:`0`,flex:`1`,outline:`none`,color:H()},onValueChange:K},null,8,[`enum-values`,`value`,`input-style`])):e.node.type===`null`?(_(),O(`span`,ct,` null `)):(_(),O(`input`,{key:3,ref_key:`valueInputRef`,ref:l,value:U(),placeholder:A.value?.default===void 0?`<value>`:String(A.value.default),style:m({background:`none`,border:`none`,fontFamily:`var(--vj-font, monospace)`,fontSize:`var(--vj-input-font-size, 13px)`,padding:0,flex:1,outline:`none`,color:H()}),onInput:i[12]||=e=>K(e.target.value),onClick:i[13]||=j(()=>{},[`stop`])},null,44,lt))])):(_(),O(`span`,{key:4,style:m({color:H(),fontSize:`var(--vj-input-font-size, 13px)`,fontFamily:`var(--vj-font, monospace)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,fontStyle:e.node.type===`null`?`italic`:void 0})},a(U()),5)),S.value?(_(),O(`button`,{key:5,style:m({background:`none`,border:`none`,color:x.value?`inherit`:`var(--vj-text-muted, #888888)`,cursor:`pointer`,padding:`2px 4px`,fontSize:`14px`,fontFamily:`var(--vj-font, monospace)`,flexShrink:0}),title:`Remove`,onClick:j(ae,[`stop`])},` × `,4)):n(``,!0)],44,it))}}}),dt={style:{backgroundColor:`var(--vj-bg, #1e1e1e)`,color:`var(--vj-text, #cccccc)`,height:`100%`,fontFamily:`var(--vj-font, monospace)`,display:`flex`,flexDirection:`column`}},ft={style:{display:`flex`,alignItems:`center`,padding:`4px 8px`,borderBottom:`1px solid var(--vj-border, #333333)`,backgroundColor:`var(--vj-bg, #1e1e1e)`,flexShrink:0}},pt=t({__name:`FormView`,props:{class:{},showDescriptions:{type:Boolean,default:!1},showCounts:{type:Boolean,default:!1}},setup(e){let t=e,{state:n,actions:r}=$(),i=E(null),a=E(!1),c=E(null),l=E(new Set),u=n.tree.value,d=b(()=>(n.drillDownNodeId.value?n.tree.value.nodesById.get(n.drillDownNodeId.value):null)??n.tree.value.root);y(()=>d.value.id,()=>{c.value=null,l.value=new Set});let f=b(()=>Y(d.value,e=>!l.value.has(e))),{dragState:m,handleDragStart:h,handleDragOver:v,handleDragEnd:x,handleDrop:S}=Ne(f,n.selectedNodeIds);s(()=>{r.setVisibleNodesOverride(f.value)}),g(()=>{r.setVisibleNodesOverride(null)}),y(f,e=>{r.setVisibleNodesOverride(e)});let C=b(()=>{let e=1,t=0,r=d.value.path===`/`?0:d.value.path.split(`/`).filter(Boolean).length;for(let i of f.value){let a=i.parentId===null?`/`:X(i,n.tree.value);a.length>e&&(e=a.length);let o=(i.path===`/`?0:i.path.split(`/`).filter(Boolean).length)-r;o>t&&(t=o)}return{maxKeyLength:e,maxDepth:t}}),w=b(()=>C.value.maxKeyLength),T=b(()=>C.value.maxDepth),D=b(()=>n.schema.value),A=b(()=>n.schema.value??void 0);function j(e,t){c.value=null,t.shiftKey?(r.setVisibleNodesOverride(f.value),r.selectNodeRange(e)):t.metaKey||t.ctrlKey?r.toggleNodeSelection(e):r.selectNode(e)}function M(e){let t=new Set(l.value);t.has(e)?t.delete(e):t.add(e),l.value=t}function N(e){u=n.tree.value,c.value=e}function P(e){requestAnimationFrame(()=>{(i.value?.querySelector(`[data-form-node-id="${e}"]`))?.scrollIntoView({block:`nearest`})})}function F(e){var t,a;if(c.value){e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),r.setTree(u),c.value=null,(t=i.value)==null||t.focus()):e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),c.value=null,(a=i.value)==null||a.focus());return}let o=f.value.findIndex(e=>e.id===n.focusedNodeId.value);switch(o===-1&&f.value.length>0&&(o=0),e.key){case`ArrowDown`:{e.preventDefault();let t=f.value[o+1];t&&(e.shiftKey?(r.setVisibleNodesOverride(f.value),r.selectNodeRange(t.id)):r.selectNode(t.id),P(t.id));break}case`ArrowUp`:{e.preventDefault();let t=f.value[o-1];t&&(e.shiftKey?(r.setVisibleNodesOverride(f.value),r.selectNodeRange(t.id)):r.selectNode(t.id),P(t.id));break}case`ArrowRight`:{e.preventDefault();let t=o>=0?f.value[o]:null;if(t&&(t.type===`object`||t.type===`array`))if(l.value.has(t.id)){let e=new Set(l.value);e.delete(t.id),l.value=e}else t.children.length>0&&(r.selectNode(t.children[0].id),P(t.children[0].id));break}case`ArrowLeft`:{e.preventDefault();let t=o>=0?f.value[o]:null;if(!t)break;if((t.type===`object`||t.type===`array`)&&!l.value.has(t.id)){let e=new Set(l.value);e.add(t.id),l.value=e}else if(t.parentId){let e=f.value.find(e=>e.id===t.parentId);e&&(r.selectNode(e.id),P(e.id))}break}case`Enter`:e.preventDefault(),n.focusedNodeId.value&&(u=n.tree.value,r.selectNode(n.focusedNodeId.value),c.value=n.focusedNodeId.value);break;case`a`:if(e.metaKey||e.ctrlKey){e.preventDefault();let t=ke(n.tree.value,n.focusedNodeId.value,n.selectedNodeIds.value);t&&r.setSelection(n.focusedNodeId.value,t,n.focusedNodeId.value)}break;case`Escape`:e.preventDefault(),n.selectedNodeIds.value.size>1&&n.focusedNodeId.value?r.selectNode(n.focusedNodeId.value):r.setSelection(null,new Set,null);break;case`Delete`:case`Backspace`:{e.preventDefault();let{newTree:t,nextFocusId:i}=je(n.tree.value,n.selectedNodeIds.value,f.value);if(t===n.tree.value)break;r.setTree(t),i?r.selectNode(i):r.setSelection(null,new Set,null);break}}}return o(He,{schema:D,rootSchema:A,showDescriptions:t.showDescriptions,showCounts:t.showCounts,editingNodeId:c,collapsedIds:l,maxKeyLength:w,maxDepth:T,isFocused:a,dragState:m,onSelect:j,onToggleCollapse:M,onStartEditing:N,onDragStart:h,onDragOver:v,onDragEnd:x,onDrop:S}),(e,t)=>(_(),O(`div`,dt,[k(`div`,ft,[p(qe)]),k(`div`,{ref_key:`containerRef`,ref:i,"data-form-container":``,tabindex:`0`,style:{flex:1,overflow:`auto`,outline:`none`},onKeydown:F,onFocus:t[0]||=()=>a.value=!0,onBlur:t[1]||=e=>{e.currentTarget.contains(e.relatedTarget)||(a.value=!1)}},[p(ut,{node:d.value,depth:0},null,8,[`node`])],544)]))}}),mt={style:{display:`flex`,alignItems:`center`,gap:`6px`,padding:`4px 8px`,backgroundColor:`var(--vj-bg, #1e1e1e)`,borderBottom:`1px solid var(--vj-border, #333333)`}},ht=[`value`],gt={style:{display:`flex`,alignItems:`center`,gap:`2px`,flexShrink:0,height:`18px`}},_t=[`disabled`],vt=[`disabled`],yt=t({__name:`SearchBar`,props:{class:{}},setup(e){let{state:t,actions:n}=$(),r=E(null);function i(e){var t;e.key===`Enter`&&(e.preventDefault(),e.shiftKey?n.prevSearchMatch():n.nextSearchMatch()),e.key===`Escape`&&(e.preventDefault(),n.setSearchQuery(``),(t=r.value)==null||t.blur())}function o(e){var t,n;(e.metaKey||e.ctrlKey)&&e.key===`f`&&(e.preventDefault(),(t=r.value)==null||t.focus(),(n=r.value)==null||n.select())}return s(()=>document.addEventListener(`keydown`,o)),g(()=>document.removeEventListener(`keydown`,o)),(e,o)=>(_(),O(`div`,mt,[k(`input`,{ref_key:`inputRef`,ref:r,type:`text`,value:w(t).searchQuery.value,placeholder:`Search...`,spellcheck:`false`,autocomplete:`off`,style:{flex:1,background:`none`,border:`none`,borderRadius:`3px`,color:`var(--vj-text, #cccccc)`,fontFamily:`var(--vj-font, monospace)`,fontSize:`var(--vj-input-font-size, 13px)`,padding:`3px 8px`,outline:`none`,minWidth:0},onInput:o[0]||=e=>w(n).setSearchQuery(e.target.value),onKeydown:i},null,40,ht),k(`div`,gt,[w(t).searchQuery.value?(_(),O(C,{key:0},[k(`span`,{style:m({fontSize:`11px`,lineHeight:1,color:w(t).searchMatches.value.length>0?`var(--vj-text-muted, #999999)`:`var(--vj-error, #f48771)`,fontFamily:`var(--vj-font, monospace)`,whiteSpace:`nowrap`})},a(w(t).searchMatches.value.length>0?`${w(t).searchMatchIndex.value+1}/${w(t).searchMatches.value.length}`:`0/0`),5),k(`button`,{disabled:w(t).searchMatches.value.length===0,"aria-label":`Previous match (Shift+Enter)`,title:`Previous match (Shift+Enter)`,style:m({background:`none`,border:`none`,color:w(t).searchMatches.value.length>0?`var(--vj-text, #cccccc)`:`var(--vj-text-dimmer, #555555)`,cursor:w(t).searchMatches.value.length>0?`pointer`:`default`,padding:0,fontSize:`10px`,lineHeight:1,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:`18px`,height:`18px`}),onClick:o[1]||=(...e)=>w(n).prevSearchMatch&&w(n).prevSearchMatch(...e)},` ▲ `,12,_t),k(`button`,{disabled:w(t).searchMatches.value.length===0,"aria-label":`Next match (Enter)`,title:`Next match (Enter)`,style:m({background:`none`,border:`none`,color:w(t).searchMatches.value.length>0?`var(--vj-text, #cccccc)`:`var(--vj-text-dimmer, #555555)`,cursor:w(t).searchMatches.value.length>0?`pointer`:`default`,padding:0,fontSize:`10px`,lineHeight:1,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:`18px`,height:`18px`}),onClick:o[2]||=(...e)=>w(n).nextSearchMatch&&w(n).nextSearchMatch(...e)},` ▼ `,12,vt),k(`button`,{"aria-label":`Clear search (Esc)`,title:`Clear search (Esc)`,style:{background:`none`,border:`none`,color:`var(--vj-text, #cccccc)`,cursor:`pointer`,padding:0,fontSize:`14px`,lineHeight:1,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:`18px`,height:`18px`},onClick:o[3]||=()=>w(n).setSearchQuery(``)},` × `)],64)):(_(),O(C,{key:1},[k(`button`,{"aria-label":`Expand all`,title:`Expand all`,style:{background:`none`,border:`none`,color:`var(--vj-text-muted, #888888)`,cursor:`pointer`,padding:`2px`,fontSize:`12px`,lineHeight:1,display:`inline-flex`,alignItems:`center`},onClick:o[4]||=(...e)=>w(n).expandAll&&w(n).expandAll(...e)},[...o[6]||=[k(`svg`,{width:`14`,height:`14`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[k(`path`,{d:`M8 2v4M5 4l3-2 3 2`}),k(`path`,{d:`M8 14v-4M5 12l3 2 3-2`}),k(`path`,{d:`M2 8h12`})],-1)]]),k(`button`,{"aria-label":`Collapse all`,title:`Collapse all`,style:{background:`none`,border:`none`,color:`var(--vj-text-muted, #888888)`,cursor:`pointer`,padding:`2px`,fontSize:`12px`,lineHeight:1,display:`inline-flex`,alignItems:`center`},onClick:o[5]||=(...e)=>w(n).collapseAll&&w(n).collapseAll(...e)},[...o[7]||=[k(`svg`,{width:`14`,height:`14`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[k(`path`,{d:`M8 5V1M5 3l3 2 3-2`}),k(`path`,{d:`M8 11v4M5 13l3-2 3 2`}),k(`path`,{d:`M2 8h12`})],-1)]])],64))])]))}}),bt={key:0,style:{flex:1,minHeight:0}},xt={style:{display:`flex`,flexShrink:0,borderBottom:`1px solid var(--vj-border, #333333)`,backgroundColor:`var(--vj-bg-panel, #252526)`}},St={style:{flex:1,minHeight:0,overflow:`hidden`}},Ct={key:0,style:{display:`flex`,flexDirection:`column`,height:`100%`}},wt={style:{flex:1,minHeight:0,overflow:`auto`}},Tt={key:1,style:{display:`flex`,flexDirection:`column`,height:`100%`}},Et={style:{flex:1,minHeight:0}},Dt={style:{flex:1,minHeight:0,overflow:`auto`}},Ot={key:0,style:{width:`1px`,flexShrink:0,backgroundColor:`var(--vj-border, #333333)`,position:`relative`,transition:`background-color 0.15s`}},kt={style:{display:`flex`,flexDirection:`column`,flex:1,minWidth:0,overflow:`hidden`}},At={style:{flex:1,minHeight:0}},jt=t({__name:`JsonEditor`,props:{value:{type:[String,Number,Boolean,null,Array,Object]},defaultValue:{type:[String,Number,Boolean,null,Array,Object]},onChange:{},schema:{default:null},height:{default:`100%`},width:{default:`100%`},class:{},style:{},readOnly:{type:Boolean,default:!1},treeShowValues:{type:Boolean,default:!0},treeShowCounts:{type:Boolean,default:!1},editorShowDescriptions:{type:Boolean,default:!1},editorShowCounts:{type:Boolean,default:!1},sidebarOpen:{type:Boolean,default:!0}},emits:[`change`],setup(t,{emit:r}){let i=t,a=r,o=i.value!==void 0,c=E(o?i.value:i.defaultValue??{}),l=E(0);y(()=>i.value,e=>{o&&e!==c.value&&(c.value=e,l.value++)});function u(e){var t;c.value=e,i.readOnly||(a(`change`,e),(t=i.onChange)==null||t.call(i,e))}let d=E(280),f=E(!1),v=E(`tree`),x=E(null),S=!1,T=0,D=0,A=null;function j(){x.value&&(f.value=x.value.offsetWidth<500)}s(()=>{j(),x.value&&(A=new ResizeObserver(j),A.observe(x.value))}),g(()=>{A?.disconnect()});function M(e){S=!0,T=e.clientX,D=d.value,document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`;function t(e){if(!S)return;let t=e.clientX-T;d.value=Math.max(180,Math.min(600,D+t))}function n(){S=!1,document.body.style.cursor=``,document.body.style.userSelect=``,document.removeEventListener(`mousemove`,t),document.removeEventListener(`mouseup`,n)}document.addEventListener(`mousemove`,t),document.addEventListener(`mouseup`,n)}let N=b(()=>({height:typeof i.height==`number`?`${i.height}px`:i.height,width:typeof i.width==`number`?`${i.width}px`:i.width,display:`flex`,flexDirection:`column`,overflow:`hidden`,...Z,...i.style??{}}));return(t,r)=>(_(),O(`div`,{"data-vj-root":``,style:m(N.value)},[(_(),h(Me,{key:l.value,value:c.value,schema:i.schema,onChange:u},{default:e(()=>[f.value?(_(),O(`div`,{key:0,ref_key:`containerRef`,ref:x,style:{display:`flex`,flexDirection:`column`,flex:1,minHeight:0}},[i.sidebarOpen?(_(),O(C,{key:1},[k(`div`,xt,[k(`button`,{style:m({flex:1,fontSize:`11px`,padding:`4px 0`,cursor:`pointer`,fontFamily:`var(--vj-font, monospace)`,border:`none`,background:v.value===`tree`?`var(--vj-accent-muted, #094771)`:`transparent`,color:v.value===`tree`?`var(--vj-text, #cccccc)`:`var(--vj-text-muted, #999999)`}),onClick:r[0]||=()=>v.value=`tree`},` Tree `,4),k(`button`,{style:m({flex:1,fontSize:`11px`,padding:`4px 0`,cursor:`pointer`,fontFamily:`var(--vj-font, monospace)`,border:`none`,background:v.value===`form`?`var(--vj-accent-muted, #094771)`:`transparent`,color:v.value===`form`?`var(--vj-text, #cccccc)`:`var(--vj-text-muted, #999999)`}),onClick:r[1]||=()=>v.value=`form`},` Form `,4)]),k(`div`,St,[v.value===`tree`?(_(),O(`div`,Ct,[p(yt),k(`div`,wt,[p(Ve,{"show-values":i.treeShowValues,"show-counts":i.treeShowCounts},null,8,[`show-values`,`show-counts`])])])):(_(),O(`div`,Tt,[k(`div`,Et,[p(pt,{"show-descriptions":i.editorShowDescriptions,"show-counts":i.editorShowCounts},null,8,[`show-descriptions`,`show-counts`])])]))])],64)):(_(),O(`div`,bt,[p(pt,{"show-descriptions":i.editorShowDescriptions,"show-counts":i.editorShowCounts},null,8,[`show-descriptions`,`show-counts`])]))],512)):(_(),O(`div`,{key:1,ref_key:`containerRef`,ref:x,style:{display:`flex`,flex:1,minHeight:0}},[k(`div`,{style:m({flexShrink:0,overflow:`hidden`,display:`flex`,flexDirection:`column`,width:i.sidebarOpen?d.value+`px`:`0`,transition:`width 0.2s ease`})},[p(yt),k(`div`,Dt,[p(Ve,{"show-values":i.treeShowValues,"show-counts":i.treeShowCounts},null,8,[`show-values`,`show-counts`])])],4),i.sidebarOpen?(_(),O(`div`,Ot,[k(`div`,{style:{position:`absolute`,top:0,bottom:0,left:`-3px`,width:`7px`,cursor:`col-resize`,zIndex:10},onMousedown:M,onMouseenter:r[2]||=e=>{let t=e.currentTarget.parentElement;t&&(t.style.backgroundColor=`var(--vj-accent, #007acc)`)},onMouseleave:r[3]||=e=>{if(!w(S)){let t=e.currentTarget.parentElement;t&&(t.style.backgroundColor=`var(--vj-border, #333333)`)}}},null,32)])):n(``,!0),k(`div`,kt,[k(`div`,At,[p(pt,{"show-descriptions":i.editorShowDescriptions,"show-counts":i.editorShowCounts},null,8,[`show-descriptions`,`show-counts`])])])],512))]),_:1},8,[`value`,`schema`]))],4))}}),Mt={flex:`~`,"h-full":``,"of-hidden":``},Nt={"w-60":``,"shrink-0":``,border:`r base`,flex:`~ col`,"of-hidden":``},Pt={px3:``,py2:``,"text-xs":``,op60:``,border:`b base`,flex:`~ items-center justify-between`},Ft={flex:`~ items-center gap-1`,"cursor-pointer":``},It={"flex-1":``,"of-auto":``},Lt=[`onClick`],Rt={"flex-1":``,"of-auto":``},zt={key:0,flex:`~ items-center justify-center`,"h-full":``,op40:``,"text-sm":``},Bt={key:2,"h-full":``},Vt=Object.assign(t({__name:`SharedStateView`,props:{keys:{}},setup(e){let t=e,r=P(),i=x(!1),o=x(),s=b(()=>i.value?t.keys:t.keys.filter(e=>!e.startsWith(`devtoolskit:internal:`)&&!e.startsWith(`__`))),c=E(),d=x(!1);async function m(e){d.value=!0;try{c.value=await r.value.call(`devtoolskit:internal:rpc:server-state:get`,e)}finally{d.value=!1}}y(o,e=>{c.value=void 0,e&&m(e)});function g(e){o.value=e}async function v(e){if(!o.value)return;let t=M();c.value=e,await r.value.call(`devtoolskit:internal:rpc:server-state:set`,o.value,e,t)}return(e,t)=>{let r=l(`VisualLoading`);return _(),O(`div`,Mt,[k(`div`,Nt,[k(`div`,Pt,[k(`span`,null,a(s.value.length)+` shared states`,1),k(`label`,Ft,[S(k(`input`,{"onUpdate:modelValue":t[0]||=e=>i.value=e,type:`checkbox`},null,512),[[A,i.value]]),t[1]||=k(`span`,null,`Internal`,-1)])]),k(`div`,It,[(_(!0),O(C,null,u(s.value,e=>(_(),O(`button`,{key:e,block:``,"w-full":``,"text-left":``,px3:``,py2:``,"text-sm":``,"font-mono":``,border:`b base`,"hover:bg-active":``,"transition-colors":``,class:f(o.value===e?`bg-active! text-primary`:`op70`),onClick:t=>g(e)},a(e),11,Lt))),128))])]),k(`div`,Rt,[o.value?d.value?(_(),h(r,{key:1})):c.value===void 0?n(``,!0):(_(),O(`div`,Bt,[p(w(jt),{value:c.value,height:`100%`,onChange:v},null,8,[`value`])])):(_(),O(`div`,zt,` Select a shared state to inspect `))])])}}}),{__name:`SharedStateView`}),Ht=t({__name:`state`,setup(e){let t=P(),n=E();async function r(){n.value=await t.value.call(`devtoolskit:self-inspect:get-shared-state-keys`)}return N(r),s(r),(e,t)=>{let r=l(`VisualLoading`),i=Vt;return n.value?(_(),h(i,{key:1,keys:n.value},null,8,[`keys`])):(_(),h(r,{key:0}))}}});export{Ht as default};
@@ -0,0 +1 @@
1
+ import{A as e,Ft as t,H as n,J as r,K as i,S as a,W as o,h as s,ut as c,w as l,x as u}from"./BF3PKRZg.js";import{r as d,t as f}from"#entry";var p={flex:`~ col gap-3`,p4:``},m={flex:`~ items-center gap-3`,"text-xs":``},h={op60:``},g={key:0,op40:``,"text-sm":``,py4:``,"text-center":``},_={key:1,"w-full":``,"text-sm":``},v={px2:``,"py1.5":``,"font-mono":``,"text-xs":``},y={px2:``,"py1.5":``,"text-xs":``,op75:``,"max-w-60":``,truncate:``},b={px2:``,"py1.5":``,"text-xs":``,op75:``},x={px2:``,"py1.5":``,"text-xs":``,op75:``},S={px2:``,"py1.5":``,"text-center":``},C=[`onClick`],w=Object.assign(e({__name:`AuthTokensList`,props:{tokens:{}},emits:[`revoke`],setup(e,{emit:n}){let r=n;function a(e){return new Date(e).toLocaleString()}return(n,c)=>(o(),l(`div`,p,[u(`div`,m,[u(`span`,h,t(e.tokens.length)+` trusted client`+t(e.tokens.length===1?``:`s`),1)]),e.tokens.length===0?(o(),l(`div`,g,` No auth tokens found. `)):(o(),l(`table`,_,[c[0]||=u(`thead`,null,[u(`tr`,{border:`b base`,"text-left":``},[u(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``},` Auth Token `),u(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``},` User Agent `),u(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``},` Origin `),u(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``},` Trusted At `),u(`th`,{px2:``,py1:``,"font-medium":``,op60:``,"text-xs":``,"text-center":``},` Actions `)])],-1),u(`tbody`,null,[(o(!0),l(s,null,i(e.tokens,e=>(o(),l(`tr`,{key:e.authToken,border:`b base`,"hover:bg-active":``},[u(`td`,v,t(e.authToken),1),u(`td`,y,t(e.ua||`-`),1),u(`td`,b,t(e.origin||`-`),1),u(`td`,x,t(a(e.timestamp)),1),u(`td`,S,[u(`button`,{"text-xs":``,px2:``,"py0.5":``,rounded:``,"text-red":``,border:`~ red/30`,"hover:bg-red:10":``,onClick:t=>r(`revoke`,e.authToken)},` Revoke `,8,C)])]))),128))])]))]))}}),{__name:`AuthTokensList`}),T=e({__name:`auth`,setup(e){let t=f(),i=c();async function s(){i.value=await t.value.call(`devtoolskit:self-inspect:get-auth-tokens`)}async function l(e){await t.value.call(`devtoolskit:self-inspect:revoke-auth-token`,e),await s()}return d(s),n(s),(e,t)=>{let n=r(`VisualLoading`),s=w;return i.value?(o(),a(s,{key:1,tokens:i.value,onRevoke:l},null,8,[`tokens`])):(o(),a(n,{key:0}))}}});export{T as default};
@@ -1 +1 @@
1
- import{N as e,P as t,i as n,ot as r}from"./BOMQEJ5Z.js";var i=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,a=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,o=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function s(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){c(e);return}return t}function c(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function l(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!o.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(i.test(e)||a.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,s)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}String.fromCharCode;var u=/#/g,d=/&/g,ee=/\//g,te=/=/g,f=/\?/g,p=/\+/g,ne=/%5e/gi,m=/%60/gi,h=/%7c/gi,g=/%20/gi,re=/%2f/gi,ie=/%252f/gi;function _(e){return encodeURI(``+e).replace(h,`|`)}function v(e){return _(typeof e==`string`?e:JSON.stringify(e)).replace(p,`%2B`).replace(g,`+`).replace(u,`%23`).replace(d,`%26`).replace(m,"`").replace(ne,`^`).replace(ee,`%2F`)}function y(e){return v(e).replace(te,`%3D`)}function ae(e){return _(e).replace(u,`%23`).replace(f,`%3F`).replace(ie,`%2F`).replace(d,`%26`).replace(p,`%2B`)}function b(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function oe(e){return b(e.replace(re,`%252F`))}function x(e){return b(e.replace(p,` `))}function S(e){return b(e.replace(p,` `))}function C(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=x(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=S(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function w(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${y(e)}=${v(t)}`).join(`&`):`${y(e)}=${v(t)}`:y(e)}function T(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>w(t,e[t])).filter(Boolean).join(`&`)}var E=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,se=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,ce=/^([/\\]\s*){2,}[^/\\]/,le=/^[\s\0]*(blob|data|javascript|vbscript):$/i,ue=/\/$|\/\?|\/#/,de=/^\.?\//;function D(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?E.test(e):se.test(e)||(t.acceptRelative?ce.test(e):!1)}function fe(e){return!!e&&le.test(e)}function O(e=``,t){return t?ue.test(e):e.endsWith(`/`)}function k(e=``,t){if(!t)return(O(e)?e.slice(0,-1):e)||`/`;if(!O(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function A(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(O(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function j(e,t){if(P(t)||D(e))return e;let n=k(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return I(n,e)}function M(e,t){if(P(t))return e;let n=k(t);if(!e.startsWith(n))return e;let r=e[n.length];if(r&&r!==`/`&&r!==`?`)return e;let i=e.slice(n.length);return i[0]===`/`?i:`/`+i}function N(e,t){let n=B(e);return n.search=T({...C(n.search),...t}),pe(n)}function P(e){return!e||e===`/`}function F(e){return e&&e!==`/`}function I(e,...t){let n=e||``;for(let e of t.filter(e=>F(e)))if(n){let t=e.replace(de,``);n=A(n)+t}else n=e;return n}function L(...e){let t=/\/(?!\/)/,n=e.filter(Boolean),r=[],i=0;for(let e of n)if(!(!e||e===`/`)){for(let[n,a]of e.split(t).entries())if(!(!a||a===`.`)){if(a===`..`){if(r.length===1&&D(r[0]))continue;r.pop(),i--;continue}if(n===1&&r[r.length-1]?.endsWith(`:/`)){r[r.length-1]+=`/`+a;continue}r.push(a),i++}}let a=r.join(`/`);return i>=0?n[0]?.startsWith(`/`)&&!a.startsWith(`/`)?a=`/`+a:n[0]?.startsWith(`./`)&&!a.startsWith(`./`)&&(a=`./`+a):a=`../`.repeat(-1*i)+a,n[n.length-1]?.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}function R(e,t){return b(k(e))===b(k(t))}var z=Symbol.for(`ufo:protocolRelative`);function B(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!D(e,{acceptRelative:!0}))return t?B(t+e):V(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=V(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[z]:!r}}function V(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function pe(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[z]?(e.protocol||``)+`//`:``)+i+a+t+n+r}function H(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function U(e,t,n=`.`,r){if(!H(t))return U(e,{},n,r);let i=Object.assign({},t);for(let t in e){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:H(a)&&H(i[t])?i[t]=U(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function me(e){return(...t)=>t.reduce((t,n)=>U(t,n,``,e),{})}var W=me();function he(e,t){try{return t in e}catch{return!1}}var G=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:q(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=K(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function ge(e){if(typeof e==`string`)return new G(e);if(_e(e))return e;let t=new G(e.message??e.statusMessage??``,{cause:e.cause||e});if(he(e,`stack`))try{Object.defineProperty(t,`stack`,{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=q(e.statusCode,t.statusCode):e.status&&(t.statusCode=q(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;K(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function _e(e){return e?.constructor?.__h3_error__===!0}var ve=/[^\u0009\u0020-\u007E]/g;function K(e=``){return e.replace(ve,``)}function q(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;var ye=Symbol(`layout-meta`),J=Symbol(`route`);import.meta.url.replace(/\/app\/.*$/,`/`);var Y=()=>n()?.$router,be=()=>e()?t(J,n()._route):n()._route;function xe(e){return e}var Se=()=>{try{if(n()._processingMiddleware)return!0}catch{return!1}return!1},Ce=(e,t)=>{e||=`/`;let r=typeof e==`string`?e:`path`in e?X(e):Y().resolve(e).href;if(t?.open){let{target:e=`_blank`,windowFeatures:n={}}=t.open,i=[];for(let[e,t]of Object.entries(n))t!==void 0&&i.push(`${e.toLowerCase()}=${t}`);return open(r,e,i.join(`, `)),Promise.resolve()}let i=D(r,{acceptRelative:!0}),a=t?.external||i;if(a){if(!t?.external)throw Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");let{protocol:e}=new URL(r,window.location.href);if(e&&fe(e))throw Error(`Cannot navigate to a URL with '${e}' protocol.`)}let o=Se();if(!a&&o){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=B(e);return{path:t,...n&&{query:C(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let s=Y(),c=n();if(a)return c._scope.stop(),t?.replace?location.replace(r):location.href=r,o?c.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let l=typeof e==`string`?Z(e):e;return t?.replace?s.replace(l):s.push(l)};function X(e){return N(e.path||``,e.query||{})+(e.hash||``)}function Z(e){let t=B(e);return ae(oe(t.pathname))+t.search+t.hash}var we=`__nuxt_error`,Q=()=>r(n().payload,`error`),Te=e=>{let t=$(e);try{let e=Q();n().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},Ee=async(e={})=>{let t=n(),r=Q();t.callHook(`app:error:cleared`,e),e.redirect&&await Y().replace(e.redirect),r.value=void 0},De=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,$=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=ge(e);return Object.defineProperty(t,we,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,`status`,{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,`statusText`,{get:()=>t.statusMessage,configurable:!0}),t};export{M as C,A as S,l as T,L as _,Q as a,j as b,Ce as c,Y as d,ye as f,R as g,D as h,Te as i,X as l,W as m,$ as n,xe as o,J as p,De as r,Z as s,Ee as t,be as u,I as v,k as w,N as x,C as y};
1
+ import{F as e,P as t,dt as n,i as r}from"./BF3PKRZg.js";var i=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,a=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,o=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function s(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){c(e);return}return t}function c(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function l(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!o.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(i.test(e)||a.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,s)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}String.fromCharCode;var u=/#/g,d=/&/g,ee=/\//g,te=/=/g,f=/\?/g,p=/\+/g,ne=/%5e/gi,m=/%60/gi,h=/%7c/gi,g=/%20/gi,re=/%2f/gi,ie=/%252f/gi;function _(e){return encodeURI(``+e).replace(h,`|`)}function v(e){return _(typeof e==`string`?e:JSON.stringify(e)).replace(p,`%2B`).replace(g,`+`).replace(u,`%23`).replace(d,`%26`).replace(m,"`").replace(ne,`^`).replace(ee,`%2F`)}function y(e){return v(e).replace(te,`%3D`)}function ae(e){return _(e).replace(u,`%23`).replace(f,`%3F`).replace(ie,`%2F`).replace(d,`%26`).replace(p,`%2B`)}function b(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function oe(e){return b(e.replace(re,`%252F`))}function x(e){return b(e.replace(p,` `))}function S(e){return b(e.replace(p,` `))}function C(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=x(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=S(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function w(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${y(e)}=${v(t)}`).join(`&`):`${y(e)}=${v(t)}`:y(e)}function T(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>w(t,e[t])).filter(Boolean).join(`&`)}var E=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,se=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,ce=/^([/\\]\s*){2,}[^/\\]/,le=/^[\s\0]*(blob|data|javascript|vbscript):$/i,ue=/\/$|\/\?|\/#/,de=/^\.?\//;function D(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?E.test(e):se.test(e)||(t.acceptRelative?ce.test(e):!1)}function fe(e){return!!e&&le.test(e)}function O(e=``,t){return t?ue.test(e):e.endsWith(`/`)}function k(e=``,t){if(!t)return(O(e)?e.slice(0,-1):e)||`/`;if(!O(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function A(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(O(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function j(e,t){if(P(t)||D(e))return e;let n=k(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return I(n,e)}function M(e,t){if(P(t))return e;let n=k(t);if(!e.startsWith(n))return e;let r=e[n.length];if(r&&r!==`/`&&r!==`?`)return e;let i=e.slice(n.length);return i[0]===`/`?i:`/`+i}function N(e,t){let n=B(e);return n.search=T({...C(n.search),...t}),pe(n)}function P(e){return!e||e===`/`}function F(e){return e&&e!==`/`}function I(e,...t){let n=e||``;for(let e of t.filter(e=>F(e)))if(n){let t=e.replace(de,``);n=A(n)+t}else n=e;return n}function L(...e){let t=/\/(?!\/)/,n=e.filter(Boolean),r=[],i=0;for(let e of n)if(!(!e||e===`/`)){for(let[n,a]of e.split(t).entries())if(!(!a||a===`.`)){if(a===`..`){if(r.length===1&&D(r[0]))continue;r.pop(),i--;continue}if(n===1&&r[r.length-1]?.endsWith(`:/`)){r[r.length-1]+=`/`+a;continue}r.push(a),i++}}let a=r.join(`/`);return i>=0?n[0]?.startsWith(`/`)&&!a.startsWith(`/`)?a=`/`+a:n[0]?.startsWith(`./`)&&!a.startsWith(`./`)&&(a=`./`+a):a=`../`.repeat(-1*i)+a,n[n.length-1]?.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}function R(e,t){return b(k(e))===b(k(t))}var z=Symbol.for(`ufo:protocolRelative`);function B(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!D(e,{acceptRelative:!0}))return t?B(t+e):V(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=V(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[z]:!r}}function V(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function pe(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[z]?(e.protocol||``)+`//`:``)+i+a+t+n+r}function H(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function U(e,t,n=`.`,r){if(!H(t))return U(e,{},n,r);let i=Object.assign({},t);for(let t in e){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:H(a)&&H(i[t])?i[t]=U(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function me(e){return(...t)=>t.reduce((t,n)=>U(t,n,``,e),{})}var W=me();function he(e,t){try{return t in e}catch{return!1}}var G=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:q(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=K(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function ge(e){if(typeof e==`string`)return new G(e);if(_e(e))return e;let t=new G(e.message??e.statusMessage??``,{cause:e.cause||e});if(he(e,`stack`))try{Object.defineProperty(t,`stack`,{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=q(e.statusCode,t.statusCode):e.status&&(t.statusCode=q(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;K(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function _e(e){return e?.constructor?.__h3_error__===!0}var ve=/[^\u0009\u0020-\u007E]/g;function K(e=``){return e.replace(ve,``)}function q(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;var ye=Symbol(`layout-meta`),J=Symbol(`route`);import.meta.url.replace(/\/app\/.*$/,`/`);var Y=()=>r()?.$router,be=()=>t()?e(J,r()._route):r()._route;function xe(e){return e}var Se=()=>{try{if(r()._processingMiddleware)return!0}catch{return!1}return!1},Ce=(e,t)=>{e||=`/`;let n=typeof e==`string`?e:`path`in e?X(e):Y().resolve(e).href;if(t?.open){let{target:e=`_blank`,windowFeatures:r={}}=t.open,i=[];for(let[e,t]of Object.entries(r))t!==void 0&&i.push(`${e.toLowerCase()}=${t}`);return open(n,e,i.join(`, `)),Promise.resolve()}let i=D(n,{acceptRelative:!0}),a=t?.external||i;if(a){if(!t?.external)throw Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");let{protocol:e}=new URL(n,window.location.href);if(e&&fe(e))throw Error(`Cannot navigate to a URL with '${e}' protocol.`)}let o=Se();if(!a&&o){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=B(e);return{path:t,...n&&{query:C(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let s=Y(),c=r();if(a)return c._scope.stop(),t?.replace?location.replace(n):location.href=n,o?c.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let l=typeof e==`string`?Z(e):e;return t?.replace?s.replace(l):s.push(l)};function X(e){return N(e.path||``,e.query||{})+(e.hash||``)}function Z(e){let t=B(e);return ae(oe(t.pathname))+t.search+t.hash}var we=`__nuxt_error`,Q=()=>n(r().payload,`error`),Te=e=>{let t=$(e);try{let e=Q();r().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},Ee=async(e={})=>{let t=r(),n=Q();t.callHook(`app:error:cleared`,e),e.redirect&&await Y().replace(e.redirect),n.value=void 0},De=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,$=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=ge(e);return Object.defineProperty(t,we,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,`status`,{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,`statusText`,{get:()=>t.statusMessage,configurable:!0}),t};export{M as C,A as S,l as T,L as _,Q as a,j as b,Ce as c,Y as d,ye as f,R as g,D as h,Te as i,X as l,W as m,$ as n,xe as o,J as p,De as r,Z as s,Ee as t,be as u,I as v,k as w,N as x,C as y};