@toa.io/extensions.introspection 1.0.0-alpha.306 → 1.0.0-alpha.307
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/transpiled/Composition.js +12 -2
- package/transpiled/Composition.js.map +1 -1
- package/ui/dist/_app/immutable/chunks/{BmMhn2QK.js → 2cMl4Q7X.js} +1 -1
- package/ui/dist/_app/immutable/chunks/{CB6qHsyu.js → BSpCQ_T2.js} +1 -1
- package/ui/dist/_app/immutable/chunks/{C7j91YQ-.js → Bz9y_Qt4.js} +2 -2
- package/ui/dist/_app/immutable/chunks/CnNGqUzH.js +1 -0
- package/ui/dist/_app/immutable/chunks/{K6eu_fpK.js → Cst06-jL.js} +1 -1
- package/ui/dist/_app/immutable/chunks/{CBoY9kBO.js → CuHo2gYU.js} +1 -1
- package/ui/dist/_app/immutable/chunks/{Cyx235dG.js → DVKqjwr0.js} +1 -1
- package/ui/dist/_app/immutable/chunks/{BYGx-tUu.js → DVtRwJ-b.js} +1 -1
- package/ui/dist/_app/immutable/chunks/DYLJQF2a.js +1 -0
- package/ui/dist/_app/immutable/entry/{app._nBtHSlX.js → app.Cveu8h7C.js} +2 -2
- package/ui/dist/_app/immutable/entry/start.DyO_9JwH.js +1 -0
- package/ui/dist/_app/immutable/nodes/{0.jrtR8xep.js → 0.D9z7gMyC.js} +1 -1
- package/ui/dist/_app/immutable/nodes/{1.DcxTn8Wv.js → 1.DSfSOv0P.js} +1 -1
- package/ui/dist/_app/immutable/nodes/{2.C0fg7g4t.js → 2.Ci-kXrZk.js} +1 -1
- package/ui/dist/_app/immutable/nodes/3.BNq-rSJ7.js +1 -0
- package/ui/dist/_app/immutable/nodes/4.BQkhi3Re.js +1 -0
- package/ui/dist/_app/immutable/nodes/{5.G5Augfai.js → 5.CUmJeyuJ.js} +1 -1
- package/ui/dist/_app/version.json +1 -1
- package/ui/dist/index.html +12 -12
- package/ui/dist/_app/immutable/chunks/CMJYA4Le.js +0 -1
- package/ui/dist/_app/immutable/chunks/X3sfW33Q.js +0 -1
- package/ui/dist/_app/immutable/entry/start.BIK196Vd.js +0 -1
- package/ui/dist/_app/immutable/nodes/3.PPZqOKXF.js +0 -1
- package/ui/dist/_app/immutable/nodes/4.DtCrZa9O.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,At as t,C as n,Ct as r,D as i,E as a,F as o,J as s,M as c,O as l,Ot as u,P as d,St as f,T as p,V as m,X as h,Y as g,_,_t as v,a as y,at as b,b as x,ct as S,d as C,dt as w,et as T,ft as E,h as D,i as O,j as k,k as A,kt as j,l as M,m as ee,mt as N,nt as P,o as F,p as te,rt as ne,s as I,st as L,tt as R,u as z,x as B,yt as V,z as H}from"./sTot5bBi.js";import"./CMJYA4Le.js";import"./xihTtKlq.js";import{F as U,N as W,r as re,t as ie}from"./C7j91YQ-.js";import{$ as ae,A as G,C as oe,E as se,G as ce,H as le,J as ue,K as de,O as K,Q as q,T as fe,V as pe,W as me,Y as he,Z as J,_t as ge,b as _e,c as ve,dt as ye,et as be,f as xe,g as Se,ht as Ce,j as we,k as Y,m as Te,mt as Ee,nt as De,p as Oe,pt as ke,q as X,rt as Ae,st as Z,t as je,tt as Q,u as Me,w as Ne}from"./BYGx-tUu.js";function Pe(e){return e!==null&&!(e instanceof Error)}var Fe=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ie(e,t){let n=y(t,Fe),r=[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`}]];U(e,F({name:`pause`},()=>n,{get iconNode(){return r}}))}function Le(e,t){return setTimeout(t,e)}var Re=1,ze=9,Be=11;function Ve(e){return ke(e)&&e.nodeType===Re&&typeof e.nodeName==`string`}function He(e){return ke(e)&&e.nodeType===ze}function Ue(e){return ke(e)&&e.constructor?.name===`VisualViewport`}function We(e){return ke(e)&&e.nodeType!==void 0}function Ge(e){return We(e)&&e.nodeType===Be&&`host`in e}function Ke(e,t){if(!e||!t||!Ve(e)||!Ve(t))return!1;let n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&Ge(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function qe(e){return He(e)?e:Ue(e)?e.document:e?.ownerDocument??document}function Je(e){return Ge(e)?Je(e.host):He(e)?e.defaultView??window:Ve(e)?e.ownerDocument?.defaultView??window:window}function Ye(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Xe=class{element;#e=S(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return m(this.#e)}set root(e){b(this.#e,e)}constructor(e){this.element=typeof e==`function`?Z(e):e}getDocument=()=>qe(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>Ye(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,t)=>this.getWindow().setTimeout(e,t);clearTimeout=e=>this.getWindow().clearTimeout(e)},Ze=typeof document<`u`,Qe=$e();function $e(){return Ze&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function et(e){return e instanceof HTMLElement}function tt(e){return e instanceof Element||e instanceof SVGElement}var nt=me({component:`dialog`,parts:[`content`,`trigger`,`overlay`,`title`,`description`,`close`,`cancel`,`action`]}),$=new q(`Dialog.Root | AlertDialog.Root`),rt=class e{static create(t){let n=$.getOr(null);return $.set(new e(t,n))}opts;#e=L(null);get triggerNode(){return m(this.#e)}set triggerNode(e){b(this.#e,e,!0)}#t=L(null);get contentNode(){return m(this.#t)}set contentNode(e){b(this.#t,e,!0)}#n=L(null);get overlayNode(){return m(this.#n)}set overlayNode(e){b(this.#n,e,!0)}#r=L(null);get descriptionNode(){return m(this.#r)}set descriptionNode(e){b(this.#r,e,!0)}#i=L(void 0);get contentId(){return m(this.#i)}set contentId(e){b(this.#i,e,!0)}#a=L(void 0);get titleId(){return m(this.#a)}set titleId(e){b(this.#a,e,!0)}#o=L(void 0);get triggerId(){return m(this.#o)}set triggerId(e){b(this.#o,e,!0)}#s=L(void 0);get descriptionId(){return m(this.#s)}set descriptionId(e){b(this.#s,e,!0)}#c=L(null);get cancelNode(){return m(this.#c)}set cancelNode(e){b(this.#c,e,!0)}#l=L(0);get nestedOpenCount(){return m(this.#l)}set nestedOpenCount(e){b(this.#l,e,!0)}depth;parent;contentPresence;overlayPresence;constructor(e,t){this.opts=e,this.parent=t,this.depth=t?t.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new we({ref:Z(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new we({ref:Z(()=>this.overlayNode),open:this.opts.open,enabled:!0}),J(()=>this.opts.open.current,e=>{this.parent&&(e?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),he(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=e=>nt.getAttr(e,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=S(()=>({"data-state":ce(this.opts.open.current)}));get sharedProps(){return m(this.#u)}set sharedProps(e){b(this.#u,e)}},it=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>{this.root.triggerNode=e,this.root.triggerId=e?.id}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleOpen()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleOpen())}#e=S(()=>({id:this.opts.id.current,"aria-haspopup":`dialog`,"aria-expanded":le(this.root.opts.open.current),"aria-controls":this.root.contentId,[this.root.getBitsAttr(`trigger`)]:``,onkeydown:this.onkeydown,onclick:this.onclick,disabled:this.opts.disabled.current?!0:void 0,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},at=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.titleId=this.opts.id.current,this.attachment=X(this.opts.ref),J.pre(()=>this.opts.id.current,e=>{this.root.titleId=e})}#e=S(()=>({id:this.opts.id.current,role:`heading`,"aria-level":this.opts.level.current,[this.root.getBitsAttr(`title`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},ot=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.descriptionId=this.opts.id.current,this.attachment=X(this.opts.ref,e=>{this.root.descriptionNode=e}),J.pre(()=>this.opts.id.current,e=>{this.root.descriptionId=e})}#e=S(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`description`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},st=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>{this.root.contentNode=e,this.root.contentId=e?.id})}#e=S(()=>({open:this.root.opts.open.current}));get snippetProps(){return m(this.#e)}set snippetProps(e){b(this.#e,e)}#t=S(()=>({id:this.opts.id.current,role:this.root.opts.variant.current===`alert-dialog`?`alertdialog`:`dialog`,"aria-modal":`true`,"aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr(`content`)]:``,style:{pointerEvents:`auto`,outline:this.root.opts.variant.current===`alert-dialog`?`none`:void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:`layout style`},tabindex:this.root.opts.variant.current===`alert-dialog`?-1:void 0,"data-nested-open":pe(this.root.nestedOpenCount>0),"data-nested":pe(this.root.parent!==null),...de(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return m(this.#t)}set props(e){b(this.#t,e)}get shouldRender(){return this.root.contentPresence.shouldRender}},ct=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>this.root.overlayNode=e)}#e=S(()=>({open:this.root.opts.open.current}));get snippetProps(){return m(this.#e)}set snippetProps(e){b(this.#e,e)}#t=S(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`overlay`)]:``,style:{pointerEvents:`auto`,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":pe(this.root.nestedOpenCount>0),"data-nested":pe(this.root.parent!==null),...de(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return m(this.#t)}set props(e){b(this.#t,e)}get shouldRender(){return this.root.overlayPresence.shouldRender}},lt=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>this.root.cancelNode=e),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleClose())}#e=S(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`cancel`)]:``,onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,disabled:this.opts.disabled.current,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}};function ut(n,i){r(i,!0);let a=O(i,`open`,15,!1),o=O(i,`onOpenChange`,3,G),s=O(i,`onOpenChangeComplete`,3,G);rt.create({variant:Z(()=>`alert-dialog`),open:Z(()=>a(),e=>{a(e),o()(e)}),onOpenChangeComplete:Z(()=>s())});var c=k(),l=R(c);B(l,()=>i.children??t),e(n,c),f()}var dt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`child`,`children`,`level`]),ft=c(`<div><!></div>`);function pt(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`level`,3,2),u=y(i,dt),p=at.create({id:Z(()=>s()),level:Z(()=>l()),ref:Z(()=>c(),e=>c(e))}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(h)})),e(t,n)},b=n=>{var r=ft();C(r,()=>({...m(h)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(_,e=>{i.child?e(v):e(b,-1)}),e(n,g),f()}var mt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`,`disabled`]),ht=c(`<button><!></button>`);function gt(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`disabled`,3,!1),u=y(i,mt),p=lt.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e)),disabled:Z(()=>!!l())}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(h)})),e(t,n)},b=n=>{var r=ht();C(r,()=>({...m(h)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(_,e=>{i.child?e(v):e(b,-1)}),e(n,g),f()}function _t(n,r){var i=k(),a=R(i);p(a,()=>r.children,n=>{var i=k(),a=R(i);B(a,()=>r.children??t),e(n,i)}),e(n,i)}var vt=new q(`BitsConfig`);function yt(){let e=new bt(null,{});return vt.getOr(e).opts}var bt=class{opts;constructor(e,t){let n=xt(e,t);this.opts={defaultPortalTo:n(e=>e.defaultPortalTo),defaultLocale:n(e=>e.defaultLocale)}}};function xt(e,t){return n=>Z(()=>{let r=n(t)?.current;if(r!==void 0)return r;if(e!==null)return n(e.opts)?.current})}function St(e,t){return n=>{let r=yt();return Z(()=>{let i=n();if(i!==void 0)return i;let a=e(r).current;return a===void 0?t:a})}}var Ct=St(e=>e.defaultPortalTo,`body`);function wt(n,o){r(o,!0);let s=Ct(()=>o.to),c=V(),l=S(u);function u(){if(!Ze||o.disabled)return null;let e=null;return e=typeof s.current==`string`?document.querySelector(s.current):s.current,e}let d;function p(){d&&=(A(d),null)}J([()=>m(l),()=>o.disabled],([e,t])=>{if(!e||t){p();return}return d=i(_t,{target:e,props:{children:o.children},context:c}),()=>{p()}});var h=k(),g=R(h),_=n=>{var r=k(),i=R(r);B(i,()=>o.children??t),e(n,r)};a(g,e=>{o.disabled&&e(_)}),e(n,h),f()}var Tt=class{eventName;options;constructor(e,t={bubbles:!0,cancelable:!0}){this.eventName=e,this.options=t}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,t){let n=this.createEvent(t);return e.dispatchEvent(n),n}listen(e,t,n){return H(e,this.eventName,e=>{t(e)},n)}};function Et(e,t=500){let n=null,r=(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function Dt(e,t){return e===t||e.contains(t)}function Ot(e){return e?.ownerDocument??document}function kt(e,t){let{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}var At=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],jt=At.join(`,`),Mt=typeof Element>`u`,Nt=Mt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Pt=!Mt&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},Ft=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):Ft(e.parentNode))},It=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},Lt=function(e,t,n){if(Ft(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(jt));return t&&Nt.call(e,jt)&&r.unshift(e),r=r.filter(n),r},Rt=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!Ft(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=Rt(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{Nt.call(a,jt)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!Ft(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=Rt(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},zt=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},Bt=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||It(e))&&!zt(e)?0:e.tabIndex},Vt=function(e,t){var n=Bt(e);return n<0&&t&&!zt(e)?0:n},Ht=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ut=function(e){return e.tagName===`INPUT`},Wt=function(e){return Ut(e)&&e.type===`hidden`},Gt=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},Kt=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},qt=function(e){if(!e.name)return!0;var t=e.form||Pt(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=Kt(r,e.form);return!i||i===e},Jt=function(e){return Ut(e)&&e.type===`radio`},Yt=function(e){return Jt(e)&&!qt(e)},Xt=function(e){var t=e&&Pt(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=Pt(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},Zt=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},Qt=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=Nt.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(Nt.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=Pt(e);if(s&&!s.shadowRoot&&r(s)===!0)return Zt(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(Xt(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return Zt(e);return!1},$t=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return Nt.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},en=function(e,t){return!(t.disabled||Wt(t)||Qt(t,e)||Gt(t)||$t(t))},tn=function(e,t){return!(Yt(t)||Bt(t)<0||!en(e,t))},nn=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},rn=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=Vt(a,i),s=i?rn(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(Ht).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},an=function(e,t){return t||={},rn(t.getShadowRoot?Rt([e],t.includeContainer,{filter:tn.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:nn}):Lt(e,t.includeContainer,tn.bind(null,t)))},on=function(e,t){return t||={},t.getShadowRoot?Rt([e],t.includeContainer,{filter:en.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Lt(e,t.includeContainer,en.bind(null,t))},sn=At.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),cn=function(e,t){if(t||={},!e)throw Error(`No node provided`);return Nt.call(e,sn)!==!1&&en(t,e)},ln=`data-context-menu-trigger`,un=`data-context-menu-content`;new q(`Menu.Root`),new q(`Menu.Root | Menu.Sub`),new q(`Menu.Content`),new q(`Menu.Group | Menu.RadioGroup`),new q(`Menu.RadioGroup`),new q(`Menu.CheckboxGroup`),new Tt(`bitsmenuopen`,{bubbles:!1,cancelable:!0}),me({component:`menu`,parts:[`trigger`,`content`,`sub-trigger`,`item`,`group`,`group-heading`,`checkbox-group`,`checkbox-item`,`radio-group`,`radio-item`,`separator`,`sub-content`,`arrow`]}),globalThis.bitsDismissableLayers??=new Map;var dn=class e{static create(t){return new e(t)}opts;#e;#t;#n={pointerdown:!1};#r=!1;#i=!1;#a=void 0;#o;#s=G;constructor(e){this.opts=e,this.#t=e.interactOutsideBehavior,this.#e=e.onInteractOutside,this.#o=e.onFocusOutside,h(()=>{this.#a=Ot(this.opts.ref.current)});let t=G,n=null,r=!1,i=()=>{n!=null&&(clearTimeout(n),n=null)},a=()=>{i(),this.#g(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),t()};J([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return i(),n=Le(1,()=>{n=null,!(r||!this.opts.ref.current)&&(globalThis.bitsDismissableLayers.set(this,this.#t),t(),t=this.#l())}),a}),he(()=>{r=!0,i(),this.#g.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),this.#s(),t()})}#c=e=>{e.defaultPrevented||this.opts.ref.current&&ue(()=>{!this.opts.ref.current||this.#h(e.target)||e.target&&!this.#i&&this.#o.current?.(e)})};#l(){return De(H(this.#a,`pointerdown`,De(this.#f,this.#m),{capture:!0}),H(this.#a,`pointerdown`,De(this.#p,this.#d)),H(this.#a,`focusin`,this.#c))}#u=e=>{let t=e;t.defaultPrevented&&(t=hn(e)),this.#e.current(e)};#d=Et(e=>{if(!this.opts.ref.current){this.#s();return}let t=this.opts.isValidEvent.current(e,this.opts.ref.current)||mn(e,this.opts.ref.current);if(!this.#r||this.#_()||!t){this.#s();return}let n=e;if(n.defaultPrevented&&(n=hn(n)),this.#t.current!==`close`&&this.#t.current!==`defer-otherwise-close`){this.#s();return}e.pointerType===`touch`?(this.#s(),this.#s=H(this.#a,`click`,this.#u,{once:!0})):this.#e.current(n)},10);#f=e=>{this.#n[e.type]=!0};#p=e=>{this.#n[e.type]=!1};#m=()=>{this.opts.ref.current&&(this.#r=pn(this.opts.ref.current))};#h=e=>this.opts.ref.current?Dt(this.opts.ref.current,e):!1;#g=Et(()=>{for(let e in this.#n)this.#n[e]=!1;this.#r=!1},20);#_(){return Object.values(this.#n).some(Boolean)}#v=()=>{this.#i=!0};#y=()=>{this.#i=!1};props={onfocuscapture:this.#v,onblurcapture:this.#y}};function fn(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([e,{current:t}])=>t===`close`||t===`ignore`)}function pn(e){let t=[...globalThis.bitsDismissableLayers],n=fn(t);if(n)return n[0].opts.ref.current===e;let[r]=t[0];return r.opts.ref.current===e}function mn(e,t){let n=e.target;if(!tt(n))return!1;let r=!!n.closest(`[${ln}]`),i=!!t.closest(`[${un}]`);return`button`in e&&e.button>0&&!r?!1:`button`in e&&e.button===0&&r&&i?!0:r&&i?!1:Ot(n).documentElement.contains(n)&&!Dt(t,n)&&kt(e,t)}function hn(e){let t=e.currentTarget,n=e.target,r;r=e instanceof PointerEvent?new PointerEvent(e.type,e):new PointerEvent(`pointerdown`,e);let i=!1;return new Proxy(r,{get:(r,a)=>a===`currentTarget`?t:a===`target`?n:a===`preventDefault`?()=>{i=!0,typeof r.preventDefault==`function`&&r.preventDefault()}:a===`defaultPrevented`?i:a in r?r[a]:e[a]})}function gn(n,i){r(i,!0);let a=O(i,`interactOutsideBehavior`,3,`close`),o=O(i,`onInteractOutside`,3,G),s=O(i,`onFocusOutside`,3,G),c=O(i,`isValidEvent`,3,()=>!1),l=dn.create({id:Z(()=>i.id),interactOutsideBehavior:Z(()=>a()),onInteractOutside:Z(()=>o()),enabled:Z(()=>i.enabled),onFocusOutside:Z(()=>s()),isValidEvent:Z(()=>c()),ref:i.ref});var u=k(),d=R(u);B(d,()=>i.children??t,()=>({props:l.props})),e(n,u),f()}globalThis.bitsEscapeLayers??=new Map;var _n=class e{static create(t){return new e(t)}opts;domContext;constructor(e){this.opts=e,this.domContext=new Xe(this.opts.ref);let t=G;J(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=this.#e()),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>H(this.domContext.getDocument(),`keydown`,this.#t,{passive:!1});#t=e=>{if(e.key!==`Escape`||!vn(this))return;let t=new KeyboardEvent(e.type,e);e.preventDefault();let n=this.opts.escapeKeydownBehavior.current;(n===`close`||n===`defer-otherwise-close`)&&this.opts.onEscapeKeydown.current(t)}};function vn(e){let t=[...globalThis.bitsEscapeLayers],n=t.findLast(([e,{current:t}])=>t===`close`||t===`ignore`);if(n)return n[0]===e;let[r]=t[0];return r===e}function yn(n,i){r(i,!0);let a=O(i,`escapeKeydownBehavior`,3,`close`),o=O(i,`onEscapeKeydown`,3,G);_n.create({escapeKeydownBehavior:Z(()=>a()),onEscapeKeydown:Z(()=>o()),enabled:Z(()=>i.enabled),ref:i.ref});var s=k(),c=R(s);B(c,()=>i.children??t),e(n,s),f()}var bn=class e{static instance;#e=ye([]);#t=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||=new e,this.instance}register(e){let t=this.getActive();t&&t!==e&&t.pause();let n=document.activeElement;n&&n!==document.body&&this.#n.set(e,n),this.#e.current=this.#e.current.filter(t=>t!==e),this.#e.current.unshift(e)}unregister(e){this.#e.current=this.#e.current.filter(t=>t!==e);let t=this.getActive();t&&t.resume()}getActive(){return this.#e.current[0]}setFocusMemory(e,t){this.#t.set(e,t)}getFocusMemory(e){return this.#t.get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,t){this.#n.set(e,t)}getPreFocusMemory(e){return this.#n.get(e)}clearPreFocusMemory(e){this.#n.delete(e)}},xn=class e{#e=!1;#t=null;#n=bn.getInstance();#r=[];#i;constructor(e){this.#i=e}get paused(){return this.#e}pause(){this.#e=!0}resume(){this.#e=!1}#a(){for(let e of this.#r)e();this.#r=[]}mount(e){this.#t&&this.unmount(),this.#t=e,this.#n.register(this),this.#c(),this.#o()}unmount(){this.#t&&=(this.#a(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),null)}#o(){if(!this.#t)return;let e=new CustomEvent(`focusScope.onOpenAutoFocus`,{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!this.#t)return;let e=this.#u();e?(e.focus(),this.#n.setFocusMemory(this,e)):this.#t.focus()})}#s(){let e=new CustomEvent(`focusScope.onCloseAutoFocus`,{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(e),!e.defaultPrevented){let e=this.#n.getPreFocusMemory(this);if(e&&document.contains(e))try{e.focus()}catch{document.body.focus()}}}#c(){if(!this.#t||!this.#i.trap.current)return;let e=this.#t,t=e.ownerDocument;this.#r.push(H(t,`focusin`,t=>{if(this.#e||!this.#n.isActiveScope(this))return;let n=t.target;if(n){if(e.contains(n))this.#n.setFocusMemory(this,n);else{let n=this.#n.getFocusMemory(this);if(n&&e.contains(n)&&cn(n))t.preventDefault(),n.focus();else{let t=this.#u(),n=this.#d()[0];(t||n||e).focus()}}}},{capture:!0}),H(e,`keydown`,e=>{if(!this.#i.loop||this.#e||e.key!==`Tab`||!this.#n.isActiveScope(this))return;let n=this.#l();if(n.length===0)return;let r=n[0],i=n[n.length-1];!e.shiftKey&&t.activeElement===i?(e.preventDefault(),r.focus()):e.shiftKey&&t.activeElement===r&&(e.preventDefault(),i.focus())}));let n=new MutationObserver(()=>{let t=this.#n.getFocusMemory(this);if(t&&!e.contains(t)){let t=this.#u(),n=this.#d()[0],r=t||n;r?(r.focus(),this.#n.setFocusMemory(this,r)):e.focus()}});n.observe(e,{childList:!0,subtree:!0}),this.#r.push(()=>n.disconnect())}#l(){return this.#t?an(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#l()[0]||null}#d(){return this.#t?on(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return J([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(n||=new e(t),n.mount(r)):n&&=(n.unmount(),null)}),he(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}};function Sn(n,i){r(i,!0);let a=O(i,`enabled`,3,!1),o=O(i,`trapFocus`,3,!1),s=O(i,`loop`,3,!1),c=O(i,`onCloseAutoFocus`,3,G),l=O(i,`onOpenAutoFocus`,3,G),u=xn.use({enabled:Z(()=>a()),trap:Z(()=>o()),loop:s(),onCloseAutoFocus:Z(()=>c()),onOpenAutoFocus:Z(()=>l()),ref:i.ref});var d=k(),p=R(d);B(p,()=>i.focusScope??t,()=>({props:u.props})),e(n,d),f()}var Cn=()=>{};globalThis.bitsTextSelectionLayers??=new Map;var wn=class e{static create(t){return new e(t)}opts;domContext;#e=G;#t=!1;#n=Cn;#r=Cn;constructor(e){this.opts=e,this.domContext=new Xe(e.ref);let t=G;J(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([e,n,r])=>(this.#t=e,this.#n=n,this.#r=r,e&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=this.#i()),()=>{this.#t=!1,t(),this.#s(),globalThis.bitsTextSelectionLayers.delete(this)}))}#i(){return De(H(this.domContext.getDocument(),`pointerdown`,this.#o),H(this.domContext.getDocument(),`pointerup`,Ae(this.#s,this.#a)))}#a=e=>{this.#r(e)};#o=e=>{if(!this.#t)return;let t=this.opts.ref.current,n=e.target;!et(t)||!et(n)||!On(this)||!Ke(t,n)||(this.#n(e),!e.defaultPrevented&&(this.#e=En(t,this.domContext.getDocument().body)))};#s=()=>{this.#e(),this.#e=G}},Tn=e=>e.style.userSelect||e.style.webkitUserSelect;function En(e,t){let n=Tn(t),r=Tn(e);return Dn(t,`none`),Dn(e,`text`),()=>{Dn(t,n),Dn(e,r)}}function Dn(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function On(e){let t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;let n=t.at(-1);return n?n[0]===e:!1}function kn(n,i){r(i,!0);let a=O(i,`preventOverflowTextSelection`,3,!0),o=O(i,`onPointerDown`,3,G),s=O(i,`onPointerUp`,3,G);wn.create({id:Z(()=>i.id),onPointerDown:Z(()=>o()),onPointerUp:Z(()=>s()),enabled:Z(()=>i.enabled&&a()),ref:i.ref});var c=k(),l=R(c);B(l,()=>i.children??t),e(n,c),f()}globalThis.bitsIdCounter??={current:0};function An(e=`bits`){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}var jn=class{#e;#t=0;#n=L();#r;constructor(e){this.#e=e}#i(){--this.#t,this.#r&&this.#t<=0&&(this.#r(),b(this.#n,void 0),this.#r=void 0)}get(...e){return this.#t+=1,m(this.#n)===void 0&&(this.#r=s(()=>{b(this.#n,this.#e(...e),!0)})),h(()=>()=>{this.#i()}),m(this.#n)}},Mn=new ae,Nn=L(null),Pn=null,Fn=null,In=!1,Ln=Z(()=>{for(let e of Mn.values())if(e)return!0;return!1}),Rn=null,zn=new jn(()=>{function e(){document.body.setAttribute(`style`,m(Nn)??``),document.body.style.removeProperty(`--scrollbar-width`),Qe&&Pn?.(),b(Nn,null)}function t(){Fn!==null&&(window.clearTimeout(Fn),Fn=null)}function n(e,n){t(),In=!0,Rn=Date.now();let r=Rn,i=()=>{Fn=null,Rn===r&&(Vn(Mn)?In=!1:(In=!1,n()))},a=e===null?24:e;Fn=window.setTimeout(i,a)}function r(){m(Nn)===null&&Mn.size===0&&!In&&b(Nn,document.body.getAttribute(`style`),!0)}return J(()=>Ln.current,()=>{if(!Ln.current)return;r(),In=!1;let e=getComputedStyle(document.documentElement),t=getComputedStyle(document.body),n=e.scrollbarGutter?.includes(`stable`)||t.scrollbarGutter?.includes(`stable`),i=window.innerWidth-document.documentElement.clientWidth,a={padding:Number.parseInt(t.paddingRight??`0`,10)+i,margin:Number.parseInt(t.marginRight??`0`,10)};i>0&&!n&&(document.body.style.paddingRight=`${a.padding}px`,document.body.style.marginRight=`${a.margin}px`,document.body.style.setProperty(`--scrollbar-width`,`${i}px`)),document.body.style.overflow=`hidden`,Qe&&(Pn=H(document,`touchmove`,e=>{e.target===document.documentElement&&(e.touches.length>1||e.preventDefault())},{passive:!1})),ue(()=>{document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`})}),he(()=>()=>{Pn?.()}),{get lockMap(){return Mn},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}}),Bn=class{#e=An();#t;#n=()=>null;#r;locked;constructor(e,t=()=>null){this.#t=e,this.#n=t,this.#r=zn.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#e,this.#t??!1),this.locked=Z(()=>this.#r.lockMap.get(this.#e)??!1,e=>this.#r.lockMap.set(this.#e,e)),he(()=>{if(this.#r.lockMap.delete(this.#e),Vn(this.#r.lockMap))return;let e=this.#n();this.#r.scheduleCleanupIfNoNewLocks(e,()=>{this.#r.resetBodyStyle()})}))}};function Vn(e){for(let[t,n]of e)if(n)return!0;return!1}function Hn(e,t){r(t,!0);let n=O(t,`preventScroll`,3,!0),i=O(t,`restoreScrollDelay`,3,null);n()&&new Bn(n(),()=>i()),f()}var Un=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`,`forceMount`,`interactOutsideBehavior`,`onCloseAutoFocus`,`onEscapeKeydown`,`onOpenAutoFocus`,`onInteractOutside`,`preventScroll`,`trapFocus`,`restoreScrollDelay`]),Wn=c(`<!> <!>`,1),Gn=c(`<!> <div><!></div>`,1);function Kn(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`forceMount`,3,!1),u=O(i,`interactOutsideBehavior`,3,`ignore`),p=O(i,`onCloseAutoFocus`,3,G),h=O(i,`onEscapeKeydown`,3,G),g=O(i,`onOpenAutoFocus`,3,G),_=O(i,`onInteractOutside`,3,G),v=O(i,`preventScroll`,3,!0),b=O(i,`trapFocus`,3,!0),x=O(i,`restoreScrollDelay`,3,null),w=y(i,Un),E=st.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e))}),D=S(()=>Q(w,E.props));var A=k(),M=R(A),ee=n=>{Sn(n,{get ref(){return E.opts.ref},loop:!0,get trapFocus(){return b()},get enabled(){return E.root.opts.open.current},get onCloseAutoFocus(){return p()},onOpenAutoFocus:e=>{g()(e),!e.defaultPrevented&&(e.preventDefault(),Le(0,()=>E.opts.ref.current?.focus()))},focusScope:(n,r)=>{let o=()=>(r?.()).props;yn(n,F(()=>m(D),{get enabled(){return E.root.opts.open.current},get ref(){return E.opts.ref},onEscapeKeydown:e=>{h()(e),!e.defaultPrevented&&E.root.handleClose()},children:(n,r)=>{gn(n,F(()=>m(D),{get ref(){return E.opts.ref},get enabled(){return E.root.opts.open.current},get interactOutsideBehavior(){return u()},onInteractOutside:e=>{_()(e),!e.defaultPrevented&&E.root.handleClose()},children:(n,r)=>{kn(n,F(()=>m(D),{get ref(){return E.opts.ref},get enabled(){return E.root.opts.open.current},children:(n,r)=>{var s=k(),c=R(s),l=t=>{var n=Wn(),r=R(n),s=e=>{Hn(e,{get preventScroll(){return v()},get restoreScrollDelay(){return x()}})};a(r,e=>{E.root.opts.open.current&&e(s)});var c=P(r,2);{let e=S(()=>({props:Q(m(D),o()),...E.snippetProps}));B(c,()=>i.child,()=>m(e))}e(t,n)},u=n=>{var r=Gn(),a=R(r);Hn(a,{get preventScroll(){return v()}});var s=P(a,2);C(s,e=>({...e}),[()=>Q(m(D),o())]);var c=T(s);B(c,()=>i.children??t),j(s),e(n,r)};a(c,e=>{i.child?e(l):e(u,-1)}),e(n,s)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};a(M,e=>{(E.shouldRender||l())&&e(ee)}),e(n,A),f()}var qn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`forceMount`,`child`,`children`,`ref`]),Jn=c(`<div><!></div>`);function Yn(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`forceMount`,3,!1),l=O(i,`ref`,15,null),u=y(i,qn),p=ct.create({id:Z(()=>s()),ref:Z(()=>l(),e=>l(e))}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=n=>{var r=k(),o=R(r),s=t=>{var n=k(),r=R(n);{let e=S(()=>({props:Q(m(h)),...p.snippetProps}));B(r,()=>i.child,()=>m(e))}e(t,n)},c=n=>{var r=Jn();C(r,e=>({...e}),[()=>Q(m(h))]);var a=T(r);B(a,()=>i.children??t,()=>p.snippetProps),j(r),e(n,r)};a(o,e=>{i.child?e(s):e(c,-1)}),e(n,r)};a(_,e=>{(p.shouldRender||c())&&e(v)}),e(n,g),f()}var Xn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`,`disabled`]),Zn=c(`<button><!></button>`);function Qn(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`disabled`,3,!1),u=y(i,Xn),p=it.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e)),disabled:Z(()=>!!l())}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(h)})),e(t,n)},b=n=>{var r=Zn();C(r,()=>({...m(h)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(_,e=>{i.child?e(v):e(b,-1)}),e(n,g),f()}var $n=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`]),er=c(`<div><!></div>`);function tr(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=y(i,$n),u=ot.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e))}),p=S(()=>Q(l,u.props));var h=k(),g=R(h),_=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(p)})),e(t,n)},v=n=>{var r=er();C(r,()=>({...m(p)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(g,e=>{i.child?e(_):e(v,-1)}),e(n,h),f()}var nr=me({component:`label`,parts:[`root`]}),rr=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=X(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}onmousedown(e){e.detail>1&&e.preventDefault()}#e=S(()=>({id:this.opts.id.current,[nr.root]:``,onmousedown:this.onmousedown,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},ir=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`for`]),ar=c(`<label><!></label>`);function or(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=y(i,ir),u=rr.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e))}),p=S(()=>Q(l,u.props,{for:i.for}));var h=k(),g=R(h),_=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(p)})),e(t,n)},v=n=>{var r=ar();C(r,()=>({...m(p),for:i.for}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(g,e=>{i.child?e(_):e(v,-1)}),e(n,h),f()}var sr=me({component:`progress`,parts:[`root`]}),cr=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=X(this.opts.ref)}#e=S(()=>({role:`progressbar`,value:this.opts.value.current,"aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":this.opts.value.current===null?void 0:this.opts.value.current,"data-value":this.opts.value.current===null?void 0:this.opts.value.current,"data-state":lr(this.opts.value.current,this.opts.max.current),"data-max":this.opts.max.current,"data-min":this.opts.min.current,"data-indeterminate":this.opts.value.current===null?``:void 0,[sr.root]:``,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}};function lr(e,t){return e===null?`indeterminate`:e===t?`loaded`:`loading`}var ur=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`value`,`max`,`min`,`id`,`ref`]),dr=c(`<div><!></div>`);function fr(n,i){let o=d();r(i,!0);let s=O(i,`value`,3,0),c=O(i,`max`,3,100),l=O(i,`min`,3,0),u=O(i,`id`,19,()=>Y(o)),p=O(i,`ref`,15,null),h=y(i,ur),g=cr.create({value:Z(()=>s()),max:Z(()=>c()),min:Z(()=>l()),id:Z(()=>u()),ref:Z(()=>p(),e=>p(e))}),_=S(()=>Q(h,g.props));var v=k(),b=R(v),x=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(_)})),e(t,n)},w=n=>{var r=dr();C(r,()=>({...m(_)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(b,e=>{i.child?e(x):e(w,-1)}),e(n,v),f()}var pr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function mr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,pr);var o=k(),s=R(o);{let e=S(()=>K(`gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed`,n.class));x(s,()=>or,(t,n)=>{n(t,F({"data-slot":`label`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var hr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`type`,`files`,`class`,`data-slot`]),gr=c(`<input/>`);function _r(t,n){r(n,!0);let i=O(n,`ref`,15,null),o=O(n,`value`,15),s=O(n,`files`,15),c=O(n,`data-slot`,3,`input`),l=y(n,hr);var u=k(),d=R(u),p=t=>{var r=gr();C(r,e=>({"data-slot":c(),class:e,type:`file`,...l}),[()=>K(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,n.class)],void 0,void 0,void 0,!0),I(r,e=>i(e),()=>i()),M(r,s),z(r,o),e(t,r)},m=t=>{var r=gr();C(r,e=>({"data-slot":c(),class:e,type:n.type,...l}),[()=>K(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,n.class)],void 0,void 0,void 0,!0),I(r,e=>i(e),()=>i()),z(r,o),e(t,r)};a(d,e=>{n.type===`file`?e(p):e(m,-1)}),e(t,u),f()}var vr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`size`]);function yr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=O(n,`variant`,3,`outline`),o=O(n,`size`,3,`default`),s=y(n,vr);var c=k(),l=R(c);{let e=S(()=>K(se({variant:a(),size:o()}),`cn-alert-dialog-cancel`,n.class));x(l,()=>gt,(t,n)=>{n(t,F({"data-slot":`alert-dialog-cancel`,get class(){return m(e)}},()=>s,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,c),f()}var br=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function xr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,br);var o=k(),s=R(o);{let e=S(()=>K(`bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 z-50`,n.class));x(s,()=>Yn,(t,n)=>{n(t,F({"data-slot":`alert-dialog-overlay`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var Sr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Cr(t,n){let r=y(n,Sr);var i=k(),a=R(i);x(a,()=>wt,(e,t)=>{t(e,F(()=>r))}),e(t,i)}var wr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`size`,`portalProps`]),Tr=c(`<!> <!>`,1);function Er(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=O(n,`size`,3,`default`),o=y(n,wr);Cr(t,F(()=>n.portalProps,{children:(t,r)=>{var s=Tr(),c=R(s);xr(c,{});var l=P(c,2);{let e=S(()=>K(`gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none`,n.class));x(l,()=>Kn,(t,n)=>{n(t,F({"data-slot":`alert-dialog-content`,get"data-size"(){return a()},get class(){return m(e)}},()=>o,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,s)},$$slots:{default:!0}})),f()}var Dr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Or(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,Dr);var o=k(),s=R(o);{let e=S(()=>K(`text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,n.class));x(s,()=>tr,(t,n)=>{n(t,F({"data-slot":`alert-dialog-description`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var kr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Ar=c(`<div><!></div>`);function jr(n,i){r(i,!0);let a=O(i,`ref`,15,null),o=y(i,kr);var s=Ar();C(s,e=>({"data-slot":`alert-dialog-footer`,class:e,...o}),[()=>K(`-mx-4 -mb-4 rounded-b-xl border-t bg-muted/50 p-4 flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,i.class)]);var c=T(s);B(c,()=>i.children??t),j(s),I(s,e=>a(e),()=>a()),e(n,s),f()}var Mr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Nr=c(`<div><!></div>`);function Pr(n,i){r(i,!0);let a=O(i,`ref`,15,null),o=y(i,Mr);var s=Nr();C(s,e=>({"data-slot":`alert-dialog-header`,class:e,...o}),[()=>K(`grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,i.class)]);var c=T(s);B(c,()=>i.children??t),j(s),I(s,e=>a(e),()=>a()),e(n,s),f()}var Fr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Ir(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,Fr);var o=k(),s=R(o);{let e=S(()=>K(`text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,n.class));x(s,()=>pt,(t,n)=>{n(t,F({"data-slot":`alert-dialog-title`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var Lr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`]);function Rr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,Lr);var o=k(),s=R(o);x(s,()=>Qn,(e,t)=>{t(e,F({"data-slot":`alert-dialog-trigger`},()=>a,{get ref(){return i()},set ref(e){i(e)}}))}),e(t,o),f()}var zr=new Set([`$$slots`,`$$events`,`$$legacy`,`open`]);function Br(t,n){r(n,!0);let i=O(n,`open`,15,!1),a=y(n,zr);var o=k(),s=R(o);x(s,()=>ut,(e,t)=>{t(e,F(()=>a,{get open(){return i()},set open(e){i(e)}}))}),e(t,o),f()}var Vr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`max`,`value`]),Hr=c(`<div data-slot="progress-indicator" class="bg-primary size-full flex-1 transition-all"></div>`);function Ur(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=O(n,`max`,3,100),o=y(n,Vr);var s=k(),c=R(s);{let t=S(()=>K(`h-1 rounded-full bg-muted relative flex w-full items-center overflow-x-hidden`,n.class));x(c,()=>fr,(r,s)=>{s(r,F({"data-slot":`progress`,get class(){return m(t)},get value(){return n.value},get max(){return a()}},()=>o,{get ref(){return i()},set ref(e){i(e)},children:(t,r)=>{var i=Hr();g(()=>te(i,`transform: translateX(-${100-100*(n.value??0)/(a()??1)}%)`)),e(t,i)},$$slots:{default:!0}}))})}e(t,s),f()}var Wr=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`duration`,`label`,`variant`,`children`,`position`,`align`,`portal`,`onclick`,`onpress`,`class`,`message`]),Gr=c(`<div><div class="text-xs text-muted-foreground"><!></div> <!></div>`),Kr=c(`<!> <!>`,1);function qr(n,i){r(i,!0);let s=()=>E(m(U),`$countdown`,c),[c,u]=w(),d=O(i,`name`,3,`hold`),p=O(i,`duration`,3,800),x=O(i,`variant`,3,`ghost`),C=O(i,`position`,3,`left`),A=O(i,`align`,3,`center`),M=O(i,`portal`,3,!0),I=y(i,Wr),z=L(!1),V=L(!1),H=L(null),U=L(ne(v(p()))),W=S(()=>Math.round((1-s()/p())*100));h(()=>{s()===0&&se()});function ie(e){ce(e),e.altKey?se(!0):G()}function ae(e){e.key===` `&&G()}function G(){m(z)||(i.onpress?.(),b(z,!0),b(V,!0),N(b(U,re(p(),60),!0),`$countdown`,c),m(H)&&clearTimeout(m(H)))}function oe(){m(z)&&(b(H,setTimeout(()=>{b(V,!1)},m(W)>20?200:1e3),!0),b(z,!1),N(b(U,v(p()),!0),`$countdown`,c))}function se(e=!1){!m(z)&&!e||(i.onclick?.(),b(z,!1),b(H,setTimeout(()=>{b(V,!1),N(b(U,v(p()),!0),`$countdown`,c)},300),!0))}function ce(e){e.preventDefault(),e.stopPropagation()}function le(e,t){if(t)return document.body.appendChild(e),{destroy:()=>e.remove()}}var ue=Kr(),de=R(ue);{let n=S(()=>K(`select-none`,i.class)),r=S(()=>`anchor-name: --${d()};`);fe(de,F({get variant(){return x()}},()=>I,{get class(){return m(n)},onpointerdown:ie,onkeydown:ae,oncontextmenu:ce,onpointerup:oe,onpointerleave:oe,onkeyup:oe,get style(){return m(r)},children:(n,r)=>{var a=k(),o=R(a);B(o,()=>i.children??t),e(n,a)},$$slots:{default:!0}}))}var q=P(de,2),pe=t=>{var n=Gr(),r=T(n),s=T(r),c=t=>{var n=k(),r=R(n);B(r,()=>i.message),e(t,n)},u=t=>{var n=o();g(()=>l(n,i.label)),e(t,n)};a(s,e=>{i.message?e(c):e(u,-1)}),j(r),Ur(P(r,2),{get value(){return m(W)},class:`h-1 [&_div[data-slot=progress-indicator]]:bg-destructive/90 [&_div[data-slot=progress-indicator]]:transition-none`}),j(n),_(n,(e,t)=>le?.(e,t),M),g(e=>{ee(n,1,e),te(n,`position-anchor: --${d()}; position-area: ${C()} ${A()};`)},[()=>D(K(`fixed z-1002 w-fit min-w-26 transition-all ease-in-out space-y-1`,`bg-background/85 p-2 pt-1 rounded-md`,`starting:scale-0`))]),e(t,n)};a(q,e=>{m(V)&&e(pe)}),e(n,ue),f(),u()}var Jr=7e3,Yr=c(`<!> `,1),Xr=c(`<!> <!>`,1),Zr=c(`<p id="introspection-halt-error" class="text-destructive text-sm"> </p>`),Qr=c(` <!>`,1),$r=c(`<!> <div class="grid grid-cols-2 gap-4"><div class="flex flex-col gap-1.5"><!> <!> <p id="introspection-halt-hint"> </p></div> <div class="flex flex-col gap-1.5"><!> <!> <p id="introspection-halt-quiescence-hint"> </p></div></div> <!> <!>`,1);function ei(t,n){r(n,!0);let i=()=>E(Ce,`$configuration`,c),s=()=>E(ie,`$dict`,c),[c,d]=w(),p=S(()=>Pe(i())?i().halt??null:null),h=L(!1),_=L(ne({})),v=L(null),y=L(!1),C=L(!1),O=null,A=S(()=>m(_).duration??(m(p)===null?void 0:ae(600,m(p).duration))),M=S(()=>m(_).quiescence??(m(p)===null?void 0:ae(60,m(p).quiescence))),N=S(()=>m(p)!==null&&re(m(A),m(p).duration)),F=S(()=>m(p)!==null&&re(m(M),m(p).quiescence)),te=S(()=>m(N)&&m(F)),I=S(()=>m(v)!==null);function z(e){U(),b(C,!1),b(_,{},!0)}function B(){!m(te)||m(I)||(b(C,!1),b(v,9,!0),O=setInterval(V,1e3))}function V(){m(v)!==null&&(b(v,m(v)-1),!(m(v)>0)&&(W(),b(y,!0),H()))}async function H(){let e=await Ee(m(A),m(M));b(y,!1),b(C,e instanceof Error),m(C)?U():b(h,!1)}function U(){W(),b(v,null),b(y,!1)}function W(){O!==null&&clearInterval(O),O=null}function re(e,[t,n]){return e!==void 0&&Number.isInteger(e)&&e>=t&&e<=n}function ae(e,[t,n]){return Math.min(n,Math.max(t,e))}var G=k(),oe=R(G),ce=t=>{var n=k(),r=R(n);x(r,()=>Br,(t,n)=>{n(t,{onOpenChange:z,get open(){return m(h)},set open(e){b(h,e,!0)},children:(t,n)=>{var r=Xr(),i=R(r);{let t=S(()=>[se({variant:`ghost`}),`text-destructive hover:text-destructive`]);x(i,()=>Rr,(n,r)=>{r(n,{id:`introspection-halt-button`,get class(){return m(t)},children:(t,n)=>{var r=Yr(),i=R(r);Ie(i,{});var a=P(i);g(()=>l(a,` ${s().nav.halt??``}`)),e(t,r)},$$slots:{default:!0}})})}var c=P(i,2);x(c,()=>Er,(t,n)=>{n(t,{children:(t,n)=>{var r=$r(),i=R(r);x(i,()=>Pr,(t,n)=>{n(t,{children:(t,n)=>{var r=Xr(),i=R(r);x(i,()=>Ir,(t,n)=>{n(t,{children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.title)),e(t,r)},$$slots:{default:!0}})});var a=P(i,2);x(a,()=>Or,(t,n)=>{n(t,{children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.description)),e(t,r)},$$slots:{default:!0}})}),e(t,r)},$$slots:{default:!0}})});var c=P(i,2),d=T(c),f=T(d);mr(f,{for:`introspection-halt-input`,children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.interval)),e(t,r)},$$slots:{default:!0}});var h=P(f,2),b=()=>m(A),w=e=>m(_).duration=e;{let e=S(()=>!m(N));_r(h,{id:`introspection-halt-input`,type:`number`,inputmode:`numeric`,get min(){return m(p).duration[0]},get max(){return m(p).duration[1]},step:`1`,get disabled(){return m(I)},get value(){return b()},set value(e){w(e)},get"aria-invalid"(){return m(e)},"aria-describedby":`introspection-halt-hint`})}var E=P(h,2),O=T(E,!0);j(E),j(d);var ne=P(d,2),L=T(ne);mr(L,{for:`introspection-halt-quiescence-input`,children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.quiescence)),e(t,r)},$$slots:{default:!0}});var z=P(L,2),V=()=>m(M),H=e=>m(_).quiescence=e;{let e=S(()=>!m(F));_r(z,{id:`introspection-halt-quiescence-input`,type:`number`,inputmode:`numeric`,get min(){return m(p).quiescence[0]},get max(){return m(p).quiescence[1]},step:`1`,get disabled(){return m(I)},get value(){return V()},set value(e){H(e)},get"aria-invalid"(){return m(e)},"aria-describedby":`introspection-halt-quiescence-hint`})}var W=P(z,2),re=T(W,!0);j(W),j(ne),j(c);var ie=P(c,2),ae=t=>{var n=Zr(),r=T(n,!0);j(n),g(()=>l(r,s().halt.failed)),e(t,n)};a(ie,e=>{m(C)&&e(ae)});var G=P(ie,2);x(G,()=>jr,(t,n)=>{n(t,{children:(t,n)=>{var r=Xr(),i=R(r),c=t=>{fe(t,{id:`introspection-halt-cancel-button`,variant:`outline`,get disabled(){return m(y)},onclick:U,children:(t,n)=>{u();var r=Qr(),i=R(r),a=P(i);Ne(a,{id:`introspection-halt-countdown`,variant:`destructive`,class:`tabular-nums`,children:(t,n)=>{u();var r=o();g(()=>l(r,m(v))),e(t,r)},$$slots:{default:!0}}),g(()=>l(i,`${s().halt.cancel??``} `)),e(t,r)},$$slots:{default:!0}})},d=t=>{var n=k(),r=R(n);x(r,()=>yr,(t,n)=>{n(t,{id:`introspection-halt-cancel-button`,children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.cancel)),e(t,r)},$$slots:{default:!0}})}),e(t,n)};a(i,e=>{m(I)?e(c):e(d,-1)});var f=P(i,2);{let t=S(()=>!m(te)||m(I));qr(f,{id:`introspection-halt-confirm-button`,variant:`destructive`,portal:!1,position:`top`,get duration(){return Jr},get label(){return s().halt.hold},get disabled(){return m(t)},onclick:B,children:(t,n)=>{u();var r=o();g(()=>l(r,s().nav.halt)),e(t,r)},$$slots:{default:!0}})}e(t,r)},$$slots:{default:!0}})}),g((e,t)=>{ee(E,1,D([`text-xs`,m(N)?`text-muted-foreground`:`text-destructive`])),l(O,e),ee(W,1,D([`text-xs`,m(F)?`text-muted-foreground`:`text-destructive`])),l(re,t)},[()=>s().halt.bounds(m(p).duration[0],m(p).duration[1]),()=>s().halt.bounds(m(p).quiescence[0],m(p).quiescence[1])]),e(t,r)},$$slots:{default:!0}})}),e(t,r)},$$slots:{default:!0}})}),e(t,n)};a(oe,e=>{m(p)!==null&&e(ce)}),e(t,G),f(),d()}var ti=new Set([`$$slots`,`$$events`,`$$legacy`,`class`]),ni=c(`<p class="text-muted-foreground py-20 text-center"> </p>`),ri=c(`<section class="flex flex-col gap-2"><div class="text-muted-foreground flex items-center gap-3"><span class="text-xs font-medium tracking-wide uppercase"> </span> <!></div> <!></section>`),ii=c(`<div></div>`);function ai(t,i){r(i,!0);let o=()=>E(ge,`$nodes`,u),s=()=>E(Oe,`$query`,u),c=()=>E(ve,`$dict`,u),[u,d]=w(),p=y(i,ti),_=new be,v=S(()=>Pe(o())?o():[]),b=S(()=>m(v).map(e=>({node:e,rank:Te(e,s())})).filter(e=>e.rank>0).sort(D));h(()=>{let e=m(b).length===1?Me(m(b)[0].node):null;return xe.set(e===null?null:()=>_.add(e)),()=>xe.set(null)});function D(e,t){return t.rank-e.rank||e.node.namespace.localeCompare(t.node.namespace)||e.node.component.localeCompare(t.node.component)}function O(e){return[{id:`user`,label:c().space.user,of:e.filter(e=>!Se(e.node))},{id:`system`,label:c().space.system,of:e.filter(e=>Se(e.node))}].filter(e=>e.of.length>0)}W(t,{get store(){return ge},awaited:t=>{var r=k(),o=R(r),s=t=>{var n=ni(),r=T(n,!0);j(n),g(()=>l(r,c().nodes.empty)),e(t,n)},u=t=>{var n=ni(),r=T(n,!0);j(n),g(()=>l(r,c().nodes.nomatch)),e(t,n)},d=t=>{var r=ii();C(r,()=>({class:[`flex flex-col gap-6`,i.class],...p})),n(r,21,()=>O(m(b)),e=>e.id,(t,r)=>{var i=ri(),a=T(i),o=T(a),s=T(o,!0);j(o);var c=P(o,2);oe(c,{class:`flex-1`}),j(a);var u=P(a,2);x(u,()=>_e,(t,i)=>{i(t,{class:`gap-2`,children:(t,i)=>{var a=k(),o=R(a);n(o,17,()=>m(r).of,e=>e.node.id,(e,t)=>{let n=S(()=>Me(m(t).node));var r=()=>_.has(m(n)),i=e=>e?_.add(m(n)):_.delete(m(n));je(e,{get node(){return m(t).node},get open(){return r()},set open(e){i(e)}})}),e(t,a)},$$slots:{default:!0}})}),j(i),g(()=>l(s,m(r).label)),e(t,i)}),j(r),e(t,r)};a(o,e=>{m(v).length===0?e(s):m(b).length===0?e(u,1):e(d,-1)}),e(t,r)},$$slots:{awaited:!0}}),f(),d()}export{Xe as a,et as i,ei as n,Je as o,_r as r,ai as t};
|
|
1
|
+
import{A as e,At as t,C as n,Ct as r,D as i,E as a,F as o,J as s,M as c,O as l,Ot as u,P as d,St as f,T as p,V as m,X as h,Y as g,_,_t as v,a as y,at as b,b as x,ct as S,d as C,dt as w,et as T,ft as E,h as D,i as O,j as k,k as A,kt as j,l as M,m as ee,mt as N,nt as P,o as F,p as te,rt as ne,s as I,st as L,tt as R,u as z,x as B,yt as V,z as H}from"./sTot5bBi.js";import"./CnNGqUzH.js";import"./xihTtKlq.js";import{F as U,N as W,r as re,t as ie}from"./Bz9y_Qt4.js";import{$ as ae,A as G,C as oe,E as se,G as ce,H as le,J as ue,K as de,O as K,Q as q,T as fe,V as pe,W as me,Y as he,Z as J,_t as ge,b as _e,c as ve,dt as ye,et as be,f as xe,g as Se,ht as Ce,j as we,k as Y,m as Te,mt as Ee,nt as De,p as Oe,pt as ke,q as X,rt as Ae,st as Z,t as je,tt as Q,u as Me,w as Ne}from"./DVtRwJ-b.js";function Pe(e){return e!==null&&!(e instanceof Error)}var Fe=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ie(e,t){let n=y(t,Fe),r=[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`}]];U(e,F({name:`pause`},()=>n,{get iconNode(){return r}}))}function Le(e,t){return setTimeout(t,e)}var Re=1,ze=9,Be=11;function Ve(e){return ke(e)&&e.nodeType===Re&&typeof e.nodeName==`string`}function He(e){return ke(e)&&e.nodeType===ze}function Ue(e){return ke(e)&&e.constructor?.name===`VisualViewport`}function We(e){return ke(e)&&e.nodeType!==void 0}function Ge(e){return We(e)&&e.nodeType===Be&&`host`in e}function Ke(e,t){if(!e||!t||!Ve(e)||!Ve(t))return!1;let n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&Ge(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function qe(e){return He(e)?e:Ue(e)?e.document:e?.ownerDocument??document}function Je(e){return Ge(e)?Je(e.host):He(e)?e.defaultView??window:Ve(e)?e.ownerDocument?.defaultView??window:window}function Ye(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Xe=class{element;#e=S(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return m(this.#e)}set root(e){b(this.#e,e)}constructor(e){this.element=typeof e==`function`?Z(e):e}getDocument=()=>qe(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>Ye(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,t)=>this.getWindow().setTimeout(e,t);clearTimeout=e=>this.getWindow().clearTimeout(e)},Ze=typeof document<`u`,Qe=$e();function $e(){return Ze&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function et(e){return e instanceof HTMLElement}function tt(e){return e instanceof Element||e instanceof SVGElement}var nt=me({component:`dialog`,parts:[`content`,`trigger`,`overlay`,`title`,`description`,`close`,`cancel`,`action`]}),$=new q(`Dialog.Root | AlertDialog.Root`),rt=class e{static create(t){let n=$.getOr(null);return $.set(new e(t,n))}opts;#e=L(null);get triggerNode(){return m(this.#e)}set triggerNode(e){b(this.#e,e,!0)}#t=L(null);get contentNode(){return m(this.#t)}set contentNode(e){b(this.#t,e,!0)}#n=L(null);get overlayNode(){return m(this.#n)}set overlayNode(e){b(this.#n,e,!0)}#r=L(null);get descriptionNode(){return m(this.#r)}set descriptionNode(e){b(this.#r,e,!0)}#i=L(void 0);get contentId(){return m(this.#i)}set contentId(e){b(this.#i,e,!0)}#a=L(void 0);get titleId(){return m(this.#a)}set titleId(e){b(this.#a,e,!0)}#o=L(void 0);get triggerId(){return m(this.#o)}set triggerId(e){b(this.#o,e,!0)}#s=L(void 0);get descriptionId(){return m(this.#s)}set descriptionId(e){b(this.#s,e,!0)}#c=L(null);get cancelNode(){return m(this.#c)}set cancelNode(e){b(this.#c,e,!0)}#l=L(0);get nestedOpenCount(){return m(this.#l)}set nestedOpenCount(e){b(this.#l,e,!0)}depth;parent;contentPresence;overlayPresence;constructor(e,t){this.opts=e,this.parent=t,this.depth=t?t.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new we({ref:Z(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new we({ref:Z(()=>this.overlayNode),open:this.opts.open,enabled:!0}),J(()=>this.opts.open.current,e=>{this.parent&&(e?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),he(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=e=>nt.getAttr(e,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=S(()=>({"data-state":ce(this.opts.open.current)}));get sharedProps(){return m(this.#u)}set sharedProps(e){b(this.#u,e)}},it=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>{this.root.triggerNode=e,this.root.triggerId=e?.id}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleOpen()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleOpen())}#e=S(()=>({id:this.opts.id.current,"aria-haspopup":`dialog`,"aria-expanded":le(this.root.opts.open.current),"aria-controls":this.root.contentId,[this.root.getBitsAttr(`trigger`)]:``,onkeydown:this.onkeydown,onclick:this.onclick,disabled:this.opts.disabled.current?!0:void 0,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},at=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.titleId=this.opts.id.current,this.attachment=X(this.opts.ref),J.pre(()=>this.opts.id.current,e=>{this.root.titleId=e})}#e=S(()=>({id:this.opts.id.current,role:`heading`,"aria-level":this.opts.level.current,[this.root.getBitsAttr(`title`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},ot=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.descriptionId=this.opts.id.current,this.attachment=X(this.opts.ref,e=>{this.root.descriptionNode=e}),J.pre(()=>this.opts.id.current,e=>{this.root.descriptionId=e})}#e=S(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`description`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},st=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>{this.root.contentNode=e,this.root.contentId=e?.id})}#e=S(()=>({open:this.root.opts.open.current}));get snippetProps(){return m(this.#e)}set snippetProps(e){b(this.#e,e)}#t=S(()=>({id:this.opts.id.current,role:this.root.opts.variant.current===`alert-dialog`?`alertdialog`:`dialog`,"aria-modal":`true`,"aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr(`content`)]:``,style:{pointerEvents:`auto`,outline:this.root.opts.variant.current===`alert-dialog`?`none`:void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:`layout style`},tabindex:this.root.opts.variant.current===`alert-dialog`?-1:void 0,"data-nested-open":pe(this.root.nestedOpenCount>0),"data-nested":pe(this.root.parent!==null),...de(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return m(this.#t)}set props(e){b(this.#t,e)}get shouldRender(){return this.root.contentPresence.shouldRender}},ct=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>this.root.overlayNode=e)}#e=S(()=>({open:this.root.opts.open.current}));get snippetProps(){return m(this.#e)}set snippetProps(e){b(this.#e,e)}#t=S(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`overlay`)]:``,style:{pointerEvents:`auto`,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":pe(this.root.nestedOpenCount>0),"data-nested":pe(this.root.parent!==null),...de(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return m(this.#t)}set props(e){b(this.#t,e)}get shouldRender(){return this.root.overlayPresence.shouldRender}},lt=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>this.root.cancelNode=e),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleClose())}#e=S(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`cancel`)]:``,onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,disabled:this.opts.disabled.current,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}};function ut(n,i){r(i,!0);let a=O(i,`open`,15,!1),o=O(i,`onOpenChange`,3,G),s=O(i,`onOpenChangeComplete`,3,G);rt.create({variant:Z(()=>`alert-dialog`),open:Z(()=>a(),e=>{a(e),o()(e)}),onOpenChangeComplete:Z(()=>s())});var c=k(),l=R(c);B(l,()=>i.children??t),e(n,c),f()}var dt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`child`,`children`,`level`]),ft=c(`<div><!></div>`);function pt(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`level`,3,2),u=y(i,dt),p=at.create({id:Z(()=>s()),level:Z(()=>l()),ref:Z(()=>c(),e=>c(e))}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(h)})),e(t,n)},b=n=>{var r=ft();C(r,()=>({...m(h)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(_,e=>{i.child?e(v):e(b,-1)}),e(n,g),f()}var mt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`,`disabled`]),ht=c(`<button><!></button>`);function gt(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`disabled`,3,!1),u=y(i,mt),p=lt.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e)),disabled:Z(()=>!!l())}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(h)})),e(t,n)},b=n=>{var r=ht();C(r,()=>({...m(h)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(_,e=>{i.child?e(v):e(b,-1)}),e(n,g),f()}function _t(n,r){var i=k(),a=R(i);p(a,()=>r.children,n=>{var i=k(),a=R(i);B(a,()=>r.children??t),e(n,i)}),e(n,i)}var vt=new q(`BitsConfig`);function yt(){let e=new bt(null,{});return vt.getOr(e).opts}var bt=class{opts;constructor(e,t){let n=xt(e,t);this.opts={defaultPortalTo:n(e=>e.defaultPortalTo),defaultLocale:n(e=>e.defaultLocale)}}};function xt(e,t){return n=>Z(()=>{let r=n(t)?.current;if(r!==void 0)return r;if(e!==null)return n(e.opts)?.current})}function St(e,t){return n=>{let r=yt();return Z(()=>{let i=n();if(i!==void 0)return i;let a=e(r).current;return a===void 0?t:a})}}var Ct=St(e=>e.defaultPortalTo,`body`);function wt(n,o){r(o,!0);let s=Ct(()=>o.to),c=V(),l=S(u);function u(){if(!Ze||o.disabled)return null;let e=null;return e=typeof s.current==`string`?document.querySelector(s.current):s.current,e}let d;function p(){d&&=(A(d),null)}J([()=>m(l),()=>o.disabled],([e,t])=>{if(!e||t){p();return}return d=i(_t,{target:e,props:{children:o.children},context:c}),()=>{p()}});var h=k(),g=R(h),_=n=>{var r=k(),i=R(r);B(i,()=>o.children??t),e(n,r)};a(g,e=>{o.disabled&&e(_)}),e(n,h),f()}var Tt=class{eventName;options;constructor(e,t={bubbles:!0,cancelable:!0}){this.eventName=e,this.options=t}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,t){let n=this.createEvent(t);return e.dispatchEvent(n),n}listen(e,t,n){return H(e,this.eventName,e=>{t(e)},n)}};function Et(e,t=500){let n=null,r=(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function Dt(e,t){return e===t||e.contains(t)}function Ot(e){return e?.ownerDocument??document}function kt(e,t){let{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}var At=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],jt=At.join(`,`),Mt=typeof Element>`u`,Nt=Mt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Pt=!Mt&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},Ft=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):Ft(e.parentNode))},It=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},Lt=function(e,t,n){if(Ft(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(jt));return t&&Nt.call(e,jt)&&r.unshift(e),r=r.filter(n),r},Rt=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!Ft(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=Rt(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{Nt.call(a,jt)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!Ft(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=Rt(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},zt=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},Bt=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||It(e))&&!zt(e)?0:e.tabIndex},Vt=function(e,t){var n=Bt(e);return n<0&&t&&!zt(e)?0:n},Ht=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ut=function(e){return e.tagName===`INPUT`},Wt=function(e){return Ut(e)&&e.type===`hidden`},Gt=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},Kt=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},qt=function(e){if(!e.name)return!0;var t=e.form||Pt(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=Kt(r,e.form);return!i||i===e},Jt=function(e){return Ut(e)&&e.type===`radio`},Yt=function(e){return Jt(e)&&!qt(e)},Xt=function(e){var t=e&&Pt(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=Pt(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},Zt=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},Qt=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=Nt.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(Nt.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=Pt(e);if(s&&!s.shadowRoot&&r(s)===!0)return Zt(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(Xt(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return Zt(e);return!1},$t=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return Nt.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},en=function(e,t){return!(t.disabled||Wt(t)||Qt(t,e)||Gt(t)||$t(t))},tn=function(e,t){return!(Yt(t)||Bt(t)<0||!en(e,t))},nn=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},rn=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=Vt(a,i),s=i?rn(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(Ht).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},an=function(e,t){return t||={},rn(t.getShadowRoot?Rt([e],t.includeContainer,{filter:tn.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:nn}):Lt(e,t.includeContainer,tn.bind(null,t)))},on=function(e,t){return t||={},t.getShadowRoot?Rt([e],t.includeContainer,{filter:en.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Lt(e,t.includeContainer,en.bind(null,t))},sn=At.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),cn=function(e,t){if(t||={},!e)throw Error(`No node provided`);return Nt.call(e,sn)!==!1&&en(t,e)},ln=`data-context-menu-trigger`,un=`data-context-menu-content`;new q(`Menu.Root`),new q(`Menu.Root | Menu.Sub`),new q(`Menu.Content`),new q(`Menu.Group | Menu.RadioGroup`),new q(`Menu.RadioGroup`),new q(`Menu.CheckboxGroup`),new Tt(`bitsmenuopen`,{bubbles:!1,cancelable:!0}),me({component:`menu`,parts:[`trigger`,`content`,`sub-trigger`,`item`,`group`,`group-heading`,`checkbox-group`,`checkbox-item`,`radio-group`,`radio-item`,`separator`,`sub-content`,`arrow`]}),globalThis.bitsDismissableLayers??=new Map;var dn=class e{static create(t){return new e(t)}opts;#e;#t;#n={pointerdown:!1};#r=!1;#i=!1;#a=void 0;#o;#s=G;constructor(e){this.opts=e,this.#t=e.interactOutsideBehavior,this.#e=e.onInteractOutside,this.#o=e.onFocusOutside,h(()=>{this.#a=Ot(this.opts.ref.current)});let t=G,n=null,r=!1,i=()=>{n!=null&&(clearTimeout(n),n=null)},a=()=>{i(),this.#g(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),t()};J([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return i(),n=Le(1,()=>{n=null,!(r||!this.opts.ref.current)&&(globalThis.bitsDismissableLayers.set(this,this.#t),t(),t=this.#l())}),a}),he(()=>{r=!0,i(),this.#g.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),this.#s(),t()})}#c=e=>{e.defaultPrevented||this.opts.ref.current&&ue(()=>{!this.opts.ref.current||this.#h(e.target)||e.target&&!this.#i&&this.#o.current?.(e)})};#l(){return De(H(this.#a,`pointerdown`,De(this.#f,this.#m),{capture:!0}),H(this.#a,`pointerdown`,De(this.#p,this.#d)),H(this.#a,`focusin`,this.#c))}#u=e=>{let t=e;t.defaultPrevented&&(t=hn(e)),this.#e.current(e)};#d=Et(e=>{if(!this.opts.ref.current){this.#s();return}let t=this.opts.isValidEvent.current(e,this.opts.ref.current)||mn(e,this.opts.ref.current);if(!this.#r||this.#_()||!t){this.#s();return}let n=e;if(n.defaultPrevented&&(n=hn(n)),this.#t.current!==`close`&&this.#t.current!==`defer-otherwise-close`){this.#s();return}e.pointerType===`touch`?(this.#s(),this.#s=H(this.#a,`click`,this.#u,{once:!0})):this.#e.current(n)},10);#f=e=>{this.#n[e.type]=!0};#p=e=>{this.#n[e.type]=!1};#m=()=>{this.opts.ref.current&&(this.#r=pn(this.opts.ref.current))};#h=e=>this.opts.ref.current?Dt(this.opts.ref.current,e):!1;#g=Et(()=>{for(let e in this.#n)this.#n[e]=!1;this.#r=!1},20);#_(){return Object.values(this.#n).some(Boolean)}#v=()=>{this.#i=!0};#y=()=>{this.#i=!1};props={onfocuscapture:this.#v,onblurcapture:this.#y}};function fn(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([e,{current:t}])=>t===`close`||t===`ignore`)}function pn(e){let t=[...globalThis.bitsDismissableLayers],n=fn(t);if(n)return n[0].opts.ref.current===e;let[r]=t[0];return r.opts.ref.current===e}function mn(e,t){let n=e.target;if(!tt(n))return!1;let r=!!n.closest(`[${ln}]`),i=!!t.closest(`[${un}]`);return`button`in e&&e.button>0&&!r?!1:`button`in e&&e.button===0&&r&&i?!0:r&&i?!1:Ot(n).documentElement.contains(n)&&!Dt(t,n)&&kt(e,t)}function hn(e){let t=e.currentTarget,n=e.target,r;r=e instanceof PointerEvent?new PointerEvent(e.type,e):new PointerEvent(`pointerdown`,e);let i=!1;return new Proxy(r,{get:(r,a)=>a===`currentTarget`?t:a===`target`?n:a===`preventDefault`?()=>{i=!0,typeof r.preventDefault==`function`&&r.preventDefault()}:a===`defaultPrevented`?i:a in r?r[a]:e[a]})}function gn(n,i){r(i,!0);let a=O(i,`interactOutsideBehavior`,3,`close`),o=O(i,`onInteractOutside`,3,G),s=O(i,`onFocusOutside`,3,G),c=O(i,`isValidEvent`,3,()=>!1),l=dn.create({id:Z(()=>i.id),interactOutsideBehavior:Z(()=>a()),onInteractOutside:Z(()=>o()),enabled:Z(()=>i.enabled),onFocusOutside:Z(()=>s()),isValidEvent:Z(()=>c()),ref:i.ref});var u=k(),d=R(u);B(d,()=>i.children??t,()=>({props:l.props})),e(n,u),f()}globalThis.bitsEscapeLayers??=new Map;var _n=class e{static create(t){return new e(t)}opts;domContext;constructor(e){this.opts=e,this.domContext=new Xe(this.opts.ref);let t=G;J(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=this.#e()),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>H(this.domContext.getDocument(),`keydown`,this.#t,{passive:!1});#t=e=>{if(e.key!==`Escape`||!vn(this))return;let t=new KeyboardEvent(e.type,e);e.preventDefault();let n=this.opts.escapeKeydownBehavior.current;(n===`close`||n===`defer-otherwise-close`)&&this.opts.onEscapeKeydown.current(t)}};function vn(e){let t=[...globalThis.bitsEscapeLayers],n=t.findLast(([e,{current:t}])=>t===`close`||t===`ignore`);if(n)return n[0]===e;let[r]=t[0];return r===e}function yn(n,i){r(i,!0);let a=O(i,`escapeKeydownBehavior`,3,`close`),o=O(i,`onEscapeKeydown`,3,G);_n.create({escapeKeydownBehavior:Z(()=>a()),onEscapeKeydown:Z(()=>o()),enabled:Z(()=>i.enabled),ref:i.ref});var s=k(),c=R(s);B(c,()=>i.children??t),e(n,s),f()}var bn=class e{static instance;#e=ye([]);#t=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||=new e,this.instance}register(e){let t=this.getActive();t&&t!==e&&t.pause();let n=document.activeElement;n&&n!==document.body&&this.#n.set(e,n),this.#e.current=this.#e.current.filter(t=>t!==e),this.#e.current.unshift(e)}unregister(e){this.#e.current=this.#e.current.filter(t=>t!==e);let t=this.getActive();t&&t.resume()}getActive(){return this.#e.current[0]}setFocusMemory(e,t){this.#t.set(e,t)}getFocusMemory(e){return this.#t.get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,t){this.#n.set(e,t)}getPreFocusMemory(e){return this.#n.get(e)}clearPreFocusMemory(e){this.#n.delete(e)}},xn=class e{#e=!1;#t=null;#n=bn.getInstance();#r=[];#i;constructor(e){this.#i=e}get paused(){return this.#e}pause(){this.#e=!0}resume(){this.#e=!1}#a(){for(let e of this.#r)e();this.#r=[]}mount(e){this.#t&&this.unmount(),this.#t=e,this.#n.register(this),this.#c(),this.#o()}unmount(){this.#t&&=(this.#a(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),null)}#o(){if(!this.#t)return;let e=new CustomEvent(`focusScope.onOpenAutoFocus`,{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!this.#t)return;let e=this.#u();e?(e.focus(),this.#n.setFocusMemory(this,e)):this.#t.focus()})}#s(){let e=new CustomEvent(`focusScope.onCloseAutoFocus`,{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(e),!e.defaultPrevented){let e=this.#n.getPreFocusMemory(this);if(e&&document.contains(e))try{e.focus()}catch{document.body.focus()}}}#c(){if(!this.#t||!this.#i.trap.current)return;let e=this.#t,t=e.ownerDocument;this.#r.push(H(t,`focusin`,t=>{if(this.#e||!this.#n.isActiveScope(this))return;let n=t.target;if(n){if(e.contains(n))this.#n.setFocusMemory(this,n);else{let n=this.#n.getFocusMemory(this);if(n&&e.contains(n)&&cn(n))t.preventDefault(),n.focus();else{let t=this.#u(),n=this.#d()[0];(t||n||e).focus()}}}},{capture:!0}),H(e,`keydown`,e=>{if(!this.#i.loop||this.#e||e.key!==`Tab`||!this.#n.isActiveScope(this))return;let n=this.#l();if(n.length===0)return;let r=n[0],i=n[n.length-1];!e.shiftKey&&t.activeElement===i?(e.preventDefault(),r.focus()):e.shiftKey&&t.activeElement===r&&(e.preventDefault(),i.focus())}));let n=new MutationObserver(()=>{let t=this.#n.getFocusMemory(this);if(t&&!e.contains(t)){let t=this.#u(),n=this.#d()[0],r=t||n;r?(r.focus(),this.#n.setFocusMemory(this,r)):e.focus()}});n.observe(e,{childList:!0,subtree:!0}),this.#r.push(()=>n.disconnect())}#l(){return this.#t?an(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#l()[0]||null}#d(){return this.#t?on(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return J([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(n||=new e(t),n.mount(r)):n&&=(n.unmount(),null)}),he(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}};function Sn(n,i){r(i,!0);let a=O(i,`enabled`,3,!1),o=O(i,`trapFocus`,3,!1),s=O(i,`loop`,3,!1),c=O(i,`onCloseAutoFocus`,3,G),l=O(i,`onOpenAutoFocus`,3,G),u=xn.use({enabled:Z(()=>a()),trap:Z(()=>o()),loop:s(),onCloseAutoFocus:Z(()=>c()),onOpenAutoFocus:Z(()=>l()),ref:i.ref});var d=k(),p=R(d);B(p,()=>i.focusScope??t,()=>({props:u.props})),e(n,d),f()}var Cn=()=>{};globalThis.bitsTextSelectionLayers??=new Map;var wn=class e{static create(t){return new e(t)}opts;domContext;#e=G;#t=!1;#n=Cn;#r=Cn;constructor(e){this.opts=e,this.domContext=new Xe(e.ref);let t=G;J(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([e,n,r])=>(this.#t=e,this.#n=n,this.#r=r,e&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=this.#i()),()=>{this.#t=!1,t(),this.#s(),globalThis.bitsTextSelectionLayers.delete(this)}))}#i(){return De(H(this.domContext.getDocument(),`pointerdown`,this.#o),H(this.domContext.getDocument(),`pointerup`,Ae(this.#s,this.#a)))}#a=e=>{this.#r(e)};#o=e=>{if(!this.#t)return;let t=this.opts.ref.current,n=e.target;!et(t)||!et(n)||!On(this)||!Ke(t,n)||(this.#n(e),!e.defaultPrevented&&(this.#e=En(t,this.domContext.getDocument().body)))};#s=()=>{this.#e(),this.#e=G}},Tn=e=>e.style.userSelect||e.style.webkitUserSelect;function En(e,t){let n=Tn(t),r=Tn(e);return Dn(t,`none`),Dn(e,`text`),()=>{Dn(t,n),Dn(e,r)}}function Dn(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function On(e){let t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;let n=t.at(-1);return n?n[0]===e:!1}function kn(n,i){r(i,!0);let a=O(i,`preventOverflowTextSelection`,3,!0),o=O(i,`onPointerDown`,3,G),s=O(i,`onPointerUp`,3,G);wn.create({id:Z(()=>i.id),onPointerDown:Z(()=>o()),onPointerUp:Z(()=>s()),enabled:Z(()=>i.enabled&&a()),ref:i.ref});var c=k(),l=R(c);B(l,()=>i.children??t),e(n,c),f()}globalThis.bitsIdCounter??={current:0};function An(e=`bits`){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}var jn=class{#e;#t=0;#n=L();#r;constructor(e){this.#e=e}#i(){--this.#t,this.#r&&this.#t<=0&&(this.#r(),b(this.#n,void 0),this.#r=void 0)}get(...e){return this.#t+=1,m(this.#n)===void 0&&(this.#r=s(()=>{b(this.#n,this.#e(...e),!0)})),h(()=>()=>{this.#i()}),m(this.#n)}},Mn=new ae,Nn=L(null),Pn=null,Fn=null,In=!1,Ln=Z(()=>{for(let e of Mn.values())if(e)return!0;return!1}),Rn=null,zn=new jn(()=>{function e(){document.body.setAttribute(`style`,m(Nn)??``),document.body.style.removeProperty(`--scrollbar-width`),Qe&&Pn?.(),b(Nn,null)}function t(){Fn!==null&&(window.clearTimeout(Fn),Fn=null)}function n(e,n){t(),In=!0,Rn=Date.now();let r=Rn,i=()=>{Fn=null,Rn===r&&(Vn(Mn)?In=!1:(In=!1,n()))},a=e===null?24:e;Fn=window.setTimeout(i,a)}function r(){m(Nn)===null&&Mn.size===0&&!In&&b(Nn,document.body.getAttribute(`style`),!0)}return J(()=>Ln.current,()=>{if(!Ln.current)return;r(),In=!1;let e=getComputedStyle(document.documentElement),t=getComputedStyle(document.body),n=e.scrollbarGutter?.includes(`stable`)||t.scrollbarGutter?.includes(`stable`),i=window.innerWidth-document.documentElement.clientWidth,a={padding:Number.parseInt(t.paddingRight??`0`,10)+i,margin:Number.parseInt(t.marginRight??`0`,10)};i>0&&!n&&(document.body.style.paddingRight=`${a.padding}px`,document.body.style.marginRight=`${a.margin}px`,document.body.style.setProperty(`--scrollbar-width`,`${i}px`)),document.body.style.overflow=`hidden`,Qe&&(Pn=H(document,`touchmove`,e=>{e.target===document.documentElement&&(e.touches.length>1||e.preventDefault())},{passive:!1})),ue(()=>{document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`})}),he(()=>()=>{Pn?.()}),{get lockMap(){return Mn},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}}),Bn=class{#e=An();#t;#n=()=>null;#r;locked;constructor(e,t=()=>null){this.#t=e,this.#n=t,this.#r=zn.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#e,this.#t??!1),this.locked=Z(()=>this.#r.lockMap.get(this.#e)??!1,e=>this.#r.lockMap.set(this.#e,e)),he(()=>{if(this.#r.lockMap.delete(this.#e),Vn(this.#r.lockMap))return;let e=this.#n();this.#r.scheduleCleanupIfNoNewLocks(e,()=>{this.#r.resetBodyStyle()})}))}};function Vn(e){for(let[t,n]of e)if(n)return!0;return!1}function Hn(e,t){r(t,!0);let n=O(t,`preventScroll`,3,!0),i=O(t,`restoreScrollDelay`,3,null);n()&&new Bn(n(),()=>i()),f()}var Un=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`,`forceMount`,`interactOutsideBehavior`,`onCloseAutoFocus`,`onEscapeKeydown`,`onOpenAutoFocus`,`onInteractOutside`,`preventScroll`,`trapFocus`,`restoreScrollDelay`]),Wn=c(`<!> <!>`,1),Gn=c(`<!> <div><!></div>`,1);function Kn(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`forceMount`,3,!1),u=O(i,`interactOutsideBehavior`,3,`ignore`),p=O(i,`onCloseAutoFocus`,3,G),h=O(i,`onEscapeKeydown`,3,G),g=O(i,`onOpenAutoFocus`,3,G),_=O(i,`onInteractOutside`,3,G),v=O(i,`preventScroll`,3,!0),b=O(i,`trapFocus`,3,!0),x=O(i,`restoreScrollDelay`,3,null),w=y(i,Un),E=st.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e))}),D=S(()=>Q(w,E.props));var A=k(),M=R(A),ee=n=>{Sn(n,{get ref(){return E.opts.ref},loop:!0,get trapFocus(){return b()},get enabled(){return E.root.opts.open.current},get onCloseAutoFocus(){return p()},onOpenAutoFocus:e=>{g()(e),!e.defaultPrevented&&(e.preventDefault(),Le(0,()=>E.opts.ref.current?.focus()))},focusScope:(n,r)=>{let o=()=>(r?.()).props;yn(n,F(()=>m(D),{get enabled(){return E.root.opts.open.current},get ref(){return E.opts.ref},onEscapeKeydown:e=>{h()(e),!e.defaultPrevented&&E.root.handleClose()},children:(n,r)=>{gn(n,F(()=>m(D),{get ref(){return E.opts.ref},get enabled(){return E.root.opts.open.current},get interactOutsideBehavior(){return u()},onInteractOutside:e=>{_()(e),!e.defaultPrevented&&E.root.handleClose()},children:(n,r)=>{kn(n,F(()=>m(D),{get ref(){return E.opts.ref},get enabled(){return E.root.opts.open.current},children:(n,r)=>{var s=k(),c=R(s),l=t=>{var n=Wn(),r=R(n),s=e=>{Hn(e,{get preventScroll(){return v()},get restoreScrollDelay(){return x()}})};a(r,e=>{E.root.opts.open.current&&e(s)});var c=P(r,2);{let e=S(()=>({props:Q(m(D),o()),...E.snippetProps}));B(c,()=>i.child,()=>m(e))}e(t,n)},u=n=>{var r=Gn(),a=R(r);Hn(a,{get preventScroll(){return v()}});var s=P(a,2);C(s,e=>({...e}),[()=>Q(m(D),o())]);var c=T(s);B(c,()=>i.children??t),j(s),e(n,r)};a(c,e=>{i.child?e(l):e(u,-1)}),e(n,s)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};a(M,e=>{(E.shouldRender||l())&&e(ee)}),e(n,A),f()}var qn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`forceMount`,`child`,`children`,`ref`]),Jn=c(`<div><!></div>`);function Yn(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`forceMount`,3,!1),l=O(i,`ref`,15,null),u=y(i,qn),p=ct.create({id:Z(()=>s()),ref:Z(()=>l(),e=>l(e))}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=n=>{var r=k(),o=R(r),s=t=>{var n=k(),r=R(n);{let e=S(()=>({props:Q(m(h)),...p.snippetProps}));B(r,()=>i.child,()=>m(e))}e(t,n)},c=n=>{var r=Jn();C(r,e=>({...e}),[()=>Q(m(h))]);var a=T(r);B(a,()=>i.children??t,()=>p.snippetProps),j(r),e(n,r)};a(o,e=>{i.child?e(s):e(c,-1)}),e(n,r)};a(_,e=>{(p.shouldRender||c())&&e(v)}),e(n,g),f()}var Xn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`,`disabled`]),Zn=c(`<button><!></button>`);function Qn(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`disabled`,3,!1),u=y(i,Xn),p=it.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e)),disabled:Z(()=>!!l())}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(h)})),e(t,n)},b=n=>{var r=Zn();C(r,()=>({...m(h)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(_,e=>{i.child?e(v):e(b,-1)}),e(n,g),f()}var $n=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`]),er=c(`<div><!></div>`);function tr(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=y(i,$n),u=ot.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e))}),p=S(()=>Q(l,u.props));var h=k(),g=R(h),_=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(p)})),e(t,n)},v=n=>{var r=er();C(r,()=>({...m(p)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(g,e=>{i.child?e(_):e(v,-1)}),e(n,h),f()}var nr=me({component:`label`,parts:[`root`]}),rr=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=X(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}onmousedown(e){e.detail>1&&e.preventDefault()}#e=S(()=>({id:this.opts.id.current,[nr.root]:``,onmousedown:this.onmousedown,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},ir=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`for`]),ar=c(`<label><!></label>`);function or(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=y(i,ir),u=rr.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e))}),p=S(()=>Q(l,u.props,{for:i.for}));var h=k(),g=R(h),_=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(p)})),e(t,n)},v=n=>{var r=ar();C(r,()=>({...m(p),for:i.for}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(g,e=>{i.child?e(_):e(v,-1)}),e(n,h),f()}var sr=me({component:`progress`,parts:[`root`]}),cr=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=X(this.opts.ref)}#e=S(()=>({role:`progressbar`,value:this.opts.value.current,"aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":this.opts.value.current===null?void 0:this.opts.value.current,"data-value":this.opts.value.current===null?void 0:this.opts.value.current,"data-state":lr(this.opts.value.current,this.opts.max.current),"data-max":this.opts.max.current,"data-min":this.opts.min.current,"data-indeterminate":this.opts.value.current===null?``:void 0,[sr.root]:``,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}};function lr(e,t){return e===null?`indeterminate`:e===t?`loaded`:`loading`}var ur=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`value`,`max`,`min`,`id`,`ref`]),dr=c(`<div><!></div>`);function fr(n,i){let o=d();r(i,!0);let s=O(i,`value`,3,0),c=O(i,`max`,3,100),l=O(i,`min`,3,0),u=O(i,`id`,19,()=>Y(o)),p=O(i,`ref`,15,null),h=y(i,ur),g=cr.create({value:Z(()=>s()),max:Z(()=>c()),min:Z(()=>l()),id:Z(()=>u()),ref:Z(()=>p(),e=>p(e))}),_=S(()=>Q(h,g.props));var v=k(),b=R(v),x=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(_)})),e(t,n)},w=n=>{var r=dr();C(r,()=>({...m(_)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(b,e=>{i.child?e(x):e(w,-1)}),e(n,v),f()}var pr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function mr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,pr);var o=k(),s=R(o);{let e=S(()=>K(`gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed`,n.class));x(s,()=>or,(t,n)=>{n(t,F({"data-slot":`label`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var hr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`type`,`files`,`class`,`data-slot`]),gr=c(`<input/>`);function _r(t,n){r(n,!0);let i=O(n,`ref`,15,null),o=O(n,`value`,15),s=O(n,`files`,15),c=O(n,`data-slot`,3,`input`),l=y(n,hr);var u=k(),d=R(u),p=t=>{var r=gr();C(r,e=>({"data-slot":c(),class:e,type:`file`,...l}),[()=>K(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,n.class)],void 0,void 0,void 0,!0),I(r,e=>i(e),()=>i()),M(r,s),z(r,o),e(t,r)},m=t=>{var r=gr();C(r,e=>({"data-slot":c(),class:e,type:n.type,...l}),[()=>K(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,n.class)],void 0,void 0,void 0,!0),I(r,e=>i(e),()=>i()),z(r,o),e(t,r)};a(d,e=>{n.type===`file`?e(p):e(m,-1)}),e(t,u),f()}var vr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`size`]);function yr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=O(n,`variant`,3,`outline`),o=O(n,`size`,3,`default`),s=y(n,vr);var c=k(),l=R(c);{let e=S(()=>K(se({variant:a(),size:o()}),`cn-alert-dialog-cancel`,n.class));x(l,()=>gt,(t,n)=>{n(t,F({"data-slot":`alert-dialog-cancel`,get class(){return m(e)}},()=>s,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,c),f()}var br=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function xr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,br);var o=k(),s=R(o);{let e=S(()=>K(`bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 z-50`,n.class));x(s,()=>Yn,(t,n)=>{n(t,F({"data-slot":`alert-dialog-overlay`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var Sr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Cr(t,n){let r=y(n,Sr);var i=k(),a=R(i);x(a,()=>wt,(e,t)=>{t(e,F(()=>r))}),e(t,i)}var wr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`size`,`portalProps`]),Tr=c(`<!> <!>`,1);function Er(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=O(n,`size`,3,`default`),o=y(n,wr);Cr(t,F(()=>n.portalProps,{children:(t,r)=>{var s=Tr(),c=R(s);xr(c,{});var l=P(c,2);{let e=S(()=>K(`gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none`,n.class));x(l,()=>Kn,(t,n)=>{n(t,F({"data-slot":`alert-dialog-content`,get"data-size"(){return a()},get class(){return m(e)}},()=>o,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,s)},$$slots:{default:!0}})),f()}var Dr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Or(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,Dr);var o=k(),s=R(o);{let e=S(()=>K(`text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,n.class));x(s,()=>tr,(t,n)=>{n(t,F({"data-slot":`alert-dialog-description`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var kr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Ar=c(`<div><!></div>`);function jr(n,i){r(i,!0);let a=O(i,`ref`,15,null),o=y(i,kr);var s=Ar();C(s,e=>({"data-slot":`alert-dialog-footer`,class:e,...o}),[()=>K(`-mx-4 -mb-4 rounded-b-xl border-t bg-muted/50 p-4 flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,i.class)]);var c=T(s);B(c,()=>i.children??t),j(s),I(s,e=>a(e),()=>a()),e(n,s),f()}var Mr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Nr=c(`<div><!></div>`);function Pr(n,i){r(i,!0);let a=O(i,`ref`,15,null),o=y(i,Mr);var s=Nr();C(s,e=>({"data-slot":`alert-dialog-header`,class:e,...o}),[()=>K(`grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,i.class)]);var c=T(s);B(c,()=>i.children??t),j(s),I(s,e=>a(e),()=>a()),e(n,s),f()}var Fr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Ir(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,Fr);var o=k(),s=R(o);{let e=S(()=>K(`text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,n.class));x(s,()=>pt,(t,n)=>{n(t,F({"data-slot":`alert-dialog-title`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var Lr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`]);function Rr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,Lr);var o=k(),s=R(o);x(s,()=>Qn,(e,t)=>{t(e,F({"data-slot":`alert-dialog-trigger`},()=>a,{get ref(){return i()},set ref(e){i(e)}}))}),e(t,o),f()}var zr=new Set([`$$slots`,`$$events`,`$$legacy`,`open`]);function Br(t,n){r(n,!0);let i=O(n,`open`,15,!1),a=y(n,zr);var o=k(),s=R(o);x(s,()=>ut,(e,t)=>{t(e,F(()=>a,{get open(){return i()},set open(e){i(e)}}))}),e(t,o),f()}var Vr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`max`,`value`]),Hr=c(`<div data-slot="progress-indicator" class="bg-primary size-full flex-1 transition-all"></div>`);function Ur(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=O(n,`max`,3,100),o=y(n,Vr);var s=k(),c=R(s);{let t=S(()=>K(`h-1 rounded-full bg-muted relative flex w-full items-center overflow-x-hidden`,n.class));x(c,()=>fr,(r,s)=>{s(r,F({"data-slot":`progress`,get class(){return m(t)},get value(){return n.value},get max(){return a()}},()=>o,{get ref(){return i()},set ref(e){i(e)},children:(t,r)=>{var i=Hr();g(()=>te(i,`transform: translateX(-${100-100*(n.value??0)/(a()??1)}%)`)),e(t,i)},$$slots:{default:!0}}))})}e(t,s),f()}var Wr=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`duration`,`label`,`variant`,`children`,`position`,`align`,`portal`,`onclick`,`onpress`,`class`,`message`]),Gr=c(`<div><div class="text-xs text-muted-foreground"><!></div> <!></div>`),Kr=c(`<!> <!>`,1);function qr(n,i){r(i,!0);let s=()=>E(m(U),`$countdown`,c),[c,u]=w(),d=O(i,`name`,3,`hold`),p=O(i,`duration`,3,800),x=O(i,`variant`,3,`ghost`),C=O(i,`position`,3,`left`),A=O(i,`align`,3,`center`),M=O(i,`portal`,3,!0),I=y(i,Wr),z=L(!1),V=L(!1),H=L(null),U=L(ne(v(p()))),W=S(()=>Math.round((1-s()/p())*100));h(()=>{s()===0&&se()});function ie(e){ce(e),e.altKey?se(!0):G()}function ae(e){e.key===` `&&G()}function G(){m(z)||(i.onpress?.(),b(z,!0),b(V,!0),N(b(U,re(p(),60),!0),`$countdown`,c),m(H)&&clearTimeout(m(H)))}function oe(){m(z)&&(b(H,setTimeout(()=>{b(V,!1)},m(W)>20?200:1e3),!0),b(z,!1),N(b(U,v(p()),!0),`$countdown`,c))}function se(e=!1){!m(z)&&!e||(i.onclick?.(),b(z,!1),b(H,setTimeout(()=>{b(V,!1),N(b(U,v(p()),!0),`$countdown`,c)},300),!0))}function ce(e){e.preventDefault(),e.stopPropagation()}function le(e,t){if(t)return document.body.appendChild(e),{destroy:()=>e.remove()}}var ue=Kr(),de=R(ue);{let n=S(()=>K(`select-none`,i.class)),r=S(()=>`anchor-name: --${d()};`);fe(de,F({get variant(){return x()}},()=>I,{get class(){return m(n)},onpointerdown:ie,onkeydown:ae,oncontextmenu:ce,onpointerup:oe,onpointerleave:oe,onkeyup:oe,get style(){return m(r)},children:(n,r)=>{var a=k(),o=R(a);B(o,()=>i.children??t),e(n,a)},$$slots:{default:!0}}))}var q=P(de,2),pe=t=>{var n=Gr(),r=T(n),s=T(r),c=t=>{var n=k(),r=R(n);B(r,()=>i.message),e(t,n)},u=t=>{var n=o();g(()=>l(n,i.label)),e(t,n)};a(s,e=>{i.message?e(c):e(u,-1)}),j(r),Ur(P(r,2),{get value(){return m(W)},class:`h-1 [&_div[data-slot=progress-indicator]]:bg-destructive/90 [&_div[data-slot=progress-indicator]]:transition-none`}),j(n),_(n,(e,t)=>le?.(e,t),M),g(e=>{ee(n,1,e),te(n,`position-anchor: --${d()}; position-area: ${C()} ${A()};`)},[()=>D(K(`fixed z-1002 w-fit min-w-26 transition-all ease-in-out space-y-1`,`bg-background/85 p-2 pt-1 rounded-md`,`starting:scale-0`))]),e(t,n)};a(q,e=>{m(V)&&e(pe)}),e(n,ue),f(),u()}var Jr=7e3,Yr=c(`<!> `,1),Xr=c(`<!> <!>`,1),Zr=c(`<p id="introspection-halt-error" class="text-destructive text-sm"> </p>`),Qr=c(` <!>`,1),$r=c(`<!> <div class="grid grid-cols-2 gap-4"><div class="flex flex-col gap-1.5"><!> <!> <p id="introspection-halt-hint"> </p></div> <div class="flex flex-col gap-1.5"><!> <!> <p id="introspection-halt-quiescence-hint"> </p></div></div> <!> <!>`,1);function ei(t,n){r(n,!0);let i=()=>E(Ce,`$configuration`,c),s=()=>E(ie,`$dict`,c),[c,d]=w(),p=S(()=>Pe(i())?i().halt??null:null),h=L(!1),_=L(ne({})),v=L(null),y=L(!1),C=L(!1),O=null,A=S(()=>m(_).duration??(m(p)===null?void 0:ae(600,m(p).duration))),M=S(()=>m(_).quiescence??(m(p)===null?void 0:ae(60,m(p).quiescence))),N=S(()=>m(p)!==null&&re(m(A),m(p).duration)),F=S(()=>m(p)!==null&&re(m(M),m(p).quiescence)),te=S(()=>m(N)&&m(F)),I=S(()=>m(v)!==null);function z(e){U(),b(C,!1),b(_,{},!0)}function B(){!m(te)||m(I)||(b(C,!1),b(v,9,!0),O=setInterval(V,1e3))}function V(){m(v)!==null&&(b(v,m(v)-1),!(m(v)>0)&&(W(),b(y,!0),H()))}async function H(){let e=await Ee(m(A),m(M));b(y,!1),b(C,e instanceof Error),m(C)?U():b(h,!1)}function U(){W(),b(v,null),b(y,!1)}function W(){O!==null&&clearInterval(O),O=null}function re(e,[t,n]){return e!==void 0&&Number.isInteger(e)&&e>=t&&e<=n}function ae(e,[t,n]){return Math.min(n,Math.max(t,e))}var G=k(),oe=R(G),ce=t=>{var n=k(),r=R(n);x(r,()=>Br,(t,n)=>{n(t,{onOpenChange:z,get open(){return m(h)},set open(e){b(h,e,!0)},children:(t,n)=>{var r=Xr(),i=R(r);{let t=S(()=>[se({variant:`ghost`}),`text-destructive hover:text-destructive`]);x(i,()=>Rr,(n,r)=>{r(n,{id:`introspection-halt-button`,get class(){return m(t)},children:(t,n)=>{var r=Yr(),i=R(r);Ie(i,{});var a=P(i);g(()=>l(a,` ${s().nav.halt??``}`)),e(t,r)},$$slots:{default:!0}})})}var c=P(i,2);x(c,()=>Er,(t,n)=>{n(t,{children:(t,n)=>{var r=$r(),i=R(r);x(i,()=>Pr,(t,n)=>{n(t,{children:(t,n)=>{var r=Xr(),i=R(r);x(i,()=>Ir,(t,n)=>{n(t,{children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.title)),e(t,r)},$$slots:{default:!0}})});var a=P(i,2);x(a,()=>Or,(t,n)=>{n(t,{children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.description)),e(t,r)},$$slots:{default:!0}})}),e(t,r)},$$slots:{default:!0}})});var c=P(i,2),d=T(c),f=T(d);mr(f,{for:`introspection-halt-input`,children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.interval)),e(t,r)},$$slots:{default:!0}});var h=P(f,2),b=()=>m(A),w=e=>m(_).duration=e;{let e=S(()=>!m(N));_r(h,{id:`introspection-halt-input`,type:`number`,inputmode:`numeric`,get min(){return m(p).duration[0]},get max(){return m(p).duration[1]},step:`1`,get disabled(){return m(I)},get value(){return b()},set value(e){w(e)},get"aria-invalid"(){return m(e)},"aria-describedby":`introspection-halt-hint`})}var E=P(h,2),O=T(E,!0);j(E),j(d);var ne=P(d,2),L=T(ne);mr(L,{for:`introspection-halt-quiescence-input`,children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.quiescence)),e(t,r)},$$slots:{default:!0}});var z=P(L,2),V=()=>m(M),H=e=>m(_).quiescence=e;{let e=S(()=>!m(F));_r(z,{id:`introspection-halt-quiescence-input`,type:`number`,inputmode:`numeric`,get min(){return m(p).quiescence[0]},get max(){return m(p).quiescence[1]},step:`1`,get disabled(){return m(I)},get value(){return V()},set value(e){H(e)},get"aria-invalid"(){return m(e)},"aria-describedby":`introspection-halt-quiescence-hint`})}var W=P(z,2),re=T(W,!0);j(W),j(ne),j(c);var ie=P(c,2),ae=t=>{var n=Zr(),r=T(n,!0);j(n),g(()=>l(r,s().halt.failed)),e(t,n)};a(ie,e=>{m(C)&&e(ae)});var G=P(ie,2);x(G,()=>jr,(t,n)=>{n(t,{children:(t,n)=>{var r=Xr(),i=R(r),c=t=>{fe(t,{id:`introspection-halt-cancel-button`,variant:`outline`,get disabled(){return m(y)},onclick:U,children:(t,n)=>{u();var r=Qr(),i=R(r),a=P(i);Ne(a,{id:`introspection-halt-countdown`,variant:`destructive`,class:`tabular-nums`,children:(t,n)=>{u();var r=o();g(()=>l(r,m(v))),e(t,r)},$$slots:{default:!0}}),g(()=>l(i,`${s().halt.cancel??``} `)),e(t,r)},$$slots:{default:!0}})},d=t=>{var n=k(),r=R(n);x(r,()=>yr,(t,n)=>{n(t,{id:`introspection-halt-cancel-button`,children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.cancel)),e(t,r)},$$slots:{default:!0}})}),e(t,n)};a(i,e=>{m(I)?e(c):e(d,-1)});var f=P(i,2);{let t=S(()=>!m(te)||m(I));qr(f,{id:`introspection-halt-confirm-button`,variant:`destructive`,portal:!1,position:`top`,get duration(){return Jr},get label(){return s().halt.hold},get disabled(){return m(t)},onclick:B,children:(t,n)=>{u();var r=o();g(()=>l(r,s().nav.halt)),e(t,r)},$$slots:{default:!0}})}e(t,r)},$$slots:{default:!0}})}),g((e,t)=>{ee(E,1,D([`text-xs`,m(N)?`text-muted-foreground`:`text-destructive`])),l(O,e),ee(W,1,D([`text-xs`,m(F)?`text-muted-foreground`:`text-destructive`])),l(re,t)},[()=>s().halt.bounds(m(p).duration[0],m(p).duration[1]),()=>s().halt.bounds(m(p).quiescence[0],m(p).quiescence[1])]),e(t,r)},$$slots:{default:!0}})}),e(t,r)},$$slots:{default:!0}})}),e(t,n)};a(oe,e=>{m(p)!==null&&e(ce)}),e(t,G),f(),d()}var ti=new Set([`$$slots`,`$$events`,`$$legacy`,`class`]),ni=c(`<p class="text-muted-foreground py-20 text-center"> </p>`),ri=c(`<section class="flex flex-col gap-2"><div class="text-muted-foreground flex items-center gap-3"><span class="text-xs font-medium tracking-wide uppercase"> </span> <!></div> <!></section>`),ii=c(`<div></div>`);function ai(t,i){r(i,!0);let o=()=>E(ge,`$nodes`,u),s=()=>E(Oe,`$query`,u),c=()=>E(ve,`$dict`,u),[u,d]=w(),p=y(i,ti),_=new be,v=S(()=>Pe(o())?o():[]),b=S(()=>m(v).map(e=>({node:e,rank:Te(e,s())})).filter(e=>e.rank>0).sort(D));h(()=>{let e=m(b).length===1?Me(m(b)[0].node):null;return xe.set(e===null?null:()=>_.add(e)),()=>xe.set(null)});function D(e,t){return t.rank-e.rank||e.node.namespace.localeCompare(t.node.namespace)||e.node.component.localeCompare(t.node.component)}function O(e){return[{id:`user`,label:c().space.user,of:e.filter(e=>!Se(e.node))},{id:`system`,label:c().space.system,of:e.filter(e=>Se(e.node))}].filter(e=>e.of.length>0)}W(t,{get store(){return ge},awaited:t=>{var r=k(),o=R(r),s=t=>{var n=ni(),r=T(n,!0);j(n),g(()=>l(r,c().nodes.empty)),e(t,n)},u=t=>{var n=ni(),r=T(n,!0);j(n),g(()=>l(r,c().nodes.nomatch)),e(t,n)},d=t=>{var r=ii();C(r,()=>({class:[`flex flex-col gap-6`,i.class],...p})),n(r,21,()=>O(m(b)),e=>e.id,(t,r)=>{var i=ri(),a=T(i),o=T(a),s=T(o,!0);j(o);var c=P(o,2);oe(c,{class:`flex-1`}),j(a);var u=P(a,2);x(u,()=>_e,(t,i)=>{i(t,{class:`gap-2`,children:(t,i)=>{var a=k(),o=R(a);n(o,17,()=>m(r).of,e=>e.node.id,(e,t)=>{let n=S(()=>Me(m(t).node));var r=()=>_.has(m(n)),i=e=>e?_.add(m(n)):_.delete(m(n));je(e,{get node(){return m(t).node},get open(){return r()},set open(e){i(e)}})}),e(t,a)},$$slots:{default:!0}})}),j(i),g(()=>l(s,m(r).label)),e(t,i)}),j(r),e(t,r)};a(o,e=>{m(v).length===0?e(s):m(b).length===0?e(u,1):e(d,-1)}),e(t,r)},$$slots:{awaited:!0}}),f(),d()}export{Xe as a,et as i,ei as n,Je as o,_r as r,ai as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as e,A as t,C as n,Ct as r,E as i,F as a,I as o,L as s,M as c,N as l,O as u,Ot as d,R as f,St as p,T as m,U as h,V as g,X as _,Y as v,_ as y,a as b,at as x,b as S,c as C,ct as w,dt as T,et as E,f as D,ft as O,h as ee,i as k,j as A,jt as j,kt as M,m as te,nt as N,o as P,p as ne,q as F,rt as re,st as ie,tt as I,vt as ae}from"./sTot5bBi.js";import{s as oe,t as se}from"./BmMhn2QK.js";import"./CMJYA4Le.js";import"./xihTtKlq.js";import{F as ce,I as le,N as ue,c as de,l as fe}from"./C7j91YQ-.js";import"./X3sfW33Q.js";import{$ as pe,C as me,S as L,_ as he,_t as ge,c as _e,d as ve,et as ye,f as be,g as xe,gt as Se,h as Ce,l as we,m as Te,n as Ee,o as De,p as Oe,s as ke,t as Ae,u as je,v as Me,x as Ne,y as Pe}from"./BYGx-tUu.js";import{t as Fe}from"./Cyx235dG.js";var Ie={value:()=>{}};function Le(){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 Re(n)}function Re(e){this._=e}function ze(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}})}Re.prototype=Le.prototype={constructor:Re,on:function(e,t){var n=this._,r=ze(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Be(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]=Ve(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Ve(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 Re(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 Be(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Ve(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Ie,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var He={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 Ue(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),He.hasOwnProperty(t)?{space:He[t],local:e}:e}function We(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 Ge(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ke(e){var t=Ue(e);return(t.local?Ge:We)(t)}function qe(){}function Je(e){return e==null?qe:function(){return this.querySelector(e)}}function Ye(e){typeof e!=`function`&&(e=Je(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 R(r,this._parents)}function Xe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ze(){return[]}function Qe(e){return e==null?Ze:function(){return this.querySelectorAll(e)}}function $e(e){return function(){return Xe(e.apply(this,arguments))}}function et(e){e=typeof e==`function`?$e(e):Qe(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 R(r,i)}function tt(e){return function(){return this.matches(e)}}function nt(e){return function(t){return t.matches(e)}}var rt=Array.prototype.find;function it(e){return function(){return rt.call(this.children,e)}}function at(){return this.firstElementChild}function ot(e){return this.select(e==null?at:it(typeof e==`function`?e:nt(e)))}var st=Array.prototype.filter;function ct(){return Array.from(this.children)}function lt(e){return function(){return st.call(this.children,e)}}function ut(e){return this.selectAll(e==null?ct:lt(typeof e==`function`?e:nt(e)))}function dt(e){typeof e!=`function`&&(e=tt(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 R(r,this._parents)}function ft(e){return Array(e.length)}function pt(){return new R(this._enter||this._groups.map(ft),this._parents)}function mt(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}mt.prototype={constructor:mt,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 ht(e){return function(){return e}}function gt(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 mt(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function _t(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 mt(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function vt(e){return e.__data__}function yt(e,t){if(!arguments.length)return Array.from(this,vt);var n=t?_t:gt,r=this._parents,i=this._groups;typeof e!=`function`&&(e=ht(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=bt(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 R(o,r),o._enter=s,o._exit=c,o}function bt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function xt(){return new R(this._exit||this._groups.map(ft),this._parents)}function St(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 Ct(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 R(s,this._parents)}function wt(){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 Tt(e){e||=Et;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 R(i,this._parents).order()}function Et(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Dt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Ot(){return Array.from(this)}function kt(){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 At(){let e=0;for(let t of this)++e;return e}function jt(){return!this.node()}function Mt(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 Nt(e){return function(){this.removeAttribute(e)}}function Pt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ft(e,t){return function(){this.setAttribute(e,t)}}function It(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Lt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Rt(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 zt(e,t){var n=Ue(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?Pt:Nt:typeof t==`function`?n.local?Rt:Lt:n.local?It:Ft)(n,t))}function Bt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Vt(e){return function(){this.style.removeProperty(e)}}function Ht(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ut(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Wt(e,t,n){return arguments.length>1?this.each((t==null?Vt:typeof t==`function`?Ut:Ht)(e,t,n??``)):Gt(this.node(),e)}function Gt(e,t){return e.style.getPropertyValue(t)||Bt(e).getComputedStyle(e,null).getPropertyValue(t)}function Kt(e){return function(){delete this[e]}}function qt(e,t){return function(){this[e]=t}}function Jt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Yt(e,t){return arguments.length>1?this.each((t==null?Kt:typeof t==`function`?Jt:qt)(e,t)):this.node()[e]}function Xt(e){return e.trim().split(/^|\s+/)}function Zt(e){return e.classList||new Qt(e)}function Qt(e){this._node=e,this._names=Xt(e.getAttribute(`class`)||``)}Qt.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 $t(e,t){for(var n=Zt(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function en(e,t){for(var n=Zt(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function tn(e){return function(){$t(this,e)}}function nn(e){return function(){en(this,e)}}function rn(e,t){return function(){(t.apply(this,arguments)?$t:en)(this,e)}}function an(e,t){var n=Xt(e+``);if(arguments.length<2){for(var r=Zt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?rn:t?tn:nn)(n,t))}function on(){this.textContent=``}function sn(e){return function(){this.textContent=e}}function cn(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function ln(e){return arguments.length?this.each(e==null?on:(typeof e==`function`?cn:sn)(e)):this.node().textContent}function un(){this.innerHTML=``}function dn(e){return function(){this.innerHTML=e}}function fn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function pn(e){return arguments.length?this.each(e==null?un:(typeof e==`function`?fn:dn)(e)):this.node().innerHTML}function mn(){this.nextSibling&&this.parentNode.appendChild(this)}function hn(){return this.each(mn)}function gn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _n(){return this.each(gn)}function vn(e){var t=typeof e==`function`?e:Ke(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function yn(){return null}function bn(e,t){var n=typeof e==`function`?e:Ke(e),r=t==null?yn:typeof t==`function`?t:Je(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function xn(){var e=this.parentNode;e&&e.removeChild(this)}function Sn(){return this.each(xn)}function Cn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Tn(e){return this.select(e?wn:Cn)}function En(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Dn(e){return function(t){e.call(this,t,this.__data__)}}function On(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 kn(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 An(e,t,n){return function(){var r=this.__on,i,a=Dn(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 jn(e,t,n){var r=On(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?An:kn,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Mn(e,t,n){var r=Bt(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 Nn(e,t){return function(){return Mn(this,e,t)}}function Pn(e,t){return function(){return Mn(this,e,t.apply(this,arguments))}}function Fn(e,t){return this.each((typeof t==`function`?Pn:Nn)(e,t))}function*In(){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 Ln=[null];function R(e,t){this._groups=e,this._parents=t}function Rn(){return new R([[document.documentElement]],Ln)}function zn(){return this}R.prototype=Rn.prototype={constructor:R,select:Ye,selectAll:et,selectChild:ot,selectChildren:ut,filter:dt,data:yt,enter:pt,exit:xt,join:St,merge:Ct,selection:zn,order:wt,sort:Tt,call:Dt,nodes:Ot,node:kt,size:At,empty:jt,each:Mt,attr:zt,style:Wt,property:Yt,classed:an,text:ln,html:pn,raise:hn,lower:_n,append:vn,insert:bn,remove:Sn,clone:Tn,datum:En,on:jn,dispatch:Fn,[Symbol.iterator]:In};function z(e){return typeof e==`string`?new R([[document.querySelector(e)]],[document.documentElement]):new R([[e]],Ln)}function Bn(e){let t;for(;t=e.sourceEvent;)e=t;return e}function B(e,t){if(e=Bn(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 Vn={capture:!0,passive:!1};function Hn(e){e.preventDefault(),e.stopImmediatePropagation()}function Un(e){var t=e.document.documentElement,n=z(e).on(`dragstart.drag`,Hn,Vn);`onselectstart`in t?n.on(`selectstart.drag`,Hn,Vn):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function Wn(e,t){var n=e.document.documentElement,r=z(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,Hn,Vn),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 Gn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Kn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function qn(){}var Jn=.7,Yn=1/Jn,V=`\\s*([+-]?\\d+)\\s*`,Xn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,H=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Zn=/^#([0-9a-f]{3,8})$/,Qn=RegExp(`^rgb\\(${V},${V},${V}\\)$`),$n=RegExp(`^rgb\\(${H},${H},${H}\\)$`),er=RegExp(`^rgba\\(${V},${V},${V},${Xn}\\)$`),tr=RegExp(`^rgba\\(${H},${H},${H},${Xn}\\)$`),nr=RegExp(`^hsl\\(${Xn},${H},${H}\\)$`),rr=RegExp(`^hsla\\(${Xn},${H},${H},${Xn}\\)$`),ir={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};Gn(qn,lr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ar,formatHex:ar,formatHex8:or,formatHsl:sr,formatRgb:cr,toString:cr});function ar(){return this.rgb().formatHex()}function or(){return this.rgb().formatHex8()}function sr(){return yr(this).formatHsl()}function cr(){return this.rgb().formatRgb()}function lr(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Zn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ur(t):n===3?new U(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?dr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?dr(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=Qn.exec(e))?new U(t[1],t[2],t[3],1):(t=$n.exec(e))?new U(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=er.exec(e))?dr(t[1],t[2],t[3],t[4]):(t=tr.exec(e))?dr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nr.exec(e))?vr(t[1],t[2]/100,t[3]/100,1):(t=rr.exec(e))?vr(t[1],t[2]/100,t[3]/100,t[4]):ir.hasOwnProperty(e)?ur(ir[e]):e===`transparent`?new U(NaN,NaN,NaN,0):null}function ur(e){return new U(e>>16&255,e>>8&255,e&255,1)}function dr(e,t,n,r){return r<=0&&(e=t=n=NaN),new U(e,t,n,r)}function fr(e){return e instanceof qn||(e=lr(e)),e?(e=e.rgb(),new U(e.r,e.g,e.b,e.opacity)):new U}function pr(e,t,n,r){return arguments.length===1?fr(e):new U(e,t,n,r??1)}function U(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Gn(U,pr,Kn(qn,{brighter(e){return e=e==null?Yn:Yn**+e,new U(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Jn:Jn**+e,new U(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new U(W(this.r),W(this.g),W(this.b),_r(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:mr,formatHex:mr,formatHex8:hr,formatRgb:gr,toString:gr}));function mr(){return`#${G(this.r)}${G(this.g)}${G(this.b)}`}function hr(){return`#${G(this.r)}${G(this.g)}${G(this.b)}${G((isNaN(this.opacity)?1:this.opacity)*255)}`}function gr(){let e=_r(this.opacity);return`${e===1?`rgb(`:`rgba(`}${W(this.r)}, ${W(this.g)}, ${W(this.b)}${e===1?`)`:`, ${e})`}`}function _r(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function W(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function G(e){return e=W(e),(e<16?`0`:``)+e.toString(16)}function vr(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new K(e,t,n,r)}function yr(e){if(e instanceof K)return new K(e.h,e.s,e.l,e.opacity);if(e instanceof qn||(e=lr(e)),!e)return new K;if(e instanceof K)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 K(o,s,c,e.opacity)}function br(e,t,n,r){return arguments.length===1?yr(e):new K(e,t,n,r??1)}function K(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Gn(K,br,Kn(qn,{brighter(e){return e=e==null?Yn:Yn**+e,new K(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Jn:Jn**+e,new K(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 U(Cr(e>=240?e-240:e+120,i,r),Cr(e,i,r),Cr(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new K(xr(this.h),Sr(this.s),Sr(this.l),_r(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=_r(this.opacity);return`${e===1?`hsl(`:`hsla(`}${xr(this.h)}, ${Sr(this.s)*100}%, ${Sr(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function xr(e){return e=(e||0)%360,e<0?e+360:e}function Sr(e){return Math.max(0,Math.min(1,e||0))}function Cr(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 wr=e=>()=>e;function Tr(e,t){return function(n){return e+n*t}}function Er(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Dr(e){return(e=+e)==1?Or:function(t,n){return n-t?Er(t,n,e):wr(isNaN(t)?n:t)}}function Or(e,t){var n=t-e;return n?Tr(e,n):wr(isNaN(e)?t:e)}var kr=(function e(t){var n=Dr(t);function r(e,t){var r=n((e=pr(e)).r,(t=pr(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Or(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 q(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Ar=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jr=new RegExp(Ar.source,`g`);function Mr(e){return function(){return e}}function Nr(e){return function(t){return e(t)+``}}function Pr(e,t){var n=Ar.lastIndex=jr.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Ar.exec(e))&&(i=jr.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:q(r,i)})),n=jr.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Nr(c[0].x):Mr(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 Fr=180/Math.PI,Ir={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Lr(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)*Fr,skewX:Math.atan(c)*Fr,scaleX:o,scaleY:s}}var Rr;function zr(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Ir:Lr(t.a,t.b,t.c,t.d,t.e,t.f)}function Br(e){return e==null||(Rr||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Rr.setAttribute(`transform`,e),!(e=Rr.transform.baseVal.consolidate()))?Ir:(e=e.matrix,Lr(e.a,e.b,e.c,e.d,e.e,e.f))}function Vr(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:q(e,i)},{i:c-2,x:q(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:q(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:q(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:q(e,n)},{i:s-2,x:q(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 Hr=Vr(zr,`px, `,`px)`,`deg)`),Ur=Vr(Br,`, `,`)`,`)`),Wr=1e-12;function Gr(e){return((e=Math.exp(e))+1/e)/2}function Kr(e){return((e=Math.exp(e))-1/e)/2}function qr(e){return((e=Math.exp(2*e))-1)/(e+1)}var Jr=(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<Wr)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=Gr(y),c=s/(n*g)*(i*qr(t*r+y)-Kr(y));return[a+c*d,o+c*f,s*i/Gr(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),Yr=0,Xr=0,Zr=0,Qr=1e3,$r,ei,ti=0,ni=0,ri=0,ii=typeof performance==`object`&&performance.now?performance:Date,ai=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function oi(){return ni||=(ai(si),ii.now()+ri)}function si(){ni=0}function ci(){this._call=this._time=this._next=null}ci.prototype=li.prototype={constructor:ci,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?oi():+n)+(t==null?0:+t),!this._next&&ei!==this&&(ei?ei._next=this:$r=this,ei=this),this._call=e,this._time=n,mi()},stop:function(){this._call&&(this._call=null,this._time=1/0,mi())}};function li(e,t,n){var r=new ci;return r.restart(e,t,n),r}function ui(){oi(),++Yr;for(var e=$r,t;e;)(t=ni-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Yr}function di(){ni=(ti=ii.now())+ri,Yr=Xr=0;try{ui()}finally{Yr=0,pi(),ni=0}}function fi(){var e=ii.now(),t=e-ti;t>Qr&&(ri-=t,ti=e)}function pi(){for(var e,t=$r,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:$r=n);ei=e,mi(r)}function mi(e){Yr||(Xr&&=clearTimeout(Xr),e-ni>24?(e<1/0&&(Xr=setTimeout(di,e-ii.now()-ri)),Zr&&=clearInterval(Zr)):(Zr||=(ti=ii.now(),setInterval(fi,Qr)),Yr=1,ai(di)))}function hi(e,t,n){var r=new ci;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var gi=Le(`start`,`end`,`cancel`,`interrupt`),_i=[];function vi(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;bi(e,n,{name:t,index:r,group:i,on:gi,tween:_i,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function yi(e,t){var n=Y(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function J(e,t){var n=Y(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Y(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function bi(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=li(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 hi(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(hi(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 xi(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 Si(e){return this.each(function(){xi(this,e)})}function Ci(e,t){var n,r;return function(){var i=J(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 wi(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=J(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 Ti(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Y(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?Ci:wi)(n,e,t))}function Ei(e,t,n){var r=e._id;return e.each(function(){var e=J(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Y(e,r).value[t]}}function Di(e,t){var n;return(typeof t==`number`?q:t instanceof lr?kr:(n=lr(t))?(t=n,kr):Pr)(e,t)}function Oi(e){return function(){this.removeAttribute(e)}}function ki(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ai(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 ji(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 Mi(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 Ni(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 Pi(e,t){var n=Ue(e),r=n===`transform`?Ur:Di;return this.attrTween(e,typeof t==`function`?(n.local?Ni:Mi)(n,r,Ei(this,`attr.`+e,t)):t==null?(n.local?ki:Oi)(n):(n.local?ji:Ai)(n,r,t))}function Fi(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Ii(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Li(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ii(e,i)),n}return i._value=t,i}function Ri(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Fi(e,i)),n}return i._value=t,i}function zi(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=Ue(e);return this.tween(n,(r.local?Li:Ri)(r,t))}function Bi(e,t){return function(){yi(this,e).delay=+t.apply(this,arguments)}}function Vi(e,t){return t=+t,function(){yi(this,e).delay=t}}function Hi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Bi:Vi)(t,e)):Y(this.node(),t).delay}function Ui(e,t){return function(){J(this,e).duration=+t.apply(this,arguments)}}function Wi(e,t){return t=+t,function(){J(this,e).duration=t}}function Gi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Ui:Wi)(t,e)):Y(this.node(),t).duration}function Ki(e,t){if(typeof t!=`function`)throw Error();return function(){J(this,e).ease=t}}function qi(e){var t=this._id;return arguments.length?this.each(Ki(t,e)):Y(this.node(),t).ease}function Ji(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();J(this,e).ease=n}}function Yi(e){if(typeof e!=`function`)throw Error();return this.each(Ji(this._id,e))}function Xi(e){typeof e!=`function`&&(e=tt(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 X(r,this._parents,this._name,this._id)}function Zi(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 X(o,this._parents,this._name,this._id)}function Qi(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 $i(e,t,n){var r,i,a=Qi(t)?yi:J;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function ea(e,t){var n=this._id;return arguments.length<2?Y(this.node(),n).on.on(e):this.each($i(n,e,t))}function ta(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function na(){return this.on(`end.remove`,ta(this._id))}function ra(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Je(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,vi(l[f],t,n,f,l,Y(u,n)));return new X(a,this._parents,t,n)}function ia(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Qe(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=Y(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&vi(p,t,n,h,f,m);a.push(f),o.push(u)}return new X(a,o,t,n)}var aa=Rn.prototype.constructor;function oa(){return new aa(this._groups,this._parents)}function sa(e,t){var n,r,i;return function(){var a=Gt(this,e),o=(this.style.removeProperty(e),Gt(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function ca(e){return function(){this.style.removeProperty(e)}}function la(e,t,n){var r,i=n+``,a;return function(){var o=Gt(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function ua(e,t,n){var r,i,a;return function(){var o=Gt(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),Gt(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function da(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=J(this,e),l=c.on,u=c.value[a]==null?s||=ca(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function fa(e,t,n){var r=(e+=``)==`transform`?Hr:Di;return t==null?this.styleTween(e,sa(e,r)).on(`end.style.`+e,ca(e)):typeof t==`function`?this.styleTween(e,ua(e,r,Ei(this,`style.`+e,t))).each(da(this._id,e)):this.styleTween(e,la(e,r,t),n).on(`end.style.`+e,null)}function pa(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function ma(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&pa(e,a,n)),r}return a._value=t,a}function ha(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,ma(e,t,n??``))}function ga(e){return function(){this.textContent=e}}function _a(e){return function(){var t=e(this);this.textContent=t??``}}function va(e){return this.tween(`text`,typeof e==`function`?_a(Ei(this,`text`,e)):ga(e==null?``:e+``))}function ya(e){return function(t){this.textContent=e.call(this,t)}}function ba(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&ya(r)),t}return r._value=e,r}function xa(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,ba(e))}function Sa(){for(var e=this._name,t=this._id,n=Ta(),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=Y(c,t);vi(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new X(r,this._parents,e,n)}function Ca(){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=J(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 wa=0;function X(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ta(){return++wa}var Z=Rn.prototype;X.prototype={constructor:X,select:ra,selectAll:ia,selectChild:Z.selectChild,selectChildren:Z.selectChildren,filter:Xi,merge:Zi,selection:oa,transition:Sa,call:Z.call,nodes:Z.nodes,node:Z.node,size:Z.size,empty:Z.empty,each:Z.each,on:ea,attr:Pi,attrTween:zi,style:fa,styleTween:ha,text:va,textTween:xa,remove:na,tween:Ti,delay:Hi,duration:Gi,ease:qi,easeVarying:Yi,end:Ca,[Symbol.iterator]:Z[Symbol.iterator]};function Ea(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Da={time:null,delay:0,duration:250,ease:Ea};function Oa(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function ka(e){var t,n;e instanceof X?(t=e._id,e=e._name):(t=Ta(),(n=Da).time=oi(),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])&&vi(c,e,t,l,o,n||Oa(c,t));return new X(r,this._parents,e,t)}Rn.prototype.interrupt=Si,Rn.prototype.transition=ka;var Aa=e=>()=>e;function ja(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 Q(e,t,n){this.k=e,this.x=t,this.y=n}Q.prototype={constructor:Q,scale:function(e){return e===1?this:new Q(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Q(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 Ma=new Q(1,0,0);Na.prototype=Q.prototype;function Na(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Ma;return e.__zoom}function Pa(e){e.stopImmediatePropagation()}function Fa(e){e.preventDefault(),e.stopImmediatePropagation()}function Ia(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function La(){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 Ra(){return this.__zoom||Ma}function za(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ba(){return navigator.maxTouchPoints||`ontouchstart`in this}function Va(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 Ha(){var e=Ia,t=La,n=Va,r=za,i=Ba,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=Jr,l=Le(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,Ra).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,E).filter(i).on(`touchstart.zoom`,D).on(`touchmove.zoom`,O).on(`touchend.zoom touchcancel.zoom`,ee).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`,Ra),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(Ma.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 Q(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 Q(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 Q(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 C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.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=z(this.that).datum();l.call(e,this.that,new ja(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(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=B(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)],xi(this),s.start();Fa(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 T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=z(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=B(t,i),l=t.clientX,u=t.clientY;Un(t.view),Pa(t),a.mouse=[c,this.__zoom.invert(c)],xi(this),a.start();function d(e){if(Fa(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]=B(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),Wn(e.view,a.moved),Fa(e),a.event(e).end()}}function E(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=B(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);Fa(r),s>0?z(this).transition().duration(s).call(x,d,c,r):z(this).call(_.transform,d,c,r)}}function D(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(Pa(t),s=0;s<i;++s)c=r[s],l=B(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)),xi(this),a.start())}}function O(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(Fa(e),s=0;s<a;++s)c=i[s],l=B(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 ee(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(Pa(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=B(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=z(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:Aa(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:Aa(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:Aa(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:Aa([[+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 Ua=[.25,2],Wa=16,Ga=(e,t)=>{let n=t.onchange,r=Ha().scaleExtent(Ua).filter(Ka).on(`zoom`,e=>n(e.transform)),i=z(e);return i.call(r).on(`dblclick.zoom`,null),e.addEventListener(`wheel`,a,{passive:!1}),t.onready?.({reset:()=>r.transform(i,Ma)}),{update:e=>{n=e.onchange},destroy:()=>{e.removeEventListener(`wheel`,a),z(e).on(`.zoom`,null)}};function a(t){if(qa(t)||Ja(t.target,`[data-scrollable]`))return;t.preventDefault();let n=t.deltaMode===WheelEvent.DOM_DELTA_LINE?Wa:1,{k:a}=Na(e);r.translateBy(i,-t.deltaX*n/a,-t.deltaY*n/a)}};function Ka(e){return e.type===`wheel`?qa(e)&&!Ja(e.target,`[data-scrollable]`):e.ctrlKey||`button`in e&&e.button!==0?!1:!Ja(e.target,`button, a, [data-scrollable]`)}function qa(e){return e.ctrlKey||e.metaKey}function Ja(e,t){return e instanceof Element&&e.closest(t)!==null}function Ya(e,t){let n=e.map(e=>({kind:`component`,id:je(e),node:e})),r=new Map,i=new Map;for(let e of t){let t=Xa(e.src),n=je(e.dst);`service`in e.src&&r.set(t,{kind:`service`,id:t,name:e.src.service});let a=i.get(`${t} ${n}`),o=+!!to(e);a===void 0?i.set(`${t} ${n}`,{id:`${t} ${n}`,from:t,to:n,calls:1,events:o}):(a.calls++,a.events+=o)}return{vertices:[...r.values(),...n],links:[...i.values()],calls:t}}function Xa(e){return`service`in e?Za+e.service:je(e)}var Za=`svc:`,Qa=`@`;function $a(e){return e.startsWith(Za)?Qa+e.slice(4):Ce(e)}function eo(e){return e.startsWith(Qa)?Za+e.slice(1):e.includes(`.`)?e:`${we}.${e}`}function to(e){return`event`in e.src}function no(e,t){return t===null?[]:e.filter(e=>e.from===t||e.to===t)}function ro(e,t){let n=new Set;if(t===null)return n;n.add(t);for(let r of e)r.from===t&&n.add(r.to),r.to===t&&n.add(r.from);return n}function io(e){return e.kind===`component`?Ce(e.id):e.name}function ao(e,t){return e.kind===`component`?Te(e.node,t)>0:ve(e.name,t)}function oo(e,t){let n=e.vertices.find(e=>e.id===t);if(n===void 0)return null;let r=new Map(e.vertices.map(e=>[e.id,e])),i=new Map,a=new Map,o=!1;for(let s of e.calls){let e=Xa(s.src),c=je(s.dst);if(e===t&&c===t){o=!0;continue}let l=c===t?`in`:e===t?`out`:null;if(l===null)continue;let u=l===`in`?e:c,d=r.get(u);if(d===void 0)continue;let f=l===`in`?{row:co(n,s),theirs:lo(s)}:{row:lo(s),theirs:co(d,s)};so(l===`in`?i:a,`${l}:${u}`,d,f,to(s))}return{vertex:n,incoming:[...i.values()].sort(uo),outgoing:[...a.values()].sort(uo),self:o}}function so(e,t,n,r,i){let a=e.get(t);a===void 0&&(a={id:t,vertex:n,wires:[]},e.set(t,a));let o={...r,id:`${t} ${r.row} ${r.theirs} ${i}`,event:i};a.wires.some(e=>e.id===o.id)||a.wires.push(o)}function co(e,t){if(e.kind!==`component`)return null;let n=t.src;if(`event`in n){let t=je(n),r=e.node.receivers.find(e=>e.source===t&&e.event===n.event);if(r!==void 0)return`receiver:${r.label}`}return`operation:${t.dst.operation}`}function lo(e){return`event`in e.src?`event:${e.src.event}`:`operation`in e.src?`operation:${e.src.operation}`:null}function uo(e,t){return e.vertex.kind===t.vertex.kind?e.vertex.id.localeCompare(t.vertex.id):e.vertex.kind===`service`?1:-1}var fo=ae(null),po=`card`,mo=`transition-spring transition-morph`;function ho(e){return`card-`+e.replace(/[^a-z0-9]+/gi,`-`)}async function go(e){fo.set(e),await h(),await se(`${oe}/${$a(e)}/`)}async function _o(){window.navigation?.canGoBack===!0?window.history.back():await se(`${oe}/`)}var vo=4,yo=(e,t)=>{let n=t,r=null;return e.addEventListener(`pointerdown`,i),e.addEventListener(`click`,a),e.addEventListener(`keydown`,o),{update:e=>n=e,destroy:()=>{e.removeEventListener(`pointerdown`,i),e.removeEventListener(`click`,a),e.removeEventListener(`keydown`,o)}};function i(e){r={x:e.clientX,y:e.clientY}}function a(t){let i=r;if(r=null,!(i!==null&&Math.hypot(t.clientX-i.x,t.clientY-i.y)>vo)){if(t.target instanceof Element){let n=t.target.closest(`button, a`);if(n!==null&&n!==e)return}n(t.shiftKey)}}function o(t){t.target===e&&(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),n(t.shiftKey))}},bo=(e,t)=>{let{into:n,id:r}=t,i=new ResizeObserver(()=>a());return i.observe(e),{update:e=>{n=e.into,r=e.id,a()},destroy:()=>i.disconnect()};function a(){n.set(r,{width:e.offsetWidth,height:e.offsetHeight})}},$={width:220,height:61,gap:32,row:20},xo={height:40},So={width:400,height:320},Co=.25,wo={height:20,prefix:`band:`},To=6,Eo=32;function Do(e,t,n=4){let r=new Map,i=e.vertices.filter(e=>e.kind===`service`),a=e.vertices.filter(e=>e.kind===`component`).sort(Mo),o={x:$.width+$.gap,y:$.height+$.row},s=[{label:`user`,of:a.filter(e=>!xe(e.node))},{label:`system`,of:a.filter(e=>xe(e.node))}].filter(e=>e.of.length>0),c=[],l=0;for(let e of s)c.push({id:wo.prefix+e.label,label:e.label,x:0,y:l,width:0}),l+=wo.height+$.row,e.of.forEach((e,t)=>r.set(e.id,{x:t%n*o.x,y:l+Math.floor(t/n)*o.y})),l+=Math.ceil(e.of.length/n)*o.y;i.forEach((e,t)=>r.set(e.id,{x:t%n*o.x,y:l+Math.floor(t/n)*(xo.height+$.row)}));let u=[...r.values()].reduce((e,t)=>Math.max(e,t.x),0)+$.width;for(let e of c)e.width=u,r.set(e.id,{x:e.x,y:e.y});let d=new Map(i.map(e=>[e.id,xo.height]));jo(r,t,e=>({width:e.startsWith(wo.prefix)?u:$.width,height:e.startsWith(wo.prefix)?wo.height:d.get(e)??$.height}));for(let e of c){let t=r.get(e.id);t!==void 0&&Object.assign(e,t),r.delete(e.id)}return{positions:r,bands:c}}function Oo(e,t,n,r=null){let i=new Map([[e.vertex.id,{x:0,y:0}]]),a=Ao(n,e.vertex.id,So).height/2;return o(e.incoming,-1),o(e.outgoing,1),jo(i,t,t=>Ao(n,t,t===e.vertex.id?So:$));function o(e,t){let o=$.width+$.gap;ko(e).forEach((e,s)=>{let c=$.gap+s*o,l=e.map(e=>Ao(n,e.id,$).height),u=l.reduce((e,t)=>e+t,0)+$.row*(e.length-1),d=a-u/2;e.forEach((e,n)=>{let a=e.id===r?So.width:$.width;i.set(e.id,{x:t<0?-(c+a):So.width+c,y:d}),d+=l[n]+$.row})})}}function ko(e){if(e.length===0)return[];if(e.length<=To)return[e];let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}function Ao(e,t,n){return e.get(t)??n}function jo(e,t,n){if(e.size===0)return e;let r={left:1/0,top:1/0,right:-1/0,bottom:-1/0};for(let[t,i]of e){let{width:e,height:a}=n(t);r.left=Math.min(r.left,i.x),r.top=Math.min(r.top,i.y),r.right=Math.max(r.right,i.x+e),r.bottom=Math.max(r.bottom,i.y+a)}let i={width:r.right-r.left,height:r.bottom-r.top},a={x:Math.max(Eo,(t.width-i.width)/2)-r.left,y:Math.max(Eo,(t.height-i.height)/2)-r.top};for(let[t,n]of e)e.set(t,{x:n.x+a.x,y:n.y+a.y});return e}function Mo(e,t){return e.id.localeCompare(t.id)}var No=new Set([`$$slots`,`$$events`,`$$legacy`]);function Po(e,t){let n=b(t,No),r=[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`}],[`circle`,{cx:`12`,cy:`12`,r:`4`}]];ce(e,P({name:`bolt`},()=>n,{get iconNode(){return r}}))}var Fo=c(`<!> <!>`,1);function Io(e,n){r(n,!0);var i=A(),o=I(i);{let e=w(()=>[`bg-muted items-center`,n.class]);S(o,()=>he,(r,i)=>{i(r,{variant:`muted`,size:`sm`,get style(){return`height: ${xo.height??``}px`},get class(){return g(e)},children:(e,r)=>{var i=Fo(),o=I(i);S(o,()=>Pe,(e,t)=>{t(e,{children:(e,t)=>{Po(e,{class:`text-muted-foreground size-4`})},$$slots:{default:!0}})});var s=N(o,2);S(s,()=>L,(e,r)=>{r(e,{children:(e,r)=>{var i=A(),o=I(i);S(o,()=>Me,(e,r)=>{r(e,{class:`gap-0`,children:(e,r)=>{d();var i=a();v(()=>u(i,n.name)),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})})}t(e,i),p()}var Lo=1/3,Ro=2/3;function zo(e,t,n){return Vo(e,t,n,Ro)}function Bo(e,t,n){return Vo(e,t,n,Lo)}function Vo(e,t,n,r){let i=t>=e.x+e.width/2,a=e.y+(n?.y??e.height*r);if(n?.x===void 0)return{x:i?e.x+e.width:e.x,y:a,away:i?1:-1};let o=e.x+n.x;return{x:o,y:a,away:t>=o?1:-1}}function Ho(e,t){let n=Math.max(40,Math.abs(t.x-e.x)/2),r={x:e.x+e.away*n,y:e.y},i={x:t.x+t.away*n,y:t.y};return`M${e.x},${e.y} C${r.x},${r.y} ${i.x},${i.y} ${t.x},${t.y}`}function Uo(e){let t=e.x+e.width/2,n=e.y+e.height;return`M${t-10},${n} C${t-28},${n+28} ${t+28},${n+28} ${t+10},${n}`}var Wo=l(`<path fill="none" stroke="currentColor" stroke-width="1.5" class="transition-opacity" marker-end="url(#map-arrow)"></path>`),Go=l(`<svg aria-hidden="true"><defs><marker id="map-arrow" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M0,0 L8,4 L0,8 z" fill="currentColor"></path></marker></defs><!></svg>`);function Ko(e,i){r(i,!0);let a=w(()=>i.arcs.map(e=>{let t=o(e.from),n=o(e.to);if(t===null||n===null)return null;let r=e.from===e.to?Uo(t):Ho(zo(t,n.x,e.out),Bo(n,t.x,e.in));return{id:e.id,d:r,dashed:e.dashed===!0,dimmed:e.dimmed===!0}}).filter(e=>e!==null));function o(e){let t=i.positions.get(e),n=i.sizes.get(e);return t===void 0||n===void 0?null:{...t,...n}}var s=Go(),c=N(E(s));n(c,17,()=>g(a),e=>e.id,(e,n)=>{var r=Wo();v(()=>{D(r,`d`,g(n).d),D(r,`stroke-dasharray`,g(n).dashed?`4 3`:void 0),D(r,`opacity`,g(n).dimmed?Co:void 0)}),t(e,r)}),M(s),v(()=>te(s,0,ee([`pointer-events-none absolute overflow-visible`,i.class]))),t(e,s),p()}var qo=c(`<span class="text-muted-foreground"> </span>`),Jo=c(`<!> `,1),Yo=c(`<!> <!>`,1),Xo=c(`<button type="button" class="text-muted-foreground hover:bg-muted hover:text-foreground -m-1 shrink-0
|
|
1
|
+
import{$ as e,A as t,C as n,Ct as r,E as i,F as a,I as o,L as s,M as c,N as l,O as u,Ot as d,R as f,St as p,T as m,U as h,V as g,X as _,Y as v,_ as y,a as b,at as x,b as S,c as C,ct as w,dt as T,et as E,f as D,ft as O,h as ee,i as k,j as A,jt as j,kt as M,m as te,nt as N,o as P,p as ne,q as F,rt as re,st as ie,tt as I,vt as ae}from"./sTot5bBi.js";import{s as oe,t as se}from"./2cMl4Q7X.js";import"./CnNGqUzH.js";import"./xihTtKlq.js";import{F as ce,I as le,N as ue,c as de,l as fe}from"./Bz9y_Qt4.js";import"./DYLJQF2a.js";import{$ as pe,C as me,S as L,_ as he,_t as ge,c as _e,d as ve,et as ye,f as be,g as xe,gt as Se,h as Ce,l as we,m as Te,n as Ee,o as De,p as Oe,s as ke,t as Ae,u as je,v as Me,x as Ne,y as Pe}from"./DVtRwJ-b.js";import{t as Fe}from"./DVKqjwr0.js";var Ie={value:()=>{}};function Le(){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 Re(n)}function Re(e){this._=e}function ze(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}})}Re.prototype=Le.prototype={constructor:Re,on:function(e,t){var n=this._,r=ze(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Be(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]=Ve(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Ve(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 Re(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 Be(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Ve(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Ie,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var He={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 Ue(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),He.hasOwnProperty(t)?{space:He[t],local:e}:e}function We(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 Ge(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ke(e){var t=Ue(e);return(t.local?Ge:We)(t)}function qe(){}function Je(e){return e==null?qe:function(){return this.querySelector(e)}}function Ye(e){typeof e!=`function`&&(e=Je(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 R(r,this._parents)}function Xe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ze(){return[]}function Qe(e){return e==null?Ze:function(){return this.querySelectorAll(e)}}function $e(e){return function(){return Xe(e.apply(this,arguments))}}function et(e){e=typeof e==`function`?$e(e):Qe(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 R(r,i)}function tt(e){return function(){return this.matches(e)}}function nt(e){return function(t){return t.matches(e)}}var rt=Array.prototype.find;function it(e){return function(){return rt.call(this.children,e)}}function at(){return this.firstElementChild}function ot(e){return this.select(e==null?at:it(typeof e==`function`?e:nt(e)))}var st=Array.prototype.filter;function ct(){return Array.from(this.children)}function lt(e){return function(){return st.call(this.children,e)}}function ut(e){return this.selectAll(e==null?ct:lt(typeof e==`function`?e:nt(e)))}function dt(e){typeof e!=`function`&&(e=tt(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 R(r,this._parents)}function ft(e){return Array(e.length)}function pt(){return new R(this._enter||this._groups.map(ft),this._parents)}function mt(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}mt.prototype={constructor:mt,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 ht(e){return function(){return e}}function gt(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 mt(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function _t(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 mt(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function vt(e){return e.__data__}function yt(e,t){if(!arguments.length)return Array.from(this,vt);var n=t?_t:gt,r=this._parents,i=this._groups;typeof e!=`function`&&(e=ht(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=bt(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 R(o,r),o._enter=s,o._exit=c,o}function bt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function xt(){return new R(this._exit||this._groups.map(ft),this._parents)}function St(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 Ct(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 R(s,this._parents)}function wt(){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 Tt(e){e||=Et;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 R(i,this._parents).order()}function Et(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Dt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Ot(){return Array.from(this)}function kt(){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 At(){let e=0;for(let t of this)++e;return e}function jt(){return!this.node()}function Mt(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 Nt(e){return function(){this.removeAttribute(e)}}function Pt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ft(e,t){return function(){this.setAttribute(e,t)}}function It(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Lt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Rt(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 zt(e,t){var n=Ue(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?Pt:Nt:typeof t==`function`?n.local?Rt:Lt:n.local?It:Ft)(n,t))}function Bt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Vt(e){return function(){this.style.removeProperty(e)}}function Ht(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ut(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Wt(e,t,n){return arguments.length>1?this.each((t==null?Vt:typeof t==`function`?Ut:Ht)(e,t,n??``)):Gt(this.node(),e)}function Gt(e,t){return e.style.getPropertyValue(t)||Bt(e).getComputedStyle(e,null).getPropertyValue(t)}function Kt(e){return function(){delete this[e]}}function qt(e,t){return function(){this[e]=t}}function Jt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Yt(e,t){return arguments.length>1?this.each((t==null?Kt:typeof t==`function`?Jt:qt)(e,t)):this.node()[e]}function Xt(e){return e.trim().split(/^|\s+/)}function Zt(e){return e.classList||new Qt(e)}function Qt(e){this._node=e,this._names=Xt(e.getAttribute(`class`)||``)}Qt.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 $t(e,t){for(var n=Zt(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function en(e,t){for(var n=Zt(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function tn(e){return function(){$t(this,e)}}function nn(e){return function(){en(this,e)}}function rn(e,t){return function(){(t.apply(this,arguments)?$t:en)(this,e)}}function an(e,t){var n=Xt(e+``);if(arguments.length<2){for(var r=Zt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?rn:t?tn:nn)(n,t))}function on(){this.textContent=``}function sn(e){return function(){this.textContent=e}}function cn(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function ln(e){return arguments.length?this.each(e==null?on:(typeof e==`function`?cn:sn)(e)):this.node().textContent}function un(){this.innerHTML=``}function dn(e){return function(){this.innerHTML=e}}function fn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function pn(e){return arguments.length?this.each(e==null?un:(typeof e==`function`?fn:dn)(e)):this.node().innerHTML}function mn(){this.nextSibling&&this.parentNode.appendChild(this)}function hn(){return this.each(mn)}function gn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _n(){return this.each(gn)}function vn(e){var t=typeof e==`function`?e:Ke(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function yn(){return null}function bn(e,t){var n=typeof e==`function`?e:Ke(e),r=t==null?yn:typeof t==`function`?t:Je(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function xn(){var e=this.parentNode;e&&e.removeChild(this)}function Sn(){return this.each(xn)}function Cn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Tn(e){return this.select(e?wn:Cn)}function En(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Dn(e){return function(t){e.call(this,t,this.__data__)}}function On(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 kn(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 An(e,t,n){return function(){var r=this.__on,i,a=Dn(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 jn(e,t,n){var r=On(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?An:kn,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Mn(e,t,n){var r=Bt(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 Nn(e,t){return function(){return Mn(this,e,t)}}function Pn(e,t){return function(){return Mn(this,e,t.apply(this,arguments))}}function Fn(e,t){return this.each((typeof t==`function`?Pn:Nn)(e,t))}function*In(){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 Ln=[null];function R(e,t){this._groups=e,this._parents=t}function Rn(){return new R([[document.documentElement]],Ln)}function zn(){return this}R.prototype=Rn.prototype={constructor:R,select:Ye,selectAll:et,selectChild:ot,selectChildren:ut,filter:dt,data:yt,enter:pt,exit:xt,join:St,merge:Ct,selection:zn,order:wt,sort:Tt,call:Dt,nodes:Ot,node:kt,size:At,empty:jt,each:Mt,attr:zt,style:Wt,property:Yt,classed:an,text:ln,html:pn,raise:hn,lower:_n,append:vn,insert:bn,remove:Sn,clone:Tn,datum:En,on:jn,dispatch:Fn,[Symbol.iterator]:In};function z(e){return typeof e==`string`?new R([[document.querySelector(e)]],[document.documentElement]):new R([[e]],Ln)}function Bn(e){let t;for(;t=e.sourceEvent;)e=t;return e}function B(e,t){if(e=Bn(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 Vn={capture:!0,passive:!1};function Hn(e){e.preventDefault(),e.stopImmediatePropagation()}function Un(e){var t=e.document.documentElement,n=z(e).on(`dragstart.drag`,Hn,Vn);`onselectstart`in t?n.on(`selectstart.drag`,Hn,Vn):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function Wn(e,t){var n=e.document.documentElement,r=z(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,Hn,Vn),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 Gn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Kn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function qn(){}var Jn=.7,Yn=1/Jn,V=`\\s*([+-]?\\d+)\\s*`,Xn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,H=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Zn=/^#([0-9a-f]{3,8})$/,Qn=RegExp(`^rgb\\(${V},${V},${V}\\)$`),$n=RegExp(`^rgb\\(${H},${H},${H}\\)$`),er=RegExp(`^rgba\\(${V},${V},${V},${Xn}\\)$`),tr=RegExp(`^rgba\\(${H},${H},${H},${Xn}\\)$`),nr=RegExp(`^hsl\\(${Xn},${H},${H}\\)$`),rr=RegExp(`^hsla\\(${Xn},${H},${H},${Xn}\\)$`),ir={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};Gn(qn,lr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ar,formatHex:ar,formatHex8:or,formatHsl:sr,formatRgb:cr,toString:cr});function ar(){return this.rgb().formatHex()}function or(){return this.rgb().formatHex8()}function sr(){return yr(this).formatHsl()}function cr(){return this.rgb().formatRgb()}function lr(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Zn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ur(t):n===3?new U(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?dr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?dr(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=Qn.exec(e))?new U(t[1],t[2],t[3],1):(t=$n.exec(e))?new U(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=er.exec(e))?dr(t[1],t[2],t[3],t[4]):(t=tr.exec(e))?dr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nr.exec(e))?vr(t[1],t[2]/100,t[3]/100,1):(t=rr.exec(e))?vr(t[1],t[2]/100,t[3]/100,t[4]):ir.hasOwnProperty(e)?ur(ir[e]):e===`transparent`?new U(NaN,NaN,NaN,0):null}function ur(e){return new U(e>>16&255,e>>8&255,e&255,1)}function dr(e,t,n,r){return r<=0&&(e=t=n=NaN),new U(e,t,n,r)}function fr(e){return e instanceof qn||(e=lr(e)),e?(e=e.rgb(),new U(e.r,e.g,e.b,e.opacity)):new U}function pr(e,t,n,r){return arguments.length===1?fr(e):new U(e,t,n,r??1)}function U(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Gn(U,pr,Kn(qn,{brighter(e){return e=e==null?Yn:Yn**+e,new U(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Jn:Jn**+e,new U(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new U(W(this.r),W(this.g),W(this.b),_r(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:mr,formatHex:mr,formatHex8:hr,formatRgb:gr,toString:gr}));function mr(){return`#${G(this.r)}${G(this.g)}${G(this.b)}`}function hr(){return`#${G(this.r)}${G(this.g)}${G(this.b)}${G((isNaN(this.opacity)?1:this.opacity)*255)}`}function gr(){let e=_r(this.opacity);return`${e===1?`rgb(`:`rgba(`}${W(this.r)}, ${W(this.g)}, ${W(this.b)}${e===1?`)`:`, ${e})`}`}function _r(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function W(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function G(e){return e=W(e),(e<16?`0`:``)+e.toString(16)}function vr(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new K(e,t,n,r)}function yr(e){if(e instanceof K)return new K(e.h,e.s,e.l,e.opacity);if(e instanceof qn||(e=lr(e)),!e)return new K;if(e instanceof K)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 K(o,s,c,e.opacity)}function br(e,t,n,r){return arguments.length===1?yr(e):new K(e,t,n,r??1)}function K(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Gn(K,br,Kn(qn,{brighter(e){return e=e==null?Yn:Yn**+e,new K(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Jn:Jn**+e,new K(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 U(Cr(e>=240?e-240:e+120,i,r),Cr(e,i,r),Cr(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new K(xr(this.h),Sr(this.s),Sr(this.l),_r(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=_r(this.opacity);return`${e===1?`hsl(`:`hsla(`}${xr(this.h)}, ${Sr(this.s)*100}%, ${Sr(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function xr(e){return e=(e||0)%360,e<0?e+360:e}function Sr(e){return Math.max(0,Math.min(1,e||0))}function Cr(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 wr=e=>()=>e;function Tr(e,t){return function(n){return e+n*t}}function Er(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Dr(e){return(e=+e)==1?Or:function(t,n){return n-t?Er(t,n,e):wr(isNaN(t)?n:t)}}function Or(e,t){var n=t-e;return n?Tr(e,n):wr(isNaN(e)?t:e)}var kr=(function e(t){var n=Dr(t);function r(e,t){var r=n((e=pr(e)).r,(t=pr(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Or(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 q(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Ar=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jr=new RegExp(Ar.source,`g`);function Mr(e){return function(){return e}}function Nr(e){return function(t){return e(t)+``}}function Pr(e,t){var n=Ar.lastIndex=jr.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Ar.exec(e))&&(i=jr.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:q(r,i)})),n=jr.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Nr(c[0].x):Mr(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 Fr=180/Math.PI,Ir={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Lr(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)*Fr,skewX:Math.atan(c)*Fr,scaleX:o,scaleY:s}}var Rr;function zr(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Ir:Lr(t.a,t.b,t.c,t.d,t.e,t.f)}function Br(e){return e==null||(Rr||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Rr.setAttribute(`transform`,e),!(e=Rr.transform.baseVal.consolidate()))?Ir:(e=e.matrix,Lr(e.a,e.b,e.c,e.d,e.e,e.f))}function Vr(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:q(e,i)},{i:c-2,x:q(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:q(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:q(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:q(e,n)},{i:s-2,x:q(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 Hr=Vr(zr,`px, `,`px)`,`deg)`),Ur=Vr(Br,`, `,`)`,`)`),Wr=1e-12;function Gr(e){return((e=Math.exp(e))+1/e)/2}function Kr(e){return((e=Math.exp(e))-1/e)/2}function qr(e){return((e=Math.exp(2*e))-1)/(e+1)}var Jr=(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<Wr)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=Gr(y),c=s/(n*g)*(i*qr(t*r+y)-Kr(y));return[a+c*d,o+c*f,s*i/Gr(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),Yr=0,Xr=0,Zr=0,Qr=1e3,$r,ei,ti=0,ni=0,ri=0,ii=typeof performance==`object`&&performance.now?performance:Date,ai=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function oi(){return ni||=(ai(si),ii.now()+ri)}function si(){ni=0}function ci(){this._call=this._time=this._next=null}ci.prototype=li.prototype={constructor:ci,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?oi():+n)+(t==null?0:+t),!this._next&&ei!==this&&(ei?ei._next=this:$r=this,ei=this),this._call=e,this._time=n,mi()},stop:function(){this._call&&(this._call=null,this._time=1/0,mi())}};function li(e,t,n){var r=new ci;return r.restart(e,t,n),r}function ui(){oi(),++Yr;for(var e=$r,t;e;)(t=ni-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Yr}function di(){ni=(ti=ii.now())+ri,Yr=Xr=0;try{ui()}finally{Yr=0,pi(),ni=0}}function fi(){var e=ii.now(),t=e-ti;t>Qr&&(ri-=t,ti=e)}function pi(){for(var e,t=$r,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:$r=n);ei=e,mi(r)}function mi(e){Yr||(Xr&&=clearTimeout(Xr),e-ni>24?(e<1/0&&(Xr=setTimeout(di,e-ii.now()-ri)),Zr&&=clearInterval(Zr)):(Zr||=(ti=ii.now(),setInterval(fi,Qr)),Yr=1,ai(di)))}function hi(e,t,n){var r=new ci;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var gi=Le(`start`,`end`,`cancel`,`interrupt`),_i=[];function vi(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;bi(e,n,{name:t,index:r,group:i,on:gi,tween:_i,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function yi(e,t){var n=Y(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function J(e,t){var n=Y(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Y(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function bi(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=li(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 hi(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(hi(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 xi(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 Si(e){return this.each(function(){xi(this,e)})}function Ci(e,t){var n,r;return function(){var i=J(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 wi(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=J(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 Ti(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Y(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?Ci:wi)(n,e,t))}function Ei(e,t,n){var r=e._id;return e.each(function(){var e=J(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Y(e,r).value[t]}}function Di(e,t){var n;return(typeof t==`number`?q:t instanceof lr?kr:(n=lr(t))?(t=n,kr):Pr)(e,t)}function Oi(e){return function(){this.removeAttribute(e)}}function ki(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ai(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 ji(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 Mi(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 Ni(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 Pi(e,t){var n=Ue(e),r=n===`transform`?Ur:Di;return this.attrTween(e,typeof t==`function`?(n.local?Ni:Mi)(n,r,Ei(this,`attr.`+e,t)):t==null?(n.local?ki:Oi)(n):(n.local?ji:Ai)(n,r,t))}function Fi(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Ii(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Li(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ii(e,i)),n}return i._value=t,i}function Ri(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Fi(e,i)),n}return i._value=t,i}function zi(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=Ue(e);return this.tween(n,(r.local?Li:Ri)(r,t))}function Bi(e,t){return function(){yi(this,e).delay=+t.apply(this,arguments)}}function Vi(e,t){return t=+t,function(){yi(this,e).delay=t}}function Hi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Bi:Vi)(t,e)):Y(this.node(),t).delay}function Ui(e,t){return function(){J(this,e).duration=+t.apply(this,arguments)}}function Wi(e,t){return t=+t,function(){J(this,e).duration=t}}function Gi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Ui:Wi)(t,e)):Y(this.node(),t).duration}function Ki(e,t){if(typeof t!=`function`)throw Error();return function(){J(this,e).ease=t}}function qi(e){var t=this._id;return arguments.length?this.each(Ki(t,e)):Y(this.node(),t).ease}function Ji(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();J(this,e).ease=n}}function Yi(e){if(typeof e!=`function`)throw Error();return this.each(Ji(this._id,e))}function Xi(e){typeof e!=`function`&&(e=tt(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 X(r,this._parents,this._name,this._id)}function Zi(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 X(o,this._parents,this._name,this._id)}function Qi(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 $i(e,t,n){var r,i,a=Qi(t)?yi:J;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function ea(e,t){var n=this._id;return arguments.length<2?Y(this.node(),n).on.on(e):this.each($i(n,e,t))}function ta(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function na(){return this.on(`end.remove`,ta(this._id))}function ra(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Je(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,vi(l[f],t,n,f,l,Y(u,n)));return new X(a,this._parents,t,n)}function ia(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Qe(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=Y(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&vi(p,t,n,h,f,m);a.push(f),o.push(u)}return new X(a,o,t,n)}var aa=Rn.prototype.constructor;function oa(){return new aa(this._groups,this._parents)}function sa(e,t){var n,r,i;return function(){var a=Gt(this,e),o=(this.style.removeProperty(e),Gt(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function ca(e){return function(){this.style.removeProperty(e)}}function la(e,t,n){var r,i=n+``,a;return function(){var o=Gt(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function ua(e,t,n){var r,i,a;return function(){var o=Gt(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),Gt(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function da(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=J(this,e),l=c.on,u=c.value[a]==null?s||=ca(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function fa(e,t,n){var r=(e+=``)==`transform`?Hr:Di;return t==null?this.styleTween(e,sa(e,r)).on(`end.style.`+e,ca(e)):typeof t==`function`?this.styleTween(e,ua(e,r,Ei(this,`style.`+e,t))).each(da(this._id,e)):this.styleTween(e,la(e,r,t),n).on(`end.style.`+e,null)}function pa(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function ma(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&pa(e,a,n)),r}return a._value=t,a}function ha(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,ma(e,t,n??``))}function ga(e){return function(){this.textContent=e}}function _a(e){return function(){var t=e(this);this.textContent=t??``}}function va(e){return this.tween(`text`,typeof e==`function`?_a(Ei(this,`text`,e)):ga(e==null?``:e+``))}function ya(e){return function(t){this.textContent=e.call(this,t)}}function ba(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&ya(r)),t}return r._value=e,r}function xa(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,ba(e))}function Sa(){for(var e=this._name,t=this._id,n=Ta(),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=Y(c,t);vi(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new X(r,this._parents,e,n)}function Ca(){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=J(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 wa=0;function X(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ta(){return++wa}var Z=Rn.prototype;X.prototype={constructor:X,select:ra,selectAll:ia,selectChild:Z.selectChild,selectChildren:Z.selectChildren,filter:Xi,merge:Zi,selection:oa,transition:Sa,call:Z.call,nodes:Z.nodes,node:Z.node,size:Z.size,empty:Z.empty,each:Z.each,on:ea,attr:Pi,attrTween:zi,style:fa,styleTween:ha,text:va,textTween:xa,remove:na,tween:Ti,delay:Hi,duration:Gi,ease:qi,easeVarying:Yi,end:Ca,[Symbol.iterator]:Z[Symbol.iterator]};function Ea(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Da={time:null,delay:0,duration:250,ease:Ea};function Oa(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function ka(e){var t,n;e instanceof X?(t=e._id,e=e._name):(t=Ta(),(n=Da).time=oi(),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])&&vi(c,e,t,l,o,n||Oa(c,t));return new X(r,this._parents,e,t)}Rn.prototype.interrupt=Si,Rn.prototype.transition=ka;var Aa=e=>()=>e;function ja(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 Q(e,t,n){this.k=e,this.x=t,this.y=n}Q.prototype={constructor:Q,scale:function(e){return e===1?this:new Q(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Q(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 Ma=new Q(1,0,0);Na.prototype=Q.prototype;function Na(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Ma;return e.__zoom}function Pa(e){e.stopImmediatePropagation()}function Fa(e){e.preventDefault(),e.stopImmediatePropagation()}function Ia(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function La(){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 Ra(){return this.__zoom||Ma}function za(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ba(){return navigator.maxTouchPoints||`ontouchstart`in this}function Va(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 Ha(){var e=Ia,t=La,n=Va,r=za,i=Ba,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=Jr,l=Le(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,Ra).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,E).filter(i).on(`touchstart.zoom`,D).on(`touchmove.zoom`,O).on(`touchend.zoom touchcancel.zoom`,ee).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`,Ra),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(Ma.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 Q(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 Q(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 Q(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 C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.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=z(this.that).datum();l.call(e,this.that,new ja(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(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=B(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)],xi(this),s.start();Fa(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 T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=z(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=B(t,i),l=t.clientX,u=t.clientY;Un(t.view),Pa(t),a.mouse=[c,this.__zoom.invert(c)],xi(this),a.start();function d(e){if(Fa(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]=B(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),Wn(e.view,a.moved),Fa(e),a.event(e).end()}}function E(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=B(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);Fa(r),s>0?z(this).transition().duration(s).call(x,d,c,r):z(this).call(_.transform,d,c,r)}}function D(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(Pa(t),s=0;s<i;++s)c=r[s],l=B(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)),xi(this),a.start())}}function O(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(Fa(e),s=0;s<a;++s)c=i[s],l=B(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 ee(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(Pa(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=B(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=z(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:Aa(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:Aa(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:Aa(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:Aa([[+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 Ua=[.25,2],Wa=16,Ga=(e,t)=>{let n=t.onchange,r=Ha().scaleExtent(Ua).filter(Ka).on(`zoom`,e=>n(e.transform)),i=z(e);return i.call(r).on(`dblclick.zoom`,null),e.addEventListener(`wheel`,a,{passive:!1}),t.onready?.({reset:()=>r.transform(i,Ma)}),{update:e=>{n=e.onchange},destroy:()=>{e.removeEventListener(`wheel`,a),z(e).on(`.zoom`,null)}};function a(t){if(qa(t)||Ja(t.target,`[data-scrollable]`))return;t.preventDefault();let n=t.deltaMode===WheelEvent.DOM_DELTA_LINE?Wa:1,{k:a}=Na(e);r.translateBy(i,-t.deltaX*n/a,-t.deltaY*n/a)}};function Ka(e){return e.type===`wheel`?qa(e)&&!Ja(e.target,`[data-scrollable]`):e.ctrlKey||`button`in e&&e.button!==0?!1:!Ja(e.target,`button, a, [data-scrollable]`)}function qa(e){return e.ctrlKey||e.metaKey}function Ja(e,t){return e instanceof Element&&e.closest(t)!==null}function Ya(e,t){let n=e.map(e=>({kind:`component`,id:je(e),node:e})),r=new Map,i=new Map;for(let e of t){let t=Xa(e.src),n=je(e.dst);`service`in e.src&&r.set(t,{kind:`service`,id:t,name:e.src.service});let a=i.get(`${t} ${n}`),o=+!!to(e);a===void 0?i.set(`${t} ${n}`,{id:`${t} ${n}`,from:t,to:n,calls:1,events:o}):(a.calls++,a.events+=o)}return{vertices:[...r.values(),...n],links:[...i.values()],calls:t}}function Xa(e){return`service`in e?Za+e.service:je(e)}var Za=`svc:`,Qa=`@`;function $a(e){return e.startsWith(Za)?Qa+e.slice(4):Ce(e)}function eo(e){return e.startsWith(Qa)?Za+e.slice(1):e.includes(`.`)?e:`${we}.${e}`}function to(e){return`event`in e.src}function no(e,t){return t===null?[]:e.filter(e=>e.from===t||e.to===t)}function ro(e,t){let n=new Set;if(t===null)return n;n.add(t);for(let r of e)r.from===t&&n.add(r.to),r.to===t&&n.add(r.from);return n}function io(e){return e.kind===`component`?Ce(e.id):e.name}function ao(e,t){return e.kind===`component`?Te(e.node,t)>0:ve(e.name,t)}function oo(e,t){let n=e.vertices.find(e=>e.id===t);if(n===void 0)return null;let r=new Map(e.vertices.map(e=>[e.id,e])),i=new Map,a=new Map,o=!1;for(let s of e.calls){let e=Xa(s.src),c=je(s.dst);if(e===t&&c===t){o=!0;continue}let l=c===t?`in`:e===t?`out`:null;if(l===null)continue;let u=l===`in`?e:c,d=r.get(u);if(d===void 0)continue;let f=l===`in`?{row:co(n,s),theirs:lo(s)}:{row:lo(s),theirs:co(d,s)};so(l===`in`?i:a,`${l}:${u}`,d,f,to(s))}return{vertex:n,incoming:[...i.values()].sort(uo),outgoing:[...a.values()].sort(uo),self:o}}function so(e,t,n,r,i){let a=e.get(t);a===void 0&&(a={id:t,vertex:n,wires:[]},e.set(t,a));let o={...r,id:`${t} ${r.row} ${r.theirs} ${i}`,event:i};a.wires.some(e=>e.id===o.id)||a.wires.push(o)}function co(e,t){if(e.kind!==`component`)return null;let n=t.src;if(`event`in n){let t=je(n),r=e.node.receivers.find(e=>e.source===t&&e.event===n.event);if(r!==void 0)return`receiver:${r.label}`}return`operation:${t.dst.operation}`}function lo(e){return`event`in e.src?`event:${e.src.event}`:`operation`in e.src?`operation:${e.src.operation}`:null}function uo(e,t){return e.vertex.kind===t.vertex.kind?e.vertex.id.localeCompare(t.vertex.id):e.vertex.kind===`service`?1:-1}var fo=ae(null),po=`card`,mo=`transition-spring transition-morph`;function ho(e){return`card-`+e.replace(/[^a-z0-9]+/gi,`-`)}async function go(e){fo.set(e),await h(),await se(`${oe}/${$a(e)}/`)}async function _o(){window.navigation?.canGoBack===!0?window.history.back():await se(`${oe}/`)}var vo=4,yo=(e,t)=>{let n=t,r=null;return e.addEventListener(`pointerdown`,i),e.addEventListener(`click`,a),e.addEventListener(`keydown`,o),{update:e=>n=e,destroy:()=>{e.removeEventListener(`pointerdown`,i),e.removeEventListener(`click`,a),e.removeEventListener(`keydown`,o)}};function i(e){r={x:e.clientX,y:e.clientY}}function a(t){let i=r;if(r=null,!(i!==null&&Math.hypot(t.clientX-i.x,t.clientY-i.y)>vo)){if(t.target instanceof Element){let n=t.target.closest(`button, a`);if(n!==null&&n!==e)return}n(t.shiftKey)}}function o(t){t.target===e&&(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),n(t.shiftKey))}},bo=(e,t)=>{let{into:n,id:r}=t,i=new ResizeObserver(()=>a());return i.observe(e),{update:e=>{n=e.into,r=e.id,a()},destroy:()=>i.disconnect()};function a(){n.set(r,{width:e.offsetWidth,height:e.offsetHeight})}},$={width:220,height:61,gap:32,row:20},xo={height:40},So={width:400,height:320},Co=.25,wo={height:20,prefix:`band:`},To=6,Eo=32;function Do(e,t,n=4){let r=new Map,i=e.vertices.filter(e=>e.kind===`service`),a=e.vertices.filter(e=>e.kind===`component`).sort(Mo),o={x:$.width+$.gap,y:$.height+$.row},s=[{label:`user`,of:a.filter(e=>!xe(e.node))},{label:`system`,of:a.filter(e=>xe(e.node))}].filter(e=>e.of.length>0),c=[],l=0;for(let e of s)c.push({id:wo.prefix+e.label,label:e.label,x:0,y:l,width:0}),l+=wo.height+$.row,e.of.forEach((e,t)=>r.set(e.id,{x:t%n*o.x,y:l+Math.floor(t/n)*o.y})),l+=Math.ceil(e.of.length/n)*o.y;i.forEach((e,t)=>r.set(e.id,{x:t%n*o.x,y:l+Math.floor(t/n)*(xo.height+$.row)}));let u=[...r.values()].reduce((e,t)=>Math.max(e,t.x),0)+$.width;for(let e of c)e.width=u,r.set(e.id,{x:e.x,y:e.y});let d=new Map(i.map(e=>[e.id,xo.height]));jo(r,t,e=>({width:e.startsWith(wo.prefix)?u:$.width,height:e.startsWith(wo.prefix)?wo.height:d.get(e)??$.height}));for(let e of c){let t=r.get(e.id);t!==void 0&&Object.assign(e,t),r.delete(e.id)}return{positions:r,bands:c}}function Oo(e,t,n,r=null){let i=new Map([[e.vertex.id,{x:0,y:0}]]),a=Ao(n,e.vertex.id,So).height/2;return o(e.incoming,-1),o(e.outgoing,1),jo(i,t,t=>Ao(n,t,t===e.vertex.id?So:$));function o(e,t){let o=$.width+$.gap;ko(e).forEach((e,s)=>{let c=$.gap+s*o,l=e.map(e=>Ao(n,e.id,$).height),u=l.reduce((e,t)=>e+t,0)+$.row*(e.length-1),d=a-u/2;e.forEach((e,n)=>{let a=e.id===r?So.width:$.width;i.set(e.id,{x:t<0?-(c+a):So.width+c,y:d}),d+=l[n]+$.row})})}}function ko(e){if(e.length===0)return[];if(e.length<=To)return[e];let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}function Ao(e,t,n){return e.get(t)??n}function jo(e,t,n){if(e.size===0)return e;let r={left:1/0,top:1/0,right:-1/0,bottom:-1/0};for(let[t,i]of e){let{width:e,height:a}=n(t);r.left=Math.min(r.left,i.x),r.top=Math.min(r.top,i.y),r.right=Math.max(r.right,i.x+e),r.bottom=Math.max(r.bottom,i.y+a)}let i={width:r.right-r.left,height:r.bottom-r.top},a={x:Math.max(Eo,(t.width-i.width)/2)-r.left,y:Math.max(Eo,(t.height-i.height)/2)-r.top};for(let[t,n]of e)e.set(t,{x:n.x+a.x,y:n.y+a.y});return e}function Mo(e,t){return e.id.localeCompare(t.id)}var No=new Set([`$$slots`,`$$events`,`$$legacy`]);function Po(e,t){let n=b(t,No),r=[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`}],[`circle`,{cx:`12`,cy:`12`,r:`4`}]];ce(e,P({name:`bolt`},()=>n,{get iconNode(){return r}}))}var Fo=c(`<!> <!>`,1);function Io(e,n){r(n,!0);var i=A(),o=I(i);{let e=w(()=>[`bg-muted items-center`,n.class]);S(o,()=>he,(r,i)=>{i(r,{variant:`muted`,size:`sm`,get style(){return`height: ${xo.height??``}px`},get class(){return g(e)},children:(e,r)=>{var i=Fo(),o=I(i);S(o,()=>Pe,(e,t)=>{t(e,{children:(e,t)=>{Po(e,{class:`text-muted-foreground size-4`})},$$slots:{default:!0}})});var s=N(o,2);S(s,()=>L,(e,r)=>{r(e,{children:(e,r)=>{var i=A(),o=I(i);S(o,()=>Me,(e,r)=>{r(e,{class:`gap-0`,children:(e,r)=>{d();var i=a();v(()=>u(i,n.name)),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})})}t(e,i),p()}var Lo=1/3,Ro=2/3;function zo(e,t,n){return Vo(e,t,n,Ro)}function Bo(e,t,n){return Vo(e,t,n,Lo)}function Vo(e,t,n,r){let i=t>=e.x+e.width/2,a=e.y+(n?.y??e.height*r);if(n?.x===void 0)return{x:i?e.x+e.width:e.x,y:a,away:i?1:-1};let o=e.x+n.x;return{x:o,y:a,away:t>=o?1:-1}}function Ho(e,t){let n=Math.max(40,Math.abs(t.x-e.x)/2),r={x:e.x+e.away*n,y:e.y},i={x:t.x+t.away*n,y:t.y};return`M${e.x},${e.y} C${r.x},${r.y} ${i.x},${i.y} ${t.x},${t.y}`}function Uo(e){let t=e.x+e.width/2,n=e.y+e.height;return`M${t-10},${n} C${t-28},${n+28} ${t+28},${n+28} ${t+10},${n}`}var Wo=l(`<path fill="none" stroke="currentColor" stroke-width="1.5" class="transition-opacity" marker-end="url(#map-arrow)"></path>`),Go=l(`<svg aria-hidden="true"><defs><marker id="map-arrow" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M0,0 L8,4 L0,8 z" fill="currentColor"></path></marker></defs><!></svg>`);function Ko(e,i){r(i,!0);let a=w(()=>i.arcs.map(e=>{let t=o(e.from),n=o(e.to);if(t===null||n===null)return null;let r=e.from===e.to?Uo(t):Ho(zo(t,n.x,e.out),Bo(n,t.x,e.in));return{id:e.id,d:r,dashed:e.dashed===!0,dimmed:e.dimmed===!0}}).filter(e=>e!==null));function o(e){let t=i.positions.get(e),n=i.sizes.get(e);return t===void 0||n===void 0?null:{...t,...n}}var s=Go(),c=N(E(s));n(c,17,()=>g(a),e=>e.id,(e,n)=>{var r=Wo();v(()=>{D(r,`d`,g(n).d),D(r,`stroke-dasharray`,g(n).dashed?`4 3`:void 0),D(r,`opacity`,g(n).dimmed?Co:void 0)}),t(e,r)}),M(s),v(()=>te(s,0,ee([`pointer-events-none absolute overflow-visible`,i.class]))),t(e,s),p()}var qo=c(`<span class="text-muted-foreground"> </span>`),Jo=c(`<!> `,1),Yo=c(`<!> <!>`,1),Xo=c(`<button type="button" class="text-muted-foreground hover:bg-muted hover:text-foreground -m-1 shrink-0
|
|
2
2
|
cursor-pointer rounded-md p-1 transition-colors"><!></button>`),Zo=c(`<div class="flex items-start gap-2"><!> <!></div> <!>`,1);function Qo(e,n){r(n,!0);let a=()=>O(_e,`$dict`,o),[o,c]=T(),l=k(n,`open`,3,!1);var d=A(),f=I(d);{let e=w(()=>[`bg-card flex-col items-stretch gap-0`,n.class]);S(f,()=>he,(r,o)=>{o(r,{variant:`outline`,size:`sm`,get class(){return g(e)},children:(e,r)=>{var o=Zo(),c=I(o),d=E(c);S(d,()=>L,(e,r)=>{r(e,{class:`min-w-0`,children:(e,r)=>{var a=Yo(),o=I(a);S(o,()=>Me,(e,r)=>{r(e,{class:`gap-0`,children:(e,r)=>{var a=Jo(),o=I(a),s=e=>{var r=qo(),i=E(r);M(r),v(()=>u(i,`${n.node.namespace??``}.`)),t(e,r)};i(o,e=>{n.node.namespace!=="default"&&e(s)});var c=N(o,1,!0);v(()=>u(c,n.node.component)),t(e,a)},$$slots:{default:!0}})});var s=N(o,2);S(s,()=>Ne,(e,t)=>{t(e,{class:`text-xs line-clamp-none`,children:(e,t)=>{De(e,{get node(){return n.node}})},$$slots:{default:!0}})}),t(e,a)},$$slots:{default:!0}})});var f=N(d,2),p=e=>{var r=Xo(),i=E(r);{let e=w(()=>[`size-4 transition-transform`,l()&&`rotate-180`]);ke(i,{get class(){return g(e)}})}M(r),v(()=>{D(r,`aria-expanded`,l()),D(r,`aria-label`,a().map.expand)}),s(`click`,r,function(...e){n.ontoggle?.apply(this,e)}),t(e,r)};i(f,e=>{n.ontoggle!==void 0&&e(p)}),M(c);var m=N(c,2),h=e=>{Ee(e,{get node(){return n.node},class:`pt-3`})};i(m,e=>{l()&&e(h)}),t(e,o)},$$slots:{default:!0}})})}t(e,d),p(),c()}o([`click`]);var $o=c(`<div class="text-muted-foreground absolute top-0 left-0 flex items-center gap-3"><span class="text-xs font-medium tracking-wide uppercase"> </span> <!></div>`),es=c(`<div class="absolute top-0 left-0 cursor-pointer transition-opacity" role="button" tabindex="0"><!></div>`),ts=c(`<!> <!> <!>`,1);function ns(e,a){r(a,!0);let o=()=>O(Oe,`$query`,l),s=()=>O(_e,`$dict`,l),c=()=>O(fo,`$flying`,l),[l,d]=T(),m=new pe,h=ie(null),b=w(()=>Do(a.graph,a.view)),S=w(()=>g(b).positions),C=w(()=>ro(a.graph.links,g(h))),ee=w(()=>no(a.graph.links,g(h)).map(e=>({id:e.id,from:e.from,to:e.to,dashed:e.events===e.calls})));_(()=>{let e=a.graph.vertices.filter(e=>ao(e,o())),t=e.length===1?e[0].id:null;return be.set(t===null?null:()=>void go(t)),()=>be.set(null)});function k(e){return ao(e,o())?g(h)===null||g(C).has(e.id):!1}var A=ts(),j=I(A);Ko(j,{class:`text-muted-foreground/50`,get arcs(){return g(ee)},get positions(){return g(S)},get sizes(){return m}});var te=N(j,2);n(te,17,()=>g(b).bands,e=>e.id,(e,n)=>{var r=$o();let i;var a=E(r),o=E(a,!0);M(a);var c=N(a,2);me(c,{class:`flex-1`}),M(r),v(()=>{i=ne(r,``,i,{translate:`${g(n).x??``}px ${g(n).y??``}px`,width:`${g(n).width??``}px`,height:`${wo.height??``}px`}),u(o,s().space[g(n).label])}),t(e,r)});var P=N(te,2);n(P,17,()=>a.graph.vertices,e=>e.id,(e,n)=>{let r=w(()=>g(S).get(g(n).id)??{x:0,y:0});var a=es();let o;var s=E(a),l=e=>{Qo(e,{get node(){return g(n).node}})},u=e=>{Io(e,{get name(){return g(n).name}})};i(s,e=>{g(n).kind===`component`?e(l):e(u,-1)}),M(a),y(a,(e,t)=>bo?.(e,t),()=>({into:m,id:g(n).id})),y(a,(e,t)=>yo?.(e,t),()=>()=>void go(g(n).id)),v((e,t)=>{D(a,`aria-label`,e),o=ne(a,``,o,t)},[()=>io(g(n)),()=>({translate:`${g(r).x??``}px ${g(r).y??``}px`,width:`${$.width??``}px`,opacity:k(g(n))?1:Co,"view-transition-name":c()===g(n).id?po:void 0,"view-transition-class":c()===g(n).id?mo:void 0})]),f(`mouseenter`,a,()=>x(h,g(n).id,!0)),f(`mouseleave`,a,()=>x(h,null)),t(e,a)}),t(e,A),p(),d()}var rs=(e,t)=>{let n=new ResizeObserver(()=>s()),r=new MutationObserver(()=>s()),{into:i,of:a}=t,o=new Set;return n.observe(e),r.observe(e,{childList:!0,subtree:!0}),s(),{update:e=>{i=e.into,a=e.of,s()},destroy:()=>{n.disconnect(),r.disconnect();for(let e of o)i.delete(e)}};function s(){let t=new Set;for(let n of e.querySelectorAll(`[data-row]`)){if(n.dataset.row===void 0)continue;let e=`${a} ${n.dataset.row}`;t.add(e);let r={top:l(n).top,height:n.offsetHeight,right:c(n)},o=i.get(e);(o===void 0||o.top!==r.top||o.height!==r.height||o.right!==r.right)&&i.set(e,r)}for(let e of o)t.has(e)||i.delete(e);o=t}function c(e){let t=0;for(let n of e.children)n instanceof HTMLElement&&(t=Math.max(t,l(n).left+n.offsetWidth));return t===0?l(e).left+e.offsetWidth:t}function l(t){let n={top:0,left:0},r=t;for(;r!==null&&r!==e;)n.top+=r.offsetTop,n.left+=r.offsetLeft,r=r.offsetParent;return n}},is=(e,t)=>{let n=t;return e.addEventListener(`mouseover`,r),e.addEventListener(`mouseleave`,i),e.addEventListener(`focusin`,r),e.addEventListener(`focusout`,i),{update:e=>n=e,destroy:()=>{e.removeEventListener(`mouseover`,r),e.removeEventListener(`mouseleave`,i),e.removeEventListener(`focusin`,r),e.removeEventListener(`focusout`,i)}};function r(e){let t=e.target instanceof Element?e.target.closest(`[data-row]`):null;n(t?.getAttribute(`data-row`)??null)}function i(){n(null)}},as=c(`<div class="pointer-events-none absolute inset-y-0 end-2 flex items-center"><!></div>`),os=c(`<div role="button" tabindex="0"><div class="transition-opacity"><!></div> <!></div>`),ss=c(`<!> <!> <div class="absolute top-0 left-0"><!></div>`,1);function cs(e,o){r(o,!0);let s=()=>O(fo,`$flying`,m),c=()=>O(Oe,`$query`,m),l=()=>O(_e,`$dict`,m),[m,h]=T();_(()=>fo.set(o.id));let b=new pe,S=new pe,C=ie(null),k=ie(null),j=w(()=>oo(o.graph,o.id));function P(){return(g(j)?.incoming??[]).filter(e=>e.vertex.kind===`service`).map(e=>e.id)}let F=new ye(P()),re=w(()=>g(j)===null?new Map:Oo(g(j),o.view,b,g(C))),ae=w(()=>{if(g(j)===null)return[];let e=[];for(let t of g(j).incoming)if(!F.has(t.id))for(let n of t.wires)e.push({id:n.id,from:t.id,to:g(j).vertex.id,out:ce(t.id,n.theirs,8),in:ce(g(j).vertex.id,n.row),dashed:n.event,dimmed:!oe(t,n)});for(let t of g(j).outgoing)if(!F.has(t.id))for(let n of t.wires)e.push({id:n.id,from:g(j).vertex.id,to:t.id,out:ce(g(j).vertex.id,n.row,8),in:ce(t.id,n.theirs),dashed:n.event,dimmed:!oe(t,n)});return g(j).self&&e.push({id:`self`,from:g(j).vertex.id,to:g(j).vertex.id,dimmed:g(k)!==null}),e});function oe(e,t){return g(k)===null?!0:g(k).of===`card`?g(k).id===e.id:g(k).id===t.row}function se(e){return g(k)===null?!0:g(k).of===`card`?g(k).id===e.id:e.wires.some(e=>e.row===g(k)?.id)}function ce(e,t,n){if(t===null)return;let r=S.get(`${e} ${t}`);if(r!==void 0)return{y:r.top+r.height/2,x:n===void 0?void 0:r.right+n}}function le(e){de(()=>{x(C,g(C)===e.id?null:e.id,!0)})}function ue(e,t){t?F.has(e.id)?F.delete(e.id):F.add(e.id):go(e.vertex.id)}let me=w(()=>[...g(j)?.incoming??[],...g(j)?.outgoing??[]].find(e=>e.vertex.id===s())?.id??null);function L(e){return g(re).get(e)??{x:0,y:0}}var he=A(),ge=I(he),ve=e=>{var r=ss(),o=I(r);Ko(o,{class:`text-muted-foreground/50 z-10`,get arcs(){return g(ae)},get positions(){return g(re)},get sizes(){return b}});var p=N(o,2);n(p,17,()=>[...g(j).incoming,...g(j).outgoing],e=>e.id,(e,n)=>{var r=os();let o;var s=E(r);let p;var m=E(s),h=e=>{{let t=w(()=>g(C)===g(n).id);Qo(e,{get node(){return g(n).vertex.node},get open(){return g(t)},ontoggle:()=>le(g(n))})}},_=e=>{Io(e,{get name(){return g(n).vertex.name}})};i(m,e=>{g(n).vertex.kind===`component`?e(h):e(_,-1)}),M(s);var T=N(s,2),O=e=>{var n=as(),r=E(n);Fe(r,{children:(e,n)=>{d();var r=a();v(()=>u(r,l().map.restore)),t(e,r)},$$slots:{default:!0}}),M(n),t(e,n)},A=w(()=>F.has(g(n).id)&&g(n).vertex.kind===`service`);i(T,e=>{g(A)&&e(O)}),M(r),y(r,(e,t)=>bo?.(e,t),()=>({into:b,id:g(n).id})),y(r,(e,t)=>rs?.(e,t),()=>({into:S,of:g(n).id})),y(r,(e,t)=>fe?.(e,t),()=>({name:ho(g(n).id),classes:mo})),y(r,(e,t)=>yo?.(e,t),()=>e=>ue(g(n),e)),v((e,t,i)=>{te(r,1,ee([`absolute top-0 left-0 cursor-pointer`,g(C)===g(n).id?`z-0`:`z-20`])),D(r,`aria-label`,e),o=ne(r,``,o,t),p=ne(s,``,p,i)},[()=>io(g(n).vertex),()=>({translate:`${L(g(n).id).x??``}px ${L(g(n).id).y??``}px`,width:`${(g(C)===g(n).id?So.width:$.width)??``}px`,"view-transition-name":g(me)===g(n).id?po:void 0,"view-transition-class":g(me)===g(n).id?mo:void 0}),()=>({opacity:ao(g(n).vertex,c())&&se(g(n))&&!F.has(g(n).id)?1:Co})]),f(`mouseenter`,r,()=>x(k,F.has(g(n).id)?null:{of:`card`,id:g(n).id},!0)),f(`mouseleave`,r,()=>x(k,null)),t(e,r)});var m=N(p,2);let h;var _=E(m),T=e=>{Ae(e,{class:`bg-card`,get node(){return g(j).vertex.node},collapsible:!1})},O=e=>{Io(e,{get name(){return g(j).vertex.name}})};i(_,e=>{g(j).vertex.kind===`component`?e(T):e(O,-1)}),M(m),y(m,(e,t)=>bo?.(e,t),()=>({into:b,id:g(j).vertex.id})),y(m,(e,t)=>rs?.(e,t),()=>({into:S,of:g(j).vertex.id})),y(m,(e,t)=>is?.(e,t),()=>e=>x(k,e===null?null:{of:`row`,id:e},!0)),v(e=>h=ne(m,``,h,e),[()=>({translate:`${L(g(j).vertex.id).x??``}px ${L(g(j).vertex.id).y??``}px`,width:`${So.width??``}px`,"view-transition-name":s()===g(j).vertex.id?po:void 0,"view-transition-class":s()===g(j).vertex.id?mo:void 0})]),t(e,r)};i(ge,e=>{g(j)!==null&&e(ve)}),t(e,he),p(),h()}var ls=c(`<p class="text-muted-foreground absolute inset-x-0 top-4 text-center text-sm"> </p>`),us=c(`<!> <div class="absolute top-0 left-0 origin-top-left"><!></div>`,1),ds=c(`<div><!></div>`);function fs(n,a){r(a,!0);let o=()=>O(_e,`$dict`,s),[s,c]=T(),l=k(a,`focus`,3,null),d=ie(re(Ma)),h=ie(null),b=re({width:0,height:0});_(()=>S(l()));function S(e){g(h)?.reset()}function D(e){e.key===`Escape`&&l()!==null&&_o()}var P=ds();f(`keydown`,e,D);var ae=E(P);{let e=(e,n)=>{var r=w(()=>j(n?.(),2));let a=()=>g(r)[0],s=()=>g(r)[1],c=w(()=>Ya(a(),s()));var f=us(),p=I(f),h=e=>{var n=ls(),r=E(n,!0);M(n),v(()=>u(r,o().map.empty)),t(e,n)};i(p,e=>{g(c).links.length===0&&e(h)});var _=N(p,2);let y;var x=E(_),S=e=>{ns(e,{get graph(){return g(c)},get view(){return b}})},C=e=>{var n=A(),r=I(n);m(r,l,e=>{cs(e,{get graph(){return g(c)},get view(){return b},get id(){return l()}})}),t(e,n)};i(x,e=>{l()===null?e(S):e(C,-1)}),M(_),v(()=>y=ne(_,``,y,{translate:`${g(d).x??``}px ${g(d).y??``}px`,scale:g(d).k})),t(e,f)},n=w(()=>le(ge,Se));ue(ae,{get store(){return g(n)},awaited:e,$$slots:{awaited:!0}})}M(P),F(()=>C(P,`clientWidth`,e=>b.width=e)),F(()=>C(P,`clientHeight`,e=>b.height=e)),y(P,(e,t)=>Ga?.(e,t),()=>({onchange:e=>x(d,e,!0),onready:e=>x(h,e,!0)})),v(()=>te(P,1,ee([`bg-muted/30 relative touch-none overflow-hidden`,a.class]))),t(n,P),p(),c()}export{eo as n,fs as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,At as t,Ct as n,M as r,St as i,a,d as o,et as s,i as c,kt as l,s as u,x as d}from"./sTot5bBi.js";import"./xihTtKlq.js";import{O as f}from"./
|
|
1
|
+
import{A as e,At as t,Ct as n,M as r,St as i,a,d as o,et as s,i as c,kt as l,s as u,x as d}from"./sTot5bBi.js";import"./xihTtKlq.js";import{O as f}from"./DVtRwJ-b.js";var p=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),m=r(`<kbd><!></kbd>`);function h(r,h){n(h,!0);let g=c(h,`ref`,15,null),_=a(h,p);var v=m();o(v,e=>({"data-slot":`kbd`,class:e,..._}),[()=>f(`h-5 w-fit min-w-5 gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none`,h.class)]);var y=s(v);d(y,()=>h.children??t),l(v),u(v,e=>g(e),()=>g()),e(r,v),i()}export{h as t};
|