vite-plugin-vue-devtools 8.2.1 → 9.0.0-beta.1

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 (85) hide show
  1. package/README.md +28 -11
  2. package/client/assets/Checkbox-3-BZG_RU.js +1 -0
  3. package/client/assets/InspectorState-DucXtGYl.js +1 -0
  4. package/client/assets/InspectorTree-C4e-JJiX.js +1 -0
  5. package/client/assets/InspectorTree-CyiZHbQn.css +1 -0
  6. package/client/assets/MaterialIcons-Regular-BjVsc-s9.woff2 +0 -0
  7. package/client/assets/RecycleScroller.vue_vue_type_script_setup_true_lang-C7mZBLYi-Qu6vm2Hq.js +1 -0
  8. package/client/assets/_plugin-vue_export-helper-Bi7R8aHR.js +4 -0
  9. package/client/assets/browser-agent-Pu-FLk6I-Dsjmnbas.js +1 -0
  10. package/client/assets/browser-agent-rpc-BXhoSh1z-D8UCXOqP.js +1 -0
  11. package/client/assets/component-tree-C3C12cZe.js +1 -0
  12. package/client/assets/components-BzB47Xnc.css +1 -0
  13. package/client/assets/components-DNv7Rrwe.js +3 -0
  14. package/client/assets/custom-inspector-Da_34cDJ.js +1 -0
  15. package/client/assets/graph-C1luIbSW.js +1 -0
  16. package/client/assets/index-C7PEBwPL.js +3 -0
  17. package/client/assets/index-DN6AzVF_.css +1 -0
  18. package/client/assets/nue-glow-CTWFs9wv.js +1 -0
  19. package/client/assets/overview-DoJqxsjr.js +1 -0
  20. package/client/assets/pages-CGMfqD7Z.js +1 -0
  21. package/client/assets/pages-CybqUBzQ.css +1 -0
  22. package/client/assets/plugins-CiKZQpE4.js +1 -0
  23. package/client/assets/plugins-OIsWSXcW.css +1 -0
  24. package/client/assets/settings-Ce4aDLyW.js +1 -0
  25. package/client/assets/settings-cOj3bqKq.css +1 -0
  26. package/client/assets/splitpanes.esm-Cwf-Yw0X.js +1 -0
  27. package/client/assets/timeline-B8YJRZK8.css +1 -0
  28. package/client/assets/timeline-D2Qq6Gi0.js +1 -0
  29. package/client/dock-client.js +5 -0
  30. package/client/index.html +6 -6
  31. package/dist/client.cjs +1 -0
  32. package/dist/client.d.cts +11 -0
  33. package/dist/client.d.mts +11 -0
  34. package/dist/client.mjs +1 -0
  35. package/dist/constants-BRtZjlMX.cjs +1 -0
  36. package/dist/constants-CGjdG_4e.mjs +1 -0
  37. package/dist/dirs.cjs +1 -0
  38. package/dist/dirs.d.cts +3 -0
  39. package/dist/dirs.d.mts +3 -0
  40. package/dist/dirs.mjs +1 -0
  41. package/dist/index.cjs +10 -0
  42. package/dist/index.d.cts +23 -0
  43. package/dist/index.d.mts +23 -0
  44. package/dist/index.mjs +10 -0
  45. package/package.json +54 -45
  46. package/client/assets/IconTitle.vue_vue_type_script_setup_true_lang-D5g2prMu.js +0 -1
  47. package/client/assets/SectionBlock-BYDDTsu3.css +0 -1
  48. package/client/assets/SectionBlock-Biihhc2C.js +0 -1
  49. package/client/assets/assets-QpyTnMa8.js +0 -12
  50. package/client/assets/components-08pvkKwZ.js +0 -1
  51. package/client/assets/css-DPfMkruS.js +0 -1
  52. package/client/assets/custom-inspector-tab-view-B2m9qzhF.js +0 -1
  53. package/client/assets/custom-tab-view-CXeNmTgo.js +0 -1
  54. package/client/assets/diff-D97Zzqfu.js +0 -1
  55. package/client/assets/graph-DCWSDGn-.js +0 -1020
  56. package/client/assets/html-B8pBdPMQ.js +0 -1
  57. package/client/assets/index-BmFftAtl.css +0 -1
  58. package/client/assets/index-FgjDDWNS.js +0 -2386
  59. package/client/assets/index-hjC9Y1mh.css +0 -1
  60. package/client/assets/javascript-BMMyXqK5.js +0 -1
  61. package/client/assets/json-Cp-IABpG.js +0 -1
  62. package/client/assets/overview-B3GBT8hD.js +0 -1
  63. package/client/assets/pages-1s594C1E.js +0 -1
  64. package/client/assets/pinia-CLtzxCa9.js +0 -1
  65. package/client/assets/router-BiMtDFT8.js +0 -1
  66. package/client/assets/settings-B5yztIqn.js +0 -1
  67. package/client/assets/shellscript-Yzrsuije.js +0 -1
  68. package/client/assets/timeline-BHd1DT8_.js +0 -1
  69. package/client/assets/timeline-BZZEyhA7.css +0 -1
  70. package/client/assets/typescript-DlfHMoPT.js +0 -1
  71. package/client/assets/vitesse-dark-D0r3Knsf.js +0 -1
  72. package/client/assets/vitesse-light-CVO1_9PV.js +0 -1
  73. package/client/assets/vue-CYH3TOzo.js +0 -1
  74. package/client/assets/vue-apis-DJBctb31.js +0 -1
  75. package/client/assets/vue-html-zSiQ3dJi.js +0 -1
  76. package/client/assets/yaml-Buea-lGh.js +0 -1
  77. package/client/color-scheme.js +0 -6
  78. package/client/logo.svg +0 -208
  79. package/dist/vite.cjs +0 -6813
  80. package/dist/vite.d.cts +0 -42
  81. package/dist/vite.d.ts +0 -42
  82. package/dist/vite.js +0 -6806
  83. package/src/overlay/devtools-overlay.css +0 -1
  84. package/src/overlay/devtools-overlay.mjs +0 -8
  85. package/src/overlay.js +0 -75
