@vitejs/devtools-rolldown 0.1.21 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/index.mjs +83 -47
  2. package/dist/nitro.json +2 -2
  3. package/dist/public/200.html +1 -1
  4. package/dist/public/404.html +1 -1
  5. package/dist/public/_nuxt/-nSv7b_c2.js +1 -0
  6. package/dist/public/_nuxt/{ChjPWTWV.js → B6PLDwAm.js} +2 -2
  7. package/dist/public/_nuxt/BGfhRWSX.js +1 -0
  8. package/dist/public/_nuxt/BNZzKgvO.js +7 -0
  9. package/dist/public/_nuxt/BNrUSHd9.js +1 -0
  10. package/dist/public/_nuxt/BRoY9F4B.js +1 -0
  11. package/dist/public/_nuxt/Ba06j5HF.js +1 -0
  12. package/dist/public/_nuxt/BdES0TNB.js +1 -0
  13. package/dist/public/_nuxt/C4TkllWS.js +1 -0
  14. package/dist/public/_nuxt/C9xBafiu.js +1 -0
  15. package/dist/public/_nuxt/CGpzF1Fi.js +1 -0
  16. package/dist/public/_nuxt/CSmrzcuw.js +1 -0
  17. package/dist/public/_nuxt/CZ4Hed_B.js +1 -0
  18. package/dist/public/_nuxt/CiUxnt4q.js +1 -0
  19. package/dist/public/_nuxt/CtfgqrR6.js +1 -0
  20. package/dist/public/_nuxt/CwkL5c9p.js +1 -0
  21. package/dist/public/_nuxt/D0ELUVmr.js +1 -0
  22. package/dist/public/_nuxt/D2fxAMpL.js +1 -0
  23. package/dist/public/_nuxt/D5Xmlx1F.js +1 -0
  24. package/dist/public/_nuxt/D7E3leYJ.js +1 -0
  25. package/dist/public/_nuxt/DJiAfyJ9.js +1 -0
  26. package/dist/public/_nuxt/DS9O9jUU.js +1 -0
  27. package/dist/public/_nuxt/DYWABjKK.js +1 -0
  28. package/dist/public/_nuxt/DiwqOTKG.js +1 -0
  29. package/dist/public/_nuxt/DuyiIaXF.js +1 -0
  30. package/dist/public/_nuxt/FMlLtEkh.js +1 -0
  31. package/dist/public/_nuxt/I45WLXVn.js +1 -0
  32. package/dist/public/_nuxt/{CKlr0Tan.js → LBCmYgDk.js} +1 -1
  33. package/dist/public/_nuxt/MF_ZggB1.js +1 -0
  34. package/dist/public/_nuxt/{BqiFImA_.js → WhNLRjQY.js} +1 -1
  35. package/dist/public/_nuxt/_z5g9W2Q.js +1 -0
  36. package/dist/public/_nuxt/a5P2pi4b.js +1 -0
  37. package/dist/public/_nuxt/builds/latest.json +1 -1
  38. package/dist/public/_nuxt/builds/meta/4b89da51-8485-4b1c-9d33-36610376f0b4.json +1 -0
  39. package/dist/public/_nuxt/dedBpiqn.js +1 -0
  40. package/dist/public/_nuxt/{entry.hZ2mUD7T.css → entry.CuajcsxN.css} +1 -1
  41. package/dist/public/_nuxt/error-404.3xPYxf32.css +1 -0
  42. package/dist/public/_nuxt/error-500.CUtwZWQI.css +1 -0
  43. package/dist/public/_nuxt/rtwgPkwM2.js +1 -0
  44. package/dist/public/index.html +1 -1
  45. package/package.json +9 -13
  46. package/dist/public/_nuxt/20hUiP46.js +0 -1
  47. package/dist/public/_nuxt/5tvbNeKa.js +0 -1
  48. package/dist/public/_nuxt/BAyxWnhM2.js +0 -1
  49. package/dist/public/_nuxt/BOT9W_ZD.js +0 -1
  50. package/dist/public/_nuxt/BP8IEXpL.js +0 -1
  51. package/dist/public/_nuxt/BQIt7f6-2.js +0 -1
  52. package/dist/public/_nuxt/BTfiKBAm.js +0 -1
  53. package/dist/public/_nuxt/BTkQJesx.js +0 -1
  54. package/dist/public/_nuxt/BdFYEjeH.js +0 -1
  55. package/dist/public/_nuxt/BdMtzkAy2.js +0 -1
  56. package/dist/public/_nuxt/BleX7Loz.js +0 -2
  57. package/dist/public/_nuxt/C5iGLYf8.js +0 -1
  58. package/dist/public/_nuxt/CAMw8o6X.js +0 -1
  59. package/dist/public/_nuxt/CBfhMqaX.js +0 -1
  60. package/dist/public/_nuxt/CJdYjM__.js +0 -1
  61. package/dist/public/_nuxt/CK6Xn-O82.js +0 -1
  62. package/dist/public/_nuxt/CMgL1OO02.js +0 -1
  63. package/dist/public/_nuxt/CUBdwZVs.js +0 -3
  64. package/dist/public/_nuxt/CWusIlaG.js +0 -1
  65. package/dist/public/_nuxt/CbQbsbZd.js +0 -1
  66. package/dist/public/_nuxt/Cc25hvIa.js +0 -1
  67. package/dist/public/_nuxt/CgIVM_ZA.js +0 -1
  68. package/dist/public/_nuxt/CvnFxGBE.js +0 -1
  69. package/dist/public/_nuxt/CxYeQaBW.js +0 -1
  70. package/dist/public/_nuxt/Cz_QngRP.js +0 -1
  71. package/dist/public/_nuxt/D355zo8J.js +0 -1
  72. package/dist/public/_nuxt/D8ugdtv-.js +0 -1
  73. package/dist/public/_nuxt/DRDotB3_.js +0 -1
  74. package/dist/public/_nuxt/D_SWqqpX.js +0 -1
  75. package/dist/public/_nuxt/ENNcF9U5.js +0 -1
  76. package/dist/public/_nuxt/O6CYpA302.js +0 -1
  77. package/dist/public/_nuxt/Vqydp92h.js +0 -4
  78. package/dist/public/_nuxt/bqLEejUC.js +0 -1
  79. package/dist/public/_nuxt/builds/meta/41dbd68d-0fb6-46b9-8488-2655f3bf60fa.json +0 -1
  80. package/dist/public/_nuxt/error-404.DGENu4tq.css +0 -1
  81. package/dist/public/_nuxt/error-500.Dafb1iMn.css +0 -1
  82. package/dist/public/_nuxt/jP7hav2h.js +0 -1
  83. package/dist/public/_nuxt/q8es4sx12.js +0 -1
  84. package/dist/public/_nuxt/x1vnwfQM.js +0 -1
  85. package/dist/public/_nuxt/zt8ARaaw.js +0 -1
  86. /package/dist/public/_nuxt/{CqfNwh25.js → BkPBhH2x.js} +0 -0
  87. /package/dist/public/_nuxt/{DoJ6DaKu.js → DWG474Ej.js} +0 -0
  88. /package/dist/public/_nuxt/{D1iwru-F2.js → DYINlKP5.js} +0 -0
  89. /package/dist/public/_nuxt/{BUwCbG2W.js → tBStlNYu.js} +0 -0
@@ -0,0 +1 @@
1
+ .grid[data-v-babe3ab1]{display:grid}.mb-2[data-v-babe3ab1]{margin-bottom:.5rem}.mb-4[data-v-babe3ab1]{margin-bottom:1rem}.max-w-520px[data-v-babe3ab1]{max-width:520px}.min-h-screen[data-v-babe3ab1]{min-height:100vh}.w-full[data-v-babe3ab1]{width:100%}.flex[data-v-babe3ab1]{display:flex}.place-content-center[data-v-babe3ab1]{place-content:center}.items-center[data-v-babe3ab1]{align-items:center}.justify-center[data-v-babe3ab1]{justify-content:center}.overflow-hidden[data-v-babe3ab1]{overflow:hidden}.bg-white[data-v-babe3ab1]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-babe3ab1]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-babe3ab1]{text-align:center}.text-\[80px\][data-v-babe3ab1]{font-size:80px}.text-2xl[data-v-babe3ab1]{font-size:1.5rem;line-height:2rem}.text-sm[data-v-babe3ab1]{font-size:.875rem;line-height:1.25rem}.text-\[\#020420\][data-v-babe3ab1]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-babe3ab1]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.hover\:text-\[\#00DC82\][data-v-babe3ab1]:hover{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.font-medium[data-v-babe3ab1]{font-weight:500}.font-semibold[data-v-babe3ab1]{font-weight:600}.leading-none[data-v-babe3ab1]{line-height:1}.tracking-wide[data-v-babe3ab1]{letter-spacing:.025em}.font-sans[data-v-babe3ab1]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-babe3ab1]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.underline[data-v-babe3ab1]{text-decoration-line:underline}.underline-offset-3[data-v-babe3ab1]{text-underline-offset:3px}.antialiased[data-v-babe3ab1]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-babe3ab1]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-babe3ab1]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:text-\[110px\][data-v-babe3ab1]{font-size:110px}.sm\:text-3xl[data-v-babe3ab1]{font-size:1.875rem;line-height:2.25rem}}
@@ -0,0 +1 @@
1
+ .grid[data-v-c5a16e16]{display:grid}.mb-2[data-v-c5a16e16]{margin-bottom:.5rem}.mb-4[data-v-c5a16e16]{margin-bottom:1rem}.max-w-520px[data-v-c5a16e16]{max-width:520px}.min-h-screen[data-v-c5a16e16]{min-height:100vh}.place-content-center[data-v-c5a16e16]{place-content:center}.overflow-hidden[data-v-c5a16e16]{overflow:hidden}.bg-white[data-v-c5a16e16]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-c5a16e16]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-c5a16e16]{text-align:center}.text-\[80px\][data-v-c5a16e16]{font-size:80px}.text-2xl[data-v-c5a16e16]{font-size:1.5rem;line-height:2rem}.text-\[\#020420\][data-v-c5a16e16]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-c5a16e16]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.font-semibold[data-v-c5a16e16]{font-weight:600}.leading-none[data-v-c5a16e16]{line-height:1}.tracking-wide[data-v-c5a16e16]{letter-spacing:.025em}.font-sans[data-v-c5a16e16]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-c5a16e16]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.antialiased[data-v-c5a16e16]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-c5a16e16]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-c5a16e16]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:text-\[110px\][data-v-c5a16e16]{font-size:110px}.sm\:text-3xl[data-v-c5a16e16]{font-size:1.875rem;line-height:2.25rem}}
@@ -0,0 +1 @@
1
+ import{Ct as e,Dt as t,Ot as n,St as r,Ut as i,Vt as a,hn as o,it as s,m as c,r as l,t as u,tn as d,vt as f,wt as p,xt as m,yn as h,z as g}from"#entry";import{r as _,t as v}from"./CtfgqrR6.js";import{t as y}from"./FMlLtEkh.js";import{t as b}from"./MF_ZggB1.js";var x={key:0},S={key:2},C={op50:``},w={key:3},T=[`textContent`],E=[`textContent`],D=Object.assign(n({__name:`RawEventsTable`,props:{events:{},fields:{default:()=>[`event_id`,`action`,`module_id`,`plugin_name`,`timestamp`,`content`,`*`]},session:{}},setup(n){let s=n;function c(e,t){let n=new Set(t);return n.has(`content`)&&n.add(`content`),n.has(`plugin_name`)&&n.add(`plugin_index`),Object.fromEntries(Object.entries(e).filter(([e])=>!n.has(e)))}function l(e){return e.action===`HookLoadCallEnd`||e.action===`HookTransformCallStart`||e.action===`HookTransformCallEnd`?e.content:null}return(u,D)=>{let O=v,k=b;return a(),p(f,null,[n.events.length?e(``,!0):(a(),p(`div`,x,[...D[0]||=[m(`div`,{p5:``,italic:``},` No events found `,-1)]])),m(`table`,null,[m(`tbody`,null,[(a(!0),p(f,null,i(s.events,u=>(a(),p(`tr`,{key:u.event_id},[(a(!0),p(f,null,i(s.fields,i=>(a(),p(`td`,{key:i,px2:``},[i===`module_id`?(a(),r(O,{key:0,id:`module_id`in u?u.module_id:``,session:n.session},null,8,[`id`,`session`])):i===`action`?(a(),r(_,{key:1,text:u.action},null,8,[`text`])):i===`plugin_name`&&`plugin_name`in u?(a(),p(`div`,S,[t(k,{"font-mono":``,name:u.plugin_name},null,8,[`name`]),m(`code`,C,`#`+h(u.plugin_id),1)])):i===`event_id`?(a(),p(`div`,w,h(u.event_id),1)):i===`content`&&l(u)?(a(),r(o(g),{key:4},{popper:d(()=>[m(`pre`,{p1:``,"text-sm":``,textContent:h(l(u))},null,8,T)]),default:d(()=>[D[1]||=m(`div`,{"i-ph-code":``},null,-1)]),_:2},1024)):i===`timestamp`&&`timestamp`in u?(a(),r(y,{key:5,"text-sm":``,timestamp:u.timestamp},null,8,[`timestamp`])):i===`*`?(a(),p(`pre`,{key:6,"text-sm":``,textContent:h(c(u,n.fields))},null,8,E)):e(``,!0)]))),128))]))),128))])])],64)}}}),{__name:`DataRawEventsTable`}),O={key:1},k=n({__name:`raw`,props:{session:{}},setup(n){let i=n,d=u(),h=s().query,g=c(async()=>await d.value.call(`vite:rolldown:get-module-raw-events`,{session:i.session.id,module:h.module}),{events:[]});return(i,s)=>{let c=l,u=D;return a(),p(f,null,[o(g).isLoading?(a(),r(c,{key:0})):e(``,!0),m(`div`,null,[o(g).isReady?(a(),r(u,{key:0,events:o(g).state.value.events,session:n.session},null,8,[`events`,`session`])):(a(),p(`div`,O,[t(c)]))])],64)}}});export{k as default};
@@ -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/BleX7Loz.js"}}</script><title>Rolldown DevTools</title><link rel="stylesheet" href="/__devtools-rolldown/_nuxt/entry.hZ2mUD7T.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/BleX7Loz.js"><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/Vqydp92h.js"><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/CUBdwZVs.js"><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/CxYeQaBW.js"><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/5tvbNeKa.js"><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/BTfiKBAm.js"><script type="module" src="/__devtools-rolldown/_nuxt/BleX7Loz.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:"41dbd68d-0fb6-46b9-8488-2655f3bf60fa",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1778225976974,false]</script></body></html>
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/BNZzKgvO.js"}}</script><title>Rolldown DevTools</title><link rel="stylesheet" href="/__devtools-rolldown/_nuxt/entry.CuajcsxN.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/BNZzKgvO.js"><script type="module" src="/__devtools-rolldown/_nuxt/BNZzKgvO.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:"4b89da51-8485-4b1c-9d33-36610376f0b4",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1778756276208,false]</script></body></html>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitejs/devtools-rolldown",
3
3
  "type": "module",
