@vitejs/devtools-vite 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/index.mjs +15 -3
  2. package/dist/nitro.json +1 -1
  3. package/dist/public/200.html +1 -1
  4. package/dist/public/404.html +1 -1
  5. package/dist/public/_nuxt/{COnBqmRc.js → 5a4ooAmr.js} +1 -1
  6. package/dist/public/_nuxt/BzEa-0f6.js +1 -0
  7. package/dist/public/_nuxt/C3YPSWJQ.js +1 -0
  8. package/dist/public/_nuxt/{DYnEv4v1.js → CUfzouSj.js} +1 -1
  9. package/dist/public/_nuxt/{D3ipLAva.js → CWSbPOrM.js} +2 -2
  10. package/dist/public/_nuxt/{cuq4XLpu.js → Chq5OY5R.js} +2 -2
  11. package/dist/public/_nuxt/{sEDpE0N9.js → Cuytw1DO.js} +1 -1
  12. package/dist/public/_nuxt/{CsVALfTX.js → CwB8Gs10.js} +1 -1
  13. package/dist/public/_nuxt/DSc9st6e.js +1 -0
  14. package/dist/public/_nuxt/Dab6ytD9.js +1 -0
  15. package/dist/public/_nuxt/YACjJYit.js +2 -0
  16. package/dist/public/_nuxt/builds/latest.json +1 -1
  17. package/dist/public/_nuxt/builds/meta/1dee4d5a-a785-4bf8-b51d-220ca39cb4ea.json +1 -0
  18. package/dist/public/_nuxt/{diff.worker-DKtlrP_3.js → diff.worker-C8rb3U4G.js} +2 -2
  19. package/dist/public/_nuxt/entry.oszfkD6r.css +1 -0
  20. package/dist/public/_nuxt/error-404.DdAfs9rw.css +1 -0
  21. package/dist/public/_nuxt/error-500.D_NIZVkd.css +1 -0
  22. package/dist/public/_nuxt/ho86HYDA.js +1 -0
  23. package/dist/public/index.html +1 -1
  24. package/package.json +8 -8
  25. package/dist/public/_nuxt/BN-J7l02.js +0 -1
  26. package/dist/public/_nuxt/CoFVsozN.js +0 -2
  27. package/dist/public/_nuxt/D4usamxR.js +0 -1
  28. package/dist/public/_nuxt/DQFtZVWZ.js +0 -1
  29. package/dist/public/_nuxt/DWxXIcx8.js +0 -1
  30. package/dist/public/_nuxt/DwsWXZeb.js +0 -1
  31. package/dist/public/_nuxt/HclGiUj8.js +0 -1
  32. package/dist/public/_nuxt/SPZCXf8u.js +0 -1
  33. package/dist/public/_nuxt/builds/meta/c7f1966f-5ed6-4335-aecc-f68ca9324fbb.json +0 -1
  34. package/dist/public/_nuxt/entry.CCIwoL36.css +0 -1
  35. package/dist/public/_nuxt/error-404.D8hpAFBn.css +0 -1
  36. package/dist/public/_nuxt/error-500.BndCfifx.css +0 -1
  37. package/dist/public/_nuxt/wOLRSe8l.js +0 -1
