@vitejs/devtools-rolldown 0.1.22 → 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 (88) hide show
  1. package/dist/nitro.json +1 -1
  2. package/dist/public/200.html +1 -1
  3. package/dist/public/404.html +1 -1
  4. package/dist/public/_nuxt/-nSv7b_c2.js +1 -0
  5. package/dist/public/_nuxt/{DGzTCPXE.js → B6PLDwAm.js} +2 -2
  6. package/dist/public/_nuxt/BGfhRWSX.js +1 -0
  7. package/dist/public/_nuxt/BNZzKgvO.js +7 -0
  8. package/dist/public/_nuxt/BNrUSHd9.js +1 -0
  9. package/dist/public/_nuxt/BRoY9F4B.js +1 -0
  10. package/dist/public/_nuxt/Ba06j5HF.js +1 -0
  11. package/dist/public/_nuxt/BdES0TNB.js +1 -0
  12. package/dist/public/_nuxt/C4TkllWS.js +1 -0
  13. package/dist/public/_nuxt/C9xBafiu.js +1 -0
  14. package/dist/public/_nuxt/CGpzF1Fi.js +1 -0
  15. package/dist/public/_nuxt/CSmrzcuw.js +1 -0
  16. package/dist/public/_nuxt/CZ4Hed_B.js +1 -0
  17. package/dist/public/_nuxt/CiUxnt4q.js +1 -0
  18. package/dist/public/_nuxt/CtfgqrR6.js +1 -0
  19. package/dist/public/_nuxt/CwkL5c9p.js +1 -0
  20. package/dist/public/_nuxt/D0ELUVmr.js +1 -0
  21. package/dist/public/_nuxt/D2fxAMpL.js +1 -0
  22. package/dist/public/_nuxt/D5Xmlx1F.js +1 -0
  23. package/dist/public/_nuxt/D7E3leYJ.js +1 -0
  24. package/dist/public/_nuxt/DJiAfyJ9.js +1 -0
  25. package/dist/public/_nuxt/DS9O9jUU.js +1 -0
  26. package/dist/public/_nuxt/DYWABjKK.js +1 -0
  27. package/dist/public/_nuxt/DiwqOTKG.js +1 -0
  28. package/dist/public/_nuxt/DuyiIaXF.js +1 -0
  29. package/dist/public/_nuxt/FMlLtEkh.js +1 -0
  30. package/dist/public/_nuxt/I45WLXVn.js +1 -0
  31. package/dist/public/_nuxt/{DUEAe2mZ.js → LBCmYgDk.js} +1 -1
  32. package/dist/public/_nuxt/MF_ZggB1.js +1 -0
  33. package/dist/public/_nuxt/WhNLRjQY.js +1 -0
  34. package/dist/public/_nuxt/_z5g9W2Q.js +1 -0
  35. package/dist/public/_nuxt/a5P2pi4b.js +1 -0
  36. package/dist/public/_nuxt/builds/latest.json +1 -1
  37. package/dist/public/_nuxt/builds/meta/4b89da51-8485-4b1c-9d33-36610376f0b4.json +1 -0
  38. package/dist/public/_nuxt/dedBpiqn.js +1 -0
  39. package/dist/public/_nuxt/{entry.CnoZstXg.css → entry.CuajcsxN.css} +1 -1
  40. package/dist/public/_nuxt/error-404.3xPYxf32.css +1 -0
  41. package/dist/public/_nuxt/error-500.CUtwZWQI.css +1 -0
  42. package/dist/public/_nuxt/rtwgPkwM2.js +1 -0
  43. package/dist/public/index.html +1 -1
  44. package/package.json +7 -7
  45. package/dist/public/_nuxt/5tvbNeKa.js +0 -1
  46. package/dist/public/_nuxt/B2xjE9S9.js +0 -1
  47. package/dist/public/_nuxt/B7_BsZam2.js +0 -1
  48. package/dist/public/_nuxt/BDcpuUbg.js +0 -1
  49. package/dist/public/_nuxt/BM8UMmvc.js +0 -1
  50. package/dist/public/_nuxt/BQdCEVtN.js +0 -1
  51. package/dist/public/_nuxt/BT76Oq15.js +0 -1
  52. package/dist/public/_nuxt/BWhQiJfC2.js +0 -1
  53. package/dist/public/_nuxt/BZZwdm9H2.js +0 -1
  54. package/dist/public/_nuxt/BgSZqMub.js +0 -1
  55. package/dist/public/_nuxt/Bi5REHPk.js +0 -1
  56. package/dist/public/_nuxt/BywRM_M7.js +0 -1
  57. package/dist/public/_nuxt/CCApufKY2.js +0 -1
  58. package/dist/public/_nuxt/COhEYQbe.js +0 -1
  59. package/dist/public/_nuxt/CTNFxt3v.js +0 -1
  60. package/dist/public/_nuxt/CXpJVZ-W.js +0 -1
  61. package/dist/public/_nuxt/CY_j28gw.js +0 -1
  62. package/dist/public/_nuxt/Cf2rORiJ.js +0 -1
  63. package/dist/public/_nuxt/Cm8gy9GJ.js +0 -1
  64. package/dist/public/_nuxt/Crmmgcgo.js +0 -1
  65. package/dist/public/_nuxt/D1flKd96.js +0 -1
  66. package/dist/public/_nuxt/D1igyLjg.js +0 -1
  67. package/dist/public/_nuxt/D3O7sl5Q.js +0 -1
  68. package/dist/public/_nuxt/DAfG6Q5x.js +0 -3
  69. package/dist/public/_nuxt/DGp5TtxR.js +0 -1
  70. package/dist/public/_nuxt/DIY3Np8j.js +0 -1
  71. package/dist/public/_nuxt/DMpb9tLN2.js +0 -1
  72. package/dist/public/_nuxt/DfB5JIVQ.js +0 -4
  73. package/dist/public/_nuxt/JqkF4g2X.js +0 -1
  74. package/dist/public/_nuxt/Tbnz_kEc.js +0 -1
  75. package/dist/public/_nuxt/UXZdwVQx2.js +0 -1
  76. package/dist/public/_nuxt/builds/meta/aadc6ea3-cb4b-43e9-ad21-d65e7418491c.json +0 -1
  77. package/dist/public/_nuxt/error-404.cCAauWc2.css +0 -1
  78. package/dist/public/_nuxt/error-500.BFrkx7fE.css +0 -1
  79. package/dist/public/_nuxt/qKmu99_C.js +0 -1
  80. package/dist/public/_nuxt/qNFXE2Qb.js +0 -1
  81. package/dist/public/_nuxt/qTund2SX.js +0 -2
  82. package/dist/public/_nuxt/s8CxCfpb.js +0 -1
  83. package/dist/public/_nuxt/uoAMmAT1.js +0 -1
  84. package/dist/public/_nuxt/xgeU2imy.js +0 -1
  85. /package/dist/public/_nuxt/{CqfNwh25.js → BkPBhH2x.js} +0 -0
  86. /package/dist/public/_nuxt/{DoJ6DaKu.js → DWG474Ej.js} +0 -0
  87. /package/dist/public/_nuxt/{qIAw3Eg02.js → DYINlKP5.js} +0 -0
  88. /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/qTund2SX.js"}}</script><title>Rolldown DevTools</title><link rel="stylesheet" href="/__devtools-rolldown/_nuxt/entry.CnoZstXg.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/qTund2SX.js"><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/DfB5JIVQ.js"><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/DAfG6Q5x.js"><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/DGp5TtxR.js"><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/5tvbNeKa.js"><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/D1igyLjg.js"><script type="module" src="/__devtools-rolldown/_nuxt/qTund2SX.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:"aadc6ea3-cb4b-43e9-ad21-d65e7418491c",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1778476894330,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.22",
4
+ "version": "0.1.23",
5
5
  "description": "DevTools for Rolldown",
6
6
  "author": "VoidZero Inc.",
7
7
  "license": "MIT",
@@ -29,27 +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",
32
+ "@rolldown/debug": "^1.0.1",
33
33
  "birpc": "^4.0.0",
34
34
  "cac": "^7.0.0",
35
35
  "d3-shape": "^3.2.0",
36
+ "devframe": "^0.2.2",
36
37
  "diff": "^9.0.0",
37
38
  "get-port-please": "^3.2.0",
38
- "h3": "^1.15.11",
39
+ "h3": "2.0.1-rc.22",
39
40
  "logs-sdk": "^0.0.6",
40
41
  "mlly": "^1.8.2",
41
42
  "mrmime": "^2.0.1",
42
43
  "p-limit": "^7.3.0",
43
44
  "pathe": "^2.0.3",
44
- "publint": "^0.3.20",
45
+ "publint": "^0.3.21",
45
46
  "split2": "^4.2.0",
46
47
  "tinyglobby": "^0.2.16",
47
48
  "unconfig": "^7.5.0",
48
49
  "unstorage": "^1.17.5",
49
50
  "vue-virtual-scroller": "^3.0.3",
