@vitejs/devtools-vite 0.0.0-alpha.14 → 0.0.0-alpha.15

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 (50) hide show
  1. package/dist/dirs.mjs +3 -0
  2. package/dist/{index.js → index.mjs} +1 -1
  3. package/dist/nitro.json +1 -1
  4. package/dist/public/200.html +1 -1
  5. package/dist/public/404.html +1 -1
  6. package/dist/public/_nuxt/{DQcokXty.js → B3PiPV-x.js} +1 -1
  7. package/dist/public/_nuxt/{h9JT8fy9.js → B7TCfKhI.js} +1 -1
  8. package/dist/public/_nuxt/{DtEEoUTs.js → BACoQHB-.js} +1 -1
  9. package/dist/public/_nuxt/{Dw84mysi.js → BG9Ykbq7.js} +1 -1
  10. package/dist/public/_nuxt/{DRSBujEZ.js → BJv7hFBm.js} +1 -1
  11. package/dist/public/_nuxt/{CRMDyaSt.js → BSbpramE.js} +1 -1
  12. package/dist/public/_nuxt/{CS8yIZOI.js → BjxvvmqH.js} +1 -1
  13. package/dist/public/_nuxt/{DllKqWLf.js → BkUn9yPG.js} +1 -1
  14. package/dist/public/_nuxt/{DBzHDCAH.js → BnFT81HV.js} +1 -1
  15. package/dist/public/_nuxt/{axTMqr-M.js → C-xw4DlO.js} +3 -3
  16. package/dist/public/_nuxt/{BHDQl9sm.js → CDULFaBv.js} +1 -1
  17. package/dist/public/_nuxt/{3WaMGJ3H.js → COkVMxfk.js} +1 -1
  18. package/dist/public/_nuxt/{CPuYr29B.js → CVmdkwE8.js} +1 -1
  19. package/dist/public/_nuxt/{CoZKVL3r.js → CZMM-nMb.js} +1 -1
  20. package/dist/public/_nuxt/{C5uSI1no.js → CsYy4mNk.js} +1 -1
  21. package/dist/public/_nuxt/{S09qVi2A.js → CzgA83N_.js} +1 -1
  22. package/dist/public/_nuxt/{DwpaAMLk.js → D2L83EJo.js} +1 -1
  23. package/dist/public/_nuxt/{bnZrYLT3.js → DDPo8H3W.js} +1 -1
  24. package/dist/public/_nuxt/{C4x1Rf0J.js → DD_wBK9r.js} +1 -1
  25. package/dist/public/_nuxt/{Dt9_rxzk.js → DH-eUyNP.js} +1 -1
  26. package/dist/public/_nuxt/{BGNXffQn.js → DMaeA1tb.js} +1 -1
  27. package/dist/public/_nuxt/{Ar1wOxvv.js → Dd6GGSHe.js} +1 -1
  28. package/dist/public/_nuxt/{l2P7b8gw.js → DdbSxsRv.js} +1 -1
  29. package/dist/public/_nuxt/{DEpkwN8C.js → DhdUZbRv.js} +1 -1
  30. package/dist/public/_nuxt/{k3tsOkpc.js → DlbkLyV4.js} +1 -1
  31. package/dist/public/_nuxt/{BsAtFXkB.js → DndCUz9L.js} +1 -1
  32. package/dist/public/_nuxt/{Db5DS6RJ.js → Dnw1sKCY.js} +1 -1
  33. package/dist/public/_nuxt/{DO0Faz7t.js → Dp55yonU.js} +1 -1
  34. package/dist/public/_nuxt/{C1B7Lb_i.js → HV-uTnTx.js} +1 -1
  35. package/dist/public/_nuxt/{BV5XWpFM.js → V3kdlpoV.js} +1 -1
  36. package/dist/public/_nuxt/{DoatHFDF.js → ZcrIAmbb.js} +1 -1
  37. package/dist/public/_nuxt/builds/latest.json +1 -1
  38. package/dist/public/_nuxt/builds/meta/54fd6322-de06-49fe-8b5e-e12e2c95d98d.json +1 -0
  39. package/dist/public/_nuxt/{entry.Dl9mWyLy.css → entry.D-FSo8e5.css} +1 -1
  40. package/dist/public/_nuxt/{jnbX5wk_.js → fQmYF_tr.js} +1 -1
  41. package/dist/public/_nuxt/{D-16ZB3R.js → hkb_fnPj.js} +1 -1
  42. package/dist/public/_nuxt/{Cf0Ulfyt.js → idtszpPM.js} +1 -1
  43. package/dist/public/_nuxt/{CkP2VQQ5.js → jo347JsK.js} +1 -1
  44. package/dist/public/index.html +1 -1
  45. package/package.json +10 -10
  46. package/dist/dirs.js +0 -3
  47. package/dist/public/_nuxt/builds/meta/50731c7d-b8b6-4a10-81d8-8ebf715a1d47.json +0 -1
  48. /package/dist/{dirs-K_XnRVOr.js → dirs-BJbBdMIp.mjs} +0 -0
  49. /package/dist/{dirs.d.ts → dirs.d.mts} +0 -0
  50. /package/dist/{index.d.ts → index.d.mts} +0 -0