@@ -0,0 +1 @@
1
+ import{$ as e,A as t,C as n,Ct as r,Et as i,H as a,J as o,N as s,S as c,T as l,Xt as u,Y as d,Yt as f,ct as p,dt as m,et as h,ft as g,g as _,j as v,jt as y,lt as b,nt as x,q as S,qt as C,ut as w,w as T,x as E,xt as D}from"./CWSbPOrM.js";import{I as O,L as k,R as ee,d as A,i as j,k as M,n as N,o as P,u as F,x as I,z as L}from"./Cuytw1DO.js";import{et as R,t as z}from"./CUfzouSj.js";import{f as B,p as V}from"./5a4ooAmr.js";import{n as H,r as U}from"#entry";import{t as W}from"./BDNMzG2s.js";import{D as te,E as G,O as K,S as ne,T as re,_ as q,a as ie,b as ae,c as oe,d as se,f as J,g as Y,h as X,k as ce,l as le,m as Z,n as ue,o as de,r as fe,s as pe,t as me,u as he,v as Q,x as ge}from"./DSc9st6e.js";var $=s({__name:`DisplayNumberBadge`,props:{number:{},color:{default:`badge-color-gray op75`},icon:{},prefix:{},suffix:{},format:{default:`locale`}},setup(e){let n=e,r=E(()=>n.format===`percent`?Number(n.number).toLocaleString(void 0,{style:`percent`,minimumFractionDigits:2,maximumFractionDigits:2}):Number(n.number).toLocaleString());return(n,i)=>(d(),l(`div`,{class:C([e.color,`px-0.4em py-0.2em font-mono line-height-none flex items-center`])},[e.icon?(d(),l(`div`,{key:0,class:C([e.icon,`mr-1`])},null,2)):T(``,!0),t(` `+u(e.prefix||``)+u(r.value)+u(e.suffix||``)+` `,1),h(n.$slots,`after`)],2))}}),_e={class:`op50 text-xs flex justify-center items-center`},ve=s({__name:`FlowmapNodePluginInfo`,props:{modules:{},calls:{},duration:{}},setup(e){return(t,n)=>(d(),l(`span`,_e,[v($,{number:e.modules,icon:`i-catppuccin-java-class-abstract`,color:`transparent color-scale-neutral`,title:`Module processed: ${e.modules}`},null,8,[`number`,`title`]),n[1]||=c(`span`,{class:`op40`},`|`,-1),v($,{number:e.calls,icon:`i-ph-arrow-counter-clockwise`,color:`transparent color-scale-neutral`,title:`Total calls: ${e.calls}`},null,8,[`number`,`title`]),n[2]||=c(`span`,{class:`op40`},`|`,-1),v(X,{duration:e.duration,class:`flex gap-1 items-center px1`,title:`Total build cost: ${y(q)(e.duration,!0)}`},{default:m(()=>[...n[0]||=[c(`span`,{class:`i-ph-clock-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`])]))}}),ye={class:`flex flex-col h-full min-h-0`},be={class:`select-none flex-1 min-h-0 of-x-hidden of-y-auto ws-nowrap w-auto p4 flex flex-col`,style:{"scrollbar-gutter":`stable`}},xe={class:`flex`},Se={class:`flex items-center justify-center relative w-60 h14`},Ce={class:`op50 text-xs flex items-center justify-center gap-1 h6`},we=[`datetime`],Te={class:`flex items-center justify-center relative w-60 h14`},Ee={class:`op50 text-xs flex items-center justify-center gap-1 h6`},De=[`datetime`],Oe=Object.assign(s({__name:`PluginFlowTimeline`,props:{buildMetrics:{}},setup(e){let n=e;function r(e){let t={duration:0,calls:e.length,modules:0},n=new Set;return e.forEach(e=>{n.has(e.module)||(n.add(e.module),t.modules++),t.duration+=e.duration}),t}let i=E(()=>r(n.buildMetrics.resolveIdMetrics)),a=E(()=>r(n.buildMetrics.loadMetrics)),o=E(()=>r(n.buildMetrics.transformMetrics)),s=E(()=>{let e=n.buildMetrics.calls;if(e?.length)return e[0].timestamp_start}),f=E(()=>{let e=n.buildMetrics.calls;if(e?.length)return e.at(-1).timestamp_end});return(n,r)=>{let p=he,g=ve;return d(),l(`div`,ye,[h(n.$slots,`header`),c(`div`,be,[c(`div`,xe,[v(p,{active:!1,"class-node-inner":`w60`},{content:m(()=>[c(`div`,{class:`p2 w-full text-center`,onClick:r[0]||=e=>y(J).pluginDetailSelectedHook=``},[v(Z,{name:e.buildMetrics.plugin_name,class:`font-mono text-sm ws-nowrap text-ellipsis line-clamp-1`},null,8,[`name`])])]),_:1})]),c(`div`,Se,[r[5]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-0 border-r z-flowmap-line h4`},null,-1),r[6]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-10 border-r z-flowmap-line h4`},null,-1),c(`span`,Ce,[r[4]||=c(`i`,{class:`i-ph-airplane-takeoff-thin text-4 inline-flex`},null,-1),s.value?(d(),l(`time`,{key:0,datetime:new Date(s.value).toISOString()},u(new Date(s.value).toLocaleString()),9,we)):T(``,!0)])]),v(p,{"class-node-inner":`w60`,"class-node-outer":`${!i.value.modules&&!i.value.calls?`b-dashed!`:``}`,"class-line-bottom":`left-50%! translate-x--1/2`,class:`pb4 w60`,lines:{bottom:!0},active:y(J).pluginDetailSelectedHook===`resolve`},{content:m(()=>[c(`div`,{class:`flex flex-col gap1 w-full`,onClick:r[1]||=e=>y(J).pluginDetailSelectedHook=`resolve`},[r[7]||=c(`span`,{class:`flex items-center justify-center gap-1`},[c(`i`,{class:`i-ph-magnifying-glass-duotone`}),t(` Resolve Id `)],-1),c(`div`,null,[v(g,{modules:i.value.modules,calls:i.value.calls,duration:i.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`class-node-outer`,`active`]),v(p,{active:y(J).pluginDetailSelectedHook===`load`,"class-node-inner":`w60`,"class-node-outer":`${!a.value.modules&&!a.value.calls?`b-dashed!`:``}`,"class-line-bottom":`left-50%! translate-x--1/2`,class:`pb4 w60`,lines:{bottom:!0}},{content:m(()=>[c(`div`,{class:`flex flex-col gap1 w-full`,onClick:r[2]||=e=>y(J).pluginDetailSelectedHook=`load`},[r[8]||=c(`span`,{class:`flex items-center justify-center gap-1`},[c(`i`,{class:`i-ph-upload-simple-duotone`}),t(` Load `)],-1),c(`div`,null,[v(g,{modules:a.value.modules,calls:a.value.calls,duration:a.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),v(p,{active:y(J).pluginDetailSelectedHook===`transform`,"class-node-inner":`w60`,"class-node-outer":`${!o.value.modules&&!o.value.calls?`b-dashed!`:``}`},{content:m(()=>[c(`div`,{class:`flex flex-col gap1 w-full`,onClick:r[3]||=e=>y(J).pluginDetailSelectedHook=`transform`},[r[9]||=c(`span`,{class:`flex items-center justify-center gap-1`},[c(`i`,{class:`i-ph-magic-wand-duotone`}),t(` Transform `)],-1),c(`div`,null,[v(g,{modules:o.value.modules,calls:o.value.calls,duration:o.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),c(`div`,Te,[r[11]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-0 border-r z-flowmap-line h4`},null,-1),r[12]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-10 border-r z-flowmap-line h4`},null,-1),r[13]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-14 w-2 h-2 border-4 rounded-full`},null,-1),c(`span`,Ee,[r[10]||=c(`i`,{class:`i-ph-airplane-landing-thin text-4 inline-flex`},null,-1),f.value?(d(),l(`time`,{key:0,datetime:new Date(f.value).toISOString()},u(new Date(f.value).toLocaleString()),9,De)):T(``,!0)])])])])}}}),{__name:`FlowmapPluginFlowTimeline`}),ke={role:`row`,class:`border-b border-base bg-base flex flex-row`},Ae={key:0,role:`columnheader`,class:`bg-base flex-none w32 ws-nowrap p1 text-center font-600`},je={key:1,role:`columnheader`,class:`bg-base flex-1 min-w100 ws-nowrap p1 text-left font-600`},Me={class:`flex flex-row gap1 items-center w-full`},Ne={class:`w-6 h-6 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`},Pe={class:`p2 flex flex-col gap2`},Fe=[`title`],Ie=[`checked`,`onChange`],Le={class:`text-sm`},Re={key:2,role:`columnheader`,class:`rounded-tr-2 bg-base flex-none ws-nowrap p1 text-center font-600 w-27`},ze={class:`w-6 h-6 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`},Be={key:3,role:`columnheader`,class:`rounded-tr-2 bg-base flex-none min-w52 ws-nowrap p1 text-center font-600`},Ve={key:4,role:`columnheader`,class:`rounded-tr-2 bg-base flex-none min-w52 ws-nowrap p1 text-center font-600`},He={key:0,role:`cell`,class:`flex items-center justify-center flex-none w32 ws-nowrap op80`},Ue={key:1,role:`cell`,class:`flex-1 min-w100 text-left text-ellipsis line-clamp-2`},We={key:2,role:`cell`,class:`flex items-center justify-center flex-none text-center text-sm w-27`},Ge={key:3,role:`cell`,class:`flex items-center justify-center flex-none text-center font-mono text-sm min-w52 op80`},Ke={key:4,role:`cell`,class:`flex items-center justify-center flex-none text-center font-mono text-sm min-w52 op80`},qe={key:1,role:`table`,class:`min-w-max h-full`},Je={class:`p4`},Ye={class:`w-full h-48 flex items-center justify-center op50 italic`},Xe={key:0},Ze={key:1},Qe=Object.assign(W(s({__name:`PluginDetailsTable`,props:{modules:{},buildMetrics:{},selectedFields:{},root:{}},setup(i){let a=i,o={resolve:`Resolve Id`,load:`Load`,transform:`Transform`},s=E(()=>a.modules.map(e=>({mod:e,type:K(e.id)}))),f=E(()=>G.filter(e=>s.value.some(t=>e.match.test(t.mod.id)))),p=E(()=>{let e=new Map;for(let{mod:t,type:n}of s.value)e.set(t.id,n.name);return e}),h=r(J.value.pluginDetailsModuleTypes??f.value.map(e=>e.name)),g=E(()=>new Set(h.value)),{state:b,next:x}=A([``,`desc`,`asc`],{initialValue:J.value.pluginDetailsDurationSortType}),S=E(()=>{let e=J.value.pluginDetailSelectedHook,t=J.value.pluginDetailsShowType,n=t!==`all`&&[`load`,`transform`].includes(e),r=new Map(p.value),i=[];for(let o of a.buildMetrics.calls){if(!o.module||e&&o.type!==e||n&&(t===`changed`?o.unchanged:!o.unchanged))continue;let a=r.get(o.module);a||(a=K(o.module).name,r.set(o.module,a)),g.value.has(a)&&i.push(o)}return b.value&&i.sort((e,t)=>b.value===`asc`?e.duration-t.duration:t.duration-e.duration),i});function w(e){h.value?.includes(e.name)?h.value=h.value?.filter(t=>t!==e.name):h.value?.push(e.name),J.value.pluginDetailsModuleTypes=h.value}function D(){x(),J.value.pluginDetailsDurationSortType=b.value}function O(e){return e?`/graph?module=${encodeURIComponent(e)}`:!1}return(r,a)=>{let s=ge;return S.value.length&&i.selectedFields.length?(d(),n(ae,{key:0,class:`plugin-details-table min-w-max h-full min-h-0`,role:`table`,items:S.value,"key-prop":`id`,"page-mode":!1,scroller:`fixed`,"item-size":36},{before:m(()=>[c(`div`,ke,[i.selectedFields.includes(`hookName`)?(d(),l(`div`,Ae,` Hook name `)):T(``,!0),i.selectedFields.includes(`module`)?(d(),l(`div`,je,[c(`button`,Me,[a[0]||=t(` Module `,-1),v(y(U),null,{popper:m(()=>[c(`div`,Pe,[(d(!0),l(_,null,e(f.value,e=>(d(),l(`label`,{key:e.name,title:e.description,class:`cursor-pointer module-type-filter border border-base rounded-md px2 py1 flex items-center gap-1 select-none`},[c(`input`,{type:`checkbox`,class:`mr1`,checked:h.value?.includes(e.name),onChange:t=>w(e)},null,40,Ie),c(`div`,{class:C([e.icon,`icon-catppuccin`])},null,2),c(`div`,Le,u(e.description||e.name),1)],8,Fe))),128))])]),default:m(()=>[c(`span`,Ne,[c(`i`,{class:C([`i-ph-funnel-duotone text-xs`,h.value.length===f.value.length?`op50`:`text-primary op100`])},null,2)])]),_:1})])])):T(``,!0),i.selectedFields.includes(`duration`)?(d(),l(`div`,Re,[c(`button`,{class:`flex flex-row gap1 items-center justify-center w-full`,onClick:D},[a[1]||=t(` Duration `,-1),c(`span`,ze,[c(`i`,{class:C([`text-xs`,[y(b)===`asc`?`i-ph-arrow-up-duotone`:`i-ph-arrow-down-duotone`,y(b)?`op100 text-primary`:`op50`]])},null,2)])])])):T(``,!0),i.selectedFields.includes(`startTime`)?(d(),l(`div`,Be,` Start Time `)):T(``,!0),i.selectedFields.includes(`endTime`)?(d(),l(`div`,Ve,` End Time `)):T(``,!0)])]),default:m(({item:e,index:t})=>[c(`div`,{role:`row`,class:C([`border-base border-b border-dashed flex flex-row h-9`,[t===S.value.length-1?`border-b-0`:``]])},[i.selectedFields.includes(`hookName`)?(d(),l(`div`,He,[v(ne,{text:o[e.type]},null,8,[`text`])])):T(``,!0),i.selectedFields.includes(`module`)?(d(),l(`div`,Ue,[v(s,{id:e.module,class:`w-full border-none ws-nowrap hover:bg-active border border-base rounded block px2 py1`,cwd:i.root,link:O(e.graphModuleId)},null,8,[`id`,`cwd`,`link`])])):T(``,!0),i.selectedFields.includes(`duration`)?(d(),l(`div`,We,[v(X,{duration:e.duration},null,8,[`duration`])])):T(``,!0),i.selectedFields.includes(`startTime`)?(d(),l(`div`,Ge,u(y(Q)(e.timestamp_start)),1)):T(``,!0),i.selectedFields.includes(`endTime`)?(d(),l(`div`,Ke,u(y(Q)(e.timestamp_end)),1)):T(``,!0)],2)]),_:1},8,[`items`])):(d(),l(`div`,qe,[c(`div`,Je,[c(`div`,Ye,[i.selectedFields.length?(d(),l(`p`,Ze,` No data `)):(d(),l(`p`,Xe,` No columns selected `))])])]))}}}),[[`__scopeId`,`data-v-ba6a4bd9`]]),{__name:`DataPluginDetailsTable`}),$e={class:`p2 h-full w-full`},et={class:`flex border border-base rounded-2 h-full relative of-hidden`},tt={key:0,class:`of-hidden border-r border-base shrink-0 h-full min-h-0 flex flex-col`},nt={class:`px2 h10 border-b border-base bg-base rounded-t-2 flex items-center justify-end`},rt={class:`flex-1 h-full min-w-0 min-h-0 flex flex-col`},it={class:`flex items-center justify-between border-b border-base px2 h10 bg-base rounded-t-2 of-x-auto ws-nowrap`},at={class:`flex items-center h-full`},ot={key:0,class:`flex items-center justify-center gap1 h-full text-xs py1`},st={class:`op50 flex items-center gap-1`},ct=[`title`],lt={class:`text-xs op50`},ut={class:`flex-1 min-h-0 of-x-auto overscroll-contain`},dt=Object.assign(s({__name:`PluginFlow`,props:{modules:{},buildMetrics:{},root:{}},setup(e){let n=e,[i,a]=k(!0),o=[{match:/hookName/,name:`hookName`,description:`Hook name`,icon:`i-ph-function-duotone`},{match:/module/,name:`module`,description:`Module`,icon:`i-ph-package-duotone`},{match:/duration/,name:`duration`,description:`Duration`,icon:`i-ph-clock-countdown-duotone`},{match:/startTime/,name:`startTime`,description:`Start Time`,icon:`i-ph-clock-duotone`},{match:/endTime/,name:`endTime`,description:`End Time`,icon:`i-ph-clock-duotone`}],s=r({selected:J.value.pluginDetailsTableFields,search:!1}),f=E(()=>J.value.pluginDetailsTableFields?J.value.pluginDetailsTableFields:o.map(e=>e.name)),{state:p,next:h}=A([`changed`,`unchanged`,`all`],{initialValue:J.value.pluginDetailsShowType}),g=E(()=>p.value===`all`?`Show Changed`:p.value===`changed`?`Show Unchanged`:`Show All`),_=E(()=>!(![`load`,`transform`].includes(J.value.pluginDetailSelectedHook)||!n.buildMetrics.calls?.filter(e=>e.type===J.value.pluginDetailSelectedHook).filter(e=>e.unchanged).length)),x=E(()=>{let e=n.buildMetrics.calls?.filter(e=>e.type===J.value.pluginDetailSelectedHook).filter(e=>e.unchanged),t=e.reduce((e,t)=>e+t.duration,0);return{count:e.length,duration:t}});b(()=>s.value.selected,e=>{J.value.pluginDetailsTableFields=e});function S(){h(),J.value.pluginDetailsShowType=p.value}return(n,r)=>{let p=Oe,h=Qe;return d(),l(`div`,$e,[c(`div`,et,[y(i)?(d(),l(`div`,tt,[v(p,{"build-metrics":e.buildMetrics},{header:m(()=>[c(`div`,nt,[c(`button`,{class:`w8 h8 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`,onClick:r[0]||=e=>y(a)(!1)},[...r[3]||=[c(`i`,{class:`i-ph-sidebar-simple-duotone inline-flex op50`},null,-1)]])])]),_:1},8,[`build-metrics`])])):T(``,!0),c(`div`,rt,[c(`div`,it,[c(`div`,at,[y(i)?T(``,!0):(d(),l(`button`,{key:0,class:`w8 h8 rounded-full cursor-pointer mr1 hover:bg-active flex items-center justify-center`,onClick:r[1]||=e=>y(a)(!0)},[...r[4]||=[c(`i`,{class:`i-ph-sidebar-duotone inline-flex op50`},null,-1)]])),v(ue,{modelValue:s.value,"onUpdate:modelValue":r[2]||=e=>s.value=e,"selected-container-class":`px0! py1 border-none bg-none flex-nowrap! h-full`,rules:o,class:`[&_[icon-catppuccin]]:filter-none! h-full border-none`},null,8,[`modelValue`])]),_.value?(d(),l(`div`,ot,[c(`p`,st,[v($,{number:x.value.count},null,8,[`number`]),r[5]||=t(` module unchanged, but cost `,-1),v(X,{duration:x.value.duration},null,8,[`duration`])]),c(`button`,{class:`rounded-md px2 py1 select-none h-full border border-base rounded-lg hover:bg-active`,title:g.value,onClick:S},[c(`div`,lt,u(g.value),1)],8,ct)])):T(``,!0)]),c(`div`,ut,[v(h,{modules:e.modules,"build-metrics":e.buildMetrics,"selected-fields":f.value,root:e.root},null,8,[`modules`,`build-metrics`,`selected-fields`,`root`])])])])])}}}),{__name:`FlowmapPluginFlow`}),ft={class:`flex gap-1 items-center flex-wrap`},pt={key:0,class:`i-ph-arrow-right-bold text-sm op-fade`},mt=[`onClick`],ht=s({__name:`ChartNavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(t,{emit:n}){let r=t,i=n,a=E(()=>{let e=[],t=r.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(t,n)=>(d(),l(`div`,ft,[(d(!0),l(_,null,e(a.value,(e,t)=>(d(),l(_,{key:e.id},[t>0?(d(),l(`div`,pt)):T(``,!0),c(`button`,{class:`hover:bg-active rounded px1`,onClick:t=>i(`select`,e)},[c(`span`,null,u(e.text||e.id),1)],8,mt)],64))),128))]))}}),gt={class:`grid grid-cols-[max-content_1fr] gap-2 p4`},_t={class:`flex flex-col gap-4`},vt={key:0,class:`grid grid-cols-[300px_1fr] gap-1`},yt=[`onClick`],bt={key:0,class:`flex gap2 items-center pl2 hover:bg-active`},xt={class:`font-mono text-sm`},St=[`onClick`],Ct=[`title`],wt=s({__name:`PluginsSunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(n,{emit:r}){let i=n,a=r,o=p(`el`);w(()=>o.value?.append(i.graph.el));function s(e){return de(i.graph.options.getColor?.(e)||`#000`)}return(r,i)=>{let p=x(`tooltip`);return d(),l(`div`,gt,[c(`div`,{ref_key:`el`,ref:o,class:`w-500px`},null,512),c(`div`,_t,[v(ht,{class:`border-b border-base py2`,selected:n.selected,options:n.graph.options,onSelect:i[0]||=e=>a(`select`,e)},null,8,[`selected`,`options`]),n.selected?(d(),l(`div`,vt,[(d(!0),l(_,null,e(n.selected.children,e=>(d(),l(_,{key:e.id},[c(`button`,{class:`ws-nowrap text-nowrap text-left overflow-hidden text-ellipsis text-sm hover:bg-active rounded px2`,onClick:t=>a(`select`,e)},[e.meta?.type===`hook`?(d(),l(`div`,bt,[i[1]||=c(`i`,{class:`i-ph-function-duotone inline-flex`},null,-1),c(`span`,xt,u(e.text),1)])):h(r.$slots,`module`,{child:e},()=>[c(`span`,null,u(e.text||e.id),1)],void 0,1)],8,yt),c(`button`,{class:`relative flex gap-1 items-center hover:bg-active rounded`,onClick:t=>a(`select`,e)},[c(`div`,{class:`h-5 rounded shadow border border-base`,style:f({background:s(e),width:`${e.size/n.selected.size*100}%`})},null,4),v(X,{duration:e.size,class:`text-xs`},null,8,[`duration`]),e.children.length>0&&e.meta?.type!==`hook`?g((d(),l(`div`,{key:0,title:`${e.children.length} dependencies`,class:`text-xs op-fade`},[t(` (`+u(e.children.length)+`) `,1)],8,Ct)),[[p,`${e.children.length} dependencies`]]):T(``,!0)],8,St)],64))),128))])):T(``,!0)])])}}});function Tt(e){let{data:t,nameKey:n,sizeKey:s,rootText:c,nodeType:l,graphOptions:u,onUpdate:d}=e,f=i(void 0),p=i(void 0),m=r(void 0),h=i(void 0),g,_=E(()=>{if(e.tree)return e.tree.value;let r=y(t),i=new Map,a=0,o={id:`~root`,text:c,size:0,sizeSelf:0,children:[]};if(!r?.length)return{map:i,root:o,maxDepth:a};let u=[];u.unshift(()=>{o.size+=o.children.reduce((e,t)=>e+t.size,0),o.subtext=Y(o.size).join(` `),o.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function d(e,t,n,r,o){if(i.has(t))return i.get(t);o>a&&(a=o);let s={id:t,text:n,size:0,sizeSelf:0,children:[],meta:{...e,path:n,type:`folder`},parent:r};return i.set(t,s),r.children.push(s),u.unshift(()=>{let t=s.sizeSelf;s.size+=s.children.reduce((e,t)=>e+t.size,0),s.subtext=Y(s.size).join(` `),s.children.length&&t/s.size>.1&&s.children.push({id:`${s.id}-self`,text:``,size:t,sizeSelf:t,subtext:Y(t).join(` `),children:[],meta:{...e,path:``,type:l},parent:s}),s.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),s}function f(e){let t=e[n].split(`/`).filter(Boolean),r=o,a=``,c=0;t.forEach((o,u)=>{if(a+=(a?`/`:``)+o,c++,u===t.length-1){let t={id:e[n],text:o,size:e[s],sizeSelf:e[s],subtext:Y(e[s]).join(` `),children:[],meta:{...e,path:o,type:l}};r.children.push(t),i.set(e[n],t)}else r=d(e,a,o,r,c)})}return r.forEach(f),u.forEach(e=>e()),{map:i,root:o,maxDepth:a}}),v=E(()=>({animate:J.value.chartAnimation,palette:{stroke:H.value?`#222`:`#555`,fg:H.value?`#fff`:`#000`,bg:H.value?`#111`:`#fff`},getColor:pe(_.value.root,H.value?.8:.9,H.value?1:1.1),getSubtext:e=>e.subtext,...u}));function x(e,t){m.value=e?.meta,e?.children.length||(e=e?.parent),h.value?.select(e,t)}function S(){g?.(),p.value=_.value.root,d?.(),a(()=>{let e=m.value&&_.value.map.get(m.value[n])||null;e&&x(e,!1)}),g=()=>{h.value?.dispose(),h.value=void 0,m.value=void 0}}return a(()=>{b(()=>[_.value,v.value],()=>{S()},{deep:!0,immediate:!1}),S()}),o(()=>{g?.()}),{tree:_,chartOptions:v,graph:h,nodeHover:f,nodeSelected:p,selectedNode:m,selectNode:x,buildGraph:S}}var Et={key:1,class:`relative h-full w-full`},Dt={class:`bg-glass absolute left-2 top-2 z-panel-content p2 border border-base rounded-lg flex flex-col gap-2`},Ot={class:`font-mono px1`},kt={class:`text-xs font-mono flex items-center gap-3 ml2`},At={class:`flex gap-2`},jt={class:`of-auto h-full pt-30`},Mt={key:2,class:`flex items-center justify-center w-full h-full`},Nt={key:0,class:`border border-base rounded-lg shadow-lg px3 py2 bg-glass pointer-events-none text-sm max-w-80`},Pt={key:0,class:`flex items-center gap2`},Ft={key:0,class:`flex font-semibold font-mono text-base mb2`},It={key:1,class:`border-t border-base pt2 flex flex-col gap-1.5 min-w-48`},Lt={class:`flex justify-between items-center py1`},Rt=[`datetime`],zt={class:`flex justify-between items-center py1`},Bt=[`datetime`],Vt={class:`flex justify-between items-center py1 border-t border-base border-dashed pt2`},Ht={key:2},Ut=Object.assign(s({__name:`PluginDetailsLoader`,props:{plugin:{},query:{},modules:{},root:{}},emits:[`close`],setup(e,{emit:r}){let i=e,a=r,o=j(),{state:s,isLoading:f,execute:p}=F(async()=>await o.value.call(`vite:inspect:get-plugin-details`,i.query,i.plugin),null),h=O(()=>{p()},100);b(()=>[i.query.vite,i.query.env,i.plugin],()=>{p()}),N(()=>{h()});let g=E(()=>{let e=new Set;return s.value?.calls?.filter(t=>!e.has(t.module)&&(e.add(t.module),!0))??[]}),x=E(()=>s.value?.loadMetrics.reduce((e,t)=>e+t.duration,0)),S=E(()=>s.value?.transformMetrics.reduce((e,t)=>e+t.duration,0)),w=E(()=>s.value?.resolveIdMetrics.reduce((e,t)=>e+t.duration,0)),k=E(()=>s.value?.calls?.reduce((e,t)=>e+t.duration,0)),ee=E(()=>i.modules.map(e=>({mod:e,path:me(e.id,i.root),type:K(e.id)}))),A=E(()=>G.filter(e=>ee.value.some(t=>e.match.test(t.mod.id))));function M(e){return e?`/graph?module=${encodeURIComponent(e)}`:!1}let P=E(()=>{let e=new Map;if(!s.value)return{root:t({id:`~root`,text:`Project`,children:[]}),map:new Map,maxDepth:3};function t(t,n){e.set(t.id,t);let r=oe(t,n,(e,t)=>(t?.meta?.duration??0)-(e?.meta?.duration??0));return r.children&&r.children.forEach(e=>{e.parent=r}),r}function n(e,n){let r=n.filter(e=>!A.value.some(t=>K(e.module).name===t.name));return[...A.value.map((r,i)=>{let a=n.filter(e=>K(e.module).name===r.name);return t({id:`${e}-${r.name}-${i}`,text:r.description,children:a.map((n,r)=>t({id:`${e}-${r}`,text:n.module,size:n.duration,meta:n})),meta:{type:`module`,title:r.description,id:`${e}-${r.name}-${i}`,duration:a.reduce((e,t)=>e+t.duration,0)}})}),t({id:`${e}-other`,text:`Other`,children:r.map((n,r)=>t({id:`${e}-other-${r}`,text:n.module,size:n.duration,meta:n})),meta:{type:`module`,title:`Other`,id:`${e}-other`,duration:r.reduce((e,t)=>e+t.duration,0)}})]}let r=n(`resolveId`,s.value.resolveIdMetrics),i=n(`loads`,s.value.loadMetrics),a=n(`transforms`,s.value.transformMetrics);function o(e,n,r){return t({id:e,text:n,children:r.sort((e,t)=>t.size-e.size),meta:{id:e,type:`hook`,title:n,duration:{"~loads":x.value,"~resolves":w.value,"~transforms":S.value}[e]}})}return{root:t({id:`~root`,text:`Project`,children:[o(`~resolves`,`Resolve Id`,r),o(`~loads`,`Load`,i),o(`~transforms`,`Transform`,a)]}),map:e,maxDepth:3}}),R=D(I()),{tree:z,chartOptions:B,graph:V,nodeHover:H,nodeSelected:U,selectedNode:W,selectNode:te,buildGraph:ne}=Tt({data:[],tree:P,nameKey:`id`,sizeKey:`duration`,rootText:`Project`,graphOptions:{onClick(e){e&&(H.value=e),W.value=e?.meta},onHover(e){e&&(H.value=e),e===null&&(H.value=void 0)},onLeave(){H.value=void 0},onSelect(e){U.value=e||z.value.root,W.value=e?.meta},getSubtext(e){return q(e.size,!0)}},onUpdate(){V.value=new ie(z.value.root,B.value)}});return b(()=>J.value.pluginDetailsViewType,()=>{ne()}),(r,i)=>{let o=L,p=dt,h=ge,b=le;return d(),l(_,null,[y(f)?(d(),n(o,{key:0})):y(s)?.calls?.length?(d(),l(`div`,Et,[v(se,{class:`absolute right-2 top-1.5`,onClick:i[0]||=e=>a(`close`)}),c(`div`,Dt,[c(`div`,Ot,[v(Z,{name:y(s)?.plugin_name},null,8,[`name`])]),c(`div`,kt,[v(X,{duration:w.value,class:`flex gap-1 items-center`,title:`Resolve Id hooks cost: ${y(q)(w.value,!0)}`},{default:m(()=>[...i[3]||=[c(`span`,{class:`i-ph-magnifying-glass-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),v(X,{duration:x.value,class:`flex gap-1 items-center`,title:`Load hooks cost: ${y(q)(x.value,!0)}`},{default:m(()=>[...i[4]||=[c(`span`,{class:`i-ph-upload-simple-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),v(X,{duration:S.value,class:`flex gap-1 items-center`,title:`Transform hooks cost: ${y(q)(S.value,!0)}`},{default:m(()=>[...i[5]||=[c(`span`,{class:`i-ph-magic-wand-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),i[7]||=c(`span`,{class:`op40`},`|`,-1),v(X,{duration:k.value,class:`flex gap-1 items-center`,title:`Total build cost: ${y(q)(k.value,!0)}`},{default:m(()=>[...i[6]||=[c(`span`,{class:`i-ph-clock-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),i[8]||=c(`span`,{class:`op40`},`|`,-1),v($,{number:g.value.length,icon:`i-catppuccin-java-class-abstract`,color:`transparent color-scale-neutral`,title:`Module processed: ${g.value.length}`},null,8,[`number`,`title`]),i[9]||=c(`span`,{class:`op40`},`|`,-1),v($,{number:y(s)?.calls?.length??0,icon:`i-ph-arrow-counter-clockwise`,color:`transparent color-scale-neutral`,title:`Total calls: ${y(s)?.calls?.length??0}`},null,8,[`number`,`title`])]),c(`div`,At,[c(`button`,{class:C([y(J).pluginDetailsViewType===`flow`?`text-primary`:``,`flex gap-2 items-center justify-center px2 py1 w-40 border border-base rounded-lg hover:bg-active`]),onClick:i[1]||=e=>y(J).pluginDetailsViewType=`flow`},[...i[10]||=[c(`div`,{class:`i-ph-git-branch-duotone rotate-180`},null,-1),t(` Build Flow `,-1)]],2),c(`button`,{class:C([y(J).pluginDetailsViewType===`sunburst`?`text-primary`:``,`flex gap-2 items-center justify-center px2 py1 w-40 border border-base rounded-lg hover:bg-active`]),onClick:i[2]||=e=>y(J).pluginDetailsViewType=`sunburst`},[...i[11]||=[c(`div`,{"i-ph-chart-sunburst-duotone":``},null,-1),t(` Sunburst `,-1)]],2)])]),c(`div`,jt,[y(J).pluginDetailsViewType===`flow`?(d(),n(p,{key:0,modules:e.modules,"build-metrics":y(s),root:e.root},null,8,[`modules`,`build-metrics`,`root`])):T(``,!0),y(J).pluginDetailsViewType===`sunburst`&&y(V)?(d(),n(wt,{key:1,graph:y(V),selected:y(U),onSelect:y(te)},{module:m(({child:t})=>[v(h,{id:t.text,class:`w-full border-none ws-nowrap hover:bg-active border border-base rounded block px2 py1`,cwd:e.root,link:M(t.meta?.graphModuleId)},null,8,[`id`,`cwd`,`link`])]),_:1},8,[`graph`,`selected`,`onSelect`])):T(``,!0)])])):(d(),l(`div`,Mt,[...i[12]||=[c(`span`,{class:`italic op50`},` No data `,-1)]])),v(b,{"hover-x":R.x,"hover-y":R.y},{default:m(()=>[y(H)?(d(),l(`div`,Nt,[y(H).meta?.title?(d(),l(`div`,Pt,[t(u(y(H).meta.title)+` `,1),v(X,{duration:y(H).meta.duration},null,8,[`duration`])])):(d(),l(_,{key:1},[y(H).meta?.module?(d(),l(`div`,Ft,[v(h,{id:y(H).meta.module,cwd:e.root,link:!1},null,8,[`id`,`cwd`])])):T(``,!0),y(H).meta?.module?(d(),l(`div`,It,[c(`div`,Lt,[i[13]||=c(`label`,{class:`text-xs opacity-70`},`Start Time`,-1),c(`time`,{datetime:new Date(y(H).meta.timestamp_start).toISOString(),class:`font-mono text-xs px1.5 py0.5 rounded`,bg:`base/10`},u(y(Q)(y(H).meta.timestamp_start)),9,Rt)]),c(`div`,zt,[i[14]||=c(`label`,{class:`text-xs opacity-70`},`End Time`,-1),c(`time`,{datetime:new Date(y(H).meta.timestamp_end).toISOString(),class:`font-mono text-xs px1.5 py0.5 rounded`,bg:`base/10`},u(y(Q)(y(H).meta.timestamp_end)),9,Bt)]),c(`div`,Vt,[i[15]||=c(`label`,{class:`text-xs op70`},`Duration`,-1),v(X,{duration:y(H).meta.duration},null,8,[`duration`])])])):(d(),l(`div`,Ht,[v(X,{duration:y(H).meta?.duration},null,8,[`duration`])]))],64))])):T(``,!0)]),_:1},8,[`hover-x`,`hover-y`])],64)}}}),{__name:`DataPluginDetailsLoader`}),Wt={class:`flex flex-col gap-2 p4`},Gt={class:`flex pb2`},Kt={class:`w-8 text-right text-xs op50`},qt={class:`overflow-hidden text-ellipsis break-all line-clamp-2`},Jt=s({__name:`PluginsFlatList`,props:{plugins:{},itemSize:{},pageMode:{type:Boolean,default:!0},scroller:{default:`dynamic`}},setup(e){let t=B();return(n,r)=>(d(),l(`div`,Wt,[v(ae,{items:e.plugins,"key-prop":`plugin_id`,"item-size":e.itemSize,"page-mode":e.pageMode,scroller:e.scroller},{default:m(({item:e})=>[c(`div`,Gt,[v(y(z),{to:{path:y(t).path,query:{plugin:e.plugin_id}},class:`font-mono border rounded border-base w-full px2 py1 text-sm hover:bg-active flex gap-4 items-center`},{default:m(()=>[c(`div`,Kt,` #`+u(e.plugin_id),1),c(`span`,qt,[v(Z,{name:e.name},null,8,[`name`])])]),_:2},1032,[`to`])])]),_:1},8,[`items`,`item-size`,`page-mode`,`scroller`])]))}}),Yt={key:1,class:`h-full flex flex-col gap-3 items-center justify-center p8 text-center`},Xt={class:`font-mono text-sm max-w-180 ws-pre-wrap`},Zt={key:2,class:`relative min-h-screen`},Qt={class:`sticky left-4 right-4 top-4 z-panel-nav p-4`},$t={class:`fixed bottom-4 py-1 px-2 bg-glass left-1/2 translate-x--1/2 border border-base rounded-full text-center text-xs`},en={class:`op50`},tn=s({__name:`plugins`,setup(e){let a=j(),o=B(),s=V(),f=i(null),p=i([]),m=r(!0),h=r(null),g=E(()=>typeof o.query.plugin==`string`?o.query.plugin:void 0),_=r({search:o.query.search||``,selected:o.query.plugin_types?G(o.query.plugin_types):null}),y=E(()=>f.value?.instances[0]),b=E(()=>y.value?.environments[0]||``),x=E(()=>y.value?.root||``),C=E(()=>!y.value?.vite||!b.value?null:{vite:y.value.vite,env:b.value}),w=E(()=>y.value?.plugins.map((e,t)=>I(e,t))??[]),D=E(()=>[...te.filter(e=>w.value.some(t=>e.match.test(t.name))),re]),k=E(()=>{let e=w.value;return _.value.selected&&(e=e.filter(e=>{let t=ce(e.name);return _.value.selected.includes(t.name)})),e}),A=M(()=>k.value,()=>new fe(k.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),F=E(()=>_.value.search?A.value.search(_.value.search).map(e=>e.item):k.value);ee(_.value,e=>{s.replace({query:K({...o.query,search:e.search||void 0,plugin_types:e.selected||void 0})})},{debounce:500});function I(e,t){let n=e&&typeof e==`object`?e:{};return{plugin_id:t,name:typeof n.name==`string`?n.name:`plugin-${t}`,enforce:n.enforce===`pre`||n.enforce===`post`?n.enforce:void 0}}function z(){g.value&&s.replace({query:{...o.query,plugin:void 0}})}async function H(e={}){e.silent||(m.value=!0),h.value=null;try{f.value=await a.value.call(`vite:inspect:get-metadata`),C.value?p.value=(await a.value.call(`vite:inspect:get-modules-list`,C.value)).map(W):p.value=[]}catch(e){h.value=e}finally{e.silent||(m.value=!1)}}let U=O(()=>{H({silent:!0})},100);function W(e){return{...e,imports:e.deps.map(e=>({module_id:e}))}}function G(e){return Array.isArray(e)?e.map(String):[String(e)]}function K(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}return S(()=>{H()}),N(()=>{U()}),P(`Escape`,e=>{e.preventDefault(),!(!e.isTrusted||e.repeat)&&z()}),(e,r)=>{let i=L,a=Ut;return m.value?(d(),n(i,{key:0,text:`Loading plugins...`})):h.value?(d(),l(`div`,Yt,[r[3]||=c(`div`,{class:`i-ph-warning-duotone text-4xl text-amber`},null,-1),c(`div`,Xt,u(h.value.message),1),c(`button`,{class:`btn-action`,onClick:r[0]||=e=>H()},[...r[2]||=[c(`span`,{class:`i-ph-arrow-clockwise-duotone`},null,-1),t(` Retry `,-1)]])])):(d(),l(`div`,Zt,[c(`div`,Qt,[v(ue,{modelValue:_.value,"onUpdate:modelValue":r[1]||=e=>_.value=e,rules:D.value},null,8,[`modelValue`,`rules`])]),v(Jt,{plugins:F.value??[],scroller:`window`},null,8,[`plugins`]),c(`div`,$t,[c(`span`,en,u(F.value.length)+` of `+u(w.value.length||0),1)]),g.value&&C.value?(d(),l(`div`,{key:0,class:`fixed inset-0 backdrop-blur-8 backdrop-brightness-95 z-panel-content`,onClick:R(z,[`self`])},[(d(),l(`div`,{key:g.value,class:`fixed right-0 bottom-0 top-20 left-20 z-panel-content bg-glass border-l border-t border-base rounded-tl-xl`},[v(a,{plugin:g.value,query:C.value,modules:p.value,root:x.value,onClose:z},null,8,[`plugin`,`query`,`modules`,`root`])]))])):T(``,!0)]))}}});export{tn as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Chq5OY5R.js","./CWSbPOrM.js","./Cuytw1DO.js","./NLJpu4QF.js","./rpc.CVTFzytL.css","./CUfzouSj.js","./5a4ooAmr.js","./DSc9st6e.js","./BDNMzG2s.js","./filepath.CX8PXv9n.css","./graph.qvMalRQi.css","./CwB8Gs10.js","./Dab6ytD9.js","./plugins.CtM-Tp_V.css","./BzEa-0f6.js","./ho86HYDA.js","./error-404.DdAfs9rw.css","./C3YPSWJQ.js","./error-500.D_NIZVkd.css"])))=>i.map(i=>d[i]);
2
+ import{$ as e,$t as t,C as n,Ct as r,Dt as i,Et as a,F as o,G as s,H as c,I as l,Jt as u,K as d,L as f,M as p,N as m,P as h,Q as g,Qt as _,R as v,S as y,T as b,U as x,V as S,W as C,X as w,Xt as T,Y as E,Yt as D,Z as O,_ as k,_t as ee,a as A,bt as te,c as ne,d as re,dt as j,en as ie,et as ae,f as oe,ft as se,g as ce,gt as le,i as M,j as N,jt as P,kt as ue,lt as de,n as fe,nn as pe,nt as me,o as he,p as ge,pt as _e,qt as ve,r as F,rt as ye,t as be,tt as xe,u as Se,ut as Ce,v as we,vt as Te,w as Ee,wt as De,x as I,xt as Oe,y as ke,z as Ae}from"./CWSbPOrM.js";import{C as je,D as Me,r as Ne,t as Pe,z as Fe}from"./Cuytw1DO.js";import{$ as Ie,A as Le,B as L,C as Re,D as ze,E as Be,F as Ve,G as He,H as Ue,I as We,K as Ge,L as R,M as Ke,N as qe,O as Je,P as Ye,R as Xe,S as Ze,T as Qe,U as $e,V as et,W as tt,X as nt,Y as rt,_ as it,b as at,c as ot,d as st,f as ct,g as lt,h as ut,i as dt,j as ft,k as pt,l as mt,m as ht,o as gt,p as _t,q as vt,s as z,t as yt,u as B,v as bt,w as xt,x as St,y as Ct,z as wt}from"./CUfzouSj.js";import{_ as Tt,a as Et,c as Dt,f as Ot,g as kt,h as At,i as jt,m as Mt,n as Nt,o as Pt,p as Ft,r as It,s as Lt,t as Rt,v as zt}from"./5a4ooAmr.js";import{a as Bt,f as Vt,i as Ht,m as Ut,o as Wt,r as Gt,s as Kt,u as qt}from"./NLJpu4QF.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Jt=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Yt=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Xt=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Zt(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){Qt(e);return}return t}function Qt(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function $t(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!Xt.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(Jt.test(e)||Yt.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,Zt)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}var en=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function tn(e){let t=e.error?.message||e.error?.toString()||``,n=e.request?.method||e.options?.method||`GET`,r=e.request?.url||String(e.request)||`/`,i=new en(`${`[${n}] ${JSON.stringify(r)}`}: ${e.response?`${e.response.status} ${e.response.statusText}`:`<no response>`}${t?` ${t}`:``}`,e.error?{cause:e.error}:void 0);for(let t of[`request`,`options`,`response`])Object.defineProperty(i,t,{get(){return e[t]}});for(let[t,n]of[[`data`,`_data`],[`status`,`status`],[`statusCode`,`status`],[`statusText`,`statusText`],[`statusMessage`,`statusText`]])Object.defineProperty(i,t,{get(){return e.response&&e.response[n]}});return i}var nn=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function rn(e=`GET`){return nn.has(e.toUpperCase())}function an(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}var on=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),sn=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function cn(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return sn.test(t)?`json`:t===`text/event-stream`?`stream`:on.has(t)||t.startsWith(`text/`)?`text`:`blob`}function ln(e,t,n,r){let i=un(t?.headers??e?.headers,n?.headers,r),a;return(n?.query||n?.params||t?.params||t?.query)&&(a={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:a,params:a,headers:i}}function un(e,t,n){if(!t)return new n(e);let r=new n(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(t,i);return r}async function dn(e,t){if(t){if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}}var fn=new Set([408,409,425,429,500,502,503,504]),pn=new Set([101,204,205,304]);function mn(e={}){let{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function i(e){let t=e.error&&e.error.name===`AbortError`&&!e.options.timeout||!1;if(e.options.retry!==!1&&!t){let t;t=typeof e.options.retry==`number`?e.options.retry:+!rn(e.options.method);let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):fn.has(n))){let n=typeof e.options.retryDelay==`function`?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),a(e.request,{...e.options,retry:t-1})}}let n=tn(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,a),n}let a=async function(a,o={}){let s={request:a,options:ln(a,o,e.defaults,n),response:void 0,error:void 0};if(s.options.method&&(s.options.method=s.options.method.toUpperCase()),s.options.onRequest&&(await dn(s,s.options.onRequest),s.options.headers instanceof n||(s.options.headers=new n(s.options.headers||{}))),typeof s.request==`string`&&(s.options.baseURL&&(s.request=qt(s.request,s.options.baseURL)),s.options.query&&(s.request=Vt(s.request,s.options.query),delete s.options.query),`query`in s.options&&delete s.options.query,`params`in s.options&&delete s.options.params),s.options.body&&rn(s.options.method)){if(an(s.options.body)){let e=s.options.headers.get(`content-type`);typeof s.options.body!=`string`&&(s.options.body=e===`application/x-www-form-urlencoded`?new URLSearchParams(s.options.body).toString():JSON.stringify(s.options.body)),e||s.options.headers.set(`content-type`,`application/json`),s.options.headers.has(`accept`)||s.options.headers.set(`accept`,`application/json`)}else(`pipeTo`in s.options.body&&typeof s.options.body.pipeTo==`function`||typeof s.options.body.pipe==`function`)&&(`duplex`in s.options||(s.options.duplex=`half`))}let c;if(!s.options.signal&&s.options.timeout){let e=new r;c=setTimeout(()=>{let t=Error(`[TimeoutError]: The operation was aborted due to timeout`);t.name=`TimeoutError`,t.code=23,e.abort(t)},s.options.timeout),s.options.signal=e.signal}try{s.response=await t(s.request,s.options)}catch(e){return s.error=e,s.options.onRequestError&&await dn(s,s.options.onRequestError),await i(s)}finally{c&&clearTimeout(c)}if((s.response.body||s.response._bodyInit)&&!pn.has(s.response.status)&&s.options.method!==`HEAD`){let e=(s.options.parseResponse?`json`:s.options.responseType)||cn(s.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await s.response.text(),t=s.options.parseResponse||$t;s.response._data=t(e);break}case`stream`:s.response._data=s.response.body||s.response._bodyInit;break;default:s.response._data=await s.response[e]()}}return s.options.onResponse&&await dn(s,s.options.onResponse),!s.options.ignoreResponseError&&s.response.status>=400&&s.response.status<600?(s.options.onResponseError&&await dn(s,s.options.onResponseError),await i(s)):s.response},o=async function(e,t){return(await a(e,t))._data};return o.raw=a,o.native=(...e)=>t(...e),o.create=(t={},n={})=>mn({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),o}var hn=(function(){if(typeof globalThis<`u`)return globalThis;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof globalThis<`u`)return globalThis;throw Error(`unable to locate global object`)})(),gn=hn.fetch?(...e)=>hn.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),_n=hn.Headers,vn=hn.AbortController,yn=mn({fetch:gn,Headers:_n,AbortController:vn}),bn=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,xn=()=>bn().app,Sn=()=>xn().baseURL,Cn=()=>xn().buildAssetsDir,wn=(...e)=>Wt(Tn(),Cn(),...e),Tn=(...e)=>{let t=xn(),n=t.cdnURL||t.baseURL;return e.length?Wt(n,...e):n};globalThis.__buildAssetsURL=wn,globalThis.__publicAssetsURL=Tn,globalThis.$fetch||(globalThis.$fetch=yn.create({baseURL:Sn()}));var En=globalThis.$fetch;`global`in globalThis||(globalThis.global=globalThis);function Dn(e,t){t.push(he),e.vueApp.use(t);let n=!0,r=()=>{n=!1,t.render()};t.hooks?.hook(`dom:beforeRender`,e=>{e.shouldRender=!n}),e.hooks.hook(`page:start`,()=>{n=!0}),e.hooks.hook(`page:finish`,()=>{e.isHydrating||r()}),e.hooks.hook(`app:error`,r),e.hooks.hook(`app:suspense:resolve`,r);let i=t.push.bind(t);t.push=((t,n)=>{let r=i(t,n),a=r.dispose.bind(r);return r.dispose=()=>{let t=e[`~transitionPromise`];t?t.finally(a):a()},r})}function On(e,t){if(typeof t==`function`&&t.key&&e.plugins.has(t.key))return;let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);if(!e.plugins.get(r)){e.plugins.set(r,n);for(let t in n.hooks||{})e.hooks?.hook(t,n.hooks[t])}}function kn(e,t={}){let n=!t.document,r=new Map,i={_entryCount:1,_h:0,plugins:new Map,resolvedOptions:t,ssr:n,entries:r,hooks:void 0,render:()=>e(i),use:e=>On(i,e),push(e,t){let a=t?._index??i._entryCount++,o=t?{...t}:{};delete o.head,delete o.onRendered,delete o._index;let s={_i:a,input:e,options:o};return r.set(a,s),{_i:a,dispose(){r.delete(a)},patch(e){n?(s.input=e,delete s._tags):s._pending=e,r.has(a)||r.set(a,s)}}}};return t.init?.forEach(e=>e&&i.push(e)),i}var An=new Set([`link`,`style`,`script`,`noscript`]),jn=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),Mn=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),Nn=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),Pn=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),Fn=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),In=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),Ln=new Set([`theme-color`,`google-site-verification`,`author`,`og:locale:alternate`,`og:image`,`og:video`,`og:audio`,`article:author`,`article:tag`,`book:author`,`book:tag`,`twitter:image`]),Rn={critical:-8,high:-1,low:2},zn=e=>typeof e==`number`?Number.isFinite(e):e;function Bn(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function Vn(e){let t=new ge;for(let n in e||{})t.hook(n,e[n]);return t}function Hn(e,t,n){if(e.hooks?._hooks?.[t]?.length)return e.hooks?.callHook(t,n)}function Un(e,t,n){let r=e.push,i=e;return i.ssr=!1,i.hooks=t,i.dirty=!!i.dirty,i.use=e=>On(i,e),i.render=()=>n(i),i.invalidate=()=>{for(let e of i.entries.values())delete e._tags;i.dirty=!0,t.callHook(`entries:updated`,i)},i.push=(n,a)=>{let o=a?.onRendered?t.hook(`dom:rendered`,a.onRendered):void 0,s=r(n,a),c=e.entries.get(s._i);return c&&(c._o=n),i.dirty=!0,t.callHook(`entries:updated`,i),{_i:s._i,patch(e){s.patch(e),i.dirty=!0,t.callHook(`entries:updated`,i)},dispose(){o?.(),e.entries.has(s._i)&&(s.dispose(),i.invalidate())}}},t.hook(`entries:updated`,()=>{i.render()}),i}var Wn=/^(?:viewport|description|keywords|robots)$/,Gn=[`name`,`property`,`http-equiv`];function Kn(e){let t=e.indexOf(`:`);if(t===-1)return!1;let n=e.slice(t+1);return Ln.has(n)||n.startsWith(`og:image:`)||n.startsWith(`og:video:`)||n.startsWith(`og:audio:`)||n.startsWith(`twitter:image:`)}function qn(e){let{props:t,tag:n,key:r}=e;if(Pn.has(n))return n;if(n===`link`){if(t.rel===`canonical`)return`canonical`;if(t.rel===`alternate`&&t.hreflang)return`alternate:${t.hreflang}`}if(t.charset)return`charset`;if(n===`meta`)for(let e of Gn){let n=t[e];if(n!==void 0)return`meta:${n}${(typeof n!=`string`||!n.includes(`:`))&&!Wn.test(n)&&r?`:key:${r}`:``}`}return r?`${n}:key:${r}`:t.id?`${n}:id:${t.id}`:n===`link`&&t.rel&&t.href?`link:${t.rel}:${t.href}`:jn.has(n)&&(e.textContent||e.innerHTML)?`${n}:content:${e.textContent||e.innerHTML}`:void 0}function Jn(e){let t=e._h||e._d||e.textContent||e.innerHTML;if(t)return t;let n=Object.keys(e.props).sort(),r=`${e.tag}:`,i=``;for(let t of n)r+=`${i}${t}:${String(e.props[t])}`,i=`,`;return r}function Yn(e,t,n){if(n===`_resolver`)return e;typeof e==`function`&&(!n||n!==`titleTemplate`&&!n.startsWith(`on`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r)){let e;for(let n=0;n<r.length;n++){let i=Yn(r[n],t);e?e[n]=i:i!==r[n]&&(e=r.slice(0,n),e[n]=i)}return e||r}if(r?.constructor===Object){let e;for(let n in r){let i=Bn(n),a=i?void 0:Yn(r[n],t,n);if(!e&&(i||a!==r[n])){e={};for(let t in r){if(t===n)break;e[t]=r[t]}}e&&!i&&(e[n]=a)}return e||r}return r}var Xn=/[\s"'<>/=\x00-\x1F\x7F]/;function Zn(e,t){let n=e===`style`,r=n?new Map:new Set,i=e=>{if(e){if(n){let t=e.indexOf(`:`);t>0&&r.set(e.slice(0,t).trim(),e.slice(t+1).trim())}else e.split(` `).forEach(e=>e&&r.add(e))}};if(typeof t==`string`)(n?t.split(`;`):[t]).forEach(i);else if(Array.isArray(t))t.forEach(i);else if(t&&typeof t==`object`)for(let e in t){let a=t[e];a&&a!==`false`&&(n?r.set(e.trim(),String(a)):i(e))}return r}function Qn(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=Mn.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;for(let r in t){if(Bn(r))continue;let i=r.startsWith(`data-`),a=n&&!Fn.has(r),o=a&&!i?r.toLowerCase():r;if(a&&(!o||Xn.test(o)))continue;let s=t[r];if(s===null)e.props[o]=null;else if(r===`class`||r===`style`)e.props[r]=Zn(r,s);else if(Fn.has(r)){if((r===`textContent`||r===`innerHTML`)&&typeof s==`object`){let n=t.type||`application/json`;(n.endsWith(`json`)||n===`speculationrules`||n===`importmap`)&&(e.props.type=t.type=n,e[r]=JSON.stringify(s))}else e[r]=s}else if(s!==void 0){let t=String(s),n=e.tag===`meta`&&o===`content`;e.props[o]=t===`true`||t===``?i||n?t:!0:!s&&i&&t===`false`?`false`:s}}return e}function $n(e,t){let n;return t.length&&(n=(e,n)=>{for(let r=0;r<t.length;r++)n=t[r](e,n);return n},e=n(void 0,e)),Yn(e,n)}function er(e,t){let n=Qn({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});if(n.key&&An.has(n.tag)&&(n.props[`data-hid`]=n._h=n.key),n.tag===`script`&&typeof n.innerHTML==`object`&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||`application/json`),Array.isArray(n.props.content)){let e=[];for(let t of n.props.content)e.push({...n,props:{...n.props,content:t}});return e}return n}function tr(e,t){if(Array.isArray(t))for(let n of t)e.push(n);else e.push(t)}function nr(e,t){if(!e)return[];typeof e==`function`&&(e=e()),e=$n(e,t);let n=[];for(let t in e){let r=e[t];if(r!==void 0){if(Array.isArray(r))for(let e of r)tr(n,er(t,e));else tr(n,er(t,r))}}return n}var rr=/</g,ir=/<\/script/g,ar=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,or=()=>100;function sr(e){for(let t in e)return!1;return!0}var cr=/^tags:|:render/;function lr(e,t){let n=(t[`entries:resolve`]?.length||0)+(t[`entries:normalize`]?.length||0);if(e._h!==n){e._h=n;for(let t of e.entries.values())delete t._tags}}function ur(e){for(let t=0;t<e.length;t++){let n=e[t],r={...n.props};r.class instanceof Set&&(r.class=new Set(r.class)),r.style instanceof Map&&(r.style=new Map(r.style)),e[t]={...n,props:r}}}function dr(e,t){let n=e.tags,r=0;for(let t of e.tagMap.values())if(Array.isArray(t))for(let e of t)n[r++]=e;else n[r++]=t;n.length=r,t&&n.sort(ar)}function fr(e){let t=!1;for(let n of e.tags.sort(ar)){let r=n._d||Jn(n);if(!r)continue;let i=e.tagMap.get(r);if(!i){e.tagMap.set(r,n);continue}if((n.tagDuplicateStrategy||(In.has(n.tag)?`merge`:null)||(n.key&&n.key===i.key?`merge`:null))===`merge`){let t={...i.props};for(let e in n.props)t[e]=e===`style`?new Map([...i.props.style||new Map,...n.props[e]]):e===`class`?new Set([...i.props.class||[],...n.props[e]]):n.props[e];e.tagMap.set(r,{...n,props:t})}else n._p>>10==i._p>>10&&n.tag===`meta`&&Kn(r)?(e.tagMap.set(r,Object.assign([...Array.isArray(i)?i:[i],n],n)),t=!0):(n._w===i._w?n._p>i._p:n._w<i._w)&&e.tagMap.set(r,n)}return t}function pr(e,t){let n=e.tagMap.get(`title`),r=e.tagMap.get(`titleTemplate`);if(t._title=n?.textContent,!r)return;let i=r.textContent;if(t._titleTemplate=i,!i)return;let a=typeof i==`function`?i(n?.textContent):i;typeof a==`string`&&!t.plugins.has(`template-params`)&&(a=a.replace(`%s`,n?.textContent||``)),n?a===null?e.tagMap.delete(`title`):e.tagMap.set(`title`,{...n,textContent:a}):e.tagMap.set(`titleTemplate`,{...r,tag:`title`,textContent:a})}function mr(e){let t=0;for(let n of e){let{innerHTML:r,tag:i,props:a}=n;if(!(!Nn.has(i)||sr(a)&&!zn(r)&&!zn(n.textContent))&&!(i===`meta`&&!zn(a.content)&&!a[`http-equiv`]&&!a.charset)){if(i===`script`&&(r||n.textContent)){let e=String(a.type),t=e.endsWith(`json`)||e===`importmap`||e===`speculationrules`,i=e=>t?(typeof e==`string`?e:JSON.stringify(e)).replace(rr,`\\u003C`):typeof e==`string`?e.replace(ir,`<\\/script`):e;n={...n},r&&(n.innerHTML=i(r)),n.textContent&&(n.textContent=i(n.textContent)),n._d=qn(n)}e[t++]=n}}return e.length=t,e}function hr(e,t){let n=t?.tagWeight??e.resolvedOptions._tagWeight??or,r={tagMap:new Map,tags:[]},i=e.hooks?._hooks||{};lr(e,i);for(let t of e.entries.values())t._pending!==void 0&&(t.input=t._pending,delete t._pending,delete t._tags,delete t._precomputedTags);let a;(i[`entries:resolve`]?.length||i[`entries:normalize`]?.length)&&(a=[...e.entries.values()],i[`entries:resolve`]?.length&&Hn(e,`entries:resolve`,{entries:a,...r})),lr(e,i);for(let t of a||e.entries.values()){let a=t._tags;if(!a){if(t._precomputedTags&&n===e.resolvedOptions._tagWeight&&!i[`entries:normalize`]?.length&&!i[`entries:resolve`]?.length&&(!t.options||sr(t.options)))a=t._precomputedTags;else{if(a=nr(t.input,e.resolvedOptions.propResolvers||[]),t.options&&!sr(t.options))for(let e of a)Object.assign(e,t.options);if(i[`entries:normalize`]?.length){let n={tags:a,entry:t};Hn(e,`entries:normalize`,n),a=n.tags}for(let e=0;e<a.length;e++){let r=a[e];r._w=n(r),r._p=(t._i<<10)+e,r._d=qn(r),r._d||(r._h=Jn(r))}t._tags=a}}r.tags.push(...a)}for(let e in i)if(i[e]?.length&&cr.test(e)){ur(r.tags);break}let o=fr(r);return pr(r,e),dr(r,o),Hn(e,`tags:beforeResolve`,r),Hn(e,`tags:resolve`,r),Hn(e,`tags:afterResolve`,r),mr(r.tags)}var gr=/\s+/;function _r(e={}){return t=>xr(t,e)}function vr(e){for(let t of e.entries.values())if(t._pending!==void 0)return!0;return!1}function yr(e){for(let t in e._s)e._s[t]();for(let t in e._p)e._p[t]();e._s={},e._p={},e._e.clear(),e._l.clear()}function br(e,t){let n={_d:t,_t:t.title,_e:new Map([[`htmlAttrs`,t.documentElement],[`bodyAttrs`,t.body]]),_p:{},_s:{},_l:new Map};for(let e of[...t.body.children,...t.head.children]){let t=e.tagName.toLowerCase();if(!Mn.has(t))continue;let r={innerHTML:e.innerHTML};for(let t of e.getAttributeNames())r[t]=e.getAttribute(t);let i=Qn({tag:t,props:{}},r);i.key=e.getAttribute(`data-hid`)||void 0;let a=qn(i)||Jn(i),o=a,s=1;for(;n._e.has(o);)o=`${a}:${s++}`;n._e.set(o,e)}for(let t of e.entries.values())if(t._o!==void 0){let e=t._o;for(let t of[`bodyAttrs`,`htmlAttrs`]){let r=e[t]?.class;if(typeof r==`string`){let e=n._e.get(t);for(let i of r.split(gr))i&&(n._p[`${t}:attr:class:${i}`]=()=>e.classList.remove(i))}}}return n}function xr(e,t={}){let n=t.document||e.resolvedOptions.document,r=e._dom,i=!!r&&r._d!==n;if(!n||r&&!i&&!e.dirty&&!vr(e)||e._du)return!1;let a=n.defaultView;e._du=!0;let o=!1;try{let r=function(e,t,n,r){let i=`${e}:${t}`;d._s[i]=!r&&d._p[i]||n,delete d._p[i]},i=function(e){let t=d._p[e];return delete d._p[e],t},s=function(e,t,n,i,a,o){let s=`event:${t}`,c=`${e}:${s}`,l=d._l.get(c);if(l&&l[0]===o&&l[1]===n&&l[2]===i){r(e,s,l[4]);return}l?.[4]();let u=`data-${t}`,f=(e=>i.call(a,e)),p=()=>{o.removeEventListener(n,f),a.getAttribute(u)===``&&a.removeAttribute(u),d._l.get(c)?.[3]===f&&d._l.delete(c)};o.addEventListener(n,f),d._l.set(c,[o,n,i,f,p]),a.setAttribute(u,``),r(e,s,p,!0)},c=function({id:e,$el:t,tag:n}){let o=n.tag.endsWith(`Attrs`);if(d._e.set(e,t),!o){let a=n.textContent;a!=null&&a!==``&&(a!==t.textContent&&(t.textContent=a),r(e,`text`,()=>{t.textContent===a&&(t.textContent=``)},!0));let o=n.innerHTML;o!=null&&o!==``&&(o!==t.innerHTML&&(t.innerHTML=o),r(e,`html`,()=>{t.innerHTML===o&&(t.innerHTML=``)},!0));let s=`${e}:el`;d._s[s]=i(s)||(()=>{t?.remove(),d._e.delete(e)})}for(let r in n.props){let o=n.props[r];if(r[0]===`o`&&r[1]===`n`&&typeof o==`function`){let i=r.slice(2);t?.dataset?.[`${r}fired`]&&o.call(t,new((a?.Event)||Event)(i)),s(e,r,i,o,t,n.tag===`bodyAttrs`&&a?a:t);continue}let c=`${e}:attr:${r}`;if(r===`class`&&o)for(let e of o){let n=`${c}:${e}`;d._s[n]=i(n)||(()=>t.classList.remove(e)),t.classList.contains(e)||t.classList.add(e)}else if(r===`style`&&o)for(let[e,n]of o){let r=`${c}:${e}`;d._s[r]=i(r)||(()=>t.style.removeProperty(e)),t.style.setProperty(e,n)}else o!==!1&&o!==null&&(t.getAttribute(r)!==o&&t.setAttribute(r,o===!0?``:String(o)),d._s[c]=i(c)||(()=>t.removeAttribute(r)))}},l={shouldRender:!0,tags:[]};if(Hn(e,`dom:beforeRender`,l),!l.shouldRender)return!1;let u=e._dom;u?._d!==n&&(u&&yr(u),u=void 0),u?u._p=u._s:u=br(e,n),u._s={};let d=u,f=[],p={};e.dirty=!1;let m=hr(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),h=[],g={};for(let e of m){let t=g[e._d]||0,i=(t?`${e._d}:${t}`:e._d)||e._h,a={tag:e,id:i,shouldRender:!0};if(e.tag===`meta`&&e._d&&Kn(e._d)&&(g[e._d]=t+1),h.push(a),e.tag===`title`){n.title=e.textContent,r(`title`,``,()=>n.title=d._t);continue}a.$el=d._e.get(i),a.$el?c(a):Mn.has(e.tag)&&f.push(a)}for(let e of f)e.$el=n.createElement(e.tag.tag),c(e),(p[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el);p.head&&n.head.appendChild(p.head),p.bodyOpen&&n.body.insertBefore(p.bodyOpen,n.body.firstChild),p.bodyClose&&n.body.appendChild(p.bodyClose);for(let e in d._p)d._p[e]();e._dom=d,o=!0,Hn(e,`dom:rendered`,{renders:h})}catch(t){throw e.dirty=!0,t}finally{e._du=!1}return o&&(e.dirty||vr(e))&&xr(e,t),o}var Sr=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(Rn[e.tagPriority]||0);function Cr(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||_r({document:e.document}),n=Un(kn(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:Sr,init:[]}),Vn(e.hooks),t);return e.plugins?.forEach(e=>n.use(e)),e.init?.forEach(e=>e&&n.push(e)),n}var wr=`usehead`;function Tr(){if(f()){let e=v(wr);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function Er(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(wr,e)}}.install}function Dr(e,t){return t&&typeof e==`function`&&(e.key=t),e}var Or=/\\/g,kr=/</g,Ar=/"/g,jr=/%\w+(?:\.\w+)?/g,Mr=`%separator`;function Nr(e,t,n=!1){let r;if(t===`s`||t===`pageTitle`)r=e.pageTitle;else if(t.includes(`.`)){let n=t.indexOf(`.`);r=e[t.substring(0,n)]?.[t.substring(n+1)]}else r=e[t];if(r!==void 0)return n?(r||``).replace(Or,`\\\\`).replace(kr,`\\u003C`).replace(Ar,`\\"`):r||``}function Pr(e,t,n,r=!1){if(typeof e!=`string`||!e.includes(`%`))return e;let i=e;try{i=decodeURI(e)}catch{}let a=i.match(jr);if(!a)return e;let o=e.includes(Mr);return e=e.replace(jr,e=>{if(e===Mr||!a.includes(e))return e;let n=Nr(t,e.slice(1),r);return n===void 0?e:n}).trim(),o&&(e=e.split(Mr).map(e=>e.trim()).filter(e=>e!==``).join(n?` ${n} `:` `)),e}var Fr=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Ir=e=>e.includes(`:key`)?e:e.split(`:`).join(`:key:`),Lr=Dr({key:`aliasSorting`,hooks:{"tags:resolve":e=>{let t=!1;for(let n of e.tags){let r=n.tagPriority;if(!r)continue;let i=String(r);if(i.startsWith(`before:`)){let r=Ir(i.slice(7)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p-1,t=!0)}else if(i.startsWith(`after:`)){let r=Ir(i.slice(6)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p+1,t=!0)}}t&&(e.tags=e.tags.sort(Fr))}}}),Rr=Dr({key:`deprecations`,hooks:{"entries:normalize":({tags:e})=>{for(let t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),`body`in t.props&&(t.props.body&&(t.tagPosition=`bodyClose`),delete t.props.body),t.props.renderPriority!=null&&(t.tagPriority=t.props.renderPriority,delete t.props.renderPriority)}}});function zr(e){return typeof e?.then==`function`}function Br(e){if(typeof e==`function`)return e;if(zr(e))return Promise.resolve(e).then(Br);if(Array.isArray(e)){let t=e.map(Br);return t.some(zr)?Promise.all(t):e}if(e?.constructor===Object){let t=Object.keys(e),n=t.map(t=>Br(e[t]));if(n.some(zr))return Promise.all(n).then(e=>Object.fromEntries(t.map((t,n)=>[t,e[n]])))}return e}var Vr=Dr(e=>{let t=new WeakMap;return{key:`promises`,hooks:{"entries:resolve":n=>{for(let r=n.entries.length-1;r>=0;r--){let i=n.entries[r],a=i.input;if(t.get(i)===a){n.entries.splice(r,1);continue}let o=Br(a);if(!zr(o)){t.delete(i);continue}t.set(i,a),n.entries.splice(r,1),Promise.resolve(o).then(n=>{t.get(i)===a&&(t.delete(i),i.input=n,delete i._tags,e.invalidate?.())},()=>{t.get(i)===a&&t.delete(i)})}}}}},`promises`),Hr={meta:`content`,link:`href`,htmlAttrs:`lang`},Ur=[`innerHTML`,`textContent`],Wr=Dr(e=>({key:`template-params`,hooks:{"tags:resolve":({tagMap:t,tags:n})=>{let r=t.get(`templateParams`)?.props||{},i=r.separator||`|`;delete r.separator,r.pageTitle=Pr(r.pageTitle||e._title||``,r,i);for(let e of n){if(e.processTemplateParams===!1)continue;let t=Hr[e.tag];if(t&&typeof e.props[t]==`string`)e.props[t]=Pr(e.props[t],r,i);else if(e.processTemplateParams||e.tag===`titleTemplate`||e.tag===`title`)for(let t of Ur)typeof e[t]==`string`&&(e[t]=Pr(e[t],r,i,e.tag===`script`&&typeof e.props.type==`string`&&e.props.type.endsWith(`json`)))}e._templateParams=r,e._separator=i},"tags:afterResolve":({tagMap:t})=>{let n=t.get(`title`);n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=Pr(n.textContent,e._templateParams,e._separator))}}}),`template-params`),Gr={META:new Set([`twitter`,`fediverse`]),OG:new Set([`og`,`book`,`article`,`profile`,`fb`,`payment`]),MEDIA:new Set([`ogImage`,`ogVideo`,`ogAudio`,`twitterImage`]),HTTP_EQUIV:new Set([`contentType`,`defaultStyle`,`xUaCompatible`])},Kr={articleExpirationTime:`article:expiration_time`,articleModifiedTime:`article:modified_time`,articlePublishedTime:`article:published_time`,bookReleaseDate:`book:release_date`,fbAppId:`fb:app_id`,ogAudioSecureUrl:`og:audio:secure_url`,ogAudioUrl:`og:audio`,ogImageSecureUrl:`og:image:secure_url`,ogImageUrl:`og:image`,ogSiteName:`og:site_name`,ogVideoSecureUrl:`og:video:secure_url`,ogVideoUrl:`og:video`,paymentExpiresAt:`payment:expires_at`,paymentSuccessUrl:`payment:success_url`,profileFirstName:`profile:first_name`,profileLastName:`profile:last_name`,profileUsername:`profile:username`,msapplicationConfig:`msapplication-Config`,msapplicationTileColor:`msapplication-TileColor`,msapplicationTileImage:`msapplication-TileImage`},qr=/([A-Z])/g,Jr=/^(?:og|twitter)/,Yr={appleItunesApp:{unpack:{entrySeparator:`, `,resolve:({key:e,value:t})=>`${V(e)}=${t}`}},refresh:{metaKey:`http-equiv`,unpack:{entrySeparator:`;`,resolve:({key:e,value:t})=>e===`seconds`?`${t}`:void 0}},robots:{unpack:{entrySeparator:`, `,resolve:({key:e,value:t})=>typeof t==`boolean`?V(e):`${V(e)}:${t}`}},contentSecurityPolicy:{metaKey:`http-equiv`,unpack:{entrySeparator:`; `,resolve:({key:e,value:t})=>`${V(e)} ${t}`}},charset:{}};function V(e){let t=e.replace(qr,`-$1`).toLowerCase(),n=t.indexOf(`-`);return n===-1?t:Gr.META.has(t.slice(0,n))||Gr.OG.has(t.slice(0,n))?e.replace(qr,`:$1`).toLowerCase():t}function Xr(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>String(t)!==`false`&&e))}function Zr(e){return Array.isArray(e)?e.map(Zr):!e||typeof e!=`object`?e:Object.fromEntries(Object.entries(e).map(([e,t])=>[V(e),Zr(t)]))}function Qr(e,t={}){let{entrySeparator:n=``,keyValueSeparator:r=``,wrapValue:i,resolve:a}=t;return Object.entries(e).map(([e,n])=>{if(a){let t=a({key:e,value:n});if(t!==void 0)return t}let o=typeof n==`object`?Qr(n,t):typeof n==`number`?n.toString():typeof n==`string`&&i?`${i}${n.replace(new RegExp(i,`g`),`\\${i}`)}${i}`:n;return`${e}${r}${o}`}).join(n)}function $r(e,t){let n=Xr(t),r=V(e),i=ei(r);return Ln.has(r)?ri(Object.fromEntries(Object.entries(n).map(([t,n])=>[`${e}${t===`url`?``:`${t[0].toUpperCase()}${t.slice(1)}`}`,n]))||{}).sort((e,t)=>(e[i]?.length||0)-(t[i]?.length||0)):[{[i]:r,...n}]}function ei(e){if(Yr[e]?.metaKey===`http-equiv`||Gr.HTTP_EQUIV.has(e))return`http-equiv`;let t=V(e),n=t.indexOf(`:`);return n===-1?`name`:Gr.OG.has(t.slice(0,n))?`property`:`name`}function ti(e){return Kr[e]||V(e)}function ni(e,t){return t===`refresh`?`${e.seconds};url=${e.url}`:Qr(Zr(e),{keyValueSeparator:`=`,entrySeparator:`, `,resolve:({value:e,key:t})=>e===null?``:typeof e==`boolean`?t:void 0,...Yr[t]?.unpack})}function ri(e){let t=[],n={};for(let[r,i]of Object.entries(e)){if(Array.isArray(i)){if(r===`themeColor`){i.forEach(e=>{typeof e==`object`&&e&&t.push({name:`theme-color`,...e})});continue}for(let e of i)if(typeof e==`object`&&e){let n=[],i=[];for(let[t,a]of Object.entries(e)){let e=ri({[`${r}${t===`url`?``:`:${t}`}`]:a});(t===`url`?n:i).push(...e)}t.push(...n,...i)}else t.push(...typeof e==`string`?ri({[r]:e}):$r(r,e));continue}if(typeof i==`object`&&i){if(Gr.MEDIA.has(r)){let e=r.startsWith(`twitter`)?`twitter`:`og`,n=r.replace(Jr,``).toLowerCase(),a=e===`twitter`?`name`:`property`;i.url&&t.push({[a]:`${e}:${n}`,content:i.url}),i.secureUrl&&t.push({[a]:`${e}:${n}:secure_url`,content:i.secureUrl});for(let[r,o]of Object.entries(i))r!==`url`&&r!==`secureUrl`&&t.push({[a]:`${e}:${n}:${r}`,content:o})}else Ln.has(V(r))?t.push(...$r(r,i)):n[r]=Xr(i)}else n[r]=i}let r=Object.entries(n).map(([e,t])=>{if(e===`charset`)return{charset:t===null?`_null`:t};let n=ei(e),r=ti(e),i=t===null?`_null`:typeof t==`object`?ni(t,e):typeof t==`number`?t.toString():t;return n===`http-equiv`?{"http-equiv":r,content:i}:{[n]:r,content:i}});return[...t,...r].map(e=>`content`in e&&e.content===`_null`?{...e,content:null}:e)}var ii=Dr({key:`flatMeta`,hooks:{"entries:normalize":e=>{let t=!1,n=[],r=[];for(let i of e.tags){if(i.tag!==`_flatMeta`){n.push(i);continue}t=!0;for(let e of ri(i.props))r.push({...i,tag:`meta`,props:e})}if(t){for(let e of r)n.push(e);e.tags=n}}}}),ai=Object.prototype.hasOwnProperty;function oi(e,t){return ai.call(e,t)}var si=Object.assign((e,t)=>Te(t)?ue(t):t,{_static:!0});function ci(e,t={}){let n=t.head||Tr();return n.ssr?n.push(e||{},t):li(n,e,t)}function li(e,t,n={}){let i=le();if(i&&!i.active)return{patch(){},dispose(){},_i:-1};let a=r(!1);if(n.onRendered&&i){let e=n.onRendered;n={...n,onRendered:t=>i.run(()=>e(t))}}let o;return Ce(()=>{let r=a.value?{}:Yn(t,si);o?o.patch(r):o=e.push(r,n)}),h()&&(C(()=>{o.dispose()}),s(()=>{a.value=!0}),x(()=>{a.value=!1})),o}function ui(e){if(e._flatMeta)return e;let t={};for(let n in e)!oi(e,n)||n===`title`||n===`titleTemplate`||(t[n]=e[n]);return{title:e.title,titleTemplate:e.titleTemplate,_flatMeta:t}}function di(e={},t={}){(t.head||Tr()).use(ii);let n=ci(ui(e),t),r=n.patch;return n.__patched||=(n.patch=e=>r(ui(e)),!0),n}function fi(e={}){let t=_r(),n,r=0;return n=Cr({render:()=>{let e=++r;setTimeout(()=>{e===r&&t(n)},0)},...e}),n.install=Er(n),n}var pi={disableDefaults:!0,plugins:[Rr,Vr,Wr,Lr]},mi=F({name:`nuxt:head`,enforce:`pre`,setup(e){Dn(e,fi(pi))}}),hi=/(:\w+)\([^)]+\)/g,gi=/(:\w+)[?+*]/g,_i=/:\w+/g,vi=(e,t)=>t.path.replace(hi,`$1`).replace(gi,`$1`).replace(_i,t=>e.params[t.slice(1)]?.toString()||``),yi=(e,t)=>{let n=e.route.matched.find(t=>t.components?.default===e.Component.type),r=t??n?.meta.key??(n&&vi(e.route,n));return typeof r==`function`?r(e.route):r},bi=(e,t)=>({default:()=>e?l(k,e===!0?{}:e,t):t});function xi(e){return Array.isArray(e)?e:[e]}var Si=()=>location.protocol+`//`+location.host;function Ci(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Ye(n,``)}return Ye(n,e)+r+i}function wi(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Ci(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(R({},e.state,{scroll:st()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Ti(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?st():null}}function Ei(e){let{history:t,location:n}=window,r={value:Ci(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Si()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,R({},t.state,Ti(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=R({},i.value,t.state,{forward:e,scroll:st()});a(o.current,o,!0),a(e,R({},Ti(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Di(e){e=Be(e);let t=Ei(e),n=wi(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=R({location:``,base:e,go:r,createHref:ct.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var Oi={type:0,value:``},ki=/[a-zA-Z0-9_]/;function Ai(e){if(!e)return[[]];if(e===`/`)return[[Oi]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:ki.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var ji=`[^/]+?`,Mi={sensitive:!1,strict:!1,start:!0,end:!0},Ni=/[.+*?^${}()[\]/\\]/g;function Pi(e,t){let n=R({},Mi,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(Ni,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||ji;if(u!==ji){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(wt(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=wt(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Fi(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Ii(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Fi(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Li(r))return 1;if(Li(i))return-1}return i.length-r.length}function Li(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Ri={strict:!1,end:!0,sensitive:!1};function zi(e,t,n){let r=Pi(Ai(e.path),n),i=R(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Bi(e,t){let n=[],r=new Map;t=Ue(Ri,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Hi(e);s.aliasOf=r&&r.record;let l=Ue(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Hi(R({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=zi(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Wi(d)&&o(e.name)),Ji(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:$e}function o(e){if(Ze(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Ki(e,n);n.splice(t,0,e),e.record.name&&!Wi(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Xe(1,{location:e});s=i.record.name,a=R(Vi(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Vi(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Xe(1,{location:e,currentLocation:t});s=i.record.name,a=R({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Gi(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Vi(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Hi(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ui(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ui(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Wi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Gi(e){return e.reduce((e,t)=>R(e,t.meta),{})}function Ki(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ii(e,t[i])<0?r=i:n=i+1}let i=qi(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function qi(e){let t=e;for(;t=t.parent;)if(Ji(t)&&Ii(e,t)===0)return t}function Ji({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Yi(e){let t=v(He),n=v(tt),r=I(()=>{let n=P(e.to);return t.resolve(n)}),i=I(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Qe.bind(null,i));if(o>-1)return o;let s=ea(e[t-2]);return t>1&&ea(i)===s&&a[a.length-1].path!==s?a.findIndex(Qe.bind(null,e[t-2])):o}),a=I(()=>i.value>-1&&$i(n.params,r.value.params)),o=I(()=>i.value>-1&&i.value===n.matched.length-1&&xt(n.params,r.value.params));function s(n={}){if(Qi(n)){let n=t[P(e.replace)?`replace`:`push`](P(e.to)).catch($e);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:I(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Xi(e){return e.length===1?e[0]:e}var Zi=m({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Yi,setup(e,{slots:t}){let n=Oe(Yi(e)),{options:r}=v(He),i=I(()=>({[ta(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[ta(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Xi(t.default(n));return e.custom?r:l(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Qi(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function $i(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!wt(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function ea(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var ta=(e,t,n)=>e??t??n,na=m({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let i=v(Ge),a=I(()=>e.route||i.value),o=v(vt,0),s=I(()=>{let e=P(o),{matched:t}=a.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),c=I(()=>a.value.matched[s.value]);O(vt,I(()=>s.value+1)),O(et,c),O(Ge,a);let u=r();return de(()=>[u.value,c.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Qe(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=a.value,i=e.name,o=c.value,s=o&&o.components[i];if(!s)return ra(n.default,{Component:s,route:r});let d=o.props[i],f=d?d===!0?r.params:typeof d==`function`?d(r):d:null,p=l(s,R({},f,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[i]=null)},ref:u}));return ra(n.default,{Component:p,route:r})||p}}});function ra(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var ia=na;function aa(e){let t=Bi(e.routes,e),n=e.parseQuery||Je,r=e.stringifyQuery||Ke,i=e.history,o=Ve(),s=Ve(),l=Ve(),u=a(B),d=B;St&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let f=We.bind(null,e=>``+e),p=We.bind(null,ut),m=We.bind(null,_t);function h(e,n){let r,i;return Ze(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function g(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function _(){return t.getRoutes().map(e=>e.record)}function v(e){return!!t.getRecordMatcher(e)}function y(e,a){if(a=R({},a||u.value),typeof e==`string`){let r=pt(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return R(r,o,{params:m(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=R({},e,{path:pt(n,e.path,a.path).path});else{let t=R({},e.params);for(let e in t)t[e]??delete t[e];o=R({},e,{params:p(t)}),a.params=p(a.params)}let s=t.resolve(o,a),c=e.hash||``;s.params=f(m(s.params));let l=qe(r,R({},e,{hash:ht(c),path:s.path})),d=i.createHref(l);return R({fullPath:l,hash:c,query:r===Ke?ze(e.query):e.query||{}},s,{redirectedFrom:void 0,href:d})}function b(e){return typeof e==`string`?pt(n,e,u.value.path):R({},e)}function x(e,t){if(d!==e)return Xe(8,{from:t,to:e})}function S(e){return T(e)}function C(e){return S(R(b(e),{replace:!0}))}function w(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=b(i):{path:i},i.params={}),R({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function T(e,t){let n=d=y(e),i=u.value,a=e.state,o=e.force,s=e.replace===!0,c=w(n,i);if(c)return T(R(b(c),{state:typeof c==`object`?R({},a,c.state):a,force:o,replace:s}),t||n);let l=n;l.redirectedFrom=t;let f;return!o&&Re(r,i,n)&&(f=Xe(16,{to:l,from:i}),se(i,i,!0,!1)),(f?Promise.resolve(f):O(l,i)).catch(e=>L(e)?L(e,2)?e:oe(e):ie(e,l,i)).then(e=>{if(e){if(L(e,2))return T(R({replace:s},b(e.to),{state:typeof e.to==`object`?R({},a,e.to.state):a,force:o}),t||l)}else e=ee(l,i,!0,s,a);return k(l,i,e),e})}function E(e,t){let n=x(e,t);return n?Promise.reject(n):Promise.resolve()}function D(e){let t=M.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function O(e,t){let n,[r,i,a]=lt(e,t);n=it(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(at(r,e,t))});let c=E.bind(null,e,t);return n.push(c),ue(n).then(()=>{n=[];for(let r of o.list())n.push(at(r,e,t));return n.push(c),ue(n)}).then(()=>{n=it(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(at(r,e,t))});return n.push(c),ue(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter){if(wt(r.beforeEnter))for(let i of r.beforeEnter)n.push(at(i,e,t));else n.push(at(r.beforeEnter,e,t))}return n.push(c),ue(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=it(a,`beforeRouteEnter`,e,t,D),n.push(c),ue(n))).then(()=>{n=[];for(let r of s.list())n.push(at(r,e,t));return n.push(c),ue(n)}).catch(e=>L(e,8)?e:Promise.reject(e))}function k(e,t,n){l.list().forEach(r=>D(()=>r(e,t,n)))}function ee(e,t,n,r,a){let o=x(e,t);if(o)return o;let s=t===B,c=St?history.state:{};n&&(r||s?i.replace(e.fullPath,R({scroll:s&&c&&c.scroll},a)):i.push(e.fullPath,a)),u.value=e,se(e,t,n,s),oe()}let A;function te(){A||=i.listen((e,t,n)=>{if(!N.listening)return;let r=y(e),a=w(r,N.currentRoute.value);if(a){T(R(a,{replace:!0,force:!0}),r).catch($e);return}d=r;let o=u.value;St&&Le(Ct(o.fullPath,n.delta),st()),O(r,o).catch(e=>L(e,12)?e:L(e,2)?(T(R(b(e.to),{force:!0}),r).then(e=>{L(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch($e),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ie(e,r,o))).then(e=>{e||=ee(r,o,!1),e&&(n.delta&&!L(e,8)?i.go(-n.delta,!1):n.type===`pop`&&L(e,20)&&i.go(-1,!1)),k(r,o,e)}).catch($e)})}let ne=Ve(),re=Ve(),j;function ie(e,t,n){oe(e);let r=re.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function ae(){return j&&u.value!==B?Promise.resolve():new Promise((e,t)=>{ne.add([e,t])})}function oe(e){return j||(j=!e,te(),ne.list().forEach(([t,n])=>e?n(e):t()),ne.reset()),e}function se(t,n,r,i){let{scrollBehavior:a}=e;if(!St||!a)return Promise.resolve();let o=!r&&bt(Ct(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return c().then(()=>a(t,n,o)).then(e=>t===u.value&&e&&ft(e)).catch(e=>t===u.value&&ie(e,t,n))}let ce=e=>i.go(e),le,M=new Set,N={currentRoute:u,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:_,resolve:y,options:e,push:S,replace:C,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:o.add,beforeResolve:s.add,afterEach:l.add,onError:re.add,isReady:ae,install(e){e.component(`RouterLink`,Zi),e.component(`RouterView`,ia),e.config.globalProperties.$router=N,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>P(u)}),St&&!le&&u.value===B&&(le=!0,S(i.location).catch(e=>{}));let t={};for(let e in B)Object.defineProperty(t,e,{get:()=>u.value[e],enumerable:!0});e.provide(He,N),e.provide(tt,De(t)),e.provide(Ge,u);let n=e.unmount;M.add(e),e.unmount=function(){M.delete(e),M.size<1&&(d=B,A&&A(),A=null,u.value=B,le=!1,j=!1),n()}}};function ue(e){return e.reduce((e,t)=>e.then(()=>D(t)),Promise.resolve())}return N}var oa=Dt(async e=>{let t,n;if(!e.meta?.validate)return;let r=([t,n]=oe(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t);if(r!==!0)return jt({fatal:!0,status:r&&(r.status||r.statusCode)||404,statusText:r&&(r.statusText||r.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}})},1),sa=pe({docsBase:t,reporters:ie}),ca=(()=>{let e={prerender:!0},t={prerender:!1};return(n,r)=>{let i=[];r.charCodeAt(r.length-1)===47&&(r=r.slice(0,-1)),(r===``||r===`/200.html`||r===`/404.html`||r.charCodeAt(r.length-1)===47&&(r===`/`||r===`/200.html/`||r===`/404.html/`))&&i.push({data:e});let a=r.split(`/`);return a.length>1&&a[a.length-1]===``&&(a.pop(),r=r.slice(0,-1)),a.length,i.push({data:t,params:{_:r.slice(1)}}),i.reverse()}})(),la=ca,ua=function(e){if(!e.includes(`%`))return e;let t=e.indexOf(`?`),n=t===-1?e:e.slice(0,t);try{return t===-1?decodeURI(n):decodeURI(n)+e.slice(t)}catch{return e}},da=(e,t)=>{if(typeof e!=`string`)return e;let n=ua(e);return t?n.toLowerCase():n},fa=e=>z.sensitive?Mt({},...ca(``,da(e,!1)).map(e=>e.data).reverse()):Mt({},...la(``,da(e,!0)).map(e=>e.data).reverse()),pa=`modulepreload`,ma=function(e,t){return new URL(e,t).href},ha={},ga=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=ma(t,n),t=s(t),t in ha)return;ha[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:pa,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},_a=En,va=fa,ya;function ba(){let e;return e=_a(wn(`builds/meta/${A().app.buildId}.json`),{responseType:`json`}).then(e=>{if(!e||typeof e!=`object`||!Array.isArray(e.prerendered))throw sa.NUXT_E5004();return e}),ya=e,e.catch(t=>{ya===e&&(ya=void 0),sa.NUXT_E5002({cause:t})}),e}function xa(){return ya||ba()}function Sa(e){let t=typeof e==`string`?e:e.path;try{return va(t)}catch(e){return sa.NUXT_E5003({path:t,cause:e}),{}}}var Ca=[oa,Dt(e=>{let t=Sa({path:e.path});if(t.redirect){let n=t.redirect.includes(`#`)?t.redirect:t.redirect+e.hash;return Gt(n,{acceptRelative:!0})?(window.location.href=n,!1):n}})],wa={},Ta=[{name:`graph`,path:`/graph`,component:()=>ga(()=>import(`./Chq5OY5R.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url)},{name:`home`,path:`/home`,component:()=>ga(()=>import(`./CwB8Gs10.js`),__vite__mapDeps([11,1,2,3,4,8]),import.meta.url)},{name:`plugins`,path:`/plugins`,component:()=>ga(()=>import(`./Dab6ytD9.js`),__vite__mapDeps([12,1,2,3,4,5,6,8,7,9,13]),import.meta.url)},{name:`index`,path:`/`,component:()=>ga(()=>import(`./BzEa-0f6.js`),__vite__mapDeps([14,1,6,3]),import.meta.url)}];function Ea(e,t,n){let{pathname:r,search:i,hash:a}=t,o=e.indexOf(`#`);if(o>-1){let t=a.includes(e.slice(o))?e.slice(o).length:1,n=a.slice(t);return n[0]!==`/`&&(n=`/`+n),Ut(n,``)}let s=Ut(r,e),c=!n||Ht(s,n)?s:n;return c+(c.includes(`?`)?``:i)+a}var Da=F({name:`nuxt:router`,enforce:`pre`,async setup(e){let t,n,r=A().app.baseURL,i=z.history?.(r)??Di(r),o=z.routes?([t,n]=oe(()=>z.routes(Ta)),t=await t,n(),t??Ta):Ta,s,c=aa({...z,scrollBehavior:(e,t,n)=>{if(t===B){s=n;return}if(z.scrollBehavior){if(c.options.scrollBehavior=z.scrollBehavior,`scrollRestoration`in window.history){let e=c.beforeEach(()=>{e(),window.history.scrollRestoration=`manual`})}return z.scrollBehavior(e,B,s||n)}},history:i,routes:o});`scrollRestoration`in window.history&&(window.history.scrollRestoration=`auto`),e.vueApp.use(c);let l=a(c.currentRoute.value);c.afterEach((e,t)=>{l.value=t}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});let u=Ea(r,window.location,e.payload.path),d=a(c.currentRoute.value),f=()=>{d.value=c.currentRoute.value};c.afterEach((e,t)=>{let n=e.matched.at(-1)?.components?.default,r=t.matched.at(-1)?.components?.default;if(n===r){yi({route:e,Component:{type:n}})===yi({route:t,Component:{type:r}})&&f();return}e.matched.length<t.matched.length&&e.matched.every((e,n)=>e.components?.default===t.matched[n]?.components?.default)&&f()});let p={sync:f};for(let e in d.value)Object.defineProperty(p,e,{get:()=>d.value[e],enumerable:!0});e._route=De(p),e._middleware||={global:[],named:{}};let m=Lt();c.afterEach(async(t,n,r)=>{delete e._processingMiddleware,!e.isHydrating&&m.value&&await e.runWithContext(It),r&&await e.callHook(`page:loading:end`)});try{[t,n]=oe(()=>c.isReady()),await t,n()}catch(r){[t,n]=oe(()=>Nt(e,r)),await t,n()}let h=u===c.currentRoute.value.fullPath?c.currentRoute.value:c.resolve(u),g=c.currentRoute.value.fullPath,_=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&u!==e.payload.path&&Ht(c.currentRoute.value.path,e.payload.path);f();function v(t){!e.isHydrating&&t.fullPath!==Ea(r,window.location)&&i.push(t.fullPath)}let y=e.payload.state._layout;return c.beforeEach(async(t,n)=>{await e.callHook(`page:loading:start`),t.meta=Oe(t.meta),e.isHydrating&&y&&!ee(t.meta.layout)&&(t.meta.layout=y),e._processingMiddleware=!0;{let r=new Set([...Ca,...e._middleware.global]);for(let e of t.matched){let t=e.meta.middleware;if(t)for(let e of xi(t))r.add(e)}let i=Sa({path:t.path});if(i.appMiddleware)for(let e in i.appMiddleware)i.appMiddleware[e]?r.add(e):r.delete(e);for(let i of r){let r=typeof i==`string`?e._middleware.named[i]||await wa[i]?.().then(e=>e.default||e):i;if(!r)throw At.NUXT_E2004({entry:String(i),validMiddleware:void 0});try{let i=await e.runWithContext(()=>r(t,n));if(!e.payload.serverRendered&&e.isHydrating&&(i===!1||i instanceof Error)){let t=i||jt({status:404,statusText:`Page Not Found: ${u}`});return await e.runWithContext(()=>Pt(t)),!1}if(i===!0)continue;if(i===!1)return i;if(i)return Et(i)&&i.fatal&&(await e.runWithContext(()=>Pt(i)),v(t)),i}catch(n){let r=jt(n);return r.fatal&&(await e.runWithContext(()=>Pt(r)),v(t)),r}}}}),c.onError(async()=>{delete e._processingMiddleware,await e.callHook(`page:loading:end`)}),c.afterEach(t=>{if(t.matched.length===0&&!m.value)return e.runWithContext(()=>Pt(jt({status:404,fatal:!1,statusText:`Page not found: ${t.fullPath}`,data:{path:t.fullPath}})))}),e.hooks.hookOnce(`app:created`,async()=>{try{if(`name`in h&&(h.name=void 0),c.currentRoute.value.fullPath===g){if(_){let t=c.resolve(e.payload.path);`name`in t&&(t.name=void 0),await c.replace({...t,force:!0});let n=()=>{e[`~restoreDeferredRoute`]&&(e[`~restoreDeferredRoute`]=void 0,c.currentRoute.value=c.resolve(u),f(),c.replace({...h,force:!0}).catch(()=>{}))};e[`~restoreDeferredRoute`]=n,e.hooks.hookOnce(`app:suspense:resolve`,n)}else await c.replace({...h,force:!0})}c.options.scrollBehavior=z.scrollBehavior}catch(t){await Nt(e,t)}}),{provide:{router:c}}}},1),Oa=F(()=>{let e=Ft();gt(()=>{e.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),ka=F(e=>{let t;async function n(){let r;try{r=await xa()}catch(e){let t=e;if(!(`status`in t&&(t.status===404||t.status===403)))throw t}t&&clearTimeout(t),t=setTimeout(n,Se);try{let n=await En(wn(`builds/latest.json`)+`?${Date.now()}`);n.id!==r?.id&&(e.hooks.callHook(`app:manifest:update`,n),t&&clearTimeout(t))}catch{}}gt(()=>{t=setTimeout(n,Se)})});function Aa(e={}){let t=e.path||window.location.pathname,n=new URL(t,window.location.href);if(n.host!==window.location.host)throw At.NUXT_E2010({path:t});if(n.protocol&&Bt(n.protocol))throw At.NUXT_E2002({toPath:t,protocol:n.protocol});let r={};try{r=JSON.parse(sessionStorage.getItem(`nuxt:reload`)||`{}`)}catch{}if(e.force||r?.path!==t||r?.expires<Date.now()){try{sessionStorage.setItem(`nuxt:reload`,JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem(`nuxt:reload:state`,JSON.stringify({state:M().payload.state}))}catch{}window.location.pathname===t?window.location.reload():window.location.href=t}}var ja=F({name:`nuxt:chunk-reload-crawler`,setup(e){let t=!0;e.hooks.hookOnce(`app:suspense:resolve`,()=>{t=!1}),e.hook(`app:chunkError`,()=>{t&&zt(navigator.userAgent)&&Aa()})}}),Ma=F({name:`nuxt:chunk-reload`,setup(e){let t=Ft(),n=A(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook(`app:chunkError`,({error:e})=>{r.add(e)});function i(e){Aa({path:Kt(n.app.baseURL,e.fullPath),persistState:!0})}e.hook(`app:manifest:update`,()=>{t.beforeResolve(i)}),t.onError((e,t)=>{r.has(e)&&i(t)})}}),Na=F({name:`nuxt:island-link-navigation`,setup(e){}}),Pa=F({name:`nuxt:global-components`}),Fa={},Ia=F({name:`nuxt:prefetch`,setup(e){let t=Ft();e.hooks.hook(`app:mounted`,()=>{t.beforeEach(async e=>{let t=e?.meta?.layout;t&&typeof Fa[t]==`function`&&await Fa[t]()})}),e.hooks.hook(`link:prefetch`,e=>{if(Gt(e))return;let n=t.resolve(e);if(!n)return;let r=n.meta.layout,i=xi(n.meta.middleware).filter(e=>typeof e==`string`);for(let e of i){let t=wa[e];typeof t==`function`&&t()}typeof r==`string`&&r in Fa&&dt(Fa[r])})}}),La=F(()=>{}),Ra=[`top`,`right`,`bottom`,`left`],za=[`start`,`end`],Ba=Ra.reduce((e,t)=>e.concat(t,t+`-`+za[0],t+`-`+za[1]),[]),Va=Math.min,Ha=Math.max,Ua=Math.round,Wa=e=>({x:e,y:e}),Ga={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ka(e,t,n){return Ha(e,Va(t,n))}function qa(e,t){return typeof e==`function`?e(t):e}function H(e){return e.split(`-`)[0]}function U(e){return e.split(`-`)[1]}function Ja(e){return e===`x`?`y`:`x`}function Ya(e){return e===`y`?`height`:`width`}function W(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Xa(e){return Ja(W(e))}function Za(e,t,n){n===void 0&&(n=!1);let r=U(e),i=Xa(e),a=Ya(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=oo(o)),[o,oo(o)]}function Qa(e){let t=oo(e);return[$a(e),t,$a(t)]}function $a(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var eo=[`left`,`right`],to=[`right`,`left`],no=[`top`,`bottom`],ro=[`bottom`,`top`];function io(e,t,n){switch(e){case`top`:case`bottom`:return n?t?to:eo:t?eo:to;case`left`:case`right`:return t?no:ro;default:return[]}}function ao(e,t,n,r){let i=U(e),a=io(H(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map($a)))),a}function oo(e){let t=H(e);return Ga[t]+e.slice(t.length)}function so(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function co(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:so(e)}function lo(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function uo(e,t,n){let{reference:r,floating:i}=e,a=W(t),o=Xa(t),s=Ya(o),c=H(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=U(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function fo(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=qa(t,e),p=co(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=lo(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=lo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var po=50,mo=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:fo},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=uo(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<po&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=uo(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ho=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=qa(e,t)||{};if(l==null)return{};let d=co(u),f={x:n,y:r},p=Xa(i),m=Ya(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Va(d[_],T),D=Va(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,ee=Ka(E,k,O),A=!c.arrow&&U(i)!=null&&k!==ee&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,te=A?k<E?k-E:k-O:0;return{[p]:f[p]+te,data:{[p]:ee,centerOffset:k-ee-te,...A&&{alignmentOffset:te}},reset:A}}});function go(e,t,n){return(e?[...n.filter(t=>U(t)===e),...n.filter(t=>U(t)!==e)]:n.filter(e=>H(e)===e)).filter(n=>!e||U(n)===e||(t?$a(n)!==n:!1))}var _o=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=Ba,autoAlignment:u=!0,...d}=qa(e,t),f=c!==void 0||l===Ba?go(c||null,u,l):l,p=r.autoPlacement?.index||0,m=f[p];if(m==null)return{};if(i!==m)return{reset:{placement:f[0]}};let h=await a.detectOverflow(t,d),g=Za(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[H(m)],h[g[0]],h[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:m,overflows:_}],y=f[p+1];if(y)return{data:{index:p+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=U(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,U(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:p+1,overflows:v},reset:{placement:x}}}}},vo=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=qa(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=H(r),_=W(o),v=H(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[oo(o)]:Qa(o)),x=p!==`none`;!d&&x&&b.push(...ao(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Za(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===W(t)||T.every(e=>W(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=W(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},yo=new Set([`left`,`top`]);async function bo(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=H(n),s=U(n),c=W(n)===`y`,l=yo.has(o)?-1:1,u=a&&c?-1:1,d=qa(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var xo=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await bo(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},So=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=qa(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=W(i),p=Ja(f),m=u[p],h=u[f],g=(e,t)=>Ka(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Co=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=qa(e,t),c=await i.detectOverflow(t,s),l=H(n),u=U(n),d=W(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Va(p-c[m],g),y=Va(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Ha(c.left,c.right):S=p-2*Ha(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function G(e){return e.ownerDocument?.defaultView||window}function K(e){return G(e).getComputedStyle(e)}var wo=Math.min,To=Math.max,Eo=Math.round;function Do(e){let t=K(e),n=parseFloat(t.width),r=parseFloat(t.height),i=e.offsetWidth,a=e.offsetHeight,o=Eo(n)!==i||Eo(r)!==a;return o&&(n=i,r=a),{width:n,height:r,fallback:o}}function q(e){return Ao(e)?(e.nodeName||``).toLowerCase():``}var Oo;function ko(){if(Oo)return Oo;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Oo=e.brands.map((e=>e.brand+`/`+e.version)).join(` `),Oo):navigator.userAgent}function J(e){return e instanceof G(e).HTMLElement}function Y(e){return e instanceof G(e).Element}function Ao(e){return e instanceof G(e).Node}function jo(e){return typeof ShadowRoot>`u`?!1:e instanceof G(e).ShadowRoot||e instanceof ShadowRoot}function Mo(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=K(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function No(e){return[`table`,`td`,`th`].includes(q(e))}function Po(e){let t=/firefox/i.test(ko()),n=K(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!==`none`||n.perspective!==`none`||!!r&&r!==`none`||t&&n.willChange===`filter`||t&&!!n.filter&&n.filter!==`none`||[`transform`,`perspective`].some((e=>n.willChange.includes(e)))||[`paint`,`layout`,`strict`,`content`].some((e=>{let t=n.contain;return t!=null&&t.includes(e)}))}function Fo(){return!/^((?!chrome|android).)*safari/i.test(ko())}function Io(e){return[`html`,`body`,`#document`].includes(q(e))}function Lo(e){return Y(e)?e:e.contextElement}var Ro={x:1,y:1};function zo(e){let t=Lo(e);if(!J(t))return Ro;let n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=Do(t),o=(a?Eo(n.width):n.width)/r,s=(a?Eo(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}function Bo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Lo(e),o=Ro;t&&(r?Y(r)&&(o=zo(r)):o=zo(e));let s=a?G(a):window,c=!Fo()&&n,l=(i.left+(c&&s.visualViewport?.offsetLeft||0))/o.x,u=(i.top+(c&&s.visualViewport?.offsetTop||0))/o.y,d=i.width/o.x,f=i.height/o.y;if(a){let e=G(a),t=r&&Y(r)?G(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=zo(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=t.x,u+=t.y,n=G(n).frameElement}}return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function X(e){return((Ao(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vo(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ho(e){return Bo(X(e)).left+Vo(e).scrollLeft}function Uo(e){if(q(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||jo(e)&&e.host||X(e);return jo(t)?t.host:t}function Wo(e){let t=Uo(e);return Io(t)?t.ownerDocument.body:J(t)&&Mo(t)?t:Wo(t)}function Go(e,t){t===void 0&&(t=[]);let n=Wo(e),r=n===e.ownerDocument?.body,i=G(n);return r?t.concat(i,i.visualViewport||[],Mo(n)?n:[]):t.concat(n,Go(n))}function Ko(e,t,n){return t===`viewport`?lo(function(e,t){let n=G(e),r=X(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Fo();(e||!e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}(e,n)):Y(t)?lo(function(e,t){let n=Bo(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=J(e)?zo(e):{x:1,y:1};return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,n)):lo(function(e){let t=X(e),n=Vo(e),r=e.ownerDocument.body,i=To(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=To(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ho(e),s=-n.scrollTop;return K(r).direction===`rtl`&&(o+=To(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(X(e)))}function qo(e){return J(e)&&K(e).position!==`fixed`?e.offsetParent:null}function Jo(e){let t=G(e),n=qo(e);for(;n&&No(n)&&K(n).position===`static`;)n=qo(n);return n&&(q(n)===`html`||q(n)===`body`&&K(n).position===`static`&&!Po(n))?t:n||function(e){let t=Uo(e);for(;J(t)&&!Io(t);){if(Po(t))return t;t=Uo(t)}return null}(e)||t}function Yo(e,t,n){let r=J(t),i=X(t),a=Bo(e,!0,n===`fixed`,t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&n!==`fixed`){if((q(t)!==`body`||Mo(i))&&(o=Vo(t)),J(t)){let e=Bo(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Ho(i))}return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}var Xo={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?function(e,t){let n=t.get(e);if(n)return n;let r=Go(e).filter((e=>Y(e)&&q(e)!==`body`)),i=null,a=K(e).position===`fixed`,o=a?Uo(e):e;for(;Y(o)&&!Io(o);){let e=K(o),t=Po(o);(a?t||i:t||e.position!==`static`||!i||![`absolute`,`fixed`].includes(i.position))?i=e:r=r.filter((e=>e!==o)),o=Uo(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce(((e,n)=>{let r=Ko(t,n,i);return e.top=To(r.top,e.top),e.right=wo(r.right,e.right),e.bottom=wo(r.bottom,e.bottom),e.left=To(r.left,e.left),e}),Ko(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=J(n),a=X(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1},c={x:0,y:0};if((i||!i&&r!==`fixed`)&&((q(n)!==`body`||Mo(a))&&(o=Vo(n)),J(n))){let e=Bo(n);s=zo(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+c.x,y:t.y*s.y-o.scrollTop*s.y+c.y}},isElement:Y,getDimensions:function(e){return J(e)?Do(e):e.getBoundingClientRect()},getOffsetParent:Jo,getDocumentElement:X,getScale:zo,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||Jo,a=this.getDimensions;return{reference:Yo(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>K(e).direction===`rtl`},Zo=(e,t,n)=>{let r=new Map,i={platform:Xo,...n},a={...i.platform,_c:r};return mo(e,t,{...i,platform:a})};function Qo(e,t){for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]==`object`&&e[n]?Qo(e[n],t[n]):e[n]=t[n])}var Z={disabled:!1,distance:5,skidding:0,container:`body`,boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:`absolute`,preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:`top`,triggers:[`hover`,`focus`,`touch`],hideTriggers:e=>[...e,`click`],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:`...`},dropdown:{placement:`bottom`,triggers:[`click`],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:`dropdown`,triggers:[`hover`,`focus`],popperTriggers:[`hover`],delay:{show:0,hide:400}}}};function $o(e,t){let n=Z.themes[e]||{},r;do r=n[t],typeof r>`u`?n.$extend?n=Z.themes[n.$extend]||{}:(n=null,r=Z[t]):n=null;while(n);return r}function es(e){let t=[e],n=Z.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Z.themes[n.$extend]||{}):n=null;while(n);return t.map(e=>`v-popper--theme-${e}`)}function ts(e){let t=[e],n=Z.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Z.themes[n.$extend]||{}):n=null;while(n);return t}var ns=!1;if(typeof window<`u`){ns=!1;try{let e=Object.defineProperty({},"passive",{get(){ns=!0}});window.addEventListener(`test`,null,e)}catch{}}var rs=!1;typeof window<`u`&&typeof navigator<`u`&&(rs=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var is=[`auto`,`top`,`bottom`,`left`,`right`].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),as={hover:`mouseenter`,focus:`focus`,click:`click`,touch:`touchstart`,pointer:`pointerdown`},os={hover:`mouseleave`,focus:`blur`,click:`click`,touch:`touchend`,pointer:`pointerup`};function ss(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}function cs(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var Q=[],ls=null,us={};function ds(e){let t=us[e];return t||=us[e]=[],t}var fs=function(){};typeof window<`u`&&(fs=window.Element);function $(e){return function(t){return $o(t.theme,e)}}var ps=`__floating-vue__popper`,ms=()=>m({name:`VPopper`,provide(){return{[ps]:{parentPopper:this}}},inject:{[ps]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:$(`disabled`)},positioningDisabled:{type:Boolean,default:$(`positioningDisabled`)},placement:{type:String,default:$(`placement`),validator:e=>is.includes(e)},delay:{type:[String,Number,Object],default:$(`delay`)},distance:{type:[Number,String],default:$(`distance`)},skidding:{type:[Number,String],default:$(`skidding`)},triggers:{type:Array,default:$(`triggers`)},showTriggers:{type:[Array,Function],default:$(`showTriggers`)},hideTriggers:{type:[Array,Function],default:$(`hideTriggers`)},popperTriggers:{type:Array,default:$(`popperTriggers`)},popperShowTriggers:{type:[Array,Function],default:$(`popperShowTriggers`)},popperHideTriggers:{type:[Array,Function],default:$(`popperHideTriggers`)},container:{type:[String,Object,fs,Boolean],default:$(`container`)},boundary:{type:[String,fs],default:$(`boundary`)},strategy:{type:String,validator:e=>[`absolute`,`fixed`].includes(e),default:$(`strategy`)},autoHide:{type:[Boolean,Function],default:$(`autoHide`)},handleResize:{type:Boolean,default:$(`handleResize`)},instantMove:{type:Boolean,default:$(`instantMove`)},eagerMount:{type:Boolean,default:$(`eagerMount`)},popperClass:{type:[String,Array,Object],default:$(`popperClass`)},computeTransformOrigin:{type:Boolean,default:$(`computeTransformOrigin`)},autoMinSize:{type:Boolean,default:$(`autoMinSize`)},autoSize:{type:[Boolean,String],default:$(`autoSize`)},autoMaxSize:{type:Boolean,default:$(`autoMaxSize`)},autoBoundaryMaxSize:{type:Boolean,default:$(`autoBoundaryMaxSize`)},preventOverflow:{type:Boolean,default:$(`preventOverflow`)},overflowPadding:{type:[Number,String],default:$(`overflowPadding`)},arrowPadding:{type:[Number,String],default:$(`arrowPadding`)},arrowOverflow:{type:Boolean,default:$(`arrowOverflow`)},flip:{type:Boolean,default:$(`flip`)},shift:{type:Boolean,default:$(`shift`)},shiftCrossAxis:{type:Boolean,default:$(`shiftCrossAxis`)},noAutoFocus:{type:Boolean,default:$(`noAutoFocus`)},disposeTimeout:{type:Number,default:$(`disposeTimeout`)}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:``,strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join(`_`)}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId==null?this.randomId:this.ariaId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide==`function`?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){return this[ps]?.parentPopper},hasPopperShowTriggerHover(){return this.popperTriggers?.includes(`hover`)||this.popperShowTriggers?.includes(`hover`)}},watch:{shown:`$_autoShowHide`,disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:`$_refreshListeners`,deep:!0},positioningDisabled:`$_refreshListeners`,...[`placement`,`distance`,`skidding`,`boundary`,`strategy`,`overflowPadding`,`arrowPadding`,`preventOverflow`,`shift`,`shiftCrossAxis`,`flip`].reduce((e,t)=>(e[t]=`$_computePosition`,e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var r;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit(`show`),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit(`update:shown`,!0))},hide({event:e=null,skipDelay:t=!1}={}){if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit(`hide`),this.$emit(`update:shown`,!1)}},init(){this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode?.call(this)??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(`.v-popper__inner`),this.$_arrowNode=this.$_popperNode.querySelector(`.v-popper__arrow-container`),this.$_swapTargetAttrs(`title`,`data-original-title`),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs(`data-original-title`,`title`))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit(`resize`))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;let e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(xo({mainAxis:this.distance,crossAxis:this.skidding}));let t=this.placement.startsWith(`auto`);if(t?e.middleware.push(_o({alignment:this.placement.split(`-`)[1]??``})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(So({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(vo({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(ho({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:`arrowOverflow`,fn:({placement:e,rects:t,middlewareData:n})=>{let r,{centerOffset:i}=n.arrow;return r=e.startsWith(`top`)||e.startsWith(`bottom`)?Math.abs(i)>t.reference.width/2:Math.abs(i)>t.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){let t=this.autoSize?this.autoSize:this.autoMinSize?`min`:null;e.middleware.push({name:`autoSize`,fn:({rects:e,placement:n,middlewareData:r})=>{var i;if((i=r.autoSize)!=null&&i.skip)return{};let a,o;return n.startsWith(`top`)||n.startsWith(`bottom`)?a=e.reference.width:o=e.reference.height,this.$_innerNode.style[t===`min`?`minWidth`:t===`max`?`maxWidth`:`width`]=a==null?null:`${a}px`,this.$_innerNode.style[t===`min`?`minHeight`:t===`max`?`maxHeight`:`height`]=o==null?null:`${o}px`,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Co({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:t})=>{this.$_innerNode.style.maxWidth=e==null?null:`${e}px`,this.$_innerNode.style.maxHeight=t==null?null:`${t}px`}})));let n=await Zo(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),ls&&this.instantMove&&ls.instantMove&&ls!==this.parentPopper){ls.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay(`show`))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(ls=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay(`hide`))},$_computeDelay(e){let t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await cs(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Go(this.$_referenceNode),...Go(this.$_popperNode)],`scroll`,()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){let e=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(`.v-popper__wrapper`),n=t.parentNode.getBoundingClientRect(),r=e.x+e.width/2-(n.left+t.offsetLeft),i=e.y+e.height/2-(n.top+t.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":``});let e=this.showGroup;if(e){let t;for(let n=0;n<Q.length;n++)t=Q[n],t.showGroup!==e&&(t.hide(),t.$emit(`close-group`))}Q.push(this),document.body.classList.add(`v-popper--some-open`);for(let e of ts(this.theme))ds(e).push(this),document.body.classList.add(`v-popper--some-open--${e}`);this.$emit(`apply-show`),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await cs(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,ss(Q,this),Q.length===0&&document.body.classList.remove(`v-popper--some-open`);for(let e of ts(this.theme)){let t=ds(e);ss(t,this),t.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}ls===this&&(ls=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);let t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners(`scroll`),this.$emit(`apply-hide`),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await cs(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e==`string`?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw Error(`No container for popover: `+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){let e=e=>{this.isShown&&!this.$_hideInProgress||(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,as,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],as,this.popperTriggers,this.popperShowTriggers,e);let t=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,os,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],os,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(e=>e.addEventListener(t,n,ns?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,i){let a=n;r!=null&&(a=typeof r==`function`?r(a):r),a.forEach(n=>{let r=t[n];r&&this.$_registerEventListeners(e,r,i)})},$_removeEventListeners(e){let t=[];this.$_events.forEach(n=>{let{targetNodes:r,eventType:i,handler:a}=n;!e||e===i?r.forEach(e=>e.removeEventListener(i,a)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit(`close-directive`):this.$emit(`auto-hide`),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(let n of this.$_targetNodes){let r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(let t of this.$_targetNodes)for(let n in e){let r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){let e=this.$_referenceNode.getBoundingClientRect();if(ws>=e.left&&ws<=e.right&&Ts>=e.top&&Ts<=e.bottom){let e=this.$_popperNode.getBoundingClientRect(),t=ws-Ss,n=Ts-Cs,r=e.left+e.width/2-Ss+(e.top+e.height/2)-Cs+e.width+e.height,i=Ss+t*r,a=Cs+n*r;return Es(Ss,Cs,i,a,e.left,e.top,e.left,e.bottom)||Es(Ss,Cs,i,a,e.left,e.top,e.right,e.top)||Es(Ss,Cs,i,a,e.right,e.top,e.right,e.bottom)||Es(Ss,Cs,i,a,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<`u`&&typeof window<`u`){if(rs){let e=!ns||{passive:!0,capture:!0};document.addEventListener(`touchstart`,e=>hs(e,!0),e),document.addEventListener(`touchend`,e=>gs(e,!0),e)}else window.addEventListener(`mousedown`,e=>hs(e,!1),!0),window.addEventListener(`click`,e=>gs(e,!1),!0);window.addEventListener(`resize`,bs)}function hs(e,t){if(Z.autoHideOnMousedown)_s(e,t);else for(let t=0;t<Q.length;t++){let n=Q[t];try{n.mouseDownContains=n.popperNode().contains(e.target)}catch{}}}function gs(e,t){Z.autoHideOnMousedown||_s(e,t)}function _s(e,t){let n={};for(let r=Q.length-1;r>=0;r--){let i=Q[r];try{let r=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(e.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&vs(i,r,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let e=i.parentPopper;for(;e;)n[e.randomId]=!0,e=e.parentPopper;return}let a=i.parentPopper;for(;a&&vs(a,a.containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch{}}}function vs(e,t,n){return n.closeAllPopover||n.closePopover&&t||ys(e,n)&&!t}function ys(e,t){if(typeof e.autoHide==`function`){let n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function bs(){for(let e=0;e<Q.length;e++)Q[e].$_computePosition()}function xs(){for(let e=0;e<Q.length;e++)Q[e].hide()}var Ss=0,Cs=0,ws=0,Ts=0;typeof window<`u`&&window.addEventListener(`mousemove`,e=>{Ss=ws,Cs=Ts,ws=e.clientX,Ts=e.clientY},ns?{passive:!0}:void 0);function Es(e,t,n,r,i,a,o,s){let c=((o-i)*(t-a)-(s-a)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t)),l=((n-e)*(t-a)-(r-t)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t));return c>=0&&c<=1&&l>=0&&l<=1}var Ds={extends:ms()},Os=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};function ks(e,t,n,r,i,a){return E(),b(`div`,{ref:`reference`,class:ve([`v-popper`,{"v-popper--shown":e.slotData.isShown}])},[ae(e.$slots,`default`,u(o(e.slotData)))],2)}var As=Os(Ds,[[`render`,ks]]);function js(){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 Ms;function Ns(){Ns.init||(Ns.init=!0,Ms=js()!==-1)}var Ps={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){Ns(),c(()=>{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`,Ms&&this.$el.appendChild(e),e.data=`about:blank`,Ms||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&&(!Ms&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},Fs=_e(`data-v-b329ee4c`);g(`data-v-b329ee4c`);var Is={class:`resize-observer`,tabindex:`-1`};w(),Ps.render=Fs((e,t,r,i,a,o)=>(E(),n(`div`,Is))),Ps.__scopeId=`data-v-b329ee4c`,Ps.__file=`src/components/ResizeObserver.vue`;var Ls=(e=`theme`)=>({computed:{themeClass(){return es(this[e])}}}),Rs=m({name:`VPopperContent`,components:{ResizeObserver:Ps},mixins:[Ls()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:[`hide`,`resize`],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),zs=[`id`,`aria-hidden`,`tabindex`,`data-popper-placement`],Bs={ref:`inner`,class:`v-popper__inner`},Vs=[y(`div`,{class:`v-popper__arrow-outer`},null,-1),y(`div`,{class:`v-popper__arrow-inner`},null,-1)];function Hs(e,t,r,i,a,o){let s=xe(`ResizeObserver`);return E(),b(`div`,{id:e.popperId,ref:`popover`,class:ve([`v-popper__popper`,[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:D(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?`false`:`true`,tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||=Ie(t=>e.autoHide&&e.$emit(`hide`),[`esc`])},[y(`div`,{class:`v-popper__backdrop`,onClick:t[0]||=t=>e.autoHide&&e.$emit(`hide`)}),y(`div`,{class:`v-popper__wrapper`,style:D(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[y(`div`,Bs,[e.mounted?(E(),b(ce,{key:0},[y(`div`,null,[ae(e.$slots,`default`)]),e.handleResize?(E(),n(s,{key:0,onNotify:t[1]||=t=>e.$emit(`resize`,t)})):Ee(``,!0)],64)):Ee(``,!0)],512),y(`div`,{ref:`arrow`,class:`v-popper__arrow-container`,style:D(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Vs,4)],4)],46,zs)}var Us=Os(Rs,[[`render`,Hs]]),Ws={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},Gs=function(){};typeof window<`u`&&(Gs=window.Element);var Ks=m({name:`VPopperWrapper`,components:{Popper:As,PopperContent:Us},mixins:[Ws,Ls(`finalTheme`)],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Gs,Boolean],default:void 0},boundary:{type:[String,Gs],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function qs(e,t,r,i,a,o){let s=xe(`PopperContent`),c=xe(`Popper`);return E(),n(c,S({ref:`popper`},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||=()=>e.$emit(`show`),onHide:t[1]||=()=>e.$emit(`hide`),"onUpdate:shown":t[2]||=t=>e.$emit(`update:shown`,t),onApplyShow:t[3]||=()=>e.$emit(`apply-show`),onApplyHide:t[4]||=()=>e.$emit(`apply-hide`),onCloseGroup:t[5]||=()=>e.$emit(`close-group`),onCloseDirective:t[6]||=()=>e.$emit(`close-directive`),onAutoHide:t[7]||=()=>e.$emit(`auto-hide`),onResize:t[8]||=()=>e.$emit(`resize`)}),{default:j(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,show:o,hide:c,handleResize:l,onResize:u,classes:d,result:f})=>[ae(e.$slots,`default`,{shown:n,show:o,hide:c}),N(s,{ref:`popperContent`,"popper-id":t,theme:e.finalTheme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":l,classes:d,result:f,onHide:c,onResize:u},{default:j(()=>[ae(e.$slots,`popper`,{shown:n,hide:c})]),_:2},1032,[`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:3},16,[`theme`,`target-nodes`,`popper-node`,`class`])}var Js=Os(Ks,[[`render`,qs]]),Ys={...Js,name:`VDropdown`,vPopperTheme:`dropdown`},Xs={...Js,name:`VMenu`,vPopperTheme:`menu`},Zs={...Js,name:`VTooltip`,vPopperTheme:`tooltip`},Qs=m({name:`VTooltipDirective`,components:{Popper:ms(),PopperContent:Us},mixins:[Ws],inheritAttrs:!1,props:{theme:{type:String,default:`tooltip`},html:{type:Boolean,default:e=>$o(e.theme,`html`)},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>$o(e.theme,`loadingContent`)},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content==`function`},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content==`function`&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;let e=++this.$_fetchId,t=this.content(this);t.then?t.then(t=>this.onResult(e,t)):this.onResult(e,t)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),$s=[`innerHTML`],ec=[`textContent`];function tc(e,t,r,i,a,o){let s=xe(`PopperContent`),c=xe(`Popper`);return E(),n(c,S({ref:`popper`},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:j(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,hide:o,handleResize:c,onResize:l,classes:u,result:d})=>[N(s,{ref:`popperContent`,class:ve({"v-popper--tooltip-loading":e.loading}),"popper-id":t,theme:e.theme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":c,classes:u,result:d,onHide:o,onResize:l},{default:j(()=>[e.html?(E(),b(`div`,{key:0,innerHTML:e.finalContent},null,8,$s)):(E(),b(`div`,{key:1,textContent:T(e.finalContent)},null,8,ec))]),_:2},1032,[`class`,`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:1},16,[`theme`,`target-nodes`,`popper-node`,`onApplyShow`,`onApplyHide`])}var nc=Os(Qs,[[`render`,tc]]),rc=`v-popper--has-tooltip`;function ic(e,t){let n=e.placement;if(!n&&t)for(let e of is)t[e]&&(n=e);return n||=$o(e.theme||`tooltip`,`placement`),n}function ac(e,t,n){let r,i=typeof t;return r=i===`string`?{content:t}:t&&i===`object`?t:{content:!1},r.placement=ic(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}var oc,sc,cc=0;function lc(){if(oc)return;sc=r([]),oc=rt({name:`VTooltipDirectiveApp`,setup(){return{directives:sc}},render(){return this.directives.map(e=>l(nc,{...e.options,shown:e.shown||e.options.shown,key:e.id}))},devtools:{hide:!0}});let e=document.createElement(`div`);document.body.appendChild(e),oc.mount(e)}function uc(e,t,n){lc();let i=r(ac(e,t,n)),a=r(!1),o={id:cc++,options:i,shown:a};return sc.value.push(o),e.classList&&e.classList.add(rc),e.$_popper={options:i,item:o,show(){a.value=!0},hide(){a.value=!1}}}function dc(e){if(e.$_popper){let t=sc.value.indexOf(e.$_popper.item);t!==-1&&sc.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(rc)}function fc(e,{value:t,modifiers:n}){let r=ac(e,t,n);if(!r.content||$o(r.theme||`tooltip`,`disabled`))dc(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=r):i=uc(e,t,n),typeof t.shown<`u`&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}var pc={beforeMount:fc,updated:fc,beforeUnmount(e){dc(e)}};function mc(e){e.addEventListener(`mousedown`,gc),e.addEventListener(`click`,gc),e.addEventListener(`touchstart`,_c,ns?{passive:!0}:!1)}function hc(e){e.removeEventListener(`mousedown`,gc),e.removeEventListener(`click`,gc),e.removeEventListener(`touchstart`,_c),e.removeEventListener(`touchend`,vc),e.removeEventListener(`touchcancel`,yc)}function gc(e){let t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function _c(e){if(e.changedTouches.length===1){let t=e.currentTarget;t.$_vclosepopover_touch=!0,t.$_vclosepopover_touchPoint=e.changedTouches[0],t.addEventListener(`touchend`,vc),t.addEventListener(`touchcancel`,yc)}}function vc(e){let t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){let n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function yc(e){let t=e.currentTarget;t.$_vclosepopover_touch=!1}var bc={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>`u`||t)&&mc(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>`u`||t?mc(e):hc(e))},beforeUnmount(e){hc(e)}},xc=Xs,Sc=Zs;function Cc(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Qo(Z,t),e.directive(`tooltip`,pc),e.directive(`close-popper`,bc),e.component(`VTooltip`,Zs),e.component(`VDropdown`,Ys),e.component(`VMenu`,Xs))}var wc={version:`5.2.2`,install:Cc,options:Z};function Tc(e){e.use(wc,{overflowPadding:20})}var Ec=[mi,Da,Oa,ka,ja,Ma,Na,Pa,Ia,La,F(e=>{Tc(e.vueApp)})],Dc=(e=`RouteProvider`)=>m({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean,routeRecord:Object},setup(e){let t=e.renderKey,n=e.route,r={};for(let i in e.route)Object.defineProperty(r,i,{get:()=>t===e.renderKey?e.route[i]:n[i],enumerable:!0});return O(Tt,De(r)),()=>e.vnode?l(e.vnode,{ref:e.vnodeRef}):e.vnode}}),Oc=Dc(),kc=new WeakMap,Ac=m({name:`NuxtPage`,inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:i}){let a=M(),o=r(),s=v(Tt,null),u=new Set,d;i({pageRef:o});let f=v(kt,null),p,m=a.deferHydration(),h=!1,g=!1,_,y=0;if(a.isHydrating){let e=a.hooks.hookOnce(`app:error`,m),t=Ft().beforeEach(()=>{e(),t()})}e.pageKey&&de(()=>e.pageKey,(e,t)=>{e!==t&&a.callHook(`page:loading:start`)});let b=!1;{let e=Ft().beforeResolve(()=>{b=!1});C(()=>{e(),m()})}return()=>l(ia,{name:e.name,route:e.route,...t},{default:Nc(t=>{let r=jc(s,t.route,t.Component),i=s&&s.matched.length===t.route.matched.length;if(!t.Component){if(p&&!i&&!Fc(p))return p;m();return}if(p&&f&&!Fc(p)&&!f.isCurrent(t.route))return p;if(r&&s&&(!f||f?.isCurrent(s)))return(i||p)&&!Fc(p)?p:null;let v=yi(t,e.pageKey),x=Mc(s,t.route,t.Component);!a.isHydrating&&d===v&&!x&&c(()=>{b||(b=!0,a.callHook(`page:loading:end`))}),h&&d!==v&&g&&y++,d=v;let S=!!(e.transition??t.route.meta.pageTransition??!1),C=S&&ot([e.transition,t.route.meta.pageTransition,!1,{onAfterLeave(){a[`~transitionFinish`]?.(),delete a[`~transitionFinish`],delete a[`~transitionPromise`],a.callHook(`page:transition:finish`,t.Component)}}]),w=e.keepalive??t.route.meta.keepalive??!1,T=t.Component.type,E=T.name||T.__name;t.route.meta.keepalive&&E&&u.add(E);let D;if(u.size>0&&e.keepalive==null&&(!w||typeof w==`object`&&w&&w.include)){let e=typeof w==`object`&&w?{...w}:{},t=e.include?Array.isArray(e.include)?e.include:[e.include]:[];D={...e,include:Array.from(new Set([...t,...u]))}}else D=w;return p=mt(S&&C,bi(D,l(we,{key:y,suspensible:!0,onPending:()=>{h=!0,S&&!a[`~transitionPromise`]&&(a[`~transitionPromise`]=new Promise(e=>{a[`~transitionFinish`]=e})),_=a.callHook(`page:start`,t.Component)},onResolve:async()=>{h=!1,g=!0,a.isHydrating&&a[`~restoreDeferredRoute`]?.();try{await c(),a._route.sync?.(),await _,await a.callHook(`page:finish`,t.Component),!b&&!x&&(b=!0,await a.callHook(`page:loading:end`))}finally{m()}}},{default:()=>{let e={key:v||void 0,vnode:n.default?Pc(n.default,t):t.Component,route:t.route,renderKey:v||void 0,trackRootNodes:S,vnodeRef:o,routeRecord:void 0};if(!D)return l(Oc,e);let r=T,i=kc.get(r);return i||(i=Dc(E),kc.set(r,i)),l(i,e)}}))).default(),p})})}});function jc(e,t,n){if(!e)return!1;let r=t.matched.findIndex(e=>e.components?.default===n?.type);if(r===-1)return!1;let i=t.matched.slice(0,r).filter(e=>e.components?.default);if(!i.length)return!1;let a=e.matched.filter(e=>e.components?.default);return i.some((e,t)=>e.components?.default!==a[t]?.components?.default)||n&&yi({route:t,Component:n})!==yi({route:e,Component:n})}function Mc(e,t,n){return e?t.matched.findIndex(e=>e.components?.default===n?.type)<t.matched.length-1:!1}function Nc(e){let t=(t=>{let n=e(t);return Array.isArray(n)?n:n==null||!Ae(n)?[Ee()]:[n]});return t._n=!0,t}function Pc(e,t){let n=e(t);return n.length===1?l(n[0]):l(ce,void 0,n)}function Fc(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}var Ic=0,Lc=Oe(new Map),Rc=I(()=>Array.from(Lc.values()).flat());function zc(e){let t=i(e),n=()=>{};function r(e){n();let t=Ic++;Lc.set(t,e),n=()=>{Lc.delete(t)}}return de(t,e=>{r(e)},{immediate:!0}),te(()=>{n()}),()=>{n()}}var Bc={class:`w12 flex-none`},Vc={class:`border-r border-y border-base rounded-r-xl flex flex-col gap-1 p1 of-y-auto max-h-96vh bg-glass:80`,style:{position:`fixed`,left:`0`,top:`50%`,transform:`translateY(-50%)`,"z-index":`64`}},Hc=m({__name:`PanelSideNav`,props:{items:{}},setup(t){let r=t,i=I(()=>r.items??Rc.value);return(t,r)=>{let a=me(`tooltip`);return E(),b(`div`,Bc,[(E(),n(ke,{to:`body`},[y(`div`,Vc,[(E(!0),b(ce,null,e(i.value,e=>se((E(),n(ye(e.to?P(yt):`button`),S({key:e.title,ref_for:!0},e.to?{to:e.to}:{type:`button`},{title:e.title,"aria-label":e.title,class:`rounded-full p2 hover:bg-active op-fade hover:op100 flex items-center justify-center`,"exact-active-class":`text-primary op100!`,onClick:t=>e.action?.()}),{default:j(()=>[y(`div`,{class:ve([e.icon,`text-lg`])},null,2)]),_:2},1040,[`title`,`aria-label`,`onClick`])),[[a,{placement:`right`,content:e.title}]])),128))])]))])}}}),Uc=Me(`vite-devtools-color-scheme`,`auto`),Wc=je(),Gc=I({get:()=>Uc.value===`auto`?Wc.value:Uc.value===`dark`,set:e=>{Uc.value=e?`dark`:`light`}});function Kc(){typeof document>`u`||Ce(()=>{let e=document.documentElement;e.classList.toggle(`dark`,Gc.value),e.classList.toggle(`light`,!Gc.value)})}var qc=pe({docsBase:t,reporters:ie});function Jc(e){let t=e||M();return t.ssrContext?.head||t.runWithContext(()=>{if(f()){let e=v(`usehead`);if(!e)throw qc.NUXT_E6001();return e}})}function Yc(e,t={}){return ci(e,{head:t.head||Jc(t.nuxt),...t})}function Xc(e,t={}){return di(e,{head:t.head||Jc(t.nuxt),...t})}var Zc={key:0,class:`text-red`},Qc={key:2,class:`grid grid-cols-[max-content_1fr] h-screen w-screen max-w-screen max-h-screen of-hidden`},$c={class:`of-auto h-screen max-h-screen relative`},el=m({__name:`app`,setup(e){return Kc(),Xc({title:`Vite DevTools`}),Pe(),zc(()=>[{title:`Home`,icon:`i-ph-house-duotone`,to:`/home`},{title:`Modules Graph`,icon:`i-ph-graph-duotone`,to:`/graph`},{title:`Plugins`,icon:`i-ph-plugs-duotone`,to:`/plugins`}]),(e,t)=>{let r=Fe,i=Ac;return P(Ne).error?(E(),b(`div`,Zc,T(P(Ne).error),1)):P(Ne).connected?(E(),b(`div`,Qc,[N(Hc),y(`div`,$c,[N(i)])])):(E(),n(r,{key:1,text:`Connecting...`}))}}}),tl={__name:`nuxt-error-page`,props:{error:Object},setup(e){let t=e.error,r=Number(t.statusCode||500),i=r===404,a=t.statusMessage??(i?`Page Not Found`:`Internal Server Error`),s=t.message||t.toString(),c=p(()=>ga(()=>import(`./ho86HYDA.js`),__vite__mapDeps([15,1,5,6,3,8,16]),import.meta.url)),l=p(()=>ga(()=>import(`./C3YPSWJQ.js`),__vite__mapDeps([17,1,8,18]),import.meta.url)),d=i?c:l;return(e,t)=>(E(),n(P(d),u(o({status:P(r),statusText:P(a),statusCode:P(r),statusMessage:P(a),description:P(s),stack:P(void 0)})),null,16))}},nl=()=>null,rl={key:0},il={__name:`nuxt-root`,setup(e){let t=M(),r=t.deferHydration();if(t.isHydrating){let e=t.hooks.hookOnce(`app:error`,r),n=Ft().beforeEach(()=>{e(),n()})}window.location.pathname,O(Tt,Ot()),t.hooks.callHookWith(e=>e.map(e=>e()),`vue:setup`,[]);let i=Lt();function a(e,n,r){let i=t.vueApp.config.errorHandler;if(i&&!i.__nuxt_default)try{i(e,n,r)}catch(e){console.error("[nuxt] Error in `app.config.errorHandler`",e)}}return d((e,n,r)=>{if(t.hooks.callHook(`vue:error`,e,n,r)?.catch(e=>console.error("[nuxt] Error in `vue:error` hook",e)),zt(navigator.userAgent))return Rt(t,e),!1;if(Et(e)&&(e.fatal||e.unhandled))return t.runWithContext(()=>Pt(e)),a(e,n,r),!1}),(e,t)=>(E(),n(we,{onResolve:P(r)},{default:j(()=>[P(!1)?(E(),b(`div`,rl)):P(i)?(E(),n(P(tl),{key:1,error:P(i)},null,8,[`error`])):P(!1)?(E(),n(P(nl),{key:2,context:P(!1)},null,8,[`context`])):P(!1)?(E(),n(ye(P(!1)),{key:3})):(E(),n(P(el),{key:4}))]),_:1},8,[`onResolve`]))}},al;{let e;al=async function(){if(e)return e;let t=!!(window.__NUXT__?.serverRendered??document.getElementById(`__NUXT_DATA__`)?.dataset.ssr===`true`),n=t?nt(il):rt(il),r=fe({vueApp:n});async function i(e){await r.callHook(`app:error`,e),r.payload.error||=jt(e)}i.__nuxt_default=!0,n.config.errorHandler=i,r.hook(`app:suspense:resolve`,()=>{n.config.errorHandler===i&&(n.config.errorHandler=void 0)}),!t&&ne.id&&r.hook(`app:suspense:resolve`,()=>{document.getElementById(ne.id)?.remove()});try{await be(r,Ec)}catch(e){i(e)}try{await r.hooks.callHook(`app:created`,n),await r.hooks.callHook(`app:beforeMount`,n),n.mount(re),await r.hooks.callHook(`app:mounted`,n),await c()}catch(e){i(e)}return n},e=al().catch(e=>{throw _.NUXT_E1009({cause:e}),e})}export{Sc as a,xo as c,Ha as d,Va as f,ga as h,xs as i,So as l,Ua as m,Gc as n,mo as o,lo as p,xc as r,vo as s,Yc as t,Wa as u};
@@ -1 +1 @@
1
- {"id":"c7f1966f-5ed6-4335-aecc-f68ca9324fbb","timestamp":1787199255840}
1
+ {"id":"1dee4d5a-a785-4bf8-b51d-220ca39cb4ea","timestamp":1787488084835}
@@ -0,0 +1 @@
1
+ {"id":"1dee4d5a-a785-4bf8-b51d-220ca39cb4ea","timestamp":1787488084835,"prerendered":[]}
@@ -4,7 +4,7 @@
4
4
  * Copyright 2019 Google LLC
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
- let e=Symbol(`Comlink.proxy`),t=Symbol(`Comlink.endpoint`),n=Symbol(`Comlink.releaseProxy`),r=Symbol(`Comlink.finalizer`),i=Symbol(`Comlink.thrown`),a=e=>typeof e==`object`&&!!e||typeof e==`function`,o=new Map([[`proxy`,{canHandle:t=>a(t)&&t[e],serialize(e){let{port1:t,port2:n}=new MessageChannel;return c(e,t),[n,[n]]},deserialize(e){return e.start(),d(e)}}],[`throw`,{canHandle:e=>a(e)&&i in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(Error(e.value.message),e.value):e.value}}]]);function s(e,t){for(let n of e)if(t===n||n===`*`||n instanceof RegExp&&n.test(t))return!0;return!1}function c(e,t=globalThis,n=[`*`]){t.addEventListener(`message`,function a(o){if(!o||!o.data)return;if(!s(n,o.origin)){console.warn(`Invalid origin '${o.origin}' for comlink proxy`);return}let{id:l,type:d,path:f}=Object.assign({path:[]},o.data),p=(o.data.argumentList||[]).map(T),m;try{let t=f.slice(0,-1).reduce((e,t)=>e[t],e),n=f.reduce((e,t)=>e[t],e);switch(d){case`GET`:m=n;break;case`SET`:t[f.slice(-1)[0]]=T(o.data.value),m=!0;break;case`APPLY`:m=n.apply(t,p);break;case`CONSTRUCT`:m=C(new n(...p));break;case`ENDPOINT`:{let{port1:t,port2:n}=new MessageChannel;c(e,n),m=S(t,[t])}break;case`RELEASE`:m=void 0;break;default:return}}catch(e){m={value:e,[i]:0}}Promise.resolve(m).catch(e=>({value:e,[i]:0})).then(n=>{let[i,o]=w(n);t.postMessage(Object.assign(Object.assign({},i),{id:l}),o),d===`RELEASE`&&(t.removeEventListener(`message`,a),u(t),r in e&&typeof e[r]==`function`&&e[r]())}).catch(e=>{let[n,r]=w({value:TypeError(`Unserializable return value`),[i]:0});t.postMessage(Object.assign(Object.assign({},n),{id:l}),r)})}),t.start&&t.start()}function l(e){return e.constructor.name===`MessagePort`}function u(e){l(e)&&e.close()}function d(e,t){let n=new Map;return e.addEventListener(`message`,function(e){let{data:t}=e;if(!t||!t.id)return;let r=n.get(t.id);if(r)try{r(t)}finally{n.delete(t.id)}}),v(e,n,[],t)}function f(e){if(e)throw Error(`Proxy has been released and is not useable`)}function p(e){return E(e,new Map,{type:`RELEASE`}).then(()=>{u(e)})}let m=new WeakMap,h=`FinalizationRegistry`in globalThis&&new FinalizationRegistry(e=>{let t=(m.get(e)||0)-1;m.set(e,t),t===0&&p(e)});function g(e,t){let n=(m.get(t)||0)+1;m.set(t,n),h&&h.register(e,t,e)}function _(e){h&&h.unregister(e)}function v(e,r,i=[],a=function(){}){let o=!1,s=new Proxy(a,{get(t,a){if(f(o),a===n)return()=>{_(s),p(e),r.clear(),o=!0};if(a===`then`){if(i.length===0)return{then:()=>s};let t=E(e,r,{type:`GET`,path:i.map(e=>e.toString())}).then(T);return t.then.bind(t)}return v(e,r,[...i,a])},set(t,n,a){f(o);let[s,c]=w(a);return E(e,r,{type:`SET`,path:[...i,n].map(e=>e.toString()),value:s},c).then(T)},apply(n,a,s){f(o);let c=i[i.length-1];if(c===t)return E(e,r,{type:`ENDPOINT`}).then(T);if(c===`bind`)return v(e,r,i.slice(0,-1));let[l,u]=b(s);return E(e,r,{type:`APPLY`,path:i.map(e=>e.toString()),argumentList:l},u).then(T)},construct(t,n){f(o);let[a,s]=b(n);return E(e,r,{type:`CONSTRUCT`,path:i.map(e=>e.toString()),argumentList:a},s).then(T)}});return g(s,e),s}function y(e){return Array.prototype.concat.apply([],e)}function b(e){let t=e.map(w);return[t.map(e=>e[0]),y(t.map(e=>e[1]))]}let x=new WeakMap;function S(e,t){return x.set(e,t),e}function C(t){return Object.assign(t,{[e]:!0})}function w(e){for(let[t,n]of o)if(n.canHandle(e)){let[r,i]=n.serialize(e);return[{type:`HANDLER`,name:t,value:r},i]}return[{type:`RAW`,value:e},x.get(e)||[]]}function T(e){switch(e.type){case`HANDLER`:return o.get(e.name).deserialize(e.value);case`RAW`:return e.value}}function E(e,t,n,r){return new Promise(i=>{let a=D();t.set(a,i),e.start&&e.start(),e.postMessage(Object.assign({id:a},n),r)})}function D(){return[,,,,].fill(0).map(()=>Math.floor(Math.random()*(2**53-1)).toString(16)).join(`-`)}let O=Object.freeze({diffTimeout:1,diffEditCost:4,matchThreshold:.5,matchDistance:1e3,patchDeleteThreshold:.5,patchMargin:4,matchMaxBits:32});function k(e){if(e?.__resolved)return e;let t={...O,...e};return Object.defineProperty(t,"__resolved",{value:!0,enumerable:!1}),t}function A(e,t){return[e,t]}function j(e,t,n,r=!0,i){let a=k(n);i===void 0&&(i=a.diffTimeout<=0?Number.MAX_VALUE:Date.now()+a.diffTimeout*1e3);let o=i;if(e==null||t==null)throw Error(`Null input. (diff_main)`);if(e===t)return e?[A(0,e)]:[];let s=r,c=R(e,t),l=e.substring(0,c);e=e.substring(c),t=t.substring(c),c=z(e,t);let u=e.substring(e.length-c);e=e.substring(0,e.length-c),t=t.substring(0,t.length-c);let d=M(e,t,a,s,o);return l&&d.unshift(A(0,l)),u&&d.push(A(0,u)),Y(d),d}function M(e,t,n,r,i){let a;if(!e)return[A(1,t)];if(!t)return[A(-1,e)];let o=e.length>t.length?e:t,s=e.length>t.length?t:e,c=o.indexOf(s);if(c!==-1)return a=[A(1,o.substring(0,c)),A(0,s),A(1,o.substring(c+s.length))],e.length>t.length&&(a[0][0]=a[2][0]=-1),a;if(s.length===1)return[A(-1,e),A(1,t)];let l=V(e,t,n);if(l){let e=l[0],t=l[1],a=l[2],o=l[3],s=l[4],c=j(e,a,n,r,i),u=j(t,o,n,r,i);return c.concat([A(0,s)],u)}return r&&e.length>100&&t.length>100?N(e,t,n,i):P(e,t,n,i)}function N(e,t,n,r){let i=I(e,t);e=i.chars1,t=i.chars2;let a=i.lineArray,o=j(e,t,n,!1,r);L(o,a),H(o),o.push(A(0,``));let s=0,c=0,l=0,u=``,d=``;for(;s<o.length;){switch(o[s][0]){case 1:l++,d+=o[s][1];break;case-1:c++,u+=o[s][1];break;case 0:if(c>=1&&l>=1){o.splice(s-c-l,c+l),s=s-c-l;let e=j(u,d,n,!1,r);for(let t=e.length-1;t>=0;t--)o.splice(s,0,e[t]);s+=e.length}l=0,c=0,u=``,d=``}s++}return o.pop(),o}function P(e,t,n,r){let i=e.length,a=t.length,o=Math.ceil((i+a)/2),s=o,c=2*o,l=Array(c),u=Array(c);for(let e=0;e<c;e++)l[e]=-1,u[e]=-1;l[s+1]=0,u[s+1]=0;let d=i-a,f=d%2!=0,p=0,m=0,h=0,g=0;for(let _=0;_<o&&!(Date.now()>r);_++){for(let o=-_+p;o<=_-m;o+=2){let h=s+o,g;g=o===-_||o!==_&&l[h-1]<l[h+1]?l[h+1]:l[h-1]+1;let v=g-o;for(;g<i&&v<a&&e.charAt(g)===t.charAt(v);)g++,v++;if(l[h]=g,g>i)m+=2;else if(v>a)p+=2;else if(f){let a=s+d-o;if(a>=0&&a<c&&u[a]!==-1){let o=i-u[a];if(g>=o)return F(e,t,n,g,v,r)}}}for(let o=-_+h;o<=_-g;o+=2){let p=s+o,m;m=o===-_||o!==_&&u[p-1]<u[p+1]?u[p+1]:u[p-1]+1;let v=m-o;for(;m<i&&v<a&&e.charAt(i-m-1)===t.charAt(a-v-1);)m++,v++;if(u[p]=m,m>i)g+=2;else if(v>a)h+=2;else if(!f){let a=s+d-o;if(a>=0&&a<c&&l[a]!==-1){let o=l[a],c=s+o-a;if(m=i-m,o>=m)return F(e,t,n,o,c,r)}}}}return[A(-1,e),A(1,t)]}function F(e,t,n,r,i,a){let o=e.substring(0,r),s=t.substring(0,i),c=e.substring(r),l=t.substring(i),u=j(o,s,n,!1,a),d=j(c,l,n,!1,a);return u.concat(d)}function I(e,t){let n=[],r={},i=4e4;n[0]=``;function a(e){let t=``,a=0,o=-1,s=n.length;for(;o<e.length-1;){o=e.indexOf(`
8
- `,a),o===-1&&(o=e.length-1);let c=e.substring(a,o+1);(r.hasOwnProperty?Object.hasOwn(r,c):r[c]!==void 0)?t+=String.fromCharCode(r[c]):(s===i&&(c=e.substring(a),o=e.length),t+=String.fromCharCode(s),r[c]=s,n[s++]=c),a=o+1}return t}let o=a(e);return i=65535,{chars1:o,chars2:a(t),lineArray:n}}function L(e,t){for(let n=0;n<e.length;n++){let r=e[n][1],i=[];for(let e=0;e<r.length;e++)i[e]=t[r.charCodeAt(e)];e[n][1]=i.join(``)}}function R(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(a,i)===t.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function z(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(e.length-i,e.length-a)===t.substring(t.length-i,t.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function B(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let i=Math.min(n,r);if(e===t)return i;let a=0,o=1;for(;;){let n=e.substring(i-o),r=t.indexOf(n);if(r===-1)return a;o+=r,(r===0||e.substring(i-o)===t.substring(0,o))&&(a=o,o++)}}function V(e,t,n){if(n.diffTimeout<=0)return null;let r=e.length>t.length?e:t,i=e.length>t.length?t:e;if(r.length<4||i.length*2<r.length)return null;function a(e,t,n){let r=e.substring(n,n+Math.floor(e.length/4)),i=-1,a=``,o,s,c,l;for(;(i=t.indexOf(r,i+1))!==-1;){let r=R(e.substring(n),t.substring(i)),u=z(e.substring(0,n),t.substring(0,i));a.length<u+r&&(a=t.substring(i-u,i)+t.substring(i,i+r),o=e.substring(0,n-u),s=e.substring(n+r),c=t.substring(0,i-u),l=t.substring(i+r))}return a.length*2>=e.length?[o,s,c,l,a]:null}let o=a(r,i,Math.ceil(r.length/4)),s=a(r,i,Math.ceil(r.length/2)),c;if(!o&&!s)return null;c=s?o&&o[4].length>s[4].length?o:s:o;let l,u,d,f;e.length>t.length?(l=c[0],u=c[1],d=c[2],f=c[3]):(d=c[0],f=c[1],l=c[2],u=c[3]);let p=c[4];return[l,u,d,f,p]}function H(e){let t=!1,n=[],r=0,i=null,a=0,o=0,s=0,c=0,l=0;for(;a<e.length;)e[a][0]===0?(n[r++]=a,o=c,s=l,c=0,l=0,i=e[a][1]):(e[a][0]===1?c+=e[a][1].length:l+=e[a][1].length,i&&i.length<=Math.max(o,s)&&i.length<=Math.max(c,l)&&(e.splice(n[r-1],0,A(-1,i)),e[n[r-1]+1][0]=1,r--,r--,a=r>0?n[r-1]:-1,o=0,s=0,c=0,l=0,i=null,t=!0)),a++;for(t&&Y(e),J(e),a=1;a<e.length;){if(e[a-1][0]===-1&&e[a][0]===1){let t=e[a-1][1],n=e[a][1],r=B(t,n),i=B(n,t);r>=i?(r>=t.length/2||r>=n.length/2)&&(e.splice(a,0,A(0,n.substring(0,r))),e[a-1][1]=t.substring(0,t.length-r),e[a+1][1]=n.substring(r),a++):(i>=t.length/2||i>=n.length/2)&&(e.splice(a,0,A(0,t.substring(0,i))),e[a-1][0]=1,e[a-1][1]=n.substring(0,n.length-i),e[a+1][0]=-1,e[a+1][1]=t.substring(i),a++),a++}a++}}let U=/[^a-z0-9]/i,W=/\s/,G=/[\r\n]/,K=/\n\r?\n$/,q=/^\r?\n\r?\n/;function J(e){function t(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(U),a=r.match(U),o=i&&n.match(W),s=a&&r.match(W),c=o&&n.match(G),l=s&&r.match(G),u=c&&e.match(K),d=l&&t.match(q);return u||d?5:c||l?4:i&&!o&&s?3:o||s?2:i||a?1:0}let n=1;for(;n<e.length-1;){if(e[n-1][0]===0&&e[n+1][0]===0){let r=e[n-1][1],i=e[n][1],a=e[n+1][1],o=z(r,i);if(o){let e=i.substring(i.length-o);r=r.substring(0,r.length-o),i=e+i.substring(0,i.length-o),a=e+a}let s=r,c=i,l=a,u=t(r,i)+t(i,a);for(;i.charAt(0)===a.charAt(0);){r+=i.charAt(0),i=i.substring(1)+a.charAt(0),a=a.substring(1);let e=t(r,i)+t(i,a);e>=u&&(u=e,s=r,c=i,l=a)}e[n-1][1]!==s&&(s?e[n-1][1]=s:(e.splice(n-1,1),n--),e[n][1]=c,l?e[n+1][1]=l:(e.splice(n+1,1),n--))}n++}}function Y(e){e.push(A(0,``));let t=0,n=0,r=0,i=``,a=``,o;for(;t<e.length;)switch(e[t][0]){case 1:r++,a+=e[t][1],t++;break;case-1:n++,i+=e[t][1],t++;break;case 0:n+r>1?(n!==0&&r!==0&&(o=R(a,i),o!==0&&(t-n-r>0&&e[t-n-r-1][0]===0?e[t-n-r-1][1]+=a.substring(0,o):(e.splice(0,0,A(0,a.substring(0,o))),t++),a=a.substring(o),i=i.substring(o)),o=z(a,i),o!==0&&(e[t][1]=a.substring(a.length-o)+e[t][1],a=a.substring(0,a.length-o),i=i.substring(0,i.length-o))),t-=n+r,e.splice(t,n+r),i.length&&(e.splice(t,0,A(-1,i)),t++),a.length&&(e.splice(t,0,A(1,a)),t++),t++):t!==0&&e[t-1][0]===0?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,i=``,a=``;break}e[e.length-1][1]===``&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===0&&e[t+1][0]===0&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&Y(e)}function X(e,t){let n=j(e.replace(/\r\n/g,`
7
+ let e=Symbol(`Comlink.proxy`),t=Symbol(`Comlink.endpoint`),n=Symbol(`Comlink.releaseProxy`),r=Symbol(`Comlink.finalizer`),i=Symbol(`Comlink.thrown`),a=e=>typeof e==`object`&&!!e||typeof e==`function`,o=new Map([[`proxy`,{canHandle:t=>a(t)&&t[e],serialize(e){let{port1:t,port2:n}=new MessageChannel;return c(e,t),[n,[n]]},deserialize(e){return e.start(),d(e)}}],[`throw`,{canHandle:e=>a(e)&&i in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(Error(e.value.message),e.value):e.value}}]]);function s(e,t){for(let n of e)if(t===n||n===`*`||n instanceof RegExp&&n.test(t))return!0;return!1}function c(e,t=globalThis,n=[`*`]){t.addEventListener(`message`,function a(o){if(!o||!o.data)return;if(!s(n,o.origin)){console.warn(`Invalid origin '${o.origin}' for comlink proxy`);return}let{id:l,type:d,path:f}=Object.assign({path:[]},o.data),p=(o.data.argumentList||[]).map(T),m;try{let t=f.slice(0,-1).reduce((e,t)=>e[t],e),n=f.reduce((e,t)=>e[t],e);switch(d){case`GET`:m=n;break;case`SET`:t[f.slice(-1)[0]]=T(o.data.value),m=!0;break;case`APPLY`:m=n.apply(t,p);break;case`CONSTRUCT`:m=C(new n(...p));break;case`ENDPOINT`:{let{port1:t,port2:n}=new MessageChannel;c(e,n),m=S(t,[t])}break;case`RELEASE`:m=void 0;break;default:return}}catch(e){m={value:e,[i]:0}}Promise.resolve(m).catch(e=>({value:e,[i]:0})).then(n=>{let[i,o]=w(n);t.postMessage(Object.assign(Object.assign({},i),{id:l}),o),d===`RELEASE`&&(t.removeEventListener(`message`,a),u(t),r in e&&typeof e[r]==`function`&&e[r]())}).catch(e=>{let[n,r]=w({value:TypeError(`Unserializable return value`),[i]:0});t.postMessage(Object.assign(Object.assign({},n),{id:l}),r)})}),t.start&&t.start()}function l(e){return e.constructor.name===`MessagePort`}function u(e){l(e)&&e.close()}function d(e,t){let n=new Map;return e.addEventListener(`message`,function(e){let{data:t}=e;if(!t||!t.id)return;let r=n.get(t.id);if(r)try{r(t)}finally{n.delete(t.id)}}),v(e,n,[],t)}function f(e){if(e)throw Error(`Proxy has been released and is not useable`)}function p(e){return E(e,new Map,{type:`RELEASE`}).then(()=>{u(e)})}let m=new WeakMap,h=`FinalizationRegistry`in globalThis&&new FinalizationRegistry(e=>{let t=(m.get(e)||0)-1;m.set(e,t),t===0&&p(e)});function g(e,t){let n=(m.get(t)||0)+1;m.set(t,n),h&&h.register(e,t,e)}function _(e){h&&h.unregister(e)}function v(e,r,i=[],a=function(){}){let o=!1,s=new Proxy(a,{get(t,a){if(f(o),a===n)return()=>{_(s),p(e),r.clear(),o=!0};if(a===`then`){if(i.length===0)return{then:()=>s};let t=E(e,r,{type:`GET`,path:i.map(e=>e.toString())}).then(T);return t.then.bind(t)}return v(e,r,[...i,a])},set(t,n,a){f(o);let[s,c]=w(a);return E(e,r,{type:`SET`,path:[...i,n].map(e=>e.toString()),value:s},c).then(T)},apply(n,a,s){f(o);let c=i[i.length-1];if(c===t)return E(e,r,{type:`ENDPOINT`}).then(T);if(c===`bind`)return v(e,r,i.slice(0,-1));let[l,u]=b(s);return E(e,r,{type:`APPLY`,path:i.map(e=>e.toString()),argumentList:l},u).then(T)},construct(t,n){f(o);let[a,s]=b(n);return E(e,r,{type:`CONSTRUCT`,path:i.map(e=>e.toString()),argumentList:a},s).then(T)}});return g(s,e),s}function y(e){return Array.prototype.concat.apply([],e)}function b(e){let t=e.map(w);return[t.map(e=>e[0]),y(t.map(e=>e[1]))]}let x=new WeakMap;function S(e,t){return x.set(e,t),e}function C(t){return Object.assign(t,{[e]:!0})}function w(e){for(let[t,n]of o)if(n.canHandle(e)){let[r,i]=n.serialize(e);return[{type:`HANDLER`,name:t,value:r},i]}return[{type:`RAW`,value:e},x.get(e)||[]]}function T(e){switch(e.type){case`HANDLER`:return o.get(e.name).deserialize(e.value);case`RAW`:return e.value}}function E(e,t,n,r){return new Promise(i=>{let a=D();t.set(a,i),e.start&&e.start(),e.postMessage(Object.assign({id:a},n),r)})}function D(){return[,,,,].fill(0).map(()=>Math.floor(Math.random()*(2**53-1)).toString(16)).join(`-`)}let O=Object.freeze({diffTimeout:1,diffEditCost:4,matchThreshold:.5,matchDistance:1e3,patchDeleteThreshold:.5,patchMargin:4,matchMaxBits:32});function k(e){if(e?.__resolved)return e;let t={...O,...e};return Object.defineProperty(t,"__resolved",{value:!0,enumerable:!1}),t}function A(e,t){return[e,t]}function j(e,t,n,r=!0,i){let a=k(n);i===void 0&&(i=a.diffTimeout<=0?Number.MAX_VALUE:Date.now()+a.diffTimeout*1e3);let o=i;if(e==null||t==null)throw Error(`Null input. (diff_main)`);if(e===t)return e?[A(0,e)]:[];let s=r,c=R(e,t),l=e.substring(0,c);e=e.substring(c),t=t.substring(c),c=z(e,t);let u=e.substring(e.length-c);e=e.substring(0,e.length-c),t=t.substring(0,t.length-c);let d=M(e,t,a,s,o);return l&&d.unshift(A(0,l)),u&&d.push(A(0,u)),Y(d),d}function M(e,t,n,r,i){let a;if(!e)return[A(1,t)];if(!t)return[A(-1,e)];let o=e.length>t.length?e:t,s=e.length>t.length?t:e,c=o.indexOf(s);if(c!==-1)return a=[A(1,o.substring(0,c)),A(0,s),A(1,o.substring(c+s.length))],e.length>t.length&&(a[0][0]=a[2][0]=-1),a;if(s.length===1)return[A(-1,e),A(1,t)];let l=V(e,t,n);if(l){let e=l[0],t=l[1],a=l[2],o=l[3],s=l[4],c=j(e,a,n,r,i),u=j(t,o,n,r,i);return c.concat([A(0,s)],u)}return r&&e.length>100&&t.length>100?N(e,t,n,i):P(e,t,n,i)}function N(e,t,n,r){let i=I(e,t);e=i.chars1,t=i.chars2;let a=i.lineArray,o=j(e,t,n,!1,r);L(o,a),H(o),o.push(A(0,``));let s=0,c=0,l=0,u=``,d=``;for(;s<o.length;){switch(o[s][0]){case 1:l++,d+=o[s][1];break;case-1:c++,u+=o[s][1];break;case 0:if(c>=1&&l>=1){o.splice(s-c-l,c+l),s=s-c-l;let e=j(u,d,n,!1,r);for(let t=e.length-1;t>=0;t--)o.splice(s,0,e[t]);s+=e.length}l=0,c=0,u=``,d=``}s++}return o.pop(),o}function P(e,t,n,r){let i=e.length,a=t.length,o=Math.ceil((i+a)/2),s=o,c=2*o,l=Array(c),u=Array(c);for(let e=0;e<c;e++)l[e]=-1,u[e]=-1;l[s+1]=0,u[s+1]=0;let d=i-a,f=d%2!=0,p=0,m=0,h=0,g=0;for(let _=0;_<o&&!(Date.now()>r);_++){for(let o=-_+p;o<=_-m;o+=2){let h=s+o,g;g=o===-_||o!==_&&l[h-1]<l[h+1]?l[h+1]:l[h-1]+1;let v=g-o;for(;g<i&&v<a&&e.charAt(g)===t.charAt(v);)g++,v++;if(l[h]=g,g>i)m+=2;else if(v>a)p+=2;else if(f){let a=s+d-o;if(a>=0&&a<c&&u[a]!==-1){let o=i-u[a];if(g>=o)return F(e,t,n,g,v,r)}}}for(let o=-_+h;o<=_-g;o+=2){let p=s+o,m;m=o===-_||o!==_&&u[p-1]<u[p+1]?u[p+1]:u[p-1]+1;let v=m-o;for(;m<i&&v<a&&e.charAt(i-m-1)===t.charAt(a-v-1);)m++,v++;if(u[p]=m,m>i)g+=2;else if(v>a)h+=2;else if(!f){let a=s+d-o;if(a>=0&&a<c&&l[a]!==-1){let o=l[a],c=s+o-a;if(m=i-m,o>=m)return F(e,t,n,o,c,r)}}}}return[A(-1,e),A(1,t)]}function F(e,t,n,r,i,a){let o=e.substring(0,r),s=t.substring(0,i),c=e.substring(r),l=t.substring(i),u=j(o,s,n,!1,a),d=j(c,l,n,!1,a);return u.concat(d)}function I(e,t){let n=[],r=Object.create(null),i=4e4;n[0]=``;function a(e){let t=``,a=0,o=-1,s=n.length;for(;o<e.length-1;){o=e.indexOf(`
8
+ `,a),o===-1&&(o=e.length-1);let c=e.substring(a,o+1);r[c]===void 0?(s===i&&(c=e.substring(a),o=e.length),t+=String.fromCharCode(s),r[c]=s,n[s++]=c):t+=String.fromCharCode(r[c]),a=o+1}return t}let o=a(e);return i=65535,{chars1:o,chars2:a(t),lineArray:n}}function L(e,t){for(let n=0;n<e.length;n++){let r=e[n][1],i=[];for(let e=0;e<r.length;e++)i[e]=t[r.charCodeAt(e)];e[n][1]=i.join(``)}}function R(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(a,i)===t.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function z(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(e.length-i,e.length-a)===t.substring(t.length-i,t.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function B(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let i=Math.min(n,r);if(e===t)return i;let a=0,o=1;for(;;){let n=e.substring(i-o),r=t.indexOf(n);if(r===-1)return a;o+=r,(r===0||e.substring(i-o)===t.substring(0,o))&&(a=o,o++)}}function V(e,t,n){if(n.diffTimeout<=0)return null;let r=e.length>t.length?e:t,i=e.length>t.length?t:e;if(r.length<4||i.length*2<r.length)return null;function a(e,t,n){let r=e.substring(n,n+Math.floor(e.length/4)),i=-1,a=``,o,s,c,l;for(;(i=t.indexOf(r,i+1))!==-1;){let r=R(e.substring(n),t.substring(i)),u=z(e.substring(0,n),t.substring(0,i));a.length<u+r&&(a=t.substring(i-u,i)+t.substring(i,i+r),o=e.substring(0,n-u),s=e.substring(n+r),c=t.substring(0,i-u),l=t.substring(i+r))}return a.length*2>=e.length?[o,s,c,l,a]:null}let o=a(r,i,Math.ceil(r.length/4)),s=a(r,i,Math.ceil(r.length/2)),c;if(!o&&!s)return null;c=s?o&&o[4].length>s[4].length?o:s:o;let l,u,d,f;e.length>t.length?(l=c[0],u=c[1],d=c[2],f=c[3]):(d=c[0],f=c[1],l=c[2],u=c[3]);let p=c[4];return[l,u,d,f,p]}function H(e){let t=!1,n=[],r=0,i=null,a=0,o=0,s=0,c=0,l=0;for(;a<e.length;)e[a][0]===0?(n[r++]=a,o=c,s=l,c=0,l=0,i=e[a][1]):(e[a][0]===1?c+=e[a][1].length:l+=e[a][1].length,i&&i.length<=Math.max(o,s)&&i.length<=Math.max(c,l)&&(e.splice(n[r-1],0,A(-1,i)),e[n[r-1]+1][0]=1,r--,r--,a=r>0?n[r-1]:-1,o=0,s=0,c=0,l=0,i=null,t=!0)),a++;for(t&&Y(e),J(e),a=1;a<e.length;){if(e[a-1][0]===-1&&e[a][0]===1){let t=e[a-1][1],n=e[a][1],r=B(t,n),i=B(n,t);r>=i?(r>=t.length/2||r>=n.length/2)&&(e.splice(a,0,A(0,n.substring(0,r))),e[a-1][1]=t.substring(0,t.length-r),e[a+1][1]=n.substring(r),a++):(i>=t.length/2||i>=n.length/2)&&(e.splice(a,0,A(0,t.substring(0,i))),e[a-1][0]=1,e[a-1][1]=n.substring(0,n.length-i),e[a+1][0]=-1,e[a+1][1]=t.substring(i),a++),a++}a++}}let U=/[^a-z0-9]/i,W=/\s/,G=/[\r\n]/,K=/\n\r?\n$/,q=/^\r?\n\r?\n/;function J(e){function t(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(U),a=r.match(U),o=i&&n.match(W),s=a&&r.match(W),c=o&&n.match(G),l=s&&r.match(G),u=c&&e.match(K),d=l&&t.match(q);return u||d?5:c||l?4:i&&!o&&s?3:o||s?2:i||a?1:0}let n=1;for(;n<e.length-1;){if(e[n-1][0]===0&&e[n+1][0]===0){let r=e[n-1][1],i=e[n][1],a=e[n+1][1],o=z(r,i);if(o){let e=i.substring(i.length-o);r=r.substring(0,r.length-o),i=e+i.substring(0,i.length-o),a=e+a}let s=r,c=i,l=a,u=t(r,i)+t(i,a);for(;i.charAt(0)===a.charAt(0);){r+=i.charAt(0),i=i.substring(1)+a.charAt(0),a=a.substring(1);let e=t(r,i)+t(i,a);e>=u&&(u=e,s=r,c=i,l=a)}e[n-1][1]!==s&&(s?e[n-1][1]=s:(e.splice(n-1,1),n--),e[n][1]=c,l?e[n+1][1]=l:(e.splice(n+1,1),n--))}n++}}function Y(e){e.push(A(0,``));let t=0,n=0,r=0,i=``,a=``,o;for(;t<e.length;)switch(e[t][0]){case 1:r++,a+=e[t][1],t++;break;case-1:n++,i+=e[t][1],t++;break;case 0:n+r>1?(n!==0&&r!==0&&(o=R(a,i),o!==0&&(t-n-r>0&&e[t-n-r-1][0]===0?e[t-n-r-1][1]+=a.substring(0,o):(e.splice(0,0,A(0,a.substring(0,o))),t++),a=a.substring(o),i=i.substring(o)),o=z(a,i),o!==0&&(e[t][1]=a.substring(a.length-o)+e[t][1],a=a.substring(0,a.length-o),i=i.substring(0,i.length-o))),t-=n+r,e.splice(t,n+r),i.length&&(e.splice(t,0,A(-1,i)),t++),a.length&&(e.splice(t,0,A(1,a)),t++),t++):t!==0&&e[t-1][0]===0?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,i=``,a=``;break}e[e.length-1][1]===``&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===0&&e[t+1][0]===0&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&Y(e)}function X(e,t){let n=j(e.replace(/\r\n/g,`
9
9
  `),t.replace(/\r\n/g,`
10
10
  `));return H(n),n}c({calculateDiff:X})})();