4
- "version": "0.1.21",
4
+ "version": "0.1.23",
5
5
  "description": "DevTools for Rolldown",
6
6
  "author": "VoidZero Inc.",
7
7
  "license": "MIT",
@@ -29,31 +29,27 @@
29
29
  "dependencies": {
30
30
  "@floating-ui/dom": "^1.7.6",
31
31
  "@pnpm/read-project-manifest": "^1001.2.6",
32
- "@rolldown/debug": "^1.0.0-rc.18",
33
- "ansis": "^4.2.0",
32
+ "@rolldown/debug": "^1.0.1",
34
33
  "birpc": "^4.0.0",
35
34
  "cac": "^7.0.0",
36
35
  "d3-shape": "^3.2.0",
36
+ "devframe": "^0.2.2",
37
37
  "diff": "^9.0.0",
38
38
  "get-port-please": "^3.2.0",
39
- "h3": "^1.15.11",
39
+ "h3": "2.0.1-rc.22",
40
40
  "logs-sdk": "^0.0.6",
41
41
  "mlly": "^1.8.2",
42
42
  "mrmime": "^2.0.1",
43
- "ohash": "^2.0.11",
44
43
  "p-limit": "^7.3.0",
45
44
  "pathe": "^2.0.3",
46
- "publint": "^0.3.19",
47
- "sirv": "^3.0.2",
45
+ "publint": "^0.3.21",
48
46
  "split2": "^4.2.0",
49
- "structured-clone-es": "^2.0.0",
50
47
  "tinyglobby": "^0.2.16",
51
48
  "unconfig": "^7.5.0",
52
49
  "unstorage": "^1.17.5",
53
50
  "vue-virtual-scroller": "^3.0.3",
54
- "ws": "^8.20.0",
55
- "@vitejs/devtools-kit": "0.1.21",
56
- "devframe": "0.1.21"
51
+ "ws": "^8.20.1",
52
+ "@vitejs/devtools-kit": "0.1.23"
57
53
  },
58
54
  "devDependencies": {
59
55
  "@types/split2": "^4.2.3",
@@ -74,7 +70,7 @@
74
70
  "nanovis": "^1.0.0",
75
71
  "splitpanes": "^4.0.4",
76
72
  "theme-vitesse": "^1.0.0",
77
- "tsdown": "^0.21.10",
73
+ "tsdown": "^0.22.0",
78
74
  "unocss": "^66.6.8",
79
75
  "vite-hot-client": "^2.2.0"
80
76
  },
@@ -110,7 +106,7 @@
110
106
  "parse-json": "5.2.0",
111
107
  "picocolors": "1.1.1",
112
108
  "read-yaml-file": "2.1.0",
113
- "semver": "7.7.4",
109
+ "semver": "7.8.0",
114
110
  "signal-exit": "4.1.0",
115
111
  "strip-bom": "4.0.0",
116
112
  "strip-comments-strings": "1.2.0",