@@ -1 +1 @@
1
- import{G as e,Jt as t,Tt as n,Vt as r,W as i,_ as a,en as o,g as s,in as c,mt as l,ot as u,pt as d,st as f,ut as p}from"./axTMqr-M.js";import{t as m}from"./CkP2VQQ5.js";import{i as h,l as g,o as _}from"./Db5DS6RJ.js";import{t as v}from"./BsAtFXkB.js";import{t as y}from"./DO0Faz7t.js";import{t as b}from"./DRSBujEZ.js";import{t as x}from"./CEQkJ3Wx.js";import{n as S,t as C}from"./DJHNY-5T.js";var w={flex:`~ col gap-2`,p4:``},T={flex:``,pb2:``},E={"w-8":``,"text-right":``,"text-xs":``,op50:``},D={"overflow-hidden":``,"text-ellipsis":``,"break-all":``,"line-clamp-2":``},O=l({__name:`FlatList`,props:{plugins:{}},setup(e){let t=i();return(i,a)=>{let s=v,l=m,u=b;return n(),p(`div`,w,[d(u,{items:e.plugins,"key-prop":`plugin_id`},{default:r(({item:e})=>[f(`div`,T,[d(l,{to:{path:o(t).path,query:{plugin:e.plugin_id}},"font-mono":``,border:`~ rounded base`,"w-full":``,px2:``,py1:``,"text-sm":``,hover:`bg-active`,flex:`~ gap-4 items-center`},{default:r(()=>[f(`div`,E,` #`+c(e.plugin_id),1),f(`span`,D,[d(s,{name:e.name},null,8,[`name`])])]),_:2},1032,[`to`])])]),_:1},8,[`items`])])}}}),k=Object.assign(O,{__name:`PluginsFlatList`}),A={relative:``,"max-h-screen":``,"of-hidden":``},j={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},M={"of-auto":``,"h-screen":``,flex:`~ col gap-2`,pt32:``},N={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},P={op50:``},F=l({__name:`plugins`,props:{session:{}},setup(r){let o=r,l=i(),m=e(),v=t({search:l.query.search||``,selected:l.query.plugin_types?S(l.query.plugin_types):null}),b=u(()=>[..._.filter(e=>o.session?.meta?.plugins?.some(t=>e.match.test(t.name))),h]),w=u(()=>{let e=o.session?.meta?.plugins;return v.value.selected&&(e=e.filter(e=>{let t=g(e.name);return v.value.selected.includes(t.name)})),e}),T=s(()=>w.value,()=>new x(w.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),E=u(()=>v.value.search?T.value.search(v.value.search).map(e=>e.item):w.value);return a(v.value,e=>{let t={...l.query,search:e.search||void 0,plugin_types:e.selected||void 0};m.replace({query:C(t)})},{debounce:500}),(e,t)=>{let i=y,a=k;return n(),p(`div`,A,[f(`div`,j,[d(i,{modelValue:v.value,"onUpdate:modelValue":t[0]||=e=>v.value=e,rules:b.value},null,8,[`modelValue`,`rules`])]),f(`div`,M,[d(a,{plugins:E.value??[]},null,8,[`plugins`]),f(`div`,N,[f(`span`,P,c(E.value.length)+` of `+c(r.session?.meta?.plugins?.length||0),1)])])])}}});export{F as default};
1
+ import{G as e,Jt as t,Tt as n,Vt as r,W as i,_ as a,en as o,g as s,in as c,mt as l,ot as u,pt as d,st as f,ut as p}from"./C-xw4DlO.js";import{t as m}from"./jo347JsK.js";import{i as h,l as g,o as _}from"./Dnw1sKCY.js";import{t as v}from"./DndCUz9L.js";import{t as y}from"./Dp55yonU.js";import{t as b}from"./BJv7hFBm.js";import{t as x}from"./CEQkJ3Wx.js";import{n as S,t as C}from"./DJHNY-5T.js";var w={flex:`~ col gap-2`,p4:``},T={flex:``,pb2:``},E={"w-8":``,"text-right":``,"text-xs":``,op50:``},D={"overflow-hidden":``,"text-ellipsis":``,"break-all":``,"line-clamp-2":``},O=l({__name:`FlatList`,props:{plugins:{}},setup(e){let t=i();return(i,a)=>{let s=v,l=m,u=b;return n(),p(`div`,w,[d(u,{items:e.plugins,"key-prop":`plugin_id`},{default:r(({item:e})=>[f(`div`,T,[d(l,{to:{path:o(t).path,query:{plugin:e.plugin_id}},"font-mono":``,border:`~ rounded base`,"w-full":``,px2:``,py1:``,"text-sm":``,hover:`bg-active`,flex:`~ gap-4 items-center`},{default:r(()=>[f(`div`,E,` #`+c(e.plugin_id),1),f(`span`,D,[d(s,{name:e.name},null,8,[`name`])])]),_:2},1032,[`to`])])]),_:1},8,[`items`])])}}}),k=Object.assign(O,{__name:`PluginsFlatList`}),A={relative:``,"max-h-screen":``,"of-hidden":``},j={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},M={"of-auto":``,"h-screen":``,flex:`~ col gap-2`,pt32:``},N={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},P={op50:``},F=l({__name:`plugins`,props:{session:{}},setup(r){let o=r,l=i(),m=e(),v=t({search:l.query.search||``,selected:l.query.plugin_types?S(l.query.plugin_types):null}),b=u(()=>[..._.filter(e=>o.session?.meta?.plugins?.some(t=>e.match.test(t.name))),h]),w=u(()=>{let e=o.session?.meta?.plugins;return v.value.selected&&(e=e.filter(e=>{let t=g(e.name);return v.value.selected.includes(t.name)})),e}),T=s(()=>w.value,()=>new x(w.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),E=u(()=>v.value.search?T.value.search(v.value.search).map(e=>e.item):w.value);return a(v.value,e=>{let t={...l.query,search:e.search||void 0,plugin_types:e.selected||void 0};m.replace({query:C(t)})},{debounce:500}),(e,t)=>{let i=y,a=k;return n(),p(`div`,A,[f(`div`,j,[d(i,{modelValue:v.value,"onUpdate:modelValue":t[0]||=e=>v.value=e,rules:b.value},null,8,[`modelValue`,`rules`])]),f(`div`,M,[d(a,{plugins:E.value??[]},null,8,[`plugins`]),f(`div`,N,[f(`span`,P,c(E.value.length)+` of `+c(r.session?.meta?.plugins?.length||0),1)])])])}}});export{F as default};
@@ -1 +1 @@
1
- import{At as e,Tt as t,Vt as n,ct as r,in as i,mt as a,ot as o,st as s,tn as c,ut as l}from"./axTMqr-M.js";import{n as u}from"./DQtLZa7C.js";var d={"ml-0.4":``,"text-xs":``,op75:``},f=a({__name:`NumberWithUnit`,props:{number:{},unit:{}},setup(n){return(r,a)=>(t(),l(`div`,null,[e(r.$slots,`default`),s(`span`,null,i(n.number),1),s(`span`,d,i(n.unit),1)]))}}),p=Object.assign(f,{__name:`DisplayNumberWithUnit`}),m=a({__name:`Duration`,props:{duration:{},factor:{default:1},unit:{default:`ms`},color:{type:Boolean,default:!0}},setup(i){let a=i,s=o(()=>{if(a.duration!=null)return a.unit===`ns`?a.duration/1e3:a.duration});function l(e){return!a.color||e==null?``:(e*=a.factor,e<1?`op50`:e>1e4?`color-scale-critical`:e>1e3?`color-scale-high`:e>500?`color-scale-medium`:e>200?`color-scale-low`:`color-scale-neutral`)}let d=o(()=>u(s.value));return(i,a)=>{let o=p;return t(),r(o,{class:c(l(s.value)),number:d.value[0],unit:d.value[1]},{default:n(()=>[e(i.$slots,`default`)]),_:3},8,[`class`,`number`,`unit`])}}}),h=Object.assign(m,{__name:`DisplayDuration`});export{h as t};
1
+ import{At as e,Tt as t,Vt as n,ct as r,in as i,mt as a,ot as o,st as s,tn as c,ut as l}from"./C-xw4DlO.js";import{n as u}from"./DQtLZa7C.js";var d={"ml-0.4":``,"text-xs":``,op75:``},f=a({__name:`NumberWithUnit`,props:{number:{},unit:{}},setup(n){return(r,a)=>(t(),l(`div`,null,[e(r.$slots,`default`),s(`span`,null,i(n.number),1),s(`span`,d,i(n.unit),1)]))}}),p=Object.assign(f,{__name:`DisplayNumberWithUnit`}),m=a({__name:`Duration`,props:{duration:{},factor:{default:1},unit:{default:`ms`},color:{type:Boolean,default:!0}},setup(i){let a=i,s=o(()=>{if(a.duration!=null)return a.unit===`ns`?a.duration/1e3:a.duration});function l(e){return!a.color||e==null?``:(e*=a.factor,e<1?`op50`:e>1e4?`color-scale-critical`:e>1e3?`color-scale-high`:e>500?`color-scale-medium`:e>200?`color-scale-low`:`color-scale-neutral`)}let d=o(()=>u(s.value));return(i,a)=>{let o=p;return t(),r(o,{class:c(l(s.value)),number:d.value[0],unit:d.value[1]},{default:n(()=>[e(i.$slots,`default`)]),_:3},8,[`class`,`number`,`unit`])}}}),h=Object.assign(m,{__name:`DisplayDuration`});export{h as t};
@@ -1 +1 @@
1
- import{Tt as e,en as t,i as n,in as r,lt as i,mt as a,ut as o}from"./axTMqr-M.js";var s={key:0,"font-mono":``},c=a({__name:`Timestamp`,props:{timestamp:{}},setup(a){let c=a;return(l,u)=>a.timestamp?(e(),o(`span`,s,r(t(n)(new Date(c.timestamp))),1)):i(``,!0)}}),l=Object.assign(c,{__name:`DisplayTimestamp`});export{l as t};
1
+ import{Tt as e,en as t,i as n,in as r,lt as i,mt as a,ut as o}from"./C-xw4DlO.js";var s={key:0,"font-mono":``},c=a({__name:`Timestamp`,props:{timestamp:{}},setup(a){let c=a;return(l,u)=>a.timestamp?(e(),o(`span`,s,r(t(n)(new Date(c.timestamp))),1)):i(``,!0)}}),l=Object.assign(c,{__name:`DisplayTimestamp`});export{l as t};
@@ -1 +1 @@
1
- import{E as e,Tt as t,Vt as n,W as r,c as i,ct as a,en as o,in as s,it as c,kt as l,lt as u,mt as d,pt as f,st as p,ut as m,x as h,y as g}from"./axTMqr-M.js";import"./CkP2VQQ5.js";import"./Db5DS6RJ.js";import"./DQcokXty.js";import{r as _,t as v}from"./h9JT8fy9.js";import{t as y}from"./CPuYr29B.js";import{t as b}from"./BsAtFXkB.js";var x={key:0},S={key:2},C={op50:``},w={key:3},T=[`textContent`],E=[`textContent`],D=d({__name:`RawEventsTable`,props:{events:{},fields:{default:()=>[`event_id`,`action`,`module_id`,`plugin_name`,`timestamp`,`content`,`*`]},session:{}},setup(r){let i=r;function d(e,t){let n=new Set(t);return n.has(`content`)&&n.add(`content`),n.has(`plugin_name`)&&n.add(`plugin_index`),Object.fromEntries(Object.entries(e).filter(([e])=>!n.has(e)))}function h(e){return e.action===`HookLoadCallEnd`||e.action===`HookTransformCallStart`||e.action===`HookTransformCallEnd`?e.content:null}return(g,D)=>{let O=v,k=_,A=b,j=y;return t(),m(c,null,[r.events.length?u(``,!0):(t(),m(`div`,x,[...D[0]||=[p(`div`,{p5:``,italic:``},` No events found `,-1)]])),p(`table`,null,[p(`tbody`,null,[(t(!0),m(c,null,l(i.events,g=>(t(),m(`tr`,{key:g.event_id},[(t(!0),m(c,null,l(i.fields,i=>(t(),m(`td`,{key:i,px2:``},[i===`module_id`?(t(),a(O,{key:0,id:`module_id`in g?g.module_id:``,session:r.session},null,8,[`id`,`session`])):i===`action`?(t(),a(k,{key:1,text:g.action},null,8,[`text`])):i===`plugin_name`&&`plugin_name`in g?(t(),m(`div`,S,[f(A,{"font-mono":``,name:g.plugin_name},null,8,[`name`]),p(`code`,C,`#`+s(g.plugin_id),1)])):i===`event_id`?(t(),m(`div`,w,s(g.event_id),1)):i===`content`&&h(g)?(t(),a(o(e),{key:4},{popper:n(()=>[p(`pre`,{p1:``,"text-sm":``,textContent:s(h(g))},null,8,T)]),default:n(()=>[D[1]||=p(`div`,{"i-ph-code":``},null,-1)]),_:2},1024)):i===`timestamp`&&`timestamp`in g?(t(),a(j,{key:5,"text-sm":``,timestamp:g.timestamp},null,8,[`timestamp`])):i===`*`?(t(),m(`pre`,{key:6,"text-sm":``,textContent:s(d(g,r.fields))},null,8,E)):u(``,!0)]))),128))]))),128))])])],64)}}}),O=Object.assign(D,{__name:`DataRawEventsTable`}),k={key:1},A=d({__name:`raw`,props:{session:{}},setup(e){let n=e,s=g(),l=r().query,d=i(async()=>await s.value[`vite:rolldown:get-module-raw-events`]?.({session:n.session.id,module:l.module}),{events:[]});return(n,r)=>{let i=h,s=O;return t(),m(c,null,[o(d).isLoading?(t(),a(i,{key:0})):u(``,!0),p(`div`,null,[o(d).isReady?(t(),a(s,{key:0,events:o(d).state.value.events,session:e.session},null,8,[`events`,`session`])):(t(),m(`div`,k,[f(i)]))])],64)}}});export{A as default};
1
+ import{E as e,Tt as t,Vt as n,W as r,c as i,ct as a,en as o,in as s,it as c,kt as l,lt as u,mt as d,pt as f,st as p,ut as m,x as h,y as g}from"./C-xw4DlO.js";import"./jo347JsK.js";import"./Dnw1sKCY.js";import"./B3PiPV-x.js";import{r as _,t as v}from"./B7TCfKhI.js";import{t as y}from"./CVmdkwE8.js";import{t as b}from"./DndCUz9L.js";var x={key:0},S={key:2},C={op50:``},w={key:3},T=[`textContent`],E=[`textContent`],D=d({__name:`RawEventsTable`,props:{events:{},fields:{default:()=>[`event_id`,`action`,`module_id`,`plugin_name`,`timestamp`,`content`,`*`]},session:{}},setup(r){let i=r;function d(e,t){let n=new Set(t);return n.has(`content`)&&n.add(`content`),n.has(`plugin_name`)&&n.add(`plugin_index`),Object.fromEntries(Object.entries(e).filter(([e])=>!n.has(e)))}function h(e){return e.action===`HookLoadCallEnd`||e.action===`HookTransformCallStart`||e.action===`HookTransformCallEnd`?e.content:null}return(g,D)=>{let O=v,k=_,A=b,j=y;return t(),m(c,null,[r.events.length?u(``,!0):(t(),m(`div`,x,[...D[0]||=[p(`div`,{p5:``,italic:``},` No events found `,-1)]])),p(`table`,null,[p(`tbody`,null,[(t(!0),m(c,null,l(i.events,g=>(t(),m(`tr`,{key:g.event_id},[(t(!0),m(c,null,l(i.fields,i=>(t(),m(`td`,{key:i,px2:``},[i===`module_id`?(t(),a(O,{key:0,id:`module_id`in g?g.module_id:``,session:r.session},null,8,[`id`,`session`])):i===`action`?(t(),a(k,{key:1,text:g.action},null,8,[`text`])):i===`plugin_name`&&`plugin_name`in g?(t(),m(`div`,S,[f(A,{"font-mono":``,name:g.plugin_name},null,8,[`name`]),p(`code`,C,`#`+s(g.plugin_id),1)])):i===`event_id`?(t(),m(`div`,w,s(g.event_id),1)):i===`content`&&h(g)?(t(),a(o(e),{key:4},{popper:n(()=>[p(`pre`,{p1:``,"text-sm":``,textContent:s(h(g))},null,8,T)]),default:n(()=>[D[1]||=p(`div`,{"i-ph-code":``},null,-1)]),_:2},1024)):i===`timestamp`&&`timestamp`in g?(t(),a(j,{key:5,"text-sm":``,timestamp:g.timestamp},null,8,[`timestamp`])):i===`*`?(t(),m(`pre`,{key:6,"text-sm":``,textContent:s(d(g,r.fields))},null,8,E)):u(``,!0)]))),128))]))),128))])])],64)}}}),O=Object.assign(D,{__name:`DataRawEventsTable`}),k={key:1},A=d({__name:`raw`,props:{session:{}},setup(e){let n=e,s=g(),l=r().query,d=i(async()=>await s.value[`vite:rolldown:get-module-raw-events`]?.({session:n.session.id,module:l.module}),{events:[]});return(n,r)=>{let i=h,s=O;return t(),m(c,null,[o(d).isLoading?(t(),a(i,{key:0})):u(``,!0),p(`div`,null,[o(d).isReady?(t(),a(s,{key:0,events:o(d).state.value.events,session:e.session},null,8,[`events`,`session`])):(t(),m(`div`,k,[f(i)]))])],64)}}});export{A as default};
@@ -1 +1 @@
1
- import{u as e}from"./Db5DS6RJ.js";import{n as t}from"./h9JT8fy9.js";import{n,t as r}from"./DnpfwSMy.js";function i(e){let t=e.match(/.*\/node_modules\/(.*)$/)?.[1];if(t)return t}const a=e((e,a)=>{let o=e.replace(/%2F/g,`/`).replace(/\\/g,`/`);if(n(o)||o.match(/^\w+:/)&&!e.match(/^[a-z]:\\/i))return{moduleName:o,path:o};let s=r(o),c=i(o);if(s&&c)return{moduleName:s,path:c};try{let e=t(a,o);return!e.startsWith(`./`)&&!e.startsWith(`../`)&&(e=`./${e}`),e.startsWith(`./.nuxt/`)&&(e=`#build${e.slice(7)}`),{path:e}}catch{return{path:o}}});export{a as t};
1
+ import{u as e}from"./Dnw1sKCY.js";import{n as t}from"./B7TCfKhI.js";import{n,t as r}from"./DnpfwSMy.js";function i(e){let t=e.match(/.*\/node_modules\/(.*)$/)?.[1];if(t)return t}const a=e((e,a)=>{let o=e.replace(/%2F/g,`/`).replace(/\\/g,`/`);if(n(o)||o.match(/^\w+:/)&&!e.match(/^[a-z]:\\/i))return{moduleName:o,path:o};let s=r(o),c=i(o);if(s&&c)return{moduleName:s,path:c};try{let e=t(a,o);return!e.startsWith(`./`)&&!e.startsWith(`../`)&&(e=`./${e}`),e.startsWith(`./.nuxt/`)&&(e=`#build${e.slice(7)}`),{path:e}}catch{return{path:o}}});export{a as t};
@@ -1 +1 @@
1
- import{Tt as e,Vt as t,en as n,it as r,lt as i,mt as a,ot as o,pt as s,st as c,ut as l}from"./axTMqr-M.js";import{n as u}from"./DQtLZa7C.js";import{t as d}from"./3WaMGJ3H.js";import{r as f}from"./k3tsOkpc.js";var p={"text-xs":``,"font-mono":``,flex:`~ items-center gap-3`,ml2:``},m={flex:`~ gap-1 items-center`},h=a({__name:`BuildMetrics`,props:{metrics:{}},setup(a){let h=a,g=o(()=>{let e=h.metrics,t=e?.resolve_ids.reduce((e,t)=>(e+=t.duration,e),0),n=e?.loads?.reduce((e,t)=>(e+=t.duration,e),0),r=e?.transforms.reduce((e,t)=>(e+=t.duration,e),0);return{resolveIds:t,loads:n,transforms:r,total:t+n+r}}),_=o(()=>(h.metrics?.transforms)?.[0]?.source_code_size),v=o(()=>{let e=h.metrics?.transforms.filter(e=>e.transformed_code_size);return e?.[e.length-1]?.transformed_code_size});return(a,o)=>{let h=d,y=f;return e(),l(`div`,p,[s(h,{duration:g.value.resolveIds,flex:`~ gap-1 items-center`,title:`Resolve Id hooks cost: ${n(u)(g.value.resolveIds,!0)}`},{default:t(()=>[...o[0]||=[c(`span`,{"i-ph-magnifying-glass-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),s(h,{duration:g.value.loads,flex:`~ gap-1 items-center`,title:`Load hooks cost: ${n(u)(g.value.loads,!0)}`},{default:t(()=>[...o[1]||=[c(`span`,{"i-ph-upload-simple-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),s(h,{duration:g.value.transforms,flex:`~ gap-1 items-center`,title:`Transform hooks cost: ${n(u)(g.value.transforms,!0)}`},{default:t(()=>[...o[2]||=[c(`span`,{"i-ph-magic-wand-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),o[6]||=c(`span`,{op40:``},`|`,-1),s(h,{duration:g.value.total,flex:`~ gap-1 items-center`,title:`Total build cost: ${n(u)(g.value.total,!0)}`},{default:t(()=>[...o[3]||=[c(`span`,{"i-ph-clock-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),_.value&&v.value?(e(),l(r,{key:0},[o[5]||=c(`span`,{op40:``},`|`,-1),c(`div`,m,[s(y,{title:`Source code size`,bytes:_.value},null,8,[`bytes`]),o[4]||=c(`span`,{"i-ph-arrow-right-duotone":``,op50:``},null,-1),s(y,{title:`Transformed code size`,bytes:v.value},null,8,[`bytes`])])],64)):i(``,!0)])}}}),g=Object.assign(h,{__name:`ModulesBuildMetrics`});export{g as t};
1
+ import{Tt as e,Vt as t,en as n,it as r,lt as i,mt as a,ot as o,pt as s,st as c,ut as l}from"./C-xw4DlO.js";import{n as u}from"./DQtLZa7C.js";import{t as d}from"./COkVMxfk.js";import{r as f}from"./DlbkLyV4.js";var p={"text-xs":``,"font-mono":``,flex:`~ items-center gap-3`,ml2:``},m={flex:`~ gap-1 items-center`},h=a({__name:`BuildMetrics`,props:{metrics:{}},setup(a){let h=a,g=o(()=>{let e=h.metrics,t=e?.resolve_ids.reduce((e,t)=>(e+=t.duration,e),0),n=e?.loads?.reduce((e,t)=>(e+=t.duration,e),0),r=e?.transforms.reduce((e,t)=>(e+=t.duration,e),0);return{resolveIds:t,loads:n,transforms:r,total:t+n+r}}),_=o(()=>(h.metrics?.transforms)?.[0]?.source_code_size),v=o(()=>{let e=h.metrics?.transforms.filter(e=>e.transformed_code_size);return e?.[e.length-1]?.transformed_code_size});return(a,o)=>{let h=d,y=f;return e(),l(`div`,p,[s(h,{duration:g.value.resolveIds,flex:`~ gap-1 items-center`,title:`Resolve Id hooks cost: ${n(u)(g.value.resolveIds,!0)}`},{default:t(()=>[...o[0]||=[c(`span`,{"i-ph-magnifying-glass-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),s(h,{duration:g.value.loads,flex:`~ gap-1 items-center`,title:`Load hooks cost: ${n(u)(g.value.loads,!0)}`},{default:t(()=>[...o[1]||=[c(`span`,{"i-ph-upload-simple-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),s(h,{duration:g.value.transforms,flex:`~ gap-1 items-center`,title:`Transform hooks cost: ${n(u)(g.value.transforms,!0)}`},{default:t(()=>[...o[2]||=[c(`span`,{"i-ph-magic-wand-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),o[6]||=c(`span`,{op40:``},`|`,-1),s(h,{duration:g.value.total,flex:`~ gap-1 items-center`,title:`Total build cost: ${n(u)(g.value.total,!0)}`},{default:t(()=>[...o[3]||=[c(`span`,{"i-ph-clock-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),_.value&&v.value?(e(),l(r,{key:0},[o[5]||=c(`span`,{op40:``},`|`,-1),c(`div`,m,[s(y,{title:`Source code size`,bytes:_.value},null,8,[`bytes`]),o[4]||=c(`span`,{"i-ph-arrow-right-duotone":``,op50:``},null,-1),s(y,{title:`Transformed code size`,bytes:v.value},null,8,[`bytes`])])],64)):i(``,!0)])}}}),g=Object.assign(h,{__name:`ModulesBuildMetrics`});export{g as t};
@@ -1,4 +1,4 @@
1
- import{At as e,C as t,Ct as n,Dt as r,Ft as i,G as a,Ht as o,It as s,Jt as c,Lt as l,Mt as u,Nt as d,Qt as f,Rt as p,St as m,Tt as h,Vt as g,W as _,Wt as v,Xt as y,_t as b,a as x,b as S,bt as C,c as w,ct as T,dt as E,en as D,ft as O,ht as k,in as A,it as j,kt as M,l as ee,lt as N,m as P,mt as F,n as I,nt as te,o as L,ot as R,p as z,pt as B,qt as V,r as ne,rn as H,rt as re,st as U,tn as W,u as ie,ut as G,v as ae,vt as oe,w as se,wt as K,x as ce,xt as le,y as ue,yt as de,zt as fe}from"./axTMqr-M.js";import{t as pe}from"./CkP2VQQ5.js";import{n as me,r as he}from"./DQtLZa7C.js";import{a as ge,c as _e,s as ve}from"./Db5DS6RJ.js";import{n as ye}from"./DQcokXty.js";import{r as be,t as xe}from"./h9JT8fy9.js";import{t as Se}from"./CPuYr29B.js";import"./DnpfwSMy.js";import{t as Ce}from"./C5uSI1no.js";import{n as q,t as we}from"./l2P7b8gw.js";import{t as J}from"./3WaMGJ3H.js";import{n as Te,r as Ee,t as Y}from"./k3tsOkpc.js";import{t as De}from"./S09qVi2A.js";import{n as Oe,t as ke}from"./DtEEoUTs.js";import{t as Ae}from"./D-16ZB3R.js";import{n as je,r as Me}from"./C4x1Rf0J.js";import{t as Ne}from"./BsAtFXkB.js";import{c as Pe,i as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be}from"./C1B7Lb_i.js";import{t as Ve}from"./DO0Faz7t.js";import{t as He}from"./DRSBujEZ.js";import{t as Ue}from"./jnbX5wk_.js";var We=Object.create,Ge=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,qe=Object.getOwnPropertyNames,Je=Object.getPrototypeOf,Ye=Object.prototype.hasOwnProperty,Xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ze=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=qe(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Ye.call(e,s)&&s!==n&&Ge(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ke(t,s))||r.enumerable});return e},Qe=(e,t,n)=>(n=e==null?{}:We(Je(e)),Ze(t||!e||!e.__esModule?Ge(n,`default`,{value:e,enumerable:!0}):n,e)),$e={border:`r y base rounded-r-xl`,flex:`~ col gap-1`,p1:``,"of-y-auto":``,"max-h-96vh":``,relative:``,"bg-glass":``,class:`fixed left-0 top-1/2 -translate-y-1/2`},et=F({__name:`SideNav`,setup(e){let t=R(()=>[...we.value,{title:`Toggle dark mode`,icon:`i-ph-sun-duotone dark:i-ph-moon-duotone`,action:I}]);return(e,n)=>{let r=u(`tooltip`);return h(),G(`div`,null,[U(`div`,$e,[(h(!0),G(j,null,M(t.value,e=>o((h(),T(d(e.to?D(pe):`button`),C({key:e.title,ref_for:!0},e.to?{to:e.to}:{},{title:e.title,"rounded-full":``,p2:``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,"exact-active-class":`text-primary op100!`,onClick:t=>e.action?.()}),{default:g(()=>[U(`div`,{class:W(e.icon),"text-lg":``},null,2)]),_:2},1040,[`title`,`onClick`])),[[r,{placement:`right`,content:e.title}]])),128))])])}}}),tt=Object.assign(et,{__name:`PanelSideNav`}),nt={},rt={"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Close`};function it(e,t){return h(),G(`button`,rt,[...t[0]||=[U(`div`,{"i-ph-x":``},null,-1)]])}var X=Object.assign(t(nt,[[`render`,it]]),{__name:`DisplayCloseButton`}),at=new WeakMap,ot={mounted(e,t){let n=!t.modifiers.bubble,r;if(typeof t.value==`function`)r=x(e,t.value,{capture:n});else{let[i,a]=t.value;r=x(e,i,Object.assign({capture:n},a))}at.set(e,r)},unmounted(e){let t=at.get(e);t&&typeof t==`function`?t():t?.stop(),at.delete(e)}};function st(){let e=!1,t=y(!1);return(n,r)=>{if(t.value=r.value,e)return;e=!0;let i=P(n,r.value);p(t,e=>i.value=e)}}st();var ct={__name:`splitpanes`,props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:[`ready`,`resize`,`resized`,`pane-click`,`pane-maximize`,`pane-add`,`pane-remove`,`splitter-click`,`splitter-dblclick`],setup(e,{emit:t}){let i=t,a=e,o=s(),l=c([]),u=R(()=>l.value.reduce((e,t)=>(e[~~t.id]=t)&&e,{})),f=R(()=>l.value.length),g=c(null),_=c(!1),v=c({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),y=c({splitter:null,timeoutId:null}),x=R(()=>({[`splitpanes splitpanes--${a.horizontal?`horizontal`:`vertical`}`]:!0,"splitpanes--dragging":v.value.dragging})),S=()=>{document.addEventListener(`mousemove`,E,{passive:!1}),document.addEventListener(`mouseup`,D),`ontouchstart`in window&&(document.addEventListener(`touchmove`,E,{passive:!1}),document.addEventListener(`touchend`,D))},C=()=>{document.removeEventListener(`mousemove`,E,{passive:!1}),document.removeEventListener(`mouseup`,D),`ontouchstart`in window&&(document.removeEventListener(`touchmove`,E,{passive:!1}),document.removeEventListener(`touchend`,D))},w=(e,t)=>{let n=e.target.closest(`.splitpanes__splitter`);if(n){let{left:t,top:r}=n.getBoundingClientRect(),{clientX:i,clientY:o}=`ontouchstart`in window&&e.touches?e.touches[0]:e;v.value.cursorOffset=a.horizontal?o-r:i-t}S(),v.value.mouseDown=!0,v.value.activeSplitter=t},E=e=>{v.value.mouseDown&&(e.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{ee(j(e)),oe(`resize`,{event:e},!0)}))},D=e=>{v.value.dragging&&(window.getSelection().removeAllRanges(),oe(`resized`,{event:e},!0)),v.value.mouseDown=!1,v.value.activeSplitter=null,setTimeout(()=>{v.value.dragging=!1,C()},100)},O=(e,t)=>{`ontouchstart`in window&&(e.preventDefault(),y.value.splitter===t?(clearTimeout(y.value.timeoutId),y.value.timeoutId=null,k(e,t),y.value.splitter=null):(y.value.splitter=t,y.value.timeoutId=setTimeout(()=>y.value.splitter=null,500))),v.value.dragging||oe(`splitter-click`,{event:e,index:t},!0)},k=(e,t)=>{if(oe(`splitter-dblclick`,{event:e,index:t},!0),a.maximizePanes){let n=0;l.value=l.value.map((e,r)=>(e.size=r===t?e.max:e.min,r!==t&&(n+=e.min),e)),l.value[t].size-=n,oe(`pane-maximize`,{event:e,index:t,pane:l.value[t]}),oe(`resized`,{event:e,index:t},!0)}},A=(e,t)=>{oe(`pane-click`,{event:e,index:u.value[t].index,pane:u.value[t]})},j=e=>{let t=g.value.getBoundingClientRect(),{clientX:n,clientY:r}=`ontouchstart`in window&&e.touches?e.touches[0]:e;return{x:n-(a.horizontal?0:v.value.cursorOffset)-t.left,y:r-(a.horizontal?v.value.cursorOffset:0)-t.top}},M=e=>{e=e[a.horizontal?`y`:`x`];let t=g.value[a.horizontal?`clientHeight`:`clientWidth`];return a.rtl&&!a.horizontal&&(e=t-e),e*100/t},ee=e=>{let t=v.value.activeSplitter,n={prevPanesSize:P(t),nextPanesSize:F(t),prevReachedMinPanes:0,nextReachedMinPanes:0},r=0+(a.pushOtherPanes?0:n.prevPanesSize),i=100-(a.pushOtherPanes?0:n.nextPanesSize),o=Math.max(Math.min(M(e),i),r),s=[t,t+1],c=l.value[s[0]]||null,u=l.value[s[1]]||null,d=c.max<100&&o>=c.max+n.prevPanesSize,f=u.max<100&&o<=100-(u.max+F(t+1));if(d||f){d?(c.size=c.max,u.size=Math.max(100-c.max-n.prevPanesSize-n.nextPanesSize,0)):(c.size=Math.max(100-u.max-n.prevPanesSize-F(t+1),0),u.size=u.max);return}if(a.pushOtherPanes){let e=N(n,o);if(!e)return;({sums:n,panesToResize:s}=e),c=l.value[s[0]]||null,u=l.value[s[1]]||null}c!==null&&(c.size=Math.min(Math.max(o-n.prevPanesSize-n.prevReachedMinPanes,c.min),c.max)),u!==null&&(u.size=Math.min(Math.max(100-o-n.nextPanesSize-n.nextReachedMinPanes,u.min),u.max))},N=(e,t)=>{let n=v.value.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+l.value[r[0]].min&&(r[0]=I(n).index,e.prevReachedMinPanes=0,r[0]<n&&l.value.forEach((t,i)=>{i>r[0]&&i<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),e.prevPanesSize=P(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,l.value[0].size=l.value[0].min,l.value.forEach((t,r)=>{r>0&&r<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),l.value[r[1]].size=100-e.prevReachedMinPanes-l.value[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-l.value[r[1]].min&&(r[1]=te(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&l.value.forEach((t,i)=>{i>n&&i<r[1]&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),e.nextPanesSize=F(r[1]-1),r[1]===void 0)?(e.nextReachedMinPanes=0,l.value.forEach((t,r)=>{r<f.value-1&&r>=n+1&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),l.value[r[0]].size=100-e.prevPanesSize-F(r[0]-1),null):{sums:e,panesToResize:r}},P=e=>l.value.reduce((t,n,r)=>t+(r<e?n.size:0),0),F=e=>l.value.reduce((t,n,r)=>t+(r>e+1?n.size:0),0),I=e=>[...l.value].reverse().find(t=>t.index<e&&t.size>t.min)||{},te=e=>l.value.find(t=>t.index>e+1&&t.size>t.min)||{},L=()=>{let e=Array.from(g.value?.children||[]);for(let t of e){let e=t.classList.contains(`splitpanes__pane`),n=t.classList.contains(`splitpanes__splitter`);!e&&!n&&(t.remove(),console.warn(`Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.`))}},z=(e,t,n=!1)=>{let r=e-1,i=document.createElement(`div`);i.classList.add(`splitpanes__splitter`),n||(i.onmousedown=e=>w(e,r),typeof window<`u`&&`ontouchstart`in window&&(i.ontouchstart=e=>w(e,r)),i.onclick=e=>O(e,r+1)),i.ondblclick=e=>k(e,r+1),t.parentNode.insertBefore(i,t)},B=e=>{e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.remove()},V=()=>{let e=Array.from(g.value?.children||[]);for(let t of e)t.className.includes(`splitpanes__splitter`)&&B(t);let t=0;for(let n of e)n.className.includes(`splitpanes__pane`)&&(!t&&a.firstSplitter?z(t,n,!0):t&&z(t,n),t++)},ne=({uid:e,...t})=>{let n=u.value[e];for(let[e,r]of Object.entries(t))n[e]=r},H=e=>{let t=-1;Array.from(g.value?.children||[]).some(n=>(n.className.includes(`splitpanes__pane`)&&t++,n.isSameNode(e.el))),l.value.splice(t,0,{...e,index:t}),l.value.forEach((e,t)=>e.index=t),_.value&&le(()=>{V(),U({addedPane:l.value[t]}),oe(`pane-add`,{pane:l.value[t]})})},re=e=>{let t=l.value.findIndex(t=>t.id===e);l.value[t].el=null;let n=l.value.splice(t,1)[0];l.value.forEach((e,t)=>e.index=t),le(()=>{V(),oe(`pane-remove`,{pane:n}),U({removedPane:{...n}})})},U=(e={})=>{!e.addedPane&&!e.removedPane?ie():l.value.some(e=>e.givenSize!==null||e.min||e.max<100)?G(e):W(),_.value&&oe(`resized`)},W=()=>{let e=100/f.value,t=0,n=[],r=[];for(let i of l.value)i.size=Math.max(Math.min(e,i.max),i.min),t-=i.size,i.size>=i.max&&n.push(i.id),i.size<=i.min&&r.push(i.id);t>.1&&ae(t,n,r)},ie=()=>{let e=100,t=[],n=[],r=0;for(let i of l.value)e-=i.size,i.givenSize!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id);let i=100;if(e>.1){for(let t of l.value)t.givenSize===null&&(t.size=Math.max(Math.min(e/(f.value-r),t.max),t.min)),i-=t.size;i>.1&&ae(i,t,n)}},G=({addedPane:e,removedPane:t}={})=>{let n=100/f.value,r=0,i=[],a=[];(e?.givenSize??null)!==null&&(n=(100-e.givenSize)/(f.value-1));for(let e of l.value)r-=e.size,e.size>=e.max&&i.push(e.id),e.size<=e.min&&a.push(e.id);if(!(Math.abs(r)<.1)){for(let t of l.value)e?.givenSize!==null&&e?.id===t.id||(t.size=Math.max(Math.min(n,t.max),t.min)),r-=t.size,t.size>=t.max&&i.push(t.id),t.size<=t.min&&a.push(t.id);r>.1&&ae(r,i,a)}},ae=(e,t,n)=>{let r;r=e>0?e/(f.value-t.length):e/(f.value-n.length),l.value.forEach((i,a)=>{if(e>0&&!t.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}else if(!n.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}}),Math.abs(e)>.1&&le(()=>{_.value&&console.warn(`Splitpanes: Could not resize panes correctly due to their constraints.`)})},oe=(e,t=void 0,n=!1)=>{let r=t?.index??v.value.activeSplitter??null;i(e,{...t,...r!==null&&{index:r},...n&&r!==null&&{prevPane:l.value[r-(a.firstSplitter?1:0)],nextPane:l.value[r+(a.firstSplitter?0:1)]},panes:l.value.map(e=>({min:e.min,max:e.max,size:e.size}))})};p(()=>a.firstSplitter,()=>V()),n(()=>{L(),V(),U(),oe(`ready`),_.value=!0}),m(()=>_.value=!1);let se=()=>b(`div`,{ref:g,class:x.value},o.default?.call(o));return r(`panes`,l),r(`indexedPanes`,u),r(`horizontal`,R(()=>a.horizontal)),r(`requestUpdate`,ne),r(`onPaneAdd`,H),r(`onPaneRemove`,re),r(`onPaneClick`,A),(e,t)=>(h(),T(d(se)))}},lt={__name:`pane`,props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(t){let r=t,i=oe(`requestUpdate`),a=oe(`onPaneAdd`),o=oe(`horizontal`),s=oe(`onPaneRemove`),l=oe(`onPaneClick`),u=k()?.uid,d=oe(`indexedPanes`),f=R(()=>d.value[u]),g=c(null),_=R(()=>{let e=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(e,y.value),v.value)}),v=R(()=>{let e=parseFloat(r.minSize);return isNaN(e)?0:e}),y=R(()=>{let e=parseFloat(r.maxSize);return isNaN(e)?100:e}),b=R(()=>`${o.value?`height`:`width`}: ${f.value?.size}%`);return p(()=>_.value,e=>i({uid:u,size:e})),p(()=>v.value,e=>i({uid:u,min:e})),p(()=>y.value,e=>i({uid:u,max:e})),n(()=>{a({id:u,el:g.value,min:v.value,max:y.value,givenSize:r.size===void 0?null:_.value,size:_.value})}),m(()=>s(u)),(t,n)=>(h(),G(`div`,{ref_key:`paneEl`,ref:g,class:`splitpanes__pane`,onClick:n[0]||=e=>D(l)(e,t._.uid),style:H(b.value)},[e(t.$slots,`default`)],4))}},ut=[`title`],dt=F({__name:`IconButton`,props:{title:{},classIcon:{},active:{type:Boolean}},setup(t){let n=t;return(t,r)=>(h(),G(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,class:W(n.active?`bg-active op90 text-green-400`:``),hover:`bg-active op100`,op50:``,title:n.title},[e(t.$slots,`default`,{},()=>[U(`div`,{class:W(n.classIcon)},null,2)])],10,ut))}}),Z=Object.assign(dt,{__name:`DisplayIconButton`}),Q=Xe(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self,n.CodeMirror=r())})(e,(function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),c=!a&&/WebKit\//.test(e),l=c&&/Qt\/\d+\.\d+/.test(e),u=!a&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),m=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),_=/Android/.test(e),v=g||_||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),S=f&&e.match(/Version\/(\d*\.\d*)/);S&&=Number(S[1]),S&&S>=15&&(f=!1,c=!0);var C=y&&(l||f&&(S==null||S<12.11)),w=n||o&&s>=9;function T(e){return RegExp(`(^|\\s)`+e+`(?:$|\\s)\\s*`)}var E=function(e,t){var n=e.className,r=T(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:``)}};function D(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return D(e).appendChild(t)}function k(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t==`string`)i.appendChild(document.createTextNode(t));else if(t)for(var a=0;a<t.length;++a)i.appendChild(t[a]);return i}function A(e,t,n,r){var i=k(e,t,n,r);return i.setAttribute(`role`,`presentation`),i}var j=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd(`character`,n),r.moveStart(`character`,t),r};function M(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function ee(e){var t=e.ownerDocument||e,n;try{n=e.activeElement}catch{n=t.body||null}for(;n&&n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function N(e,t){var n=e.className;T(t).test(n)||(e.className+=(n?` `:``)+t)}function P(e,t){for(var n=e.split(` `),r=0;r<n.length;r++)n[r]&&!T(n[r]).test(t)&&(t+=` `+n[r]);return t}var F=function(e){e.select()};g?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(F=function(e){try{e.select()}catch{}});function I(e){return e.display.wrapper.ownerDocument}function te(e){return L(e.display.wrapper)}function L(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function R(e){return I(e).defaultView}function z(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function B(e,t,n){for(var r in t||={},e)e.hasOwnProperty(r)&&(n!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function V(e,t,n,r,i){t??(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var a=r||0,o=i||0;;){var s=e.indexOf(` `,a);if(s<0||s>=t)return o+(t-a);o+=s-a,o+=n-o%n,a=s+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};ne.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ne.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};function H(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}var re=50,U={toString:function(){return`CodeMirror.Pass`}},W={scroll:!1},ie={origin:`*mouse`},G={origin:`+move`};function ae(e,t,n){for(var r=0,i=0;;){var a=e.indexOf(` `,r);a==-1&&(a=e.length);var o=a-r;if(a==e.length||i+o>=t)return r+Math.min(o,t-i);if(i+=a-r,i+=n-i%n,r=a+1,i>=t)return r}}var oe=[``];function se(e){for(;oe.length<=e;)oe.push(K(oe)+` `);return oe[e]}function K(e){return e[e.length-1]}function ce(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function le(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function ue(){}function de(e,t){var n;return Object.create?n=Object.create(e):(ue.prototype=e,n=new ue),t&&B(t,n),n}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pe(e){return/\w/.test(e)||e>`€`&&(e.toUpperCase()!=e.toLowerCase()||fe.test(e))}function me(e,t){return t?t.source.indexOf(`\\w`)>-1&&pe(e)?!0:t.test(e):pe(e)}function he(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ge=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function _e(e){return e.charCodeAt(0)>=768&&ge.test(e)}function ve(e,t,n){for(;(n<0?t>0:t<e.length)&&_e(e.charAt(t));)t+=n;return t}function ye(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==t)return e(a)?t:n;e(a)?n=a:t=a+r}}function be(e,t,n,r){if(!e)return r(t,n,`ltr`,0);for(var i=!1,a=0;a<e.length;++a){var o=e[a];(o.from<n&&o.to>t||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),o.level==1?`rtl`:`ltr`,a),i=!0)}i||r(t,n,`ltr`)}var xe=null;function Se(e,t,n){var r;xe=null;for(var i=0;i<e.length;++i){var a=e[i];if(a.from<t&&a.to>t)return i;a.to==t&&(a.from!=a.to&&n==`before`?r=i:xe=i),a.from==t&&(a.from!=a.to&&n!=`before`?r=i:xe=i)}return r??xe}var Ce=(function(){var e=`bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN`,t=`nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111`;function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?`R`:1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?`r`:8192<=n&&n<=8203?`w`:n==8204?`b`:`L`}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function c(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l=t==`ltr`?`L`:`R`;if(e.length==0||t==`ltr`&&!r.test(e))return!1;for(var u=e.length,d=[],f=0;f<u;++f)d.push(n(e.charCodeAt(f)));for(var p=0,m=l;p<u;++p){var h=d[p];h==`m`?d[p]=m:m=h}for(var g=0,_=l;g<u;++g){var v=d[g];v==`1`&&_==`r`?d[g]=`n`:a.test(v)&&(_=v,v==`r`&&(d[g]=`R`))}for(var y=1,b=d[0];y<u-1;++y){var x=d[y];x==`+`&&b==`1`&&d[y+1]==`1`?d[y]=`1`:x==`,`&&b==d[y+1]&&(b==`1`||b==`n`)&&(d[y]=b),b=x}for(var S=0;S<u;++S){var C=d[S];if(C==`,`)d[S]=`N`;else if(C==`%`){var w=void 0;for(w=S+1;w<u&&d[w]==`%`;++w);for(var T=S&&d[S-1]==`!`||w<u&&d[w]==`1`?`1`:`N`,E=S;E<w;++E)d[E]=T;S=w-1}}for(var D=0,O=l;D<u;++D){var k=d[D];O==`L`&&k==`1`?d[D]=`L`:a.test(k)&&(O=k)}for(var A=0;A<u;++A)if(i.test(d[A])){var j=void 0;for(j=A+1;j<u&&i.test(d[j]);++j);for(var M=(A?d[A-1]:l)==`L`,ee=M==((j<u?d[j]:l)==`L`)?M?`L`:`R`:l,N=A;N<j;++N)d[N]=ee;A=j-1}for(var P=[],F,I=0;I<u;)if(o.test(d[I])){var te=I;for(++I;I<u&&o.test(d[I]);++I);P.push(new c(0,te,I))}else{var L=I,R=P.length,z=t==`rtl`?1:0;for(++I;I<u&&d[I]!=`L`;++I);for(var B=L;B<I;)if(s.test(d[B])){L<B&&(P.splice(R,0,new c(1,L,B)),R+=z);var V=B;for(++B;B<I&&s.test(d[B]);++B);P.splice(R,0,new c(2,V,B)),R+=z,L=B}else ++B;L<I&&P.splice(R,0,new c(1,L,I))}return t==`ltr`&&(P[0].level==1&&(F=e.match(/^\s+/))&&(P[0].from=F[0].length,P.unshift(new c(0,0,F[0].length))),K(P).level==1&&(F=e.match(/\s+$/))&&(K(P).to-=F[0].length,P.push(new c(0,u-F[0].length,u)))),t==`rtl`?P.reverse():P}})();function q(e,t){var n=e.order;return n??=e.order=Ce(e.text,t),n}var we=[],J=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent(`on`+t,n);else{var r=e._handlers||={};r[t]=(r[t]||we).concat(n)}};function Te(e,t){return e._handlers&&e._handlers[t]||we}function Ee(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent(`on`+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var a=H(i,n);a>-1&&(r[t]=i.slice(0,a).concat(i.slice(a+1)))}}}function Y(e,t){var n=Te(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function De(e,t,n){return typeof t==`string`&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Y(e,n||t.type,e,t),Ne(t)||t.codemirrorIgnore}function Oe(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)H(n,t[r])==-1&&n.push(t[r])}function ke(e,t){return Te(e,t).length>0}function Ae(e){e.prototype.on=function(e,t){J(this,e,t)},e.prototype.off=function(e,t){Ee(this,e,t)}}function je(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Me(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ne(e){return e.defaultPrevented==null?e.returnValue==0:e.defaultPrevented}function Pe(e){je(e),Me(e)}function Fe(e){return e.target||e.srcElement}function Ie(e){var t=e.which;return t??(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),y&&e.ctrlKey&&t==1&&(t=3),t}var Le=function(){if(o&&s<9)return!1;var e=k(`div`);return`draggable`in e||`dragDrop`in e}(),Re;function ze(e){if(Re==null){var t=k(`span`,`​`);O(e,k(`span`,[t,document.createTextNode(`x`)])),e.firstChild.offsetHeight!=0&&(Re=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&s<8))}var n=Re?k(`span`,`​`):k(`span`,`\xA0`,null,`display: inline-block; width: 1px; margin-right: -1px`);return n.setAttribute(`cm-text`,``),n}var Be;function Ve(e){if(Be!=null)return Be;var t=O(e,document.createTextNode(`AخA`)),n=j(t,0,1).getBoundingClientRect(),r=j(t,1,2).getBoundingClientRect();return D(e),!n||n.left==n.right?!1:Be=r.right-n.right<3}var He=`
1
+ import{At as e,C as t,Ct as n,Dt as r,Ft as i,G as a,Ht as o,It as s,Jt as c,Lt as l,Mt as u,Nt as d,Qt as f,Rt as p,St as m,Tt as h,Vt as g,W as _,Wt as v,Xt as y,_t as b,a as x,b as S,bt as C,c as w,ct as T,dt as E,en as D,ft as O,ht as k,in as A,it as j,kt as M,l as ee,lt as N,m as P,mt as F,n as I,nt as te,o as L,ot as R,p as z,pt as B,qt as V,r as ne,rn as H,rt as re,st as U,tn as W,u as ie,ut as G,v as ae,vt as oe,w as se,wt as K,x as ce,xt as le,y as ue,yt as de,zt as fe}from"./C-xw4DlO.js";import{t as pe}from"./jo347JsK.js";import{n as me,r as he}from"./DQtLZa7C.js";import{a as ge,c as _e,s as ve}from"./Dnw1sKCY.js";import{n as ye}from"./B3PiPV-x.js";import{r as be,t as xe}from"./B7TCfKhI.js";import{t as Se}from"./CVmdkwE8.js";import"./DnpfwSMy.js";import{t as Ce}from"./CsYy4mNk.js";import{n as q,t as we}from"./DdbSxsRv.js";import{t as J}from"./COkVMxfk.js";import{n as Te,r as Ee,t as Y}from"./DlbkLyV4.js";import{t as De}from"./CzgA83N_.js";import{n as Oe,t as ke}from"./BACoQHB-.js";import{t as Ae}from"./hkb_fnPj.js";import{n as je,r as Me}from"./DD_wBK9r.js";import{t as Ne}from"./DndCUz9L.js";import{c as Pe,i as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be}from"./HV-uTnTx.js";import{t as Ve}from"./Dp55yonU.js";import{t as He}from"./BJv7hFBm.js";import{t as Ue}from"./fQmYF_tr.js";var We=Object.create,Ge=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,qe=Object.getOwnPropertyNames,Je=Object.getPrototypeOf,Ye=Object.prototype.hasOwnProperty,Xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ze=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=qe(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Ye.call(e,s)&&s!==n&&Ge(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ke(t,s))||r.enumerable});return e},Qe=(e,t,n)=>(n=e==null?{}:We(Je(e)),Ze(t||!e||!e.__esModule?Ge(n,`default`,{value:e,enumerable:!0}):n,e)),$e={border:`r y base rounded-r-xl`,flex:`~ col gap-1`,p1:``,"of-y-auto":``,"max-h-96vh":``,relative:``,"bg-glass":``,class:`fixed left-0 top-1/2 -translate-y-1/2`},et=F({__name:`SideNav`,setup(e){let t=R(()=>[...we.value,{title:`Toggle dark mode`,icon:`i-ph-sun-duotone dark:i-ph-moon-duotone`,action:I}]);return(e,n)=>{let r=u(`tooltip`);return h(),G(`div`,null,[U(`div`,$e,[(h(!0),G(j,null,M(t.value,e=>o((h(),T(d(e.to?D(pe):`button`),C({key:e.title,ref_for:!0},e.to?{to:e.to}:{},{title:e.title,"rounded-full":``,p2:``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,"exact-active-class":`text-primary op100!`,onClick:t=>e.action?.()}),{default:g(()=>[U(`div`,{class:W(e.icon),"text-lg":``},null,2)]),_:2},1040,[`title`,`onClick`])),[[r,{placement:`right`,content:e.title}]])),128))])])}}}),tt=Object.assign(et,{__name:`PanelSideNav`}),nt={},rt={"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Close`};function it(e,t){return h(),G(`button`,rt,[...t[0]||=[U(`div`,{"i-ph-x":``},null,-1)]])}var X=Object.assign(t(nt,[[`render`,it]]),{__name:`DisplayCloseButton`}),at=new WeakMap,ot={mounted(e,t){let n=!t.modifiers.bubble,r;if(typeof t.value==`function`)r=x(e,t.value,{capture:n});else{let[i,a]=t.value;r=x(e,i,Object.assign({capture:n},a))}at.set(e,r)},unmounted(e){let t=at.get(e);t&&typeof t==`function`?t():t?.stop(),at.delete(e)}};function st(){let e=!1,t=y(!1);return(n,r)=>{if(t.value=r.value,e)return;e=!0;let i=P(n,r.value);p(t,e=>i.value=e)}}st();var ct={__name:`splitpanes`,props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:[`ready`,`resize`,`resized`,`pane-click`,`pane-maximize`,`pane-add`,`pane-remove`,`splitter-click`,`splitter-dblclick`],setup(e,{emit:t}){let i=t,a=e,o=s(),l=c([]),u=R(()=>l.value.reduce((e,t)=>(e[~~t.id]=t)&&e,{})),f=R(()=>l.value.length),g=c(null),_=c(!1),v=c({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),y=c({splitter:null,timeoutId:null}),x=R(()=>({[`splitpanes splitpanes--${a.horizontal?`horizontal`:`vertical`}`]:!0,"splitpanes--dragging":v.value.dragging})),S=()=>{document.addEventListener(`mousemove`,E,{passive:!1}),document.addEventListener(`mouseup`,D),`ontouchstart`in window&&(document.addEventListener(`touchmove`,E,{passive:!1}),document.addEventListener(`touchend`,D))},C=()=>{document.removeEventListener(`mousemove`,E,{passive:!1}),document.removeEventListener(`mouseup`,D),`ontouchstart`in window&&(document.removeEventListener(`touchmove`,E,{passive:!1}),document.removeEventListener(`touchend`,D))},w=(e,t)=>{let n=e.target.closest(`.splitpanes__splitter`);if(n){let{left:t,top:r}=n.getBoundingClientRect(),{clientX:i,clientY:o}=`ontouchstart`in window&&e.touches?e.touches[0]:e;v.value.cursorOffset=a.horizontal?o-r:i-t}S(),v.value.mouseDown=!0,v.value.activeSplitter=t},E=e=>{v.value.mouseDown&&(e.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{ee(j(e)),oe(`resize`,{event:e},!0)}))},D=e=>{v.value.dragging&&(window.getSelection().removeAllRanges(),oe(`resized`,{event:e},!0)),v.value.mouseDown=!1,v.value.activeSplitter=null,setTimeout(()=>{v.value.dragging=!1,C()},100)},O=(e,t)=>{`ontouchstart`in window&&(e.preventDefault(),y.value.splitter===t?(clearTimeout(y.value.timeoutId),y.value.timeoutId=null,k(e,t),y.value.splitter=null):(y.value.splitter=t,y.value.timeoutId=setTimeout(()=>y.value.splitter=null,500))),v.value.dragging||oe(`splitter-click`,{event:e,index:t},!0)},k=(e,t)=>{if(oe(`splitter-dblclick`,{event:e,index:t},!0),a.maximizePanes){let n=0;l.value=l.value.map((e,r)=>(e.size=r===t?e.max:e.min,r!==t&&(n+=e.min),e)),l.value[t].size-=n,oe(`pane-maximize`,{event:e,index:t,pane:l.value[t]}),oe(`resized`,{event:e,index:t},!0)}},A=(e,t)=>{oe(`pane-click`,{event:e,index:u.value[t].index,pane:u.value[t]})},j=e=>{let t=g.value.getBoundingClientRect(),{clientX:n,clientY:r}=`ontouchstart`in window&&e.touches?e.touches[0]:e;return{x:n-(a.horizontal?0:v.value.cursorOffset)-t.left,y:r-(a.horizontal?v.value.cursorOffset:0)-t.top}},M=e=>{e=e[a.horizontal?`y`:`x`];let t=g.value[a.horizontal?`clientHeight`:`clientWidth`];return a.rtl&&!a.horizontal&&(e=t-e),e*100/t},ee=e=>{let t=v.value.activeSplitter,n={prevPanesSize:P(t),nextPanesSize:F(t),prevReachedMinPanes:0,nextReachedMinPanes:0},r=0+(a.pushOtherPanes?0:n.prevPanesSize),i=100-(a.pushOtherPanes?0:n.nextPanesSize),o=Math.max(Math.min(M(e),i),r),s=[t,t+1],c=l.value[s[0]]||null,u=l.value[s[1]]||null,d=c.max<100&&o>=c.max+n.prevPanesSize,f=u.max<100&&o<=100-(u.max+F(t+1));if(d||f){d?(c.size=c.max,u.size=Math.max(100-c.max-n.prevPanesSize-n.nextPanesSize,0)):(c.size=Math.max(100-u.max-n.prevPanesSize-F(t+1),0),u.size=u.max);return}if(a.pushOtherPanes){let e=N(n,o);if(!e)return;({sums:n,panesToResize:s}=e),c=l.value[s[0]]||null,u=l.value[s[1]]||null}c!==null&&(c.size=Math.min(Math.max(o-n.prevPanesSize-n.prevReachedMinPanes,c.min),c.max)),u!==null&&(u.size=Math.min(Math.max(100-o-n.nextPanesSize-n.nextReachedMinPanes,u.min),u.max))},N=(e,t)=>{let n=v.value.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+l.value[r[0]].min&&(r[0]=I(n).index,e.prevReachedMinPanes=0,r[0]<n&&l.value.forEach((t,i)=>{i>r[0]&&i<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),e.prevPanesSize=P(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,l.value[0].size=l.value[0].min,l.value.forEach((t,r)=>{r>0&&r<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),l.value[r[1]].size=100-e.prevReachedMinPanes-l.value[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-l.value[r[1]].min&&(r[1]=te(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&l.value.forEach((t,i)=>{i>n&&i<r[1]&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),e.nextPanesSize=F(r[1]-1),r[1]===void 0)?(e.nextReachedMinPanes=0,l.value.forEach((t,r)=>{r<f.value-1&&r>=n+1&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),l.value[r[0]].size=100-e.prevPanesSize-F(r[0]-1),null):{sums:e,panesToResize:r}},P=e=>l.value.reduce((t,n,r)=>t+(r<e?n.size:0),0),F=e=>l.value.reduce((t,n,r)=>t+(r>e+1?n.size:0),0),I=e=>[...l.value].reverse().find(t=>t.index<e&&t.size>t.min)||{},te=e=>l.value.find(t=>t.index>e+1&&t.size>t.min)||{},L=()=>{let e=Array.from(g.value?.children||[]);for(let t of e){let e=t.classList.contains(`splitpanes__pane`),n=t.classList.contains(`splitpanes__splitter`);!e&&!n&&(t.remove(),console.warn(`Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.`))}},z=(e,t,n=!1)=>{let r=e-1,i=document.createElement(`div`);i.classList.add(`splitpanes__splitter`),n||(i.onmousedown=e=>w(e,r),typeof window<`u`&&`ontouchstart`in window&&(i.ontouchstart=e=>w(e,r)),i.onclick=e=>O(e,r+1)),i.ondblclick=e=>k(e,r+1),t.parentNode.insertBefore(i,t)},B=e=>{e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.remove()},V=()=>{let e=Array.from(g.value?.children||[]);for(let t of e)t.className.includes(`splitpanes__splitter`)&&B(t);let t=0;for(let n of e)n.className.includes(`splitpanes__pane`)&&(!t&&a.firstSplitter?z(t,n,!0):t&&z(t,n),t++)},ne=({uid:e,...t})=>{let n=u.value[e];for(let[e,r]of Object.entries(t))n[e]=r},H=e=>{let t=-1;Array.from(g.value?.children||[]).some(n=>(n.className.includes(`splitpanes__pane`)&&t++,n.isSameNode(e.el))),l.value.splice(t,0,{...e,index:t}),l.value.forEach((e,t)=>e.index=t),_.value&&le(()=>{V(),U({addedPane:l.value[t]}),oe(`pane-add`,{pane:l.value[t]})})},re=e=>{let t=l.value.findIndex(t=>t.id===e);l.value[t].el=null;let n=l.value.splice(t,1)[0];l.value.forEach((e,t)=>e.index=t),le(()=>{V(),oe(`pane-remove`,{pane:n}),U({removedPane:{...n}})})},U=(e={})=>{!e.addedPane&&!e.removedPane?ie():l.value.some(e=>e.givenSize!==null||e.min||e.max<100)?G(e):W(),_.value&&oe(`resized`)},W=()=>{let e=100/f.value,t=0,n=[],r=[];for(let i of l.value)i.size=Math.max(Math.min(e,i.max),i.min),t-=i.size,i.size>=i.max&&n.push(i.id),i.size<=i.min&&r.push(i.id);t>.1&&ae(t,n,r)},ie=()=>{let e=100,t=[],n=[],r=0;for(let i of l.value)e-=i.size,i.givenSize!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id);let i=100;if(e>.1){for(let t of l.value)t.givenSize===null&&(t.size=Math.max(Math.min(e/(f.value-r),t.max),t.min)),i-=t.size;i>.1&&ae(i,t,n)}},G=({addedPane:e,removedPane:t}={})=>{let n=100/f.value,r=0,i=[],a=[];(e?.givenSize??null)!==null&&(n=(100-e.givenSize)/(f.value-1));for(let e of l.value)r-=e.size,e.size>=e.max&&i.push(e.id),e.size<=e.min&&a.push(e.id);if(!(Math.abs(r)<.1)){for(let t of l.value)e?.givenSize!==null&&e?.id===t.id||(t.size=Math.max(Math.min(n,t.max),t.min)),r-=t.size,t.size>=t.max&&i.push(t.id),t.size<=t.min&&a.push(t.id);r>.1&&ae(r,i,a)}},ae=(e,t,n)=>{let r;r=e>0?e/(f.value-t.length):e/(f.value-n.length),l.value.forEach((i,a)=>{if(e>0&&!t.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}else if(!n.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}}),Math.abs(e)>.1&&le(()=>{_.value&&console.warn(`Splitpanes: Could not resize panes correctly due to their constraints.`)})},oe=(e,t=void 0,n=!1)=>{let r=t?.index??v.value.activeSplitter??null;i(e,{...t,...r!==null&&{index:r},...n&&r!==null&&{prevPane:l.value[r-(a.firstSplitter?1:0)],nextPane:l.value[r+(a.firstSplitter?0:1)]},panes:l.value.map(e=>({min:e.min,max:e.max,size:e.size}))})};p(()=>a.firstSplitter,()=>V()),n(()=>{L(),V(),U(),oe(`ready`),_.value=!0}),m(()=>_.value=!1);let se=()=>b(`div`,{ref:g,class:x.value},o.default?.call(o));return r(`panes`,l),r(`indexedPanes`,u),r(`horizontal`,R(()=>a.horizontal)),r(`requestUpdate`,ne),r(`onPaneAdd`,H),r(`onPaneRemove`,re),r(`onPaneClick`,A),(e,t)=>(h(),T(d(se)))}},lt={__name:`pane`,props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(t){let r=t,i=oe(`requestUpdate`),a=oe(`onPaneAdd`),o=oe(`horizontal`),s=oe(`onPaneRemove`),l=oe(`onPaneClick`),u=k()?.uid,d=oe(`indexedPanes`),f=R(()=>d.value[u]),g=c(null),_=R(()=>{let e=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(e,y.value),v.value)}),v=R(()=>{let e=parseFloat(r.minSize);return isNaN(e)?0:e}),y=R(()=>{let e=parseFloat(r.maxSize);return isNaN(e)?100:e}),b=R(()=>`${o.value?`height`:`width`}: ${f.value?.size}%`);return p(()=>_.value,e=>i({uid:u,size:e})),p(()=>v.value,e=>i({uid:u,min:e})),p(()=>y.value,e=>i({uid:u,max:e})),n(()=>{a({id:u,el:g.value,min:v.value,max:y.value,givenSize:r.size===void 0?null:_.value,size:_.value})}),m(()=>s(u)),(t,n)=>(h(),G(`div`,{ref_key:`paneEl`,ref:g,class:`splitpanes__pane`,onClick:n[0]||=e=>D(l)(e,t._.uid),style:H(b.value)},[e(t.$slots,`default`)],4))}},ut=[`title`],dt=F({__name:`IconButton`,props:{title:{},classIcon:{},active:{type:Boolean}},setup(t){let n=t;return(t,r)=>(h(),G(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,class:W(n.active?`bg-active op90 text-green-400`:``),hover:`bg-active op100`,op50:``,title:n.title},[e(t.$slots,`default`,{},()=>[U(`div`,{class:W(n.classIcon)},null,2)])],10,ut))}}),Z=Object.assign(dt,{__name:`DisplayIconButton`}),Q=Xe(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self,n.CodeMirror=r())})(e,(function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),c=!a&&/WebKit\//.test(e),l=c&&/Qt\/\d+\.\d+/.test(e),u=!a&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),m=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),_=/Android/.test(e),v=g||_||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),S=f&&e.match(/Version\/(\d*\.\d*)/);S&&=Number(S[1]),S&&S>=15&&(f=!1,c=!0);var C=y&&(l||f&&(S==null||S<12.11)),w=n||o&&s>=9;function T(e){return RegExp(`(^|\\s)`+e+`(?:$|\\s)\\s*`)}var E=function(e,t){var n=e.className,r=T(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:``)}};function D(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return D(e).appendChild(t)}function k(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t==`string`)i.appendChild(document.createTextNode(t));else if(t)for(var a=0;a<t.length;++a)i.appendChild(t[a]);return i}function A(e,t,n,r){var i=k(e,t,n,r);return i.setAttribute(`role`,`presentation`),i}var j=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd(`character`,n),r.moveStart(`character`,t),r};function M(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function ee(e){var t=e.ownerDocument||e,n;try{n=e.activeElement}catch{n=t.body||null}for(;n&&n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function N(e,t){var n=e.className;T(t).test(n)||(e.className+=(n?` `:``)+t)}function P(e,t){for(var n=e.split(` `),r=0;r<n.length;r++)n[r]&&!T(n[r]).test(t)&&(t+=` `+n[r]);return t}var F=function(e){e.select()};g?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(F=function(e){try{e.select()}catch{}});function I(e){return e.display.wrapper.ownerDocument}function te(e){return L(e.display.wrapper)}function L(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function R(e){return I(e).defaultView}function z(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function B(e,t,n){for(var r in t||={},e)e.hasOwnProperty(r)&&(n!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function V(e,t,n,r,i){t??(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var a=r||0,o=i||0;;){var s=e.indexOf(` `,a);if(s<0||s>=t)return o+(t-a);o+=s-a,o+=n-o%n,a=s+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};ne.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ne.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};function H(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}var re=50,U={toString:function(){return`CodeMirror.Pass`}},W={scroll:!1},ie={origin:`*mouse`},G={origin:`+move`};function ae(e,t,n){for(var r=0,i=0;;){var a=e.indexOf(` `,r);a==-1&&(a=e.length);var o=a-r;if(a==e.length||i+o>=t)return r+Math.min(o,t-i);if(i+=a-r,i+=n-i%n,r=a+1,i>=t)return r}}var oe=[``];function se(e){for(;oe.length<=e;)oe.push(K(oe)+` `);return oe[e]}function K(e){return e[e.length-1]}function ce(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function le(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function ue(){}function de(e,t){var n;return Object.create?n=Object.create(e):(ue.prototype=e,n=new ue),t&&B(t,n),n}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pe(e){return/\w/.test(e)||e>`€`&&(e.toUpperCase()!=e.toLowerCase()||fe.test(e))}function me(e,t){return t?t.source.indexOf(`\\w`)>-1&&pe(e)?!0:t.test(e):pe(e)}function he(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ge=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function _e(e){return e.charCodeAt(0)>=768&&ge.test(e)}function ve(e,t,n){for(;(n<0?t>0:t<e.length)&&_e(e.charAt(t));)t+=n;return t}function ye(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==t)return e(a)?t:n;e(a)?n=a:t=a+r}}function be(e,t,n,r){if(!e)return r(t,n,`ltr`,0);for(var i=!1,a=0;a<e.length;++a){var o=e[a];(o.from<n&&o.to>t||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),o.level==1?`rtl`:`ltr`,a),i=!0)}i||r(t,n,`ltr`)}var xe=null;function Se(e,t,n){var r;xe=null;for(var i=0;i<e.length;++i){var a=e[i];if(a.from<t&&a.to>t)return i;a.to==t&&(a.from!=a.to&&n==`before`?r=i:xe=i),a.from==t&&(a.from!=a.to&&n!=`before`?r=i:xe=i)}return r??xe}var Ce=(function(){var e=`bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN`,t=`nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111`;function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?`R`:1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?`r`:8192<=n&&n<=8203?`w`:n==8204?`b`:`L`}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function c(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l=t==`ltr`?`L`:`R`;if(e.length==0||t==`ltr`&&!r.test(e))return!1;for(var u=e.length,d=[],f=0;f<u;++f)d.push(n(e.charCodeAt(f)));for(var p=0,m=l;p<u;++p){var h=d[p];h==`m`?d[p]=m:m=h}for(var g=0,_=l;g<u;++g){var v=d[g];v==`1`&&_==`r`?d[g]=`n`:a.test(v)&&(_=v,v==`r`&&(d[g]=`R`))}for(var y=1,b=d[0];y<u-1;++y){var x=d[y];x==`+`&&b==`1`&&d[y+1]==`1`?d[y]=`1`:x==`,`&&b==d[y+1]&&(b==`1`||b==`n`)&&(d[y]=b),b=x}for(var S=0;S<u;++S){var C=d[S];if(C==`,`)d[S]=`N`;else if(C==`%`){var w=void 0;for(w=S+1;w<u&&d[w]==`%`;++w);for(var T=S&&d[S-1]==`!`||w<u&&d[w]==`1`?`1`:`N`,E=S;E<w;++E)d[E]=T;S=w-1}}for(var D=0,O=l;D<u;++D){var k=d[D];O==`L`&&k==`1`?d[D]=`L`:a.test(k)&&(O=k)}for(var A=0;A<u;++A)if(i.test(d[A])){var j=void 0;for(j=A+1;j<u&&i.test(d[j]);++j);for(var M=(A?d[A-1]:l)==`L`,ee=M==((j<u?d[j]:l)==`L`)?M?`L`:`R`:l,N=A;N<j;++N)d[N]=ee;A=j-1}for(var P=[],F,I=0;I<u;)if(o.test(d[I])){var te=I;for(++I;I<u&&o.test(d[I]);++I);P.push(new c(0,te,I))}else{var L=I,R=P.length,z=t==`rtl`?1:0;for(++I;I<u&&d[I]!=`L`;++I);for(var B=L;B<I;)if(s.test(d[B])){L<B&&(P.splice(R,0,new c(1,L,B)),R+=z);var V=B;for(++B;B<I&&s.test(d[B]);++B);P.splice(R,0,new c(2,V,B)),R+=z,L=B}else ++B;L<I&&P.splice(R,0,new c(1,L,I))}return t==`ltr`&&(P[0].level==1&&(F=e.match(/^\s+/))&&(P[0].from=F[0].length,P.unshift(new c(0,0,F[0].length))),K(P).level==1&&(F=e.match(/\s+$/))&&(K(P).to-=F[0].length,P.push(new c(0,u-F[0].length,u)))),t==`rtl`?P.reverse():P}})();function q(e,t){var n=e.order;return n??=e.order=Ce(e.text,t),n}var we=[],J=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent(`on`+t,n);else{var r=e._handlers||={};r[t]=(r[t]||we).concat(n)}};function Te(e,t){return e._handlers&&e._handlers[t]||we}function Ee(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent(`on`+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var a=H(i,n);a>-1&&(r[t]=i.slice(0,a).concat(i.slice(a+1)))}}}function Y(e,t){var n=Te(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function De(e,t,n){return typeof t==`string`&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Y(e,n||t.type,e,t),Ne(t)||t.codemirrorIgnore}function Oe(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)H(n,t[r])==-1&&n.push(t[r])}function ke(e,t){return Te(e,t).length>0}function Ae(e){e.prototype.on=function(e,t){J(this,e,t)},e.prototype.off=function(e,t){Ee(this,e,t)}}function je(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Me(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ne(e){return e.defaultPrevented==null?e.returnValue==0:e.defaultPrevented}function Pe(e){je(e),Me(e)}function Fe(e){return e.target||e.srcElement}function Ie(e){var t=e.which;return t??(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),y&&e.ctrlKey&&t==1&&(t=3),t}var Le=function(){if(o&&s<9)return!1;var e=k(`div`);return`draggable`in e||`dragDrop`in e}(),Re;function ze(e){if(Re==null){var t=k(`span`,`​`);O(e,k(`span`,[t,document.createTextNode(`x`)])),e.firstChild.offsetHeight!=0&&(Re=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&s<8))}var n=Re?k(`span`,`​`):k(`span`,`\xA0`,null,`display: inline-block; width: 1px; margin-right: -1px`);return n.setAttribute(`cm-text`,``),n}var Be;function Ve(e){if(Be!=null)return Be;var t=O(e,document.createTextNode(`AخA`)),n=j(t,0,1).getBoundingClientRect(),r=j(t,1,2).getBoundingClientRect();return D(e),!n||n.left==n.right?!1:Be=r.right-n.right<3}var He=`
2
2
 
3
3
  b`.split(/\n/).length==3?function(e){return e.split(/\r\n?|\n/)}:function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(`
4
4
  `,t);i==-1&&(i=e.length);var a=e.slice(t,e.charAt(i-1)==`\r`?i-1:i),o=a.indexOf(`\r`);o==-1?(n.push(a),t=i+1):(n.push(a.slice(0,o)),t+=o+1)}return n},Ue=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints(`StartToEnd`,t)!=0},We=(function(){var e=k(`div`);return`oncopy`in e?!0:(e.setAttribute(`oncopy`,`return;`),typeof e.oncopy==`function`)})(),Ge=null;function Ke(e){if(Ge!=null)return Ge;var t=O(e,k(`span`,`x`)),n=t.getBoundingClientRect(),r=j(t,0,1).getBoundingClientRect();return Ge=Math.abs(n.left-r.left)>1}var qe={},Je={};function Ye(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),qe[e]=t}function Xe(e,t){Je[e]=t}function Ze(e){if(typeof e==`string`&&Je.hasOwnProperty(e))e=Je[e];else if(e&&typeof e.name==`string`&&Je.hasOwnProperty(e.name)){var t=Je[e.name];typeof t==`string`&&(t={name:t}),e=de(t,e),e.name=t.name}else if(typeof e==`string`&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ze(`application/xml`);else if(typeof e==`string`&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ze(`application/json`);return typeof e==`string`?{name:e}:e||{name:`null`}}function Qe(e,t){t=Ze(t);var n=qe[t.name];if(!n)return Qe(e,`text/plain`);var r=n(e,t);if($e.hasOwnProperty(t.name)){var i=$e[t.name];for(var a in i)i.hasOwnProperty(a)&&(r.hasOwnProperty(a)&&(r[`_`+a]=r[a]),r[a]=i[a])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var $e={};function et(e,t){B(t,$e.hasOwnProperty(e)?$e[e]:$e[e]={})}function tt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function nt(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function rt(e,t,n){return e.startState?e.startState(t,n):!0}var it=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};it.prototype.eol=function(){return this.pos>=this.string.length},it.prototype.sol=function(){return this.pos==this.lineStart},it.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},it.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},it.prototype.eat=function(e){var t=this.string.charAt(this.pos);if(typeof e==`string`?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},it.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},it.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},it.prototype.skipToEnd=function(){this.pos=this.string.length},it.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},it.prototype.backUp=function(e){this.pos-=e},it.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},it.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},it.prototype.match=function(e,t,n){if(typeof e==`string`){var r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&t!==!1&&(this.pos+=i[0].length),i)}},it.prototype.current=function(){return this.string.slice(this.start,this.pos)},it.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},it.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},it.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function X(e,t){if(t-=e.first,t<0||t>=e.size)throw Error(`There is no line `+(t+e.first)+` in the document.`);for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],a=i.chunkSize();if(t<a){n=i;break}t-=a}return n.lines[t]}function at(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var a=e.text;i==n.line&&(a=a.slice(0,n.ch)),i==t.line&&(a=a.slice(t.ch)),r.push(a),++i}),r}function ot(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function st(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function ct(e){if(e.parent==null)return null;for(var t=e.parent,n=H(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function lt(e,t){var n=e.first;outer:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],a=i.height;if(t<a){e=i;continue outer}t-=a,n+=i.chunkSize()}return n}while(!e.lines);for(var o=0;o<e.lines.length;++o){var s=e.lines[o].height;if(t<s)break;t-=s}return n+o}function ut(e,t){return t>=e.first&&t<e.first+e.size}function dt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function Z(e,t,n){if(n===void 0&&(n=null),!(this instanceof Z))return new Z(e,t,n);this.line=e,this.ch=t,this.sticky=n}function Q(e,t){return e.line-t.line||e.ch-t.ch}function ft(e,t){return e.sticky==t.sticky&&Q(e,t)==0}function pt(e){return Z(e.line,e.ch)}function mt(e,t){return Q(e,t)<0?t:e}function ht(e,t){return Q(e,t)<0?e:t}function gt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function $(e,t){if(t.line<e.first)return Z(e.first,0);var n=e.first+e.size-1;return t.line>n?Z(n,X(e,n).text.length):_t(t,X(e,t.line).text.length)}function _t(e,t){var n=e.ch;return n==null||n>t?Z(e.line,t):n<0?Z(e.line,0):e}function vt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=$(e,t[r]);return n}var yt=function(e,t){this.state=e,this.lookAhead=t},bt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};bt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},bt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,``),size:this.baseTokens[this.baseTokenPos]-e}},bt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},bt.fromSaved=function(e,t,n){return t instanceof yt?new bt(e,tt(e.mode,t.state),n,t.lookAhead):new bt(e,tt(e.mode,t),n)},bt.prototype.save=function(e){var t=e===!1?this.state:tt(this.doc.mode,this.state);return this.maxLookAhead>0?new yt(t,this.maxLookAhead):t};function xt(e,t,n,r){var i=[e.state.modeGen],a={};At(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},a,r);for(var o=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],c=1,l=0;n.state=!0,At(e,t.text,s.mode,n,function(e,t){for(var n=c;l<e;){var r=i[c];r>e&&i.splice(c,1,e,i[c+1],r),c+=2,l=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,c-n,e,`overlay `+t),c=n+2;else for(;n<c;n+=2){var a=i[n+1];i[n+1]=(a?a+` `:``)+`overlay `+t}},a),n.state=o,n.baseTokens=null,n.baseTokenPos=1},c=0;c<e.state.overlays.length;++c)s(c);return{styles:i,classes:a.bgClass||a.textClass?a:null}}function St(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Ct(e,ct(t)),i=t.text.length>e.options.maxHighlightLength&&tt(e.doc.mode,r.state),a=xt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=a.styles,a.classes?t.styleClasses=a.classes:t.styleClasses&&=null,n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Ct(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new bt(r,!0,t);var a=jt(e,t,n),o=a>r.first&&X(r,a-1).stateAfter,s=o?bt.fromSaved(r,o,a):new bt(r,rt(r.mode),a);return r.iter(a,t,function(n){wt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()}),n&&(r.modeFrontier=s.line),s}function wt(e,t,n,r){var i=e.doc.mode,a=new it(t,e.options.tabSize,n);for(a.start=a.pos=r||0,t==``&&Tt(i,n.state);!a.eol();)Et(i,a,n.state),a.start=a.pos}function Tt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=nt(e,t);if(n.mode.blankLine)return n.mode.blankLine(n.state)}}function Et(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=nt(e,n).mode);var a=e.token(t,n);if(t.pos>t.start)return a}throw Error(`Mode `+e.name+` failed to advance stream.`)}var Dt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Ot(e,t,n,r){var i=e.doc,a=i.mode,o;t=$(i,t);var s=X(i,t.line),c=Ct(e,t.line,n),l=new it(s.text,e.options.tabSize,c),u;for(r&&(u=[]);(r||l.pos<t.ch)&&!l.eol();)l.start=l.pos,o=Et(a,l,c.state),r&&u.push(new Dt(l,o,tt(i.mode,c.state)));return r?u:new Dt(l,o,c.state)}function kt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?`bgClass`:`textClass`;t[r]==null?t[r]=n[2]:RegExp(`(?:^|\\s)`+n[2]+`(?:$|\\s)`).test(t[r])||(t[r]+=` `+n[2])}return e}function At(e,t,n,r,i,a,o){var s=n.flattenSpans;s??=e.options.flattenSpans;var c=0,l=null,u=new it(t,e.options.tabSize,r),d,f=e.options.addModeClass&&[null];for(t==``&&kt(Tt(n,r.state),a);!u.eol();){if(u.pos>e.options.maxHighlightLength?(s=!1,o&&wt(e,t,r,u.pos),u.pos=t.length,d=null):d=kt(Et(n,u,r.state,f),a),f){var p=f[0].name;p&&(d=`m-`+(d?p+` `+d:p))}if(!s||l!=d){for(;c<u.start;)c=Math.min(u.start,c+5e3),i(c,l);l=d}u.start=u.pos}for(;c<u.pos;){var m=Math.min(u.pos,c+5e3);i(m,l),c=m}}function jt(e,t,n){for(var r,i,a=e.doc,o=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>o;--s){if(s<=a.first)return a.first;var c=X(a,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof yt?l.lookAhead:0)<=a.modeFrontier))return s;var u=V(c.text,null,e.options.tabSize);(i==null||r>u)&&(i=s-1,r=u)}return i}function Mt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=X(e,r).stateAfter;if(i&&(!(i instanceof yt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Nt=!1,Pt=!1;function Ft(){Nt=!0}function It(){Pt=!0}function Lt(e,t,n){this.marker=e,this.from=t,this.to=n}function Rt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function zt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||=[]).push(e[r]);return n}function Bt(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||=new WeakSet);r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Vt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(a.from==null||(o.inclusiveLeft?a.from<=t:a.from<t)||a.from==t&&o.type==`bookmark`&&(!n||!a.marker.insertLeft)){var s=a.to==null||(o.inclusiveRight?a.to>=t:a.to>t);(r||=[]).push(new Lt(o,a.from,s?null:a.to))}}return r}function Ht(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(a.to==null||(o.inclusiveRight?a.to>=t:a.to>t)||a.from==t&&o.type==`bookmark`&&(!n||a.marker.insertLeft)){var s=a.from==null||(o.inclusiveLeft?a.from<=t:a.from<t);(r||=[]).push(new Lt(o,s?null:a.from-t,a.to==null?null:a.to-t))}}return r}function Ut(e,t){if(t.full)return null;var n=ut(e,t.from.line)&&X(e,t.from.line).markedSpans,r=ut(e,t.to.line)&&X(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,a=t.to.ch,o=Q(t.from,t.to)==0,s=Vt(n,i,o),c=Ht(r,a,o),l=t.text.length==1,u=K(t.text).length+(l?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(f.to==null){var p=Rt(c,f.marker);p?l&&(f.to=p.to==null?null:p.to+u):f.to=i}}if(c)for(var m=0;m<c.length;++m){var h=c[m];h.to!=null&&(h.to+=u),h.from==null?Rt(s,h.marker)||(h.from=u,l&&(s||=[]).push(h)):(h.from+=u,l&&(s||=[]).push(h))}s&&=Wt(s),c&&c!=s&&(c=Wt(c));var g=[s];if(!l){var _=t.text.length-2,v;if(_>0&&s)for(var y=0;y<s.length;++y)s[y].to??(v||=[]).push(new Lt(s[y].marker,null,null));for(var b=0;b<_;++b)g.push(v);g.push(c)}return g}function Wt(e){for(var t=0;t<e.length;++t){var n=e[t];n.from!=null&&n.from==n.to&&n.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Gt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;n.readOnly&&(!r||H(r,n)==-1)&&(r||=[]).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],a=0;a<r.length;++a)for(var o=r[a],s=o.find(0),c=0;c<i.length;++c){var l=i[c];if(!(Q(l.to,s.from)<0||Q(l.from,s.to)>0)){var u=[c,1],d=Q(l.from,s.from),f=Q(l.to,s.to);(d<0||!o.inclusiveLeft&&!d)&&u.push({from:l.from,to:s.from}),(f>0||!o.inclusiveRight&&!f)&&u.push({from:s.to,to:l.to}),i.splice.apply(i,u),c+=u.length-3}}return i}function Kt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function qt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Jt(e){return e.inclusiveLeft?-1:0}function Yt(e){return e.inclusiveRight?1:0}function Xt(e,t){var n=e.lines.length-t.lines.length;if(n!=0)return n;var r=e.find(),i=t.find(),a=Q(r.from,i.from)||Jt(e)-Jt(t);return a?-a:Q(r.to,i.to)||Yt(e)-Yt(t)||t.id-e.id}function Zt(e,t){var n=Pt&&e.markedSpans,r;if(n)for(var i=void 0,a=0;a<n.length;++a)i=n[a],i.marker.collapsed&&(t?i.from:i.to)==null&&(!r||Xt(r,i.marker)<0)&&(r=i.marker);return r}function Qt(e){return Zt(e,!0)}function $t(e){return Zt(e,!1)}function en(e,t){var n=Pt&&e.markedSpans,r;if(n)for(var i=0;i<n.length;++i){var a=n[i];a.marker.collapsed&&(a.from==null||a.from<t)&&(a.to==null||a.to>t)&&(!r||Xt(r,a.marker)<0)&&(r=a.marker)}return r}function tn(e,t,n,r,i){var a=X(e,t),o=Pt&&a.markedSpans;if(o)for(var s=0;s<o.length;++s){var c=o[s];if(c.marker.collapsed){var l=c.marker.find(0),u=Q(l.from,n)||Jt(c.marker)-Jt(i),d=Q(l.to,r)||Yt(c.marker)-Yt(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?Q(l.to,n)>=0:Q(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?Q(l.from,r)<=0:Q(l.from,r)<0)))return!0}}}function nn(e){for(var t;t=Qt(e);)e=t.find(-1,!0).line;return e}function rn(e){for(var t;t=$t(e);)e=t.find(1,!0).line;return e}function an(e){for(var t,n;t=$t(e);)e=t.find(1,!0).line,(n||=[]).push(e);return n}function on(e,t){var n=X(e,t),r=nn(n);return n==r?t:ct(r)}function sn(e,t){if(t>e.lastLine())return t;var n=X(e,t),r;if(!cn(e,n))return t;for(;r=$t(n);)n=r.find(1,!0).line;return ct(n)+1}function cn(e,t){var n=Pt&&t.markedSpans;if(n){for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed&&(r.from==null||!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&ln(e,t,r)))return!0}}function ln(e,t,n){if(n.to==null){var r=n.marker.find(1,!0);return ln(e,r.line,Rt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,a=0;a<t.markedSpans.length;++a)if(i=t.markedSpans[a],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(i.to==null||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&ln(e,t,i))return!0}function un(e){e=nn(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var a=n.parent;a;n=a,a=n.parent)for(var o=0;o<a.children.length;++o){var s=a.children[o];if(s==n)break;t+=s.height}return t}function dn(e){if(e.height==0)return 0;for(var t=e.text.length,n,r=e;n=Qt(r);){var i=n.find(0,!0);r=i.from.line,t+=i.from.ch-i.to.ch}for(r=e;n=$t(r);){var a=n.find(0,!0);t-=r.text.length-a.from.ch,r=a.to.line,t+=r.text.length-a.to.ch}return t}function fn(e){var t=e.display,n=e.doc;t.maxLine=X(n,n.first),t.maxLineLength=dn(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=dn(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var pn=function(e,t,n){this.text=e,qt(this,t),this.height=n?n(this):1};pn.prototype.lineNo=function(){return ct(this)},Ae(pn);function mn(e,t,n,r){e.text=t,e.stateAfter&&=null,e.styles&&=null,e.order!=null&&(e.order=null),Kt(e),qt(e,n);var i=r?r(e):1;i!=e.height&&st(e,i)}function hn(e){e.parent=null,Kt(e)}var gn={},_n={};function vn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?_n:gn;return n[e]||(n[e]=e.replace(/\S+/g,`cm-$&`))}function yn(e,t){var n=A(`span`,null,null,c?`padding-right: .1px`:null),r={pre:A(`pre`,[n],`CodeMirror-line`),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption(`lineWrapping`)};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var a=i?t.rest[i-1]:t.line,o=void 0;r.pos=0,r.addToken=xn,Ve(e.display.measure)&&(o=q(a,e.doc.direction))&&(r.addToken=Cn(r.addToken,o)),r.map=[],Tn(a,r,St(e,a,t!=e.display.externalMeasured&&ct(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=P(a.styleClasses.bgClass,r.bgClass||``)),a.styleClasses.textClass&&(r.textClass=P(a.styleClasses.textClass,r.textClass||``))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(ze(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(`.cm-tab`))&&(r.content.className=`cm-tab-wrap-hack`)}return Y(e,`renderLine`,e,t.line,r.pre),r.pre.className&&(r.textClass=P(r.pre.className,r.textClass||``)),r}function bn(e){var t=k(`span`,`•`,`cm-invalidchar`);return t.title=`\\u`+e.charCodeAt(0).toString(16),t.setAttribute(`aria-label`,t.title),t}function xn(e,t,n,r,i,a,c){if(t){var l=e.splitSpaces?Sn(t,e.trailingSpace):t,u=e.cm.state.specialChars,d=!1,f;if(!u.test(t))e.col+=t.length,f=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,f),o&&s<9&&(d=!0),e.pos+=t.length;else{f=document.createDocumentFragment();for(var p=0;;){u.lastIndex=p;var m=u.exec(t),h=m?m.index-p:t.length-p;if(h){var g=document.createTextNode(l.slice(p,p+h));o&&s<9?f.appendChild(k(`span`,[g])):f.appendChild(g),e.map.push(e.pos,e.pos+h,g),e.col+=h,e.pos+=h}if(!m)break;p+=h+1;var _=void 0;if(m[0]==` `){var v=e.cm.options.tabSize,y=v-e.col%v;_=f.appendChild(k(`span`,se(y),`cm-tab`)),_.setAttribute(`role`,`presentation`),_.setAttribute(`cm-text`,` `),e.col+=y}else m[0]==`\r`||m[0]==`
@@ -1 +1 @@
1
- import{G as e,Jt as t,Rt as n,Tt as r,Vt as i,W as a,c as o,ct as s,en as c,ft as l,g as u,in as d,it as f,jt as p,kt as m,l as h,lt as g,mt as _,ot as v,p as y,pt as b,qt as x,st as S,tn as C,ut as w,w as T,x as ee,y as te}from"./axTMqr-M.js";import{t as E}from"./CkP2VQQ5.js";import"./DQtLZa7C.js";import"./Db5DS6RJ.js";import"./DQcokXty.js";import{r as D,t as O}from"./h9JT8fy9.js";import"./DnpfwSMy.js";import{r as k,t as A}from"./k3tsOkpc.js";import{a as j,c as M,n as N,t as ne}from"./C1B7Lb_i.js";import{t as re}from"./DO0Faz7t.js";import{t as P}from"./DRSBujEZ.js";import{t as F}from"./jnbX5wk_.js";import{t as ie}from"./CEQkJ3Wx.js";import{t as I}from"./DBzHDCAH.js";var L={flex:`~ row gap-1`,"of-hidden":``},R={flex:`~ row gap-1`,"ws-nowrap":``},z={p2:``,flex:`~ col gap-1`},B=_({__name:`Importers`,props:{package:{},session:{},showVersion:{type:Boolean}},setup(e){let t=e,n=v(()=>{let e=new Map;return t.package.files.filter(e=>!!e.importers).flatMap(e=>e.importers).filter(e=>!e.path.startsWith(t.package?.dir??``)).forEach(t=>{e.set(t.path,t)}),Array.from(e.values())});return(t,a)=>{let o=O,c=D,l=p(`VMenu`);return r(),w(`div`,L,[S(`div`,R,[b(o,{id:n.value[0].path,session:e.session,link:``},null,8,[`id`,`session`]),n.value[0].version&&e.showVersion?(r(),s(c,{key:0,text:n.value[0].version,as:`span`},null,8,[`text`])):g(``,!0)]),n.value.length>1?(r(),s(l,{key:0,delay:{show:200,hide:0},"flex-none":``},{popper:i(()=>[S(`div`,z,[(r(!0),w(f,null,m(n.value,t=>(r(),w(`div`,{key:t.path,flex:`~ row gap-1 items-center nowrap`,"w-max":``},[b(o,{id:t.path,session:e.session,"ws-nowrap":``,"flex-1":``,"disable-tooltip":``,link:``},null,8,[`id`,`session`]),t.version&&e.showVersion?(r(),s(c,{key:0,text:`v${t.version}`,as:`span`},null,8,[`text`])):g(``,!0)]))),128))])]),default:i(()=>[b(c,{text:`+${n.value.length}`,color:100,class:`text-xs rounded px1`},null,8,[`text`])]),_:1})):g(``,!0)])}}}),V=Object.assign(B,{__name:`PackagesImporters`}),H={role:`table`,"min-w-max":``,border:`~ base rounded-xl`},U={role:`row`,class:`border-b border-base`,flex:`~ row`},W=[`title`],G={key:0,"font-mono":``},K={key:0,title:`Package version`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"min-w40":``,"ws-nowrap":``,"text-left":``,"py1.5":``,px2:``,"font-600":``},q={flex:`~ row gap1 items-center justify-end`,"w-full":``,relative:``,pr2:``},J={key:0,role:`cell`,"font-mono":``,"flex-none":``,"min-w80":``,"py1.5":``,px2:``,"ws-nowrap":``,"text-sm":``},Y={role:`cell`,flex:`~ items-center justify-end`,"flex-none":``,"font-mono":``,"py1.5":``,px2:``,"text-sm":``,"min-w40":``,op80:``},X={p2:``,flex:`~ col gap-1`},Z={w24:``,"inline-flex":``},ae={role:`cell`,flex:`~ items-center`,"flex-1":``,"font-mono":``,"py1.5":``,pl20:``,pr2:``,"text-sm":``,op80:``},oe={key:1},se=_({__name:`Table`,props:{packages:{},session:{},disableSizeSort:{type:Boolean,default:!1},groupView:{type:Boolean,default:!1}},setup(e){let t=a(),{state:n,next:o}=h([``,`desc`,`asc`],{initialValue:A.value.packageSizeSortType});function u(){o(),A.value.packageSizeSortType=n.value}return(a,o)=>{let p=F,h=k,_=O,v=V,y=E,x=P;return r(),w(`div`,H,[S(`div`,U,[S(`div`,{title:e.groupView?`Package`:`Bundled packages`,role:`columnheader`,"rounded-tl-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,px2:``,"font-600":``,class:C([e.groupView?`min-w40`:`min-w80`])},[e.groupView?(r(),w(`div`,G,[b(p,{name:e.packages?.[0]?.name},null,8,[`name`])])):(r(),w(f,{key:1},[l(` Package `)],64))],10,W),e.groupView?g(``,!0):(r(),w(`div`,K,` Version `)),S(`div`,{title:`Transformed code size`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,"font-600":``,"min-w40":``,class:C([e.groupView?`px2`:`pl2`])},[S(`button`,q,[o[0]||=l(` Size `,-1),e.disableSizeSort?g(``,!0):(r(),w(`span`,{key:0,"w-6":``,"h-6":``,"rounded-full":``,"cursor-pointer":``,hover:`bg-active`,flex:`~ items-center justify-center`,onClick:u},[S(`i`,{"text-xs":``,class:C([c(n)===`asc`?`i-ph-arrow-up-duotone`:`i-ph-arrow-down-duotone`,c(n)?`op100 text-primary`:`op50`])},null,2)]))])],2),o[1]||=S(`div`,{title:`Importers`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,pl20:``,pr2:``,"font-600":``,"min-w50":``},` Importers `,-1)]),e.packages.length?(r(),s(x,{key:0,role:`rowgroup`,items:e.packages,"key-prop":`dir`},{default:i(({item:n,index:a})=>[b(y,{role:`row`,flex:`~ row`,class:C([`border-base border-b-1 border-dashed`,[a===e.packages.length-1?`border-b-0`:``]]),to:{path:c(t).path,query:{package:`${n.name}@${n.version}`}}},{default:i(()=>[e.groupView?g(``,!0):(r(),w(`div`,J,[b(p,{name:n.name},null,8,[`name`])])),S(`div`,{role:`cell`,flex:`~ items-center`,"text-left":``,"flex-none":``,"font-mono":``,"py1.5":``,px2:``,"text-sm":``,"min-w40":``,op80:``,class:C({"text-primary":n.duplicated})},d(n.version),3),S(`div`,Y,[b(c(T),{delay:{show:200,hide:0}},{popper:i(()=>[S(`div`,X,[(r(!0),w(f,null,m(n.files.filter(e=>!!e.transformedCodeSize),t=>(r(),w(`div`,{key:t.path,flex:`~ row gap-1 items-center nowrap`,"w-max":``},[S(`span`,Z,[b(h,{bytes:t.transformedCodeSize},null,8,[`bytes`])]),b(_,{id:t.path,session:e.session,"ws-nowrap":``,"flex-1":``,"disable-tooltip":``,link:``,cwd:n.dir},null,8,[`id`,`session`,`cwd`])]))),128))])]),default:i(()=>[b(h,{bytes:n.transformedCodeSize},null,8,[`bytes`])]),_:2},1024)]),S(`div`,ae,[b(v,{package:n,session:e.session,"show-version":e.groupView},null,8,[`package`,`session`,`show-version`])])]),_:2},1032,[`class`,`to`])]),_:1},8,[`items`])):(r(),w(`div`,oe,[...o[2]||=[S(`div`,{p4:``},[S(`div`,{"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},[S(`p`,null,` No data `)])],-1)]]))])}}}),Q=Object.assign(se,{__name:`PackagesTable`}),ce={key:1,p4:``},le=_({__name:`Duplicated`,props:{packages:{},session:{}},setup(e){let t=e,n=v(()=>t.packages.filter(e=>e.duplicated)),i=v(()=>n.value.reduce((e,t)=>(e[t.name]=[...e[t.name]||[],t],e),{}));return(t,a)=>{let o=Q;return n.value.length?(r(!0),w(f,{key:0},m(i.value,(t,n)=>(r(),w(`div`,{key:n},[b(o,{packages:t,session:e.session,"group-view":``,"disable-size-sort":``},null,8,[`packages`,`session`])]))),128)):(r(),w(`div`,ce,[...a[0]||=[S(`div`,{"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},` No duplicate packages `,-1)]]))}}}),ue=Object.assign(le,{__name:`PackagesDuplicated`}),de={key:1,relative:``,"max-h-screen":``,"of-hidden":``},fe={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},pe={flex:`~ gap-2 items-center`,p2:``,border:`t base`},$=[`onClick`],me={"of-auto":``,"h-screen":``,flex:`~ col gap-2`,pt44:``,px4:``,pb4:``},he={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},ge={op50:``},_e={key:1,"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},ve={key:0,"bg-glass":``,border:`~ base rounded`,p2:``,"text-sm":``,flex:`~ col gap-2`},ye={flex:`~ gap-1 items-center`},be={flex:`~ gap-1 items-center`},xe=_({__name:`packages`,props:{session:{}},setup(p){let h=p,_=x(y()),T=a(),E=e(),D=[{match:/.*/,name:`direct`,description:`Direct Dependencies`,icon:`i-octicon:package-dependencies-24 light:filter-invert-30!`},{match:/.*/,name:`transitive`,description:`Transitive Dependencies`,icon:`i-octicon:package-24 light:filter-invert-30!`}],O=te(),P=t({search:``,selected:[`direct`,`transitive`]}),{state:F,isLoading:L}=o(async()=>await O.value[`vite:rolldown:get-packages`]?.({session:h.session.id}),null),R=u(()=>F.value,()=>new ie(F.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),z=v(()=>F.value?Object.values(F.value.reduce((e,t)=>(e[t.name]=(e[t.name]||0)+1,e),{})).filter(e=>e>1).length:0),B=v(()=>[{label:`Table`,value:`table`,icon:`i-ph-table-duotone`},{label:`Treemap`,value:`treemap`,icon:`i-ph-checkerboard-duotone`},{label:`Duplicate Packages${z.value>0?` (${z.value})`:``}`,value:`duplicate-packages`,icon:`i-ph-package-duotone`}]),V=v(()=>P.value.search?R.value.search(P.value.search).map(e=>e.item):[...F.value||[]]),H=v(()=>{let e=A.value.packageSizeSortType,t=[...V.value].sort((e,t)=>(e.name||``).localeCompare(t.name||``));return(e?t.sort((t,n)=>e===`asc`?t.transformedCodeSize-n.transformedCodeSize:n.transformedCodeSize-t.transformedCodeSize):t).filter(e=>!P.value.selected||P.value.selected.some(t=>t.match(e.type)))});function U(e){A.value.packageViewType=e}let{tree:W,chartOptions:G,graph:K,nodeHover:q,nodeSelected:J,selectedNode:Y,selectNode:X,buildGraph:Z}=ne({data:H,nameKey:`name`,sizeKey:`transformedCodeSize`,rootText:`Packages`,nodeType:`package`,graphOptions:{onHover(e){e&&!T.query.package&&(q.value=e),e===null&&(q.value=void 0)},onClick(e){e.meta?.type===`package`&&E.replace({query:{...T.query,package:`${e.meta?.name}@${e.meta?.version}`}})},onLeave(){q.value=void 0},onSelect(e){J.value=e||W.value.root,Y.value=e?.meta}},onUpdate(){A.value.packageViewType===`treemap`&&(K.value=new j(W.value.root,{...G.value,selectedPaddingRatio:0}))}});return n(()=>A.value.packageViewType,()=>{Z()}),(e,t)=>{let n=ee,a=re,o=Q,u=N,h=ue,v=k,y=M;return c(L)?(r(),s(n,{key:0})):(r(),w(`div`,de,[S(`div`,fe,[b(a,{modelValue:P.value,"onUpdate:modelValue":t[0]||=e=>P.value=e,rules:D},{default:i(()=>[S(`div`,pe,[t[2]||=S(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(r(!0),w(f,null,m(B.value,e=>(r(),w(`button`,{key:e.value,"btn-action":``,class:C(c(A).packageViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>U(e.value)},[S(`div`,{class:C(e.icon)},null,2),l(` `+d(e.label),1)],10,$))),128))])]),_:1},8,[`modelValue`])]),S(`div`,me,[c(A).packageViewType===`table`?(r(),w(f,{key:0},[b(o,{packages:H.value,session:p.session},null,8,[`packages`,`session`]),S(`div`,he,[S(`span`,ge,d(V.value.length)+` of `+d(c(F)?.length||0),1)])],64)):c(A).packageViewType===`treemap`?(r(),w(f,{key:1},[c(K)&&H.value.length?(r(),s(I,{key:0,graph:c(K),selected:c(J),onSelect:t[1]||=e=>c(X)(e)},{default:i(({selected:e,options:t,onSelect:n})=>[b(u,{border:`b base`,py2:``,"min-h-10":``,selected:e,options:t,onSelect:n},null,8,[`selected`,`options`,`onSelect`])]),_:1},8,[`graph`,`selected`])):(r(),w(`span`,_e,` No Data `))],64)):c(A).packageViewType===`duplicate-packages`?(r(),s(h,{key:2,packages:H.value,session:p.session},null,8,[`packages`,`session`])):g(``,!0)]),b(y,{"hover-x":_.x,"hover-y":_.y},{default:i(()=>[c(q)?.meta?(r(),w(`div`,ve,[S(`div`,ye,d(c(q).text),1),S(`div`,be,[b(v,{bytes:c(q).size,percent:!1},null,8,[`bytes`])])])):g(``,!0)]),_:1},8,[`hover-x`,`hover-y`])]))}}});export{xe as default};
1
+ import{G as e,Jt as t,Rt as n,Tt as r,Vt as i,W as a,c as o,ct as s,en as c,ft as l,g as u,in as d,it as f,jt as p,kt as m,l as h,lt as g,mt as _,ot as v,p as y,pt as b,qt as x,st as S,tn as C,ut as w,w as T,x as ee,y as te}from"./C-xw4DlO.js";import{t as E}from"./jo347JsK.js";import"./DQtLZa7C.js";import"./Dnw1sKCY.js";import"./B3PiPV-x.js";import{r as D,t as O}from"./B7TCfKhI.js";import"./DnpfwSMy.js";import{r as k,t as A}from"./DlbkLyV4.js";import{a as j,c as M,n as N,t as ne}from"./HV-uTnTx.js";import{t as re}from"./Dp55yonU.js";import{t as P}from"./BJv7hFBm.js";import{t as F}from"./fQmYF_tr.js";import{t as ie}from"./CEQkJ3Wx.js";import{t as I}from"./BnFT81HV.js";var L={flex:`~ row gap-1`,"of-hidden":``},R={flex:`~ row gap-1`,"ws-nowrap":``},z={p2:``,flex:`~ col gap-1`},B=_({__name:`Importers`,props:{package:{},session:{},showVersion:{type:Boolean}},setup(e){let t=e,n=v(()=>{let e=new Map;return t.package.files.filter(e=>!!e.importers).flatMap(e=>e.importers).filter(e=>!e.path.startsWith(t.package?.dir??``)).forEach(t=>{e.set(t.path,t)}),Array.from(e.values())});return(t,a)=>{let o=O,c=D,l=p(`VMenu`);return r(),w(`div`,L,[S(`div`,R,[b(o,{id:n.value[0].path,session:e.session,link:``},null,8,[`id`,`session`]),n.value[0].version&&e.showVersion?(r(),s(c,{key:0,text:n.value[0].version,as:`span`},null,8,[`text`])):g(``,!0)]),n.value.length>1?(r(),s(l,{key:0,delay:{show:200,hide:0},"flex-none":``},{popper:i(()=>[S(`div`,z,[(r(!0),w(f,null,m(n.value,t=>(r(),w(`div`,{key:t.path,flex:`~ row gap-1 items-center nowrap`,"w-max":``},[b(o,{id:t.path,session:e.session,"ws-nowrap":``,"flex-1":``,"disable-tooltip":``,link:``},null,8,[`id`,`session`]),t.version&&e.showVersion?(r(),s(c,{key:0,text:`v${t.version}`,as:`span`},null,8,[`text`])):g(``,!0)]))),128))])]),default:i(()=>[b(c,{text:`+${n.value.length}`,color:100,class:`text-xs rounded px1`},null,8,[`text`])]),_:1})):g(``,!0)])}}}),V=Object.assign(B,{__name:`PackagesImporters`}),H={role:`table`,"min-w-max":``,border:`~ base rounded-xl`},U={role:`row`,class:`border-b border-base`,flex:`~ row`},W=[`title`],G={key:0,"font-mono":``},K={key:0,title:`Package version`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"min-w40":``,"ws-nowrap":``,"text-left":``,"py1.5":``,px2:``,"font-600":``},q={flex:`~ row gap1 items-center justify-end`,"w-full":``,relative:``,pr2:``},J={key:0,role:`cell`,"font-mono":``,"flex-none":``,"min-w80":``,"py1.5":``,px2:``,"ws-nowrap":``,"text-sm":``},Y={role:`cell`,flex:`~ items-center justify-end`,"flex-none":``,"font-mono":``,"py1.5":``,px2:``,"text-sm":``,"min-w40":``,op80:``},X={p2:``,flex:`~ col gap-1`},Z={w24:``,"inline-flex":``},ae={role:`cell`,flex:`~ items-center`,"flex-1":``,"font-mono":``,"py1.5":``,pl20:``,pr2:``,"text-sm":``,op80:``},oe={key:1},se=_({__name:`Table`,props:{packages:{},session:{},disableSizeSort:{type:Boolean,default:!1},groupView:{type:Boolean,default:!1}},setup(e){let t=a(),{state:n,next:o}=h([``,`desc`,`asc`],{initialValue:A.value.packageSizeSortType});function u(){o(),A.value.packageSizeSortType=n.value}return(a,o)=>{let p=F,h=k,_=O,v=V,y=E,x=P;return r(),w(`div`,H,[S(`div`,U,[S(`div`,{title:e.groupView?`Package`:`Bundled packages`,role:`columnheader`,"rounded-tl-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,px2:``,"font-600":``,class:C([e.groupView?`min-w40`:`min-w80`])},[e.groupView?(r(),w(`div`,G,[b(p,{name:e.packages?.[0]?.name},null,8,[`name`])])):(r(),w(f,{key:1},[l(` Package `)],64))],10,W),e.groupView?g(``,!0):(r(),w(`div`,K,` Version `)),S(`div`,{title:`Transformed code size`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,"font-600":``,"min-w40":``,class:C([e.groupView?`px2`:`pl2`])},[S(`button`,q,[o[0]||=l(` Size `,-1),e.disableSizeSort?g(``,!0):(r(),w(`span`,{key:0,"w-6":``,"h-6":``,"rounded-full":``,"cursor-pointer":``,hover:`bg-active`,flex:`~ items-center justify-center`,onClick:u},[S(`i`,{"text-xs":``,class:C([c(n)===`asc`?`i-ph-arrow-up-duotone`:`i-ph-arrow-down-duotone`,c(n)?`op100 text-primary`:`op50`])},null,2)]))])],2),o[1]||=S(`div`,{title:`Importers`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,pl20:``,pr2:``,"font-600":``,"min-w50":``},` Importers `,-1)]),e.packages.length?(r(),s(x,{key:0,role:`rowgroup`,items:e.packages,"key-prop":`dir`},{default:i(({item:n,index:a})=>[b(y,{role:`row`,flex:`~ row`,class:C([`border-base border-b-1 border-dashed`,[a===e.packages.length-1?`border-b-0`:``]]),to:{path:c(t).path,query:{package:`${n.name}@${n.version}`}}},{default:i(()=>[e.groupView?g(``,!0):(r(),w(`div`,J,[b(p,{name:n.name},null,8,[`name`])])),S(`div`,{role:`cell`,flex:`~ items-center`,"text-left":``,"flex-none":``,"font-mono":``,"py1.5":``,px2:``,"text-sm":``,"min-w40":``,op80:``,class:C({"text-primary":n.duplicated})},d(n.version),3),S(`div`,Y,[b(c(T),{delay:{show:200,hide:0}},{popper:i(()=>[S(`div`,X,[(r(!0),w(f,null,m(n.files.filter(e=>!!e.transformedCodeSize),t=>(r(),w(`div`,{key:t.path,flex:`~ row gap-1 items-center nowrap`,"w-max":``},[S(`span`,Z,[b(h,{bytes:t.transformedCodeSize},null,8,[`bytes`])]),b(_,{id:t.path,session:e.session,"ws-nowrap":``,"flex-1":``,"disable-tooltip":``,link:``,cwd:n.dir},null,8,[`id`,`session`,`cwd`])]))),128))])]),default:i(()=>[b(h,{bytes:n.transformedCodeSize},null,8,[`bytes`])]),_:2},1024)]),S(`div`,ae,[b(v,{package:n,session:e.session,"show-version":e.groupView},null,8,[`package`,`session`,`show-version`])])]),_:2},1032,[`class`,`to`])]),_:1},8,[`items`])):(r(),w(`div`,oe,[...o[2]||=[S(`div`,{p4:``},[S(`div`,{"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},[S(`p`,null,` No data `)])],-1)]]))])}}}),Q=Object.assign(se,{__name:`PackagesTable`}),ce={key:1,p4:``},le=_({__name:`Duplicated`,props:{packages:{},session:{}},setup(e){let t=e,n=v(()=>t.packages.filter(e=>e.duplicated)),i=v(()=>n.value.reduce((e,t)=>(e[t.name]=[...e[t.name]||[],t],e),{}));return(t,a)=>{let o=Q;return n.value.length?(r(!0),w(f,{key:0},m(i.value,(t,n)=>(r(),w(`div`,{key:n},[b(o,{packages:t,session:e.session,"group-view":``,"disable-size-sort":``},null,8,[`packages`,`session`])]))),128)):(r(),w(`div`,ce,[...a[0]||=[S(`div`,{"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},` No duplicate packages `,-1)]]))}}}),ue=Object.assign(le,{__name:`PackagesDuplicated`}),de={key:1,relative:``,"max-h-screen":``,"of-hidden":``},fe={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},pe={flex:`~ gap-2 items-center`,p2:``,border:`t base`},$=[`onClick`],me={"of-auto":``,"h-screen":``,flex:`~ col gap-2`,pt44:``,px4:``,pb4:``},he={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},ge={op50:``},_e={key:1,"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},ve={key:0,"bg-glass":``,border:`~ base rounded`,p2:``,"text-sm":``,flex:`~ col gap-2`},ye={flex:`~ gap-1 items-center`},be={flex:`~ gap-1 items-center`},xe=_({__name:`packages`,props:{session:{}},setup(p){let h=p,_=x(y()),T=a(),E=e(),D=[{match:/.*/,name:`direct`,description:`Direct Dependencies`,icon:`i-octicon:package-dependencies-24 light:filter-invert-30!`},{match:/.*/,name:`transitive`,description:`Transitive Dependencies`,icon:`i-octicon:package-24 light:filter-invert-30!`}],O=te(),P=t({search:``,selected:[`direct`,`transitive`]}),{state:F,isLoading:L}=o(async()=>await O.value[`vite:rolldown:get-packages`]?.({session:h.session.id}),null),R=u(()=>F.value,()=>new ie(F.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),z=v(()=>F.value?Object.values(F.value.reduce((e,t)=>(e[t.name]=(e[t.name]||0)+1,e),{})).filter(e=>e>1).length:0),B=v(()=>[{label:`Table`,value:`table`,icon:`i-ph-table-duotone`},{label:`Treemap`,value:`treemap`,icon:`i-ph-checkerboard-duotone`},{label:`Duplicate Packages${z.value>0?` (${z.value})`:``}`,value:`duplicate-packages`,icon:`i-ph-package-duotone`}]),V=v(()=>P.value.search?R.value.search(P.value.search).map(e=>e.item):[...F.value||[]]),H=v(()=>{let e=A.value.packageSizeSortType,t=[...V.value].sort((e,t)=>(e.name||``).localeCompare(t.name||``));return(e?t.sort((t,n)=>e===`asc`?t.transformedCodeSize-n.transformedCodeSize:n.transformedCodeSize-t.transformedCodeSize):t).filter(e=>!P.value.selected||P.value.selected.some(t=>t.match(e.type)))});function U(e){A.value.packageViewType=e}let{tree:W,chartOptions:G,graph:K,nodeHover:q,nodeSelected:J,selectedNode:Y,selectNode:X,buildGraph:Z}=ne({data:H,nameKey:`name`,sizeKey:`transformedCodeSize`,rootText:`Packages`,nodeType:`package`,graphOptions:{onHover(e){e&&!T.query.package&&(q.value=e),e===null&&(q.value=void 0)},onClick(e){e.meta?.type===`package`&&E.replace({query:{...T.query,package:`${e.meta?.name}@${e.meta?.version}`}})},onLeave(){q.value=void 0},onSelect(e){J.value=e||W.value.root,Y.value=e?.meta}},onUpdate(){A.value.packageViewType===`treemap`&&(K.value=new j(W.value.root,{...G.value,selectedPaddingRatio:0}))}});return n(()=>A.value.packageViewType,()=>{Z()}),(e,t)=>{let n=ee,a=re,o=Q,u=N,h=ue,v=k,y=M;return c(L)?(r(),s(n,{key:0})):(r(),w(`div`,de,[S(`div`,fe,[b(a,{modelValue:P.value,"onUpdate:modelValue":t[0]||=e=>P.value=e,rules:D},{default:i(()=>[S(`div`,pe,[t[2]||=S(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(r(!0),w(f,null,m(B.value,e=>(r(),w(`button`,{key:e.value,"btn-action":``,class:C(c(A).packageViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>U(e.value)},[S(`div`,{class:C(e.icon)},null,2),l(` `+d(e.label),1)],10,$))),128))])]),_:1},8,[`modelValue`])]),S(`div`,me,[c(A).packageViewType===`table`?(r(),w(f,{key:0},[b(o,{packages:H.value,session:p.session},null,8,[`packages`,`session`]),S(`div`,he,[S(`span`,ge,d(V.value.length)+` of `+d(c(F)?.length||0),1)])],64)):c(A).packageViewType===`treemap`?(r(),w(f,{key:1},[c(K)&&H.value.length?(r(),s(I,{key:0,graph:c(K),selected:c(J),onSelect:t[1]||=e=>c(X)(e)},{default:i(({selected:e,options:t,onSelect:n})=>[b(u,{border:`b base`,py2:``,"min-h-10":``,selected:e,options:t,onSelect:n},null,8,[`selected`,`options`,`onSelect`])]),_:1},8,[`graph`,`selected`])):(r(),w(`span`,_e,` No Data `))],64)):c(A).packageViewType===`duplicate-packages`?(r(),s(h,{key:2,packages:H.value,session:p.session},null,8,[`packages`,`session`])):g(``,!0)]),b(y,{"hover-x":_.x,"hover-y":_.y},{default:i(()=>[c(q)?.meta?(r(),w(`div`,ve,[S(`div`,ye,d(c(q).text),1),S(`div`,be,[b(v,{bytes:c(q).size,percent:!1},null,8,[`bytes`])])])):g(``,!0)]),_:1},8,[`hover-x`,`hover-y`])]))}}});export{xe as default};
@@ -1 +1 @@
1
- import{$t as e,Dt as t,Jt as n,Xt as r,Yt as i,en as a,f as o,ot as s,s as c,u as l,vt as u,xt as d}from"./axTMqr-M.js";function f(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 p(){return this.eachAfter(f)}function m(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function h(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 g(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 _(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function v(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 y(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function b(e){for(var t=this,n=x(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 x(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 S(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function C(){return Array.from(this)}function w(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function T(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*ee(){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 E(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=k)):t===void 0&&(t=O);for(var n=new j(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 j(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(A)}function D(){return E(this).eachBefore(te)}function O(e){return e.children}function k(e){return Array.isArray(e)?e[1]:null}function te(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function A(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function j(e){this.data=e,this.depth=this.height=0,this.parent=null}j.prototype=E.prototype={constructor:j,count:p,each:m,eachAfter:g,eachBefore:h,find:_,sum:v,sort:y,path:b,ancestors:S,descendants:C,leaves:w,links:T,copy:D,[Symbol.iterator]:ee};function M(e,t){return e.parent===t.parent?1:2}function N(e){var t=e.children;return t?t[0]:e.t}function P(e){var t=e.children;return t?t[t.length-1]:e.t}function F(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 ne(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 re(e,t,n){return e.a.parent===t.parent?e.a:n}function I(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}I.prototype=Object.create(j.prototype);function ie(e){for(var t=new I(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 I(a[o],o)),i.parent=n;return(t.parent=new I(null,0)).children=[t],t}function ae(){var e=M,t=1,n=1,r=null;function i(i){var s=ie(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){ne(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=P(o),i=N(i),o&&i;)s=N(s),a=P(a),a.a=t,f=o.z+u-i.z-c+e(o._,i._),f>0&&(F(re(o,t,r),t,f),c+=f,l+=f),u+=o.m,c+=i.m,d+=s.m,l+=a.m;o&&!P(a)&&(a.t=o,a.m+=u-l),i&&!N(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 L(e){return function(){return e}}var R=Math.PI,z=2*R,B=1e-6,V=z-B;function H(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function U(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return H;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 W=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?H:U(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>B)if(!(Math.abs(u*s-c*l)>B)||!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((R-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>B&&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)>B||Math.abs(this._y1-l)>B)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%z+z),d>V?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>B&&this._append`A${n},${n},0,${+(d>=R)},${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 G(){return new W}G.prototype=W.prototype;function K(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 W(t)}var q=Array.prototype.slice;function oe(e){return e[0]}function se(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 ce(e){return new J(e,!0)}function le(e){return new J(e,!1)}function ue(e){return e.source}function de(e){return e.target}function Y(e){let t=ue,n=de,r=oe,i=se,a=null,o=null,s=K(c);function c(){let c,l=q.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:L(+e),c):r},c.y=function(e){return arguments.length?(i=typeof e==`function`?e:L(+e),c):i},c.context=function(t){return arguments.length?(t==null?a=o=null:o=e(a=t),c):a},c}function fe(){return Y(ce)}function pe(){return Y(le)}function me(t,{wheel:r=!0,minScale:i=.5,maxScale:a=2}={}){let o=n(1);function s(n,r,s){let c=e(t);if(!c)return;let{left:l,top:u,width:d,height:f}=c.getBoundingClientRect(),p=r??l+d/2,m=s??u+f/2,h=p-l,g=m-u,_=o.value;o.value=Math.max(i,Math.min(a,_+n));let v=o.value/_;c.scrollLeft=(c.scrollLeft+h)*v-h,c.scrollTop=(c.scrollTop+g)*v-g}function c(t){if(e(r)){t.preventDefault();let e=.2;s(t.deltaY<0?e:e*-1,t.clientX,t.clientY)}else t.ctrlKey&&(t.preventDefault(),s(t.deltaY*.004*-1,t.clientX,t.clientY))}function u(e=.2){s(e)}function d(e=.2){s(e*-1)}return l(t,`wheel`,c),{scale:o,zoom:s,zoomIn:u,zoomOut:d}}var X=Symbol.for(`ViteDevToolsModuleGraphState`);const Z=fe().x(e=>e[0]).y(e=>e[1]),Q=pe().x(e=>e[0]).y(e=>e[1]);function $(e,t){return t?e.target.x<=e.source.x?Q({source:[e.source.x+a(t.width)/2-a(t.linkOffset),e.source.y],target:[e.target.x-a(t.width)/2+a(t.linkOffset),e.target.y]}):Z({source:[e.source.x+a(t.width)/2-a(t.linkOffset),e.source.y],target:[e.target.x-a(t.width)/2+a(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 he(e){return`stroke-#8885`}function ge(e){let a=.4,c=n(),l=n(window.innerWidth),u=n(window.innerHeight),d=i(new Map),f=i(new Set),p=n(!0),m=i(new Map),h=r([]),g=r([]),_=i(new Map),v=i(new Map),y=s(()=>{let t=new Map;for(let n of e.modules.value)t.set(n.id,n);return t}),{control:b}=o(),{scale:x,zoomIn:S,zoomOut:C}=me(c,{wheel:b,minScale:a,maxScale:2});function w(e,t=!0){d.get(e)?.scrollIntoView({block:`center`,inline:`center`,behavior:t?`smooth`:`instant`})}let T=e.generateGraph({isFirstCalculateGraph:p,hierarchy:E,tree:ae,nodesRefMap:d,container:c,modulesMap:y,nodes:h,links:g,scale:x,nodesMap:_,linksMap:v,width:l,height:u,childToParentMap:m,focusOn:w,collapsedNodes:f,spacing:e.spacing});t(X,{spacing:e.spacing,calculateGraph:T,isFirstCalculateGraph:p,container:c,width:l,height:u,scale:x,nodes:h,links:g,nodesRefMap:d,collapsedNodes:f,childToParentMap:m,ZOOM_MIN:a,ZOOM_MAX:2,zoomIn:S,zoomOut:C})}function _e(){return u(X)}function ve(e){let{nodesRefMap:t,container:r,calculateGraph:i,collapsedNodes:o}=u(X),s=n(!1);function c(e,n){d(()=>{d(()=>{let i=t.get(e);if(i&&n&&r.value){let e=r.value.getBoundingClientRect(),t=i.getBoundingClientRect(),a=t.left-e.left-n.x,o=t.top-e.top-n.y;r.value.scrollLeft+=a,r.value.scrollTop+=o}})})}function l(e){if(s.value)return;s.value=!0;let n=t.get(e),a=null;if(n&&r.value){let e=r.value.getBoundingClientRect(),t=n.getBoundingClientRect();a={x:t.left-e.left,y:t.top-e.top}}o.has(e)?o.delete(e):o.add(e),i(),a&&c(e,a),s.value=!1}function f(){s.value||(s.value=!0,o.clear(),i(),setTimeout(()=>{s.value=!1},300))}function p(){s.value||(s.value=!0,a(e.modules).forEach(e=>{e.imports.length>0&&o.add(e.id)}),i(),setTimeout(()=>{s.value=!1},300))}return{isGraphNodeToggling:s,toggleNode:l,expandAll:f,collapseAll:p}}function ye(){let{scale:e,zoomIn:t,zoomOut:n,ZOOM_MIN:r,ZOOM_MAX:i}=u(X);return c([`-`,`_`],e=>{e.ctrlKey&&n()}),c([`=`,`+`],e=>{e.ctrlKey&&t()}),{ZOOM_MIN:r,ZOOM_MAX:i,scale:e,zoomIn:t,zoomOut:n}}function be(){let{container:e}=u(X),t=n(!1),r=0,i=0;function a(){l(e,`mousedown`,n=>{let a=e.value.getBoundingClientRect(),o=a.right-n.clientX,s=a.bottom-n.clientY;o<=20||s<=20||(t.value=!0,r=e.value.scrollLeft+n.pageX,i=e.value.scrollTop+n.pageY)}),l(e,`contextmenu`,e=>e.preventDefault()),l(`mouseleave`,()=>t.value=!1),l(`mouseup`,()=>t.value=!1),l(`mousemove`,n=>{t.value&&(n.preventDefault(),e.value.scrollLeft=r-n.pageX,e.value.scrollTop=i-n.pageY)})}return{init:a,isGrabbing:t}}export{ye as a,be as i,$ as n,_e as o,he as r,ve as s,ge as t};
1
+ import{$t as e,Dt as t,Jt as n,Xt as r,Yt as i,en as a,f as o,ot as s,s as c,u as l,vt as u,xt as d}from"./C-xw4DlO.js";function f(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 p(){return this.eachAfter(f)}function m(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function h(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 g(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 _(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function v(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 y(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function b(e){for(var t=this,n=x(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 x(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 S(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function C(){return Array.from(this)}function w(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function T(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*ee(){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 E(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=k)):t===void 0&&(t=O);for(var n=new j(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 j(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(A)}function D(){return E(this).eachBefore(te)}function O(e){return e.children}function k(e){return Array.isArray(e)?e[1]:null}function te(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function A(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function j(e){this.data=e,this.depth=this.height=0,this.parent=null}j.prototype=E.prototype={constructor:j,count:p,each:m,eachAfter:g,eachBefore:h,find:_,sum:v,sort:y,path:b,ancestors:S,descendants:C,leaves:w,links:T,copy:D,[Symbol.iterator]:ee};function M(e,t){return e.parent===t.parent?1:2}function N(e){var t=e.children;return t?t[0]:e.t}function P(e){var t=e.children;return t?t[t.length-1]:e.t}function F(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 ne(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 re(e,t,n){return e.a.parent===t.parent?e.a:n}function I(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}I.prototype=Object.create(j.prototype);function ie(e){for(var t=new I(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 I(a[o],o)),i.parent=n;return(t.parent=new I(null,0)).children=[t],t}function ae(){var e=M,t=1,n=1,r=null;function i(i){var s=ie(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){ne(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=P(o),i=N(i),o&&i;)s=N(s),a=P(a),a.a=t,f=o.z+u-i.z-c+e(o._,i._),f>0&&(F(re(o,t,r),t,f),c+=f,l+=f),u+=o.m,c+=i.m,d+=s.m,l+=a.m;o&&!P(a)&&(a.t=o,a.m+=u-l),i&&!N(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 L(e){return function(){return e}}var R=Math.PI,z=2*R,B=1e-6,V=z-B;function H(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function U(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return H;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 W=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?H:U(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>B)if(!(Math.abs(u*s-c*l)>B)||!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((R-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>B&&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)>B||Math.abs(this._y1-l)>B)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%z+z),d>V?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>B&&this._append`A${n},${n},0,${+(d>=R)},${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 G(){return new W}G.prototype=W.prototype;function K(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 W(t)}var q=Array.prototype.slice;function oe(e){return e[0]}function se(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 ce(e){return new J(e,!0)}function le(e){return new J(e,!1)}function ue(e){return e.source}function de(e){return e.target}function Y(e){let t=ue,n=de,r=oe,i=se,a=null,o=null,s=K(c);function c(){let c,l=q.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:L(+e),c):r},c.y=function(e){return arguments.length?(i=typeof e==`function`?e:L(+e),c):i},c.context=function(t){return arguments.length?(t==null?a=o=null:o=e(a=t),c):a},c}function fe(){return Y(ce)}function pe(){return Y(le)}function me(t,{wheel:r=!0,minScale:i=.5,maxScale:a=2}={}){let o=n(1);function s(n,r,s){let c=e(t);if(!c)return;let{left:l,top:u,width:d,height:f}=c.getBoundingClientRect(),p=r??l+d/2,m=s??u+f/2,h=p-l,g=m-u,_=o.value;o.value=Math.max(i,Math.min(a,_+n));let v=o.value/_;c.scrollLeft=(c.scrollLeft+h)*v-h,c.scrollTop=(c.scrollTop+g)*v-g}function c(t){if(e(r)){t.preventDefault();let e=.2;s(t.deltaY<0?e:e*-1,t.clientX,t.clientY)}else t.ctrlKey&&(t.preventDefault(),s(t.deltaY*.004*-1,t.clientX,t.clientY))}function u(e=.2){s(e)}function d(e=.2){s(e*-1)}return l(t,`wheel`,c),{scale:o,zoom:s,zoomIn:u,zoomOut:d}}var X=Symbol.for(`ViteDevToolsModuleGraphState`);const Z=fe().x(e=>e[0]).y(e=>e[1]),Q=pe().x(e=>e[0]).y(e=>e[1]);function $(e,t){return t?e.target.x<=e.source.x?Q({source:[e.source.x+a(t.width)/2-a(t.linkOffset),e.source.y],target:[e.target.x-a(t.width)/2+a(t.linkOffset),e.target.y]}):Z({source:[e.source.x+a(t.width)/2-a(t.linkOffset),e.source.y],target:[e.target.x-a(t.width)/2+a(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 he(e){return`stroke-#8885`}function ge(e){let a=.4,c=n(),l=n(window.innerWidth),u=n(window.innerHeight),d=i(new Map),f=i(new Set),p=n(!0),m=i(new Map),h=r([]),g=r([]),_=i(new Map),v=i(new Map),y=s(()=>{let t=new Map;for(let n of e.modules.value)t.set(n.id,n);return t}),{control:b}=o(),{scale:x,zoomIn:S,zoomOut:C}=me(c,{wheel:b,minScale:a,maxScale:2});function w(e,t=!0){d.get(e)?.scrollIntoView({block:`center`,inline:`center`,behavior:t?`smooth`:`instant`})}let T=e.generateGraph({isFirstCalculateGraph:p,hierarchy:E,tree:ae,nodesRefMap:d,container:c,modulesMap:y,nodes:h,links:g,scale:x,nodesMap:_,linksMap:v,width:l,height:u,childToParentMap:m,focusOn:w,collapsedNodes:f,spacing:e.spacing});t(X,{spacing:e.spacing,calculateGraph:T,isFirstCalculateGraph:p,container:c,width:l,height:u,scale:x,nodes:h,links:g,nodesRefMap:d,collapsedNodes:f,childToParentMap:m,ZOOM_MIN:a,ZOOM_MAX:2,zoomIn:S,zoomOut:C})}function _e(){return u(X)}function ve(e){let{nodesRefMap:t,container:r,calculateGraph:i,collapsedNodes:o}=u(X),s=n(!1);function c(e,n){d(()=>{d(()=>{let i=t.get(e);if(i&&n&&r.value){let e=r.value.getBoundingClientRect(),t=i.getBoundingClientRect(),a=t.left-e.left-n.x,o=t.top-e.top-n.y;r.value.scrollLeft+=a,r.value.scrollTop+=o}})})}function l(e){if(s.value)return;s.value=!0;let n=t.get(e),a=null;if(n&&r.value){let e=r.value.getBoundingClientRect(),t=n.getBoundingClientRect();a={x:t.left-e.left,y:t.top-e.top}}o.has(e)?o.delete(e):o.add(e),i(),a&&c(e,a),s.value=!1}function f(){s.value||(s.value=!0,o.clear(),i(),setTimeout(()=>{s.value=!1},300))}function p(){s.value||(s.value=!0,a(e.modules).forEach(e=>{e.imports.length>0&&o.add(e.id)}),i(),setTimeout(()=>{s.value=!1},300))}return{isGraphNodeToggling:s,toggleNode:l,expandAll:f,collapseAll:p}}function ye(){let{scale:e,zoomIn:t,zoomOut:n,ZOOM_MIN:r,ZOOM_MAX:i}=u(X);return c([`-`,`_`],e=>{e.ctrlKey&&n()}),c([`=`,`+`],e=>{e.ctrlKey&&t()}),{ZOOM_MIN:r,ZOOM_MAX:i,scale:e,zoomIn:t,zoomOut:n}}function be(){let{container:e}=u(X),t=n(!1),r=0,i=0;function a(){l(e,`mousedown`,n=>{let a=e.value.getBoundingClientRect(),o=a.right-n.clientX,s=a.bottom-n.clientY;o<=20||s<=20||(t.value=!0,r=e.value.scrollLeft+n.pageX,i=e.value.scrollTop+n.pageY)}),l(e,`contextmenu`,e=>e.preventDefault()),l(`mouseleave`,()=>t.value=!1),l(`mouseup`,()=>t.value=!1),l(`mousemove`,n=>{t.value&&(n.preventDefault(),e.value.scrollLeft=r-n.pageX,e.value.scrollTop=i-n.pageY)})}return{init:a,isGrabbing:t}}export{ye as a,be as i,$ as n,_e as o,he as r,ve as s,ge as t};
@@ -1 +1 @@
1
- import{C as e,Tt as t,V as n,in as r,st as i,ut as a}from"./axTMqr-M.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=e({__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},statusCode:{type:Number,default:500},statusMessage:{type:String,default:`Internal server error`},description:{type:String,default:`This page is temporarily unavailable.`},refresh:{type:String,default:`Refresh this page`}},setup(e){let d=e;return n({title:`${d.statusCode} - ${d.statusMessage} | ${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: }`}]}),(n,d)=>(t(),a(`div`,o,[i(`div`,s,[i(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:r(e.statusCode)},null,8,c),i(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:r(e.statusMessage)},null,8,l),i(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:r(e.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-f0602c85`]]);export{d as default};
1
+ import{C as e,Tt as t,V as n,in as r,st as i,ut as a}from"./C-xw4DlO.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=e({__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},statusCode:{type:Number,default:500},statusMessage:{type:String,default:`Internal server error`},description:{type:String,default:`This page is temporarily unavailable.`},refresh:{type:String,default:`Refresh this page`}},setup(e){let d=e;return n({title:`${d.statusCode} - ${d.statusMessage} | ${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: }`}]}),(n,d)=>(t(),a(`div`,o,[i(`div`,s,[i(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:r(e.statusCode)},null,8,c),i(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:r(e.statusMessage)},null,8,l),i(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:r(e.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-f0602c85`]]);export{d as default};
@@ -1 +1 @@
1
- import{Bt as e,Jt as t,Nt as n,S as r,Tt as i,Vt as a,ct as o,en as s,ft as c,in as l,it as u,kt as d,lt as f,mt as p,ot as m,pt as h,st as g,tn as _,ut as v,y}from"./axTMqr-M.js";import{t as b}from"./CkP2VQQ5.js";import{t as x}from"./CS8yIZOI.js";import"./Db5DS6RJ.js";import"./DQcokXty.js";import{r as S,t as C}from"./h9JT8fy9.js";import{t as w}from"./CPuYr29B.js";import"./DnpfwSMy.js";import{t as T}from"./C5uSI1no.js";var E={flex:`~ col gap-2`},D={flex:`~ gap-1 items-center`,"font-mono":``,op50:``,"text-sm":``},O={"font-mono":``,"font-sm":``},k={key:0,flex:`~ gap-1 items-center`},A={key:0,op50:``,"text-xs":``,border:`~ base rounded-md`,px1:``,"font-mono":``},j=p({__name:`SessionSelector`,props:{sessionMode:{},sessions:{},selectedSessionIds:{},selectedSessions:{}},emits:[`select`],setup(e,{emit:t}){let r=e,p=t;function y(e){return T(e.meta.inputs[0]?.filename??``,e.meta.cwd).path}let x=m(()=>{let e=r.selectedSessions?.[0];return e?y(e):``});function j(e){return x.value&&x.value!==y(e)}function M(e){r.sessionMode===`compare`&&!j(e)&&p(`select`,e)}return(t,r)=>{let p=C,m=S,y=w;return i(),v(`div`,E,[(i(!0),v(u,null,d(e.sessions,t=>(i(),v(`div`,{key:t.id,flex:`~ row gap-2`,relative:``},[(i(),o(n(e.sessionMode===`list`?s(b):`div`),{to:`/session/${t.id}`,border:`~ rounded-md`,class:_(e.sessionMode===`list`?[`hover:bg-active`,`border-base`]:[e.selectedSessionIds.includes(t.id)?`border-active`:`border-base`,j(t)||e.selectedSessions.length===2&&!e.selectedSessionIds.includes(t.id)?`op50`:`hover:bg-active`]),flex:`~ col gap-1`,px4:``,py3:``,"w-full":``,onClick:e=>M(t)},{default:a(()=>[g(`div`,D,[r[0]||=g(`div`,{"i-ph-hash-duotone":``},null,-1),c(` `+l(t.id),1)]),g(`div`,O,l(t.meta.cwd),1),t.meta.inputs[0]?(i(),v(`div`,k,[h(p,{id:t.meta.inputs[0].filename,cwd:t.meta.cwd},null,8,[`id`,`cwd`]),h(m,{text:t.meta.inputs[0].name||`entry`},null,8,[`text`]),t.meta.inputs.length>1?(i(),v(`span`,A,` +`+l(t.meta.inputs.length-1),1)):f(``,!0)])):f(``,!0),h(y,{timestamp:t.timestamp,pt2:``,"text-sm":``,op50:``},null,8,[`timestamp`])]),_:2},1032,[`to`,`class`,`onClick`]))]))),128))])}}}),M=Object.assign(j,{__name:`PanelSessionSelector`}),N={p4:``,flex:`~ col gap-4`,"items-center":``,"justify-center":``,relative:``},P={op50:``},F={relative:``,flex:`~ col gap3 items-center`},I={fixed:``,"top-5":``,"right-5":``,flex:`~ col gap2`},L={flex:`~ row justify-around`,w20:``,h8:``,border:`~ base rounded-8`,"of-hidden":``},R=[`title`,`onClick`],z={key:0,fixed:``,"bottom-5":``,"right-5":``,border:`~ base rounded-2`,w100:``,"max-lg:w85":``,"bg-glass":``,"z-panel-content":``},B={flex:`~ justify-center`,p2:``},V={key:1,op80:``,"text-sm":``},H=p({__name:`index`,async setup(n){let p,S,C=t(`list`),w=[{label:`Session List`,icon:`i-ph-list-bullets-duotone`,value:`list`},{label:`Session Compare`,icon:`i-ph-git-diff-duotone`,value:`compare`}],T=t([]),E=m(()=>T.value.map(e=>e.id).sort()),D=m(()=>[...T.value].sort((e,t)=>e.timestamp-t.timestamp).map((e,t)=>({...e,createdAt:new Date(e.timestamp),title:t===0?`Session A`:`Session B`}))),O=y(),k=([p,S]=e(()=>O.value[`vite:rolldown:list-sessions`]()),p=await p,S(),p);function A(e){E.value.includes(e.id)?T.value=T.value.filter(t=>t.id!==e.id):T.value=[...T.value,e]}return(e,t)=>{let n=r,p=M,m=x,y=b;return i(),v(`div`,N,[h(n),g(`p`,P,l(C.value===`list`?`Select a build session to get started:`:`Select 2 build sessions to compare:`),1),g(`div`,F,[h(p,{"session-mode":C.value,sessions:s(k),"selected-session-ids":E.value,"selected-sessions":T.value,onSelect:A},null,8,[`session-mode`,`sessions`,`selected-session-ids`,`selected-sessions`])]),g(`div`,I,[g(`div`,L,[(i(),v(u,null,d(w,e=>g(`button`,{key:e.value,title:e.label,"flex-1":``,op50:``,flex:`~ items-center justify-center`,class:_({"bg-active text-base op100!":C.value===e.value}),hover:`bg-active text-base op100!`,onClick:t=>C.value=e.value},[g(`span`,{class:_([e.icon,`text-sm`])},null,2)],10,R)),64))])]),T.value.length>0&&C.value===`compare`?(i(),v(`div`,z,[h(m,{sessions:D.value,class:`flex-col gap0 [&>div]:border-none! [&>first-child]:border-b!`},null,8,[`sessions`]),g(`div`,B,[T.value.length===2?(i(),o(y,{key:0,tag:`button`,to:`/compare/${E.value.join(`,`)}`,"btn-action":``,"rounded-8":``,"text-3":``,flex:`~ justify-center`,w30:``,h8:``},{default:a(()=>[...t[0]||=[c(` Compare `,-1)]]),_:1},8,[`to`])):(i(),v(`div`,V,` Select one more session to compare. `))])])):f(``,!0)])}}});export{H as default};
1
+ import{Bt as e,Jt as t,Nt as n,S as r,Tt as i,Vt as a,ct as o,en as s,ft as c,in as l,it as u,kt as d,lt as f,mt as p,ot as m,pt as h,st as g,tn as _,ut as v,y}from"./C-xw4DlO.js";import{t as b}from"./jo347JsK.js";import{t as x}from"./BjxvvmqH.js";import"./Dnw1sKCY.js";import"./B3PiPV-x.js";import{r as S,t as C}from"./B7TCfKhI.js";import{t as w}from"./CVmdkwE8.js";import"./DnpfwSMy.js";import{t as T}from"./CsYy4mNk.js";var E={flex:`~ col gap-2`},D={flex:`~ gap-1 items-center`,"font-mono":``,op50:``,"text-sm":``},O={"font-mono":``,"font-sm":``},k={key:0,flex:`~ gap-1 items-center`},A={key:0,op50:``,"text-xs":``,border:`~ base rounded-md`,px1:``,"font-mono":``},j=p({__name:`SessionSelector`,props:{sessionMode:{},sessions:{},selectedSessionIds:{},selectedSessions:{}},emits:[`select`],setup(e,{emit:t}){let r=e,p=t;function y(e){return T(e.meta.inputs[0]?.filename??``,e.meta.cwd).path}let x=m(()=>{let e=r.selectedSessions?.[0];return e?y(e):``});function j(e){return x.value&&x.value!==y(e)}function M(e){r.sessionMode===`compare`&&!j(e)&&p(`select`,e)}return(t,r)=>{let p=C,m=S,y=w;return i(),v(`div`,E,[(i(!0),v(u,null,d(e.sessions,t=>(i(),v(`div`,{key:t.id,flex:`~ row gap-2`,relative:``},[(i(),o(n(e.sessionMode===`list`?s(b):`div`),{to:`/session/${t.id}`,border:`~ rounded-md`,class:_(e.sessionMode===`list`?[`hover:bg-active`,`border-base`]:[e.selectedSessionIds.includes(t.id)?`border-active`:`border-base`,j(t)||e.selectedSessions.length===2&&!e.selectedSessionIds.includes(t.id)?`op50`:`hover:bg-active`]),flex:`~ col gap-1`,px4:``,py3:``,"w-full":``,onClick:e=>M(t)},{default:a(()=>[g(`div`,D,[r[0]||=g(`div`,{"i-ph-hash-duotone":``},null,-1),c(` `+l(t.id),1)]),g(`div`,O,l(t.meta.cwd),1),t.meta.inputs[0]?(i(),v(`div`,k,[h(p,{id:t.meta.inputs[0].filename,cwd:t.meta.cwd},null,8,[`id`,`cwd`]),h(m,{text:t.meta.inputs[0].name||`entry`},null,8,[`text`]),t.meta.inputs.length>1?(i(),v(`span`,A,` +`+l(t.meta.inputs.length-1),1)):f(``,!0)])):f(``,!0),h(y,{timestamp:t.timestamp,pt2:``,"text-sm":``,op50:``},null,8,[`timestamp`])]),_:2},1032,[`to`,`class`,`onClick`]))]))),128))])}}}),M=Object.assign(j,{__name:`PanelSessionSelector`}),N={p4:``,flex:`~ col gap-4`,"items-center":``,"justify-center":``,relative:``},P={op50:``},F={relative:``,flex:`~ col gap3 items-center`},I={fixed:``,"top-5":``,"right-5":``,flex:`~ col gap2`},L={flex:`~ row justify-around`,w20:``,h8:``,border:`~ base rounded-8`,"of-hidden":``},R=[`title`,`onClick`],z={key:0,fixed:``,"bottom-5":``,"right-5":``,border:`~ base rounded-2`,w100:``,"max-lg:w85":``,"bg-glass":``,"z-panel-content":``},B={flex:`~ justify-center`,p2:``},V={key:1,op80:``,"text-sm":``},H=p({__name:`index`,async setup(n){let p,S,C=t(`list`),w=[{label:`Session List`,icon:`i-ph-list-bullets-duotone`,value:`list`},{label:`Session Compare`,icon:`i-ph-git-diff-duotone`,value:`compare`}],T=t([]),E=m(()=>T.value.map(e=>e.id).sort()),D=m(()=>[...T.value].sort((e,t)=>e.timestamp-t.timestamp).map((e,t)=>({...e,createdAt:new Date(e.timestamp),title:t===0?`Session A`:`Session B`}))),O=y(),k=([p,S]=e(()=>O.value[`vite:rolldown:list-sessions`]()),p=await p,S(),p);function A(e){E.value.includes(e.id)?T.value=T.value.filter(t=>t.id!==e.id):T.value=[...T.value,e]}return(e,t)=>{let n=r,p=M,m=x,y=b;return i(),v(`div`,N,[h(n),g(`p`,P,l(C.value===`list`?`Select a build session to get started:`:`Select 2 build sessions to compare:`),1),g(`div`,F,[h(p,{"session-mode":C.value,sessions:s(k),"selected-session-ids":E.value,"selected-sessions":T.value,onSelect:A},null,8,[`session-mode`,`sessions`,`selected-session-ids`,`selected-sessions`])]),g(`div`,I,[g(`div`,L,[(i(),v(u,null,d(w,e=>g(`button`,{key:e.value,title:e.label,"flex-1":``,op50:``,flex:`~ items-center justify-center`,class:_({"bg-active text-base op100!":C.value===e.value}),hover:`bg-active text-base op100!`,onClick:t=>C.value=e.value},[g(`span`,{class:_([e.icon,`text-sm`])},null,2)],10,R)),64))])]),T.value.length>0&&C.value===`compare`?(i(),v(`div`,z,[h(m,{sessions:D.value,class:`flex-col gap0 [&>div]:border-none! [&>first-child]:border-b!`},null,8,[`sessions`]),g(`div`,B,[T.value.length===2?(i(),o(y,{key:0,tag:`button`,to:`/compare/${E.value.join(`,`)}`,"btn-action":``,"rounded-8":``,"text-3":``,flex:`~ justify-center`,w30:``,h8:``},{default:a(()=>[...t[0]||=[c(` Compare `,-1)]]),_:1},8,[`to`])):(i(),v(`div`,V,` Select one more session to compare. `))])])):f(``,!0)])}}});export{H as default};
@@ -1 +1 @@
1
- import{Tt as e,Vt as t,ct as n,en as r,ft as i,in as a,it as o,kt as s,lt as c,mt as l,ot as u,pt as d,st as f,tn as p,ut as m}from"./axTMqr-M.js";import{t as h}from"./CkP2VQQ5.js";import"./DQtLZa7C.js";import"./Db5DS6RJ.js";import"./DQcokXty.js";import{r as g,t as _}from"./h9JT8fy9.js";import{t as v}from"./l2P7b8gw.js";import{t as y}from"./3WaMGJ3H.js";import{t as b}from"./D-16ZB3R.js";var x={flex:`~ col gap-2`,p6:``},S={flex:`~ gap-2`},C={border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_160px_2fr] gap-2 items-center`},w={"font-mono":``},T=[`datetime`],E={key:4},D={border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_1fr] gap-2 items-center`},O={flex:`~ gap-2`},k=l({__name:`index`,props:{session:{}},setup(l){let k=l,A=u(()=>[{title:`Build ID`,value:k.session.id,icon:`i-ph-hash-duotone`},{title:`Created At`,value:new Date(k.session.meta.timestamp),icon:`i-ph-clock-duotone`},{title:`Build Duration`,value:k.session.buildDuration,icon:`i-ph-timer-duotone`,type:`duration`},{title:`Directory`,value:k.session.meta.cwd,icon:`i-ph-folder-duotone`},{title:`Total Modules`,value:k.session.modulesList.length,icon:`i-ph-files-duotone`},{title:`Plugins`,value:k.session.meta.plugins.length,icon:`i-ph-plugs-duotone`},{title:`Platform`,value:k.session.meta.platform,icon:`i-ph-cpu-duotone`,type:`badge`},{title:`Format`,value:k.session.meta.format,icon:`i-ph-file-duotone`,type:`badge`}]);return(u,j)=>{let M=h,N=g,P=y,F=b,I=_;return e(),m(`div`,x,[f(`div`,S,[d(M,{"btn-action":``,to:{path:`/`}},{default:t(()=>[...j[0]||=[f(`div`,{"i-ph-arrow-bend-up-left-duotone":``},null,-1),i(` Re-select Session `,-1)]]),_:1})]),j[1]||=f(`div`,{op50:``,"mt-10":``},` Meta Info `,-1),f(`div`,C,[(e(!0),m(o,null,s(A.value,t=>(e(),m(o,{key:t.title},[f(`div`,{class:p(t.icon)},null,2),f(`div`,null,a(t.title),1),f(`div`,w,[t.value instanceof Date?(e(),m(`time`,{key:0,datetime:t.value.toISOString()},a(t.value.toLocaleString()),9,T)):t.type===`badge`?(e(),n(N,{key:1,text:String(t.value),py1:``},null,8,[`text`])):t.type===`duration`?(e(),n(P,{key:2,duration:+t.value},null,8,[`duration`])):typeof t.value==`number`?(e(),n(F,{key:3,number:t.value,py1:``,"rounded-full":``,"inline-block":``,"text-sm":``},null,8,[`number`])):(e(),m(`span`,E,a(t.value),1))])],64))),128))]),j[2]||=f(`div`,{op50:``,"mt-4":``},` Build Entries `,-1),f(`div`,D,[(e(!0),m(o,null,s(k.session.meta.inputs,t=>(e(),m(o,{key:t},[d(N,{text:t.name||``},null,8,[`text`]),d(I,{id:t.filename||``,session:l.session,link:!0},null,8,[`id`,`session`])],64))),128))]),j[3]||=f(`div`,{op50:``,"mt-4":``},` Views `,-1),f(`div`,O,[(e(!0),m(o,null,s(r(v),r=>(e(),m(o,{key:r.to},[r.category===`session`?(e(),n(M,{key:0,"btn-action":``,to:{path:r.to},flex:`~ col`,"min-w-40":``,p4:``},{default:t(()=>[f(`div`,{class:p(r.icon),"text-2xl":``},null,2),i(` `+a(r.title),1)]),_:2},1032,[`to`])):c(``,!0)],64))),128))])])}}});export{k as default};
1
+ import{Tt as e,Vt as t,ct as n,en as r,ft as i,in as a,it as o,kt as s,lt as c,mt as l,ot as u,pt as d,st as f,tn as p,ut as m}from"./C-xw4DlO.js";import{t as h}from"./jo347JsK.js";import"./DQtLZa7C.js";import"./Dnw1sKCY.js";import"./B3PiPV-x.js";import{r as g,t as _}from"./B7TCfKhI.js";import{t as v}from"./DdbSxsRv.js";import{t as y}from"./COkVMxfk.js";import{t as b}from"./hkb_fnPj.js";var x={flex:`~ col gap-2`,p6:``},S={flex:`~ gap-2`},C={border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_160px_2fr] gap-2 items-center`},w={"font-mono":``},T=[`datetime`],E={key:4},D={border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_1fr] gap-2 items-center`},O={flex:`~ gap-2`},k=l({__name:`index`,props:{session:{}},setup(l){let k=l,A=u(()=>[{title:`Build ID`,value:k.session.id,icon:`i-ph-hash-duotone`},{title:`Created At`,value:new Date(k.session.meta.timestamp),icon:`i-ph-clock-duotone`},{title:`Build Duration`,value:k.session.buildDuration,icon:`i-ph-timer-duotone`,type:`duration`},{title:`Directory`,value:k.session.meta.cwd,icon:`i-ph-folder-duotone`},{title:`Total Modules`,value:k.session.modulesList.length,icon:`i-ph-files-duotone`},{title:`Plugins`,value:k.session.meta.plugins.length,icon:`i-ph-plugs-duotone`},{title:`Platform`,value:k.session.meta.platform,icon:`i-ph-cpu-duotone`,type:`badge`},{title:`Format`,value:k.session.meta.format,icon:`i-ph-file-duotone`,type:`badge`}]);return(u,j)=>{let M=h,N=g,P=y,F=b,I=_;return e(),m(`div`,x,[f(`div`,S,[d(M,{"btn-action":``,to:{path:`/`}},{default:t(()=>[...j[0]||=[f(`div`,{"i-ph-arrow-bend-up-left-duotone":``},null,-1),i(` Re-select Session `,-1)]]),_:1})]),j[1]||=f(`div`,{op50:``,"mt-10":``},` Meta Info `,-1),f(`div`,C,[(e(!0),m(o,null,s(A.value,t=>(e(),m(o,{key:t.title},[f(`div`,{class:p(t.icon)},null,2),f(`div`,null,a(t.title),1),f(`div`,w,[t.value instanceof Date?(e(),m(`time`,{key:0,datetime:t.value.toISOString()},a(t.value.toLocaleString()),9,T)):t.type===`badge`?(e(),n(N,{key:1,text:String(t.value),py1:``},null,8,[`text`])):t.type===`duration`?(e(),n(P,{key:2,duration:+t.value},null,8,[`duration`])):typeof t.value==`number`?(e(),n(F,{key:3,number:t.value,py1:``,"rounded-full":``,"inline-block":``,"text-sm":``},null,8,[`number`])):(e(),m(`span`,E,a(t.value),1))])],64))),128))]),j[2]||=f(`div`,{op50:``,"mt-4":``},` Build Entries `,-1),f(`div`,D,[(e(!0),m(o,null,s(k.session.meta.inputs,t=>(e(),m(o,{key:t},[d(N,{text:t.name||``},null,8,[`text`]),d(I,{id:t.filename||``,session:l.session,link:!0},null,8,[`id`,`session`])],64))),128))]),j[3]||=f(`div`,{op50:``,"mt-4":``},` Views `,-1),f(`div`,O,[(e(!0),m(o,null,s(r(v),r=>(e(),m(o,{key:r.to},[r.category===`session`?(e(),n(M,{key:0,"btn-action":``,to:{path:r.to},flex:`~ col`,"min-w-40":``,p4:``},{default:t(()=>[f(`div`,{class:p(r.icon),"text-2xl":``},null,2),i(` `+a(r.title),1)]),_:2},1032,[`to`])):c(``,!0)],64))),128))])])}}});export{k as default};
@@ -1 +1 @@
1
- import{Kt as e,Rt as t,Zt as n,ot as r,qt as i}from"./axTMqr-M.js";var a=0,o=i(new Map);const s=r(()=>Array.from(o.values()).flat());function c(r){let i=n(r),s=()=>{};function c(e){s();let t=a++;return o.set(t,e),s=()=>{o.delete(t)},t}return t(i,e=>{c(e)},{immediate:!0}),e(()=>{s()}),()=>{s()}}export{c as n,s as t};
1
+ import{Kt as e,Rt as t,Zt as n,ot as r,qt as i}from"./C-xw4DlO.js";var a=0,o=i(new Map);const s=r(()=>Array.from(o.values()).flat());function c(r){let i=n(r),s=()=>{};function c(e){s();let t=a++;return o.set(t,e),s=()=>{o.delete(t)},t}return t(i,e=>{c(e)},{immediate:!0}),e(()=>{s()}),()=>{s()}}export{c as n,s as t};
@@ -1 +1 @@
1
- import{C as e,Tt as t,V as n,Vt as r,ft as i,in as a,pt as o,st as s,ut as c}from"./axTMqr-M.js";import{t as l}from"./CkP2VQQ5.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=e({__name:`error-404`,props:{appName:{type:String,default:`Nuxt`},statusCode:{type:Number,default:404},statusMessage:{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(e){let g=e;return n({title:`${g.statusCode} - ${g.statusMessage} | ${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: }`}]}),(n,g)=>{let _=l;return t(),c(`div`,u,[s(`div`,d,[s(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:a(e.statusCode)},null,8,f),s(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:a(e.statusMessage)},null,8,p),s(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:a(e.description)},null,8,m),s(`div`,h,[o(_,{to:`/`,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:r(()=>[i(a(e.backHome),1)]),_:1})])])])}}},[[`__scopeId`,`data-v-163e3310`]]);export{g as default};
1
+ import{C as e,Tt as t,V as n,Vt as r,ft as i,in as a,pt as o,st as s,ut as c}from"./C-xw4DlO.js";import{t as l}from"./jo347JsK.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=e({__name:`error-404`,props:{appName:{type:String,default:`Nuxt`},statusCode:{type:Number,default:404},statusMessage:{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(e){let g=e;return n({title:`${g.statusCode} - ${g.statusMessage} | ${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: }`}]}),(n,g)=>{let _=l;return t(),c(`div`,u,[s(`div`,d,[s(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:a(e.statusCode)},null,8,f),s(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:a(e.statusMessage)},null,8,p),s(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:a(e.description)},null,8,m),s(`div`,h,[o(_,{to:`/`,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:r(()=>[i(a(e.backHome),1)]),_:1})])])])}}},[[`__scopeId`,`data-v-163e3310`]]);export{g as default};
@@ -1 +1 @@
1
- import{At as e,Tt as t,d as n,ft as r,in as i,lt as a,mt as o,ot as s,st as c,tn as l,ut as u}from"./axTMqr-M.js";import{t as d}from"./DQtLZa7C.js";var f={"text-xs":``,op75:``,"ml-0.4":``},p={key:0,"text-xs":``,ml1:``,"op-fade":``,border:`l base`,pl1:``},m=1024,h=o({__name:`FileSizeBadge`,props:{bytes:{},colorize:{type:Boolean,default:!0},digits:{default:2},percent:{type:Boolean,default:!0},total:{},icon:{},percentRatio:{default:.5}},setup(n){let o=n,h=m**2,g=[[80*m,`color-scale-neutral`],[500*m,`color-scale-low`],[1*h,`color-scale-medium`],[10*h,`color-scale-high`],[20*h,`color-scale-critical`]],_=s(()=>{if(!o.colorize)return g[0];let e=o.bytes||0;for(let[t,n]of g)if(e<t)return n;return g[g.length-1]?.[1]}),v=s(()=>o.total?(o.bytes||0)*100/o.total:0),y=s(()=>d(o.bytes||0,o.digits));return(o,s)=>n.bytes?(t(),u(`div`,{key:0,class:l([_.value,`px-0.4em py-0.2em font-mono line-height-none bg-gray:5 dark:bg-gray:4 flex items-center`])},[n.icon?(t(),u(`div`,{key:0,class:l([n.icon,`mr-1`])},null,2)):a(``,!0),r(` `+i(y.value[0]),1),c(`span`,f,i(y.value[1]),1),e(o.$slots,`after`,{},()=>[n.percent&&v.value>n.percentRatio?(t(),u(`span`,p,i(+v.value.toFixed(1))+`%`,1)):a(``,!0)])],2)):a(``,!0)}}),g=Object.assign(h,{__name:`DisplayFileSizeBadge`});const _=n(`vite-devtools-settings`,{codeviewerLineWrap:!1,codeviewerDiffPanelSize:50,flowExpandResolveId:!0,flowExpandTransforms:!0,flowExpandLoads:!0,flowExpandChunks:!0,flowExpandAssets:!0,flowShowAllTransforms:!1,flowShowAllLoads:!1,moduleGraphViewType:`list`,assetViewType:`list`,chartAnimation:!0,moduleDetailsViewType:`flow`,pluginDetailsViewType:`flow`,pluginDetailsTableFields:null,pluginDetailsModuleTypes:null,pluginDetailsDurationSortType:``,pluginDetailSelectedHook:``,chunkViewType:`list`,pluginDetailsShowType:`all`,packageViewType:`table`,packageSizeSortType:``},{mergeDefaults:!0});function v(e){let t=new Map;return new Proxy(e.value,{get(e,n){return t.has(n)||t.set(n,s({get(){return e[n]},set(t){e[n]=t}})),t.get(n)}})}const y=v(_);export{y as n,g as r,_ as t};
1
+ import{At as e,Tt as t,d as n,ft as r,in as i,lt as a,mt as o,ot as s,st as c,tn as l,ut as u}from"./C-xw4DlO.js";import{t as d}from"./DQtLZa7C.js";var f={"text-xs":``,op75:``,"ml-0.4":``},p={key:0,"text-xs":``,ml1:``,"op-fade":``,border:`l base`,pl1:``},m=1024,h=o({__name:`FileSizeBadge`,props:{bytes:{},colorize:{type:Boolean,default:!0},digits:{default:2},percent:{type:Boolean,default:!0},total:{},icon:{},percentRatio:{default:.5}},setup(n){let o=n,h=m**2,g=[[80*m,`color-scale-neutral`],[500*m,`color-scale-low`],[1*h,`color-scale-medium`],[10*h,`color-scale-high`],[20*h,`color-scale-critical`]],_=s(()=>{if(!o.colorize)return g[0];let e=o.bytes||0;for(let[t,n]of g)if(e<t)return n;return g[g.length-1]?.[1]}),v=s(()=>o.total?(o.bytes||0)*100/o.total:0),y=s(()=>d(o.bytes||0,o.digits));return(o,s)=>n.bytes?(t(),u(`div`,{key:0,class:l([_.value,`px-0.4em py-0.2em font-mono line-height-none bg-gray:5 dark:bg-gray:4 flex items-center`])},[n.icon?(t(),u(`div`,{key:0,class:l([n.icon,`mr-1`])},null,2)):a(``,!0),r(` `+i(y.value[0]),1),c(`span`,f,i(y.value[1]),1),e(o.$slots,`after`,{},()=>[n.percent&&v.value>n.percentRatio?(t(),u(`span`,p,i(+v.value.toFixed(1))+`%`,1)):a(``,!0)])],2)):a(``,!0)}}),g=Object.assign(h,{__name:`DisplayFileSizeBadge`});const _=n(`vite-devtools-settings`,{codeviewerLineWrap:!1,codeviewerDiffPanelSize:50,flowExpandResolveId:!0,flowExpandTransforms:!0,flowExpandLoads:!0,flowExpandChunks:!0,flowExpandAssets:!0,flowShowAllTransforms:!1,flowShowAllLoads:!1,moduleGraphViewType:`list`,assetViewType:`list`,chartAnimation:!0,moduleDetailsViewType:`flow`,pluginDetailsViewType:`flow`,pluginDetailsTableFields:null,pluginDetailsModuleTypes:null,pluginDetailsDurationSortType:``,pluginDetailSelectedHook:``,chunkViewType:`list`,pluginDetailsShowType:`all`,packageViewType:`table`,packageSizeSortType:``},{mergeDefaults:!0});function v(e){let t=new Map;return new Proxy(e.value,{get(e,n){return t.has(n)||t.set(n,s({get(){return e[n]},set(t){e[n]=t}})),t.get(n)}})}const y=v(_);export{y as n,g as r,_ as t};
@@ -1 +1 @@
1
- import{Nt as e,Tt as t,_t as n,ct as r,mt as i}from"./axTMqr-M.js";import{r as a}from"./Db5DS6RJ.js";var o=i({__name:`PluginName`,props:{name:{},compact:{type:Boolean},colored:{type:Boolean},hide:{type:Boolean}},setup(i){let o=i,s=[`__load__`,`vite-plugin-`,`vite-`,`rollup-plugin-`,`rollup-`,`unplugin-`],c=[...s,`vite:`];function l(){let e=o.compact?c:s;for(let t of e)if(o.name.startsWith(t))return o.compact?n(`span`,o.name.slice(t.length)):n(`span`,[n(`span`,{class:`op50`},t),n(`span`,o.name.slice(t.length))]);let t=o.name.split(`:`);return t.length>1?n(`span`,[n(`span`,{style:{color:a(t[0])}},`${t[0]}:`),n(`span`,t.slice(1).join(`:`))]):n(`span`,o.name)}return(n,i)=>(t(),r(e(l)))}}),s=Object.assign(o,{__name:`DisplayPluginName`});export{s as t};
1
+ import{Nt as e,Tt as t,_t as n,ct as r,mt as i}from"./C-xw4DlO.js";import{r as a}from"./Dnw1sKCY.js";var o=i({__name:`PluginName`,props:{name:{},compact:{type:Boolean},colored:{type:Boolean},hide:{type:Boolean}},setup(i){let o=i,s=[`__load__`,`vite-plugin-`,`vite-`,`rollup-plugin-`,`rollup-`,`unplugin-`],c=[...s,`vite:`];function l(){let e=o.compact?c:s;for(let t of e)if(o.name.startsWith(t))return o.compact?n(`span`,o.name.slice(t.length)):n(`span`,[n(`span`,{class:`op50`},t),n(`span`,o.name.slice(t.length))]);let t=o.name.split(`:`);return t.length>1?n(`span`,[n(`span`,{style:{color:a(t[0])}},`${t[0]}:`),n(`span`,t.slice(1).join(`:`))]):n(`span`,o.name)}return(n,i)=>(t(),r(e(l)))}}),s=Object.assign(o,{__name:`DisplayPluginName`});export{s as t};
@@ -1 +1 @@
1
- import{t as e}from"./axTMqr-M.js";var t;(class{static#e=t=Symbol.toStringTag;constructor(){this[t]=`MaybeWeakMap`,this._map=new Map,this._weakMap=new WeakMap}delete(e){return this._weakMap.has(e)?this._weakMap.delete(e):this._map.delete(e)}has(e){return this._weakMap.has(e)?!0:this._map.has(e)}set(e,t){return this._weakMap.has(e)?this._weakMap.set(e,t):this._map.set(e,t),this}get(e){return this._weakMap.has(e)?this._weakMap.get(e):this._map.get(e)}clear(){this._map.clear()}});var n=class{constructor(e){this.length=e,this._mapTree=new Map}_getLastMap(e){let t=this._mapTree;for(let n of e.slice(0,-1))t.has(n)||t.set(n,new Map),t=t.get(n);return t}set(e,t){if(e.length!==this.length)throw Error(`Expect tuple of length ${this.length}, got ${e.length}`);return this._getLastMap(e).set(e[e.length-1],t),this}get(e){return this._getLastMap(e).get(e[e.length-1])}clear(){this._mapTree.clear()}delete(e){return this._getLastMap(e).delete(e[e.length-1])}get size(){return this._mapTree.size}*_traverseMap(){function*e(t,n,r){if(r===0)yield{keys:n,map:t};else for(let[i,a]of t.entries())yield*e(a,[...n,i],r-1)}yield*e(this._mapTree,[],this.length)}},r=class{constructor(){this._lengthMap=new Map}get(e){let t=e.length;return this._lengthMap.get(t)?.get(e)}set(e,t){let r=e.length,i=this._lengthMap.get(r);return i||(i=new n(r),this._lengthMap.set(r,i)),i.set(e,t),this}delete(e){let t=e.length;return this._lengthMap.get(t)?.delete(e)??!1}clear(){this._lengthMap.clear()}};function i(e){let t=new r,n=function(...n){let r=t.get(n);return r||(r=e(...n),t.set(n,r),r)};return n.cache=t,n}const a=[{match:/[\\/]node_modules[\\/]/i,name:`node_modules`,description:`Node Modules`,icon:`i-catppuccin-npm`},{match:/virtual:|^\0/,name:`virtual`,description:`Virtual`,icon:`i-catppuccin-symlink`},{match:/^@?[\w-]+\/?/,name:`package`,description:`Package`,icon:`i-catppuccin-java-class-abstract`},{match:/\.vue$/i,name:`vue`,description:`Vue`,icon:`i-catppuccin-vue`},{match:/\.[cm]?[tj]sx$/i,name:`jsx`,description:`JavaScript React`,icon:`i-catppuccin-javascript-react`},{match:/\.[cm]?ts$/i,name:`ts`,description:`TypeScript`,icon:`i-catppuccin-typescript`},{match:/\.[cm]?js$/i,name:`js`,description:`JavaScript`,icon:`i-catppuccin-javascript`},{match:/\.svelte$/i,name:`svelte`,description:`Svelte`,icon:`i-catppuccin-svelte`},{match:/\.mdx$/i,name:`mdx`,description:`MDX`,icon:`i-catppuccin-mdx`},{match:/\.md$/i,name:`md`,description:`Markdown`,icon:`i-catppuccin-markdown`},{match:/\.astro$/i,name:`astro`,description:`Astro`,icon:`i-catppuccin-astro`},{match:/\.angular$/i,name:`angular`,description:`Angular`,icon:`i-catppuccin-angular`},{match:/\.html?$/i,name:`html`,description:`HTML`,icon:`i-catppuccin-html`},{match:/\.(css|scss|less|postcss)$/i,name:`css`,description:`CSS`,icon:`i-catppuccin-css`},{match:/\.json[c5]?$/i,name:`json`,description:`JSON`,icon:`i-catppuccin-json`},{match:/\.(yaml|yml)$/i,name:`yaml`,description:`YAML`,icon:`i-catppuccin-yaml`},{match:/\.toml$/i,name:`toml`,description:`TOML`,icon:`i-catppuccin-toml`},{match:/\.svg$/i,name:`svg`,description:`SVG`,icon:`i-catppuccin-svg`}],o=[{match:/^(replace|define|alias)$/,name:`rollup`,description:`Rollup`,icon:`i-catppuccin-rollup`},{match:/^vite:/i,name:`vite`,description:`Vite`,icon:`i-catppuccin-vite`},{match:/^unocss:/i,name:`unocss`,description:`Unocss`,icon:`i-catppuccin-unocss`},{match:/^nuxt:/i,name:`nuxt`,description:`Nuxt`,icon:`i-catppuccin-nuxt`},{match:/^builtin:/i,name:`builtin`,description:`Builtin`,icon:`i-catppuccin-folder-prisma`}],s={name:`file`,match:/.*/,description:`File`,icon:`i-catppuccin-file`},c={name:`plugin`,match:/.*/,description:`User Plugins`,icon:`i-catppuccin-folder-plugins`};function l(e){return a.find(t=>t.name===e)??s}const u=i(e=>{e=e.replace(/(\?|&)v=[^&]*/,`$1`).replace(/\?$/,``);for(let t of a)if(t.match.test(e))return t;return s}),d=i(e=>{for(let t of o)if(t.match.test(e))return t;return c});function f(e,t=1){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return p(n%360,t)}function p(t,n=1){return`hsla(${t}, ${e.value?50:65}%, ${e.value?60:40}%, ${n})`}const m={error:0,client:60,bailout:-1,ssr:270,vite:250,vite1:240,vite2:120,virtual:160,nuxt:140};function h(e,t=1){if(e=e.replace(/[^a-z]+/gi,``).toLowerCase(),e in m){let n=m[e];return typeof n==`number`?p(n,t):t===1?n:n+Math.floor(t*255).toString(16).padStart(2,`0`)}return f(e,t)}export{a,l as c,c as i,d as l,p as n,o,h as r,u as s,f as t,i as u};
1
+ import{t as e}from"./C-xw4DlO.js";var t;(class{static#e=t=Symbol.toStringTag;constructor(){this[t]=`MaybeWeakMap`,this._map=new Map,this._weakMap=new WeakMap}delete(e){return this._weakMap.has(e)?this._weakMap.delete(e):this._map.delete(e)}has(e){return this._weakMap.has(e)?!0:this._map.has(e)}set(e,t){return this._weakMap.has(e)?this._weakMap.set(e,t):this._map.set(e,t),this}get(e){return this._weakMap.has(e)?this._weakMap.get(e):this._map.get(e)}clear(){this._map.clear()}});var n=class{constructor(e){this.length=e,this._mapTree=new Map}_getLastMap(e){let t=this._mapTree;for(let n of e.slice(0,-1))t.has(n)||t.set(n,new Map),t=t.get(n);return t}set(e,t){if(e.length!==this.length)throw Error(`Expect tuple of length ${this.length}, got ${e.length}`);return this._getLastMap(e).set(e[e.length-1],t),this}get(e){return this._getLastMap(e).get(e[e.length-1])}clear(){this._mapTree.clear()}delete(e){return this._getLastMap(e).delete(e[e.length-1])}get size(){return this._mapTree.size}*_traverseMap(){function*e(t,n,r){if(r===0)yield{keys:n,map:t};else for(let[i,a]of t.entries())yield*e(a,[...n,i],r-1)}yield*e(this._mapTree,[],this.length)}},r=class{constructor(){this._lengthMap=new Map}get(e){let t=e.length;return this._lengthMap.get(t)?.get(e)}set(e,t){let r=e.length,i=this._lengthMap.get(r);return i||(i=new n(r),this._lengthMap.set(r,i)),i.set(e,t),this}delete(e){let t=e.length;return this._lengthMap.get(t)?.delete(e)??!1}clear(){this._lengthMap.clear()}};function i(e){let t=new r,n=function(...n){let r=t.get(n);return r||(r=e(...n),t.set(n,r),r)};return n.cache=t,n}const a=[{match:/[\\/]node_modules[\\/]/i,name:`node_modules`,description:`Node Modules`,icon:`i-catppuccin-npm`},{match:/virtual:|^\0/,name:`virtual`,description:`Virtual`,icon:`i-catppuccin-symlink`},{match:/^@?[\w-]+\/?/,name:`package`,description:`Package`,icon:`i-catppuccin-java-class-abstract`},{match:/\.vue$/i,name:`vue`,description:`Vue`,icon:`i-catppuccin-vue`},{match:/\.[cm]?[tj]sx$/i,name:`jsx`,description:`JavaScript React`,icon:`i-catppuccin-javascript-react`},{match:/\.[cm]?ts$/i,name:`ts`,description:`TypeScript`,icon:`i-catppuccin-typescript`},{match:/\.[cm]?js$/i,name:`js`,description:`JavaScript`,icon:`i-catppuccin-javascript`},{match:/\.svelte$/i,name:`svelte`,description:`Svelte`,icon:`i-catppuccin-svelte`},{match:/\.mdx$/i,name:`mdx`,description:`MDX`,icon:`i-catppuccin-mdx`},{match:/\.md$/i,name:`md`,description:`Markdown`,icon:`i-catppuccin-markdown`},{match:/\.astro$/i,name:`astro`,description:`Astro`,icon:`i-catppuccin-astro`},{match:/\.angular$/i,name:`angular`,description:`Angular`,icon:`i-catppuccin-angular`},{match:/\.html?$/i,name:`html`,description:`HTML`,icon:`i-catppuccin-html`},{match:/\.(css|scss|less|postcss)$/i,name:`css`,description:`CSS`,icon:`i-catppuccin-css`},{match:/\.json[c5]?$/i,name:`json`,description:`JSON`,icon:`i-catppuccin-json`},{match:/\.(yaml|yml)$/i,name:`yaml`,description:`YAML`,icon:`i-catppuccin-yaml`},{match:/\.toml$/i,name:`toml`,description:`TOML`,icon:`i-catppuccin-toml`},{match:/\.svg$/i,name:`svg`,description:`SVG`,icon:`i-catppuccin-svg`}],o=[{match:/^(replace|define|alias)$/,name:`rollup`,description:`Rollup`,icon:`i-catppuccin-rollup`},{match:/^vite:/i,name:`vite`,description:`Vite`,icon:`i-catppuccin-vite`},{match:/^unocss:/i,name:`unocss`,description:`Unocss`,icon:`i-catppuccin-unocss`},{match:/^nuxt:/i,name:`nuxt`,description:`Nuxt`,icon:`i-catppuccin-nuxt`},{match:/^builtin:/i,name:`builtin`,description:`Builtin`,icon:`i-catppuccin-folder-prisma`}],s={name:`file`,match:/.*/,description:`File`,icon:`i-catppuccin-file`},c={name:`plugin`,match:/.*/,description:`User Plugins`,icon:`i-catppuccin-folder-plugins`};function l(e){return a.find(t=>t.name===e)??s}const u=i(e=>{e=e.replace(/(\?|&)v=[^&]*/,`$1`).replace(/\?$/,``);for(let t of a)if(t.match.test(e))return t;return s}),d=i(e=>{for(let t of o)if(t.match.test(e))return t;return c});function f(e,t=1){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return p(n%360,t)}function p(t,n=1){return`hsla(${t}, ${e.value?50:65}%, ${e.value?60:40}%, ${n})`}const m={error:0,client:60,bailout:-1,ssr:270,vite:250,vite1:240,vite2:120,virtual:160,nuxt:140};function h(e,t=1){if(e=e.replace(/[^a-z]+/gi,``).toLowerCase(),e in m){let n=m[e];return typeof n==`number`?p(n,t):t===1?n:n+Math.floor(t*255).toString(16).padStart(2,`0`)}return f(e,t)}export{a,l as c,c as i,d as l,p as n,o,h as r,u as s,f as t,i as u};
@@ -1 +1 @@
1
- import{At as e,Ht as t,Tt as n,en as r,h as i,in as a,it as o,kt as s,lt as c,mt as l,st as u,tn as d,tt as f,ut as p}from"./axTMqr-M.js";var m={flex:`col gap-2`,"max-w-90vw":``,"min-w-30vw":``,border:`~ base rounded-xl`,"bg-glass":``},h={key:0},g=[`title`],_=[`checked`,`onChange`],v={"text-sm":``},y=[`title`],b={key:0,op75:``,"i-ph-selection-slash-duotone":``},x={key:1,op75:``,"i-ph-selection-plus-duotone":``},S=l({__name:`SearchPanel`,props:{rules:{},modelValue:{default:()=>({search:``,selected:null})},selectedContainerClass:{default:``}},emits:[`update:modelValue`],setup(l,{emit:S}){let C=l,w=i(C,`modelValue`,S);function T(e){let{modelValue:t}=C;return t?.selected?t.selected.includes(e.name):!0}function E(e){let{rules:t}=C;w?.value?.selected||(w.value.selected=t.map(e=>e.name)),w.value.selected.includes(e.name)?w.value.selected=w.value.selected.filter(t=>t!==e.name):w.value.selected.push(e.name),w?.value?.selected.length===C.rules.length&&(w.value.selected=null)}function D(){w?.value?.selected?.length===C.rules.length?w.value.selected=null:w?.value?.selected==null?w.value.selected=[]:w.value.selected=C.rules.map(e=>e.name).filter(e=>!w.value.selected?.includes(e))}function O(){w?.value?.selected?.length===0?w.value.selected=null:w.value.selected=[]}return(i,S)=>(n(),p(`div`,m,[l.modelValue.search===!1?c(``,!0):(n(),p(`div`,h,[t(u(`input`,{"onUpdate:modelValue":S[0]||=e=>r(w).search=e,p2:``,px4:``,"w-full":``,style:{outline:`none`},placeholder:`Search`},null,512),[[f,r(w).search]])])),l.rules.length?(n(),p(`div`,{key:1,class:d(l.selectedContainerClass),flex:`~ gap-2 wrap`,p2:``,border:`t base`},[(n(!0),p(o,null,s(l.rules,e=>(n(),p(`label`,{key:e.name,border:`~ base rounded-md`,px2:``,py1:``,flex:`~ items-center gap-1`,"select-none":``,title:e.description,class:d(T(e)?`bg-active`:`grayscale op50`)},[u(`input`,{type:`checkbox`,mr1:``,checked:T(e),onChange:t=>E(e)},null,40,_),u(`div`,{class:d(e.icon),"icon-catppuccin":``},null,2),u(`div`,v,a(e.description||e.name),1)],10,g))),128)),u(`button`,{"rounded-md":``,p1:``,flex:`~ items-center gap-1`,"select-none":``,hover:`bg-active`,title:`Reverse Selection`,onClick:D},[...S[1]||=[u(`div`,{op75:``,"i-ph-selection-background-duotone":``},null,-1)]]),u(`button`,{"rounded-md":``,p1:``,flex:`~ items-center gap-1`,"select-none":``,hover:`bg-active`,title:r(w).selected?.length===0?`Select All`:`Unselect All`,onClick:O},[r(w).selected?.length===0?(n(),p(`div`,b)):(n(),p(`div`,x))],8,y)],2)):c(``,!0),e(i.$slots,`default`)]))}}),C=Object.assign(S,{__name:`DataSearchPanel`});export{C as t};
1
+ import{At as e,Ht as t,Tt as n,en as r,h as i,in as a,it as o,kt as s,lt as c,mt as l,st as u,tn as d,tt as f,ut as p}from"./C-xw4DlO.js";var m={flex:`col gap-2`,"max-w-90vw":``,"min-w-30vw":``,border:`~ base rounded-xl`,"bg-glass":``},h={key:0},g=[`title`],_=[`checked`,`onChange`],v={"text-sm":``},y=[`title`],b={key:0,op75:``,"i-ph-selection-slash-duotone":``},x={key:1,op75:``,"i-ph-selection-plus-duotone":``},S=l({__name:`SearchPanel`,props:{rules:{},modelValue:{default:()=>({search:``,selected:null})},selectedContainerClass:{default:``}},emits:[`update:modelValue`],setup(l,{emit:S}){let C=l,w=i(C,`modelValue`,S);function T(e){let{modelValue:t}=C;return t?.selected?t.selected.includes(e.name):!0}function E(e){let{rules:t}=C;w?.value?.selected||(w.value.selected=t.map(e=>e.name)),w.value.selected.includes(e.name)?w.value.selected=w.value.selected.filter(t=>t!==e.name):w.value.selected.push(e.name),w?.value?.selected.length===C.rules.length&&(w.value.selected=null)}function D(){w?.value?.selected?.length===C.rules.length?w.value.selected=null:w?.value?.selected==null?w.value.selected=[]:w.value.selected=C.rules.map(e=>e.name).filter(e=>!w.value.selected?.includes(e))}function O(){w?.value?.selected?.length===0?w.value.selected=null:w.value.selected=[]}return(i,S)=>(n(),p(`div`,m,[l.modelValue.search===!1?c(``,!0):(n(),p(`div`,h,[t(u(`input`,{"onUpdate:modelValue":S[0]||=e=>r(w).search=e,p2:``,px4:``,"w-full":``,style:{outline:`none`},placeholder:`Search`},null,512),[[f,r(w).search]])])),l.rules.length?(n(),p(`div`,{key:1,class:d(l.selectedContainerClass),flex:`~ gap-2 wrap`,p2:``,border:`t base`},[(n(!0),p(o,null,s(l.rules,e=>(n(),p(`label`,{key:e.name,border:`~ base rounded-md`,px2:``,py1:``,flex:`~ items-center gap-1`,"select-none":``,title:e.description,class:d(T(e)?`bg-active`:`grayscale op50`)},[u(`input`,{type:`checkbox`,mr1:``,checked:T(e),onChange:t=>E(e)},null,40,_),u(`div`,{class:d(e.icon),"icon-catppuccin":``},null,2),u(`div`,v,a(e.description||e.name),1)],10,g))),128)),u(`button`,{"rounded-md":``,p1:``,flex:`~ items-center gap-1`,"select-none":``,hover:`bg-active`,title:`Reverse Selection`,onClick:D},[...S[1]||=[u(`div`,{op75:``,"i-ph-selection-background-duotone":``},null,-1)]]),u(`button`,{"rounded-md":``,p1:``,flex:`~ items-center gap-1`,"select-none":``,hover:`bg-active`,title:r(w).selected?.length===0?`Select All`:`Unselect All`,onClick:O},[r(w).selected?.length===0?(n(),p(`div`,b)):(n(),p(`div`,x))],8,y)],2)):c(``,!0),e(i.$slots,`default`)]))}}),C=Object.assign(S,{__name:`DataSearchPanel`});export{C as t};