50
- "ws": "^8.20.0",
51
- "@vitejs/devtools-kit": "0.1.22",
52
- "devframe": "0.1.22"
51
+ "ws": "^8.20.1",
52
+ "@vitejs/devtools-kit": "0.1.23"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/split2": "^4.2.3",
@@ -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{C as e,Gt as t,Jt as n,M as r,Q as i,b as a,k as o,q as s,w as c,x as l}from"./DAfG6Q5x.js";import{y as u}from"./DGp5TtxR.js";import{t as d}from"./CqfNwh25.js";var f={"text-xs":``,op75:``,"ml-0.4":``},p={key:0,"text-xs":``,ml1:``,"op-fade":``,border:`l base`,pl1:``},m=1e3,h=Object.assign(r({__name:`FileSizeBadge`,props:{bytes:{},colorize:{type:Boolean,default:!0},digits:{default:2},percent:{type:Boolean,default:!0},total:{},icon:{},percentRatio:{default:.5}},setup(r){let u=r,h=m**2,g=[[80*m,`color-scale-neutral`],[500*m,`color-scale-low`],[1*h,`color-scale-medium`],[10*h,`color-scale-high`],[20*h,`color-scale-critical`]],_=a(()=>{if(!u.colorize)return g[0];let e=u.bytes||0;for(let[t,n]of g)if(e<t)return n;return g.at(-1)?.[1]}),v=a(()=>u.total?(u.bytes||0)*100/u.total:0),y=a(()=>d(u.bytes||0,u.digits));return(a,u)=>r.bytes?(s(),c(`div`,{key:0,class:t([_.value,`px-0.4em py-0.2em font-mono line-height-none bg-gray:5 dark:bg-gray:4 flex items-center`])},[r.icon?(s(),c(`div`,{key:0,class:t([r.icon,`mr-1`])},null,2)):e(``,!0),o(` `+n(y.value[0]),1),l(`span`,f,n(y.value[1]),1),i(a.$slots,`after`,{},()=>[r.percent&&v.value>r.percentRatio?(s(),c(`span`,p,n(+v.value.toFixed(1))+`%`,1)):e(``,!0)])],2)):e(``,!0)}}),{__name:`DisplayFileSizeBadge`}),g=u(`rolldown-devtools-settings`,{codeviewerLineWrap:!1,codeviewerDiffPanelSize:50,flowExpandResolveId:!0,flowExpandTransforms:!0,flowExpandLoads:!0,flowExpandChunks:!0,flowExpandAssets:!0,flowShowAllTransforms:!1,flowShowAllLoads:!1,moduleGraphViewType:`list`,assetViewType:`list`,chartAnimation:!0,moduleDetailsViewType:`flow`,pluginDetailsViewType:`flow`,pluginDetailsTableFields:null,pluginDetailsModuleTypes:null,pluginDetailsDurationSortType:``,pluginDetailSelectedHook:``,chunkViewType:`list`,pluginDetailsShowType:`all`,packageViewType:`table`,packageSizeSortType:``},{mergeDefaults:!0});function _(e){let t=new Map;return new Proxy(e.value,{get(e,n){return t.has(n)||t.set(n,a({get(){return e[n]},set(t){e[n]=t}})),t.get(n)}})}var v=_(g);export{v as n,h as r,g as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./DfB5JIVQ.js";import{$ as t,A as n,C as r,Gt as i,Jt as a,M as o,S as s,Z as c,b as l,h as u,k as d,kt as f,lt as p,ot as m,q as h,w as g,x as _,xt as v,yt as y}from"./DAfG6Q5x.js";import{C as b,w as x}from"./D1igyLjg.js";import{D as S,d as C,u as ee,x as w}from"./DGp5TtxR.js";import{a as T,n as te,r as E}from"#entry";import{t as D}from"./Bi5REHPk.js";import{r as O,t as k}from"./xgeU2imy.js";import{r as A,t as j}from"./B2xjE9S9.js";import{n as M,r as N,t as P}from"./qKmu99_C.js";import{a as ne,c as F,n as I,t as re}from"./BM8UMmvc.js";import{t as L}from"./Crmmgcgo.js";import{t as ie}from"./D1flKd96.js";var R={flex:`~ row gap-1`,"of-hidden":``},z={key:0,flex:`~ row gap-1`,"ws-nowrap":``},B={key:1},V={p2:``,flex:`~ col gap-1`},H=Object.assign(o({__name:`Importers`,props:{package:{},session:{},showVersion:{type:Boolean}},setup(e){let i=e,a=l(()=>{let e=new Map;return i.package.files.filter(e=>!!e.importers).flatMap(e=>e.importers).filter(e=>!e.path.startsWith(i.package?.dir??``)).forEach(t=>{e.set(t.path,t)}),Array.from(e.values())});return(i,o)=>{let l=k,d=t(`VMenu`);return h(),g(`div`,R,[a.value[0]?(h(),g(`div`,z,[n(l,{id:a.value[0].path,session:e.session,link:``},null,8,[`id`,`session`]),a.value[0].version&&e.showVersion?(h(),s(O,{key:0,text:a.value[0].version,as:`span`},null,8,[`text`])):r(``,!0)])):(h(),g(`span`,B,` - `)),a.value.length>1?(h(),s(d,{key:2,delay:{show:200,hide:0},"flex-none":``},{popper:p(()=>[_(`div`,V,[(h(!0),g(u,null,c(a.value,t=>(h(),g(`div`,{key:t.path,flex:`~ row gap-1 items-center nowrap`,"w-max":``},[n(l,{id:t.path,session:e.session,"ws-nowrap":``,"flex-1":``,"disable-tooltip":``,link:``},null,8,[`id`,`session`]),t.version&&e.showVersion?(h(),s(O,{key:0,text:`v${t.version}`,as:`span`},null,8,[`text`])):r(``,!0)]))),128))])]),default:p(()=>[n(O,{text:`+${a.value.length}`,color:100,class:`text-xs rounded px1`},null,8,[`text`])]),_:1})):r(``,!0)])}}}),{__name:`PackagesImporters`}),U={role:`table`,"min-w-max":``,border:`~ base rounded-xl`},W={role:`row`,class:`border-b border-base`,flex:`~ row`},G=[`title`],K={key:0,"font-mono":``},q={key:0,title:`Package version`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"min-w40":``,"ws-nowrap":``,"text-left":``,"py1.5":``,px2:``,"font-600":``},J={flex:`~ row gap1 items-center justify-end`,"w-full":``,relative:``,pr2:``},Y={key:0,role:`cell`,"font-mono":``,"flex-none":``,w80:``,"py1.5":``,px2:``,"ws-nowrap":``,"text-sm":``,"overflow-hidden":``,truncate:``},X={"font-mono":``,"text-sm":``},Z={role:`cell`,flex:`~ items-center justify-end`,"flex-none":``,"font-mono":``,"py1.5":``,px2:``,"text-sm":``,"min-w40":``,op80:``},ae={p2:``,flex:`~ col gap-1`},oe={w24:``,"inline-flex":``},se={role:`cell`,flex:`~ items-center`,"flex-1":``,"font-mono":``,"py1.5":``,pl20:``,pr2:``,"text-sm":``,op80:``},ce={key:1},Q=Object.assign(o({__name:`Table`,props:{packages:{},session:{},disableSizeSort:{type:Boolean,default:!1},groupView:{type:Boolean,default:!1}},setup(e){let t=b(),{state:o,next:l}=C([``,`desc`,`asc`],{initialValue:j.value.packageSizeSortType});function m(){l(),j.value.packageSizeSortType=o.value}return(l,v)=>{let y=L,b=A,x=k,S=H,C=D;return h(),g(`div`,U,[_(`div`,W,[_(`div`,{title:e.groupView?`Package`:`Bundled packages`,role:`columnheader`,"rounded-tl-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,px2:``,"font-600":``,class:i([e.groupView?`min-w40`:`min-w80`])},[e.groupView?(h(),g(`div`,K,[n(y,{name:e.packages?.[0]?.name},null,8,[`name`])])):(h(),g(u,{key:1},[d(` Package `)],64))],10,G),e.groupView?r(``,!0):(h(),g(`div`,q,` Version `)),_(`div`,{title:`Transformed code size`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,"font-600":``,"min-w40":``,class:i([e.groupView?`px2`:`pl2`])},[_(`button`,J,[v[0]||=d(` Size `,-1),e.disableSizeSort?r(``,!0):(h(),g(`span`,{key:0,"w-6":``,"h-6":``,"rounded-full":``,"cursor-pointer":``,hover:`bg-active`,flex:`~ items-center justify-center`,onClick:m},[_(`i`,{"text-xs":``,class:i([f(o)===`asc`?`i-ph-arrow-up-duotone`:`i-ph-arrow-down-duotone`,f(o)?`op100 text-primary`:`op50`])},null,2)]))])],2),v[1]||=_(`div`,{title:`Importers`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,pl20:``,pr2:``,"font-600":``,"min-w50":``},` Importers `,-1)]),e.packages.length?(h(),s(P,{key:0,role:`rowgroup`,items:e.packages,"key-prop":`dir`},{default:p(({item:o,index:s})=>[n(C,{role:`row`,flex:`~ row`,class:i([`border-base border-b-1 border-dashed`,[s===e.packages.length-1?`border-b-0`:``]]),to:{path:f(t).path,query:{package:`${o.name}@${o.version}`}}},{default:p(()=>[n(f(T),{triggers:[`hover`],delay:1200,disabled:o.name.length<30},{popper:p(()=>[_(`span`,X,a(o.name),1)]),default:p(()=>[e.groupView?r(``,!0):(h(),g(`div`,Y,[n(y,{name:o.name},null,8,[`name`])]))]),_:2},1032,[`disabled`]),_(`div`,{role:`cell`,flex:`~ items-center`,"text-left":``,"flex-none":``,"font-mono":``,"py1.5":``,px2:``,"text-sm":``,"min-w40":``,op80:``,class:i({"text-primary":o.duplicated})},a(o.version),3),_(`div`,Z,[n(f(E),{delay:{show:200,hide:0}},{popper:p(()=>[_(`div`,ae,[(h(!0),g(u,null,c(o.files.filter(e=>!!e.transformedCodeSize),t=>(h(),g(`div`,{key:t.path,flex:`~ row gap-1 items-center nowrap`,"w-max":``},[_(`span`,oe,[n(b,{bytes:t.transformedCodeSize},null,8,[`bytes`])]),n(x,{id:t.path,session:e.session,"ws-nowrap":``,"flex-1":``,"disable-tooltip":``,link:``,cwd:o.dir},null,8,[`id`,`session`,`cwd`])]))),128))])]),default:p(()=>[n(b,{bytes:o.transformedCodeSize},null,8,[`bytes`])]),_:2},1024)]),_(`div`,se,[n(S,{package:o,session:e.session,"show-version":e.groupView},null,8,[`package`,`session`,`show-version`])])]),_:2},1032,[`class`,`to`])]),_:1},8,[`items`])):(h(),g(`div`,ce,[...v[2]||=[_(`div`,{p4:``},[_(`div`,{"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},[_(`p`,null,` No data `)])],-1)]]))])}}}),{__name:`PackagesTable`}),le={key:1,p4:``},ue=Object.assign(o({__name:`Duplicated`,props:{packages:{},session:{}},setup(e){let t=e,r=l(()=>t.packages.filter(e=>e.duplicated)),i=l(()=>r.value.reduce((e,t)=>(e[t.name]=[...e[t.name]||[],t],e),{}));return(t,a)=>{let o=Q;return r.value.length?(h(!0),g(u,{key:0},c(i.value,(t,r)=>(h(),g(`div`,{key:r},[n(o,{packages:t,session:e.session,"group-view":``,"disable-size-sort":``},null,8,[`packages`,`session`])]))),128)):(h(),g(`div`,le,[...a[0]||=[_(`div`,{"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},` No duplicate packages `,-1)]]))}}}),{__name:`PackagesDuplicated`}),de={key:1,relative:``},$={sticky:``,"left-4":``,"right-4":``,"top-4":``,"z-panel-nav":``,"p-4":``},fe={flex:`~ wrap gap-2 items-center`,p2:``,border:`t base`},pe=[`onClick`],me={flex:`~ col gap-2`,pt4:``,px4:``,pb4:``,"overflow-x-auto":``},he={fixed:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},ge={op50:``},_e={key:1,"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},ve={key:0,"bg-glass":``,border:`~ base rounded`,p2:``,"text-sm":``,flex:`~ col gap-2`},ye={flex:`~ gap-1 items-center`},be={flex:`~ gap-1 items-center`},xe=o({__name:`packages`,props:{session:{}},setup(t){let o=t,C=y(w()),T=b(),E=x(),D=[{match:/.*/,name:`direct`,description:`Direct Dependencies`,icon:`i-octicon:package-dependencies-24 light:filter-invert-30!`},{match:/.*/,name:`transitive`,description:`Transitive Dependencies`,icon:`i-octicon:package-24 light:filter-invert-30!`}],O=e(),k=v({search:``,selected:[`direct`,`transitive`]}),{state:P,isLoading:L}=ee(async()=>await O.value.call(`vite:rolldown:get-packages`,{session:o.session.id}),null),R=S(()=>P.value,()=>new N(P.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),z=l(()=>P.value?Object.values(P.value.reduce((e,t)=>(e[t.name]=(e[t.name]||0)+1,e),{})).filter(e=>e>1).length:0),B=l(()=>[{label:`Table`,value:`table`,icon:`i-ph-table-duotone`},{label:`Treemap`,value:`treemap`,icon:`i-ph-checkerboard-duotone`},{label:`Duplicate Packages${z.value>0?` (${z.value})`:``}`,value:`duplicate-packages`,icon:`i-ph-package-duotone`}]),V=l(()=>k.value.search?R.value.search(k.value.search).map(e=>e.item):[...P.value||[]]),H=l(()=>{let e=j.value.packageSizeSortType,t=V.value.toSorted((e,t)=>(e.name||``).localeCompare(t.name||``));return(e?t.sort((t,n)=>e===`asc`?t.transformedCodeSize-n.transformedCodeSize:n.transformedCodeSize-t.transformedCodeSize):t).filter(e=>!k.value.selected||k.value.selected.some(t=>t.match(e.type)))});function U(e){j.value.packageViewType=e}let{tree:W,chartOptions:G,graph:K,nodeHover:q,nodeSelected:J,selectedNode:Y,selectNode:X,buildGraph:Z}=re({data:H,nameKey:`name`,sizeKey:`transformedCodeSize`,rootText:`Packages`,nodeType:`package`,graphOptions:{onHover(e){e&&!T.query.package&&(q.value=e),e===null&&(q.value=void 0)},onClick(e){e.meta?.type===`package`&&E.replace({query:{...T.query,package:`${e.meta?.name}@${e.meta?.version}`}})},onLeave(){q.value=void 0},onSelect(e){J.value=e||W.value.root,Y.value=e?.meta}},onUpdate(){j.value.packageViewType===`treemap`&&(K.value=new ne(W.value.root,{...G.value,selectedPaddingRatio:0}))}});return m(()=>j.value.packageViewType,()=>{Z()}),(e,o)=>{let l=te,m=M,v=Q,y=I,b=ue,x=A,S=F;return f(L)?(h(),s(l,{key:0})):(h(),g(`div`,de,[_(`div`,$,[n(m,{modelValue:k.value,"onUpdate:modelValue":o[0]||=e=>k.value=e,rules:D},{default:p(()=>[_(`div`,fe,[o[2]||=_(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(h(!0),g(u,null,c(B.value,e=>(h(),g(`button`,{key:e.value,"btn-action":``,class:i(f(j).packageViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>U(e.value)},[_(`div`,{class:i(e.icon)},null,2),d(` `+a(e.label),1)],10,pe))),128))])]),_:1},8,[`modelValue`])]),_(`div`,me,[f(j).packageViewType===`table`?(h(),g(u,{key:0},[n(v,{packages:H.value,session:t.session},null,8,[`packages`,`session`]),_(`div`,he,[_(`span`,ge,a(V.value.length)+` of `+a(f(P)?.length||0),1)])],64)):f(j).packageViewType===`treemap`?(h(),g(u,{key:1},[f(K)&&H.value.length?(h(),s(ie,{key:0,graph:f(K),selected:f(J),onSelect:o[1]||=e=>f(X)(e)},{default:p(({selected:e,options:t,onSelect:r})=>[n(y,{border:`b base`,py2:``,"min-h-10":``,selected:e,options:t,onSelect:r},null,8,[`selected`,`options`,`onSelect`])]),_:1},8,[`graph`,`selected`])):(h(),g(`span`,_e,` No Data `))],64)):f(j).packageViewType===`duplicate-packages`?(h(),s(b,{key:2,packages:H.value,session:t.session},null,8,[`packages`,`session`])):r(``,!0)]),n(S,{"hover-x":C.x,"hover-y":C.y},{default:p(()=>[f(q)?.meta?(h(),g(`div`,ve,[_(`div`,ye,a(f(q).text),1),_(`div`,be,[n(x,{bytes:f(q).size,percent:!1},null,8,[`bytes`])])])):r(``,!0)]),_:1},8,[`hover-x`,`hover-y`])]))}}});export{xe as default};
@@ -1 +0,0 @@
1
- import{r as e}from"./DfB5JIVQ.js";import{A as t,C as n,Jt as r,M as i,Q as a,R as o,S as s,Z as c,b as l,h as u,k as d,kt as f,lt as p,q as m,rt as h,tt as g,w as _,x as v}from"./DAfG6Q5x.js";import{C as y}from"./D1igyLjg.js";import{u as b}from"./DGp5TtxR.js";import{n as x}from"#entry";import{t as S}from"./Bi5REHPk.js";import{r as C,t as w}from"./xgeU2imy.js";import{r as T}from"./B2xjE9S9.js";import{t as E}from"./BywRM_M7.js";var D=[`title`],O={key:0,flex:`~ items-center gap-2`},k={op50:``,"font-mono":``},A=[`title`],j=[`title`],M=Object.assign(i({__name:`BaseInfo`,props:{chunk:{},link:{type:Boolean,default:!1},basic:{type:Boolean,default:!1}},setup(e){let i=e,o=y(),c=l(()=>Array.isArray(i.chunk.imports)?i.chunk.imports.length:i.chunk.imports),u=l(()=>Array.isArray(i.chunk.modules)?i.chunk.modules.length:i.chunk.modules);return(i,l)=>(m(),s(g(e.link?f(S):`div`),{to:e.link?typeof e.link==`string`?e.link:{path:f(o).path,query:{chunk:e.chunk.chunk_id}}:void 0,flex:`~ gap-3 items-center`},{default:p(()=>[v(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${e.chunk.chunk_id}`},[a(i.$slots,`icon`,{},()=>[l[0]||=v(`div`,{"i-ph-shapes-duotone":``},null,-1)]),v(`div`,null,r(e.chunk.name||`[unnamed]`),1),t(C,{text:e.chunk.reason},null,8,[`text`]),a(i.$slots,`left-after`)],8,D),l[3]||=v(`div`,{"flex-auto":``},null,-1),e.basic?n(``,!0):(m(),_(`div`,O,[v(`span`,k,`#`+r(e.chunk.chunk_id),1),v(`div`,{flex:`~ gap-1 items-center`,title:`${c.value} imports`},[l[1]||=v(`div`,{"i-ph-file-arrow-up-duotone":``},null,-1),d(` `+r(c.value),1)],8,A),v(`div`,{flex:`~ gap-1 items-center`,title:`${u.value} modules`},[l[2]||=v(`div`,{"i-ph-package-duotone":``},null,-1),d(` `+r(u.value),1)],8,j)])),a(i.$slots,`default`)]),_:3},8,[`to`]))}}),{__name:`ChunksBaseInfo`}),N={flex:`~ gap-2 items-center`},P=Object.assign(i({__name:`BaseInfo`,props:{asset:{}},setup(e){return(n,i)=>{let a=T;return m(),_(`div`,N,[i[0]||=v(`div`,{"i-catppuccin-java-class-abstract":``},null,-1),v(`div`,null,r(e.asset.filename),1),t(a,{bytes:e.asset.size,"text-sm":``},null,8,[`bytes`]),t(C,{text:e.asset.type},null,8,[`text`])])}}}),{__name:`AssetsBaseInfo`}),F={relative:``},I={key:0,"pointer-events-none":``,absolute:``,"left-0":``,"right-0":``,"bottom-0":``,"bg-gradient-more":``,"h-30":``,flex:`~ justify-center`},L=Object.assign(i({__name:`ExpandableContainer`,props:o({list:{}},{count:{default:20},countModifiers:{}}),emits:[`update:count`],setup(e){let r=e,i=h(e,`count`),o=i.value,s=l(()=>r.list.slice(0,i.value));return(c,l)=>(m(),_(`div`,F,[a(c.$slots,`default`,{items:s.value}),e.list.length>i.value?(m(),_(`div`,I,[v(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:l[0]||=e=>i.value=Math.round(i.value+f(o))},[l[2]||=v(`div`,{"i-ri:arrow-down-double-line":``},null,-1),l[3]||=v(`span`,null,`More`,-1),t(E,{prefix:`+`,number:Math.min(Math.round(f(o)),r.list.length-i.value),"rounded-full":``,"text-sm":``},null,8,[`number`])]),v(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:l[1]||=e=>i.value=r.list.length},[l[4]||=v(`div`,{"i-ph-arrows-out-line-vertical-duotone":``},null,-1),l[5]||=v(`span`,null,`All`,-1),t(E,{number:r.list.length,"rounded-full":``,"text-sm":``},null,8,[`number`])])])):n(``,!0)]))}}),{__name:`DisplayExpandableContainer`}),R={key:0,"i-ph-file-duotone":``},z={key:1,"i-ph-lightning-duotone":``},B=Object.assign(i({__name:`Imports`,props:{imports:{}},setup(e){return(r,i)=>{let a=M,o=L;return m(),s(o,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:e.imports},{default:p(({items:e})=>[(m(!0),_(u,null,c(e,(e,r)=>(m(),_(u,{key:r},[e?(m(),s(a,{key:0,chunk:e,link:``,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},{icon:p(()=>[e.kind===`import-statement`?(m(),_(`div`,R)):n(``,!0),e.kind===`dynamic-import`?(m(),_(`div`,z)):n(``,!0)]),"left-after":p(()=>[t(C,{text:e.kind},null,8,[`text`])]),_:2},1032,[`chunk`])):n(``,!0)],64))),128))]),_:1},8,[`list`])}}}),{__name:`ChunksImports`}),V={flex:`~ col gap-3`},H={key:1,"text-sm":``,op50:``,flex:`~ items-center`,title:`Total size of imports`},U={open:`true`},W={open:`true`},G={op50:``},K={key:0,open:`true`},q={op50:``},J={key:1,open:`true`},Y={op50:``},X=Object.assign(i({__name:`ChunkDetails`,props:{chunk:{},session:{},showDetails:{type:Boolean,default:!0},chunks:{}},setup(i){let o=i,h=l(()=>{let e=new Map;for(let t of o.session.modulesList)e.set(t.id,t);return e});function g(e){return e.reduce((e,t)=>{let n=h.value.get(t);return!n||!n.buildMetrics?.transforms?.length?e:e+n.buildMetrics.transforms.at(-1).transformed_code_size},0)}let E=l(()=>g(o.chunk.modules)),D=y(),O=e(),{state:k,isLoading:A}=b(async()=>{if(!o.chunks)return await O.value.call(`vite:rolldown:get-chunks-graph`,{session:o.session.id})},null),j=l(()=>o.chunks||k.value),N=l(()=>o.chunk.imports.map(e=>{let t=j.value?.find(t=>t.chunk_id===e.chunk_id);return{...e,name:t?.name||`[unnamed]`,reason:t?.reason||`common`,imports:t?.imports.length||0,modules:t?.modules.length||0,size:g(t?.modules||[])}})),F=l(()=>j.value?.filter(e=>e.imports.some(e=>e.chunk_id===o.chunk.chunk_id)).map(e=>({...e.imports.find(e=>e.chunk_id===o.chunk.chunk_id),chunk_id:e.chunk_id,name:e.name||`[unnamed]`,reason:e.reason||`common`,imports:e.imports.length||0,modules:e.modules.length||0}))||[]);return(e,o)=>{let l=T,h=M,g=P,y=S,b=w,O=L,k=x,j=B;return m(),_(`div`,V,[t(h,{chunk:i.chunk},{"left-after":p(()=>[i.chunk.is_initial?(m(),s(C,{key:0,text:`initial`})):n(``,!0),t(l,{bytes:E.value,"text-sm":``,title:`Chunk size`},null,8,[`bytes`]),N.value.length?(m(),_(`div`,H,[o[0]||=d(` (`,-1),t(l,{bytes:N.value.reduce((e,t)=>e+t.size,0)},null,8,[`bytes`]),o[1]||=d(`) `,-1)])):n(``,!0)]),default:p(()=>[a(e.$slots,`default`)]),_:3},8,[`chunk`]),i.showDetails?(m(),_(u,{key:0},[v(`details`,U,[o[2]||=v(`summary`,{op50:``},` Assets `,-1),t(y,{border:`~ base rounded-lg`,px2:``,mt2:``,py1:``,"min-w-fit":``,flex:`~`,to:{path:f(D).path,query:{asset:i.chunk.asset?.filename}}},{default:p(()=>[t(g,{asset:{...i.chunk.asset,type:`asset`}},null,8,[`asset`])]),_:1},8,[`to`])]),v(`details`,W,[v(`summary`,G,[v(`span`,null,`Modules (`+r(i.chunk.modules.length)+`)`,1)]),t(O,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:i.chunk.modules},{default:p(({items:e})=>[(m(!0),_(u,null,c(e,e=>(m(),s(b,{id:e,key:e,session:i.session,link:!0,minimal:!0,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},null,8,[`id`,`session`]))),128))]),_:1},8,[`list`])]),f(A)?(m(),s(k,{key:0})):(m(),_(u,{key:1},[i.chunk.imports.length?(m(),_(`details`,K,[v(`summary`,q,[v(`span`,null,`Imports (`+r(i.chunk.imports.length)+`)`,1)]),t(j,{imports:N.value},null,8,[`imports`])])):n(``,!0),F.value.length?(m(),_(`details`,J,[v(`summary`,Y,[v(`span`,null,`Importers (`+r(F.value.length)+`)`,1)]),t(j,{imports:F.value},null,8,[`imports`])])):n(``,!0)],64))],64)):n(``,!0)])}}}),{__name:`DataChunkDetails`});export{M as i,L as n,P as r,X 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"./DAfG6Q5x.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"./DGp5TtxR.js";import{t as E}from"./CqfNwh25.js";import{t as ae}from"./B2xjE9S9.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,k as n,lt as r,q as i,w as a,x as o}from"./DAfG6Q5x.js";import{c as s}from"#entry";import{t as c}from"./Bi5REHPk.js";import{t as l}from"./BUwCbG2W.js";var u={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},d={class:`max-w-520px text-center`},f=[`textContent`],p=[`textContent`],m=[`textContent`],h={class:`flex items-center justify-center w-full`},g=l({__name:`error-404`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:404},statusText:{type:String,default:`Page not found`},description:{type:String,default:`Sorry, the page you are looking for could not be found.`},backHome:{type:String,default:`Go back home`}},setup(l){let g=l;return s({title:`${g.status} - ${g.statusText} | ${g.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(s,g)=>{let _=c;return i(),a(`div`,u,[o(`div`,d,[o(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:t(l.status)},null,8,f),o(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:t(l.statusText)},null,8,p),o(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:t(l.description)},null,8,m),o(`div`,h,[e(_,{to:`/`,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:r(()=>[n(t(l.backHome),1)]),_:1})])])])}}},[[`__scopeId`,`data-v-842bd7c6`]]);export{g as default};
@@ -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"./DAfG6Q5x.js";import{G as T,H as E,z as D}from"./D1igyLjg.js";import{D as O}from"./DGp5TtxR.js";import{i as k,r as A}from"#entry";import{a as j,c as M,i as N,o as P,r as F,s as ee,t as I}from"./qNFXE2Qb.js";import{r as L}from"./qKmu99_C.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(A),{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(k)&&m(k)(...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=O(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{r as e}from"./DfB5JIVQ.js";import{A as t,B as n,C as r,D as i,Gt as a,Jt as o,M as s,S as c,Z as l,at as u,b as d,et as f,h as p,k as m,kt as h,lt as g,ot as _,q as v,qt as y,st as b,ut as x,w as S,x as C,xt as w,yt as T}from"./DAfG6Q5x.js";import{C as E}from"./D1igyLjg.js";import{D,u as O,x as k}from"./DGp5TtxR.js";import{n as ee}from"#entry";import{t as A}from"./Bi5REHPk.js";import{r as j}from"./xgeU2imy.js";import{r as M,t as N}from"./B2xjE9S9.js";import{i as P,t as te}from"./BDcpuUbg.js";import{n as F}from"./qNFXE2Qb.js";import{n as I,r as ne,t as L}from"./qKmu99_C.js";import{a as re,c as ie,i as ae,n as R,o as z,r as oe,t as se}from"./BM8UMmvc.js";import{t as ce}from"./D1flKd96.js";import{n as le,r as ue,t as B}from"./BT76Oq15.js";var V=[`onClick`],de=Object.assign(s({__name:`FlatList`,props:{chunks:{},session:{},link:{type:Boolean,default:!0},basic:{type:Boolean,default:!1}},emits:[`select`],setup(e,{emit:n}){let i=n;return(n,a)=>{let o=P;return v(),c(L,{items:e.chunks,"key-prop":`chunk_id`},{default:g(({item:n})=>[C(`div`,{flex:``,pb2:``,onClick:e=>i(`select`,n)},[t(o,{chunk:n,basic:e.basic,link:e.link,"w-full":``,"font-mono":``,border:`~ rounded base`,px2:``,py1:``,"text-sm":``,hover:`bg-active`,flex:`~ gap-4 items-center`},{"left-after":g(()=>[n.is_initial?(v(),c(j,{key:0,text:`initial`})):r(``,!0)]),_:2},1032,[`chunk`,`basic`,`link`])],8,V)]),_:1},8,[`items`])}}}),{__name:`ChunksFlatList`}),H={op50:``,"font-mono":``,w12:``},U=[`title`],W={flex:`~ gap-1 items-center`},fe=Object.assign(s({__name:`Graph`,props:{session:{},chunks:{},entryId:{default:``}},setup(e){let i=e,a=d(()=>i.chunks),s=E();return F({modules:a,spacing:{width:450,height:55,linkOffset:15,margin:120,gap:150},generateGraph:e=>{let{isFirstCalculateGraph:t,scale:r,spacing:o,tree:s,hierarchy:c,collapsedNodes:l,container:u,modulesMap:d,nodes:f,links:p,nodesMap:m,linksMap:g,width:_,height:v,childToParentMap:y}=e;return()=>{_.value=window.innerWidth,v.value=window.innerHeight;let e=a.value.filter(e=>i.entryId?e.id===i.entryId:e.reason===`entry`),b=new Set,x=c({module:{id:`~root`}},n=>`${n.module?.id}`==`~root`?(e.forEach(e=>{b.add(e),t.value&&y.set(e.id,`~root`)}),e.map(e=>({module:e,expanded:!l.has(e.id),hasChildren:!1}))):l.has(`${n.module?.id}`)?[]:n.module.imports?.map(e=>{let r=d.value.get(`${e.chunk_id}`);if(!(!r||b.has(r)))return t.value&&y.set(r.id,n.module.id),b.add(r),{module:r,expanded:!l.has(r.id),hasChildren:!1}}).filter(e=>e!==void 0));t.value&&=!1,s().nodeSize([h(o.height),h(o.width)+h(o.gap)])(x);let S=x.descendants();for(let e of S)[e.x,e.y]=[e.y-h(o.width),e.x];let C=Math.min(...S.map(e=>e.x)),w=Math.min(...S.map(e=>e.y));if(C<h(o.margin))for(let e of S)e.x+=Math.abs(C)+h(o.margin);if(w<h(o.margin))for(let e of S)e.y+=Math.abs(w)+h(o.margin);f.value=S,m.clear();for(let e of S)m.set(`${e.data.module.id}`,e);let T=x.links().filter(e=>`${e.source.data.module.id}`!=`~root`).map(e=>({...e,id:`${e.source.data.module.id}|${e.target.data.module.id}`})),E=a.value.flatMap(e=>e.imports.filter(t=>!T.some(n=>n.id===`${e.chunk_id}|${t.chunk_id}`)).map(t=>({source:m.get(`${e.chunk_id}`),target:m.get(`${t.chunk_id}`),id:`${e.chunk_id}|${t.chunk_id}`}))),D=[...T,...E];g.clear();for(let e of D)g.set(e.id,e);p.value=D,n(()=>{_.value=u.value.scrollWidth/r.value+h(o.margin),v.value=u.value.scrollHeight/r.value+h(o.margin)})}}}),(n,i)=>{let l=A,u=B;return v(),c(u,{session:e.session,modules:a.value,"expand-controls":!1},{default:g(({node:e})=>[t(l,{class:`flex items-center`,to:{path:h(s).path,query:{chunk:e.data.module.chunk_id}}},{default:g(()=>[C(`span`,H,`#`+o(e.data.module.id),1),C(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${e.data.module.id}`},[C(`div`,null,o(e.data.module.name||`[unnamed]`),1),t(j,{text:e.data.module.reason},null,8,[`text`]),e.data.module.is_initial?(v(),c(j,{key:0,text:`initial`})):r(``,!0)],8,U),i[1]||=C(`div`,{"flex-auto":``},null,-1),C(`div`,W,[i[0]||=C(`div`,{"i-ph-package-duotone":``},null,-1),m(` `+o(e.data.module.modules.length),1)])]),_:2},1032,[`to`])]),_:1},8,[`session`,`modules`])}}}),{__name:`ChunksGraph`}),G={grid:`~ cols-[max-content_1fr] gap-2`,p4:``},K={flex:`~ col gap-4`},q={key:0,grid:`~ cols-[250px_1fr] gap-1`},J=[`onClick`],Y={key:0,"text-primary":``},X={key:1},Z=[`onClick`],Q=[`title`],pe=Object.assign(s({__name:`Sunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(e,{emit:n}){let i=e,a=n,s=u(`el`);return b(()=>s.value?.append(i.graph.el)),(n,i)=>{let c=R,u=M,d=f(`tooltip`);return v(),S(`div`,G,[C(`div`,{ref_key:`el`,ref:s,"w-500px":``},null,512),C(`div`,K,[t(c,{border:`b base`,py2:``,selected:e.selected,options:e.graph.options,onSelect:i[0]||=e=>a(`select`,e)},null,8,[`selected`,`options`]),e.selected?(v(),S(`div`,q,[(v(!0),S(p,null,l(e.selected.children,n=>(v(),S(p,{key:n.id},[C(`button`,{"ws-nowrap":``,"text-nowrap":``,"text-left":``,"overflow-hidden":``,"text-ellipsis":``,"text-sm":``,hover:`bg-active`,rounded:``,px2:``,onClick:e=>a(`select`,n)},[n.meta&&n.meta===e.selected?.meta?(v(),S(`span`,Y,`(self)`)):(v(),S(`span`,X,o(n.meta?.name||n.id),1))],8,J),C(`button`,{relative:``,flex:`~ gap-1 items-center`,hover:`bg-active`,rounded:``,onClick:e=>a(`select`,n)},[C(`div`,{"h-5":``,rounded:``,shadow:``,border:`~ base`,style:y({background:h(z)(e.graph.options.getColor?.(n)||`#000`),width:`${n.size/e.selected.size*100}%`})},null,4),t(u,{"text-xs":``,bytes:n.size,total:e.selected.size,"percent-ratio":3},null,8,[`bytes`,`total`]),n.children.length>0?x((v(),S(`div`,{key:0,title:`${n.children.length} modules`,"text-xs":``,"op-fade":``},[m(` (`+o(n.children.length)+`) `,1)],8,Q)),[[d,`${n.children.length} modules`]]):r(``,!0)],8,Z)],64))),128))])):r(``,!0)])])}}}),{__name:`ChunksSunburst`}),me=Object.assign(s({__name:`Flamegraph`,props:{graph:{}},setup(e){let t=e,n=u(`el`);return b(()=>n.value?.append(t.graph.el)),(e,t)=>(v(),S(`div`,{ref_key:`el`,ref:n},null,512))}}),{__name:`ChunksFlamegraph`}),he={sticky:``,"left-4":``,"right-4":``,"top-4":``,"z-panel-nav":``,"p-4":``},ge={key:0,h10:``,mr2:``,flex:`~ items-center`},_e={flex:`~ wrap gap-2 items-center`,p2:``,border:`t base`},ve=[`onClick`],ye={key:0,class:`px5 pt-4`,flex:`~ col gap-4`},be={key:1,class:`px5 pt-4`,flex:`~ col gap-4`},xe={key:3,flex:`~ col gap-2`},Se={key:4,flex:`~ col gap-2`,"pt-4":``},Ce={key:5,flex:`~ col gap-2`,"pt-4":``},we={key:0,border:`~ base rounded-lg`,"bg-base":``,p2:``,flex:`~ col gap-2`,"min-w-50":``,"shadow-lg":``},Te={flex:`~ gap-2 items-center`},Ee={truncate:``},De={flex:`~ gap-2 items-center`},Oe={key:0,flex:`~ gap-2 items-center`},ke={"text-xs":``},Ae={key:1,flex:`~ gap-2 items-center`},$=s({__name:`chunks`,props:{session:{}},setup(n){let s=n,u=T(k()),f=[{label:`List`,value:`list`,icon:`i-ph-list-bullets-duotone`},{label:`Detailed List`,value:`detailed-list`,icon:`i-ph-list-magnifying-glass-duotone`},{label:`Graph`,value:`graph`,icon:`i-ph-graph-duotone`},{label:`Treemap`,value:`treemap`,icon:`i-ph-checkerboard-duotone`},{label:`Sunburst`,value:`sunburst`,icon:`i-ph-chart-donut-duotone`},{label:`Flamegraph`,value:`flamegraph`,icon:`i-ph-chart-bar-horizontal-duotone`}],y=w({search:``}),b=e(),{state:x,isLoading:E}=O(async()=>await b.value.call(`vite:rolldown:get-chunks-graph`,{session:s.session.id}),null),A=d(()=>{let e=new Map;return x.value?.forEach(t=>{e.set(`${t.chunk_id}`,t)}),e}),P=d(()=>x.value?.map(e=>({...e,id:`${e.chunk_id}`}))??[]),F=D(()=>P.value,()=>new ne(P.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),L=d(()=>y.value.search?F.value.search(y.value.search).map(e=>e.item):P.value),{pathSelectorVisible:z,pathNodes:B,selectPathNodes:V,togglePathSelector:H,normalizedGraph:U}=ue({onToggle:e=>{y.value.search=e?!1:``},dataMap:d(()=>A.value),list:d(()=>L.value),importIdKey:`chunk_id`});function W(e){N.value.chunkViewType=e}let G=d(()=>{let e=new Map;for(let t of s.session.modulesList)e.set(t.id,t);return e});function K(e){return e.asset?.size?e.asset.size:e.modules.reduce((e,t)=>{let n=G.value.get(t);return!n||!n.buildMetrics?.transforms?.length?e:e+n.buildMetrics.transforms.at(-1).transformed_code_size},0)}let{tree:q,chartOptions:J,graph:Y,nodeHover:X,nodeSelected:Z,selectedNode:Q,selectNode:$,buildGraph:je}=se({data:d(()=>L.value.map(e=>({...e,filename:e.name||`chunk-${e.chunk_id}`,size:K(e)}))),nameKey:`filename`,sizeKey:`size`,rootText:`Chunks`,nodeType:`chunk`,graphOptions:{onClick(e){e&&(X.value=e)},onHover(e){e&&(X.value=e),e===null&&(X.value=void 0)},onLeave(){X.value=void 0},onSelect(e){Z.value=e||q.value.root,Q.value=e?.meta}},onUpdate(){switch(N.value.chunkViewType){case`sunburst`:Y.value=new ae(q.value.root,J.value);break;case`treemap`:Y.value=new re(q.value.root,{...J.value,selectedPaddingRatio:0});break;case`flamegraph`:Y.value=new oe(q.value.root,J.value);break}}});return _(()=>N.value.chunkViewType,()=>{[`treemap`,`sunburst`,`flamegraph`].includes(N.value.chunkViewType)&&je()}),(e,s)=>{let d=ee,_=de,b=le,x=I,w=te,T=fe,D=R,O=pe,k=me,P=M,F=ie;return h(E)?(v(),c(d,{key:0})):(v(),S(`div`,{key:1,relative:``,class:a({"max-h-screen of-hidden":h(N).chunkViewType===`graph`})},[C(`div`,he,[t(x,{modelValue:y.value,"onUpdate:modelValue":s[2]||=e=>y.value=e,rules:[]},i({"search-end":g(()=>[h(N).chunkViewType===`graph`?(v(),S(`div`,ge,[C(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Graph Path Selector`,onClick:s[1]||=e=>h(H)(!0)},[...s[5]||=[C(`i`,{"i-ri:route-line":``,flex:``},null,-1)]])])):r(``,!0)]),default:g(()=>[C(`div`,_e,[s[6]||=C(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(v(),S(p,null,l(f,e=>C(`button`,{key:e.value,"btn-action":``,class:a(h(N).chunkViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>W(e.value)},[C(`div`,{class:a(e.icon)},null,2),m(` `+o(e.label),1)],10,ve)),64))])]),_:2},[h(z)?{name:`search`,fn:g(()=>[t(b,{session:n.session,data:L.value,"import-id-key":`chunk_id`,"search-keys":[`name`],onSelect:h(V),onClose:s[0]||=e=>h(H)(!1)},{list:g(({select:e,data:r})=>[t(_,{session:n.session,chunks:r,link:!1,basic:!0,onSelect:e},null,8,[`session`,`chunks`,`onSelect`])]),item:g(({id:e})=>[m(o(A.value.get(e)?.name||`[unnamed]`),1)]),_:1},8,[`session`,`data`,`onSelect`])]),key:`0`}:void 0]),1032,[`modelValue`])]),h(N).chunkViewType===`list`?(v(),S(`div`,ye,[t(_,{session:n.session,chunks:L.value},null,8,[`session`,`chunks`])])):r(``,!0),h(N).chunkViewType===`detailed-list`?(v(),S(`div`,be,[(v(!0),S(p,null,l(L.value,e=>(v(),c(w,{key:e.id,border:`~ base rounded-lg`,p3:``,chunk:e,chunks:L.value,session:n.session},null,8,[`chunk`,`chunks`,`session`]))),128))])):h(N).chunkViewType===`graph`?(v(),c(T,{key:2,class:`pt32`,session:n.session,chunks:h(U),"entry-id":h(B).start},null,8,[`session`,`chunks`,`entry-id`])):h(N).chunkViewType===`treemap`?(v(),S(`div`,xe,[h(Y)?(v(),c(ce,{key:0,graph:h(Y),selected:h(Z),onSelect:s[3]||=e=>h($)(e)},{default:g(({selected:e,options:n,onSelect:r})=>[t(D,{border:`b base`,py2:``,"min-h-10":``,selected:e,options:n,onSelect:r},null,8,[`selected`,`options`,`onSelect`])]),_:1},8,[`graph`,`selected`])):r(``,!0)])):h(N).chunkViewType===`sunburst`?(v(),S(`div`,Se,[h(Y)?(v(),c(O,{key:0,graph:h(Y),selected:h(Z),onSelect:s[4]||=e=>h($)(e)},null,8,[`graph`,`selected`])):r(``,!0)])):h(N).chunkViewType===`flamegraph`?(v(),S(`div`,Ce,[h(Y)?(v(),c(k,{key:0,graph:h(Y)},null,8,[`graph`])):r(``,!0)])):r(``,!0),t(F,{"hover-x":u.x,"hover-y":u.y},{default:g(()=>[h(X)?.meta?(v(),S(`div`,we,[C(`div`,Te,[s[7]||=C(`i`,{"i-ph-shapes-duotone":``,"flex-none":``},null,-1),C(`span`,Ee,o(h(X).meta.name||`[unnamed]`),1)]),C(`div`,De,[s[8]||=C(`span`,{op50:``,"text-xs":``},`Size:`,-1),t(P,{bytes:h(X).meta.size,"text-xs":``},null,8,[`bytes`])]),h(X).meta.modules?.length?(v(),S(`div`,Oe,[s[9]||=C(`span`,{op50:``,"text-xs":``},`Modules:`,-1),C(`span`,ke,o(h(X).meta.modules?.length),1)])):r(``,!0),h(X).meta.is_initial?(v(),S(`div`,Ae,[t(j,{text:`initial`})])):r(``,!0)])):r(``,!0)]),_:1},8,[`hover-x`,`hover-y`])],2))}}});export{$ as default};
@@ -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"./DAfG6Q5x.js";import{t as h}from"./Bi5REHPk.js";import{r as g,t as _}from"./xgeU2imy.js";import{t as v}from"./CXpJVZ-W.js";import{t as y}from"./BywRM_M7.js";import{t as b}from"./CTNFxt3v.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{t as e}from"./DGp5TtxR.js";var t=class{length;_mapTree;constructor(e){this.length=e,this._mapTree=new Map}_getLastMap(e){let t=this._mapTree;for(let n of e.slice(0,-1))t.has(n)||t.set(n,new Map),t=t.get(n);return t}set(e,t){if(e.length!==this.length)throw Error(`Expect tuple of length ${this.length}, got ${e.length}`);return this._getLastMap(e).set(e.at(-1),t),this}get(e){return this._getLastMap(e).get(e.at(-1))}clear(){this._mapTree.clear()}delete(e){return this._getLastMap(e).delete(e.at(-1))}get size(){return this._mapTree.size}*_traverseMap(){function*e(t,n,r){if(r===0)yield{keys:n,map:t};else for(let[i,a]of t.entries())yield*e(a,[...n,i],r-1)}yield*e(this._mapTree,[],this.length)}},n=class{_lengthMap;constructor(){this._lengthMap=new Map}get(e){let t=e.length;return this._lengthMap.get(t)?.get(e)}set(e,n){let r=e.length,i=this._lengthMap.get(r);return i||(i=new t(r),this._lengthMap.set(r,i)),i.set(e,n),this}delete(e){let t=e.length;return this._lengthMap.get(t)?.delete(e)??!1}clear(){this._lengthMap.clear()}};function r(e){let t=new n,r=function(...n){let r=t.get(n);return r||(r=e(...n),t.set(n,r),r)};return r.cache=t,r}var i=[{match:/[\\/]node_modules[\\/]/i,name:`node_modules`,description:`Node Modules`,icon:`i-catppuccin-npm`},{match:/virtual:|^\0/,name:`virtual`,description:`Virtual`,icon:`i-catppuccin-symlink`},{match:/^@?[\w-]+\/?/,name:`package`,description:`Package`,icon:`i-catppuccin-java-class-abstract`},{match:/\.vue$/i,name:`vue`,description:`Vue`,icon:`i-catppuccin-vue`},{match:/\.[cm]?[tj]sx$/i,name:`jsx`,description:`JavaScript React`,icon:`i-catppuccin-javascript-react`},{match:/\.[cm]?ts$/i,name:`ts`,description:`TypeScript`,icon:`i-catppuccin-typescript`},{match:/\.[cm]?js$/i,name:`js`,description:`JavaScript`,icon:`i-catppuccin-javascript`},{match:/\.svelte$/i,name:`svelte`,description:`Svelte`,icon:`i-catppuccin-svelte`},{match:/\.mdx$/i,name:`mdx`,description:`MDX`,icon:`i-catppuccin-mdx`},{match:/\.md$/i,name:`md`,description:`Markdown`,icon:`i-catppuccin-markdown`},{match:/\.astro$/i,name:`astro`,description:`Astro`,icon:`i-catppuccin-astro`},{match:/\.angular$/i,name:`angular`,description:`Angular`,icon:`i-catppuccin-angular`},{match:/\.html?$/i,name:`html`,description:`HTML`,icon:`i-catppuccin-html`},{match:/\.(css|scss|less|postcss)$/i,name:`css`,description:`CSS`,icon:`i-catppuccin-css`},{match:/\.json[c5]?$/i,name:`json`,description:`JSON`,icon:`i-catppuccin-json`},{match:/\.(yaml|yml)$/i,name:`yaml`,description:`YAML`,icon:`i-catppuccin-yaml`},{match:/\.toml$/i,name:`toml`,description:`TOML`,icon:`i-catppuccin-toml`},{match:/\.svg$/i,name:`svg`,description:`SVG`,icon:`i-catppuccin-svg`}],a=[{match:/^(replace|define|alias)$/,name:`rollup`,description:`Rollup`,icon:`i-catppuccin-rollup`},{match:/^vite:/i,name:`vite`,description:`Vite`,icon:`i-catppuccin-vite`},{match:/^unocss:/i,name:`unocss`,description:`Unocss`,icon:`i-catppuccin-unocss`},{match:/^nuxt:/i,name:`nuxt`,description:`Nuxt`,icon:`i-catppuccin-nuxt`},{match:/^builtin:/i,name:`builtin`,description:`Builtin`,icon:`i-catppuccin-folder-prisma`}],o={name:`file`,match:/.*/,description:`File`,icon:`i-catppuccin-file`},s={name:`plugin`,match:/.*/,description:`User Plugins`,icon:`i-catppuccin-folder-plugins`};function c(e){return i.find(t=>t.name===e)??o}var l=r(e=>{e=e.replace(/(\?|&)v=[^&]*/,`$1`).replace(/\?$/,``);for(let t of i)if(t.match.test(e))return t;return o}),u=r(e=>{for(let t of a)if(t.match.test(e))return t;return s});function d(e,t=1){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return f(n%360,t)}function f(t,n=1){return`hsla(${t}, ${e.value?50:65}%, ${e.value?60:40}%, ${n})`}var p={error:0,client:60,bailout:-1,ssr:270,vite:250,vite1:240,vite2:120,rolldown:18,virtual:160,nuxt:140};function m(e,t=1){if(e=e.replace(/[^a-z]+/gi,``).toLowerCase(),e in p){let n=p[e];return typeof n==`number`?f(n,t):t===1?n:n+Math.floor(t*255).toString(16).padStart(2,`0`)}return d(e,t)}export{i as a,c,s as i,u as l,d as n,a as o,f as r,l as s,m as t,r as u};
@@ -1 +0,0 @@
1
- import{$ as e,F as t,G as n,H as r,M as i,a,b as o,c as s,i as c,kt as l,wt as u,xt as d}from"./DAfG6Q5x.js";import{F as f,L as p,M as m,O as h,S as g,a as _,b as v,i as y,j as b,n as x,r as S,w as C,x as w}from"./D1igyLjg.js";var T=(...e)=>e.find(e=>e!==void 0);function E(s){let f=s.componentName||`NuxtLink`;function p(e){return typeof e==`string`&&e.startsWith(`#`)}function E(e,t,n){let r=n??s.trailingSlash;if(!e||r!==`append`&&r!==`remove`)return e;if(typeof e==`string`)return O(e,r);let i=`path`in e&&e.path!==void 0?e.path:t(e).path;return{...e,name:void 0,path:O(i,r)}}function D(t){let n=C(),r=a(),i=o(()=>!!l(t.target)&&l(t.target)!==`_self`),c=o(()=>{let e=l(t.to)||l(t.href)||``;return typeof e==`string`&&h(e,{acceptRelative:!0})}),u=e(`RouterLink`),d=u&&typeof u!=`string`?u.useLink:void 0,f=o(()=>{if(l(t.external))return!0;let e=l(t.to)||l(t.href)||``;return typeof e==`object`?!1:e===``||c.value}),m=o(()=>{let e=l(t.to)||l(t.href)||``;return f.value?e:E(e,n.resolve,l(t.trailingSlash))}),_=f.value?void 0:d?.({...t,to:m,viewTransition:l(t.viewTransition)}),v=o(()=>{let e=l(t.trailingSlash)??s.trailingSlash;if(!m.value||c.value||p(m.value))return m.value;if(f.value){let t=typeof m.value==`object`&&`path`in m.value?g(m.value):m.value;return O(typeof t==`object`?n.resolve(t).href:t,e)}return typeof m.value==`object`?n.resolve(m.value)?.href??null:O(b(r.app.baseURL,m.value),e)});return{to:m,hasTarget:i,isAbsoluteUrl:c,isExternal:f,href:v,isActive:_?.isActive??o(()=>m.value===n.currentRoute.value.path),isExactActive:_?.isExactActive??o(()=>m.value===n.currentRoute.value.path),route:_?.route??o(()=>n.resolve(m.value)),async navigate(e){await w(v.value,{replace:l(t.replace),external:f.value||i.value})}}}return i({name:f,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:D,setup(i,{slots:a}){let o=C(),{to:l,href:f,navigate:h,isExternal:b,hasTarget:w,isAbsoluteUrl:E}=D(i),O=u(!1),A=d(null),M=e=>{A.value=i.custom?e?.$el?.nextElementSibling:e?.$el};function N(e){return!O.value&&(typeof i.prefetchOn==`string`?i.prefetchOn===e:i.prefetchOn?.[e]??s.prefetchOn?.[e])&&(i.prefetch??s.prefetch)!==!1&&i.noPrefetch!==!0&&i.target!==`_blank`&&!j()}async function P(e=c()){if(O.value)return;O.value=!0;let t=typeof l.value==`string`?l.value:b.value?g(l.value):o.resolve(l.value).fullPath,n=b.value?new URL(t,window.location.href).href:t;await Promise.all([e.hooks.callHook(`link:prefetch`,n)?.catch(()=>{}),!b.value&&!w.value&&x(l.value,o).catch(()=>{})])}if(N(`visibility`)){let e=c(),t,i=null;n(()=>{let n=k();S(()=>{t=_(()=>{A?.value?.tagName&&(i=n.observe(A.value,async()=>{i?.(),i=null,await P(e)}))})})}),r(()=>{t&&y(t),i?.(),i=null})}return()=>{if(!b.value&&!w.value&&!p(l.value)){let n={ref:M,to:l.value,activeClass:i.activeClass||s.activeClass,exactActiveClass:i.exactActiveClass||s.exactActiveClass,replace:i.replace,ariaCurrentValue:i.ariaCurrentValue,custom:i.custom};return i.custom||(N(`interaction`)&&(n.onPointerenter=P.bind(null,void 0),n.onFocus=P.bind(null,void 0)),O.value&&(n.class=i.prefetchedClass||s.prefetchedClass),n.rel=i.rel||void 0),t(e(`RouterLink`),n,a.default)}let n=i.target||null,r=T(i.noRel?``:i.rel,s.externalRelAttribute,E.value||w.value?`noopener noreferrer`:``)||null;return i.custom?a.default?a.default({href:f.value,navigate:h,prefetch:P,get route(){if(!f.value)return;let e=new URL(f.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return m(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:f.value}},rel:r,target:n,isExternal:b.value||w.value,isActive:!1,isExactActive:!1}):null:t(`a`,{ref:A,href:f.value||null,rel:r,target:n,onClick:async e=>{if(!(b.value||w.value)){e.preventDefault();try{let e=v(f.value);return await(i.replace?o.replace(e):o.push(e))}finally{if(p(l.value)){let e=l.value.slice(1),t=e;try{t=decodeURIComponent(e)}catch{}document.getElementById(t)?.focus()}}}}},a.default?.())}}})}var D=E(s);function O(e,t){let n=t===`append`?f:p;return h(e)&&!e.startsWith(`http`)?e:n(e,!0)}function k(){let e=c();if(e._observer)return e._observer;let t=null,n=new Map;return e._observer={observe:(e,r)=>(t||=new IntersectionObserver(e=>{for(let t of e){let e=n.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),n.set(e,r),t.observe(e),()=>{n.delete(e),t?.unobserve(e),n.size===0&&(t?.disconnect(),t=null)})}}var A=/2g/;function j(){let e=navigator.connection;return!!(e&&(e.saveData||A.test(e.effectiveType)))}export{D as t};
@@ -1 +0,0 @@
1
- import{C as e,Gt as t,Jt as n,M as r,Q as i,b as a,k as o,q as s,w as c}from"./DAfG6Q5x.js";var l=r({__name:`DisplayNumberBadge`,props:{number:{},color:{default:`badge-color-gray op75`},icon:{},prefix:{},suffix:{},format:{default:`locale`}},setup(r){let l=r,u=a(()=>l.format===`percent`?Number(l.number).toLocaleString(void 0,{style:`percent`,minimumFractionDigits:2,maximumFractionDigits:2}):Number(l.number).toLocaleString());return(a,l)=>(s(),c(`div`,{class:t([r.color,`px-0.4em py-0.2em font-mono line-height-none flex items-center`])},[r.icon?(s(),c(`div`,{key:0,class:t([r.icon,`mr-1`])},null,2)):e(``,!0),o(` `+n(r.prefix||``)+n(u.value)+n(r.suffix||``)+` `,1),i(a.$slots,`after`)],2))}});export{l as t};
@@ -1 +0,0 @@
1
- import{A as e,B as t,C as n,D as r,Gt as i,Jt as a,M as o,S as s,Z as c,b as l,h as u,k as d,kt as f,lt as p,q as m,w as h,x as g,xt as _}from"./DAfG6Q5x.js";import{C as v,w as y}from"./D1igyLjg.js";import{D as b,j as x}from"./DGp5TtxR.js";import{r as S}from"./CqfNwh25.js";import{a as C,s as w}from"./BgSZqMub.js";import{t as T}from"./xgeU2imy.js";import{t as ee}from"./DUEAe2mZ.js";import{t as E}from"./B2xjE9S9.js";import{t as D}from"./COhEYQbe.js";import{n as O}from"./qNFXE2Qb.js";import{n as k,r as A,t as j}from"./qKmu99_C.js";import{t as M}from"./CY_j28gw.js";import{t as N}from"./s8CxCfpb.js";import{n as P,r as F,t as I}from"./BT76Oq15.js";import{n as L,t as R}from"./qIAw3Eg02.js";var z={flex:`~ col gap-2`,p4:``},B=[`onClick`],V=Object.assign(o({__name:`FlatList`,props:{session:{},modules:{},disableTooltip:{type:Boolean,default:!1},link:{type:Boolean,default:!0}},emits:[`select`],setup(t,{emit:n}){let r=n;return(n,i)=>{let a=T;return m(),h(`div`,z,[e(j,{items:t.modules,"key-prop":`id`},{default:p(({item:n})=>[g(`div`,{flex:``,pb2:``,onClick:e=>r(`select`,n)},[e(a,{id:n.id,session:t.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:t.link,"disable-tooltip":t.disableTooltip},null,8,[`id`,`session`,`link`,`disable-tooltip`])],8,B)]),_:1},8,[`items`])])}}}),{__name:`ModulesFlatList`}),H={flex:`~ col gap-2`,p4:``},U={flex:``,pb2:``},W={flex:`~ gap-1 wrap`,"text-xs":``},G={flex:`~ auto text-xs wrap`},K={key:0,flex:`~ items-center`},q={key:0,op20:``},J={flex:`~ none gap-1 wrap justify-end`},Y=Object.assign(o({__name:`DetailedList`,props:{session:{},modules:{}},setup(t){let r=t,i=l(()=>{let e=new Map;for(let t of r.modules){let n=t.buildMetrics?.transforms.filter(e=>e.source_code_size!==e.transformed_code_size).filter(e=>e.transformed_code_size);e.set(t.id,n)}return e});return(r,a)=>{let o=M,l=D,d=T;return m(),h(`div`,H,[e(j,{items:t.modules,"key-prop":`id`},{default:p(({item:r})=>[g(`div`,U,[e(d,{id:r.id,session:t.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:!0},{detail:p(()=>[g(`div`,W,[g(`ul`,G,[(m(!0),h(u,null,c(i.value.get(r.id),(t,a)=>(m(),h(u,{key:a},[t.source_code_size!==t.transformed_code_size&&t.transformed_code_size?(m(),h(`li`,K,[e(o,{name:t.plugin_name,class:`font-mono ws-nowrap op-50`},null,8,[`name`]),a===i.value.get(r.id).length-1?n(``,!0):(m(),h(`span`,q,`|`))])):n(``,!0)],64))),128))]),a[0]||=g(`div`,{flex:`~ auto gap-1`,"of-hidden":``},null,-1),g(`div`,J,[g(`span`,null,[r.buildMetrics?(m(),s(l,{key:0,metrics:r.buildMetrics},null,8,[`metrics`])):n(``,!0)])])])]),_:2},1032,[`id`,`session`])])]),_:1},8,[`items`])])}}}),{__name:`ModulesDetailedList`}),X=[`d`,`stroke-dasharray`],Z=Object.assign(o({__name:`Graph`,props:{modules:{},session:{}},setup(n){let r=n,a=l(()=>r.modules);return O({modules:a,spacing:{width:400,height:55,linkOffset:20,margin:800,gap:150},generateGraph:e=>{let{isFirstCalculateGraph:n,scale:r,spacing:i,tree:o,hierarchy:s,collapsedNodes:c,container:u,modulesMap:d,nodes:p,links:m,nodesMap:h,linksMap:g,width:_,height:v,childToParentMap:y,focusOn:b}=e,x=l(()=>a.value.filter(e=>e.importers.length===0));return(e=!0)=>{_.value=window.innerWidth,v.value=window.innerHeight;let a=new Set,l=s({module:{id:`~root`}},e=>e.module.id===`~root`?(x.value.forEach(e=>{a.add(e),n.value&&y.set(e.id,`~root`)}),x.value.map(e=>({module:e,expanded:!c.has(e.id),hasChildren:!1}))):c.has(e.module.id)?[]:e.module.imports.map(t=>{let r=d.value.get(t.module_id);if(r&&!a.has(r)&&!(y.has(r.id)&&y.get(r.id)!==e.module.id))return a.add(r),n.value&&y.set(r.id,e.module.id),{module:r,import:t,expanded:!c.has(r.id),hasChildren:!1}}).filter(e=>e!==void 0));n.value&&=!1,o().nodeSize([f(i.height),f(i.width)+f(i.gap)])(l);let S=l.descendants();for(let e of S)[e.x,e.y]=[e.y-f(i.width),e.x],e.data.module.imports&&(e.data.hasChildren=e.data.module.imports?.filter(t=>y.get(t.module_id)===e.data.module.id).length>0);let C=Math.min(...S.map(e=>e.x)),w=Math.min(...S.map(e=>e.y));if(C<f(i.margin))for(let e of S)e.x+=Math.abs(C)+f(i.margin);if(w<f(i.margin))for(let e of S)e.y+=Math.abs(w)+f(i.margin);p.value=S,h.clear();for(let e of S)h.set(e.data.module.id,e);let T=l.links().filter(e=>e.source.data.module.id!==`~root`).map(e=>({...e,import:e.source.data.import,id:`${e.source.data.module.id}|${e.target.data.module.id}`}));g.clear();for(let e of T)g.set(e.id,e);m.value=T,t(()=>{_.value=u.value.scrollWidth/r.value+f(i.margin),v.value=u.value.scrollHeight/r.value+f(i.margin);let n=x.value?.[0]?.id;e&&n&&t(()=>{b(n,!1)})})}}}),(t,r)=>{let o=T,c=I;return m(),s(c,{session:n.session,modules:a.value},{default:p(({node:t,nodesRefMap:r})=>[e(o,{id:t.data.module.id,ref:e=>r.set(t.data.module.id,e?.$el),link:!0,session:n.session,minimal:!0,flex:`1`},null,8,[`id`,`session`])]),link:p(({link:e,d:t,linkClass:n})=>[g(`path`,{d:t,class:i(n),"stroke-dasharray":e.import?.kind===`dynamic-import`?`3 6`:void 0,fill:`none`},null,10,X)]),_:1},8,[`session`,`modules`])}}}),{__name:`ModulesGraph`}),Q={"of-auto":``,"max-h-screen":``,relative:``},te={flex:`~ col gap-2`,p4:``},ne=Object.assign(o({__name:`Folder`,props:{session:{},modules:{}},setup(t){let r=t,i=l(()=>{if(!r.session.modulesList.length)return{workspace:{children:{},items:[]},nodeModules:{children:{},items:[]},virtual:{children:{},items:[]}};let e=[],t=[],n=[];return r.modules.map(e=>({full:e.id,path:e.path})).forEach(i=>{i.full.startsWith(r.session.meta.cwd)?(i.path.startsWith(`../`)||(i.path=i.full.slice(r.session.meta.cwd.length+1)),e.push(i)):i.full.includes(`node_modules`)?t.push({full:i.full,path:i.full}):i.full.startsWith(`virtual:`)&&n.push(i)}),{workspace:S(e,`Project Root`),nodeModules:S(t,`Node Modules`),virtual:S(n,`Virtual Modules`)}});return(t,r)=>{let a=N;return m(),h(`div`,Q,[g(`div`,te,[Object.keys(i.value.workspace.children).length?(m(),s(a,{key:0,node:i.value.workspace,p:`l3`,icon:`i-catppuccin:folder-dist icon-catppuccin`,"icon-open":`i-catppuccin:folder-dist-open icon-catppuccin`,link:!0},null,8,[`node`])):n(``,!0),Object.keys(i.value.nodeModules.children).length?(m(),h(u,{key:1},[r[0]||=g(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),e(a,{node:i.value.nodeModules,p:`l3`,icon:`i-catppuccin:folder-node icon-catppuccin`,"icon-open":`i-catppuccin:folder-node-open icon-catppuccin`,link:!0,open:!1},null,8,[`node`])],64)):n(``,!0),Object.keys(i.value.virtual.children).length?(m(),h(u,{key:2},[r[1]||=g(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),e(a,{node:i.value.virtual,p:`l3`,icon:`i-catppuccin:folder-components icon-catppuccin`,"icon-open":`i-catppuccin:folder-components-open icon-catppuccin`,link:!0,open:!1},null,8,[`node`])],64)):n(``,!0)])])}}}),{__name:`ModulesFolder`}),re={sticky:``,"left-4":``,"right-4":``,"top-4":``,"z-panel-nav":``,"p-4":``},$={key:0,h10:``,mr2:``,flex:`~ items-center`},ie={flex:`~ wrap gap-2 items-center`,p2:``,border:`t base`},ae=[`onClick`],oe={key:4,fixed:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},se={op50:``},ce=o({__name:`index`,props:{session:{}},setup(t){let o=t,S=v(),D=y(),O=_({search:S.query.search||``,selected:S.query.file_types?L(S.query.file_types):null,node_modules:S.query.node_modules?L(S.query.node_modules):null}),j=[{label:`List`,value:`list`,icon:`i-ph-list-bullets-duotone`},{label:`Detailed List`,value:`detailed-list`,icon:`i-ph-list-magnifying-glass-duotone`},{label:`Graph`,value:`graph`,icon:`i-ph-graph-duotone`},{label:`Folder`,value:`folder`,icon:`i-ph-folder-duotone`}];x(O.value,e=>{let t={...S.query,search:e.search||void 0,file_types:e.selected||void 0,node_modules:e.node_modules||void 0};D.replace({query:R(t)})},{debounce:500});let M=l(()=>o.session.modulesList.map(e=>({mod:e,path:ee(e.id,o.session.meta.cwd),type:w(e.id)}))),N=l(()=>C.filter(e=>M.value.some(t=>e.match.test(t.mod.id)))),I=l(()=>{let e=M.value;return O.value.selected&&(e=e.filter(e=>{let t=w(e.mod.id);return O.value.selected.includes(t.name)})),O.value.node_modules&&(e=e.filter(e=>e.path.moduleName&&O.value.node_modules.includes(e.path.moduleName))),e.map(e=>({...e.mod,path:e.path.path}))}),{pathSelectorVisible:z,selectPathNodes:B,togglePathSelector:H,normalizedGraph:U}=F({onToggle:e=>{O.value.search=e?!1:``},dataMap:l(()=>new Map(o.session.modulesList.map(e=>[e.id,e]))),list:I,importIdKey:`module_id`}),W=b(()=>I.value,()=>new A(I.value,{includeScore:!0,keys:[`id`],ignoreLocation:!0,threshold:.4})),G=l(()=>O.value.search?W.value.search(O.value.search).map(e=>e.item):I.value);function K(e){S.query.module&&D.replace({query:{...S.query,module:void 0}}),E.value.moduleGraphViewType=e}return(o,l)=>{let _=V,v=T,y=P,b=k,x=Y,S=Z,C=ne;return m(),h(`div`,{relative:``,class:i({"max-h-screen of-hidden":f(E).moduleGraphViewType===`graph`})},[g(`div`,re,[e(b,{modelValue:O.value,"onUpdate:modelValue":l[2]||=e=>O.value=e,rules:N.value},r({"search-end":p(()=>[f(E).moduleGraphViewType===`graph`?(m(),h(`div`,$,[g(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Graph Path Selector`,onClick:l[1]||=e=>f(H)(!0)},[...l[3]||=[g(`i`,{"i-ri:route-line":``,flex:``},null,-1)]])])):n(``,!0)]),default:p(()=>[g(`div`,ie,[l[4]||=g(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(m(),h(u,null,c(j,e=>g(`button`,{key:e.value,"btn-action":``,class:i(f(E).moduleGraphViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>K(e.value)},[g(`div`,{class:i(e.icon)},null,2),d(` `+a(e.label),1)],10,ae)),64))])]),_:2},[f(z)?{name:`search`,fn:p(()=>[e(y,{session:t.session,data:G.value,"import-id-key":`module_id`,"search-keys":[`id`],onSelect:f(B),onClose:l[0]||=e=>f(H)(!1)},{list:p(({select:e,data:r})=>[r?.length?(m(),s(_,{key:0,session:t.session,modules:r,"disable-tooltip":``,link:!1,onSelect:e},null,8,[`session`,`modules`,`onSelect`])):n(``,!0)]),item:p(({id:n})=>[e(v,{id:n,session:t.session,block:``,"text-nowrap":``,link:!1,"disable-tooltip":!0},null,8,[`id`,`session`])]),_:1},8,[`session`,`data`,`onSelect`])]),key:`0`}:void 0]),1032,[`modelValue`,`rules`])]),f(E).moduleGraphViewType===`list`?(m(),s(_,{key:0,session:t.session,modules:G.value},null,8,[`session`,`modules`])):f(E).moduleGraphViewType===`detailed-list`?(m(),s(x,{key:1,session:t.session,modules:G.value},null,8,[`session`,`modules`])):f(E).moduleGraphViewType===`graph`?(m(),s(S,{key:2,session:t.session,modules:f(U)},null,8,[`session`,`modules`])):(m(),s(C,{key:3,session:t.session,modules:G.value},null,8,[`session`,`modules`])),f(E).moduleGraphViewType===`list`||f(E).moduleGraphViewType===`detailed-list`?(m(),h(`div`,oe,[g(`span`,se,a(G.value.length)+` of `+a(t.session.modulesList.length),1)])):n(``,!0)],2)}}});export{ce as default};
@@ -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"./DAfG6Q5x.js";import{r as u}from"./B2xjE9S9.js";import{n as d,t as f}from"./CXpJVZ-W.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
- import{Tt as e,b as t,ot as n,vt as r,yt as i}from"./DAfG6Q5x.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{Gt as e,Jt as t,M as n,Q as r,S as i,b as a,lt as o,q as s,w as c,x as l}from"./DAfG6Q5x.js";function u(e,t){let n=[];return n=e==null?[``,`-`]:e<1?[`<1`,`ms`]:e<1e3?[e.toFixed(0),`ms`]:e<1e3*60?[(e/1e3).toFixed(1),`s`]:[(e/1e3/60).toFixed(1),`min`],t?n.join(` `):n}var d={"ml-0.4":``,"text-xs":``,op75:``},f=n({__name:`DisplayNumberWithUnit`,props:{number:{},unit:{}},setup(e){return(n,i)=>(s(),c(`div`,null,[r(n.$slots,`default`),l(`span`,null,t(e.number),1),l(`span`,d,t(e.unit),1)]))}}),p=n({__name:`DisplayDuration`,props:{duration:{},factor:{default:1},unit:{default:`ms`},color:{type:Boolean,default:!0}},setup(t){let n=t,c=a(()=>{if(n.duration!=null)return n.unit===`ns`?n.duration/1e3:n.duration});function l(e){return!n.color||e==null?``:(e*=n.factor,e<1?`op50`:e>1e4?`color-scale-critical`:e>1e3?`color-scale-high`:e>500?`color-scale-medium`:e>200?`color-scale-low`:`color-scale-neutral`)}let d=a(()=>u(c.value));return(t,n)=>(s(),i(f,{class:e(l(c.value)),number:d.value[0],unit:d.value[1]},{default:o(()=>[r(t.$slots,`default`)]),_:3},8,[`class`,`number`,`unit`]))}});export{u as n,p as t};
@@ -1 +0,0 @@
1
- import{F as e,M as t,S as n,q as r,tt as i}from"./DAfG6Q5x.js";import{t as a}from"./BgSZqMub.js";var o=Object.assign(t({__name:`PluginName`,props:{name:{},compact:{type:Boolean},colored:{type:Boolean},hide:{type:Boolean}},setup(t){let o=t,s=[`__load__`,`vite-plugin-`,`vite-`,`rollup-plugin-`,`rollup-`,`unplugin-`],c=[...s,`vite:`];function l(){let t=o.compact?c:s;for(let n of t)if(o.name.startsWith(n))return o.compact?e(`span`,o.name.slice(n.length)):e(`span`,[e(`span`,{class:`op50`},n),e(`span`,o.name.slice(n.length))]);let n=o.name.split(`:`);return n.length>1?e(`span`,[e(`span`,{style:{color:a(n[0])}},`${n[0]}:`),e(`span`,n.slice(1).join(`:`))]):e(`span`,o.name)}return(e,t)=>(r(),n(i(l)))}}),{__name:`DisplayPluginName`});export{o as t};
@@ -1 +0,0 @@
1
- import{C as e,Jt as t,M as n,kt as r,q as i,w as a}from"./DAfG6Q5x.js";import{i as o}from"./DGp5TtxR.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{r as e}from"./DfB5JIVQ.js";import{A as t,C as n,G as r,Gt as i,Jt as a,M as o,S as s,Z as c,b as l,h as u,k as d,lt as f,q as p,w as m,x as h,xt as g,z as _}from"./DAfG6Q5x.js";import{C as v}from"./D1igyLjg.js";import{n as y}from"#entry";import{t as b}from"./Bi5REHPk.js";import{t as x}from"./D3O7sl5Q.js";import{t as S}from"./CqfNwh25.js";var C=Object.assign(o({__name:`ComparisonMetric`,props:{current:{},previous:{}},setup(e){let t=e,n=l(()=>t.previous===t.current),r=l(()=>n.value?`0`:t.previous===0?`100.00`:Math.abs((t.current-t.previous)/t.previous*100).toFixed(2)),o=l(()=>n.value?``:t.current>t.previous?`+`:`-`),s=l(()=>n.value?`text-gray-500`:t.current>t.previous?`text-green-500`:`text-red-500`);return(e,t)=>(p(),m(`span`,{"text-4":``,"mt-1":``,"font-mono":``,class:i(s.value)},a(o.value)+a(r.value)+`% `,3))}}),{__name:`DisplayComparisonMetric`}),w=[`title`],T={flex:`~ gap-2`,"items-center":``},E={key:0},D={"font-semibold":``,"text-5":``,"font-mono":``},O={"font-semibold":``,"text-4":``,"font-mono":``},k={key:1},A={"font-semibold":``,"text-5":``,"font-mono":``},j=Object.assign(o({__name:`MetricCard`,props:{name:{},description:{},icon:{},current:{},previous:{},format:{}},setup(e){let t=e,r=l(()=>t.format===`bytes`?S(t.current):t.current);return(t,o)=>{let c=C;return p(),m(u,null,[h(`div`,{"font-500":``,op50:``,"text-4":``,flex:`~ items-center gap-2`,title:e.description},[h(`div`,{class:i([e.icon,`text-xl`])},null,2),d(` `+a(e.name),1)],8,w),h(`div`,T,[e.format===`bytes`?(p(),m(`div`,E,[h(`span`,D,a(r.value[0]),1),h(`span`,O,a(r.value[1]),1)])):(p(),m(`div`,k,[h(`span`,A,a(r.value),1)])),e.previous>0&&e.current>0?(p(),s(c,{key:2,current:e.current,previous:e.previous},null,8,[`current`,`previous`])):n(``,!0)])],64)}}}),{__name:`CompareMetricCard`}),M={key:1,"h-screen":``,"w-screen":``,"max-w-screen":``,"max-h-screen":``,"of-hidden":``,p6:``,flex:`~ col gap-2`},N={flex:`~ gap-2`},P={flex:`~ col`,border:`~ base rounded-lg`,p3:``,mt10:``},F={grid:`~ cols-6 gap5`,"w-full":``,pt3:``},I=o({__name:`index`,setup(n){let a=g(!1),o=v().params,S=e(),C=g([]),w=g([]);async function T(e){let t=await S.value.call(`vite:rolldown:get-packages`,{session:e}),n=t.filter(e=>e.duplicated);return{total:t.length,duplicated:n.length}}r(async()=>{a.value=!0;let e=o.sessions.split(`,`),[t,...n]=await Promise.all([S.value.call(`vite:rolldown:get-session-compare-summary`,{sessions:e}),...e.map(e=>T(e))]);C.value=t,w.value=n,a.value=!1});let E=l(()=>C.value.map((e,t)=>({...e,createdAt:new Date(e.meta?.timestamp??0),title:t===0?`Session A`:`Session B`}))),D=l(()=>{let[e,t]=E.value;return[{name:`Bundle Size`,description:`Total file size of the assets`,icon:`i-ph-package-duotone`,current:t?.bundle_size??0,previous:e?.bundle_size??0,format:`bytes`},{name:`Initial JS`,description:`Total file size of the initial JS chunks`,icon:`i-ph-file-js-duotone`,current:t?.initial_js??0,previous:e?.initial_js??0,format:`bytes`},{name:`Modules`,description:`Total number of modules`,icon:`i-ph-graph-duotone`,current:t?.modules??0,previous:e?.modules??0},{name:`Packages`,description:`Total number of packages`,icon:`i-ph-package-duotone`,current:w.value?.[1]?.total??0,previous:w.value?.[0]?.total??0},{name:`Duplicated Packages`,description:`Total number of duplicated packages`,icon:`i-ph-package-duotone`,current:w.value?.[1]?.duplicated??0,previous:w.value?.[0]?.duplicated??0},{name:`Plugins`,description:`Total number of plugins`,icon:`i-ph-plugs-duotone`,current:t?.meta?.plugins.length??0,previous:e?.meta?.plugins.length??0},{name:`Chunks`,description:`Total number of chunks`,icon:`i-ph-shapes-duotone`,current:t?.chunks??0,previous:e?.chunks??0},{name:`Assets`,description:`Total number of assets`,icon:`i-ph-package-duotone`,current:t?.assets??0,previous:e?.assets??0}]});return(e,n)=>{let r=y,o=b,l=x,g=j;return a.value?(p(),s(r,{key:0})):(p(),m(`div`,M,[h(`div`,N,[t(o,{"btn-action":``,to:{path:`/`}},{default:f(()=>[...n[0]||=[h(`div`,{"i-ph-arrow-bend-up-left-duotone":``},null,-1),d(` Re-select Session `,-1)]]),_:1})]),h(`div`,P,[n[1]||=h(`div`,{py3:``,"indent-2":``},` Compare Overview `,-1),t(l,{sessions:E.value},null,8,[`sessions`]),h(`div`,F,[(p(!0),m(u,null,c(D.value,(e,n)=>(p(),m(`div`,{key:e.name,class:i(n<2?`col-span-3`:`col-span-2`),border:`~ base rounded`,p4:``,flex:`~ col`,gap2:``},[t(g,_({ref_for:!0},e),null,16)],2))),128))])])]))}}});export{I as default};
@@ -1 +0,0 @@
1
- import{F as e,M as t}from"./DAfG6Q5x.js";import{t as n}from"./BgSZqMub.js";import{n as r}from"./DoJ6DaKu.js";var i=t({name:`HighlightedPackageName`,props:{name:{type:String,required:!0}},setup(t){return()=>{let i=t.name;if(!r(i))return e(`span`,{class:`text-gray-500`},i);let a=n(i);if(i.startsWith(`@`)){let[t,n]=i.split(`/`);return[e(`span`,{style:`color: ${a}`},t),e(`span`,{style:`color: ${a}`,class:`op50`},`/`),e(`span`,{style:`color: ${a}`},n)]}return e(`span`,{style:`color: ${a}`},i)}}});export{i as t};
@@ -1 +0,0 @@
1
- import{M as e,Q as t,at as n,q as r,st as i,w as a,x as o}from"./DAfG6Q5x.js";var s={class:`px4`,flex:`~ col gap2`},c=Object.assign(e({__name:`Treemap`,props:{graph:{},selected:{}},emits:[`select`],setup(e,{emit:c}){let l=e,u=c,d=n(`el`);return i(()=>d.value?.append(l.graph.el)),(n,i)=>(r(),a(`div`,s,[t(n.$slots,`default`,{selected:e.selected,options:e.graph.options,onSelect:i[0]||=e=>u(`select`,e)},()=>[i[1]||=o(`div`,{border:`b base`,py2:``,"min-h-10":``},null,-1)]),o(`div`,{ref_key:`el`,ref:d},null,512)]))}}),{__name:`ChartTreemap`});export{c 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 S,kt as C,m as w,ot as ie,p as ae,wt as oe,xt as se,y as T,yt as ce,zt as le}from"./DAfG6Q5x.js";var E=void 0,D=typeof window<`u`&&window.trustedTypes;if(D)try{E=D.createPolicy(`vue`,{createHTML:e=>e})}catch{}var O=E?e=>E.createHTML(e):e=>e,ue=`http://www.w3.org/2000/svg`,de=`http://www.w3.org/1998/Math/MathML`,k=typeof document<`u`?document:null,fe=k&&k.createElement(`template`),pe={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`?k.createElementNS(ue,e):t===`mathml`?k.createElementNS(de,e):n?k.createElement(e,{is:n}):k.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>k.createTextNode(e),createComment:e=>k.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>k.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{fe.innerHTML=O(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=fe.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]}},A=`transition`,j=`animation`,M=Symbol(`_vtc`),me={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},he=f({},w,me),ge=(e=>(e.displayName=`Transition`,e.props=he,e))((e,{slots:t})=>i(ae,ve(e),t)),N=(e,t=[])=>{c(e)?e.forEach(e=>e(...t)):e&&e(...t)},_e=e=>e?c(e)?e.some(e=>e.length>1):e.length>1:!1;function ve(e){let t={};for(let n in e)n in me||(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=ye(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,S=(e,t,n,r)=>{e._enterCancelled=r,F(e,t?u:s),F(e,t?l:o),n&&n()},C=(e,t)=>{e._isLeaving=!1,F(e,d),F(e,m),F(e,p),t&&t()},w=e=>(t,n)=>{let i=e?b:g,o=()=>S(t,e,n);N(i,[t,o]),xe(()=>{F(t,e?c:a),P(t,e?u:s),_e(i)||Ce(t,r,ee,o)})};return f(t,{onBeforeEnter(e){N(ne,[e]),P(e,a),P(e,o)},onBeforeAppear(e){N(re,[e]),P(e,c),P(e,l)},onEnter:w(!1),onAppear:w(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>C(e,t);P(e,d),e._enterCancelled?(P(e,p),De(e)):(De(e),P(e,p)),xe(()=>{e._isLeaving&&(F(e,d),P(e,m),_e(v)||Ce(e,r,te,n))}),N(v,[e,n])},onEnterCancelled(e){S(e,!1,void 0,!0),N(_,[e])},onAppearCancelled(e){S(e,!0,void 0,!0),N(x,[e])},onLeaveCancelled(e){C(e),N(y,[e])}})}function ye(e){if(e==null)return null;if(le(e))return[be(e.enter),be(e.leave)];{let t=be(e);return[t,t]}}function be(e){return re(e)}function P(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[M]||(e[M]=new Set)).add(t)}function F(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[M];n&&(n.delete(t),n.size||(e[M]=void 0))}function xe(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Se=0;function Ce(e,t,n,r){let i=e._endId=++Se,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=we(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 we(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${A}Delay`),a=r(`${A}Duration`),o=Te(i,a),s=r(`${j}Delay`),c=r(`${j}Duration`),l=Te(s,c),u=null,d=0,f=0;t===A?o>0&&(u=A,d=o,f=a.length):t===j?l>0&&(u=j,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?A:j:null,f=u?u===A?a.length:c.length:0);let p=u===A&&/\b(?:transform|all)(?:,|$)/.test(r(`${A}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Te(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Ee(t)+Ee(e[n])))}function Ee(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function De(e){return(e?e.ownerDocument:document).body.offsetHeight}function Oe(e,t,n){let r=e[M];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var ke=Symbol(`_vod`),Ae=Symbol(`_vsh`),je={name:`show`,beforeMount(e,{value:t},{transition:n}){e[ke]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Me(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),Me(e,!0),r.enter(e)):r.leave(e,()=>{Me(e,!1)}):Me(e,t))},beforeUnmount(e,{value:t}){Me(e,t)}};function Me(e,t){e.style.display=t?e[ke]:`none`,e[Ae]=!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`);ke in e&&(e[ke]=a?r.display:``,e[Ae]&&(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=S(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`?O(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;T($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`?Oe(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},pe),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=/\+/g,It=/%5e/gi,Lt=/%60/gi,Rt=/%7c/gi,zt=/%20/gi,Bt=/%2f/gi,Vt=/%252f/gi;function Ht(e){return encodeURI(``+e).replace(Rt,`|`)}function Ut(e){return Ht(typeof e==`string`?e:JSON.stringify(e)).replace(Ft,`%2B`).replace(zt,`+`).replace(At,`%23`).replace(jt,`%26`).replace(Lt,"`").replace(It,`^`).replace(Mt,`%2F`)}function Wt(e){return Ut(e).replace(Nt,`%3D`)}function Gt(e){return Ht(e).replace(At,`%23`).replace(Pt,`%3F`).replace(Vt,`%2F`).replace(jt,`%26`).replace(Ft,`%2B`)}function R(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function Kt(e){return R(e.replace(Bt,`%252F`))}function qt(e){return R(e.replace(Ft,` `))}function Jt(e){return R(e.replace(Ft,` `))}function Yt(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=qt(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=Jt(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 Xt(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${Wt(e)}=${Ut(t)}`).join(`&`):`${Wt(e)}=${Ut(t)}`:Wt(e)}function Zt(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Xt(t,e[t])).filter(Boolean).join(`&`)}var Qt=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,$t=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,en=/^([/\\]\s*){2,}[^/\\]/,tn=/^[\s\0]*(blob|data|javascript|vbscript):$/i,nn=/\/$|\/\?|\/#/,rn=/^\.?\//;function z(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?Qt.test(e):$t.test(e)||(t.acceptRelative?en.test(e):!1)}function an(e){return!!e&&tn.test(e)}function on(e=``,t){return t?nn.test(e):e.endsWith(`/`)}function B(e=``,t){if(!t)return(on(e)?e.slice(0,-1):e)||`/`;if(!on(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 sn(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(on(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 cn(e,t){if(dn(t)||z(e))return e;let n=B(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return pn(n,e)}function ln(e,t){if(dn(t))return e;let n=B(t);if(!e.startsWith(n))return e;let r=e[n.length];return r&&r!==`/`&&r!==`?`?e:`/`+e.slice(n.length).replace(/^\/+/,``)}function un(e,t){let n=_n(e);return n.search=Zt({...Yt(n.search),...t}),yn(n)}function dn(e){return!e||e===`/`}function fn(e){return e&&e!==`/`}function pn(e,...t){let n=e||``;for(let e of t.filter(e=>fn(e)))if(n){let t=e.replace(rn,``);n=sn(n)+t}else n=e;return n}function mn(...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&&z(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 hn(e,t){return R(B(e))===R(B(t))}var gn=Symbol.for(`ufo:protocolRelative`);function _n(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(!z(e,{acceptRelative:!0}))return t?_n(t+e):vn(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}=vn(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[gn]:!r}}function vn(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function yn(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[gn]?(e.protocol||``)+`//`:``)+i+a+t+n+r}function bn(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 xn(e,t,n=`.`,r){if(!bn(t))return xn(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]]:bn(a)&&bn(i[t])?i[t]=xn(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function Sn(e){return(...t)=>t.reduce((t,n)=>xn(t,n,``,e),{})}var Cn=Sn();function wn(e,t){try{return t in e}catch{return!1}}var Tn=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:An(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=kn(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function En(e){if(typeof e==`string`)return new Tn(e);if(Dn(e))return e;let t=new Tn(e.message??e.statusMessage??``,{cause:e.cause||e});if(wn(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=An(e.statusCode,t.statusCode):e.status&&(t.statusCode=An(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;kn(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 Dn(e){return e?.constructor?.__h3_error__===!0}var On=/[^\u0009\u0020-\u007E]/g;function kn(e=``){return e.replace(On,``)}function An(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;var jn=Symbol(`layout-meta`),Mn=Symbol(`route`);import.meta.url.replace(/\/app\/.*$/,`/`);var V=()=>x()?.$router,Nn=()=>s()?l(Mn,x()._route):x()._route;function Pn(e){return e}var Fn=()=>{try{if(x()._processingMiddleware)return!0}catch{return!1}return!1},In=(e,t)=>{e||=`/`;let n=typeof e==`string`?e:`path`in e?Ln(e):V().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=z(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&&an(e))throw Error(`Cannot navigate to a URL with '${e}' protocol.`)}let a=Fn();if(!i&&a){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=_n(e);return{path:t,...n&&{query:Yt(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let o=V(),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`?Rn(e):e;return t?.replace?o.replace(c):o.push(c)};function Ln(e){return un(e.path||``,e.query||{})+(e.hash||``)}function Rn(e){let t=_n(e);return Gt(Kt(t.pathname))+t.search+t.hash}var zn=`__nuxt_error`,Bn=()=>ne(x().payload,`error`),Vn=e=>{let t=Wn(e);try{let e=Bn();x().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},Hn=async(e={})=>{let t=x(),n=Bn();t.callHook(`app:error:cleared`,e),e.redirect&&await V().replace(e.redirect),n.value=void 0},Un=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,Wn=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=En(e);return Object.defineProperty(t,zn,{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},H=typeof document<`u`;function Gn(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Kn(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Gn(e.default)}var U=Object.assign;function qn(e,t){let n={};for(let r in t){let i=t[r];n[r]=W(i)?i.map(e):e(i)}return n}var Jn=()=>{},W=Array.isArray;function Yn(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var G=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}({}),Xn=Symbol(``);G.MATCHER_NOT_FOUND,G.NAVIGATION_GUARD_REDIRECT,G.NAVIGATION_ABORTED,G.NAVIGATION_CANCELLED,G.NAVIGATION_DUPLICATED;function K(e,t){return U(Error(),{type:e,[Xn]:!0},t)}function q(e,t){return e instanceof Error&&Xn in e&&(t==null||!!(e.type&t))}var Zn=Symbol(``),Qn=Symbol(``),$n=Symbol(``),er=Symbol(``),tr=Symbol(``),nr=/#/g,rr=/&/g,ir=/\//g,ar=/=/g,or=/\?/g,sr=/\+/g,cr=/%5B/g,lr=/%5D/g,ur=/%5E/g,dr=/%60/g,fr=/%7B/g,pr=/%7C/g,mr=/%7D/g,hr=/%20/g;function gr(e){return e==null?``:encodeURI(``+e).replace(pr,`|`).replace(cr,`[`).replace(lr,`]`)}function _r(e){return gr(e).replace(fr,`{`).replace(mr,`}`).replace(ur,`^`)}function vr(e){return gr(e).replace(sr,`%2B`).replace(hr,`+`).replace(nr,`%23`).replace(rr,`%26`).replace(dr,"`").replace(fr,`{`).replace(mr,`}`).replace(ur,`^`)}function yr(e){return vr(e).replace(ar,`%3D`)}function br(e){return gr(e).replace(nr,`%23`).replace(or,`%3F`)}function xr(e){return br(e).replace(ir,`%2F`)}function Sr(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Cr=/\/$/,wr=e=>e.replace(Cr,``);function Tr(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=Mr(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Sr(o)}}function Er(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Dr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Or(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&J(t.matched[r],n.matched[i])&&kr(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function J(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function kr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ar(e[n],t[n]))return!1;return!0}function Ar(e,t){return W(e)?jr(e,t):W(t)?jr(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function jr(e,t){return W(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Mr(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 Y={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},Nr=function(e){return e.pop=`pop`,e.push=`push`,e}({}),Pr=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function Fr(e){if(!e)if(H){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),wr(e)}var Ir=/^[^#]+#/;function Lr(e,t){return e.replace(Ir,`#`)+t}function Rr(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 zr=()=>({left:window.scrollX,top:window.scrollY});function Br(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=Rr(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 Vr(e,t){return(history.state?history.state.position-t:-1)+e}var Hr=new Map;function Ur(e,t){Hr.set(e,t)}function Wr(e){let t=Hr.get(e);return Hr.delete(e),t}function Gr(e){return typeof e==`string`||e&&typeof e==`object`}function Kr(e){return typeof e==`string`||typeof e==`symbol`}function qr(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(sr,` `),i=r.indexOf(`=`),a=Sr(i<0?r:r.slice(0,i)),o=i<0?null:Sr(r.slice(i+1));if(a in t){let e=t[a];W(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Jr(e){let t=``;for(let n in e){let r=e[n];if(n=yr(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(W(r)?r.map(e=>e&&vr(e)):[r&&vr(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Yr(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=W(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Xr(){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(K(G.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Gr(e)?c(K(G.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 Zr(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(Gn(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=Kn(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 Qr(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=>J(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>J(e,s))||i.push(s))}return[n,r,i]}var $r=()=>location.protocol+`//`+location.host;function ei(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),Dr(n,``)}return Dr(n,e)+r+i}function ti(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=ei(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:Nr.pop,direction:u?u>0?Pr.forward:Pr.back:Pr.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(U({},e.state,{scroll:zr()}),``)}}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 ni(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?zr():null}}function ri(e){let{history:t,location:n}=window,r={value:ei(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:$r()+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,U({},t.state,ni(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=U({},i.value,t.state,{forward:e,scroll:zr()});a(o.current,o,!0),a(e,U({},ni(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function ii(e){e=Fr(e);let t=ri(e),n=ti(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=U({location:``,base:e,go:r,createHref:Lr.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 ai(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),ii(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||{}),oi={type:Z.Static,value:``},si=/[a-zA-Z0-9_]/;function ci(e){if(!e)return[[]];if(e===`/`)return[[oi]];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:si.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 li=`[^/]+?`,ui={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}($||{}),di=/[.+*?^${}()[\]/\\]/g;function fi(e,t){let n=U({},ui,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(di,`\\$&`),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||li;if(u!==li){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(W(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=W(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 pi(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 mi(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=pi(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(hi(r))return 1;if(hi(i))return-1}return i.length-r.length}function hi(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var gi={strict:!1,end:!0,sensitive:!1};function _i(e,t,n){let r=U(fi(ci(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function vi(e,t){let n=[],r=new Map;t=Yn(gi,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=bi(e);s.aliasOf=r&&r.record;let l=Yn(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(bi(U({},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=_i(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Si(d)&&o(e.name)),Ei(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)}:Jn}function o(e){if(Kr(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=wi(e,n);n.splice(t,0,e),e.record.name&&!Si(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 K(G.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=U(yi(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&yi(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 K(G.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=U({},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:Ci(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 yi(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function bi(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:xi(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 xi(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 Si(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ci(e){return e.reduce((e,t)=>U(e,t.meta),{})}function wi(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;mi(e,t[i])<0?r=i:n=i+1}let i=Ti(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Ti(e){let t=e;for(;t=t.parent;)if(Ei(t)&&mi(e,t)===0)return t}function Ei({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Di(e){let t=l($n),n=l(er),r=b(()=>{let n=C(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(J.bind(null,i));if(o>-1)return o;let s=Mi(e[t-2]);return t>1&&Mi(i)===s&&a[a.length-1].path!==s?a.findIndex(J.bind(null,e[t-2])):o}),a=b(()=>i.value>-1&&ji(n.params,r.value.params)),o=b(()=>i.value>-1&&i.value===n.matched.length-1&&kr(n.params,r.value.params));function s(n={}){if(Ai(n)){let n=t[C(e.replace)?`replace`:`push`](C(e.to)).catch(Jn);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 Oi(e){return e.length===1?e[0]:e}var ki=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:Di,setup(e,{slots:t}){let n=ce(Di(e)),{options:r}=l($n),a=b(()=>({[Ni(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Ni(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Oi(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 Ai(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 ji(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(!W(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Mi(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Ni=(e,t,n)=>e??t??n,Pi=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(tr),a=b(()=>e.route||r.value),o=l(Qn,0),s=b(()=>{let e=C(o),{matched:t}=a.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),c=b(()=>a.value.matched[s.value]);y(Qn,b(()=>s.value+1)),y(Zn,c),y(tr,a);let u=se();return ie(()=>[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||!J(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 Fi(n.default,{Component:l,route:r});let d=s.props[o],f=i(l,U({},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 Fi(n.default,{Component:f,route:r})||f}}});function Fi(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Ii=Pi;function Li(e){let n=vi(e.routes,e),r=e.parseQuery||qr,i=e.stringifyQuery||Jr,a=e.history,o=Xr(),s=Xr(),c=Xr(),l=oe(Y),u=Y;H&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let d=qn.bind(null,e=>``+e),f=qn.bind(null,xr),p=qn.bind(null,Sr);function m(e,t){let r,i;return Kr(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=U({},t||l.value),typeof e==`string`){let i=Tr(r,e,t.path),o=n.resolve({path:i.path},t),s=a.createHref(i.fullPath);return U(i,o,{params:p(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=U({},e,{path:Tr(r,e.path,t.path).path});else{let n=U({},e.params);for(let e in n)n[e]??delete n[e];o=U({},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=Er(i,U({},e,{hash:_r(c),path:s.path})),m=a.createHref(u);return U({fullPath:u,hash:c,query:i===Jr?Yr(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function _(e){return typeof e==`string`?Tr(r,e,l.value.path):U({},e)}function v(e,t){if(u!==e)return K(G.NAVIGATION_CANCELLED,{from:t,to:e})}function y(e){return x(e)}function re(e){return y(U(_(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={}),U({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(U(_(c),{state:typeof c==`object`?U({},a,c.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&Or(i,r,n)&&(f=K(G.NAVIGATION_DUPLICATED,{to:d,from:r}),k(r,r,!0,!1)),(f?Promise.resolve(f):ie(d,r)).catch(e=>q(e)?q(e,G.NAVIGATION_GUARD_REDIRECT)?e:de(e):O(e,d,r)).then(e=>{if(e){if(q(e,G.NAVIGATION_GUARD_REDIRECT))return x(U({replace:s},_(e.to),{state:typeof e.to==`object`?U({},a,e.to.state):a,force:o}),t||d)}else e=se(d,r,!0,s,a);return ae(d,r,e),e})}function S(e,t){let n=v(e,t);return n?Promise.reject(n):Promise.resolve()}function w(e){let t=A.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ie(e,t){let n,[r,i,a]=Qr(e,t);n=Zr(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(X(r,e,t))});let c=S.bind(null,e,t);return n.push(c),M(n).then(()=>{n=[];for(let r of o.list())n.push(X(r,e,t));return n.push(c),M(n)}).then(()=>{n=Zr(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(X(r,e,t))});return n.push(c),M(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(W(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),M(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Zr(a,`beforeRouteEnter`,e,t,w),n.push(c),M(n))).then(()=>{n=[];for(let r of s.list())n.push(X(r,e,t));return n.push(c),M(n)}).catch(e=>q(e,G.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function ae(e,t,n){c.list().forEach(r=>w(()=>r(e,t,n)))}function se(e,t,n,r,i){let o=v(e,t);if(o)return o;let s=t===Y,c=H?history.state:{};n&&(r||s?a.replace(e.fullPath,U({scroll:s&&c&&c.scroll},i)):a.push(e.fullPath,i)),l.value=e,k(e,t,n,s),de()}let T;function ce(){T||=a.listen((e,t,n)=>{if(!j.listening)return;let r=g(e),i=b(r,j.currentRoute.value);if(i){x(U(i,{replace:!0,force:!0}),r).catch(Jn);return}u=r;let o=l.value;H&&Ur(Vr(o.fullPath,n.delta),zr()),ie(r,o).catch(e=>q(e,G.NAVIGATION_ABORTED|G.NAVIGATION_CANCELLED)?e:q(e,G.NAVIGATION_GUARD_REDIRECT)?(x(U(_(e.to),{force:!0}),r).then(e=>{q(e,G.NAVIGATION_ABORTED|G.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Nr.pop&&a.go(-1,!1)}).catch(Jn),Promise.reject()):(n.delta&&a.go(-n.delta,!1),O(e,r,o))).then(e=>{e||=se(r,o,!1),e&&(n.delta&&!q(e,G.NAVIGATION_CANCELLED)?a.go(-n.delta,!1):n.type===Nr.pop&&q(e,G.NAVIGATION_ABORTED|G.NAVIGATION_DUPLICATED)&&a.go(-1,!1)),ae(r,o,e)}).catch(Jn)})}let le=Xr(),E=Xr(),D;function O(e,t,n){de(e);let r=E.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function ue(){return D&&l.value!==Y?Promise.resolve():new Promise((e,t)=>{le.add([e,t])})}function de(e){return D||(D=!e,ce(),le.list().forEach(([t,n])=>e?n(e):t()),le.reset()),e}function k(n,r,i,a){let{scrollBehavior:o}=e;if(!H||!o)return Promise.resolve();let s=!i&&Wr(Vr(n.fullPath,0))||(a||!i)&&history.state&&history.state.scroll||null;return t().then(()=>o(n,r,s)).then(e=>e&&Br(e)).catch(e=>O(e,n,r))}let fe=e=>a.go(e),pe,A=new Set,j={currentRoute:l,listening:!0,addRoute:m,removeRoute:h,clearRoutes:n.clearRoutes,hasRoute:ne,getRoutes:te,resolve:g,options:e,push:y,replace:re,go:fe,back:()=>fe(-1),forward:()=>fe(1),beforeEach:o.add,beforeResolve:s.add,afterEach:c.add,onError:E.add,isReady:ue,install(e){e.component(`RouterLink`,ki),e.component(`RouterView`,Ii),e.config.globalProperties.$router=j,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>C(l)}),H&&!pe&&l.value===Y&&(pe=!0,y(a.location).catch(e=>{}));let t={};for(let e in Y)Object.defineProperty(t,e,{get:()=>l.value[e],enumerable:!0});e.provide($n,j),e.provide(er,ee(t)),e.provide(tr,l);let n=e.unmount;A.add(e),e.unmount=function(){A.delete(e),A.size<1&&(u=Y,T&&T(),T=null,l.value=Y,pe=!1,D=!1),n()}}};function M(e){return e.reduce((e,t)=>e.then(()=>w(t)),Promise.resolve())}return j}var Ri=(e,t)=>({default:()=>e?i(ge,e===!0?{}:e,t):t.default?.()}),zi=/(:\w+)\([^)]+\)/g,Bi=/(:\w+)[?+*]/g,Vi=/:\w+/g;function Hi(e){let t=e?.meta.key??e.path.replace(zi,`$1`).replace(Bi,`$1`).replace(Vi,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function Ui(e,t){return e===t||t===Y?!1:Hi(e)===Hi(t)?!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default):!0}function Wi(e){return Array.isArray(e)?e:[e]}function Gi(e){let t=[];for(let n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?Wi(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?Wi(n.onBeforeLeave):void 0});return Cn(...t)}var Ki={scrollBehavior(e,t,n){let r=x(),i=V().options?.scrollBehaviorType??`auto`;return e.path.replace(/\/$/,``)===t.path.replace(/\/$/,``)?t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:qi(e.hash),behavior:i}:!1:(typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1?!1:t===Y?Ji(e,t,n,i):new Promise(a=>{let o=()=>{requestAnimationFrame(()=>a(Ji(e,t,n,i)))};r.hooks.hookOnce(`page:loading:end`,()=>{let e=r[`~transitionPromise`];e?e.then(o):o()})})}};function qi(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 Ji(e,t,n,r){return n||(e.hash?{el:e.hash,top:qi(e.hash),behavior:Ui(e,t)?r:`instant`}:{left:0,top:0})}var Yi={hashMode:!1,scrollBehaviorType:`auto`,...Ki},Xi=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Zi=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Qi=e=>{let t=x();t.isHydrating?t.hooks.hookOnce(`app:suspense:resolve`,()=>{Xi(()=>e())}):Xi(()=>e())};function $i(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function ea(e,t=V()){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(()=>ea(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{mn as A,bt as B,Nn as C,Cn as D,Mn as E,sn as F,ft as G,lt as H,ln as I,B as L,Yt as M,cn as N,z as O,un as P,kt as R,Ln as S,jn as T,je as U,xt as V,mt as W,Vn as _,Xi as a,Rn as b,Ri as c,ai as d,ii as f,Un as g,Wn as h,Zi as i,pn as j,hn as k,Ii as l,Hn as m,ea as n,Yi as o,Y as p,Qi as r,Gi as s,$i as t,Li as u,Bn as v,V as w,In as x,Pn as y,ge as z};
@@ -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"./DAfG6Q5x.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};