@@ -0,0 +1 @@
1
+ import{A as e,D as t,Dt as n,Et as r,I as i,J as a,K as o,M as s,T as c,W as l,Y as u,b as d,d as f,et as p,f as m,h,i as g,j as _,l as v,m as y,nt as b,ot as x,p as S,rt as ee,v as te,wt as C,y as w,z as ne}from"./_plugin-vue_export-helper-Bi7R8aHR.js";import{d as T,f as re,i as E,p as D}from"./index-C7PEBwPL.js";import{n as O}from"./RecycleScroller.vue_vue_type_script_setup_true_lang-C7mZBLYi-Qu6vm2Hq.js";import{t as k}from"./InspectorTree-C4e-JJiX.js";import{n as A,t as j}from"./splitpanes.esm-Cwf-Yw0X.js";import{t as M}from"./component-tree-C3C12cZe.js";var N=8,P=16,F=7.2,I=172,L=76;function ie(e,t,n){let r=new Set(e.nodes.map(e=>e.id)),i=new Map(e.nodes.map(e=>[e.id,e.id])),a=new Map(e.nodes.map(e=>[e.id,0])),o=new Map(e.nodes.map(e=>[e.id,0]));function s(e){let t=i.get(e)??e;if(t===e)return t;let n=s(t);return i.set(e,n),n}function c(e,t){let n=s(e),r=s(t);n!==r&&i.set(r,n)}for(let t of e.relationships)r.has(t.from)&&r.has(t.to)&&(c(t.from,t.to),o.set(t.from,(o.get(t.from)??0)+1),a.set(t.to,(a.get(t.to)??0)+1));let l=new Map,u=[];for(let t of e.nodes){let e=s(t.id);if(l.has(e))continue;let n=l.size;l.set(e,n),u.push({id:n,nodeCount:0,relationshipCount:0})}let d=ae(u,t,n),f=e.nodes.map(e=>{let r=l.get(s(e.id))??0,i=(a.get(e.id)??0)+(o.get(e.id)??0),c=Math.min(P,N+Math.sqrt(i+1)*3),f=d.get(r)??{x:t/2,y:n/2},p=V(e.id)%360*(Math.PI/180),m=18+V(`${e.id}:distance`)%54,h=u[r];return h&&(h.nodeCount+=1),{id:e.id,type:e.type,label:e.label,group:r,incoming:a.get(e.id)??0,labelWidth:R(z(e)),outgoing:o.get(e.id)??0,radius:c,x:f.x+Math.cos(p)*m,y:f.y+Math.sin(p)*m}});return{groups:u,links:e.relationships.map(e=>{if(!r.has(e.from)||!r.has(e.to))return;let t=l.get(s(e.from))??0,n=u[t];return n&&(n.relationshipCount+=1),{...e,group:t,source:e.from,target:e.to,value:1}}).filter(e=>e!==void 0),nodes:f}}function ae(e,t,n){let r=new Map;if(!e.length)return r;let i=Math.ceil(Math.sqrt(e.length)),a=Math.ceil(e.length/i),o=Math.min(170,Math.max(78,t*.12)),s=Math.min(128,Math.max(76,n*.16)),c=Math.max(1,t-o*2),l=Math.max(1,n-s*2);return e.forEach((e,t)=>{let n=t%i,u=Math.floor(t/i);r.set(e.id,{x:o+c*(n+.5)/i,y:s+l*(u+.5)/a})}),r}function oe(e){return e.length<=22?e:`${e.slice(0,12)}...${e.slice(-7)}`}function R(e){return Math.min(I,Math.max(L,oe(e).length*F+22))}function z(e){let t=B(e.type);return new Set([e.type,t,`component render`,`reactive.property`,`render/effect`,`watch callback`]).has(e.label)?t:e.label}function B(e){switch(e){case`ref`:return`Anonymous Ref`;case`computed`:return`Anonymous Computed`;case`reactive`:return`Reactive Property`;case`watch`:return`Anonymous Watch`;case`render`:return`Anonymous Render`;case`effect`:return`Anonymous Effect`;default:return`Unknown`}}function V(e){let t=0;for(let n=0;n<e.length;n+=1)t=Math.imul(31,t)+e.charCodeAt(n);return Math.abs(t)}var se=[`ref`,`reactive`,`computed`,`watch`,`effect`,`render`,`unknown`];function ce(e){switch(e){case`ref`:return`#21a67a`;case`computed`:return`#3b82d6`;case`reactive`:return`#d79822`;case`render`:return`#f97316`;case`watch`:return`#0f766e`;case`effect`:return`#d84f45`;default:return`#94a3b8`}}function H(e){switch(e){case`ref`:return`Ref`;case`computed`:return`Computed`;case`reactive`:return`Reactive`;case`render`:return`Render Effect`;case`watch`:return`Watch`;case`effect`:return`Effect`;default:return`Unknown`}}function le(e){return e.trim().toLowerCase()}function ue(e,t){return!t||[e.id,e.label,H(e.type),de(e),...Object.values(e.data).map(e=>String(e))].some(e=>e.toLowerCase().includes(t))}function de(e){if(!e)return``;let t=e.data;if(!t)return``;let n=t.value??t.cb??t.instanceName;if(n==null)return``;if(typeof n==`string`)return n;try{return JSON.stringify(n)}catch{return String(n)}}function fe(){return{nodeIds:new Set,orderedNodeIds:[],orderedRelationshipIds:[],relationshipIds:new Set}}function pe(e){let t=new Map;for(let n of e){let e=t.get(n.from)??[];e.push(n),t.set(n.from,e)}return t}function me(e,t){let n=new Set(t.map(e=>e.to));return new Set(e.filter(e=>!n.has(e.id)).map(e=>e.id))}function he(e,t){let n=new Set([e]),r=[e];for(let e of r)for(let i of t.get(e)??[])n.has(i.to)||(n.add(i.to),r.push(i.to));return n.delete(e),n}function ge(e,t,n){if(!e||!t)return fe();let r=new Map,i=new Set([e]),a=[e];for(let e of a){if(i.has(t))break;for(let o of n.get(e)??[])if(!i.has(o.to)&&(i.add(o.to),r.set(o.to,o),a.push(o.to),o.to===t))break}let o=[t],s=[];if(i.has(t)){let n=t;for(;n!==e;){let e=r.get(n);s.push(e.id),o.push(e.from),n=e.from}}else o.push(e);return o.reverse(),s.reverse(),{nodeIds:new Set(o),orderedNodeIds:o,relationshipIds:new Set(s),orderedRelationshipIds:s}}var _e={class:`shrink-0 bg-base px-2`},ve={class:`min-w-0 flex items-center gap-2 py-2`},ye={key:0,class:`group relative min-w-0 flex flex-1 items-center justify-between gap-2 overflow-hidden rounded-1 border border-primary-100 px-3 py-0.75 color-base dark:border-gray-700`},be={key:1,class:`min-w-0 flex flex-1 items-center gap-2`},xe={class:`relative min-w-0 flex-1`},Se={key:0,class:`min-w-0 w-full overflow-hidden rounded-1 border border-base px-2 py-1 color-base flex items-center gap-1.5`},Ce={class:`min-w-0 flex-1 truncate font-state-field text-3.5`},we=[`value`],Te={key:2,class:`absolute left-0 right-0 top-[calc(100%+4px)] z-50 max-h-58 overflow-auto rounded-1 border border-base bg-base p-1 shadow`},Ee=[`onMousedown`],De={class:`min-w-0 flex-1 truncate font-state-field text-3.5`},Oe={class:`shrink-0 color-muted text-3`},ke={key:0,class:`px-2 py-2 color-muted text-3 italic`},Ae={class:`relative min-w-0 flex-1`},je={key:0,class:`min-w-0 w-full overflow-hidden rounded-1 border border-base px-2 py-1 color-base flex items-center gap-1.5`},Me={class:`min-w-0 flex-1 truncate font-state-field text-3.5`},Ne=[`value`],Pe={key:2,class:`absolute left-0 right-0 top-[calc(100%+4px)] z-50 max-h-58 overflow-auto rounded-1 border border-base bg-base p-1 shadow`},Fe=[`onMousedown`],Ie={class:`min-w-0 flex-1 truncate font-state-field text-3.5`},Le={class:`shrink-0 color-muted text-3`},Re={key:0,class:`px-2 py-2 color-muted text-3 italic`},ze=[`aria-pressed`],Be=[`aria-expanded`],Ve={class:`mb-1 flex items-center justify-between gap-2`},He={class:`w-14 shrink-0 text-right color-muted font-state-field text-3`},Ue=[`title`],We=[`checked`,`onChange`],Ge={class:`min-w-0 flex-1 truncate font-state-field text-3.5`},Ke={class:`w-10 shrink-0 text-right color-muted text-3`},qe=220,Je=d({__name:`ReactivityGraphToolbar`,props:c({graph:{},filteredGraph:{}},{search:{required:!0},searchModifiers:{},activeTypes:{required:!0},activeTypesModifiers:{},pathSelectorOpen:{type:Boolean,required:!0},pathSelectorOpenModifiers:{},pathStartId:{required:!0},pathStartIdModifiers:{},pathEndId:{required:!0},pathEndIdModifiers:{},selectedNodeId:{},selectedNodeIdModifiers:{}}),emits:[`update:search`,`update:activeTypes`,`update:pathSelectorOpen`,`update:pathStartId`,`update:pathEndId`,`update:selectedNodeId`],setup(e){let t=e,a=ee(t,`filteredGraph`),c=l(e,`search`),d=l(e,`activeTypes`),g=l(e,`pathSelectorOpen`),b=l(e,`pathStartId`),S=l(e,`pathEndId`),te=l(e,`selectedNodeId`),O=p(),k=p(``),A=p(``),j=p(!1),M,N=f(()=>{let e=new Map;for(let t of se)e.set(t,0);for(let n of t.graph.nodes)e.set(n.type,(e.get(n.type)??0)+1);return e}),P=f(()=>new Map(t.graph.nodes.map(e=>[e.id,e]))),F=f(()=>[...a.value.nodes].sort((e,t)=>tt(e.id).localeCompare(tt(t.id)))),I=f(()=>me(a.value.nodes,a.value.relationships)),L=f(()=>pe(a.value.relationships)),ie=f(()=>et(k.value,S.value,I.value)),ae=f(()=>b.value?he(b.value,L.value):new Set),oe=f(()=>et(A.value,b.value,ae.value)),R=f(()=>!!b.value&&!!S.value);function B(e){return e.target instanceof HTMLInputElement?e.target.value:``}function V(e){return d.value.has(e)}function de(e){let t=new Set(d.value);t.has(e)?t.delete(e):t.add(e),d.value=t,W()}function fe(){d.value=new Set(se),W()}function ge(){d.value=new Set,W()}function Je(){M&&=(clearTimeout(M),void 0)}function Ye(){Je(),j.value=!0}function U(e){if(e instanceof FocusEvent){let t=e.currentTarget,n=e.relatedTarget;if(t instanceof Node&&n instanceof Node&&t.contains(n))return}Je(),M=setTimeout(()=>{j.value=!1,M=void 0},qe)}function Xe(){c.value=``,g.value=!0,O.value=`start`}function W(){g.value=!1,O.value=void 0,b.value=``,S.value=``,k.value=``,A.value=``}function Ze(e,t){e===`start`?(k.value=t,(!t||t!==tt(b.value))&&(G(),k.value=t)):(A.value=t,(!t||t!==tt(S.value))&&($e(),A.value=t))}function Qe(e,t){e===`start`?(b.value!==t&&$e(),b.value=t,k.value=tt(t),O.value=S.value?void 0:`end`):(S.value=t,A.value=tt(t),O.value=b.value?void 0:`start`),b.value&&S.value&&(te.value=void 0)}function G(){b.value=``,k.value=``,$e(),O.value=`start`}function $e(){S.value=``,A.value=``,O.value=`end`}function et(e,t,n){let r=le(e);return F.value.filter(e=>e.id===t||n&&!n.has(e.id)?!1:ue(e,r)).slice(0,8)}function tt(e){let t=P.value.get(e);return t?`${z(t)} (${H(t.type)})`:``}function nt(e){let t=P.value.get(e);return t?z(t):``}function rt(e){let t=P.value.get(e);return ce(t?t.type:`unknown`)}return o(g,e=>{e||W()}),_(Je),(e,o)=>{let l=ne(`tooltip`);return s(),h(`div`,_e,[m(`div`,ve,[g.value?(s(),h(`div`,be,[m(`div`,xe,[b.value?(s(),h(`div`,Se,[m(`span`,{class:`h-2.3 w-2.3 shrink-0 rounded-full`,style:r({background:rt(b.value)})},null,4),m(`span`,Ce,n(nt(b.value)),1),u((s(),h(`button`,{class:`h-7 w-7 shrink-0 rounded-1 border-0 bg-transparent color-muted flex items-center justify-center op70 hover:bg-active hover:color-base hover:op100`,type:`button`,"aria-label":`Clear path start`,onClick:G},[w(E,{icon:`i-carbon-clean`,class:`text-5.5`})])),[[l,`Clear start`,void 0,{top:!0}]])])):(s(),h(`input`,{key:1,class:`min-w-0 w-full rounded-1 border border-base bg-transparent px-3 py-1 outline-none font-state-field text-3.5 color-base placeholder-color-gray-500 dark:placeholder-gray-300`,placeholder:`Start`,type:`search`,value:k.value,onFocus:o[2]||=e=>O.value=`start`,onInput:o[3]||=e=>Ze(`start`,B(e)),onKeydown:re(W,[`esc`])},null,40,we)),!b.value&&O.value===`start`?(s(),h(`div`,Te,[(s(!0),h(v,null,i(ie.value,e=>(s(),h(`button`,{key:e.id,class:`min-w-0 w-full rounded-1 border-0 bg-transparent px-2 py-1.5 text-left color-base flex items-center gap-1.5 hover:bg-active`,type:`button`,onMousedown:D(t=>Qe(`start`,e.id),[`prevent`])},[m(`span`,{class:`h-2.3 w-2.3 shrink-0 rounded-full`,style:r({background:x(ce)(e.type)})},null,4),m(`span`,De,n(x(z)(e)),1),m(`span`,Oe,n(x(H)(e.type)),1)],40,Ee))),128)),ie.value.length?y(``,!0):(s(),h(`div`,ke,` No matching nodes `))])):y(``,!0)]),w(E,{icon:`i-carbon-arrow-right`,class:`shrink-0 color-muted text-5`}),m(`div`,Ae,[S.value?(s(),h(`div`,je,[m(`span`,{class:`h-2.3 w-2.3 shrink-0 rounded-full`,style:r({background:rt(S.value)})},null,4),m(`span`,Me,n(nt(S.value)),1),u((s(),h(`button`,{class:`h-7 w-7 shrink-0 rounded-1 border-0 bg-transparent color-muted flex items-center justify-center op70 hover:bg-active hover:color-base hover:op100`,type:`button`,"aria-label":`Clear path end`,onClick:$e},[w(E,{icon:`i-carbon-clean`,class:`text-5.5`})])),[[l,`Clear end`,void 0,{top:!0}]])])):(s(),h(`input`,{key:1,class:`min-w-0 w-full rounded-1 border border-base bg-transparent px-3 py-1 outline-none font-state-field text-3.5 color-base placeholder-color-gray-500 dark:placeholder-gray-300`,placeholder:`End`,type:`search`,value:A.value,onFocus:o[4]||=e=>O.value=`end`,onInput:o[5]||=e=>Ze(`end`,B(e)),onKeydown:re(W,[`esc`])},null,40,Ne)),!S.value&&O.value===`end`?(s(),h(`div`,Pe,[(s(!0),h(v,null,i(oe.value,e=>(s(),h(`button`,{key:e.id,class:`min-w-0 w-full rounded-1 border-0 bg-transparent px-2 py-1.5 text-left color-base flex items-center gap-1.5 hover:bg-active`,type:`button`,onMousedown:D(t=>Qe(`end`,e.id),[`prevent`])},[m(`span`,{class:`h-2.3 w-2.3 shrink-0 rounded-full`,style:r({background:x(ce)(e.type)})},null,4),m(`span`,Ie,n(x(z)(e)),1),m(`span`,Le,n(x(H)(e.type)),1)],40,Fe))),128)),oe.value.length?y(``,!0):(s(),h(`div`,Re,n(b.value?`No matching nodes`:`Select a start node to get end nodes`),1))])):y(``,!0)])])):(s(),h(`label`,ye,[w(E,{icon:`i-carbon-search`,class:`shrink-0 color-muted text-4`}),u(m(`input`,{"onUpdate:modelValue":o[0]||=e=>c.value=e,class:`min-w-0 w-full border-0 bg-transparent p-0 outline-none text-3.5 color-inherit placeholder-color-gray-500 dark:placeholder-gray-300`,placeholder:`Search graph...`,type:`search`},null,512),[[T,c.value]]),c.value?u((s(),h(`button`,{key:0,class:`h-6 w-6 shrink-0 rounded-1 border-0 bg-transparent color-muted flex items-center justify-center hover:bg-active hover:color-base`,type:`button`,"aria-label":`Clear search`,onClick:o[1]||=e=>c.value=``},[w(E,{icon:`i-carbon-close`,class:`text-3.5`})])),[[l,`Clear search`,void 0,{top:!0}]]):y(``,!0)])),g.value?u((s(),h(`button`,{key:3,class:`h-7 w-7 shrink-0 rounded-1 border-0 bg-transparent color-muted flex items-center justify-center hover:bg-active hover:color-base`,type:`button`,"aria-label":`Close path selector`,onClick:W},[w(E,{icon:`i-carbon-close`,class:`text-5`})])),[[l,`Close path selector`,void 0,{top:!0}]]):u((s(),h(`button`,{key:2,class:C([`h-7 w-7 shrink-0 rounded-1 border-0 bg-transparent color-muted flex items-center justify-center hover:bg-active hover:color-base`,g.value||R.value?`bg-active color-active`:``]),type:`button`,"aria-label":`Graph path selector`,"aria-pressed":g.value||R.value,onClick:o[6]||=e=>g.value?W():Xe()},[w(E,{icon:`i-ri-route-line`,class:`text-5.5`})],10,ze)),[[l,g.value?`Clear path selector`:`Graph path selector`,void 0,{top:!0}]]),m(`div`,{class:`relative shrink-0`,onFocusin:Ye,onFocusout:U,onMouseenter:Ye,onMouseleave:U},[u((s(),h(`button`,{class:C([`h-7 w-7 rounded-1 border-0 bg-transparent color-muted flex items-center justify-center hover:bg-active hover:color-base`,j.value?`bg-active color-base`:``]),type:`button`,"aria-label":`Filter reactivity types`,"aria-haspopup":`menu`,"aria-expanded":j.value},[w(E,{icon:`i-carbon-filter`,class:`text-4`})],10,Be)),[[l,`Filter reactivity types`,void 0,{top:!0}]]),m(`div`,{class:C([`absolute right-0 top-[calc(100%+4px)] z-50 w-62 rounded-1 border border-base bg-base p-2 shadow transition-opacity`,j.value?`pointer-events-auto op-100`:`pointer-events-none op-0`]),role:`menu`},[m(`div`,Ve,[o[7]||=m(`span`,{class:`color-muted text-3`},`Filter type`,-1),m(`span`,He,n(a.value.nodes.length)+` / `+n(t.graph.nodes.length),1)]),(s(!0),h(v,null,i(x(se),e=>(s(),h(`label`,{key:e,class:C([`h-7 rounded-1 px-2 color-base flex items-center gap-1.5 select-none hover:bg-active`,V(e)?``:`op45 grayscale`]),title:x(H)(e)},[m(`input`,{class:`h-3.5 w-3.5 accent-emerald-600`,type:`checkbox`,checked:V(e),onChange:t=>de(e)},null,40,We),m(`span`,{class:`h-2.3 w-2.3 shrink-0 rounded-full`,style:r({background:x(ce)(e)})},null,4),m(`span`,Ge,n(x(H)(e)),1),m(`span`,Ke,n(N.value.get(e)??0),1)],10,Ue))),128)),m(`div`,{class:`mt-1 flex items-center gap-1 border-t border-base pt-1`},[m(`button`,{class:`h-7 flex-1 rounded-1 border border-base bg-transparent px-2 color-muted text-3 hover:bg-active hover:color-base`,type:`button`,onClick:fe},` Select all `),m(`button`,{class:`h-7 flex-1 rounded-1 border border-base bg-transparent px-2 color-muted text-3 hover:bg-active hover:color-base`,type:`button`,onClick:ge},` Clear `)])],2)],32)])])}}});function Ye(e){let t=+this._x.call(null,e),n=+this._y.call(null,e);return U(this.cover(t,n),t,n,e)}function U(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,a=e._root,o={data:r},s=e._x0,c=e._y0,l=e._x1,u=e._y1,d,f,p,m,h,g,_,v;if(!a)return e._root=o,e;for(;a.length;)if((h=t>=(d=(s+l)/2))?s=d:l=d,(g=n>=(f=(c+u)/2))?c=f:u=f,i=a,!(a=a[_=g<<1|h]))return i[_]=o,e;if(p=+e._x.call(null,a.data),m=+e._y.call(null,a.data),t===p&&n===m)return o.next=a,i?i[_]=o:e._root=o,e;do i=i?i[_]=[,,,,]:e._root=[,,,,],(h=t>=(d=(s+l)/2))?s=d:l=d,(g=n>=(f=(c+u)/2))?c=f:u=f;while((_=g<<1|h)==(v=(m>=f)<<1|p>=d));return i[v]=a,i[_]=o,e}function Xe(e){var t,n,r=e.length,i,a,o=Array(r),s=Array(r),c=1/0,l=1/0,u=-1/0,d=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(a=+this._y.call(null,t))||(o[n]=i,s[n]=a,i<c&&(c=i),i>u&&(u=i),a<l&&(l=a),a>d&&(d=a));if(c>u||l>d)return this;for(this.cover(c,l).cover(u,d),n=0;n<r;++n)U(this,o[n],s[n],e[n]);return this}function W(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,a=(r=Math.floor(t))+1;else{for(var o=i-n||1,s=this._root,c,l;n>e||e>=i||r>t||t>=a;)switch(l=(t<r)<<1|e<n,c=[,,,,],c[l]=s,s=c,o*=2,l){case 0:i=n+o,a=r+o;break;case 1:n=i-o,a=r+o;break;case 2:i=n+o,r=a-o;break;case 3:n=i-o,r=a-o}this._root&&this._root.length&&(this._root=s)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this}function Ze(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Qe(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function G(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function $e(e,t,n){var r,i=this._x0,a=this._y0,o,s,c,l,u=this._x1,d=this._y1,f=[],p=this._root,m,h;for(p&&f.push(new G(p,i,a,u,d)),n==null?n=1/0:(i=e-n,a=t-n,u=e+n,d=t+n,n*=n);m=f.pop();)if(!(!(p=m.node)||(o=m.x0)>u||(s=m.y0)>d||(c=m.x1)<i||(l=m.y1)<a)){if(p.length){var g=(o+c)/2,_=(s+l)/2;f.push(new G(p[3],g,_,c,l),new G(p[2],o,_,g,l),new G(p[1],g,s,c,_),new G(p[0],o,s,g,_)),(h=(t>=_)<<1|e>=g)&&(m=f[f.length-1],f[f.length-1]=f[f.length-1-h],f[f.length-1-h]=m)}else{var v=e-+this._x.call(null,p.data),y=t-+this._y.call(null,p.data),b=v*v+y*y;if(b<n){var x=Math.sqrt(n=b);i=e-x,a=t-x,u=e+x,d=t+x,r=p.data}}}return r}function et(e){if(isNaN(u=+this._x.call(null,e))||isNaN(d=+this._y.call(null,e)))return this;var t,n=this._root,r,i,a,o=this._x0,s=this._y0,c=this._x1,l=this._y1,u,d,f,p,m,h,g,_;if(!n)return this;if(n.length)for(;;){if((m=u>=(f=(o+c)/2))?o=f:c=f,(h=d>=(p=(s+l)/2))?s=p:l=p,t=n,!(n=n[g=h<<1|m]))return this;if(!n.length)break;(t[g+1&3]||t[g+2&3]||t[g+3&3])&&(r=t,_=g)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,i?(a?i.next=a:delete i.next,this):t?(a?t[g]=a:delete t[g],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[_]=n:this._root=n),this):(this._root=a,this)}function tt(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function nt(){return this._root}function rt(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function it(e){var t=[],n,r=this._root,i,a,o,s,c;for(r&&t.push(new G(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,a=n.x0,o=n.y0,s=n.x1,c=n.y1)&&r.length){var l=(a+s)/2,u=(o+c)/2;(i=r[3])&&t.push(new G(i,l,u,s,c)),(i=r[2])&&t.push(new G(i,a,u,l,c)),(i=r[1])&&t.push(new G(i,l,o,s,u)),(i=r[0])&&t.push(new G(i,a,o,l,u))}return this}function at(e){var t=[],n=[],r;for(this._root&&t.push(new G(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var i=r.node;if(i.length){var a,o=r.x0,s=r.y0,c=r.x1,l=r.y1,u=(o+c)/2,d=(s+l)/2;(a=i[0])&&t.push(new G(a,o,s,u,d)),(a=i[1])&&t.push(new G(a,u,s,c,d)),(a=i[2])&&t.push(new G(a,o,d,u,l)),(a=i[3])&&t.push(new G(a,u,d,c,l))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function ot(e){return e[0]}function st(e){return arguments.length?(this._x=e,this):this._x}function ct(e){return e[1]}function lt(e){return arguments.length?(this._y=e,this):this._y}function ut(e,t,n){var r=new dt(t??ot,n??ct,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function dt(e,t,n,r,i,a){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function ft(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var K=ut.prototype=dt.prototype;K.copy=function(){var e=new dt(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=ft(t),e;for(n=[{source:t,target:e._root=[,,,,]}];t=n.pop();)for(var i=0;i<4;++i)(r=t.source[i])&&(r.length?n.push({source:r,target:t.target[i]=[,,,,]}):t.target[i]=ft(r));return e},K.add=Ye,K.addAll=Xe,K.cover=W,K.data=Ze,K.extent=Qe,K.find=$e,K.remove=et,K.removeAll=tt,K.root=nt,K.size=rt,K.visit=it,K.visitAfter=at,K.x=st,K.y=lt;function q(e){return function(){return e}}function pt(e){return(e()-.5)*1e-6}function mt(e){return e.x+e.vx}function ht(e){return e.y+e.vy}function gt(e){var t,n,r,i=1,a=1;typeof e!=`function`&&(e=q(e==null?1:+e));function o(){for(var e,o=t.length,c,l,u,d,f,p,m=0;m<a;++m)for(c=ut(t,mt,ht).visitAfter(s),e=0;e<o;++e)l=t[e],f=n[l.index],p=f*f,u=l.x+l.vx,d=l.y+l.vy,c.visit(h);function h(e,t,n,a,o){var s=e.data,c=e.r,m=f+c;if(s){if(s.index>l.index){var h=u-s.x-s.vx,g=d-s.y-s.vy,_=h*h+g*g;_<m*m&&(h===0&&(h=pt(r),_+=h*h),g===0&&(g=pt(r),_+=g*g),_=(m-(_=Math.sqrt(_)))/_*i,l.vx+=(h*=_)*(m=(c*=c)/(p+c)),l.vy+=(g*=_)*m,s.vx-=h*(m=1-m),s.vy-=g*m)}return}return t>u+m||a<u-m||n>d+m||o<d-m}}function s(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function c(){if(t){var r,i=t.length,a;for(n=Array(i),r=0;r<i;++r)a=t[r],n[a.index]=+e(a,r,t)}}return o.initialize=function(e,n){t=e,r=n,c()},o.iterations=function(e){return arguments.length?(a=+e,o):a},o.strength=function(e){return arguments.length?(i=+e,o):i},o.radius=function(t){return arguments.length?(e=typeof t==`function`?t:q(+t),c(),o):e},o}function _t(e){return e.index}function vt(e,t){var n=e.get(t);if(!n)throw Error(`node not found: `+t);return n}function yt(e){var t=_t,n=d,r,i=q(30),a,o,s,c,l,u=1;e??=[];function d(e){return 1/Math.min(s[e.source.index],s[e.target.index])}function f(t){for(var n=0,i=e.length;n<u;++n)for(var o=0,s,d,f,p,m,h,g;o<i;++o)s=e[o],d=s.source,f=s.target,p=f.x+f.vx-d.x-d.vx||pt(l),m=f.y+f.vy-d.y-d.vy||pt(l),h=Math.sqrt(p*p+m*m),h=(h-a[o])/h*t*r[o],p*=h,m*=h,f.vx-=p*(g=c[o]),f.vy-=m*g,d.vx+=p*(g=1-g),d.vy+=m*g}function p(){if(o){var n,i=o.length,l=e.length,u=new Map(o.map((e,n)=>[t(e,n,o),e])),d;for(n=0,s=Array(i);n<l;++n)d=e[n],d.index=n,typeof d.source!=`object`&&(d.source=vt(u,d.source)),typeof d.target!=`object`&&(d.target=vt(u,d.target)),s[d.source.index]=(s[d.source.index]||0)+1,s[d.target.index]=(s[d.target.index]||0)+1;for(n=0,c=Array(l);n<l;++n)d=e[n],c[n]=s[d.source.index]/(s[d.source.index]+s[d.target.index]);r=Array(l),m(),a=Array(l),h()}}function m(){if(o)for(var t=0,i=e.length;t<i;++t)r[t]=+n(e[t],t,e)}function h(){if(o)for(var t=0,n=e.length;t<n;++t)a[t]=+i(e[t],t,e)}return f.initialize=function(e,t){o=e,l=t,p()},f.links=function(t){return arguments.length?(e=t,p(),f):e},f.id=function(e){return arguments.length?(t=e,f):t},f.iterations=function(e){return arguments.length?(u=+e,f):u},f.strength=function(e){return arguments.length?(n=typeof e==`function`?e:q(+e),m(),f):n},f.distance=function(e){return arguments.length?(i=typeof e==`function`?e:q(+e),h(),f):i},f}var bt={value:()=>{}};function xt(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new St(n)}function St(e){this._=e}function Ct(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}St.prototype=xt.prototype={constructor:St,on:function(e,t){var n=this._,r=Ct(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=wt(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=Tt(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Tt(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new St(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function wt(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Tt(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=bt,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Et=0,Dt=0,Ot=0,kt=1e3,At,jt,Mt=0,Nt=0,Pt=0,Ft=typeof performance==`object`&&performance.now?performance:Date,It=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Lt(){return Nt||=(It(Rt),Ft.now()+Pt)}function Rt(){Nt=0}function zt(){this._call=this._time=this._next=null}zt.prototype=Bt.prototype={constructor:zt,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Lt():+n)+(t==null?0:+t),!this._next&&jt!==this&&(jt?jt._next=this:At=this,jt=this),this._call=e,this._time=n,Gt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Gt())}};function Bt(e,t,n){var r=new zt;return r.restart(e,t,n),r}function Vt(){Lt(),++Et;for(var e=At,t;e;)(t=Nt-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Et}function Ht(){Nt=(Mt=Ft.now())+Pt,Et=Dt=0;try{Vt()}finally{Et=0,Wt(),Nt=0}}function Ut(){var e=Ft.now(),t=e-Mt;t>kt&&(Pt-=t,Mt=e)}function Wt(){for(var e,t=At,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:At=n);jt=e,Gt(r)}function Gt(e){Et||(Dt&&=clearTimeout(Dt),e-Nt>24?(e<1/0&&(Dt=setTimeout(Ht,e-Ft.now()-Pt)),Ot&&=clearInterval(Ot)):(Ot||=(Mt=Ft.now(),setInterval(Ut,kt)),Et=1,It(Ht)))}function Kt(e,t,n){var r=new zt;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var qt=1664525,Jt=1013904223,Yt=4294967296;function Xt(){let e=1;return()=>(e=(qt*e+Jt)%Yt)/Yt}function Zt(e){return e.x}function Qt(e){return e.y}var $t=10,en=Math.PI*(3-Math.sqrt(5));function tn(e){var t,n=1,r=.001,i=1-r**(1/300),a=0,o=.6,s=new Map,c=Bt(d),l=xt(`tick`,`end`),u=Xt();e??=[];function d(){f(),l.call(`tick`,t),n<r&&(c.stop(),l.call(`end`,t))}function f(r){var c,l=e.length,u;r===void 0&&(r=1);for(var d=0;d<r;++d)for(n+=(a-n)*i,s.forEach(function(e){e(n)}),c=0;c<l;++c)u=e[c],u.fx==null?u.x+=u.vx*=o:(u.x=u.fx,u.vx=0),u.fy==null?u.y+=u.vy*=o:(u.y=u.fy,u.vy=0);return t}function p(){for(var t=0,n=e.length,r;t<n;++t){if(r=e[t],r.index=t,r.fx!=null&&(r.x=r.fx),r.fy!=null&&(r.y=r.fy),isNaN(r.x)||isNaN(r.y)){var i=$t*Math.sqrt(.5+t),a=t*en;r.x=i*Math.cos(a),r.y=i*Math.sin(a)}(isNaN(r.vx)||isNaN(r.vy))&&(r.vx=r.vy=0)}}function m(t){return t.initialize&&t.initialize(e,u),t}return p(),t={tick:f,restart:function(){return c.restart(d),t},stop:function(){return c.stop(),t},nodes:function(n){return arguments.length?(e=n,p(),s.forEach(m),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(r=+e,t):r},alphaDecay:function(e){return arguments.length?(i=+e,t):+i},alphaTarget:function(e){return arguments.length?(a=+e,t):a},velocityDecay:function(e){return arguments.length?(o=1-e,t):1-o},randomSource:function(e){return arguments.length?(u=e,s.forEach(m),t):u},force:function(e,n){return arguments.length>1?(n==null?s.delete(e):s.set(e,m(n)),t):s.get(e)},find:function(t,n,r){var i=0,a=e.length,o,s,c,l,u;for(r==null?r=1/0:r*=r,i=0;i<a;++i)l=e[i],o=t-l.x,s=n-l.y,c=o*o+s*s,c<r&&(u=l,r=c);return u},on:function(e,n){return arguments.length>1?(l.on(e,n),t):l.on(e)}}}function nn(){var e,t,n,r,i=q(-30),a,o=1,s=1/0,c=.81;function l(n){var i,a=e.length,o=ut(e,Zt,Qt).visitAfter(d);for(r=n,i=0;i<a;++i)t=e[i],o.visit(f)}function u(){if(e){var t,n=e.length,r;for(a=Array(n),t=0;t<n;++t)r=e[t],a[r.index]=+i(r,t,e)}}function d(e){var t=0,n,r,i=0,o,s,c;if(e.length){for(o=s=c=0;c<4;++c)(n=e[c])&&(r=Math.abs(n.value))&&(t+=n.value,i+=r,o+=r*n.x,s+=r*n.y);e.x=o/i,e.y=s/i}else{n=e,n.x=n.data.x,n.y=n.data.y;do t+=a[n.data.index];while(n=n.next)}e.value=t}function f(e,i,l,u){if(!e.value)return!0;var d=e.x-t.x,f=e.y-t.y,p=u-i,m=d*d+f*f;if(p*p/c<m)return m<s&&(d===0&&(d=pt(n),m+=d*d),f===0&&(f=pt(n),m+=f*f),m<o&&(m=Math.sqrt(o*m)),t.vx+=d*e.value*r/m,t.vy+=f*e.value*r/m),!0;if(!(e.length||m>=s)){(e.data!==t||e.next)&&(d===0&&(d=pt(n),m+=d*d),f===0&&(f=pt(n),m+=f*f),m<o&&(m=Math.sqrt(o*m)));do e.data!==t&&(p=a[e.data.index]*r/m,t.vx+=d*p,t.vy+=f*p);while(e=e.next)}}return l.initialize=function(t,r){e=t,n=r,u()},l.strength=function(e){return arguments.length?(i=typeof e==`function`?e:q(+e),u(),l):i},l.distanceMin=function(e){return arguments.length?(o=e*e,l):Math.sqrt(o)},l.distanceMax=function(e){return arguments.length?(s=e*e,l):Math.sqrt(s)},l.theta=function(e){return arguments.length?(c=e*e,l):Math.sqrt(c)},l}function rn(e){var t=q(.1),n,r,i;typeof e!=`function`&&(e=q(e==null?0:+e));function a(e){for(var t=0,a=n.length,o;t<a;++t)o=n[t],o.vx+=(i[t]-o.x)*r[t]*e}function o(){if(n){var a,o=n.length;for(r=Array(o),i=Array(o),a=0;a<o;++a)r[a]=isNaN(i[a]=+e(n[a],a,n))?0:+t(n[a],a,n)}}return a.initialize=function(e){n=e,o()},a.strength=function(e){return arguments.length?(t=typeof e==`function`?e:q(+e),o(),a):t},a.x=function(t){return arguments.length?(e=typeof t==`function`?t:q(+t),o(),a):e},a}function an(e){var t=q(.1),n,r,i;typeof e!=`function`&&(e=q(e==null?0:+e));function a(e){for(var t=0,a=n.length,o;t<a;++t)o=n[t],o.vy+=(i[t]-o.y)*r[t]*e}function o(){if(n){var a,o=n.length;for(r=Array(o),i=Array(o),a=0;a<o;++a)r[a]=isNaN(i[a]=+e(n[a],a,n))?0:+t(n[a],a,n)}}return a.initialize=function(e){n=e,o()},a.strength=function(e){return arguments.length?(t=typeof e==`function`?e:q(+e),o(),a):t},a.y=function(t){return arguments.length?(e=typeof t==`function`?t:q(+t),o(),a):e},a}var on={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function sn(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),on.hasOwnProperty(t)?{space:on[t],local:e}:e}function cn(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function ln(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function un(e){var t=sn(e);return(t.local?ln:cn)(t)}function dn(){}function fn(e){return e==null?dn:function(){return this.querySelector(e)}}function pn(e){typeof e!=`function`&&(e=fn(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new J(r,this._parents)}function mn(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function hn(){return[]}function gn(e){return e==null?hn:function(){return this.querySelectorAll(e)}}function _n(e){return function(){return mn(e.apply(this,arguments))}}function vn(e){e=typeof e==`function`?_n(e):gn(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new J(r,i)}function yn(e){return function(){return this.matches(e)}}function bn(e){return function(t){return t.matches(e)}}var xn=Array.prototype.find;function Sn(e){return function(){return xn.call(this.children,e)}}function Cn(){return this.firstElementChild}function wn(e){return this.select(e==null?Cn:Sn(typeof e==`function`?e:bn(e)))}var Tn=Array.prototype.filter;function En(){return Array.from(this.children)}function Dn(e){return function(){return Tn.call(this.children,e)}}function On(e){return this.selectAll(e==null?En:Dn(typeof e==`function`?e:bn(e)))}function kn(e){typeof e!=`function`&&(e=yn(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new J(r,this._parents)}function An(e){return Array(e.length)}function jn(){return new J(this._enter||this._groups.map(An),this._parents)}function Mn(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Mn.prototype={constructor:Mn,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Nn(e){return function(){return e}}function Pn(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new Mn(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function Fn(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new Mn(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function In(e){return e.__data__}function Ln(e,t){if(!arguments.length)return Array.from(this,In);var n=t?Fn:Pn,r=this._parents,i=this._groups;typeof e!=`function`&&(e=Nn(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=Rn(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new J(o,r),o._enter=s,o._exit=c,o}function Rn(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function zn(){return new J(this._exit||this._groups.map(An),this._parents)}function Bn(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Vn(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new J(s,this._parents)}function Hn(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Un(e){e||=Wn;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new J(i,this._parents).order()}function Wn(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Gn(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Kn(){return Array.from(this)}function qn(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Jn(){let e=0;for(let t of this)++e;return e}function Yn(){return!this.node()}function Xn(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Zn(e){return function(){this.removeAttribute(e)}}function Qn(e){return function(){this.removeAttributeNS(e.space,e.local)}}function $n(e,t){return function(){this.setAttribute(e,t)}}function er(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function tr(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function nr(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function rr(e,t){var n=sn(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Qn:Zn:typeof t==`function`?n.local?nr:tr:n.local?er:$n)(n,t))}function ir(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ar(e){return function(){this.style.removeProperty(e)}}function or(e,t,n){return function(){this.style.setProperty(e,t,n)}}function sr(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function cr(e,t,n){return arguments.length>1?this.each((t==null?ar:typeof t==`function`?sr:or)(e,t,n??``)):lr(this.node(),e)}function lr(e,t){return e.style.getPropertyValue(t)||ir(e).getComputedStyle(e,null).getPropertyValue(t)}function ur(e){return function(){delete this[e]}}function dr(e,t){return function(){this[e]=t}}function fr(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function pr(e,t){return arguments.length>1?this.each((t==null?ur:typeof t==`function`?fr:dr)(e,t)):this.node()[e]}function mr(e){return e.trim().split(/^|\s+/)}function hr(e){return e.classList||new gr(e)}function gr(e){this._node=e,this._names=mr(e.getAttribute(`class`)||``)}gr.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function _r(e,t){for(var n=hr(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function vr(e,t){for(var n=hr(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function yr(e){return function(){_r(this,e)}}function br(e){return function(){vr(this,e)}}function xr(e,t){return function(){(t.apply(this,arguments)?_r:vr)(this,e)}}function Sr(e,t){var n=mr(e+``);if(arguments.length<2){for(var r=hr(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?xr:t?yr:br)(n,t))}function Cr(){this.textContent=``}function wr(e){return function(){this.textContent=e}}function Tr(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function Er(e){return arguments.length?this.each(e==null?Cr:(typeof e==`function`?Tr:wr)(e)):this.node().textContent}function Dr(){this.innerHTML=``}function Or(e){return function(){this.innerHTML=e}}function kr(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function Ar(e){return arguments.length?this.each(e==null?Dr:(typeof e==`function`?kr:Or)(e)):this.node().innerHTML}function jr(){this.nextSibling&&this.parentNode.appendChild(this)}function Mr(){return this.each(jr)}function Nr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Pr(){return this.each(Nr)}function Fr(e){var t=typeof e==`function`?e:un(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Ir(){return null}function Lr(e,t){var n=typeof e==`function`?e:un(e),r=t==null?Ir:typeof t==`function`?t:fn(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Rr(){var e=this.parentNode;e&&e.removeChild(this)}function zr(){return this.each(Rr)}function Br(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Vr(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Hr(e){return this.select(e?Vr:Br)}function Ur(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Wr(e){return function(t){e.call(this,t,this.__data__)}}function Gr(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Kr(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function qr(e,t,n){return function(){var r=this.__on,i,a=Wr(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Jr(e,t,n){var r=Gr(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?qr:Kr,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Yr(e,t,n){var r=ir(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Xr(e,t){return function(){return Yr(this,e,t)}}function Zr(e,t){return function(){return Yr(this,e,t.apply(this,arguments))}}function Qr(e,t){return this.each((typeof t==`function`?Zr:Xr)(e,t))}function*$r(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var ei=[null];function J(e,t){this._groups=e,this._parents=t}function ti(){return new J([[document.documentElement]],ei)}function ni(){return this}J.prototype=ti.prototype={constructor:J,select:pn,selectAll:vn,selectChild:wn,selectChildren:On,filter:kn,data:Ln,enter:jn,exit:zn,join:Bn,merge:Vn,selection:ni,order:Hn,sort:Un,call:Gn,nodes:Kn,node:qn,size:Jn,empty:Yn,each:Xn,attr:rr,style:cr,property:pr,classed:Sr,text:Er,html:Ar,raise:Mr,lower:Pr,append:Fr,insert:Lr,remove:zr,clone:Hr,datum:Ur,on:Jr,dispatch:Qr,[Symbol.iterator]:$r};function Y(e){return typeof e==`string`?new J([[document.querySelector(e)]],[document.documentElement]):new J([[e]],ei)}function ri(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ii(e,t){if(e=ri(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var ai={capture:!0,passive:!1};function oi(e){e.preventDefault(),e.stopImmediatePropagation()}function si(e){var t=e.document.documentElement,n=Y(e).on(`dragstart.drag`,oi,ai);`onselectstart`in t?n.on(`selectstart.drag`,oi,ai):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function ci(e,t){var n=e.document.documentElement,r=Y(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,oi,ai),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function li(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ui(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function di(){}var fi=.7,pi=1/fi,mi=`\\s*([+-]?\\d+)\\s*`,hi=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,X=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,gi=/^#([0-9a-f]{3,8})$/,_i=RegExp(`^rgb\\(${mi},${mi},${mi}\\)$`),vi=RegExp(`^rgb\\(${X},${X},${X}\\)$`),yi=RegExp(`^rgba\\(${mi},${mi},${mi},${hi}\\)$`),bi=RegExp(`^rgba\\(${X},${X},${X},${hi}\\)$`),xi=RegExp(`^hsl\\(${hi},${X},${X}\\)$`),Si=RegExp(`^hsla\\(${hi},${X},${X},${hi}\\)$`),Ci={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};li(di,Oi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:wi,formatHex:wi,formatHex8:Ti,formatHsl:Ei,formatRgb:Di,toString:Di});function wi(){return this.rgb().formatHex()}function Ti(){return this.rgb().formatHex8()}function Ei(){return Bi(this).formatHsl()}function Di(){return this.rgb().formatRgb()}function Oi(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=gi.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ki(t):n===3?new Z(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ai(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ai(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=_i.exec(e))?new Z(t[1],t[2],t[3],1):(t=vi.exec(e))?new Z(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=yi.exec(e))?Ai(t[1],t[2],t[3],t[4]):(t=bi.exec(e))?Ai(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=xi.exec(e))?zi(t[1],t[2]/100,t[3]/100,1):(t=Si.exec(e))?zi(t[1],t[2]/100,t[3]/100,t[4]):Ci.hasOwnProperty(e)?ki(Ci[e]):e===`transparent`?new Z(NaN,NaN,NaN,0):null}function ki(e){return new Z(e>>16&255,e>>8&255,e&255,1)}function Ai(e,t,n,r){return r<=0&&(e=t=n=NaN),new Z(e,t,n,r)}function ji(e){return e instanceof di||(e=Oi(e)),e?(e=e.rgb(),new Z(e.r,e.g,e.b,e.opacity)):new Z}function Mi(e,t,n,r){return arguments.length===1?ji(e):new Z(e,t,n,r??1)}function Z(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}li(Z,Mi,ui(di,{brighter(e){return e=e==null?pi:pi**+e,new Z(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?fi:fi**+e,new Z(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Z(Li(this.r),Li(this.g),Li(this.b),Ii(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ni,formatHex:Ni,formatHex8:Pi,formatRgb:Fi,toString:Fi}));function Ni(){return`#${Ri(this.r)}${Ri(this.g)}${Ri(this.b)}`}function Pi(){return`#${Ri(this.r)}${Ri(this.g)}${Ri(this.b)}${Ri((isNaN(this.opacity)?1:this.opacity)*255)}`}function Fi(){let e=Ii(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Li(this.r)}, ${Li(this.g)}, ${Li(this.b)}${e===1?`)`:`, ${e})`}`}function Ii(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Li(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ri(e){return e=Li(e),(e<16?`0`:``)+e.toString(16)}function zi(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Q(e,t,n,r)}function Bi(e){if(e instanceof Q)return new Q(e.h,e.s,e.l,e.opacity);if(e instanceof di||(e=Oi(e)),!e)return new Q;if(e instanceof Q)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new Q(o,s,c,e.opacity)}function Vi(e,t,n,r){return arguments.length===1?Bi(e):new Q(e,t,n,r??1)}function Q(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}li(Q,Vi,ui(di,{brighter(e){return e=e==null?pi:pi**+e,new Q(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?fi:fi**+e,new Q(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Z(Wi(e>=240?e-240:e+120,i,r),Wi(e,i,r),Wi(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Q(Hi(this.h),Ui(this.s),Ui(this.l),Ii(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Ii(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Hi(this.h)}, ${Ui(this.s)*100}%, ${Ui(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function Hi(e){return e=(e||0)%360,e<0?e+360:e}function Ui(e){return Math.max(0,Math.min(1,e||0))}function Wi(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Gi=e=>()=>e;function Ki(e,t){return function(n){return e+n*t}}function qi(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Ji(e){return(e=+e)==1?Yi:function(t,n){return n-t?qi(t,n,e):Gi(isNaN(t)?n:t)}}function Yi(e,t){var n=t-e;return n?Ki(e,n):Gi(isNaN(e)?t:e)}var Xi=(function e(t){var n=Ji(t);function r(e,t){var r=n((e=Mi(e)).r,(t=Mi(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Yi(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function Zi(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Qi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$i=new RegExp(Qi.source,`g`);function ea(e){return function(){return e}}function ta(e){return function(t){return e(t)+``}}function na(e,t){var n=Qi.lastIndex=$i.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Qi.exec(e))&&(i=$i.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Zi(r,i)})),n=$i.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?ta(c[0].x):ea(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var ra=180/Math.PI,ia={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function aa(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*ra,skewX:Math.atan(c)*ra,scaleX:o,scaleY:s}}var oa;function sa(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?ia:aa(t.a,t.b,t.c,t.d,t.e,t.f)}function ca(e){return e==null||(oa||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),oa.setAttribute(`transform`,e),!(e=oa.transform.baseVal.consolidate()))?ia:(e=e.matrix,aa(e.a,e.b,e.c,e.d,e.e,e.f))}function la(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:Zi(e,i)},{i:c-2,x:Zi(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Zi(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Zi(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Zi(e,n)},{i:s-2,x:Zi(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var ua=la(sa,`px, `,`px)`,`deg)`),da=la(ca,`, `,`)`,`)`),fa=1e-12;function pa(e){return((e=Math.exp(e))+1/e)/2}function ma(e){return((e=Math.exp(e))-1/e)/2}function ha(e){return((e=Math.exp(2*e))-1)/(e+1)}var ga=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<fa)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=pa(y),c=s/(n*g)*(i*ha(t*r+y)-ma(y));return[a+c*d,o+c*f,s*i/pa(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),_a=xt(`start`,`end`,`cancel`,`interrupt`),va=[];function ya(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Sa(e,n,{name:t,index:r,group:i,on:_a,tween:va,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function ba(e,t){var n=$(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function xa(e,t){var n=$(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function $(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function Sa(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Bt(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return Kt(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(Kt(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function Ca(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function wa(e){return this.each(function(){Ca(this,e)})}function Ta(e,t){var n,r;return function(){var i=xa(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Ea(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=xa(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Da(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=$(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Ta:Ea)(n,e,t))}function Oa(e,t,n){var r=e._id;return e.each(function(){var e=xa(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return $(e,r).value[t]}}function ka(e,t){var n;return(typeof t==`number`?Zi:t instanceof Oi?Xi:(n=Oi(t))?(t=n,Xi):na)(e,t)}function Aa(e){return function(){this.removeAttribute(e)}}function ja(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ma(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Na(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Pa(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Fa(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Ia(e,t){var n=sn(e),r=n===`transform`?da:ka;return this.attrTween(e,typeof t==`function`?(n.local?Fa:Pa)(n,r,Oa(this,`attr.`+e,t)):t==null?(n.local?ja:Aa)(n):(n.local?Na:Ma)(n,r,t))}function La(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Ra(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function za(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ra(e,i)),n}return i._value=t,i}function Ba(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&La(e,i)),n}return i._value=t,i}function Va(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=sn(e);return this.tween(n,(r.local?za:Ba)(r,t))}function Ha(e,t){return function(){ba(this,e).delay=+t.apply(this,arguments)}}function Ua(e,t){return t=+t,function(){ba(this,e).delay=t}}function Wa(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Ha:Ua)(t,e)):$(this.node(),t).delay}function Ga(e,t){return function(){xa(this,e).duration=+t.apply(this,arguments)}}function Ka(e,t){return t=+t,function(){xa(this,e).duration=t}}function qa(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Ga:Ka)(t,e)):$(this.node(),t).duration}function Ja(e,t){if(typeof t!=`function`)throw Error();return function(){xa(this,e).ease=t}}function Ya(e){var t=this._id;return arguments.length?this.each(Ja(t,e)):$(this.node(),t).ease}function Xa(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();xa(this,e).ease=n}}function Za(e){if(typeof e!=`function`)throw Error();return this.each(Xa(this._id,e))}function Qa(e){typeof e!=`function`&&(e=yn(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Oo(r,this._parents,this._name,this._id)}function $a(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Oo(o,this._parents,this._name,this._id)}function eo(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function to(e,t,n){var r,i,a=eo(t)?ba:xa;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function no(e,t){var n=this._id;return arguments.length<2?$(this.node(),n).on.on(e):this.each(to(n,e,t))}function ro(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function io(){return this.on(`end.remove`,ro(this._id))}function ao(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=fn(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,ya(l[f],t,n,f,l,$(u,n)));return new Oo(a,this._parents,t,n)}function oo(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=gn(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=$(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&ya(p,t,n,h,f,m);a.push(f),o.push(u)}return new Oo(a,o,t,n)}var so=ti.prototype.constructor;function co(){return new so(this._groups,this._parents)}function lo(e,t){var n,r,i;return function(){var a=lr(this,e),o=(this.style.removeProperty(e),lr(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function uo(e){return function(){this.style.removeProperty(e)}}function fo(e,t,n){var r,i=n+``,a;return function(){var o=lr(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function po(e,t,n){var r,i,a;return function(){var o=lr(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),lr(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function mo(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=xa(this,e),l=c.on,u=c.value[a]==null?s||=uo(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function ho(e,t,n){var r=(e+=``)==`transform`?ua:ka;return t==null?this.styleTween(e,lo(e,r)).on(`end.style.`+e,uo(e)):typeof t==`function`?this.styleTween(e,po(e,r,Oa(this,`style.`+e,t))).each(mo(this._id,e)):this.styleTween(e,fo(e,r,t),n).on(`end.style.`+e,null)}function go(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function _o(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&go(e,a,n)),r}return a._value=t,a}function vo(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,_o(e,t,n??``))}function yo(e){return function(){this.textContent=e}}function bo(e){return function(){var t=e(this);this.textContent=t??``}}function xo(e){return this.tween(`text`,typeof e==`function`?bo(Oa(this,`text`,e)):yo(e==null?``:e+``))}function So(e){return function(t){this.textContent=e.call(this,t)}}function Co(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&So(r)),t}return r._value=e,r}function wo(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Co(e))}function To(){for(var e=this._name,t=this._id,n=ko(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=$(c,t);ya(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Oo(r,this._parents,e,n)}function Eo(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=xa(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var Do=0;function Oo(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function ko(){return++Do}var Ao=ti.prototype;Oo.prototype={constructor:Oo,select:ao,selectAll:oo,selectChild:Ao.selectChild,selectChildren:Ao.selectChildren,filter:Qa,merge:$a,selection:co,transition:To,call:Ao.call,nodes:Ao.nodes,node:Ao.node,size:Ao.size,empty:Ao.empty,each:Ao.each,on:no,attr:Ia,attrTween:Va,style:ho,styleTween:vo,text:xo,textTween:wo,remove:io,tween:Da,delay:Wa,duration:qa,ease:Ya,easeVarying:Za,end:Eo,[Symbol.iterator]:Ao[Symbol.iterator]};function jo(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Mo={time:null,delay:0,duration:250,ease:jo};function No(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Po(e){var t,n;e instanceof Oo?(t=e._id,e=e._name):(t=ko(),(n=Mo).time=Lt(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&ya(c,e,t,l,o,n||No(c,t));return new Oo(r,this._parents,e,t)}ti.prototype.interrupt=wa,ti.prototype.transition=Po;var Fo=e=>()=>e;function Io(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Lo(e,t,n){this.k=e,this.x=t,this.y=n}Lo.prototype={constructor:Lo,scale:function(e){return e===1?this:new Lo(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Lo(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var Ro=new Lo(1,0,0);zo.prototype=Lo.prototype;function zo(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Ro;return e.__zoom}function Bo(e){e.stopImmediatePropagation()}function Vo(e){e.preventDefault(),e.stopImmediatePropagation()}function Ho(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function Uo(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Wo(){return this.__zoom||Ro}function Go(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ko(){return navigator.maxTouchPoints||`ontouchstart`in this}function qo(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function Jo(){var e=Ho,t=Uo,n=qo,r=Go,i=Ko,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=ga,l=xt(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,Wo).on(`wheel.zoom`,te,{passive:!1}).on(`mousedown.zoom`,C).on(`dblclick.zoom`,w).filter(i).on(`touchstart.zoom`,ne).on(`touchmove.zoom`,T).on(`touchend.zoom touchcancel.zoom`,re).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,Wo),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(Ro.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new Lo(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new Lo(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new Lo(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new ee(e,t)}function ee(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}ee.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=Y(this.that).datum();l.call(e,this.that,new Io(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function te(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=ii(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],Ca(this),s.start();Vo(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function C(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=Y(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=ii(t,i),l=t.clientX,u=t.clientY;si(t.view),Bo(t),a.mouse=[c,this.__zoom.invert(c)],Ca(this),a.start();function d(e){if(Vo(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=ii(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),ci(e.view,a.moved),Vo(e),a.event(e).end()}}function w(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=ii(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);Vo(r),s>0?Y(this).transition().duration(s).call(x,d,c,r):Y(this).call(_.transform,d,c,r)}}function ne(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(Bo(t),s=0;s<i;++s)c=r[s],l=ii(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),Ca(this),a.start())}}function T(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(Vo(e),s=0;s<a;++s)c=i[s],l=ii(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function re(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(Bo(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=ii(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=Y(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:Fo(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:Fo(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:Fo(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:Fo([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var Yo=[`height`,`viewBox`,`width`],Xo=[`id`],Zo=[`fill`],Qo=[`transform`],$o=[`cx`,`cy`,`fill`,`fill-opacity`,`r`,`stroke`,`stroke-opacity`],es=[`stroke`,`stroke-opacity`,`stroke-width`,`marker-end`,`x1`,`x2`,`y1`,`y2`],ts=[`stroke`,`marker-end`,`x1`,`x2`,`y1`,`y2`],ns=[`opacity`,`aria-label`,`transform`,`onClick`,`onKeydown`,`onPointercancel`,`onPointerdown`,`onPointermove`,`onPointerup`],rs=[`fill`,`r`,`stroke`,`stroke-opacity`,`stroke-width`],is={key:0,class:`pointer-events-none`},as=[`fill`,`fill-opacity`,`stroke`,`stroke-opacity`,`width`,`x`],os=[`fill`,`text-anchor`,`x`],ss=[`fill`,`text-anchor`,`x`],cs={class:`absolute bottom-3 left-3 z-30 grid grid-cols-2 gap-x-3 gap-y-1.5 border border-base bg-glass px-3 py-2 shadow`},ls={class:`truncate`},us={class:`absolute bottom-3 right-3 z-30 flex flex-col items-end gap-2`},ds={class:`w-28 flex items-center justify-between gap-0.5 rounded-full border border-base bg-glass p-1 shadow`},fs=[`disabled`],ps={class:`font-state-field h-8 w-8 rounded-full bg-active color-muted flex items-center justify-center text-3.5`},ms=[`disabled`],hs={class:`w-28 flex items-center justify-between gap-0.5 rounded-full border border-base bg-glass p-1 shadow`},gs=680,_s=460,vs=34,ys=1,bs=6,xs=d({__name:`ReactivityGraphCanvas`,props:c({graph:{},path:{},pathSelectorOpen:{type:Boolean}},{selectedNodeId:{},selectedNodeIdModifiers:{},dependencyDepth:{required:!0},dependencyDepthModifiers:{}}),emits:c([`select`],[`update:selectedNodeId`,`update:dependencyDepth`]),setup(a,{emit:c}){let d=a,g=l(a,`selectedNodeId`),S=l(a,`dependencyDepth`),T=c,O=ee(d,`graph`),k=ee(d,`pathSelectorOpen`),A=f(()=>!!d.path),j=f(()=>d.path??fe());function M(e){T(`select`,e)}let N=[`#13966f`,`#3b82d6`,`#c58119`,`#d84f45`,`#0891b2`,`#db2777`,`#7c3aed`,`#64748b`],P=p(),F=p(),I=p(960),L=p(640),R=p({x:0,y:0,k:1}),B=p(0),V=b([]),le=b([]),ue=f(()=>new Map(V.value.map(e=>[e.id,e]))),de=b([]),pe,me,he,ge,_e=f(()=>[O.value.nodes.map(e=>`${e.id}:${e.type}:${e.label}`).join(`|`),O.value.relationships.map(e=>`${e.id}:${e.from}:${e.to}`).join(`|`)].join(`::`)),ve=f(()=>({links:le.value,nodes:V.value,version:B.value})),ye=f(()=>{if(!A.value)return[];let e=j.value.relationshipIds;return ve.value.links.filter(t=>e.has(t.id))}),be=f(()=>{let e=ae(de.value,I.value,L.value);return de.value.map(t=>{let n=e.get(t.id)??{x:I.value/2,y:L.value/2};return{...t,color:it(t.id),radius:Math.max(86,Math.min(210,56+Math.sqrt(t.nodeCount)*34)),x:n.x,y:n.y}})}),xe=f(()=>`translate(${R.value.x} ${R.value.y}) scale(${R.value.k})`),Se=f(()=>`${Math.round(R.value.k*100)}%`),Ce=f(()=>V.value.find(e=>e.id===g.value)),we=f(()=>Ce.value?de.value.find(e=>e.id===Ce.value?.group):void 0),Te=f(()=>{if(!g.value)return Oe();let e=ke(g.value,`dependencies`,S.value),t=ke(g.value,`subscribers`,S.value),n=new Set([g.value,...e.nodeIds,...t.nodeIds]);return{dependencyNodeIds:e.nodeIds,nodeIds:n,relationshipIds:new Set([...e.relationshipIds,...t.relationshipIds]),subscriberNodeIds:t.nodeIds}}),Ee=f(()=>A.value?j.value.relationshipIds:Te.value.relationshipIds),De=f(()=>A.value?j.value.nodeIds:Te.value.nodeIds);function Oe(){return{dependencyNodeIds:new Set,nodeIds:new Set,relationshipIds:new Set,subscriberNodeIds:new Set}}function ke(e,t,n){let r=new Set,i=new Set,a=new Set([e]),o=new Set([e]);for(let e=0;e<n&&o.size;e+=1){let e=new Set;for(let n of le.value){let s=t===`dependencies`?n.from:n.to,c=t===`dependencies`?n.to:n.from;o.has(c)&&(i.add(n.id),r.add(s),a.has(s)||(a.add(s),e.add(s)))}o=e}return{nodeIds:r,relationshipIds:i}}function Ae(e){S.value=Math.min(bs,Math.max(ys,e))}function je(e){Ae(S.value+e)}function Me(){me?.stop();let e=ie(O.value,I.value,L.value);if(V.value=e.nodes,le.value=e.links,de.value=e.groups,B.value+=1,g.value&&!e.nodes.some(e=>e.id===g.value)&&(g.value=void 0),!g.value&&!k.value&&!A.value&&(g.value=nt(e.nodes)?.id),!e.nodes.length){me=void 0;return}let t=ae(e.groups,I.value,L.value);me=tn(e.nodes).force(`link`,yt(e.links).id(e=>e.id).distance(e=>e.group===we.value?.id?92:112).strength(.58)).force(`charge`,nn().strength(e=>-260-e.radius*14)).force(`collide`,gt().radius(e=>e.radius+Qe(e))).force(`x`,rn(e=>t.get(e.group)?.x??I.value/2).strength(.085)).force(`y`,an(e=>t.get(e.group)?.y??L.value/2).strength(.085)).alpha(.95).alphaDecay(.022).on(`tick`,()=>{B.value+=1})}function Ne(){me&&me.force(`collide`,gt().radius(e=>e.radius+Qe(e))).alpha(.32).restart()}function Pe(){F.value&&(he=Jo().scaleExtent([.32,2.6]).filter(e=>{let t=e.target;return e.type===`mousedown`&&t?.closest(`[data-graph-node]`)?!1:(!e.ctrlKey||e.type===`wheel`)&&!e.button}).on(`zoom`,e=>{R.value={k:e.transform.k,x:e.transform.x,y:e.transform.y}}),Y(F.value).call(he),t(Fe))}function Fe(){if(!F.value||!he)return;let e=Le();if(!e){Y(F.value).call(he.transform,Ro);return}let t=Math.max(1,e.maxX-e.minX),n=Math.max(1,e.maxY-e.minY),r=Math.min(1.45,Math.max(.42,Math.min((I.value-96)/t,(L.value-96)/n))),i=(e.minX+e.maxX)/2,a=(e.minY+e.maxY)/2,o=Ro.translate(I.value/2,L.value/2).scale(r).translate(-i,-a);Y(F.value).call(he.transform,o)}function Ie(e){F.value&&he&&Y(F.value).call(he.scaleBy,e)}function Le(){let e=V.value;if(!e.length)return;let t=1/0,n=1/0,r=-1/0,i=-1/0;for(let a of e){let e=a.x??I.value/2,o=a.y??L.value/2;t=Math.min(t,e-a.radius-72),n=Math.min(n,o-a.radius-32),r=Math.max(r,e+a.radius+142),i=Math.max(i,o+a.radius+32)}return{minX:t,minY:n,maxX:r,maxY:i}}function Re(e,t){e.stopPropagation(),M(t.id),ge=t.id,t.fx=t.x,t.fy=t.y,me?.alphaTarget(.28).restart(),e.currentTarget.setPointerCapture(e.pointerId)}function ze(e,t){if(ge!==t.id)return;let n=Ve(e);t.fx=n.x,t.fy=n.y,B.value+=1}function Be(e,t){ge===t.id&&(ge=void 0,t.fx=null,t.fy=null,me?.alphaTarget(0),e.currentTarget.releasePointerCapture(e.pointerId))}function Ve(e){if(!F.value)return{x:e.offsetX,y:e.offsetY};let t=F.value.createSVGPoint();t.x=e.clientX,t.y=e.clientY;let n=F.value.getScreenCTM(),r=n?t.matrixTransform(n.inverse()):t;return{x:(r.x-R.value.x)/R.value.k,y:(r.y-R.value.y)/R.value.k}}function He(e){return We(e.source)}function Ue(e){return We(e.target)}function We(e){if(typeof e==`object`)return e;if(e!=null)return ue.value.get(String(e))}function Ge(e){return Ye(e,`source`).x}function Ke(e){return Ye(e,`source`).y}function qe(e){return Ye(e,`target`).x}function Je(e){return Ye(e,`target`).y}function Ye(e,t){let n=He(e),r=Ue(e);if(!n||!r)return{x:I.value/2,y:L.value/2};let i=n.x??I.value/2,a=n.y??L.value/2,o=r.x??I.value/2,s=r.y??L.value/2,c=o-i,l=s-a,u=Math.hypot(c,l)||1,d=c/u,f=l/u;if(t===`source`){let e=n.radius+2;return{x:i+d*e,y:a+f*e}}let p=r.radius+6;return{x:o-d*p,y:s-f*p}}function U(e){return A.value?Ee.value.has(e.id):!g.value||Ee.value.has(e.id)}function Xe(e){return A.value?De.value.has(e.id):!g.value||De.value.has(e.id)}function W(e){return A.value&&De.value.has(e.id)}function Ze(e){return A.value?De.value.has(e.id):g.value?e.id===g.value||De.value.has(e.id):rt(e)>=4}function Qe(e){return Ze(e)?44+e.labelWidth*.16:20}function G(e){let t=I.value/2;return(e.x??t)>t?`left`:`right`}function $e(e){let t=e.radius+8;return G(e)===`left`?-e.labelWidth-t:t}function et(e){return G(e)===`left`?$e(e)+e.labelWidth-10:$e(e)+10}function tt(e){return G(e)===`left`?`end`:`start`}function nt(e){return[...e].sort((e,t)=>rt(t)-rt(e)).at(0)}function rt(e){let t=Math.min(e.incoming,e.outgoing)*2,n=e.type===`computed`?2:+(e.type===`watch`||e.type===`effect`);return e.incoming+e.outgoing+t+n}function it(e){return N[e%N.length]}function at(e){return A.value||g.value?U(e)?it(e.group):`#888888`:it(e.group)}function ot(e){return A.value?U(e)?.9:.08:g.value?U(e)?.72:.12:.42}function st(e){return A.value?U(e)?2.8:1:U(e)?1.8:1.1}function ct(e){return`url(#${(g.value||A.value)&&!U(e)?`reactivity-arrow-muted`:`reactivity-arrow-${e.group%N.length}`})`}function lt(e){return A.value?Xe(e)?1:.18:g.value?Xe(e)?1:.28:1}function ut(e){return e.id===g.value||W(e)?`#111827`:`#ffffff`}function dt(e){return e.id===g.value||W(e)?.72:.92}function ft(e){return e.id===g.value||W(e)?3:1.5}return e(()=>{P.value&&(pe=new ResizeObserver(([e])=>{I.value=Math.max(gs,e.contentRect.width),L.value=Math.max(_s,e.contentRect.height)}),pe.observe(P.value)),Pe()}),o([_e,I,L],()=>{Me(),t(Fe)},{immediate:!0}),o([g,S,()=>d.path],Ne),_(()=>{pe?.disconnect(),me?.stop()}),(e,t)=>{let a=ne(`tooltip`);return s(),h(`div`,{ref_key:`container`,ref:P,class:`relative h-full min-w-0 overflow-hidden bg-subtle bg-dots select-none`},[(s(),h(`svg`,{ref_key:`svg`,ref:F,class:`h-full w-full touch-none`,role:`img`,"aria-label":`Vue reactivity dependency graph`,height:L.value,viewBox:`0 0 ${I.value} ${L.value}`,width:I.value},[m(`defs`,null,[t[4]||=m(`marker`,{id:`reactivity-arrow-muted`,markerHeight:`10`,markerUnits:`userSpaceOnUse`,markerWidth:`10`,orient:`auto`,refX:`8`,refY:`0`,viewBox:`0 -5 10 10`},[m(`path`,{d:`M 0 -4 L 9 0 L 0 4 z`,fill:`#888888`,opacity:`0.42`})],-1),(s(),h(v,null,i(N,(e,t)=>m(`marker`,{id:`reactivity-arrow-${t}`,key:`arrow-${t}`,markerHeight:`10`,markerUnits:`userSpaceOnUse`,markerWidth:`10`,orient:`auto`,refX:`8`,refY:`0`,viewBox:`0 -5 10 10`},[m(`path`,{d:`M 0 -4 L 9 0 L 0 4 z`,fill:it(t),opacity:`0.82`},null,8,Zo)],8,Xo)),64))]),m(`g`,{transform:xe.value},[(s(!0),h(v,null,i(be.value,e=>(s(),h(`circle`,{key:`group-${e.id}`,cx:e.x,cy:e.y,fill:e.color,"fill-opacity":we.value&&we.value.id!==e.id?.025:.07,r:e.radius,stroke:e.color,"stroke-opacity":we.value&&we.value.id!==e.id?.08:.18,"stroke-dasharray":`5 6`,"stroke-width":`1`},null,8,$o))),128)),(s(!0),h(v,null,i(ve.value.links,e=>(s(),h(`line`,{key:e.id,stroke:at(e),"stroke-linecap":`round`,"stroke-opacity":ot(e),"stroke-width":st(e),"marker-end":ct(e),x1:Ge(e),x2:qe(e),y1:Ke(e),y2:Je(e)},null,8,es))),128)),(s(!0),h(v,null,i(ye.value,e=>(s(),h(`line`,{key:`path-${e.id}`,class:`pointer-events-none`,stroke:at(e),"stroke-linecap":`round`,"stroke-opacity":`0.96`,"stroke-width":`3.4`,"marker-end":ct(e),x1:Ge(e),x2:qe(e),y1:Ke(e),y2:Je(e)},null,8,ts))),128)),(s(!0),h(v,null,i(ve.value.nodes,e=>(s(),h(`g`,{key:e.id,"data-graph-node":``,class:`cursor-grab outline-none active:cursor-grabbing`,opacity:lt(e),role:`button`,tabindex:`0`,"aria-label":`Select ${x(z)(e)} graph node`,transform:`translate(${e.x??I.value/2} ${e.y??L.value/2})`,onClick:D(t=>M(e.id),[`stop`]),onKeydown:re(D(t=>M(e.id),[`prevent`]),[`enter`]),onPointercancel:t=>Be(t,e),onPointerdown:t=>Re(t,e),onPointermove:t=>ze(t,e),onPointerup:t=>Be(t,e)},[m(`circle`,{fill:x(ce)(e.type),r:e.radius,stroke:ut(e),"stroke-opacity":dt(e),"stroke-width":ft(e),class:`dark:stroke-#f8fafc`},null,8,rs),Ze(e)?(s(),h(`g`,is,[m(`rect`,{fill:e.id===g.value?`#f8fafc`:`#111827`,"fill-opacity":e.id===g.value?.96:.9,height:vs,rx:`5`,stroke:it(e.group),"stroke-opacity":e.id===g.value?.82:.34,"stroke-width":`1`,width:e.labelWidth,x:$e(e),y:`-17`},null,8,as),m(`text`,{class:`font-state-field text-3 font-700`,"dominant-baseline":`middle`,fill:e.id===g.value?`#111827`:`#f8fafc`,"text-anchor":tt(e),x:et(e),y:`-5`},n(x(oe)(x(z)(e))),9,os),m(`text`,{class:`text-2.25 font-800`,"dominant-baseline":`middle`,fill:e.id===g.value?`#475569`:`#94a3b8`,"text-anchor":tt(e),x:et(e),y:`9`},n(x(H)(e.type)),9,ss)])):y(``,!0),m(`title`,null,n(x(z)(e))+` - `+n(x(H)(e.type)),1)],40,ns))),128))],8,Qo)],8,Yo)),m(`div`,cs,[(s(!0),h(v,null,i(x(se),e=>(s(),h(`div`,{key:e,class:`font-state-field min-w-23 flex items-center gap-1.5 color-base text-3.5`},[m(`span`,{class:`h-2.3 w-2.3 shrink-0 rounded-full`,style:r({background:x(ce)(e)})},null,4),m(`span`,ls,n(x(H)(e)),1)]))),128))]),m(`div`,us,[u((s(),h(`div`,ds,[u((s(),h(`button`,{class:C([`h-8 w-8 rounded-full border-0 bg-transparent color-base flex items-center justify-center hover:bg-active`,S.value<=ys?`op35`:``]),type:`button`,"aria-label":`Decrease relationship depth`,disabled:S.value<=ys,onClick:t[0]||=D(e=>je(-1),[`stop`])},[w(E,{icon:`i-carbon-subtract`,class:`text-4`})],10,fs)),[[a,`Decrease relationship depth`,void 0,{top:!0}]]),m(`span`,ps,n(S.value),1),u((s(),h(`button`,{class:C([`h-8 w-8 rounded-full border-0 bg-transparent color-base flex items-center justify-center hover:bg-active`,S.value>=bs?`op35`:``]),type:`button`,"aria-label":`Increase relationship depth`,disabled:S.value>=bs,onClick:t[1]||=D(e=>je(1),[`stop`])},[w(E,{icon:`i-carbon-add`,class:`text-4`})],10,ms)),[[a,`Increase relationship depth`,void 0,{top:!0}]])])),[[a,`Relationship depth`,void 0,{top:!0}]]),m(`div`,hs,[u((s(),h(`button`,{class:`h-8 w-8 rounded-full border-0 bg-transparent color-muted flex items-center justify-center hover:bg-active hover:color-base`,type:`button`,"aria-label":`Zoom out`,onClick:t[2]||=D(e=>Ie(.82),[`stop`])},[w(E,{icon:`i-carbon-zoom-out`,class:`text-4`})])),[[a,`Zoom out`,void 0,{top:!0}]]),u((s(),h(`button`,{class:`h-8 min-w-10 rounded-full border-0 bg-transparent px-1.5 color-muted text-3 hover:bg-active hover:color-base`,type:`button`,"aria-label":`Fit graph`,onClick:D(Fe,[`stop`])},[te(n(Se.value),1)])),[[a,`Fit graph`,void 0,{top:!0}]]),u((s(),h(`button`,{class:`h-8 w-8 rounded-full border-0 bg-transparent color-muted flex items-center justify-center hover:bg-active hover:color-base`,type:`button`,"aria-label":`Zoom in`,onClick:t[3]||=D(e=>Ie(1.18),[`stop`])},[w(E,{icon:`i-carbon-zoom-in`,class:`text-4`})])),[[a,`Zoom in`,void 0,{top:!0}]])])])],512)}}}),Ss={class:`h-full min-w-0 overflow-auto p-3`},Cs={key:0},ws={key:0,class:`grid gap-0.5`},Ts=[`onClick`],Es={class:`w-4 shrink-0 text-right color-muted font-state-field text-3`},Ds={class:`min-w-0 flex-1 truncate font-state-field text-3.5`},Os={key:0,class:`color-muted`},ks={class:`shrink-0 color-muted text-3`},As={key:0,class:`h-7 color-muted flex items-center justify-center`},js={key:1,class:`h-28 flex items-center justify-center color-muted text-3.5 italic`},Ms={class:`pb-4`},Ns={class:`grid gap-0.5`},Ps={class:`state-key shrink-0 overflow-hidden text-ellipsis whitespace-nowrap op70`},Fs={class:`border-t border-base pt-4`},Is={class:`overflow-x-auto pb-2`},Ls=[`height`,`width`],Rs=[`d`],zs=[`onClick`],Bs={class:`min-w-0 flex items-center gap-1.5`},Vs={class:`truncate font-state-field text-3.5`},Hs={key:1,class:`h-28 flex items-center justify-center color-muted text-3.5 italic`},Us={key:2,class:`m-0 color-muted text-3 leading-5`},Ws=20,Gs=d({__name:`ReactivityGraphDetails`,props:{graph:{},filteredGraph:{},selectedNodeId:{},dependencyDepth:{},path:{}},emits:[`select`],setup(e,{emit:t}){let a=e,o=t,c=ee(a,`selectedNodeId`),l=ee(a,`dependencyDepth`),d=ee(a,`filteredGraph`),p=f(()=>a.filteredGraph.nodes),g=f(()=>a.filteredGraph.relationships),_=f(()=>!!a.path),b=f(()=>a.path??fe());function S(e){o(`select`,e)}let T={width:180,height:30,padding:4,columnGap:52,canvasPadding:16,dot:16},re=f(()=>new Map(a.graph.nodes.map(e=>[e.id,e]))),D=f(()=>b.value.orderedNodeIds.map(e=>re.value.get(e)).filter(e=>e!==void 0)),O=f(()=>{let e=new Map(d.value.relationships.map(e=>[e.id,e]));return b.value.orderedRelationshipIds.map(t=>e.get(t)).filter(e=>e!==void 0)}),k=f(()=>new Map(p.value.map(e=>[e.id,e]))),A=f(()=>p.value.find(e=>e.id===c.value)),j=f(()=>c.value&&re.value.has(c.value)?R(re.value.get(c.value)):[]),M=f(()=>I(`dependency`)),N=f(()=>I(`subscriber`)),P=f(()=>L());function F(e){return e?T.height*e+T.padding*(e+1):0}function I(e){let t=[],n=new Map,r=c.value;if(!r)return{depthById:n,layers:t};let i=new Set([r]),a=new Set([r]),o=0;for(let r=1;r<=l.value&&a.size;r+=1){let s=[],c=new Set;for(let t of g.value){let n=e===`dependency`?t.from:t.to,r=e===`dependency`?t.to:t.from;if(a.has(r)&&!(i.has(n)||c.has(n))&&k.value.has(n)&&(s.push(n),c.add(n),o+s.length>=Ws))break}let l=s.slice(0,Ws-o).map(e=>k.value.get(e)).filter(e=>e!==void 0);if(!l.length)break;for(let e of l)i.add(e.id),n.set(e.id,r);if(t.push(l),o+=l.length,a=new Set(l.map(e=>e.id)),o>=Ws)break}return{depthById:n,layers:t}}function L(){let e=c.value;if(!e)return{centerX:T.canvasPadding+T.dot/2,centerY:T.dot/2,height:T.dot,links:[],nodes:[],width:T.canvasPadding*2+T.dot};let t=M.value.layers,n=M.value.depthById,r=N.value.layers,i=N.value.depthById,a=T.width+T.columnGap,o=T.canvasPadding+r.length*a+T.dot/2,s=T.canvasPadding*2+r.length*a+T.dot+t.length*a,l=Math.max(T.dot,...r.map(e=>F(e.length)),...t.map(e=>F(e.length))),u=l/2,d=[],f=[],p=new Map;r.forEach((e,t)=>{let n=t+1,r=F(e.length),i=(l-r)/2+T.padding,s=o-T.dot/2-T.columnGap-T.width-t*a;e.forEach((e,r)=>{let a=i+r*(T.height+T.padding)+T.height/2,o={depth:n,node:e,side:`subscriber`,x:s,y:a};d.push(o),t===0&&f.push(a),p.set(e.id,{node:o,x:s,y:a})})}),t.forEach((e,t)=>{let n=t+1,r=F(e.length),i=(l-r)/2+T.padding,s=o+T.dot/2+T.columnGap+t*a;e.forEach((e,r)=>{let a=i+r*(T.height+T.padding)+T.height/2,o={depth:n,node:e,side:`dependency`,x:s,y:a};d.push(o),t===0&&f.push(a),p.set(e.id,{node:o,x:s,y:a})})}),f.length&&(u=(Math.min(...f)+Math.max(...f))/2),p.set(e,{x:o,y:u});let m=[];for(let t of g.value){let r=n.get(t.from),a=t.to===e?0:n.get(t.to);if(r!==void 0&&a!==void 0&&r===a+1){let e=p.get(t.to),n=p.get(t.from);e&&n&&m.push({id:`dependency:${t.id}`,path:oe(ae(e),e.y,n.x,n.y)})}let o=i.get(t.to),s=t.from===e?0:i.get(t.from);if(o!==void 0&&s!==void 0&&o===s+1){let e=p.get(t.to),n=p.get(t.from);e&&n&&m.push({id:`subscriber:${t.id}`,path:oe(ae(e),e.y,ie(n),n.y)})}}return{centerX:o,centerY:u,height:l,links:m,nodes:d,width:s}}function ie(e){return e.node?e.x:e.x-T.dot/2}function ae(e){return e.node?e.x+T.width:e.x+T.dot/2}function oe(e,t,n,r){let i=(e+n)/2;return`M ${e} ${t} C ${i} ${t} ${i} ${r} ${n} ${r}`}function R(e){let t=de(e);return[{key:`key`,value:B(z(e)),valueClass:`string-state-type`},{key:`type`,value:B(H(e.type)),valueClass:`string-state-type`},{key:`value`,value:t||`undefined`,valueClass:t?V(t):`null-state-type`}]}function B(e){return JSON.stringify(e)}function V(e){return e===`null`||e===`undefined`?`null-state-type`:e===`true`||e===`false`?`boolean-state-type`:e.startsWith(`"`)?`string-state-type`:/^-?\d/.test(e)||e.startsWith(`Symbol(`)?`literal-state-type`:`state-value`}function se(e){let t=de(e);return t?t.length>28?`${t.slice(0,27)}...`:t:``}return(e,t)=>{let a=ne(`tooltip`);return s(),h(`aside`,Ss,[_.value?(s(),h(`section`,Cs,[D.value.length?(s(),h(`div`,ws,[(s(!0),h(v,null,i(D.value,(e,t)=>(s(),h(v,{key:e.id},[m(`button`,{class:`min-w-0 rounded-1 border border-base bg-base px-2 py-1.5 text-left color-base flex items-center gap-2 hover:bg-active`,type:`button`,onClick:t=>S(e.id)},[m(`span`,Es,n(t+1),1),m(`span`,{class:`h-2.5 w-2.5 shrink-0 rounded-full`,style:r({background:x(ce)(e.type)})},null,4),u((s(),h(`span`,Ds,[m(`span`,null,n(x(z)(e)),1),se(e)?(s(),h(`span`,Os,` (`+n(se(e))+`) `,1)):y(``,!0)])),[[a,x(de)(e),void 0,{top:!0}]]),m(`span`,ks,n(x(H)(e.type)),1)],8,Ts),t<O.value.length?(s(),h(`div`,As,[w(E,{icon:`i-carbon-arrow-down`,class:`text-4`})])):y(``,!0)],64))),128))])):(s(),h(`div`,js,` No relationship path found `))])):A.value?(s(),h(v,{key:1},[m(`section`,Ms,[t[1]||=m(`h2`,{class:`mb-2 color-muted font-state-field text-3.5`},`Info`,-1),m(`div`,Ns,[(s(!0),h(v,null,i(j.value,e=>(s(),h(`div`,{key:e.key,class:`font-state-field min-w-0 flex items-center text-3.5`},[m(`span`,Ps,n(e.key),1),t[0]||=m(`span`,{class:`colon mx-1 shrink-0`},`:`,-1),u((s(),h(`span`,{class:C([`min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap`,e.valueClass])},[te(n(e.value),1)],2)),[[a,e.value,void 0,{top:!0}]])]))),128))])]),m(`section`,Fs,[t[2]||=m(`h2`,{class:`mb-2 color-muted font-state-field text-3.5`},`Relationships`,-1),m(`div`,Is,[P.value.nodes.length?(s(),h(`div`,{key:0,class:`relative select-none`,style:r({width:`${P.value.width}px`,height:`${P.value.height}px`})},[(s(),h(`svg`,{"pointer-events-none":``,class:`absolute left-0 top-0 z-10`,height:P.value.height,width:P.value.width},[m(`g`,null,[(s(!0),h(v,null,i(P.value.links,e=>(s(),h(`path`,{key:e.id,d:e.path,fill:`none`,stroke:`#888888`,"stroke-opacity":`0.34`},null,8,Rs))),128))])],8,Ls)),m(`div`,{class:`absolute z-20 box-border rounded-full bg-base`,style:r({top:`${P.value.centerY-T.dot/2}px`,left:`${P.value.centerX-T.dot/2}px`,width:`${T.dot}px`,height:`${T.dot}px`,border:`3px solid ${A.value?x(ce)(A.value.type):x(ce)(`unknown`)}`})},null,4),(s(!0),h(v,null,i(P.value.nodes,e=>u((s(),h(`button`,{key:`${e.side}:${e.depth}:${e.node.id}`,class:`absolute z-20 min-w-0 block rounded-1 border border-base bg-base px-2 py-1 text-left color-base hover:bg-active`,type:`button`,style:r({left:`${e.x}px`,top:`${e.y-T.height/2}px`,width:`${T.width}px`,height:`${T.height}px`,overflow:`hidden`}),onClick:t=>S(e.node.id)},[m(`span`,Bs,[m(`span`,{class:`h-2.3 w-2.3 shrink-0 rounded-full`,style:r({background:x(ce)(e.node.type)})},null,4),m(`span`,Vs,n(x(z)(e.node)),1)])],12,zs)),[[a,`${x(z)(e.node)} - ${x(H)(e.node.type)}`,void 0,{top:!0}]])),128))],4)):(s(),h(`div`,Hs,` No data `))])])],64)):(s(),h(`p`,Us,` Select a node to inspect its dependencies and subscribers. `))])}}}),Ks={class:`h-full min-h-0 flex flex-col bg-base`},qs=d({__name:`ReactivityGraph`,props:{graph:{}},setup(e){let t=e,n=p(),r=p(1),i=p(``),o=p(new Set(se)),c=p(!1),l=p(``),u=p(``),d=f(()=>{let e=le(i.value),n=o.value,r=t.graph.nodes.filter(t=>n.has(t.type)&&ue(t,e)),a=new Set(r.map(e=>e.id));return{nodes:r,relationships:t.graph.relationships.filter(e=>a.has(e.from)&&a.has(e.to))}}),m=f(()=>pe(d.value.relationships)),g=f(()=>!!l.value&&!!u.value),_=f(()=>g.value?ge(l.value,u.value,m.value):fe());function v(e){c.value=!1,l.value=``,u.value=``,n.value=e}return(t,f)=>(s(),h(`div`,Ks,[w(Je,{search:i.value,"onUpdate:search":f[0]||=e=>i.value=e,"active-types":o.value,"onUpdate:activeTypes":f[1]||=e=>o.value=e,"path-selector-open":c.value,"onUpdate:pathSelectorOpen":f[2]||=e=>c.value=e,"path-start-id":l.value,"onUpdate:pathStartId":f[3]||=e=>l.value=e,"path-end-id":u.value,"onUpdate:pathEndId":f[4]||=e=>u.value=e,"selected-node-id":n.value,"onUpdate:selectedNodeId":f[5]||=e=>n.value=e,graph:e.graph,"filtered-graph":d.value},null,8,[`search`,`active-types`,`path-selector-open`,`path-start-id`,`path-end-id`,`selected-node-id`,`graph`,`filtered-graph`]),w(x(A),{class:`min-h-0 flex-1 overflow-hidden`},{default:a(()=>[w(x(j),{class:`h-full min-h-0`,"min-size":`30`,size:`53.333`},{default:a(()=>[w(xs,{"selected-node-id":n.value,"onUpdate:selectedNodeId":f[6]||=e=>n.value=e,"dependency-depth":r.value,"onUpdate:dependencyDepth":f[7]||=e=>r.value=e,graph:d.value,path:g.value?_.value:void 0,"path-selector-open":c.value,onSelect:v},null,8,[`selected-node-id`,`dependency-depth`,`graph`,`path`,`path-selector-open`])]),_:1}),w(x(j),{class:`h-full min-h-0`,"min-size":`24`,size:`46.667`},{default:a(()=>[w(Gs,{graph:e.graph,"filtered-graph":d.value,"selected-node-id":n.value,"dependency-depth":r.value,path:g.value?_.value:void 0,onSelect:v},null,8,[`graph`,`filtered-graph`,`selected-node-id`,`dependency-depth`,`path`])]),_:1})]),_:1})]))}}),Js={class:`h-full min-h-0 flex flex-col`},Ys={key:0,class:`max-h-38 shrink-0 border-b border-base`},Xs={class:`min-h-0 flex-1`},Zs={key:1,class:`h-full min-h-0 flex items-center justify-center bg-subtle p-6`},Qs={class:`m-0 max-w-78 text-center color-muted text-3.5 leading-5`},$s=d({__name:`graph`,setup(r){let{apps:i,cancelComponentInspection:o,componentInspecting:c,components:l,componentState:u,componentStateLoading:d,error:v,highlightComponent:b,inspectComponentInPage:ee,reactivityGraphEnabled:te,selectComponent:C,selectedComponent:ne,selectedComponentId:T,unhighlightComponent:re}=g(),E=p(),D=p(!1),N=p(``),P,F=f(()=>M(l.value,N.value)),I=f(()=>u.value?.reactivityGraph),L=f(()=>te.value?ne.value?d.value?`Loading reactivity graph...`:`No data`:`Select a component to inspect its reactivity graph.`:`Reactivity Graph requires Vue 3.6 or later.`),ie=f(()=>[{icon:`i-carbon-select-window`,tooltip:c.value?`Cancel selecting component`:`Select component in the page`,ariaLabel:`Select component in the page`,active:c.value,pressed:c.value,rounded:`full`,run:oe}]);async function ae(e){C(e),await t()}async function oe(){if(c.value){await o();return}let e=await ee();e&&(N.value=``,C(e.componentId),await t())}function R(e){ie.value[e]?.run()}function z(e){if(!B(e.target)){if(e.key.toLowerCase()===`s`&&(e.ctrlKey||e.metaKey)){e.preventDefault(),oe();return}e.key===`Escape`&&c.value&&(e.preventDefault(),o())}}function B(e){if(!(e instanceof HTMLElement))return!1;let t=e.tagName.toLowerCase();return t===`input`||t===`textarea`||e.isContentEditable}return e(()=>{P=new ResizeObserver(([e])=>{D.value=e.contentRect.width<760}),E.value&&P.observe(E.value),window.addEventListener(`keydown`,z)}),_(()=>{P?.disconnect(),window.removeEventListener(`keydown`,z),c.value&&o(),re()}),(e,t)=>(s(),h(`section`,{ref_key:`container`,ref:E,class:`h-full min-h-0`},[w(x(A),{class:`h-full min-h-0 overflow-hidden`,horizontal:D.value},{default:a(()=>[w(x(j),{class:`h-full min-h-0`,"min-size":`16`,size:D.value?34:18},{default:a(()=>[m(`div`,Js,[x(i).length>1?(s(),h(`div`,Ys,[w(O)])):y(``,!0),m(`div`,Xs,[w(k,{filter:N.value,"onUpdate:filter":t[0]||=e=>N.value=e,actions:ie.value,"component-labels":``,"default-expand-depth":99,"empty-text":x(v)??`No components`,nodes:F.value,"no-matching-text":`No matching components`,placeholder:`Find components...`,"selected-node-id":x(T),"state-key":`reactivity-graph-components`,"refresh-visible":!1,onAction:R,onHover:t[1]||=e=>void x(b)(e),onLeave:t[2]||=()=>void x(re)(),onSelect:t[3]||=e=>void ae(e)},null,8,[`filter`,`actions`,`empty-text`,`nodes`,`selected-node-id`])])])]),_:1},8,[`size`]),w(x(j),{class:`h-full min-h-0`,"min-size":`32`},{default:a(()=>[x(te)&&I.value?.nodes.length?(s(),S(qs,{key:0,graph:I.value},null,8,[`graph`])):(s(),h(`div`,Zs,[m(`p`,Qs,n(L.value),1)]))]),_:1})]),_:1},8,[`horizontal`])],512))}});export{$s as default};
@@ -0,0 +1,3 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-DoJqxsjr.js","./_plugin-vue_export-helper-Bi7R8aHR.js","./browser-agent-Pu-FLk6I-Dsjmnbas.js","./components-DNv7Rrwe.js","./RecycleScroller.vue_vue_type_script_setup_true_lang-C7mZBLYi-Qu6vm2Hq.js","./InspectorState-DucXtGYl.js","./Checkbox-3-BZG_RU.js","./InspectorTree-C4e-JJiX.js","./InspectorTree-CyiZHbQn.css","./splitpanes.esm-Cwf-Yw0X.js","./component-tree-C3C12cZe.js","./components-BzB47Xnc.css","./pages-CGMfqD7Z.js","./pages-CybqUBzQ.css","./timeline-D2Qq6Gi0.js","./timeline-B8YJRZK8.css","./custom-inspector-Da_34cDJ.js","./plugins-CiKZQpE4.js","./plugins-OIsWSXcW.css","./graph-C1luIbSW.js","./settings-Ce4aDLyW.js","./settings-cOj3bqKq.css"])))=>i.map(i=>d[i]);
2
+ import{$ as e,A as t,C as n,Ct as r,D as i,Dt as a,E as o,Et as s,F as c,I as l,J as u,K as d,L as f,M as p,N as m,P as h,R as g,S as _,St as v,Tt as y,X as b,Y as x,Z as S,_t as C,a as w,at as T,b as E,bt as ee,ct as te,d as D,dt as O,et as k,f as A,ft as ne,g as re,gt as ie,h as j,ht as ae,i as oe,j as se,l as M,lt as ce,m as N,mt as le,n as ue,nt as de,o as P,ot as F,p as fe,pt as pe,q as me,r as he,rt as ge,st as _e,t as ve,tt as ye,u as be,ut as xe,v as Se,vt as Ce,w as we,wt as I,xt as Te,y as L,yt as Ee,z as De}from"./_plugin-vue_export-helper-Bi7R8aHR.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 Oe=void 0,ke=typeof window<`u`&&window.trustedTypes;if(ke)try{Oe=ke.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Ae=Oe?e=>Oe.createHTML(e):e=>e,je=`http://www.w3.org/2000/svg`,Me=`http://www.w3.org/1998/Math/MathML`,R=typeof document<`u`?document:null,Ne=R&&R.createElement(`template`),Pe={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?R.createElementNS(je,e):t===`mathml`?R.createElementNS(Me,e):n?R.createElement(e,{is:n}):R.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>R.createTextNode(e),createComment:e=>R.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>R.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{Ne.innerHTML=Ae(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Ne.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Fe=Symbol(`_vtc`);function Ie(e,t,n){let r=e[Fe];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Le=Symbol(`_vod`),Re=Symbol(`_vsh`),ze=Symbol(``),Be=/(?:^|;)\s*display\s*:/;function Ve(e,t,n){let r=e.style,i=Ee(n),a=!1;if(n&&!i){if(t){if(Ee(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Ue(r,t,``)}else for(let e in t)n[e]??Ue(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Ue(r,i,``):qe(e,i,!Ee(t)&&t?t[i]:void 0,o)||Ue(r,i,o)}}else if(i){if(t!==n){let e=r[ze];e&&(n+=`;`+e),r.cssText=n,a=Be.test(n)}}else t&&e.removeAttribute(`style`);Le in e&&(e[Le]=a?r.display:``,e[Re]&&(r.display=`none`))}var He=/\s*!important$/;function Ue(e,t,n){if(pe(n))n.forEach(n=>Ue(e,t,n));else if(n??=``,t.startsWith(`--`))He.test(n)?e.setProperty(t,n.replace(He,``),`important`):e.setProperty(t,n);else{let r=Ke(e,t);He.test(n)?e.setProperty(xe(r),n.replace(He,``),`important`):e[r]=n}}var We=[`Webkit`,`Moz`,`ms`],Ge={};function Ke(e,t){let n=Ge[t];if(n)return n;let r=_e(t);if(r!==`filter`&&r in e)return Ge[t]=r;r=te(r);for(let n=0;n<We.length;n++){let i=We[n]+r;if(i in e)return Ge[t]=i}return t}function qe(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&Ee(r)&&n===r}var Je=`http://www.w3.org/1999/xlink`;function Ye(e,t,n,r,i,a=Ce(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Je,t.slice(6,t.length)):e.setAttributeNS(Je,t,n):n==null||a&&!O(n)?e.removeAttribute(t):e.setAttribute(t,a?``:ee(n)?String(n):n)}function Xe(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Ae(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=O(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function Ze(e,t,n,r){e.addEventListener(t,n,r)}function Qe(e,t,n,r){e.removeEventListener(t,n,r)}var $e=Symbol(`_vei`);function et(e,t,n,r,i=null){let a=e[$e]||(e[$e]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=rt(t);r?Ze(e,n,a[t]=st(r,i),s):o&&(Qe(e,n,o,s),a[t]=void 0)}}var tt=/(Once|Passive|Capture)$/,nt=/^on:?(?:Once|Passive|Capture)$/;function rt(e){let t,n;for(;(n=e.match(tt))&&!nt.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):xe(e.slice(2)),t]}var it=0,at=Promise.resolve(),ot=()=>it||=(at.then(()=>it=0),Date.now());function st(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(pe(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&be(e,t,5,a)}}else be(r,t,5,[e])};return n.value=e,n.attached=ot(),n}var ct=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,lt=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Ie(e,r,o):t===`style`?Ve(e,n,r):ie(t)?ae(t)||et(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):ut(e,t,r,o))?(Xe(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Ye(e,t,r,o,a,t!==`value`)):e._isVueCE&&(dt(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ee(r)))?Xe(e,_e(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Ye(e,t,r,o))};function ut(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&ct(t)&&le(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return ct(t)&&Ee(n)?!1:t in e}function dt(e,t){let n=e._def.props;if(!n)return!1;let r=_e(t);return Array.isArray(n)?n.some(e=>_e(e)===r):Object.keys(n).some(e=>_e(e)===r)}var ft=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return pe(t)?e=>ne(t,e):t};function pt(e){e.target.composing=!0}function mt(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var z=Symbol(`_assign`),ht=Symbol(`_initialValue`);function gt(e,t,n){return t&&(e=e.trim()),n&&(e=r(e)),e}var _t={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[ht]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[ht]=e.defaultValue.replace(/\r\n?/g,`
3
+ `))),e[z]=ft(i);let a=r||i.props&&i.props.type===`number`;Ze(e,t?`change`:`input`,t=>{t.target.composing||e[z](gt(e.value,n,a))}),(n||a)&&Ze(e,`change`,()=>{e.value=gt(e.value,n,a)}),t||(Ze(e,`compositionstart`,pt),Ze(e,`compositionend`,mt),Ze(e,`change`,mt))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[ht];delete e[ht],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[z](gt(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:a,number:o}},s){if(e[z]=ft(s),e.composing)return;let c=(o||e.type===`number`)&&!/^0\d/.test(e.value)?r(e.value):e.value,l=t??``;if(c===l)return;let u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!==`range`&&(i&&t===n||a&&e.value.trim()===l)||(e.value=l)}},vt={deep:!0,created(e,t,n){e[z]=ft(n),Ze(e,`change`,()=>{let t=e._modelValue,n=Ct(e),r=e.checked,i=e[z];if(pe(t)){let e=v(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(C(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(wt(e,r))})},mounted:yt,beforeUpdate(e,t,n){e[z]=ft(n),yt(e,t,n)}};function yt(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(pe(t))i=v(t,r.props.value)>-1;else if(C(t))i=t.has(r.props.value);else{if(t===n)return;i=Te(t,wt(e,!0))}e.checked!==i&&(e.checked=i)}var bt={deep:!0,created(e,{value:t,modifiers:{number:n}},a){e._modelValue=t,Ze(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?r(Ct(e)):Ct(e)),a=e.multiple,o=a?C(e._modelValue)?new Set(t):t:t[0],s=e._pendingValue=[a,a?pe(o)?t.slice():t:o];try{e[z](o)}finally{i(()=>{e._pendingValue===s&&(e._pendingValue=void 0)})}}),e[z]=ft(a)},mounted(e,{value:t}){St(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[z]=ft(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!xt(t,n[1],n[0]))&&St(e,t)}};function xt(e,t,n){if(!n||pe(e))return Te(e,t);if(C(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function St(e,t){let n=e.multiple,r=pe(t);if(!n||r||C(t)){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Ct(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):v(t,o)>-1}else a.selected=t.has(o)}else if(Te(Ct(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ct(e){return`_value`in e?e._value:e.value}function wt(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Tt=[`ctrl`,`shift`,`alt`,`meta`],Et={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Tt.some(n=>e[`${n}Key`]&&!t.includes(n))},Dt=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Et[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Ot={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},kt=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=xe(n.key);if(t.some(e=>e===r||Ot[e]===r))return e(n)}))},At=ce({patchProp:lt},Pe),jt;function Mt(){return jt||=re(At)}var Nt=((...e)=>{let t=Mt().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Ft(e);if(!r)return;let i=t._component;!le(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Pt(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Pt(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Ft(e){return Ee(e)?document.querySelector(e):e}var It=[`top`,`right`,`bottom`,`left`],Lt=[`start`,`end`],Rt=It.reduce((e,t)=>e.concat(t,t+`-`+Lt[0],t+`-`+Lt[1]),[]),zt=Math.min,Bt=Math.max,Vt={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ht(e,t,n){return Bt(e,zt(t,n))}function Ut(e,t){return typeof e==`function`?e(t):e}function B(e){return e.split(`-`)[0]}function V(e){return e.split(`-`)[1]}function Wt(e){return e===`x`?`y`:`x`}function Gt(e){return e===`y`?`height`:`width`}function H(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Kt(e){return Wt(H(e))}function qt(e,t,n){n===void 0&&(n=!1);let r=V(e),i=Kt(e),a=Gt(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=nn(o)),[o,nn(o)]}function Jt(e){let t=nn(e);return[Yt(e),t,Yt(t)]}function Yt(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Xt=[`left`,`right`],Zt=[`right`,`left`],Qt=[`top`,`bottom`],$t=[`bottom`,`top`];function en(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Zt:Xt:t?Xt:Zt;case`left`:case`right`:return t?Qt:$t;default:return[]}}function tn(e,t,n,r){let i=V(e),a=en(B(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Yt)))),a}function nn(e){let t=B(e);return Vt[t]+e.slice(t.length)}function rn(e){return{top:0,right:0,bottom:0,left:0,...e}}function an(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:rn(e)}function on(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 sn(e,t,n){let{reference:r,floating:i}=e,a=H(t),o=Kt(t),s=Gt(o),c=B(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}}switch(V(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1)}return p}async function cn(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}=Ut(t,e),p=an(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=on(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=on(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 ln=50,un=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:cn},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=sn(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<ln&&(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}=sn(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},dn=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}=Ut(e,t)||{};if(l==null)return{};let d=an(u),f={x:n,y:r},p=Kt(i),m=Gt(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=zt(d[_],T),ee=zt(d[v],T),te=E,D=C-h[m]-ee,O=C/2-h[m]/2+w,k=Ht(te,O,D),A=!c.arrow&&V(i)!=null&&O!==k&&a.reference[m]/2-(O<te?E:ee)-h[m]/2<0,ne=A?O<te?O-te:O-D:0;return{[p]:f[p]+ne,data:{[p]:k,centerOffset:O-k-ne,...A&&{alignmentOffset:ne}},reset:A}}});function fn(e,t,n){return(e?[...n.filter(t=>V(t)===e),...n.filter(t=>V(t)!==e)]:n.filter(e=>B(e)===e)).filter(n=>!e||V(n)===e||(t?Yt(n)!==n:!1))}var pn=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=Rt,autoAlignment:u=!0,...d}=Ut(e,t),f=c!==void 0||l===Rt?fn(c||null,u,l):l,p=await a.detectOverflow(t,d),m=r.autoPlacement?.index||0,h=f[m];if(h==null)return{};let g=qt(h,n,await(a.isRTL==null?void 0:a.isRTL(o.floating)));if(i!==h)return{reset:{placement:f[0]}};let _=[p[B(h)],p[g[0]],p[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:h,overflows:_}],y=f[m+1];if(y)return{data:{index:m+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=V(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,V(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:m+1,overflows:v},reset:{placement:x}}}}},mn=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}=Ut(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=B(r),_=H(o),v=B(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[nn(o)]:Jt(o)),x=p!==`none`;!d&&x&&b.push(...tn(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=qt(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`||_===H(t)||T.every(e=>H(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=H(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{}}}},hn=new Set([`left`,`top`]);async function gn(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=B(n),s=V(n),c=H(n)===`y`,l=hn.has(o)?-1:1,u=a&&c?-1:1,d=Ut(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 _n=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 gn(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}}}}},vn=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}=Ut(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=H(B(i)),p=Wt(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Ht(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Ht(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},yn=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Ut(e,t),u=await o.detectOverflow(t,l),d=B(i),f=V(i),p=H(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=zt(h-u[g],v),x=zt(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Bt(u.left,0),t=Bt(u.right,0),n=Bt(u.top,0),r=Bt(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Bt(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Bt(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function U(e){return e.ownerDocument?.defaultView||window}function W(e){return U(e).getComputedStyle(e)}var bn=Math.min,xn=Math.max,Sn=Math.round;function Cn(e){let t=W(e),n=parseFloat(t.width),r=parseFloat(t.height),i=e.offsetWidth,a=e.offsetHeight,o=Sn(n)!==i||Sn(r)!==a;return o&&(n=i,r=a),{width:n,height:r,fallback:o}}function wn(e){return On(e)?(e.nodeName||``).toLowerCase():``}var Tn;function En(){if(Tn)return Tn;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Tn=e.brands.map((e=>e.brand+`/`+e.version)).join(` `),Tn):navigator.userAgent}function G(e){return e instanceof U(e).HTMLElement}function Dn(e){return e instanceof U(e).Element}function On(e){return e instanceof U(e).Node}function kn(e){return typeof ShadowRoot>`u`?!1:e instanceof U(e).ShadowRoot||e instanceof ShadowRoot}function An(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function jn(e){return[`table`,`td`,`th`].includes(wn(e))}function Mn(e){let t=/firefox/i.test(En()),n=W(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 Nn(){return!/^((?!chrome|android).)*safari/i.test(En())}function Pn(e){return[`html`,`body`,`#document`].includes(wn(e))}function Fn(e){return Dn(e)?e:e.contextElement}var In={x:1,y:1};function Ln(e){let t=Fn(e);if(!G(t))return In;let n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=Cn(t),o=(a?Sn(n.width):n.width)/r,s=(a?Sn(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}function Rn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Fn(e),o=In;t&&(r?Dn(r)&&(o=Ln(r)):o=Ln(e));let s=a?U(a):window,c=!Nn()&&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=U(a),t=r&&Dn(r)?U(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=Ln(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=U(n).frameElement}}return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function zn(e){return((On(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bn(e){return Dn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Vn(e){return Rn(zn(e)).left+Bn(e).scrollLeft}function Hn(e){if(wn(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||kn(e)&&e.host||zn(e);return kn(t)?t.host:t}function Un(e){let t=Hn(e);return Pn(t)?t.ownerDocument.body:G(t)&&An(t)?t:Un(t)}function Wn(e,t){t===void 0&&(t=[]);let n=Un(e),r=n===e.ownerDocument?.body,i=U(n);return r?t.concat(i,i.visualViewport||[],An(n)?n:[]):t.concat(n,Wn(n))}function Gn(e,t,n){return t===`viewport`?on(function(e,t){let n=U(e),r=zn(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Nn();(e||!e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}(e,n)):Dn(t)?on(function(e,t){let n=Rn(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=G(e)?Ln(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)):on(function(e){let t=zn(e),n=Bn(e),r=e.ownerDocument.body,i=xn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=xn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Vn(e),s=-n.scrollTop;return W(r).direction===`rtl`&&(o+=xn(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(zn(e)))}function Kn(e){return G(e)&&W(e).position!==`fixed`?e.offsetParent:null}function qn(e){let t=U(e),n=Kn(e);for(;n&&jn(n)&&W(n).position===`static`;)n=Kn(n);return n&&(wn(n)===`html`||wn(n)===`body`&&W(n).position===`static`&&!Mn(n))?t:n||function(e){let t=Hn(e);for(;G(t)&&!Pn(t);){if(Mn(t))return t;t=Hn(t)}return null}(e)||t}function Jn(e,t,n){let r=G(t),i=zn(t),a=Rn(e,!0,n===`fixed`,t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&n!==`fixed`){if((wn(t)!==`body`||An(i))&&(o=Bn(t)),G(t)){let e=Rn(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Vn(i))}return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}var Yn={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=Wn(e).filter((e=>Dn(e)&&wn(e)!==`body`)),i=null,a=W(e).position===`fixed`,o=a?Hn(e):e;for(;Dn(o)&&!Pn(o);){let e=W(o),t=Mn(o);(a?t||i:t||e.position!==`static`||!i||![`absolute`,`fixed`].includes(i.position))?i=e:r=r.filter((e=>e!==o)),o=Hn(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce(((e,n)=>{let r=Gn(t,n,i);return e.top=xn(r.top,e.top),e.right=bn(r.right,e.right),e.bottom=bn(r.bottom,e.bottom),e.left=xn(r.left,e.left),e}),Gn(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=G(n),a=zn(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`)&&((wn(n)!==`body`||An(a))&&(o=Bn(n)),G(n))){let e=Rn(n);s=Ln(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:Dn,getDimensions:function(e){return G(e)?Cn(e):e.getBoundingClientRect()},getOffsetParent:qn,getDocumentElement:zn,getScale:Ln,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||qn,a=this.getDimensions;return{reference:Jn(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>W(e).direction===`rtl`},Xn=(e,t,n)=>{let r=new Map,i={platform:Yn,...n},a={...i.platform,_c:r};return un(e,t,{...i,platform:a})},Zn={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 Qn(e,t){let n=Zn.themes[e]||{},r;do r=n[t],typeof r>`u`?n.$extend?n=Zn.themes[n.$extend]||{}:(n=null,r=Zn[t]):n=null;while(n);return r}function $n(e){let t=[e],n=Zn.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Zn.themes[n.$extend]||{}):n=null;while(n);return t.map(e=>`v-popper--theme-${e}`)}function er(e){let t=[e],n=Zn.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Zn.themes[n.$extend]||{}):n=null;while(n);return t}var tr=!1;if(typeof window<`u`){tr=!1;try{let e=Object.defineProperty({},"passive",{get(){tr=!0}});window.addEventListener(`test`,null,e)}catch{}}var nr=!1;typeof window<`u`&&typeof navigator<`u`&&(nr=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var rr=[`auto`,`top`,`bottom`,`left`,`right`].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),ir={hover:`mouseenter`,focus:`focus`,click:`click`,touch:`touchstart`,pointer:`pointerdown`},ar={hover:`mouseleave`,focus:`blur`,click:`click`,touch:`touchend`,pointer:`pointerup`};function or(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}function sr(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var K=[],cr=null,lr={};function ur(e){let t=lr[e];return t||=lr[e]=[],t}var dr=function(){};typeof window<`u`&&(dr=window.Element);function q(e){return function(t){return Qn(t.theme,e)}}var fr=`__floating-vue__popper`,pr=()=>E({name:`VPopper`,provide(){return{[fr]:{parentPopper:this}}},inject:{[fr]:{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:q(`disabled`)},positioningDisabled:{type:Boolean,default:q(`positioningDisabled`)},placement:{type:String,default:q(`placement`),validator:e=>rr.includes(e)},delay:{type:[String,Number,Object],default:q(`delay`)},distance:{type:[Number,String],default:q(`distance`)},skidding:{type:[Number,String],default:q(`skidding`)},triggers:{type:Array,default:q(`triggers`)},showTriggers:{type:[Array,Function],default:q(`showTriggers`)},hideTriggers:{type:[Array,Function],default:q(`hideTriggers`)},popperTriggers:{type:Array,default:q(`popperTriggers`)},popperShowTriggers:{type:[Array,Function],default:q(`popperShowTriggers`)},popperHideTriggers:{type:[Array,Function],default:q(`popperHideTriggers`)},container:{type:[String,Object,dr,Boolean],default:q(`container`)},boundary:{type:[String,dr],default:q(`boundary`)},strategy:{type:String,validator:e=>[`absolute`,`fixed`].includes(e),default:q(`strategy`)},autoHide:{type:[Boolean,Function],default:q(`autoHide`)},handleResize:{type:Boolean,default:q(`handleResize`)},instantMove:{type:Boolean,default:q(`instantMove`)},eagerMount:{type:Boolean,default:q(`eagerMount`)},popperClass:{type:[String,Array,Object],default:q(`popperClass`)},computeTransformOrigin:{type:Boolean,default:q(`computeTransformOrigin`)},autoMinSize:{type:Boolean,default:q(`autoMinSize`)},autoSize:{type:[Boolean,String],default:q(`autoSize`)},autoMaxSize:{type:Boolean,default:q(`autoMaxSize`)},autoBoundaryMaxSize:{type:Boolean,default:q(`autoBoundaryMaxSize`)},preventOverflow:{type:Boolean,default:q(`preventOverflow`)},overflowPadding:{type:[Number,String],default:q(`overflowPadding`)},arrowPadding:{type:[Number,String],default:q(`arrowPadding`)},arrowOverflow:{type:Boolean,default:q(`arrowOverflow`)},flip:{type:Boolean,default:q(`flip`)},shift:{type:Boolean,default:q(`shift`)},shiftCrossAxis:{type:Boolean,default:q(`shiftCrossAxis`)},noAutoFocus:{type:Boolean,default:q(`noAutoFocus`)},disposeTimeout:{type:Number,default:q(`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[fr]?.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(_n({mainAxis:this.distance,crossAxis:this.skidding}));let t=this.placement.startsWith(`auto`);if(t?e.middleware.push(pn({alignment:this.placement.split(`-`)[1]??``})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(vn({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(mn({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(dn({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(yn({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 Xn(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),cr&&this.instantMove&&cr.instantMove&&cr!==this.parentPopper){cr.$_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&&(cr=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 sr(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Wn(this.$_referenceNode),...Wn(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<K.length;n++)t=K[n],t.showGroup!==e&&(t.hide(),t.$emit(`close-group`))}K.push(this),document.body.classList.add(`v-popper--some-open`);for(let e of er(this.theme))ur(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 sr(),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,or(K,this),K.length===0&&document.body.classList.remove(`v-popper--some-open`);for(let e of er(this.theme)){let t=ur(e);or(t,this),t.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}cr===this&&(cr=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 sr(),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,ir,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],ir,this.popperTriggers,this.popperShowTriggers,e);let t=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,ar,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],ar,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,tr?{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(Sr>=e.left&&Sr<=e.right&&Cr>=e.top&&Cr<=e.bottom){let e=this.$_popperNode.getBoundingClientRect(),t=Sr-br,n=Cr-xr,r=e.left+e.width/2-br+(e.top+e.height/2)-xr+e.width+e.height,i=br+t*r,a=xr+n*r;return wr(br,xr,i,a,e.left,e.top,e.left,e.bottom)||wr(br,xr,i,a,e.left,e.top,e.right,e.top)||wr(br,xr,i,a,e.right,e.top,e.right,e.bottom)||wr(br,xr,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(nr){let e=!tr||{passive:!0,capture:!0};document.addEventListener(`touchstart`,e=>mr(e,!0),e),document.addEventListener(`touchend`,e=>hr(e,!0),e)}else window.addEventListener(`mousedown`,e=>mr(e,!1),!0),window.addEventListener(`click`,e=>hr(e,!1),!0);window.addEventListener(`resize`,yr)}function mr(e,t){if(Zn.autoHideOnMousedown)gr(e,t);else for(let t=0;t<K.length;t++){let n=K[t];try{n.mouseDownContains=n.popperNode().contains(e.target)}catch{}}}function hr(e,t){Zn.autoHideOnMousedown||gr(e,t)}function gr(e,t){let n={};for(let r=K.length-1;r>=0;r--){let i=K[r];try{let r=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(e.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&_r(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&&_r(a,a.containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch{}}}function _r(e,t,n){return n.closeAllPopover||n.closePopover&&t||vr(e,n)&&!t}function vr(e,t){if(typeof e.autoHide==`function`){let n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function yr(){for(let e=0;e<K.length;e++)K[e].$_computePosition()}var br=0,xr=0,Sr=0,Cr=0;typeof window<`u`&&window.addEventListener(`mousemove`,e=>{br=Sr,xr=Cr,Sr=e.clientX,Cr=e.clientY},tr?{passive:!0}:void 0);function wr(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 Tr={extends:pr()},Er=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};function Dr(e,t,n,r,i,a){return p(),j(`div`,{ref:`reference`,class:I([`v-popper`,{"v-popper--shown":e.slotData.isShown}])},[f(e.$slots,`default`,y(_(e.slotData)))],2)}var Or=Er(Tr,[[`render`,Dr]]);function kr(){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 Ar;function jr(){jr.init||(jr.init=!0,Ar=kr()!==-1)}var Mr={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){jr(),i(()=>{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`,Ar&&this.$el.appendChild(e),e.data=`about:blank`,Ar||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&&(!Ar&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},Nr=b(`data-v-b329ee4c`);c(`data-v-b329ee4c`);var Pr={class:`resize-observer`,tabindex:`-1`};m(),Mr.render=Nr((e,t,n,r,i,a)=>(p(),fe(`div`,Pr))),Mr.__scopeId=`data-v-b329ee4c`,Mr.__file=`src/components/ResizeObserver.vue`;var Fr=(e=`theme`)=>({computed:{themeClass(){return $n(this[e])}}}),Ir=E({name:`VPopperContent`,components:{ResizeObserver:Mr},mixins:[Fr()],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}}}),Lr=[`id`,`aria-hidden`,`tabindex`,`data-popper-placement`],Rr={ref:`inner`,class:`v-popper__inner`},zr=[A(`div`,{class:`v-popper__arrow-outer`},null,-1),A(`div`,{class:`v-popper__arrow-inner`},null,-1)];function Br(e,t,n,r,i,a){let o=g(`ResizeObserver`);return p(),j(`div`,{id:e.popperId,ref:`popover`,class:I([`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:s(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]||=kt(t=>e.autoHide&&e.$emit(`hide`),[`esc`])},[A(`div`,{class:`v-popper__backdrop`,onClick:t[0]||=t=>e.autoHide&&e.$emit(`hide`)}),A(`div`,{class:`v-popper__wrapper`,style:s(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[A(`div`,Rr,[e.mounted?(p(),j(M,{key:0},[A(`div`,null,[f(e.$slots,`default`)]),e.handleResize?(p(),fe(o,{key:0,onNotify:t[1]||=t=>e.$emit(`resize`,t)})):N(``,!0)],64)):N(``,!0)],512),A(`div`,{ref:`arrow`,class:`v-popper__arrow-container`,style:s(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},zr,4)],4)],46,Lr)}var Vr=Er(Ir,[[`render`,Br]]),Hr={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)}}},Ur=function(){};typeof window<`u`&&(Ur=window.Element);var Wr=E({name:`VPopperWrapper`,components:{Popper:Or,PopperContent:Vr},mixins:[Hr,Fr(`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,Ur,Boolean],default:void 0},boundary:{type:[String,Ur],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 Gr(e,t,n,r,i,a){let s=g(`PopperContent`),c=g(`Popper`);return p(),fe(c,o({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:u(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,show:o,hide:c,handleResize:l,onResize:d,classes:p,result:m})=>[f(e.$slots,`default`,{shown:n,show:o,hide:c}),L(s,{ref:`popperContent`,"popper-id":t,theme:e.finalTheme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":l,classes:p,result:m,onHide:c,onResize:d},{default:u(()=>[f(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 Kr=Er(Wr,[[`render`,Gr]]),qr={...Kr,name:`VDropdown`,vPopperTheme:`dropdown`};({...Kr}),{...Kr};var Jr=E({name:`VTooltipDirective`,components:{Popper:pr(),PopperContent:Vr},mixins:[Hr],inheritAttrs:!1,props:{theme:{type:String,default:`tooltip`},html:{type:Boolean,default:e=>Qn(e.theme,`html`)},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Qn(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}}}),Yr=[`innerHTML`],Xr=[`textContent`];function Zr(e,t,n,r,i,s){let c=g(`PopperContent`),l=g(`Popper`);return p(),fe(l,o({ref:`popper`},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:u(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:o,hide:s,handleResize:l,onResize:d,classes:f,result:m})=>[L(c,{ref:`popperContent`,class:I({"v-popper--tooltip-loading":e.loading}),"popper-id":t,theme:e.theme,shown:n,mounted:r,"skip-transition":i,"auto-hide":o,"handle-resize":l,classes:f,result:m,onHide:s,onResize:d},{default:u(()=>[e.html?(p(),j(`div`,{key:0,innerHTML:e.finalContent},null,8,Yr)):(p(),j(`div`,{key:1,textContent:a(e.finalContent)},null,8,Xr))]),_: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 Qr=Er(Jr,[[`render`,Zr]]),$r=`v-popper--has-tooltip`;function ei(e,t){let n=e.placement;if(!n&&t)for(let e of rr)t[e]&&(n=e);return n||=Qn(e.theme||`tooltip`,`placement`),n}function ti(e,t,n){let r,i=typeof t;return r=i===`string`?{content:t}:t&&i===`object`?t:{content:!1},r.placement=ei(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}var ni,ri,ii=0;function ai(){if(ni)return;ri=k([]),ni=Nt({name:`VTooltipDirectiveApp`,setup(){return{directives:ri}},render(){return this.directives.map(e=>n(Qr,{...e.options,shown:e.shown||e.options.shown,key:e.id}))},devtools:{hide:!0}});let e=document.createElement(`div`);document.body.appendChild(e),ni.mount(e)}function oi(e,t,n){ai();let r=k(ti(e,t,n)),i=k(!1),a={id:ii++,options:r,shown:i};return ri.value.push(a),e.classList&&e.classList.add($r),e.$_popper={options:r,item:a,show(){i.value=!0},hide(){i.value=!1}}}function si(e){if(e.$_popper){let t=ri.value.indexOf(e.$_popper.item);t!==-1&&ri.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove($r)}function ci(e,{value:t,modifiers:n}){let r=ti(e,t,n);if(!r.content||Qn(r.theme||`tooltip`,`disabled`))si(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=r):i=oi(e,t,n),typeof t.shown<`u`&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}var li={beforeMount:ci,updated:ci,beforeUnmount(e){si(e)}},ui=qr,di=e=>e.startsWith(`/`);function fi(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function pi(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&fi(e.default)}var J=Object.assign;function mi(e,t){let n={};for(let r in t){let i=t[r];n[r]=Y(i)?i.map(e):e(i)}return n}var hi=()=>{},Y=Array.isArray;function gi(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var _i=Symbol(``);function vi(e,t){return J(Error(),{type:e,[_i]:!0},t)}function yi(e,t){return e instanceof Error&&_i in e&&(t==null||!!(e.type&t))}var bi=Symbol(``),xi=Symbol(``),Si=Symbol(``),Ci=Symbol(``),wi=Symbol(``);function Ti(){return we(Si)}function Ei(e){return we(Ci)}var Di=typeof document<`u`,Oi=/#/g,ki=/&/g,Ai=/\//g,ji=/=/g,Mi=/\?/g,Ni=/\+/g,Pi=/%5B/g,Fi=/%5D/g,Ii=/%5E/g,Li=/%60/g,Ri=/%7B/g,zi=/%7C/g,Bi=/%7D/g,Vi=/%20/g;function Hi(e){return e==null?``:encodeURI(``+e).replace(zi,`|`).replace(Pi,`[`).replace(Fi,`]`)}function Ui(e){return Hi(e).replace(Ri,`{`).replace(Bi,`}`).replace(Ii,`^`)}function Wi(e){return Hi(e).replace(Ni,`%2B`).replace(Vi,`+`).replace(Oi,`%23`).replace(ki,`%26`).replace(Li,"`").replace(Ri,`{`).replace(Bi,`}`).replace(Ii,`^`)}function Gi(e){return Wi(e).replace(ji,`%3D`)}function Ki(e){return Hi(e).replace(Oi,`%23`).replace(Mi,`%3F`)}function qi(e){return Ki(e).replace(Ai,`%2F`)}function Ji(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Yi=/\/$/,Xi=e=>e.replace(Yi,``);function Zi(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=ia(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Ji(o)}}function Qi(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function $i(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&ea(t.matched[r],n.matched[i])&&ta(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ea(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ta(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!na(e[n],t[n]))return!1;return!0}function na(e,t){return Y(e)?ra(e,t):Y(t)?ra(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function ra(e,t){return Y(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function ia(e,t){if(di(e))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var X={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function aa(e){if(!e){if(Di){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Xi(e)}var oa=/^[^#]+#/;function sa(e,t){return e.replace(oa,`#`)+t}function ca(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var la=()=>history.scrollRestoration===`manual`?{left:window.scrollX,top:window.scrollY}:null;function ua(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=ca(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function da(e,t){return(history.state?history.state.position-t:-1)+e}var fa=new Map;function pa(e){fa.set(e,la())}function ma(e){let t=fa.get(e);return fa.delete(e),t}function ha(e){return typeof e==`string`||e&&typeof e==`object`}function ga(e){return typeof e==`string`||typeof e==`symbol`}function _a(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(Ni,` `),i=r.indexOf(`=`),a=Ji(i<0?r:r.slice(0,i)),o=i<0?null:Ji(r.slice(i+1));if(a in t){let e=t[a];Y(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function va(e){let t=``;for(let n in e){let r=e[n];if(n=Gi(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(Y(r)?r.map(e=>e&&Wi(e)):[r&&Wi(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function ya(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Y(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function ba(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function xa(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(vi(4,{from:n,to:t})):e instanceof Error?c(e):ha(e)?c(vi(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Sa(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(t===`beforeRouteEnter`||o.instances[e]){if(fi(s)){let c=(s.__vccOpts||s)[t];c&&a.push(xa(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=pi(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&xa(c,n,r,o,e,i)()}))}}}return a}function Ca(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>ea(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>ea(e,s))||i.push(s))}return[n,r,i]}function wa(e=``){let t=[],n=[[``,{}]],r=0;e=aa(e);function i(e,t={}){r++,r!==n.length&&n.splice(r),n.push([e,t])}function a(e,n,{direction:r,delta:i}){let a={direction:r,delta:i,type:`pop`};for(let r of t)r(e,n,a)}let o={location:``,state:{},base:e,createHref:sa.bind(null,e),replace(e,t){n.splice(r--,1),i(e,t)},push(e,t){i(e,t)},listen(e){return t.push(e),()=>{let n=t.indexOf(e);n>-1&&t.splice(n,1)}},destroy(){t=[],n=[[``,{}]],r=0},go(e,t=!0){let i=this.location,o=e<0?`back`:`forward`;r=Math.max(0,Math.min(r+e,n.length-1)),t&&a(this.location,i,{direction:o,delta:e})}};return Object.defineProperty(o,"location",{enumerable:!0,get:()=>n[r][0]}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>n[r][1]}),o}var Ta={type:0,value:``},Ea=/[a-zA-Z0-9_]/;function Da(e){if(!e)return[[]];if(e===`/`)return[[Ta]];if(!di(e))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:Ea.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 Oa=`[^/]+?`,ka={sensitive:!1,strict:!1,start:!0,end:!0},Aa=/[.+*?^${}()[\]/\\]/g;function ja(e,t){let n=J({},ka,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(Aa,`\\$&`),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||Oa;if(u!==Oa){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(Y(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=Y(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 Ma(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 Na(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Ma(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Pa(r))return 1;if(Pa(i))return-1}return i.length-r.length}function Pa(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Fa={strict:!1,end:!0,sensitive:!1};function Ia(e,t,n){let r=J(ja(Da(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function La(e,t){let n=[],r=new Map;t=gi(Fa,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=za(e);s.aliasOf=r&&r.record;let l=gi(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(za(J({},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&&!di(u)){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Ia(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Va(d)&&o(e.name)),Ga(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)}:hi}function o(e){if(ga(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=Ua(e,n);n.splice(t,0,e),e.record.name&&!Va(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 vi(1,{location:e});s=i.record.name,a=J(Ra(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Ra(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 vi(1,{location:e,currentLocation:t});s=i.record.name,a=J({},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:Ha(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 Ra(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function za(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ba(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 Ba(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 Va(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ha(e){return e.reduce((e,t)=>J(e,t.meta),{})}function Ua(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Na(e,t[i])<0?r=i:n=i+1}let i=Wa(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Wa(e){let t=e;for(;t=t.parent;)if(Ga(t)&&Na(e,t)===0)return t}function Ga({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ka(e){let t=we(Si),n=we(Ci),r=D(()=>{let n=F(e.to);return t.resolve(n)}),i=D(()=>{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(ea.bind(null,i));if(o>-1)return o;let s=Za(e[t-2]);return t>1&&Za(i)===s&&a[a.length-1].path!==s?a.findIndex(ea.bind(null,e[t-2])):o}),a=D(()=>i.value>-1&&Xa(n.params,r.value.params)),o=D(()=>i.value>-1&&i.value===n.matched.length-1&&ta(n.params,r.value.params));function s(n={}){if(Ya(n)){let n=t[F(e.replace)?`replace`:`push`](F(e.to)).catch(hi);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:D(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function qa(e){return e.length===1?e[0]:e}var Ja=E({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:Ka,setup(t,{slots:r}){let i=e(Ka(t)),{options:a}=we(Si),o=D(()=>({[Qa(t.activeClass,a.linkActiveClass,`router-link-active`)]:i.isActive,[Qa(t.exactActiveClass,a.linkExactActiveClass,`router-link-exact-active`)]:i.isExactActive}));return()=>{let e=r.default&&qa(r.default(i));return t.custom?e:n(`a`,{"aria-current":i.isExactActive?t.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:o.value},e)}}});function Ya(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 Xa(e,t){for(let n in t){let r=t[n],i=e[n];if(Y(r)){if(!Y(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}else if(r!==i)return!1}return!0}function Za(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Qa=(e,t,n)=>e??t??n,$a=E({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){let i=we(wi),a=D(()=>e.route||i.value),o=we(xi,0),s=D(()=>{let e=F(o),{matched:t}=a.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),c=D(()=>a.value.matched[s.value]);h(xi,D(()=>s.value+1)),h(bi,c),h(wi,a);let l=k();return d(()=>[l.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||!ea(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let i=a.value,o=e.name,s=c.value,u=s&&s.components[o];if(!u)return eo(r.default,{Component:u,route:i});let d=s.props[o],f=d?d===!0?i.params:typeof d==`function`?d(i):d:null,p=n(u,J({},f,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[o]=null)},ref:l}));return eo(r.default,{Component:p,route:i})||p}}});function eo(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var to=$a;function no(e){let t=La(e.routes,e),n=e.parseQuery||_a,r=e.stringifyQuery||va,a=e.history,o=ba(),s=ba(),c=ba(),l=de(X),u=de(0),d=X;Di&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let f=mi.bind(null,e=>``+e),p=mi.bind(null,qi),m=mi.bind(null,Ji);function h(e,n){let r,i;ga(e)?(r=t.getRecordMatcher(e),i=n):i=e;let a=t.addRoute(i,r);return u.value++,()=>{a(),u.value++}}function g(e){let n=t.getRecordMatcher(e);n&&(t.removeRoute(n),u.value++)}function _(){t.clearRoutes(),u.value++}function v(){return t.getRoutes().map(e=>e.record)}function y(e){return!!t.getRecordMatcher(e)}function b(e,i){if(u.value,typeof e==`string`){i||=e.startsWith(`/`)?X:l.value;let r=Zi(n,e,i.path),o=t.resolve({path:r.path},i),s=a.createHref(r.fullPath);return J(r,o,{params:m(o.params),redirectedFrom:void 0,href:s})}i=J({},i||(e.path!=null&&e.path.startsWith(`/`)&&!(`name`in e&&e.name)?X:l.value));let o;if(e.path!=null)o=J({},e,{path:Zi(n,e.path,i.path).path});else{let t=J({},e.params);for(let e in t)t[e]??delete t[e];o=J({},e,{params:p(t)}),i.params=p(i.params)}let s=t.resolve(o,i),c=e.hash||``;s.params=f(m(s.params));let d=Qi(r,J({},e,{hash:Ui(c),path:s.path})),h=a.createHref(d);return J({fullPath:d,hash:c,query:r===va?ya(e.query):e.query||{}},s,{redirectedFrom:void 0,href:h})}function x(e){return typeof e==`string`?Zi(n,e,l.value.path):J({},e)}function S(e,t){if(d!==e)return vi(8,{from:t,to:e})}function C(e){return E(e)}function w(e){return C(J(x(e),{replace:!0}))}function T(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=x(i):{path:i},i.params={}),J({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function E(e,t){let n=d=b(e),i=l.value,a=e.state,o=e.force,s=e.replace===!0,c=T(n,i);if(c)return E(J(x(c),{state:typeof c==`object`?J({},a,c.state):a,force:o,replace:s}),t||n);let u=n;u.redirectedFrom=t;let f;return!o&&$i(r,i,n)&&(f=vi(16,{to:u,from:i}),M(i,i,!0,!1)),(f?Promise.resolve(f):D(u,i)).catch(e=>yi(e)?yi(e,2)?e:se(e):ae(e,u,i)).then(e=>{if(e){if(yi(e,2))return E(J({replace:s},x(e.to),{state:typeof e.to==`object`?J({},a,e.to.state):a,force:o}),t||u)}else e=k(u,i,!0,s,a);return O(u,i,e),e})}function ee(e,t){let n=S(e,t);return n?Promise.reject(n):Promise.resolve()}function te(e){let t=le.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function D(e,t){let n,[r,i,a]=Ca(e,t);n=Sa(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(xa(r,e,t))});let c=ee.bind(null,e,t);return n.push(c),P(n).then(()=>{n=[];for(let r of o.list())n.push(xa(r,e,t));return n.push(c),P(n)}).then(()=>{n=Sa(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(xa(r,e,t))});return n.push(c),P(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter){if(Y(r.beforeEnter))for(let i of r.beforeEnter)n.push(xa(i,e,t));else n.push(xa(r.beforeEnter,e,t))}return n.push(c),P(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Sa(a,`beforeRouteEnter`,e,t,te),n.push(c),P(n))).then(()=>{n=[];for(let r of s.list())n.push(xa(r,e,t));return n.push(c),P(n)}).catch(e=>yi(e,8)?e:Promise.reject(e))}function O(e,t,n){c.list().forEach(r=>te(()=>r(e,t,n)))}function k(e,t,n,r,i){let o=S(e,t);if(o)return o;let s=t===X,c=Di?history.state:{};n&&(r||s?a.replace(e.fullPath,J({scroll:s&&c&&c.scroll},i)):a.push(e.fullPath,i)),l.value=e,M(e,t,n,s),se()}let A;function ne(){A||=a.listen((e,t,n)=>{if(!ue.listening)return;let r=b(e),i=T(r,ue.currentRoute.value);if(i){E(J(i,{replace:!0,force:!0}),r).catch(hi);return}d=r;let o=l.value;Di&&n.delta&&pa(da(o.fullPath,n.delta)),D(r,o).catch(e=>yi(e,12)?e:yi(e,2)?(E(J(x(e.to),{force:!0}),r).then(e=>{yi(e,20)&&!n.delta&&n.type===`pop`&&a.go(-1,!1)}).catch(hi),Promise.reject()):(n.delta&&a.go(-n.delta,!1),ae(e,r,o))).then(e=>{e||=k(r,o,!1),e&&(n.delta&&!yi(e,8)?a.go(-n.delta,!1):n.type===`pop`&&yi(e,20)&&a.go(-1,!1)),O(r,o,e)}).catch(hi)})}let re=ba(),ie=ba(),j;function ae(e,t,n){se(e);let r=ie.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function oe(){return j&&l.value!==X?Promise.resolve():new Promise((e,t)=>{re.add([e,t])})}function se(e){return j||(j=!e,ne(),re.list().forEach(([t,n])=>e?n(e):t()),re.reset()),e}function M(t,n,r,a){let{scrollBehavior:o}=e;if(!Di||!o)return Promise.resolve();let s=!r&&ma(da(t.fullPath,0))||(a||!r)&&history.state&&history.state.scroll||null;return i().then(()=>o(t,n,s)).then(e=>t===l.value&&e&&ua(e)).catch(e=>t===l.value&&ae(e,t,n))}let ce=e=>a.go(e),N,le=new Set,ue={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,clearRoutes:_,hasRoute:y,getRoutes:v,resolve:b,options:e,push:C,replace:w,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:o.add,beforeResolve:s.add,afterEach:c.add,onError:ie.add,isReady:oe,install(e){e.component(`RouterLink`,Ja),e.component(`RouterView`,to),e.config.globalProperties.$router=ue,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>F(l)}),Di&&!N&&l.value===X&&(N=!0,C(a.location).catch(e=>{}));let t={};for(let e in X)Object.defineProperty(t,e,{get:()=>l.value[e],enumerable:!0});e.provide(Si,ue),e.provide(Ci,ye(t)),e.provide(wi,l);let n=e.unmount;le.add(e),e.unmount=function(){le.delete(e),le.size<1&&(d=X,A&&A(),A=null,l.value=X,N=!1,j=!1),n()}}};function P(e){return e.reduce((e,t)=>e.then(()=>te(t)),Promise.resolve())}return ue}function ro(e){return Array.isArray?Array.isArray(e):fo(e)===`[object Array]`}function io(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function ao(e){return e==null?``:io(e)}function Z(e){return typeof e==`string`}function oo(e){return typeof e==`number`}function so(e){return e===!0||e===!1||lo(e)&&fo(e)==`[object Boolean]`}function co(e){return typeof e==`object`}function lo(e){return co(e)&&e!==null}function Q(e){return e!=null}function uo(e){return!e.trim().length}function fo(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var po=`Extended search is not available`,mo=`Logical search is not available`,ho=`Token search is not available`,go=`Incorrect 'index' type`,_o=`Invalid doc index: must be a non-negative integer within the bounds of the docs array`,vo=e=>`Invalid value for key ${e}`,yo=e=>`Pattern length exceeds max of ${e}.`,bo=e=>`Missing ${e} property in key`,xo=e=>`Property 'weight' in key '${e}' must be a positive integer`,So=`Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.`,Co=Object.prototype.hasOwnProperty,wo=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=To(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function To(e){let t=null,n=null,r=null,i=1,a=null;if(Z(e)||ro(e))r=e,t=Eo(e),n=Do(e);else{if(!Co.call(e,`name`))throw Error(bo(`name`));let o=e.name;if(r=o,Co.call(e,`weight`)&&e.weight!==void 0&&(i=e.weight,i<=0))throw Error(xo(Do(o)));t=Eo(o),n=Do(o),a=e.getFn??null}return{path:t,id:n,weight:i,src:r,getFn:a}}function Eo(e){return ro(e)?e:e.split(`.`)}function Do(e){return ro(e)?e.join(`.`):e}function Oo(e,t){let n=[],r=!1,i=(e,t,a,o)=>{if(Q(e)){if(!t[a])n.push(o===void 0?e:{v:e,i:o});else{let s=e[t[a]];if(!Q(s))return;if(a===t.length-1&&(Z(s)||oo(s)||so(s)||typeof s==`bigint`))n.push(o===void 0?ao(s):{v:ao(s),i:o});else if(ro(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,a+1,e)}else t.length&&i(s,t,a+1,o)}}};return i(e,Z(t)?t.split(`.`):t,0),r?n:n[0]}var ko={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Ao={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},jo={location:0,threshold:.6,distance:100},Mo={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:`any`,getFn:Oo,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},$=Object.freeze({...Ao,...ko,...jo,...Mo});function No(e){return e>=9&&e<=13||e===32||e===160}function Po(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=0,a=!1;for(let e=0;e<t.length;e++)No(t.charCodeAt(e))?a=!1:a||=(i++,!0);if(i===0&&(i=1),n.has(i))return n.get(i);let o=Math.round(r/i**(.5*e))/r;return n.set(i,o),o},clear(){n.clear()}}}var Fo=class{constructor({getFn:e=$.getFn,fieldNormWeight:t=$.fieldNormWeight}={}){this.norm=Po(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;let e=this.docs.length;this.records=Array(e);let t=0;if(Z(this.docs[0]))for(let n=0;n<e;n++){let e=this._createStringRecord(this.docs[n],n);e&&(this.records[t++]=e)}else for(let n=0;n<e;n++)this.records[t++]=this._createObjectRecord(this.docs[n],n);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw Error(_o);if(Z(e)){let n=this._createStringRecord(e,t);return n&&this.records.push(n),n}let n=this._createObjectRecord(e,t);return this.records.push(n),n}removeAt(e){if(!Number.isInteger(e)||e<0)throw Error(_o);for(let t=0,n=this.records.length;t<n;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,n=this.records.length;t<n;t+=1)this.records[t].i>e&&--this.records[t].i}removeAll(e){let t=new Set;for(let n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(t.size===0)return;this.records=this.records.filter(e=>!t.has(e.i));let n=Array.from(t).sort((e,t)=>e-t);for(let e of this.records){let t=0,r=n.length;for(;t<r;){let i=t+r>>>1;n[i]<e.i?t=i+1:r=i}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!Q(e)||uo(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){let n={i:t,$:{}};for(let t=0,r=this.keys.length;t<r;t++){let r=this.keys[t],i=r.getFn?r.getFn(e):this.getFn(e,r.path);if(Q(i)){if(ro(i)){let e=[];for(let t=0,n=i.length;t<n;t+=1){let n=i[t];if(Q(n)){if(Z(n)){if(!uo(n)){let r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(Q(n.v)){let t=Z(n.v)?n.v:ao(n.v);if(!uo(t)){let r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}}n.$[t]=e}else if(Z(i)&&!uo(i)){let e={v:i,n:this.norm.get(i)};n.$[t]=e}}}return n}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function Io(e,t,{getFn:n=$.getFn,fieldNormWeight:r=$.fieldNormWeight}={}){let i=new Fo({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(To)),i.setSources(t),i.create(),i}function Lo(e,{getFn:t=$.getFn,fieldNormWeight:n=$.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new Fo({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function Ro(e=[],t=$.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}function zo(e,t,n,{location:r=$.location,distance:i=$.distance,threshold:a=$.threshold,findAllMatches:o=$.findAllMatches,minMatchCharLength:s=$.minMatchCharLength,includeMatches:c=$.includeMatches,ignoreLocation:l=$.ignoreLocation}={}){if(t.length>32)throw Error(yo(32));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},g=s>1||c,_=g?Array(d):[],v;for(;(v=e.indexOf(t,m))>-1;){let e=h(0,v);if(p=Math.min(e,p),m=v+u,g){let e=0;for(;e<u;)_[v+e]=1,e+=1}}m=-1;let y=[],b=1,x=0,S=u+d,C=1<<u-1;for(let t=0;t<u;t+=1){let r=0,i=S;for(;r<i;)h(t,f+i)<=p?r=i:S=i,i=Math.floor((S-r)/2+r);S=i;let a=Math.max(1,f-i+1),s=o?d:Math.min(f+i,d)+u,c=Array(s+2);c[s+1]=(1<<t)-1;for(let r=s;r>=a;--r){let i=r-1,o=n[e[i]];if(c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),c[r]&C&&(b=h(t,i),b<=p)){if(p=b,m=i,x=t,m<=f)break;a=Math.max(1,2*f-m)}}if(h(t+1,f)>p)break;y=c}if(g&&m>=0){let t=Math.min(d-1,m+u-1+x);for(let r=m;r<=t;r+=1)n[e[r]]&&(_[r]=1)}let w={isMatch:m>=0,score:Math.max(.001,b)};if(g){let e=Ro(_,s);e.length?c&&(w.indices=e):w.isMatch=!1}return w}function Bo(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function Vo(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){let r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}var Ho={ł:`l`,Ł:`L`,đ:`d`,Đ:`D`,ø:`o`,Ø:`O`,ħ:`h`,Ħ:`H`,ŧ:`t`,Ŧ:`T`,ı:`i`,ß:`ss`},Uo=RegExp(`[`+Object.keys(Ho).join(``)+`]`,`g`),Wo=typeof String.prototype.normalize==`function`?e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(Uo,e=>Ho[e]):e=>e,Go=class{constructor(e,{location:t=$.location,threshold:n=$.threshold,distance:r=$.distance,includeMatches:i=$.includeMatches,findAllMatches:a=$.findAllMatches,minMatchCharLength:o=$.minMatchCharLength,isCaseSensitive:s=$.isCaseSensitive,ignoreDiacritics:c=$.ignoreDiacritics,ignoreLocation:l=$.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?Wo(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:Bo(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0,t=d%32,n=d-t;for(;e<n;)u(this.pattern.substr(e,32),e),e+=32;if(t){let e=d-32;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?Wo(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=zo(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=Vo(u)),p}},Ko=[];function qo(...e){Ko.push(...e)}function Jo(e,t){for(let n=0,r=Ko.length;n<r;n+=1){let r=Ko[n];if(r.condition(e,t))return new r(e,t)}return new Go(e,t)}var Yo={AND:`$and`,OR:`$or`},Xo={PATH:`$path`,PATTERN:`$val`},Zo=e=>!!(e[Yo.AND]||e[Yo.OR]),Qo=e=>!!e[Xo.PATH],$o=e=>!ro(e)&&co(e)&&!Zo(e),es=e=>({[Yo.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function ts(e,t,{auto:n=!0}={}){let r=e=>{if(Z(e)){let r={keyId:null,pattern:e};return n&&(r.searcher=Jo(e,t)),r}let i=Object.keys(e),a=Qo(e);if(!a&&i.length>1&&!Zo(e))return r(es(e));if($o(e)){let r=a?e[Xo.PATH]:i[0],o=a?e[Xo.PATTERN]:e[r];if(!Z(o))throw Error(vo(r));let s={keyId:Do(r),pattern:o};return n&&(s.searcher=Jo(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];ro(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return Zo(e)||(e=es(e)),r(e)}function ns(e,{ignoreFieldNorm:t=$.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),n}function rs(e,{ignoreFieldNorm:t=$.ignoreFieldNorm}){e.forEach(e=>{e.score=ns(e.matches,{ignoreFieldNorm:t})})}var is=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):this.comparator(e,this.heap[0])<0&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(){return this.heap.sort(this.comparator)}_bubbleUp(e){let t=this.heap;for(;e>0;){let n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{e=r;let i=2*e+1,a=2*e+2;if(i<n&&this.comparator(t[i],t[r])>0&&(r=i),a<n&&this.comparator(t[a],t[r])>0&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function as(e){let t=[];return e.matches.forEach(e=>{if(!Q(e.indices)||!e.indices.length)return;let n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.id),e.idx>-1&&(n.refIndex=e.idx),t.push(n)}),t}function os(e,t,{includeMatches:n=$.includeMatches,includeScore:r=$.includeScore}={}){return e.map(e=>{let{idx:i}=e,a={item:t[i],refIndex:i};return n&&(a.matches=as(e)),r&&(a.score=e.score),a})}var ss=/[\p{L}\p{M}\p{N}_]+/gu,cs=new WeakSet;function ls(e){cs.has(e)||(cs.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function us(e){if(typeof e==`function`){let t=!1;return n=>{let r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(e=>typeof e!=`string`)))throw Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?`array containing non-strings`:typeof r}.`);return r}}return e instanceof RegExp?(e.global||ls(e),t=>t.match(e)||[]):e=>e.match(ss)||[]}function ds({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){let r=us(n);return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=Wo(n)),r(n)}}}function fs(e,t,n,r){let i=r.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);let a=new Set(i),o=e.docTermFieldHits.get(n);o||(o=new Map,e.docTermFieldHits.set(n,o));for(let t of a)o.set(t,(o.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function ps(e,t,n,r){let{i,v:a,$:o}=t;if(a!==void 0){fs(e,a,i,r);return}if(o)for(let t=0;t<n;t++){let n=o[t];if(n){if(Array.isArray(n))for(let t of n)fs(e,t.v,i,r);else fs(e,n.v,i,r)}}}function ms(e,t,n){let r={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(let i of e)ps(r,i,t,n);return r}function hs(e,t,n,r){ps(e,t,n,r)}function gs(e,t){let n=e.docFieldCount.get(t);if(n===void 0)return;e.fieldCount-=n,e.docFieldCount.delete(t);let r=e.docTermFieldHits.get(t);if(r){for(let[t,n]of r){let r=(e.df.get(t)||0)-n;r<=0?e.df.delete(t):e.df.set(t,r)}e.docTermFieldHits.delete(t)}}function _s(e,t){if(t.length===0)return;let n=Array.from(new Set(t)).sort((e,t)=>e-t);for(let t of n)gs(e,t);let r=e=>{let t=0,r=n.length;for(;t<r;){let i=t+r>>>1;n[i]<e?t=i+1:r=i}return e-t},i=n[0],a=new Map;for(let[t,n]of e.docFieldCount)a.set(t>i?r(t):t,n);e.docFieldCount=a;let o=new Map;for(let[t,n]of e.docTermFieldHits)o.set(t>i?r(t):t,n);e.docTermFieldHits=o}var vs=class{constructor(e,t,n){if(this.options={...$,...t},this.options.useExtendedSearch)throw Error(po);if(this.options.useTokenSearch)throw Error(ho);this._keyStore=new wo(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=Jo(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Fo))throw Error(go);if(this._myIndex=t||Io(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=ds({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=ms(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!Q(e))return;this._docs.push(e);let t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){let e=ds({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});hs(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){this._invertedIndex&&_s(this._invertedIndex,n);let e=new Set(n);this._docs=this._docs.filter((t,n)=>!e.has(n)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw Error(_o);this._invertedIndex&&_s(this._invertedIndex,[e]);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){let{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options;if(Z(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return oo(n)&&n>-1&&(e=e.slice(0,n)),e}let c=a&&oo(n)&&n>0&&Z(e),l=o,u=(e,t)=>l(e,t)||e.idx-t.idx,d;if(c){let t=new is(n,u);Z(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),d=t.extractSorted()}else d=Z(e)?Z(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),rs(d,{ignoreFieldNorm:s}),a&&d.sort(Z(e)?u:l),oo(n)&&n>-1&&(d=d.slice(0,n));return os(d,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=t?null:[];return a.forEach(({v:e,i:a,n:s})=>{if(!Q(e))return;let c=r.searchIn(e);if(c.isMatch){let r={score:c.score,value:e,norm:s,indices:c.indices};i&&(r.matchedMask=c.matchedMask,r.matchedTerms=c.matchedTerms,r.termCount=c.termCount);let l=[r];if(!i||this._coversAllTokens(l)){let r={item:e,idx:a,matches:l};t?(r.score=ns(r.matches,{ignoreFieldNorm:n}),t.insert(r)):o.push(r)}}}),o}_searchLogical(e){throw Error(mo)}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=this._normalizedKeys(),s=t?null:[];return a.forEach(({$:e,i:a})=>{if(!Q(e))return;let c=[],l=!1,u=!1;if(o.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(c.push(...i),i[0].hasInverse&&(u=!0)):l=!0}),!(u&&l)&&c.length&&(!i||this._coversAllTokens(c))){let r={idx:a,item:e,matches:c};t?(r.score=ns(r.matches,{ignoreFieldNorm:n}),t.insert(r)):s.push(r)}}),s}_findMatches({key:e,value:t,searcher:n}){if(!Q(t))return[];let r=[];if(ro(t))t.forEach(({v:t,i,n:a})=>{if(!Q(t))return;let o=n.searchIn(t);if(o.isMatch){let n={score:o.score,key:e,value:t,idx:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(n.matchedMask=o.matchedMask,n.matchedTerms=o.matchedTerms,n.termCount=o.termCount),r.push(n)}});else{let{v:i,n:a}=t,o=n.searchIn(i);if(o.isMatch){let t={score:o.score,key:e,value:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(t.matchedMask=o.matchedMask,t.matchedTerms=o.matchedTerms,t.termCount=o.termCount),r.push(t)}}return r}_coversAllTokens(e){let t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=31){let n=0;for(let t=0;t<e.length;t++)n|=e[t].matchedMask||0;return n===2**t-1}let n=new Set;for(let t=0;t<e.length;t++){let r=e[t].matchedTerms;if(r)for(let e of r)n.add(e)}return n.size===t}};vs.version=`7.5.0`,vs.createIndex=Io,vs.parseIndex=Lo,vs.config=$,vs.match=function(e,t,n){if(n&&n.useTokenSearch)throw Error(So);return Jo(e,{...$,...n}).searchIn(t)},vs.parseQuery=ts,vs.use=function(...e){e.forEach(e=>qo(e))};var ys=vs,bs=[[`Application API`,`application`],[`Composition API: Setup`,`composition-api-setup`],[`Composition API: Lifecycle Hooks`,`composition-api-lifecycle`],[`Composition API: Dependency Injection`,`composition-api-dependency-injection`],[`Reactivity API: Core`,`reactivity-core`],[`Reactivity API: Utilities`,`reactivity-utilities`],[`Reactivity API: Advanced`,`reactivity-advanced`],[`Built-in Directives`,`built-in-directives`],[`Built-in Components`,`built-in-components`],[`Built-in Special Elements`,`built-in-special-elements`],[`Built-in Special Attributes`,`built-in-special-attributes`],[`Single-File Component: script setup`,`sfc-script-setup`],[`Single-File Component: CSS Features`,`sfc-css-features`],[`Render Function APIs`,`render-function`],[`Server-Side Rendering API`,`ssr`],[`TypeScript Utility Types`,`utility-types`],[`Custom Renderer API`,`custom-renderer`]];function xs(){return bs.map(([e,t])=>({id:`documentation:vue:${t}`,title:e,description:`vuejs.org/api/${t}`,group:`Documentation`,icon:Ss(t),keywords:[`vue`,`docs`,`api`,t],action:()=>{window.open(`https://vuejs.org/api/${t}.html`,`_blank`,`noopener,noreferrer`)}}))}function Ss(e){return e===`utility-types`?`i-carbon-language`:e===`ssr`||e===`custom-renderer`?`i-carbon-server-proxy`:e.includes(`css`)?`i-carbon-color-palette`:`i-logos-vue`}function Cs(e){let t=Ti(),{clearTimelineEvents:n,inspectComponentInPage:r,timelineRecording:i,toggleTimelineRecording:a}=oe();return D(()=>[...e.tabs.value.flatMap(e=>e.path?[{id:`navigate:${e.id}`,title:`Open ${e.title}`,description:e.description,group:`Navigation`,icon:e.icon,keywords:[`tab`,e.id],action:async()=>{await t.push(e.path)}}]:[]),{id:`components:inspect`,title:`Inspect Component`,description:`Select a component from the page`,group:`Actions`,icon:`i-carbon-select-window`,keywords:[`locator`,`picker`],action:async()=>{await r()}},{id:`timeline:toggle-recording`,title:i.value?`Stop Timeline Recording`:`Start Timeline Recording`,group:`Actions`,icon:i.value?`i-carbon-stop-filled`:`i-carbon-play-filled`,keywords:[`timeline`,`record`],action:a},{id:`timeline:clear`,title:`Clear Timeline`,group:`Actions`,icon:`i-carbon-trash-can`,keywords:[`timeline`,`events`],action:n},{id:`documentation:vue`,title:`Vue Documentation`,group:`Documentation`,icon:`i-logos-vue`,keywords:[`docs`,`guide`,`api`],action:xs}])}function ws(e,t){let n=t.trim().toLowerCase().split(/\s+/).filter(Boolean);return n.length?new ys(e,{keys:[{name:`title`,weight:.55},{name:`keywords`,weight:.2},{name:`description`,weight:.15},{name:`group`,weight:.1}],threshold:.38,ignoreLocation:!0}).search(n.join(` `)).map(({item:e})=>e):[...e]}function Ts(e){let n=k(),r=k(),a=k(``),o=k(0),s=k(),c=k(),l=k([]),u=D(()=>l.value[l.value.length-1]?.commands??T(e)),f=D(()=>ws(u.value,a.value)),p=D(()=>l.value.length>0),m=D(()=>l.value.map(e=>e.parent.title)),h=D(()=>{let e=new Map;for(let t of f.value){let n=e.get(t.group)??[];n.push(t),e.set(t.group,n)}return[...e]}),g=D(()=>{let e=f.value[o.value];return e?Es(e.id):void 0});d([a,()=>T(e)],()=>{o.value=0}),t(()=>{window.addEventListener(`keydown`,b,{capture:!0})}),se(()=>{window.removeEventListener(`keydown`,b,{capture:!0}),n.value?.open&&n.value.close()});async function _(){a.value=``,o.value=0,c.value=void 0,l.value=[],n.value?.open||n.value?.showModal(),await i(),r.value?.focus()}function v(){s.value||n.value?.open&&n.value.close()}function y(){n.value?.open?v():_()}function b(e){if(e.key.toLowerCase()===`k`&&!e.shiftKey&&(e.metaKey||e.ctrlKey||e.altKey)){e.preventDefault(),e.stopPropagation(),y();return}if(n.value?.open){if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),x(e.key===`ArrowDown`?1:-1);return}if(e.key===`Enter`){let t=f.value[o.value];if(!t)return;e.preventDefault(),S(t)}}}function x(e){let t=f.value.length;t&&(o.value=(o.value+e+t)%t,i(()=>{n.value?.querySelector(`[data-command-index="${o.value}"]`)?.scrollIntoView({block:`nearest`})}))}async function S(e){if(!s.value){s.value=e.id,c.value=void 0;try{let t=await e.action();if(s.value=void 0,t){l.value=[...l.value,{parent:e,commands:t}],a.value=``,o.value=0,await i(),r.value?.focus();return}v()}catch(e){c.value=e instanceof Error?e.message:String(e),s.value=void 0}}}function C(e){e.preventDefault(),p.value?E():v()}function w(e){e.target===n.value&&v()}function E(){p.value&&!s.value&&(l.value=l.value.slice(0,-1),a.value=``,o.value=0,c.value=void 0,i(()=>r.value?.focus()))}return{activeDescendant:g,nested:p,commandElementId:Es,commandError:c,commandPath:m,dialog:n,filteredCommands:f,groupedCommands:h,goBack:E,onCancel:C,onDialogClick:w,runCommand:S,runningCommandId:s,search:a,searchInput:r,selectedIndex:o}}function Es(e){return`command-palette-${e.replace(/[^a-z0-9_-]/gi,`-`)}`}var Ds={class:`max-h-[min(70vh,38rem)] flex flex-col`},Os={class:`border-b border-base px-4 py-3 flex items-center gap-3`},ks={key:1,class:`i-carbon-search shrink-0 text-lg color-muted`,"aria-hidden":`true`},As=[`aria-activedescendant`],js={key:0,class:`border-b border-base px-4 py-2 text-xs color-muted flex items-center gap-1`},Ms={class:`color-base`},Ns={id:`command-palette-list`,class:`min-h-30 flex-auto overflow-auto p-2`,role:`listbox`},Ps={class:`m-0 px-2 py-1 text-11px font-600 tracking-wide color-muted uppercase`},Fs=[`id`,`data-command-index`,`aria-busy`,`aria-selected`,`onClick`,`onPointerenter`],Is={class:`min-w-0 flex-auto`},Ls={class:`block truncate`},Rs={key:0,class:`block truncate text-xs color-muted`},zs={key:0,class:`i-carbon-circle-dash shrink-0 animate-spin color-muted`,"aria-label":`Running`},Bs={key:1,class:`i-carbon-return shrink-0 color-muted`,"aria-hidden":`true`},Vs={key:1,class:`min-h-28 color-muted flex items-center justify-center`},Hs={key:1,class:`border-t border-base bg-red-500/8 px-4 py-2 text-sm text-red-600 dark:text-red-300`,role:`alert`},Us=ve(E({__name:`CommandPalette`,props:{commands:{}},setup(e){let{activeDescendant:t,nested:n,commandElementId:r,commandError:i,commandPath:o,dialog:s,filteredCommands:c,groupedCommands:u,goBack:d,onCancel:f,onDialogClick:m,runCommand:h,runningCommandId:g,search:_,searchInput:v,selectedIndex:y}=Ts(ge(e,`commands`));return(e,b)=>(p(),j(`dialog`,{ref_key:`dialog`,ref:s,class:`command-palette max-h-[min(70vh,38rem)] max-w-[calc(100vw-2rem)] w-160 overflow-hidden border border-base rounded-2 bg-base p-0 color-base shadow-2xl`,"aria-label":`Vue DevTools command palette`,onCancel:b[2]||=(...e)=>F(f)&&F(f)(...e),onClick:b[3]||=(...e)=>F(m)&&F(m)(...e)},[A(`div`,Ds,[A(`div`,Os,[F(n)?(p(),j(`button`,{key:0,class:`h-7 w-7 shrink-0 border-0 rounded-1 bg-transparent color-muted flex items-center justify-center hover:bg-active hover:color-base`,type:`button`,"aria-label":`Back to previous commands`,onClick:b[0]||=(...e)=>F(d)&&F(d)(...e)},[...b[4]||=[A(`span`,{class:`i-carbon-arrow-left`,"aria-hidden":`true`},null,-1)]])):(p(),j(`span`,ks)),x(A(`input`,{ref_key:`searchInput`,ref:v,"onUpdate:modelValue":b[1]||=e=>S(_)?_.value=e:null,class:`min-w-0 flex-auto border-0 bg-transparent color-base text-base outline-none`,type:`search`,role:`combobox`,"aria-autocomplete":`list`,"aria-controls":`command-palette-list`,"aria-activedescendant":F(t),"aria-expanded":`true`,placeholder:`Type a command...`},null,8,As),[[_t,F(_)]]),b[5]||=A(`kbd`,{class:`rounded-1 border border-base bg-active px-1.5 py-0.5 text-xs color-muted`},` Esc `,-1)]),F(n)?(p(),j(`div`,js,[b[7]||=A(`span`,null,`Commands`,-1),(p(!0),j(M,null,l(F(o),e=>(p(),j(M,{key:e},[b[6]||=A(`span`,{"aria-hidden":`true`},`/`,-1),A(`span`,Ms,a(e),1)],64))),128))])):N(``,!0),A(`div`,Ns,[F(c).length?(p(!0),j(M,{key:0},l(F(u),([e,t])=>(p(),j(`section`,{key:e,class:`mb-2 last:mb-0`},[A(`h2`,Ps,a(e),1),(p(!0),j(M,null,l(t,e=>(p(),j(`button`,{id:F(r)(e.id),key:e.id,class:I([`w-full border-0 rounded-1 bg-transparent px-2 py-2 color-base flex items-center gap-3 text-left hover:bg-active`,F(c).indexOf(e)===F(y)?`bg-active`:``]),"data-command-index":F(c).indexOf(e),role:`option`,type:`button`,"aria-busy":F(g)===e.id,"aria-selected":F(c).indexOf(e)===F(y),onClick:t=>F(h)(e),onPointerenter:t=>y.value=F(c).indexOf(e)},[A(`span`,{class:I([e.icon,`shrink-0 text-lg`]),"aria-hidden":`true`},null,2),A(`span`,Is,[A(`span`,Ls,a(e.title),1),e.description?(p(),j(`span`,Rs,a(e.description),1)):N(``,!0)]),F(g)===e.id?(p(),j(`span`,zs)):(p(),j(`span`,Bs))],42,Fs))),128))]))),128)):(p(),j(`div`,Vs,` No matching commands `))]),F(i)?(p(),j(`div`,Hs,a(F(i)),1)):N(``,!0),b[8]||=A(`footer`,{class:`border-t border-base px-4 py-2 text-xs color-muted flex items-center gap-3`},[A(`span`,null,[A(`kbd`,null,`↑`),A(`kbd`,null,`↓`),Se(` Navigate`)]),A(`span`,null,[A(`kbd`,null,`Enter`),Se(` Run`)]),A(`span`,null,[A(`kbd`,null,`Esc`),Se(` Close`)])],-1)])],544))}}),[[`__scopeId`,`data-v-3eab9098`]]),Ws=`vite-devtools-color-scheme`;function Gs(){let e=k(!1),n,r;function i(t,n={}){e.value=t===`dark`,document.documentElement.classList.toggle(`dark`,e.value),document.documentElement.classList.toggle(`light`,!e.value),n.persist&&Js(t)}function a(e){i(e?`dark`:`light`,{persist:!0})}function o(){i(Ks())}function s(){qs()||Ys()||o()}function c(e){e.key===Ws&&o()}return t(()=>{o(),n=window.matchMedia(`(prefers-color-scheme: dark)`),n.addEventListener(`change`,s),window.addEventListener(`storage`,c),r=Zs(o)}),se(()=>{n?.removeEventListener(`change`,s),window.removeEventListener(`storage`,c),r?.disconnect()}),{dark:e,setDarkMode:a,syncColorMode:o}}function Ks(){return qs()??Ys()??Xs()}function qs(){try{let e=window.localStorage.getItem(Ws);return $s(e)?e:void 0}catch{return}}function Js(e){try{window.localStorage.setItem(Ws,e)}catch{}}function Ys(){let e=Qs();if(e)for(let t of[e.documentElement,e.body]){if(!t)continue;if(t.classList.contains(`dark`))return`dark`;if(t.classList.contains(`light`))return`light`;let e=t.getAttribute(`data-theme`);if($s(e))return e}}function Xs(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Zs(e){let t=Qs();if(!t||typeof MutationObserver>`u`)return;let n=new MutationObserver(e);for(let e of[t.documentElement,t.body])e&&n.observe(e,{attributes:!0,attributeFilter:[`class`,`data-theme`]});return n}function Qs(){if(window.parent!==window)try{return window.parent.document}catch{return}}function $s(e){return e===`dark`||e===`light`}var ec={class:`bg-base color-base`},tc={class:`flex gap-2 border-b border-base px-3 py-2`},nc={class:`flex gap-2 px-3 py-2`},rc=[`value`],ic=E({__name:`DockingPanel`,setup(e){let{apps:t,selectApp:n,selectedAppId:r}=oe(),{dark:i,setDarkMode:o}=Gs(),{settings:s}=w(),c=D({get:()=>s.expandSidebar,set:e=>{s.expandSidebar=e}}),d=D({get:()=>r.value??``,set:e=>{e&&n(e)}});function f(){window.location.reload()}return(e,n)=>(p(),j(`div`,ec,[A(`div`,tc,[A(`button`,{class:`settings-button text-primary-700 dark:text-primary-300`,type:`button`,onClick:n[0]||=e=>F(o)(!F(i))},[A(`span`,{class:I(F(i)?`i-carbon-moon`:`i-carbon-sun`),"aria-hidden":`true`},null,2),Se(` `+a(F(i)?`Dark`:`Light`),1)]),A(`button`,{class:`settings-button text-primary-700 dark:text-primary-300`,type:`button`,onClick:n[1]||=e=>c.value=!c.value},[A(`span`,{class:I(c.value?`i-carbon-side-panel-close`:`i-carbon-side-panel-open`),"aria-hidden":`true`},null,2),Se(` `+a(c.value?`Minimize Sidebar`:`Expand Sidebar`),1)]),L(F(Ja),{class:`settings-button settings-button-primary no-underline`,to:`/settings`},{default:u(()=>[...n[3]||=[A(`span`,{class:`i-carbon-settings-adjust`,"aria-hidden":`true`},null,-1),Se(` Settings `,-1)]]),_:1})]),A(`div`,nc,[F(t).length>1?x((p(),j(`select`,{key:0,"onUpdate:modelValue":n[2]||=e=>d.value=e,class:`settings-select min-w-44`,"aria-label":`Toggle app`},[(p(!0),j(M,null,l(F(t),e=>(p(),j(`option`,{key:e.id,value:e.id},a(e.name)+a(e.version?` (${e.version})`:``),9,rc))),128))],512)),[[bt,d.value]]):N(``,!0),A(`button`,{class:`settings-button`,type:`button`,onClick:f},[...n[4]||=[A(`span`,{class:`i-carbon-renew`,"aria-hidden":`true`},null,-1),Se(` Refresh Page `,-1)]])])]))}}),ac=`custom-ic-`,oc=/^(?:baseline|outline|round|sharp|twotone)-/;function sc(e){return!!e&&e.startsWith(`i-`)}function cc(e){return!!e&&/^(?:https?:|data:image\/|blob:)/.test(e)}function lc(e){if(!e||sc(e)||cc(e))return;let t=e.trim();if(t)return(t.startsWith(ac)?t.slice(10):t).replace(oc,``).replace(/-/g,`_`)}var uc=[`src`,`alt`,`title`],dc=[`title`],fc=[`title`],pc=E({inheritAttrs:!1,__name:`DevtoolsIcon`,props:{icon:{default:void 0},fallback:{default:`i-carbon-play`},title:{default:void 0}},setup(e){let t=e,n=D(()=>t.icon||t.fallback),r=D(()=>cc(n.value)?n.value:void 0),i=D(()=>lc(n.value)),s=D(()=>{if(!(r.value||i.value))return sc(n.value)?n.value:t.fallback});return(t,n)=>r.value?(p(),j(`img`,o({key:0},t.$attrs,{src:r.value,alt:e.title??``,title:e.title,"aria-hidden":`true`}),null,16,uc)):i.value?(p(),j(`span`,o({key:1},t.$attrs,{class:`material-icons`,title:e.title,"aria-hidden":`true`}),a(i.value),17,dc)):(p(),j(`span`,o({key:2},t.$attrs,{class:s.value,title:e.title,"aria-hidden":`true`}),null,16,fc))}}),mc=E({__name:`TabIcon`,props:{icon:{}},setup(e){return(t,n)=>(p(),fe(pc,{class:`tab-icon`,icon:e.icon,fallback:`i-carbon-bring-forward`},null,8,[`icon`]))}}),hc=[`href`,`aria-label`,`aria-current`,`onClick`],gc={key:0,class:`min-w-0 truncate text-3.5 font-500`},_c=E({__name:`SideNavItem`,props:{tab:{},active:{type:Boolean},expanded:{type:Boolean}},setup(e){let t=e,n=D(()=>({content:t.tab.title,disabled:t.expanded})),r=D(()=>t.tab.path??`/${t.tab.id}`);return(t,i)=>{let o=De(`tooltip`);return p(),fe(F(Ja),{to:r.value,custom:``},{default:u(({href:t,navigate:r})=>[x((p(),j(`a`,{class:I([`side-nav-item no-underline`,{"side-nav-item-active":e.active,"side-nav-item-expanded":e.expanded}]),href:t,"aria-label":e.tab.title,"aria-current":e.active?`page`:void 0,onClick:r},[L(mc,{icon:e.tab.icon},null,8,[`icon`]),e.expanded?(p(),j(`span`,gc,a(e.tab.title),1)):N(``,!0)],10,hc)),[[o,n.value,void 0,{right:!0}]])]),_:1},8,[`to`])}}}),vc={class:`side-nav`},yc={class:`side-nav-brand`},bc={key:0,class:`min-w-0 truncate text-lg font-650`},xc={key:1,class:`flex-auto`},Sc={key:2,class:`i-carbon-overflow-menu-vertical color-muted text-4`,"aria-hidden":`true`},Cc=E({__name:`SideNav`,props:{activeTab:{},tabs:{},systemTabs:{},connected:{type:Boolean}},setup(e){let{settings:t}=w(),n=D(()=>t.expandSidebar),r=D(()=>t.scrollableSidebar);return(t,i)=>{let a=De(`tooltip`);return p(),j(`aside`,vc,[A(`div`,yc,[L(F(ui),{class:`h-full w-full`,placement:`left-start`,distance:6,skidding:5,triggers:[`click`]},{popper:u(()=>[L(ic)]),default:u(()=>[x((p(),j(`button`,{class:I([`relative h-10 w-full box-border select-none flex items-center justify-center gap-2 border-0 bg-transparent p-2 color-muted hover:bg-active hover:color-base`,n.value?`rounded pl-2.5`:`rounded-xl`]),type:`button`,"aria-label":`DevTools menu`},[i[0]||=A(`span`,{class:`i-logos-vue h-6 w-6 shrink-0`,"aria-hidden":`true`},null,-1),n.value?(p(),j(`span`,bc,` DevTools `)):N(``,!0),n.value?(p(),j(`span`,xc)):N(``,!0),n.value?(p(),j(`span`,Sc)):N(``,!0),A(`span`,{class:I([`absolute bottom-2 right-2 h-2 w-2 rounded-full`,e.connected?`bg-emerald-500`:`bg-amber-500`])},null,2)],2)),[[a,{content:`DevTools menu`,disabled:n.value},void 0,{right:!0}]])]),_:1})]),A(`nav`,{class:I([`no-scrollbar min-h-0 box-border flex flex-auto flex-col overflow-x-hidden py-2`,[n.value?`items-stretch px-1.5`:`items-center px-1.5`,r.value?`overflow-y-auto`:`overflow-y-hidden`]]),"aria-label":`Devtools panels`},[(p(!0),j(M,null,l(e.tabs,t=>(p(),fe(_c,{key:t.id,tab:t,active:e.activeTab===t.id,expanded:n.value},null,8,[`tab`,`active`,`expanded`]))),128))],2),A(`div`,{class:I([`w-full box-border shrink-0 border-t border-base bg-subtle flex flex-col p-1`,n.value?`items-stretch`:`items-center`])},[(p(!0),j(M,null,l(e.systemTabs,t=>(p(),fe(_c,{key:t.id,tab:t,active:e.activeTab===t.id,expanded:n.value},null,8,[`tab`,`active`,`expanded`]))),128))],2)])}}}),wc=[{id:`overview`,title:`Overview`,icon:`i-carbon-information`,order:-100,description:`Detected Vue apps and runtime status`,path:`/overview`},{id:`components`,title:`Components`,icon:`i-carbon-assembly-cluster`,order:-90,description:`Component tree snapshot for the active app`,path:`/components`},{id:`pages`,title:`Pages`,icon:`i-carbon-tree-view-alt`,order:-80,description:`Page and route records`,path:`/pages`},{id:`graph`,title:`Reactivity Graph`,icon:`i-carbon-network-4`,order:-85,description:`Dependency graph and relationships`,path:`/graph`},{id:`timeline`,title:`Timeline`,icon:`i-carbon-roadmap`,order:-70,description:`Runtime events emitted by the current host`,path:`/timeline`},{id:`plugins`,title:`Plugins`,icon:`i-carbon-plug`,order:-30,description:`Devtools plugin compatibility surface`,path:`/plugins`},{id:`settings`,title:`Settings`,icon:`i-carbon-settings-adjust`,order:100,description:`Client preferences and host status`,path:`/settings`}],Tc=new Set(wc.map(e=>e.id));function Ec(e,t){let n=t.find(e=>e.packageName===`vue-router`);return e.find(e=>Dc(e.id)&&e.pluginId===n?.id)??e.find(e=>Dc(e.id))}function Dc(e){return e.startsWith(`router-inspector`)}function Oc(e){return Tc.has(e.id)}function kc(e,t){return Tc.has(e.id)||e.packageName!=null&&Tc.has(e.packageName)?!0:t.some(t=>t.pluginId===e.id&&Oc(t))}function Ac(e,t){let n=t.find(t=>t.id===e);return n?.label||n?.packageName||e||`unknown plugin`}function jc(){let{inspectors:e,plugins:t,reactivityGraphEnabled:n}=oe(),{settings:r}=w(),i=D(()=>Ec(e.value,t.value)),a=D(()=>{let r=e.value.filter(e=>(!Dc(e.id)||e.id===i.value?.id)&&!Oc(e));return[...wc.flatMap(e=>Nc(e,{reactivityGraphEnabled:n.value})),...r.map((e,n)=>Pc(e,n,t.value))].sort((e,t)=>e.order-t.order||e.title.localeCompare(t.title))}),o=D(()=>a.value.filter(e=>e.id!==`settings`));return{categorizedTabs:D(()=>Ic(o.value,r.tabSettings)),configurableTabs:o,tabs:a}}function Mc(e){let{categorizedTabs:t,tabs:n}=jc();return{tabs:n,mainTabs:D(()=>t.value.flatMap(([e,t])=>e.hidden?[]:t.filter(e=>!e.hidden))),systemTabs:D(()=>n.value.filter(e=>e.id===`settings`)),activeTabMeta:D(()=>n.value.find(t=>t.id===e.value)??n.value[0])}}function Nc(e,t){return e.id===`graph`&&!t.reactivityGraphEnabled?[]:[e]}function Pc(e,t,n){return Dc(e.id)?{id:`router`,title:`Router`,icon:`i-ri-route-line`,order:-50,description:`Vue Router custom inspector data`,path:Fc(e.id)}:e.id===`pinia`?{id:`pinia`,title:`Pinia`,icon:`i-logos-pinia`,order:-40,description:`Pinia store custom inspector data`,path:Fc(e.id)}:{id:`inspector:${e.id}`,title:e.label,icon:e.icon??`i-carbon-plug`,order:-35+t/100,description:`Custom inspector from ${Ac(e.pluginId,n)}`,path:Fc(e.id)}}function Fc(e){return`/inspectors/${encodeURIComponent(e)}`}function Ic(e,t){let n=new Map([`pinned`,`app`,`modules`,`advanced`].map(e=>[e,[]]));for(let r of e){let e=t.pinnedTabs.includes(r.id)?`pinned`:Lc(r),i=t.hiddenTabCategories.includes(e)||t.hiddenTabs.includes(r.id);n.get(e)?.push({...r,hidden:i})}return(n.get(`pinned`)??[]).sort((e,n)=>t.pinnedTabs.indexOf(e.id)-t.pinnedTabs.indexOf(n.id)),Array.from(n.entries()).map(([e,n])=>[{name:e,hidden:t.hiddenTabCategories.includes(e)||n.length>0&&n.every(e=>e.hidden)},n])}function Lc(e){return[`overview`,`components`,`graph`,`pages`,`timeline`].includes(e.id)?`app`:`modules`}var Rc={class:`min-w-0 min-h-0 overflow-hidden`},zc=E({__name:`App`,setup(e){let n=Ei(),{connected:r}=oe(),{settings:i}=w(),a=D(()=>i.expandSidebar);Gs();let o=D(()=>{if(n.name===`custom-inspector`){let e=n.params.inspectorId;return e===`pinia`?`pinia`:typeof e==`string`&&Dc(e)?`router`:typeof e==`string`?`inspector:${e}`:`components`}let e=n.meta.tabId;return typeof e==`string`?e:`components`}),{mainTabs:s,systemTabs:c}=Mc(o),l=Cs({tabs:D(()=>[...s.value,...c.value])});return t(()=>{ue()}),se(()=>{he()}),me(()=>{document.documentElement.style.fontSize=`${i.scale*15}px`,document.documentElement.classList.toggle(`reduce-motion`,i.reduceMotion)}),(e,t)=>(p(),j(`main`,{class:I([`h-full bg-base color-base grid`,a.value?`grid-cols-[250px_1fr]`:`grid-cols-[52px_1fr]`])},[L(Cc,{"active-tab":o.value,tabs:F(s),"system-tabs":F(c),connected:F(r)},null,8,[`active-tab`,`tabs`,`system-tabs`,`connected`]),A(`div`,Rc,[L(F(to))]),L(Us,{commands:F(l)},null,8,[`commands`])],2))}}),Bc=no({history:wa(),routes:[{path:`/`,redirect:`/components`},{path:`/overview`,component:()=>P(()=>import(`./overview-DoJqxsjr.js`),__vite__mapDeps([0,1,2]),import.meta.url),meta:{tabId:`overview`}},{path:`/components`,component:()=>P(()=>import(`./components-DNv7Rrwe.js`),__vite__mapDeps([3,1,2,4,5,6,7,8,9,10,11]),import.meta.url),meta:{tabId:`components`}},{path:`/pages`,component:()=>P(()=>import(`./pages-CGMfqD7Z.js`),__vite__mapDeps([12,1,2,9,13]),import.meta.url),meta:{tabId:`pages`}},{path:`/timeline`,component:()=>P(()=>import(`./timeline-D2Qq6Gi0.js`),__vite__mapDeps([14,1,2,4,9,15]),import.meta.url),meta:{tabId:`timeline`}},{path:`/inspectors/:inspectorId`,name:`custom-inspector`,component:()=>P(()=>import(`./custom-inspector-Da_34cDJ.js`),__vite__mapDeps([16,1,2,4,5,6,7,8,9]),import.meta.url)},{path:`/plugins`,component:()=>P(()=>import(`./plugins-CiKZQpE4.js`),__vite__mapDeps([17,1,2,6,9,18]),import.meta.url),meta:{tabId:`plugins`}},{path:`/graph`,component:()=>P(()=>import(`./graph-C1luIbSW.js`),__vite__mapDeps([19,1,2,4,7,8,9,10]),import.meta.url),meta:{tabId:`graph`}},{path:`/settings`,component:()=>P(()=>import(`./settings-Ce4aDLyW.js`),__vite__mapDeps([20,1,2,6,21]),import.meta.url),meta:{tabId:`settings`}},{path:`/:pathMatch(.*)*`,redirect:`/components`}]});Nt({render:()=>n(zc),devtools:{hide:!0}}).directive(`tooltip`,li).use(Bc).mount(`#app`);export{Gs as a,ui as c,_t as d,kt as f,pc as i,vt as l,kc as n,Ei as o,Dt as p,mc as r,Ti as s,jc as t,bt as u};