@vitejs/devtools-rolldown 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +0 -6
- package/dist/nitro.json +1 -1
- package/dist/public/200.html +1 -1
- package/dist/public/404.html +1 -1
- package/dist/public/_nuxt/B93mbFaw.js +1 -0
- package/dist/public/_nuxt/BK_evZhr2.js +1 -0
- package/dist/public/_nuxt/BMB5NJph.js +1 -0
- package/dist/public/_nuxt/{CNhzLIej.js → BN7ehjOp.js} +1 -1
- package/dist/public/_nuxt/{DGePBXlZ.js → BWMtL8wB.js} +1 -1
- package/dist/public/_nuxt/{B8Pee7C0.js → BdJ_JF0w.js} +1 -1
- package/dist/public/_nuxt/BgoIwvw3.js +1 -0
- package/dist/public/_nuxt/BsPeO-X9.js +1 -0
- package/dist/public/_nuxt/BvWn17I_.js +12 -0
- package/dist/public/_nuxt/{C2GH2ak5.js → Bw1q8I0g.js} +1 -1
- package/dist/public/_nuxt/{EJd6K-J0.js → C7OoXhk0.js} +1 -1
- package/dist/public/_nuxt/C7WGk_rq.js +2 -0
- package/dist/public/_nuxt/{CyUS7GqK.js → CEtF9LWU.js} +2 -2
- package/dist/public/_nuxt/{D4uTGA7r.js → CSK2QzqY.js} +1 -1
- package/dist/public/_nuxt/CUsyfwWC.js +1 -0
- package/dist/public/_nuxt/CZg4aoum.js +1 -0
- package/dist/public/_nuxt/{Bc8dubgH.js → Cb77vzCb.js} +1 -1
- package/dist/public/_nuxt/ChFn95N-.js +1 -0
- package/dist/public/_nuxt/{Cy7pLEz3.js → CvnmAwQf.js} +1 -1
- package/dist/public/_nuxt/DDvY2cLx.js +1 -0
- package/dist/public/_nuxt/DHvQIQw5.js +1 -0
- package/dist/public/_nuxt/DJTkDKGN.js +1 -0
- package/dist/public/_nuxt/DLTtVSvg2.js +1 -0
- package/dist/public/_nuxt/DQ45Xu1f.js +1 -0
- package/dist/public/_nuxt/DataVirtualList.CjCVip5P.css +1 -0
- package/dist/public/_nuxt/DbSMFLvz.js +1 -0
- package/dist/public/_nuxt/{DE4LYGEQ.js → DlCwyx2g.js} +1 -1
- package/dist/public/_nuxt/Dm4CqiyV.js +1 -0
- package/dist/public/_nuxt/Dsy9hcD72.js +1 -0
- package/dist/public/_nuxt/{BWso7RtX.js → Dv3_npnh.js} +1 -1
- package/dist/public/_nuxt/JqdhbCkY.js +1 -0
- package/dist/public/_nuxt/{CslYnwdN.js → KgssGmNv.js} +1 -1
- package/dist/public/_nuxt/Opwc7YtP2.js +1 -0
- package/dist/public/_nuxt/XDMGgUv8.js +1 -0
- package/dist/public/_nuxt/Xmh1ayIL2.js +1 -0
- package/dist/public/_nuxt/builds/latest.json +1 -1
- package/dist/public/_nuxt/builds/meta/35ace98d-68a0-4b96-9871-0cefcb64bde5.json +1 -0
- package/dist/public/_nuxt/dIDzU19U.js +1 -0
- package/dist/public/_nuxt/{entry.Cdp-jYgM.css → entry.C3w9SVWr.css} +1 -1
- package/dist/public/_nuxt/error-404.CvDm6pT4.css +1 -0
- package/dist/public/_nuxt/error-500.B6RqN-C_.css +1 -0
- package/dist/public/_nuxt/lSJeop7v.js +1 -0
- package/dist/public/_nuxt/okblV2iS.js +1 -0
- package/dist/public/_nuxt/ouc94uM32.js +1 -0
- package/dist/public/index.html +1 -1
- package/package.json +38 -38
- package/dist/public/_nuxt/5X3skKrQ2.js +0 -1
- package/dist/public/_nuxt/6dmQ5yi9.js +0 -1
- package/dist/public/_nuxt/BGo3TQDe2.js +0 -1
- package/dist/public/_nuxt/BZbl9b6M.js +0 -2
- package/dist/public/_nuxt/BcmauC2P2.js +0 -1
- package/dist/public/_nuxt/Bp4eI3o72.js +0 -1
- package/dist/public/_nuxt/Bqcxb-Bh2.js +0 -1
- package/dist/public/_nuxt/ByPScZnZ.js +0 -1
- package/dist/public/_nuxt/CNF2WI0B.js +0 -1
- package/dist/public/_nuxt/COVKvZqR.js +0 -1
- package/dist/public/_nuxt/CYHE6NHg.js +0 -1
- package/dist/public/_nuxt/CeUdh6JR.js +0 -1
- package/dist/public/_nuxt/CoGMAm3u.js +0 -1
- package/dist/public/_nuxt/Csgp_tbz2.js +0 -1
- package/dist/public/_nuxt/D0PBHtPK.js +0 -1
- package/dist/public/_nuxt/D9y1gK-U.js +0 -2
- package/dist/public/_nuxt/DSjaPvg5.js +0 -1
- package/dist/public/_nuxt/DataVirtualList.lGV_3v2U.css +0 -1
- package/dist/public/_nuxt/DjwOaWuE.js +0 -1
- package/dist/public/_nuxt/GNBXjCbD.js +0 -1
- package/dist/public/_nuxt/L1-1zWht.js +0 -1
- package/dist/public/_nuxt/VSGDfpIu.js +0 -1
- package/dist/public/_nuxt/builds/meta/fbcc677b-17ad-4021-b787-c7c5a657adc4.json +0 -1
- package/dist/public/_nuxt/d4UCo6ai.js +0 -1
- package/dist/public/_nuxt/error-404.DCvw7d8G.css +0 -1
- package/dist/public/_nuxt/error-500.DMS_OhD_.css +0 -1
- package/dist/public/_nuxt/jJjSdHHs.js +0 -1
- package/dist/public/_nuxt/lwvhLhUg.js +0 -12
- package/dist/public/_nuxt/njczzgS1.js +0 -1
- package/dist/public/_nuxt/pNZCMUGD.js +0 -1
- /package/dist/public/_nuxt/{BrE3R8vW.js → 5tvbNeKa.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,C as n,Et as r,Gt as i,Ht as a,M as o,S as s,Z as c,b as l,bt as u,h as d,k as f,lt as p,ot as m,q as h,vt as g,w as _,x as v}from"./CyUS7GqK.js";import{C as y,w as b}from"./Bc8dubgH.js";import{c as x,g as S,l as C,p as ee}from"./D0PBHtPK.js";import{r as w}from"./CeUdh6JR.js";import{a as T,n as te,r as E}from"#entry";import{t as D}from"./B8Pee7C0.js";import{r as O,t as k}from"./Cy7pLEz3.js";import{r as A,t as j}from"./jJjSdHHs.js";import{n as M,r as N,t as P}from"./D9y1gK-U.js";import{a as ne,c as F,n as I,t as re}from"./VSGDfpIu.js";import{t as L}from"./BWso7RtX.js";import{t as ie}from"./DjwOaWuE.js";var R={flex:`~ row gap-1`,"of-hidden":``},z={flex:`~ row gap-1`,"ws-nowrap":``},B={p2:``,flex:`~ col gap-1`},V=o({__name:`Importers`,props:{package:{},session:{},showVersion:{type:Boolean}},setup(r){let i=r,a=l(()=>{let e=new Map;return i.package.files.filter(e=>!!e.importers).flatMap(e=>e.importers).filter(e=>!e.path.startsWith(i.package?.dir??``)).forEach(t=>{e.set(t.path,t)}),Array.from(e.values())});return(i,o)=>{let l=k,u=e(`VMenu`);return h(),_(`div`,R,[v(`div`,z,[t(l,{id:a.value[0].path,session:r.session,link:``},null,8,[`id`,`session`]),a.value[0].version&&r.showVersion?(h(),s(O,{key:0,text:a.value[0].version,as:`span`},null,8,[`text`])):n(``,!0)]),a.value.length>1?(h(),s(u,{key:0,delay:{show:200,hide:0},"flex-none":``},{popper:p(()=>[v(`div`,B,[(h(!0),_(d,null,c(a.value,e=>(h(),_(`div`,{key:e.path,flex:`~ row gap-1 items-center nowrap`,"w-max":``},[t(l,{id:e.path,session:r.session,"ws-nowrap":``,"flex-1":``,"disable-tooltip":``,link:``},null,8,[`id`,`session`]),e.version&&r.showVersion?(h(),s(O,{key:0,text:`v${e.version}`,as:`span`},null,8,[`text`])):n(``,!0)]))),128))])]),default:p(()=>[t(O,{text:`+${a.value.length}`,color:100,class:`text-xs rounded px1`},null,8,[`text`])]),_:1})):n(``,!0)])}}}),H=Object.assign(V,{__name:`PackagesImporters`}),U={role:`table`,"min-w-max":``,border:`~ base rounded-xl`},W={role:`row`,class:`border-b border-base`,flex:`~ row`},G=[`title`],K={key:0,"font-mono":``},q={key:0,title:`Package version`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"min-w40":``,"ws-nowrap":``,"text-left":``,"py1.5":``,px2:``,"font-600":``},J={flex:`~ row gap1 items-center justify-end`,"w-full":``,relative:``,pr2:``},Y={key:0,role:`cell`,"font-mono":``,"flex-none":``,w80:``,"py1.5":``,px2:``,"ws-nowrap":``,"text-sm":``,"overflow-hidden":``,truncate:``},X={"font-mono":``,"text-sm":``},Z={role:`cell`,flex:`~ items-center justify-end`,"flex-none":``,"font-mono":``,"py1.5":``,px2:``,"text-sm":``,"min-w40":``,op80:``},Q={p2:``,flex:`~ col gap-1`},ae={w24:``,"inline-flex":``},oe={role:`cell`,flex:`~ items-center`,"flex-1":``,"font-mono":``,"py1.5":``,pl20:``,pr2:``,"text-sm":``,op80:``},se={key:1},ce=o({__name:`Table`,props:{packages:{},session:{},disableSizeSort:{type:Boolean,default:!1},groupView:{type:Boolean,default:!1}},setup(e){let o=y(),{state:l,next:u}=C([``,`desc`,`asc`],{initialValue:j.value.packageSizeSortType});function m(){u(),j.value.packageSizeSortType=l.value}return(u,g)=>{let y=L,b=A,x=k,S=H,C=D;return h(),_(`div`,U,[v(`div`,W,[v(`div`,{title:e.groupView?`Package`:`Bundled packages`,role:`columnheader`,"rounded-tl-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,px2:``,"font-600":``,class:a([e.groupView?`min-w40`:`min-w80`])},[e.groupView?(h(),_(`div`,K,[t(y,{name:e.packages?.[0]?.name},null,8,[`name`])])):(h(),_(d,{key:1},[f(` Package `)],64))],10,G),e.groupView?n(``,!0):(h(),_(`div`,q,` Version `)),v(`div`,{title:`Transformed code size`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,"font-600":``,"min-w40":``,class:a([e.groupView?`px2`:`pl2`])},[v(`button`,J,[g[0]||=f(` Size `,-1),e.disableSizeSort?n(``,!0):(h(),_(`span`,{key:0,"w-6":``,"h-6":``,"rounded-full":``,"cursor-pointer":``,hover:`bg-active`,flex:`~ items-center justify-center`,onClick:m},[v(`i`,{"text-xs":``,class:a([r(l)===`asc`?`i-ph-arrow-up-duotone`:`i-ph-arrow-down-duotone`,r(l)?`op100 text-primary`:`op50`])},null,2)]))])],2),g[1]||=v(`div`,{title:`Importers`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,pl20:``,pr2:``,"font-600":``,"min-w50":``},` Importers `,-1)]),e.packages.length?(h(),s(P,{key:0,role:`rowgroup`,items:e.packages,"key-prop":`dir`},{default:p(({item:s,index:l})=>[t(C,{role:`row`,flex:`~ row`,class:a([`border-base border-b-1 border-dashed`,[l===e.packages.length-1?`border-b-0`:``]]),to:{path:r(o).path,query:{package:`${s.name}@${s.version}`}}},{default:p(()=>[t(r(T),{triggers:[`hover`],delay:1200,disabled:s.name.length<30},{popper:p(()=>[v(`span`,X,i(s.name),1)]),default:p(()=>[e.groupView?n(``,!0):(h(),_(`div`,Y,[t(y,{name:s.name},null,8,[`name`])]))]),_:2},1032,[`disabled`]),v(`div`,{role:`cell`,flex:`~ items-center`,"text-left":``,"flex-none":``,"font-mono":``,"py1.5":``,px2:``,"text-sm":``,"min-w40":``,op80:``,class:a({"text-primary":s.duplicated})},i(s.version),3),v(`div`,Z,[t(r(E),{delay:{show:200,hide:0}},{popper:p(()=>[v(`div`,Q,[(h(!0),_(d,null,c(s.files.filter(e=>!!e.transformedCodeSize),n=>(h(),_(`div`,{key:n.path,flex:`~ row gap-1 items-center nowrap`,"w-max":``},[v(`span`,ae,[t(b,{bytes:n.transformedCodeSize},null,8,[`bytes`])]),t(x,{id:n.path,session:e.session,"ws-nowrap":``,"flex-1":``,"disable-tooltip":``,link:``,cwd:s.dir},null,8,[`id`,`session`,`cwd`])]))),128))])]),default:p(()=>[t(b,{bytes:s.transformedCodeSize},null,8,[`bytes`])]),_:2},1024)]),v(`div`,oe,[t(S,{package:s,session:e.session,"show-version":e.groupView},null,8,[`package`,`session`,`show-version`])])]),_:2},1032,[`class`,`to`])]),_:1},8,[`items`])):(h(),_(`div`,se,[...g[2]||=[v(`div`,{p4:``},[v(`div`,{"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},[v(`p`,null,` No data `)])],-1)]]))])}}}),$=Object.assign(ce,{__name:`PackagesTable`}),le={key:1,p4:``},ue=o({__name:`Duplicated`,props:{packages:{},session:{}},setup(e){let n=e,r=l(()=>n.packages.filter(e=>e.duplicated)),i=l(()=>r.value.reduce((e,t)=>(e[t.name]=[...e[t.name]||[],t],e),{}));return(n,a)=>{let o=$;return r.value.length?(h(!0),_(d,{key:0},c(i.value,(n,r)=>(h(),_(`div`,{key:r},[t(o,{packages:n,session:e.session,"group-view":``,"disable-size-sort":``},null,8,[`packages`,`session`])]))),128)):(h(),_(`div`,le,[...a[0]||=[v(`div`,{"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},` No duplicate packages `,-1)]]))}}}),de=Object.assign(ue,{__name:`PackagesDuplicated`}),fe={key:1,relative:``,"max-h-screen":``,"of-hidden":``},pe={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},me={flex:`~ gap-2 items-center`,p2:``,border:`t base`},he=[`onClick`],ge={"of-auto":``,"h-screen":``,flex:`~ col gap-2`,pt44:``,px4:``,pb4:``},_e={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},ve={op50:``},ye={key:1,"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},be={key:0,"bg-glass":``,border:`~ base rounded`,p2:``,"text-sm":``,flex:`~ col gap-2`},xe={flex:`~ gap-1 items-center`},Se={flex:`~ gap-1 items-center`},Ce=o({__name:`packages`,props:{session:{}},setup(e){let o=e,C=g(ee()),T=y(),E=b(),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=w(),k=u({search:``,selected:[`direct`,`transitive`]}),{state:P,isLoading:L}=x(async()=>await O.value.call(`vite:rolldown:get-packages`,{session:o.session.id}),null),R=S(()=>P.value,()=>new N(P.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),z=l(()=>P.value?Object.values(P.value.reduce((e,t)=>(e[t.name]=(e[t.name]||0)+1,e),{})).filter(e=>e>1).length:0),B=l(()=>[{label:`Table`,value:`table`,icon:`i-ph-table-duotone`},{label:`Treemap`,value:`treemap`,icon:`i-ph-checkerboard-duotone`},{label:`Duplicate Packages${z.value>0?` (${z.value})`:``}`,value:`duplicate-packages`,icon:`i-ph-package-duotone`}]),V=l(()=>k.value.search?R.value.search(k.value.search).map(e=>e.item):[...P.value||[]]),H=l(()=>{let e=j.value.packageSizeSortType,t=V.value.toSorted((e,t)=>(e.name||``).localeCompare(t.name||``));return(e?t.sort((t,n)=>e===`asc`?t.transformedCodeSize-n.transformedCodeSize:n.transformedCodeSize-t.transformedCodeSize):t).filter(e=>!k.value.selected||k.value.selected.some(t=>t.match(e.type)))});function U(e){j.value.packageViewType=e}let{tree:W,chartOptions:G,graph:K,nodeHover:q,nodeSelected:J,selectedNode:Y,selectNode:X,buildGraph:Z}=re({data:H,nameKey:`name`,sizeKey:`transformedCodeSize`,rootText:`Packages`,nodeType:`package`,graphOptions:{onHover(e){e&&!T.query.package&&(q.value=e),e===null&&(q.value=void 0)},onClick(e){e.meta?.type===`package`&&E.replace({query:{...T.query,package:`${e.meta?.name}@${e.meta?.version}`}})},onLeave(){q.value=void 0},onSelect(e){J.value=e||W.value.root,Y.value=e?.meta}},onUpdate(){j.value.packageViewType===`treemap`&&(K.value=new ne(W.value.root,{...G.value,selectedPaddingRatio:0}))}});return m(()=>j.value.packageViewType,()=>{Z()}),(o,l)=>{let u=te,m=M,g=$,y=I,b=de,x=A,S=F;return r(L)?(h(),s(u,{key:0})):(h(),_(`div`,fe,[v(`div`,pe,[t(m,{modelValue:k.value,"onUpdate:modelValue":l[0]||=e=>k.value=e,rules:D},{default:p(()=>[v(`div`,me,[l[2]||=v(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(h(!0),_(d,null,c(B.value,e=>(h(),_(`button`,{key:e.value,"btn-action":``,class:a(r(j).packageViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>U(e.value)},[v(`div`,{class:a(e.icon)},null,2),f(` `+i(e.label),1)],10,he))),128))])]),_:1},8,[`modelValue`])]),v(`div`,ge,[r(j).packageViewType===`table`?(h(),_(d,{key:0},[t(g,{packages:H.value,session:e.session},null,8,[`packages`,`session`]),v(`div`,_e,[v(`span`,ve,i(V.value.length)+` of `+i(r(P)?.length||0),1)])],64)):r(j).packageViewType===`treemap`?(h(),_(d,{key:1},[r(K)&&H.value.length?(h(),s(ie,{key:0,graph:r(K),selected:r(J),onSelect:l[1]||=e=>r(X)(e)},{default:p(({selected:e,options:n,onSelect:r})=>[t(y,{border:`b base`,py2:``,"min-h-10":``,selected:e,options:n,onSelect:r},null,8,[`selected`,`options`,`onSelect`])]),_:1},8,[`graph`,`selected`])):(h(),_(`span`,ye,` No Data `))],64)):r(j).packageViewType===`duplicate-packages`?(h(),s(b,{key:2,packages:H.value,session:e.session},null,8,[`packages`,`session`])):n(``,!0)]),t(S,{"hover-x":C.x,"hover-y":C.y},{default:p(()=>[r(q)?.meta?(h(),_(`div`,be,[v(`div`,xe,i(r(q).text),1),v(`div`,Se,[t(x,{bytes:r(q).size,percent:!1},null,8,[`bytes`])])])):n(``,!0)]),_:1},8,[`hover-x`,`hover-y`])]))}}});export{Ce as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,C as t,Et as n,Gt as r,M as i,S as a,Z as o,h as s,lt as c,q as l,w as u,x as d}from"./CyUS7GqK.js";import{C as f}from"./Bc8dubgH.js";import{c as p}from"./D0PBHtPK.js";import{r as m}from"./CeUdh6JR.js";import{n as h,o as g}from"#entry";import"./B8Pee7C0.js";import{r as _,t as v}from"./Cy7pLEz3.js";import{t as y}from"./CoGMAm3u.js";import{t as b}from"./pNZCMUGD.js";var x={key:0},S={key:2},C={op50:``},w={key:3},T=[`textContent`],E=[`textContent`],D=i({__name:`RawEventsTable`,props:{events:{},fields:{default:()=>[`event_id`,`action`,`module_id`,`plugin_name`,`timestamp`,`content`,`*`]},session:{}},setup(i){let f=i;function p(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 m(e){return e.action===`HookLoadCallEnd`||e.action===`HookTransformCallStart`||e.action===`HookTransformCallEnd`?e.content:null}return(h,D)=>{let O=v,k=b;return l(),u(s,null,[i.events.length?t(``,!0):(l(),u(`div`,x,[...D[0]||=[d(`div`,{p5:``,italic:``},` No events found `,-1)]])),d(`table`,null,[d(`tbody`,null,[(l(!0),u(s,null,o(f.events,h=>(l(),u(`tr`,{key:h.event_id},[(l(!0),u(s,null,o(f.fields,o=>(l(),u(`td`,{key:o,px2:``},[o===`module_id`?(l(),a(O,{key:0,id:`module_id`in h?h.module_id:``,session:i.session},null,8,[`id`,`session`])):o===`action`?(l(),a(_,{key:1,text:h.action},null,8,[`text`])):o===`plugin_name`&&`plugin_name`in h?(l(),u(`div`,S,[e(k,{"font-mono":``,name:h.plugin_name},null,8,[`name`]),d(`code`,C,`#`+r(h.plugin_id),1)])):o===`event_id`?(l(),u(`div`,w,r(h.event_id),1)):o===`content`&&m(h)?(l(),a(n(g),{key:4},{popper:c(()=>[d(`pre`,{p1:``,"text-sm":``,textContent:r(m(h))},null,8,T)]),default:c(()=>[D[1]||=d(`div`,{"i-ph-code":``},null,-1)]),_:2},1024)):o===`timestamp`&&`timestamp`in h?(l(),a(y,{key:5,"text-sm":``,timestamp:h.timestamp},null,8,[`timestamp`])):o===`*`?(l(),u(`pre`,{key:6,"text-sm":``,textContent:r(p(h,i.fields))},null,8,E)):t(``,!0)]))),128))]))),128))])])],64)}}}),O=Object.assign(D,{__name:`DataRawEventsTable`}),k={key:1},A=i({__name:`raw`,props:{session:{}},setup(r){let i=r,o=m(),c=f().query,g=p(async()=>await o.value.call(`vite:rolldown:get-module-raw-events`,{session:i.session.id,module:c.module}),{events:[]});return(i,o)=>{let c=h,f=O;return l(),u(s,null,[n(g).isLoading?(l(),a(c,{key:0})):t(``,!0),d(`div`,null,[n(g).isReady?(l(),a(f,{key:0,events:n(g).state.value.events,session:r.session},null,8,[`events`,`session`])):(l(),u(`div`,k,[e(c)]))])],64)}}});export{A as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Gt as e,M as t,Z as n,h as r,q as i,w as a,x as o}from"./CyUS7GqK.js";var s={flex:`~ gap5`,"w-full":``,border:`b base`,pb3:``},c={"font-mono":``},l={"font-mono":``},u=[`datetime`],d=t({__name:`SessionMeta`,props:{sessions:{}},setup(t){return(d,f)=>(i(),a(`div`,s,[(i(!0),a(r,null,n(t.sessions,t=>(i(),a(`div`,{key:t.id,"flex-1":``,border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_140px_2fr] max-lg:cols-[max-content_80px_2fr] gap-2 items-center`},[f[0]||=o(`div`,{class:`i-ph-hash-duotone`},null,-1),o(`div`,null,e(t.title),1),o(`div`,c,[o(`span`,null,e(t.id),1)]),f[1]||=o(`div`,{class:`i-ph-clock-duotone`},null,-1),f[2]||=o(`div`,null,` Created At `,-1),o(`div`,l,[o(`time`,{datetime:t.createdAt.toISOString()},e(t.createdAt.toLocaleString()),9,u)])]))),128))]))}}),f=Object.assign(d,{__name:`CompareSessionMeta`});export{f as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,C as t,G as n,Gt as r,Ht as i,M as a,S as o,Z as s,b as c,bt as l,h as u,k as d,lt as f,q as p,w as m,x as h,z as g}from"./CyUS7GqK.js";import{C as _}from"./Bc8dubgH.js";import{r as v}from"./CeUdh6JR.js";import{n as y}from"#entry";import{t as b}from"./B8Pee7C0.js";import{t as x}from"./ByPScZnZ.js";import{t as S}from"./D04G8HHr.js";var C=a({__name:`ComparisonMetric`,props:{current:{},previous:{}},setup(e){let t=e,n=c(()=>t.previous===t.current),a=c(()=>Math.abs((t.current-t.previous)/t.previous*100).toFixed(n.value?0:2)),o=c(()=>n.value?``:t.current>t.previous?`+`:`-`),s=c(()=>n.value?`text-gray-500`:t.current>t.previous?`text-green-500`:`text-red-500`);return(e,t)=>(p(),m(`span`,{"text-4":``,"mt-1":``,"font-mono":``,class:i(s.value)},r(o.value)+r(a.value)+`% `,3))}}),w=Object.assign(C,{__name:`DisplayComparisonMetric`}),T=[`title`],E={flex:`~ gap-2`,"items-center":``},D={key:0},O={"font-semibold":``,"text-5":``,"font-mono":``},k={"font-semibold":``,"text-4":``,"font-mono":``},A={key:1},j={"font-semibold":``,"text-5":``,"font-mono":``},M=a({__name:`MetricCard`,props:{name:{},description:{},icon:{},current:{},previous:{},format:{}},setup(e){let n=e,a=c(()=>n.format===`bytes`?S(n.current):n.current);return(n,s)=>{let c=w;return p(),m(u,null,[h(`div`,{"font-500":``,op50:``,"text-4":``,flex:`~ items-center gap-2`,title:e.description},[h(`div`,{class:i([e.icon,`text-xl`])},null,2),d(` `+r(e.name),1)],8,T),h(`div`,E,[e.format===`bytes`?(p(),m(`div`,D,[h(`span`,O,r(a.value[0]),1),h(`span`,k,r(a.value[1]),1)])):(p(),m(`div`,A,[h(`span`,j,r(a.value),1)])),e.previous>0&&e.current>0?(p(),o(c,{key:2,current:e.current,previous:e.previous},null,8,[`current`,`previous`])):t(``,!0)])],64)}}}),N=Object.assign(M,{__name:`CompareMetricCard`}),P={key:1,"h-screen":``,"w-screen":``,"max-w-screen":``,"max-h-screen":``,"of-hidden":``,p6:``,flex:`~ col gap-2`},F={flex:`~ gap-2`},I={flex:`~ col`,border:`~ base rounded-lg`,p3:``,mt10:``},L={grid:`~ cols-6 gap5`,"w-full":``,pt3:``},R=a({__name:`index`,setup(t){let r=l(!1),a=_().params,S=v(),C=l([]),w=l([]);async function T(e){let t=await S.value.call(`vite:rolldown:get-packages`,{session:e}),n=t.filter(e=>e.duplicated);return{total:t.length,duplicated:n.length}}n(async()=>{r.value=!0;let e=a.sessions.split(`,`),[t,...n]=await Promise.all([S.value.call(`vite:rolldown:get-session-compare-summary`,{sessions:e}),...e.map(e=>T(e))]);C.value=t,w.value=n,r.value=!1});let E=c(()=>C.value.map((e,t)=>({...e,createdAt:new Date(e.meta?.timestamp??0),title:t===0?`Session A`:`Session B`}))),D=c(()=>{let[e,t]=E.value;return[{name:`Bundle Size`,description:`Total file size of the assets`,icon:`i-ph-package-duotone`,current:t?.bundle_size??0,previous:e?.bundle_size??0,format:`bytes`},{name:`Initial JS`,description:`Total file size of the initial JS chunks`,icon:`i-ph-file-js-duotone`,current:t?.initial_js??0,previous:e?.initial_js??0,format:`bytes`},{name:`Modules`,description:`Total number of modules`,icon:`i-ph-graph-duotone`,current:t?.modules??0,previous:e?.modules??0},{name:`Packages`,description:`Total number of packages`,icon:`i-ph-package-duotone`,current:w.value?.[1]?.total??0,previous:w.value?.[0]?.total??0},{name:`Duplicated Packages`,description:`Total number of duplicated packages`,icon:`i-ph-package-duotone`,current:w.value?.[1]?.duplicated??0,previous:w.value?.[0]?.duplicated??0},{name:`Plugins`,description:`Total number of plugins`,icon:`i-ph-plugs-duotone`,current:t?.meta?.plugins.length??0,previous:e?.meta?.plugins.length??0},{name:`Chunks`,description:`Total number of chunks`,icon:`i-ph-shapes-duotone`,current:t?.chunks??0,previous:e?.chunks??0},{name:`Assets`,description:`Total number of assets`,icon:`i-ph-package-duotone`,current:t?.assets??0,previous:e?.assets??0}]});return(t,n)=>{let a=y,c=b,l=x,_=N;return r.value?(p(),o(a,{key:0})):(p(),m(`div`,P,[h(`div`,F,[e(c,{"btn-action":``,to:{path:`/`}},{default:f(()=>[...n[0]||=[h(`div`,{"i-ph-arrow-bend-up-left-duotone":``},null,-1),d(` Re-select Session `,-1)]]),_:1})]),h(`div`,I,[n[1]||=h(`div`,{py3:``,"indent-2":``},` Compare Overview `,-1),e(l,{sessions:E.value},null,8,[`sessions`]),h(`div`,L,[(p(!0),m(u,null,s(D.value,(t,n)=>(p(),m(`div`,{key:t.name,class:i(n<2?`col-span-3`:`col-span-2`),border:`~ base rounded`,p4:``,flex:`~ col`,gap2:``},[e(_,g({ref_for:!0},t),null,16)],2))),128))])])]))}}});export{R as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,C as t,Et as n,G as r,Gt as i,Ht as a,M as o,Q as s,R as c,S as l,Ut as u,Wt as d,Z as f,b as p,bt as m,et as ee,h,lt as g,ot as _,q as v,rt as y,ut as b,w as x,x as S,z as C}from"./CyUS7GqK.js";import{G as w,H as T,z as E}from"./Bc8dubgH.js";import{g as D}from"./D0PBHtPK.js";import{i as O,r as k}from"#entry";import{a as A,c as j,i as M,o as N,r as P,s as F,t as I}from"./D4uTGA7r.js";import{r as L}from"./D9y1gK-U.js";var R={"flex-1":``,"w-0":``,"h-full":``},z={key:0,"w-full":``,"overflow-hidden":``,flex:`~ items-center`,border:`~ base rounded`,p1:``,relative:``},B={"overflow-hidden":``,"text-ellipsis":``,pr6:``,"w-0":``,"flex-1":``},V=[`placeholder`],H={class:`p2 w100`,flex:`~ col gap2`},U=o({__name:`PathSelectorItem`,props:c({selector:{},placeholder:{},session:{},data:{default:void 0},emptyStateText:{default:void 0},onClear:{type:Function,default:void 0}},{search:{required:!0},searchModifiers:{}}),emits:c([`clear`],[`update:search`]),setup(e,{emit:t}){let r=t,i=y(e,`search`);return(t,a)=>(v(),x(`div`,R,[e.selector.state.value.selected?(v(),x(`div`,z,[S(`div`,B,[s(t.$slots,`item`)]),S(`button`,{"i-carbon-clean":``,"text-4":``,hover:`op100`,op50:``,title:`Clear`,absolute:``,"right-2":``,onClick:a[0]||=e=>r(`clear`)})])):(v(),l(n(k),{key:1,distance:15,triggers:[`click`],"auto-hide":!1,delay:{show:300,hide:150},class:`h-full`},{popper:g(()=>[S(`div`,H,[e.data?.length?s(t.$slots,`list`,{key:0}):s(t.$slots,`empty`,{key:1})])]),default:g(()=>[b(S(`input`,{"onUpdate:modelValue":a[1]||=e=>i.value=e,py1:``,px4:``,"w-full":``,"h-full":``,border:`~ base rounded-1`,style:{outline:`none`},placeholder:e.placeholder,onBlur:a[2]||=(...e)=>n(O)&&n(O)(...e)},null,40,V),[[T,i.value]])]),_:3}))]))}}),W=Object.assign(U,{__name:`DataPathSelectorItem`});function G(e){let t=m({search:``,selected:null}),n=m(),r=p(e.getModules);function i(t){n.value=D(t,()=>new L(t.value,{includeScore:!0,keys:e.searchKeys||[`id`],ignoreLocation:!0,threshold:.4}))}function a(e){t.value.selected=e.id,t.value.search=``}function o(){t.value.selected=null}return{state:t,modules:r,fuse:n,initSelector:i,select:a,clear:o}}function K(e){let{onToggle:t,dataMap:n,list:r,importIdKey:i}=e,a=m(!1),o=m({start:``,end:``});function s(e){a.value=e??!a.value,t?.(a.value)}function c(e){o.value={start:e.start,end:e.end}}return{pathSelectorVisible:a,togglePathSelector:s,pathNodes:o,selectPathNodes:c,normalizedGraph:p(()=>{let{start:e,end:t}=o.value;if(!e&&!t)return r.value;let a=new Set,s=(e,t,n)=>{let r=[e],i=new Set,o=new Map([[`${e}`,[`${e}`]]]);for(;r.length>0;){let e=r.shift();i.has(e)||(i.add(e),n?e===n&&o.get(e)?.forEach(e=>a.add(e)):a.add(e),(!n||e!==n)&&t(e).forEach(t=>{i.has(`${t}`)||(r.push(`${t}`),n&&o.set(`${t}`,[...o.get(e)||[],`${t}`]))}))}};return e&&t?s(e,e=>n.value.get(e)?.imports.map(e=>e[i])||[],t):e&&s(e,e=>n.value.get(e)?.imports.map(e=>e[i])||[]),r.value.filter(e=>a.has(e.id)).map(t=>t.id===e?{...t,importers:[]}:t)})}}var q={h10:``,px4:``,p1:``,relative:``,flex:`~ gap2 items-center`},J={flex:`~ items-center gap2`,class:`flex-1 h-full`,"min-w-0":``},Y={flex:`~ items-center justify-center`,"w-full":``,"h-20":``},X={italic:``,op50:``},Z=o({__name:`PathSelector`,props:{session:{},data:{},importIdKey:{},searchKeys:{}},emits:[`close`,`select`],setup(t,{emit:r}){let a=t,o=r,c=p(()=>{let e=new Map;return a.data.forEach(t=>{e.set(t.id,t)}),e}),l=G({searchKeys:a.searchKeys,getModules:()=>l.state.value.search?l.fuse.value.value?.search(l.state.value.search).map(e=>e.item)??[]:a.data});l.initSelector(p(()=>a.data));function u(e,t=new Set){if(t.has(e))return[];t.add(e);let n=c.value.get(e);if(!n?.imports?.length)return[];let r=[];for(let e of n.imports){let n=c.value.get(`${e[a.importIdKey]}`);n&&(t.has(n.id)||(r.push(n),r.push(...u(n.id,t))))}return r}let d=G({searchKeys:a.searchKeys,getModules:()=>l.state.value.selected?u(l.state.value.selected):[]});d.initSelector(d.modules);let f=p(()=>d.state.value.search?d.fuse.value.value?.search(d.state.value.search).map(e=>e.item)??[]:d.modules.value);_([()=>l.state.value.selected,()=>d.state.value.selected],()=>{o(`select`,{start:l.state.value.selected??``,end:d.state.value.selected??``})});function m(){o(`select`,{start:``,end:``}),o(`close`)}return(r,a)=>{let o=W;return v(),x(`div`,q,[S(`div`,J,[e(o,{search:n(l).state.value.search,"onUpdate:search":a[0]||=e=>n(l).state.value.search=e,placeholder:`Start`,selector:n(l),session:t.session,data:n(l).modules.value,onClear:a[1]||=()=>{n(l).clear(),n(d).clear()}},{list:g(()=>[s(r.$slots,`list`,{select:n(l).select,data:n(l).modules.value})]),item:g(()=>[s(r.$slots,`item`,{id:n(l).state.value.selected})]),_:3},8,[`search`,`selector`,`session`,`data`]),a[3]||=S(`div`,{class:`i-carbon-arrow-right op50`,"flex-shrink-0":``},null,-1),e(o,{search:n(d).state.value.search,"onUpdate:search":a[2]||=e=>n(d).state.value.search=e,placeholder:`End`,selector:n(d),session:t.session,data:f.value,onClear:n(d).clear},{list:g(()=>[s(r.$slots,`list`,{select:n(d).select,data:f.value})]),item:g(()=>[s(r.$slots,`item`,{id:n(d).state.value.selected})]),empty:g(()=>[S(`div`,Y,[S(`span`,X,i(n(l).state.value.selected?`No modules`:`Select a start module to get end modules`),1)])]),_:3},8,[`search`,`selector`,`session`,`data`,`onClear`])]),e(I,{class:`mr--2`,onClick:m})])}}}),Q=Object.assign(Z,{__name:`DataPathSelector`}),te=o({inheritAttrs:!1,__name:`TimeoutView`,props:{content:{},hideInterval:{default:1500}},setup(e){let n=m(!1),r=null;return _(()=>e.content,()=>{r&&clearTimeout(r),n.value=!0,r=setTimeout(()=>{n.value=!1},e.hideInterval)}),(r,a)=>(v(),l(E,{"enter-active-class":`transition-opacity duration-200 ease-in`,"leave-active-class":`transition-opacity duration-500 ease-out`,"enter-from-class":`opacity-0`,"leave-to-class":`opacity-0`},{default:g(()=>[n.value?(v(),x(`div`,u(C({key:0},r.$attrs)),i(e.content),17)):t(``,!0)]),_:1}))}}),ne=Object.assign(te,{__name:`DisplayTimeoutView`}),re=[`width`,`height`],ie=[`d`],ae={class:`w-4`},oe=[`disabled`,`title`,`onClick`],$={fixed:``,"right-6":``,"bottom-6":``,"z-panel-nav":``,flex:`~ col gap-2 items-center`},se={"w-10":``,flex:`~ items-center justify-center`},ce={"bg-glass":``,"rounded-full":``,border:``,"border-base":``,shadow:``,flex:`~ col gap-1 p1`},le=[`disabled`],ue=[`disabled`],de=[`disabled`],fe=[`disabled`],pe=o({__name:`ModuleGraph`,props:{modules:{},session:{},expandControls:{type:Boolean,default:!0}},setup(i){let o=i,{isFirstCalculateGraph:c,childToParentMap:l,collapsedNodes:u,calculateGraph:p,container:m,width:g,height:y,scale:C,nodes:T,links:E,spacing:D,nodesRefMap:O}=F(),{isGrabbing:k,init:I}=A(),{zoomIn:L,zoomOut:R,ZOOM_MIN:z,ZOOM_MAX:B}=N(),{isGraphNodeToggling:V,toggleNode:H,expandAll:U,collapseAll:W}=j({modules:o.modules});return r(()=>{I(),_(()=>o.modules,()=>{c.value=!0,u.clear(),l.clear(),p()},{immediate:!0})}),(r,o)=>{let c=ne,l=ee(`tooltip`);return v(),x(`div`,{ref_key:`container`,ref:m,"w-full":``,"h-screen":``,"of-scroll":``,relative:``,"select-none":``,class:a(n(k)?`cursor-grabbing`:``)},[S(`div`,{style:d({width:`${n(g)*n(C)}px`,height:`${n(y)*n(C)}px`})},[S(`div`,{flex:`~ items-center justify-center`,style:d({transform:`scale(${n(C)})`,transformOrigin:`0 0`})},[S(`div`,{absolute:``,"left-0":``,"top-0":``,style:d({width:`${n(g)}px`,height:`${n(y)}px`}),class:`bg-dots`},null,4),(v(),x(`svg`,{"pointer-events-none":``,absolute:``,"left-0":``,"top-0":``,"z-graph-link":``,width:n(g),height:n(y)},[S(`g`,null,[(v(!0),x(h,null,f(n(E),e=>(v(),x(h,{key:e.id},[e.target?s(r.$slots,`link`,{key:0,link:e,d:n(P)(e,n(D)),linkClass:n(M)(e)},()=>[(v(),x(`path`,{key:e.id,d:n(P)(e,n(D)),class:a(n(M)(e)),fill:`none`},null,10,ie))]):t(``,!0)],64))),128))])],8,re)),(v(!0),x(h,null,f(n(T),e=>(v(),x(h,{key:e.data.module.id},[e.data.module.id===`~root`?t(``,!0):(v(),x(`div`,{key:0,absolute:``,class:`group z-graph-node flex gap-1 items-center`,style:d({left:`${e.x}px`,top:`${e.y}px`,transform:`translate(-50%, -50%)`})},[S(`div`,{flex:`~ items-center gap-1`,"bg-glass":``,border:`~ base rounded`,class:`group-hover:bg-active block px2 p1`,style:d({minWidth:`${n(n(D).width)}px`,maxWidth:`${n(n(D).width)}px`,maxHeight:`${n(n(D).height)}px`,overflow:`hidden`,transition:`all 0.3s ease`})},[s(r.$slots,`default`,{node:e,nodesRefMap:n(O)})],4),S(`div`,ae,[e.data.hasChildren?(v(),x(`button`,{key:0,"w-4":``,"h-4":``,"rounded-full":``,flex:`items-center justify-center`,"text-xs":``,border:`~ active`,class:a([`flex cursor-pointer z-graph-node-active bg-base`,{"cursor-not-allowed":n(V),"hover:bg-active":!n(V)}]),disabled:n(V),title:e.data.expanded?`Collapse`:`Expand`,onClick:w(t=>n(H)(e.data.module.id),[`stop`])},[S(`div`,{class:a([`text-primary h-4`,[e.data.expanded?`i-ph-minus`:`i-ph-plus`]]),transition:`transform duration-200`},null,2)],10,oe)):t(``,!0)])],4))],64))),128))],4)],4),S(`div`,$,[S(`div`,se,[e(c,{content:`${Math.round(n(C)*100)}%`,class:`text-sm`},null,8,[`content`])]),S(`div`,ce,[i.expandControls?(v(),x(h,{key:0},[b((v(),x(`button`,{"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,disabled:n(V),class:a({"op50 cursor-not-allowed":n(V),"hover:bg-active":!n(V)}),title:`Expand All`,onClick:o[0]||=e=>n(U)()},[...o[4]||=[S(`div`,{class:`i-ph-arrows-out-simple-duotone`},null,-1)]],10,le)),[[l,`Expand All`,void 0,{left:!0}]]),b((v(),x(`button`,{"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,disabled:n(V),class:a({"op50 cursor-not-allowed":n(V),"hover:bg-active":!n(V)}),title:`Collapse All`,onClick:o[1]||=e=>n(W)()},[...o[5]||=[S(`div`,{class:`i-ph-arrows-in-simple-duotone`},null,-1)]],10,ue)),[[l,`Collapse All`,void 0,{left:!0}]]),o[6]||=S(`div`,{border:`t base`,my1:``},null,-1)],64)):t(``,!0),b((v(),x(`button`,{disabled:n(C)>=n(B),"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,"disabled:op20":``,"disabled:bg-none":``,"disabled:cursor-not-allowed":``,flex:`~ items-center justify-center`,title:`Zoom In (Ctrl + =)`,onClick:o[2]||=e=>n(L)()},[...o[7]||=[S(`div`,{"i-ph-magnifying-glass-plus-duotone":``},null,-1)]],8,de)),[[l,`Zoom In (Ctrl + =)`,void 0,{left:!0}]]),b((v(),x(`button`,{disabled:n(C)<=n(z),"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,"disabled:op20":``,"disabled:bg-none":``,"disabled:cursor-not-allowed":``,flex:`~ items-center justify-center`,title:`Zoom Out (Ctrl + -)`,onClick:o[3]||=e=>n(R)()},[...o[8]||=[S(`div`,{"i-ph-magnifying-glass-minus-duotone":``},null,-1)]],8,fe)),[[l,`Zoom Out (Ctrl + -)`,void 0,{left:!0}]])])])],2)}}}),me=Object.assign(pe,{__name:`DisplayModuleGraph`});export{Q as n,K as r,me as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as e,Ht as t,M as n,b as r,q as i,w as a}from"./CyUS7GqK.js";import{s as o,t as s}from"./GNBXjCbD.js";var c=[`title`],l=n({__name:`FileIcon`,props:{filename:{}},setup(e){let n=e,s=r(()=>o(n.filename));return(e,n)=>(i(),a(`div`,{"flex-none":``,"icon-catppuccin":``,title:s.value.description||s.value.name,class:t([s.value.icon])},null,10,c))}}),u=Object.assign(l,{__name:`DisplayFileIcon`}),d=n({name:`HighlightedPath`,props:{path:{type:String,required:!0},minimal:{type:Boolean,default:!1}},setup(t){return()=>{let n=t.path.split(/([?/&:=])/g),r=`path`,i=n.map(()=>[]),a=n.map(()=>[]),o=n.map(t=>e(`span`,{class:``},t)),c=new Set;return n.forEach((e,l)=>{if(e===`?`&&(r=`query`),r===`path`){if(/^\.+$/.test(e)||e===`/`?i[l]?.push(`op50`):(e===`node_modules`||e===`dist`||e===`lib`||/^\.\w/.test(e))&&i[l]?.push(`op60`),e===`node_modules`&&t.minimal)for(let e=0;e<l+2;e++)c.add(e);if(e===`.pnpm`&&(o[l]&&(o[l].children=`~`,i[l]?.push(`op25!`),i[l-1]?.push(`op25!`)),c.add(l+1),c.add(l+2),i[l+3]?.push(`op25!`),o[l+4]?.children===`node_modules`&&(c.add(l+3),c.add(l+4),i[l+5]?.push(`op25!`))),e===`:`&&(o[l-1]&&a[l-1]?.push(`color: ${s(n[l-1])}`),i[l]?.push(`op50`)),n[l-2]===`node_modules`&&!e.startsWith(`.`)){let t=`color: ${s(n[l])}`;a[l]?.push(t),e.startsWith(`@`)&&(a[l+1]?.push(t),a[l+2]?.push(t))}}r===`query`&&(e===`?`?i[l]?.push(`text-red-500 dark:text-red-400`):e===`&`&&i[l]?.push(`text-orange-500 dark:text-orange-400`),e===`=`?i[l]?.push(`text-orange-900 dark:text-orange-200 op50`):n[l+1]===`=`?i[l]?.push(`text-amber-900 dark:text-amber-200`):i[l]?.push(`text-orange-900 dark:text-orange-200`))}),o.forEach((e,t)=>{e.props&&(e.props.class=i[t]?.join(` `)??``,e.props.style=a[t]?.join(`;`)??``)}),Array.from(c).sort((e,t)=>t-e).forEach(e=>{o.splice(e,1)}),o}}});export{u as n,d as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as e,O as t,St as n,a as r,b as i,q as a,vt as o,w as s,x as c}from"./CyUS7GqK.js";import{t as l}from"./D0PBHtPK.js";var u={class:`flex gap-2 group`,w140:``,p4:``,relative:``},d={width:`1123`,height:`47`,viewBox:`0 0 1123 47`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},f={"clip-path":`url(#clip0_12_249)`},p=[`fill`],m=[`fill`],h=[`fill`],g=e({__name:`LogoBanner`,setup(e){let n=i(()=>l.value?`white`:`#08060E`);return(e,r)=>(a(),s(`div`,u,[r[2]||=c(`div`,{op10:``,"group-hover":`op100`,transition:``,"duration-800":``,class:`absolute -bottom-[10px] -left-[20px] w-[80px] h-[80px] bg-linear-to-b from-[#61d9ff] to-transparent blur-[30px]`},null,-1),r[3]||=c(`div`,{op10:``,"group-hover":`op100`,transition:``,"duration-800":``,class:`absolute -top-[10px] left-300px w-[80px] h-[80px] bg-[linear-gradient(270deg,_#7a23a1,_#715ebde6_60%,_#715ebde6,_#bd34fe00)] blur-[30px]`},null,-1),(a(),s(`svg`,d,[c(`g`,f,[c(`path`,{d:`M84.875 0C103.939 0 113.956 8.014 113.956 23.395C113.956 38.776 103.939 46.789 84.875 46.789C65.811 46.789 55.859 38.775 55.858 23.395C55.858 8.014 65.811 0 84.875 0ZM304.339 0C323.403 0 333.42 8.014 333.42 23.395C333.42 38.776 323.403 46.789 304.339 46.789C285.275 46.789 275.322 38.775 275.322 23.395C275.322 8.014 285.274 0 304.339 0ZM35.349 0.775C45.689 0.775 51.571 6.139 51.571 15.575C51.571 21.003 48.986 25.01 44.98 27.337L51.765 46.013H35.285L30.567 31.343H15.51V46.013H0V0.775H35.349ZM135.411 34.705H162.488V46.013H119.9V0.775H135.411V34.705ZM183.791 34.705H210.869V46.013H168.281V0.775H183.791V34.705ZM245.53 0.774C261.234 0.774 270.217 7.884 270.217 23.394C270.217 38.904 261.169 46.012 245.465 46.012H217.095V0.775L245.53 0.774ZM356.661 31.86L363.253 8.854H380.637L387.616 32.764L393.109 0.776H408.232L398.926 46.014H379.345L371.849 20.423L364.546 46.013H344.899L335.594 0.776H350.975L356.661 31.86ZM432.876 0.775L451.553 30.18H451.682V0.775H466.417V46.013H447.805L428.999 16.48H428.805V46.013H414.135V0.775H432.876ZM84.875 11.115C75.892 11.115 71.691 14.993 71.691 23.395C71.691 31.795 75.892 35.608 84.875 35.608C93.858 35.608 98.058 31.86 98.058 23.395C98.058 14.93 93.858 11.115 84.875 11.115ZM304.339 11.115C295.356 11.115 291.155 14.993 291.155 23.395C291.155 31.795 295.356 35.608 304.339 35.608C313.322 35.608 317.522 31.86 317.522 23.395C317.522 14.93 313.322 11.115 304.339 11.115ZM232.604 35.026H243.333C250.7 35.026 254.318 31.86 254.318 23.394C254.318 14.928 250.7 11.762 243.333 11.762H232.604V35.026ZM15.51 20.68H30.955C34.122 20.68 35.673 19 35.673 16.027C35.673 13.054 34.122 11.438 30.955 11.438H15.51V20.68Z`,fill:n.value},null,8,p),r[0]||=t(`<path d="M530.998 0.773438C531.957 0.773438 532.48 1.89144 531.866 2.62844L521.423 15.1604C520.195 16.6334 521.242 18.8714 523.161 18.8714H533.262C534.221 18.8714 534.744 19.9894 534.13 20.7264L513.922 44.9804C513.816 45.108 513.683 45.2107 513.533 45.2811C513.383 45.3516 513.219 45.3881 513.053 45.3881C512.887 45.3881 512.723 45.3516 512.573 45.2811C512.423 45.2107 512.29 45.108 512.184 44.9804L491.975 20.7284C491.361 19.9914 491.885 18.8734 492.844 18.8734H502.942C504.859 18.8734 505.909 16.6354 504.681 15.1624L494.237 2.62844C493.623 1.89144 494.147 0.773438 495.105 0.773438H530.998Z" fill="#FF4100"></path><mask id="mask0_12_249" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="491" y="0" width="44" height="46"><path d="M530.998 0.773438C531.957 0.773438 532.48 1.89144 531.866 2.62844L521.423 15.1604C520.195 16.6334 521.242 18.8714 523.161 18.8714H533.262C534.221 18.8714 534.744 19.9904 534.13 20.7264L513.922 44.9804C513.816 45.108 513.683 45.2107 513.533 45.2811C513.383 45.3516 513.219 45.3881 513.053 45.3881C512.887 45.3881 512.723 45.3516 512.573 45.2811C512.423 45.2107 512.29 45.108 512.184 44.9804L491.975 20.7284C491.361 19.9924 491.885 18.8734 492.844 18.8734H502.942C504.859 18.8734 505.909 16.6354 504.681 15.1624L494.237 2.62844C493.623 1.89144 494.147 0.773438 495.105 0.773438H530.998Z" fill="black"></path></mask><g mask="url(#mask0_12_249)"><g filter="url(#filter0_f_12_249)"><path d="M522.914 21.3028C520.339 19.8011 523.571 9.4636 530.133 -1.78663C536.695 -13.0369 544.101 -20.9396 546.676 -19.4379C549.251 -17.9361 546.019 -7.59863 539.457 3.6516C532.895 14.9018 525.489 22.8046 522.914 21.3028Z" fill="#FFE6E4"></path></g><g filter="url(#filter1_f_12_249)"><path d="M521.765 44.2794C519.191 42.7777 522.423 32.4402 528.984 21.1899C535.546 9.9397 542.953 2.03698 545.527 3.5387C548.102 5.04042 544.87 15.3779 538.308 26.6282C531.747 37.8784 524.34 45.7811 521.765 44.2794Z" fill="#FFE6E4"></path></g><g filter="url(#filter2_f_12_249)"><path d="M505.243 19.0907C506.903 17.8808 502.491 9.00184 495.388 -0.740904C488.285 -10.4836 481.182 -17.4008 479.522 -16.1909C477.863 -14.9809 482.275 -6.10195 489.378 3.6408C496.48 13.3835 503.584 20.3007 505.243 19.0907Z" fill="#FF00B3"></path></g><g filter="url(#filter3_f_12_249)"><path d="M510.988 51.7548C512.647 50.5448 508.235 41.6659 501.132 31.9231C494.029 22.1804 486.926 15.2632 485.266 16.4732C483.607 17.6832 488.019 26.5621 495.122 36.3049C502.225 46.0476 509.328 52.9648 510.988 51.7548Z" fill="#FF00B3"></path></g><g filter="url(#filter4_f_12_249)"><path d="M520.885 19.0986C519.225 17.8886 523.638 9.00965 530.74 -0.733098C537.843 -10.4758 544.946 -17.393 546.606 -16.183C548.266 -14.9731 543.853 -6.09413 536.751 3.64861C529.648 13.3914 522.545 20.3085 520.885 19.0986Z" fill="#FF00B3"></path></g><g filter="url(#filter5_f_12_249)"><path d="M513.991 51.7548C512.332 50.5448 516.744 41.6659 523.847 31.9232C530.95 22.1804 538.053 15.2632 539.713 16.4732C541.372 17.6832 536.96 26.5621 529.857 36.3049C522.754 46.0476 515.651 52.9648 513.991 51.7548Z" fill="#FF00B3"></path></g><g filter="url(#filter6_f_12_249)"><path d="M517.438 19.0986C515.778 17.8886 520.191 9.00965 527.294 -0.733098C534.396 -10.4758 541.5 -17.393 543.159 -16.183C544.819 -14.9731 540.407 -6.09413 533.304 3.64861C526.201 13.3914 519.098 20.3085 517.438 19.0986Z" fill="#FF00B3"></path></g><g filter="url(#filter7_f_12_249)"><path d="M511.695 51.7548C510.035 50.5448 514.447 41.6659 521.55 31.9232C528.653 22.1804 535.756 15.2632 537.416 16.4732C539.075 17.6832 534.663 26.5621 527.56 36.3049C520.458 46.0476 513.354 52.9648 511.695 51.7548Z" fill="#FF00B3"></path></g><g filter="url(#filter8_f_12_249)"><path d="M509.95 20.8515C512.203 18.8996 507.115 9.33806 498.586 -0.50467C490.056 -10.3474 481.316 -16.7441 479.064 -14.7922C476.811 -12.8402 481.899 -3.2787 490.428 6.56403C498.957 16.4068 507.697 22.8035 509.95 20.8515Z" fill="#E23D14"></path></g><g filter="url(#filter9_f_12_249)"><path d="M512.003 47.6172C514.417 45.8699 510.186 35.8997 502.551 25.3482C494.916 14.7966 486.77 7.65931 484.355 9.40659C481.94 11.1539 486.172 21.124 493.806 31.6756C501.441 42.2272 509.588 49.3645 512.003 47.6172Z" fill="#E23D14"></path></g></g>`,3),c(`path`,{d:`M481.842 0C472.643 13.166 472.59 33.575 481.842 46.789H488.057C478.807 33.575 478.86 13.166 488.057 0H481.842ZM544.263 0H538.048C547.247 13.166 547.3 33.575 538.048 46.789H544.263C553.513 33.575 553.459 13.166 544.263 0Z`,fill:n.value},null,8,m)]),c(`path`,{d:`M570 46.221V0.779005H605.216C624.665 0.779005 635.79 7.98481 635.79 23.5C635.79 39.0801 624.585 46.221 605.136 46.221H570ZM616.101 23.5C616.101 14.9959 611.619 11.8149 602.495 11.8149H589.209V35.1851H602.495C611.619 35.1851 616.101 32.0041 616.101 23.5ZM645.582 46.221V0.779005H700.887V11.8149H664.791V17.9171H700.327V28.6285H664.791V35.1851H701.928V46.221H645.582ZM726.183 0.779005L740.99 33.4972L755.556 0.779005H775.485L753.395 46.221H727.783L705.693 0.779005H726.183ZM799.702 46.221V11.9447H778.172V0.779005H840.44V11.9447H818.91V46.221H799.702ZM878.247 47C854.636 47 842.31 38.9503 842.31 23.5C842.31 8.04972 854.636 0 878.247 0C901.857 0 914.263 8.04972 914.263 23.5C914.263 38.9503 901.857 47 878.247 47ZM878.247 35.7693C889.372 35.7693 894.574 31.9392 894.574 23.5C894.574 14.9959 889.372 11.1657 878.247 11.1657C867.121 11.1657 861.919 14.9959 861.919 23.5C861.919 31.9392 867.121 35.7693 878.247 35.7693ZM956.486 47C932.875 47 920.549 38.9503 920.549 23.5C920.549 8.04972 932.875 0 956.486 0C980.096 0 992.502 8.04972 992.502 23.5C992.502 38.9503 980.096 47 956.486 47ZM956.486 35.7693C967.611 35.7693 972.813 31.9392 972.813 23.5C972.813 14.9959 967.611 11.1657 956.486 11.1657C945.36 11.1657 940.158 14.9959 940.158 23.5C940.158 31.9392 945.36 35.7693 956.486 35.7693ZM1002.23 46.221V0.779005H1021.44V34.8605H1054.97V46.221H1002.23ZM1090.83 47C1067.93 47 1058.25 42.1961 1058.25 31.0304V30.9655H1077.7V31.0304C1077.7 34.7956 1080.82 36.808 1090.83 36.808C1101.15 36.808 1103.55 35.25 1103.55 32.8481C1103.55 30.7058 1101.79 29.732 1097.95 29.4724L1081.62 28.4337C1064.33 27.3301 1059.05 23.0456 1059.05 14.866C1059.05 4.99862 1069.62 0 1091.15 0C1113.16 0 1122.04 4.60912 1122.04 15.2555V15.3854H1102.91V15.2555C1102.91 11.4903 1100.03 10.0622 1090.83 10.0622C1081.14 10.0622 1078.18 11.4903 1078.18 14.0221C1078.18 16.2293 1080.34 17.0732 1085.38 17.3978L1101.55 18.3715C1116.76 19.2804 1123 23.2403 1123 31.7445C1123 41.547 1113.96 47 1090.83 47Z`,fill:n.value},null,8,h),r[1]||=t(`<defs><filter id="filter0_f_12_249" x="515.134" y="-26.5112" width="39.3207" height="54.8896" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter1_f_12_249" x="513.986" y="-3.53463" width="39.3207" height="54.8896" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter2_f_12_249" x="472.279" y="-23.2221" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter3_f_12_249" x="478.023" y="9.44194" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter4_f_12_249" x="513.642" y="-23.2143" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter5_f_12_249" x="506.748" y="9.44194" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter6_f_12_249" x="510.195" y="-23.2143" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter7_f_12_249" x="504.451" y="9.44194" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter8_f_12_249" x="471.636" y="-22.0346" width="45.7411" height="50.1318" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter9_f_12_249" x="476.782" y="2.24662" width="42.7939" height="52.5302" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><clipPath id="clip0_12_249"><rect width="552" height="47" fill="white"></rect></clipPath></defs>`,1)]))]))}}),_=Object.assign(g,{__name:`VisualLogoBanner`});function v(e){return typeof e==`string`?`'${e}'`:new ee().serialize(e)}var ee=function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t?.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e}(),te=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],ne=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],re=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,y=[],ie=class{_data=new ae;_hash=new ae([...te]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)y[n]=e[t+n]|0;else{let e=y[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=y[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;y[n]=t+y[n-7]+i+y[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+ne[n]+y[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=ae.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e<r;e+=16)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new ae(t,i)}},ae=class e{words;sigBytes;constructor(e,t){e=this.words=e||[],this.sigBytes=t===void 0?e.length*4:t}static fromUtf8(t){let n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let e=0;e<r;e++)i[e>>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t<this.sigBytes;t+=3){let n=this.words[t>>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6<this.sigBytes*8;n++)e.push(re.charAt(a>>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){let n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function oe(e){return new ie().finalize(e).toBase64()}function se(e){return oe(v(e))}async function ce(e,t){return e.__resolved?e.__resolved:e.setup?(e.__promise??=Promise.resolve(e.setup(t)).then(t=>(e.__resolved=t,e.__promise=void 0,t)),e.__resolved??=await e.__promise):{}}async function le(e,t){if(e.handler)return e.handler;let n=await ce(e,t);if(!n.handler)throw Error(`[devtools-rpc] Either handler or setup function must be provided for RPC function "${e.name}"`);return n.handler}var ue=class{definitions=new Map;functions;_onChanged=[];constructor(e){this.context=e;let t=this.definitions,n=this;this.functions=new Proxy({},{get(e,r){let i=t.get(r);if(i)return le(i,n.context)},has(e,n){return t.has(n)},getOwnPropertyDescriptor(e,n){return{value:t.get(n)?.handler,configurable:!0,enumerable:!0}},ownKeys(){return Array.from(t.keys())}})}register(e,t=!1){if(this.definitions.has(e.name)&&!t)throw Error(`RPC function "${e.name}" is already registered`);this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}update(e,t=!1){if(!this.definitions.has(e.name)&&!t)throw Error(`RPC function "${e.name}" is not registered. Use register() to add new functions.`);this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}onChanged(e){return this._onChanged.push(e),()=>{let t=this._onChanged.indexOf(e);t!==-1&&this._onChanged.splice(t,1)}}async getHandler(e){return await le(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw Error(`RPC function "${String(e)}" is not registered`);return{args:t.args,returns:t.returns}}has(e){return this.definitions.has(e)}get(e){return this.definitions.get(e)}list(){return Array.from(this.definitions.keys())}},de=`/.devtools/`,fe=`.connection.json`,pe=`.rpc-dump/index.json`;function me(){let e={};function t(t,...n){let r=e[t]||[];for(let e=0,t=r.length;e<t;e++){let t=r[e];t&&t(...n)}}function n(n,...r){t(n,...r),delete e[n]}function r(t,n){return(e[t]||=[]).push(n),()=>{e[t]=e[t]?.filter(e=>n!==e)}}function i(e,t){let n=r(e,((...e)=>(n(),t(...e))));return n}return{_listeners:e,emit:t,emitOnce:n,on:r,once:i}}var he=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function ge(e=21){let t=``,n=e;for(;n--;)t+=he[Math.random()*64|0];return t}var _e=Symbol.for(`immer-nothing`),b=Symbol.for(`immer-draftable`),x=Symbol.for(`immer-state`);function S(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var C=Object,w=C.getPrototypeOf,T=`constructor`,E=`prototype`,ve=`configurable`,ye=`enumerable`,be=`writable`,xe=`value`,D=e=>!!e&&!!e[x];function O(e){return e?we(e)||Oe(e)||!!e[b]||!!e[T]?.[b]||ke(e)||Ae(e):!1}var Se=C[E][T].toString(),Ce=new WeakMap;function we(e){if(!e||!M(e))return!1;let t=w(e);if(t===null||t===C[E])return!0;let n=C.hasOwnProperty.call(t,T)&&t[T];if(n===Object)return!0;if(!N(n))return!1;let r=Ce.get(n);return r===void 0&&(r=Function.toString.call(n),Ce.set(n,r)),r===Se}function k(e,t,n=!0){A(e)===0?(n?Reflect.ownKeys(e):C.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function A(e){let t=e[x];return t?t.type_:Oe(e)?1:ke(e)?2:Ae(e)?3:0}var Te=(e,t,n=A(e))=>n===2?e.has(t):C[E].hasOwnProperty.call(e,t),j=(e,t,n=A(e))=>n===2?e.get(t):e[t],Ee=(e,t,n,r=A(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function De(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Oe=Array.isArray,ke=e=>e instanceof Map,Ae=e=>e instanceof Set,M=e=>typeof e==`object`,N=e=>typeof e==`function`,je=e=>typeof e==`boolean`;function Me(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Ne=e=>M(e)?e?.[x]:null,P=e=>e.copy_||e.base_,Pe=e=>e.modified_?e.copy_:e.base_;function Fe(e,t){if(ke(e))return new Map(e);if(Ae(e))return new Set(e);if(Oe(e))return Array[E].slice.call(e);let n=we(e);if(t===!0||t===`class_only`&&!n){let t=C.getOwnPropertyDescriptors(e);delete t[x];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[be]===!1&&(a[be]=!0,a[ve]=!0),(a.get||a.set)&&(t[i]={[ve]:!0,[be]:!0,[ye]:a[ye],[xe]:e[i]})}return C.create(w(e),t)}else{let t=w(e);if(t!==null&&n)return{...e};let r=C.create(t);return C.assign(r,e)}}function Ie(e,t=!1){return ze(e)||D(e)||!O(e)?e:(A(e)>1&&C.defineProperties(e,{set:Re,add:Re,clear:Re,delete:Re}),C.freeze(e),t&&k(e,(e,t)=>{Ie(t,!0)},!1),e)}function Le(){S(2)}var Re={[xe]:Le};function ze(e){return e===null||!M(e)?!0:C.isFrozen(e)}var Be=`MapSet`,Ve=`Patches`,He=`ArrayMethods`,Ue={};function F(e){let t=Ue[e];return t||S(0,e),t}var We=e=>!!Ue[e];function Ge(e,t){Ue[e]||(Ue[e]=t)}var I,Ke=()=>I,qe=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:We(Be)?F(Be):void 0,arrayMethodsPlugin_:We(He)?F(He):void 0});function Je(e,t){t&&(e.patchPlugin_=F(Ve),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ye(e){Xe(e),e.drafts_.forEach(Qe),e.drafts_=null}function Xe(e){e===I&&(I=e.parent_)}var Ze=e=>I=qe(I,e);function Qe(e){let t=e[x];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function $e(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[x].modified_&&(Ye(t),S(4)),O(e)&&(e=et(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[x].base_,e,t)}else e=et(t,n);return tt(t,e,!0),Ye(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===_e?void 0:e}function et(e,t){if(ze(t))return t;let n=t[x];if(!n)return lt(t,e.handledSet_,e);if(!rt(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);st(n,e)}return n.copy_}function tt(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ie(t,n)}function nt(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var rt=(e,t)=>e.scope_===t,it=[];function at(e,t,n,r){let i=P(e),a=e.type_;if(r!==void 0&&j(i,r,a)===t){Ee(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;k(i,(e,n)=>{if(D(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??it;for(let e of o)Ee(i,e,n,a)}function ot(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!rt(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Pe(i);at(e,i.draft_??i,a,n),st(i,r)})}function st(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}nt(e)}}function ct(e,t,n){let{scope_:r}=e;if(D(n)){let i=n[x];rt(i,r)&&i.callbacks_.push(function(){gt(e),at(e,n,Pe(i),t)})}else O(n)&&e.callbacks_.push(function(){let i=P(e);e.type_===3?i.has(n)&<(n,r.handledSet_,r):j(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&<(j(e.copy_,t,e.type_),r.handledSet_,r)})}function lt(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||D(e)||t.has(e)||!O(e)||ze(e)?e:(t.add(e),k(e,(r,i)=>{if(D(i)){let t=i[x];rt(t,n)&&(Ee(e,r,Pe(t),e.type_),nt(t))}else O(i)&<(i,t,n)}),e)}function ut(e,t){let n=Oe(e),r={type_:n?1:0,scope_:t?t.scope_:Ke(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=dt;n&&(i=[r],a=L);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var dt={get(e,t){if(t===x)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=P(e);if(!Te(i,t,e.type_))return pt(e,i,t);let a=i[t];if(e.finalized_||!O(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Me(t))return a;if(a===ft(e.base_,t)){gt(e);let n=e.type_===1?+t:t,r=vt(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in P(e)},ownKeys(e){return Reflect.ownKeys(P(e))},set(e,t,n){let r=mt(P(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=ft(P(e),t),i=r?.[x];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(De(n,r)&&(n!==void 0||Te(e.base_,t,e.type_)))return!0;gt(e),ht(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),ct(e,t,n),!0)},deleteProperty(e,t){return gt(e),ft(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),ht(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=P(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[be]:!0,[ve]:e.type_!==1||t!==`length`,[ye]:r[ye],[xe]:n[t]}},defineProperty(){S(11)},getPrototypeOf(e){return w(e.base_)},setPrototypeOf(){S(12)}},L={};for(let e in dt){let t=dt[e];L[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}L.deleteProperty=function(e,t){return L.set.call(this,e,t,void 0)},L.set=function(e,t,n){return dt.set.call(this,e[0],t,n,e[0])};function ft(e,t){let n=e[x];return(n?P(n):e)[t]}function pt(e,t,n){let r=mt(t,n);return r?xe in r?r[xe]:r.get?.call(e.draft_):void 0}function mt(e,t){if(!(t in e))return;let n=w(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=w(n)}}function ht(e){e.modified_||(e.modified_=!0,e.parent_&&ht(e.parent_))}function gt(e){e.copy_||=(e.assigned_=new Map,Fe(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var _t=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(N(e)&&!N(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}N(t)||S(6),n!==void 0&&!N(n)&&S(7);let r;if(O(e)){let i=Ze(this),a=vt(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Ye(i):Xe(i)}return Je(i,n),$e(r,i)}else if(!e||!M(e)){if(r=t(e),r===void 0&&(r=e),r===_e&&(r=void 0),this.autoFreeze_&&Ie(r,!0),n){let t=[],i=[];F(Ve).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else S(1,e)},this.produceWithPatches=(e,t)=>{if(N(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},je(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),je(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),je(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){O(e)||S(8),D(e)&&(e=yt(e));let t=Ze(this),n=vt(t,e,void 0);return n[x].isManual_=!0,Xe(t),n}finishDraft(e,t){let n=e&&e[x];(!n||!n.isManual_)&&S(9);let{scope_:r}=n;return Je(r,t),$e(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=F(Ve).applyPatches_;return D(e)?r(e,t):this.produce(e,e=>r(e,t))}};function vt(e,t,n,r){let[i,a]=ke(t)?F(Be).proxyMap_(t,n):Ae(t)?F(Be).proxySet_(t,n):ut(t,n);return(n?.scope_??Ke()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?ot(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function yt(e){return D(e)||S(10,e),bt(e)}function bt(e){if(!O(e)||ze(e))return e;let t=e[x],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Fe(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Fe(e,!0);return k(n,(e,t)=>{Ee(n,e,bt(t))},r),t&&(t.finalized_=!1),n}function xt(){function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=Ne(j(e,n.key_)),i=j(e,n.key_);if(i===void 0||i!==n.draft_&&i!==n.base_&&i!==n.copy_||t!=null&&t.base_!==n.base_)return null;let a=n.parent_.type_===3,o;if(a){let e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(a&&e.size>o||Te(e,o)))return null;r.push(o)}if(n.parent_)return e(n.parent_,r);r.reverse();try{t(n.copy_,r)}catch{return null}return r}function t(e,t){let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(n=j(n,r),!M(n)||n===null)throw Error(`Cannot resolve path at '${t.join(`/`)}'`)}return n}let n=`replace`,r=`remove`;function i(e,t,n){if(e.scope_.processedForPatches_.has(e))return;e.scope_.processedForPatches_.add(e);let{patches_:r,inversePatches_:i}=n;switch(e.type_){case 0:case 2:return o(e,t,r,i);case 1:return a(e,t,r,i);case 3:return s(e,t,r,i)}}function a(e,t,i,a){let{base_:o,assigned_:s}=e,c=e.copy_;c.length<o.length&&([o,c]=[c,o],[i,a]=[a,i]);let l=e.allIndicesReassigned_===!0;for(let e=0;e<o.length;e++){let r=c[e],u=o[e];if((l||s?.get(e.toString()))&&r!==u){let o=r?.[x];if(o&&o.modified_)continue;let s=t.concat([e]);i.push({op:n,path:s,value:d(r)}),a.push({op:n,path:s,value:d(u)})}}for(let e=o.length;e<c.length;e++){let n=t.concat([e]);i.push({op:`add`,path:n,value:d(c[e])})}for(let e=c.length-1;o.length<=e;--e){let n=t.concat([e]);a.push({op:r,path:n})}}function o(e,t,i,a){let{base_:o,copy_:s,type_:c}=e;k(e.assigned_,(e,l)=>{let u=j(o,e,c),f=j(s,e,c),p=l?Te(o,e)?n:`add`:r;if(u===f&&p===n)return;let m=t.concat(e);i.push(p===r?{op:p,path:m}:{op:p,path:m,value:d(f)}),a.push(p===`add`?{op:r,path:m}:p===r?{op:`add`,path:m,value:d(u)}:{op:n,path:m,value:d(u)})})}function s(e,t,n,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=t.concat([s]);n.push({op:r,path:a,value:e}),i.unshift({op:`add`,path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=t.concat([s]);n.push({op:`add`,path:a,value:e}),i.unshift({op:r,path:a,value:e})}s++})}function c(e,t,r){let{patches_:i,inversePatches_:a}=r;i.push({op:n,path:[],value:t===_e?void 0:t}),a.push({op:n,path:[],value:e})}function l(e,t){return t.forEach(t=>{let{path:i,op:a}=t,o=e;for(let e=0;e<i.length-1;e++){let t=A(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===T)&&S(19),N(o)&&n===E&&S(19),o=j(o,n),M(o)||S(18,i.join(`/`))}let s=A(o),c=u(t.value),l=i[i.length-1];switch(a){case n:switch(s){case 2:return o.set(l,c);case 3:S(16);default:return o[l]=c}case`add`:switch(s){case 1:return l===`-`?o.push(c):o.splice(l,0,c);case 2:return o.set(l,c);case 3:return o.add(c);default:return o[l]=c}case r:switch(s){case 1:return o.splice(l,1);case 2:return o.delete(l);case 3:return o.delete(t.value);default:return delete o[l]}default:S(17,a)}}),e}function u(e){if(!O(e))return e;if(Oe(e))return e.map(u);if(ke(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if(Ae(e))return new Set(Array.from(e).map(u));let t=Object.create(w(e));for(let n in e)t[n]=u(e[n]);return Te(e,b)&&(t[b]=e[b]),t}function d(e){return D(e)?u(e):e}Ge(Ve,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}var St=new _t,Ct=St.produce,wt=St.produceWithPatches.bind(St),Tt=St.applyPatches.bind(St);function Et(e){let{enablePatches:t=!1}=e,n=me(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=ge())=>{i.has(t)||(xt(),r=Tt(r,e),i.add(t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=ge())=>{if(!i.has(a))if(i.add(a),t){let[t,i]=wt(r,e);r=t,n.emit(`updated`,r,i,a)}else r=Ct(r,e),n.emit(`updated`,r,void 0,a)},syncIds:i}}function Dt(e){let t=new Map,n=e.connectionMeta.backend===`static`;e.client.register({name:`devtoolskit:internal:rpc:client-state:updated`,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.mutate(()=>n,r)}}),e.client.register({name:`devtoolskit:internal:rpc:client-state:patch`,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.patch(n,r)}});function r(t,r){let i=[];return i.push(r.on(`updated`,(r,i,a)=>{n||(i?e.callEvent(`devtoolskit:internal:rpc:server-state:patch`,t,i,a):e.callEvent(`devtoolskit:internal:rpc:server-state:set`,t,r,a))})),()=>{for(let e of i)e()}}return{keys:()=>Array.from(t.keys()),get:async(i,a)=>{if(t.has(i))return t.get(i);let o=Et({initialValue:a?.initialValue,enablePatches:!1});async function s(){if(n||e.callEvent(`devtoolskit:internal:rpc:server-state:subscribe`,i),a?.initialValue!==void 0)return t.set(i,o),e.call(`devtoolskit:internal:rpc:server-state:get`,i).then(e=>{o.mutate(()=>e)}).catch(e=>{console.error(`Error getting server state`,e)}),r(i,o),o;{let n=await e.call(`devtoolskit:internal:rpc:server-state:get`,i);return o.mutate(()=>n),t.set(i,o),r(i,o),o}}return new Promise(t=>{e.isTrusted?s().then(t):(t(o),e.events.on(`rpc:is-trusted:updated`,e=>{e&&s()}))})}}}function Ot(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function kt(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function At(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function jt(e){if(e.error){let t=Error(e.error.message);throw t.name=e.error.name,t}return e.output}function Mt(e,t){let n=new Map,r=new Map;async function i(e){n.has(e.path)||n.set(e.path,t(e.path));let r=await n.get(e.path);return At(r)?jt(r):r}async function a(e){return r.has(e)||r.set(e,t(e)),await r.get(e)}async function o(t,n){if(!(t in e))throw Error(`[devtools-rpc] Function "${t}" not found in dump store`);let r=e[t];if(Ot(r)){if(n.length>0)throw Error(`[devtools-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await i(r)}if(kt(r)){let e=se(n),i=r.records[e];if(i)return jt(await a(i));if(r.fallback)return jt(await a(r.fallback));throw Error(`[devtools-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(n.length===0)return r;throw Error(`[devtools-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}return{call:async(e,t)=>await o(e,t),callOptional:async(t,n)=>{if(t in e)return await o(t,n)},callEvent:async(e,t)=>{}}}async function Nt(e){let t=Mt(await e.fetchJsonFromBases(pe),e.fetchJsonFromBases);return{isTrusted:!0,requestTrust:async()=>!0,ensureTrusted:async()=>!0,call:(...e)=>t.call(e[0],e.slice(1)),callEvent:(...e)=>t.callEvent(e[0],e.slice(1)),callOptional:(...e)=>t.callOptional(e[0],e.slice(1))}}var Pt=`q`,Ft=`s`;function It(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var Lt=Math.random.bind(Math),Rt=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function zt(e=21){let t=``,n=e;for(;n--;)t+=Rt[Lt()*64|0];return t}var Bt=6e4,Vt=e=>e,Ht=Vt,{clearTimeout:Ut,setTimeout:Wt}=globalThis;function Gt(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=Vt,deserialize:s=Ht,resolver:c,bind:l=`rpc`,timeout:u=Bt,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:Pt};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=It(),_=zt();s.i=_;let v;async function ee(n=s){return u>=0&&(v=Wt(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,ee,d):await ee()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{Ut(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:ee,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.prototype.hasOwnProperty.call(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(te)}function ee(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function te(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===Pt){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:Ft,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:Ft,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(Ut(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(te),h}function Kt(e,t){let{preset:n,rpcOptions:r={}}=t;return Gt(e,{...n,timeout:-1,...r,proxify:!1})}var qt=-1,Jt=0,Yt=1,Xt=2,Zt=3,Qt=4,$t=5,en=6,tn=7,nn=8,rn=typeof self==`object`?self:globalThis,an=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case Jt:case qt:return n(o,i);case Yt:{let e=n([],i);for(let t of o)e.push(r(t));return e}case Xt:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case Zt:return n(new Date(o),i);case Qt:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case $t:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case en:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case tn:{let{name:e,message:t}=o;return n(new rn[e](t),i)}case nn:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i)}return n(new rn[a](o),i)};return r},on=e=>an(new Map,e)(0),R=``,{toString:sn}={},{keys:cn}=Object,ln=e=>{let t=typeof e;if(t!==`object`||!e)return[Jt,t];let n=sn.call(e).slice(8,-1);switch(n){case`Array`:return[Yt,R];case`Object`:return[Xt,R];case`Date`:return[Zt,R];case`RegExp`:return[Qt,R];case`Map`:return[$t,R];case`Set`:return[en,R]}return n.includes(`Array`)?[Yt,n]:n.includes(`Error`)?[tn,n]:[Xt,n]},un=([e,t])=>e===Jt&&(t===`function`||t===`symbol`),dn=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=ln(r);switch(o){case Jt:{let t=r;switch(s){case`bigint`:o=nn,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([qt],r)}return i([o,t],r)}case Yt:{if(s)return i([s,[...r]],r);let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case Xt:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of cn(r))(e||!un(ln(r[t])))&&n.push([a(t),a(r[t])]);return c}case Zt:return i([o,r.toISOString()],r);case Qt:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case $t:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(un(ln(n))||un(ln(i))))&&t.push([a(n),a(i)]);return n}case en:{let t=[],n=i([o,t],r);for(let n of r)(e||!un(ln(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},fn=(e,{json:t,lossy:n}={})=>{let r=[];return dn(!(t||n),!!t,new Map,r)(e),r},{parse:pn,stringify:mn}=JSON,hn={json:!0,lossy:!0},gn=e=>on(pn(e)),_n=e=>mn(fn(e,hn)),vn=gn;function yn(e){return e}function bn(){}var xn=yn(e=>{let t=e.url;e.authId&&(t=`${t}?vite_devtools_auth_id=${encodeURIComponent(e.authId)}`);let n=new WebSocket(t),{onConnected:r=bn,onError:i=bn,onDisconnected:a=bn}=e;return n.addEventListener(`open`,e=>{r(e)}),n.addEventListener(`error`,e=>{i(e instanceof Error?e:Error(e.type))}),n.addEventListener(`close`,e=>{a(e)}),{on:e=>{n.addEventListener(`message`,t=>{e(t.data)})},post:e=>{if(n.readyState===WebSocket.OPEN)n.send(e);else{function t(){n.send(e),n.removeEventListener(`open`,t)}n.addEventListener(`open`,t)}},serialize:_n,deserialize:vn}}),Sn=``,Cn=`?`,wn=`major`,z=`model`,B=`name`,V=`type`,H=`vendor`,U=`version`,W=`architecture`,G=`console`,K=`mobile`,q=`tablet`,J=`smarttv`,Y=`wearable`,Tn=`embedded`,En=500,Dn=`Amazon`,On=`Apple`,kn=`ASUS`,An=`BlackBerry`,X=`Browser`,jn=`Chrome`,Mn=`Edge`,Nn=`Firefox`,Pn=`Google`,Fn=`Huawei`,In=`LG`,Ln=`Microsoft`,Rn=`Motorola`,zn=`Opera`,Bn=`Samsung`,Vn=`Sharp`,Hn=`Sony`,Un=`Xiaomi`,Wn=`Zebra`,Gn=`Facebook`,Kn=`Chromium OS`,qn=`Mac OS`;function Jn(e,t={}){let n={};for(let r of Object.keys(e)){let i=t[r];i&&i.length%2==0?n[r]=[...i,...e[r]]:n[r]=e[r]}return n}function Yn(e){let t={};for(let n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t}function Z(e){return e.toLowerCase()}function Xn(e,t){return typeof e==`string`?Z(t).includes(Z(e)):!1}function Zn(e){return typeof e==`string`?e.replace(/[^\d.]/g,Sn).split(`.`)[0]:void 0}function Qn(e,t){let n=e.replace(/^\s+/,Sn);return t===void 0?n:n.substring(0,t)}function $n(e,t,n){let r=n??{};for(let n=0;n<t.length;n+=2){let i=t[n],a=t[n+1];for(let t=0;t<i.length;t++){let n=i[t];if(!n)break;let o=n.exec(e);if(o){for(let e=0;e<a.length;e++){let t=o[e+1],n=a[e];if(Array.isArray(n)){let e=n[0],i=n.length;if(i===2){let i=n[1];typeof i==`function`?r[e]=i(t,void 0,r):r[e]=i}else if(i===3){let i=n[1],a=n[2];typeof i==`function`&&!(`exec`in i)&&!(`test`in i)?r[e]=t?i(t,a,r):void 0:r[e]=t?t.replace(i,a):void 0}else i===4&&(r[e]=t?n[3](t.replace(n[1],n[2]),void 0,r):void 0)}else r[n]=t||void 0}return r}}}return r}function er(e,t){for(let n in t){let r=t[n];if(Array.isArray(r)&&r.length>0){for(let t=0;t<r.length;t++)if(Xn(r[t],e))return n===Cn?void 0:n}else if(Xn(r,e))return n===Cn?void 0:n}return e}var tr={"1.0":`/8`,"1.2":`/1`,"1.3":`/3`,"2.0":`/412`,"2.0.2":`/416`,"2.0.3":`/417`,"2.0.4":`/419`,"?":`/`},nr={ME:`4.90`,"NT 3.11":`NT3.51`,"NT 4.0":`NT4.0`,2e3:`NT 5.0`,XP:[`NT 5.1`,`NT 5.2`],Vista:`NT 6.0`,7:`NT 6.1`,8:`NT 6.2`,"8.1":`NT 6.3`,10:[`NT 6.4`,`NT 10.0`],RT:`ARM`},rr={browser:[[/\b(?:crmo|crios)\/([\w.]+)/i],[U,[B,`Chrome`]],[/edg(?:e|ios|a)?\/([\w.]+)/i],[U,[B,`Edge`]],[/(opera mini)\/([-\w.]+)/i,/(opera [mobileta]{3,6})\b.+version\/([-\w.]+)/i,/(opera)(?:.+version\/|[/ ]+)([\w.]+)/i],[B,U],[/opios[/ ]+([\w.]+)/i],[U,[B,`${zn} Mini`]],[/\bop(?:rg)?x\/([\w.]+)/i],[U,[B,`${zn} GX`]],[/\bopr\/([\w.]+)/i],[U,[B,zn]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[/ ]?([\w.]+)/i],[U,[B,`Baidu`]],[/(kindle)\/([\w.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[/ ]?([\w.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[/ ]?([\w.]*)/i,/(?:ms|\()(ie) ([\w.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w.]+)/i,/(heytap|ovi)browser\/([\d.]+)/i,/(weibo)__([\d.]+)/i],[B,U],[/\bddg\/([\w.]+)/i],[U,[B,`DuckDuckGo`]],[/(?:\buc? ?browser|juc.+ucweb)[/ ]?([\w.]+)/i],[U,[B,`UC${X}`]],[/microm.+\bqbcore\/([\w.]+)/i,/\bqbcore\/([\w.]+).+microm/i,/micromessenger\/([\w.]+)/i],[U,[B,`WeChat`]],[/konqueror\/([\w.]+)/i],[U,[B,`Konqueror`]],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i],[U,[B,`IE`]],[/ya(?:search)?browser\/([\w.]+)/i],[U,[B,`Yandex`]],[/slbrowser\/([\w.]+)/i],[U,[B,`Smart Lenovo ${X}`]],[/(avast|avg)\/([\w.]+)/i],[[B,/(.+)/,`$1 Secure ${X}`],U],[/\bfocus\/([\w.]+)/i],[U,[B,`${Nn} Focus`]],[/\bopt\/([\w.]+)/i],[U,[B,`${zn} Touch`]],[/coc_coc\w+\/([\w.]+)/i],[U,[B,`Coc Coc`]],[/dolfin\/([\w.]+)/i],[U,[B,`Dolphin`]],[/coast\/([\w.]+)/i],[U,[B,`${zn} Coast`]],[/miuibrowser\/([\w.]+)/i],[U,[B,`MIUI ${X}`]],[/fxios\/([-\w.]+)/i],[U,[B,Nn]],[/\bqihu|(qi?ho{0,2}|360)browser/i],[[B,`360 ${X}`]],[/(oculus|sailfish|huawei|vivo)browser\/([\w.]+)/i],[[B,/(.+)/,`$1 ${X}`],U],[/samsungbrowser\/([\w.]+)/i],[U,[B,`${Bn} Internet`]],[/(comodo_dragon)\/([\w.]+)/i],[[B,/_/g,` `],U],[/metasr[/ ]?([\d.]+)/i],[U,[B,`Sogou Explorer`]],[/(sogou)mo\w+\/([\d.]+)/i],[[B,`Sogou Mobile`],U],[/(electron)\/([\w.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w.]+))/i,/m?(qqbrowser|2345Explorer)[/ ]?([\w.]+)/i],[B,U],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[B],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w.]+);)/i],[[B,Gn],U],[/(Klarna)\/([\w.]+)/i,/(kakao(?:talk|story))[/ ]([\w.]+)/i,/(naver)\(.*?(\d+\.[\w.]+).*\)/i,/safari (line)\/([\w.]+)/i,/\b(line)\/([\w.]+)\/iab/i,/(alipay)client\/([\w.]+)/i,/(twitter)(?:and| f.+e\/([\w.]+))/i,/(chromium|instagram|snapchat)[/ ]([-\w.]+)/i],[B,U],[/\bgsa\/([\w.]+) .*safari\//i],[U,[B,`GSA`]],[/musical_ly(?:.+app_?version\/|_)([\w.]+)/i],[U,[B,`TikTok`]],[/headlesschrome(?:\/([\w.]+)| )/i],[U,[B,`${jn} Headless`]],[/ wv\).+(chrome)\/([\w.]+)/i],[[B,`${jn} WebView`],U],[/droid.+ version\/([\w.]+)\b.+(?:mobile safari|safari)/i],[U,[B,`Android ${X}`]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w.]+)/i],[B,U],[/version\/([\w.,]+) .*mobile\/\w+ (safari)/i],[U,[B,`Mobile Safari`]],[/version\/([\w(.|,)]+) .*(mobile ?safari|safari)/i],[U,B],[/webkit.+?(mobile ?safari|safari)(\/[\w.]+)/i],[B,[U,er,tr]],[/(webkit|khtml)\/([\w.]+)/i],[B,U],[/(navigator|netscape\d?)\/([-\w.]+)/i],[[B,`Netscape`],U],[/mobile vr; rv:([\w.]+)\).+firefox/i],[U,[B,`${Nn} Reality`]],[/ekiohf.+(flow)\/([\w.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[/ ]?([\w.+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w.]+)$/i,/(firefox)\/([\w.]+)/i,/(mozilla)\/([\w.]+) .+rv:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[. ]?browser)[-/ ]?v?([\w.]+)/i,/(links) \(([\w.]+)/i,/panasonic;(viera)/i],[B,U],[/(cobalt)\/([\w.]+)/i],[B,[U,/master.|lts./,``]]],cpu:[[/(amd|x(?:(?:86|64)[-_])?|wow|win)64[;)]/i],[[W,`amd64`]],[/(ia32(?=;))/i],[[W,Z]],[/((?:i[346]|x)86)[;)]/i],[[W,`ia32`]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[W,`arm64`]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[W,`armhf`]],[/windows (ce|mobile); ppc;/i],[[W,`arm`]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[W,/ower/,Sn,Z]],[/(sun4\w)[;)]/i],[[W,`sparc`]],[/(avr32|ia64(?=;)|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[W,Z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[z,[H,Bn],[V,q]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?\d+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[z,[H,Bn],[V,K]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[z,[H,On],[V,K]],[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[z,[H,On],[V,q]],[/(macintosh);/i],[z,[H,On]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[z,[H,Vn],[V,K]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[z,[H,Fn],[V,q]],[/(?:huawei|honor)([-\w ]+)[;)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][0-359c][adn]?)\b(?!.+d\/s)/i],[z,[H,Fn],[V,K]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?[\w ]+)(?: bui|\))/i,/oid[^)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?\d?\w?[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[z,/_/g,` `],[H,Un],[V,K]],[/oid[^)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?pad[\w ]+)(?: bui|\))/i],[[z,/_/g,` `],[H,Un],[V,q]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[z,[H,`OPPO`],[V,K]],[/\b(opd2\d{3}a?) bui/i],[z,[H,`OPPO`],[V,q]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[z,[H,`Vivo`],[V,K]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[z,[H,`Realme`],[V,K]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w() ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[z,[H,Rn],[V,K]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[z,[H,Rn],[V,q]],[/((?=lg)?[vl]k-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[z,[H,In],[V,q]],[/(lm(?:-?f100[nv]?|-[\w.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?(\w+) bui/i],[z,[H,In],[V,K]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab[\w ]+|yt[-\w]{6}|tb[-\w]{6})/i],[z,[H,`Lenovo`],[V,q]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w.]*)/i],[[z,/_/g,` `],[H,`Nokia`],[V,K]],[/(pixel c)\b/i],[z,[H,Pn],[V,q]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[z,[H,Pn],[V,K]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]?\d\.))/i],[z,[H,Hn],[V,K]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[z,`Xperia Tablet`],[H,Hn],[V,q]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[z,[H,`OnePlus`],[V,K]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[z,[H,Dn],[V,q]],[/((?:sd|kf)[0349hijor-uw]+)( bui|\)).+silk\//i],[[z,/(.+)/g,`Fire Phone $1`],[H,Dn],[V,K]],[/(playbook);[-\w),; ]+(rim)/i],[z,H,[V,q]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[z,[H,An],[V,K]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[z,[H,kn],[V,q]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[z,[H,kn],[V,K]],[/(nexus 9)/i],[z,[H,`HTC`],[V,q]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!;|\.)|sony(?!-bra))[-_ ]?([-\w]*)/i],[H,[z,/_/g,` `],[V,K]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[z,[H,`Acer`],[V,q]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[z,[H,`Meizu`],[V,K]],[/; ((?:power )?armor[\w ]{0,8})(?: bui|\))/i],[z,[H,`Ulefone`],[V,K]],[/(blackberry|benq|palm(?=-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[H,z,[V,K]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[H,z,[V,q]],[/(surface duo)/i],[z,[H,Ln],[V,q]],[/droid [\d.]+; (fp\du?)(?: b|\))/i],[z,[H,`Fairphone`],[V,K]],[/(u304aa)/i],[z,[H,`AT&T`],[V,K]],[/\bsie-(\w*)/i],[z,[H,`Siemens`],[V,K]],[/\b(rct\w+) b/i],[z,[H,`RCA`],[V,q]],[/\b(venue[\d ]{2,7}) b/i],[z,[H,`Dell`],[V,q]],[/\b(q(?:mv|ta)\w+) b/i],[z,[H,`Verizon`],[V,q]],[/\b(?:barnes[& ]+noble |bn[rt])([\w+ ]*) b/i],[z,[H,`Barnes & Noble`],[V,q]],[/\b(tm\d{3}\w+) b/i],[z,[H,`NuVision`],[V,q]],[/\b(k88) b/i],[z,[H,`ZTE`],[V,q]],[/\b(nx\d{3}j) b/i],[z,[H,`ZTE`],[V,K]],[/\b(gen\d{3}) b.+49h/i],[z,[H,`Swiss`],[V,K]],[/\b(zur\d{3}) b/i],[z,[H,`Swiss`],[V,q]],[/\b((zeki)?tb.*\b) b/i],[z,[H,`Zeki`],[V,q]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[H,`Dragon Touch`],z,[V,q]],[/\b(ns-?\w{0,9}) b/i],[z,[H,`Insignia`],[V,q]],[/\b((nxa|next)-?\w{0,9}) b/i],[z,[H,`NextBook`],[V,q]],[/\b(xtreme_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[H,`Voice`],z,[V,K]],[/\b(lvtel-)?(v1[12]) b/i],[[H,`LvTel`],z,[V,K]],[/\b(ph-1) /i],[z,[H,`Essential`],[V,K]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[z,[H,`Envizen`],[V,q]],[/\b(trio[-\w. ]+) b/i],[z,[H,`MachSpeed`],[V,q]],[/\btu_(1491) b/i],[z,[H,`Rotor`],[V,q]],[/(shield[\w ]+) b/i],[z,[H,`Nvidia`],[V,q]],[/(sprint) (\w+)/i],[H,z,[V,K]],[/(kin\.[onetw]{3})/i],[[z,/\./g,` `],[H,Ln],[V,K]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[z,[H,Wn],[V,q]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[z,[H,Wn],[V,K]],[/smart-tv.+(samsung)/i],[H,[V,J]],[/hbbtv.+maple;(\d+)/i],[[z,/^/,`SmartTV`],[H,Bn],[V,J]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[H,In],[V,J]],[/(apple) ?tv/i],[H,[z,`${On} TV`],[V,J]],[/crkey/i],[[z,`${jn}cast`],[H,Pn],[V,J]],[/droid.+aft(\w+)( bui|\))/i],[z,[H,Dn],[V,J]],[/\(dtv[);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[z,[H,Vn],[V,J]],[/(bravia[\w ]+)( bui|\))/i],[z,[H,Hn],[V,J]],[/(mitv-\w{5}) bui/i],[z,[H,Un],[V,J]],[/Hbbtv.*(technisat) (.*);/i],[H,z,[V,J]],[/\b(roku)[\dx]*[)/]((?:dvp-)?[\d.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w+ ]*; *(\w[^;]*);([^;]*)/i],[[H,Qn],[z,Qn],[V,J]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[V,J]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[H,z,[V,G]],[/droid.+; (shield) bui/i],[z,[H,`Nvidia`],[V,G]],[/(playstation [345portablevi]+)/i],[z,[H,Hn],[V,G]],[/\b(xbox(?: one)?(?!; xbox))[); ]/i],[z,[H,Ln],[V,G]],[/((pebble))app/i],[H,z,[V,Y]],[/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i],[z,[H,On],[V,Y]],[/droid.+; (glass) \d/i],[z,[H,Pn],[V,Y]],[/droid.+; (wt63?0{2,3})\)/i],[z,[H,Wn],[V,Y]],[/(quest( \d| pro)?)/i],[z,[H,Gn],[V,Y]],[/(tesla)(?: qtcarbrowser|\/[-\w.]+)/i],[H,[V,Tn]],[/(aeobc)\b/i],[z,[H,Dn],[V,Tn]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[z,[V,K]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[z,[V,q]],[/\b((tablet|tab)[;/]|focus\/\d(?!.+mobile))/i],[[V,q]],[/(phone|mobile(?:[;/]| [ \w/.]*safari)|pda(?=.+windows ce))/i],[[V,K]],[/(android[-\w. ]{0,9});.+buil/i],[z,[H,`Generic`]]],engine:[[/windows.+ edge\/([\w.]+)/i],[U,[B,`${Mn}HTML`]],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i],[U,[B,`Blink`]],[/(presto)\/([\w.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w.]+)/i,/ekioh(flow)\/([\w.]+)/i,/(khtml|tasman|links)[/ ]\(?([\w.]+)/i,/(icab)[/ ]([23]\.[\d.]+)/i,/\b(libweb)/i],[B,U],[/rv:([\w.]{1,9})\b.+(gecko)/i],[U,B]],os:[[/microsoft (windows) (vista|xp)/i],[B,U],[/(windows (?:phone(?: os)?|mobile))[/ ]?([.\w ]*)/i],[B,[U,er,nr]],[/windows nt 6\.2; (arm)/i,/windows[/ ]?([ntce\d. ]+\w)(?!.+xbox)/i,/(?:win(?=[39n])|win 9x )([nt\d.]+)/i],[[U,er,nr],[B,`Windows`]],[/ip[honead]{2,4}\b(?:.*os (\w+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[/ ])([\d.]+)/i,/cfnetwork\/.+darwin/i],[[U,/_/g,`.`],[B,`iOS`]],[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[B,qn],[U,/_/g,`.`]],[/droid ([\w.]+)\b.+(android[- ]x86|harmonyos)/i],[U,B],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-/ ]?([\w.]*)/i,/(blackberry)\w*\/([\w.]*)/i,/(tizen|kaios)[/ ]([\w.]+)/i,/\((series40);/i],[B,U],[/\(bb(10);/i],[U,[B,An]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-/ ]?([\w.]*)/i],[U,[B,`Symbian`]],[/mozilla\/[\d.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w.]+)/i],[U,[B,`${Nn} OS`]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w.]+)/i],[U,[B,`webOS`]],[/watch(?: ?os[,/]|\d,\d\/)([\d.]+)/i],[U,[B,`watchOS`]],[/crkey\/([\d.]+)/i],[U,[B,`${jn}cast`]],[/(cros) \w+(?:\)| ([\w.]+)\b)/i],[[B,Kn],U],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w.]*)/i,/(mint)[/() ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-/ ]?(?!chrom|package)([-\w.]*)/i,/(hurd|linux) ?([\w.]*)/i,/(gnu) ?([\w.]*)/i,/\b([-e-hrntopcs]{0,5}bsd|dragonfly)[/ ]?(?!amd|[ix346]{1,2}86)([\w.]*)/i,/(haiku) (\w+)/i],[B,U],[/(sunos) ?([\w.]*)/i],[[B,`Solaris`],U],[/((?:open)?solaris)[-/ ]?([\w.]*)/i,/(aix) ((\d)(?=[.) ])[\w.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w.]*)/i],[B,U]]};function ir(e){return typeof e==`object`&&!!e}Object.freeze(Yn([B,U,wn])),Object.freeze(Yn([W])),Object.freeze(Yn([z,H,V,G,K,J,q,Y,Tn])),Object.freeze(Yn([B,U])),Object.freeze(Yn([B,U]));function ar(){if(!(typeof window>`u`||!window.navigator))return window.navigator}function or(e){return e.length>En?Qn(e,En):e}function sr(e){if(typeof e==`string`)return{ua:or(e),isSelfNavigator:!1,navigator:void 0,userAgentData:void 0,regexMap:rr};let t=ar(),n=or(t&&t.userAgent?t.userAgent:Sn);return{ua:n,isSelfNavigator:!!(t&&t.userAgent===n),navigator:t,userAgentData:t?.userAgentData,regexMap:rr}}function cr(e,t){if(!t&&!ir(e))return sr(e);let n=ar(),r=ir(e)?void 0:e,i=ir(e)?e:t,a=or(r||(n&&n.userAgent?n.userAgent:Sn)),o=n?.userAgentData;return{ua:a,isSelfNavigator:!!(n&&n.userAgent===a),navigator:n,userAgentData:o,regexMap:i?Jn(rr,i):rr}}function lr(e){let t={name:void 0,version:void 0,major:void 0};return $n(e.ua,e.regexMap.browser,t),t.major=Zn(t.version),e.isSelfNavigator&&e.navigator?.brave&&typeof e.navigator.brave.isBrave==`function`&&(t.name=`Brave`),t}function ur(e){let t={architecture:void 0};return $n(e.ua,e.regexMap.cpu,t),t}function dr(e){let t={vendor:void 0,model:void 0,type:void 0};return $n(e.ua,e.regexMap.device,t),e.isSelfNavigator&&!t.type&&e.userAgentData?.mobile&&(t.type=K),e.isSelfNavigator&&t.model===`Macintosh`&&e.navigator&&e.navigator.standalone!==void 0&&e.navigator.maxTouchPoints&&e.navigator.maxTouchPoints>2&&(t.model=`iPad`,t.type=q),t}function fr(e){let t={name:void 0,version:void 0};return $n(e.ua,e.regexMap.engine,t),t}function pr(e){let t={name:void 0,version:void 0};return $n(e.ua,e.regexMap.os,t),e.isSelfNavigator&&!t.name&&e.userAgentData?.platform&&e.userAgentData.platform!==`Unknown`&&(t.name=e.userAgentData.platform.replace(/chrome os/i,Kn).replace(/macos/i,qn)),t}function mr(e,t){let n,r,i,a,o,s,c=()=>n||=cr(e,t);return{get ua(){return c().ua},get browser(){return r||=lr(c()),r},get engine(){return i||=fr(c()),i},get os(){return a||=pr(c()),a},get device(){return o||=dr(c()),o},get cpu(){return s||=ur(c()),s}}}function hr(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function gr(e){return e==null?!1:`${+e}`==`${e}`}function _r(e){let{authId:t,connectionMeta:n,events:r,clientRpc:i,rpcOptions:a={},wsOptions:o={}}=e,s=!1,c=hr(),l=gr(n.websocket)?`${location.protocol.replace(`http`,`ws`)}//${location.hostname}:${n.websocket}`:n.websocket,u=Kt(i.functions,{preset:xn({url:l,authId:t,...o}),rpcOptions:a});async function d(){if(s)return!0;let e=mr(navigator.userAgent),n=[e.browser.name,e.browser.version,`|`,e.os.name,e.os.version,e.device.type].filter(e=>e).join(` `),i=await u.$call(`vite:anonymous:auth`,{authId:t,ua:n,origin:location.origin});return s=i.isTrusted,c.resolve(s),r.emit(`rpc:is-trusted:updated`,s),i.isTrusted}async function f(e=6e4){if(s&&c.resolve(!0),e<=0)return c.promise;let t=()=>{};return await Promise.race([c.promise.then(t),new Promise((n,r)=>{let i=setTimeout(()=>{r(Error(`[Vite DevTools] Timeout waiting for rpc to be trusted`))},e);t=()=>clearTimeout(i)})]),s}return{get isTrusted(){return s},requestTrust:d,ensureTrusted:f,call:(...e)=>u.$call(...e),callEvent:(...e)=>u.$callEvent(...e),callOptional:(...e)=>u.$callOptional(...e)}}var vr=`__VITE_DEVTOOLS_CONNECTION_META__`,Q=`__VITE_DEVTOOLS_CONNECTION_AUTH_ID__`;function yr(e){let t=[()=>e,()=>localStorage.getItem(Q),()=>window?.[Q],()=>globalThis?.[Q],()=>parent.window?.[Q]],n;for(let e of t)try{if(n=e(),n)break}catch{}return n||=ge(),localStorage.setItem(Q,n),globalThis[Q]=n,n}function br(){let e=[()=>window?.[vr],()=>globalThis?.[vr],()=>parent.window?.[vr]];for(let t of e)try{let e=t();if(e)return e}catch{}}async function xr(e={}){let{baseURL:t=de,rpcOptions:n={}}=e,r=me(),i=Array.isArray(t)?t:[t],a=e.connectionMeta||br(),o=i[0]??`/.devtools/`;function s(e){return e.endsWith(`/`)?e:`${e}/`}function c(e,t){return/^https?:\/\//.test(t)||t.startsWith(`/`)?t:`${s(e)}${t}`}if(!a){let e=[];for(let t of i)try{a=await fetch(c(t,fe)).then(e=>e.json()),o=t,globalThis[vr]=a;break}catch(t){e.push(t)}if(!a)throw Error(`Failed to get connection meta from ${i.join(`, `)}`,{cause:e})}let l={rpc:void 0},u=yr(e.authId),d=new ue(l);async function f(e){let t=[o,...i.filter(e=>e!==o)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(c(r,e)).then(t=>{if(!t.ok)throw Error(`Failed to fetch ${e} from ${r}: ${t.status}`);return t.json()})}catch(e){n.push(e)}throw Error(`Failed to load ${e} from ${t.join(`, `)}`,{cause:n})}let p=a.backend===`static`?await Nt({fetchJsonFromBases:f}):_r({authId:u,connectionMeta:a,events:r,clientRpc:d,rpcOptions:n,wsOptions:e.wsOptions}),m={events:r,get isTrusted(){return p.isTrusted},connectionMeta:a,ensureTrusted:p.ensureTrusted,requestTrust:p.requestTrust,call:p.call,callEvent:p.callEvent,callOptional:p.callOptional,client:d,sharedState:void 0};return m.sharedState=Dt(m),l.rpc=m,p.requestTrust(),m}var $=o({connected:!1,error:null}),Sr=n(void 0);async function Cr(){let e=r();try{Sr.value=await xr({baseURL:[de,e.app.baseURL],connectionMeta:e.app.connection,wsOptions:{onConnected:()=>{$.connected=!0},onError:e=>{$.error=e},onDisconnected:()=>{$.connected=!1}},rpcOptions:{onGeneralError:(e,t)=>{$.error=e,console.error(`[rolldown-devtools] RPC error on executing "${t}":`)},onFunctionError:(e,t)=>{$.error=e,console.error(`[rolldown-devtools] RPC error on executing "${t}":`)}}}),$.connected=!0}catch(e){$.error=e}}function wr(){return Sr}export{_ as i,$ as n,wr as r,Cr as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,Et as t,Gt as n,M as r,q as i,w as a}from"./CyUS7GqK.js";import{i as o}from"./D0PBHtPK.js";var s={key:0,"font-mono":``},c=r({__name:`DisplayTimestamp`,props:{timestamp:{}},setup(r){let c=r;return(l,u)=>r.timestamp?(i(),a(`span`,s,n(t(o)(new Date(c.timestamp))),1)):e(``,!0)}});export{c as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,C as t,Et as n,Gt as r,Ht as i,M as a,S as o,Z as s,b as c,h as l,k as u,lt as d,q as f,w as p,x as m}from"./CyUS7GqK.js";import"./Bc8dubgH.js";import{t as h}from"./B8Pee7C0.js";import{r as g,t as _}from"./Cy7pLEz3.js";import{t as v}from"./CslYnwdN.js";import{t as y}from"./C2GH2ak5.js";import{t as b}from"./DE4LYGEQ.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=a({__name:`index`,props:{session:{}},setup(a){let k=a,A=c(()=>[{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(c,j)=>{let M=h,N=_;return f(),p(`div`,x,[m(`div`,S,[e(M,{"btn-action":``,to:{path:`/`}},{default:d(()=>[...j[0]||=[m(`div`,{"i-ph-arrow-bend-up-left-duotone":``},null,-1),u(` Re-select Session `,-1)]]),_:1})]),j[1]||=m(`div`,{op50:``,"mt-10":``},` Meta Info `,-1),m(`div`,C,[(f(!0),p(l,null,s(A.value,e=>(f(),p(l,{key:e.title},[m(`div`,{class:i(e.icon)},null,2),m(`div`,null,r(e.title),1),m(`div`,w,[e.value instanceof Date?(f(),p(`time`,{key:0,datetime:e.value.toISOString()},r(e.value.toLocaleString()),9,T)):e.type===`badge`?(f(),o(g,{key:1,text:String(e.value),py1:``},null,8,[`text`])):e.type===`duration`?(f(),o(v,{key:2,duration:+e.value},null,8,[`duration`])):typeof e.value==`number`?(f(),o(y,{key:3,number:e.value,py1:``,"rounded-full":``,"inline-block":``,"text-sm":``},null,8,[`number`])):(f(),p(`span`,E,r(e.value),1))])],64))),128))]),j[2]||=m(`div`,{op50:``,"mt-4":``},` Build Entries `,-1),m(`div`,D,[(f(!0),p(l,null,s(k.session.meta.inputs,t=>(f(),p(l,{key:t},[e(g,{text:t.name||``},null,8,[`text`]),e(N,{id:t.filename||``,session:a.session,link:!0},null,8,[`id`,`session`])],64))),128))]),j[3]||=m(`div`,{op50:``,"mt-4":``},` Views `,-1),m(`div`,O,[(f(!0),p(l,null,s(n(b),e=>(f(),p(l,{key:e.to},[e.category===`session`?(f(),o(M,{key:0,"btn-action":``,to:{path:e.to},flex:`~ col`,"min-w-40":``,p4:``},{default:d(()=>[m(`div`,{class:i(e.icon),"text-2xl":``},null,2),u(` `+r(e.title),1)]),_:2},1032,[`to`])):t(``,!0)],64))),128))])])}}});export{k as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{B as e,Ct as t,Et as n,G as r,I as i,L as a,N as o,St as s,Tt as c,_t as l,b as u,bt as d,ft as f,ht as p,ot as m,pt as h,st as g,vt as _,yt as v}from"./CyUS7GqK.js";function y(e,t,n={}){let r,i,a,o=!0,s=()=>{o=!0,a()};m(e,s,{flush:`sync`,...n});let c=typeof t==`function`?t:t.get,l=typeof t==`function`?void 0:t.set,u=f((e,t)=>(i=e,a=t,{get(){return o&&=(r=c(r),!1),i(),r},set(e){l?.(e)}}));return u.trigger=s,u}function b(e,t){return h()?(l(e,t),!0):!1}var x=new WeakMap,S=(...e)=>{let t=e[0],n=o()?.proxy??h();if(n==null&&!i())throw Error(`injectLocal must be called in setup`);return n&&x.has(n)&&t in x.get(n)?x.get(n)[t]:a(...e)},C=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var w=e=>e!==void 0,T=Object.prototype.toString,E=e=>T.call(e)===`[object Object]`,D=()=>{},O=k();function k(){var e,t;return C&&!!(!((e=window)==null||(e=e.navigator)==null)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function A(...e){if(e.length!==1)return t(...e);let n=e[0];return typeof n==`function`?v(f(()=>({get:n,set:D}))):d(n)}function j(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var M=e=>e();function ee(e,t={}){let n,r,i=D,a=e=>{clearTimeout(e),i(),i=D},o;return s=>{let l=c(e),u=c(t.maxWait);return n&&a(n),l<=0||u!==void 0&&u<=0?(r&&=(a(r),void 0),Promise.resolve(s())):new Promise((e,c)=>{i=t.rejectOnCancel?c:e,o=s,u&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,e(o())},u)),n=setTimeout(()=>{r&&a(r),r=void 0,e(s())},l)})}}function te(e=M,t={}){let{initialState:n=`active`}=t,r=A(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:v(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function N(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(()=>i(n),e):setTimeout(r,e)})}function P(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function F(e){return Array.isArray(e)?e:[e]}function ne(e){return e||o()}function I(e,t,n={}){let{eventFilter:r=M,...i}=n;return m(e,j(r,t),i)}function re(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=te(r,{initialState:i});return{stop:I(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function L(t,n=!0,i){ne(i)?r(t,i):n?t():e(t)}function R(t,n=!1){function r(r,{flush:i=`sync`,deep:a=!1,timeout:o,throwOnTimeout:s}={}){let l=null,u=[new Promise(o=>{l=m(t,t=>{r(t)!==n&&(l?l():e(()=>l?.()),o(t))},{flush:i,deep:a,immediate:!0})})];return o!=null&&u.push(N(o,s).then(()=>c(t)).finally(()=>l?.())),Promise.race(u)}function i(i,a){if(!p(i))return r(e=>e===i,a);let{flush:o=`sync`,deep:s=!1,timeout:l,throwOnTimeout:u}=a??{},d=null,f=[new Promise(r=>{d=m([t,i],([t,i])=>{n!==(t===i)&&(d?d():e(()=>d?.()),r(t))},{flush:o,deep:s,immediate:!0})})];return l!=null&&f.push(N(l,u).then(()=>c(t)).finally(()=>(d?.(),c(t)))),Promise.race(f)}function a(e){return r(e=>!!e,e)}function o(e){return i(null,e)}function s(e){return i(void 0,e)}function l(e){return r(Number.isNaN,e)}function u(e,t){return r(t=>{let n=Array.from(t);return n.includes(e)||n.includes(c(e))},t)}function d(e){return f(1,e)}function f(e=1,t){let n=-1;return r(()=>(n+=1,n>=e),t)}return Array.isArray(c(t))?{toMatch:r,toContains:u,changed:d,changedTimes:f,get not(){return R(t,!n)}}:{toMatch:r,toBe:i,toBeTruthy:a,toBeNull:o,toBeNaN:l,toBeUndefined:s,changed:d,changedTimes:f,get not(){return R(t,!n)}}}function ie(e){return R(e)}function ae(e=!1,t={}){let{truthyValue:n=!0,falsyValue:r=!1}=t,i=p(e),a=s(e);function o(e){if(arguments.length)return a.value=e,a.value;{let e=c(n);return a.value=a.value===e?c(r):e,a.value}}return i?o:[a,o]}function oe(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return I(e,t,{...a,eventFilter:ee(r,{maxWait:i})})}function se(e,t,n){return m(e,t,{...n,immediate:!0})}function ce(e,t,n){let r;r=p(n)?{evaluating:n}:n||{};let{lazy:i=!1,flush:a=`sync`,evaluating:o=void 0,shallow:c=!0,onError:l=globalThis.reportError??D}=r,f=s(!i),m=c?s(t):d(t),h=0;return g(async t=>{if(!f.value)return;h++;let n=h,r=!1;o&&Promise.resolve().then(()=>{o.value=!0});try{let i=await e(e=>{t(()=>{o&&(o.value=!1),r||e()})});n===h&&(m.value=i)}catch(e){l(e)}finally{o&&n===h&&(o.value=!1),r=!0}},{flush:a}),i?u(()=>(f.value=!0,m.value)):m}var z=C?window:void 0;C&&window.document,C&&window.navigator,C&&window.location;function B(e){let t=c(e);return t?.$el??t}function V(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),r=u(()=>{let t=F(c(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return se(()=>[r.value?.map(e=>B(e))??[z].filter(e=>e!=null),F(c(r.value?e[1]:e[0])),F(n(r.value?e[2]:e[1])),c(r.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=E(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}var H=!1;function le(e,t,n={}){let{window:r=z,ignore:i=[],capture:a=!0,detectIframe:o=!1,controls:s=!1}=n;if(!r)return s?{stop:D,cancel:D,trigger:D}:D;if(O&&!H){H=!0;let e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener(`click`,D,e)),r.document.documentElement.addEventListener(`click`,D,e)}let l=!0,u=e=>c(i).some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=B(t);return n&&(e.target===n||e.composedPath().includes(n))}});function d(e){let t=c(e);return t&&t.$.subTree.shapeFlag===16}function f(e,t){let n=c(e),r=n.$.subTree&&n.$.subTree.children;return r==null||!Array.isArray(r)?!1:r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}let p=n=>{let r=B(e);if(n.target!=null&&!(!(r instanceof Element)&&d(e)&&f(e,n))&&!(!r||r===n.target||n.composedPath().includes(r))){if(`detail`in n&&n.detail===0&&(l=!u(n)),!l){l=!0;return}t(n)}},m=!1,h=[V(r,`click`,e=>{m||(m=!0,setTimeout(()=>{m=!1},0),p(e))},{passive:!0,capture:a}),V(r,`pointerdown`,t=>{let n=B(e);l=!u(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),o&&V(r,`blur`,n=>{setTimeout(()=>{let i=B(e);r.document.activeElement?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)},0)},{passive:!0})].filter(Boolean),g=()=>h.forEach(e=>e());return s?{stop:g,cancel:()=>{l=!1},trigger:e=>{l=!0,p(e),l=!1}}:g}function ue(){let e=s(!1),t=o();return t&&r(()=>{e.value=!0},t),e}function de(e){let t=ue();return u(()=>(t.value,!!e()))}function fe(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function U(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=z,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,l=fe(t);return V(i,a,e=>{e.repeat&&c(s)||l(e)&&n(e)},o)}function pe(e,t,n={}){return U(e,t,{...n,eventName:`keydown`})}function me(e,t,n={}){return U(e,t,{...n,eventName:`keypress`})}function he(e,t,n){let{immediate:r=!0,delay:i=0,onError:a=globalThis.reportError??D,onSuccess:o=D,resetOnExecute:l=!0,shallow:u=!0,throwError:f}=n??{},p=u?s(t):d(t),m=s(!1),h=s(!1),g=s(void 0),_=0;async function v(n=0,...r){let i=_+=1;l&&(p.value=c(t)),g.value=void 0,m.value=!1,h.value=!0,n>0&&await N(n);let s=typeof e==`function`?e(...r):e;try{let e=await s;return i===_&&(p.value=e,m.value=!0),o(e),e}catch(e){if(i===_&&(g.value=e),a(e),f)throw e}finally{i===_&&(h.value=!1)}}r&&v(i);let y={state:p,isReady:m,isLoading:h,error:g,execute:v,executeImmediate:(...e)=>v(0,...e)};function b(){return new Promise((e,t)=>{ie(h).toBe(!1).then(()=>e(y)).catch(t)})}return{...y,then(e,t){return b().then(e,t)}}}var ge=Symbol(`vueuse-ssr-width`);function _e(){let e=i()?S(ge,null):null;return typeof e==`number`?e:void 0}function ve(e,t={}){let{window:n=z,ssrWidth:r=_e()}=t,i=de(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),a=s(typeof r==`number`),o=s(),l=s(!1);return g(()=>{if(a.value){a.value=!i.value,l.value=c(e).split(`,`).some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=P(n[1])),i&&a&&(a=r<=P(i[1])),t?!a:a});return}i.value&&(o.value=n.matchMedia(c(e)),l.value=o.value.matches)}),V(o,`change`,e=>{l.value=e.matches},{passive:!0}),u(()=>l.value)}function ye(e){return JSON.parse(JSON.stringify(e))}var W=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},G=`__vueuse_ssr_handlers__`,be=K();function K(){return G in W||(W[G]=W[G]||{}),W[G]}function q(e,t){return be[e]||t}function xe(e){return ve(`(prefers-color-scheme: dark)`,e)}function Se(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var Ce={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},J=`vueuse-storage`;function Y(t,n,r,i={}){let{flush:a=`pre`,deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:f=!0,mergeDefaults:p=!1,shallow:h,window:g=z,eventFilter:_,onError:v=e=>{console.error(e)},initOnMounted:y}=i,b=(h?s:d)(typeof n==`function`?n():n),x=u(()=>c(t));if(!r)try{r=q(`getDefaultStorage`,()=>z?.localStorage)()}catch(e){v(e)}if(!r)return b;let S=c(n),C=Se(S),w=i.serializer??Ce[C],{pause:T,resume:E}=re(b,e=>k(e),{flush:a,deep:o,eventFilter:_});m(x,()=>j(),{flush:a});let D=!1;g&&l&&(r instanceof Storage?V(g,`storage`,e=>{y&&!D||j(e)},{passive:!0}):V(g,J,e=>{y&&!D||M(e)})),y?L(()=>{D=!0,j()}):j();function O(e,t){if(g){let n={key:x.value,oldValue:e,newValue:t,storageArea:r};g.dispatchEvent(r instanceof Storage?new StorageEvent(`storage`,n):new CustomEvent(J,{detail:n}))}}function k(e){try{let t=r.getItem(x.value);if(e==null)O(t,null),r.removeItem(x.value);else{let n=w.write(e);t!==n&&(r.setItem(x.value,n),O(t,n))}}catch(e){v(e)}}function A(e){let t=e?e.newValue:r.getItem(x.value);if(t==null)return f&&S!=null&&r.setItem(x.value,w.write(S)),S;if(!e&&p){let e=w.read(t);return typeof p==`function`?p(e,S):C===`object`&&!Array.isArray(e)?{...S,...e}:e}else if(typeof t!=`string`)return t;else return w.read(t)}function j(t){if(!(t&&t.storageArea!==r)){if(t&&t.key==null){b.value=S;return}if(!(t&&t.key!==x.value)){T();try{let e=w.write(b.value);(t===void 0||t?.newValue!==e)&&(b.value=A(t))}catch(e){v(e)}finally{t?e(E):E()}}}}function M(e){j(e.detail)}return b}var we=`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Te(e={}){let{selector:t=`html`,attribute:n=`class`,initialValue:r=`auto`,window:i=z,storage:a,storageKey:o=`vueuse-color-scheme`,listenToStorageChanges:s=!0,storageRef:c,emitAuto:l,disableTransition:d=!0}=e,f={auto:``,light:`light`,dark:`dark`,...e.modes||{}},p=xe({window:i}),h=u(()=>p.value?`dark`:`light`),g=c||(o==null?A(r):Y(o,r,a,{window:i,listenToStorageChanges:s})),_=u(()=>g.value===`auto`?h.value:g.value),v=q(`updateHTMLAttrs`,(e,t,n)=>{let r=typeof e==`string`?i?.document.querySelector(e):B(e);if(!r)return;let a=new Set,o=new Set,s=null;if(t===`class`){let e=n.split(/\s/g);Object.values(f).flatMap(e=>(e||``).split(/\s/g)).filter(Boolean).forEach(t=>{e.includes(t)?a.add(t):o.add(t)})}else s={key:t,value:n};if(a.size===0&&o.size===0&&s===null)return;let c;d&&(c=i.document.createElement(`style`),c.appendChild(document.createTextNode(we)),i.document.head.appendChild(c));for(let e of a)r.classList.add(e);for(let e of o)r.classList.remove(e);s&&r.setAttribute(s.key,s.value),d&&(i.getComputedStyle(c).opacity,document.head.removeChild(c))});function y(e){v(t,n,f[e]??e)}function b(t){e.onChanged?e.onChanged(t,y):y(t)}m(_,b,{flush:`post`,immediate:!0}),L(()=>b(_.value));let x=u({get(){return l?g.value:_.value},set(e){g.value=e}});return Object.assign(x,{store:g,system:h,state:_})}function Ee(e,t){let n=s(f()),r=A(e),i=u({get(){let e=r.value,i=t?.getIndexOf?t.getIndexOf(n.value,e):e.indexOf(n.value);return i<0&&(i=t?.fallbackIndex??0),i},set(e){a(e)}});function a(e){let t=r.value,i=t.length,a=t[(e%i+i)%i];return n.value=a,a}function o(e=1){return a(i.value+e)}function l(e=1){return o(e)}function d(e=1){return o(-e)}function f(){return c(t?.initialValue??c(e)[0])??void 0}return m(r,()=>a(i.value)),{state:n,index:i,next:l,prev:d,go:a}}function De(e={}){let{valueDark:t=`dark`,valueLight:n=``}=e,r=Te({...e,onChanged:(t,n)=>{var r;e.onChanged?(r=e.onChanged)==null||r.call(e,t===`dark`,n,t):n(t)},modes:{dark:t,light:n}}),i=u(()=>r.system.value);return u({get(){return r.value===`dark`},set(e){let t=e?`dark`:`light`;i.value===t?r.value=`auto`:r.value=t}})}function X(e){return typeof Window<`u`&&e instanceof Window?e.document.documentElement:typeof Document<`u`&&e instanceof Document?e.documentElement:e}function Oe(e,t,n={}){let{window:r=z}=n;return Y(e,t,r?.localStorage,n)}var ke={ctrl:`control`,command:`meta`,cmd:`meta`,option:`alt`,up:`arrowup`,down:`arrowdown`,left:`arrowleft`,right:`arrowright`};function Ae(e={}){let{reactive:t=!1,target:n=z,aliasMap:r=ke,passive:i=!0,onEventFired:a=D}=e,o=_(new Set),l={toJSON(){return{}},current:o},d=t?_(l):l,f=new Set,p=new Map([[`Meta`,f],[`Shift`,new Set],[`Alt`,new Set]]),m=new Set;function h(e,n){e in d&&(t?d[e]=n:d[e].value=n)}function g(){o.clear();for(let e of m)h(e,!1)}function v(e,t,n){if(!(!e||typeof t.getModifierState!=`function`)){for(let[e,r]of p)if(t.getModifierState(e)){n.forEach(e=>r.add(e));break}}}function y(e,t){if(e)return;let n=`${t[0].toUpperCase()}${t.slice(1)}`,r=p.get(n);if(![`shift`,`alt`].includes(t)||!r)return;let i=Array.from(r),a=i.indexOf(t);i.forEach((e,t)=>{t>=a&&(o.delete(e),h(e,!1))}),r.clear()}function b(e,t){let n=e.key?.toLowerCase(),r=[e.code?.toLowerCase(),n].filter(Boolean);if(n){n&&(t?o.add(n):o.delete(n));for(let e of r)m.add(e),h(e,t);v(t,e,[...o,...r]),y(t,n),n===`meta`&&!t&&(f.forEach(e=>{o.delete(e),h(e,!1)}),f.clear())}}V(n,`keydown`,e=>(b(e,!0),a(e)),{passive:i}),V(n,`keyup`,e=>(b(e,!1),a(e)),{passive:i}),V(`blur`,g,{passive:i}),V(`focus`,g,{passive:i});let x=new Proxy(d,{get(e,n,i){if(typeof n!=`string`)return Reflect.get(e,n,i);if(n=n.toLowerCase(),n in r&&(n=r[n]),!(n in d))if(/[+_-]/.test(n)){let e=n.split(/[+_-]/g).map(e=>e.trim());d[n]=u(()=>e.map(e=>c(x[e])).every(Boolean))}else d[n]=s(!1);let a=Reflect.get(e,n,i);return t?c(a):a}});return x}var je={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function Me(e={}){let{type:t=`page`,touch:n=!0,resetOnTouchEnds:r=!1,initialValue:i={x:0,y:0},window:a=z,target:o=a,scroll:c=!0,eventFilter:l}=e,u=null,d=0,f=0,p=s(i.x),m=s(i.y),h=s(null),g=typeof t==`function`?t:je[t],_=e=>{let t=g(e);u=e,t&&([p.value,m.value]=t,h.value=`mouse`),a&&(d=a.scrollX,f=a.scrollY)},v=e=>{if(e.touches.length>0){let t=g(e.touches[0]);t&&([p.value,m.value]=t,h.value=`touch`)}},y=()=>{if(!u||!a)return;let e=g(u);u instanceof MouseEvent&&e&&(p.value=e[0]+a.scrollX-d,m.value=e[1]+a.scrollY-f)},b=()=>{p.value=i.x,m.value=i.y},x=l?e=>l(()=>_(e),{}):e=>_(e),S=l?e=>l(()=>v(e),{}):e=>v(e),C=l?()=>l(()=>y(),{}):()=>y();if(o){let e={passive:!0};V(o,[`mousemove`,`dragover`],x,e),n&&t!==`movement`&&(V(o,[`touchstart`,`touchmove`],S,e),r&&V(o,`touchend`,b,e)),c&&t===`page`&&V(a,`scroll`,C,e)}return{x:p,y:m,sourceType:h}}function Z(e){let t=window.getComputedStyle(e);if(t.overflowX===`scroll`||t.overflowY===`scroll`||t.overflowX===`auto`&&e.clientWidth<e.scrollWidth||t.overflowY===`auto`&&e.clientHeight<e.scrollHeight)return!0;{let t=e.parentNode;return!t||t.tagName===`BODY`?!1:Z(t)}}function Ne(e){let t=e||window.event,n=t.target;return Z(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}var Q=new WeakMap;function Pe(e,t=!1){let n=s(t),r=null,i=``;m(A(e),e=>{let t=X(c(e));if(t){let e=t;if(Q.get(e)||Q.set(e,e.style.overflow),e.style.overflow!==`hidden`&&(i=e.style.overflow),e.style.overflow===`hidden`)return n.value=!0;if(n.value)return e.style.overflow=`hidden`}},{immediate:!0});let a=()=>{let t=X(c(e));!t||n.value||(O&&(r=V(t,`touchmove`,e=>{Ne(e)},{passive:!1})),t.style.overflow=`hidden`,n.value=!0)},o=()=>{let t=X(c(e));!t||!n.value||(O&&r?.(),t.style.overflow=i,Q.delete(t),n.value=!1)};return b(o),u({get(){return n.value},set(e){e?a():o()}})}var Fe=[{max:6e4,value:1e3,name:`second`},{max:276e4,value:6e4,name:`minute`},{max:72e6,value:36e5,name:`hour`},{max:5184e5,value:864e5,name:`day`},{max:24192e5,value:6048e5,name:`week`},{max:28512e6,value:2592e6,name:`month`},{max:1/0,value:31536e6,name:`year`}],Ie={justNow:`just now`,past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?`last month`:`next month`:`${e} month${e>1?`s`:``}`,year:(e,t)=>e===1?t?`last year`:`next year`:`${e} year${e>1?`s`:``}`,day:(e,t)=>e===1?t?`yesterday`:`tomorrow`:`${e} day${e>1?`s`:``}`,week:(e,t)=>e===1?t?`last week`:`next week`:`${e} week${e>1?`s`:``}`,hour:e=>`${e} hour${e>1?`s`:``}`,minute:e=>`${e} minute${e>1?`s`:``}`,second:e=>`${e} second${e>1?`s`:``}`,invalid:``};function Le(e){return e.toISOString().slice(0,10)}function Re(e,t={},n=Date.now()){let{max:r,messages:i=Ie,fullDateFormatter:a=Le,units:o=Fe,showSecond:s=!1,rounding:c=`round`}=t,l=typeof c==`number`?e=>+e.toFixed(c):Math[c],u=n-+e,d=Math.abs(u);function f(e,t){return l(Math.abs(e)/t.value)}function p(e,t){let n=f(e,t),r=e>0,i=m(t.name,n,r);return m(r?`past`:`future`,i,r)}function m(e,t,n){let r=i[e];return typeof r==`function`?r(t,n):r.replace(`{0}`,t.toString())}if(d<6e4&&!s)return i.justNow;if(typeof r==`number`&&d>r)return a(new Date(e));if(typeof r==`string`){let t=o.find(e=>e.name===r)?.max;if(t&&d>t)return a(new Date(e))}for(let[e,t]of o.entries()){if(f(u,t)<=0&&o[e-1])return p(u,o[e-1]);if(d<t.max)return p(u,t)}return i.invalid}function ze(t,n,r,i={}){var a,s;let{clone:c=!1,passive:l=!1,eventName:f,deep:p=!1,defaultValue:h,shouldEmit:g}=i,_=o(),v=r||_?.emit||(_==null||(a=_.$emit)==null?void 0:a.bind(_))||(_==null||(s=_.proxy)==null||(s=s.$emit)==null?void 0:s.bind(_?.proxy)),y=f;n||=`modelValue`,y||=`update:${n.toString()}`;let b=e=>c?typeof c==`function`?c(e):ye(e):e,x=()=>w(t[n])?b(t[n]):h,S=e=>{g?g(e)&&v(y,e):v(y,e)};if(l){let r=d(x()),i=!1;return m(()=>t[n],t=>{i||(i=!0,r.value=b(t),e(()=>i=!1))}),m(r,e=>{!i&&(e!==t[n]||p)&&S(e)},{deep:p}),r}else return u({get(){return x()},set(e){S(e)}})}var $=De({valueLight:`light`});function Be(){$.value=!$.value}export{ae as _,le as a,he as c,Oe as d,Ae as f,y as g,ze as h,Re as i,Ee as l,Pe as m,Be as n,pe as o,Me as p,ce as r,me as s,$ as t,V as u,oe as v};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,C as r,Et as i,F as a,Gt as o,Ht as s,J as c,M as l,P as u,Q as d,S as f,Ut as p,Wt as m,X as h,Z as g,dt as _,et as v,gt as y,h as b,lt as x,nt as S,q as C,tt as w,ut as T,w as E,x as D,xt as ee,z as O}from"./CyUS7GqK.js";import{H as te}from"./Bc8dubgH.js";import{h as ne}from"./D0PBHtPK.js";function k(e){return Array.isArray?Array.isArray(e):ue(e)===`[object Array]`}var re=1/0;function ie(e){if(typeof e==`string`)return e;let t=e+``;return t==`0`&&1/e==-re?`-0`:t}function ae(e){return e==null?``:ie(e)}function A(e){return typeof e==`string`}function oe(e){return typeof e==`number`}function se(e){return e===!0||e===!1||le(e)&&ue(e)==`[object Boolean]`}function ce(e){return typeof e==`object`}function le(e){return ce(e)&&e!==null}function j(e){return e!=null}function M(e){return!e.trim().length}function ue(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var de=`Incorrect 'index' type`,fe=e=>`Invalid value for key ${e}`,pe=e=>`Pattern length exceeds max of ${e}.`,me=e=>`Missing ${e} property in key`,he=e=>`Property 'weight' in key '${e}' must be a positive integer`,ge=Object.prototype.hasOwnProperty,_e=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=ve(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function ve(e){let t=null,n=null,r=null,i=1,a=null;if(A(e)||k(e))r=e,t=ye(e),n=N(e);else{if(!ge.call(e,`name`))throw Error(me(`name`));let o=e.name;if(r=o,ge.call(e,`weight`)&&(i=e.weight,i<=0))throw Error(he(o));t=ye(o),n=N(o),a=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:a}}function ye(e){return k(e)?e:e.split(`.`)}function N(e){return k(e)?e.join(`.`):e}function be(e,t){let n=[],r=!1,i=(e,t,a)=>{if(j(e))if(!t[a])n.push(e);else{let o=e[t[a]];if(!j(o))return;if(a===t.length-1&&(A(o)||oe(o)||se(o)))n.push(ae(o));else if(k(o)){r=!0;for(let e=0,n=o.length;e<n;e+=1)i(o[e],t,a+1)}else t.length&&i(o,t,a+1)}};return i(e,A(t)?t.split(`.`):t,0),r?n:n[0]}var xe={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Se={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},Ce={location:0,threshold:.6,distance:100},we={useExtendedSearch:!1,getFn:be,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},P={...Se,...xe,...Ce,...we},Te=/[^ ]+/g;function Ee(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=t.match(Te).length;if(n.has(i))return n.get(i);let a=1/i**(.5*e),o=parseFloat(Math.round(a*r)/r);return n.set(i,o),o},clear(){n.clear()}}}var F=class{constructor({getFn:e=P.getFn,fieldNormWeight:t=P.fieldNormWeight}={}){this.norm=Ee(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,A(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();A(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)--this.records[t].i}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!j(e)||M(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach((t,r)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(j(i)){if(k(i)){let e=[],t=[{nestedArrIndex:-1,value:i}];for(;t.length;){let{nestedArrIndex:n,value:r}=t.pop();if(j(r))if(A(r)&&!M(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else k(r)&&r.forEach((e,n)=>{t.push({nestedArrIndex:n,value:e})})}n.$[r]=e}else if(A(i)&&!M(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}};function De(e,t,{getFn:n=P.getFn,fieldNormWeight:r=P.fieldNormWeight}={}){let i=new F({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(ve)),i.setSources(t),i.create(),i}function Oe(e,{getFn:t=P.getFn,fieldNormWeight:n=P.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new F({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function I(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=P.distance,ignoreLocation:a=P.ignoreLocation}={}){let o=t/e.length;if(a)return o;let s=Math.abs(r-n);return i?o+s/i:s?1:o}function ke(e=[],t=P.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}var L=32;function Ae(e,t,n,{location:r=P.location,distance:i=P.distance,threshold:a=P.threshold,findAllMatches:o=P.findAllMatches,minMatchCharLength:s=P.minMatchCharLength,includeMatches:c=P.includeMatches,ignoreLocation:l=P.ignoreLocation}={}){if(t.length>L)throw Error(pe(L));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=s>1||c,g=h?Array(d):[],_;for(;(_=e.indexOf(t,m))>-1;){let e=I(t,{currentLocation:_,expectedLocation:f,distance:i,ignoreLocation:l});if(p=Math.min(e,p),m=_+u,h){let e=0;for(;e<u;)g[_+e]=1,e+=1}}m=-1;let v=[],y=1,b=u+d,x=1<<u-1;for(let r=0;r<u;r+=1){let a=0,s=b;for(;a<s;)I(t,{errors:r,currentLocation:f+s,expectedLocation:f,distance:i,ignoreLocation:l})<=p?a=s:b=s,s=Math.floor((b-a)/2+a);b=s;let c=Math.max(1,f-s+1),_=o?d:Math.min(f+s,d)+u,S=Array(_+2);S[_+1]=(1<<r)-1;for(let a=_;a>=c;--a){let o=a-1,s=n[e.charAt(o)];if(h&&(g[o]=+!!s),S[a]=(S[a+1]<<1|1)&s,r&&(S[a]|=(v[a+1]|v[a])<<1|1|v[a+1]),S[a]&x&&(y=I(t,{errors:r,currentLocation:o,expectedLocation:f,distance:i,ignoreLocation:l}),y<=p)){if(p=y,m=o,m<=f)break;c=Math.max(1,2*f-m)}}if(I(t,{errors:r+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:l})>p)break;v=S}let S={isMatch:m>=0,score:Math.max(.001,y)};if(h){let e=ke(g,s);e.length?c&&(S.indices=e):S.isMatch=!1}return S}function je(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}var R=String.prototype.normalize?(e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``)):(e=>e),Me=class{constructor(e,{location:t=P.location,threshold:n=P.threshold,distance:r=P.distance,includeMatches:i=P.includeMatches,findAllMatches:a=P.findAllMatches,minMatchCharLength:o=P.minMatchCharLength,isCaseSensitive:s=P.isCaseSensitive,ignoreDiacritics:c=P.ignoreDiacritics,ignoreLocation:l=P.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?R(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:je(e),startIndex:t})},d=this.pattern.length;if(d>L){let e=0,t=d%L,n=d-t;for(;e<n;)u(this.pattern.substr(e,L),e),e+=L;if(t){let e=d-L;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?R(e):e,this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=Ae(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&(u=[...u,...g])});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=u),p}},z=class{constructor(e){this.pattern=e}static isMultiMatch(e){return Ne(e,this.multiRegex)}static isSingleMatch(e){return Ne(e,this.singleRegex)}search(){}};function Ne(e,t){let n=e.match(t);return n?n[1]:null}var Pe=class extends z{constructor(e){super(e)}static get type(){return`exact`}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Fe=class extends z{constructor(e){super(e)}static get type(){return`inverse-exact`}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=e.indexOf(this.pattern)===-1;return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Ie=class extends z{constructor(e){super(e)}static get type(){return`prefix-exact`}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Le=class extends z{constructor(e){super(e)}static get type(){return`inverse-prefix-exact`}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Re=class extends z{constructor(e){super(e)}static get type(){return`suffix-exact`}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},ze=class extends z{constructor(e){super(e)}static get type(){return`inverse-suffix-exact`}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Be=class extends z{constructor(e,{location:t=P.location,threshold:n=P.threshold,distance:r=P.distance,includeMatches:i=P.includeMatches,findAllMatches:a=P.findAllMatches,minMatchCharLength:o=P.minMatchCharLength,isCaseSensitive:s=P.isCaseSensitive,ignoreDiacritics:c=P.ignoreDiacritics,ignoreLocation:l=P.ignoreLocation}={}){super(e),this._bitapSearch=new Me(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l})}static get type(){return`fuzzy`}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}},Ve=class extends z{constructor(e){super(e)}static get type(){return`include`}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t=0,n,r=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,t))>-1;)t=n+i,r.push([n,t-1]);let a=!!r.length;return{isMatch:a,score:a?0:1,indices:r}}},B=[Pe,Ve,Ie,Le,ze,Re,Fe,Be],He=B.length,Ue=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,We=`|`;function Ge(e,t={}){return e.split(We).map(e=>{let n=e.trim().split(Ue).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){let i=n[e],a=!1,o=-1;for(;!a&&++o<He;){let e=B[o],n=e.isMultiMatch(i);n&&(r.push(new e(n,t)),a=!0)}if(!a)for(o=-1;++o<He;){let e=B[o],n=e.isSingleMatch(i);if(n){r.push(new e(n,t));break}}}return r})}var Ke=new Set([Be.type,Ve.type]),qe=class{constructor(e,{isCaseSensitive:t=P.isCaseSensitive,ignoreDiacritics:n=P.ignoreDiacritics,includeMatches:r=P.includeMatches,minMatchCharLength:i=P.minMatchCharLength,ignoreLocation:a=P.ignoreLocation,findAllMatches:o=P.findAllMatches,location:s=P.location,threshold:c=P.threshold,distance:l=P.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?R(e):e,this.pattern=e,this.query=Ge(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?R(e):e;let a=0,o=[],s=0;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:c,indices:l,score:u}=r.search(e);if(c){if(a+=1,s+=u,n){let e=r.constructor.type;Ke.has(e)?o=[...o,...l]:o.push(l)}}else{s=0,a=0,o.length=0;break}}if(a){let e={isMatch:!0,score:s/a};return n&&(e.indices=o),e}}return{isMatch:!1,score:1}}},V=[];function Je(...e){V.push(...e)}function H(e,t){for(let n=0,r=V.length;n<r;n+=1){let r=V[n];if(r.condition(e,t))return new r(e,t)}return new Me(e,t)}var U={AND:`$and`,OR:`$or`},W={PATH:`$path`,PATTERN:`$val`},G=e=>!!(e[U.AND]||e[U.OR]),Ye=e=>!!e[W.PATH],Xe=e=>!k(e)&&ce(e)&&!G(e),Ze=e=>({[U.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Qe(e,t,{auto:n=!0}={}){let r=e=>{let i=Object.keys(e),a=Ye(e);if(!a&&i.length>1&&!G(e))return r(Ze(e));if(Xe(e)){let r=a?e[W.PATH]:i[0],o=a?e[W.PATTERN]:e[r];if(!A(o))throw Error(fe(r));let s={keyId:N(r),pattern:o};return n&&(s.searcher=H(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];k(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return G(e)||(e=Ze(e)),r(e)}function $e(e,{ignoreFieldNorm:t=P.ignoreFieldNorm}){e.forEach(e=>{let n=1;e.matches.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),e.score=n})}function et(e,t){let n=e.matches;t.matches=[],j(n)&&n.forEach(e=>{if(!j(e.indices)||!e.indices.length)return;let{indices:n,value:r}=e,i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function tt(e,t){t.score=e.score}function nt(e,t,{includeMatches:n=P.includeMatches,includeScore:r=P.includeScore}={}){let i=[];return n&&i.push(et),r&&i.push(tt),e.map(e=>{let{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach(t=>{t(e,r)}),r})}var K=class{constructor(e,t={},n){this.options={...P,...t},this.options.useExtendedSearch,this._keyStore=new _e(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof F))throw Error(de);this._myIndex=t||De(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){j(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let n=0,r=this._docs.length;n<r;n+=1){let i=this._docs[n];e(i,n)&&(this.removeAt(n),--n,--r,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){let{includeMatches:n,includeScore:r,shouldSort:i,sortFn:a,ignoreFieldNorm:o}=this.options,s=A(e)?A(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return $e(s,{ignoreFieldNorm:o}),i&&s.sort(a),oe(t)&&t>-1&&(s=s.slice(0,t)),nt(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){let t=H(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach(({v:e,i:n,n:i})=>{if(!j(e))return;let{isMatch:a,score:o,indices:s}=t.searchIn(e);a&&r.push({item:e,idx:n,matches:[{score:o,value:e,norm:i,indices:s}]})}),r}_searchLogical(e){let t=Qe(e,this.options),n=(e,t,r)=>{if(!e.children){let{keyId:n,searcher:i}=e,a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return a&&a.length?[{idx:r,item:t,matches:a}]:[]}let i=[];for(let a=0,o=e.children.length;a<o;a+=1){let o=e.children[a],s=n(o,t,r);if(s.length)i.push(...s);else if(e.operator===U.AND)return[]}return i},r=this._myIndex.records,i={},a=[];return r.forEach(({$:e,i:r})=>{if(j(e)){let o=n(t,e,r);o.length&&(i[r]||(i[r]={idx:r,item:e,matches:[]},a.push(i[r])),o.forEach(({matches:e})=>{i[r].matches.push(...e)}))}}),a}_searchObjectList(e){let t=H(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach(({$:e,i:r})=>{if(!j(e))return;let a=[];n.forEach((n,r)=>{a.push(...this._findMatches({key:n,value:e[r],searcher:t}))}),a.length&&i.push({idx:r,item:e,matches:a})}),i}_findMatches({key:e,value:t,searcher:n}){if(!j(t))return[];let r=[];if(k(t))t.forEach(({v:t,i,n:a})=>{if(!j(t))return;let{isMatch:o,score:s,indices:c}=n.searchIn(t);o&&r.push({score:s,key:e,value:t,idx:i,norm:a,indices:c})});else{let{v:i,n:a}=t,{isMatch:o,score:s,indices:c}=n.searchIn(i);o&&r.push({score:s,key:e,value:i,norm:a,indices:c})}return r}};K.version=`7.1.0`,K.createIndex=De,K.parseIndex=Oe,K.config=P,K.parseQuery=Qe,Je(qe);var rt={flex:`col gap-2`,"max-w-90vw":``,"min-w-30vw":``,border:`~ base rounded-xl`,"bg-glass":``},it={key:0,class:`flex items-center`},at=[`title`],ot=[`checked`,`onChange`],st={"text-sm":``},ct=[`title`],lt={key:0,op75:``,"i-ph-selection-slash-duotone":``},ut={key:1,op75:``,"i-ph-selection-plus-duotone":``},dt=l({__name:`SearchPanel`,props:{rules:{},modelValue:{default:()=>({search:``,selected:null})},selectedContainerClass:{default:``}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,a=ne(n,`modelValue`,t);function c(e){let{modelValue:t}=n;return t?.selected?t.selected.includes(e.name):!0}function l(e){let{rules:t}=n;a?.value?.selected||(a.value.selected=t.map(e=>e.name)),a.value.selected.includes(e.name)?a.value.selected=a.value.selected.filter(t=>t!==e.name):a.value.selected.push(e.name),a?.value?.selected.length===n.rules.length&&(a.value.selected=null)}function u(){a?.value?.selected?.length===n.rules.length?a.value.selected=null:a?.value?.selected==null?a.value.selected=[]:a.value.selected=n.rules.map(e=>e.name).filter(e=>!a.value.selected?.includes(e))}function f(){a?.value?.selected?.length===0?a.value.selected=null:a.value.selected=[]}return(t,n)=>(C(),E(`div`,rt,[d(t.$slots,`search`,{},()=>[e.modelValue.search===!1?r(``,!0):(C(),E(`div`,it,[T(D(`input`,{"onUpdate:modelValue":n[0]||=e=>i(a).search=e,p2:``,px4:``,"w-full":``,style:{outline:`none`},placeholder:`Search`},null,512),[[te,i(a).search]]),d(t.$slots,`search-end`)]))]),e.rules.length?(C(),E(`div`,{key:0,class:s(e.selectedContainerClass),flex:`~ gap-2 wrap`,p2:``,border:`t base`},[(C(!0),E(b,null,g(e.rules,e=>(C(),E(`label`,{key:e.name,border:`~ base rounded-md`,px2:``,py1:``,flex:`~ items-center gap-1`,"select-none":``,title:e.description,class:s(c(e)?`bg-active`:`grayscale op50`)},[D(`input`,{type:`checkbox`,mr1:``,checked:c(e),onChange:t=>l(e)},null,40,ot),D(`div`,{class:s(e.icon),"icon-catppuccin":``},null,2),D(`div`,st,o(e.description||e.name),1)],10,at))),128)),D(`button`,{"rounded-md":``,p1:``,flex:`~ items-center gap-1`,"select-none":``,hover:`bg-active`,title:`Reverse Selection`,onClick:u},[...n[1]||=[D(`div`,{op75:``,"i-ph-selection-background-duotone":``},null,-1)]]),D(`button`,{"rounded-md":``,p1:``,flex:`~ items-center gap-1`,"select-none":``,hover:`bg-active`,title:i(a).selected?.length===0?`Select All`:`Unselect All`,onClick:f},[i(a).selected?.length===0?(C(),E(`div`,lt)):(C(),E(`div`,ut))],8,ct)],2)):r(``,!0),d(t.$slots,`default`)]))}}),ft=Object.assign(dt,{__name:`DataSearchPanel`});function pt(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var q;function J(){J.init||(J.init=!0,q=pt()!==-1)}var Y={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){J(),n(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,q&&this.$el.appendChild(e),e.data=`about:blank`,q||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit(`notify`,{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener(`resize`,this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!q&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},mt=_(`data-v-b329ee4c`);h(`data-v-b329ee4c`);var ht={class:`resize-observer`,tabindex:`-1`};c(),Y.render=mt((e,t,n,r,i,a)=>(C(),f(`div`,ht))),Y.__scopeId=`data-v-b329ee4c`,Y.__file=`src/components/ResizeObserver.vue`;function X(e){"@babel/helpers - typeof";return X=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},X(e)}function gt(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function _t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t,n){return t&&_t(e.prototype,t),n&&_t(e,n),e}function yt(e){return bt(e)||xt(e)||St(e)||Ct()}function bt(e){if(Array.isArray(e))return Z(e)}function xt(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function St(e,t){if(e){if(typeof e==`string`)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z(e,t)}}function Z(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ct(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wt(e){return typeof e==`function`?{callback:e}:e}function Tt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=function(o){if(a=[...arguments].slice(1),!(r&&o===i)){var s=n.leading;typeof s==`function`&&(s=s(o,i)),(!r||o!==i)&&s&&e.apply(void 0,[o].concat(yt(a))),i=o,clearTimeout(r),r=setTimeout(function(){e.apply(void 0,[o].concat(yt(a))),r=0},t)}};return o._clear=function(){clearTimeout(r),r=null},o}function Et(e,t){if(e===t)return!0;if(X(e)===`object`){for(var n in e)if(!Et(e[n],t[n]))return!1;return!0}return!1}var Dt=function(){function e(t,n,r){gt(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,r)}return vt(e,[{key:`createObserver`,value:function(e,t){var r=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=wt(e),this.callback=function(e,t){r.options.callback(e,t),e&&r.options.once&&(r.frozen=!0,r.destroyObserver())},this.callback&&this.options.throttle){var i=(this.options.throttleOptions||{}).leading;this.callback=Tt(this.callback,this.options.throttle,{leading:function(e){return i===`both`||i===`visible`&&e||i===`hidden`&&!e}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(e){var t=e[0];if(e.length>1){var n=e.find(function(e){return e.isIntersecting});n&&(t=n)}if(r.callback){var i=t.isIntersecting&&t.intersectionRatio>=r.threshold;if(i===r.oldResult)return;r.oldResult=i,r.callback(i,t)}},this.options.intersection),n(function(){r.observer&&r.observer.observe(r.el)})}}},{key:`destroyObserver`,value:function(){this.observer&&=(this.observer.disconnect(),null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:`threshold`,get:function(){return this.options.intersection&&typeof this.options.intersection.threshold==`number`?this.options.intersection.threshold:0}}]),e}();function Ot(e,t,n){var r=t.value;r&&(typeof IntersectionObserver>`u`?console.warn(`[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill`):e._vue_visibilityState=new Dt(e,r,n))}function kt(e,t,n){var r=t.value,i=t.oldValue;if(!Et(r,i)){var a=e._vue_visibilityState;if(!r){At(e);return}a?a.createObserver(r,n):Ot(e,{value:r},n)}}function At(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var jt={beforeMount:Ot,updated:kt,unmounted:At};function Mt(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get(`*`)||[]).slice().map(function(e){e(t,n)})}}}var Nt={itemsLimit:1e3},Pt=/(auto|scroll)/;function Ft(e,t){return e.parentNode===null?t:Ft(e.parentNode,t.concat([e]))}var Q=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},It=function(e){return Q(e,`overflow`)+Q(e,`overflow-y`)+Q(e,`overflow-x`)},Lt=function(e){return Pt.test(It(e))};function Rt(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Ft(e.parentNode,[]),n=0;n<t.length;n+=1)if(Lt(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function $(e){"@babel/helpers - typeof";return $=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},$(e)}var zt={items:{type:Array,required:!0},keyField:{type:String,default:`id`},direction:{type:String,default:`vertical`,validator:function(e){return[`vertical`,`horizontal`].includes(e)}},listTag:{type:String,default:`div`},itemTag:{type:String,default:`div`}};function Bt(){return this.items.length&&$(this.items[0])!==`object`}var Vt=!1;if(typeof window<`u`){Vt=!1;try{var Ht=Object.defineProperty({},`passive`,{get:function(){Vt=!0}});window.addEventListener(`test`,null,Ht)}catch{}}var Ut=0,Wt={name:`RecycleScroller`,components:{ResizeObserver:Y},directives:{ObserveVisibility:jt},props:{...zt,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:`size`},typeField:{type:String,default:`type`},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:`div`},itemTag:{type:String,default:`div`},listClass:{type:[String,Object,Array],default:``},itemClass:{type:[String,Object,Array],default:``}},emits:[`resize`,`visible`,`hidden`,`update`,`scroll-start`,`scroll-end`],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){let e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,r=this.minItemSize,i=1e4,a=0,o;for(let s=0,c=t.length;s<c;s++)o=t[s][n]||r,o<i&&(i=o),a+=o,e[s]={accumulator:a,size:o};return this.$_computedMinItemSize=i,e}return[]},simpleArray:Bt,itemIndexByKey(){let{keyField:e,items:t}=this,n={};for(let r=0,i=t.length;r<i;r++)n[t[r][e]]=r;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error(`[vue-recycle-scroller] You must provide an itemSize when using gridItems`)},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){let e=this.$_lastUpdateScrollPosition;typeof e==`number`&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,r,i){let a=ee({item:n,position:0,nr:y({id:Ut++,index:t,used:!0,key:r,type:i})});return e.push(a),a},unuseView(e,t=!1){let n=this.$_unusedViews,r=e.nr.type,i=n.get(r);i||(i=[],n.set(r,i)),i.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit(`resize`),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;let e=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;let{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});e(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&e()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit(`visible`),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit(`hidden`))},updateVisibleItems(e,t=!1){let n=this.itemSize,r=this.gridItems||1,i=this.itemSecondarySize||n,a=this.$_computedMinItemSize,o=this.typeField,s=this.simpleArray?null:this.keyField,c=this.items,l=c.length,u=this.sizes,d=this.$_views,f=this.$_unusedViews,p=this.pool,m=this.itemIndexByKey,h,g,_,v,y;if(!l)h=g=v=y=_=0;else if(this.$_prerender)h=v=0,g=y=Math.min(this.prerender,c.length),_=null;else{let e=this.getScroll();if(t){let t=e.start-this.$_lastUpdateScrollPosition;if(t<0&&(t=-t),n===null&&t<a||t<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=e.start;let i=this.buffer;e.start-=i,e.end+=i;let o=0;if(this.$refs.before&&(o=this.$refs.before.scrollHeight,e.start-=o),this.$refs.after){let t=this.$refs.after.scrollHeight;e.end+=t}if(n===null){let t,n=0,r=l-1,i=~~(l/2),a;do a=i,t=u[i].accumulator,t<e.start?n=i:i<l-1&&u[i+1].accumulator>e.start&&(r=i),i=~~((n+r)/2);while(i!==a);for(i<0&&(i=0),h=i,_=u[l-1].accumulator,g=i;g<l&&u[g].accumulator<e.end;g++);for(g===-1?g=c.length-1:(g++,g>l&&(g=l)),v=h;v<l&&o+u[v].accumulator<e.start;v++);for(y=v;y<l&&o+u[y].accumulator<e.end;y++);}else{h=~~(e.start/n*r);let t=h%r;h-=t,g=Math.ceil(e.end/n*r),v=Math.max(0,Math.floor((e.start-o)/n*r)),y=Math.floor((e.end-o)/n*r),h<0&&(h=0),g>l&&(g=l),v<0&&(v=0),y>l&&(y=l),_=Math.ceil(l/r)*n}}g-h>Nt.itemsLimit&&this.itemsLimitError(),this.totalSize=_;let b,x=h<=this.$_endIndex&&g>=this.$_startIndex;if(x)for(let t=0,n=p.length;t<n;t++)b=p[t],b.nr.used&&(e&&(b.nr.index=m[b.item[s]]),(b.nr.index==null||b.nr.index<h||b.nr.index>=g)&&this.unuseView(b));let S=x?null:new Map,C,w,T;for(let e=h;e<g;e++){C=c[e];let t=s?C[s]:C;if(t==null)throw Error(`Key is ${t} on item (keyField is '${s}')`);if(b=d.get(t),!n&&!u[e].size){b&&this.unuseView(b);continue}w=C[o];let a=f.get(w),l=!1;if(!b)x?b=a&&a.length?a.pop():this.addView(p,e,C,t,w):(T=S.get(w)||0,(!a||T>=a.length)&&(b=this.addView(p,e,C,t,w),this.unuseView(b,!0),a=f.get(w)),b=a[T],S.set(w,T+1)),d.delete(b.nr.key),b.nr.used=!0,b.nr.index=e,b.nr.key=t,b.nr.type=w,d.set(t,b),l=!0;else if(!b.nr.used&&(b.nr.used=!0,l=!0,a)){let e=a.indexOf(b);e!==-1&&a.splice(e,1)}b.item=C,l&&(e===c.length-1&&this.$emit(`scroll-end`),e===0&&this.$emit(`scroll-start`)),n===null?(b.position=u[e-1].accumulator,b.offset=0):(b.position=Math.floor(e/r)*n,b.offset=e%r*i)}return this.$_startIndex=h,this.$_endIndex=g,this.emitUpdate&&this.$emit(`update`,h,g,v,y),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:x}},getListenerTarget(){let e=Rt(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){let{$el:e,direction:t}=this,n=t===`vertical`,r;if(this.pageMode){let t=e.getBoundingClientRect(),i=n?t.height:t.width,a=-(n?t.top:t.left),o=n?window.innerHeight:window.innerWidth;a<0&&(o+=a,a=0),a+o>i&&(o=i-a),r={start:a,end:a+o}}else r=n?{start:e.scrollTop,end:e.scrollTop+e.clientHeight}:{start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return r},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener(`scroll`,this.handleScroll,Vt?{passive:!0}:!1),this.listenerTarget.addEventListener(`resize`,this.handleResize)},removeListeners(){this.listenerTarget&&=(this.listenerTarget.removeEventListener(`scroll`,this.handleScroll),this.listenerTarget.removeEventListener(`resize`,this.handleResize),null)},scrollToItem(e){let t,n=this.gridItems||1;t=this.itemSize===null?e>0?this.sizes[e-1].accumulator:0:Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){let t=this.direction===`vertical`?{scroll:`scrollTop`,start:`top`}:{scroll:`scrollLeft`,start:`left`},n,r,i;if(this.pageMode){let a=Rt(this.$el),o=a.tagName===`HTML`?0:a[t.scroll],s=a.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[t.start]-s[t.start];n=a,r=t.scroll,i=e+o+c}else n=this.$el,r=t.scroll,i=e;n[r]=i},itemsLimitError(){throw setTimeout(()=>{console.log(`It seems the scroller element isn't scrolling, so it tries to render all the items at once.`,`Scroller:`,this.$el),console.log(`Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.`)}),Error(`Rendered items limit reached`)},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}},Gt={key:0,ref:`before`,class:`vue-recycle-scroller__slot`},Kt={key:1,ref:`after`,class:`vue-recycle-scroller__slot`};function qt(n,i,a,o,c,l){let u=e(`ResizeObserver`),p=v(`observe-visibility`);return T((C(),E(`div`,{class:s([`vue-recycle-scroller`,{ready:c.ready,"page-mode":a.pageMode,[`direction-${n.direction}`]:!0}]),onScrollPassive:i[0]||=(...e)=>l.handleScroll&&l.handleScroll(...e)},[n.$slots.before?(C(),E(`div`,Gt,[d(n.$slots,`before`)],512)):r(`v-if`,!0),(C(),f(w(a.listTag),{ref:`wrapper`,style:m({[n.direction===`vertical`?`minHeight`:`minWidth`]:c.totalSize+`px`}),class:s([`vue-recycle-scroller__item-wrapper`,a.listClass])},{default:x(()=>[(C(!0),E(b,null,g(c.pool,e=>(C(),f(w(a.itemTag),O({key:e.nr.id,style:c.ready?{transform:`translate${n.direction===`vertical`?`Y`:`X`}(${e.position}px) translate${n.direction===`vertical`?`X`:`Y`}(${e.offset}px)`,width:a.gridItems?`${n.direction===`vertical`&&a.itemSecondarySize||a.itemSize}px`:void 0,height:a.gridItems?`${n.direction===`horizontal`&&a.itemSecondarySize||a.itemSize}px`:void 0}:null,class:[`vue-recycle-scroller__item-view`,[a.itemClass,{hover:!a.skipHover&&c.hoverKey===e.nr.key}]]},S(a.skipHover?{}:{mouseenter:()=>{c.hoverKey=e.nr.key},mouseleave:()=>{c.hoverKey=null}})),{default:x(()=>[d(n.$slots,`default`,{item:e.item,index:e.nr.index,active:e.nr.used})]),_:2},1040,[`style`,`class`]))),128)),d(n.$slots,`empty`)]),_:3},8,[`style`,`class`])),n.$slots.after?(C(),E(`div`,Kt,[d(n.$slots,`after`)],512)):r(`v-if`,!0),t(u,{onNotify:l.handleResize},null,8,[`onNotify`])],34)),[[p,l.handleVisibilityChange]])}Wt.render=qt,Wt.__file=`src/components/RecycleScroller.vue`;var Jt={name:`DynamicScroller`,components:{RecycleScroller:Wt},provide(){return typeof ResizeObserver<`u`&&(this.$_resizeObserver=new ResizeObserver(e=>{requestAnimationFrame(()=>{if(Array.isArray(e)){for(let t of e)if(t.target&&t.target.$_vs_onResize){let e,n;if(t.borderBoxSize){let r=t.borderBoxSize[0];e=r.inlineSize,n=r.blockSize}else e=t.contentRect.width,n=t.contentRect.height;t.target.$_vs_onResize(t.target.$_vs_id,e,n)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...zt,minItemSize:{type:[Number,String],required:!0}},emits:[`resize`,`visible`],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:Bt,itemsWithSize(){let e=[],{items:t,keyField:n,simpleArray:r}=this,i=this.vscrollData.sizes,a=t.length;for(let o=0;o<a;o++){let a=t[o],s=r?o:a[n],c=i[s];c===void 0&&!this.$_undefinedMap[s]&&(c=0),e.push({item:a,id:s,size:c})}return e}},watch:{items(){this.forceUpdate()},simpleArray:{handler(e){this.vscrollData.simpleArray=e},immediate:!0},direction(e){this.forceUpdate(!0)},itemsWithSize(e,t){let n=this.$el.scrollTop,r=0,i=0,a=Math.min(e.length,t.length);for(let o=0;o<a&&!(r>=n);o++)r+=t[o].size||this.minItemSize,i+=e[o].size||this.minItemSize;let o=i-r;o!==0&&(this.$el.scrollTop+=o)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=Mt()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit(`resize`)},onScrollerVisible(){this.$_events.emit(`vscroll:update`,{force:!1}),this.$emit(`visible`)},forceUpdate(e=!1){(e||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit(`vscroll:update`,{force:!0})},scrollToItem(e){let t=this.$refs.scroller;t&&t.scrollToItem(e)},getItemSize(e,t=void 0){let n=this.simpleArray?t??this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;let e=this.$el;this.$nextTick(()=>{e.scrollTop=e.scrollHeight+5e3;let t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function Yt(t,n,r,i,a,o){let s=e(`RecycleScroller`);return C(),f(s,O({ref:`scroller`,items:o.itemsWithSize,"min-item-size":r.minItemSize,direction:t.direction,"key-field":`id`,"list-tag":t.listTag,"item-tag":t.itemTag},t.$attrs,{onResize:o.onScrollerResize,onVisible:o.onScrollerVisible}),{default:x(({item:e,index:n,active:r})=>[d(t.$slots,`default`,p(u({item:e.item,index:n,active:r,itemWithSize:e})))]),before:x(()=>[d(t.$slots,`before`)]),after:x(()=>[d(t.$slots,`after`)]),empty:x(()=>[d(t.$slots,`empty`)]),_:3},16,[`items`,`min-item-size`,`direction`,`list-tag`,`item-tag`,`onResize`,`onVisible`])}Jt.render=Yt,Jt.__file=`src/components/DynamicScroller.vue`;var Xt={name:`DynamicScrollerItem`,inject:[`vscrollData`,`vscrollParent`,`vscrollResizeObserver`],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:`div`}},emits:[`resize`],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:`updateWatchData`,id(e,t){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){let n=this.vscrollData.sizes[t],r=this.vscrollData.sizes[e];n!=null&&n!==r&&this.applySize(n)}},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(let e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on(`vscroll:update`,this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off(`vscroll:update`,this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch(`item`,()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&=(this.$_watchData(),null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||e||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){let e=this.$el.offsetWidth,t=this.$el.offsetHeight;this.applyWidthHeight(e,t)}this.$_pendingSizeUpdate=null})},applyWidthHeight(e,t){let n=~~(this.vscrollParent.direction===`vertical`?t:e);n&&this.size!==n&&this.applySize(n)},applySize(e){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=e,this.emitResize&&this.$emit(`resize`,this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||=(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,!0))},unobserveSize(){this.vscrollResizeObserver&&(this.$_sizeObserved&&=(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,!1))},onResize(e,t,n){this.id===e&&this.applyWidthHeight(t,n)}},render(){return a(this.tag,this.$slots.default())}};Xt.__file=`src/components/DynamicScrollerItem.vue`;var Zt=l({__name:`DataVirtualList`,props:{items:{},keyProp:{}},setup(e){return(n,r)=>(C(),f(i(Jt),{items:e.items,"min-item-size":30,"key-field":e.keyProp,"page-mode":``},{default:x(({item:r,active:a,index:o})=>[t(i(Xt),{item:r,active:a,"data-index":o},{default:x(()=>[d(n.$slots,`default`,O({key:r[e.keyProp]},{item:r,index:o,active:a}))]),_:2},1032,[`item`,`active`,`data-index`])]),_:3},8,[`items`,`key-field`]))}});export{ft as n,K as r,Zt as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,C as t,Et as n,M as r,b as i,h as a,lt as o,q as s,w as c,x as l}from"./CyUS7GqK.js";import{r as u}from"./jJjSdHHs.js";import{n as d,t as f}from"./CslYnwdN.js";var p={"text-xs":``,"font-mono":``,flex:`~ items-center gap-3`,ml2:``},m={flex:`~ gap-1 items-center`},h=r({__name:`BuildMetrics`,props:{metrics:{}},setup(r){let h=r,g=i(()=>{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}}),_=i(()=>(h.metrics?.transforms)?.[0]?.source_code_size),v=i(()=>(h.metrics?.transforms.filter(e=>e.transformed_code_size)).at(-1)?.transformed_code_size);return(r,i)=>{let h=u;return s(),c(`div`,p,[e(f,{duration:g.value.resolveIds,flex:`~ gap-1 items-center`,title:`Resolve Id hooks cost: ${n(d)(g.value.resolveIds,!0)}`},{default:o(()=>[...i[0]||=[l(`span`,{"i-ph-magnifying-glass-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),e(f,{duration:g.value.loads,flex:`~ gap-1 items-center`,title:`Load hooks cost: ${n(d)(g.value.loads,!0)}`},{default:o(()=>[...i[1]||=[l(`span`,{"i-ph-upload-simple-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),e(f,{duration:g.value.transforms,flex:`~ gap-1 items-center`,title:`Transform hooks cost: ${n(d)(g.value.transforms,!0)}`},{default:o(()=>[...i[2]||=[l(`span`,{"i-ph-magic-wand-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),i[6]||=l(`span`,{op40:``},`|`,-1),e(f,{duration:g.value.total,flex:`~ gap-1 items-center`,title:`Total build cost: ${n(d)(g.value.total,!0)}`},{default:o(()=>[...i[3]||=[l(`span`,{"i-ph-clock-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),_.value&&v.value?(s(),c(a,{key:0},[i[5]||=l(`span`,{op40:``},`|`,-1),l(`div`,m,[e(h,{title:`Source code size`,bytes:_.value},null,8,[`bytes`]),i[4]||=l(`span`,{"i-ph-arrow-right-duotone":``,op50:``},null,-1),e(h,{title:`Transformed code size`,bytes:v.value},null,8,[`bytes`])])],64)):t(``,!0)])}}}),g=Object.assign(h,{__name:`ModulesBuildMetrics`});export{g as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-recycle-scroller__slot{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-recycle-scroller__item-wrapper{-webkit-box-flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex:1;flex:1;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{left:0;position:absolute;top:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{background-color:transparent;border:none;opacity:0}.resize-observer[data-v-b329ee4c],.resize-observer[data-v-b329ee4c] object{display:block;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;width:100%;z-index:-1}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as e,Q as t,at as n,q as r,st as i,w as a,x as o}from"./CyUS7GqK.js";var s={class:`px4`,flex:`~ col gap2`},c=e({__name:`Treemap`,props:{graph:{},selected:{}},emits:[`select`],setup(e,{emit:c}){let l=e,u=c,d=n(`el`);return i(()=>d.value?.append(l.graph.el)),(n,i)=>(r(),a(`div`,s,[t(n.$slots,`default`,{selected:e.selected,options:e.graph.options,onSelect:i[0]||=e=>u(`select`,e)},()=>[i[1]||=o(`div`,{border:`b base`,py2:``,"min-h-10":``},null,-1)]),o(`div`,{ref_key:`el`,ref:d},null,512)]))}}),l=Object.assign(c,{__name:`ChartTreemap`});export{l as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./D0PBHtPK.js";Symbol.toStringTag;var t=class{_mapTree;constructor(e){this.length=e,this._mapTree=new Map}_getLastMap(e){let t=this._mapTree;for(let n of e.slice(0,-1))t.has(n)||t.set(n,new Map),t=t.get(n);return t}set(e,t){if(e.length!==this.length)throw Error(`Expect tuple of length ${this.length}, got ${e.length}`);return this._getLastMap(e).set(e.at(-1),t),this}get(e){return this._getLastMap(e).get(e.at(-1))}clear(){this._mapTree.clear()}delete(e){return this._getLastMap(e).delete(e.at(-1))}get size(){return this._mapTree.size}*_traverseMap(){function*e(t,n,r){if(r===0)yield{keys:n,map:t};else for(let[i,a]of t.entries())yield*e(a,[...n,i],r-1)}yield*e(this._mapTree,[],this.length)}},n=class{_lengthMap;constructor(){this._lengthMap=new Map}get(e){let t=e.length;return this._lengthMap.get(t)?.get(e)}set(e,n){let r=e.length,i=this._lengthMap.get(r);return i||(i=new t(r),this._lengthMap.set(r,i)),i.set(e,n),this}delete(e){let t=e.length;return this._lengthMap.get(t)?.delete(e)??!1}clear(){this._lengthMap.clear()}};function r(e){let t=new n,r=function(...n){let r=t.get(n);return r||(r=e(...n),t.set(n,r),r)};return r.cache=t,r}var i=[{match:/[\\/]node_modules[\\/]/i,name:`node_modules`,description:`Node Modules`,icon:`i-catppuccin-npm`},{match:/virtual:|^\0/,name:`virtual`,description:`Virtual`,icon:`i-catppuccin-symlink`},{match:/^@?[\w-]+\/?/,name:`package`,description:`Package`,icon:`i-catppuccin-java-class-abstract`},{match:/\.vue$/i,name:`vue`,description:`Vue`,icon:`i-catppuccin-vue`},{match:/\.[cm]?[tj]sx$/i,name:`jsx`,description:`JavaScript React`,icon:`i-catppuccin-javascript-react`},{match:/\.[cm]?ts$/i,name:`ts`,description:`TypeScript`,icon:`i-catppuccin-typescript`},{match:/\.[cm]?js$/i,name:`js`,description:`JavaScript`,icon:`i-catppuccin-javascript`},{match:/\.svelte$/i,name:`svelte`,description:`Svelte`,icon:`i-catppuccin-svelte`},{match:/\.mdx$/i,name:`mdx`,description:`MDX`,icon:`i-catppuccin-mdx`},{match:/\.md$/i,name:`md`,description:`Markdown`,icon:`i-catppuccin-markdown`},{match:/\.astro$/i,name:`astro`,description:`Astro`,icon:`i-catppuccin-astro`},{match:/\.angular$/i,name:`angular`,description:`Angular`,icon:`i-catppuccin-angular`},{match:/\.html?$/i,name:`html`,description:`HTML`,icon:`i-catppuccin-html`},{match:/\.(css|scss|less|postcss)$/i,name:`css`,description:`CSS`,icon:`i-catppuccin-css`},{match:/\.json[c5]?$/i,name:`json`,description:`JSON`,icon:`i-catppuccin-json`},{match:/\.(yaml|yml)$/i,name:`yaml`,description:`YAML`,icon:`i-catppuccin-yaml`},{match:/\.toml$/i,name:`toml`,description:`TOML`,icon:`i-catppuccin-toml`},{match:/\.svg$/i,name:`svg`,description:`SVG`,icon:`i-catppuccin-svg`}],a=[{match:/^(replace|define|alias)$/,name:`rollup`,description:`Rollup`,icon:`i-catppuccin-rollup`},{match:/^vite:/i,name:`vite`,description:`Vite`,icon:`i-catppuccin-vite`},{match:/^unocss:/i,name:`unocss`,description:`Unocss`,icon:`i-catppuccin-unocss`},{match:/^nuxt:/i,name:`nuxt`,description:`Nuxt`,icon:`i-catppuccin-nuxt`},{match:/^builtin:/i,name:`builtin`,description:`Builtin`,icon:`i-catppuccin-folder-prisma`}],o={name:`file`,match:/.*/,description:`File`,icon:`i-catppuccin-file`},s={name:`plugin`,match:/.*/,description:`User Plugins`,icon:`i-catppuccin-folder-plugins`};function c(e){return i.find(t=>t.name===e)??o}var l=r(e=>{e=e.replace(/(\?|&)v=[^&]*/,`$1`).replace(/\?$/,``);for(let t of i)if(t.match.test(e))return t;return o}),u=r(e=>{for(let t of a)if(t.match.test(e))return t;return s});function d(e,t=1){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return f(n%360,t)}function f(t,n=1){return`hsla(${t}, ${e.value?50:65}%, ${e.value?60:40}%, ${n})`}var p={error:0,client:60,bailout:-1,ssr:270,vite:250,vite1:240,vite2:120,virtual:160,nuxt:140};function m(e,t=1){if(e=e.replace(/[^a-z]+/gi,``).toLowerCase(),e in p){let n=p[e];return typeof n==`number`?f(n,t):t===1?n:n+Math.floor(t*255).toString(16).padStart(2,`0`)}return d(e,t)}export{i as a,c,s as i,u as l,d as n,a as o,f as r,l as s,m as t,r as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,C as t,Et as n,Gt as r,M as i,Q as a,R as o,S as s,Z as c,b as l,h as u,k as d,lt as f,q as p,rt as m,tt as h,w as g,x as _}from"./CyUS7GqK.js";import{C as v}from"./Bc8dubgH.js";import{c as y}from"./D0PBHtPK.js";import{r as b}from"./CeUdh6JR.js";import{n as x}from"#entry";import{t as S}from"./B8Pee7C0.js";import{r as C,t as w}from"./Cy7pLEz3.js";import{r as T}from"./jJjSdHHs.js";import{t as E}from"./C2GH2ak5.js";var D=[`title`],O={key:0,flex:`~ items-center gap-2`},k={op50:``,"font-mono":``},A=[`title`],j=[`title`],M=i({__name:`BaseInfo`,props:{chunk:{},link:{type:Boolean,default:!1},basic:{type:Boolean,default:!1}},setup(i){let o=i,c=v(),u=l(()=>Array.isArray(o.chunk.imports)?o.chunk.imports.length:o.chunk.imports),m=l(()=>Array.isArray(o.chunk.modules)?o.chunk.modules.length:o.chunk.modules);return(o,l)=>(p(),s(h(i.link?n(S):`div`),{to:i.link?typeof i.link==`string`?i.link:{path:n(c).path,query:{chunk:i.chunk.chunk_id}}:void 0,flex:`~ gap-3 items-center`},{default:f(()=>[_(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${i.chunk.chunk_id}`},[a(o.$slots,`icon`,{},()=>[l[0]||=_(`div`,{"i-ph-shapes-duotone":``},null,-1)]),_(`div`,null,r(i.chunk.name||`[unnamed]`),1),e(C,{text:i.chunk.reason},null,8,[`text`]),a(o.$slots,`left-after`)],8,D),l[3]||=_(`div`,{"flex-auto":``},null,-1),i.basic?t(``,!0):(p(),g(`div`,O,[_(`span`,k,`#`+r(i.chunk.chunk_id),1),_(`div`,{flex:`~ gap-1 items-center`,title:`${u.value} imports`},[l[1]||=_(`div`,{"i-ph-file-arrow-up-duotone":``},null,-1),d(` `+r(u.value),1)],8,A),_(`div`,{flex:`~ gap-1 items-center`,title:`${m.value} modules`},[l[2]||=_(`div`,{"i-ph-package-duotone":``},null,-1),d(` `+r(m.value),1)],8,j)])),a(o.$slots,`default`)]),_:3},8,[`to`]))}}),N=Object.assign(M,{__name:`ChunksBaseInfo`}),P={flex:`~ gap-2 items-center`},F=i({__name:`BaseInfo`,props:{asset:{}},setup(t){return(n,i)=>{let a=T;return p(),g(`div`,P,[i[0]||=_(`div`,{"i-catppuccin-java-class-abstract":``},null,-1),_(`div`,null,r(t.asset.filename),1),e(a,{bytes:t.asset.size,"text-sm":``},null,8,[`bytes`]),e(C,{text:t.asset.type},null,8,[`text`])])}}}),I=Object.assign(F,{__name:`AssetsBaseInfo`}),L={relative:``},R={key:0,"pointer-events-none":``,absolute:``,"left-0":``,"right-0":``,"bottom-0":``,"bg-gradient-more":``,"h-30":``,flex:`~ justify-center`},z=i({__name:`ExpandableContainer`,props:o({list:{}},{count:{default:20},countModifiers:{}}),emits:[`update:count`],setup(r){let i=r,o=m(r,`count`),s=o.value,c=l(()=>i.list.slice(0,o.value));return(l,u)=>(p(),g(`div`,L,[a(l.$slots,`default`,{items:c.value}),r.list.length>o.value?(p(),g(`div`,R,[_(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:u[0]||=e=>o.value=Math.round(o.value+n(s))},[u[2]||=_(`div`,{"i-ri:arrow-down-double-line":``},null,-1),u[3]||=_(`span`,null,`More`,-1),e(E,{prefix:`+`,number:Math.min(Math.round(n(s)),i.list.length-o.value),"rounded-full":``,"text-sm":``},null,8,[`number`])]),_(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:u[1]||=e=>o.value=i.list.length},[u[4]||=_(`div`,{"i-ph-arrows-out-line-vertical-duotone":``},null,-1),u[5]||=_(`span`,null,`All`,-1),e(E,{number:i.list.length,"rounded-full":``,"text-sm":``},null,8,[`number`])])])):t(``,!0)]))}}),B=Object.assign(z,{__name:`DisplayExpandableContainer`}),V={key:0,"i-ph-file-duotone":``},H={key:1,"i-ph-lightning-duotone":``},U=i({__name:`Imports`,props:{imports:{}},setup(n){return(r,i)=>{let a=N,o=B;return p(),s(o,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:n.imports},{default:f(({items:n})=>[(p(!0),g(u,null,c(n,(n,r)=>(p(),g(u,{key:r},[n?(p(),s(a,{key:0,chunk:n,link:``,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},{icon:f(()=>[n.kind===`import-statement`?(p(),g(`div`,V)):t(``,!0),n.kind===`dynamic-import`?(p(),g(`div`,H)):t(``,!0)]),"left-after":f(()=>[e(C,{text:n.kind},null,8,[`text`])]),_:2},1032,[`chunk`])):t(``,!0)],64))),128))]),_:1},8,[`list`])}}}),W=Object.assign(U,{__name:`ChunksImports`}),G={flex:`~ col gap-3`},K={key:1,"text-sm":``,op50:``,flex:`~ items-center`,title:`Total size of imports`},q={open:`true`},J={open:`true`},Y={op50:``},X={key:0,open:`true`},Z={op50:``},Q={key:1,open:`true`},$={op50:``},ee=i({__name:`ChunkDetails`,props:{chunk:{},session:{},showDetails:{type:Boolean,default:!0},chunks:{}},setup(i){let o=i,m=l(()=>{let e=new Map;for(let t of o.session.modulesList)e.set(t.id,t);return e});function h(e){return e.reduce((e,t)=>{let n=m.value.get(t);return!n||!n.buildMetrics?.transforms?.length?e:e+n.buildMetrics.transforms.at(-1).transformed_code_size},0)}let E=l(()=>h(o.chunk.modules)),D=v(),O=b(),{state:k,isLoading:A}=y(async()=>{if(!o.chunks)return await O.value.call(`vite:rolldown:get-chunks-graph`,{session:o.session.id})},null),j=l(()=>o.chunks||k.value),M=l(()=>o.chunk.imports.map(e=>{let t=j.value?.find(t=>t.chunk_id===e.chunk_id);return{...e,name:t?.name||`[unnamed]`,reason:t?.reason||`common`,imports:t?.imports.length||0,modules:t?.modules.length||0,size:h(t?.modules||[])}})),P=l(()=>j.value?.filter(e=>e.imports.some(e=>e.chunk_id===o.chunk.chunk_id)).map(e=>({...e.imports.find(e=>e.chunk_id===o.chunk.chunk_id),chunk_id:e.chunk_id,name:e.name||`[unnamed]`,reason:e.reason||`common`,imports:e.imports.length||0,modules:e.modules.length||0}))||[]);return(o,l)=>{let m=T,h=N,v=I,y=S,b=w,O=B,k=x,j=W;return p(),g(`div`,G,[e(h,{chunk:i.chunk},{"left-after":f(()=>[i.chunk.is_initial?(p(),s(C,{key:0,text:`initial`})):t(``,!0),e(m,{bytes:E.value,"text-sm":``,title:`Chunk size`},null,8,[`bytes`]),M.value.length?(p(),g(`div`,K,[l[0]||=d(` (`,-1),e(m,{bytes:M.value.reduce((e,t)=>e+t.size,0)},null,8,[`bytes`]),l[1]||=d(`) `,-1)])):t(``,!0)]),default:f(()=>[a(o.$slots,`default`)]),_:3},8,[`chunk`]),i.showDetails?(p(),g(u,{key:0},[_(`details`,q,[l[2]||=_(`summary`,{op50:``},` Assets `,-1),e(y,{border:`~ base rounded-lg`,px2:``,mt2:``,py1:``,"min-w-fit":``,flex:`~`,to:{path:n(D).path,query:{asset:i.chunk.asset?.filename}}},{default:f(()=>[e(v,{asset:{...i.chunk.asset,type:`asset`}},null,8,[`asset`])]),_:1},8,[`to`])]),_(`details`,J,[_(`summary`,Y,[_(`span`,null,`Modules (`+r(i.chunk.modules.length)+`)`,1)]),e(O,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:i.chunk.modules},{default:f(({items:e})=>[(p(!0),g(u,null,c(e,e=>(p(),s(b,{id:e,key:e,session:i.session,link:!0,minimal:!0,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},null,8,[`id`,`session`]))),128))]),_:1},8,[`list`])]),n(A)?(p(),s(k,{key:0})):(p(),g(u,{key:1},[i.chunk.imports.length?(p(),g(`details`,X,[_(`summary`,Z,[_(`span`,null,`Imports (`+r(i.chunk.imports.length)+`)`,1)]),e(j,{imports:M.value},null,8,[`imports`])])):t(``,!0),P.value.length?(p(),g(`details`,Q,[_(`summary`,$,[_(`span`,null,`Importers (`+r(P.value.length)+`)`,1)]),e(j,{imports:P.value},null,8,[`imports`])])):t(``,!0)],64))],64)):t(``,!0)])}}}),te=Object.assign(ee,{__name:`DataChunkDetails`});export{N as i,B as n,I as r,te as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{B as e,C as t,Et as n,Gt as r,K as i,M as a,Q as o,S as s,St as c,Wt as l,Z as u,at as d,b as f,bt as p,h as m,ot as h,q as g,v as _,w as v,wt as y,x as b}from"./CyUS7GqK.js";import{a as ee,c as x,d as S,f as C,i as te,l as w,o as ne,r as re,u as ie}from"./BrE3R8vW.js";import{t as T}from"./D0PBHtPK.js";import{t as E}from"./D04G8HHr.js";import{t as ae}from"./jJjSdHHs.js";function D(){return typeof window<`u`}function O(e){return oe(e)?(e.nodeName||``).toLowerCase():`#document`}function k(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function A(e){return((oe(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function oe(e){return D()?e instanceof Node||e instanceof k(e).Node:!1}function j(e){return D()?e instanceof Element||e instanceof k(e).Element:!1}function M(e){return D()?e instanceof HTMLElement||e instanceof k(e).HTMLElement:!1}function se(e){return!D()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof k(e).ShadowRoot}function N(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=R(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ce(e){return/^(table|td|th)$/.test(O(e))}function P(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var le=/transform|translate|scale|rotate|perspective|filter/,ue=/paint|layout|strict|content/,F=e=>!!e&&e!==`none`,de;function I(e){let t=j(e)?R(e):e;return F(t.transform)||F(t.translate)||F(t.scale)||F(t.rotate)||F(t.perspective)||!pe()&&(F(t.backdropFilter)||F(t.filter))||le.test(t.willChange||``)||ue.test(t.contain||``)}function fe(e){let t=B(e);for(;M(t)&&!L(t);){if(I(t))return t;if(P(t))return null;t=B(t)}return null}function pe(){return de??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),de}function L(e){return/^(html|body|#document)$/.test(O(e))}function R(e){return k(e).getComputedStyle(e)}function z(e){return j(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function B(e){if(O(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||se(e)&&e.host||A(e);return se(t)?t.host:t}function me(e){let t=B(e);return L(t)?e.ownerDocument?e.ownerDocument.body:e.body:M(t)&&N(t)?t:me(t)}function he(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=me(e),i=r===e.ownerDocument?.body,a=k(r);if(i){let e=ge(a);return t.concat(a,a.visualViewport||[],N(r)?r:[],e&&n?he(e):[])}else return t.concat(r,he(r,[],n))}function ge(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _e(e){let t=R(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=M(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=C(n)!==a||C(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ve(e){return j(e)?e:e.contextElement}function V(e){let t=ve(e);if(!M(t))return x(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=_e(t),o=(a?C(n.width):n.width)/r,s=(a?C(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var ye=x(0);function be(e){let t=k(e);return!pe()||!t.visualViewport?ye:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==k(e)?!1:t}function H(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ve(e),o=x(1);t&&(r?j(r)&&(o=V(r)):o=V(e));let s=xe(a,n,r)?be(a):x(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=k(a),t=r&&j(r)?k(r):r,n=e,i=ge(n);for(;i&&r&&t!==n;){let e=V(i),t=i.getBoundingClientRect(),r=R(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=k(i),i=ge(n)}}return S({width:u,height:d,x:c,y:l})}function U(e,t){let n=z(e).scrollLeft;return t?t.left+n:H(A(e)).left+n}function Se(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-U(e,n),y:n.top+t.scrollTop}}function Ce(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=A(r),s=t?P(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=x(1),u=x(0),d=M(r);if((d||!d&&!a)&&((O(r)!==`body`||N(o))&&(c=z(r)),d)){let e=H(r);l=V(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Se(o,c):x(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function we(e){return Array.from(e.getClientRects())}function Te(e){let t=A(e),n=z(e),r=e.ownerDocument.body,i=w(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=w(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+U(e),s=-n.scrollTop;return R(r).direction===`rtl`&&(o+=w(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Ee=25;function De(e,t){let n=k(e),r=A(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=pe();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=U(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Ee&&(a-=o)}else l<=Ee&&(a+=l);return{width:a,height:o,x:s,y:c}}function Oe(e,t){let n=H(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=M(e)?V(e):x(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ke(e,t,n){let r;if(t===`viewport`)r=De(e,n);else if(t===`document`)r=Te(A(e));else if(j(t))r=Oe(t,n);else{let n=be(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return S(r)}function Ae(e,t){let n=B(e);return n===t||!j(n)||L(n)?!1:R(n).position===`fixed`||Ae(n,t)}function je(e,t){let n=t.get(e);if(n)return n;let r=he(e,[],!1).filter(e=>j(e)&&O(e)!==`body`),i=null,a=R(e).position===`fixed`,o=a?B(e):e;for(;j(o)&&!L(o);){let t=R(o),n=I(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||N(o)&&!n&&Ae(e,o))?r=r.filter(e=>e!==o):i=t,o=B(o)}return t.set(e,r),r}function Me(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?P(t)?[]:je(t,this._c):[].concat(n),r],o=ke(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ke(t,a[e],i);s=w(n.top,s),c=ie(n.right,c),l=ie(n.bottom,l),u=w(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ne(e){let{width:t,height:n}=_e(e);return{width:t,height:n}}function Pe(e,t,n){let r=M(t),i=A(t),a=n===`fixed`,o=H(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=x(0);function l(){c.x=U(i)}if(r||!r&&!a)if((O(t)!==`body`||N(i))&&(s=z(t)),r){let e=H(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Se(i,s):x(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Fe(e){return R(e).position===`static`}function Ie(e,t){if(!M(e)||R(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return A(e)===n&&(n=n.ownerDocument.body),n}function Le(e,t){let n=k(e);if(P(e))return n;if(!M(e)){let t=B(e);for(;t&&!L(t);){if(j(t)&&!Fe(t))return t;t=B(t)}return n}let r=Ie(e,t);for(;r&&ce(r)&&Fe(r);)r=Ie(r,t);return r&&L(r)&&Fe(r)&&!I(r)?n:r||fe(e)||n}var Re=async function(e){let t=this.getOffsetParent||Le,n=this.getDimensions,r=await n(e.floating);return{reference:Pe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ze(e){return R(e).direction===`rtl`}var Be={convertOffsetParentRelativeRectToViewportRelativeRect:Ce,getDocumentElement:A,getClippingRect:Me,getOffsetParent:Le,getElementRects:Re,getClientRects:we,getDimensions:Ne,getScale:V,isElement:j,isRTL:ze},Ve=ee,He=ne,Ue=te,We=(e,t,n)=>{let r=new Map,i={platform:Be,...n},a={...i.platform,_c:r};return re(e,t,{...i,platform:a})},Ge=a({__name:`GraphHoverView`,props:{hoverX:{},hoverY:{}},setup(e){let{hoverX:t,hoverY:n}=y(e),r=d(`hoverElement`),i=p(0),a=p(0);return h([t,n],([e,t])=>{We({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e,right:e,top:t,bottom:t}}},r.value,{placement:`right-start`,middleware:[Ue(),He(),Ve({mainAxis:8,alignmentAxis:8})]}).then(({x:e,y:t})=>{i.value=e,a.value=t})}),(e,t)=>(g(),s(_,{to:`body`},[b(`div`,{ref_key:`hoverElement`,ref:r,fixed:``,"z-panel-content":``,"pointer-events-none":``,style:l({left:`${i.value}px`,top:`${a.value}px`})},[o(e.$slots,`default`)],4)]))}}),Ke=Object.assign(Ge,{__name:`DisplayGraphHoverView`});function qe(e,t=1,n=1){let r=(.6+.4*Math.max(0,Math.cos(e)))*t,i=(.5+.2*Math.max(0,Math.cos(e+Math.PI*2/3)))*n;return`hsl(${e*180/Math.PI}deg, ${Math.round(100*r)}%, ${Math.round(100*i)}%)`}var Je,Ye,Xe,W,G,K=1,Ze;function Qe(e,t,n,r,i){if(!Array.isArray(e))return e;let a=window.devicePixelRatio||1;if(Je!==t||Ye!==a||Xe!==i){let n=Math.round(64*a)/64;K=i,K=Math.log2(K),K-=Math.floor(K);let r=K,o=Math.min(1,8*r);K=2**K;let s=8*Math.SQRT2/K;Je=t,Ye=a,Xe=i,W||=document.createElement(`canvas`),G||=W.getContext(`2d`),W.width=W.height=Math.round(64*n),G.scale(n,n),G.fillStyle=e[0],G.fillRect(0,0,64,64),G.globalAlpha=.25,G.fillStyle=e[1],G.fillRect(0,0,64,64),G.globalAlpha=.67,G.strokeStyle=e[1],G.beginPath();for(let e=0;e<=64;e+=16)G.moveTo(e-32,e+32),G.lineTo(e+32,e-32);if(G.lineWidth=s*(1-(o-r)/2),G.stroke(),o+r>0){G.beginPath();for(let e=8;e<64;e+=16)G.moveTo(e-32,e+32),G.lineTo(e+32,e-32);G.lineWidth=s*(o+r)/2,G.stroke()}Ze=t.createPattern(W,`repeat`),K/=n}return n/=64*K*a,n-=Math.floor(n),n*=64*K*a,Ze.setTransform(new DOMMatrix([K,0,0,K,n,r])),Ze}function $e(e){return Array.isArray(e)?`url('data:image/svg+xml,<svg width="26" height="26" xmlns="http://www.w3.org/2000/svg"><rect width="26" height="26" fill="${e[0]}"/><rect width="26" height="26" fill="${e[1]}" fill-opacity="25%"/><path d="M22.5 -3.5L-3.5 22.5M35.5 9.5L9.5 35.5" stroke="${e[1]}" stroke-opacity="67%" stroke-width="9.19239"/></svg>')`:e}function et(e){return t=>t.id&&e[t.id]||t.color}function tt(e,t=1,n=1){let r={};return nt(r,e,0,Math.PI*2,t,n),et(r)}function nt(e,t,n,r,i=1,a=1){let o=t.size;e[t.id]=qe(n+r/2,i,a);for(let s of t.children){let t=s.size/o*r;nt(e,s,n,t,i,a),n+=t}}var rt=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function it(e=16,t=rt){let n=``,r=e,i=t.length;for(;r--;)n+=t[Math.random()*i|0];return n}function at(e,t,n=(e,t)=>t.size-e.size){if(e.__nanovis)return e;let r={...e};return r.id||=it(),r.parent||=t,r.children||=[],r.sizeSelf==null&&r.size!=null&&r.children.length===0?r.sizeSelf=r.size:r.sizeSelf||=0,r.children=(r.children||[]).map(e=>at(e,r,n)),r.size||=r.children.reduce((e,t)=>e+t.size,0)+r.sizeSelf,n&&r.children.sort(n),Object.defineProperty(r,`__nanovis`,{enumerable:!1,value:!0}),r}function ot(e){return e.children.length===0?1:Math.max(...e.children.map(e=>ot(e)))+1}var st=/\bFirefox\//.test(navigator.userAgent),ct;function lt(e){return ct?ct.format(e):`${e}`}function q(){return(window.performance||Date).now()}function ut(e){let t=e.toFixed(1).split(`.`,2);return`${lt(+t[0])}.${t[1]}`}function dt(e){return e===1?`1 byte`:e<1024?`${lt(e)} bytes`:e<1024*1024?`${ut(e/1024)} kb`:e<1024*1024*1024?`${ut(e/(1024*1024))} mb`:`${ut(e/(1024*1024*1024))} gb`}function ft(e,t,n,r,i,a){if(st){let o=e.lineWidth,s=o/2;e.fillStyle=t,e.fillRect(n-s,r-s,i+o,o),e.fillRect(n-s,r+s,o,a-o),e.fillRect(n-s,r+a-s,i+o,o),e.fillRect(n+i-s,r+s,o,a-o);return}e.strokeStyle=t,e.strokeRect(n,r,i,a)}function pt(e){return window.addEventListener(`wheel`,e,{passive:!1}),()=>window.removeEventListener(`wheel`,e)}function mt(e){return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)}try{ct=new Intl.NumberFormat}catch{}var ht=()=>({emit(e,...t){for(let n=this.events[e]||[],r=0,i=n.length;r<i;r++)n[r](...t)},events:{},on(e,t){return(this.events[e]||=[]).push(t),()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}}),J={getText:e=>e.text,getSubtext:e=>e.subtext,animate:!0,animateDuration:350},gt={fallback:`#CCC`,stroke:`#0008`,text:`#222`,hover:`#fff5`,shadow:`#0008`,fg:`#fff`,bg:`#222`},_t=46,vt=`14px sans-serif`,yt=`bold ${vt}`,bt=class{el;canvas;c;width=0;height=0;ratio=1;root;maxDepth;events;options;palette;disposables;getColor;getText;getSubtext;_animationFrame=null;constructor(e,t){this.options={...J,...t};let{getColor:n=tt(e),getText:r=()=>void 0,getSubtext:i=()=>void 0}=this.options;this.palette={...gt,...t.palette},this.el=document.createElement(`div`),this.canvas=document.createElement(`canvas`),this.c=this.canvas.getContext(`2d`),this.root=e,this.maxDepth=ot(e),this.disposables=[],this.events=ht(),this.getColor=n,this.getText=r,this.getSubtext=i,this.setFont(vt),t.onClick&&this.events.on(`click`,t.onClick),t.onHover&&this.events.on(`hover`,t.onHover),t.onLeave&&this.events.on(`leave`,t.onLeave),t.onSelect&&this.events.on(`select`,t.onSelect),this.el.addEventListener(`mouseleave`,()=>{this.events.emit(`leave`)})}invalidate(){this._animationFrame===null&&(this._animationFrame=requestAnimationFrame(()=>{this._animationFrame=null,this.tick()}))}tick(){this.draw()}draw(){}resize(){this.ratio=window.devicePixelRatio||1,this.canvas.style.width=`${this.width}px`,this.canvas.style.height=`${this.height}px`,this.canvas.width=Math.round(this.width*this.ratio),this.canvas.height=Math.round(this.height*this.ratio),this.c.scale(this.ratio,this.ratio),this.draw()}select(e,t){this.events.emit(`select`,e)}dispose(){this.disposables.forEach(e=>e()),this.disposables.length=0,this.el.remove()}[Symbol.dispose](){this.dispose()}_font=`14px sans-serif`;_fontWidthCache=new Map;ellipsisWidth=0;getFontCache(){return this._fontWidthCache.has(this._font)||this._fontWidthCache.set(this._font,{}),this._fontWidthCache.get(this._font)}setFont(e){this._font=e,this.c.font=e,this.c.textBaseline=`middle`,this.ellipsisWidth=3*this.charCodeWidth(_t)}charCodeWidth(e){let t=this.getFontCache(),n=t[e];return n===void 0&&(n=this.c.measureText(String.fromCharCode(e)).width,t[e]=n),n}textOverflowEllipsis(e,t){if(t<this.ellipsisWidth)return[``,0];let n=0,r=e.length,i=0;for(;i<r;){let r=this.charCodeWidth(e.charCodeAt(i));if(t<n+this.ellipsisWidth+r)return[`${e.slice(0,i)}...`,n+this.ellipsisWidth];n+=r,i++}return[e,n]}},Y=24,xt=5,St=.01,Ct=1e3,wt=class extends bt{mainEl=document.createElement(`div`);totalBytes;viewportMin;viewportMax;zoomedOutMin=0;zoomedOutWidth=0;prevWheelTime=0;prevWheelWasZoom=!1;stripeScaleAdjust=1;hoveredNode=null;selectedNode=null;nodeStartBytes=new Map;animationFromMin=0;animationFromMax=0;animationToMin=0;animationToMax=0;animationStart=0;constructor(e,t={}){super(e,t),this.totalBytes=e.size,this.viewportMin=this.animationFromMin=this.animationToMin=0,this.viewportMax=this.animationFromMax=this.animationToMax=this.totalBytes,Object.assign(this.mainEl.style,{position:`relative`}),Object.assign(this.canvas.style,{position:`absolute`,left:`0`,top:`0`});let n=!1;this.canvas.onmousedown=e=>{if(n=!1,e.button!==2){let t=e.pageX,r=e=>{let r=e.pageX-t;!n&&Math.abs(r)<3||(n=!0,this.modifyViewport(-r,0,null),t=e.pageX)},i=()=>{document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseup`,i)};e.preventDefault(),document.addEventListener(`mousemove`,r),document.addEventListener(`mouseup`,i)}},this.canvas.onmousemove=e=>{this.updateHover(e)},this.canvas.onmouseout=()=>{this.changeHoveredNode(null)},this.canvas.onclick=e=>{if(n)return;let t=this.hitTestNode(e);this.changeHoveredNode(t),this.changeSelectedNode(t),t&&this.events.emit(`click`,t,e)},this.disposables.push(pt(e=>{let t=e.deltaX,n=e.deltaY,r=q(),i=r-this.prevWheelTime<50?this.prevWheelWasZoom:e.ctrlKey||e.metaKey;this.prevWheelTime=r,this.prevWheelWasZoom=i,(i||Math.abs(t)>=Math.abs(n))&&e.preventDefault(),this.modifyViewport(t,n,i?e.pageX:null),this.updateHover(e)})),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(mt(()=>this.resize())),this.mainEl.append(this.canvas),this.el.append(this.mainEl)}tick(){let e=(q()-this.animationStart)/(this.options.animateDuration??J.animateDuration);e<0||e>1?(e=1,this.viewportMin=this.animationToMin,this.viewportMax=this.animationToMax):(e<.5?e*=4*e*e:(e=1-e,e*=4*e*e,e=1-e),this.viewportMin=this.animationFromMin+(this.animationToMin-this.animationFromMin)*e,this.viewportMax=this.animationFromMax+(this.animationToMax-this.animationFromMax)*e,this.invalidate()),this.draw()}draw(){this.c.clearRect(0,0,this.width,this.height),this.drawNode(this.root,0,0,-1/0,1)}changeSelectedNode(e,t=this.options.animate??J.animate){if(this.selectedNode!==e&&(this.selectedNode=e,this.events.emit(`select`,e),e&&this.nodeStartBytes.has(e.id))){let n=this.nodeStartBytes.get(e.id),r=n+e.size;n=Math.max(0,n-e.size*St),r=Math.min(this.totalBytes,r+e.size*St),this.setViewport(n,r,t)}}select(e,t=this.options.animate??J.animate){this.changeSelectedNode(e,t)}resize(){this.width=this.el.clientWidth,this.height=this.maxDepth*Y+1,this.zoomedOutMin=this.width-Ct>>1,this.zoomedOutWidth=this.zoomedOutMin+Ct,this.zoomedOutMin<0&&(this.zoomedOutMin=0),this.zoomedOutWidth>this.width&&(this.zoomedOutWidth=this.width),this.zoomedOutWidth-=this.zoomedOutMin,this.stripeScaleAdjust=this.totalBytes/this.zoomedOutWidth,this.mainEl.style.height=`${this.height}px`,super.resize()}drawNode(e,t,n,r,i){this.nodeStartBytes.set(e.id,n);let a=this.zoomedOutWidth/(this.viewportMax-this.viewportMin),o=this.zoomedOutMin+(n-this.viewportMin)*a,s=e.size*a,c=o+s;if(c<r+1.5)return r;if(o+s<0||o>this.width)return c;let l=s<2?2:s,u=(o>0?o:0)+xt,d=t+Y/2,f=this.getText(e)||``,p=this.getSubtext(e)||``,m,h=0,g=s+o-u,_=Qe(this.getColor(e)||this.palette.fallback,this.c,this.zoomedOutMin-this.viewportMin*a,Y,a*this.stripeScaleAdjust),v=this.palette.text,y=-1/0;i&1?(v=this.palette.fg,this.setFont(yt)):(this.c.fillStyle=_,this.c.fillRect(o,t,l,Y),(i&2||this.hoveredNode&&e.id===this.hoveredNode.id)&&(this.c.fillStyle=this.palette.hover,this.c.fillRect(o,t,l,Y),i|=2)),this.ellipsisWidth<g&&(m=this.c.measureText(f).width,m<=g?h+=m:(f=this.textOverflowEllipsis(f,g)[0],h=g),this.c.fillStyle=v,this.c.fillText(f,u,d)),i&1&&this.setFont(vt),h+this.ellipsisWidth<g&&(p&&f&&(p=` - ${p}`),m=this.c.measureText(p).width,h+m>g&&(p=this.textOverflowEllipsis(p,g-h)[0]),this.c.globalAlpha=.5,this.c.fillText(p,u+h,d),this.c.globalAlpha=1);for(let r of e.children)y=this.drawNode(r,t+Y,n,y,i&-2),n+=r.size;return i&1||ft(this.c,this.palette.stroke,o+.5,t+.5,l,Y),c}changeHoveredNode(e){this.hoveredNode!==e&&(this.hoveredNode=e,this.canvas.style.cursor=e&&!e.children.length?`pointer`:`auto`,this.invalidate())}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,i=this.viewportMin+(this.viewportMax-this.viewportMin)/this.zoomedOutWidth*(n-this.zoomedOutMin),a=(e,t,n)=>{if(i>=n&&i<n+e.size){if(r>=t&&r<t+Y&&e.id)return e;if(r>=t+Y)for(let r of e.children){let e=a(r,t+Y,n);if(e)return e;n+=r.size}}return null};return a(this.root,0,0)}modifyViewport(e,t,n){let r=this.viewportMin,i=this.viewportMax,a=0;if(n!==null){let e=r+(i-r)/this.zoomedOutWidth*(n-this.zoomedOutMin),a=1.01**t;r=e+(r-e)*a,i=e+(i-e)*a}else a=e*(i-r)/this.zoomedOutWidth;r+a<0?a=-r:i+a>this.totalBytes&&(a=this.totalBytes-i),r+=a,i+=a,r<0&&(r=0),i>this.totalBytes&&(i=this.totalBytes),this.setViewport(r,i,!1)}setViewport(e,t,n){this.animationFromMin=this.viewportMin,this.animationFromMax=this.viewportMax,this.animationToMin=e,this.animationToMax=t,n?this.animationStart=q():this.animationStart=0,this.invalidate()}updateHover(e){let t=this.hitTestNode(e);this.changeHoveredNode(t),this.events.emit(`hover`,t,e)}};function Tt(e,t){for(;t;){if(t===e)return!0;t=t.parent}return!1}function Et(e,t,n){if(e===t)return;let r=t.parent,i=r.size||1,a=0;Et(e,r,n);for(let e of r.children){if(e===t){n.startAngle_+=n.sweepAngle_*a/i,n.sweepAngle_=e.size/i*n.sweepAngle_;break}a+=e.size}n.depth_+=1}var Dt={};function Ot(e){return Dt[e]||(Dt[e]=400*Math.log(1+Math.log(1+e/8))),Dt[e]}var X=-Math.PI/2,kt=class extends bt{currentNode;hoveredNode;centerX=0;centerY=0;animationStart=0;radiusScale=1;sourceDepth=0;sourceStartAngle=X;sourceSweepAngle=Math.PI*2;targetNode;targetDepth=this.sourceDepth;targetStartAngle=this.sourceStartAngle;targetSweepAngle=this.sourceSweepAngle;animatedNode;animatedDepth=this.sourceDepth;animatedStartAngle=this.sourceStartAngle;animatedSweepAngle=this.sourceSweepAngle;previousHoveredNode;historyStack=[];constructor(e,t={}){for(;e.children.length===1;)e=e.children[0];super(e,t),this.currentNode=e,this.targetNode=this.currentNode,this.animatedNode=this.currentNode,this.canvas.onmousemove=e=>{this.handleMouseMove(e)},this.canvas.onmouseout=e=>{this.changeHoveredNode(void 0),this.events.emit(`hover`,null,e)},this.canvas.onclick=e=>{let t=this.hitTestNode(e);if(!t)return;this.events.emit(`click`,t,e);let n=[];t===this.animatedNode.parent?this.historyStack.length>0&&(t=this.historyStack.pop(),n=this.historyStack.slice()):n=this.historyStack.concat(this.currentNode),this.events.emit(`click`,t,e),t.children.length>0?(this.select(t),this.historyStack=n):e.preventDefault()},this.el.append(this.canvas),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(mt(()=>this.resize())),this.disposables.push(pt(e=>this.handleMouseMove(e)))}select(e,t){(this.currentNode!==e||this.root)&&(this.currentNode=e||this.root,this.updateSunburst(t),this.events.emit(`select`,e))}resize(){this.width=this.el.clientWidth,this.height=this.width,this.centerX=this.width>>1,this.centerY=this.height>>1;let e=2*Math.ceil(Ot(this.maxDepth));this.radiusScale=this.width/e,super.resize()}draw(){this.c.clearRect(0,0,this.width,this.height),this.drawNode(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle,3,-1/0),this.c.strokeStyle=this.palette.stroke,this.c.beginPath(),this.drawNode(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle,1,-1/0),this.c.stroke(),this.animatedDepth===0&&(this.c.fillStyle=this.palette.stroke,this.setFont(yt),this.c.textAlign=`center`,this.c.fillText(this.getSubtext(this.targetNode)??dt(this.targetNode.size),this.centerX,this.centerY))}drawNode(e,t,n,r,i,a,o){let s=this.computeRadius(t+1);if(s>this.centerY)return o;e===this.hoveredNode&&(a|=8);let c=(n+s)/2,l=r+i;if(l-o<1.5/c)return o;let u=2/c;if(i>u&&(u=i),a&2)this.c.fillStyle=Qe(this.getColor(e)||this.palette.fallback,this.c,this.centerX,this.centerY,1),this.c.beginPath(),this.c.arc(this.centerX,this.centerY,n,r,r+u,!1),this.c.arc(this.centerX,this.centerY,s,r+u,r,!0),this.c.fill(),this.hoveredNode&&(a&8||e.parent===this.hoveredNode)&&(this.c.fillStyle=this.palette.hover,this.c.fill());else{let e=u===Math.PI*2,t=a&4||e?s:n;a&1&&n>0&&this.c.arc(this.centerX,this.centerY,n,r+u,r,!0),this.c.moveTo(this.centerX+t*Math.cos(r),this.centerY+t*Math.sin(r)),this.c.arc(this.centerX,this.centerY,s,r,r+u,!1),e||this.c.lineTo(this.centerX+n*Math.cos(r+u),this.centerY+n*Math.sin(r+u))}let d=e.size,f=a&10,p=0,m=-1/0;for(let n of e.children)m=this.drawNode(n,t+1,s,r+i*p/d,n.size/d*i,f,m),p+=n.size,f|=4;return l}changeHoveredNode(e,t){this.hoveredNode!==e&&(this.hoveredNode=e,this.updateSunburst(t))}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left-this.centerX,r=e.clientY-t.top-this.centerY,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n),o=(e,t,n,r,s)=>{let c=this.computeRadius(t+1);if(c>this.centerY)return;if(i>=n&&i<c){let t=a-r;if(t/=Math.PI*2,t-=Math.floor(t),t*=Math.PI*2,t<s)return e===this.animatedNode?e.parent:e}let l=e.size,u=0;for(let n of e.children){let e=o(n,t+1,c,r+s*u/l,n.size/l*s);if(e)return e;u+=n.size}};return o(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle)}tick(){let e=(q()-this.animationStart)/(this.options.animateDuration??J.animateDuration);e<0||e>1?(e=1,this.animatedNode=this.targetNode,this.targetDepth=0,this.targetStartAngle=X,this.targetSweepAngle=Math.PI*2):(e<.5?e*=4*e*e:(e=1-e,e*=4*e*e,e=1-e),this.invalidate()),this.animatedDepth=this.sourceDepth+(this.targetDepth-this.sourceDepth)*e,this.animatedStartAngle=this.sourceStartAngle+(this.targetStartAngle-this.sourceStartAngle)*e,this.animatedSweepAngle=this.sourceSweepAngle+(this.targetSweepAngle-this.sourceSweepAngle)*e,this.draw()}handleMouseMove(e){let t=this.hitTestNode(e);this.changeHoveredNode(t),t&&t!==this.animatedNode.parent?(this.events.emit(`hover`,t,e),this.canvas.style.cursor=`pointer`):this.events.emit(`hover`,null,e)}computeRadius(e){return Ot(e)*this.radiusScale}updateSunburst(e=this.options.animate??!0){if(this.previousHoveredNode!==this.hoveredNode&&(this.previousHoveredNode=this.hoveredNode,this.hoveredNode||(this.canvas.style.cursor=`auto`,this.events.emit(`hover`,null)),this.invalidate()),this.targetNode!==this.currentNode){if(this.historyStack.length=0,this.invalidate(),e&&(this.animationStart=q()),Tt(this.animatedNode,this.currentNode)){let e={depth_:this.animatedDepth,startAngle_:this.animatedStartAngle,sweepAngle_:this.animatedSweepAngle};Et(this.animatedNode,this.currentNode,e),this.animatedDepth=e.depth_,this.animatedStartAngle=e.startAngle_,this.animatedSweepAngle=e.sweepAngle_,this.targetDepth=0,this.targetStartAngle=X,this.targetSweepAngle=Math.PI*2,this.animatedNode=this.currentNode}else if(Tt(this.currentNode,this.animatedNode)){let e={depth_:0,startAngle_:X,sweepAngle_:Math.PI*2};Et(this.currentNode,this.animatedNode,e),this.targetDepth=e.depth_,this.targetStartAngle=e.startAngle_,this.targetSweepAngle=e.sweepAngle_}else this.animationStart=-1/0,this.animatedNode=this.currentNode;this.sourceDepth=this.animatedDepth,this.sourceStartAngle=this.animatedStartAngle,this.sourceSweepAngle=this.animatedSweepAngle,this.targetNode=this.currentNode,this.events.emit(`select`,this.currentNode)}}},Z=4,Q=20,At=2*Z,$=Q+Z;function jt(e,t,n,r,i){let a=[],o=(t,n,r,i,a)=>{let o=e[t].size*a,s=e[n].size*a;return Math.max(r*r*o/(i*i),i*i/(r*r*s))};return((t,n,r,i,s)=>{for(;t<e.length;){let c=0;for(let n=t;n<e.length;n++)c+=e[n].size;let l=Math.min(i,s),u=i*s/c,d=t,f=0,p=0;for(;d<e.length;){let n=e[d].size*u,r=o(t,d,l,f+n,u);if(d>t&&p<r)break;f+=n,p=r,d++}let m=Math.round(f/l),h=0;for(let o=t;o<d;o++){let t=e[o],c=t.size*u,d=Math.round(l*h/f),p=Math.round(l*(h+c)/f),[g,_,v,y]=i>=s?[n,r+d,m,p-d]:[n+d,r,p-d,m];a.push({node:t,box:[g,_,v,y],children:v>At&&y>$?jt(t.children,g+Z,_+Q,v-At,y-$):[]}),h+=c}t=d,i>=s?(n+=m,i-=m):(r+=m,s-=m)}})(0,t,n,r,i),a}var Mt=class extends bt{hoveredNode=null;currentNode=null;bgOriginX=0;bgOriginY=0;layers={base:null};baseLayoutCache;currentOriginX=0;currentOriginY=0;animationStart=0;animationBlend=1;animationSource=null;animationTarget=null;constructor(e,t={}){super(e,t),this.canvas.addEventListener(`mousemove`,e=>{this.updateHover(e)}),this.canvas.addEventListener(`mouseout`,e=>{this.changeHoveredNode(null),this.events.emit(`hover`,null,e)}),this.el.addEventListener(`click`,e=>{let t=this.hitTestNode(e);if(t){let n=t.node;this.events.emit(`click`,n,e),n.children.length?t===this.layers.current?this.updateHover(e):(this.changeCurrentLayout(t),this.changeHoveredNode(null)):this.updateHover(e)}else this.currentNode&&(this.changeCurrentLayout(null),this.updateHover(e))}),this.el.append(this.canvas),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(pt(e=>this.updateHover(e))),this.disposables.push(mt(()=>this.resize()))}select(e,t){let n=null;e===this.root&&(e=null),n=e?this.searchFor([this.layers.current,this.layers.base],e):null,this.changeCurrentLayout(n,t)}drawBaseLayout(){!this.width||!this.height||(this.c.clearRect(0,0,this.width,this.height),this.bgOriginX=this.bgOriginY=0,this.baseLayoutCache?this.c.putImageData(this.baseLayoutCache,0,0):(this.drawLayout(this.layers.base,0,[]),this.baseLayoutCache=this.c.getImageData(0,0,this.width*this.ratio,this.height*this.ratio)))}draw(){this.drawBaseLayout(),this.layers.current||this.drawHoverHighlight(this.layers.base);let e=this.layers.current?this.animationSource?this.animationTarget?1:1-this.animationBlend:this.animationBlend:0;if(this.layers.current){let[t,n,r,i]=this.layers.base.box;this.c.globalAlpha=.6*(!this.layers.current||!this.animationSource?1:e),this.c.fillStyle=this.palette.bg,this.c.fillRect(t,n,r,i),this.c.globalAlpha=1}if(this.layers.previous&&this.drawLayout(this.layers.previous,1,[this.layers.current]),this.layers.current){let[t,n,r,i]=this.layers.current.box,a=this.c.getTransform(),o=Math.sqrt(a.a*a.d);this.c.save(),this.c.shadowColor=this.palette.shadow,this.c.shadowBlur=30*e*o,this.c.shadowOffsetX=o*(2*this.width),this.c.shadowOffsetY=o*(2*this.height+15*e),this.c.fillRect(t-2*this.width,n-2*this.height,r,i),this.c.restore(),this.bgOriginX=this.currentOriginX,this.bgOriginY=this.currentOriginY,this.drawLayout(this.layers.current,0,[]),this.drawHoverHighlight(this.layers.current)}}tick(){let e=this.animationBlend,t=this.currentNode;this.animationBlend=(q()-this.animationStart)/(this.options.animateDuration??J.animateDuration),this.animationBlend<0||this.animationBlend>1?(this.currentNode=this.animationTarget,this.layers.previous=void 0,this.animationBlend=1):(this.animationBlend=1-this.animationBlend,this.animationBlend*=this.animationBlend*this.animationBlend,this.animationBlend=1-this.animationBlend,this.invalidate()),(this.animationBlend!==e||this.currentNode!==t)&&this.updateCurrentLayout(),this.draw()}resize(){this.baseLayoutCache=void 0;let e=this.width,t=this.height;this.width=Math.min(this.el.clientWidth,1600),this.height=Math.max(Math.round(this.width/2),innerHeight-200),(this.width!==e||this.height!==t||!this.layers.base)&&(this.layers.base=jt([this.root],0,0,this.width-1,this.height-1)[0],this.updateCurrentLayout()),super.resize()}*iterateNodeToDraw(e,t,n){let r=e.node,[i,a,o,s]=e.box,c=(r===this.hoveredNode?1:0)|(e===this.animationTarget?2:0);if(t===1)for(let e of n){if(!e)continue;let[n,r,c,l]=e.box;if(i>=n&&a>=r&&i+o<=n+c&&a+s<=r+l){t=2;break}}for(let r of e.children)c|=yield*this.iterateNodeToDraw(r,t,n);return t!==2&&(yield e),c}drawHoverHighlight(e){let t=this.iterateNodeToDraw(e,0,[]),n=this.c.globalCompositeOperation;for(;;){let e=t.next();if(e.done){this.c.globalCompositeOperation=n;return}let r=e.value.node;if(this.hoveredNode===r){this.c.globalCompositeOperation=`overlay`;let[t,n,r,i]=e.value.box;this.c.fillStyle=this.palette.hover,this.c.fillRect(t,n,r,i)}}}drawNodeBackground(e,t,n){let r=this.iterateNodeToDraw(e,t,n);for(;;){let e=r.next();if(e.done)return e.value;let[t,n,i,a]=e.value.box;this.c.fillStyle=Qe(this.getColor(e.value.node)||this.palette.fallback,this.c,this.bgOriginX,this.bgOriginY,1),e.value.children.length?(this.c.fillRect(t,n,i,Q),this.c.fillRect(t,n+a-Z,i,Z),this.c.fillRect(t,n+Q,Z,a-$),this.c.fillRect(t+i-Z,n+Q,Z,a-$)):this.c.fillRect(t,n,i,a)}}drawLayout(e,t,n){this.drawNodeBackground(e,t,n),this.drawNodeForeground(e,t,n)}drawNodeForeground(e,t,n){let r=this.iterateNodeToDraw(e,t,n);for(;;){let e=r.next();if(e.done)return;let t=e.value.node,[n,i,a,o]=e.value.box;if(ft(this.c,this.palette.stroke,n+.5,i+.5,a,o),o>=Q){this.c.fillStyle=this.palette.text;let e=a-At,r=i+Math.round($/2),[s,c]=this.textOverflowEllipsis(this.getText(t)||``,e),l=n+Math.round((a-c)/2),u=this.getText(t),d=this.getSubtext(t);if(s===u&&t.children.length){let t=d||``;t&&u&&(t=` - ${t}`);let[i,o]=this.textOverflowEllipsis(t,e-c);l=n+Math.round((a-c-o)/2),this.c.globalAlpha=.5,this.c.fillText(i,l+c,r),this.c.globalAlpha=1}if(this.c.fillText(s,l,r),o>$+16&&!t.children.length){let[t,r]=this.textOverflowEllipsis(d||``,e);this.c.globalAlpha=.5;let s=u?Q:Q/2+Z;this.c.fillText(t,n+Math.round((a-r)/2),i+s+Math.round(o-$)/2),this.c.globalAlpha=1}}}}updateCurrentLayout(){let e=this.options.selectedPaddingRatio??.2;if(this.currentNode){let[t,n,r,i]=this.currentNode.box,a=t+r,o=n+i,s=Math.round(this.width*e/2),c=Math.round(this.height*e/2),l=this.width-s-1,u=this.height-c-1,d=this.animationTarget?this.animationBlend:1-this.animationBlend,f=Math.round(t+(s-t)*d),p=Math.round(n+(c-n)*d),m=Math.round(a+(l-a)*d),h=Math.round(o+(u-o)*d),g=e=>e-Math.floor(e/64-.5)*64;this.layers.current=jt([this.currentNode.node],f,p,m-f,h-p)[0],this.currentOriginX=g(-(t+a)/2)*(1-d)+(f+m)/2,this.currentOriginY=g(-(n+o)/2)*(1-d)+(p+h)/2}else this.layers.current=void 0,this.currentOriginX=0,this.currentOriginY=0}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,i=(e,t)=>{for(let a of e){let[e,o,s,c]=a.box;if(n>=e&&r>=o&&n<e+s&&r<o+c)return i(a.children,!1)||(t?null:a)}return null};return this.layers.current?i([this.layers.current],!1):i([this.layers.base],!0)}updateHover(e){let t=this.hitTestNode(e);this.changeHoveredNode(t&&t.node),this.events.emit(`hover`,t?.node||null,e)}changeHoveredNode(e){this.hoveredNode!==e&&(this.hoveredNode=e,this.canvas.style.cursor=e&&!e.children.length?`pointer`:`auto`,this.invalidate())}searchFor(e,t){for(let n of e){if(!n)continue;let e=n.node===t?n:this.searchFor(n.children,t);if(e)return e}return null}changeCurrentLayout(e,t=this.options.animate){this.animationTarget!==e&&(this.events.emit(`select`,e?.node||null),this.layers.previous=e?this.layers.current:void 0,t&&(this.animationBlend=0,this.animationStart=q(),this.animationSource=this.currentNode),this.animationTarget=e,this.currentNode=e||this.searchFor([this.layers.base],this.currentNode.node),this.updateCurrentLayout(),this.invalidate())}},Nt={flex:`~ gap-1 items-center wrap`},Pt={key:0,"i-ph-arrow-right-bold":``,"text-sm":``,"op-fade":``},Ft=[`onClick`],It=a({__name:`NavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(e,{emit:n}){let i=e,a=n,o=f(()=>{let e=[],t=i.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(e,n)=>(g(),v(`div`,Nt,[(g(!0),v(m,null,u(o.value,(e,n)=>(g(),v(m,{key:e.id},[n>0?(g(),v(`div`,Pt)):t(``,!0),b(`button`,{hover:`bg-active`,rounded:``,px1:``,onClick:t=>a(`select`,e)},[b(`span`,null,r(e.text||e.id),1)],8,Ft)],64))),128))]))}}),Lt=Object.assign(It,{__name:`ChartNavBreadcrumb`});function Rt(t){let{data:r,nameKey:a,sizeKey:o,rootText:s,nodeType:l,graphOptions:u,onUpdate:d}=t,m=c(void 0),g=c(void 0),_=p(void 0),v=c(void 0),y,b=f(()=>{if(t.tree)return t.tree.value;let e=n(r),i=new Map,c=0,u={id:`~root`,text:s,size:0,sizeSelf:0,children:[]};if(!e?.length)return{map:i,root:u,maxDepth:c};let d=[];d.unshift(()=>{u.size+=u.children.reduce((e,t)=>e+t.size,0),u.subtext=E(u.size).join(` `),u.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function f(e,t,n,r,a){if(i.has(t))return i.get(t);a>c&&(c=a);let o={id:t,text:n,size:0,sizeSelf:0,children:[],meta:{...e,path:n,type:`folder`},parent:r};return i.set(t,o),r.children.push(o),d.unshift(()=>{let t=o.sizeSelf;o.size+=o.children.reduce((e,t)=>e+t.size,0),o.subtext=E(o.size).join(` `),o.children.length&&t/o.size>.1&&o.children.push({id:`${o.id}-self`,text:``,size:t,sizeSelf:t,subtext:E(t).join(` `),children:[],meta:{...e,path:``,type:l},parent:o}),o.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),o}function p(e){let t=e[a].split(`/`).filter(Boolean),n=u,r=``,s=0;t.forEach((c,u)=>{if(r+=(r?`/`:``)+c,s++,u===t.length-1){let t={id:e[a],text:c,size:e[o],sizeSelf:e[o],subtext:E(e[o]).join(` `),children:[],meta:{...e,path:c,type:l}};n.children.push(t),i.set(e[a],t)}else n=f(e,r,c,n,s)})}return e.forEach(p),d.forEach(e=>e()),{map:i,root:u,maxDepth:c}}),ee=f(()=>({animate:ae.value.chartAnimation,palette:{stroke:T.value?`#222`:`#555`,fg:T.value?`#fff`:`#000`,bg:T.value?`#111`:`#fff`},getColor:tt(b.value.root,T.value?.8:.9,T.value?1:1.1),getSubtext:e=>e.subtext,...u}));function x(e,t){_.value=e?.meta,e?.children.length||(e=e?.parent),v.value?.select(e,t)}function S(){y?.(),g.value=b.value.root,d?.(),e(()=>{let e=_.value&&b.value.map.get(_.value[a])||null;e&&x(e,!1)}),y=()=>{v.value?.dispose(),v.value=void 0,_.value=void 0}}return e(()=>{h(()=>[b.value,ee.value],()=>{S()},{deep:!0,immediate:!1}),S()}),i(()=>{y?.()}),{tree:b,graph:v,chartOptions:ee,nodeHover:m,nodeSelected:g,selectedNode:_,selectNode:x,buildGraph:S}}export{Mt as a,Ke as c,kt as i,Lt as n,$e as o,wt as r,at as s,Rt as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"fbcc677b-17ad-4021-b787-c7c5a657adc4","timestamp":1773705481702,"prerendered":[]}
|