@vitejs/devtools-rolldown 0.1.15 → 0.1.16

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 (76) hide show
  1. package/dist/index.mjs +8 -0
  2. package/dist/nitro.json +3 -3
  3. package/dist/public/200.html +1 -1
  4. package/dist/public/404.html +1 -1
  5. package/dist/public/_nuxt/-w-An_zz.js +1 -0
  6. package/dist/public/_nuxt/8kHoufi2.js +1 -0
  7. package/dist/public/_nuxt/B2NMBmj_.js +1 -0
  8. package/dist/public/_nuxt/{CJmfH1zY.js → BE1TLHgg.js} +1 -1
  9. package/dist/public/_nuxt/BJ9pydg6.js +2 -0
  10. package/dist/public/_nuxt/{EWiwEEMI.js → BQl8ArzK.js} +1 -1
  11. package/dist/public/_nuxt/BSjCyhkj2.js +1 -0
  12. package/dist/public/_nuxt/{BPvXWYcE.js → BYXvfkhc.js} +1 -1
  13. package/dist/public/_nuxt/{D0nH_IG_.js → Bc5RWlzj.js} +1 -1
  14. package/dist/public/_nuxt/{BodOO8Ge.js → BhOKQpS-.js} +1 -1
  15. package/dist/public/_nuxt/BxJPsu8U.js +1 -0
  16. package/dist/public/_nuxt/C--RKQDq.js +3 -0
  17. package/dist/public/_nuxt/C0GrmOiu2.js +1 -0
  18. package/dist/public/_nuxt/C1hgbwL7.js +1 -0
  19. package/dist/public/_nuxt/C8iXMxN52.js +1 -0
  20. package/dist/public/_nuxt/CFOnv7GG2.js +1 -0
  21. package/dist/public/_nuxt/CH0ckrws2.js +1 -0
  22. package/dist/public/_nuxt/{CqNyqKYk.js → COiP6LWy.js} +1 -1
  23. package/dist/public/_nuxt/Cdb7S98v.js +1 -0
  24. package/dist/public/_nuxt/{5SREwa_J.js → CnkQlf-T.js} +1 -1
  25. package/dist/public/_nuxt/{BtFAY2HJ.js → Cq-Z9D0_.js} +2 -2
  26. package/dist/public/_nuxt/{CjvJJTNy.js → D-KdwVBL.js} +1 -1
  27. package/dist/public/_nuxt/{CsPVvMxF.js → D2AP-caS.js} +1 -1
  28. package/dist/public/_nuxt/D7YBGhmX.js +4 -0
  29. package/dist/public/_nuxt/{CzCoBrqM.js → D8Se1EWj.js} +1 -1
  30. package/dist/public/_nuxt/DCPELPdh.js +1 -0
  31. package/dist/public/_nuxt/DCcvbzkD.js +1 -0
  32. package/dist/public/_nuxt/{Dab8rtPt.js → DGOkTiBT.js} +1 -1
  33. package/dist/public/_nuxt/DQnWYYE62.js +1 -0
  34. package/dist/public/_nuxt/D_gteVIt.js +1 -0
  35. package/dist/public/_nuxt/{CfHRbb-n.js → D_zbH50i.js} +1 -1
  36. package/dist/public/_nuxt/DataVirtualList.B_Uggh0w.css +1 -0
  37. package/dist/public/_nuxt/DlC6-hYe.js +1 -0
  38. package/dist/public/_nuxt/Dlysmnsb.js +1 -0
  39. package/dist/public/_nuxt/{DlEGTOj9.js → DvZ2T9qR.js} +1 -1
  40. package/dist/public/_nuxt/UafQrA6G.js +1 -0
  41. package/dist/public/_nuxt/{hY2iPUYh.js → XfS7e3PM.js} +1 -1
  42. package/dist/public/_nuxt/builds/latest.json +1 -1
  43. package/dist/public/_nuxt/builds/meta/491cb882-8fb8-455f-9f0c-7ab7cf8e8aa1.json +1 -0
  44. package/dist/public/_nuxt/{entry.bUxZ6pRq.css → entry.DOhOf2z2.css} +1 -1
  45. package/dist/public/_nuxt/{DM5zgFwu.js → erfZtSN7.js} +1 -1
  46. package/dist/public/_nuxt/error-404.DkiWPM7Q.css +1 -0
  47. package/dist/public/_nuxt/error-500.Wfu13SYC.css +1 -0
  48. package/dist/public/_nuxt/jJY8e3xp.js +1 -0
  49. package/dist/public/index.html +1 -1
  50. package/package.json +6 -6
  51. package/dist/public/_nuxt/B5QvmzNX.js +0 -4
  52. package/dist/public/_nuxt/BA4aNJdc.js +0 -1
  53. package/dist/public/_nuxt/BRHdn2TP2.js +0 -1
  54. package/dist/public/_nuxt/BYcqRSer.js +0 -1
  55. package/dist/public/_nuxt/Bt8oNIjq.js +0 -1
  56. package/dist/public/_nuxt/C1f8uPlQ.js +0 -1
  57. package/dist/public/_nuxt/C9-K8SRH.js +0 -1
  58. package/dist/public/_nuxt/CJzuZNT1.js +0 -2
  59. package/dist/public/_nuxt/CL3oUTGS2.js +0 -1
  60. package/dist/public/_nuxt/CRfXUi3G.js +0 -3
  61. package/dist/public/_nuxt/CVZqt4yY2.js +0 -1
  62. package/dist/public/_nuxt/CorBKXDd.js +0 -1
  63. package/dist/public/_nuxt/CpTuuES2.js +0 -1
  64. package/dist/public/_nuxt/DEctdyhd.js +0 -1
  65. package/dist/public/_nuxt/DWUsdlci.js +0 -1
  66. package/dist/public/_nuxt/D_58kiGa.js +0 -1
  67. package/dist/public/_nuxt/DataVirtualList.Co38wNF1.css +0 -1
  68. package/dist/public/_nuxt/DmctoHT82.js +0 -1
  69. package/dist/public/_nuxt/DyCHFg1-2.js +0 -1
  70. package/dist/public/_nuxt/bh0jgFfK.js +0 -1
  71. package/dist/public/_nuxt/builds/meta/325e31f5-a39f-4526-a997-a203cd2d5c81.json +0 -1
  72. package/dist/public/_nuxt/error-404.CcKyMNIP.css +0 -1
  73. package/dist/public/_nuxt/error-500.Bsd8omR1.css +0 -1
  74. package/dist/public/_nuxt/jSaCY0lI2.js +0 -1
  75. package/dist/public/_nuxt/lNa1kApa.js +0 -1
  76. package/dist/public/_nuxt/mLM3LnKH.js +0 -1
