@vitejs/devtools-rolldown 0.0.0-alpha.33 → 0.0.0-alpha.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +5 -2
- package/dist/nitro.json +1 -1
- package/dist/public/200.html +1 -1
- package/dist/public/404.html +1 -1
- package/dist/public/_nuxt/{BCt7AJYr2.js → 28OcTI2e2.js} +1 -1
- package/dist/public/_nuxt/7JITT7Lv.js +1 -0
- package/dist/public/_nuxt/7Sa9VFur.js +1 -0
- package/dist/public/_nuxt/B5KEqWuS.js +1 -0
- package/dist/public/_nuxt/B7Uzi9u5.js +3 -0
- package/dist/public/_nuxt/B91g3LoS.js +1 -0
- package/dist/public/_nuxt/{CrBvhj22.js → BAH7Ften.js} +1 -1
- package/dist/public/_nuxt/{CwqxH2u32.js → BAiFz_-P2.js} +1 -1
- package/dist/public/_nuxt/{Bpe250WO.js → BLYeE3ho.js} +1 -1
- package/dist/public/_nuxt/BO4gZbVl.js +1 -0
- package/dist/public/_nuxt/BaYNXXCt.js +1 -0
- package/dist/public/_nuxt/{BcpFGloo.js → Bdtk5UYE.js} +1 -1
- package/dist/public/_nuxt/{FKW482sT.js → BnNq-Z_V.js} +1 -1
- package/dist/public/_nuxt/{De6hoB0p.js → Bpozzw1A.js} +1 -1
- package/dist/public/_nuxt/CB-NGWfo.js +1 -0
- package/dist/public/_nuxt/CDw62R4I.js +1 -0
- package/dist/public/_nuxt/{CsiiwekO.js → CQTlMuLw.js} +1 -1
- package/dist/public/_nuxt/{v2o5fpbj.js → CYor1418.js} +1 -1
- package/dist/public/_nuxt/{CbqJqu0C.js → CvoV-A9Y.js} +1 -1
- package/dist/public/_nuxt/{BLuztO_U.js → CyP4eEAT.js} +1 -1
- package/dist/public/_nuxt/CzK_iMhR.js +2 -0
- package/dist/public/_nuxt/{DPYc9JW_.js → D63F5Z8a.js} +1 -1
- package/dist/public/_nuxt/D6aQCUZx2.js +1 -0
- package/dist/public/_nuxt/D7AbeHTq.js +1 -0
- package/dist/public/_nuxt/{CPkjYaSh.js → DHg88w8Z.js} +1 -1
- package/dist/public/_nuxt/DOpxmm79.js +12 -0
- package/dist/public/_nuxt/DV7TRE8i.js +1 -0
- package/dist/public/_nuxt/{olITPEcD.js → DaLz16aP.js} +1 -1
- package/dist/public/_nuxt/DkEU1LAY.js +1 -0
- package/dist/public/_nuxt/{D2T_16Oh.js → DoxsY2al.js} +1 -1
- package/dist/public/_nuxt/DrHs6mcp.js +1 -0
- package/dist/public/_nuxt/{D_QsDu4w2.js → DvWFi_Ii2.js} +1 -1
- package/dist/public/_nuxt/DyswZ8iG.js +1 -0
- package/dist/public/_nuxt/{BCkes08a.js → Y4YMtQtL.js} +1 -1
- package/dist/public/_nuxt/_session_.BcWOaqe_.css +1 -0
- package/dist/public/_nuxt/bSvnGjgQ2.js +1 -0
- package/dist/public/_nuxt/builds/latest.json +1 -1
- package/dist/public/_nuxt/builds/meta/74b7fb54-18a3-4ed3-aa42-c12c389e8a64.json +1 -0
- package/dist/public/_nuxt/{entry.DSzfs26p.css → entry.DAebTvdU.css} +1 -1
- package/dist/public/_nuxt/error-404.DlglkSik.css +1 -0
- package/dist/public/_nuxt/error-500.BbJeK9S9.css +1 -0
- package/dist/public/_nuxt/hXXIFrrE.js +1 -0
- package/dist/public/_nuxt/p7Mpv4Xd2.js +1 -0
- package/dist/public/_nuxt/{DSkKpnKG.js → wmMbYO2d.js} +1 -1
- package/dist/public/index.html +1 -1
- package/package.json +50 -12
- package/dist/public/_nuxt/BNP_0CNt2.js +0 -1
- package/dist/public/_nuxt/Bf1Vsod8.js +0 -1
- package/dist/public/_nuxt/BpPHJgjs2.js +0 -1
- package/dist/public/_nuxt/BvZxqrTM.js +0 -1
- package/dist/public/_nuxt/C0X3s2js.js +0 -1
- package/dist/public/_nuxt/CA89J8qi.js +0 -1
- package/dist/public/_nuxt/CF32XUOn.js +0 -1
- package/dist/public/_nuxt/CHhX9QsC.js +0 -2
- package/dist/public/_nuxt/CPGUpoLC.js +0 -1
- package/dist/public/_nuxt/CeiaCdJS.js +0 -1
- package/dist/public/_nuxt/CxeKBgeG2.js +0 -1
- package/dist/public/_nuxt/D6dVxvIe.js +0 -1
- package/dist/public/_nuxt/Dg1pxj30.js +0 -1
- package/dist/public/_nuxt/F3PiHIWc.js +0 -1
- package/dist/public/_nuxt/FdBHH-Ya.js +0 -33
- package/dist/public/_nuxt/SPaSZIbm.js +0 -1
- package/dist/public/_nuxt/T6zWo6PM.js +0 -1
- package/dist/public/_nuxt/_session_.BXMlcDmB.css +0 -1
- package/dist/public/_nuxt/builds/meta/9cc7d1a5-e72f-46b3-8d66-edb9a68d1a1a.json +0 -1
- package/dist/public/_nuxt/error-404.UDn5o4zm.css +0 -1
- package/dist/public/_nuxt/error-500.B2y7voNR.css +0 -1
- package/dist/public/_nuxt/gtHejcxM.js +0 -3
- package/dist/public/_nuxt/o3Asd-6w.js +0 -1
- package/dist/public/_nuxt/yUVoggG_.js +0 -1
- /package/dist/public/_nuxt/{5tvbNeKa.js → BrE3R8vW.js} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1005,7 +1005,7 @@ var RolldownLogsManager = class {
|
|
|
1005
1005
|
return await Promise.all(sessions.filter((d) => d.isDirectory()).filter((d) => existsSync(join(this.dir, d.name, "meta.json"))).map(async (d) => {
|
|
1006
1006
|
const reader = RolldownEventsReader.get(join(this.dir, d.name, "meta.json"));
|
|
1007
1007
|
await reader.read();
|
|
1008
|
-
const meta = reader.manager.events
|
|
1008
|
+
const meta = reader.manager.events.at(-1);
|
|
1009
1009
|
return {
|
|
1010
1010
|
id: d.name,
|
|
1011
1011
|
timestamp: meta.timestamp,
|
|
@@ -10720,6 +10720,9 @@ const rolldownGetSessionCompareSummary = defineRpcFunction({
|
|
|
10720
10720
|
const rolldownGetSessionSummary = defineRpcFunction({
|
|
10721
10721
|
name: "vite:rolldown:get-session-summary",
|
|
10722
10722
|
type: "query",
|
|
10723
|
+
dump: async (context) => {
|
|
10724
|
+
return { inputs: (await getLogsManager(context).list()).map((session) => [{ session: session.id }]) };
|
|
10725
|
+
},
|
|
10723
10726
|
setup: async (context) => {
|
|
10724
10727
|
const manager = getLogsManager(context);
|
|
10725
10728
|
return { handler: async ({ session }) => {
|
|
@@ -10738,7 +10741,7 @@ const rolldownGetSessionSummary = defineRpcFunction({
|
|
|
10738
10741
|
const rpcFunctions = [
|
|
10739
10742
|
defineRpcFunction({
|
|
10740
10743
|
name: "vite:rolldown:list-sessions",
|
|
10741
|
-
type: "
|
|
10744
|
+
type: "static",
|
|
10742
10745
|
setup: (context) => {
|
|
10743
10746
|
const manager = getLogsManager(context);
|
|
10744
10747
|
return { handler: async () => {
|
package/dist/nitro.json
CHANGED
package/dist/public/200.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-rolldown/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-rolldown/_nuxt/CzK_iMhR.js"}}</script><title>Rolldown DevTools</title><link rel="stylesheet" href="/.devtools-rolldown/_nuxt/entry.DAebTvdU.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/CzK_iMhR.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BrE3R8vW.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/B7Uzi9u5.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/DyswZ8iG.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/CB-NGWfo.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/CvoV-A9Y.js"><script type="module" src="/.devtools-rolldown/_nuxt/CzK_iMhR.js" crossorigin></script><meta name="description" content="DevTools for Rolldown"><meta property="og:title" content="Rolldown DevTools"><meta property="og:description" content="DevTools for Rolldown"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><script id="unhead:payload" type="application/json">{"title":"Rolldown DevTools"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/.devtools-rolldown/",buildId:"74b7fb54-18a3-4ed3-aa42-c12c389e8a64",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1773204952248,false]</script></body></html>
|
package/dist/public/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-rolldown/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-rolldown/_nuxt/CzK_iMhR.js"}}</script><title>Rolldown DevTools</title><link rel="stylesheet" href="/.devtools-rolldown/_nuxt/entry.DAebTvdU.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/CzK_iMhR.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BrE3R8vW.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/B7Uzi9u5.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/DyswZ8iG.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/CB-NGWfo.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/CvoV-A9Y.js"><script type="module" src="/.devtools-rolldown/_nuxt/CzK_iMhR.js" crossorigin></script><meta name="description" content="DevTools for Rolldown"><meta property="og:title" content="Rolldown DevTools"><meta property="og:description" content="DevTools for Rolldown"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><script id="unhead:payload" type="application/json">{"title":"Rolldown DevTools"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/.devtools-rolldown/",buildId:"74b7fb54-18a3-4ed3-aa42-c12c389e8a64",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1773204952249,false]</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,K as t,O as n,S as r,Tt as i,Vt as a,Wt as o,X as s,b as c,ct as l,j as u,k as d,m as f,x as p,y as m}from"./
|
|
1
|
+
import{C as e,K as t,O as n,S as r,Tt as i,Vt as a,Wt as o,X as s,b as c,ct as l,j as u,k as d,m as f,x as p,y as m}from"./B7Uzi9u5.js";import"./DyswZ8iG.js";import{t as h}from"./CQTlMuLw.js";import{r as g,t as _}from"./CYor1418.js";import{t as v}from"./DoxsY2al.js";import{t as y}from"./Bdtk5UYE.js";import{t as b}from"./7JITT7Lv.js";var x={flex:`~ col gap-2`,p6:``},S={flex:`~ gap-2`},C={border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_160px_2fr] gap-2 items-center`},w={"font-mono":``},T=[`datetime`],E={key:4},D={border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_1fr] gap-2 items-center`},O={flex:`~ gap-2`},k=u({__name:`index`,props:{session:{}},setup(u){let k=u,A=m(()=>[{title:`Build ID`,value:k.session.id,icon:`i-ph-hash-duotone`},{title:`Created At`,value:new Date(k.session.meta.timestamp),icon:`i-ph-clock-duotone`},{title:`Build Duration`,value:k.session.buildDuration,icon:`i-ph-timer-duotone`,type:`duration`},{title:`Directory`,value:k.session.meta.cwd,icon:`i-ph-folder-duotone`},{title:`Total Modules`,value:k.session.modulesList.length,icon:`i-ph-files-duotone`},{title:`Plugins`,value:k.session.meta.plugins.length,icon:`i-ph-plugs-duotone`},{title:`Platform`,value:k.session.meta.platform,icon:`i-ph-cpu-duotone`,type:`badge`},{title:`Format`,value:k.session.meta.format,icon:`i-ph-file-duotone`,type:`badge`}]);return(m,j)=>{let M=h,N=_;return t(),e(`div`,x,[c(`div`,S,[d(M,{"btn-action":``,to:{path:`/`}},{default:l(()=>[...j[0]||=[c(`div`,{"i-ph-arrow-bend-up-left-duotone":``},null,-1),n(` Re-select Session `,-1)]]),_:1})]),j[1]||=c(`div`,{op50:``,"mt-10":``},` Meta Info `,-1),c(`div`,C,[(t(!0),e(f,null,s(A.value,n=>(t(),e(f,{key:n.title},[c(`div`,{class:a(n.icon)},null,2),c(`div`,null,o(n.title),1),c(`div`,w,[n.value instanceof Date?(t(),e(`time`,{key:0,datetime:n.value.toISOString()},o(n.value.toLocaleString()),9,T)):n.type===`badge`?(t(),p(g,{key:1,text:String(n.value),py1:``},null,8,[`text`])):n.type===`duration`?(t(),p(v,{key:2,duration:+n.value},null,8,[`duration`])):typeof n.value==`number`?(t(),p(y,{key:3,number:n.value,py1:``,"rounded-full":``,"inline-block":``,"text-sm":``},null,8,[`number`])):(t(),e(`span`,E,o(n.value),1))])],64))),128))]),j[2]||=c(`div`,{op50:``,"mt-4":``},` Build Entries `,-1),c(`div`,D,[(t(!0),e(f,null,s(k.session.meta.inputs,n=>(t(),e(f,{key:n},[d(g,{text:n.name||``},null,8,[`text`]),d(N,{id:n.filename||``,session:u.session,link:!0},null,8,[`id`,`session`])],64))),128))]),j[3]||=c(`div`,{op50:``,"mt-4":``},` Views `,-1),c(`div`,O,[(t(!0),e(f,null,s(i(b),i=>(t(),e(f,{key:i.to},[i.category===`session`?(t(),p(M,{key:0,"btn-action":``,to:{path:i.to},flex:`~ col`,"min-w-40":``,p4:``},{default:l(()=>[c(`div`,{class:a(i.icon),"text-2xl":``},null,2),n(` `+o(i.title),1)]),_:2},1032,[`to`])):r(``,!0)],64))),128))])])}}});export{k as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{St as e,_t as t,at as n,gt as r,y as i}from"./B7Uzi9u5.js";var a=0,o=t(new Map),s=i(()=>Array.from(o.values()).flat());function c(t){let i=e(t),s=()=>{};function c(e){s();let t=a++;o.set(t,e),s=()=>{o.delete(t)}}return n(i,e=>{c(e)},{immediate:!0}),r(()=>{s()}),()=>{s()}}export{c as n,s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,K as t,O as n,Wt as r,b as i,ct as a,k as o}from"./B7Uzi9u5.js";import"./DyswZ8iG.js";import{c as s}from"#entry";import{t as c}from"./CQTlMuLw.js";import{t as l}from"./BUwCbG2W.js";var u={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`},d={class:`max-w-520px text-center`},f=[`textContent`],p=[`textContent`],m=[`textContent`],h={class:`flex items-center justify-center w-full`},g=l({__name:`error-404`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:404},statusText:{type:String,default:`Page not found`},description:{type:String,default:`Sorry, the page you are looking for could not be found.`},backHome:{type:String,default:`Go back home`}},setup(l){let g=l;return s({title:`${g.status} - ${g.statusText} | ${g.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}a{color:inherit;text-decoration: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: }`}]}),(s,g)=>{let _=c;return t(),e(`div`,u,[i(`div`,d,[i(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:r(l.status)},null,8,f),i(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:r(l.statusText)},null,8,p),i(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:r(l.description)},null,8,m),i(`div`,h,[o(_,{to:`/`,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:a(()=>[n(r(l.backHome),1)]),_:1})])])])}}},[[`__scopeId`,`data-v-6b05141f`]]);export{g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,K as t,S as n,Tt as r,b as i,ct as a,j as o,k as s,m as c,y as l}from"./B7Uzi9u5.js";import{r as u}from"./D7AbeHTq.js";import{n as d,t as f}from"./DoxsY2al.js";var p={"text-xs":``,"font-mono":``,flex:`~ items-center gap-3`,ml2:``},m={flex:`~ gap-1 items-center`},h=o({__name:`BuildMetrics`,props:{metrics:{}},setup(o){let h=o,g=l(()=>{let e=h.metrics,t=e?.resolve_ids.reduce((e,t)=>(e+=t.duration,e),0),n=e?.loads?.reduce((e,t)=>(e+=t.duration,e),0),r=e?.transforms.reduce((e,t)=>(e+=t.duration,e),0);return{resolveIds:t,loads:n,transforms:r,total:t+n+r}}),_=l(()=>(h.metrics?.transforms)?.[0]?.source_code_size),v=l(()=>(h.metrics?.transforms.filter(e=>e.transformed_code_size)).at(-1)?.transformed_code_size);return(o,l)=>{let h=u;return t(),e(`div`,p,[s(f,{duration:g.value.resolveIds,flex:`~ gap-1 items-center`,title:`Resolve Id hooks cost: ${r(d)(g.value.resolveIds,!0)}`},{default:a(()=>[...l[0]||=[i(`span`,{"i-ph-magnifying-glass-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),s(f,{duration:g.value.loads,flex:`~ gap-1 items-center`,title:`Load hooks cost: ${r(d)(g.value.loads,!0)}`},{default:a(()=>[...l[1]||=[i(`span`,{"i-ph-upload-simple-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),s(f,{duration:g.value.transforms,flex:`~ gap-1 items-center`,title:`Transform hooks cost: ${r(d)(g.value.transforms,!0)}`},{default:a(()=>[...l[2]||=[i(`span`,{"i-ph-magic-wand-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),l[6]||=i(`span`,{op40:``},`|`,-1),s(f,{duration:g.value.total,flex:`~ gap-1 items-center`,title:`Total build cost: ${r(d)(g.value.total,!0)}`},{default:a(()=>[...l[3]||=[i(`span`,{"i-ph-clock-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),_.value&&v.value?(t(),e(c,{key:0},[l[5]||=i(`span`,{op40:``},`|`,-1),i(`div`,m,[s(h,{title:`Source code size`,bytes:_.value},null,8,[`bytes`]),l[4]||=i(`span`,{"i-ph-arrow-right-duotone":``,op50:``},null,-1),s(h,{title:`Transformed code size`,bytes:v.value},null,8,[`bytes`])])],64)):n(``,!0)])}}}),g=Object.assign(h,{__name:`ModulesBuildMetrics`});export{g as t};
|
|
@@ -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);e(ge+`,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);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)}var xe=e=>!!(e&&e.__v_isRef===!0),Se=e=>_(e)?e:e==null?``:d(e)||y(e)&&(e.toString===x||!g(e.toString))?xe(e)?Se(e.value):JSON.stringify(e,Ce,2):String(e),Ce=(e,t)=>xe(t)?Ce(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[we(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>we(e))}:v(t)?we(t):y(t)&&!d(t)&&!w(t)?String(t):t,we=(e,t=``)=>v(e)?`Symbol(${e.description??t})`:e,M,Te=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 Ee(e){return new Te(e)}function De(){return M}function Oe(e,t=!1){M&&M.cleanups.push(e)}var N,ke=new WeakSet,Ae=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,ke.has(this)&&(ke.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Pe(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ke(this),Le(this);let e=N,t=P;N=this,P=!0;try{return this.fn()}finally{Re(this),N=e,P=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ve(e);this.deps=this.depsTail=void 0,Ke(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ke.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ze(this)&&this.run()}get dirty(){return ze(this)}},je=0,Me,Ne;function Pe(e,t=!1){if(e.flags|=8,t){e.next=Ne,Ne=e;return}e.next=Me,Me=e}function Fe(){je++}function Ie(){if(--je>0)return;if(Ne){let e=Ne;for(Ne=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Me;){let t=Me;for(Me=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 Le(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Re(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Ve(r),He(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function ze(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Be(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Be(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===qe)||(e.globalVersion=qe,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ze(e))))return;e.flags|=2;let t=e.dep,n=N,r=P;N=e,P=!0;try{Le(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,Re(e),e.flags&=-3}}function Ve(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)Ve(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function He(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,Ue=[];function We(){Ue.push(P),P=!1}function Ge(){let e=Ue.pop();P=e===void 0?!0:e}function Ke(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=N;N=void 0;try{t()}finally{N=e}}}var qe=0,Je=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}},Ye=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 Je(N,this),N.deps?(t.prevDep=N.depsTail,N.depsTail.nextDep=t,N.depsTail=t):N.deps=N.depsTail=t,Xe(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++,qe++,this.notify(e)}notify(e){Fe();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ie()}}};function Xe(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)Xe(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Ze=new WeakMap,Qe=Symbol(``),$e=Symbol(``),et=Symbol(``);function F(e,t,n){if(P&&N){let t=Ze.get(e);t||Ze.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Ye),r.map=t,r.key=n),r.track()}}function tt(e,t,n,r,i,a){let o=Ze.get(e);if(!o){qe++;return}let s=e=>{e&&e.trigger()};if(Fe(),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===et||!v(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(et)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Qe)),f(e)&&s(o.get($e)));break;case`delete`:i||(s(o.get(Qe)),f(e)&&s(o.get($e)));break;case`set`:f(e)&&s(o.get(Qe));break}}Ie()}function nt(e,t){let n=Ze.get(e);return n&&n.get(t)}function rt(e){let t=L(e);return t===e?t:(F(t,`iterate`,et),I(e)?t:t.map(R))}function it(e){return F(e=L(e),`iterate`,et),e}function at(e,t){return Ht(e)?Vt(e)?Gt(R(t)):Gt(t):R(t)}var ot={__proto__:null,[Symbol.iterator](){return st(this,Symbol.iterator,e=>at(this,e))},concat(...e){return rt(this).concat(...e.map(e=>d(e)?rt(e):e))},entries(){return st(this,`entries`,e=>(e[1]=at(this,e[1]),e))},every(e,t){return lt(this,`every`,e,t,void 0,arguments)},filter(e,t){return lt(this,`filter`,e,t,e=>e.map(e=>at(this,e)),arguments)},find(e,t){return lt(this,`find`,e,t,e=>at(this,e),arguments)},findIndex(e,t){return lt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return lt(this,`findLast`,e,t,e=>at(this,e),arguments)},findLastIndex(e,t){return lt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return lt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return dt(this,`includes`,e)},indexOf(...e){return dt(this,`indexOf`,e)},join(e){return rt(this).join(e)},lastIndexOf(...e){return dt(this,`lastIndexOf`,e)},map(e,t){return lt(this,`map`,e,t,void 0,arguments)},pop(){return ft(this,`pop`)},push(...e){return ft(this,`push`,e)},reduce(e,...t){return ut(this,`reduce`,e,t)},reduceRight(e,...t){return ut(this,`reduceRight`,e,t)},shift(){return ft(this,`shift`)},some(e,t){return lt(this,`some`,e,t,void 0,arguments)},splice(...e){return ft(this,`splice`,e)},toReversed(){return rt(this).toReversed()},toSorted(e){return rt(this).toSorted(e)},toSpliced(...e){return rt(this).toSpliced(...e)},unshift(...e){return ft(this,`unshift`,e)},values(){return st(this,`values`,e=>at(this,e))}};function st(e,t,n){let r=it(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 ct=Array.prototype;function lt(e,t,n,r,i,a){let o=it(e),s=o!==e&&!I(e),c=o[t];if(c!==ct[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,at(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 ut(e,t,n,r){let i=it(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=at(e,t)),n.call(this,t,at(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?at(e,c):c}function dt(e,t,n){let r=L(e);F(r,`iterate`,et);let i=r[t](...n);return(i===-1||i===!1)&&Ut(n[0])?(n[0]=L(n[0]),r[t](...n)):i}function ft(e,t,n=[]){We(),Fe();let r=L(e)[t].apply(e,n);return Ie(),Ge(),r}var pt=e(`__proto__,__v_isRef,__isVue`),mt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(v));function ht(e){v(e)||(e=String(e));let t=L(this);return F(t,`has`,e),t.hasOwnProperty(e)}var gt=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?Pt:Nt:i?Mt:jt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=ot[t]))return e;if(t===`hasOwnProperty`)return ht}let o=Reflect.get(e,t,z(e)?e:n);if((v(t)?mt.has(t):pt(t))||(r||F(e,`get`,t),i))return o;if(z(o)){let e=a&&T(t)?o:o.value;return r&&y(e)?zt(e):e}return y(o)?r?zt(o):Lt(o):o}},_t=class extends gt{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=Ht(i);if(!I(n)&&!Ht(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)&&tt(e,`set`,t,n,i):tt(e,`add`,t,n)),s}deleteProperty(e,t){let n=u(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&tt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!v(t)||!mt.has(t))&&F(e,`has`,t),n}ownKeys(e){return F(e,`iterate`,d(e)?`length`:Qe),Reflect.ownKeys(e)}},vt=class extends gt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},yt=new _t,bt=new vt,xt=new _t(!0),St=e=>e,Ct=e=>Reflect.getPrototypeOf(e);function wt(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?St:t?Gt:R;return!t&&F(a,`iterate`,l?$e:Qe),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 Tt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Et(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}=Ct(i),s=t?St:e?Gt: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`,Qe),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?St:e?Gt:R;return!e&&F(o,`iterate`,Qe),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:Tt(`add`),set:Tt(`set`),delete:Tt(`delete`),clear:Tt(`clear`)}:{add(e){let n=L(this),r=Ct(n),i=L(e),a=!t&&!I(e)&&!Ht(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),tt(n,`add`,a,a)),this},set(e,n){!t&&!I(n)&&!Ht(n)&&(n=L(n));let r=L(this),{has:i,get:a}=Ct(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)&&tt(r,`set`,e,n,s):tt(r,`add`,e,n),this},delete(e){let t=L(this),{has:n,get:r}=Ct(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&&tt(t,`delete`,e,void 0,a),o},clear(){let e=L(this),t=e.size!==0,n=e.clear();return t&&tt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=wt(r,e,t)}),n}function Dt(e,t){let n=Et(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 Ot={get:Dt(!1,!1)},kt={get:Dt(!1,!0)},At={get:Dt(!0,!1)},jt=new WeakMap,Mt=new WeakMap,Nt=new WeakMap,Pt=new WeakMap;function Ft(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function It(e){return e.__v_skip||!Object.isExtensible(e)?0:Ft(C(e))}function Lt(e){return Ht(e)?e:Bt(e,!1,yt,Ot,jt)}function Rt(e){return Bt(e,!1,xt,kt,Mt)}function zt(e){return Bt(e,!0,bt,At,Nt)}function Bt(e,t,n,r,i){if(!y(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=It(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 Vt(e){return Ht(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ht(e){return!!(e&&e.__v_isReadonly)}function I(e){return!!(e&&e.__v_isShallow)}function Ut(e){return e?!!e.__v_raw:!1}function L(e){let t=e&&e.__v_raw;return t?L(t):e}function Wt(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&ie(e,`__v_skip`,!0),e}var R=e=>y(e)?Lt(e):e,Gt=e=>y(e)?zt(e):e;function z(e){return e?e.__v_isRef===!0:!1}function Kt(e){return Jt(e,!1)}function qt(e){return Jt(e,!0)}function Jt(e,t){return z(e)?e:new Yt(e,t)}var Yt=class{constructor(e,t){this.dep=new Ye,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)||Ht(e);e=n?e:L(e),A(e,t)&&(this._rawValue=e,this._value=n?e:R(e),this.dep.trigger())}};function Xt(e){return z(e)?e.value:e}function Zt(e){return g(e)?e():Xt(e)}var Qt={get:(e,t,n)=>t===`__v_raw`?e:Xt(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 $t(e){return Vt(e)?e:new Proxy(e,Qt)}var en=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new Ye,{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 tn(e){return new en(e)}function nn(e){let t=d(e)?Array(e.length):{};for(let n in e)t[n]=sn(e,n);return t}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=!Ut(i)||I(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=Xt(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 nt(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):Kt(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 Ye(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=qe-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 Pe(this,!0),!0}get value(){let e=this.dep.track();return Be(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)):Vt(e)?(h=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>Vt(e)||I(e)),h=()=>e.map(e=>{if(z(e))return e.value;if(Vt(e))return p(e);if(g(e))return f?f(e,2):e()})):h=g(e)?n?f?()=>f(e,2):e:()=>{if(_){We();try{_()}finally{Ge()}}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=De(),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 Ae(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){We(),gn(o,null,10,[e,i,a]),Ge();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){Pn=e}function Ln(){Pn=null}var Rn=e=>zn;function zn(e,t=H,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&co(-1);let i=Fn(t),a;try{a=e(...n)}finally{Fn(i),r._d&&co(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Bn(e,n){if(H===null)return e;let r=Wo(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 Vn(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&&(We(),B(c,n,8,[e.el,s,e,t]),Ge())}}function Hn(e,t){if($){let n=$.provides,r=$.parent&&$.parent.provides;r===n&&(n=$.provides=Object.create(r)),n[e]=t}}function Un(e,t,n=!1){let r=ko();if(r||$i){let i=$i?$i._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 Wn(){return!!(ko()||$i)}var Gn=Symbol.for(`v-scx`),Kn=()=>Un(Gn);function qn(e,t){return Xn(e,null,t)}function Jn(e,t){return Xn(e,null,{flush:`sync`})}function Yn(e,t,n){return Xn(e,t,n)}function Xn(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(Fo){if(c===`sync`){let e=Kn();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 Fo&&(f?f.push(h):d&&h()),h}function Zn(e,t,n){let r=this.proxy,i=_(e)?e.includes(`.`)?Qn(r,e):()=>r[e]:e.bind(r,r),a;g(t)?a=t:(a=t.handler,n=t);let o=Mo(this),s=Xn(i,a.bind(r),n);return o(),s}function Qn(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 $n=Symbol(`_vte`),er=e=>e.__isTeleport,tr=e=>e&&(e.disabled||e.disabled===``),nr=e=>e&&(e.defer||e.defer===``),rr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,ir=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,ar=(e,t)=>{let n=e&&e.to;return _(n)?t?t(n):null:n},or={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,_=tr(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=ar(t.props,m),n=dr(e,t,h,p);e&&(o!==`svg`&&rr(e)?o=`svg`:o!==`mathml`&&ir(e)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(e),_||(d(e,n),ur(t,!1)))};_&&(d(n,l),ur(t,!0)),nr(t.props)?(t.el.__isMounted=!1,G(()=>{f(),delete t.el.__isMounted},a)):f()}else{if(nr(t.props)&&e.el.__isMounted===!1){G(()=>{or.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=tr(e.props),v=g?n:p,y=g?u:h;if(o===`svg`||rr(p)?o=`svg`:(o===`mathml`||ir(p))&&(o=`mathml`),b?(f(e.dynamicChildren,b,v,i,a,o,s),Ra(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):sr(t,n,u,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=ar(t.props,m);e&&sr(t,e,null,l,0)}else g&&sr(t,p,h,l,1);ur(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||!tr(f);for(let i=0;i<s.length;i++){let a=s[i];r(a,t,n,e,!!a.dynamicChildren)}}},move:sr,hydrate:cr};function sr(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||tr(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function cr(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=ar(t.props,c),h=tr(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||dr(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||dr(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),ur(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var lr=or;function ur(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 dr(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[$n]=o,e&&(r(a,e,i),r(o,e,i)),o}var fr=Symbol(`_leaveCb`),pr=Symbol(`_enterCb`);function mr(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ai(()=>{e.isMounted=!0}),ci(()=>{e.isUnmounting=!0}),e}var U=[Function,Array],hr={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},gr=e=>{let t=e.subTree;return t.component?gr(t.component):t},_r={name:`BaseTransition`,props:hr,setup(e,{slots:t}){let n=ko(),r=mr();return()=>{let i=t.default&&Tr(t.default(),!0);if(!i||!i.length)return;let a=vr(i),o=L(e),{mode:s}=o;if(r.isLeaving)return Sr(a);let c=Cr(a);if(!c)return Sr(a);let l=xr(c,o,r,n,e=>l=e);c.type!==q&&wr(c,l);let u=n.subTree&&Cr(n.subTree);if(u&&u.type!==q&&!Y(u,c)&&gr(n).type!==q){let e=xr(u,o,r,n);if(wr(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},Sr(a);s===`in-out`&&c.type!==q?e.delayLeave=(e,t,n)=>{let i=br(r,u);i[String(u.key)]=u,e[fr]=()=>{t(),e[fr]=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 vr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==q){t=n;break}}return t}var yr=_r;function br(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function xr(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=br(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[fr]&&t[fr](!0);let i=S[x];i&&Y(e,i)&&i.el[fr]&&i.el[fr](),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[pr]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[pr]=void 0)};let c=t[pr].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[pr]&&t[pr](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[fr]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[fr]=void 0,S[i]===e&&delete S[i])};let o=t[fr].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=xr(e,t,n,r,i);return i&&i(a),a}};return T}function Sr(e){if(qr(e))return e=yo(e),e.children=null,e}function Cr(e){if(!qr(e))return er(e.type)&&e.children?vr(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 wr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,wr(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 Tr(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(Tr(o.children,t,s))):(t||o.type!==q)&&r.push(s==null?o:yo(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function Er(e,t){return g(e)?s({name:e.name},t,{setup:e}):e}function Dr(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function Or(e){let n=ko(),r=qt(null);if(n){let i=n.refs===t?n.refs={}:n.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>r.value,set:e=>r.value=e})}return r}function kr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Ar=new WeakMap;function jr(e,n,r,a,o=!1){if(d(e)){e.forEach((e,t)=>jr(e,n&&(d(n)?n[t]:n),r,a,o));return}if(Wr(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&jr(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?Wo(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=>kr(h,e)?!1:u(y,e),x=(e,t)=>!(t&&kr(h,t));if(m!=null&&m!==p){if(Mr(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(),Ar.delete(e)};t.id=-1,Ar.set(e,t),G(t,r)}else Mr(e),i()}}}function Mr(e){let t=Ar.get(e);t&&(t.flags|=8,Ar.delete(e))}var Nr=!1,Pr=()=>{Nr||=(console.error(`Hydration completed but contains mismatches.`),!0)},Fr=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Ir=e=>e.namespaceURI.includes(`MathML`),Lr=e=>{if(e.nodeType===1){if(Fr(e))return`svg`;if(Ir(e))return`mathml`}},Rr=e=>e.nodeType===8;function zr(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=Rr(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 no:E===3?(n.data!==r.children&&(Pr(),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 ro: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):Rr(n)&&n.data===`teleport start`?_(n,n.data,`teleport end`):o(n),t(r,e,null,a,c,Lr(e),d),Wr(r)&&!r.type.__asyncResolved){let t;b?(t=X(K),t.anchor=D?D.previousSibling:e.lastChild):t=n.nodeType===3?bo(``):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,Lr(s(n)),u,d,e,f))}return C!=null&&jr(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&&Vn(t,null,n,`created`);let l=!1;if(y(e)){l=La(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;){Hr(e,1)||Pr();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
|
+
`)&&(Hr(e,0)||Pr(),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&&Vt(u.style))for(let e in u.style)u.style[e]}let _;(_=u&&u.onVnodeBeforeMount)&&Q(_,n,t),p&&Vn(t,null,n,`beforeMount`),((_=u&&u.onVnodeMounted)||p||l)&&$a(()=>{_&&Q(_,n,t),l&&h.enter(e),p&&Vn(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===no;e?(h&&!u&&t+1<p&&Z(d[t+1]).type===no&&(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):(Hr(r,1)||Pr(),n(null,m,r,null,a,s,Lr(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&&Rr(f)&&f.data===`]`?o(t.anchor=f):(Pr(),l(t.anchor=u(`]`),d,f),f)},g=(e,t,r,i,a,l)=>{if(Hr(e.parentElement,1)||Pr(),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,Lr(d),a),r&&(r.vnode.el=t.el,pa(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=o(e),e&&Rr(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 Br=`data-allow-mismatch`,Vr={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Hr(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Br);)e=e.parentElement;let n=e&&e.getAttribute(Br);if(n==null)return!1;if(n===``)return!0;{let e=n.split(`,`);return t===0&&e.includes(`children`)?!0:e.includes(Vr[t])}}ce().requestIdleCallback,ce().cancelIdleCallback;function Ur(e,t){if(Rr(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Rr(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}var Wr=e=>!!e.type.__asyncLoader;function Gr(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 Er({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=>Ur(e,t));n&&(t.bum||=[]).push(n)}:i;u?o():p().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){let e=$;if(Dr(e),u)return()=>Kr(u,e);let t=t=>{l=null,_n(t,e,13,!r)};if(s&&e.suspense||Fo)return p().then(t=>()=>Kr(t,e)).catch(e=>(t(e),()=>r?X(r,{error:e}):null));let a=Kt(!1),c=Kt(),d=Kt(!!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&&qr(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),c.value=e}),()=>{if(a.value&&u)return Kr(u,e);if(c.value&&r)return X(r,{error:c.value});if(n&&!d.value)return Kr(n,e)}}})}function Kr(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 qr=e=>e.type.__isKeepAlive,Jr={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=ko(),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;Va(t.m),Va(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){ei(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=Go(Wr(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&&ei(o),i.delete(e),a.delete(e)}Yn(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Yr(e,t)),t&&m(e=>!Yr(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(Ua(n.subTree.type)?G(()=>{i.set(g,ti(n.subTree))},n.subTree.suspense):i.set(g,ti(n.subTree)))};return ai(_),si(_),ci(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=ti(t);if(e.type===i.type&&e.key===i.key){ei(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(!po(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=ti(r);if(s.type===q)return o=null,s;let c=s.type,l=Go(Wr(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Yr(u,l))||d&&l&&Yr(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=yo(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&wr(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,Ua(r.type)?r:s}}};function Yr(e,t){return d(e)?e.some(e=>Yr(e,t)):_(e)?e.split(`,`).includes(t):h(e)?(e.lastIndex=0,e.test(t)):!1}function Xr(e,t){Qr(e,`a`,t)}function Zr(e,t){Qr(e,`da`,t)}function Qr(e,t,n=$){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(ni(t,r,n),n){let e=n.parent;for(;e&&e.parent;)qr(e.parent.vnode)&&$r(r,t,n,e),e=e.parent}}function $r(e,t,n,r){let i=ni(t,e,r,!0);li(()=>{c(r[t],i)},n)}function ei(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ti(e){return e.shapeFlag&128?e.ssContent:e}function ni(e,t,n=$,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{We();let i=Mo(n),a=B(t,n,e,r);return i(),Ge(),a};return r?i.unshift(a):i.push(a),a}}var ri=e=>(t,n=$)=>{(!Fo||e===`sp`)&&ni(e,(...e)=>t(...e),n)},ii=ri(`bm`),ai=ri(`m`),oi=ri(`bu`),si=ri(`u`),ci=ri(`bum`),li=ri(`um`),ui=ri(`sp`),di=ri(`rtg`),fi=ri(`rtc`);function pi(e,t=$){ni(`ec`,e,t)}var mi=`components`,hi=`directives`;function gi(e,t){return bi(mi,e,!0,t)||e}var _i=Symbol.for(`v-ndc`);function vi(e){return _(e)?bi(mi,e,!1)||e:e||_i}function yi(e){return bi(hi,e)}function bi(e,t,n=!0,r=!1){let i=H||$;if(i){let n=i.type;if(e===mi){let e=Go(n,!1);if(e&&(e===t||e===O(t)||e===ne(O(t))))return n}let a=xi(i[e]||n[e],t)||xi(i.appContext[e],t);return!a&&r?n:a}}function xi(e,t){return e&&(e[t]||e[O(t)]||e[ne(O(t))])}function Si(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||_(e)){let n=o&&Vt(e),r=!1,s=!1;n&&(r=!I(e),s=Ht(e),e=it(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Gt(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 Ci(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(d(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function wi(e,t,n={},r,i){if(H.ce||H.parent&&Wr(H.parent)&&H.parent.ce){let e=Object.keys(n).length>0;return t!==`default`&&(n.name=t),ao(),fo(K,null,[X(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),ao();let o=a&&Ti(a(n)),s=n.key||o&&o.key,c=fo(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 Ti(e){return e.some(e=>po(e)?!(e.type===q||e.type===K&&!Ti(e.children)):!0)?e:null}function Ei(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:re(r)]=e[r];return n}var Di=e=>e?Po(e)?Wo(e):Di(e.parent):null,Oi=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=>Di(e.parent),$root:e=>Di(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Vi(e),$forceUpdate:e=>e.f||=()=>{Dn(e.update)},$nextTick:e=>e.n||=Tn.bind(e.proxy),$watch:e=>Zn.bind(e)}),ki=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),Ai={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(ki(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 Ii&&(s[n]=0)}let d=Oi[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 ki(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)||ki(n,c)||u(o,c)||u(i,c)||u(Oi,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 ji(){return Mi(`useSlots`).slots}function Mi(e){let t=ko();return t.setupContext||=Uo(t)}function Ni(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Pi(e,t){return!e||!t?e||t:d(e)&&d(t)?e.concat(t):s({},Ni(e),Ni(t))}function Fi(e){let t=ko(),n=Fo,r=e();No(),n&&jo(!1);let i=()=>{Mo(t),n&&jo(!0)},a=()=>{ko()!==t&&t.scope.off(),No(),n&&jo(!1)};return b(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]}var Ii=!0;function Li(e){let t=Vi(e),n=e.proxy,i=e.ctx;Ii=!1,t.beforeCreate&&zi(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&&Ri(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=Lt(t))}if(Ii=!0,o)for(let e in o){let t=o[e],a=qo({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)Bi(c[e],i,n,e);if(l){let e=g(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Hn(t,e[t])})}f&&zi(f,e,`c`);function j(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(j(ii,p),j(ai,m),j(oi,h),j(si,_),j(Xr,v),j(Zr,b),j(pi,ee),j(fi,E),j(di,D),j(ci,S),j(li,w),j(ui,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&&Dr(e)}function Ri(e,t,n=r){d(e)&&(e=Ki(e));for(let n in e){let r=e[n],i;i=y(r)?`default`in r?Un(r.from||n,r.default,!0):Un(r.from||n):Un(r),z(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function zi(e,t,n){B(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Bi(e,t,n,r){let i=r.includes(`.`)?Qn(n,r):()=>n[r];if(_(e)){let n=t[e];g(n)&&Yn(i,n)}else if(g(e))Yn(i,e.bind(n));else if(y(e))if(d(e))e.forEach(e=>Bi(e,t,n,r));else{let r=g(e.handler)?e.handler.bind(n):t[e.handler];g(r)&&Yn(i,r,e)}}function Vi(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=>Hi(c,e,o,!0)),Hi(c,t,o)),y(t)&&a.set(t,c),c}function Hi(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Hi(e,a,n,!0),i&&i.forEach(t=>Hi(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Ui[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Ui={data:Wi,props:Ji,emits:Ji,methods:qi,computed:qi,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:qi,directives:qi,watch:Yi,provide:Wi,inject:Gi};function Wi(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 Gi(e,t){return qi(Ki(e),Ki(t))}function Ki(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 qi(e,t){return e?s(Object.create(null),e,t):t}function Ji(e,t){return e?d(e)&&d(t)?[...new Set([...e,...t])]:s(Object.create(null),Ni(e),Ni(t??{})):t}function Yi(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 Xi(){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 Zi=0;function Qi(e,t){return function(n,r=null){g(n)||(n=s({},n)),r!=null&&!y(r)&&(r=null);let i=Xi(),a=new WeakSet,o=[],c=!1,l=i.app={_uid:Zi++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Yo,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,Wo(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=$i;$i=l;try{return e()}finally{$i=t}}};return l}}var $i=null;function ea(e,n,r=t){let i=ko(),a=O(n),o=k(n),s=ta(e,a),c=tn((s,c)=>{let l,u=t,d;return Jn(()=>{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 ta=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${k(t)}Modifiers`];function na(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&ta(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 ra=new WeakMap;function ia(e,t,n=!1){let r=n?ra: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=ia(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 aa(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 oa(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:ca(c)}}catch(t){io.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=la(y,a)),b=yo(b,y,!1,!0))}return n.dirs&&(b=yo(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&wr(b,n.transition),v=b,Fn(_),v}function sa(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(po(r)){if(r.type!==q||r.children===`v-if`){if(n)return;n=r}}else return}return n}var ca=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},la=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ua(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?da(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(fa(o,r,n)&&!aa(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?da(r,o,l):!0:!!o;return!1}function da(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(fa(t,e,a)&&!aa(n,a))return!0}return!1}function fa(e,t,n){let r=e[n],i=t[n];return n===`style`&&y(r)&&y(i)?!be(r,i):r!==i}function pa({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 ma={},ha=()=>Object.create(ma),ga=e=>Object.getPrototypeOf(e)===ma;function _a(e,t,n,r=!1){let i={},a=ha();e.propsDefaults=Object.create(null),ya(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:Rt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function va(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(aa(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]=ba(c,s,t,d,e,!1)}else d!==a[o]&&(a[o]=d,l=!0)}}}else{ya(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]=ba(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&&tt(e.attrs,`set`,``)}function ya(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:aa(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]=ba(a,n,s,i[s],e,!u(i,s))}}return s}function ba(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=Mo(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 xa=new WeakMap;function Sa(e,r,i=!1){let a=i?xa: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]=Sa(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]);Ca(n)&&(l[n]=t)}else if(c)for(let e in c){let t=O(e);if(Ca(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 Ca(e){return e[0]!==`$`&&!E(e)}var wa=e=>e===`_`||e===`_ctx`||e===`$stable`,Ta=e=>d(e)?e.map(Z):[Z(e)],Ea=(e,t,n)=>{if(t._n)return t;let r=zn((...e)=>Ta(t(...e)),n);return r._c=!1,r},Da=(e,t,n)=>{let r=e._ctx;for(let n in e){if(wa(n))continue;let i=e[n];if(g(i))t[n]=Ea(n,i,r);else if(i!=null){let e=Ta(i);t[n]=()=>e}}},Oa=(e,t)=>{let n=Ta(t);e.slots.default=()=>n},ka=(e,t,n)=>{for(let r in t)(n||!wa(r))&&(e[r]=t[r])},Aa=(e,t,n)=>{let r=e.slots=ha();if(e.vnode.shapeFlag&32){let e=t._;e?(ka(r,t,n),n&&ie(r,`_`,e,!0)):Da(t,r)}else t&&Oa(e,t)},ja=(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:ka(a,n,r):(o=!n.$stable,Da(n,a)),s=n}else n&&(Oa(e,n),s={default:1});if(o)for(let e in a)!wa(e)&&s[e]==null&&delete a[e]},G=$a;function Ma(e){return Pa(e)}function Na(e){return Pa(e,zr)}function Pa(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 no:y(e,t,n,r);break;case q:b(e,t,n,r);break;case ro: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?jr(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&jr(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,Fa(e,a),s,u),_&&Vn(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)}_&&Vn(e,null,r,`beforeMount`);let v=La(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),_&&Vn(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||Ua(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?Co(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&&Ia(r,!1),(g=h.onVnodeBeforeUpdate)&&Q(g,r,n,e),f&&Vn(n,e,r,`beforeUpdate`),r&&Ia(r,!0),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?te(e.dynamicChildren,d,l,r,i,Fa(n,a),o):s||se(e,n,l,null,r,i,Fa(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&&Vn(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)&&Ra(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=Oo(e,r,i);if(qr(e)&&(s.ctx.renderer=be),Io(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(ua(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=Ba(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;Ia(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),Ia(e,!0);let f=oa(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),_e(p),e,i,a),t.el=f.el,u===null&&pa(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=Wr(t);if(Ia(e,!1),l&&j(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Q(o,d,t),Ia(e,!0),s&&Se){let t=()=>{e.subTree=oa(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=oa(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&&Wr(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 Ae(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),Ia(e,!0),l()},oe=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,va(e,t.props,r,n),ja(e,t.children,n),We(),An(e),Ge()},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?Co(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?Co(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?Co(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?Co(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?Co(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?za(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||Ha(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===ro){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[fr](!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&&(We(),jr(s,null,n,e,!0),Ge()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let m=u&1&&f,h=!Wr(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&&Vn(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&&Vn(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===ro){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;Va(c),Va(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[$n];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:Qi(ye,xe)}}function Fa({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 Ia({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function La(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ra(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]=Co(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Ra(t,a)),a.type===no&&(a.patchFlag===-1&&(a=i[e]=Co(a)),a.el=t.el),a.type===q&&!a.el&&(a.el=t.el)}}function za(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 Ba(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ba(t)}function Va(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ha(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Ha(t.subTree):null}var Ua=e=>e.__isSuspense,Wa=0,Ga={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)qa(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}Ja(e,t,n,r,i,o,s,c,l)}},hydrate:Xa,normalize:Za};function Ka(e,t){let n=e.props&&e.props[t];g(n)&&n()}function qa(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=Ya(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?(Ka(e,`onPending`),Ka(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),eo(f,e.ssFallback)):f.resolve(!1,!0)}function Ja(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),eo(d,p)))):(d.pendingId=Wa++,_?(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),eo(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),eo(d,f);else if(Ka(t,`onPending`),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=Wa++,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 Ya(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=to(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:Wa++,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)),eo(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()),Ka(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;Ka(t,`onFallback`);let o=m(n),l=()=>{x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),eo(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;Ro(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)),pa(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 Xa(e,t,n,r,i,a,o,s,c){let l=t.suspense=Ya(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 Za(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Qa(r?n.default:n),e.ssFallback=r?Qa(n.fallback):X(q)}function Qa(e){let t;if(g(e)){let n=so&&e._c;n&&(e._d=!1,ao()),e=e(),n&&(e._d=!0,t=J,oo())}return d(e)&&(e=sa(e)),e=Z(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function $a(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):kn(e)}function eo(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,pa(r,i))}function to(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var K=Symbol.for(`v-fgt`),no=Symbol.for(`v-txt`),q=Symbol.for(`v-cmt`),ro=Symbol.for(`v-stc`),io=[],J=null;function ao(e=!1){io.push(J=e?null:[])}function oo(){io.pop(),J=io[io.length-1]||null}var so=1;function co(e,t=!1){so+=e,e<0&&J&&t&&(J.hasOnce=!0)}function lo(e){return e.dynamicChildren=so>0?J||n:null,oo(),so>0&&J&&J.push(e),e}function uo(e,t,n,r,i,a){return lo(go(e,t,n,r,i,a,!0))}function fo(e,t,n,r,i){return lo(X(e,t,n,r,i,!0))}function po(e){return e?e.__v_isVNode===!0:!1}function Y(e,t){return e.type===t.type&&e.key===t.key}var mo=({key:e})=>e??null,ho=({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 go(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&&mo(t),ref:t&&ho(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?(wo(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=_(n)?8:16),so>0&&!o&&J&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&J.push(c),c}var X=_o;function _o(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===_i)&&(e=q),po(e)){let r=yo(e,t,!0);return n&&wo(r,n),so>0&&!a&&J&&(r.shapeFlag&6?J[J.indexOf(e)]=r:J.push(r)),r.patchFlag=-2,r}if(Ko(e)&&(e=e.__vccOpts),t){t=vo(t);let{class:e,style:n}=t;e&&!_(e)&&(t.class=me(e)),y(n)&&(Ut(n)&&!d(n)&&(n=s({},n)),t.style=le(n))}let o=_(e)?1:Ua(e)?128:er(e)?64:y(e)?4:g(e)?2:0;return go(e,t,n,r,i,o,a,!0)}function vo(e){return e?Ut(e)||ga(e)?s({},e):e:null}function yo(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?To(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&mo(l),ref:t&&t.ref?n&&a?d(a)?a.concat(ho(t)):[a,ho(t)]:ho(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&&yo(e.ssContent),ssFallback:e.ssFallback&&yo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&wr(u,c.clone(u)),u}function bo(e=` `,t=0){return X(no,null,e,t)}function xo(e,t){let n=X(ro,null,e);return n.staticCount=t,n}function So(e=``,t=!1){return t?(ao(),fo(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()):po(e)?Co(e):X(no,null,String(e))}function Co(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:yo(e)}function wo(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),wo(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!ga(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=[bo(t)]):n=8);e.children=t,e.shapeFlag|=n}function To(...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 Eo=Xi(),Do=0;function Oo(e,n,r){let i=e.type,a=(n?n.appContext:e.appContext)||Eo,o={uid:Do++,vnode:e,type:i,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Te(!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:Sa(i,a),emitsOptions:ia(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=na.bind(null,o),e.ce&&e.ce(o),o}var $=null,ko=()=>$||H,Ao,jo;{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)}};Ao=t(`__VUE_INSTANCE_SETTERS__`,e=>$=e),jo=t(`__VUE_SSR_SETTERS__`,e=>Fo=e)}var Mo=e=>{let t=$;return Ao(e),e.scope.on(),()=>{e.scope.off(),Ao(t)}},No=()=>{$&&$.scope.off(),Ao(null)};function Po(e){return e.vnode.shapeFlag&4}var Fo=!1;function Io(e,t=!1,n=!1){t&&jo(t);let{props:r,children:i}=e.vnode,a=Po(e);_a(e,r,a,t),Aa(e,i,n||t);let o=a?Lo(e,t):void 0;return t&&jo(!1),o}function Lo(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ai);let{setup:r}=n;if(r){We();let n=e.setupContext=r.length>1?Uo(e):null,i=Mo(e),a=gn(r,e,0,[e.props,n]),o=b(a);if(Ge(),i(),(o||e.sp)&&!Wr(e)&&Dr(e),o){if(a.then(No,No),t)return a.then(n=>{Ro(e,n,t)}).catch(t=>{_n(t,e,0)});e.asyncDep=a}else Ro(e,a,t)}else Vo(e,t)}function Ro(e,t,n){g(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:y(t)&&(e.setupState=$t(t)),Vo(e,n)}var zo,Bo;function Vo(e,t,n){let i=e.type;if(!e.render){if(!t&&zo&&!i.render){let t=i.template||Vi(e).template;if(t){let{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:o}=i;i.render=zo(t,s(s({isCustomElement:n,delimiters:a},r),o))}}e.render=i.render||r,Bo&&Bo(e)}{let t=Mo(e);We();try{Li(e)}finally{Ge(),t()}}}var Ho={get(e,t){return F(e,`get`,``),e[t]}};function Uo(e){return{attrs:new Proxy(e.attrs,Ho),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Wo(e){return e.exposed?e.exposeProxy||=new Proxy($t(Wt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Oi)return Oi[n](e)},has(e,t){return t in e||t in Oi}}):e.proxy}function Go(e,t=!0){return g(e)?e.displayName||e.name:e.name||t&&e.__name}function Ko(e){return g(e)&&`__vccOpts`in e}var qo=(e,t)=>ln(e,t,Fo);function Jo(e,t,n){try{co(-1);let r=arguments.length;return r===2?y(t)&&!d(t)?po(t)?X(e,null,[t]):X(e,t):X(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&po(n)&&(n=[n]),X(e,t,n))}finally{co(1)}}var Yo=`3.5.30`;function Xo(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?Xo(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var Zo={run:e=>e()},Qo=console.createTask===void 0?()=>Zo:console.createTask;function $o(e,t){let n=Qo(t.shift());return e.reduce((e,r)=>e.then(()=>n.run(()=>r(...t))),Promise.resolve())}function es(e,t){let n=Qo(t.shift());return Promise.all(e.map(e=>n.run(()=>e(...t))))}function ts(e,t){for(let n of[...e])n(t)}var ns=class{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){if(this._hooks[e]){let n=this._hooks[e].indexOf(t);n!==-1&&this._hooks[e].splice(n,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];delete this._hooks[e];for(let t of n)this.hook(e,t)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=Xo(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n.splice(0,n.length))e()}}removeHooks(e){let t=Xo(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){for(let e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith($o,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(es,e,...t)}callHookWith(e,t,...n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&ts(this._before,r);let i=e(t in this._hooks?[...this._hooks[t]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&r&&ts(this._after,r)}):(this._after&&r&&ts(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 rs(){return new ns}function is(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;ds.add(o);try{let a=i?i.run(e,r):r();return n||(t=void 0),await a}finally{ds.delete(o)}}}}function as(e={}){let t={};return{get(n,r={}){return t[n]||(t[n]=is({...e,...r})),t[n]}}}var os=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof globalThis<`u`?globalThis:typeof window<`u`?window:{},ss=`__unctx__`,cs=os[ss]||(os[ss]=as()),ls=(e,t={})=>cs.get(e,t),us=`__unctx_async_handlers__`,ds=os[us]||(os[us]=new Set);function fs(e){let t=[];for(let e of ds){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 ps={id:`__nuxt-loader`},ms={componentName:`NuxtLink`,prefetch:!0,prefetchOn:{visibility:!0}},hs=`#__nuxt`,gs=`nuxt-app`,_s=36e5,vs=`vite:preloadError`;function ys(e=`nuxt-app`){return ls(e,{asyncContext:!1})}var bs=`__nuxt_plugin`;function xs(e){let t=0,n={_id:e.id||`nuxt-app`,_scope:Ee(),provide:void 0,versions:{get nuxt(){return`4.3.1`},get vue(){return n.vueApp.version}},payload:Rt({...e.ssrContext?.payload||{},data:Rt({}),state:Lt({}),once:new Set,_errors:Rt({})}),static:{data:{}},runWithContext(e){return n._scope.active&&!De()?n._scope.run(()=>Es(n,e)):Es(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:Rt({}),_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=rs(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(e,t)=>{let r=`$`+e;As(n,r,t),As(n.vueApp.config.globalProperties,r,t)},As(n.vueApp,`$nuxt`,n),As(n.vueApp.config.globalProperties,`$nuxt`,n);{window.addEventListener(vs,e=>{n.callHook(`app:chunkError`,{error:e.payload}),e.payload.message.includes(`Unable to preload CSS`)&&e.preventDefault()}),window.useNuxtApp||=Os;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 Ss(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function Cs(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 ws(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=Cs(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)Ss(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 Ts(e){if(typeof e==`function`)return e;let t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[bs]:!0,_name:t})}function Es(e,t,n){return ys(e._id).set(e),e.vueApp.runWithContext(()=>n?t(...n):t())}function Ds(e){let t;return Wn()&&(t=ko()?.appContext.app.$nuxt),t||=ys(e).tryUse(),t||null}function Os(e){let t=Ds(e);if(!t)throw Error(`[nuxt] instance unavailable`);return t}function ks(e){return Os().$config}function As(e,t,n){Object.defineProperty(e,t,{get:()=>n})}export{yi as $,Gr as A,ve as At,Xr as B,ae as Bt,uo as C,nn as Ct,xo as D,ne as Dt,Ci as E,O as Et,Wn as F,y as Ft,li as G,oe as Gt,Zr as H,he as Ht,Un as I,a as It,Hn as J,ao as K,Pi as L,_e as Lt,ko as M,d as Mt,vo as N,g as Nt,bo as O,s as Ot,Jo as P,o as Pt,gi as Q,To as R,_ as Rt,So as S,on as St,Ma as T,Xt as Tt,pi as U,le as Ut,ci as V,me as Vt,ai as W,Se as Wt,Si as X,In as Y,wi as Z,lr as _,Lt as _t,ks as a,Yn as at,go as b,Rt as bt,ms as c,zn as ct,fs as d,tn as dt,vi as et,yr as f,De as ft,Ga as g,Oe as gt,Jr as h,Wt as ht,Os as i,Or as it,Er as j,j as jt,X as k,k as kt,_s as l,Bn as lt,K as m,z as mt,xs as n,ea as nt,gs as o,qn as ot,hr as p,Ht as pt,Ln as q,Ts as r,ji as rt,ps as s,Fi as st,ws as t,Ei as tt,hs as u,Rn as ut,B as v,zt as vt,Na as w,Zt as wt,fo as x,qt as xt,qo as y,Kt as yt,Tn as z,v as zt};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,K as t,O as n,R as r,S as i,Vt as a,W as o,Wt as s,X as c,b as l,ct as u,j as d,k as f,m as p,x as m,y as h,yt as g}from"./B7Uzi9u5.js";import{S as _}from"./DyswZ8iG.js";import{r as v}from"./CB-NGWfo.js";import{n as y}from"#entry";import{t as b}from"./CQTlMuLw.js";import{t as x}from"./Y4YMtQtL.js";import{t as S}from"./D04G8HHr.js";var C=d({__name:`ComparisonMetric`,props:{current:{},previous:{}},setup(n){let r=n,i=h(()=>r.previous===r.current),o=h(()=>Math.abs((r.current-r.previous)/r.previous*100).toFixed(i.value?0:2)),c=h(()=>i.value?``:r.current>r.previous?`+`:`-`),l=h(()=>i.value?`text-gray-500`:r.current>r.previous?`text-green-500`:`text-red-500`);return(n,r)=>(t(),e(`span`,{"text-4":``,"mt-1":``,"font-mono":``,class:a(l.value)},s(c.value)+s(o.value)+`% `,3))}}),w=Object.assign(C,{__name:`DisplayComparisonMetric`}),T=[`title`],E={flex:`~ gap-2`,"items-center":``},D={key:0},O={"font-semibold":``,"text-5":``,"font-mono":``},k={"font-semibold":``,"text-4":``,"font-mono":``},A={key:1},j={"font-semibold":``,"text-5":``,"font-mono":``},M=d({__name:`MetricCard`,props:{name:{},description:{},icon:{},current:{},previous:{},format:{}},setup(r){let o=r,c=h(()=>o.format===`bytes`?S(o.current):o.current);return(o,u)=>{let d=w;return t(),e(p,null,[l(`div`,{"font-500":``,op50:``,"text-4":``,flex:`~ items-center gap-2`,title:r.description},[l(`div`,{class:a([r.icon,`text-xl`])},null,2),n(` `+s(r.name),1)],8,T),l(`div`,E,[r.format===`bytes`?(t(),e(`div`,D,[l(`span`,O,s(c.value[0]),1),l(`span`,k,s(c.value[1]),1)])):(t(),e(`div`,A,[l(`span`,j,s(c.value),1)])),r.previous>0&&r.current>0?(t(),m(d,{key:2,current:r.current,previous:r.previous},null,8,[`current`,`previous`])):i(``,!0)])],64)}}}),N=Object.assign(M,{__name:`CompareMetricCard`}),P={key:1,"h-screen":``,"w-screen":``,"max-w-screen":``,"max-h-screen":``,"of-hidden":``,p6:``,flex:`~ col gap-2`},F={flex:`~ gap-2`},I={flex:`~ col`,border:`~ base rounded-lg`,p3:``,mt10:``},L={grid:`~ cols-6 gap5`,"w-full":``,pt3:``},R=d({__name:`index`,setup(i){let s=g(!1),d=_().params,S=v(),C=g([]),w=g([]);async function T(e){let t=await S.value.call(`vite:rolldown:get-packages`,{session:e}),n=t.filter(e=>e.duplicated);return{total:t.length,duplicated:n.length}}o(async()=>{s.value=!0;let e=d.sessions.split(`,`),[t,...n]=await Promise.all([S.value.call(`vite:rolldown:get-session-compare-summary`,{sessions:e}),...e.map(e=>T(e))]);C.value=t,w.value=n,s.value=!1});let E=h(()=>C.value.map((e,t)=>({...e,createdAt:new Date(e.meta?.timestamp??0),title:t===0?`Session A`:`Session B`}))),D=h(()=>{let[e,t]=E.value;return[{name:`Bundle Size`,description:`Total file size of the assets`,icon:`i-ph-package-duotone`,current:t?.bundle_size??0,previous:e?.bundle_size??0,format:`bytes`},{name:`Initial JS`,description:`Total file size of the initial JS chunks`,icon:`i-ph-file-js-duotone`,current:t?.initial_js??0,previous:e?.initial_js??0,format:`bytes`},{name:`Modules`,description:`Total number of modules`,icon:`i-ph-graph-duotone`,current:t?.modules??0,previous:e?.modules??0},{name:`Packages`,description:`Total number of packages`,icon:`i-ph-package-duotone`,current:w.value?.[1]?.total??0,previous:w.value?.[0]?.total??0},{name:`Duplicated Packages`,description:`Total number of duplicated packages`,icon:`i-ph-package-duotone`,current:w.value?.[1]?.duplicated??0,previous:w.value?.[0]?.duplicated??0},{name:`Plugins`,description:`Total number of plugins`,icon:`i-ph-plugs-duotone`,current:t?.meta?.plugins.length??0,previous:e?.meta?.plugins.length??0},{name:`Chunks`,description:`Total number of chunks`,icon:`i-ph-shapes-duotone`,current:t?.chunks??0,previous:e?.chunks??0},{name:`Assets`,description:`Total number of assets`,icon:`i-ph-package-duotone`,current:t?.assets??0,previous:e?.assets??0}]});return(i,o)=>{let d=y,h=b,g=x,_=N;return s.value?(t(),m(d,{key:0})):(t(),e(`div`,P,[l(`div`,F,[f(h,{"btn-action":``,to:{path:`/`}},{default:u(()=>[...o[0]||=[l(`div`,{"i-ph-arrow-bend-up-left-duotone":``},null,-1),n(` Re-select Session `,-1)]]),_:1})]),l(`div`,I,[o[1]||=l(`div`,{py3:``,"indent-2":``},` Compare Overview `,-1),f(g,{sessions:E.value},null,8,[`sessions`]),l(`div`,L,[(t(!0),e(p,null,c(D.value,(n,i)=>(t(),e(`div`,{key:n.name,class:a(i<2?`col-span-3`:`col-span-2`),border:`~ base rounded`,p4:``,flex:`~ col`,gap2:``},[f(_,r({ref_for:!0},n),null,16)],2))),128))])])]))}}});export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,Ct as t,G as n,K as r,S as i,Tt as a,Ut as o,Wt as s,X as c,Z as l,_ as u,at as d,b as f,it as p,j as m,m as h,x as g,xt as _,y as v,yt as y,z as ee}from"./gtHejcxM.js";import{a as te,c as b,d as x,f as S,i as ne,l as C,o as re,r as ie,u as ae}from"./5tvbNeKa.js";import{t as w}from"./CbqJqu0C.js";import{t as T}from"./D04G8HHr.js";import{t as oe}from"./CPGUpoLC.js";function E(){return typeof window<`u`}function D(e){return se(e)?(e.nodeName||``).toLowerCase():`#document`}function O(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function k(e){return((se(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function se(e){return E()?e instanceof Node||e instanceof O(e).Node:!1}function A(e){return E()?e instanceof Element||e instanceof O(e).Element:!1}function j(e){return E()?e instanceof HTMLElement||e instanceof O(e).HTMLElement:!1}function ce(e){return!E()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof O(e).ShadowRoot}function M(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=I(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function le(e){return/^(table|td|th)$/.test(D(e))}function N(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ue=/transform|translate|scale|rotate|perspective|filter/,de=/paint|layout|strict|content/,P=e=>!!e&&e!==`none`,fe;function pe(e){let t=A(e)?I(e):e;return P(t.transform)||P(t.translate)||P(t.scale)||P(t.rotate)||P(t.perspective)||!he()&&(P(t.backdropFilter)||P(t.filter))||ue.test(t.willChange||``)||de.test(t.contain||``)}function me(e){let t=R(e);for(;j(t)&&!F(t);){if(pe(t))return t;if(N(t))return null;t=R(t)}return null}function he(){return fe??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),fe}function F(e){return/^(html|body|#document)$/.test(D(e))}function I(e){return O(e).getComputedStyle(e)}function L(e){return A(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function R(e){if(D(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ce(e)&&e.host||k(e);return ce(t)?t.host:t}function ge(e){let t=R(e);return F(t)?e.ownerDocument?e.ownerDocument.body:e.body:j(t)&&M(t)?t:ge(t)}function _e(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ge(e),i=r===e.ownerDocument?.body,a=O(r);if(i){let e=ve(a);return t.concat(a,a.visualViewport||[],M(r)?r:[],e&&n?_e(e):[])}else return t.concat(r,_e(r,[],n))}function ve(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ye(e){let t=I(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=j(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=S(n)!==a||S(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function be(e){return A(e)?e:e.contextElement}function z(e){let t=be(e);if(!j(t))return b(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ye(t),o=(a?S(n.width):n.width)/r,s=(a?S(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var xe=b(0);function Se(e){let t=O(e);return!he()||!t.visualViewport?xe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ce(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==O(e)?!1:t}function B(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=be(e),o=b(1);t&&(r?A(r)&&(o=z(r)):o=z(e));let s=Ce(a,n,r)?Se(a):b(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=O(a),t=r&&A(r)?O(r):r,n=e,i=ve(n);for(;i&&r&&t!==n;){let e=z(i),t=i.getBoundingClientRect(),r=I(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=O(i),i=ve(n)}}return x({width:u,height:d,x:c,y:l})}function V(e,t){let n=L(e).scrollLeft;return t?t.left+n:B(k(e)).left+n}function we(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-V(e,n),y:n.top+t.scrollTop}}function Te(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=k(r),s=t?N(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=b(1),u=b(0),d=j(r);if((d||!d&&!a)&&((D(r)!==`body`||M(o))&&(c=L(r)),d)){let e=B(r);l=z(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?we(o,c):b(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ee(e){return Array.from(e.getClientRects())}function De(e){let t=k(e),n=L(e),r=e.ownerDocument.body,i=C(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=C(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+V(e),s=-n.scrollTop;return I(r).direction===`rtl`&&(o+=C(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Oe=25;function ke(e,t){let n=O(e),r=k(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=he();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=V(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Oe&&(a-=o)}else l<=Oe&&(a+=l);return{width:a,height:o,x:s,y:c}}function Ae(e,t){let n=B(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=j(e)?z(e):b(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function je(e,t,n){let r;if(t===`viewport`)r=ke(e,n);else if(t===`document`)r=De(k(e));else if(A(t))r=Ae(t,n);else{let n=Se(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return x(r)}function Me(e,t){let n=R(e);return n===t||!A(n)||F(n)?!1:I(n).position===`fixed`||Me(n,t)}function Ne(e,t){let n=t.get(e);if(n)return n;let r=_e(e,[],!1).filter(e=>A(e)&&D(e)!==`body`),i=null,a=I(e).position===`fixed`,o=a?R(e):e;for(;A(o)&&!F(o);){let t=I(o),n=pe(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||M(o)&&!n&&Me(e,o))?r=r.filter(e=>e!==o):i=t,o=R(o)}return t.set(e,r),r}function Pe(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?N(t)?[]:Ne(t,this._c):[].concat(n),r],o=je(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=je(t,a[e],i);s=C(n.top,s),c=ae(n.right,c),l=ae(n.bottom,l),u=C(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Fe(e){let{width:t,height:n}=ye(e);return{width:t,height:n}}function Ie(e,t,n){let r=j(t),i=k(t),a=n===`fixed`,o=B(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=b(0);function l(){c.x=V(i)}if(r||!r&&!a)if((D(t)!==`body`||M(i))&&(s=L(t)),r){let e=B(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?we(i,s):b(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Le(e){return I(e).position===`static`}function Re(e,t){if(!j(e)||I(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return k(e)===n&&(n=n.ownerDocument.body),n}function ze(e,t){let n=O(e);if(N(e))return n;if(!j(e)){let t=R(e);for(;t&&!F(t);){if(A(t)&&!Le(t))return t;t=R(t)}return n}let r=Re(e,t);for(;r&&le(r)&&Le(r);)r=Re(r,t);return r&&F(r)&&Le(r)&&!pe(r)?n:r||me(e)||n}var Be=async function(e){let t=this.getOffsetParent||ze,n=this.getDimensions,r=await n(e.floating);return{reference:Ie(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ve(e){return I(e).direction===`rtl`}var He={convertOffsetParentRelativeRectToViewportRelativeRect:Te,getDocumentElement:k,getClippingRect:Pe,getOffsetParent:ze,getElementRects:Be,getClientRects:Ee,getDimensions:Fe,getScale:z,isElement:A,isRTL:Ve},Ue=te,We=re,Ge=ne,Ke=(e,t,n)=>{let r=new Map,i={platform:He,...n},a={...i.platform,_c:r};return ie(e,t,{...i,platform:a})},qe=m({__name:`GraphHoverView`,props:{hoverX:{},hoverY:{}},setup(e){let{hoverX:n,hoverY:i}=t(e),a=p(`hoverElement`),s=y(0),c=y(0);return d([n,i],([e,t])=>{Ke({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e,right:e,top:t,bottom:t}}},a.value,{placement:`right-start`,middleware:[Ge(),We(),Ue({mainAxis:8,alignmentAxis:8})]}).then(({x:e,y:t})=>{s.value=e,c.value=t})}),(e,t)=>(r(),g(u,{to:`body`},[f(`div`,{ref_key:`hoverElement`,ref:a,fixed:``,"z-panel-content":``,"pointer-events-none":``,style:o({left:`${s.value}px`,top:`${c.value}px`})},[l(e.$slots,`default`)],4)]))}}),Je=Object.assign(qe,{__name:`DisplayGraphHoverView`});function Ye(e,t=1,n=1){let r=(.6+.4*Math.max(0,Math.cos(e)))*t,i=(.5+.2*Math.max(0,Math.cos(e+Math.PI*2/3)))*n;return`hsl(${e*180/Math.PI}deg, ${Math.round(100*r)}%, ${Math.round(100*i)}%)`}var Xe,Ze,Qe,H,U,W=1,$e;function et(e,t,n,r,i){if(!Array.isArray(e))return e;let a=window.devicePixelRatio||1;if(Xe!==t||Ze!==a||Qe!==i){let n=Math.round(64*a)/64;W=i,W=Math.log2(W),W-=Math.floor(W);let r=W,o=Math.min(1,8*r);W=2**W;let s=8*Math.SQRT2/W;Xe=t,Ze=a,Qe=i,H||=document.createElement(`canvas`),U||=H.getContext(`2d`),H.width=H.height=Math.round(64*n),U.scale(n,n),U.fillStyle=e[0],U.fillRect(0,0,64,64),U.globalAlpha=.25,U.fillStyle=e[1],U.fillRect(0,0,64,64),U.globalAlpha=.67,U.strokeStyle=e[1],U.beginPath();for(let e=0;e<=64;e+=16)U.moveTo(e-32,e+32),U.lineTo(e+32,e-32);if(U.lineWidth=s*(1-(o-r)/2),U.stroke(),o+r>0){U.beginPath();for(let e=8;e<64;e+=16)U.moveTo(e-32,e+32),U.lineTo(e+32,e-32);U.lineWidth=s*(o+r)/2,U.stroke()}$e=t.createPattern(H,`repeat`),W/=n}return n/=64*W*a,n-=Math.floor(n),n*=64*W*a,$e.setTransform(new DOMMatrix([W,0,0,W,n,r])),$e}function tt(e){return Array.isArray(e)?`url('data:image/svg+xml,<svg width="26" height="26" xmlns="http://www.w3.org/2000/svg"><rect width="26" height="26" fill="${e[0]}"/><rect width="26" height="26" fill="${e[1]}" fill-opacity="25%"/><path d="M22.5 -3.5L-3.5 22.5M35.5 9.5L9.5 35.5" stroke="${e[1]}" stroke-opacity="67%" stroke-width="9.19239"/></svg>')`:e}function nt(e){return t=>t.id&&e[t.id]||t.color}function rt(e,t=1,n=1){let r={};return it(r,e,0,Math.PI*2,t,n),nt(r)}function it(e,t,n,r,i=1,a=1){let o=t.size;e[t.id]=Ye(n+r/2,i,a);for(let s of t.children){let t=s.size/o*r;it(e,s,n,t,i,a),n+=t}}var at=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function ot(e=16,t=at){let n=``,r=e,i=t.length;for(;r--;)n+=t[Math.random()*i|0];return n}function st(e,t,n=(e,t)=>t.size-e.size){if(e.__nanovis)return e;let r={...e};return r.id||=ot(),r.parent||=t,r.children||=[],r.sizeSelf==null&&r.size!=null&&r.children.length===0?r.sizeSelf=r.size:r.sizeSelf||=0,r.children=(r.children||[]).map(e=>st(e,r,n)),r.size||=r.children.reduce((e,t)=>e+t.size,0)+r.sizeSelf,n&&r.children.sort(n),Object.defineProperty(r,`__nanovis`,{enumerable:!1,value:!0}),r}function ct(e){return e.children.length===0?1:Math.max(...e.children.map(e=>ct(e)))+1}var lt=/\bFirefox\//.test(navigator.userAgent),G;function ut(e){return G?G.format(e):`${e}`}function K(){return(window.performance||Date).now()}function q(e){let t=e.toFixed(1).split(`.`,2);return`${ut(+t[0])}.${t[1]}`}function dt(e){return e===1?`1 byte`:e<1024?`${ut(e)} bytes`:e<1024*1024?`${q(e/1024)} kb`:e<1024*1024*1024?`${q(e/(1024*1024))} mb`:`${q(e/(1024*1024*1024))} gb`}function ft(e,t,n,r,i,a){if(lt){let o=e.lineWidth,s=o/2;e.fillStyle=t,e.fillRect(n-s,r-s,i+o,o),e.fillRect(n-s,r+s,o,a-o),e.fillRect(n-s,r+a-s,i+o,o),e.fillRect(n+i-s,r+s,o,a-o);return}e.strokeStyle=t,e.strokeRect(n,r,i,a)}function pt(e){return window.addEventListener(`wheel`,e,{passive:!1}),()=>window.removeEventListener(`wheel`,e)}function mt(e){return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)}try{G=new Intl.NumberFormat}catch{}var ht=()=>({emit(e,...t){for(let n=this.events[e]||[],r=0,i=n.length;r<i;r++)n[r](...t)},events:{},on(e,t){return(this.events[e]||=[]).push(t),()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}}),J={getText:e=>e.text,getSubtext:e=>e.subtext,animate:!0,animateDuration:350},gt={fallback:`#CCC`,stroke:`#0008`,text:`#222`,hover:`#fff5`,shadow:`#0008`,fg:`#fff`,bg:`#222`},_t=46,vt=`14px sans-serif`,yt=`bold ${vt}`,bt=class{el;canvas;c;width=0;height=0;ratio=1;root;maxDepth;events;options;palette;disposables;getColor;getText;getSubtext;_animationFrame=null;constructor(e,t){this.options={...J,...t};let{getColor:n=rt(e),getText:r=()=>void 0,getSubtext:i=()=>void 0}=this.options;this.palette={...gt,...t.palette},this.el=document.createElement(`div`),this.canvas=document.createElement(`canvas`),this.c=this.canvas.getContext(`2d`),this.root=e,this.maxDepth=ct(e),this.disposables=[],this.events=ht(),this.getColor=n,this.getText=r,this.getSubtext=i,this.setFont(vt),t.onClick&&this.events.on(`click`,t.onClick),t.onHover&&this.events.on(`hover`,t.onHover),t.onLeave&&this.events.on(`leave`,t.onLeave),t.onSelect&&this.events.on(`select`,t.onSelect),this.el.addEventListener(`mouseleave`,()=>{this.events.emit(`leave`)})}invalidate(){this._animationFrame===null&&(this._animationFrame=requestAnimationFrame(()=>{this._animationFrame=null,this.tick()}))}tick(){this.draw()}draw(){}resize(){this.ratio=window.devicePixelRatio||1,this.canvas.style.width=`${this.width}px`,this.canvas.style.height=`${this.height}px`,this.canvas.width=Math.round(this.width*this.ratio),this.canvas.height=Math.round(this.height*this.ratio),this.c.scale(this.ratio,this.ratio),this.draw()}select(e,t){this.events.emit(`select`,e)}dispose(){this.disposables.forEach(e=>e()),this.disposables.length=0,this.el.remove()}[Symbol.dispose](){this.dispose()}_font=`14px sans-serif`;_fontWidthCache=new Map;ellipsisWidth=0;getFontCache(){return this._fontWidthCache.has(this._font)||this._fontWidthCache.set(this._font,{}),this._fontWidthCache.get(this._font)}setFont(e){this._font=e,this.c.font=e,this.c.textBaseline=`middle`,this.ellipsisWidth=3*this.charCodeWidth(_t)}charCodeWidth(e){let t=this.getFontCache(),n=t[e];return n===void 0&&(n=this.c.measureText(String.fromCharCode(e)).width,t[e]=n),n}textOverflowEllipsis(e,t){if(t<this.ellipsisWidth)return[``,0];let n=0,r=e.length,i=0;for(;i<r;){let r=this.charCodeWidth(e.charCodeAt(i));if(t<n+this.ellipsisWidth+r)return[`${e.slice(0,i)}...`,n+this.ellipsisWidth];n+=r,i++}return[e,n]}},Y=24,xt=5,St=.01,Ct=1e3,wt=class extends bt{mainEl=document.createElement(`div`);totalBytes;viewportMin;viewportMax;zoomedOutMin=0;zoomedOutWidth=0;prevWheelTime=0;prevWheelWasZoom=!1;stripeScaleAdjust=1;hoveredNode=null;selectedNode=null;nodeStartBytes=new Map;animationFromMin=0;animationFromMax=0;animationToMin=0;animationToMax=0;animationStart=0;constructor(e,t={}){super(e,t),this.totalBytes=e.size,this.viewportMin=this.animationFromMin=this.animationToMin=0,this.viewportMax=this.animationFromMax=this.animationToMax=this.totalBytes,Object.assign(this.mainEl.style,{position:`relative`}),Object.assign(this.canvas.style,{position:`absolute`,left:`0`,top:`0`});let n=!1;this.canvas.onmousedown=e=>{if(n=!1,e.button!==2){let t=e.pageX,r=e=>{let r=e.pageX-t;!n&&Math.abs(r)<3||(n=!0,this.modifyViewport(-r,0,null),t=e.pageX)},i=()=>{document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseup`,i)};e.preventDefault(),document.addEventListener(`mousemove`,r),document.addEventListener(`mouseup`,i)}},this.canvas.onmousemove=e=>{this.updateHover(e)},this.canvas.onmouseout=()=>{this.changeHoveredNode(null)},this.canvas.onclick=e=>{if(n)return;let t=this.hitTestNode(e);this.changeHoveredNode(t),this.changeSelectedNode(t),t&&this.events.emit(`click`,t,e)},this.disposables.push(pt(e=>{let t=e.deltaX,n=e.deltaY,r=K(),i=r-this.prevWheelTime<50?this.prevWheelWasZoom:e.ctrlKey||e.metaKey;this.prevWheelTime=r,this.prevWheelWasZoom=i,(i||Math.abs(t)>=Math.abs(n))&&e.preventDefault(),this.modifyViewport(t,n,i?e.pageX:null),this.updateHover(e)})),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(mt(()=>this.resize())),this.mainEl.append(this.canvas),this.el.append(this.mainEl)}tick(){let e=(K()-this.animationStart)/(this.options.animateDuration??J.animateDuration);e<0||e>1?(e=1,this.viewportMin=this.animationToMin,this.viewportMax=this.animationToMax):(e<.5?e*=4*e*e:(e=1-e,e*=4*e*e,e=1-e),this.viewportMin=this.animationFromMin+(this.animationToMin-this.animationFromMin)*e,this.viewportMax=this.animationFromMax+(this.animationToMax-this.animationFromMax)*e,this.invalidate()),this.draw()}draw(){this.c.clearRect(0,0,this.width,this.height),this.drawNode(this.root,0,0,-1/0,1)}changeSelectedNode(e,t=this.options.animate??J.animate){if(this.selectedNode!==e&&(this.selectedNode=e,this.events.emit(`select`,e),e&&this.nodeStartBytes.has(e.id))){let n=this.nodeStartBytes.get(e.id),r=n+e.size;n=Math.max(0,n-e.size*St),r=Math.min(this.totalBytes,r+e.size*St),this.setViewport(n,r,t)}}select(e,t=this.options.animate??J.animate){this.changeSelectedNode(e,t)}resize(){this.width=this.el.clientWidth,this.height=this.maxDepth*Y+1,this.zoomedOutMin=this.width-Ct>>1,this.zoomedOutWidth=this.zoomedOutMin+Ct,this.zoomedOutMin<0&&(this.zoomedOutMin=0),this.zoomedOutWidth>this.width&&(this.zoomedOutWidth=this.width),this.zoomedOutWidth-=this.zoomedOutMin,this.stripeScaleAdjust=this.totalBytes/this.zoomedOutWidth,this.mainEl.style.height=`${this.height}px`,super.resize()}drawNode(e,t,n,r,i){this.nodeStartBytes.set(e.id,n);let a=this.zoomedOutWidth/(this.viewportMax-this.viewportMin),o=this.zoomedOutMin+(n-this.viewportMin)*a,s=e.size*a,c=o+s;if(c<r+1.5)return r;if(o+s<0||o>this.width)return c;let l=s<2?2:s,u=(o>0?o:0)+xt,d=t+Y/2,f=this.getText(e)||``,p=this.getSubtext(e)||``,m,h=0,g=s+o-u,_=et(this.getColor(e)||this.palette.fallback,this.c,this.zoomedOutMin-this.viewportMin*a,Y,a*this.stripeScaleAdjust),v=this.palette.text,y=-1/0;i&1?(v=this.palette.fg,this.setFont(yt)):(this.c.fillStyle=_,this.c.fillRect(o,t,l,Y),(i&2||this.hoveredNode&&e.id===this.hoveredNode.id)&&(this.c.fillStyle=this.palette.hover,this.c.fillRect(o,t,l,Y),i|=2)),this.ellipsisWidth<g&&(m=this.c.measureText(f).width,m<=g?h+=m:(f=this.textOverflowEllipsis(f,g)[0],h=g),this.c.fillStyle=v,this.c.fillText(f,u,d)),i&1&&this.setFont(vt),h+this.ellipsisWidth<g&&(p&&f&&(p=` - ${p}`),m=this.c.measureText(p).width,h+m>g&&(p=this.textOverflowEllipsis(p,g-h)[0]),this.c.globalAlpha=.5,this.c.fillText(p,u+h,d),this.c.globalAlpha=1);for(let r of e.children)y=this.drawNode(r,t+Y,n,y,i&-2),n+=r.size;return i&1||ft(this.c,this.palette.stroke,o+.5,t+.5,l,Y),c}changeHoveredNode(e){this.hoveredNode!==e&&(this.hoveredNode=e,this.canvas.style.cursor=e&&!e.children.length?`pointer`:`auto`,this.invalidate())}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,i=this.viewportMin+(this.viewportMax-this.viewportMin)/this.zoomedOutWidth*(n-this.zoomedOutMin),a=(e,t,n)=>{if(i>=n&&i<n+e.size){if(r>=t&&r<t+Y&&e.id)return e;if(r>=t+Y)for(let r of e.children){let e=a(r,t+Y,n);if(e)return e;n+=r.size}}return null};return a(this.root,0,0)}modifyViewport(e,t,n){let r=this.viewportMin,i=this.viewportMax,a=0;if(n!==null){let e=r+(i-r)/this.zoomedOutWidth*(n-this.zoomedOutMin),a=1.01**t;r=e+(r-e)*a,i=e+(i-e)*a}else a=e*(i-r)/this.zoomedOutWidth;r+a<0?a=-r:i+a>this.totalBytes&&(a=this.totalBytes-i),r+=a,i+=a,r<0&&(r=0),i>this.totalBytes&&(i=this.totalBytes),this.setViewport(r,i,!1)}setViewport(e,t,n){this.animationFromMin=this.viewportMin,this.animationFromMax=this.viewportMax,this.animationToMin=e,this.animationToMax=t,n?this.animationStart=K():this.animationStart=0,this.invalidate()}updateHover(e){let t=this.hitTestNode(e);this.changeHoveredNode(t),this.events.emit(`hover`,t,e)}};function Tt(e,t){for(;t;){if(t===e)return!0;t=t.parent}return!1}function Et(e,t,n){if(e===t)return;let r=t.parent,i=r.size||1,a=0;Et(e,r,n);for(let e of r.children){if(e===t){n.startAngle_+=n.sweepAngle_*a/i,n.sweepAngle_=e.size/i*n.sweepAngle_;break}a+=e.size}n.depth_+=1}var Dt={};function Ot(e){return Dt[e]||(Dt[e]=400*Math.log(1+Math.log(1+e/8))),Dt[e]}var X=-Math.PI/2,kt=class extends bt{currentNode;hoveredNode;centerX=0;centerY=0;animationStart=0;radiusScale=1;sourceDepth=0;sourceStartAngle=X;sourceSweepAngle=Math.PI*2;targetNode;targetDepth=this.sourceDepth;targetStartAngle=this.sourceStartAngle;targetSweepAngle=this.sourceSweepAngle;animatedNode;animatedDepth=this.sourceDepth;animatedStartAngle=this.sourceStartAngle;animatedSweepAngle=this.sourceSweepAngle;previousHoveredNode;historyStack=[];constructor(e,t={}){for(;e.children.length===1;)e=e.children[0];super(e,t),this.currentNode=e,this.targetNode=this.currentNode,this.animatedNode=this.currentNode,this.canvas.onmousemove=e=>{this.handleMouseMove(e)},this.canvas.onmouseout=e=>{this.changeHoveredNode(void 0),this.events.emit(`hover`,null,e)},this.canvas.onclick=e=>{let t=this.hitTestNode(e);if(!t)return;this.events.emit(`click`,t,e);let n=[];t===this.animatedNode.parent?this.historyStack.length>0&&(t=this.historyStack.pop(),n=this.historyStack.slice()):n=this.historyStack.concat(this.currentNode),this.events.emit(`click`,t,e),t.children.length>0?(this.select(t),this.historyStack=n):e.preventDefault()},this.el.append(this.canvas),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(mt(()=>this.resize())),this.disposables.push(pt(e=>this.handleMouseMove(e)))}select(e,t){(this.currentNode!==e||this.root)&&(this.currentNode=e||this.root,this.updateSunburst(t),this.events.emit(`select`,e))}resize(){this.width=this.el.clientWidth,this.height=this.width,this.centerX=this.width>>1,this.centerY=this.height>>1;let e=2*Math.ceil(Ot(this.maxDepth));this.radiusScale=this.width/e,super.resize()}draw(){this.c.clearRect(0,0,this.width,this.height),this.drawNode(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle,3,-1/0),this.c.strokeStyle=this.palette.stroke,this.c.beginPath(),this.drawNode(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle,1,-1/0),this.c.stroke(),this.animatedDepth===0&&(this.c.fillStyle=this.palette.stroke,this.setFont(yt),this.c.textAlign=`center`,this.c.fillText(this.getSubtext(this.targetNode)??dt(this.targetNode.size),this.centerX,this.centerY))}drawNode(e,t,n,r,i,a,o){let s=this.computeRadius(t+1);if(s>this.centerY)return o;e===this.hoveredNode&&(a|=8);let c=(n+s)/2,l=r+i;if(l-o<1.5/c)return o;let u=2/c;if(i>u&&(u=i),a&2)this.c.fillStyle=et(this.getColor(e)||this.palette.fallback,this.c,this.centerX,this.centerY,1),this.c.beginPath(),this.c.arc(this.centerX,this.centerY,n,r,r+u,!1),this.c.arc(this.centerX,this.centerY,s,r+u,r,!0),this.c.fill(),this.hoveredNode&&(a&8||e.parent===this.hoveredNode)&&(this.c.fillStyle=this.palette.hover,this.c.fill());else{let e=u===Math.PI*2,t=a&4||e?s:n;a&1&&n>0&&this.c.arc(this.centerX,this.centerY,n,r+u,r,!0),this.c.moveTo(this.centerX+t*Math.cos(r),this.centerY+t*Math.sin(r)),this.c.arc(this.centerX,this.centerY,s,r,r+u,!1),e||this.c.lineTo(this.centerX+n*Math.cos(r+u),this.centerY+n*Math.sin(r+u))}let d=e.size,f=a&10,p=0,m=-1/0;for(let n of e.children)m=this.drawNode(n,t+1,s,r+i*p/d,n.size/d*i,f,m),p+=n.size,f|=4;return l}changeHoveredNode(e,t){this.hoveredNode!==e&&(this.hoveredNode=e,this.updateSunburst(t))}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left-this.centerX,r=e.clientY-t.top-this.centerY,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n),o=(e,t,n,r,s)=>{let c=this.computeRadius(t+1);if(c>this.centerY)return;if(i>=n&&i<c){let t=a-r;if(t/=Math.PI*2,t-=Math.floor(t),t*=Math.PI*2,t<s)return e===this.animatedNode?e.parent:e}let l=e.size,u=0;for(let n of e.children){let e=o(n,t+1,c,r+s*u/l,n.size/l*s);if(e)return e;u+=n.size}};return o(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle)}tick(){let e=(K()-this.animationStart)/(this.options.animateDuration??J.animateDuration);e<0||e>1?(e=1,this.animatedNode=this.targetNode,this.targetDepth=0,this.targetStartAngle=X,this.targetSweepAngle=Math.PI*2):(e<.5?e*=4*e*e:(e=1-e,e*=4*e*e,e=1-e),this.invalidate()),this.animatedDepth=this.sourceDepth+(this.targetDepth-this.sourceDepth)*e,this.animatedStartAngle=this.sourceStartAngle+(this.targetStartAngle-this.sourceStartAngle)*e,this.animatedSweepAngle=this.sourceSweepAngle+(this.targetSweepAngle-this.sourceSweepAngle)*e,this.draw()}handleMouseMove(e){let t=this.hitTestNode(e);this.changeHoveredNode(t),t&&t!==this.animatedNode.parent?(this.events.emit(`hover`,t,e),this.canvas.style.cursor=`pointer`):this.events.emit(`hover`,null,e)}computeRadius(e){return Ot(e)*this.radiusScale}updateSunburst(e=this.options.animate??!0){if(this.previousHoveredNode!==this.hoveredNode&&(this.previousHoveredNode=this.hoveredNode,this.hoveredNode||(this.canvas.style.cursor=`auto`,this.events.emit(`hover`,null)),this.invalidate()),this.targetNode!==this.currentNode){if(this.historyStack.length=0,this.invalidate(),e&&(this.animationStart=K()),Tt(this.animatedNode,this.currentNode)){let e={depth_:this.animatedDepth,startAngle_:this.animatedStartAngle,sweepAngle_:this.animatedSweepAngle};Et(this.animatedNode,this.currentNode,e),this.animatedDepth=e.depth_,this.animatedStartAngle=e.startAngle_,this.animatedSweepAngle=e.sweepAngle_,this.targetDepth=0,this.targetStartAngle=X,this.targetSweepAngle=Math.PI*2,this.animatedNode=this.currentNode}else if(Tt(this.currentNode,this.animatedNode)){let e={depth_:0,startAngle_:X,sweepAngle_:Math.PI*2};Et(this.currentNode,this.animatedNode,e),this.targetDepth=e.depth_,this.targetStartAngle=e.startAngle_,this.targetSweepAngle=e.sweepAngle_}else this.animationStart=-1/0,this.animatedNode=this.currentNode;this.sourceDepth=this.animatedDepth,this.sourceStartAngle=this.animatedStartAngle,this.sourceSweepAngle=this.animatedSweepAngle,this.targetNode=this.currentNode,this.events.emit(`select`,this.currentNode)}}},Z=4,Q=20,At=2*Z,$=Q+Z;function jt(e,t,n,r,i){let a=[],o=(t,n,r,i,a)=>{let o=e[t].size*a,s=e[n].size*a;return Math.max(r*r*o/(i*i),i*i/(r*r*s))};return((t,n,r,i,s)=>{for(;t<e.length;){let c=0;for(let n=t;n<e.length;n++)c+=e[n].size;let l=Math.min(i,s),u=i*s/c,d=t,f=0,p=0;for(;d<e.length;){let n=e[d].size*u,r=o(t,d,l,f+n,u);if(d>t&&p<r)break;f+=n,p=r,d++}let m=Math.round(f/l),h=0;for(let o=t;o<d;o++){let t=e[o],c=t.size*u,d=Math.round(l*h/f),p=Math.round(l*(h+c)/f),[g,_,v,y]=i>=s?[n,r+d,m,p-d]:[n+d,r,p-d,m];a.push({node:t,box:[g,_,v,y],children:v>At&&y>$?jt(t.children,g+Z,_+Q,v-At,y-$):[]}),h+=c}t=d,i>=s?(n+=m,i-=m):(r+=m,s-=m)}})(0,t,n,r,i),a}var Mt=class extends bt{hoveredNode=null;currentNode=null;bgOriginX=0;bgOriginY=0;layers={base:null};baseLayoutCache;currentOriginX=0;currentOriginY=0;animationStart=0;animationBlend=1;animationSource=null;animationTarget=null;constructor(e,t={}){super(e,t),this.canvas.addEventListener(`mousemove`,e=>{this.updateHover(e)}),this.canvas.addEventListener(`mouseout`,e=>{this.changeHoveredNode(null),this.events.emit(`hover`,null,e)}),this.el.addEventListener(`click`,e=>{let t=this.hitTestNode(e);if(t){let n=t.node;this.events.emit(`click`,n,e),n.children.length?t===this.layers.current?this.updateHover(e):(this.changeCurrentLayout(t),this.changeHoveredNode(null)):this.updateHover(e)}else this.currentNode&&(this.changeCurrentLayout(null),this.updateHover(e))}),this.el.append(this.canvas),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(pt(e=>this.updateHover(e))),this.disposables.push(mt(()=>this.resize()))}select(e,t){let n=null;e===this.root&&(e=null),n=e?this.searchFor([this.layers.current,this.layers.base],e):null,this.changeCurrentLayout(n,t)}drawBaseLayout(){!this.width||!this.height||(this.c.clearRect(0,0,this.width,this.height),this.bgOriginX=this.bgOriginY=0,this.baseLayoutCache?this.c.putImageData(this.baseLayoutCache,0,0):(this.drawLayout(this.layers.base,0,[]),this.baseLayoutCache=this.c.getImageData(0,0,this.width*this.ratio,this.height*this.ratio)))}draw(){this.drawBaseLayout(),this.layers.current||this.drawHoverHighlight(this.layers.base);let e=this.layers.current?this.animationSource?this.animationTarget?1:1-this.animationBlend:this.animationBlend:0;if(this.layers.current){let[t,n,r,i]=this.layers.base.box;this.c.globalAlpha=.6*(!this.layers.current||!this.animationSource?1:e),this.c.fillStyle=this.palette.bg,this.c.fillRect(t,n,r,i),this.c.globalAlpha=1}if(this.layers.previous&&this.drawLayout(this.layers.previous,1,[this.layers.current]),this.layers.current){let[t,n,r,i]=this.layers.current.box,a=this.c.getTransform(),o=Math.sqrt(a.a*a.d);this.c.save(),this.c.shadowColor=this.palette.shadow,this.c.shadowBlur=30*e*o,this.c.shadowOffsetX=o*(2*this.width),this.c.shadowOffsetY=o*(2*this.height+15*e),this.c.fillRect(t-2*this.width,n-2*this.height,r,i),this.c.restore(),this.bgOriginX=this.currentOriginX,this.bgOriginY=this.currentOriginY,this.drawLayout(this.layers.current,0,[]),this.drawHoverHighlight(this.layers.current)}}tick(){let e=this.animationBlend,t=this.currentNode;this.animationBlend=(K()-this.animationStart)/(this.options.animateDuration??J.animateDuration),this.animationBlend<0||this.animationBlend>1?(this.currentNode=this.animationTarget,this.layers.previous=void 0,this.animationBlend=1):(this.animationBlend=1-this.animationBlend,this.animationBlend*=this.animationBlend*this.animationBlend,this.animationBlend=1-this.animationBlend,this.invalidate()),(this.animationBlend!==e||this.currentNode!==t)&&this.updateCurrentLayout(),this.draw()}resize(){this.baseLayoutCache=void 0;let e=this.width,t=this.height;this.width=Math.min(this.el.clientWidth,1600),this.height=Math.max(Math.round(this.width/2),innerHeight-200),(this.width!==e||this.height!==t||!this.layers.base)&&(this.layers.base=jt([this.root],0,0,this.width-1,this.height-1)[0],this.updateCurrentLayout()),super.resize()}*iterateNodeToDraw(e,t,n){let r=e.node,[i,a,o,s]=e.box,c=(r===this.hoveredNode?1:0)|(e===this.animationTarget?2:0);if(t===1)for(let e of n){if(!e)continue;let[n,r,c,l]=e.box;if(i>=n&&a>=r&&i+o<=n+c&&a+s<=r+l){t=2;break}}for(let r of e.children)c|=yield*this.iterateNodeToDraw(r,t,n);return t!==2&&(yield e),c}drawHoverHighlight(e){let t=this.iterateNodeToDraw(e,0,[]),n=this.c.globalCompositeOperation;for(;;){let e=t.next();if(e.done){this.c.globalCompositeOperation=n;return}let r=e.value.node;if(this.hoveredNode===r){this.c.globalCompositeOperation=`overlay`;let[t,n,r,i]=e.value.box;this.c.fillStyle=this.palette.hover,this.c.fillRect(t,n,r,i)}}}drawNodeBackground(e,t,n){let r=this.iterateNodeToDraw(e,t,n);for(;;){let e=r.next();if(e.done)return e.value;let[t,n,i,a]=e.value.box;this.c.fillStyle=et(this.getColor(e.value.node)||this.palette.fallback,this.c,this.bgOriginX,this.bgOriginY,1),e.value.children.length?(this.c.fillRect(t,n,i,Q),this.c.fillRect(t,n+a-Z,i,Z),this.c.fillRect(t,n+Q,Z,a-$),this.c.fillRect(t+i-Z,n+Q,Z,a-$)):this.c.fillRect(t,n,i,a)}}drawLayout(e,t,n){this.drawNodeBackground(e,t,n),this.drawNodeForeground(e,t,n)}drawNodeForeground(e,t,n){let r=this.iterateNodeToDraw(e,t,n);for(;;){let e=r.next();if(e.done)return;let t=e.value.node,[n,i,a,o]=e.value.box;if(ft(this.c,this.palette.stroke,n+.5,i+.5,a,o),o>=Q){this.c.fillStyle=this.palette.text;let e=a-At,r=i+Math.round($/2),[s,c]=this.textOverflowEllipsis(this.getText(t)||``,e),l=n+Math.round((a-c)/2),u=this.getText(t),d=this.getSubtext(t);if(s===u&&t.children.length){let t=d||``;t&&u&&(t=` - ${t}`);let[i,o]=this.textOverflowEllipsis(t,e-c);l=n+Math.round((a-c-o)/2),this.c.globalAlpha=.5,this.c.fillText(i,l+c,r),this.c.globalAlpha=1}if(this.c.fillText(s,l,r),o>$+16&&!t.children.length){let[t,r]=this.textOverflowEllipsis(d||``,e);this.c.globalAlpha=.5;let s=u?Q:Q/2+Z;this.c.fillText(t,n+Math.round((a-r)/2),i+s+Math.round(o-$)/2),this.c.globalAlpha=1}}}}updateCurrentLayout(){let e=this.options.selectedPaddingRatio??.2;if(this.currentNode){let[t,n,r,i]=this.currentNode.box,a=t+r,o=n+i,s=Math.round(this.width*e/2),c=Math.round(this.height*e/2),l=this.width-s-1,u=this.height-c-1,d=this.animationTarget?this.animationBlend:1-this.animationBlend,f=Math.round(t+(s-t)*d),p=Math.round(n+(c-n)*d),m=Math.round(a+(l-a)*d),h=Math.round(o+(u-o)*d),g=e=>e-Math.floor(e/64-.5)*64;this.layers.current=jt([this.currentNode.node],f,p,m-f,h-p)[0],this.currentOriginX=g(-(t+a)/2)*(1-d)+(f+m)/2,this.currentOriginY=g(-(n+o)/2)*(1-d)+(p+h)/2}else this.layers.current=void 0,this.currentOriginX=0,this.currentOriginY=0}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,i=(e,t)=>{for(let a of e){let[e,o,s,c]=a.box;if(n>=e&&r>=o&&n<e+s&&r<o+c)return i(a.children,!1)||(t?null:a)}return null};return this.layers.current?i([this.layers.current],!1):i([this.layers.base],!0)}updateHover(e){let t=this.hitTestNode(e);this.changeHoveredNode(t&&t.node),this.events.emit(`hover`,t?.node||null,e)}changeHoveredNode(e){this.hoveredNode!==e&&(this.hoveredNode=e,this.canvas.style.cursor=e&&!e.children.length?`pointer`:`auto`,this.invalidate())}searchFor(e,t){for(let n of e){if(!n)continue;let e=n.node===t?n:this.searchFor(n.children,t);if(e)return e}return null}changeCurrentLayout(e,t=this.options.animate){this.animationTarget!==e&&(this.events.emit(`select`,e?.node||null),this.layers.previous=e?this.layers.current:void 0,t&&(this.animationBlend=0,this.animationStart=K(),this.animationSource=this.currentNode),this.animationTarget=e,this.currentNode=e||this.searchFor([this.layers.base],this.currentNode.node),this.updateCurrentLayout(),this.invalidate())}},Nt={flex:`~ gap-1 items-center wrap`},Pt={key:0,"i-ph-arrow-right-bold":``,"text-sm":``,"op-fade":``},Ft=[`onClick`],It=m({__name:`NavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(t,{emit:n}){let a=t,o=n,l=v(()=>{let e=[],t=a.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(t,n)=>(r(),e(`div`,Nt,[(r(!0),e(h,null,c(l.value,(t,n)=>(r(),e(h,{key:t.id},[n>0?(r(),e(`div`,Pt)):i(``,!0),f(`button`,{hover:`bg-active`,rounded:``,px1:``,onClick:e=>o(`select`,t)},[f(`span`,null,s(t.text||t.id),1)],8,Ft)],64))),128))]))}}),Lt=Object.assign(It,{__name:`ChartNavBreadcrumb`});function Rt(e){let{data:t,nameKey:r,sizeKey:i,rootText:o,nodeType:s,graphOptions:c,onUpdate:l}=e,u=_(void 0),f=_(void 0),p=y(void 0),m=_(void 0),h,g=v(()=>{if(e.tree)return e.tree.value;let n=a(t),c=new Map,l=0,u={id:`~root`,text:o,size:0,sizeSelf:0,children:[]};if(!n?.length)return{map:c,root:u,maxDepth:l};let d=[];d.unshift(()=>{u.size+=u.children.reduce((e,t)=>e+t.size,0),u.subtext=T(u.size).join(` `),u.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function f(e,t,n,r,i){if(c.has(t))return c.get(t);i>l&&(l=i);let a={id:t,text:n,size:0,sizeSelf:0,children:[],meta:{...e,path:n,type:`folder`},parent:r};return c.set(t,a),r.children.push(a),d.unshift(()=>{let t=a.sizeSelf;a.size+=a.children.reduce((e,t)=>e+t.size,0),a.subtext=T(a.size).join(` `),a.children.length&&t/a.size>.1&&a.children.push({id:`${a.id}-self`,text:``,size:t,sizeSelf:t,subtext:T(t).join(` `),children:[],meta:{...e,path:``,type:s},parent:a}),a.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),a}function p(e){let t=e[r].split(`/`).filter(Boolean),n=u,a=``,o=0;t.forEach((l,u)=>{if(a+=(a?`/`:``)+l,o++,u===t.length-1){let t={id:e[r],text:l,size:e[i],sizeSelf:e[i],subtext:T(e[i]).join(` `),children:[],meta:{...e,path:l,type:s}};n.children.push(t),c.set(e[r],t)}else n=f(e,a,l,n,o)})}return n.forEach(p),d.forEach(e=>e()),{map:c,root:u,maxDepth:l}}),te=v(()=>({animate:oe.value.chartAnimation,palette:{stroke:w.value?`#222`:`#555`,fg:w.value?`#fff`:`#000`,bg:w.value?`#111`:`#fff`},getColor:rt(g.value.root,w.value?.8:.9,w.value?1:1.1),getSubtext:e=>e.subtext,...c}));function b(e,t){p.value=e?.meta,e?.children.length||(e=e?.parent),m.value?.select(e,t)}function x(){h?.(),f.value=g.value.root,l?.(),ee(()=>{let e=p.value&&g.value.map.get(p.value[r])||null;e&&b(e,!1)}),h=()=>{m.value?.dispose(),m.value=void 0,p.value=void 0}}return ee(()=>{d(()=>[g.value,te.value],()=>{x()},{deep:!0,immediate:!1}),x()}),n(()=>{h?.()}),{tree:g,graph:m,chartOptions:te,nodeHover:u,nodeSelected:f,selectedNode:p,selectNode:b,buildGraph:x}}export{Mt as a,Je as c,kt as i,Lt as n,tt as o,wt as r,st as s,Rt as t};
|
|
1
|
+
import{C as e,Ct as t,G as n,K as r,S as i,Tt as a,Ut as o,Wt as s,X as c,Z as l,_ as u,at as d,b as f,it as p,j as m,m as h,x as g,xt as _,y as v,yt as y,z as ee}from"./B7Uzi9u5.js";import{a as te,c as b,d as x,f as S,i as ne,l as C,o as re,r as ie,u as ae}from"./BrE3R8vW.js";import{t as w}from"./CvoV-A9Y.js";import{t as T}from"./D04G8HHr.js";import{t as oe}from"./D7AbeHTq.js";function E(){return typeof window<`u`}function D(e){return se(e)?(e.nodeName||``).toLowerCase():`#document`}function O(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function k(e){return((se(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function se(e){return E()?e instanceof Node||e instanceof O(e).Node:!1}function A(e){return E()?e instanceof Element||e instanceof O(e).Element:!1}function j(e){return E()?e instanceof HTMLElement||e instanceof O(e).HTMLElement:!1}function ce(e){return!E()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof O(e).ShadowRoot}function M(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=I(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function le(e){return/^(table|td|th)$/.test(D(e))}function N(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ue=/transform|translate|scale|rotate|perspective|filter/,de=/paint|layout|strict|content/,P=e=>!!e&&e!==`none`,fe;function pe(e){let t=A(e)?I(e):e;return P(t.transform)||P(t.translate)||P(t.scale)||P(t.rotate)||P(t.perspective)||!he()&&(P(t.backdropFilter)||P(t.filter))||ue.test(t.willChange||``)||de.test(t.contain||``)}function me(e){let t=R(e);for(;j(t)&&!F(t);){if(pe(t))return t;if(N(t))return null;t=R(t)}return null}function he(){return fe??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),fe}function F(e){return/^(html|body|#document)$/.test(D(e))}function I(e){return O(e).getComputedStyle(e)}function L(e){return A(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function R(e){if(D(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ce(e)&&e.host||k(e);return ce(t)?t.host:t}function ge(e){let t=R(e);return F(t)?e.ownerDocument?e.ownerDocument.body:e.body:j(t)&&M(t)?t:ge(t)}function _e(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ge(e),i=r===e.ownerDocument?.body,a=O(r);if(i){let e=ve(a);return t.concat(a,a.visualViewport||[],M(r)?r:[],e&&n?_e(e):[])}else return t.concat(r,_e(r,[],n))}function ve(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ye(e){let t=I(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=j(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=S(n)!==a||S(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function be(e){return A(e)?e:e.contextElement}function z(e){let t=be(e);if(!j(t))return b(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ye(t),o=(a?S(n.width):n.width)/r,s=(a?S(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var xe=b(0);function Se(e){let t=O(e);return!he()||!t.visualViewport?xe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ce(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==O(e)?!1:t}function B(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=be(e),o=b(1);t&&(r?A(r)&&(o=z(r)):o=z(e));let s=Ce(a,n,r)?Se(a):b(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=O(a),t=r&&A(r)?O(r):r,n=e,i=ve(n);for(;i&&r&&t!==n;){let e=z(i),t=i.getBoundingClientRect(),r=I(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=O(i),i=ve(n)}}return x({width:u,height:d,x:c,y:l})}function V(e,t){let n=L(e).scrollLeft;return t?t.left+n:B(k(e)).left+n}function we(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-V(e,n),y:n.top+t.scrollTop}}function Te(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=k(r),s=t?N(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=b(1),u=b(0),d=j(r);if((d||!d&&!a)&&((D(r)!==`body`||M(o))&&(c=L(r)),d)){let e=B(r);l=z(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?we(o,c):b(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ee(e){return Array.from(e.getClientRects())}function De(e){let t=k(e),n=L(e),r=e.ownerDocument.body,i=C(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=C(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+V(e),s=-n.scrollTop;return I(r).direction===`rtl`&&(o+=C(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Oe=25;function ke(e,t){let n=O(e),r=k(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=he();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=V(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Oe&&(a-=o)}else l<=Oe&&(a+=l);return{width:a,height:o,x:s,y:c}}function Ae(e,t){let n=B(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=j(e)?z(e):b(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function je(e,t,n){let r;if(t===`viewport`)r=ke(e,n);else if(t===`document`)r=De(k(e));else if(A(t))r=Ae(t,n);else{let n=Se(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return x(r)}function Me(e,t){let n=R(e);return n===t||!A(n)||F(n)?!1:I(n).position===`fixed`||Me(n,t)}function Ne(e,t){let n=t.get(e);if(n)return n;let r=_e(e,[],!1).filter(e=>A(e)&&D(e)!==`body`),i=null,a=I(e).position===`fixed`,o=a?R(e):e;for(;A(o)&&!F(o);){let t=I(o),n=pe(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||M(o)&&!n&&Me(e,o))?r=r.filter(e=>e!==o):i=t,o=R(o)}return t.set(e,r),r}function Pe(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?N(t)?[]:Ne(t,this._c):[].concat(n),r],o=je(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=je(t,a[e],i);s=C(n.top,s),c=ae(n.right,c),l=ae(n.bottom,l),u=C(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Fe(e){let{width:t,height:n}=ye(e);return{width:t,height:n}}function Ie(e,t,n){let r=j(t),i=k(t),a=n===`fixed`,o=B(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=b(0);function l(){c.x=V(i)}if(r||!r&&!a)if((D(t)!==`body`||M(i))&&(s=L(t)),r){let e=B(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?we(i,s):b(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Le(e){return I(e).position===`static`}function Re(e,t){if(!j(e)||I(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return k(e)===n&&(n=n.ownerDocument.body),n}function ze(e,t){let n=O(e);if(N(e))return n;if(!j(e)){let t=R(e);for(;t&&!F(t);){if(A(t)&&!Le(t))return t;t=R(t)}return n}let r=Re(e,t);for(;r&&le(r)&&Le(r);)r=Re(r,t);return r&&F(r)&&Le(r)&&!pe(r)?n:r||me(e)||n}var Be=async function(e){let t=this.getOffsetParent||ze,n=this.getDimensions,r=await n(e.floating);return{reference:Ie(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ve(e){return I(e).direction===`rtl`}var He={convertOffsetParentRelativeRectToViewportRelativeRect:Te,getDocumentElement:k,getClippingRect:Pe,getOffsetParent:ze,getElementRects:Be,getClientRects:Ee,getDimensions:Fe,getScale:z,isElement:A,isRTL:Ve},Ue=te,We=re,Ge=ne,Ke=(e,t,n)=>{let r=new Map,i={platform:He,...n},a={...i.platform,_c:r};return ie(e,t,{...i,platform:a})},qe=m({__name:`GraphHoverView`,props:{hoverX:{},hoverY:{}},setup(e){let{hoverX:n,hoverY:i}=t(e),a=p(`hoverElement`),s=y(0),c=y(0);return d([n,i],([e,t])=>{Ke({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e,right:e,top:t,bottom:t}}},a.value,{placement:`right-start`,middleware:[Ge(),We(),Ue({mainAxis:8,alignmentAxis:8})]}).then(({x:e,y:t})=>{s.value=e,c.value=t})}),(e,t)=>(r(),g(u,{to:`body`},[f(`div`,{ref_key:`hoverElement`,ref:a,fixed:``,"z-panel-content":``,"pointer-events-none":``,style:o({left:`${s.value}px`,top:`${c.value}px`})},[l(e.$slots,`default`)],4)]))}}),Je=Object.assign(qe,{__name:`DisplayGraphHoverView`});function Ye(e,t=1,n=1){let r=(.6+.4*Math.max(0,Math.cos(e)))*t,i=(.5+.2*Math.max(0,Math.cos(e+Math.PI*2/3)))*n;return`hsl(${e*180/Math.PI}deg, ${Math.round(100*r)}%, ${Math.round(100*i)}%)`}var Xe,Ze,Qe,H,U,W=1,$e;function et(e,t,n,r,i){if(!Array.isArray(e))return e;let a=window.devicePixelRatio||1;if(Xe!==t||Ze!==a||Qe!==i){let n=Math.round(64*a)/64;W=i,W=Math.log2(W),W-=Math.floor(W);let r=W,o=Math.min(1,8*r);W=2**W;let s=8*Math.SQRT2/W;Xe=t,Ze=a,Qe=i,H||=document.createElement(`canvas`),U||=H.getContext(`2d`),H.width=H.height=Math.round(64*n),U.scale(n,n),U.fillStyle=e[0],U.fillRect(0,0,64,64),U.globalAlpha=.25,U.fillStyle=e[1],U.fillRect(0,0,64,64),U.globalAlpha=.67,U.strokeStyle=e[1],U.beginPath();for(let e=0;e<=64;e+=16)U.moveTo(e-32,e+32),U.lineTo(e+32,e-32);if(U.lineWidth=s*(1-(o-r)/2),U.stroke(),o+r>0){U.beginPath();for(let e=8;e<64;e+=16)U.moveTo(e-32,e+32),U.lineTo(e+32,e-32);U.lineWidth=s*(o+r)/2,U.stroke()}$e=t.createPattern(H,`repeat`),W/=n}return n/=64*W*a,n-=Math.floor(n),n*=64*W*a,$e.setTransform(new DOMMatrix([W,0,0,W,n,r])),$e}function tt(e){return Array.isArray(e)?`url('data:image/svg+xml,<svg width="26" height="26" xmlns="http://www.w3.org/2000/svg"><rect width="26" height="26" fill="${e[0]}"/><rect width="26" height="26" fill="${e[1]}" fill-opacity="25%"/><path d="M22.5 -3.5L-3.5 22.5M35.5 9.5L9.5 35.5" stroke="${e[1]}" stroke-opacity="67%" stroke-width="9.19239"/></svg>')`:e}function nt(e){return t=>t.id&&e[t.id]||t.color}function rt(e,t=1,n=1){let r={};return it(r,e,0,Math.PI*2,t,n),nt(r)}function it(e,t,n,r,i=1,a=1){let o=t.size;e[t.id]=Ye(n+r/2,i,a);for(let s of t.children){let t=s.size/o*r;it(e,s,n,t,i,a),n+=t}}var at=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function ot(e=16,t=at){let n=``,r=e,i=t.length;for(;r--;)n+=t[Math.random()*i|0];return n}function st(e,t,n=(e,t)=>t.size-e.size){if(e.__nanovis)return e;let r={...e};return r.id||=ot(),r.parent||=t,r.children||=[],r.sizeSelf==null&&r.size!=null&&r.children.length===0?r.sizeSelf=r.size:r.sizeSelf||=0,r.children=(r.children||[]).map(e=>st(e,r,n)),r.size||=r.children.reduce((e,t)=>e+t.size,0)+r.sizeSelf,n&&r.children.sort(n),Object.defineProperty(r,`__nanovis`,{enumerable:!1,value:!0}),r}function ct(e){return e.children.length===0?1:Math.max(...e.children.map(e=>ct(e)))+1}var lt=/\bFirefox\//.test(navigator.userAgent),G;function ut(e){return G?G.format(e):`${e}`}function K(){return(window.performance||Date).now()}function q(e){let t=e.toFixed(1).split(`.`,2);return`${ut(+t[0])}.${t[1]}`}function dt(e){return e===1?`1 byte`:e<1024?`${ut(e)} bytes`:e<1024*1024?`${q(e/1024)} kb`:e<1024*1024*1024?`${q(e/(1024*1024))} mb`:`${q(e/(1024*1024*1024))} gb`}function ft(e,t,n,r,i,a){if(lt){let o=e.lineWidth,s=o/2;e.fillStyle=t,e.fillRect(n-s,r-s,i+o,o),e.fillRect(n-s,r+s,o,a-o),e.fillRect(n-s,r+a-s,i+o,o),e.fillRect(n+i-s,r+s,o,a-o);return}e.strokeStyle=t,e.strokeRect(n,r,i,a)}function pt(e){return window.addEventListener(`wheel`,e,{passive:!1}),()=>window.removeEventListener(`wheel`,e)}function mt(e){return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)}try{G=new Intl.NumberFormat}catch{}var ht=()=>({emit(e,...t){for(let n=this.events[e]||[],r=0,i=n.length;r<i;r++)n[r](...t)},events:{},on(e,t){return(this.events[e]||=[]).push(t),()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}}),J={getText:e=>e.text,getSubtext:e=>e.subtext,animate:!0,animateDuration:350},gt={fallback:`#CCC`,stroke:`#0008`,text:`#222`,hover:`#fff5`,shadow:`#0008`,fg:`#fff`,bg:`#222`},_t=46,vt=`14px sans-serif`,yt=`bold ${vt}`,bt=class{el;canvas;c;width=0;height=0;ratio=1;root;maxDepth;events;options;palette;disposables;getColor;getText;getSubtext;_animationFrame=null;constructor(e,t){this.options={...J,...t};let{getColor:n=rt(e),getText:r=()=>void 0,getSubtext:i=()=>void 0}=this.options;this.palette={...gt,...t.palette},this.el=document.createElement(`div`),this.canvas=document.createElement(`canvas`),this.c=this.canvas.getContext(`2d`),this.root=e,this.maxDepth=ct(e),this.disposables=[],this.events=ht(),this.getColor=n,this.getText=r,this.getSubtext=i,this.setFont(vt),t.onClick&&this.events.on(`click`,t.onClick),t.onHover&&this.events.on(`hover`,t.onHover),t.onLeave&&this.events.on(`leave`,t.onLeave),t.onSelect&&this.events.on(`select`,t.onSelect),this.el.addEventListener(`mouseleave`,()=>{this.events.emit(`leave`)})}invalidate(){this._animationFrame===null&&(this._animationFrame=requestAnimationFrame(()=>{this._animationFrame=null,this.tick()}))}tick(){this.draw()}draw(){}resize(){this.ratio=window.devicePixelRatio||1,this.canvas.style.width=`${this.width}px`,this.canvas.style.height=`${this.height}px`,this.canvas.width=Math.round(this.width*this.ratio),this.canvas.height=Math.round(this.height*this.ratio),this.c.scale(this.ratio,this.ratio),this.draw()}select(e,t){this.events.emit(`select`,e)}dispose(){this.disposables.forEach(e=>e()),this.disposables.length=0,this.el.remove()}[Symbol.dispose](){this.dispose()}_font=`14px sans-serif`;_fontWidthCache=new Map;ellipsisWidth=0;getFontCache(){return this._fontWidthCache.has(this._font)||this._fontWidthCache.set(this._font,{}),this._fontWidthCache.get(this._font)}setFont(e){this._font=e,this.c.font=e,this.c.textBaseline=`middle`,this.ellipsisWidth=3*this.charCodeWidth(_t)}charCodeWidth(e){let t=this.getFontCache(),n=t[e];return n===void 0&&(n=this.c.measureText(String.fromCharCode(e)).width,t[e]=n),n}textOverflowEllipsis(e,t){if(t<this.ellipsisWidth)return[``,0];let n=0,r=e.length,i=0;for(;i<r;){let r=this.charCodeWidth(e.charCodeAt(i));if(t<n+this.ellipsisWidth+r)return[`${e.slice(0,i)}...`,n+this.ellipsisWidth];n+=r,i++}return[e,n]}},Y=24,xt=5,St=.01,Ct=1e3,wt=class extends bt{mainEl=document.createElement(`div`);totalBytes;viewportMin;viewportMax;zoomedOutMin=0;zoomedOutWidth=0;prevWheelTime=0;prevWheelWasZoom=!1;stripeScaleAdjust=1;hoveredNode=null;selectedNode=null;nodeStartBytes=new Map;animationFromMin=0;animationFromMax=0;animationToMin=0;animationToMax=0;animationStart=0;constructor(e,t={}){super(e,t),this.totalBytes=e.size,this.viewportMin=this.animationFromMin=this.animationToMin=0,this.viewportMax=this.animationFromMax=this.animationToMax=this.totalBytes,Object.assign(this.mainEl.style,{position:`relative`}),Object.assign(this.canvas.style,{position:`absolute`,left:`0`,top:`0`});let n=!1;this.canvas.onmousedown=e=>{if(n=!1,e.button!==2){let t=e.pageX,r=e=>{let r=e.pageX-t;!n&&Math.abs(r)<3||(n=!0,this.modifyViewport(-r,0,null),t=e.pageX)},i=()=>{document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseup`,i)};e.preventDefault(),document.addEventListener(`mousemove`,r),document.addEventListener(`mouseup`,i)}},this.canvas.onmousemove=e=>{this.updateHover(e)},this.canvas.onmouseout=()=>{this.changeHoveredNode(null)},this.canvas.onclick=e=>{if(n)return;let t=this.hitTestNode(e);this.changeHoveredNode(t),this.changeSelectedNode(t),t&&this.events.emit(`click`,t,e)},this.disposables.push(pt(e=>{let t=e.deltaX,n=e.deltaY,r=K(),i=r-this.prevWheelTime<50?this.prevWheelWasZoom:e.ctrlKey||e.metaKey;this.prevWheelTime=r,this.prevWheelWasZoom=i,(i||Math.abs(t)>=Math.abs(n))&&e.preventDefault(),this.modifyViewport(t,n,i?e.pageX:null),this.updateHover(e)})),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(mt(()=>this.resize())),this.mainEl.append(this.canvas),this.el.append(this.mainEl)}tick(){let e=(K()-this.animationStart)/(this.options.animateDuration??J.animateDuration);e<0||e>1?(e=1,this.viewportMin=this.animationToMin,this.viewportMax=this.animationToMax):(e<.5?e*=4*e*e:(e=1-e,e*=4*e*e,e=1-e),this.viewportMin=this.animationFromMin+(this.animationToMin-this.animationFromMin)*e,this.viewportMax=this.animationFromMax+(this.animationToMax-this.animationFromMax)*e,this.invalidate()),this.draw()}draw(){this.c.clearRect(0,0,this.width,this.height),this.drawNode(this.root,0,0,-1/0,1)}changeSelectedNode(e,t=this.options.animate??J.animate){if(this.selectedNode!==e&&(this.selectedNode=e,this.events.emit(`select`,e),e&&this.nodeStartBytes.has(e.id))){let n=this.nodeStartBytes.get(e.id),r=n+e.size;n=Math.max(0,n-e.size*St),r=Math.min(this.totalBytes,r+e.size*St),this.setViewport(n,r,t)}}select(e,t=this.options.animate??J.animate){this.changeSelectedNode(e,t)}resize(){this.width=this.el.clientWidth,this.height=this.maxDepth*Y+1,this.zoomedOutMin=this.width-Ct>>1,this.zoomedOutWidth=this.zoomedOutMin+Ct,this.zoomedOutMin<0&&(this.zoomedOutMin=0),this.zoomedOutWidth>this.width&&(this.zoomedOutWidth=this.width),this.zoomedOutWidth-=this.zoomedOutMin,this.stripeScaleAdjust=this.totalBytes/this.zoomedOutWidth,this.mainEl.style.height=`${this.height}px`,super.resize()}drawNode(e,t,n,r,i){this.nodeStartBytes.set(e.id,n);let a=this.zoomedOutWidth/(this.viewportMax-this.viewportMin),o=this.zoomedOutMin+(n-this.viewportMin)*a,s=e.size*a,c=o+s;if(c<r+1.5)return r;if(o+s<0||o>this.width)return c;let l=s<2?2:s,u=(o>0?o:0)+xt,d=t+Y/2,f=this.getText(e)||``,p=this.getSubtext(e)||``,m,h=0,g=s+o-u,_=et(this.getColor(e)||this.palette.fallback,this.c,this.zoomedOutMin-this.viewportMin*a,Y,a*this.stripeScaleAdjust),v=this.palette.text,y=-1/0;i&1?(v=this.palette.fg,this.setFont(yt)):(this.c.fillStyle=_,this.c.fillRect(o,t,l,Y),(i&2||this.hoveredNode&&e.id===this.hoveredNode.id)&&(this.c.fillStyle=this.palette.hover,this.c.fillRect(o,t,l,Y),i|=2)),this.ellipsisWidth<g&&(m=this.c.measureText(f).width,m<=g?h+=m:(f=this.textOverflowEllipsis(f,g)[0],h=g),this.c.fillStyle=v,this.c.fillText(f,u,d)),i&1&&this.setFont(vt),h+this.ellipsisWidth<g&&(p&&f&&(p=` - ${p}`),m=this.c.measureText(p).width,h+m>g&&(p=this.textOverflowEllipsis(p,g-h)[0]),this.c.globalAlpha=.5,this.c.fillText(p,u+h,d),this.c.globalAlpha=1);for(let r of e.children)y=this.drawNode(r,t+Y,n,y,i&-2),n+=r.size;return i&1||ft(this.c,this.palette.stroke,o+.5,t+.5,l,Y),c}changeHoveredNode(e){this.hoveredNode!==e&&(this.hoveredNode=e,this.canvas.style.cursor=e&&!e.children.length?`pointer`:`auto`,this.invalidate())}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,i=this.viewportMin+(this.viewportMax-this.viewportMin)/this.zoomedOutWidth*(n-this.zoomedOutMin),a=(e,t,n)=>{if(i>=n&&i<n+e.size){if(r>=t&&r<t+Y&&e.id)return e;if(r>=t+Y)for(let r of e.children){let e=a(r,t+Y,n);if(e)return e;n+=r.size}}return null};return a(this.root,0,0)}modifyViewport(e,t,n){let r=this.viewportMin,i=this.viewportMax,a=0;if(n!==null){let e=r+(i-r)/this.zoomedOutWidth*(n-this.zoomedOutMin),a=1.01**t;r=e+(r-e)*a,i=e+(i-e)*a}else a=e*(i-r)/this.zoomedOutWidth;r+a<0?a=-r:i+a>this.totalBytes&&(a=this.totalBytes-i),r+=a,i+=a,r<0&&(r=0),i>this.totalBytes&&(i=this.totalBytes),this.setViewport(r,i,!1)}setViewport(e,t,n){this.animationFromMin=this.viewportMin,this.animationFromMax=this.viewportMax,this.animationToMin=e,this.animationToMax=t,n?this.animationStart=K():this.animationStart=0,this.invalidate()}updateHover(e){let t=this.hitTestNode(e);this.changeHoveredNode(t),this.events.emit(`hover`,t,e)}};function Tt(e,t){for(;t;){if(t===e)return!0;t=t.parent}return!1}function Et(e,t,n){if(e===t)return;let r=t.parent,i=r.size||1,a=0;Et(e,r,n);for(let e of r.children){if(e===t){n.startAngle_+=n.sweepAngle_*a/i,n.sweepAngle_=e.size/i*n.sweepAngle_;break}a+=e.size}n.depth_+=1}var Dt={};function Ot(e){return Dt[e]||(Dt[e]=400*Math.log(1+Math.log(1+e/8))),Dt[e]}var X=-Math.PI/2,kt=class extends bt{currentNode;hoveredNode;centerX=0;centerY=0;animationStart=0;radiusScale=1;sourceDepth=0;sourceStartAngle=X;sourceSweepAngle=Math.PI*2;targetNode;targetDepth=this.sourceDepth;targetStartAngle=this.sourceStartAngle;targetSweepAngle=this.sourceSweepAngle;animatedNode;animatedDepth=this.sourceDepth;animatedStartAngle=this.sourceStartAngle;animatedSweepAngle=this.sourceSweepAngle;previousHoveredNode;historyStack=[];constructor(e,t={}){for(;e.children.length===1;)e=e.children[0];super(e,t),this.currentNode=e,this.targetNode=this.currentNode,this.animatedNode=this.currentNode,this.canvas.onmousemove=e=>{this.handleMouseMove(e)},this.canvas.onmouseout=e=>{this.changeHoveredNode(void 0),this.events.emit(`hover`,null,e)},this.canvas.onclick=e=>{let t=this.hitTestNode(e);if(!t)return;this.events.emit(`click`,t,e);let n=[];t===this.animatedNode.parent?this.historyStack.length>0&&(t=this.historyStack.pop(),n=this.historyStack.slice()):n=this.historyStack.concat(this.currentNode),this.events.emit(`click`,t,e),t.children.length>0?(this.select(t),this.historyStack=n):e.preventDefault()},this.el.append(this.canvas),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(mt(()=>this.resize())),this.disposables.push(pt(e=>this.handleMouseMove(e)))}select(e,t){(this.currentNode!==e||this.root)&&(this.currentNode=e||this.root,this.updateSunburst(t),this.events.emit(`select`,e))}resize(){this.width=this.el.clientWidth,this.height=this.width,this.centerX=this.width>>1,this.centerY=this.height>>1;let e=2*Math.ceil(Ot(this.maxDepth));this.radiusScale=this.width/e,super.resize()}draw(){this.c.clearRect(0,0,this.width,this.height),this.drawNode(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle,3,-1/0),this.c.strokeStyle=this.palette.stroke,this.c.beginPath(),this.drawNode(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle,1,-1/0),this.c.stroke(),this.animatedDepth===0&&(this.c.fillStyle=this.palette.stroke,this.setFont(yt),this.c.textAlign=`center`,this.c.fillText(this.getSubtext(this.targetNode)??dt(this.targetNode.size),this.centerX,this.centerY))}drawNode(e,t,n,r,i,a,o){let s=this.computeRadius(t+1);if(s>this.centerY)return o;e===this.hoveredNode&&(a|=8);let c=(n+s)/2,l=r+i;if(l-o<1.5/c)return o;let u=2/c;if(i>u&&(u=i),a&2)this.c.fillStyle=et(this.getColor(e)||this.palette.fallback,this.c,this.centerX,this.centerY,1),this.c.beginPath(),this.c.arc(this.centerX,this.centerY,n,r,r+u,!1),this.c.arc(this.centerX,this.centerY,s,r+u,r,!0),this.c.fill(),this.hoveredNode&&(a&8||e.parent===this.hoveredNode)&&(this.c.fillStyle=this.palette.hover,this.c.fill());else{let e=u===Math.PI*2,t=a&4||e?s:n;a&1&&n>0&&this.c.arc(this.centerX,this.centerY,n,r+u,r,!0),this.c.moveTo(this.centerX+t*Math.cos(r),this.centerY+t*Math.sin(r)),this.c.arc(this.centerX,this.centerY,s,r,r+u,!1),e||this.c.lineTo(this.centerX+n*Math.cos(r+u),this.centerY+n*Math.sin(r+u))}let d=e.size,f=a&10,p=0,m=-1/0;for(let n of e.children)m=this.drawNode(n,t+1,s,r+i*p/d,n.size/d*i,f,m),p+=n.size,f|=4;return l}changeHoveredNode(e,t){this.hoveredNode!==e&&(this.hoveredNode=e,this.updateSunburst(t))}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left-this.centerX,r=e.clientY-t.top-this.centerY,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n),o=(e,t,n,r,s)=>{let c=this.computeRadius(t+1);if(c>this.centerY)return;if(i>=n&&i<c){let t=a-r;if(t/=Math.PI*2,t-=Math.floor(t),t*=Math.PI*2,t<s)return e===this.animatedNode?e.parent:e}let l=e.size,u=0;for(let n of e.children){let e=o(n,t+1,c,r+s*u/l,n.size/l*s);if(e)return e;u+=n.size}};return o(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle)}tick(){let e=(K()-this.animationStart)/(this.options.animateDuration??J.animateDuration);e<0||e>1?(e=1,this.animatedNode=this.targetNode,this.targetDepth=0,this.targetStartAngle=X,this.targetSweepAngle=Math.PI*2):(e<.5?e*=4*e*e:(e=1-e,e*=4*e*e,e=1-e),this.invalidate()),this.animatedDepth=this.sourceDepth+(this.targetDepth-this.sourceDepth)*e,this.animatedStartAngle=this.sourceStartAngle+(this.targetStartAngle-this.sourceStartAngle)*e,this.animatedSweepAngle=this.sourceSweepAngle+(this.targetSweepAngle-this.sourceSweepAngle)*e,this.draw()}handleMouseMove(e){let t=this.hitTestNode(e);this.changeHoveredNode(t),t&&t!==this.animatedNode.parent?(this.events.emit(`hover`,t,e),this.canvas.style.cursor=`pointer`):this.events.emit(`hover`,null,e)}computeRadius(e){return Ot(e)*this.radiusScale}updateSunburst(e=this.options.animate??!0){if(this.previousHoveredNode!==this.hoveredNode&&(this.previousHoveredNode=this.hoveredNode,this.hoveredNode||(this.canvas.style.cursor=`auto`,this.events.emit(`hover`,null)),this.invalidate()),this.targetNode!==this.currentNode){if(this.historyStack.length=0,this.invalidate(),e&&(this.animationStart=K()),Tt(this.animatedNode,this.currentNode)){let e={depth_:this.animatedDepth,startAngle_:this.animatedStartAngle,sweepAngle_:this.animatedSweepAngle};Et(this.animatedNode,this.currentNode,e),this.animatedDepth=e.depth_,this.animatedStartAngle=e.startAngle_,this.animatedSweepAngle=e.sweepAngle_,this.targetDepth=0,this.targetStartAngle=X,this.targetSweepAngle=Math.PI*2,this.animatedNode=this.currentNode}else if(Tt(this.currentNode,this.animatedNode)){let e={depth_:0,startAngle_:X,sweepAngle_:Math.PI*2};Et(this.currentNode,this.animatedNode,e),this.targetDepth=e.depth_,this.targetStartAngle=e.startAngle_,this.targetSweepAngle=e.sweepAngle_}else this.animationStart=-1/0,this.animatedNode=this.currentNode;this.sourceDepth=this.animatedDepth,this.sourceStartAngle=this.animatedStartAngle,this.sourceSweepAngle=this.animatedSweepAngle,this.targetNode=this.currentNode,this.events.emit(`select`,this.currentNode)}}},Z=4,Q=20,At=2*Z,$=Q+Z;function jt(e,t,n,r,i){let a=[],o=(t,n,r,i,a)=>{let o=e[t].size*a,s=e[n].size*a;return Math.max(r*r*o/(i*i),i*i/(r*r*s))};return((t,n,r,i,s)=>{for(;t<e.length;){let c=0;for(let n=t;n<e.length;n++)c+=e[n].size;let l=Math.min(i,s),u=i*s/c,d=t,f=0,p=0;for(;d<e.length;){let n=e[d].size*u,r=o(t,d,l,f+n,u);if(d>t&&p<r)break;f+=n,p=r,d++}let m=Math.round(f/l),h=0;for(let o=t;o<d;o++){let t=e[o],c=t.size*u,d=Math.round(l*h/f),p=Math.round(l*(h+c)/f),[g,_,v,y]=i>=s?[n,r+d,m,p-d]:[n+d,r,p-d,m];a.push({node:t,box:[g,_,v,y],children:v>At&&y>$?jt(t.children,g+Z,_+Q,v-At,y-$):[]}),h+=c}t=d,i>=s?(n+=m,i-=m):(r+=m,s-=m)}})(0,t,n,r,i),a}var Mt=class extends bt{hoveredNode=null;currentNode=null;bgOriginX=0;bgOriginY=0;layers={base:null};baseLayoutCache;currentOriginX=0;currentOriginY=0;animationStart=0;animationBlend=1;animationSource=null;animationTarget=null;constructor(e,t={}){super(e,t),this.canvas.addEventListener(`mousemove`,e=>{this.updateHover(e)}),this.canvas.addEventListener(`mouseout`,e=>{this.changeHoveredNode(null),this.events.emit(`hover`,null,e)}),this.el.addEventListener(`click`,e=>{let t=this.hitTestNode(e);if(t){let n=t.node;this.events.emit(`click`,n,e),n.children.length?t===this.layers.current?this.updateHover(e):(this.changeCurrentLayout(t),this.changeHoveredNode(null)):this.updateHover(e)}else this.currentNode&&(this.changeCurrentLayout(null),this.updateHover(e))}),this.el.append(this.canvas),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(pt(e=>this.updateHover(e))),this.disposables.push(mt(()=>this.resize()))}select(e,t){let n=null;e===this.root&&(e=null),n=e?this.searchFor([this.layers.current,this.layers.base],e):null,this.changeCurrentLayout(n,t)}drawBaseLayout(){!this.width||!this.height||(this.c.clearRect(0,0,this.width,this.height),this.bgOriginX=this.bgOriginY=0,this.baseLayoutCache?this.c.putImageData(this.baseLayoutCache,0,0):(this.drawLayout(this.layers.base,0,[]),this.baseLayoutCache=this.c.getImageData(0,0,this.width*this.ratio,this.height*this.ratio)))}draw(){this.drawBaseLayout(),this.layers.current||this.drawHoverHighlight(this.layers.base);let e=this.layers.current?this.animationSource?this.animationTarget?1:1-this.animationBlend:this.animationBlend:0;if(this.layers.current){let[t,n,r,i]=this.layers.base.box;this.c.globalAlpha=.6*(!this.layers.current||!this.animationSource?1:e),this.c.fillStyle=this.palette.bg,this.c.fillRect(t,n,r,i),this.c.globalAlpha=1}if(this.layers.previous&&this.drawLayout(this.layers.previous,1,[this.layers.current]),this.layers.current){let[t,n,r,i]=this.layers.current.box,a=this.c.getTransform(),o=Math.sqrt(a.a*a.d);this.c.save(),this.c.shadowColor=this.palette.shadow,this.c.shadowBlur=30*e*o,this.c.shadowOffsetX=o*(2*this.width),this.c.shadowOffsetY=o*(2*this.height+15*e),this.c.fillRect(t-2*this.width,n-2*this.height,r,i),this.c.restore(),this.bgOriginX=this.currentOriginX,this.bgOriginY=this.currentOriginY,this.drawLayout(this.layers.current,0,[]),this.drawHoverHighlight(this.layers.current)}}tick(){let e=this.animationBlend,t=this.currentNode;this.animationBlend=(K()-this.animationStart)/(this.options.animateDuration??J.animateDuration),this.animationBlend<0||this.animationBlend>1?(this.currentNode=this.animationTarget,this.layers.previous=void 0,this.animationBlend=1):(this.animationBlend=1-this.animationBlend,this.animationBlend*=this.animationBlend*this.animationBlend,this.animationBlend=1-this.animationBlend,this.invalidate()),(this.animationBlend!==e||this.currentNode!==t)&&this.updateCurrentLayout(),this.draw()}resize(){this.baseLayoutCache=void 0;let e=this.width,t=this.height;this.width=Math.min(this.el.clientWidth,1600),this.height=Math.max(Math.round(this.width/2),innerHeight-200),(this.width!==e||this.height!==t||!this.layers.base)&&(this.layers.base=jt([this.root],0,0,this.width-1,this.height-1)[0],this.updateCurrentLayout()),super.resize()}*iterateNodeToDraw(e,t,n){let r=e.node,[i,a,o,s]=e.box,c=(r===this.hoveredNode?1:0)|(e===this.animationTarget?2:0);if(t===1)for(let e of n){if(!e)continue;let[n,r,c,l]=e.box;if(i>=n&&a>=r&&i+o<=n+c&&a+s<=r+l){t=2;break}}for(let r of e.children)c|=yield*this.iterateNodeToDraw(r,t,n);return t!==2&&(yield e),c}drawHoverHighlight(e){let t=this.iterateNodeToDraw(e,0,[]),n=this.c.globalCompositeOperation;for(;;){let e=t.next();if(e.done){this.c.globalCompositeOperation=n;return}let r=e.value.node;if(this.hoveredNode===r){this.c.globalCompositeOperation=`overlay`;let[t,n,r,i]=e.value.box;this.c.fillStyle=this.palette.hover,this.c.fillRect(t,n,r,i)}}}drawNodeBackground(e,t,n){let r=this.iterateNodeToDraw(e,t,n);for(;;){let e=r.next();if(e.done)return e.value;let[t,n,i,a]=e.value.box;this.c.fillStyle=et(this.getColor(e.value.node)||this.palette.fallback,this.c,this.bgOriginX,this.bgOriginY,1),e.value.children.length?(this.c.fillRect(t,n,i,Q),this.c.fillRect(t,n+a-Z,i,Z),this.c.fillRect(t,n+Q,Z,a-$),this.c.fillRect(t+i-Z,n+Q,Z,a-$)):this.c.fillRect(t,n,i,a)}}drawLayout(e,t,n){this.drawNodeBackground(e,t,n),this.drawNodeForeground(e,t,n)}drawNodeForeground(e,t,n){let r=this.iterateNodeToDraw(e,t,n);for(;;){let e=r.next();if(e.done)return;let t=e.value.node,[n,i,a,o]=e.value.box;if(ft(this.c,this.palette.stroke,n+.5,i+.5,a,o),o>=Q){this.c.fillStyle=this.palette.text;let e=a-At,r=i+Math.round($/2),[s,c]=this.textOverflowEllipsis(this.getText(t)||``,e),l=n+Math.round((a-c)/2),u=this.getText(t),d=this.getSubtext(t);if(s===u&&t.children.length){let t=d||``;t&&u&&(t=` - ${t}`);let[i,o]=this.textOverflowEllipsis(t,e-c);l=n+Math.round((a-c-o)/2),this.c.globalAlpha=.5,this.c.fillText(i,l+c,r),this.c.globalAlpha=1}if(this.c.fillText(s,l,r),o>$+16&&!t.children.length){let[t,r]=this.textOverflowEllipsis(d||``,e);this.c.globalAlpha=.5;let s=u?Q:Q/2+Z;this.c.fillText(t,n+Math.round((a-r)/2),i+s+Math.round(o-$)/2),this.c.globalAlpha=1}}}}updateCurrentLayout(){let e=this.options.selectedPaddingRatio??.2;if(this.currentNode){let[t,n,r,i]=this.currentNode.box,a=t+r,o=n+i,s=Math.round(this.width*e/2),c=Math.round(this.height*e/2),l=this.width-s-1,u=this.height-c-1,d=this.animationTarget?this.animationBlend:1-this.animationBlend,f=Math.round(t+(s-t)*d),p=Math.round(n+(c-n)*d),m=Math.round(a+(l-a)*d),h=Math.round(o+(u-o)*d),g=e=>e-Math.floor(e/64-.5)*64;this.layers.current=jt([this.currentNode.node],f,p,m-f,h-p)[0],this.currentOriginX=g(-(t+a)/2)*(1-d)+(f+m)/2,this.currentOriginY=g(-(n+o)/2)*(1-d)+(p+h)/2}else this.layers.current=void 0,this.currentOriginX=0,this.currentOriginY=0}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,i=(e,t)=>{for(let a of e){let[e,o,s,c]=a.box;if(n>=e&&r>=o&&n<e+s&&r<o+c)return i(a.children,!1)||(t?null:a)}return null};return this.layers.current?i([this.layers.current],!1):i([this.layers.base],!0)}updateHover(e){let t=this.hitTestNode(e);this.changeHoveredNode(t&&t.node),this.events.emit(`hover`,t?.node||null,e)}changeHoveredNode(e){this.hoveredNode!==e&&(this.hoveredNode=e,this.canvas.style.cursor=e&&!e.children.length?`pointer`:`auto`,this.invalidate())}searchFor(e,t){for(let n of e){if(!n)continue;let e=n.node===t?n:this.searchFor(n.children,t);if(e)return e}return null}changeCurrentLayout(e,t=this.options.animate){this.animationTarget!==e&&(this.events.emit(`select`,e?.node||null),this.layers.previous=e?this.layers.current:void 0,t&&(this.animationBlend=0,this.animationStart=K(),this.animationSource=this.currentNode),this.animationTarget=e,this.currentNode=e||this.searchFor([this.layers.base],this.currentNode.node),this.updateCurrentLayout(),this.invalidate())}},Nt={flex:`~ gap-1 items-center wrap`},Pt={key:0,"i-ph-arrow-right-bold":``,"text-sm":``,"op-fade":``},Ft=[`onClick`],It=m({__name:`NavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(t,{emit:n}){let a=t,o=n,l=v(()=>{let e=[],t=a.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(t,n)=>(r(),e(`div`,Nt,[(r(!0),e(h,null,c(l.value,(t,n)=>(r(),e(h,{key:t.id},[n>0?(r(),e(`div`,Pt)):i(``,!0),f(`button`,{hover:`bg-active`,rounded:``,px1:``,onClick:e=>o(`select`,t)},[f(`span`,null,s(t.text||t.id),1)],8,Ft)],64))),128))]))}}),Lt=Object.assign(It,{__name:`ChartNavBreadcrumb`});function Rt(e){let{data:t,nameKey:r,sizeKey:i,rootText:o,nodeType:s,graphOptions:c,onUpdate:l}=e,u=_(void 0),f=_(void 0),p=y(void 0),m=_(void 0),h,g=v(()=>{if(e.tree)return e.tree.value;let n=a(t),c=new Map,l=0,u={id:`~root`,text:o,size:0,sizeSelf:0,children:[]};if(!n?.length)return{map:c,root:u,maxDepth:l};let d=[];d.unshift(()=>{u.size+=u.children.reduce((e,t)=>e+t.size,0),u.subtext=T(u.size).join(` `),u.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function f(e,t,n,r,i){if(c.has(t))return c.get(t);i>l&&(l=i);let a={id:t,text:n,size:0,sizeSelf:0,children:[],meta:{...e,path:n,type:`folder`},parent:r};return c.set(t,a),r.children.push(a),d.unshift(()=>{let t=a.sizeSelf;a.size+=a.children.reduce((e,t)=>e+t.size,0),a.subtext=T(a.size).join(` `),a.children.length&&t/a.size>.1&&a.children.push({id:`${a.id}-self`,text:``,size:t,sizeSelf:t,subtext:T(t).join(` `),children:[],meta:{...e,path:``,type:s},parent:a}),a.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),a}function p(e){let t=e[r].split(`/`).filter(Boolean),n=u,a=``,o=0;t.forEach((l,u)=>{if(a+=(a?`/`:``)+l,o++,u===t.length-1){let t={id:e[r],text:l,size:e[i],sizeSelf:e[i],subtext:T(e[i]).join(` `),children:[],meta:{...e,path:l,type:s}};n.children.push(t),c.set(e[r],t)}else n=f(e,a,l,n,o)})}return n.forEach(p),d.forEach(e=>e()),{map:c,root:u,maxDepth:l}}),te=v(()=>({animate:oe.value.chartAnimation,palette:{stroke:w.value?`#222`:`#555`,fg:w.value?`#fff`:`#000`,bg:w.value?`#111`:`#fff`},getColor:rt(g.value.root,w.value?.8:.9,w.value?1:1.1),getSubtext:e=>e.subtext,...c}));function b(e,t){p.value=e?.meta,e?.children.length||(e=e?.parent),m.value?.select(e,t)}function x(){h?.(),f.value=g.value.root,l?.(),ee(()=>{let e=p.value&&g.value.map.get(p.value[r])||null;e&&b(e,!1)}),h=()=>{m.value?.dispose(),m.value=void 0,p.value=void 0}}return ee(()=>{d(()=>[g.value,te.value],()=>{x()},{deep:!0,immediate:!1}),x()}),n(()=>{h?.()}),{tree:g,graph:m,chartOptions:te,nodeHover:u,nodeSelected:f,selectedNode:p,selectNode:b,buildGraph:x}}export{Mt as a,Je as c,kt as i,Lt as n,tt as o,wt as r,st as s,Rt as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,E as t,K as n,O as r,S as i,Tt as a,Vt as o,Wt as s,X as c,b as l,ct as u,j as d,k as f,m as p,x as m,y as h,yt as g,z as _}from"./gtHejcxM.js";import{C as v,S as y}from"./Dg1pxj30.js";import{g as b,v as x}from"./CbqJqu0C.js";import"./CsiiwekO.js";import{r as S}from"./D04G8HHr.js";import{a as C,s as w}from"./D6dVxvIe.js";import{t as T}from"./v2o5fpbj.js";import{t as E}from"./BvZxqrTM.js";import{t as D}from"./CPGUpoLC.js";import{t as O}from"./CA89J8qi.js";import{n as k}from"./BLuztO_U.js";import{n as A,r as j,t as M}from"./olITPEcD.js";import{t as N}from"./Bpe250WO.js";import{t as P}from"./DPYc9JW_.js";import{n as ee,r as F,t as I}from"./DSkKpnKG.js";import{n as L,t as R}from"./qIAw3Eg02.js";var z={flex:`~ col gap-2`,p4:``},B=[`onClick`],V=d({__name:`FlatList`,props:{session:{},modules:{},disableTooltip:{type:Boolean,default:!1},link:{type:Boolean,default:!0}},emits:[`select`],setup(t,{emit:r}){let i=r;return(r,a)=>{let o=T;return n(),e(`div`,z,[f(M,{items:t.modules,"key-prop":`id`},{default:u(({item:e})=>[l(`div`,{flex:``,pb2:``,onClick:t=>i(`select`,e)},[f(o,{id:e.id,session:t.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:t.link,"disable-tooltip":t.disableTooltip},null,8,[`id`,`session`,`link`,`disable-tooltip`])],8,B)]),_:1},8,[`items`])])}}}),H=Object.assign(V,{__name:`ModulesFlatList`}),U={flex:`~ col gap-2`,p4:``},W={flex:``,pb2:``},G={flex:`~ gap-1 wrap`,"text-xs":``},K={flex:`~ auto text-xs wrap`},q={key:0,flex:`~ items-center`},J={key:0,op20:``},Y={flex:`~ none gap-1 wrap justify-end`},X=d({__name:`DetailedList`,props:{session:{},modules:{}},setup(t){let r=t,a=h(()=>{let e=new Map;for(let t of r.modules){let n=t.buildMetrics?.transforms.filter(e=>e.source_code_size!==e.transformed_code_size).filter(e=>e.transformed_code_size);e.set(t.id,n)}return e});return(r,o)=>{let s=N,d=O,h=T;return n(),e(`div`,U,[f(M,{items:t.modules,"key-prop":`id`},{default:u(({item:r})=>[l(`div`,W,[f(h,{id:r.id,session:t.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:!0},{detail:u(()=>[l(`div`,G,[l(`ul`,K,[(n(!0),e(p,null,c(a.value.get(r.id),(t,o)=>(n(),e(p,{key:o},[t.source_code_size!==t.transformed_code_size&&t.transformed_code_size?(n(),e(`li`,q,[f(s,{name:t.plugin_name,class:`font-mono ws-nowrap op-50`},null,8,[`name`]),o===a.value.get(r.id).length-1?i(``,!0):(n(),e(`span`,J,`|`))])):i(``,!0)],64))),128))]),o[0]||=l(`div`,{flex:`~ auto gap-1`,"of-hidden":``},null,-1),l(`div`,Y,[l(`span`,null,[r.buildMetrics?(n(),m(d,{key:0,metrics:r.buildMetrics},null,8,[`metrics`])):i(``,!0)])])])]),_:2},1032,[`id`,`session`])])]),_:1},8,[`items`])])}}}),Z=Object.assign(X,{__name:`ModulesDetailedList`}),Q=[`d`,`stroke-dasharray`],te=d({__name:`Graph`,props:{modules:{},session:{}},setup(e){let t=e,r=h(()=>t.modules);return k({modules:r,spacing:{width:400,height:55,linkOffset:20,margin:800,gap:150},generateGraph:e=>{let{isFirstCalculateGraph:t,scale:n,spacing:i,tree:o,hierarchy:s,collapsedNodes:c,container:l,modulesMap:u,nodes:d,links:f,nodesMap:p,linksMap:m,width:g,height:v,childToParentMap:y,focusOn:b}=e,x=h(()=>r.value.filter(e=>e.importers.length===0));return(e=!0)=>{g.value=window.innerWidth,v.value=window.innerHeight;let r=new Set,h=s({module:{id:`~root`}},e=>e.module.id===`~root`?(x.value.forEach(e=>{r.add(e),t.value&&y.set(e.id,`~root`)}),x.value.map(e=>({module:e,expanded:!c.has(e.id),hasChildren:!1}))):c.has(e.module.id)?[]:e.module.imports.map(n=>{let i=u.value.get(n.module_id);if(i&&!r.has(i)&&!(y.has(i.id)&&y.get(i.id)!==e.module.id))return r.add(i),t.value&&y.set(i.id,e.module.id),{module:i,import:n,expanded:!c.has(i.id),hasChildren:!1}}).filter(e=>e!==void 0));t.value&&=!1,o().nodeSize([a(i.height),a(i.width)+a(i.gap)])(h);let S=h.descendants();for(let e of S)[e.x,e.y]=[e.y-a(i.width),e.x],e.data.module.imports&&(e.data.hasChildren=e.data.module.imports?.filter(t=>y.get(t.module_id)===e.data.module.id).length>0);let C=Math.min(...S.map(e=>e.x)),w=Math.min(...S.map(e=>e.y));if(C<a(i.margin))for(let e of S)e.x+=Math.abs(C)+a(i.margin);if(w<a(i.margin))for(let e of S)e.y+=Math.abs(w)+a(i.margin);d.value=S,p.clear();for(let e of S)p.set(e.data.module.id,e);let T=h.links().filter(e=>e.source.data.module.id!==`~root`).map(e=>({...e,import:e.source.data.import,id:`${e.source.data.module.id}|${e.target.data.module.id}`}));m.clear();for(let e of T)m.set(e.id,e);f.value=T,_(()=>{g.value=l.value.scrollWidth/n.value+a(i.margin),v.value=l.value.scrollHeight/n.value+a(i.margin);let t=x.value?.[0]?.id;e&&t&&_(()=>{b(t,!1)})})}}}),(t,i)=>{let a=T,s=I;return n(),m(s,{session:e.session,modules:r.value},{default:u(({node:t,nodesRefMap:n})=>[f(a,{id:t.data.module.id,ref:e=>n.set(t.data.module.id,e?.$el),link:!0,session:e.session,minimal:!0,flex:`1`},null,8,[`id`,`session`])]),link:u(({link:e,d:t,linkClass:n})=>[l(`path`,{d:t,class:o(n),"stroke-dasharray":e.import?.kind===`dynamic-import`?`3 6`:void 0,fill:`none`},null,10,Q)]),_:1},8,[`session`,`modules`])}}}),ne=Object.assign(te,{__name:`ModulesGraph`}),re={"of-auto":``,"max-h-screen":``,"pt-45":``,relative:``},ie={flex:`~ col gap-2`,p4:``},ae=d({__name:`Folder`,props:{session:{},modules:{}},setup(t){let r=t,a=h(()=>{if(!r.session.modulesList.length)return{workspace:{children:{},items:[]},nodeModules:{children:{},items:[]},virtual:{children:{},items:[]}};let e=[],t=[],n=[];return r.modules.map(e=>({full:e.id,path:e.path})).forEach(i=>{i.full.startsWith(r.session.meta.cwd)?(i.path.startsWith(`../`)||(i.path=i.full.slice(r.session.meta.cwd.length+1)),e.push(i)):i.full.includes(`node_modules`)?t.push({full:i.full,path:i.full}):i.full.startsWith(`virtual:`)&&n.push(i)}),{workspace:S(e,`Project Root`),nodeModules:S(t,`Node Modules`),virtual:S(n,`Virtual Modules`)}});return(t,r)=>{let o=P;return n(),e(`div`,re,[l(`div`,ie,[Object.keys(a.value.workspace.children).length?(n(),m(o,{key:0,node:a.value.workspace,p:`l3`,icon:`i-catppuccin:folder-dist icon-catppuccin`,"icon-open":`i-catppuccin:folder-dist-open icon-catppuccin`,link:!0},null,8,[`node`])):i(``,!0),Object.keys(a.value.nodeModules.children).length?(n(),e(p,{key:1},[r[0]||=l(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),f(o,{node:a.value.nodeModules,p:`l3`,icon:`i-catppuccin:folder-node icon-catppuccin`,"icon-open":`i-catppuccin:folder-node-open icon-catppuccin`,link:!0,open:!1},null,8,[`node`])],64)):i(``,!0),Object.keys(a.value.virtual.children).length?(n(),e(p,{key:2},[r[1]||=l(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),f(o,{node:a.value.virtual,p:`l3`,icon:`i-catppuccin:folder-components icon-catppuccin`,"icon-open":`i-catppuccin:folder-components-open icon-catppuccin`,link:!0,open:!1},null,8,[`node`])],64)):i(``,!0)])])}}}),oe=Object.assign(ae,{__name:`ModulesFolder`}),se={relative:``,"max-h-screen":``,"of-hidden":``},ce={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},le={key:0,h10:``,mr2:``,flex:`~ items-center`},ue={flex:`~ gap-2 items-center`,p2:``,border:`t base`},de=[`onClick`],fe={key:0,"of-auto":``,"h-screen":``,"pt-45":``},pe={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},$={op50:``},me={key:1,"of-auto":``,"h-screen":``,"pt-45":``},he={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},ge={op50:``},_e=d({__name:`index`,props:{session:{}},setup(d){let _=d,S=y(),O=v(),k=g({search:S.query.search||``,selected:S.query.file_types?L(S.query.file_types):null,node_modules:S.query.node_modules?L(S.query.node_modules):null}),M=[{label:`List`,value:`list`,icon:`i-ph-list-bullets-duotone`},{label:`Detailed List`,value:`detailed-list`,icon:`i-ph-list-magnifying-glass-duotone`},{label:`Graph`,value:`graph`,icon:`i-ph-graph-duotone`},{label:`Folder`,value:`folder`,icon:`i-ph-folder-duotone`}];x(k.value,e=>{let t={...S.query,search:e.search||void 0,file_types:e.selected||void 0,node_modules:e.node_modules||void 0};O.replace({query:R(t)})},{debounce:500});let N=h(()=>_.session.modulesList.map(e=>({mod:e,path:E(e.id,_.session.meta.cwd),type:w(e.id)}))),P=h(()=>C.filter(e=>N.value.some(t=>e.match.test(t.mod.id)))),I=h(()=>{let e=N.value;return k.value.selected&&(e=e.filter(e=>{let t=w(e.mod.id);return k.value.selected.includes(t.name)})),k.value.node_modules&&(e=e.filter(e=>e.path.moduleName&&k.value.node_modules.includes(e.path.moduleName))),e.map(e=>({...e.mod,path:e.path.path}))}),{pathSelectorVisible:z,selectPathNodes:B,togglePathSelector:V,normalizedGraph:U}=F({onToggle:e=>{k.value.search=e?!1:``},dataMap:h(()=>new Map(_.session.modulesList.map(e=>[e.id,e]))),list:I,importIdKey:`module_id`}),W=b(()=>I.value,()=>new j(I.value,{includeScore:!0,keys:[`id`],ignoreLocation:!0,threshold:.4})),G=h(()=>k.value.search?W.value.search(k.value.search).map(e=>e.item):I.value);function K(e){S.query.module&&O.replace({query:{...S.query,module:void 0}}),D.value.moduleGraphViewType=e}return(h,g)=>{let _=H,v=T,y=ee,b=A,x=Z,S=ne,C=oe;return n(),e(`div`,se,[l(`div`,ce,[f(b,{modelValue:k.value,"onUpdate:modelValue":g[2]||=e=>k.value=e,rules:P.value},t({"search-end":u(()=>[a(D).moduleGraphViewType===`graph`?(n(),e(`div`,le,[l(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Graph Path Selector`,onClick:g[1]||=e=>a(V)(!0)},[...g[3]||=[l(`i`,{"i-ri:route-line":``,flex:``},null,-1)]])])):i(``,!0)]),default:u(()=>[l(`div`,ue,[g[4]||=l(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(n(),e(p,null,c(M,e=>l(`button`,{key:e.value,"btn-action":``,class:o(a(D).moduleGraphViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>K(e.value)},[l(`div`,{class:o(e.icon)},null,2),r(` `+s(e.label),1)],10,de)),64))])]),_:2},[a(z)?{name:`search`,fn:u(()=>[f(y,{session:d.session,data:G.value,"import-id-key":`module_id`,"search-keys":[`id`],onSelect:a(B),onClose:g[0]||=e=>a(V)(!1)},{list:u(({select:e,data:t})=>[t?.length?(n(),m(_,{key:0,session:d.session,modules:t,"disable-tooltip":``,link:!1,onSelect:e},null,8,[`session`,`modules`,`onSelect`])):i(``,!0)]),item:u(({id:e})=>[f(v,{id:e,session:d.session,block:``,"text-nowrap":``,link:!1,"disable-tooltip":!0},null,8,[`id`,`session`])]),_:1},8,[`session`,`data`,`onSelect`])]),key:`0`}:void 0]),1032,[`modelValue`,`rules`])]),a(D).moduleGraphViewType===`list`?(n(),e(`div`,fe,[f(_,{session:d.session,modules:G.value},null,8,[`session`,`modules`]),l(`div`,pe,[l(`span`,$,s(G.value.length)+` of `+s(d.session.modulesList.length),1)])])):a(D).moduleGraphViewType===`detailed-list`?(n(),e(`div`,me,[f(x,{session:d.session,modules:G.value},null,8,[`session`,`modules`]),l(`div`,he,[l(`span`,ge,s(G.value.length)+` of `+s(d.session.modulesList.length),1)])])):a(D).moduleGraphViewType===`graph`?(n(),m(S,{key:2,session:d.session,modules:a(U)},null,8,[`session`,`modules`])):(n(),m(C,{key:3,session:d.session,modules:G.value},null,8,[`session`,`modules`]))])}}});export{_e as default};
|
|
1
|
+
import{C as e,E as t,K as n,O as r,S as i,Tt as a,Vt as o,Wt as s,X as c,b as l,ct as u,j as d,k as f,m as p,x as m,y as h,yt as g,z as _}from"./B7Uzi9u5.js";import{C as v,S as y}from"./DyswZ8iG.js";import{g as b,v as x}from"./CvoV-A9Y.js";import"./CQTlMuLw.js";import{r as S}from"./D04G8HHr.js";import{a as C,s as w}from"./CDw62R4I.js";import{t as T}from"./CYor1418.js";import{t as E}from"./BaYNXXCt.js";import{t as D}from"./D7AbeHTq.js";import{t as O}from"./B5KEqWuS.js";import{n as k}from"./CyP4eEAT.js";import{n as A,r as j,t as M}from"./DaLz16aP.js";import{t as N}from"./BLYeE3ho.js";import{t as P}from"./D63F5Z8a.js";import{n as ee,r as F,t as I}from"./wmMbYO2d.js";import{n as L,t as R}from"./qIAw3Eg02.js";var z={flex:`~ col gap-2`,p4:``},B=[`onClick`],V=d({__name:`FlatList`,props:{session:{},modules:{},disableTooltip:{type:Boolean,default:!1},link:{type:Boolean,default:!0}},emits:[`select`],setup(t,{emit:r}){let i=r;return(r,a)=>{let o=T;return n(),e(`div`,z,[f(M,{items:t.modules,"key-prop":`id`},{default:u(({item:e})=>[l(`div`,{flex:``,pb2:``,onClick:t=>i(`select`,e)},[f(o,{id:e.id,session:t.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:t.link,"disable-tooltip":t.disableTooltip},null,8,[`id`,`session`,`link`,`disable-tooltip`])],8,B)]),_:1},8,[`items`])])}}}),H=Object.assign(V,{__name:`ModulesFlatList`}),U={flex:`~ col gap-2`,p4:``},W={flex:``,pb2:``},G={flex:`~ gap-1 wrap`,"text-xs":``},K={flex:`~ auto text-xs wrap`},q={key:0,flex:`~ items-center`},J={key:0,op20:``},Y={flex:`~ none gap-1 wrap justify-end`},X=d({__name:`DetailedList`,props:{session:{},modules:{}},setup(t){let r=t,a=h(()=>{let e=new Map;for(let t of r.modules){let n=t.buildMetrics?.transforms.filter(e=>e.source_code_size!==e.transformed_code_size).filter(e=>e.transformed_code_size);e.set(t.id,n)}return e});return(r,o)=>{let s=N,d=O,h=T;return n(),e(`div`,U,[f(M,{items:t.modules,"key-prop":`id`},{default:u(({item:r})=>[l(`div`,W,[f(h,{id:r.id,session:t.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:!0},{detail:u(()=>[l(`div`,G,[l(`ul`,K,[(n(!0),e(p,null,c(a.value.get(r.id),(t,o)=>(n(),e(p,{key:o},[t.source_code_size!==t.transformed_code_size&&t.transformed_code_size?(n(),e(`li`,q,[f(s,{name:t.plugin_name,class:`font-mono ws-nowrap op-50`},null,8,[`name`]),o===a.value.get(r.id).length-1?i(``,!0):(n(),e(`span`,J,`|`))])):i(``,!0)],64))),128))]),o[0]||=l(`div`,{flex:`~ auto gap-1`,"of-hidden":``},null,-1),l(`div`,Y,[l(`span`,null,[r.buildMetrics?(n(),m(d,{key:0,metrics:r.buildMetrics},null,8,[`metrics`])):i(``,!0)])])])]),_:2},1032,[`id`,`session`])])]),_:1},8,[`items`])])}}}),Z=Object.assign(X,{__name:`ModulesDetailedList`}),Q=[`d`,`stroke-dasharray`],te=d({__name:`Graph`,props:{modules:{},session:{}},setup(e){let t=e,r=h(()=>t.modules);return k({modules:r,spacing:{width:400,height:55,linkOffset:20,margin:800,gap:150},generateGraph:e=>{let{isFirstCalculateGraph:t,scale:n,spacing:i,tree:o,hierarchy:s,collapsedNodes:c,container:l,modulesMap:u,nodes:d,links:f,nodesMap:p,linksMap:m,width:g,height:v,childToParentMap:y,focusOn:b}=e,x=h(()=>r.value.filter(e=>e.importers.length===0));return(e=!0)=>{g.value=window.innerWidth,v.value=window.innerHeight;let r=new Set,h=s({module:{id:`~root`}},e=>e.module.id===`~root`?(x.value.forEach(e=>{r.add(e),t.value&&y.set(e.id,`~root`)}),x.value.map(e=>({module:e,expanded:!c.has(e.id),hasChildren:!1}))):c.has(e.module.id)?[]:e.module.imports.map(n=>{let i=u.value.get(n.module_id);if(i&&!r.has(i)&&!(y.has(i.id)&&y.get(i.id)!==e.module.id))return r.add(i),t.value&&y.set(i.id,e.module.id),{module:i,import:n,expanded:!c.has(i.id),hasChildren:!1}}).filter(e=>e!==void 0));t.value&&=!1,o().nodeSize([a(i.height),a(i.width)+a(i.gap)])(h);let S=h.descendants();for(let e of S)[e.x,e.y]=[e.y-a(i.width),e.x],e.data.module.imports&&(e.data.hasChildren=e.data.module.imports?.filter(t=>y.get(t.module_id)===e.data.module.id).length>0);let C=Math.min(...S.map(e=>e.x)),w=Math.min(...S.map(e=>e.y));if(C<a(i.margin))for(let e of S)e.x+=Math.abs(C)+a(i.margin);if(w<a(i.margin))for(let e of S)e.y+=Math.abs(w)+a(i.margin);d.value=S,p.clear();for(let e of S)p.set(e.data.module.id,e);let T=h.links().filter(e=>e.source.data.module.id!==`~root`).map(e=>({...e,import:e.source.data.import,id:`${e.source.data.module.id}|${e.target.data.module.id}`}));m.clear();for(let e of T)m.set(e.id,e);f.value=T,_(()=>{g.value=l.value.scrollWidth/n.value+a(i.margin),v.value=l.value.scrollHeight/n.value+a(i.margin);let t=x.value?.[0]?.id;e&&t&&_(()=>{b(t,!1)})})}}}),(t,i)=>{let a=T,s=I;return n(),m(s,{session:e.session,modules:r.value},{default:u(({node:t,nodesRefMap:n})=>[f(a,{id:t.data.module.id,ref:e=>n.set(t.data.module.id,e?.$el),link:!0,session:e.session,minimal:!0,flex:`1`},null,8,[`id`,`session`])]),link:u(({link:e,d:t,linkClass:n})=>[l(`path`,{d:t,class:o(n),"stroke-dasharray":e.import?.kind===`dynamic-import`?`3 6`:void 0,fill:`none`},null,10,Q)]),_:1},8,[`session`,`modules`])}}}),ne=Object.assign(te,{__name:`ModulesGraph`}),re={"of-auto":``,"max-h-screen":``,"pt-45":``,relative:``},ie={flex:`~ col gap-2`,p4:``},ae=d({__name:`Folder`,props:{session:{},modules:{}},setup(t){let r=t,a=h(()=>{if(!r.session.modulesList.length)return{workspace:{children:{},items:[]},nodeModules:{children:{},items:[]},virtual:{children:{},items:[]}};let e=[],t=[],n=[];return r.modules.map(e=>({full:e.id,path:e.path})).forEach(i=>{i.full.startsWith(r.session.meta.cwd)?(i.path.startsWith(`../`)||(i.path=i.full.slice(r.session.meta.cwd.length+1)),e.push(i)):i.full.includes(`node_modules`)?t.push({full:i.full,path:i.full}):i.full.startsWith(`virtual:`)&&n.push(i)}),{workspace:S(e,`Project Root`),nodeModules:S(t,`Node Modules`),virtual:S(n,`Virtual Modules`)}});return(t,r)=>{let o=P;return n(),e(`div`,re,[l(`div`,ie,[Object.keys(a.value.workspace.children).length?(n(),m(o,{key:0,node:a.value.workspace,p:`l3`,icon:`i-catppuccin:folder-dist icon-catppuccin`,"icon-open":`i-catppuccin:folder-dist-open icon-catppuccin`,link:!0},null,8,[`node`])):i(``,!0),Object.keys(a.value.nodeModules.children).length?(n(),e(p,{key:1},[r[0]||=l(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),f(o,{node:a.value.nodeModules,p:`l3`,icon:`i-catppuccin:folder-node icon-catppuccin`,"icon-open":`i-catppuccin:folder-node-open icon-catppuccin`,link:!0,open:!1},null,8,[`node`])],64)):i(``,!0),Object.keys(a.value.virtual.children).length?(n(),e(p,{key:2},[r[1]||=l(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),f(o,{node:a.value.virtual,p:`l3`,icon:`i-catppuccin:folder-components icon-catppuccin`,"icon-open":`i-catppuccin:folder-components-open icon-catppuccin`,link:!0,open:!1},null,8,[`node`])],64)):i(``,!0)])])}}}),oe=Object.assign(ae,{__name:`ModulesFolder`}),se={relative:``,"max-h-screen":``,"of-hidden":``},ce={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},le={key:0,h10:``,mr2:``,flex:`~ items-center`},ue={flex:`~ gap-2 items-center`,p2:``,border:`t base`},de=[`onClick`],fe={key:0,"of-auto":``,"h-screen":``,"pt-45":``},pe={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},$={op50:``},me={key:1,"of-auto":``,"h-screen":``,"pt-45":``},he={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},ge={op50:``},_e=d({__name:`index`,props:{session:{}},setup(d){let _=d,S=y(),O=v(),k=g({search:S.query.search||``,selected:S.query.file_types?L(S.query.file_types):null,node_modules:S.query.node_modules?L(S.query.node_modules):null}),M=[{label:`List`,value:`list`,icon:`i-ph-list-bullets-duotone`},{label:`Detailed List`,value:`detailed-list`,icon:`i-ph-list-magnifying-glass-duotone`},{label:`Graph`,value:`graph`,icon:`i-ph-graph-duotone`},{label:`Folder`,value:`folder`,icon:`i-ph-folder-duotone`}];x(k.value,e=>{let t={...S.query,search:e.search||void 0,file_types:e.selected||void 0,node_modules:e.node_modules||void 0};O.replace({query:R(t)})},{debounce:500});let N=h(()=>_.session.modulesList.map(e=>({mod:e,path:E(e.id,_.session.meta.cwd),type:w(e.id)}))),P=h(()=>C.filter(e=>N.value.some(t=>e.match.test(t.mod.id)))),I=h(()=>{let e=N.value;return k.value.selected&&(e=e.filter(e=>{let t=w(e.mod.id);return k.value.selected.includes(t.name)})),k.value.node_modules&&(e=e.filter(e=>e.path.moduleName&&k.value.node_modules.includes(e.path.moduleName))),e.map(e=>({...e.mod,path:e.path.path}))}),{pathSelectorVisible:z,selectPathNodes:B,togglePathSelector:V,normalizedGraph:U}=F({onToggle:e=>{k.value.search=e?!1:``},dataMap:h(()=>new Map(_.session.modulesList.map(e=>[e.id,e]))),list:I,importIdKey:`module_id`}),W=b(()=>I.value,()=>new j(I.value,{includeScore:!0,keys:[`id`],ignoreLocation:!0,threshold:.4})),G=h(()=>k.value.search?W.value.search(k.value.search).map(e=>e.item):I.value);function K(e){S.query.module&&O.replace({query:{...S.query,module:void 0}}),D.value.moduleGraphViewType=e}return(h,g)=>{let _=H,v=T,y=ee,b=A,x=Z,S=ne,C=oe;return n(),e(`div`,se,[l(`div`,ce,[f(b,{modelValue:k.value,"onUpdate:modelValue":g[2]||=e=>k.value=e,rules:P.value},t({"search-end":u(()=>[a(D).moduleGraphViewType===`graph`?(n(),e(`div`,le,[l(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Graph Path Selector`,onClick:g[1]||=e=>a(V)(!0)},[...g[3]||=[l(`i`,{"i-ri:route-line":``,flex:``},null,-1)]])])):i(``,!0)]),default:u(()=>[l(`div`,ue,[g[4]||=l(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(n(),e(p,null,c(M,e=>l(`button`,{key:e.value,"btn-action":``,class:o(a(D).moduleGraphViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>K(e.value)},[l(`div`,{class:o(e.icon)},null,2),r(` `+s(e.label),1)],10,de)),64))])]),_:2},[a(z)?{name:`search`,fn:u(()=>[f(y,{session:d.session,data:G.value,"import-id-key":`module_id`,"search-keys":[`id`],onSelect:a(B),onClose:g[0]||=e=>a(V)(!1)},{list:u(({select:e,data:t})=>[t?.length?(n(),m(_,{key:0,session:d.session,modules:t,"disable-tooltip":``,link:!1,onSelect:e},null,8,[`session`,`modules`,`onSelect`])):i(``,!0)]),item:u(({id:e})=>[f(v,{id:e,session:d.session,block:``,"text-nowrap":``,link:!1,"disable-tooltip":!0},null,8,[`id`,`session`])]),_:1},8,[`session`,`data`,`onSelect`])]),key:`0`}:void 0]),1032,[`modelValue`,`rules`])]),a(D).moduleGraphViewType===`list`?(n(),e(`div`,fe,[f(_,{session:d.session,modules:G.value},null,8,[`session`,`modules`]),l(`div`,pe,[l(`span`,$,s(G.value.length)+` of `+s(d.session.modulesList.length),1)])])):a(D).moduleGraphViewType===`detailed-list`?(n(),e(`div`,me,[f(x,{session:d.session,modules:G.value},null,8,[`session`,`modules`]),l(`div`,he,[l(`span`,ge,s(G.value.length)+` of `+s(d.session.modulesList.length),1)])])):a(D).moduleGraphViewType===`graph`?(n(),m(S,{key:2,session:d.session,modules:a(U)},null,8,[`session`,`modules`])):(n(),m(C,{key:3,session:d.session,modules:G.value},null,8,[`session`,`modules`]))])}}});export{_e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as e,P as t,et as n,j as r,x as i}from"./
|
|
1
|
+
import{K as e,P as t,et as n,j as r,x as i}from"./B7Uzi9u5.js";import{t as a}from"./CDw62R4I.js";var o=r({__name:`PluginName`,props:{name:{},compact:{type:Boolean},colored:{type:Boolean},hide:{type:Boolean}},setup(r){let o=r,s=[`__load__`,`vite-plugin-`,`vite-`,`rollup-plugin-`,`rollup-`,`unplugin-`],c=[...s,`vite:`];function l(){let e=o.compact?c:s;for(let n of e)if(o.name.startsWith(n))return o.compact?t(`span`,o.name.slice(n.length)):t(`span`,[t(`span`,{class:`op50`},n),t(`span`,o.name.slice(n.length))]);let n=o.name.split(`:`);return n.length>1?t(`span`,[t(`span`,{style:{color:a(n[0])}},`${n[0]}:`),t(`span`,n.slice(1).join(`:`))]):t(`span`,o.name)}return(t,r)=>(e(),i(n(l)))}}),s=Object.assign(o,{__name:`DisplayPluginName`});export{s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,K as t,S as n,Tt as r,Wt as i,j as a}from"./B7Uzi9u5.js";import{i as o}from"./CvoV-A9Y.js";var s={key:0,"font-mono":``},c=a({__name:`DisplayTimestamp`,props:{timestamp:{}},setup(a){let c=a;return(l,u)=>a.timestamp?(t(),e(`span`,s,i(r(o)(new Date(c.timestamp))),1)):n(``,!0)}});export{c as t};
|