@@ -1 +0,0 @@
1
- import{A as e,C as t,M as n,b as r,h as i,kt as a,lt as o,q as s,w as c,x as l}from"./CUBdwZVs.js";import{r as u}from"./CBfhMqaX.js";import{n as d,t as f}from"./Cz_QngRP.js";var p={"text-xs":``,"font-mono":``,flex:`~ items-center gap-3`,ml2:``},m={flex:`~ gap-1 items-center`},h=Object.assign(n({__name:`BuildMetrics`,props:{metrics:{}},setup(n){let h=n,g=r(()=>{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}}),_=r(()=>(h.metrics?.transforms)?.[0]?.source_code_size),v=r(()=>(h.metrics?.transforms.filter(e=>e.transformed_code_size)).at(-1)?.transformed_code_size);return(n,r)=>{let h=u;return s(),c(`div`,p,[e(f,{duration:g.value.resolveIds,flex:`~ gap-1 items-center`,title:`Resolve Id hooks cost: ${a(d)(g.value.resolveIds,!0)}`},{default:o(()=>[...r[0]||=[l(`span`,{"i-ph-magnifying-glass-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),e(f,{duration:g.value.loads,flex:`~ gap-1 items-center`,title:`Load hooks cost: ${a(d)(g.value.loads,!0)}`},{default:o(()=>[...r[1]||=[l(`span`,{"i-ph-upload-simple-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),e(f,{duration:g.value.transforms,flex:`~ gap-1 items-center`,title:`Transform hooks cost: ${a(d)(g.value.transforms,!0)}`},{default:o(()=>[...r[2]||=[l(`span`,{"i-ph-magic-wand-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),r[6]||=l(`span`,{op40:``},`|`,-1),e(f,{duration:g.value.total,flex:`~ gap-1 items-center`,title:`Total build cost: ${a(d)(g.value.total,!0)}`},{default:o(()=>[...r[3]||=[l(`span`,{"i-ph-clock-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),_.value&&v.value?(s(),c(i,{key:0},[r[5]||=l(`span`,{op40:``},`|`,-1),l(`div`,m,[e(h,{title:`Source code size`,bytes:_.value},null,8,[`bytes`]),r[4]||=l(`span`,{"i-ph-arrow-right-duotone":``,op50:``},null,-1),e(h,{title:`Transformed code size`,bytes:v.value},null,8,[`bytes`])])],64)):t(``,!0)])}}}),{__name:`ModulesBuildMetrics`});export{h as t};
@@ -1 +0,0 @@
1
- var e=[`top`,`right`,`bottom`,`left`],t=[`start`,`end`],n=e.reduce((e,n)=>e.concat(n,n+`-`+t[0],n+`-`+t[1]),[]),r=Math.min,i=Math.max,a=Math.round,o=e=>({x:e,y:e}),s={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function c(e,t,n){return i(e,r(t,n))}function l(e,t){return typeof e==`function`?e(t):e}function u(e){return e.split(`-`)[0]}function d(e){return e.split(`-`)[1]}function f(e){return e===`x`?`y`:`x`}function p(e){return e===`y`?`height`:`width`}function m(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function h(e){return f(m(e))}function g(e,t,n){n===void 0&&(n=!1);let r=d(e),i=h(e),a=p(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=T(o)),[o,T(o)]}function _(e){let t=T(e);return[v(e),t,v(t)]}function v(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var y=[`left`,`right`],b=[`right`,`left`],x=[`top`,`bottom`],S=[`bottom`,`top`];function C(e,t,n){switch(e){case`top`:case`bottom`:return n?t?b:y:t?y:b;case`left`:case`right`:return t?x:S;default:return[]}}function w(e,t,n,r){let i=d(e),a=C(u(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(v)))),a}function T(e){let t=u(e);return s[t]+e.slice(t.length)}function E(e){return{top:0,right:0,bottom:0,left:0,...e}}function D(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:E(e)}function O(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function k(e,t,n){let{reference:r,floating:i}=e,a=m(t),o=h(t),s=p(o),c=u(t),l=a===`y`,f=r.x+r.width/2-i.width/2,g=r.y+r.height/2-i.height/2,_=r[s]/2-i[s]/2,v;switch(c){case`top`:v={x:f,y:r.y-i.height};break;case`bottom`:v={x:f,y:r.y+r.height};break;case`right`:v={x:r.x+r.width,y:g};break;case`left`:v={x:r.x-i.width,y:g};break;default:v={x:r.x,y:r.y}}switch(d(t)){case`start`:v[o]-=_*(n&&l?-1:1);break;case`end`:v[o]+=_*(n&&l?-1:1);break}return v}async function A(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:u=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=l(t,e),m=D(p),h=o[f?d===`floating`?`reference`:`floating`:d],g=O(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(h))??!0?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:u,strategy:s})),_=d===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),y=await(i.isElement==null?void 0:i.isElement(v))&&await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1},b=O(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:_,offsetParent:v,strategy:s}):_);return{top:(g.top-b.top+m.top)/y.y,bottom:(b.bottom-g.bottom+m.bottom)/y.y,left:(g.left-b.left+m.left)/y.x,right:(b.right-g.right+m.right)/y.x}}var j=50,M=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:A},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=k(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<j&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=k(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},N=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:i,placement:a,rects:o,platform:s,elements:u,middlewareData:f}=t,{element:m,padding:g=0}=l(e,t)||{};if(m==null)return{};let _=D(g),v={x:n,y:i},y=h(a),b=p(y),x=await s.getDimensions(m),S=y===`y`,C=S?`top`:`left`,w=S?`bottom`:`right`,T=S?`clientHeight`:`clientWidth`,E=o.reference[b]+o.reference[y]-v[y]-o.floating[b],O=v[y]-o.reference[y],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(m)),A=k?k[T]:0;(!A||!await(s.isElement==null?void 0:s.isElement(k)))&&(A=u.floating[T]||o.floating[b]);let j=E/2-O/2,M=A/2-x[b]/2-1,N=r(_[C],M),P=r(_[w],M),F=N,I=A-x[b]-P,L=A/2-x[b]/2+j,R=c(F,L,I),z=!f.arrow&&d(a)!=null&&L!==R&&o.reference[b]/2-(L<F?N:P)-x[b]/2<0,B=z?L<F?L-F:L-I:0;return{[y]:v[y]+B,data:{[y]:R,centerOffset:L-R-B,...z&&{alignmentOffset:B}},reset:z}}});function P(e,t,n){return(e?[...n.filter(t=>d(t)===e),...n.filter(t=>d(t)!==e)]:n.filter(e=>u(e)===e)).filter(n=>e?d(n)===e||(t?v(n)!==n:!1):!0)}var F=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:r,middlewareData:i,placement:a,platform:o,elements:s}=t,{crossAxis:c=!1,alignment:f,allowedPlacements:p=n,autoAlignment:m=!0,...h}=l(e,t),_=f!==void 0||p===n?P(f||null,m,p):p,v=await o.detectOverflow(t,h),y=i.autoPlacement?.index||0,b=_[y];if(b==null)return{};let x=g(b,r,await(o.isRTL==null?void 0:o.isRTL(s.floating)));if(a!==b)return{reset:{placement:_[0]}};let S=[v[u(b)],v[x[0]],v[x[1]]],C=[...i.autoPlacement?.overflows||[],{placement:b,overflows:S}],w=_[y+1];if(w)return{data:{index:y+1,overflows:C},reset:{placement:w}};let T=C.map(e=>{let t=d(e.placement);return[e.placement,t&&c?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),E=T.filter(e=>e[2].slice(0,d(e[0])?2:3).every(e=>e<=0))[0]?.[0]||T[0][0];return E===a?{}:{data:{index:y+1,overflows:C},reset:{placement:E}}}}},I=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h=`bestFit`,fallbackAxisSideDirection:v=`none`,flipAlignment:y=!0,...b}=l(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let x=u(r),S=m(o),C=u(o)===o,E=await(s.isRTL==null?void 0:s.isRTL(c.floating)),D=p||(C||!y?[T(o)]:_(o)),O=v!==`none`;!p&&O&&D.push(...w(o,y,v,E));let k=[o,...D],A=await s.detectOverflow(t,b),j=[],M=i.flip?.overflows||[];if(d&&j.push(A[x]),f){let e=g(r,a,E);j.push(A[e[0]],A[e[1]])}if(M=[...M,{placement:r,overflows:j}],!j.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=k[e];if(t&&(!(f===`alignment`&&S!==m(t))||M.every(e=>m(e.placement)===S?e.overflows[0]>0:!0)))return{data:{index:e,overflows:M},reset:{placement:t}};let n=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(h){case`bestFit`:{let e=M.filter(e=>{if(O){let t=m(e.placement);return t===S||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}},L=new Set([`left`,`top`]);async function R(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=u(n),s=d(n),c=m(n)===`y`,f=L.has(o)?-1:1,p=a&&c?-1:1,h=l(t,e),{mainAxis:g,crossAxis:_,alignmentAxis:v}=typeof h==`number`?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof v==`number`&&(_=s===`end`?v*-1:v),c?{x:_*p,y:g*f}:{x:g*f,y:_*p}}var z=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await R(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},B=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:d={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...p}=l(e,t),h={x:n,y:r},g=await a.detectOverflow(t,p),_=m(u(i)),v=f(_),y=h[v],b=h[_];if(o){let e=v===`y`?`top`:`left`,t=v===`y`?`bottom`:`right`,n=y+g[e],r=y-g[t];y=c(n,y,r)}if(s){let e=_===`y`?`top`:`left`,t=_===`y`?`bottom`:`right`,n=b+g[e],r=b-g[t];b=c(n,b,r)}let x=d.fn({...t,[v]:y,[_]:b});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[v]:o,[_]:s}}}}}},V=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,a;let{placement:o,rects:s,platform:c,elements:f}=t,{apply:p=()=>{},...h}=l(e,t),g=await c.detectOverflow(t,h),_=u(o),v=d(o),y=m(o)===`y`,{width:b,height:x}=s.floating,S,C;_===`top`||_===`bottom`?(S=_,C=v===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?`start`:`end`)?`left`:`right`):(C=_,S=v===`end`?`top`:`bottom`);let w=x-g.top-g.bottom,T=b-g.left-g.right,E=r(x-g[S],w),D=r(b-g[C],T),O=!t.middlewareData.shift,k=E,A=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=T),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(k=w),O&&!v){let e=i(g.left,0),t=i(g.right,0),n=i(g.top,0),r=i(g.bottom,0);y?A=b-2*(e!==0||t!==0?e+t:i(g.left,g.right)):k=x-2*(n!==0||r!==0?n+r:i(g.top,g.bottom))}await p({...t,availableWidth:A,availableHeight:k});let j=await c.getDimensions(f.floating);return b!==j.width||x!==j.height?{reset:{rects:!0}}:{}}}};export{z as a,o as c,O as d,a as f,I as i,i as l,F as n,B as o,M as r,V as s,N as t,r as u};
@@ -1 +0,0 @@
1
- import{A as e,C as t,Gt as n,Jt as r,M as i,S as a,Z as o,b as s,h as c,k as l,kt as u,lt as d,q as f,w as p,x as m}from"./CUBdwZVs.js";import{t as h}from"./CJdYjM__.js";import{r as g,t as _}from"./C5iGLYf8.js";import{t as v}from"./Cz_QngRP.js";import{t as y}from"./CgIVM_ZA.js";import{t as b}from"./BOT9W_ZD.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":``,truncate:``},T=[`datetime`],E={key:4},D={border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_1fr] gap-2 items-center`},O={flex:`~ wrap gap-2`},k=i({__name:`index`,props:{session:{}},setup(i){let k=i,A=s(()=>[{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(s,j)=>{let M=h,N=_;return f(),p(`div`,x,[m(`div`,S,[e(M,{"btn-action":``,to:{path:`/`}},{default:d(()=>[...j[0]||=[m(`div`,{"i-ph-arrow-bend-up-left-duotone":``},null,-1),l(` Re-select Session `,-1)]]),_:1})]),j[1]||=m(`div`,{op50:``,"mt-10":``},` Meta Info `,-1),m(`div`,C,[(f(!0),p(c,null,o(A.value,e=>(f(),p(c,{key:e.title},[m(`div`,{class:n(e.icon)},null,2),m(`div`,null,r(e.title),1),m(`div`,w,[e.value instanceof Date?(f(),p(`time`,{key:0,datetime:e.value.toISOString()},r(e.value.toLocaleString()),9,T)):e.type===`badge`?(f(),a(g,{key:1,text:String(e.value),py1:``},null,8,[`text`])):e.type===`duration`?(f(),a(v,{key:2,duration:+e.value},null,8,[`duration`])):typeof e.value==`number`?(f(),a(y,{key:3,number:e.value,py1:``,"rounded-full":``,"inline-block":``,"text-sm":``},null,8,[`number`])):(f(),p(`span`,E,r(e.value),1))])],64))),128))]),j[2]||=m(`div`,{op50:``,"mt-4":``},` Build Entries `,-1),m(`div`,D,[(f(!0),p(c,null,o(k.session.meta.inputs,t=>(f(),p(c,{key:t},[e(g,{text:t.name||``},null,8,[`text`]),e(N,{id:t.filename||``,session:i.session,link:!0},null,8,[`id`,`session`])],64))),128))]),j[3]||=m(`div`,{op50:``,"mt-4":``},` Views `,-1),m(`div`,O,[(f(!0),p(c,null,o(u(b),e=>(f(),p(c,{key:e.to},[e.category===`session`?(f(),a(M,{key:0,"btn-action":``,to:{path:e.to},flex:`~ col`,"min-w-40":``,p4:``},{default:d(()=>[m(`div`,{class:n(e.icon),"text-2xl":``},null,2),l(` `+r(e.title),1)]),_:2},1032,[`to`])):t(``,!0)],64))),128))])])}}});export{k as default};
@@ -1 +0,0 @@
1
- import{Tt as e,b as t,ot as n,vt as r,yt as i}from"./CUBdwZVs.js";var a=0,o=i(new Map),s=t(()=>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};
@@ -1 +0,0 @@
1
- import{Jt as e,M as t,Z as n,h as r,q as i,w as a,x as o}from"./CUBdwZVs.js";var s={flex:`~ gap5`,"w-full":``,border:`b base`,pb3:``},c={"font-mono":``},l={"font-mono":``},u=[`datetime`],d=Object.assign(t({__name:`SessionMeta`,props:{sessions:{}},setup(t){return(d,f)=>(i(),a(`div`,s,[(i(!0),a(r,null,n(t.sessions,t=>(i(),a(`div`,{key:t.id,"flex-1":``,border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_140px_2fr] max-lg:cols-[max-content_80px_2fr] gap-2 items-center`},[f[0]||=o(`div`,{class:`i-ph-hash-duotone`},null,-1),o(`div`,null,e(t.title),1),o(`div`,c,[o(`span`,null,e(t.id),1)]),f[1]||=o(`div`,{class:`i-ph-clock-duotone`},null,-1),f[2]||=o(`div`,null,` Created At `,-1),o(`div`,l,[o(`time`,{datetime:t.createdAt.toISOString()},e(t.createdAt.toLocaleString()),9,u)])]))),128))]))}}),{__name:`CompareSessionMeta`});export{d as t};
@@ -1 +0,0 @@
1
- import{A as e,C as t,G as n,Gt as r,Jt as i,Kt as a,M as o,Q as s,R as c,S as l,Z as u,b as d,et as f,h as p,kt as m,lt as h,ot as g,q as _,qt as v,rt as y,ut as b,w as x,x as S,xt as C,z as w}from"./CUBdwZVs.js";import{G as T,H as E,z as D}from"./BTfiKBAm.js";import{i as O,r as k}from"#entry";import{w as A}from"./D8ugdtv-.js";import{a as j,c as M,i as N,o as P,r as F,s as ee,t as I}from"./CbQbsbZd.js";import{r as L}from"./zt8ARaaw.js";var R={"flex-1":``,"w-0":``,"h-full":``},z={key:0,"w-full":``,"overflow-hidden":``,flex:`~ items-center`,border:`~ base rounded`,p1:``,relative:``},B={"overflow-hidden":``,"text-ellipsis":``,pr6:``,"w-0":``,"flex-1":``},V=[`placeholder`],H={class:`p2 w100`,flex:`~ col gap2`},U=Object.assign(o({__name:`PathSelectorItem`,props:c({selector:{},placeholder:{},session:{},data:{default:void 0},emptyStateText:{default:void 0},onClear:{type:Function,default:void 0}},{search:{required:!0},searchModifiers:{}}),emits:c([`clear`],[`update:search`]),setup(e,{emit:t}){let n=t,r=y(e,`search`);return(t,i)=>(_(),x(`div`,R,[e.selector.state.value.selected?(_(),x(`div`,z,[S(`div`,B,[s(t.$slots,`item`)]),S(`button`,{"i-carbon-clean":``,"text-4":``,hover:`op100`,op50:``,title:`Clear`,absolute:``,"right-2":``,onClick:i[0]||=e=>n(`clear`)})])):(_(),l(m(k),{key:1,distance:15,triggers:[`click`],"auto-hide":!1,delay:{show:300,hide:150},class:`h-full`},{popper:h(()=>[S(`div`,H,[e.data?.length?s(t.$slots,`list`,{key:0}):s(t.$slots,`empty`,{key:1})])]),default:h(()=>[b(S(`input`,{"onUpdate:modelValue":i[1]||=e=>r.value=e,py1:``,px4:``,"w-full":``,"h-full":``,border:`~ base rounded-1`,style:{outline:`none`},placeholder:e.placeholder,onBlur:i[2]||=(...e)=>m(O)&&m(O)(...e)},null,40,V),[[E,r.value]])]),_:3}))]))}}),{__name:`DataPathSelectorItem`});function W(e){let t=C({search:``,selected:null}),n=C(),r=d(e.getModules);function i(t){n.value=A(t,()=>new L(t.value,{includeScore:!0,keys:e.searchKeys||[`id`],ignoreLocation:!0,threshold:.4}))}function a(e){t.value.selected=e.id,t.value.search=``}function o(){t.value.selected=null}return{state:t,modules:r,fuse:n,initSelector:i,select:a,clear:o}}function G(e){let{onToggle:t,dataMap:n,list:r,importIdKey:i}=e,a=C(!1),o=C({start:``,end:``});function s(e){a.value=e??!a.value,t?.(a.value)}function c(e){o.value={start:e.start,end:e.end}}return{pathSelectorVisible:a,togglePathSelector:s,pathNodes:o,selectPathNodes:c,normalizedGraph:d(()=>{let{start:e,end:t}=o.value;if(!e&&!t)return r.value;let a=new Set,s=(e,t,n)=>{let r=[e],i=new Set,o=new Map([[`${e}`,[`${e}`]]]);for(;r.length>0;){let e=r.shift();i.has(e)||(i.add(e),n?e===n&&o.get(e)?.forEach(e=>a.add(e)):a.add(e),(!n||e!==n)&&t(e).forEach(t=>{i.has(`${t}`)||(r.push(`${t}`),n&&o.set(`${t}`,[...o.get(e)||[],`${t}`]))}))}};return e&&t?s(e,e=>n.value.get(e)?.imports.map(e=>e[i])||[],t):e&&s(e,e=>n.value.get(e)?.imports.map(e=>e[i])||[]),r.value.filter(e=>a.has(e.id)).map(t=>t.id===e?{...t,importers:[]}:t)})}}var K={h10:``,px4:``,p1:``,relative:``,flex:`~ gap2 items-center`},q={flex:`~ items-center gap2`,class:`flex-1 h-full`,"min-w-0":``},J={flex:`~ items-center justify-center`,"w-full":``,"h-20":``},Y={italic:``,op50:``},X=Object.assign(o({__name:`PathSelector`,props:{session:{},data:{},importIdKey:{},searchKeys:{}},emits:[`close`,`select`],setup(t,{emit:n}){let r=t,a=n,o=d(()=>{let e=new Map;return r.data.forEach(t=>{e.set(t.id,t)}),e}),c=W({searchKeys:r.searchKeys,getModules:()=>c.state.value.search?c.fuse.value.value?.search(c.state.value.search).map(e=>e.item)??[]:r.data});c.initSelector(d(()=>r.data));function l(e,t=new Set){if(t.has(e))return[];t.add(e);let n=o.value.get(e);if(!n?.imports?.length)return[];let i=[];for(let e of n.imports){let n=o.value.get(`${e[r.importIdKey]}`);n&&(t.has(n.id)||(i.push(n),i.push(...l(n.id,t))))}return i}let u=W({searchKeys:r.searchKeys,getModules:()=>c.state.value.selected?l(c.state.value.selected):[]});u.initSelector(u.modules);let f=d(()=>u.state.value.search?u.fuse.value.value?.search(u.state.value.search).map(e=>e.item)??[]:u.modules.value);g([()=>c.state.value.selected,()=>u.state.value.selected],()=>{a(`select`,{start:c.state.value.selected??``,end:u.state.value.selected??``})});function p(){a(`select`,{start:``,end:``}),a(`close`)}return(n,r)=>{let a=U;return _(),x(`div`,K,[S(`div`,q,[e(a,{search:m(c).state.value.search,"onUpdate:search":r[0]||=e=>m(c).state.value.search=e,placeholder:`Start`,selector:m(c),session:t.session,data:m(c).modules.value,onClear:r[1]||=()=>{m(c).clear(),m(u).clear()}},{list:h(()=>[s(n.$slots,`list`,{select:m(c).select,data:m(c).modules.value})]),item:h(()=>[s(n.$slots,`item`,{id:m(c).state.value.selected})]),_:3},8,[`search`,`selector`,`session`,`data`]),r[3]||=S(`div`,{class:`i-carbon-arrow-right op50`,"flex-shrink-0":``},null,-1),e(a,{search:m(u).state.value.search,"onUpdate:search":r[2]||=e=>m(u).state.value.search=e,placeholder:`End`,selector:m(u),session:t.session,data:f.value,onClear:m(u).clear},{list:h(()=>[s(n.$slots,`list`,{select:m(u).select,data:f.value})]),item:h(()=>[s(n.$slots,`item`,{id:m(u).state.value.selected})]),empty:h(()=>[S(`div`,J,[S(`span`,Y,i(m(c).state.value.selected?`No modules`:`Select a start module to get end modules`),1)])]),_:3},8,[`search`,`selector`,`session`,`data`,`onClear`])]),e(I,{class:`mr--2`,onClick:p})])}}}),{__name:`DataPathSelector`}),Z=Object.assign(o({inheritAttrs:!1,__name:`TimeoutView`,props:{content:{},hideInterval:{default:1500}},setup(e){let n=C(!1),r=null;return g(()=>e.content,()=>{r&&clearTimeout(r),n.value=!0,r=setTimeout(()=>{n.value=!1},e.hideInterval)}),(r,o)=>(_(),l(D,{"enter-active-class":`transition-opacity duration-200 ease-in`,"leave-active-class":`transition-opacity duration-500 ease-out`,"enter-from-class":`opacity-0`,"leave-to-class":`opacity-0`},{default:h(()=>[n.value?(_(),x(`div`,a(w({key:0},r.$attrs)),i(e.content),17)):t(``,!0)]),_:1}))}}),{__name:`DisplayTimeoutView`}),Q=[`width`,`height`],te=[`d`],ne={class:`w-4`},re=[`disabled`,`title`,`onClick`],ie={fixed:``,"right-6":``,"bottom-6":``,"z-panel-nav":``,flex:`~ col gap-2 items-center`},ae={"w-10":``,flex:`~ items-center justify-center`},oe={"bg-glass":``,"rounded-full":``,border:``,"border-base":``,shadow:``,flex:`~ col gap-1 p1`},$=[`disabled`],se=[`disabled`],ce=[`disabled`],le=[`disabled`],ue=Object.assign(o({__name:`ModuleGraph`,props:{modules:{},session:{},expandControls:{type:Boolean,default:!0}},setup(i){let a=i,{isFirstCalculateGraph:o,childToParentMap:c,collapsedNodes:l,calculateGraph:d,container:h,width:y,height:C,scale:w,nodes:E,links:D,spacing:O,nodesRefMap:k}=ee(),{isGrabbing:A,init:I}=j(),{zoomIn:L,zoomOut:R,ZOOM_MIN:z,ZOOM_MAX:B}=P(),{isGraphNodeToggling:V,toggleNode:H,expandAll:U,collapseAll:W}=M({modules:a.modules});return n(()=>{I(),g(()=>a.modules,()=>{o.value=!0,l.clear(),c.clear(),d()},{immediate:!0})}),(n,a)=>{let o=Z,c=f(`tooltip`);return _(),x(`div`,{ref_key:`container`,ref:h,"w-full":``,"h-screen":``,"of-scroll":``,relative:``,"select-none":``,class:r(m(A)?`cursor-grabbing`:``)},[S(`div`,{style:v({width:`${m(y)*m(w)}px`,height:`${m(C)*m(w)}px`})},[S(`div`,{flex:`~ items-center justify-center`,style:v({transform:`scale(${m(w)})`,transformOrigin:`0 0`})},[S(`div`,{absolute:``,"left-0":``,"top-0":``,style:v({width:`${m(y)}px`,height:`${m(C)}px`}),class:`bg-dots`},null,4),(_(),x(`svg`,{"pointer-events-none":``,absolute:``,"left-0":``,"top-0":``,"z-graph-link":``,width:m(y),height:m(C)},[S(`g`,null,[(_(!0),x(p,null,u(m(D),e=>(_(),x(p,{key:e.id},[e.target?s(n.$slots,`link`,{key:0,link:e,d:m(F)(e,m(O)),linkClass:m(N)(e)},()=>[(_(),x(`path`,{key:e.id,d:m(F)(e,m(O)),class:r(m(N)(e)),fill:`none`},null,10,te))]):t(``,!0)],64))),128))])],8,Q)),(_(!0),x(p,null,u(m(E),e=>(_(),x(p,{key:e.data.module.id},[e.data.module.id===`~root`?t(``,!0):(_(),x(`div`,{key:0,absolute:``,class:`group z-graph-node flex gap-1 items-center`,style:v({left:`${e.x}px`,top:`${e.y}px`,transform:`translate(-50%, -50%)`})},[S(`div`,{flex:`~ items-center gap-1`,"bg-glass":``,border:`~ base rounded`,class:`group-hover:bg-active block px2 p1`,style:v({minWidth:`${m(m(O).width)}px`,maxWidth:`${m(m(O).width)}px`,maxHeight:`${m(m(O).height)}px`,overflow:`hidden`,transition:`all 0.3s ease`})},[s(n.$slots,`default`,{node:e,nodesRefMap:m(k)})],4),S(`div`,ne,[e.data.hasChildren?(_(),x(`button`,{key:0,"w-4":``,"h-4":``,"rounded-full":``,flex:`items-center justify-center`,"text-xs":``,border:`~ active`,class:r([`flex cursor-pointer z-graph-node-active bg-base`,{"cursor-not-allowed":m(V),"hover:bg-active":!m(V)}]),disabled:m(V),title:e.data.expanded?`Collapse`:`Expand`,onClick:T(t=>m(H)(e.data.module.id),[`stop`])},[S(`div`,{class:r([`text-primary h-4`,[e.data.expanded?`i-ph-minus`:`i-ph-plus`]]),transition:`transform duration-200`},null,2)],10,re)):t(``,!0)])],4))],64))),128))],4)],4),S(`div`,ie,[S(`div`,ae,[e(o,{content:`${Math.round(m(w)*100)}%`,class:`text-sm`},null,8,[`content`])]),S(`div`,oe,[i.expandControls?(_(),x(p,{key:0},[b((_(),x(`button`,{"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,disabled:m(V),class:r({"op50 cursor-not-allowed":m(V),"hover:bg-active":!m(V)}),title:`Expand All`,onClick:a[0]||=e=>m(U)()},[...a[4]||=[S(`div`,{class:`i-ph-arrows-out-simple-duotone`},null,-1)]],10,$)),[[c,`Expand All`,void 0,{left:!0}]]),b((_(),x(`button`,{"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,disabled:m(V),class:r({"op50 cursor-not-allowed":m(V),"hover:bg-active":!m(V)}),title:`Collapse All`,onClick:a[1]||=e=>m(W)()},[...a[5]||=[S(`div`,{class:`i-ph-arrows-in-simple-duotone`},null,-1)]],10,se)),[[c,`Collapse All`,void 0,{left:!0}]]),a[6]||=S(`div`,{border:`t base`,my1:``},null,-1)],64)):t(``,!0),b((_(),x(`button`,{disabled:m(w)>=m(B),"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,"disabled:op20":``,"disabled:bg-none":``,"disabled:cursor-not-allowed":``,flex:`~ items-center justify-center`,title:`Zoom In (Ctrl + =)`,onClick:a[2]||=e=>m(L)()},[...a[7]||=[S(`div`,{"i-ph-magnifying-glass-plus-duotone":``},null,-1)]],8,ce)),[[c,`Zoom In (Ctrl + =)`,void 0,{left:!0}]]),b((_(),x(`button`,{disabled:m(w)<=m(z),"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,"disabled:op20":``,"disabled:bg-none":``,"disabled:cursor-not-allowed":``,flex:`~ items-center justify-center`,title:`Zoom Out (Ctrl + -)`,onClick:a[3]||=e=>m(R)()},[...a[8]||=[S(`div`,{"i-ph-magnifying-glass-minus-duotone":``},null,-1)]],8,le)),[[c,`Zoom Out (Ctrl + -)`,void 0,{left:!0}]])])])],2)}}}),{__name:`DisplayModuleGraph`});export{X as n,G as r,ue as t};
@@ -1 +0,0 @@
1
- import{At as e,B as t,Bt as n,E as r,F as i,Ft as a,Ht as o,I as s,It as c,L as l,Lt as u,M as d,Mt as f,Nt as p,Pt as m,Rt as h,St as ee,T as te,Tt as ne,Ut as g,Vt as _,Wt as v,Y as y,Yt as re,b,i as x,jt as ie,kt as S,m as C,ot as ae,p as oe,wt as se,xt as ce,y as w,yt as le,zt as ue}from"./CUBdwZVs.js";var T=void 0,E=typeof window<`u`&&window.trustedTypes;if(E)try{T=E.createPolicy(`vue`,{createHTML:e=>e})}catch{}var D=T?e=>T.createHTML(e):e=>e,de=`http://www.w3.org/2000/svg`,fe=`http://www.w3.org/1998/Math/MathML`,O=typeof document<`u`?document:null,pe=O&&O.createElement(`template`),me={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?O.createElementNS(de,e):t===`mathml`?O.createElementNS(fe,e):n?O.createElement(e,{is:n}):O.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>O.createTextNode(e),createComment:e=>O.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>O.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{pe.innerHTML=D(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=pe.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},k=`transition`,A=`animation`,j=Symbol(`_vtc`),he={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ge=f({},C,he),_e=(e=>(e.displayName=`Transition`,e.props=ge,e))((e,{slots:t})=>i(oe,ye(e),t)),M=(e,t=[])=>{c(e)?e.forEach(e=>e(...t)):e&&e(...t)},ve=e=>e?c(e)?e.some(e=>e.length>1):e.length>1:!1;function ye(e){let t={};for(let n in e)n in he||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=be(i),ee=h&&h[0],te=h&&h[1],{onBeforeEnter:ne,onEnter:g,onEnterCancelled:_,onLeave:v,onLeaveCancelled:y,onBeforeAppear:re=ne,onAppear:b=g,onAppearCancelled:x=_}=t,ie=(e,t,n,r)=>{e._enterCancelled=r,P(e,t?u:s),P(e,t?l:o),n&&n()},S=(e,t)=>{e._isLeaving=!1,P(e,d),P(e,m),P(e,p),t&&t()},C=e=>(t,n)=>{let i=e?b:g,o=()=>ie(t,e,n);M(i,[t,o]),Se(()=>{P(t,e?c:a),N(t,e?u:s),ve(i)||we(t,r,ee,o)})};return f(t,{onBeforeEnter(e){M(ne,[e]),N(e,a),N(e,o)},onBeforeAppear(e){M(re,[e]),N(e,c),N(e,l)},onEnter:C(!1),onAppear:C(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>S(e,t);N(e,d),e._enterCancelled?(N(e,p),Oe(e)):(Oe(e),N(e,p)),Se(()=>{e._isLeaving&&(P(e,d),N(e,m),ve(v)||we(e,r,te,n))}),M(v,[e,n])},onEnterCancelled(e){ie(e,!1,void 0,!0),M(_,[e])},onAppearCancelled(e){ie(e,!0,void 0,!0),M(x,[e])},onLeaveCancelled(e){S(e),M(y,[e])}})}function be(e){if(e==null)return null;if(ue(e))return[xe(e.enter),xe(e.leave)];{let t=xe(e);return[t,t]}}function xe(e){return re(e)}function N(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[j]||(e[j]=new Set)).add(t)}function P(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[j];n&&(n.delete(t),n.size||(e[j]=void 0))}function Se(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Ce=0;function we(e,t,n,r){let i=e._endId=++Ce,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Te(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Te(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${k}Delay`),a=r(`${k}Duration`),o=Ee(i,a),s=r(`${A}Delay`),c=r(`${A}Duration`),l=Ee(s,c),u=null,d=0,f=0;t===k?o>0&&(u=k,d=o,f=a.length):t===A?l>0&&(u=A,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?k:A:null,f=u?u===k?a.length:c.length:0);let p=u===k&&/\b(?:transform|all)(?:,|$)/.test(r(`${k}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Ee(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>De(t)+De(e[n])))}function De(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Oe(e){return(e?e.ownerDocument:document).body.offsetHeight}function ke(e,t,n){let r=e[j];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Ae=Symbol(`_vod`),je=Symbol(`_vsh`),Me={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Ae]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):F(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),F(e,!0),r.enter(e)):r.leave(e,()=>{F(e,!1)}):F(e,t))},beforeUnmount(e,{value:t}){F(e,t)}};function F(e,t){e.style.display=t?e[Ae]:`none`,e[je]=!t}var Ne=Symbol(``),Pe=/(?:^|;)\s*display\s*:/;function Fe(e,t,n){let r=e.style,i=o(n),a=!1;if(n&&!i){if(t)if(o(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??I(r,t,``)}else for(let e in t)n[e]??I(r,e,``);for(let i in n){i===`display`&&(a=!0);let s=n[i];s==null?I(r,i,``):Be(e,i,!o(t)&&t?t[i]:void 0,s)||I(r,i,s)}}else if(i){if(t!==n){let e=r[Ne];e&&(n+=`;`+e),r.cssText=n,a=Pe.test(n)}}else t&&e.removeAttribute(`style`);Ae in e&&(e[Ae]=a?r.display:``,e[je]&&(r.display=`none`))}var Ie=/\s*!important$/;function I(e,t,n){if(c(n))n.forEach(n=>I(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=ze(e,t);Ie.test(n)?e.setProperty(p(r),n.replace(Ie,``),`important`):e[r]=n}}var Le=[`Webkit`,`Moz`,`ms`],Re={};function ze(t,n){let r=Re[n];if(r)return r;let i=e(n);if(i!==`filter`&&i in t)return Re[n]=i;i=ie(i);for(let e=0;e<Le.length;e++){let r=Le[e]+i;if(r in t)return Re[n]=r}return n}function Be(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&o(r)&&n===r}var Ve=`http://www.w3.org/1999/xlink`;function He(e,t,n,r,i,a=_(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Ve,t.slice(6,t.length)):e.setAttributeNS(Ve,t,n):n==null||a&&!m(n)?e.removeAttribute(t):e.setAttribute(t,a?``:g(n)?String(n):n)}function Ue(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?D(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=m(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function L(e,t,n,r){e.addEventListener(t,n,r)}function We(e,t,n,r){e.removeEventListener(t,n,r)}var Ge=Symbol(`_vei`);function Ke(e,t,n,r,i=null){let a=e[Ge]||(e[Ge]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Je(t);r?L(e,n,a[t]=Qe(r,i),s):o&&(We(e,n,o,s),a[t]=void 0)}}var qe=/(?:Once|Passive|Capture)$/;function Je(e){let t;if(qe.test(e)){t={};let n;for(;n=e.match(qe);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):p(e.slice(2)),t]}var Ye=0,Xe=Promise.resolve(),Ze=()=>Ye||=(Xe.then(()=>Ye=0),Date.now());function Qe(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;w($e(e,n.value),t,5,[e])};return n.value=e,n.attached=Ze(),n}function $e(e,t){if(c(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var et=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,tt=(t,r,i,a,s,c)=>{let l=s===`svg`;r===`class`?ke(t,a,l):r===`style`?Fe(t,i,a):n(r)?h(r)||Ke(t,r,i,a,c):(r[0]===`.`?(r=r.slice(1),!0):r[0]===`^`?(r=r.slice(1),!1):nt(t,r,a,l))?(Ue(t,r,a),!t.tagName.includes(`-`)&&(r===`value`||r===`checked`||r===`selected`)&&He(t,r,a,l,c,r!==`value`)):t._isVueCE&&(rt(t,r)||t._def.__asyncLoader&&(/[A-Z]/.test(r)||!o(a)))?Ue(t,e(r),a,c,r):(r===`true-value`?t._trueValue=a:r===`false-value`&&(t._falseValue=a),He(t,r,a,l))};function nt(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&et(t)&&u(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return et(t)&&o(n)?!1:t in e}function rt(t,n){let r=t._def.props;if(!r)return!1;let i=e(n);return Array.isArray(r)?r.some(t=>e(t)===i):Object.keys(r).some(t=>e(t)===i)}var it=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return c(t)?e=>a(t,e):t};function at(e){e.target.composing=!0}function ot(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var st=Symbol(`_assign`);function ct(e,t,n){return t&&(e=e.trim()),n&&(e=v(e)),e}var lt={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[st]=it(i);let a=r||i.props&&i.props.type===`number`;L(e,t?`change`:`input`,t=>{t.target.composing||e[st](ct(e.value,n,a))}),(n||a)&&L(e,`change`,()=>{e.value=ct(e.value,n,a)}),t||(L(e,`compositionstart`,at),L(e,`compositionend`,ot),L(e,`change`,ot))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[st]=it(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?v(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},ut=[`ctrl`,`shift`,`alt`,`meta`],dt={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>ut.some(n=>e[`${n}Key`]&&!t.includes(n))},ft=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=dt[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},pt={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},mt=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=p(n.key);if(t.some(e=>e===r||pt[e]===r))return e(n)}))},ht=f({patchProp:tt},me),gt,_t=!1;function vt(){return gt||=r(ht)}function yt(){return gt=_t?gt:te(ht),_t=!0,gt}var bt=((...e)=>{let t=vt().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Ct(e);if(!r)return;let i=t._component;!u(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,St(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),xt=((...e)=>{let t=yt().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=Ct(e);if(t)return n(t,!0,St(t))},t});function St(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Ct(e){return o(e)?document.querySelector(e):e}var wt=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Tt=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Et=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Dt(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){Ot(e);return}return t}function Ot(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function kt(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!Et.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(wt.test(e)||Tt.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,Dt)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}String.fromCharCode;var At=/#/g,jt=/&/g,Mt=/\//g,Nt=/=/g,Pt=/\+/g,Ft=/%5e/gi,It=/%60/gi,Lt=/%7c/gi,Rt=/%20/gi;function zt(e){return encodeURI(``+e).replace(Lt,`|`)}function Bt(e){return zt(typeof e==`string`?e:JSON.stringify(e)).replace(Pt,`%2B`).replace(Rt,`+`).replace(At,`%23`).replace(jt,`%26`).replace(It,"`").replace(Ft,`^`).replace(Mt,`%2F`)}function Vt(e){return Bt(e).replace(Nt,`%3D`)}function Ht(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function Ut(e){return Ht(e.replace(Pt,` `))}function Wt(e){return Ht(e.replace(Pt,` `))}function Gt(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=Ut(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=Wt(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function Kt(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${Vt(e)}=${Bt(t)}`).join(`&`):`${Vt(e)}=${Bt(t)}`:Vt(e)}function qt(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Kt(t,e[t])).filter(Boolean).join(`&`)}var Jt=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Yt=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Xt=/^([/\\]\s*){2,}[^/\\]/,Zt=/\/$|\/\?|\/#/,Qt=/^\.?\//;function $t(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?Jt.test(e):Yt.test(e)||(t.acceptRelative?Xt.test(e):!1)}function en(e=``,t){return t?Zt.test(e):e.endsWith(`/`)}function tn(e=``,t){if(!t)return(en(e)?e.slice(0,-1):e)||`/`;if(!en(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function nn(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(en(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function rn(e,t){if(on(t)||$t(e))return e;let n=tn(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return cn(n,e)}function an(e,t){let n=un(e);return n.search=qt({...Gt(n.search),...t}),fn(n)}function on(e){return!e||e===`/`}function sn(e){return e&&e!==`/`}function cn(e,...t){let n=e||``;for(let e of t.filter(e=>sn(e)))if(n){let t=e.replace(Qt,``);n=nn(n)+t}else n=e;return n}var ln=Symbol.for(`ufo:protocolRelative`);function un(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!$t(e,{acceptRelative:!0}))return t?un(t+e):dn(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=dn(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[ln]:!r}}function dn(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function fn(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[ln]?(e.protocol||``)+`//`:``)+i+a+t+n+r}String.fromCharCode;var pn=/#/g,mn=/&/g,hn=/\//g,gn=/=/g,_n=/\?/g,vn=/\+/g,yn=/%5e/gi,bn=/%60/gi,xn=/%7c/gi,Sn=/%20/gi,Cn=/%2f/gi,wn=/%252f/gi;function Tn(e){return encodeURI(``+e).replace(xn,`|`)}function En(e){return Tn(typeof e==`string`?e:JSON.stringify(e)).replace(vn,`%2B`).replace(Sn,`+`).replace(pn,`%23`).replace(mn,`%26`).replace(bn,"`").replace(yn,`^`).replace(hn,`%2F`)}function Dn(e){return En(e).replace(gn,`%3D`)}function On(e){return Tn(e).replace(pn,`%23`).replace(_n,`%3F`).replace(wn,`%2F`).replace(mn,`%26`).replace(vn,`%2B`)}function R(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function kn(e){return R(e.replace(Cn,`%252F`))}function An(e){return R(e.replace(vn,` `))}function jn(e){return R(e.replace(vn,` `))}function Mn(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=An(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=jn(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function Nn(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${Dn(e)}=${En(t)}`).join(`&`):`${Dn(e)}=${En(t)}`:Dn(e)}function Pn(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Nn(t,e[t])).filter(Boolean).join(`&`)}var Fn=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,In=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Ln=/^([/\\]\s*){2,}[^/\\]/,Rn=/^[\s\0]*(blob|data|javascript|vbscript):$/i,zn=/\/$|\/\?|\/#/,Bn=/^\.?\//;function Vn(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?Fn.test(e):In.test(e)||(t.acceptRelative?Ln.test(e):!1)}function Hn(e){return!!e&&Rn.test(e)}function Un(e=``,t){return t?zn.test(e):e.endsWith(`/`)}function Wn(e=``,t){if(!t)return(Un(e)?e.slice(0,-1):e)||`/`;if(!Un(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function Gn(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(Un(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function Kn(e,t){if(Jn(t))return e;let n=Wn(t);if(!e.startsWith(n))return e;let r=e[n.length];return r&&r!==`/`&&r!==`?`?e:`/`+e.slice(n.length).replace(/^\/+/,``)}function qn(e,t){let n=er(e);return n.search=Pn({...Mn(n.search),...t}),nr(n)}function Jn(e){return!e||e===`/`}function Yn(e){return e&&e!==`/`}function Xn(e,...t){let n=e||``;for(let e of t.filter(e=>Yn(e)))if(n){let t=e.replace(Bn,``);n=Gn(n)+t}else n=e;return n}function Zn(...e){let t=/\/(?!\/)/,n=e.filter(Boolean),r=[],i=0;for(let e of n)if(!(!e||e===`/`)){for(let[n,a]of e.split(t).entries())if(!(!a||a===`.`)){if(a===`..`){if(r.length===1&&Vn(r[0]))continue;r.pop(),i--;continue}if(n===1&&r[r.length-1]?.endsWith(`:/`)){r[r.length-1]+=`/`+a;continue}r.push(a),i++}}let a=r.join(`/`);return i>=0?n[0]?.startsWith(`/`)&&!a.startsWith(`/`)?a=`/`+a:n[0]?.startsWith(`./`)&&!a.startsWith(`./`)&&(a=`./`+a):a=`../`.repeat(-1*i)+a,n[n.length-1]?.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}function Qn(e,t){return R(Wn(e))===R(Wn(t))}var $n=Symbol.for(`ufo:protocolRelative`);function er(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!Vn(e,{acceptRelative:!0}))return t?er(t+e):tr(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=tr(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[$n]:!r}}function tr(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function nr(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[$n]?(e.protocol||``)+`//`:``)+i+a+t+n+r}function rr(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function ir(e,t,n=`.`,r){if(!rr(t))return ir(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:rr(a)&&rr(i[t])?i[t]=ir(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function ar(e){return(...t)=>t.reduce((t,n)=>ir(t,n,``,e),{})}var or=ar();function sr(e,t){try{return t in e}catch{return!1}}var cr=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:pr(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=fr(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function lr(e){if(typeof e==`string`)return new cr(e);if(ur(e))return e;let t=new cr(e.message??e.statusMessage??``,{cause:e.cause||e});if(sr(e,`stack`))try{Object.defineProperty(t,`stack`,{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=pr(e.statusCode,t.statusCode):e.status&&(t.statusCode=pr(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;fr(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function ur(e){return e?.constructor?.__h3_error__===!0}var dr=/[^\u0009\u0020-\u007E]/g;function fr(e=``){return e.replace(dr,``)}function pr(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;var mr=Symbol(`layout-meta`),hr=Symbol(`route`);import.meta.url.replace(/\/app\/.*$/,`/`);var z=()=>x()?.$router,gr=()=>s()?l(hr,x()._route):x()._route;function _r(e){return e}var vr=()=>{try{if(x()._processingMiddleware)return!0}catch{return!1}return!1},yr=(e,t)=>{e||=`/`;let n=typeof e==`string`?e:`path`in e?br(e):z().resolve(e).href;if(t?.open){let{target:e=`_blank`,windowFeatures:r={}}=t.open,i=[];for(let[e,t]of Object.entries(r))t!==void 0&&i.push(`${e.toLowerCase()}=${t}`);return open(n,e,i.join(`, `)),Promise.resolve()}let r=Vn(n,{acceptRelative:!0}),i=t?.external||r;if(i){if(!t?.external)throw Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");let{protocol:e}=new URL(n,window.location.href);if(e&&Hn(e))throw Error(`Cannot navigate to a URL with '${e}' protocol.`)}let a=vr();if(!i&&a){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=er(e);return{path:t,...n&&{query:Mn(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let o=z(),s=x();if(i)return s._scope.stop(),t?.replace?location.replace(n):location.href=n,a?s.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let c=typeof e==`string`?xr(e):e;return t?.replace?o.replace(c):o.push(c)};function br(e){return qn(e.path||``,e.query||{})+(e.hash||``)}function xr(e){let t=er(e);return On(kn(t.pathname))+t.search+t.hash}var Sr=`__nuxt_error`,Cr=()=>ne(x().payload,`error`),wr=e=>{let t=Dr(e);try{let e=Cr();x().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},Tr=async(e={})=>{let t=x(),n=Cr();t.callHook(`app:error:cleared`,e),e.redirect&&await z().replace(e.redirect),n.value=void 0},Er=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,Dr=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=lr(e);return Object.defineProperty(t,Sr,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,`status`,{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,`statusText`,{get:()=>t.statusMessage,configurable:!0}),t},B=typeof document<`u`;function Or(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function kr(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Or(e.default)}var V=Object.assign;function Ar(e,t){let n={};for(let r in t){let i=t[r];n[r]=U(i)?i.map(e):e(i)}return n}var H=()=>{},U=Array.isArray;function jr(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var W=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),Mr=Symbol(``);W.MATCHER_NOT_FOUND,W.NAVIGATION_GUARD_REDIRECT,W.NAVIGATION_ABORTED,W.NAVIGATION_CANCELLED,W.NAVIGATION_DUPLICATED;function G(e,t){return V(Error(),{type:e,[Mr]:!0},t)}function K(e,t){return e instanceof Error&&Mr in e&&(t==null||!!(e.type&t))}var Nr=Symbol(``),Pr=Symbol(``),Fr=Symbol(``),Ir=Symbol(``),Lr=Symbol(``),Rr=/#/g,zr=/&/g,Br=/\//g,Vr=/=/g,Hr=/\?/g,Ur=/\+/g,Wr=/%5B/g,Gr=/%5D/g,Kr=/%5E/g,qr=/%60/g,Jr=/%7B/g,Yr=/%7C/g,Xr=/%7D/g,Zr=/%20/g;function Qr(e){return e==null?``:encodeURI(``+e).replace(Yr,`|`).replace(Wr,`[`).replace(Gr,`]`)}function $r(e){return Qr(e).replace(Jr,`{`).replace(Xr,`}`).replace(Kr,`^`)}function ei(e){return Qr(e).replace(Ur,`%2B`).replace(Zr,`+`).replace(Rr,`%23`).replace(zr,`%26`).replace(qr,"`").replace(Jr,`{`).replace(Xr,`}`).replace(Kr,`^`)}function ti(e){return ei(e).replace(Vr,`%3D`)}function ni(e){return Qr(e).replace(Rr,`%23`).replace(Hr,`%3F`)}function ri(e){return ni(e).replace(Br,`%2F`)}function ii(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var ai=/\/$/,oi=e=>e.replace(ai,``);function si(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=mi(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:ii(o)}}function ci(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function li(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function ui(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&q(t.matched[r],n.matched[i])&&di(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function q(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function di(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!fi(e[n],t[n]))return!1;return!0}function fi(e,t){return U(e)?pi(e,t):U(t)?pi(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function pi(e,t){return U(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function mi(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var J={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},hi=function(e){return e.pop=`pop`,e.push=`push`,e}({}),gi=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function _i(e){if(!e)if(B){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),oi(e)}var vi=/^[^#]+#/;function yi(e,t){return e.replace(vi,`#`)+t}function bi(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var xi=()=>({left:window.scrollX,top:window.scrollY});function Si(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=bi(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Ci(e,t){return(history.state?history.state.position-t:-1)+e}var wi=new Map;function Ti(e,t){wi.set(e,t)}function Ei(e){let t=wi.get(e);return wi.delete(e),t}function Di(e){return typeof e==`string`||e&&typeof e==`object`}function Oi(e){return typeof e==`string`||typeof e==`symbol`}function ki(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(Ur,` `),i=r.indexOf(`=`),a=ii(i<0?r:r.slice(0,i)),o=i<0?null:ii(r.slice(i+1));if(a in t){let e=t[a];U(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Ai(e){let t=``;for(let n in e){let r=e[n];if(n=ti(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(U(r)?r.map(e=>e&&ei(e)):[r&&ei(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function ji(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=U(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Y(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function X(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(G(W.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Di(e)?c(G(W.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Mi(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(Or(s)){let c=(s.__vccOpts||s)[t];c&&a.push(X(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=kr(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&X(c,n,r,o,e,i)()}))}}return a}function Ni(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>q(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>q(e,s))||i.push(s))}return[n,r,i]}var Pi=()=>location.protocol+`//`+location.host;function Fi(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),li(n,``)}return li(n,e)+r+i}function Ii(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Fi(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:hi.pop,direction:u?u>0?gi.forward:gi.back:gi.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(V({},e.state,{scroll:xi()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Li(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?xi():null}}function Ri(e){let{history:t,location:n}=window,r={value:Fi(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Pi()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,V({},t.state,Li(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=V({},i.value,t.state,{forward:e,scroll:xi()});a(o.current,o,!0),a(e,V({},Li(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function zi(e){e=_i(e);let t=Ri(e),n=Ii(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=V({location:``,base:e,go:r,createHref:yi.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}function Bi(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),zi(e)}var Z=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Q=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(Q||{}),Vi={type:Z.Static,value:``},Hi=/[a-zA-Z0-9_]/;function Ui(e){if(!e)return[[]];if(e===`/`)return[[Vi]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Q.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Q.Static?a.push({type:Z.Static,value:l}):n===Q.Param||n===Q.ParamRegExp||n===Q.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Z.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==Q.ParamRegExp){r=n,n=Q.EscapeNext;continue}switch(n){case Q.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Q.Param):f();break;case Q.EscapeNext:f(),n=r;break;case Q.Param:c===`(`?n=Q.ParamRegExp:Hi.test(c)?f():(d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Q.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Q.ParamRegExpEnd:u+=c;break;case Q.ParamRegExpEnd:d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===Q.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Wi=`[^/]+?`,Gi={sensitive:!1,strict:!1,start:!0,end:!0},$=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}($||{}),Ki=/[.+*?^${}()[\]/\\]/g;function qi(e,t){let n=V({},Gi,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[$.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=$.Segment+(n.sensitive?$.BonusCaseSensitive:0);if(o.type===Z.Static)r||(i+=`/`),i+=o.value.replace(Ki,`\\$&`),s+=$.Static;else if(o.type===Z.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Wi;if(u!==Wi){s+=$.BonusCustomRegExp;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=$.Dynamic,c&&(s+=$.BonusOptional),n&&(s+=$.BonusRepeatable),u===`.*`&&(s+=$.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=$.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===Z.Static)n+=e.value;else if(e.type===Z.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(U(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=U(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Ji(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===$.Static+$.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===$.Static+$.Segment?1:-1:0}function Yi(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Ji(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Xi(r))return 1;if(Xi(i))return-1}return i.length-r.length}function Xi(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Zi={strict:!1,end:!0,sensitive:!1};function Qi(e,t,n){let r=V(qi(Ui(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function $i(e,t){let n=[],r=new Map;t=jr(Zi,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=ta(e);s.aliasOf=r&&r.record;let l=jr(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(ta(V({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Qi(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!ra(d)&&o(e.name)),sa(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:H}function o(e){if(Oi(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=aa(e,n);n.splice(t,0,e),e.record.name&&!ra(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw G(W.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=V(ea(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&ea(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw G(W.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=V({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:ia(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function ea(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function ta(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:na(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function na(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function ra(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ia(e){return e.reduce((e,t)=>V(e,t.meta),{})}function aa(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Yi(e,t[i])<0?r=i:n=i+1}let i=oa(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function oa(e){let t=e;for(;t=t.parent;)if(sa(t)&&Yi(e,t)===0)return t}function sa({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ca(e){let t=l(Fr),n=l(Ir),r=b(()=>{let n=S(e.to);return t.resolve(n)}),i=b(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(q.bind(null,i));if(o>-1)return o;let s=pa(e[t-2]);return t>1&&pa(i)===s&&a[a.length-1].path!==s?a.findIndex(q.bind(null,e[t-2])):o}),a=b(()=>i.value>-1&&fa(n.params,r.value.params)),o=b(()=>i.value>-1&&i.value===n.matched.length-1&&di(n.params,r.value.params));function s(n={}){if(da(n)){let n=t[S(e.replace)?`replace`:`push`](S(e.to)).catch(H);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:b(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function la(e){return e.length===1?e[0]:e}var ua=d({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:ca,setup(e,{slots:t}){let n=le(ca(e)),{options:r}=l(Fr),a=b(()=>({[ma(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[ma(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&la(t.default(n));return e.custom?r:i(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},r)}}});function da(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function fa(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!U(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function pa(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var ma=(e,t,n)=>e??t??n,ha=d({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=l(Lr),a=b(()=>e.route||r.value),o=l(Pr,0),s=b(()=>{let e=S(o),{matched:t}=a.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),c=b(()=>a.value.matched[s.value]);y(Pr,b(()=>s.value+1)),y(Nr,c),y(Lr,a);let u=ce();return ae(()=>[u.value,c.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!q(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=a.value,o=e.name,s=c.value,l=s&&s.components[o];if(!l)return ga(n.default,{Component:l,route:r});let d=s.props[o],f=i(l,V({},d?d===!0?r.params:typeof d==`function`?d(r):d:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[o]=null)},ref:u}));return ga(n.default,{Component:f,route:r})||f}}});function ga(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var _a=ha;function va(e){let n=$i(e.routes,e),r=e.parseQuery||ki,i=e.stringifyQuery||Ai,a=e.history,o=Y(),s=Y(),c=Y(),l=se(J),u=J;B&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let d=Ar.bind(null,e=>``+e),f=Ar.bind(null,ri),p=Ar.bind(null,ii);function m(e,t){let r,i;return Oi(e)?(r=n.getRecordMatcher(e),i=t):i=e,n.addRoute(i,r)}function h(e){let t=n.getRecordMatcher(e);t&&n.removeRoute(t)}function te(){return n.getRoutes().map(e=>e.record)}function ne(e){return!!n.getRecordMatcher(e)}function g(e,t){if(t=V({},t||l.value),typeof e==`string`){let i=si(r,e,t.path),o=n.resolve({path:i.path},t),s=a.createHref(i.fullPath);return V(i,o,{params:p(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=V({},e,{path:si(r,e.path,t.path).path});else{let n=V({},e.params);for(let e in n)n[e]??delete n[e];o=V({},e,{params:f(n)}),t.params=f(t.params)}let s=n.resolve(o,t),c=e.hash||``;s.params=d(p(s.params));let u=ci(i,V({},e,{hash:$r(c),path:s.path})),m=a.createHref(u);return V({fullPath:u,hash:c,query:i===Ai?ji(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function _(e){return typeof e==`string`?si(r,e,l.value.path):V({},e)}function v(e,t){if(u!==e)return G(W.NAVIGATION_CANCELLED,{from:t,to:e})}function y(e){return x(e)}function re(e){return y(V(_(e),{replace:!0}))}function b(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=_(i):{path:i},i.params={}),V({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function x(e,t){let n=u=g(e),r=l.value,a=e.state,o=e.force,s=e.replace===!0,c=b(n,r);if(c)return x(V(_(c),{state:typeof c==`object`?V({},a,c.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&ui(i,r,n)&&(f=G(W.NAVIGATION_DUPLICATED,{to:d,from:r}),O(r,r,!0,!1)),(f?Promise.resolve(f):ae(d,r)).catch(e=>K(e)?K(e,W.NAVIGATION_GUARD_REDIRECT)?e:fe(e):D(e,d,r)).then(e=>{if(e){if(K(e,W.NAVIGATION_GUARD_REDIRECT))return x(V({replace:s},_(e.to),{state:typeof e.to==`object`?V({},a,e.to.state):a,force:o}),t||d)}else e=ce(d,r,!0,s,a);return oe(d,r,e),e})}function ie(e,t){let n=v(e,t);return n?Promise.reject(n):Promise.resolve()}function C(e){let t=k.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ae(e,t){let n,[r,i,a]=Ni(e,t);n=Mi(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(X(r,e,t))});let c=ie.bind(null,e,t);return n.push(c),j(n).then(()=>{n=[];for(let r of o.list())n.push(X(r,e,t));return n.push(c),j(n)}).then(()=>{n=Mi(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(X(r,e,t))});return n.push(c),j(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(U(r.beforeEnter))for(let i of r.beforeEnter)n.push(X(i,e,t));else n.push(X(r.beforeEnter,e,t));return n.push(c),j(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Mi(a,`beforeRouteEnter`,e,t,C),n.push(c),j(n))).then(()=>{n=[];for(let r of s.list())n.push(X(r,e,t));return n.push(c),j(n)}).catch(e=>K(e,W.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function oe(e,t,n){c.list().forEach(r=>C(()=>r(e,t,n)))}function ce(e,t,n,r,i){let o=v(e,t);if(o)return o;let s=t===J,c=B?history.state:{};n&&(r||s?a.replace(e.fullPath,V({scroll:s&&c&&c.scroll},i)):a.push(e.fullPath,i)),l.value=e,O(e,t,n,s),fe()}let w;function le(){w||=a.listen((e,t,n)=>{if(!A.listening)return;let r=g(e),i=b(r,A.currentRoute.value);if(i){x(V(i,{replace:!0,force:!0}),r).catch(H);return}u=r;let o=l.value;B&&Ti(Ci(o.fullPath,n.delta),xi()),ae(r,o).catch(e=>K(e,W.NAVIGATION_ABORTED|W.NAVIGATION_CANCELLED)?e:K(e,W.NAVIGATION_GUARD_REDIRECT)?(x(V(_(e.to),{force:!0}),r).then(e=>{K(e,W.NAVIGATION_ABORTED|W.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===hi.pop&&a.go(-1,!1)}).catch(H),Promise.reject()):(n.delta&&a.go(-n.delta,!1),D(e,r,o))).then(e=>{e||=ce(r,o,!1),e&&(n.delta&&!K(e,W.NAVIGATION_CANCELLED)?a.go(-n.delta,!1):n.type===hi.pop&&K(e,W.NAVIGATION_ABORTED|W.NAVIGATION_DUPLICATED)&&a.go(-1,!1)),oe(r,o,e)}).catch(H)})}let ue=Y(),T=Y(),E;function D(e,t,n){fe(e);let r=T.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function de(){return E&&l.value!==J?Promise.resolve():new Promise((e,t)=>{ue.add([e,t])})}function fe(e){return E||(E=!e,le(),ue.list().forEach(([t,n])=>e?n(e):t()),ue.reset()),e}function O(n,r,i,a){let{scrollBehavior:o}=e;if(!B||!o)return Promise.resolve();let s=!i&&Ei(Ci(n.fullPath,0))||(a||!i)&&history.state&&history.state.scroll||null;return t().then(()=>o(n,r,s)).then(e=>e&&Si(e)).catch(e=>D(e,n,r))}let pe=e=>a.go(e),me,k=new Set,A={currentRoute:l,listening:!0,addRoute:m,removeRoute:h,clearRoutes:n.clearRoutes,hasRoute:ne,getRoutes:te,resolve:g,options:e,push:y,replace:re,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:o.add,beforeResolve:s.add,afterEach:c.add,onError:T.add,isReady:de,install(e){e.component(`RouterLink`,ua),e.component(`RouterView`,_a),e.config.globalProperties.$router=A,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>S(l)}),B&&!me&&l.value===J&&(me=!0,y(a.location).catch(e=>{}));let t={};for(let e in J)Object.defineProperty(t,e,{get:()=>l.value[e],enumerable:!0});e.provide(Fr,A),e.provide(Ir,ee(t)),e.provide(Lr,l);let n=e.unmount;k.add(e),e.unmount=function(){k.delete(e),k.size<1&&(u=J,w&&w(),w=null,l.value=J,me=!1,E=!1),n()}}};function j(e){return e.reduce((e,t)=>e.then(()=>C(t)),Promise.resolve())}return A}var ya=(e,t)=>({default:()=>e?i(_e,e===!0?{}:e,t):t.default?.()}),ba=/(:\w+)\([^)]+\)/g,xa=/(:\w+)[?+*]/g,Sa=/:\w+/g;function Ca(e){let t=e?.meta.key??e.path.replace(ba,`$1`).replace(xa,`$1`).replace(Sa,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function wa(e,t){return e===t||t===J?!1:Ca(e)===Ca(t)?!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default):!0}function Ta(e){return Array.isArray(e)?e:[e]}function Ea(e){let t=[];for(let n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?Ta(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?Ta(n.onBeforeLeave):void 0});return or(...t)}var Da={scrollBehavior(e,t,n){let r=x(),i=z().options?.scrollBehaviorType??`auto`;return e.path.replace(/\/$/,``)===t.path.replace(/\/$/,``)?t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:Oa(e.hash),behavior:i}:!1:(typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1?!1:t===J?ka(e,t,n,i):new Promise(a=>{let o=()=>{requestAnimationFrame(()=>a(ka(e,t,n,i)))};r.hooks.hookOnce(`page:loading:end`,()=>{let e=r[`~transitionPromise`];e?e.then(o):o()})})}};function Oa(e){try{let t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function ka(e,t,n,r){return n||(e.hash?{el:e.hash,top:Oa(e.hash),behavior:wa(e,t)?r:`instant`}:{left:0,top:0})}var Aa={hashMode:!1,scrollBehaviorType:`auto`,...Da},ja=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Ma=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Na=e=>{let t=x();t.isHydrating?t.hooks.hookOnce(`app:suspense:resolve`,()=>{ja(()=>e())}):ja(()=>e())};function Pa(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function Fa(e,t=z()){let{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;let i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>Fa(e,t));t._routePreloaded.add(n);for(let e of r){let t=e.components?.default;if(typeof t!=`function`)continue;let n=Promise.resolve(t()).catch(()=>{}).finally(()=>i.splice(i.indexOf(n),1));i.push(n)}await Promise.all(i)}export{Zn as A,bt as B,gr as C,or as D,hr as E,Wn as F,ft as G,lt as H,rn as I,an as L,Mn as M,Gn as N,Vn as O,Kn as P,kt as R,br as S,mr as T,Me as U,xt as V,mt as W,wr as _,ja as a,xr as b,ya as c,Bi as d,zi as f,Er as g,Dr as h,Ma as i,Xn as j,Qn as k,_a as l,Tr as m,Fa as n,Aa as o,J as p,Na as r,Ea as s,Pa as t,va as u,Cr as v,z as w,yr as x,_r as y,_e as z};
@@ -1 +0,0 @@
1
- import{C as e,Jt as t,M as n,kt as r,q as i,w as a}from"./CUBdwZVs.js";import{r as o}from"./CxYeQaBW.js";var s={key:0,"font-mono":``},c=n({__name:`DisplayTimestamp`,props:{timestamp:{}},setup(n){let c=n;return(l,u)=>n.timestamp?(i(),a(`span`,s,t(r(o)(new Date(c.timestamp))),1)):e(``,!0)}});export{c as t};
@@ -1 +0,0 @@
1
- import{B as e,C as t,Et as n,Jt as r,K as i,M as a,Q as o,S as s,Z as c,at as l,b as u,h as d,kt as f,ot as p,q as m,qt as h,v as g,w as _,wt as v,x as y,xt as ee}from"./CUBdwZVs.js";import{a as b,c as x,d as S,f as C,i as te,l as w,o as ne,r as re,u as ie}from"./5tvbNeKa.js";import{t as T}from"./CxYeQaBW.js";import{t as E}from"./CqfNwh25.js";import{t as ae}from"./CBfhMqaX.js";function D(){return typeof window<`u`}function O(e){return oe(e)?(e.nodeName||``).toLowerCase():`#document`}function k(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function A(e){return((oe(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function oe(e){return D()?e instanceof Node||e instanceof k(e).Node:!1}function j(e){return D()?e instanceof Element||e instanceof k(e).Element:!1}function M(e){return D()?e instanceof HTMLElement||e instanceof k(e).HTMLElement:!1}function se(e){return!D()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof k(e).ShadowRoot}function N(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=L(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ce(e){return/^(table|td|th)$/.test(O(e))}function P(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var le=/transform|translate|scale|rotate|perspective|filter/,ue=/paint|layout|strict|content/,F=e=>!!e&&e!==`none`,de;function fe(e){let t=j(e)?L(e):e;return F(t.transform)||F(t.translate)||F(t.scale)||F(t.rotate)||F(t.perspective)||!me()&&(F(t.backdropFilter)||F(t.filter))||le.test(t.willChange||``)||ue.test(t.contain||``)}function pe(e){let t=z(e);for(;M(t)&&!I(t);){if(fe(t))return t;if(P(t))return null;t=z(t)}return null}function me(){return de??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),de}function I(e){return/^(html|body|#document)$/.test(O(e))}function L(e){return k(e).getComputedStyle(e)}function R(e){return j(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function z(e){if(O(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||se(e)&&e.host||A(e);return se(t)?t.host:t}function he(e){let t=z(e);return I(t)?e.ownerDocument?e.ownerDocument.body:e.body:M(t)&&N(t)?t:he(t)}function ge(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=he(e),i=r===e.ownerDocument?.body,a=k(r);if(i){let e=_e(a);return t.concat(a,a.visualViewport||[],N(r)?r:[],e&&n?ge(e):[])}else return t.concat(r,ge(r,[],n))}function _e(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ve(e){let t=L(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=M(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=C(n)!==a||C(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ye(e){return j(e)?e:e.contextElement}function B(e){let t=ye(e);if(!M(t))return x(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ve(t),o=(a?C(n.width):n.width)/r,s=(a?C(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var be=x(0);function xe(e){let t=k(e);return!me()||!t.visualViewport?be:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Se(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==k(e)?!1:t}function V(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ye(e),o=x(1);t&&(r?j(r)&&(o=B(r)):o=B(e));let s=Se(a,n,r)?xe(a):x(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=k(a),t=r&&j(r)?k(r):r,n=e,i=_e(n);for(;i&&r&&t!==n;){let e=B(i),t=i.getBoundingClientRect(),r=L(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=k(i),i=_e(n)}}return S({width:u,height:d,x:c,y:l})}function H(e,t){let n=R(e).scrollLeft;return t?t.left+n:V(A(e)).left+n}function Ce(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-H(e,n),y:n.top+t.scrollTop}}function we(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=A(r),s=t?P(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=x(1),u=x(0),d=M(r);if((d||!d&&!a)&&((O(r)!==`body`||N(o))&&(c=R(r)),d)){let e=V(r);l=B(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ce(o,c):x(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 Te(e){return Array.from(e.getClientRects())}function Ee(e){let t=A(e),n=R(e),r=e.ownerDocument.body,i=w(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=w(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+H(e),s=-n.scrollTop;return L(r).direction===`rtl`&&(o+=w(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var De=25;function Oe(e,t){let n=k(e),r=A(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=me();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=H(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<=De&&(a-=o)}else l<=De&&(a+=l);return{width:a,height:o,x:s,y:c}}function ke(e,t){let n=V(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=M(e)?B(e):x(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ae(e,t,n){let r;if(t===`viewport`)r=Oe(e,n);else if(t===`document`)r=Ee(A(e));else if(j(t))r=ke(t,n);else{let n=xe(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return S(r)}function je(e,t){let n=z(e);return n===t||!j(n)||I(n)?!1:L(n).position===`fixed`||je(n,t)}function Me(e,t){let n=t.get(e);if(n)return n;let r=ge(e,[],!1).filter(e=>j(e)&&O(e)!==`body`),i=null,a=L(e).position===`fixed`,o=a?z(e):e;for(;j(o)&&!I(o);){let t=L(o),n=fe(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||N(o)&&!n&&je(e,o))?r=r.filter(e=>e!==o):i=t,o=z(o)}return t.set(e,r),r}function Ne(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?P(t)?[]:Me(t,this._c):[].concat(n),r],o=Ae(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=Ae(t,a[e],i);s=w(n.top,s),c=ie(n.right,c),l=ie(n.bottom,l),u=w(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Pe(e){let{width:t,height:n}=ve(e);return{width:t,height:n}}function Fe(e,t,n){let r=M(t),i=A(t),a=n===`fixed`,o=V(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=x(0);function l(){c.x=H(i)}if(r||!r&&!a)if((O(t)!==`body`||N(i))&&(s=R(t)),r){let e=V(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?Ce(i,s):x(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 U(e){return L(e).position===`static`}function Ie(e,t){if(!M(e)||L(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return A(e)===n&&(n=n.ownerDocument.body),n}function Le(e,t){let n=k(e);if(P(e))return n;if(!M(e)){let t=z(e);for(;t&&!I(t);){if(j(t)&&!U(t))return t;t=z(t)}return n}let r=Ie(e,t);for(;r&&ce(r)&&U(r);)r=Ie(r,t);return r&&I(r)&&U(r)&&!fe(r)?n:r||pe(e)||n}var Re=async function(e){let t=this.getOffsetParent||Le,n=this.getDimensions,r=await n(e.floating);return{reference:Fe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ze(e){return L(e).direction===`rtl`}var Be={convertOffsetParentRelativeRectToViewportRelativeRect:we,getDocumentElement:A,getClippingRect:Ne,getOffsetParent:Le,getElementRects:Re,getClientRects:Te,getDimensions:Pe,getScale:B,isElement:j,isRTL:ze},Ve=b,He=ne,Ue=te,We=(e,t,n)=>{let r=new Map,i={platform:Be,...n},a={...i.platform,_c:r};return re(e,t,{...i,platform:a})},Ge=Object.assign(a({__name:`GraphHoverView`,props:{hoverX:{},hoverY:{}},setup(e){let{hoverX:t,hoverY:r}=n(e),i=l(`hoverElement`),a=ee(0),c=ee(0);return p([t,r],([e,t])=>{We({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e,right:e,top:t,bottom:t}}},i.value,{placement:`right-start`,middleware:[Ue(),He(),Ve({mainAxis:8,alignmentAxis:8})]}).then(({x:e,y:t})=>{a.value=e,c.value=t})}),(e,t)=>(m(),s(g,{to:`body`},[y(`div`,{ref_key:`hoverElement`,ref:i,fixed:``,"z-panel-content":``,"pointer-events-none":``,style:h({left:`${a.value}px`,top:`${c.value}px`})},[o(e.$slots,`default`)],4)]))}}),{__name:`DisplayGraphHoverView`});function Ke(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 qe,Je,Ye,W,G,K=1,Xe;function Ze(e,t,n,r,i){if(!Array.isArray(e))return e;let a=window.devicePixelRatio||1;if(qe!==t||Je!==a||Ye!==i){let n=Math.round(64*a)/64;K=i,K=Math.log2(K),K-=Math.floor(K);let r=K,o=Math.min(1,8*r);K=2**K;let s=8*Math.SQRT2/K;qe=t,Je=a,Ye=i,W||=document.createElement(`canvas`),G||=W.getContext(`2d`),W.width=W.height=Math.round(64*n),G.scale(n,n),G.fillStyle=e[0],G.fillRect(0,0,64,64),G.globalAlpha=.25,G.fillStyle=e[1],G.fillRect(0,0,64,64),G.globalAlpha=.67,G.strokeStyle=e[1],G.beginPath();for(let e=0;e<=64;e+=16)G.moveTo(e-32,e+32),G.lineTo(e+32,e-32);if(G.lineWidth=s*(1-(o-r)/2),G.stroke(),o+r>0){G.beginPath();for(let e=8;e<64;e+=16)G.moveTo(e-32,e+32),G.lineTo(e+32,e-32);G.lineWidth=s*(o+r)/2,G.stroke()}Xe=t.createPattern(W,`repeat`),K/=n}return n/=64*K*a,n-=Math.floor(n),n*=64*K*a,Xe.setTransform(new DOMMatrix([K,0,0,K,n,r])),Xe}function Qe(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 $e(e){return t=>t.id&&e[t.id]||t.color}function et(e,t=1,n=1){let r={};return tt(r,e,0,Math.PI*2,t,n),$e(r)}function tt(e,t,n,r,i=1,a=1){let o=t.size;e[t.id]=Ke(n+r/2,i,a);for(let s of t.children){let t=s.size/o*r;tt(e,s,n,t,i,a),n+=t}}var nt=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function rt(e=16,t=nt){let n=``,r=e,i=t.length;for(;r--;)n+=t[Math.random()*i|0];return n}function it(e,t,n=(e,t)=>t.size-e.size){if(e.__nanovis)return e;let r={...e};return r.id||=rt(),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=>it(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 at(e){return e.children.length===0?1:Math.max(...e.children.map(e=>at(e)))+1}var ot=/\bFirefox\//.test(navigator.userAgent),st;function ct(e){return st?st.format(e):`${e}`}function q(){return(window.performance||Date).now()}function lt(e){let t=e.toFixed(1).split(`.`,2);return`${ct(+t[0])}.${t[1]}`}function ut(e){return e===1?`1 byte`:e<1024?`${ct(e)} bytes`:e<1024*1024?`${lt(e/1024)} kb`:e<1024*1024*1024?`${lt(e/(1024*1024))} mb`:`${lt(e/(1024*1024*1024))} gb`}function dt(e,t,n,r,i,a){if(ot){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 ft(e){return window.addEventListener(`wheel`,e,{passive:!1}),()=>window.removeEventListener(`wheel`,e)}function pt(e){return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)}try{st=new Intl.NumberFormat}catch{}var mt=()=>({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},ht={fallback:`#CCC`,stroke:`#0008`,text:`#222`,hover:`#fff5`,shadow:`#0008`,fg:`#fff`,bg:`#222`},gt=46,_t=`14px sans-serif`,vt=`bold ${_t}`,yt=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=et(e),getText:r=()=>void 0,getSubtext:i=()=>void 0}=this.options;this.palette={...ht,...t.palette},this.el=document.createElement(`div`),this.canvas=document.createElement(`canvas`),this.c=this.canvas.getContext(`2d`),this.root=e,this.maxDepth=at(e),this.disposables=[],this.events=mt(),this.getColor=n,this.getText=r,this.getSubtext=i,this.setFont(_t),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(gt)}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,bt=5,xt=.01,St=1e3,Ct=class extends yt{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(ft(e=>{let t=e.deltaX,n=e.deltaY,r=q(),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(pt(()=>this.resize())),this.mainEl.append(this.canvas),this.el.append(this.mainEl)}tick(){let e=(q()-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*xt),r=Math.min(this.totalBytes,r+e.size*xt),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-St>>1,this.zoomedOutWidth=this.zoomedOutMin+St,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)+bt,d=t+Y/2,f=this.getText(e)||``,p=this.getSubtext(e)||``,m,h=0,g=s+o-u,_=Ze(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(vt)):(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(_t),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||dt(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=q():this.animationStart=0,this.invalidate()}updateHover(e){let t=this.hitTestNode(e);this.changeHoveredNode(t),this.events.emit(`hover`,t,e)}};function wt(e,t){for(;t;){if(t===e)return!0;t=t.parent}return!1}function Tt(e,t,n){if(e===t)return;let r=t.parent,i=r.size||1,a=0;Tt(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 Et={};function Dt(e){return Et[e]||(Et[e]=400*Math.log(1+Math.log(1+e/8))),Et[e]}var X=-Math.PI/2,Ot=class extends yt{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(pt(()=>this.resize())),this.disposables.push(ft(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(Dt(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(vt),this.c.textAlign=`center`,this.c.fillText(this.getSubtext(this.targetNode)??ut(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=Ze(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=(q()-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 Dt(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=q()),wt(this.animatedNode,this.currentNode)){let e={depth_:this.animatedDepth,startAngle_:this.animatedStartAngle,sweepAngle_:this.animatedSweepAngle};Tt(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(wt(this.currentNode,this.animatedNode)){let e={depth_:0,startAngle_:X,sweepAngle_:Math.PI*2};Tt(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,kt=2*Z,$=Q+Z;function At(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>kt&&y>$?At(t.children,g+Z,_+Q,v-kt,y-$):[]}),h+=c}t=d,i>=s?(n+=m,i-=m):(r+=m,s-=m)}})(0,t,n,r,i),a}var jt=class extends yt{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(ft(e=>this.updateHover(e))),this.disposables.push(pt(()=>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=(q()-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=At([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|(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=Ze(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(dt(this.c,this.palette.stroke,n+.5,i+.5,a,o),o>=Q){this.c.fillStyle=this.palette.text;let e=a-kt,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=At([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=q(),this.animationSource=this.currentNode),this.animationTarget=e,this.currentNode=e||this.searchFor([this.layers.base],this.currentNode.node),this.updateCurrentLayout(),this.invalidate())}},Mt={flex:`~ gap-1 items-center wrap`},Nt={key:0,"i-ph-arrow-right-bold":``,"text-sm":``,"op-fade":``},Pt=[`onClick`],Ft=Object.assign(a({__name:`NavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(e,{emit:n}){let i=e,a=n,o=u(()=>{let e=[],t=i.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(e,n)=>(m(),_(`div`,Mt,[(m(!0),_(d,null,c(o.value,(e,n)=>(m(),_(d,{key:e.id},[n>0?(m(),_(`div`,Nt)):t(``,!0),y(`button`,{hover:`bg-active`,rounded:``,px1:``,onClick:t=>a(`select`,e)},[y(`span`,null,r(e.text||e.id),1)],8,Pt)],64))),128))]))}}),{__name:`ChartNavBreadcrumb`});function It(t){let{data:n,nameKey:r,sizeKey:a,rootText:o,nodeType:s,graphOptions:c,onUpdate:l}=t,d=v(void 0),m=v(void 0),h=ee(void 0),g=v(void 0),_,y=u(()=>{if(t.tree)return t.tree.value;let e=f(n),i=new Map,c=0,l={id:`~root`,text:o,size:0,sizeSelf:0,children:[]};if(!e?.length)return{map:i,root:l,maxDepth:c};let u=[];u.unshift(()=>{l.size+=l.children.reduce((e,t)=>e+t.size,0),l.subtext=E(l.size).join(` `),l.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function d(e,t,n,r,a){if(i.has(t))return i.get(t);a>c&&(c=a);let o={id:t,text:n,size:0,sizeSelf:0,children:[],meta:{...e,path:n,type:`folder`},parent:r};return i.set(t,o),r.children.push(o),u.unshift(()=>{let t=o.sizeSelf;o.size+=o.children.reduce((e,t)=>e+t.size,0),o.subtext=E(o.size).join(` `),o.children.length&&t/o.size>.1&&o.children.push({id:`${o.id}-self`,text:``,size:t,sizeSelf:t,subtext:E(t).join(` `),children:[],meta:{...e,path:``,type:s},parent:o}),o.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),o}function p(e){let t=e[r].split(`/`).filter(Boolean),n=l,o=``,c=0;t.forEach((l,u)=>{if(o+=(o?`/`:``)+l,c++,u===t.length-1){let t={id:e[r],text:l,size:e[a],sizeSelf:e[a],subtext:E(e[a]).join(` `),children:[],meta:{...e,path:l,type:s}};n.children.push(t),i.set(e[r],t)}else n=d(e,o,l,n,c)})}return e.forEach(p),u.forEach(e=>e()),{map:i,root:l,maxDepth:c}}),b=u(()=>({animate:ae.value.chartAnimation,palette:{stroke:T.value?`#222`:`#555`,fg:T.value?`#fff`:`#000`,bg:T.value?`#111`:`#fff`},getColor:et(y.value.root,T.value?.8:.9,T.value?1:1.1),getSubtext:e=>e.subtext,...c}));function x(e,t){h.value=e?.meta,e?.children.length||(e=e?.parent),g.value?.select(e,t)}function S(){_?.(),m.value=y.value.root,l?.(),e(()=>{let e=h.value&&y.value.map.get(h.value[r])||null;e&&x(e,!1)}),_=()=>{g.value?.dispose(),g.value=void 0,h.value=void 0}}return e(()=>{p(()=>[y.value,b.value],()=>{S()},{deep:!0,immediate:!1}),S()}),i(()=>{_?.()}),{tree:y,graph:g,chartOptions:b,nodeHover:d,nodeSelected:m,selectedNode:h,selectNode:x,buildGraph:S}}export{jt as a,Ge as c,Ot as i,Ft as n,Qe as o,Ct as r,it as s,It as t};
@@ -1 +0,0 @@
1
- import{A as e,Jt as t,M as n,b as r,kt as i,lt as a,q as o,w as s,x as c,xt as l}from"./CUBdwZVs.js";import{C as u,w as d}from"./BTfiKBAm.js";import{t as f}from"./CJdYjM__.js";import{i as p,l as m,o as h}from"./BqiFImA_.js";import{O as g,w as _}from"./D8ugdtv-.js";import{n as v,r as y,t as b}from"./zt8ARaaw.js";import{t as x}from"./bqLEejUC.js";import{n as S,t as C}from"./D1iwru-F2.js";var w={flex:`~ col gap-2`,p4:``},T={flex:``,pb2:``},E={"w-8":``,"text-right":``,"text-xs":``,op50:``},D={"overflow-hidden":``,"text-ellipsis":``,"break-all":``,"line-clamp-2":``},O=Object.assign(n({__name:`FlatList`,props:{plugins:{}},setup(n){let r=u();return(l,u)=>{let d=x,p=f;return o(),s(`div`,w,[e(b,{items:n.plugins,"key-prop":`plugin_id`},{default:a(({item:n})=>[c(`div`,T,[e(p,{to:{path:i(r).path,query:{plugin:n.plugin_id}},"font-mono":``,border:`~ rounded base`,"w-full":``,px2:``,py1:``,"text-sm":``,hover:`bg-active`,flex:`~ gap-4 items-center`},{default:a(()=>[c(`div`,E,` #`+t(n.plugin_id),1),c(`span`,D,[e(d,{name:n.name},null,8,[`name`])])]),_:2},1032,[`to`])])]),_:1},8,[`items`])])}}}),{__name:`PluginsFlatList`}),k={relative:``,"min-h-screen":``},A={sticky:``,"left-4":``,"right-4":``,"top-4":``,"z-panel-nav":``,"p-4":``},j={fixed:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},M={op50:``},N=n({__name:`plugins`,props:{session:{}},setup(n){let i=n,a=u(),f=d(),b=l({search:a.query.search||``,selected:a.query.plugin_types?S(a.query.plugin_types):null}),x=r(()=>[...h.filter(e=>i.session?.meta?.plugins?.some(t=>e.match.test(t.name))),p]),w=r(()=>{let e=i.session?.meta?.plugins;return b.value.selected&&(e=e.filter(e=>{let t=m(e.name);return b.value.selected.includes(t.name)})),e}),T=_(()=>w.value,()=>new y(w.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),E=r(()=>b.value.search?T.value.search(b.value.search).map(e=>e.item):w.value);return g(b.value,e=>{let t={...a.query,search:e.search||void 0,plugin_types:e.selected||void 0};f.replace({query:C(t)})},{debounce:500}),(r,i)=>{let a=v,l=O;return o(),s(`div`,k,[c(`div`,A,[e(a,{modelValue:b.value,"onUpdate:modelValue":i[0]||=e=>b.value=e,rules:x.value},null,8,[`modelValue`,`rules`])]),e(l,{plugins:E.value??[]},null,8,[`plugins`]),c(`div`,j,[c(`span`,M,t(E.value.length)+` of `+t(n.session?.meta?.plugins?.length||0),1)])])}}});export{N as default};