@@ -1 +1 @@
1
- import{A as e,C as t,Dt as n,Gt as r,Kt as i,M as a,Q as o,S as s,Ut as c,b as l,lt as u,q as d,tt as f,w as p,x as m}from"./CRfXUi3G.js";import{C as h}from"./CpTuuES2.js";import{a as g}from"#entry";import{t as _}from"./DWUsdlci.js";import{n as v,r as y}from"./5SREwa_J.js";import{n as b,t as x}from"./hY2iPUYh.js";var S=[`textContent`],C=a({__name:`DisplayBadge`,props:{text:{},color:{type:[Boolean,Number],default:!0},as:{},size:{}},setup(e){let t=e,n=l(()=>!t.text||t.color===!1?{}:{color:typeof t.color==`number`?y(t.color):v(t.text),background:typeof t.color==`number`?y(t.color,.1):v(t.text,.1)}),a=l(()=>{switch(t.size||`sm`){case`sm`:return`px-1.5 text-11px leading-1.6em`}return``});return(l,p)=>(d(),s(f(e.as||`span`),{"ws-nowrap":``,rounded:``,class:c(a.value),style:r(n.value)},{default:u(()=>[o(l.$slots,`default`,{},()=>[m(`span`,{textContent:i(t.text)},null,8,S)])]),_:3},8,[`class`,`style`]))}}),w=/^[A-Za-z]:\//;function T(e=``){return e&&e.replace(/\\/g,`/`).replace(w,e=>e.toUpperCase())}var E=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,D=/^\/([A-Za-z]:)?$/;function O(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var k=function(...e){e=e.map(e=>T(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:O();!i||i.length===0||(t=`${i}/${t}`,n=j(i))}return t=A(t,!n),n&&!j(t)?`/${t}`:t.length>0?t:`.`};function A(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}else if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}var j=function(e){return E.test(e)},M=function(e,t){let n=k(e).replace(D,`$1`).split(`/`),r=k(t).replace(D,`$1`).split(`/`);if(r[0][1]===`:`&&n[0][1]===`:`&&n[0]!==r[0])return r.join(`/`);let i=[...n];for(let e of i){if(r[0]!==e)break;n.shift(),r.shift()}return[...n.map(()=>`..`),...r].join(`/`)},N={"overflow-hidden":``,"text-ellipsis":``,"break-all":``,"line-clamp-2":``},P={"font-mono":``,"text-sm":``},F=Object.assign(a({__name:`ModuleId`,props:{id:{},badges:{type:Boolean},icon:{type:Boolean,default:!0},link:{type:[Boolean,String]},minimal:{type:Boolean},kind:{},session:{},cwd:{},disableTooltip:{type:Boolean,default:!1}},setup(r){let a=r,v=h(),y=window.location,S=l(()=>{if(!a.id)return``;let e=a.id.replace(/%2F/g,`/`),t=a.cwd||a.session.meta.cwd,n=t?M(t,e):e;return n.startsWith(`.`)||(n=`./${n}`),n.startsWith(`./`)||/^(?:\.\.\/){1,3}[^.]/.test(n)?n:e}),w=l(()=>`flex items-center`);return(l,h)=>{let T=b,E=x;return d(),s(f(r.link?n(_):`div`),{to:r.link?typeof r.link==`string`?r.link:{path:n(v).path,query:{...n(v).query,module:r.id,chunk:void 0},hash:n(y).hash}:void 0},{default:u(()=>[e(n(g),{"my-auto":``,"text-sm":``,"font-mono":``,block:``,"w-full":``,triggers:[`hover`],delay:1200,disabled:r.disableTooltip||(a.id?.length||0)<30,placement:`bottom-start`},{popper:u(()=>[m(`span`,P,i(a.id),1)]),default:u(()=>[r.id?(d(),p(`div`,{key:0,class:c(w.value)},[r.icon?(d(),s(T,{key:0,filename:r.id,"mr1.5":``},null,8,[`filename`])):t(``,!0),m(`span`,N,[e(E,{path:S.value,minimal:r.minimal},null,8,[`path`,`minimal`])]),o(l.$slots,`default`),r.kind?(d(),s(C,{key:1,class:`ml1`,text:r.kind},null,8,[`text`])):t(``,!0)],2)):t(``,!0),m(`div`,null,[o(l.$slots,`detail`)])]),_:3},8,[`disabled`])]),_:3},8,[`to`])}}}),{__name:`DisplayModuleId`});export{M as n,C as r,F as t};
1
+ import{A as e,C as t,Kt as n,M as r,Ot as i,Q as a,S as o,Wt as s,b as c,lt as l,q as u,qt as d,tt as f,w as p,x as m}from"./C--RKQDq.js";import{C as h}from"./B2NMBmj_.js";import{a as g}from"#entry";import{t as _}from"./jJY8e3xp.js";import{n as v,r as y}from"./CnkQlf-T.js";import{n as b,t as x}from"./XfS7e3PM.js";var S=[`textContent`],C=r({__name:`DisplayBadge`,props:{text:{},color:{type:[Boolean,Number],default:!0},as:{},size:{}},setup(e){let t=e,r=c(()=>!t.text||t.color===!1?{}:{color:typeof t.color==`number`?y(t.color):v(t.text),background:typeof t.color==`number`?y(t.color,.1):v(t.text,.1)}),i=c(()=>{switch(t.size||`sm`){case`sm`:return`px-1.5 text-11px leading-1.6em`}return``});return(c,p)=>(u(),o(f(e.as||`span`),{"ws-nowrap":``,rounded:``,class:s(i.value),style:n(r.value)},{default:l(()=>[a(c.$slots,`default`,{},()=>[m(`span`,{textContent:d(t.text)},null,8,S)])]),_:3},8,[`class`,`style`]))}}),w=/^[A-Za-z]:\//;function T(e=``){return e&&e.replace(/\\/g,`/`).replace(w,e=>e.toUpperCase())}var E=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,D=/^\/([A-Za-z]:)?$/;function O(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var k=function(...e){e=e.map(e=>T(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:O();!i||i.length===0||(t=`${i}/${t}`,n=j(i))}return t=A(t,!n),n&&!j(t)?`/${t}`:t.length>0?t:`.`};function A(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}else if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}var j=function(e){return E.test(e)},M=function(e,t){let n=k(e).replace(D,`$1`).split(`/`),r=k(t).replace(D,`$1`).split(`/`);if(r[0][1]===`:`&&n[0][1]===`:`&&n[0]!==r[0])return r.join(`/`);let i=[...n];for(let e of i){if(r[0]!==e)break;n.shift(),r.shift()}return[...n.map(()=>`..`),...r].join(`/`)},N={"overflow-hidden":``,"text-ellipsis":``,"break-all":``,"line-clamp-2":``},P={"font-mono":``,"text-sm":``},F=Object.assign(r({__name:`ModuleId`,props:{id:{},badges:{type:Boolean},icon:{type:Boolean,default:!0},link:{type:[Boolean,String]},minimal:{type:Boolean},kind:{},session:{},cwd:{},disableTooltip:{type:Boolean,default:!1}},setup(n){let r=n,v=h(),y=window.location,S=c(()=>{if(!r.id)return``;let e=r.id.replace(/%2F/g,`/`),t=r.cwd||r.session.meta.cwd,n=t?M(t,e):e;return n.startsWith(`.`)||(n=`./${n}`),n.startsWith(`./`)||/^(?:\.\.\/){1,3}[^.]/.test(n)?n:e}),w=c(()=>`flex items-center`);return(c,h)=>{let T=b,E=x;return u(),o(f(n.link?i(_):`div`),{to:n.link?typeof n.link==`string`?n.link:{path:i(v).path,query:{...i(v).query,module:n.id,chunk:void 0},hash:i(y).hash}:void 0},{default:l(()=>[e(i(g),{"my-auto":``,"text-sm":``,"font-mono":``,block:``,"w-full":``,triggers:[`hover`],delay:1200,disabled:n.disableTooltip||(r.id?.length||0)<30,placement:`bottom-start`},{popper:l(()=>[m(`span`,P,d(r.id),1)]),default:l(()=>[n.id?(u(),p(`div`,{key:0,class:s(w.value)},[n.icon?(u(),o(T,{key:0,filename:n.id,"mr1.5":``},null,8,[`filename`])):t(``,!0),m(`span`,N,[e(E,{path:S.value,minimal:n.minimal},null,8,[`path`,`minimal`])]),a(c.$slots,`default`),n.kind?(u(),o(C,{key:1,class:`ml1`,text:n.kind},null,8,[`text`])):t(``,!0)],2)):t(``,!0),m(`div`,null,[a(c.$slots,`detail`)])]),_:3},8,[`disabled`])]),_:3},8,[`to`])}}}),{__name:`DisplayModuleId`});export{M as n,C as r,F as t};
@@ -1 +1 @@
1
- import{M as e,Q as t,at as n,q as r,st as i,w as a,x as o}from"./CRfXUi3G.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
+ import{M as e,Q as t,at as n,q as r,st as i,w as a,x as o}from"./C--RKQDq.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};
@@ -0,0 +1,4 @@
1
+ import{Ct as e,M as t,O as n,a as r,b as i,q as a,w as o,x as s,yt as c}from"./C--RKQDq.js";import{t as l}from"./BE1TLHgg.js";var u=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),d={class:`flex gap-2 group`,w140:``,p4:``,relative:``},f={width:`1123`,height:`47`,viewBox:`0 0 1123 47`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},p={"clip-path":`url(#clip0_12_249)`},m=[`fill`],h=[`fill`],g=[`fill`],_=Object.assign(t({__name:`LogoBanner`,setup(e){let t=i(()=>l.value?`white`:`#08060E`);return(e,r)=>(a(),o(`div`,d,[r[2]||=s(`div`,{op10:``,"group-hover":`op100`,transition:``,"duration-800":``,class:`absolute -bottom-[10px] -left-[20px] w-[80px] h-[80px] bg-linear-to-b from-[#ff4100] to-transparent blur-[30px]`},null,-1),r[3]||=s(`div`,{op10:``,"group-hover":`op100`,transition:``,"duration-800":``,class:`absolute -top-[10px] left-300px w-[80px] h-[80px] bg-[linear-gradient(270deg,_#ff00b3,_#ff00b3cc_60%,_#ff4100cc,_#ff410000)] blur-[30px]`},null,-1),(a(),o(`svg`,f,[s(`g`,p,[s(`path`,{d:`M84.875 0C103.939 0 113.956 8.014 113.956 23.395C113.956 38.776 103.939 46.789 84.875 46.789C65.811 46.789 55.859 38.775 55.858 23.395C55.858 8.014 65.811 0 84.875 0ZM304.339 0C323.403 0 333.42 8.014 333.42 23.395C333.42 38.776 323.403 46.789 304.339 46.789C285.275 46.789 275.322 38.775 275.322 23.395C275.322 8.014 285.274 0 304.339 0ZM35.349 0.775C45.689 0.775 51.571 6.139 51.571 15.575C51.571 21.003 48.986 25.01 44.98 27.337L51.765 46.013H35.285L30.567 31.343H15.51V46.013H0V0.775H35.349ZM135.411 34.705H162.488V46.013H119.9V0.775H135.411V34.705ZM183.791 34.705H210.869V46.013H168.281V0.775H183.791V34.705ZM245.53 0.774C261.234 0.774 270.217 7.884 270.217 23.394C270.217 38.904 261.169 46.012 245.465 46.012H217.095V0.775L245.53 0.774ZM356.661 31.86L363.253 8.854H380.637L387.616 32.764L393.109 0.776H408.232L398.926 46.014H379.345L371.849 20.423L364.546 46.013H344.899L335.594 0.776H350.975L356.661 31.86ZM432.876 0.775L451.553 30.18H451.682V0.775H466.417V46.013H447.805L428.999 16.48H428.805V46.013H414.135V0.775H432.876ZM84.875 11.115C75.892 11.115 71.691 14.993 71.691 23.395C71.691 31.795 75.892 35.608 84.875 35.608C93.858 35.608 98.058 31.86 98.058 23.395C98.058 14.93 93.858 11.115 84.875 11.115ZM304.339 11.115C295.356 11.115 291.155 14.993 291.155 23.395C291.155 31.795 295.356 35.608 304.339 35.608C313.322 35.608 317.522 31.86 317.522 23.395C317.522 14.93 313.322 11.115 304.339 11.115ZM232.604 35.026H243.333C250.7 35.026 254.318 31.86 254.318 23.394C254.318 14.928 250.7 11.762 243.333 11.762H232.604V35.026ZM15.51 20.68H30.955C34.122 20.68 35.673 19 35.673 16.027C35.673 13.054 34.122 11.438 30.955 11.438H15.51V20.68Z`,fill:t.value},null,8,m),r[0]||=n(`<path d="M530.998 0.773438C531.957 0.773438 532.48 1.89144 531.866 2.62844L521.423 15.1604C520.195 16.6334 521.242 18.8714 523.161 18.8714H533.262C534.221 18.8714 534.744 19.9894 534.13 20.7264L513.922 44.9804C513.816 45.108 513.683 45.2107 513.533 45.2811C513.383 45.3516 513.219 45.3881 513.053 45.3881C512.887 45.3881 512.723 45.3516 512.573 45.2811C512.423 45.2107 512.29 45.108 512.184 44.9804L491.975 20.7284C491.361 19.9914 491.885 18.8734 492.844 18.8734H502.942C504.859 18.8734 505.909 16.6354 504.681 15.1624L494.237 2.62844C493.623 1.89144 494.147 0.773438 495.105 0.773438H530.998Z" fill="#FF4100"></path><mask id="mask0_12_249" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="491" y="0" width="44" height="46"><path d="M530.998 0.773438C531.957 0.773438 532.48 1.89144 531.866 2.62844L521.423 15.1604C520.195 16.6334 521.242 18.8714 523.161 18.8714H533.262C534.221 18.8714 534.744 19.9904 534.13 20.7264L513.922 44.9804C513.816 45.108 513.683 45.2107 513.533 45.2811C513.383 45.3516 513.219 45.3881 513.053 45.3881C512.887 45.3881 512.723 45.3516 512.573 45.2811C512.423 45.2107 512.29 45.108 512.184 44.9804L491.975 20.7284C491.361 19.9924 491.885 18.8734 492.844 18.8734H502.942C504.859 18.8734 505.909 16.6354 504.681 15.1624L494.237 2.62844C493.623 1.89144 494.147 0.773438 495.105 0.773438H530.998Z" fill="black"></path></mask><g mask="url(#mask0_12_249)"><g filter="url(#filter0_f_12_249)"><path d="M522.914 21.3028C520.339 19.8011 523.571 9.4636 530.133 -1.78663C536.695 -13.0369 544.101 -20.9396 546.676 -19.4379C549.251 -17.9361 546.019 -7.59863 539.457 3.6516C532.895 14.9018 525.489 22.8046 522.914 21.3028Z" fill="#FFE6E4"></path></g><g filter="url(#filter1_f_12_249)"><path d="M521.765 44.2794C519.191 42.7777 522.423 32.4402 528.984 21.1899C535.546 9.9397 542.953 2.03698 545.527 3.5387C548.102 5.04042 544.87 15.3779 538.308 26.6282C531.747 37.8784 524.34 45.7811 521.765 44.2794Z" fill="#FFE6E4"></path></g><g filter="url(#filter2_f_12_249)"><path d="M505.243 19.0907C506.903 17.8808 502.491 9.00184 495.388 -0.740904C488.285 -10.4836 481.182 -17.4008 479.522 -16.1909C477.863 -14.9809 482.275 -6.10195 489.378 3.6408C496.48 13.3835 503.584 20.3007 505.243 19.0907Z" fill="#FF00B3"></path></g><g filter="url(#filter3_f_12_249)"><path d="M510.988 51.7548C512.647 50.5448 508.235 41.6659 501.132 31.9231C494.029 22.1804 486.926 15.2632 485.266 16.4732C483.607 17.6832 488.019 26.5621 495.122 36.3049C502.225 46.0476 509.328 52.9648 510.988 51.7548Z" fill="#FF00B3"></path></g><g filter="url(#filter4_f_12_249)"><path d="M520.885 19.0986C519.225 17.8886 523.638 9.00965 530.74 -0.733098C537.843 -10.4758 544.946 -17.393 546.606 -16.183C548.266 -14.9731 543.853 -6.09413 536.751 3.64861C529.648 13.3914 522.545 20.3085 520.885 19.0986Z" fill="#FF00B3"></path></g><g filter="url(#filter5_f_12_249)"><path d="M513.991 51.7548C512.332 50.5448 516.744 41.6659 523.847 31.9232C530.95 22.1804 538.053 15.2632 539.713 16.4732C541.372 17.6832 536.96 26.5621 529.857 36.3049C522.754 46.0476 515.651 52.9648 513.991 51.7548Z" fill="#FF00B3"></path></g><g filter="url(#filter6_f_12_249)"><path d="M517.438 19.0986C515.778 17.8886 520.191 9.00965 527.294 -0.733098C534.396 -10.4758 541.5 -17.393 543.159 -16.183C544.819 -14.9731 540.407 -6.09413 533.304 3.64861C526.201 13.3914 519.098 20.3085 517.438 19.0986Z" fill="#FF00B3"></path></g><g filter="url(#filter7_f_12_249)"><path d="M511.695 51.7548C510.035 50.5448 514.447 41.6659 521.55 31.9232C528.653 22.1804 535.756 15.2632 537.416 16.4732C539.075 17.6832 534.663 26.5621 527.56 36.3049C520.458 46.0476 513.354 52.9648 511.695 51.7548Z" fill="#FF00B3"></path></g><g filter="url(#filter8_f_12_249)"><path d="M509.95 20.8515C512.203 18.8996 507.115 9.33806 498.586 -0.50467C490.056 -10.3474 481.316 -16.7441 479.064 -14.7922C476.811 -12.8402 481.899 -3.2787 490.428 6.56403C498.957 16.4068 507.697 22.8035 509.95 20.8515Z" fill="#E23D14"></path></g><g filter="url(#filter9_f_12_249)"><path d="M512.003 47.6172C514.417 45.8699 510.186 35.8997 502.551 25.3482C494.916 14.7966 486.77 7.65931 484.355 9.40659C481.94 11.1539 486.172 21.124 493.806 31.6756C501.441 42.2272 509.588 49.3645 512.003 47.6172Z" fill="#E23D14"></path></g></g>`,3),s(`path`,{d:`M481.842 0C472.643 13.166 472.59 33.575 481.842 46.789H488.057C478.807 33.575 478.86 13.166 488.057 0H481.842ZM544.263 0H538.048C547.247 13.166 547.3 33.575 538.048 46.789H544.263C553.513 33.575 553.459 13.166 544.263 0Z`,fill:t.value},null,8,h)]),s(`path`,{d:`M570 46.221V0.779005H605.216C624.665 0.779005 635.79 7.98481 635.79 23.5C635.79 39.0801 624.585 46.221 605.136 46.221H570ZM616.101 23.5C616.101 14.9959 611.619 11.8149 602.495 11.8149H589.209V35.1851H602.495C611.619 35.1851 616.101 32.0041 616.101 23.5ZM645.582 46.221V0.779005H700.887V11.8149H664.791V17.9171H700.327V28.6285H664.791V35.1851H701.928V46.221H645.582ZM726.183 0.779005L740.99 33.4972L755.556 0.779005H775.485L753.395 46.221H727.783L705.693 0.779005H726.183ZM799.702 46.221V11.9447H778.172V0.779005H840.44V11.9447H818.91V46.221H799.702ZM878.247 47C854.636 47 842.31 38.9503 842.31 23.5C842.31 8.04972 854.636 0 878.247 0C901.857 0 914.263 8.04972 914.263 23.5C914.263 38.9503 901.857 47 878.247 47ZM878.247 35.7693C889.372 35.7693 894.574 31.9392 894.574 23.5C894.574 14.9959 889.372 11.1657 878.247 11.1657C867.121 11.1657 861.919 14.9959 861.919 23.5C861.919 31.9392 867.121 35.7693 878.247 35.7693ZM956.486 47C932.875 47 920.549 38.9503 920.549 23.5C920.549 8.04972 932.875 0 956.486 0C980.096 0 992.502 8.04972 992.502 23.5C992.502 38.9503 980.096 47 956.486 47ZM956.486 35.7693C967.611 35.7693 972.813 31.9392 972.813 23.5C972.813 14.9959 967.611 11.1657 956.486 11.1657C945.36 11.1657 940.158 14.9959 940.158 23.5C940.158 31.9392 945.36 35.7693 956.486 35.7693ZM1002.23 46.221V0.779005H1021.44V34.8605H1054.97V46.221H1002.23ZM1090.83 47C1067.93 47 1058.25 42.1961 1058.25 31.0304V30.9655H1077.7V31.0304C1077.7 34.7956 1080.82 36.808 1090.83 36.808C1101.15 36.808 1103.55 35.25 1103.55 32.8481C1103.55 30.7058 1101.79 29.732 1097.95 29.4724L1081.62 28.4337C1064.33 27.3301 1059.05 23.0456 1059.05 14.866C1059.05 4.99862 1069.62 0 1091.15 0C1113.16 0 1122.04 4.60912 1122.04 15.2555V15.3854H1102.91V15.2555C1102.91 11.4903 1100.03 10.0622 1090.83 10.0622C1081.14 10.0622 1078.18 11.4903 1078.18 14.0221C1078.18 16.2293 1080.34 17.0732 1085.38 17.3978L1101.55 18.3715C1116.76 19.2804 1123 23.2403 1123 31.7445C1123 41.547 1113.96 47 1090.83 47Z`,fill:t.value},null,8,g),r[1]||=n(`<defs><filter id="filter0_f_12_249" x="515.134" y="-26.5112" width="39.3207" height="54.8896" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter1_f_12_249" x="513.986" y="-3.53463" width="39.3207" height="54.8896" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter2_f_12_249" x="472.279" y="-23.2221" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter3_f_12_249" x="478.023" y="9.44194" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter4_f_12_249" x="513.642" y="-23.2143" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter5_f_12_249" x="506.748" y="9.44194" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter6_f_12_249" x="510.195" y="-23.2143" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter7_f_12_249" x="504.451" y="9.44194" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter8_f_12_249" x="471.636" y="-22.0346" width="45.7411" height="50.1318" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter9_f_12_249" x="476.782" y="2.24662" width="42.7939" height="52.5302" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><clipPath id="clip0_12_249"><rect width="552" height="47" fill="white"></rect></clipPath></defs>`,1)]))]))}}),{__name:`VisualLogoBanner`}),v=`/.devtools/`,ee=`.connection.json`,te=`.rpc-dump/index.json`;function ne(e){return typeof e==`string`?`'${e}'`:new re().serialize(e)}var re=function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t?.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e}(),ie=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],ae=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],oe=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,y=[],se=class{_data=new ce;_hash=new ce([...ie]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)y[n]=e[t+n]|0;else{let e=y[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=y[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;y[n]=t+y[n-7]+i+y[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+ae[n]+y[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=ce.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e<r;e+=16)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new ce(t,i)}},ce=class e{words;sigBytes;constructor(e,t){e=this.words=e||[],this.sigBytes=t===void 0?e.length*4:t}static fromUtf8(t){let n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let e=0;e<r;e++)i[e>>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t<this.sigBytes;t+=3){let n=this.words[t>>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6<this.sigBytes*8;n++)e.push(oe.charAt(a>>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){let n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function le(e){return new se().finalize(e).toBase64()}function ue(e){return le(ne(e))}var de=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>ue(e))}updateOptions(e){this.options={...this.options,...e}}cached(e,t){let n=this.cacheMap.get(e);if(n)return n.get(this.keySerializer(t))}apply(e,t){let n=this.cacheMap.get(e.m)||new Map;n.set(this.keySerializer(e.a),t),this.cacheMap.set(e.m,n)}validate(e){return this.options.functions.includes(e)}clear(e){e?this.cacheMap.delete(e):this.cacheMap.clear()}};function fe(e){return`[${e.code}]`}function pe(e){let t=`${fe(e)} ${e.message}`,n=[];return e.why&&n.push(`why: ${e.why}`),e.fix&&n.push(`fix: ${e.fix}`),e.hint&&n.push(`hint: ${e.hint}`),e.docs&&n.push(`see: ${e.docs}`),n.length===0?t:[t,...n.map((e,t)=>`${t<n.length-1?`├▶`:`╰▶`} ${e}`)].join(`
2
+ `)}var me=pe;function b(e,t){if(e!=null)return typeof e==`function`?e(t):e}function he(e){let{docsBase:t,codes:n}=e,r={},i=Object.keys(n);for(let e of i){let i=n[e];r[e]=(n,r)=>{let a=typeof i.message==`function`||typeof i.fix==`function`||typeof i.why==`function`||typeof i.hint==`function`,o=a?n:void 0,s=a?r:n,c=typeof t==`function`?t(e):t==null?void 0:`${t}/${e.toLowerCase()}`;return{code:e,level:i.level??`error`,message:b(i.message,o),...c!=null&&{docs:c},...b(i.fix,o)!=null&&{fix:b(i.fix,o)},...b(i.why,o)!=null&&{why:b(i.why,o)},...b(i.hint,o)!=null&&{hint:b(i.hint,o)},...s}}}return Object.defineProperties(r,{codes:{value:()=>i,enumerable:!1},has:{value:e=>e in n,enumerable:!1},get:{value:e=>n[e],enumerable:!1},extend:{value:t=>he({...e,codes:{...n,...t}}),enumerable:!1}}),r}var ge=class extends Error{diagnostic;constructor(e){super(`[${e.code}] ${e.message}`),this.name=`CodedError`,this.diagnostic=e,e.cause!=null&&(this.cause=e.cause)}},_e=(e,t)=>{e.level===`error`?console.error(t):console.warn(t)};function x(){let e={};if(typeof Error.captureStackTrace==`function`?Error.captureStackTrace(e,x):e.stack=Error().stack,!e.stack)return;let t=e.stack.split(`
3
+ `),n=0;for(;n<t.length&&!t[n].trimStart().startsWith(`at `);)n++;let r=typeof Error.captureStackTrace==`function`?1:2,i=t.slice(n+r).filter(e=>!e.includes(`/node_modules/`)&&!e.includes(`(node:`)).map(e=>e.trim());return i.length>0?i.join(`
4
+ `):void 0}function S(e,t,n){let r=e(n);for(let e of t)e(n,r);return r}function ve(e,t,n,r){return Object.assign({},e,{throw(){let i=r?x():void 0,a=i?{...e,stack:i}:e;throw S(t,n,a),new ge(a)},warn(){let i=r?x():void 0;S(t,n,{...e,level:`warn`,...i&&{stack:i}})},error(){let i=r?x():void 0;S(t,n,{...e,level:`error`,...i&&{stack:i}})},log(){let i=r?x():void 0;S(t,n,i?{...e,stack:i}:e)},format(){return t(e)}})}function ye(e){let t=e.formatter??me,n=Array.isArray(e.reporters)?e.reporters:[e.reporters??_e],r=e.captureStack!==!1,i={};for(let a of e.diagnostics){let e=typeof a.codes==`function`?a.codes():Object.keys(a);for(let o of e)typeof a[o]==`function`&&(i[o]=(...e)=>ve(a[o](...e),t,n,r))}return i.throw=e=>{let i=r?x():void 0,a=i?{...e,stack:i}:e;throw S(t,n,a),new ge(a)},i.warn=e=>{let i=r?x():void 0;S(t,n,{...e,level:`warn`,...i&&{stack:i}})},i.error=e=>{let i=r?x():void 0;S(t,n,{...e,level:`error`,...i&&{stack:i}})},i.log=e=>{let i=r?x():void 0;S(t,n,i?{...e,stack:i}:e)},i.format=e=>t(e),i}var be=ye({diagnostics:[he({docsBase:`https://devtools.vite.dev/errors`,codes:{DTK0001:{message:e=>`RPC function "${e.name}" is already registered`,hint:"Use the `force` parameter to overwrite an existing registration."},DTK0002:{message:e=>`RPC function "${e.name}" is not registered. Use register() to add new functions.`},DTK0003:{message:e=>`RPC function "${e.name}" is not registered`},DTK0004:{message:e=>`Either handler or setup function must be provided for RPC function "${e.name}"`},DTK0005:{message:e=>`Function "${e.name}" not found in dump store`},DTK0006:{message:e=>`No dump match for "${e.name}" with args: ${e.args}`},DTK0007:{message:e=>`Function "${e.name}" with type "${e.type}" cannot have dump configuration. Only "static" and "query" types support dumps.`},DTK0008:{message:e=>`Function "${e.name}" with type "${e.type}" cannot use \`snapshot: true\`. Only "query" functions support this sugar; "static" functions have equivalent default behavior already.`,hint:"Remove `snapshot: true`, or change the function type to `query`."}}})],formatter:me,reporters:_e});async function xe(e,t){return e.__resolved?e.__resolved:e.setup?(e.__promise??=Promise.resolve(e.setup(t)).then(t=>(e.__resolved=t,e.__promise=void 0,t)),e.__resolved??=await e.__promise):{}}async function Se(e,t){if(e.handler)return e.handler;let n=await xe(e,t);if(!n.handler)throw be.DTK0004({name:e.name}).throw();return n.handler}var Ce=class{definitions=new Map;functions;_onChanged=[];constructor(e){this.context=e;let t=this.definitions,n=this;this.functions=new Proxy({},{get(e,r){let i=t.get(r);if(i)return Se(i,n.context)},has(e,n){return t.has(n)},getOwnPropertyDescriptor(e,n){return{value:t.get(n)?.handler,configurable:!0,enumerable:!0}},ownKeys(){return Array.from(t.keys())}})}register(e,t=!1){if(this.definitions.has(e.name)&&!t)throw be.DTK0001({name:e.name}).throw();this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}update(e,t=!1){if(!this.definitions.has(e.name)&&!t)throw be.DTK0002({name:e.name}).throw();this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}onChanged(e){return this._onChanged.push(e),()=>{let t=this._onChanged.indexOf(e);t!==-1&&this._onChanged.splice(t,1)}}async getHandler(e){return await Se(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw be.DTK0003({name:String(e)}).throw();return{args:t.args,returns:t.returns}}has(e){return this.definitions.has(e)}get(e){return this.definitions.get(e)}list(){return Array.from(this.definitions.keys())}};function we(){let e={};function t(t,...n){let r=e[t]||[];for(let e=0,t=r.length;e<t;e++){let t=r[e];t&&t(...n)}}function n(n,...r){t(n,...r),delete e[n]}function r(t,n){return(e[t]||=[]).push(n),()=>{e[t]=e[t]?.filter(e=>n!==e)}}function i(e,t){let n=r(e,((...e)=>(n(),t(...e))));return n}return{_listeners:e,emit:t,emitOnce:n,on:r,once:i}}var Te=u((e=>{var t=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,`__esModule`,{value:!0}),e.minLength=e.maxLength=e.poolSize=e.humanId=e.adverbs=e.verbs=e.nouns=e.adjectives=void 0,e.adjectives=`afraid.all.beige.better.big.blue.bold.brave.breezy.bright.brown.bumpy.busy.calm.chatty.chilly.chubby.clean.clear.clever.cold.common.cool.cozy.crisp.cuddly.curly.curvy.cute.cyan.dark.deep.dirty.dry.dull.eager.early.easy.eight.eighty.eleven.empty.every.fair.famous.fancy.fast.few.fiery.fifty.fine.five.flat.floppy.fluffy.forty.four.frank.free.fresh.fruity.full.funky.funny.fuzzy.gentle.giant.gold.good.goofy.great.green.grumpy.happy.heavy.hip.honest.hot.huge.humble.hungry.icy.itchy.jolly.khaki.kind.large.late.lazy.legal.lemon.light.little.long.loose.loud.lovely.lucky.major.many.metal.mighty.modern.moody.neat.new.nice.nine.ninety.odd.old.olive.open.orange.perky.petite.pink.plain.plenty.polite.pretty.proud.public.puny.purple.quick.quiet.rare.ready.real.red.rich.ripe.salty.seven.shaggy.shaky.sharp.shiny.short.shy.silent.silly.silver.six.sixty.slick.slimy.slow.small.smart.smooth.social.soft.solid.some.sour.sparkly.spicy.spotty.stale.strict.strong.sunny.sweet.swift.tall.tame.tangy.tasty.ten.tender.thick.thin.thirty.three.tidy.tiny.tired.tough.tricky.true.twelve.twenty.two.upset.vast.violet.wacky.warm.wet.whole.wicked.wide.wild.wise.witty.yellow.young.yummy`.split(`.`),e.nouns=`actors.ads.adults.aliens.animals.ants.apes.apples.areas.baboons.badgers.bags.balloons.bananas.banks.bars.baths.bats.beans.bears.beds.beers.bees.berries.bikes.birds.boats.bobcats.books.bottles.boxes.breads.brooms.buckets.bugs.buses.bushes.buttons.camels.cameras.candies.candles.canyons.carpets.carrots.cars.cases.cats.chairs.chefs.chicken.cities.clocks.cloths.clouds.clowns.clubs.coats.cobras.coins.colts.comics.cooks.corners.cougars.cows.crabs.crews.cups.cycles.dancers.days.deer.deserts.dingos.dodos.dogs.dolls.donkeys.donuts.doodles.doors.dots.dragons.drinks.dryers.ducks.eagles.ears.eels.eggs.emus.ends.experts.eyes.facts.falcons.fans.feet.files.flies.flowers.forks.foxes.friends.frogs.games.garlics.geckos.geese.ghosts.gifts.glasses.goats.grapes.groups.guests.hairs.hands.hats.heads.hoops.hornets.horses.hotels.hounds.houses.humans.icons.ideas.impalas.insects.islands.items.jars.jeans.jobs.jokes.keys.kids.kings.kiwis.knives.lamps.lands.laws.lemons.lies.lights.lilies.lines.lions.lizards.llamas.loops.mails.mammals.mangos.maps.masks.meals.melons.memes.meteors.mice.mirrors.moles.moments.monkeys.months.moons.moose.mugs.nails.needles.news.nights.numbers.olives.onions.oranges.otters.owls.pandas.pans.pants.papayas.papers.parents.parks.parrots.parts.paths.paws.peaches.pears.peas.pens.pets.phones.pianos.pigs.pillows.places.planes.planets.plants.plums.poems.poets.points.pots.pugs.pumas.queens.rabbits.radios.rats.ravens.readers.regions.results.rice.rings.rivers.rockets.rocks.rooms.roses.rules.sails.schools.seals.seas.sheep.shirts.shoes.showers.shrimps.sides.signs.singers.sites.sloths.snails.snakes.socks.spiders.spies.spoons.squids.stamps.stars.states.steaks.streets.suits.suns.swans.symbols.tables.taxes.taxis.teams.teeth.terms.things.ties.tigers.times.tips.tires.toes.tools.towns.toys.trains.trams.trees.turkeys.turtles.vans.views.walls.wasps.waves.ways.webs.weeks.windows.wings.wolves.wombats.words.worlds.worms.yaks.years.zebras.zoos`.split(`.`),e.verbs=`accept.act.add.admire.agree.allow.appear.argue.arrive.ask.attack.attend.bake.bathe.battle.beam.beg.begin.behave.bet.boil.bow.brake.brush.build.burn.buy.call.camp.care.carry.change.cheat.check.cheer.chew.clap.clean.cough.count.cover.crash.create.cross.cry.cut.dance.decide.deny.design.dig.divide.do.double.doubt.draw.dream.dress.drive.drop.drum.eat.end.enjoy.enter.exist.fail.fall.feel.fetch.film.find.fix.flash.float.flow.fly.fold.follow.fry.give.glow.go.grab.greet.grin.grow.guess.hammer.hang.happen.heal.hear.help.hide.hope.hug.hunt.invent.invite.itch.jam.jog.join.joke.judge.juggle.jump.kick.kiss.kneel.knock.know.laugh.lay.lead.learn.leave.lick.lie.like.listen.live.look.lose.love.make.march.marry.mate.matter.melt.mix.move.nail.notice.obey.occur.open.own.pay.peel.pick.play.poke.post.press.prove.pull.pump.punch.push.raise.read.refuse.relate.relax.remain.repair.repeat.reply.report.rescue.rest.retire.return.rhyme.ring.roll.rule.run.rush.say.scream.search.see.sell.send.serve.shake.share.shave.shine.shop.shout.show.sin.sing.sink.sip.sit.sleep.slide.smash.smell.smile.smoke.sneeze.sniff.sort.speak.spend.stand.stare.start.stay.stick.stop.strive.study.swim.switch.take.talk.tan.tap.taste.teach.tease.tell.thank.think.throw.tickle.tie.trade.train.travel.try.turn.type.unite.vanish.visit.wait.walk.warn.wash.watch.wave.wear.win.wink.wish.wonder.work.worry.write.yawn.yell`.split(`.`),e.adverbs=[`bravely`,`brightly`,`busily`,`daily`,`freely`,`hungrily`,`joyously`,`knowingly`,`lazily`,`noisily`,`oddly`,`politely`,`quickly`,`quietly`,`rapidly`,`safely`,`sleepily`,`slowly`,`truly`,`yearly`];function n(e){return e[Math.floor(Math.random()*e.length)]}function r(e){return e.reduce(function(e,t){return e.length>t.length?e:t})}function i(e){return e.reduce(function(e,t){return e.length<t.length?e:t})}function a(r){r===void 0&&(r={}),typeof r==`string`&&(r={separator:r}),typeof r==`boolean`&&(r={capitalize:r});var i=r.separator,a=i===void 0?``:i,o=r.capitalize,s=o===void 0?!0:o,c=r.adjectiveCount,l=c===void 0?1:c,u=r.addAdverb,d=u===void 0?!1:u,f=t(t(t([],t([],Array(l),!0).map(function(t){return n(e.adjectives)}),!0),[n(e.nouns),n(e.verbs)],!1),d?[n(e.adverbs)]:[],!0);return s&&(f=f.map(function(e){return e.charAt(0).toUpperCase()+e.substr(1)})),f.join(a)}e.humanId=a;function o(t){t===void 0&&(t={});var n=t.adjectiveCount,r=n===void 0?1:n,i=t.addAdverb,a=i===void 0?!1:i;return e.adjectives.length*r*e.nouns.length*e.verbs.length*(a?e.adverbs.length:1)}e.poolSize=o;function s(t){t===void 0&&(t={});var n=t.adjectiveCount,i=n===void 0?1:n,a=t.addAdverb,o=a===void 0?!1:a,s=t.separator,c=s===void 0?``:s;return r(e.adjectives).length*i+i*c.length+r(e.nouns).length+c.length+r(e.verbs).length+(o?r(e.adverbs).length+c.length:0)}e.maxLength=s;function c(t){t===void 0&&(t={});var n=t.adjectiveCount,r=n===void 0?1:n,a=t.addAdverb,o=a===void 0?!1:a,s=t.separator,c=s===void 0?``:s;return i(e.adjectives).length*r+r*c.length+i(e.nouns).length+c.length+i(e.verbs).length+(o?i(e.adverbs).length+c.length:0)}e.minLength=c,e.default=a}))(),Ee=Symbol.for(`immer-nothing`),De=Symbol.for(`immer-draftable`),C=Symbol.for(`immer-state`);function w(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var T=Object,E=T.getPrototypeOf,Oe=`constructor`,ke=`prototype`,Ae=`configurable`,je=`enumerable`,Me=`writable`,Ne=`value`,D=e=>!!e&&!!e[C];function O(e){return e?Ie(e)||Ve(e)||!!e[De]||!!e[Oe]?.[De]||He(e)||Ue(e):!1}var Pe=T[ke][Oe].toString(),Fe=new WeakMap;function Ie(e){if(!e||!j(e))return!1;let t=E(e);if(t===null||t===T[ke])return!0;let n=T.hasOwnProperty.call(t,Oe)&&t[Oe];if(n===Object)return!0;if(!M(n))return!1;let r=Fe.get(n);return r===void 0&&(r=Function.toString.call(n),Fe.set(n,r)),r===Pe}function Le(e,t,n=!0){k(e)===0?(n?Reflect.ownKeys(e):T.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function k(e){let t=e[C];return t?t.type_:Ve(e)?1:He(e)?2:Ue(e)?3:0}var Re=(e,t,n=k(e))=>n===2?e.has(t):T[ke].hasOwnProperty.call(e,t),A=(e,t,n=k(e))=>n===2?e.get(t):e[t],ze=(e,t,n,r=k(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Be(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Ve=Array.isArray,He=e=>e instanceof Map,Ue=e=>e instanceof Set,j=e=>typeof e==`object`,M=e=>typeof e==`function`,We=e=>typeof e==`boolean`;function Ge(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Ke=e=>j(e)?e?.[C]:null,N=e=>e.copy_||e.base_,qe=e=>e.modified_?e.copy_:e.base_;function Je(e,t){if(He(e))return new Map(e);if(Ue(e))return new Set(e);if(Ve(e))return Array[ke].slice.call(e);let n=Ie(e);if(t===!0||t===`class_only`&&!n){let t=T.getOwnPropertyDescriptors(e);delete t[C];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Me]===!1&&(a[Me]=!0,a[Ae]=!0),(a.get||a.set)&&(t[i]={[Ae]:!0,[Me]:!0,[je]:a[je],[Ne]:e[i]})}return T.create(E(e),t)}else{let t=E(e);if(t!==null&&n)return{...e};let r=T.create(t);return T.assign(r,e)}}function Ye(e,t=!1){return Qe(e)||D(e)||!O(e)?e:(k(e)>1&&T.defineProperties(e,{set:Ze,add:Ze,clear:Ze,delete:Ze}),T.freeze(e),t&&Le(e,(e,t)=>{Ye(t,!0)},!1),e)}function Xe(){w(2)}var Ze={[Ne]:Xe};function Qe(e){return e===null||!j(e)?!0:T.isFrozen(e)}var $e=`MapSet`,et=`Patches`,tt=`ArrayMethods`,nt={};function P(e){let t=nt[e];return t||w(0,e),t}var rt=e=>!!nt[e];function it(e,t){nt[e]||(nt[e]=t)}var F,at=()=>F,ot=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:rt($e)?P($e):void 0,arrayMethodsPlugin_:rt(tt)?P(tt):void 0});function st(e,t){t&&(e.patchPlugin_=P(et),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ct(e){lt(e),e.drafts_.forEach(dt),e.drafts_=null}function lt(e){e===F&&(F=e.parent_)}var ut=e=>F=ot(F,e);function dt(e){let t=e[C];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ft(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[C].modified_&&(ct(t),w(4)),O(e)&&(e=pt(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[C].base_,e,t)}else e=pt(t,n);return mt(t,e,!0),ct(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Ee?void 0:e}function pt(e,t){if(Qe(t))return t;let n=t[C];if(!n)return St(t,e.handledSet_,e);if(!gt(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);bt(n,e)}return n.copy_}function mt(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ye(t,n)}function ht(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var gt=(e,t)=>e.scope_===t,_t=[];function vt(e,t,n,r){let i=N(e),a=e.type_;if(r!==void 0&&A(i,r,a)===t){ze(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Le(i,(e,n)=>{if(D(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??_t;for(let e of o)ze(i,e,n,a)}function yt(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!gt(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=qe(i);vt(e,i.draft_??i,a,n),bt(i,r)})}function bt(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}ht(e)}}function xt(e,t,n){let{scope_:r}=e;if(D(n)){let i=n[C];gt(i,r)&&i.callbacks_.push(function(){kt(e),vt(e,n,qe(i),t)})}else O(n)&&e.callbacks_.push(function(){let i=N(e);e.type_===3?i.has(n)&&St(n,r.handledSet_,r):A(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&St(A(e.copy_,t,e.type_),r.handledSet_,r)})}function St(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||D(e)||t.has(e)||!O(e)||Qe(e)?e:(t.add(e),Le(e,(r,i)=>{if(D(i)){let t=i[C];gt(t,n)&&(ze(e,r,qe(t),e.type_),ht(t))}else O(i)&&St(i,t,n)}),e)}function Ct(e,t){let n=Ve(e),r={type_:+!!n,scope_:t?t.scope_:at(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=wt;n&&(i=[r],a=I);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var wt={get(e,t){if(t===C)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=N(e);if(!Re(i,t,e.type_))return Et(e,i,t);let a=i[t];if(e.finalized_||!O(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Ge(t))return a;if(a===Tt(e.base_,t)){kt(e);let n=e.type_===1?+t:t,r=jt(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in N(e)},ownKeys(e){return Reflect.ownKeys(N(e))},set(e,t,n){let r=Dt(N(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Tt(N(e),t),i=r?.[C];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Be(n,r)&&(n!==void 0||Re(e.base_,t,e.type_)))return!0;kt(e),Ot(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),xt(e,t,n),!0)},deleteProperty(e,t){return kt(e),Tt(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ot(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=N(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Me]:!0,[Ae]:e.type_!==1||t!==`length`,[je]:r[je],[Ne]:n[t]}},defineProperty(){w(11)},getPrototypeOf(e){return E(e.base_)},setPrototypeOf(){w(12)}},I={};for(let e in wt){let t=wt[e];I[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}I.deleteProperty=function(e,t){return I.set.call(this,e,t,void 0)},I.set=function(e,t,n){return wt.set.call(this,e[0],t,n,e[0])};function Tt(e,t){let n=e[C];return(n?N(n):e)[t]}function Et(e,t,n){let r=Dt(t,n);return r?Ne in r?r[Ne]:r.get?.call(e.draft_):void 0}function Dt(e,t){if(!(t in e))return;let n=E(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=E(n)}}function Ot(e){e.modified_||(e.modified_=!0,e.parent_&&Ot(e.parent_))}function kt(e){e.copy_||=(e.assigned_=new Map,Je(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var At=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(M(e)&&!M(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}M(t)||w(6),n!==void 0&&!M(n)&&w(7);let r;if(O(e)){let i=ut(this),a=jt(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?ct(i):lt(i)}return st(i,n),ft(r,i)}else if(!e||!j(e)){if(r=t(e),r===void 0&&(r=e),r===Ee&&(r=void 0),this.autoFreeze_&&Ye(r,!0),n){let t=[],i=[];P(et).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else w(1,e)},this.produceWithPatches=(e,t)=>{if(M(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},We(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),We(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),We(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){O(e)||w(8),D(e)&&(e=Mt(e));let t=ut(this),n=jt(t,e,void 0);return n[C].isManual_=!0,lt(t),n}finishDraft(e,t){let n=e&&e[C];(!n||!n.isManual_)&&w(9);let{scope_:r}=n;return st(r,t),ft(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=P(et).applyPatches_;return D(e)?r(e,t):this.produce(e,e=>r(e,t))}};function jt(e,t,n,r){let[i,a]=He(t)?P($e).proxyMap_(t,n):Ue(t)?P($e).proxySet_(t,n):Ct(t,n);return(n?.scope_??at()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?yt(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Mt(e){return D(e)||w(10,e),Nt(e)}function Nt(e){if(!O(e)||Qe(e))return e;let t=e[C],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Je(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Je(e,!0);return Le(n,(e,t)=>{ze(n,e,Nt(t))},r),t&&(t.finalized_=!1),n}function Pt(){function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=Ke(A(e,n.key_)),i=A(e,n.key_);if(i===void 0||i!==n.draft_&&i!==n.base_&&i!==n.copy_||t!=null&&t.base_!==n.base_)return null;let a=n.parent_.type_===3,o;if(a){let e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(a&&e.size>o||Re(e,o)))return null;r.push(o)}if(n.parent_)return e(n.parent_,r);r.reverse();try{t(n.copy_,r)}catch{return null}return r}function t(e,t){let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(n=A(n,r),!j(n)||n===null)throw Error(`Cannot resolve path at '${t.join(`/`)}'`)}return n}let n=`replace`,r=`remove`;function i(e,t,n){if(e.scope_.processedForPatches_.has(e))return;e.scope_.processedForPatches_.add(e);let{patches_:r,inversePatches_:i}=n;switch(e.type_){case 0:case 2:return o(e,t,r,i);case 1:return a(e,t,r,i);case 3:return s(e,t,r,i)}}function a(e,t,i,a){let{base_:o,assigned_:s}=e,c=e.copy_;c.length<o.length&&([o,c]=[c,o],[i,a]=[a,i]);let l=e.allIndicesReassigned_===!0;for(let e=0;e<o.length;e++){let r=c[e],u=o[e];if((l||s?.get(e.toString()))&&r!==u){let o=r?.[C];if(o&&o.modified_)continue;let s=t.concat([e]);i.push({op:n,path:s,value:d(r)}),a.push({op:n,path:s,value:d(u)})}}for(let e=o.length;e<c.length;e++){let n=t.concat([e]);i.push({op:`add`,path:n,value:d(c[e])})}for(let e=c.length-1;o.length<=e;--e){let n=t.concat([e]);a.push({op:r,path:n})}}function o(e,t,i,a){let{base_:o,copy_:s,type_:c}=e;Le(e.assigned_,(e,l)=>{let u=A(o,e,c),f=A(s,e,c),p=l?Re(o,e)?n:`add`:r;if(u===f&&p===n)return;let m=t.concat(e);i.push(p===r?{op:p,path:m}:{op:p,path:m,value:d(f)}),a.push(p===`add`?{op:r,path:m}:p===r?{op:`add`,path:m,value:d(u)}:{op:n,path:m,value:d(u)})})}function s(e,t,n,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=t.concat([s]);n.push({op:r,path:a,value:e}),i.unshift({op:`add`,path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=t.concat([s]);n.push({op:`add`,path:a,value:e}),i.unshift({op:r,path:a,value:e})}s++})}function c(e,t,r){let{patches_:i,inversePatches_:a}=r;i.push({op:n,path:[],value:t===Ee?void 0:t}),a.push({op:n,path:[],value:e})}function l(e,t){return t.forEach(t=>{let{path:i,op:a}=t,o=e;for(let e=0;e<i.length-1;e++){let t=k(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===Oe)&&w(19),M(o)&&n===ke&&w(19),o=A(o,n),j(o)||w(18,i.join(`/`))}let s=k(o),c=u(t.value),l=i[i.length-1];switch(a){case n:switch(s){case 2:return o.set(l,c);case 3:w(16);default:return o[l]=c}case`add`:switch(s){case 1:return l===`-`?o.push(c):o.splice(l,0,c);case 2:return o.set(l,c);case 3:return o.add(c);default:return o[l]=c}case r:switch(s){case 1:return o.splice(l,1);case 2:return o.delete(l);case 3:return o.delete(t.value);default:return delete o[l]}default:w(17,a)}}),e}function u(e){if(!O(e))return e;if(Ve(e))return e.map(u);if(He(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if(Ue(e))return new Set(Array.from(e).map(u));let t=Object.create(E(e));for(let n in e)t[n]=u(e[n]);return Re(e,De)&&(t[De]=e[De]),t}function d(e){return D(e)?u(e):e}it(et,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}var L=new At,Ft=L.produce,It=L.produceWithPatches.bind(L),Lt=L.applyPatches.bind(L),Rt=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function zt(e=21){let t=``,n=e;for(;n--;)t+=Rt[Math.random()*64|0];return t}function Bt(e){let{enablePatches:t=!1}=e,n=we(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=zt())=>{i.has(t)||(Pt(),r=Lt(r,e),i.add(t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=zt())=>{if(!i.has(a))if(i.add(a),t){let[t,i]=It(r,e);r=t,n.emit(`updated`,r,i,a)}else r=Ft(r,e),n.emit(`updated`,r,void 0,a)},syncIds:i}}function Vt(e){let t=new Map,n=new Map,r=new Set,i=e.connectionMeta.backend===`static`;function a(e,t){let r=n.get(e);return r&&typeof r==`object`&&!Array.isArray(r)&&typeof t==`object`&&!Array.isArray(t)?{...r,...t}:t}e.client.register({name:`devtoolskit:internal:rpc:client-state:updated`,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.mutate(()=>a(e,n),r)}}),e.client.register({name:`devtoolskit:internal:rpc:client-state:patch`,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.patch(n,r)}});function o(t,n){let r=[];return r.push(n.on(`updated`,(n,r,a)=>{i||(r?e.callEvent(`devtoolskit:internal:rpc:server-state:patch`,t,r,a):e.callEvent(`devtoolskit:internal:rpc:server-state:set`,t,n,a))})),()=>{for(let e of r)e()}}return{keys:()=>Array.from(t.keys()),onKeyAdded(e){return r.add(e),()=>{r.delete(e)}},get:async(s,c)=>{if(c?.initialValue!==void 0&&n.set(s,c.initialValue),t.has(s))return t.get(s);let l=Bt({initialValue:c?.initialValue,enablePatches:!1});async function u(){if(i||e.callEvent(`devtoolskit:internal:rpc:server-state:subscribe`,s),c?.initialValue!==void 0){t.set(s,l);for(let e of r)e(s);return e.call(`devtoolskit:internal:rpc:server-state:get`,s).then(e=>{e!==void 0&&l.mutate(()=>a(s,e))}).catch(e=>{console.error(`Error getting server state`,e)}),o(s,l),l}else{let n=await e.call(`devtoolskit:internal:rpc:server-state:get`,s);l.mutate(()=>a(s,n)),t.set(s,l);for(let e of r)e(s);return o(s,l),l}}return new Promise(t=>{e.isTrusted?u().then(t):(t(l),e.events.on(`rpc:is-trusted:updated`,e=>{e&&u()}))})}}}function Ht(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function Ut(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function Wt(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function Gt(e){if(e.error){let t=Error(e.error.message);throw t.name=e.error.name,t}return e.output}function Kt(e,t){let n=new Map,r=new Map;async function i(e){n.has(e.path)||n.set(e.path,t(e.path));let r=await n.get(e.path);return Wt(r)?Gt(r):r}async function a(e){return r.has(e)||r.set(e,t(e)),await r.get(e)}async function o(t,n){if(!(t in e))throw Error(`[devtools-rpc] Function "${t}" not found in dump store`);let r=e[t];if(Ht(r)){if(n.length>0)throw Error(`[devtools-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await i(r)}if(Ut(r)){let e=ue(n),i=r.records[e];if(i)return Gt(await a(i));if(r.fallback)return Gt(await a(r.fallback));throw Error(`[devtools-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(n.length===0)return r;throw Error(`[devtools-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}return{call:async(e,t)=>await o(e,t),callOptional:async(t,n)=>{if(t in e)return await o(t,n)},callEvent:async(e,t)=>{}}}async function qt(e){let t=Kt(await e.fetchJsonFromBases(te),e.fetchJsonFromBases);return{isTrusted:!0,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,ensureTrusted:async()=>!0,call:(...e)=>t.call(e[0],e.slice(1)),callEvent:(...e)=>t.callEvent(e[0],e.slice(1)),callOptional:(...e)=>t.callOptional(e[0],e.slice(1))}}var Jt=`q`,Yt=`s`;function Xt(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var Zt=Math.random.bind(Math),Qt=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function $t(e=21){let t=``,n=e;for(;n--;)t+=Qt[Zt()*64|0];return t}var en=6e4,tn=e=>e,nn=tn,{clearTimeout:rn,setTimeout:an}=globalThis;function on(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=tn,deserialize:s=nn,resolver:c,bind:l=`rpc`,timeout:u=en,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:Jt};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=Xt(),_=$t();s.i=_;let v;async function ee(n=s){return u>=0&&(v=an(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,ee,d):await ee()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{rn(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:ee,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.prototype.hasOwnProperty.call(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(te)}function ee(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function te(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===Jt){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:Yt,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:Yt,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(rn(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(te),h}function sn(e,t){let{channel:n,rpcOptions:r={}}=t;return on(e,{...n,timeout:-1,...r,proxify:!1})}var cn=typeof self==`object`?self:globalThis;function ln(e,t){let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new cn[e](t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new cn[a](o),i)};return r}function un(e){return ln(new Map,e)(0)}var R=``,{toString:dn}={},{keys:fn}=Object;function z(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=dn.call(e).slice(8,-1);switch(n){case`Array`:return[1,R];case`Object`:return[2,R];case`Date`:return[3,R];case`RegExp`:return[4,R];case`Map`:return[5,R];case`Set`:return[6,R];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function pn([e,t]){return e===0&&(t===`function`||t===`symbol`)}function mn(e,t,n,r){let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=z(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize ${s}`);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of fn(r))(e||!pn(z(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(pn(z(n))||pn(z(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!pn(z(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function hn(e,t={}){let n=[];return mn(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:gn,stringify:_n}=JSON,vn={json:!0,lossy:!0};function yn(e){return un(gn(e))}function bn(e){return _n(hn(e,vn))}function xn(){}function Sn(e){let t=e.url;e.authToken&&(t=`${t}?vite_devtools_auth_token=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=xn,onError:i=xn,onDisconnected:a=xn}=e;return n.addEventListener(`open`,e=>{r(e)}),n.addEventListener(`error`,e=>{i(e instanceof Error?e:Error(e.type))}),n.addEventListener(`close`,e=>{a(e)}),{on:e=>{n.addEventListener(`message`,t=>{e(t.data)})},post:e=>{if(n.readyState===WebSocket.OPEN)n.send(e);else{function t(){n.send(e),n.removeEventListener(`open`,t)}n.addEventListener(`open`,t)}},serialize:bn,deserialize:yn}}function Cn(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var B=``,wn=`?`,Tn=`major`,V=`model`,H=`name`,U=`type`,W=`vendor`,G=`version`,K=`architecture`,En=`console`,q=`mobile`,J=`tablet`,Y=`smarttv`,X=`wearable`,Dn=`embedded`,On=500,kn=`Amazon`,An=`Apple`,jn=`ASUS`,Mn=`BlackBerry`,Z=`Browser`,Nn=`Chrome`,Pn=`Edge`,Fn=`Firefox`,In=`Google`,Ln=`Huawei`,Rn=`LG`,zn=`Microsoft`,Bn=`Motorola`,Vn=`Opera`,Hn=`Samsung`,Un=`Sharp`,Wn=`Sony`,Gn=`Xiaomi`,Kn=`Zebra`,qn=`Facebook`,Jn=`Chromium OS`,Yn=`Mac OS`;function Xn(e,t={}){let n={};for(let r of Object.keys(e)){let i=t[r];i&&i.length%2==0?n[r]=[...i,...e[r]]:n[r]=e[r]}return n}function Zn(e){let t={};for(let n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t}function Qn(e){return e.toLowerCase()}function $n(e,t){return typeof e==`string`?Qn(t).includes(Qn(e)):!1}function er(e){return typeof e==`string`?e.replace(/[^\d.]/g,B).split(`.`)[0]:void 0}function tr(e,t){let n=e.replace(/^\s+/,B);return t===void 0?n:n.substring(0,t)}function nr(e,t,n){let r=n??{};for(let n=0;n<t.length;n+=2){let i=t[n],a=t[n+1];for(let t=0;t<i.length;t++){let n=i[t];if(!n)break;let o=n.exec(e);if(o){for(let e=0;e<a.length;e++){let t=o[e+1],n=a[e];if(Array.isArray(n)){let e=n[0],i=n.length;if(i===2){let i=n[1];typeof i==`function`?r[e]=i(t,void 0,r):r[e]=i}else if(i===3){let i=n[1],a=n[2];typeof i==`function`&&!(`exec`in i)&&!(`test`in i)?r[e]=t?i(t,a,r):void 0:r[e]=t?t.replace(i,a):void 0}else i===4&&(r[e]=t?n[3](t.replace(n[1],n[2]),void 0,r):void 0)}else r[n]=t||void 0}return r}}}return r}function rr(e,t){for(let n in t){let r=t[n];if(Array.isArray(r)&&r.length>0){for(let t=0;t<r.length;t++)if($n(r[t],e))return n===wn?void 0:n}else if($n(r,e))return n===wn?void 0:n}return e}var ir={"1.0":`/8`,"1.2":`/1`,"1.3":`/3`,"2.0":`/412`,"2.0.2":`/416`,"2.0.3":`/417`,"2.0.4":`/419`,"?":`/`},ar={ME:`4.90`,"NT 3.11":`NT3.51`,"NT 4.0":`NT4.0`,2e3:`NT 5.0`,XP:[`NT 5.1`,`NT 5.2`],Vista:`NT 6.0`,7:`NT 6.1`,8:`NT 6.2`,"8.1":`NT 6.3`,10:[`NT 6.4`,`NT 10.0`],RT:`ARM`},or={browser:[[/\b(?:crmo|crios)\/([\w.]+)/i],[G,[H,`Chrome`]],[/edg(?:e|ios|a)?\/([\w.]+)/i],[G,[H,`Edge`]],[/(opera mini)\/([-\w.]+)/i,/(opera [mobileta]{3,6})\b.+version\/([-\w.]+)/i,/(opera)(?:.+version\/|[/ ]+)([\w.]+)/i],[H,G],[/opios[/ ]+([\w.]+)/i],[G,[H,`${Vn} Mini`]],[/\bop(?:rg)?x\/([\w.]+)/i],[G,[H,`${Vn} GX`]],[/\bopr\/([\w.]+)/i],[G,[H,Vn]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[/ ]?([\w.]+)/i],[G,[H,`Baidu`]],[/(kindle)\/([\w.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[/ ]?([\w.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[/ ]?([\w.]*)/i,/(?:ms|\()(ie) ([\w.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w.]+)/i,/(heytap|ovi)browser\/([\d.]+)/i,/(weibo)__([\d.]+)/i],[H,G],[/\bddg\/([\w.]+)/i],[G,[H,`DuckDuckGo`]],[/(?:\buc? ?browser|juc.+ucweb)[/ ]?([\w.]+)/i],[G,[H,`UC${Z}`]],[/microm.+\bqbcore\/([\w.]+)/i,/\bqbcore\/([\w.]+).+microm/i,/micromessenger\/([\w.]+)/i],[G,[H,`WeChat`]],[/konqueror\/([\w.]+)/i],[G,[H,`Konqueror`]],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i],[G,[H,`IE`]],[/ya(?:search)?browser\/([\w.]+)/i],[G,[H,`Yandex`]],[/slbrowser\/([\w.]+)/i],[G,[H,`Smart Lenovo ${Z}`]],[/(avast|avg)\/([\w.]+)/i],[[H,/(.+)/,`$1 Secure ${Z}`],G],[/\bfocus\/([\w.]+)/i],[G,[H,`${Fn} Focus`]],[/\bopt\/([\w.]+)/i],[G,[H,`${Vn} Touch`]],[/coc_coc\w+\/([\w.]+)/i],[G,[H,`Coc Coc`]],[/dolfin\/([\w.]+)/i],[G,[H,`Dolphin`]],[/coast\/([\w.]+)/i],[G,[H,`${Vn} Coast`]],[/miuibrowser\/([\w.]+)/i],[G,[H,`MIUI ${Z}`]],[/fxios\/([-\w.]+)/i],[G,[H,Fn]],[/\bqihu|(qi?ho{0,2}|360)browser/i],[[H,`360 ${Z}`]],[/(oculus|sailfish|huawei|vivo)browser\/([\w.]+)/i],[[H,/(.+)/,`$1 ${Z}`],G],[/samsungbrowser\/([\w.]+)/i],[G,[H,`${Hn} Internet`]],[/(comodo_dragon)\/([\w.]+)/i],[[H,/_/g,` `],G],[/metasr[/ ]?([\d.]+)/i],[G,[H,`Sogou Explorer`]],[/(sogou)mo\w+\/([\d.]+)/i],[[H,`Sogou Mobile`],G],[/(electron)\/([\w.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w.]+))/i,/m?(qqbrowser|2345Explorer)[/ ]?([\w.]+)/i],[H,G],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[H],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w.]+);)/i],[[H,qn],G],[/(Klarna)\/([\w.]+)/i,/(kakao(?:talk|story))[/ ]([\w.]+)/i,/(naver)\(.*?(\d+\.[\w.]+).*\)/i,/safari (line)\/([\w.]+)/i,/\b(line)\/([\w.]+)\/iab/i,/(alipay)client\/([\w.]+)/i,/(twitter)(?:and| f.+e\/([\w.]+))/i,/(chromium|instagram|snapchat)[/ ]([-\w.]+)/i],[H,G],[/\bgsa\/([\w.]+) .*safari\//i],[G,[H,`GSA`]],[/musical_ly(?:.+app_?version\/|_)([\w.]+)/i],[G,[H,`TikTok`]],[/headlesschrome(?:\/([\w.]+)| )/i],[G,[H,`${Nn} Headless`]],[/ wv\).+(chrome)\/([\w.]+)/i],[[H,`${Nn} WebView`],G],[/droid.+ version\/([\w.]+)\b.+(?:mobile safari|safari)/i],[G,[H,`Android ${Z}`]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w.]+)/i],[H,G],[/version\/([\w.,]+) .*mobile\/\w+ (safari)/i],[G,[H,`Mobile Safari`]],[/version\/([\w(.|,)]+) .*(mobile ?safari|safari)/i],[G,H],[/webkit.+?(mobile ?safari|safari)(\/[\w.]+)/i],[H,[G,rr,ir]],[/(webkit|khtml)\/([\w.]+)/i],[H,G],[/(navigator|netscape\d?)\/([-\w.]+)/i],[[H,`Netscape`],G],[/mobile vr; rv:([\w.]+)\).+firefox/i],[G,[H,`${Fn} Reality`]],[/ekiohf.+(flow)\/([\w.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[/ ]?([\w.+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w.]+)$/i,/(firefox)\/([\w.]+)/i,/(mozilla)\/([\w.]+) .+rv:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[. ]?browser)[-/ ]?v?([\w.]+)/i,/(links) \(([\w.]+)/i,/panasonic;(viera)/i],[H,G],[/(cobalt)\/([\w.]+)/i],[H,[G,/master.|lts./,``]]],cpu:[[/(amd|x(?:(?:86|64)[-_])?|wow|win)64[;)]/i],[[K,`amd64`]],[/(ia32(?=;))/i],[[K,Qn]],[/((?:i[346]|x)86)[;)]/i],[[K,`ia32`]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[K,`arm64`]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[K,`armhf`]],[/windows (ce|mobile); ppc;/i],[[K,`arm`]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[K,/ower/,B,Qn]],[/(sun4\w)[;)]/i],[[K,`sparc`]],[/(avr32|ia64(?=;)|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[K,Qn]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[V,[W,Hn],[U,J]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?\d+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[V,[W,Hn],[U,q]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[V,[W,An],[U,q]],[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[V,[W,An],[U,J]],[/(macintosh);/i],[V,[W,An]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[V,[W,Un],[U,q]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[V,[W,Ln],[U,J]],[/(?:huawei|honor)([-\w ]+)[;)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][0-359c][adn]?)\b(?!.+d\/s)/i],[V,[W,Ln],[U,q]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?[\w ]+)(?: bui|\))/i,/oid[^)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?\d?\w?[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[V,/_/g,` `],[W,Gn],[U,q]],[/oid[^)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?pad[\w ]+)(?: bui|\))/i],[[V,/_/g,` `],[W,Gn],[U,J]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[V,[W,`OPPO`],[U,q]],[/\b(opd2\d{3}a?) bui/i],[V,[W,`OPPO`],[U,J]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[V,[W,`Vivo`],[U,q]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[V,[W,`Realme`],[U,q]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w() ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[V,[W,Bn],[U,q]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[V,[W,Bn],[U,J]],[/((?=lg)?[vl]k-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[V,[W,Rn],[U,J]],[/(lm(?:-?f100[nv]?|-[\w.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?(\w+) bui/i],[V,[W,Rn],[U,q]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab[\w ]+|yt[-\w]{6}|tb[-\w]{6})/i],[V,[W,`Lenovo`],[U,J]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w.]*)/i],[[V,/_/g,` `],[W,`Nokia`],[U,q]],[/(pixel c)\b/i],[V,[W,In],[U,J]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[V,[W,In],[U,q]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]?\d\.))/i],[V,[W,Wn],[U,q]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[V,`Xperia Tablet`],[W,Wn],[U,J]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[V,[W,`OnePlus`],[U,q]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[V,[W,kn],[U,J]],[/((?:sd|kf)[0349hijor-uw]+)( bui|\)).+silk\//i],[[V,/(.+)/g,`Fire Phone $1`],[W,kn],[U,q]],[/(playbook);[-\w),; ]+(rim)/i],[V,W,[U,J]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[V,[W,Mn],[U,q]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[V,[W,jn],[U,J]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[V,[W,jn],[U,q]],[/(nexus 9)/i],[V,[W,`HTC`],[U,J]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!;|\.)|sony(?!-bra))[-_ ]?([-\w]*)/i],[W,[V,/_/g,` `],[U,q]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[V,[W,`Acer`],[U,J]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[V,[W,`Meizu`],[U,q]],[/; ((?:power )?armor[\w ]{0,8})(?: bui|\))/i],[V,[W,`Ulefone`],[U,q]],[/(blackberry|benq|palm(?=-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[W,V,[U,q]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[W,V,[U,J]],[/(surface duo)/i],[V,[W,zn],[U,J]],[/droid [\d.]+; (fp\du?)(?: b|\))/i],[V,[W,`Fairphone`],[U,q]],[/(u304aa)/i],[V,[W,`AT&T`],[U,q]],[/\bsie-(\w*)/i],[V,[W,`Siemens`],[U,q]],[/\b(rct\w+) b/i],[V,[W,`RCA`],[U,J]],[/\b(venue[\d ]{2,7}) b/i],[V,[W,`Dell`],[U,J]],[/\b(q(?:mv|ta)\w+) b/i],[V,[W,`Verizon`],[U,J]],[/\b(?:barnes[& ]+noble |bn[rt])([\w+ ]*) b/i],[V,[W,`Barnes & Noble`],[U,J]],[/\b(tm\d{3}\w+) b/i],[V,[W,`NuVision`],[U,J]],[/\b(k88) b/i],[V,[W,`ZTE`],[U,J]],[/\b(nx\d{3}j) b/i],[V,[W,`ZTE`],[U,q]],[/\b(gen\d{3}) b.+49h/i],[V,[W,`Swiss`],[U,q]],[/\b(zur\d{3}) b/i],[V,[W,`Swiss`],[U,J]],[/\b((zeki)?tb.*\b) b/i],[V,[W,`Zeki`],[U,J]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[W,`Dragon Touch`],V,[U,J]],[/\b(ns-?\w{0,9}) b/i],[V,[W,`Insignia`],[U,J]],[/\b((nxa|next)-?\w{0,9}) b/i],[V,[W,`NextBook`],[U,J]],[/\b(xtreme_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[W,`Voice`],V,[U,q]],[/\b(lvtel-)?(v1[12]) b/i],[[W,`LvTel`],V,[U,q]],[/\b(ph-1) /i],[V,[W,`Essential`],[U,q]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[V,[W,`Envizen`],[U,J]],[/\b(trio[-\w. ]+) b/i],[V,[W,`MachSpeed`],[U,J]],[/\btu_(1491) b/i],[V,[W,`Rotor`],[U,J]],[/(shield[\w ]+) b/i],[V,[W,`Nvidia`],[U,J]],[/(sprint) (\w+)/i],[W,V,[U,q]],[/(kin\.[onetw]{3})/i],[[V,/\./g,` `],[W,zn],[U,q]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[V,[W,Kn],[U,J]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[V,[W,Kn],[U,q]],[/smart-tv.+(samsung)/i],[W,[U,Y]],[/hbbtv.+maple;(\d+)/i],[[V,/^/,`SmartTV`],[W,Hn],[U,Y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[W,Rn],[U,Y]],[/(apple) ?tv/i],[W,[V,`${An} TV`],[U,Y]],[/crkey/i],[[V,`${Nn}cast`],[W,In],[U,Y]],[/droid.+aft(\w+)( bui|\))/i],[V,[W,kn],[U,Y]],[/\(dtv[);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[V,[W,Un],[U,Y]],[/(bravia[\w ]+)( bui|\))/i],[V,[W,Wn],[U,Y]],[/(mitv-\w{5}) bui/i],[V,[W,Gn],[U,Y]],[/Hbbtv.*(technisat) (.*);/i],[W,V,[U,Y]],[/\b(roku)[\dx]*[)/]((?:dvp-)?[\d.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w+ ]*; *(\w[^;]*);([^;]*)/i],[[W,tr],[V,tr],[U,Y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[U,Y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[W,V,[U,En]],[/droid.+; (shield) bui/i],[V,[W,`Nvidia`],[U,En]],[/(playstation [345portablevi]+)/i],[V,[W,Wn],[U,En]],[/\b(xbox(?: one)?(?!; xbox))[); ]/i],[V,[W,zn],[U,En]],[/((pebble))app/i],[W,V,[U,X]],[/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i],[V,[W,An],[U,X]],[/droid.+; (glass) \d/i],[V,[W,In],[U,X]],[/droid.+; (wt63?0{2,3})\)/i],[V,[W,Kn],[U,X]],[/(quest( \d| pro)?)/i],[V,[W,qn],[U,X]],[/(tesla)(?: qtcarbrowser|\/[-\w.]+)/i],[W,[U,Dn]],[/(aeobc)\b/i],[V,[W,kn],[U,Dn]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[V,[U,q]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[V,[U,J]],[/\b((tablet|tab)[;/]|focus\/\d(?!.+mobile))/i],[[U,J]],[/(phone|mobile(?:[;/]| [ \w/.]*safari)|pda(?=.+windows ce))/i],[[U,q]],[/(android[-\w. ]{0,9});.+buil/i],[V,[W,`Generic`]]],engine:[[/windows.+ edge\/([\w.]+)/i],[G,[H,`${Pn}HTML`]],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i],[G,[H,`Blink`]],[/(presto)\/([\w.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w.]+)/i,/ekioh(flow)\/([\w.]+)/i,/(khtml|tasman|links)[/ ]\(?([\w.]+)/i,/(icab)[/ ]([23]\.[\d.]+)/i,/\b(libweb)/i],[H,G],[/rv:([\w.]{1,9})\b.+(gecko)/i],[G,H]],os:[[/microsoft (windows) (vista|xp)/i],[H,G],[/(windows (?:phone(?: os)?|mobile))[/ ]?([.\w ]*)/i],[H,[G,rr,ar]],[/windows nt 6\.2; (arm)/i,/windows[/ ]?([ntce\d. ]+\w)(?!.+xbox)/i,/(?:win(?=[39n])|win 9x )([nt\d.]+)/i],[[G,rr,ar],[H,`Windows`]],[/ip[honead]{2,4}\b(?:.*os (\w+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[/ ])([\d.]+)/i,/cfnetwork\/.+darwin/i],[[G,/_/g,`.`],[H,`iOS`]],[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[H,Yn],[G,/_/g,`.`]],[/droid ([\w.]+)\b.+(android[- ]x86|harmonyos)/i],[G,H],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-/ ]?([\w.]*)/i,/(blackberry)\w*\/([\w.]*)/i,/(tizen|kaios)[/ ]([\w.]+)/i,/\((series40);/i],[H,G],[/\(bb(10);/i],[G,[H,Mn]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-/ ]?([\w.]*)/i],[G,[H,`Symbian`]],[/mozilla\/[\d.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w.]+)/i],[G,[H,`${Fn} OS`]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w.]+)/i],[G,[H,`webOS`]],[/watch(?: ?os[,/]|\d,\d\/)([\d.]+)/i],[G,[H,`watchOS`]],[/crkey\/([\d.]+)/i],[G,[H,`${Nn}cast`]],[/(cros) \w+(?:\)| ([\w.]+)\b)/i],[[H,Jn],G],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w.]*)/i,/(mint)[/() ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-/ ]?(?!chrom|package)([-\w.]*)/i,/(hurd|linux) ?([\w.]*)/i,/(gnu) ?([\w.]*)/i,/\b([-e-hrntopcs]{0,5}bsd|dragonfly)[/ ]?(?!amd|[ix346]{1,2}86)([\w.]*)/i,/(haiku) (\w+)/i],[H,G],[/(sunos) ?([\w.]*)/i],[[H,`Solaris`],G],[/((?:open)?solaris)[-/ ]?([\w.]*)/i,/(aix) ((\d)(?=[.) ])[\w.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w.]*)/i],[H,G]]};function sr(e){return typeof e==`object`&&!!e}Object.freeze(Zn([H,G,Tn])),Object.freeze(Zn([K])),Object.freeze(Zn([V,W,U,En,q,Y,J,X,Dn])),Object.freeze(Zn([H,G])),Object.freeze(Zn([H,G]));function cr(){if(!(typeof window>`u`||!window.navigator))return window.navigator}function lr(e){return e.length>On?tr(e,On):e}function ur(e){if(typeof e==`string`)return{ua:lr(e),isSelfNavigator:!1,navigator:void 0,userAgentData:void 0,regexMap:or};let t=cr(),n=lr(t&&t.userAgent?t.userAgent:B);return{ua:n,isSelfNavigator:!!(t&&t.userAgent===n),navigator:t,userAgentData:t?.userAgentData,regexMap:or}}function dr(e,t){if(!t&&!sr(e))return ur(e);let n=cr(),r=sr(e)?void 0:e,i=sr(e)?e:t,a=lr(r||(n&&n.userAgent?n.userAgent:B)),o=n?.userAgentData;return{ua:a,isSelfNavigator:!!(n&&n.userAgent===a),navigator:n,userAgentData:o,regexMap:i?Xn(or,i):or}}function fr(e){let t={name:void 0,version:void 0,major:void 0};return nr(e.ua,e.regexMap.browser,t),t.major=er(t.version),e.isSelfNavigator&&e.navigator?.brave&&typeof e.navigator.brave.isBrave==`function`&&(t.name=`Brave`),t}function pr(e){let t={architecture:void 0};return nr(e.ua,e.regexMap.cpu,t),t}function mr(e){let t={vendor:void 0,model:void 0,type:void 0};return nr(e.ua,e.regexMap.device,t),e.isSelfNavigator&&!t.type&&e.userAgentData?.mobile&&(t.type=q),e.isSelfNavigator&&t.model===`Macintosh`&&e.navigator&&e.navigator.standalone!==void 0&&e.navigator.maxTouchPoints&&e.navigator.maxTouchPoints>2&&(t.model=`iPad`,t.type=J),t}function hr(e){let t={name:void 0,version:void 0};return nr(e.ua,e.regexMap.engine,t),t}function gr(e){let t={name:void 0,version:void 0};return nr(e.ua,e.regexMap.os,t),e.isSelfNavigator&&!t.name&&e.userAgentData?.platform&&e.userAgentData.platform!==`Unknown`&&(t.name=e.userAgentData.platform.replace(/chrome os/i,Jn).replace(/macos/i,Yn)),t}function _r(e,t){let n,r,i,a,o,s,c=()=>n||=dr(e,t);return{get ua(){return c().ua},get browser(){return r||=fr(c()),r},get engine(){return i||=hr(c()),i},get os(){return a||=gr(c()),a},get device(){return o||=mr(c()),o},get cpu(){return s||=pr(c()),s}}}function vr(e){return e==null?!1:`${+e}`==`${e}`}function yr(e){let{authToken:t,connectionMeta:n,events:r,clientRpc:i,rpcOptions:a={},wsOptions:o={}}=e,s=!1,c=Cn(),l=vr(n.websocket)?`${location.protocol.replace(`http`,`ws`)}//${location.hostname}:${n.websocket}`:n.websocket,u=sn(i.functions,{channel:Sn({url:l,authToken:t,...o}),rpcOptions:a});i.register({name:`devtoolskit:internal:auth:revoked`,type:`event`,handler:()=>{s=!1,r.emit(`rpc:is-trusted:updated`,!1)}});let d=t;async function f(e){d=e;let t=_r(navigator.userAgent),n=[t.browser.name,t.browser.version,`|`,t.os.name,t.os.version,t.device.type].filter(e=>e).join(` `),i=await u.$call(`vite:anonymous:auth`,{authToken:e,ua:n,origin:location.origin});return s=i.isTrusted,c.resolve(s),r.emit(`rpc:is-trusted:updated`,s),i.isTrusted}async function p(){return s?!0:f(d)}async function m(e=6e4){if(s&&c.resolve(!0),e<=0)return c.promise;let t=()=>{};return await Promise.race([c.promise.then(t),new Promise((n,r)=>{let i=setTimeout(()=>{r(Error(`[Vite DevTools] Timeout waiting for rpc to be trusted`))},e);t=()=>clearTimeout(i)})]),s}return{get isTrusted(){return s},requestTrust:p,requestTrustWithToken:f,ensureTrusted:m,call:(...e)=>u.$call(...e),callEvent:(...e)=>u.$callEvent(...e),callOptional:(...e)=>u.$callOptional(...e)}}var br=`__VITE_DEVTOOLS_CONNECTION_META__`,Q=`__VITE_DEVTOOLS_CONNECTION_AUTH_TOKEN__`;function xr(e){let t=[()=>e,()=>localStorage.getItem(Q),()=>window?.[Q],()=>globalThis?.[Q],()=>parent.window?.[Q]],n;for(let e of t)try{if(n=e(),n)break}catch{}return n||=(0,Te.humanId)({separator:`-`,capitalize:!1}),localStorage.setItem(Q,n),globalThis[Q]=n,n}function Sr(){let e=[()=>window?.[br],()=>globalThis?.[br],()=>parent.window?.[br]];for(let t of e)try{let e=t();if(e)return e}catch{}}async function Cr(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=we(),a=Array.isArray(t)?t:[t],o=e.connectionMeta||Sr(),s=a[0]??`./`;function c(e){return e.endsWith(`/`)?e:`${e}/`}function l(e,t){return/^https?:\/\//.test(t)||t.startsWith(`/`)?t:`${c(e)}${t}`}if(!o){let e=[];for(let t of a)try{o=await fetch(l(t,ee)).then(e=>e.json()),s=t,globalThis[br]=o;break}catch(t){e.push(t)}if(!o)throw Error(`Failed to get connection meta from ${a.join(`, `)}`,{cause:e})}let u=new de({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),d={rpc:void 0},f=xr(e.authToken),p=new Ce(d);async function m(e){let t=[s,...a.filter(e=>e!==s)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(l(r,e)).then(t=>{if(!t.ok)throw Error(`Failed to fetch ${e} from ${r}: ${t.status}`);return t.json()})}catch(e){n.push(e)}throw Error(`Failed to load ${e} from ${t.join(`, `)}`,{cause:n})}let h=o.backend===`static`?await qt({fetchJsonFromBases:m}):yr({authToken:f,connectionMeta:o,events:i,clientRpc:p,rpcOptions:{...n,async onRequest(e,t,i){if(await n.onRequest?.call(this,e,t,i),r&&u?.validate(e.m)){let n=u.cached(e.m,e.a);if(n)return i(n);{let n=await t(e);u?.apply(e,n)}}else await t(e)}},wsOptions:e.wsOptions}),g={events:i,get isTrusted(){return h.isTrusted},connectionMeta:o,ensureTrusted:h.ensureTrusted,requestTrust:h.requestTrust,requestTrustWithToken:async e=>(localStorage.setItem(Q,e),globalThis[Q]=e,h.requestTrustWithToken(e)),call:h.call,callEvent:h.callEvent,callOptional:h.callOptional,client:p,sharedState:void 0,cacheManager:u};g.sharedState=Vt(g),d.rpc=g,h.requestTrust();try{let e=new BroadcastChannel(`vite-devtools-auth`);e.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&g.requestTrustWithToken(e.data.authToken)}}catch{}return g}var $=c({connected:!1,error:null}),wr=e(void 0);async function Tr(){let e=r();try{wr.value=await Cr({baseURL:[v,e.app.baseURL],cacheOptions:!0,connectionMeta:e.app.connection,wsOptions:{onConnected:()=>{$.connected=!0},onError:e=>{$.error=e},onDisconnected:()=>{$.connected=!1}},rpcOptions:{onGeneralError:(e,t)=>{$.error=e,console.error(`[rolldown-devtools] RPC error on executing "${t}":`)},onFunctionError:(e,t)=>{$.error=e,console.error(`[rolldown-devtools] RPC error on executing "${t}":`)}}});let t=await wr.value.call(`devtoolskit:internal:rpc:server:list`),n=Object.keys(t).filter(e=>t[e]?.cacheable);wr.value.cacheManager.updateOptions({functions:[...n]}),$.connected=!0}catch(e){$.error=e}}function Er(){return wr}export{_ as i,$ as n,Er as r,Tr as t};
@@ -1 +1 @@
1
- import{Kt as e,q as t,w as n,x as r}from"./CRfXUi3G.js";import{c as i}from"#entry";import{t as a}from"./BUwCbG2W.js";var o={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},s={class:`max-w-520px text-center`},c=[`textContent`],l=[`textContent`],u=[`textContent`],d=a({__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:500},statusText:{type:String,default:`Internal server error`},description:{type:String,default:`This page is temporarily unavailable.`},refresh:{type:String,default:`Refresh this page`}},setup(a){let d=a;return i({title:`${d.status} - ${d.statusText} | ${d.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(i,d)=>(t(),n(`div`,o,[r(`div`,s,[r(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:e(a.status)},null,8,c),r(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:e(a.statusText)},null,8,l),r(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:e(a.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-d9556456`]]);export{d as default};
1
+ import{q as e,qt as t,w as n,x as r}from"./C--RKQDq.js";import{c as i}from"#entry";import{t as a}from"./BUwCbG2W.js";var o={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},s={class:`max-w-520px text-center`},c=[`textContent`],l=[`textContent`],u=[`textContent`],d=a({__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:500},statusText:{type:String,default:`Internal server error`},description:{type:String,default:`This page is temporarily unavailable.`},refresh:{type:String,default:`Refresh this page`}},setup(a){let d=a;return i({title:`${d.status} - ${d.statusText} | ${d.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(i,d)=>(e(),n(`div`,o,[r(`div`,s,[r(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:t(a.status)},null,8,c),r(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:t(a.statusText)},null,8,l),r(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:t(a.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-3f2b1973`]]);export{d as default};
@@ -0,0 +1 @@
1
+ import{A as e,C as t,G as n,Gt as r,Kt as i,M as a,Ot as o,Q as s,R as c,S as l,Wt as u,Z as d,b as f,et as p,h 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"./C--RKQDq.js";import{G as T,H as E,z as D}from"./B2NMBmj_.js";import{g as O}from"./BE1TLHgg.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"./DvZ2T9qR.js";import{r as L}from"./-w-An_zz.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(a({__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(o(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)=>o(k)&&o(k)(...e)},null,40,V),[[E,r.value]])]),_:3}))]))}}),{__name:`DataPathSelectorItem`});function W(e){let t=C({search:``,selected:null}),n=C(),r=f(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:f(()=>{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(a({__name:`PathSelector`,props:{session:{},data:{},importIdKey:{},searchKeys:{}},emits:[`close`,`select`],setup(t,{emit:n}){let r=t,i=n,a=f(()=>{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(f(()=>r.data));function l(e,t=new Set){if(t.has(e))return[];t.add(e);let n=a.value.get(e);if(!n?.imports?.length)return[];let i=[];for(let e of n.imports){let n=a.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 d=f(()=>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],()=>{i(`select`,{start:c.state.value.selected??``,end:u.state.value.selected??``})});function p(){i(`select`,{start:``,end:``}),i(`close`)}return(n,r)=>{let i=U;return _(),x(`div`,K,[S(`div`,q,[e(i,{search:o(c).state.value.search,"onUpdate:search":r[0]||=e=>o(c).state.value.search=e,placeholder:`Start`,selector:o(c),session:t.session,data:o(c).modules.value,onClear:r[1]||=()=>{o(c).clear(),o(u).clear()}},{list:h(()=>[s(n.$slots,`list`,{select:o(c).select,data:o(c).modules.value})]),item:h(()=>[s(n.$slots,`item`,{id:o(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(i,{search:o(u).state.value.search,"onUpdate:search":r[2]||=e=>o(u).state.value.search=e,placeholder:`End`,selector:o(u),session:t.session,data:d.value,onClear:o(u).clear},{list:h(()=>[s(n.$slots,`list`,{select:o(u).select,data:d.value})]),item:h(()=>[s(n.$slots,`item`,{id:o(u).state.value.selected})]),empty:h(()=>[S(`div`,J,[S(`span`,Y,v(o(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(a({inheritAttrs:!1,__name:`TimeoutView`,props:{content:{},hideInterval:{default:1500}},setup(e){let n=C(!1),i=null;return g(()=>e.content,()=>{i&&clearTimeout(i),n.value=!0,i=setTimeout(()=>{n.value=!1},e.hideInterval)}),(i,a)=>(_(),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`,r(w({key:0},i.$attrs)),v(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(a({__name:`ModuleGraph`,props:{modules:{},session:{},expandControls:{type:Boolean,default:!0}},setup(r){let a=r,{isFirstCalculateGraph:c,childToParentMap:l,collapsedNodes:f,calculateGraph:h,container:v,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,()=>{c.value=!0,f.clear(),l.clear(),h()},{immediate:!0})}),(n,a)=>{let c=Z,l=p(`tooltip`);return _(),x(`div`,{ref_key:`container`,ref:v,"w-full":``,"h-screen":``,"of-scroll":``,relative:``,"select-none":``,class:u(o(A)?`cursor-grabbing`:``)},[S(`div`,{style:i({width:`${o(y)*o(w)}px`,height:`${o(C)*o(w)}px`})},[S(`div`,{flex:`~ items-center justify-center`,style:i({transform:`scale(${o(w)})`,transformOrigin:`0 0`})},[S(`div`,{absolute:``,"left-0":``,"top-0":``,style:i({width:`${o(y)}px`,height:`${o(C)}px`}),class:`bg-dots`},null,4),(_(),x(`svg`,{"pointer-events-none":``,absolute:``,"left-0":``,"top-0":``,"z-graph-link":``,width:o(y),height:o(C)},[S(`g`,null,[(_(!0),x(m,null,d(o(D),e=>(_(),x(m,{key:e.id},[e.target?s(n.$slots,`link`,{key:0,link:e,d:o(F)(e,o(O)),linkClass:o(N)(e)},()=>[(_(),x(`path`,{key:e.id,d:o(F)(e,o(O)),class:u(o(N)(e)),fill:`none`},null,10,te))]):t(``,!0)],64))),128))])],8,Q)),(_(!0),x(m,null,d(o(E),e=>(_(),x(m,{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:i({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:i({minWidth:`${o(o(O).width)}px`,maxWidth:`${o(o(O).width)}px`,maxHeight:`${o(o(O).height)}px`,overflow:`hidden`,transition:`all 0.3s ease`})},[s(n.$slots,`default`,{node:e,nodesRefMap:o(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:u([`flex cursor-pointer z-graph-node-active bg-base`,{"cursor-not-allowed":o(V),"hover:bg-active":!o(V)}]),disabled:o(V),title:e.data.expanded?`Collapse`:`Expand`,onClick:T(t=>o(H)(e.data.module.id),[`stop`])},[S(`div`,{class:u([`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(c,{content:`${Math.round(o(w)*100)}%`,class:`text-sm`},null,8,[`content`])]),S(`div`,oe,[r.expandControls?(_(),x(m,{key:0},[b((_(),x(`button`,{"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,disabled:o(V),class:u({"op50 cursor-not-allowed":o(V),"hover:bg-active":!o(V)}),title:`Expand All`,onClick:a[0]||=e=>o(U)()},[...a[4]||=[S(`div`,{class:`i-ph-arrows-out-simple-duotone`},null,-1)]],10,$)),[[l,`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:o(V),class:u({"op50 cursor-not-allowed":o(V),"hover:bg-active":!o(V)}),title:`Collapse All`,onClick:a[1]||=e=>o(W)()},[...a[5]||=[S(`div`,{class:`i-ph-arrows-in-simple-duotone`},null,-1)]],10,se)),[[l,`Collapse All`,void 0,{left:!0}]]),a[6]||=S(`div`,{border:`t base`,my1:``},null,-1)],64)):t(``,!0),b((_(),x(`button`,{disabled:o(w)>=o(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=>o(L)()},[...a[7]||=[S(`div`,{"i-ph-magnifying-glass-plus-duotone":``},null,-1)]],8,ce)),[[l,`Zoom In (Ctrl + =)`,void 0,{left:!0}]]),b((_(),x(`button`,{disabled:o(w)<=o(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=>o(R)()},[...a[8]||=[S(`div`,{"i-ph-magnifying-glass-minus-duotone":``},null,-1)]],8,le)),[[l,`Zoom Out (Ctrl + -)`,void 0,{left:!0}]])])])],2)}}}),{__name:`DisplayModuleGraph`});export{X as n,G as r,ue as t};
@@ -0,0 +1 @@
1
+ import{A as e,C as t,Kt as n,M as r,Ot as i,Q as a,R as o,S as s,Wt as c,Z as l,h as u,lt as d,q as f,rt as p,tt as m,w as h,x as g}from"./C--RKQDq.js";import{C as _}from"./B2NMBmj_.js";import{t as v}from"./jJY8e3xp.js";import{n as y,t as b}from"./XfS7e3PM.js";var x=[`open`],S={"font-mono":``},C={"font-mono":``},w=Object.assign(r({__name:`TreeNode`,props:o({node:{},icon:{default:`i-catppuccin:folder icon-catppuccin`},iconOpen:{default:`i-catppuccin:folder-open icon-catppuccin`},link:{type:[String,Boolean]},linkQueryKey:{default:`module`},padding:{default:0},open:{type:Boolean}},{open:{type:Boolean,required:!1,default:!0},openModifiers:{}}),emits:o([`select`],[`update:open`]),setup(r,{emit:o}){let T=r,E=o,D=p(r,`open`),O=_(),k=window.location;function A(e){T.link||E(`select`,e)}return(o,p)=>{let _=b,T=w,E=y;return f(),h(`details`,{open:D.value,onToggle:p[0]||=e=>D.value=e.target?.open},[g(`summary`,{"cursor-default":``,"select-none":``,"text-sm":``,truncate:``,style:n({paddingLeft:`${r.padding+.5}rem`}),flex:`~ gap-1`,px2:``,py1:``,rounded:``,hover:`bg-active `},[g(`div`,{class:c([`i-ph-caret-right-duotone transition op50`,D.value?`rotate-90`:``])},null,2),g(`div`,{class:c(D.value&&r.iconOpen||r.icon),"inline-block":``,"vertical-text-bottom":``},null,2),g(`div`,S,[e(_,{path:r.node.name||``},null,8,[`path`])])],4),D.value?(f(),h(u,{key:0},[(f(!0),h(u,null,l(Object.entries(r.node.children),e=>(f(),s(T,{key:e[0],node:e[1],link:r.link,padding:r.padding+1,"link-query-key":r.linkQueryKey,onSelect:A},{extra:d(({node:e})=>[a(o.$slots,`extra`,{node:e})]),_:3},8,[`node`,`link`,`padding`,`link-query-key`]))),128)),(f(!0),h(u,null,l(r.node.items,t=>(f(),s(m(r.link?i(v):`div`),{key:t.full,to:r.link?typeof r.link==`string`?r.link:{path:i(O).path,query:{...i(O).query,[r.linkQueryKey]:t.full},hash:i(k).hash}:void 0,"text-sm":``,"ws-nowrap":``,flex:`~ gap-1`,px2:``,py1:``,rounded:``,hover:`bg-active`,style:n({paddingLeft:`${r.padding+2.7}rem`}),onClick:e=>A(t)},{default:d(()=>[e(E,{filename:t.full},null,8,[`filename`]),g(`div`,C,[e(_,{path:t.path.split(`/`).pop()||``},null,8,[`path`]),a(o.$slots,`extra`,{node:t})])]),_:2},1032,[`to`,`style`,`onClick`]))),128))],64)):t(``,!0)],40,x)}}}),{__name:`DisplayTreeNode`});export{w as t};
@@ -1 +1 @@
1
- import{b as e,ot as t,vt as n,wt as r,yt as i}from"./CRfXUi3G.js";var a=0,o=i(new Map),s=e(()=>Array.from(o.values()).flat());function c(e){let i=r(e),s=()=>{};function c(e){s();let t=a++;o.set(t,e),s=()=>{o.delete(t)}}return t(i,e=>{c(e)},{immediate:!0}),n(()=>{s()}),()=>{s()}}export{c as n,s as t};
1
+ import{b as e,ot as t,vt as n,wt as r,yt as i}from"./C--RKQDq.js";var a=0,o=i(new Map),s=e(()=>Array.from(o.values()).flat());function c(e){let i=r(e),s=()=>{};function c(e){s();let t=a++;o.set(t,e),s=()=>{o.delete(t)}}return t(i,e=>{c(e)},{immediate:!0}),n(()=>{s()}),()=>{s()}}export{c as n,s as t};
@@ -0,0 +1 @@
1
+ import{r as e}from"./D7YBGhmX.js";import{A as t,B as n,C as r,D as i,Kt as a,M as o,Ot as s,S as c,Wt as l,Z as u,at as d,b as f,et as p,h as m,k 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"./C--RKQDq.js";import{C as E}from"./B2NMBmj_.js";import{c as D,g as O,p as k}from"./BE1TLHgg.js";import{n as ee}from"#entry";import{t as A}from"./jJY8e3xp.js";import{r as j}from"./D-KdwVBL.js";import{r as M,t as N}from"./BYXvfkhc.js";import{i as P,t as te}from"./C1hgbwL7.js";import{n as F}from"./DvZ2T9qR.js";import{n as I,r as ne,t as L}from"./-w-An_zz.js";import{a as re,c as ie,i as ae,n as R,o as z,r as oe,t as se}from"./COiP6LWy.js";import{t as ce}from"./D2AP-caS.js";import{n as le,r as ue,t as B}from"./DCPELPdh.js";var V=[`onClick`],de=Object.assign(o({__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(o({__name:`Graph`,props:{session:{},chunks:{},entryId:{default:``}},setup(e){let i=e,a=f(()=>i.chunks),o=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:c,hierarchy:l,collapsedNodes:u,container:d,modulesMap:f,nodes:p,links:m,nodesMap:h,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=l({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:!u.has(e.id),hasChildren:!1}))):u.has(`${n.module?.id}`)?[]:n.module.imports?.map(e=>{let r=f.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:!u.has(r.id),hasChildren:!1}}).filter(e=>e!==void 0));t.value&&=!1,c().nodeSize([s(o.height),s(o.width)+s(o.gap)])(x);let S=x.descendants();for(let e of S)[e.x,e.y]=[e.y-s(o.width),e.x];let C=Math.min(...S.map(e=>e.x)),w=Math.min(...S.map(e=>e.y));if(C<s(o.margin))for(let e of S)e.x+=Math.abs(C)+s(o.margin);if(w<s(o.margin))for(let e of S)e.y+=Math.abs(w)+s(o.margin);p.value=S,h.clear();for(let e of S)h.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:h.get(`${e.chunk_id}`),target:h.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);m.value=D,n(()=>{_.value=d.value.scrollWidth/r.value+s(o.margin),v.value=d.value.scrollHeight/r.value+s(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:s(o).path,query:{chunk:e.data.module.chunk_id}}},{default:g(()=>[C(`span`,H,`#`+y(e.data.module.id),1),C(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${e.data.module.id}`},[C(`div`,null,y(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),h(` `+y(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(o({__name:`Sunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(e,{emit:n}){let i=e,o=n,c=d(`el`);return b(()=>c.value?.append(i.graph.el)),(n,i)=>{let l=R,d=M,f=p(`tooltip`);return v(),S(`div`,G,[C(`div`,{ref_key:`el`,ref:c,"w-500px":``},null,512),C(`div`,K,[t(l,{border:`b base`,py2:``,selected:e.selected,options:e.graph.options,onSelect:i[0]||=e=>o(`select`,e)},null,8,[`selected`,`options`]),e.selected?(v(),S(`div`,q,[(v(!0),S(m,null,u(e.selected.children,n=>(v(),S(m,{key:n.id},[C(`button`,{"ws-nowrap":``,"text-nowrap":``,"text-left":``,"overflow-hidden":``,"text-ellipsis":``,"text-sm":``,hover:`bg-active`,rounded:``,px2:``,onClick:e=>o(`select`,n)},[n.meta&&n.meta===e.selected?.meta?(v(),S(`span`,Y,`(self)`)):(v(),S(`span`,X,y(n.meta?.name||n.id),1))],8,J),C(`button`,{relative:``,flex:`~ gap-1 items-center`,hover:`bg-active`,rounded:``,onClick:e=>o(`select`,n)},[C(`div`,{"h-5":``,rounded:``,shadow:``,border:`~ base`,style:a({background:s(z)(e.graph.options.getColor?.(n)||`#000`),width:`${n.size/e.selected.size*100}%`})},null,4),t(d,{"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":``},[h(` (`+y(n.children.length)+`) `,1)],8,Q)),[[f,`${n.children.length} modules`]]):r(``,!0)],8,Z)],64))),128))])):r(``,!0)])])}}}),{__name:`ChunksSunburst`}),me=Object.assign(o({__name:`Flamegraph`,props:{graph:{}},setup(e){let t=e,n=d(`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`},$=o({__name:`chunks`,props:{session:{}},setup(n){let a=n,o=T(k()),d=[{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`}],p=w({search:``}),b=e(),{state:x,isLoading:E}=D(async()=>await b.value.call(`vite:rolldown:get-chunks-graph`,{session:a.session.id}),null),A=f(()=>{let e=new Map;return x.value?.forEach(t=>{e.set(`${t.chunk_id}`,t)}),e}),P=f(()=>x.value?.map(e=>({...e,id:`${e.chunk_id}`}))??[]),F=O(()=>P.value,()=>new ne(P.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),L=f(()=>p.value.search?F.value.search(p.value.search).map(e=>e.item):P.value),{pathSelectorVisible:z,pathNodes:B,selectPathNodes:V,togglePathSelector:H,normalizedGraph:U}=ue({onToggle:e=>{p.value.search=e?!1:``},dataMap:f(()=>A.value),list:f(()=>L.value),importIdKey:`chunk_id`});function W(e){N.value.chunkViewType=e}let G=f(()=>{let e=new Map;for(let t of a.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:f(()=>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,a)=>{let f=ee,_=de,b=le,x=I,w=te,T=fe,D=R,O=pe,k=me,P=M,F=ie;return s(E)?(v(),c(f,{key:0})):(v(),S(`div`,{key:1,relative:``,class:l({"max-h-screen of-hidden":s(N).chunkViewType===`graph`})},[C(`div`,he,[t(x,{modelValue:p.value,"onUpdate:modelValue":a[2]||=e=>p.value=e,rules:[]},i({"search-end":g(()=>[s(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:a[1]||=e=>s(H)(!0)},[...a[5]||=[C(`i`,{"i-ri:route-line":``,flex:``},null,-1)]])])):r(``,!0)]),default:g(()=>[C(`div`,_e,[a[6]||=C(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(v(),S(m,null,u(d,e=>C(`button`,{key:e.value,"btn-action":``,class:l(s(N).chunkViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>W(e.value)},[C(`div`,{class:l(e.icon)},null,2),h(` `+y(e.label),1)],10,ve)),64))])]),_:2},[s(z)?{name:`search`,fn:g(()=>[t(b,{session:n.session,data:L.value,"import-id-key":`chunk_id`,"search-keys":[`name`],onSelect:s(V),onClose:a[0]||=e=>s(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})=>[h(y(A.value.get(e)?.name||`[unnamed]`),1)]),_:1},8,[`session`,`data`,`onSelect`])]),key:`0`}:void 0]),1032,[`modelValue`])]),s(N).chunkViewType===`list`?(v(),S(`div`,ye,[t(_,{session:n.session,chunks:L.value},null,8,[`session`,`chunks`])])):r(``,!0),s(N).chunkViewType===`detailed-list`?(v(),S(`div`,be,[(v(!0),S(m,null,u(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))])):s(N).chunkViewType===`graph`?(v(),c(T,{key:2,class:`pt32`,session:n.session,chunks:s(U),"entry-id":s(B).start},null,8,[`session`,`chunks`,`entry-id`])):s(N).chunkViewType===`treemap`?(v(),S(`div`,xe,[s(Y)?(v(),c(ce,{key:0,graph:s(Y),selected:s(Z),onSelect:a[3]||=e=>s($)(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)])):s(N).chunkViewType===`sunburst`?(v(),S(`div`,Se,[s(Y)?(v(),c(O,{key:0,graph:s(Y),selected:s(Z),onSelect:a[4]||=e=>s($)(e)},null,8,[`graph`,`selected`])):r(``,!0)])):s(N).chunkViewType===`flamegraph`?(v(),S(`div`,Ce,[s(Y)?(v(),c(k,{key:0,graph:s(Y)},null,8,[`graph`])):r(``,!0)])):r(``,!0),t(F,{"hover-x":o.x,"hover-y":o.y},{default:g(()=>[s(X)?.meta?(v(),S(`div`,we,[C(`div`,Te,[a[7]||=C(`i`,{"i-ph-shapes-duotone":``,"flex-none":``},null,-1),C(`span`,Ee,y(s(X).meta.name||`[unnamed]`),1)]),C(`div`,De,[a[8]||=C(`span`,{op50:``,"text-xs":``},`Size:`,-1),t(P,{bytes:s(X).meta.size,"text-xs":``},null,8,[`bytes`])]),s(X).meta.modules?.length?(v(),S(`div`,Oe,[a[9]||=C(`span`,{op50:``,"text-xs":``},`Modules:`,-1),C(`span`,ke,y(s(X).meta.modules?.length),1)])):r(``,!0),s(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};
@@ -0,0 +1 @@
1
+ import{C as e,M as t,Ot as n,q as r,qt as i,w as a}from"./C--RKQDq.js";import{i as o}from"./BE1TLHgg.js";var s={key:0,"font-mono":``},c=t({__name:`DisplayTimestamp`,props:{timestamp:{}},setup(t){let c=t;return(l,u)=>t.timestamp?(r(),a(`span`,s,i(n(o)(new Date(c.timestamp))),1)):e(``,!0)}});export{c as t};
@@ -1 +1 @@
1
- import{A as e,Kt as t,k as n,lt as r,q as i,w as a,x as o}from"./CRfXUi3G.js";import{c as s}from"#entry";import{t as c}from"./DWUsdlci.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-ef604f91`]]);export{g as default};
1
+ import{A as e,k as t,lt as n,q as r,qt as i,w as a,x as o}from"./C--RKQDq.js";import{c as s}from"#entry";import{t as c}from"./jJY8e3xp.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 r(),a(`div`,u,[o(`div`,d,[o(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:i(l.status)},null,8,f),o(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:i(l.statusText)},null,8,p),o(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:i(l.description)},null,8,m),o(`div`,h,[e(_,{to:`/`,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:n(()=>[t(i(l.backHome),1)]),_:1})])])])}}},[[`__scopeId`,`data-v-ba200554`]]);export{g as default};
@@ -0,0 +1 @@
1
+ .vue-recycle-scroller__resize-observer[data-v-08cc04ab]{bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}.vue-recycle-scroller{position:relative}.vue-recycle-scroller.flow-mode{overflow-anchor:none}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.grid-mode:not(.page-mode){overflow:auto}.vue-recycle-scroller.direction-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-recycle-scroller__slot{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-recycle-scroller__item-wrapper{-webkit-box-flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex:1;flex:1;overflow:hidden;position:relative}.vue-recycle-scroller.flow-mode .vue-recycle-scroller__item-wrapper{overflow:visible;overflow-anchor:none}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{left:0;position:absolute;top:0;will-change:transform}.vue-recycle-scroller.ready.flow-mode .vue-recycle-scroller__item-view{left:auto;overflow-anchor:none;position:static;top:auto;will-change:auto}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.vue-recycle-scroller__item-spacer{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-flex:0;border:0;-ms-flex:0 0 auto;flex:0 0 auto;margin:0;overflow-anchor:none;padding:0;pointer-events:none;visibility:hidden}
@@ -0,0 +1 @@
1
+ import{r as e}from"./D7YBGhmX.js";import{A as t,C as n,G as r,M as i,S as a,Wt as o,Z as s,b as c,h as l,k as u,lt as d,q as f,qt as p,w as m,x as h,xt as g,z as _}from"./C--RKQDq.js";import{C as v}from"./B2NMBmj_.js";import{n as y}from"#entry";import{t as b}from"./jJY8e3xp.js";import{t as x}from"./8kHoufi2.js";import{t as S}from"./CqfNwh25.js";var C=Object.assign(i({__name:`ComparisonMetric`,props:{current:{},previous:{}},setup(e){let t=e,n=c(()=>t.previous===t.current),r=c(()=>n.value?`0`:t.previous===0?`100.00`:Math.abs((t.current-t.previous)/t.previous*100).toFixed(2)),i=c(()=>n.value?``:t.current>t.previous?`+`:`-`),a=c(()=>n.value?`text-gray-500`:t.current>t.previous?`text-green-500`:`text-red-500`);return(e,t)=>(f(),m(`span`,{"text-4":``,"mt-1":``,"font-mono":``,class:o(a.value)},p(i.value)+p(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(i({__name:`MetricCard`,props:{name:{},description:{},icon:{},current:{},previous:{},format:{}},setup(e){let t=e,r=c(()=>t.format===`bytes`?S(t.current):t.current);return(t,i)=>{let s=C;return f(),m(l,null,[h(`div`,{"font-500":``,op50:``,"text-4":``,flex:`~ items-center gap-2`,title:e.description},[h(`div`,{class:o([e.icon,`text-xl`])},null,2),u(` `+p(e.name),1)],8,w),h(`div`,T,[e.format===`bytes`?(f(),m(`div`,E,[h(`span`,D,p(r.value[0]),1),h(`span`,O,p(r.value[1]),1)])):(f(),m(`div`,k,[h(`span`,A,p(r.value),1)])),e.previous>0&&e.current>0?(f(),a(s,{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=i({__name:`index`,setup(n){let i=g(!1),p=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()=>{i.value=!0;let e=p.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,i.value=!1});let E=c(()=>C.value.map((e,t)=>({...e,createdAt:new Date(e.meta?.timestamp??0),title:t===0?`Session A`:`Session B`}))),D=c(()=>{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,c=b,p=x,g=j;return i.value?(f(),a(r,{key:0})):(f(),m(`div`,M,[h(`div`,N,[t(c,{"btn-action":``,to:{path:`/`}},{default:d(()=>[...n[0]||=[h(`div`,{"i-ph-arrow-bend-up-left-duotone":``},null,-1),u(` Re-select Session `,-1)]]),_:1})]),h(`div`,P,[n[1]||=h(`div`,{py3:``,"indent-2":``},` Compare Overview `,-1),t(p,{sessions:E.value},null,8,[`sessions`]),h(`div`,F,[(f(!0),m(l,null,s(D.value,(e,n)=>(f(),m(`div`,{key:e.name,class:o(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};
@@ -0,0 +1 @@
1
+ import{C as e,M as t,Q as n,Wt as r,b as i,k as a,q as o,qt as s,w as c}from"./C--RKQDq.js";var l=t({__name:`DisplayNumberBadge`,props:{number:{},color:{default:`badge-color-gray op75`},icon:{},prefix:{},suffix:{},format:{default:`locale`}},setup(t){let l=t,u=i(()=>l.format===`percent`?Number(l.number).toLocaleString(void 0,{style:`percent`,minimumFractionDigits:2,maximumFractionDigits:2}):Number(l.number).toLocaleString());return(i,l)=>(o(),c(`div`,{class:r([t.color,`px-0.4em py-0.2em font-mono line-height-none flex items-center`])},[t.icon?(o(),c(`div`,{key:0,class:r([t.icon,`mr-1`])},null,2)):e(``,!0),a(` `+s(t.prefix||``)+s(u.value)+s(t.suffix||``)+` `,1),n(i.$slots,`after`)],2))}});export{l as t};
@@ -1 +1 @@
1
- import{B as e,Ct as t,Dt as n,Et as r,L as i,St as a,Y as o,b as s,q as c,w as l,x as u,xt as d}from"./CRfXUi3G.js";import{f,s as p,u as m}from"./CJmfH1zY.js";import{t as h}from"./BUwCbG2W.js";function g(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function _(){return this.eachAfter(g)}function v(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function y(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function b(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function x(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function S(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function C(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function w(e){for(var t=this,n=T(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function T(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function ee(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function te(){return Array.from(this)}function ne(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function E(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*re(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function D(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=A)):t===void 0&&(t=k);for(var n=new N(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new N(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(M)}function O(){return D(this).eachBefore(j)}function k(e){return e.children}function A(e){return Array.isArray(e)?e[1]:null}function j(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function M(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function N(e){this.data=e,this.depth=this.height=0,this.parent=null}N.prototype=D.prototype={constructor:N,count:_,each:v,eachAfter:b,eachBefore:y,find:x,sum:S,sort:C,path:w,ancestors:ee,descendants:te,leaves:ne,links:E,copy:O,[Symbol.iterator]:re};function P(e,t){return e.parent===t.parent?1:2}function F(e){var t=e.children;return t?t[0]:e.t}function I(e){var t=e.children;return t?t[t.length-1]:e.t}function ie(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function ae(e){for(var t=0,n=0,r=e.children,i=r.length,a;--i>=0;)a=r[i],a.z+=t,a.m+=t,t+=a.s+(n+=a.c)}function oe(e,t,n){return e.a.parent===t.parent?e.a:n}function L(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}L.prototype=Object.create(N.prototype);function R(e){for(var t=new L(e,0),n,r=[t],i,a,o,s;n=r.pop();)if(a=n._.children)for(n.children=Array(s=a.length),o=s-1;o>=0;--o)r.push(i=n.children[o]=new L(a[o],o)),i.parent=n;return(t.parent=new L(null,0)).children=[t],t}function z(){var e=P,t=1,n=1,r=null;function i(i){var s=R(i);if(s.eachAfter(a),s.parent.m=-s.z,s.eachBefore(o),r)i.eachBefore(c);else{var l=i,u=i,d=i;i.eachBefore(function(e){e.x<l.x&&(l=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)});var f=l===u?1:e(l,u)/2,p=f-l.x,m=t/(u.x+f+p),h=n/(d.depth||1);i.eachBefore(function(e){e.x=(e.x+p)*m,e.y=e.depth*h})}return i}function a(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){ae(t);var a=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+e(t._,i._));t.parent.A=s(t,i,t.parent.A||r[0])}function o(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(t,n,r){if(n){for(var i=t,a=t,o=n,s=i.parent.children[0],c=i.m,l=a.m,u=o.m,d=s.m,f;o=I(o),i=F(i),o&&i;)s=F(s),a=I(a),a.a=t,f=o.z+u-i.z-c+e(o._,i._),f>0&&(ie(oe(o,t,r),t,f),c+=f,l+=f),u+=o.m,c+=i.m,d+=s.m,l+=a.m;o&&!I(a)&&(a.t=o,a.m+=u-l),i&&!F(s)&&(s.t=i,s.m+=c-d,r=t)}return r}function c(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}function B(e){return function(){return e}}var V=Math.PI,H=2*V,U=1e-6,W=H-U;function G(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function K(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return G;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var q=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?G:K(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>U)if(!(Math.abs(u*s-c*l)>U)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((V-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>U&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>U||Math.abs(this._y1-l)>U)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%H+H),d>W?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>U&&this._append`A${n},${n},0,${+(d>=V)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function se(){return new q}se.prototype=q.prototype;function ce(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new q(t)}var le=Array.prototype.slice;function ue(e){return e[0]}function de(e){return e[1]}var J=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function fe(e){return new J(e,!0)}function pe(e){return new J(e,!1)}function me(e){return e.source}function he(e){return e.target}function Y(e){let t=me,n=he,r=ue,i=de,a=null,o=null,s=ce(c);function c(){let c,l=le.call(arguments),u=t.apply(this,l),d=n.apply(this,l);if(a??(o=e(c=s())),o.lineStart(),l[0]=u,o.point(+r.apply(this,l),+i.apply(this,l)),l[0]=d,o.point(+r.apply(this,l),+i.apply(this,l)),o.lineEnd(),c)return o=null,c+``||null}return c.source=function(e){return arguments.length?(t=e,c):t},c.target=function(e){return arguments.length?(n=e,c):n},c.x=function(e){return arguments.length?(r=typeof e==`function`?e:B(+e),c):r},c.y=function(e){return arguments.length?(i=typeof e==`function`?e:B(+e),c):i},c.context=function(t){return arguments.length?(t==null?a=o=null:o=e(a=t),c):a},c}function ge(){return Y(fe)}function _e(){return Y(pe)}function ve(e,{wheel:t=!0,minScale:n=.5,maxScale:i=2}={}){let a=d(1);function o(t,o,s){let c=r(e);if(!c)return;let{left:l,top:u,width:d,height:f}=c.getBoundingClientRect(),p=o??l+d/2,m=s??u+f/2,h=p-l,g=m-u,_=a.value;a.value=Math.max(n,Math.min(i,_+t));let v=a.value/_;c.scrollLeft=(c.scrollLeft+h)*v-h,c.scrollTop=(c.scrollTop+g)*v-g}function s(e){if(r(t)){e.preventDefault();let t=.2;o(e.deltaY<0?t:t*-1,e.clientX,e.clientY)}else e.ctrlKey&&(e.preventDefault(),o(e.deltaY*.004*-1,e.clientX,e.clientY))}function c(e=.2){o(e)}function l(e=.2){o(e*-1)}return m(e,`wheel`,s),{scale:a,zoom:o,zoomIn:c,zoomOut:l}}var X=Symbol.for(`ViteDevToolsModuleGraphState`),Z=ge().x(e=>e[0]).y(e=>e[1]),Q=_e().x(e=>e[0]).y(e=>e[1]);function ye(e,t){return!e.target||!e.source?null:t?e.target.x<=e.source.x?Q({source:[e.source.x+n(t.width)/2-n(t.linkOffset),e.source.y],target:[e.target.x-n(t.width)/2+n(t.linkOffset),e.target.y]}):Z({source:[e.source.x+n(t.width)/2-n(t.linkOffset),e.source.y],target:[e.target.x-n(t.width)/2+n(t.linkOffset),e.target.y]}):e.target.x<=e.source.x?Q({source:[e.source.x,e.source.y],target:[e.target.x,e.target.y]}):Z({source:[e.source.x,e.source.y],target:[e.target.x,e.target.y]})}function be(e){return`stroke-#8885`}function xe(e){let n=.4,r=d(),i=d(window.innerWidth),c=d(window.innerHeight),l=a(new Map),u=a(new Set),p=d(!0),m=a(new Map),h=t([]),g=t([]),_=a(new Map),v=a(new Map),y=s(()=>{let t=new Map;for(let n of e.modules.value)t.set(n.id,n);return t}),{control:b}=f(),{scale:x,zoomIn:S,zoomOut:C}=ve(r,{wheel:b,minScale:n,maxScale:2});function w(e,t=!0){l.get(e)?.scrollIntoView({block:`center`,inline:`center`,behavior:t?`smooth`:`instant`})}let T=e.generateGraph({isFirstCalculateGraph:p,hierarchy:D,tree:z,nodesRefMap:l,container:r,modulesMap:y,nodes:h,links:g,scale:x,nodesMap:_,linksMap:v,width:i,height:c,childToParentMap:m,focusOn:w,collapsedNodes:u,spacing:e.spacing});o(X,{spacing:e.spacing,calculateGraph:T,isFirstCalculateGraph:p,container:r,width:i,height:c,scale:x,nodes:h,links:g,nodesRefMap:l,collapsedNodes:u,childToParentMap:m,ZOOM_MIN:n,ZOOM_MAX:2,zoomIn:S,zoomOut:C})}function $(){return i(X)}function Se(t){let{nodesRefMap:r,container:a,calculateGraph:o,collapsedNodes:s}=i(X),c=d(!1);function l(t,n){e(()=>{e(()=>{let e=r.get(t);if(e&&n&&a.value){let t=a.value.getBoundingClientRect(),r=e.getBoundingClientRect(),i=r.left-t.left-n.x,o=r.top-t.top-n.y;a.value.scrollLeft+=i,a.value.scrollTop+=o}})})}function u(e){if(c.value)return;c.value=!0;let t=r.get(e),n=null;if(t&&a.value){let e=a.value.getBoundingClientRect(),r=t.getBoundingClientRect();n={x:r.left-e.left,y:r.top-e.top}}s.has(e)?s.delete(e):s.add(e),o(),n&&l(e,n),c.value=!1}function f(){c.value||(c.value=!0,s.clear(),o(),setTimeout(()=>{c.value=!1},300))}function p(){c.value||(c.value=!0,n(t.modules).forEach(e=>{e.imports.length>0&&s.add(e.id)}),o(),setTimeout(()=>{c.value=!1},300))}return{isGraphNodeToggling:c,toggleNode:u,expandAll:f,collapseAll:p}}function Ce(){let{scale:e,zoomIn:t,zoomOut:n,ZOOM_MIN:r,ZOOM_MAX:a}=i(X);return p([`-`,`_`],e=>{e.ctrlKey&&n()}),p([`=`,`+`],e=>{e.ctrlKey&&t()}),{ZOOM_MIN:r,ZOOM_MAX:a,scale:e,zoomIn:t,zoomOut:n}}function we(){let{container:e}=i(X),t=d(!1),n=0,r=0;function a(){m(e,`mousedown`,i=>{let a=e.value.getBoundingClientRect(),o=a.right-i.clientX,s=a.bottom-i.clientY;o<=20||s<=20||(t.value=!0,n=e.value.scrollLeft+i.pageX,r=e.value.scrollTop+i.pageY)}),m(e,`contextmenu`,e=>e.preventDefault()),m(`mouseleave`,()=>t.value=!1),m(`mouseup`,()=>t.value=!1),m(`mousemove`,i=>{t.value&&(i.preventDefault(),e.value.scrollLeft=n-i.pageX,e.value.scrollTop=r-i.pageY)})}return{init:a,isGrabbing:t}}var Te={},Ee={type:`button`,"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Close`,"aria-label":`Close`};function De(e,t){return c(),l(`button`,Ee,[...t[0]||=[u(`div`,{"i-ph-x":``},null,-1)]])}var Oe=h(Te,[[`render`,De]]);export{we as a,Se as c,be as i,xe as n,Ce as o,ye as r,$ as s,Oe as t};
1
+ import{B as e,Ct as t,Et as n,L as r,Ot as i,St as a,Y as o,b as s,q as c,w as l,x as u,xt as d}from"./C--RKQDq.js";import{f,s as p,u as m}from"./BE1TLHgg.js";import{t as h}from"./BUwCbG2W.js";function g(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function _(){return this.eachAfter(g)}function v(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function y(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function b(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function x(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function S(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function C(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function w(e){for(var t=this,n=T(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function T(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function ee(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function te(){return Array.from(this)}function ne(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function E(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*re(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function D(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=A)):t===void 0&&(t=k);for(var n=new N(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new N(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(M)}function O(){return D(this).eachBefore(j)}function k(e){return e.children}function A(e){return Array.isArray(e)?e[1]:null}function j(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function M(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function N(e){this.data=e,this.depth=this.height=0,this.parent=null}N.prototype=D.prototype={constructor:N,count:_,each:v,eachAfter:b,eachBefore:y,find:x,sum:S,sort:C,path:w,ancestors:ee,descendants:te,leaves:ne,links:E,copy:O,[Symbol.iterator]:re};function P(e,t){return e.parent===t.parent?1:2}function F(e){var t=e.children;return t?t[0]:e.t}function I(e){var t=e.children;return t?t[t.length-1]:e.t}function ie(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function ae(e){for(var t=0,n=0,r=e.children,i=r.length,a;--i>=0;)a=r[i],a.z+=t,a.m+=t,t+=a.s+(n+=a.c)}function oe(e,t,n){return e.a.parent===t.parent?e.a:n}function L(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}L.prototype=Object.create(N.prototype);function R(e){for(var t=new L(e,0),n,r=[t],i,a,o,s;n=r.pop();)if(a=n._.children)for(n.children=Array(s=a.length),o=s-1;o>=0;--o)r.push(i=n.children[o]=new L(a[o],o)),i.parent=n;return(t.parent=new L(null,0)).children=[t],t}function z(){var e=P,t=1,n=1,r=null;function i(i){var s=R(i);if(s.eachAfter(a),s.parent.m=-s.z,s.eachBefore(o),r)i.eachBefore(c);else{var l=i,u=i,d=i;i.eachBefore(function(e){e.x<l.x&&(l=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)});var f=l===u?1:e(l,u)/2,p=f-l.x,m=t/(u.x+f+p),h=n/(d.depth||1);i.eachBefore(function(e){e.x=(e.x+p)*m,e.y=e.depth*h})}return i}function a(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){ae(t);var a=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+e(t._,i._));t.parent.A=s(t,i,t.parent.A||r[0])}function o(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(t,n,r){if(n){for(var i=t,a=t,o=n,s=i.parent.children[0],c=i.m,l=a.m,u=o.m,d=s.m,f;o=I(o),i=F(i),o&&i;)s=F(s),a=I(a),a.a=t,f=o.z+u-i.z-c+e(o._,i._),f>0&&(ie(oe(o,t,r),t,f),c+=f,l+=f),u+=o.m,c+=i.m,d+=s.m,l+=a.m;o&&!I(a)&&(a.t=o,a.m+=u-l),i&&!F(s)&&(s.t=i,s.m+=c-d,r=t)}return r}function c(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}function B(e){return function(){return e}}var V=Math.PI,H=2*V,U=1e-6,W=H-U;function G(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function K(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return G;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var q=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?G:K(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>U)if(!(Math.abs(u*s-c*l)>U)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((V-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>U&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>U||Math.abs(this._y1-l)>U)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%H+H),d>W?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>U&&this._append`A${n},${n},0,${+(d>=V)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function se(){return new q}se.prototype=q.prototype;function ce(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new q(t)}var le=Array.prototype.slice;function ue(e){return e[0]}function de(e){return e[1]}var J=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function fe(e){return new J(e,!0)}function pe(e){return new J(e,!1)}function me(e){return e.source}function he(e){return e.target}function Y(e){let t=me,n=he,r=ue,i=de,a=null,o=null,s=ce(c);function c(){let c,l=le.call(arguments),u=t.apply(this,l),d=n.apply(this,l);if(a??(o=e(c=s())),o.lineStart(),l[0]=u,o.point(+r.apply(this,l),+i.apply(this,l)),l[0]=d,o.point(+r.apply(this,l),+i.apply(this,l)),o.lineEnd(),c)return o=null,c+``||null}return c.source=function(e){return arguments.length?(t=e,c):t},c.target=function(e){return arguments.length?(n=e,c):n},c.x=function(e){return arguments.length?(r=typeof e==`function`?e:B(+e),c):r},c.y=function(e){return arguments.length?(i=typeof e==`function`?e:B(+e),c):i},c.context=function(t){return arguments.length?(t==null?a=o=null:o=e(a=t),c):a},c}function ge(){return Y(fe)}function _e(){return Y(pe)}function ve(e,{wheel:t=!0,minScale:r=.5,maxScale:i=2}={}){let a=d(1);function o(t,o,s){let c=n(e);if(!c)return;let{left:l,top:u,width:d,height:f}=c.getBoundingClientRect(),p=o??l+d/2,m=s??u+f/2,h=p-l,g=m-u,_=a.value;a.value=Math.max(r,Math.min(i,_+t));let v=a.value/_;c.scrollLeft=(c.scrollLeft+h)*v-h,c.scrollTop=(c.scrollTop+g)*v-g}function s(e){if(n(t)){e.preventDefault();let t=.2;o(e.deltaY<0?t:t*-1,e.clientX,e.clientY)}else e.ctrlKey&&(e.preventDefault(),o(e.deltaY*.004*-1,e.clientX,e.clientY))}function c(e=.2){o(e)}function l(e=.2){o(e*-1)}return m(e,`wheel`,s),{scale:a,zoom:o,zoomIn:c,zoomOut:l}}var X=Symbol.for(`ViteDevToolsModuleGraphState`),Z=ge().x(e=>e[0]).y(e=>e[1]),Q=_e().x(e=>e[0]).y(e=>e[1]);function ye(e,t){return!e.target||!e.source?null:t?e.target.x<=e.source.x?Q({source:[e.source.x+i(t.width)/2-i(t.linkOffset),e.source.y],target:[e.target.x-i(t.width)/2+i(t.linkOffset),e.target.y]}):Z({source:[e.source.x+i(t.width)/2-i(t.linkOffset),e.source.y],target:[e.target.x-i(t.width)/2+i(t.linkOffset),e.target.y]}):e.target.x<=e.source.x?Q({source:[e.source.x,e.source.y],target:[e.target.x,e.target.y]}):Z({source:[e.source.x,e.source.y],target:[e.target.x,e.target.y]})}function be(e){return`stroke-#8885`}function xe(e){let n=.4,r=d(),i=d(window.innerWidth),c=d(window.innerHeight),l=a(new Map),u=a(new Set),p=d(!0),m=a(new Map),h=t([]),g=t([]),_=a(new Map),v=a(new Map),y=s(()=>{let t=new Map;for(let n of e.modules.value)t.set(n.id,n);return t}),{control:b}=f(),{scale:x,zoomIn:S,zoomOut:C}=ve(r,{wheel:b,minScale:n,maxScale:2});function w(e,t=!0){l.get(e)?.scrollIntoView({block:`center`,inline:`center`,behavior:t?`smooth`:`instant`})}let T=e.generateGraph({isFirstCalculateGraph:p,hierarchy:D,tree:z,nodesRefMap:l,container:r,modulesMap:y,nodes:h,links:g,scale:x,nodesMap:_,linksMap:v,width:i,height:c,childToParentMap:m,focusOn:w,collapsedNodes:u,spacing:e.spacing});o(X,{spacing:e.spacing,calculateGraph:T,isFirstCalculateGraph:p,container:r,width:i,height:c,scale:x,nodes:h,links:g,nodesRefMap:l,collapsedNodes:u,childToParentMap:m,ZOOM_MIN:n,ZOOM_MAX:2,zoomIn:S,zoomOut:C})}function $(){return r(X)}function Se(t){let{nodesRefMap:n,container:a,calculateGraph:o,collapsedNodes:s}=r(X),c=d(!1);function l(t,r){e(()=>{e(()=>{let e=n.get(t);if(e&&r&&a.value){let t=a.value.getBoundingClientRect(),n=e.getBoundingClientRect(),i=n.left-t.left-r.x,o=n.top-t.top-r.y;a.value.scrollLeft+=i,a.value.scrollTop+=o}})})}function u(e){if(c.value)return;c.value=!0;let t=n.get(e),r=null;if(t&&a.value){let e=a.value.getBoundingClientRect(),n=t.getBoundingClientRect();r={x:n.left-e.left,y:n.top-e.top}}s.has(e)?s.delete(e):s.add(e),o(),r&&l(e,r),c.value=!1}function f(){c.value||(c.value=!0,s.clear(),o(),setTimeout(()=>{c.value=!1},300))}function p(){c.value||(c.value=!0,i(t.modules).forEach(e=>{e.imports.length>0&&s.add(e.id)}),o(),setTimeout(()=>{c.value=!1},300))}return{isGraphNodeToggling:c,toggleNode:u,expandAll:f,collapseAll:p}}function Ce(){let{scale:e,zoomIn:t,zoomOut:n,ZOOM_MIN:i,ZOOM_MAX:a}=r(X);return p([`-`,`_`],e=>{e.ctrlKey&&n()}),p([`=`,`+`],e=>{e.ctrlKey&&t()}),{ZOOM_MIN:i,ZOOM_MAX:a,scale:e,zoomIn:t,zoomOut:n}}function we(){let{container:e}=r(X),t=d(!1),n=0,i=0;function a(){m(e,`mousedown`,r=>{let a=e.value.getBoundingClientRect(),o=a.right-r.clientX,s=a.bottom-r.clientY;o<=20||s<=20||(t.value=!0,n=e.value.scrollLeft+r.pageX,i=e.value.scrollTop+r.pageY)}),m(e,`contextmenu`,e=>e.preventDefault()),m(`mouseleave`,()=>t.value=!1),m(`mouseup`,()=>t.value=!1),m(`mousemove`,r=>{t.value&&(r.preventDefault(),e.value.scrollLeft=n-r.pageX,e.value.scrollTop=i-r.pageY)})}return{init:a,isGrabbing:t}}var Te={},Ee={type:`button`,"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Close`,"aria-label":`Close`};function De(e,t){return c(),l(`button`,Ee,[...t[0]||=[u(`div`,{"i-ph-x":``},null,-1)]])}var Oe=h(Te,[[`render`,De]]);export{we as a,Se as c,be as i,xe as n,Ce as o,ye as r,$ as s,Oe as t};
@@ -0,0 +1 @@
1
+ import{r as e}from"./D7YBGhmX.js";import{A as t,C as n,Kt as r,M as i,Ot as a,S as o,Wt as s,Z as c,at as l,b as u,et as d,h as f,k as p,lt as m,ot as h,q as g,qt as _,st as v,ut as y,w as b,x,xt as S,yt as C}from"./C--RKQDq.js";import{C as w,w as T}from"./B2NMBmj_.js";import{c as E,g as D,p as ee}from"./BE1TLHgg.js";import{n as O}from"#entry";import{t as k}from"./jJY8e3xp.js";import{r as A}from"./CqfNwh25.js";import{n as j}from"./XfS7e3PM.js";import{r as M,t as N}from"./BYXvfkhc.js";import{n as te,r as P,t as F}from"./-w-An_zz.js";import{a as I,c as L,i as R,n as z,o as B,r as ne,t as re}from"./COiP6LWy.js";import{t as V}from"./DCcvbzkD.js";import{t as H}from"./D2AP-caS.js";var U={flex:`~ gap-1`},W={"overflow-hidden":``,"text-ellipsis":``,"break-all":``,"line-clamp-2":``},G={op50:``},K=Object.assign(i({__name:`ListItem`,props:{asset:{}},setup(e){return(n,r)=>{let i=j,a=k;return g(),o(a,{to:{query:{asset:e.asset.filename}},"w-full":``,"font-mono":``,border:`~ rounded base`,px2:``,py1:``,"text-sm":``,hover:`bg-active`},{default:m(()=>[x(`div`,U,[t(i,{filename:e.asset.filename},null,8,[`filename`]),x(`span`,W,[p(_(e.asset.filename)+` `,1),x(`span`,G,` (`+_(e.asset.chunk?.name?.replace(/[\[\]]/g,``))+`) `,1)])])]),_:1},8,[`to`])}}}),{__name:`AssetsListItem`}),q={p4:``},J={flex:``,pb2:``},Y=Object.assign(i({__name:`List`,props:{assets:{}},setup(e){return(n,r)=>{let i=K;return g(),b(`div`,q,[t(F,{items:e.assets,"key-prop":`filename`},{default:m(({item:e})=>[x(`div`,J,[t(i,{asset:e},null,8,[`asset`])])]),_:1},8,[`items`])])}}}),{__name:`AssetsList`}),X={flex:`~ gap-2`,p4:``},Z={op50:``},ie=Object.assign(i({__name:`Folder`,props:{assets:{},session:{}},setup(e){let t=e,r=u(()=>{let e=[];return t.assets.forEach(t=>{e.push({full:t.filename,path:t.filename})}),A(e,`Project`)}),i=u(()=>new Map(t.assets.map(e=>[e.filename,e])));return(t,a)=>{let s=V;return g(),b(`div`,X,[e.assets?.length?(g(),o(s,{key:0,"flex-1":``,node:r.value,icon:`i-catppuccin:folder-dist catppuccin`,"icon-open":`i-catppuccin:folder-dist-open catppuccin`,link:!0,"link-query-key":`asset`},{extra:m(({node:e})=>[x(`span`,Z,` (`+_(i.value.get(e.full)?.chunk?.name?.replace(/[\[\]]/g,``))+`) `,1)]),_:1},8,[`node`])):n(``,!0)])}}}),{__name:`AssetsFolder`}),Q={grid:`~ cols-[max-content_1fr] gap-2`,p4:``},ae={flex:`~ col gap-4`},oe={key:0,grid:`~ cols-[250px_1fr] gap-1`},se=[`onClick`],ce={key:0,"text-primary":``},le={key:1},ue=[`onClick`],de=[`title`],fe=Object.assign(i({__name:`Sunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(e,{emit:i}){let o=e,s=i,u=l(`el`);return v(()=>u.value?.append(o.graph.el)),(i,o)=>{let l=z,m=M,h=d(`tooltip`);return g(),b(`div`,Q,[x(`div`,{ref_key:`el`,ref:u,"w-500px":``},null,512),x(`div`,ae,[t(l,{border:`b base`,py2:``,selected:e.selected,options:e.graph.options,onSelect:o[0]||=e=>s(`select`,e)},null,8,[`selected`,`options`]),e.selected?(g(),b(`div`,oe,[(g(!0),b(f,null,c(e.selected.children,i=>(g(),b(f,{key:i.id},[x(`button`,{"ws-nowrap":``,"text-nowrap":``,"text-left":``,"overflow-hidden":``,"text-ellipsis":``,"text-sm":``,hover:`bg-active`,rounded:``,px2:``,onClick:e=>s(`select`,i)},[i.meta&&i.meta===e.selected?.meta?(g(),b(`span`,ce,`(self)`)):(g(),b(`span`,le,_(i.id),1))],8,se),x(`button`,{relative:``,flex:`~ gap-1 items-center`,hover:`bg-active`,rounded:``,onClick:e=>s(`select`,i)},[x(`div`,{"h-5":``,rounded:``,shadow:``,border:`~ base`,style:r({background:a(B)(e.graph.options.getColor?.(i)||`#000`),width:`${i.size/e.selected.size*100}%`})},null,4),t(m,{"text-xs":``,bytes:i.size,total:e.selected.size,"percent-ratio":3},null,8,[`bytes`,`total`]),i.children.length>0?y((g(),b(`div`,{key:0,title:`${i.children.length} dependencies`,"text-xs":``,"op-fade":``},[p(` (`+_(i.children.length)+`) `,1)],8,de)),[[h,`${i.children.length} dependencies`]]):n(``,!0)],8,ue)],64))),128))])):n(``,!0)])])}}}),{__name:`AssetsSunburst`}),pe=Object.assign(i({__name:`Flamegraph`,props:{graph:{}},setup(e){let t=e,n=l(`el`);return v(()=>n.value?.append(t.graph.el)),(e,t)=>(g(),b(`div`,{ref_key:`el`,ref:n},null,512))}}),{__name:`AssetsFlamegraph`}),$={key:1,relative:``},me={sticky:``,"left-4":``,"right-4":``,"top-4":``,"z-panel-nav":``,"p-4":``},he={flex:`~ wrap gap-2 items-center`,p2:``,border:`t base`},ge=[`onClick`],_e={fixed:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},ve={op50:``},ye={key:0,"bg-glass":``,border:`~ base rounded`,p2:``,"text-sm":``,flex:`~ col gap-2`},be={flex:`~ gap-1 items-center`},xe={flex:`~ gap-1 items-center`},Se=i({__name:`assets`,props:{session:{}},setup(r){let i=r,l=C(ee()),d=S({search:``}),v=T(),y=w(),k=[{label:`List`,value:`list`,icon:`i-ph-list-duotone`},{label:`Folder`,value:`folder`,icon:`i-ph-folder-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`}],A=e(),{state:j,isLoading:F}=E(async()=>await A.value.call(`vite:rolldown:get-assets-list`,{session:i.session.id}),null),B=D(()=>j.value,()=>new P(j.value,{includeScore:!0,keys:[`filename`],ignoreLocation:!0,threshold:.4})),V=u(()=>d.value.search?B.value.search(d.value.search).map(e=>e.item):j.value);function U(e){N.value.assetViewType=e}let{tree:W,chartOptions:G,graph:K,nodeHover:q,nodeSelected:J,selectedNode:X,selectNode:Z,buildGraph:Q}=re({data:V,nameKey:`filename`,sizeKey:`size`,rootText:`Project`,nodeType:`file`,graphOptions:{onClick(e){e&&(q.value=e),e.meta?.type===`file`&&(X.value=e.meta,v.replace({query:{asset:e.meta.filename}}))},onHover(e){e&&!y.query.asset&&(q.value=e),e===null&&(q.value=void 0)},onLeave(){q.value=void 0},onSelect(e){J.value=e||W.value.root,X.value=e?.meta}},onUpdate(){switch(N.value.assetViewType){case`sunburst`:K.value=new R(W.value.root,G.value);break;case`treemap`:K.value=new I(W.value.root,{...G.value,selectedPaddingRatio:0});break;default:K.value=new ne(W.value.root,G.value)}}});return h(()=>N.value.assetViewType,()=>{Q()}),(e,i)=>{let u=O,h=te,v=Y,y=ie,S=z,C=fe,w=pe,T=M,E=L;return a(F)?(g(),o(u,{key:0})):(g(),b(`div`,$,[x(`div`,me,[t(h,{modelValue:d.value,"onUpdate:modelValue":i[0]||=e=>d.value=e,rules:[]},{default:m(()=>[x(`div`,he,[i[3]||=x(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(g(),b(f,null,c(k,e=>x(`button`,{key:e.value,"btn-action":``,class:s(a(N).assetViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>U(e.value)},[x(`div`,{class:s(e.icon)},null,2),p(` `+_(e.label),1)],10,ge)),64))])]),_:1},8,[`modelValue`])]),a(N).assetViewType===`list`?(g(),b(f,{key:0},[V.value?.length?(g(),o(v,{key:0,assets:V.value,session:r.session},null,8,[`assets`,`session`])):n(``,!0),x(`div`,_e,[x(`span`,ve,_(V.value.length)+` of `+_(a(j)?.length||0),1)])],64)):a(N).assetViewType===`folder`?(g(),b(f,{key:1},[V.value?.length?(g(),o(y,{key:0,assets:V.value,session:r.session},null,8,[`assets`,`session`])):n(``,!0)],64)):a(N).assetViewType===`treemap`?(g(),b(f,{key:2},[a(K)?(g(),o(H,{key:0,graph:a(K),selected:a(J),onSelect:i[1]||=e=>a(Z)(e)},{default:m(({selected:e,options:n,onSelect:r})=>[t(S,{border:`b base`,py2:``,"min-h-10":``,selected:e,options:n,onSelect:r},null,8,[`selected`,`options`,`onSelect`])]),_:1},8,[`graph`,`selected`])):n(``,!0)],64)):a(N).assetViewType===`sunburst`?(g(),b(f,{key:3},[a(K)?(g(),o(C,{key:0,graph:a(K),selected:a(J),onSelect:i[2]||=e=>a(Z)(e)},null,8,[`graph`,`selected`])):n(``,!0)],64)):a(N).assetViewType===`flamegraph`?(g(),b(f,{key:4},[a(K)?(g(),o(w,{key:0,graph:a(K)},null,8,[`graph`])):n(``,!0)],64)):n(``,!0),t(E,{"hover-x":l.x,"hover-y":l.y},{default:m(()=>[a(q)?.meta?(g(),b(`div`,ye,[x(`div`,be,_(a(q).text),1),x(`div`,xe,[t(T,{bytes:a(q).size,percent:!1},null,8,[`bytes`])])])):n(``,!0)]),_:1},8,[`hover-x`,`hover-y`])]))}}});export{Se as default};
@@ -1 +1 @@
1
- import{F as e,M as t,Ut as n,b as r,q as i,w as a}from"./CRfXUi3G.js";import{s as o,t as s}from"./5SREwa_J.js";var c=[`title`],l=Object.assign(t({__name:`FileIcon`,props:{filename:{}},setup(e){let t=e,s=r(()=>o(t.filename));return(e,t)=>(i(),a(`div`,{"flex-none":``,"icon-catppuccin":``,title:s.value.description||s.value.name,class:n([s.value.icon])},null,10,c))}}),{__name:`DisplayFileIcon`}),u=t({name:`HighlightedPath`,props:{path:{type:String,required:!0},minimal:{type:Boolean,default:!1}},setup(t){return()=>{let n=t.path.split(/([?/&:=])/g),r=`path`,i=n.map(()=>[]),a=n.map(()=>[]),o=n.map(t=>e(`span`,{class:``},t)),c=new Set;return n.forEach((e,l)=>{if(e===`?`&&(r=`query`),r===`path`){if(/^\.+$/.test(e)||e===`/`?i[l]?.push(`op50`):(e===`node_modules`||e===`dist`||e===`lib`||/^\.\w/.test(e))&&i[l]?.push(`op60`),e===`node_modules`&&t.minimal)for(let e=0;e<l+2;e++)c.add(e);if(e===`.pnpm`&&(o[l]&&(o[l].children=`~`,i[l]?.push(`op25!`),i[l-1]?.push(`op25!`)),c.add(l+1),c.add(l+2),i[l+3]?.push(`op25!`),o[l+4]?.children===`node_modules`&&(c.add(l+3),c.add(l+4),i[l+5]?.push(`op25!`))),e===`:`&&(o[l-1]&&a[l-1]?.push(`color: ${s(n[l-1])}`),i[l]?.push(`op50`)),n[l-2]===`node_modules`&&!e.startsWith(`.`)){let t=`color: ${s(n[l])}`;a[l]?.push(t),e.startsWith(`@`)&&(a[l+1]?.push(t),a[l+2]?.push(t))}}r===`query`&&(e===`?`?i[l]?.push(`text-red-500 dark:text-red-400`):e===`&`&&i[l]?.push(`text-orange-500 dark:text-orange-400`),e===`=`?i[l]?.push(`text-orange-900 dark:text-orange-200 op50`):n[l+1]===`=`?i[l]?.push(`text-amber-900 dark:text-amber-200`):i[l]?.push(`text-orange-900 dark:text-orange-200`))}),o.forEach((e,t)=>{e.props&&(e.props.class=i[t]?.join(` `)??``,e.props.style=a[t]?.join(`;`)??``)}),Array.from(c).sort((e,t)=>t-e).forEach(e=>{o.splice(e,1)}),o}}});export{l as n,u as t};
1
+ import{F as e,M as t,Wt as n,b as r,q as i,w as a}from"./C--RKQDq.js";import{s as o,t as s}from"./CnkQlf-T.js";var c=[`title`],l=Object.assign(t({__name:`FileIcon`,props:{filename:{}},setup(e){let t=e,s=r(()=>o(t.filename));return(e,t)=>(i(),a(`div`,{"flex-none":``,"icon-catppuccin":``,title:s.value.description||s.value.name,class:n([s.value.icon])},null,10,c))}}),{__name:`DisplayFileIcon`}),u=t({name:`HighlightedPath`,props:{path:{type:String,required:!0},minimal:{type:Boolean,default:!1}},setup(t){return()=>{let n=t.path.split(/([?/&:=])/g),r=`path`,i=n.map(()=>[]),a=n.map(()=>[]),o=n.map(t=>e(`span`,{class:``},t)),c=new Set;return n.forEach((e,l)=>{if(e===`?`&&(r=`query`),r===`path`){if(/^\.+$/.test(e)||e===`/`?i[l]?.push(`op50`):(e===`node_modules`||e===`dist`||e===`lib`||/^\.\w/.test(e))&&i[l]?.push(`op60`),e===`node_modules`&&t.minimal)for(let e=0;e<l+2;e++)c.add(e);if(e===`.pnpm`&&(o[l]&&(o[l].children=`~`,i[l]?.push(`op25!`),i[l-1]?.push(`op25!`)),c.add(l+1),c.add(l+2),i[l+3]?.push(`op25!`),o[l+4]?.children===`node_modules`&&(c.add(l+3),c.add(l+4),i[l+5]?.push(`op25!`))),e===`:`&&(o[l-1]&&a[l-1]?.push(`color: ${s(n[l-1])}`),i[l]?.push(`op50`)),n[l-2]===`node_modules`&&!e.startsWith(`.`)){let t=`color: ${s(n[l])}`;a[l]?.push(t),e.startsWith(`@`)&&(a[l+1]?.push(t),a[l+2]?.push(t))}}r===`query`&&(e===`?`?i[l]?.push(`text-red-500 dark:text-red-400`):e===`&`&&i[l]?.push(`text-orange-500 dark:text-orange-400`),e===`=`?i[l]?.push(`text-orange-900 dark:text-orange-200 op50`):n[l+1]===`=`?i[l]?.push(`text-amber-900 dark:text-amber-200`):i[l]?.push(`text-orange-900 dark:text-orange-200`))}),o.forEach((e,t)=>{e.props&&(e.props.class=i[t]?.join(` `)??``,e.props.style=a[t]?.join(`;`)??``)}),Array.from(c).sort((e,t)=>t-e).forEach(e=>{o.splice(e,1)}),o}}});export{l as n,u as t};
@@ -1 +1 @@
1
- {"id":"325e31f5-a39f-4526-a997-a203cd2d5c81","timestamp":1776824254629}
1
+ {"id":"491cb882-8fb8-455f-9f0c-7ab7cf8e8aa1","timestamp":1777537254793}
@@ -0,0 +1 @@
1
+ {"id":"491cb882-8fb8-455f-9f0c-7ab7cf8e8aa1","timestamp":1777537254793,"prerendered":[]}